Changeset fc7220 in git


Ignore:
Timestamp:
Dec 14, 2000, 4:38:01 PM (22 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
a4339e513f9e2270276ddd39b30c2d2d3275cc6d
Parents:
d3ff792fa6d578c0dc08b8f171167fdf828adb12
Message:
--no-rtti stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@4899 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • factory/configure

    rd3ff79 rfc7220  
    10881088                    (instead of the configure default \`-g -O')" 1>&2
    10891089  fi
    1090 
    1091 # check whether CXX accepts --no-rtti
    1092 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1093 echo "configure:1094: checking whether gcc accepts --no-rtti" >&5
    1094 tmp_flags=${CXXFLAGS}
    1095 CXXFLAGS="${CXXFLAGS} --no-rtti"
    1096 
    1097 ac_ext=C
    1098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1099 ac_cpp='$CXXCPP $CPPFLAGS'
    1100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1102 cross_compiling=$ac_cv_prog_cxx_cross
    1103 
    1104 if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
    1105   echo $ac_n "(cached) $ac_c" 1>&6
    1106 else
    1107   cat > conftest.$ac_ext <<EOF
    1108 #line 1109 "configure"
    1109 #include "confdefs.h"
    1110 
    1111 int main() {
    1112 
    1113 ; return 0; }
    1114 EOF
    1115 if { (eval echo configure:1116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1116   rm -rf conftest*
    1117   ac_cv_cxx_have_rtti=yes
    1118 else
    1119   echo "configure: failed program was:" >&5
    1120   cat conftest.$ac_ext >&5
    1121   rm -rf conftest*
    1122   ac_cv_cxx_have_rtti=no
    1123 fi
    1124 rm -f conftest*
    1125 
    1126 fi
    1127 
    1128 echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
    1129 if test "${ac_cv_cxx_have_rtti}" != yes; then
    1130 CXXFLAGS=$temp_flags
    1131 else
    1132 CXX="${CXX} --no-rtti"
    1133 fi
    1134 
    1135 # check whether gcc accepts --no-exceptions
    1136 echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1137 echo "configure:1138: checking whether gcc accepts --no-exceptions" >&5
    1138 CXXFLAGS="${CXXFLAGS} --no-exceptions"
    1139 if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
    1140   echo $ac_n "(cached) $ac_c" 1>&6
    1141 else
    1142   cat > conftest.$ac_ext <<EOF
    1143 #line 1144 "configure"
    1144 #include "confdefs.h"
    1145 
    1146 int main() {
    1147 
    1148 ; return 0; }
    1149 EOF
    1150 if { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1151   rm -rf conftest*
    1152   ac_cv_cxx_have_exceptions=yes
    1153 else
    1154   echo "configure: failed program was:" >&5
    1155   cat conftest.$ac_ext >&5
    1156   rm -rf conftest*
    1157   ac_cv_cxx_have_exceptions=no
    1158 fi
    1159 rm -f conftest*
    1160 
    1161 fi
    1162 
    1163 echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
    1164 if test "${ac_cv_cxx_have_exceptions}" != yes; then
    1165 CXXFLAGS=$temp_flags
    1166 else
    1167 CXX="${CXX} --no-exceptions"
    1168 fi
    1169 
    1170 ac_ext=c
    1171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1172 ac_cpp='$CPP $CPPFLAGS'
    1173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1175 cross_compiling=$ac_cv_prog_cc_cross
    1176 
    1177 CXXFLAGS=$temp_flags
    1178  
    11791090fi
    11801091
     
    11831094#
    11841095echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1185 echo "configure:1186: checking how to run the C preprocessor" >&5
     1096echo "configure:1097: checking how to run the C preprocessor" >&5
    11861097# On Suns, sometimes $CPP names a directory.
    11871098if test -n "$CPP" && test -d "$CPP"; then
     
    11981109  # not just through cpp.
    11991110  cat > conftest.$ac_ext <<EOF
    1200 #line 1201 "configure"
     1111#line 1112 "configure"
    12011112#include "confdefs.h"
    12021113#include <assert.h>
     
    12041115EOF
    12051116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1117{ (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12071118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12081119if test -z "$ac_err"; then
     
    12151126  CPP="${CC-cc} -E -traditional-cpp"
    12161127  cat > conftest.$ac_ext <<EOF
    1217 #line 1218 "configure"
     1128#line 1129 "configure"
    12181129#include "confdefs.h"
    12191130#include <assert.h>
     
    12211132EOF
    12221133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1134{ (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12241135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12251136if test -z "$ac_err"; then
     
    12321143  CPP="${CC-cc} -nologo -E"
    12331144  cat > conftest.$ac_ext <<EOF
    1234 #line 1235 "configure"
     1145#line 1146 "configure"
    12351146#include "confdefs.h"
    12361147#include <assert.h>
     
    12381149EOF
    12391150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1151{ (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12411152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12421153if test -z "$ac_err"; then
     
    12631174
    12641175echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    1265 echo "configure:1266: checking how to run the C++ preprocessor" >&5
     1176echo "configure:1177: checking how to run the C++ preprocessor" >&5
    12661177if test -z "$CXXCPP"; then
    12671178if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    12761187  CXXCPP="${CXX-g++} -E"
    12771188  cat > conftest.$ac_ext <<EOF
    1278 #line 1279 "configure"
     1189#line 1190 "configure"
    12791190#include "confdefs.h"
    12801191#include <stdlib.h>
    12811192EOF
    12821193ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1283 { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1194{ (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12841195ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12851196if test -z "$ac_err"; then
     
    13061217
    13071218echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1308 echo "configure:1309: checking whether ln -s works" >&5
     1219echo "configure:1220: checking whether ln -s works" >&5
    13091220if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    13101221  echo $ac_n "(cached) $ac_c" 1>&6
     
    13381249# ./install, which can be erroneously created by make from ./install.sh.
    13391250echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1340 echo "configure:1341: checking for a BSD compatible install" >&5
     1251echo "configure:1252: checking for a BSD compatible install" >&5
    13411252if test -z "$INSTALL"; then
    13421253if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    13931304set dummy ranlib; ac_word=$2
    13941305echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1395 echo "configure:1396: checking for $ac_word" >&5
     1306echo "configure:1307: checking for $ac_word" >&5
    13961307if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    13971308  echo $ac_n "(cached) $ac_c" 1>&6
     
    14211332
    14221333echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1423 echo "configure:1424: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1334echo "configure:1335: checking whether ${MAKE-make} sets \${MAKE}" >&5
    14241335set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    14251336if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    14501361set dummy ar; ac_word=$2
    14511362echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1452 echo "configure:1453: checking for $ac_word" >&5
     1363echo "configure:1364: checking for $ac_word" >&5
    14531364if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    14541365  echo $ac_n "(cached) $ac_c" 1>&6
     
    14801391set dummy m4; ac_word=$2
    14811392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1482 echo "configure:1483: checking for $ac_word" >&5
     1393echo "configure:1394: checking for $ac_word" >&5
    14831394if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
    14841395  echo $ac_n "(cached) $ac_c" 1>&6
     
    15101421set dummy bison; ac_word=$2
    15111422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1512 echo "configure:1513: checking for $ac_word" >&5
     1423echo "configure:1424: checking for $ac_word" >&5
    15131424if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    15141425  echo $ac_n "(cached) $ac_c" 1>&6
     
    15491460set dummy mkinstalldirs; ac_word=$2
    15501461echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1551 echo "configure:1552: checking for $ac_word" >&5
     1462echo "configure:1463: checking for $ac_word" >&5
    15521463if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MKINSTALLDIRS'+set}'`\" = set"; then
    15531464  echo $ac_n "(cached) $ac_c" 1>&6
     
    15861497set dummy makeheader; ac_word=$2
    15871498echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1588 echo "configure:1589: checking for $ac_word" >&5
     1499echo "configure:1500: checking for $ac_word" >&5
    15891500if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MAKEHEADER'+set}'`\" = set"; then
    15901501  echo $ac_n "(cached) $ac_c" 1>&6
     
    16251536
    16261537echo $ac_n "checking and generating explicit install paths""... $ac_c" 1>&6
    1627 echo "configure:1628: checking and generating explicit install paths" >&5
     1538echo "configure:1539: checking and generating explicit install paths" >&5
    16281539
    16291540# generate Makefile
     
    16651576#
    16661577echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1667 echo "configure:1668: checking for atof in -lm" >&5
     1578echo "configure:1579: checking for atof in -lm" >&5
    16681579ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    16691580if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16731584LIBS="-lm  $LIBS"
    16741585cat > conftest.$ac_ext <<EOF
    1675 #line 1676 "configure"
     1586#line 1587 "configure"
    16761587#include "confdefs.h"
    16771588/* Override any gcc2 internal prototype to avoid an error.  */
     
    16841595; return 0; }
    16851596EOF
    1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1597if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16871598  rm -rf conftest*
    16881599  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17151626if test "x$gmp_in_installation" != xyes; then
    17161627  echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    1717 echo "configure:1718: checking for main in -lgmp" >&5
     1628echo "configure:1629: checking for main in -lgmp" >&5
    17181629ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    17191630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    17231634LIBS="-lgmp  $LIBS"
    17241635cat > conftest.$ac_ext <<EOF
    1725 #line 1726 "configure"
     1636#line 1637 "configure"
    17261637#include "confdefs.h"
    17271638
     
    17301641; return 0; }
    17311642EOF
    1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1643if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17331644  rm -rf conftest*
    17341645  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17611672      LDFLAGS="-L$explicit_libdir $LDFLAGS"
    17621673      echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    1763 echo "configure:1764: checking for main in -lgmp" >&5
     1674echo "configure:1675: checking for main in -lgmp" >&5
    17641675ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    17651676if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    17691680LIBS="-lgmp  $LIBS"
    17701681cat > conftest.$ac_ext <<EOF
    1771 #line 1772 "configure"
     1682#line 1683 "configure"
    17721683#include "confdefs.h"
    17731684
     
    17761687; return 0; }
    17771688EOF
    1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1689if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17791690  rm -rf conftest*
    17801691  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18261737ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18271738echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1828 echo "configure:1829: checking for $ac_hdr" >&5
     1739echo "configure:1740: checking for $ac_hdr" >&5
    18291740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18301741  echo $ac_n "(cached) $ac_c" 1>&6
    18311742else
    18321743  cat > conftest.$ac_ext <<EOF
    1833 #line 1834 "configure"
     1744#line 1745 "configure"
    18341745#include "confdefs.h"
    18351746#include <$ac_hdr>
    18361747EOF
    18371748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1749{ (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18391750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18401751if test -z "$ac_err"; then
     
    18671778ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18681779echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1869 echo "configure:1870: checking for $ac_hdr" >&5
     1780echo "configure:1781: checking for $ac_hdr" >&5
    18701781if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18711782  echo $ac_n "(cached) $ac_c" 1>&6
    18721783else
    18731784  cat > conftest.$ac_ext <<EOF
    1874 #line 1875 "configure"
     1785#line 1786 "configure"
    18751786#include "confdefs.h"
    18761787#include <$ac_hdr>
    18771788EOF
    18781789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1879 { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1790{ (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18801791ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18811792if test -z "$ac_err"; then
     
    19151826ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19161827echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1917 echo "configure:1918: checking for $ac_hdr" >&5
     1828echo "configure:1829: checking for $ac_hdr" >&5
    19181829if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19191830  echo $ac_n "(cached) $ac_c" 1>&6
    19201831else
    19211832  cat > conftest.$ac_ext <<EOF
    1922 #line 1923 "configure"
     1833#line 1834 "configure"
    19231834#include "confdefs.h"
    19241835#include <$ac_hdr>
    19251836EOF
    19261837ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1838{ (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19281839ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19291840if test -z "$ac_err"; then
     
    19581869ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19591870echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1960 echo "configure:1961: checking for $ac_hdr" >&5
     1871echo "configure:1872: checking for $ac_hdr" >&5
    19611872if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19621873  echo $ac_n "(cached) $ac_c" 1>&6
    19631874else
    19641875  cat > conftest.$ac_ext <<EOF
    1965 #line 1966 "configure"
     1876#line 1877 "configure"
    19661877#include "confdefs.h"
    19671878#include <$ac_hdr>
    19681879EOF
    19691880ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1881{ (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19711882ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19721883if test -z "$ac_err"; then
     
    19991910ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20001911echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2001 echo "configure:2002: checking for $ac_hdr" >&5
     1912echo "configure:1913: checking for $ac_hdr" >&5
    20021913if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20031914  echo $ac_n "(cached) $ac_c" 1>&6
    20041915else
    20051916  cat > conftest.$ac_ext <<EOF
    2006 #line 2007 "configure"
     1917#line 1918 "configure"
    20071918#include "confdefs.h"
    20081919#include <$ac_hdr>
    20091920EOF
    20101921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2011 { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1922{ (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20121923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20131924if test -z "$ac_err"; then
     
    20431954ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20441955echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2045 echo "configure:2046: checking for $ac_hdr" >&5
     1956echo "configure:1957: checking for $ac_hdr" >&5
    20461957if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20471958  echo $ac_n "(cached) $ac_c" 1>&6
    20481959else
    20491960  cat > conftest.$ac_ext <<EOF
    2050 #line 2051 "configure"
     1961#line 1962 "configure"
    20511962#include "confdefs.h"
    20521963#include <$ac_hdr>
    20531964EOF
    20541965ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2055 { (eval echo configure:2056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1966{ (eval echo configure:1967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20561967ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20571968if test -z "$ac_err"; then
     
    20892000ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20902001echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2091 echo "configure:2092: checking for $ac_hdr" >&5
     2002echo "configure:2003: checking for $ac_hdr" >&5
    20922003if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20932004  echo $ac_n "(cached) $ac_c" 1>&6
    20942005else
    20952006  cat > conftest.$ac_ext <<EOF
    2096 #line 2097 "configure"
     2007#line 2008 "configure"
    20972008#include "confdefs.h"
    20982009#include <$ac_hdr>
    20992010EOF
    21002011ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2101 { (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2012{ (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21022013ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21032014if test -z "$ac_err"; then
     
    21332044ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    21342045echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2135 echo "configure:2136: checking for $ac_hdr" >&5
     2046echo "configure:2047: checking for $ac_hdr" >&5
    21362047if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    21372048  echo $ac_n "(cached) $ac_c" 1>&6
    21382049else
    21392050  cat > conftest.$ac_ext <<EOF
    2140 #line 2141 "configure"
     2051#line 2052 "configure"
    21412052#include "confdefs.h"
    21422053#include <$ac_hdr>
    21432054EOF
    21442055ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2145 { (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2056{ (eval echo configure:2057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21462057ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21472058if test -z "$ac_err"; then
     
    21992110
    22002111echo $ac_n "checking for working const""... $ac_c" 1>&6
    2201 echo "configure:2202: checking for working const" >&5
     2112echo "configure:2113: checking for working const" >&5
    22022113if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    22032114  echo $ac_n "(cached) $ac_c" 1>&6
    22042115else
    22052116  cat > conftest.$ac_ext <<EOF
    2206 #line 2207 "configure"
     2117#line 2118 "configure"
    22072118#include "confdefs.h"
    22082119
     
    22532164; return 0; }
    22542165EOF
    2255 if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2166if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22562167  rm -rf conftest*
    22572168  ac_cv_c_const=yes
     
    22742185
    22752186echo $ac_n "checking for inline""... $ac_c" 1>&6
    2276 echo "configure:2277: checking for inline" >&5
     2187echo "configure:2188: checking for inline" >&5
    22772188if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    22782189  echo $ac_n "(cached) $ac_c" 1>&6
     
    22812192for ac_kw in inline __inline__ __inline; do
    22822193  cat > conftest.$ac_ext <<EOF
    2283 #line 2284 "configure"
     2194#line 2195 "configure"
    22842195#include "confdefs.h"
    22852196
     
    22882199; return 0; }
    22892200EOF
    2290 if { (eval echo configure:2291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2201if { (eval echo configure:2202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22912202  rm -rf conftest*
    22922203  ac_cv_c_inline=$ac_kw; break
     
    23162227# arithmetic shift
    23172228echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6
    2318 echo "configure:2319: checking whether your compiler does arithmetic shifts" >&5
     2229echo "configure:2230: checking whether your compiler does arithmetic shifts" >&5
    23192230if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    23202231  echo $ac_n "(cached) $ac_c" 1>&6
     
    23242235else
    23252236  cat > conftest.$ac_ext <<EOF
    2326 #line 2327 "configure"
     2237#line 2238 "configure"
    23272238#include "confdefs.h"
    23282239 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    23292240EOF
    2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2241if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23312242then
    23322243  ac_cv_shift=yes
     
    23992310if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
    24002311  CXXFLAGS="-O2 -fomit-frame-pointer"
     2312
     2313
     2314ac_ext=C
     2315# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2316ac_cpp='$CXXCPP $CPPFLAGS'
     2317ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2318ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2319cross_compiling=$ac_cv_prog_cxx_cross
     2320
     2321# check whether CXX accepts --no-rtti
     2322echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
     2323echo "configure:2324: checking whether gcc accepts --no-rtti" >&5
     2324tmp_flags=${CXXFLAGS}
     2325CXXFLAGS="${CXXFLAGS} --no-rtti"
     2326if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
     2327  echo $ac_n "(cached) $ac_c" 1>&6
     2328else
     2329  cat > conftest.$ac_ext <<EOF
     2330#line 2331 "configure"
     2331#include "confdefs.h"
     2332
     2333int main() {
     2334
     2335; return 0; }
     2336EOF
     2337if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2338  rm -rf conftest*
     2339  ac_cv_cxx_have_rtti=yes
     2340else
     2341  echo "configure: failed program was:" >&5
     2342  cat conftest.$ac_ext >&5
     2343  rm -rf conftest*
     2344  ac_cv_cxx_have_rtti=no
     2345fi
     2346rm -f conftest*
     2347
     2348fi
     2349
     2350echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
     2351CXXFLAGS=$tmp_flags
     2352if test "${ac_cv_cxx_have_rtti}" = yes; then
     2353CXXFLAGS="$CXXFLAGS --no-rtti"
     2354fi
     2355
     2356echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
     2357echo "configure:2358: checking whether gcc accepts --no-exceptions" >&5
     2358tmp_flags=${CXXFLAGS}
     2359CXXFLAGS="${CXXFLAGS} --no-exceptions"
     2360if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
     2361  echo $ac_n "(cached) $ac_c" 1>&6
     2362else
     2363  cat > conftest.$ac_ext <<EOF
     2364#line 2365 "configure"
     2365#include "confdefs.h"
     2366
     2367int main() {
     2368
     2369; return 0; }
     2370EOF
     2371if { (eval echo configure:2372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2372  rm -rf conftest*
     2373  ac_cv_cxx_have_exceptions=yes
     2374else
     2375  echo "configure: failed program was:" >&5
     2376  cat conftest.$ac_ext >&5
     2377  rm -rf conftest*
     2378  ac_cv_cxx_have_exceptions=no
     2379fi
     2380rm -f conftest*
     2381
     2382fi
     2383
     2384echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
     2385CXXFLAGS=$tmp_flags
     2386if test "${ac_cv_cxx_have_exceptions}" = yes; then
     2387CXXFLAGS="$CXXFLAGS --no-exceptions"
     2388fi
     2389ac_ext=c
     2390# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2391ac_cpp='$CPP $CPPFLAGS'
     2392ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2393ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2394cross_compiling=$ac_cv_prog_cc_cross
     2395
     2396
    24012397fi
    24022398
     
    24312427
    24322428echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6
    2433 echo "configure:2434: checking whether to use omalloc" >&5
     2429echo "configure:2430: checking whether to use omalloc" >&5
    24342430
    24352431if test "$with_omalloc" = yes; then
  • factory/configure.in

    rd3ff79 rfc7220  
    11dnl # emacs edit mode for this file is -*- sh -*-
    2 dnl # $Id: configure.in,v 1.29 2000-12-14 14:28:38 obachman Exp $
     2dnl # $Id: configure.in,v 1.30 2000-12-14 15:37:57 obachman Exp $
    33
    44dnl #
     
    1313# - initialisation.
    1414#
    15 AC_REVISION($Id: configure.in,v 1.29 2000-12-14 14:28:38 obachman Exp $)
     15AC_REVISION($Id: configure.in,v 1.30 2000-12-14 15:37:57 obachman Exp $)
    1616AC_INIT(canonicalform.cc)
    1717AC_CONFIG_HEADER(config.h)
     
    149149                    (instead of the configure default \`-g -O')])
    150150  fi
    151 
    152 # check whether CXX accepts --no-rtti
    153 AC_MSG_CHECKING(whether gcc accepts --no-rtti)
    154 tmp_flags=${CXXFLAGS}
    155 CXXFLAGS="${CXXFLAGS} --no-rtti"
    156 AC_LANG_SAVE
    157 AC_LANG_CPLUSPLUS
    158 AC_CACHE_VAL(ac_cv_cxx_have_rtti,
    159 AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
    160 )
    161 AC_MSG_RESULT(${ac_cv_cxx_have_rtti})
    162 if test "${ac_cv_cxx_have_rtti}" != yes; then
    163 CXXFLAGS=$temp_flags
    164 else
    165 CXX="${CXX} --no-rtti"
    166 fi
    167 
    168 # check whether gcc accepts --no-exceptions
    169 AC_MSG_CHECKING(whether gcc accepts --no-exceptions)
    170 CXXFLAGS="${CXXFLAGS} --no-exceptions"
    171 AC_CACHE_VAL(ac_cv_cxx_have_exceptions,
    172 AC_TRY_COMPILE(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no)
    173 )
    174 AC_MSG_RESULT(${ac_cv_cxx_have_exceptions})
    175 if test "${ac_cv_cxx_have_exceptions}" != yes; then
    176 CXXFLAGS=$temp_flags
    177 else
    178 CXX="${CXX} --no-exceptions"
    179 fi
    180 
    181 AC_LANG_RESTORE
    182 CXXFLAGS=$temp_flags
    183  
    184151fi
    185152
     
    398365if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
    399366  CXXFLAGS="-O2 -fomit-frame-pointer"
     367
     368AC_LANG_SAVE
     369AC_LANG_CPLUSPLUS
     370# check whether CXX accepts --no-rtti
     371AC_MSG_CHECKING(whether gcc accepts --no-rtti)
     372tmp_flags=${CXXFLAGS}
     373CXXFLAGS="${CXXFLAGS} --no-rtti"
     374AC_CACHE_VAL(ac_cv_cxx_have_rtti,
     375AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
     376)
     377AC_MSG_RESULT(${ac_cv_cxx_have_rtti})
     378CXXFLAGS=$tmp_flags
     379if test "${ac_cv_cxx_have_rtti}" = yes; then
     380CXXFLAGS="$CXXFLAGS --no-rtti"
     381fi
     382
     383AC_MSG_CHECKING(whether gcc accepts --no-exceptions)
     384tmp_flags=${CXXFLAGS}
     385CXXFLAGS="${CXXFLAGS} --no-exceptions"
     386AC_CACHE_VAL(ac_cv_cxx_have_exceptions,
     387AC_TRY_COMPILE(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no)
     388)
     389AC_MSG_RESULT(${ac_cv_cxx_have_exceptions})
     390CXXFLAGS=$tmp_flags
     391if test "${ac_cv_cxx_have_exceptions}" = yes; then
     392CXXFLAGS="$CXXFLAGS --no-exceptions"
     393fi
     394AC_LANG_RESTORE
     395
    400396fi
    401397
  • libfac/configure

    rd3ff79 rfc7220  
    10521052if test ${GXX} = yes; then
    10531053
     1054  if test "$ac_cxxflags_set" = no; then
     1055    if test "$with_debug" = yes; then
     1056       CXXFLAGS="-O -g"
     1057    else
     1058       CXXFLAGS="-O3 "
     1059    fi
    10541060# check whether CXX accepts --no-rtti
    1055 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1056 echo "configure:1057: checking whether gcc accepts --no-rtti" >&5
    1057 tmp_flags=${CXXFLAGS}
    1058 CXXFLAGS="${CXXFLAGS} --no-rtti"
    10591061
    10601062ac_ext=C
     
    10651067cross_compiling=$ac_cv_prog_cxx_cross
    10661068
     1069echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
     1070echo "configure:1071: checking whether gcc accepts --no-rtti" >&5
     1071tmp_flags=${CXXFLAGS}
     1072CXXFLAGS="${CXXFLAGS} --no-rtti"
    10671073if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
    10681074  echo $ac_n "(cached) $ac_c" 1>&6
    10691075else
    10701076  cat > conftest.$ac_ext <<EOF
    1071 #line 1072 "configure"
     1077#line 1078 "configure"
    10721078#include "confdefs.h"
    10731079
     
    10761082; return 0; }
    10771083EOF
    1078 if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1084if { (eval echo configure:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10791085  rm -rf conftest*
    10801086  ac_cv_cxx_have_rtti=yes
     
    10901096
    10911097echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
    1092 if test "${ac_cv_cxx_have_rtti}" != yes; then
    1093 CXXFLAGS=$temp_flags
    1094 else
    1095 CXX="${CXX} --no-rtti"
    1096 fi
    1097 
    1098 # check whether gcc accepts --no-exceptions
     1098CXXFLAGS=$tmp_flags
     1099if test "${ac_cv_cxx_have_rtti}" = yes; then
     1100CXXFLAGS="$CXXFLAGS --no-rtti"
     1101fi
     1102
    10991103echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1100 echo "configure:1101: checking whether gcc accepts --no-exceptions" >&5
     1104echo "configure:1105: checking whether gcc accepts --no-exceptions" >&5
     1105tmp_flags=${CXXFLAGS}
    11011106CXXFLAGS="${CXXFLAGS} --no-exceptions"
    11021107if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
     
    11041109else
    11051110  cat > conftest.$ac_ext <<EOF
    1106 #line 1107 "configure"
     1111#line 1112 "configure"
    11071112#include "confdefs.h"
    11081113
     
    11111116; return 0; }
    11121117EOF
    1113 if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1118if { (eval echo configure:1119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    11141119  rm -rf conftest*
    11151120  ac_cv_cxx_have_exceptions=yes
     
    11251130
    11261131echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
    1127 if test "${ac_cv_cxx_have_exceptions}" != yes; then
    1128 CXXFLAGS=$temp_flags
    1129 else
    1130 CXX="${CXX} --no-exceptions"
    1131 fi
     1132CXXFLAGS=$tmp_flags
     1133if test "${ac_cv_cxx_have_exceptions}" = yes; then
     1134CXXFLAGS="$CXXFLAGS --no-exceptions"
     1135fi
     1136
    11321137
    11331138ac_ext=C
     
    11381143cross_compiling=$ac_cv_prog_cxx_cross
    11391144
    1140 CXXFLAGS=$temp_flags
    1141  
    1142 fi
    1143 
    1144   if test "$ac_cxxflags_set" = no; then
    1145     if test "$with_debug" = yes; then
    1146        CXXFLAGS="-O -g"
    1147     else
    1148        CXXFLAGS="-O3 "
    1149     fi
     1145
    11501146  fi
    11511147  CXXTEMPLFLAGS="-fno-implicit-templates"
     1148
     1149
    11521150else
    11531151  CXXTEMPFLAGS=""
  • libfac/configure.in

    rd3ff79 rfc7220  
    131131if test ${GXX} = yes; then
    132132
    133 # check whether CXX accepts --no-rtti
    134 AC_MSG_CHECKING(whether gcc accepts --no-rtti)
    135 tmp_flags=${CXXFLAGS}
    136 CXXFLAGS="${CXXFLAGS} --no-rtti"
    137 AC_LANG_SAVE
    138 AC_LANG_CPLUSPLUS
    139 AC_CACHE_VAL(ac_cv_cxx_have_rtti,
    140 AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
    141 )
    142 AC_MSG_RESULT(${ac_cv_cxx_have_rtti})
    143 if test "${ac_cv_cxx_have_rtti}" != yes; then
    144 CXXFLAGS=$temp_flags
    145 else
    146 CXX="${CXX} --no-rtti"
    147 fi
    148 
    149 # check whether gcc accepts --no-exceptions
    150 AC_MSG_CHECKING(whether gcc accepts --no-exceptions)
    151 CXXFLAGS="${CXXFLAGS} --no-exceptions"
    152 AC_CACHE_VAL(ac_cv_cxx_have_exceptions,
    153 AC_TRY_COMPILE(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no)
    154 )
    155 AC_MSG_RESULT(${ac_cv_cxx_have_exceptions})
    156 if test "${ac_cv_cxx_have_exceptions}" != yes; then
    157 CXXFLAGS=$temp_flags
    158 else
    159 CXX="${CXX} --no-exceptions"
    160 fi
    161 
    162 AC_LANG_RESTORE
    163 CXXFLAGS=$temp_flags
    164  
    165 fi
    166 
    167133  if test "$ac_cxxflags_set" = no; then
    168134    if test "$with_debug" = yes; then
     
    171137       CXXFLAGS="-O3 "
    172138    fi
     139# check whether CXX accepts --no-rtti
     140AC_LANG_SAVE
     141AC_LANG_CPLUSPLUS
     142AC_MSG_CHECKING(whether gcc accepts --no-rtti)
     143tmp_flags=${CXXFLAGS}
     144CXXFLAGS="${CXXFLAGS} --no-rtti"
     145AC_CACHE_VAL(ac_cv_cxx_have_rtti,
     146AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
     147)
     148AC_MSG_RESULT(${ac_cv_cxx_have_rtti})
     149CXXFLAGS=$tmp_flags
     150if test "${ac_cv_cxx_have_rtti}" = yes; then
     151CXXFLAGS="$CXXFLAGS --no-rtti"
     152fi
     153
     154AC_MSG_CHECKING(whether gcc accepts --no-exceptions)
     155tmp_flags=${CXXFLAGS}
     156CXXFLAGS="${CXXFLAGS} --no-exceptions"
     157AC_CACHE_VAL(ac_cv_cxx_have_exceptions,
     158AC_TRY_COMPILE(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no)
     159)
     160AC_MSG_RESULT(${ac_cv_cxx_have_exceptions})
     161CXXFLAGS=$tmp_flags
     162if test "${ac_cv_cxx_have_exceptions}" = yes; then
     163CXXFLAGS="$CXXFLAGS --no-exceptions"
     164fi
     165
     166
     167AC_LANG_RESTORE
     168
    173169  fi
    174170  CXXTEMPLFLAGS="-fno-implicit-templates"
     171
     172
    175173else
    176174  CXXTEMPFLAGS=""
Note: See TracChangeset for help on using the changeset viewer.