Changeset 980552 in git
- Timestamp:
- Oct 24, 2008, 3:04:26 PM (15 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- b0e3efca092d580bdd55fac90beff461dacda552
- Parents:
- f2e0da93d04d6c99d7d580113560b08b06892914
- Location:
- libfac
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/configure
rf2e0da r980552 535 535 536 536 libfac_version="3.1.0" 537 cat >> confdefs.h <<EOF 538 #define LIBFAC_VERSION "$libfac_version" 539 EOF 540 537 541 538 542 libfac_date="\"Aug 2008\"" 543 cat >> confdefs.h <<EOF 544 #define LIBFAC_DATE $libfac_date 545 EOF 546 539 547 540 548 libfac_author="\"M. Messollen\"" 549 541 550 542 551 … … 656 665 set dummy $ac_prog; ac_word=$2 657 666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 658 echo "configure:6 59: checking for $ac_word" >&5667 echo "configure:668: checking for $ac_word" >&5 659 668 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 660 669 echo $ac_n "(cached) $ac_c" 1>&6 … … 688 697 689 698 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 690 echo "configure: 691: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5699 echo "configure:700: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 691 700 692 701 ac_ext=C … … 699 708 cat > conftest.$ac_ext << EOF 700 709 701 #line 7 02"configure"710 #line 711 "configure" 702 711 #include "confdefs.h" 703 712 704 713 int main(){return(0);} 705 714 EOF 706 if { (eval echo configure:7 07: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then715 if { (eval echo configure:716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 707 716 ac_cv_prog_cxx_works=yes 708 717 # If we can't run a trivial program, we are probably using a cross compiler. … … 730 739 fi 731 740 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 732 echo "configure:7 33: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5741 echo "configure:742: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 733 742 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 734 743 cross_compiling=$ac_cv_prog_cxx_cross 735 744 736 745 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 737 echo "configure:7 38: checking whether we are using GNU C++" >&5746 echo "configure:747: checking whether we are using GNU C++" >&5 738 747 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 739 748 echo $ac_n "(cached) $ac_c" 1>&6 … … 744 753 #endif 745 754 EOF 746 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7 47: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then755 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 747 756 ac_cv_prog_gxx=yes 748 757 else … … 763 772 CXXFLAGS= 764 773 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 765 echo "configure:7 66: checking whether ${CXX-g++} accepts -g" >&5774 echo "configure:775: checking whether ${CXX-g++} accepts -g" >&5 766 775 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 767 776 echo $ac_n "(cached) $ac_c" 1>&6 … … 795 804 796 805 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 797 echo "configure: 798: checking how to run the C++ preprocessor" >&5806 echo "configure:807: checking how to run the C++ preprocessor" >&5 798 807 if test -z "$CXXCPP"; then 799 808 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 808 817 CXXCPP="${CXX-g++} -E" 809 818 cat > conftest.$ac_ext <<EOF 810 #line 8 11"configure"819 #line 820 "configure" 811 820 #include "confdefs.h" 812 821 #include <stdlib.h> 813 822 EOF 814 823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 815 { (eval echo configure:8 16: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }824 { (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 816 825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 817 826 if test -z "$ac_err"; then … … 839 848 840 849 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 841 echo "configure:8 42: checking whether ${MAKE-make} sets \${MAKE}" >&5850 echo "configure:851: checking whether ${MAKE-make} sets \${MAKE}" >&5 842 851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 843 852 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 868 877 set dummy ranlib; ac_word=$2 869 878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 870 echo "configure:8 71: checking for $ac_word" >&5879 echo "configure:880: checking for $ac_word" >&5 871 880 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 872 881 echo $ac_n "(cached) $ac_c" 1>&6 … … 898 907 set dummy ar; ac_word=$2 899 908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 900 echo "configure:9 01: checking for $ac_word" >&5909 echo "configure:910: checking for $ac_word" >&5 901 910 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 902 911 echo $ac_n "(cached) $ac_c" 1>&6 … … 931 940 ac_safe=`echo "factory.h" | sed 'y%./+-%__p_%'` 932 941 echo $ac_n "checking for factory.h""... $ac_c" 1>&6 933 echo "configure:9 34: checking for factory.h" >&5942 echo "configure:943: checking for factory.h" >&5 934 943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 935 944 echo $ac_n "(cached) $ac_c" 1>&6 936 945 else 937 946 cat > conftest.$ac_ext <<EOF 938 #line 9 39"configure"947 #line 948 "configure" 939 948 #include "confdefs.h" 940 949 #include <factory.h> 941 950 EOF 942 951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 943 { (eval echo configure:9 44: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }952 { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 944 953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 945 954 if test -z "$ac_err"; then … … 984 993 985 994 echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6 986 echo "configure:9 87: checking whether gcc accepts -fno-rtti" >&5995 echo "configure:996: checking whether gcc accepts -fno-rtti" >&5 987 996 tmp_flags=${CXXFLAGS} 988 997 CXXFLAGS="${CXXFLAGS} -fno-rtti" … … 991 1000 else 992 1001 cat > conftest.$ac_ext <<EOF 993 #line 994"configure"1002 #line 1003 "configure" 994 1003 #include "confdefs.h" 995 1004 … … 998 1007 ; return 0; } 999 1008 EOF 1000 if { (eval echo configure:10 01: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1009 if { (eval echo configure:1010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1001 1010 rm -rf conftest* 1002 1011 ac_cv_cxx_have_rtti=yes … … 1018 1027 1019 1028 echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6 1020 echo "configure:10 21: checking whether gcc accepts -fno-exceptions" >&51029 echo "configure:1030: checking whether gcc accepts -fno-exceptions" >&5 1021 1030 tmp_flags=${CXXFLAGS} 1022 1031 CXXFLAGS="${CXXFLAGS} -fno-exceptions" … … 1025 1034 else 1026 1035 cat > conftest.$ac_ext <<EOF 1027 #line 10 28"configure"1036 #line 1037 "configure" 1028 1037 #include "confdefs.h" 1029 1038 … … 1032 1041 ; return 0; } 1033 1042 EOF 1034 if { (eval echo configure:10 35: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1035 1044 rm -rf conftest* 1036 1045 ac_cv_cxx_have_exceptions=yes … … 1132 1141 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1133 1142 1134 # Transform confdefs.h into DEFS. 1135 # Protect against shell expansion while executing Makefile rules. 1136 # Protect against Makefile macro expansion. 1137 cat > conftest.defs <<\EOF 1138 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 1139 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1140 s%\[%\\&%g 1141 s%\]%\\&%g 1142 s%\$%$$%g 1143 EOF 1144 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1145 rm -f conftest.defs 1146 1143 DEFS=-DHAVE_CONFIG_H 1147 1144 1148 1145 # Without the "./", some shells look in PATH for config.status. … … 1181 1178 ac_given_srcdir=$srcdir 1182 1179 1183 trap 'rm -fr `echo "Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 151180 trap 'rm -fr `echo "Makefile factor/version.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1184 1181 EOF 1185 1182 cat >> $CONFIG_STATUS <<EOF … … 1324 1321 rm -f conftest.s* 1325 1322 1323 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1324 # NAME is the cpp macro being defined and VALUE is the value it is being given. 1325 # 1326 # ac_d sets the value in "#define NAME VALUE" lines. 1327 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1328 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1329 ac_dC='\3' 1330 ac_dD='%g' 1331 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1332 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1333 ac_uB='\([ ]\)%\1#\2define\3' 1334 ac_uC=' ' 1335 ac_uD='\4%g' 1336 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1337 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1338 ac_eB='$%\1#\2define\3' 1339 ac_eC=' ' 1340 ac_eD='%g' 1341 1342 if test "${CONFIG_HEADERS+set}" != set; then 1343 EOF 1344 cat >> $CONFIG_STATUS <<EOF 1345 CONFIG_HEADERS="factor/version.h" 1346 EOF 1347 cat >> $CONFIG_STATUS <<\EOF 1348 fi 1349 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1351 case "$ac_file" in 1352 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1353 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1354 *) ac_file_in="${ac_file}.in" ;; 1355 esac 1356 1357 echo creating $ac_file 1358 1359 rm -f conftest.frag conftest.in conftest.out 1360 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1361 cat $ac_file_inputs > conftest.in 1362 1363 EOF 1364 1365 # Transform confdefs.h into a sed script conftest.vals that substitutes 1366 # the proper values into config.h.in to produce config.h. And first: 1367 # Protect against being on the right side of a sed subst in config.status. 1368 # Protect against being in an unquoted here document in config.status. 1369 rm -f conftest.vals 1370 cat > conftest.hdr <<\EOF 1371 s/[\\&%]/\\&/g 1372 s%[\\$`]%\\&%g 1373 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1374 s%ac_d%ac_u%gp 1375 s%ac_u%ac_e%gp 1376 EOF 1377 sed -n -f conftest.hdr confdefs.h > conftest.vals 1378 rm -f conftest.hdr 1379 1380 # This sed command replaces #undef with comments. This is necessary, for 1381 # example, in the case of _POSIX_SOURCE, which is predefined and required 1382 # on some systems where configure will not decide to define it. 1383 cat >> conftest.vals <<\EOF 1384 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1385 EOF 1386 1387 # Break up conftest.vals because some shells have a limit on 1388 # the size of here documents, and old seds have small limits too. 1389 1390 rm -f conftest.tail 1391 while : 1392 do 1393 ac_lines=`grep -c . conftest.vals` 1394 # grep -c gives empty output for an empty file on some AIX systems. 1395 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1396 # Write a limited-size here document to conftest.frag. 1397 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1398 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1399 echo 'CEOF 1400 sed -f conftest.frag conftest.in > conftest.out 1401 rm -f conftest.in 1402 mv conftest.out conftest.in 1403 ' >> $CONFIG_STATUS 1404 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1405 rm -f conftest.vals 1406 mv conftest.tail conftest.vals 1407 done 1408 rm -f conftest.vals 1409 1410 cat >> $CONFIG_STATUS <<\EOF 1411 rm -f conftest.frag conftest.h 1412 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1413 cat conftest.in >> conftest.h 1414 rm -f conftest.in 1415 if cmp -s $ac_file conftest.h 2>/dev/null; then 1416 echo "$ac_file is unchanged" 1417 rm -f conftest.h 1418 else 1419 # Remove last slash and all that follows it. Not all systems have dirname. 1420 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1421 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1422 # The file is in a subdirectory. 1423 test ! -d "$ac_dir" && mkdir "$ac_dir" 1424 fi 1425 rm -f $ac_file 1426 mv conftest.h $ac_file 1427 fi 1428 fi; done 1429 1326 1430 EOF 1327 1431 cat >> $CONFIG_STATUS <<EOF … … 1336 1440 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1337 1441 1338 -
libfac/configure.in
rf2e0da r980552 7 7 dnl 8 8 AC_INIT(factor.h) 9 AC_CONFIG_HEADER(factor/version.h) 9 10 10 11 dnl … … 12 13 dnl 13 14 dnl Change libfac variables here: 15 libfac_name="\"Factorization and characteristic sets library\"" 14 16 AC_SUBST(libfac_name) 15 libfac_name="\"Factorization and characteristic sets library\"" 17 libfac_version="3.1.0" 18 AC_DEFINE_UNQUOTED(LIBFAC_VERSION,"$libfac_version") 16 19 AC_SUBST(libfac_version) 17 libfac_version="3.1.0" 20 libfac_date="\"Aug 2008\"" 21 AC_DEFINE_UNQUOTED(LIBFAC_DATE,$libfac_date) 18 22 AC_SUBST(libfac_date) 19 libfac_ date="\"Aug 2008\""23 libfac_author="\"M. Messollen\"" 20 24 AC_SUBST(libfac_author) 21 libfac_author="\"M. Messollen\""22 25 23 26 AC_SUBST(libfac) … … 190 193 191 194 AC_OUTPUT(Makefile) 192 193 dnl194 dnl Plans:195 dnl 1) look for libraries (warn if not found) for building testprog196 dnl 1) search for perl -
libfac/factor/version.cc
rf2e0da r980552 1 1 /////////////////////////////////////////////////////////////////////////////// 2 2 // emacs edit mode for this file is -*- C++ -*- 3 // $Id: version.cc,v 1.1 1 2008-10-24 12:46:40Singular Exp $3 // $Id: version.cc,v 1.12 2008-10-24 13:04:26 Singular Exp $ 4 4 /////////////////////////////////////////////////////////////////////////////// 5 #include "version.h" 5 6 6 7 const char * libfac_name = "Factorization and characteristic sets library"; 7 const char * libfac_version = "3.1.0";8 const char * libfac_date = "Oct 2008";8 const char * libfac_version = LIBFAC_VERSION; 9 const char * libfac_date = LIBFAC_DATE; 9 10 const char * libfac_author = "M. Messollen"; 10 11
Note: See TracChangeset
for help on using the changeset viewer.