Changeset 2429
- Timestamp:
- Sep 3, 2011 1:28:49 PM (8 years ago)
- Location:
- ThirdParty/SCIP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/SCIP/trunk/config_scip.h.in
r2419 r2429 9 9 /* Define to 1 if the Cplex package is available */ 10 10 #undef COIN_HAS_CPX 11 12 /* Define to 1 if GMP is available */ 13 #undef COIN_HAS_GMP 11 14 12 15 /* Define to 1 if the Gurobi package is available */ … … 21 24 /* Define to 1 if the QSopt package is available */ 22 25 #undef COIN_HAS_QSO 26 27 /* Define to 1 if readline is available */ 28 #undef COIN_HAS_READLINE 23 29 24 30 /* Define to 1 if the SoPlex package is available */ … … 40 46 #undef HAVE_DLFCN_H 41 47 48 /* Define to 1 if you have the <gmp.h> header file. */ 49 #undef HAVE_GMP_H 50 42 51 /* Define to 1 if you have the <inttypes.h> header file. */ 43 52 #undef HAVE_INTTYPES_H … … 45 54 /* Define to 1 if you have the <memory.h> header file. */ 46 55 #undef HAVE_MEMORY_H 56 57 /* Define to 1 if you have the <readline/readline.h> header file. */ 58 #undef HAVE_READLINE_READLINE_H 47 59 48 60 /* Define to 1 if you have the <stdint.h> header file. */ -
ThirdParty/SCIP/trunk/configure
r2419 r2429 1112 1112 --disable-qsopt-libcheck 1113 1113 skip the link check at configuration time 1114 --disable-zlib do not compile with compression library zlib 1115 --disable-gmp do not compile with GNU multiple precision library 1114 1116 --enable-gnu-packages compile with GNU packages (disabled by default) 1115 1117 … … 6427 6429 *-*-irix6*) 6428 6430 # Find out which ABI we are using. 6429 echo '#line 64 29"configure"' > conftest.$ac_ext6431 echo '#line 6431 "configure"' > conftest.$ac_ext 6430 6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6431 6433 (eval $ac_compile) 2>&5 … … 7561 7563 7562 7564 # Provide some information about the compiler. 7563 echo "$as_me:756 3:" \7565 echo "$as_me:7565:" \ 7564 7566 "checking for Fortran 77 compiler version" >&5 7565 7567 ac_compiler=`set X $ac_compile; echo $2` … … 8628 8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8629 8631 -e 's:$: $lt_compiler_flag:'` 8630 (eval echo "\"\$as_me:863 0: $lt_compile\"" >&5)8632 (eval echo "\"\$as_me:8632: $lt_compile\"" >&5) 8631 8633 (eval "$lt_compile" 2>conftest.err) 8632 8634 ac_status=$? 8633 8635 cat conftest.err >&5 8634 echo "$as_me:863 4: \$? = $ac_status" >&58636 echo "$as_me:8636: \$? = $ac_status" >&5 8635 8637 if (exit $ac_status) && test -s "$ac_outfile"; then 8636 8638 # The compiler can only warn and ignore the option if not recognized … … 8896 8898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8897 8899 -e 's:$: $lt_compiler_flag:'` 8898 (eval echo "\"\$as_me:8 898: $lt_compile\"" >&5)8900 (eval echo "\"\$as_me:8900: $lt_compile\"" >&5) 8899 8901 (eval "$lt_compile" 2>conftest.err) 8900 8902 ac_status=$? 8901 8903 cat conftest.err >&5 8902 echo "$as_me:890 2: \$? = $ac_status" >&58904 echo "$as_me:8904: \$? = $ac_status" >&5 8903 8905 if (exit $ac_status) && test -s "$ac_outfile"; then 8904 8906 # The compiler can only warn and ignore the option if not recognized … … 9000 9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9001 9003 -e 's:$: $lt_compiler_flag:'` 9002 (eval echo "\"\$as_me:900 2: $lt_compile\"" >&5)9004 (eval echo "\"\$as_me:9004: $lt_compile\"" >&5) 9003 9005 (eval "$lt_compile" 2>out/conftest.err) 9004 9006 ac_status=$? 9005 9007 cat out/conftest.err >&5 9006 echo "$as_me:900 6: \$? = $ac_status" >&59008 echo "$as_me:9008: \$? = $ac_status" >&5 9007 9009 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9008 9010 then … … 11345 11347 lt_status=$lt_dlunknown 11346 11348 cat > conftest.$ac_ext <<EOF 11347 #line 1134 7"configure"11349 #line 11349 "configure" 11348 11350 #include "confdefs.h" 11349 11351 … … 11445 11447 lt_status=$lt_dlunknown 11446 11448 cat > conftest.$ac_ext <<EOF 11447 #line 1144 7"configure"11449 #line 11449 "configure" 11448 11450 #include "confdefs.h" 11449 11451 … … 13789 13791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13790 13792 -e 's:$: $lt_compiler_flag:'` 13791 (eval echo "\"\$as_me:1379 1: $lt_compile\"" >&5)13793 (eval echo "\"\$as_me:13793: $lt_compile\"" >&5) 13792 13794 (eval "$lt_compile" 2>conftest.err) 13793 13795 ac_status=$? 13794 13796 cat conftest.err >&5 13795 echo "$as_me:1379 5: \$? = $ac_status" >&513797 echo "$as_me:13797: \$? = $ac_status" >&5 13796 13798 if (exit $ac_status) && test -s "$ac_outfile"; then 13797 13799 # The compiler can only warn and ignore the option if not recognized … … 13893 13895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13894 13896 -e 's:$: $lt_compiler_flag:'` 13895 (eval echo "\"\$as_me:1389 5: $lt_compile\"" >&5)13897 (eval echo "\"\$as_me:13897: $lt_compile\"" >&5) 13896 13898 (eval "$lt_compile" 2>out/conftest.err) 13897 13899 ac_status=$? 13898 13900 cat out/conftest.err >&5 13899 echo "$as_me:13 899: \$? = $ac_status" >&513901 echo "$as_me:13901: \$? = $ac_status" >&5 13900 13902 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13901 13903 then … … 15463 15465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15464 15466 -e 's:$: $lt_compiler_flag:'` 15465 (eval echo "\"\$as_me:1546 5: $lt_compile\"" >&5)15467 (eval echo "\"\$as_me:15467: $lt_compile\"" >&5) 15466 15468 (eval "$lt_compile" 2>conftest.err) 15467 15469 ac_status=$? 15468 15470 cat conftest.err >&5 15469 echo "$as_me:154 69: \$? = $ac_status" >&515471 echo "$as_me:15471: \$? = $ac_status" >&5 15470 15472 if (exit $ac_status) && test -s "$ac_outfile"; then 15471 15473 # The compiler can only warn and ignore the option if not recognized … … 15567 15569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15568 15570 -e 's:$: $lt_compiler_flag:'` 15569 (eval echo "\"\$as_me:155 69: $lt_compile\"" >&5)15571 (eval echo "\"\$as_me:15571: $lt_compile\"" >&5) 15570 15572 (eval "$lt_compile" 2>out/conftest.err) 15571 15573 ac_status=$? 15572 15574 cat out/conftest.err >&5 15573 echo "$as_me:1557 3: \$? = $ac_status" >&515575 echo "$as_me:15575: \$? = $ac_status" >&5 15574 15576 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15575 15577 then … … 17774 17776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17775 17777 -e 's:$: $lt_compiler_flag:'` 17776 (eval echo "\"\$as_me:1777 6: $lt_compile\"" >&5)17778 (eval echo "\"\$as_me:17778: $lt_compile\"" >&5) 17777 17779 (eval "$lt_compile" 2>conftest.err) 17778 17780 ac_status=$? 17779 17781 cat conftest.err >&5 17780 echo "$as_me:1778 0: \$? = $ac_status" >&517782 echo "$as_me:17782: \$? = $ac_status" >&5 17781 17783 if (exit $ac_status) && test -s "$ac_outfile"; then 17782 17784 # The compiler can only warn and ignore the option if not recognized … … 18042 18044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18043 18045 -e 's:$: $lt_compiler_flag:'` 18044 (eval echo "\"\$as_me:1804 4: $lt_compile\"" >&5)18046 (eval echo "\"\$as_me:18046: $lt_compile\"" >&5) 18045 18047 (eval "$lt_compile" 2>conftest.err) 18046 18048 ac_status=$? 18047 18049 cat conftest.err >&5 18048 echo "$as_me:180 48: \$? = $ac_status" >&518050 echo "$as_me:18050: \$? = $ac_status" >&5 18049 18051 if (exit $ac_status) && test -s "$ac_outfile"; then 18050 18052 # The compiler can only warn and ignore the option if not recognized … … 18146 18148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18147 18149 -e 's:$: $lt_compiler_flag:'` 18148 (eval echo "\"\$as_me:181 48: $lt_compile\"" >&5)18150 (eval echo "\"\$as_me:18150: $lt_compile\"" >&5) 18149 18151 (eval "$lt_compile" 2>out/conftest.err) 18150 18152 ac_status=$? 18151 18153 cat out/conftest.err >&5 18152 echo "$as_me:1815 2: \$? = $ac_status" >&518154 echo "$as_me:18154: \$? = $ac_status" >&5 18153 18155 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18154 18156 then … … 24391 24393 ############################################################################# 24392 24394 24393 # Check whether --enable-gnu-packages or --disable-gnu-packages was given. 24394 if test "${enable_gnu_packages+set}" = set; then 24395 enableval="$enable_gnu_packages" 24396 coin_enable_gnu=$enableval 24397 else 24398 coin_enable_gnu=no 24395 24396 24397 24398 24399 24400 24401 coin_has_zlib=no 24402 24403 # Check whether --enable-zlib or --disable-zlib was given. 24404 if test "${enable_zlib+set}" = set; then 24405 enableval="$enable_zlib" 24406 coin_enable_zlib=$enableval 24407 else 24408 coin_enable_zlib=yes 24399 24409 fi; 24400 24410 24401 24402 24403 24404 24405 24406 24407 coin_has_zlib=no 24408 if test $coin_enable_gnu = yes; then 24411 if test $coin_enable_zlib = yes; then 24409 24412 #if test x"" = x; then 24410 24413 # hdr="#include <zlib.h>" … … 24631 24634 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 24632 24635 if test $ac_cv_lib_z_gzopen = yes; then 24636 : 24637 else 24638 coin_has_zlib=no 24639 fi 24640 24641 fi 24642 24643 if test $coin_has_zlib = yes; then 24633 24644 24634 24645 SCIPLIB_LIBS="-lz $SCIPLIB_LIBS" … … 24636 24647 SCIPLIB_LIBS_INSTALLED="-lz $SCIPLIB_LIBS_INSTALLED" 24637 24648 24638 :24639 else24640 coin_has_zlib=no24641 fi24642 24643 fi24644 24645 if test $coin_has_zlib = yes; then24646 24649 24647 24650 cat >>confdefs.h <<\_ACEOF … … 24665 24668 if test $coin_has_zlib = "yes"; then 24666 24669 EXTRAFLAGS="$EXTRAFLAGS -DWITH_ZLIB" 24670 fi 24671 24672 24673 24674 24675 24676 24677 24678 # Check whether --enable-gmp or --disable-gmp was given. 24679 if test "${enable_gmp+set}" = set; then 24680 enableval="$enable_gmp" 24681 coin_enable_gmp=$enableval 24682 else 24683 coin_enable_gmp=yes 24684 fi; 24685 24686 coin_has_gmp=no 24687 if test $coin_enable_gmp = yes; then 24688 #if test x"" = x; then 24689 # hdr="#include <gmp.h>" 24690 #else 24691 # hdr="" 24692 #fi 24693 #AC_CHECK_HEADERS([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])],[],[$hdr]) 24694 24695 for ac_header in gmp.h 24696 do 24697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24698 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24699 echo "$as_me:$LINENO: checking for $ac_header" >&5 24700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24701 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24702 echo $ECHO_N "(cached) $ECHO_C" >&6 24703 fi 24704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24706 else 24707 # Is the header compilable? 24708 echo "$as_me:$LINENO: checking $ac_header usability" >&5 24709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24710 cat >conftest.$ac_ext <<_ACEOF 24711 /* confdefs.h. */ 24712 _ACEOF 24713 cat confdefs.h >>conftest.$ac_ext 24714 cat >>conftest.$ac_ext <<_ACEOF 24715 /* end confdefs.h. */ 24716 $ac_includes_default 24717 #include <$ac_header> 24718 _ACEOF 24719 rm -f conftest.$ac_objext 24720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24721 (eval $ac_compile) 2>conftest.er1 24722 ac_status=$? 24723 grep -v '^ *+' conftest.er1 >conftest.err 24724 rm -f conftest.er1 24725 cat conftest.err >&5 24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24727 (exit $ac_status); } && 24728 { ac_try='test -z "$ac_c_werror_flag" 24729 || test ! -s conftest.err' 24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24731 (eval $ac_try) 2>&5 24732 ac_status=$? 24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24734 (exit $ac_status); }; } && 24735 { ac_try='test -s conftest.$ac_objext' 24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24737 (eval $ac_try) 2>&5 24738 ac_status=$? 24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24740 (exit $ac_status); }; }; then 24741 ac_header_compiler=yes 24742 else 24743 echo "$as_me: failed program was:" >&5 24744 sed 's/^/| /' conftest.$ac_ext >&5 24745 24746 ac_header_compiler=no 24747 fi 24748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24750 echo "${ECHO_T}$ac_header_compiler" >&6 24751 24752 # Is the header present? 24753 echo "$as_me:$LINENO: checking $ac_header presence" >&5 24754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24755 cat >conftest.$ac_ext <<_ACEOF 24756 /* confdefs.h. */ 24757 _ACEOF 24758 cat confdefs.h >>conftest.$ac_ext 24759 cat >>conftest.$ac_ext <<_ACEOF 24760 /* end confdefs.h. */ 24761 #include <$ac_header> 24762 _ACEOF 24763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24765 ac_status=$? 24766 grep -v '^ *+' conftest.er1 >conftest.err 24767 rm -f conftest.er1 24768 cat conftest.err >&5 24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24770 (exit $ac_status); } >/dev/null; then 24771 if test -s conftest.err; then 24772 ac_cpp_err=$ac_c_preproc_warn_flag 24773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24774 else 24775 ac_cpp_err= 24776 fi 24777 else 24778 ac_cpp_err=yes 24779 fi 24780 if test -z "$ac_cpp_err"; then 24781 ac_header_preproc=yes 24782 else 24783 echo "$as_me: failed program was:" >&5 24784 sed 's/^/| /' conftest.$ac_ext >&5 24785 24786 ac_header_preproc=no 24787 fi 24788 rm -f conftest.err conftest.$ac_ext 24789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24790 echo "${ECHO_T}$ac_header_preproc" >&6 24791 24792 # So? What about this header? 24793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24794 yes:no: ) 24795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24799 ac_header_preproc=yes 24800 ;; 24801 no:yes:* ) 24802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24814 ( 24815 cat <<\_ASBOX 24816 ## --------------------------------------------------------------- ## 24817 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 24818 ## --------------------------------------------------------------- ## 24819 _ASBOX 24820 ) | 24821 sed "s/^/$as_me: WARNING: /" >&2 24822 ;; 24823 esac 24824 echo "$as_me:$LINENO: checking for $ac_header" >&5 24825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24826 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24827 echo $ECHO_N "(cached) $ECHO_C" >&6 24828 else 24829 eval "$as_ac_Header=\$ac_header_preproc" 24830 fi 24831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24833 24834 fi 24835 if test `eval echo '${'$as_ac_Header'}'` = yes; then 24836 cat >>confdefs.h <<_ACEOF 24837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24838 _ACEOF 24839 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5 24840 echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6 24841 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then 24842 echo $ECHO_N "(cached) $ECHO_C" >&6 24843 else 24844 ac_check_lib_save_LIBS=$LIBS 24845 LIBS="-lgmp $LIBS" 24846 cat >conftest.$ac_ext <<_ACEOF 24847 /* confdefs.h. */ 24848 _ACEOF 24849 cat confdefs.h >>conftest.$ac_ext 24850 cat >>conftest.$ac_ext <<_ACEOF 24851 /* end confdefs.h. */ 24852 24853 /* Override any gcc2 internal prototype to avoid an error. */ 24854 #ifdef __cplusplus 24855 extern "C" 24856 #endif 24857 /* We use char because int might match the return type of a gcc2 24858 builtin and then its argument prototype would still apply. */ 24859 char __gmpz_init (); 24860 int 24861 main () 24862 { 24863 __gmpz_init (); 24864 ; 24865 return 0; 24866 } 24867 _ACEOF 24868 rm -f conftest.$ac_objext conftest$ac_exeext 24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24870 (eval $ac_link) 2>conftest.er1 24871 ac_status=$? 24872 grep -v '^ *+' conftest.er1 >conftest.err 24873 rm -f conftest.er1 24874 cat conftest.err >&5 24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24876 (exit $ac_status); } && 24877 { ac_try='test -z "$ac_c_werror_flag" 24878 || test ! -s conftest.err' 24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24880 (eval $ac_try) 2>&5 24881 ac_status=$? 24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24883 (exit $ac_status); }; } && 24884 { ac_try='test -s conftest$ac_exeext' 24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24886 (eval $ac_try) 2>&5 24887 ac_status=$? 24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24889 (exit $ac_status); }; }; then 24890 ac_cv_lib_gmp___gmpz_init=yes 24891 else 24892 echo "$as_me: failed program was:" >&5 24893 sed 's/^/| /' conftest.$ac_ext >&5 24894 24895 ac_cv_lib_gmp___gmpz_init=no 24896 fi 24897 rm -f conftest.err conftest.$ac_objext \ 24898 conftest$ac_exeext conftest.$ac_ext 24899 LIBS=$ac_check_lib_save_LIBS 24900 fi 24901 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5 24902 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6 24903 if test $ac_cv_lib_gmp___gmpz_init = yes; then 24904 coin_has_gmp=yes 24905 fi 24906 24907 fi 24908 24909 done 24910 24911 24912 24913 if test $coin_has_gmp = yes ; then 24914 24915 SCIPLIB_LIBS="-lgmp $SCIPLIB_LIBS" 24916 SCIPLIB_PCLIBS="-lgmp $SCIPLIB_PCLIBS" 24917 SCIPLIB_LIBS_INSTALLED="-lgmp $SCIPLIB_LIBS_INSTALLED" 24918 24919 24920 cat >>confdefs.h <<\_ACEOF 24921 #define COIN_HAS_GMP 1 24922 _ACEOF 24923 24924 fi 24925 fi 24926 24927 if test $coin_has_gmp = yes; then 24928 EXTRAFLAGS="$EXTRAFLAGS -DWITH_GMP" 24929 fi 24930 24931 # Check whether --enable-gnu-packages or --disable-gnu-packages was given. 24932 if test "${enable_gnu_packages+set}" = set; then 24933 enableval="$enable_gnu_packages" 24934 coin_enable_gnu=$enableval 24935 else 24936 coin_enable_gnu=no 24937 fi; 24938 24939 24940 24941 24942 24943 24944 24945 coin_has_readline=no 24946 if test $coin_enable_gnu = yes; then 24947 #if test x"#include <stdio.h>" = x; then 24948 # hdr="#include <readline/readline.h>" 24949 #else 24950 # hdr="#include <stdio.h>" 24951 #fi 24952 #AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr]) 24953 24954 for ac_header in readline/readline.h 24955 do 24956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24957 echo "$as_me:$LINENO: checking for $ac_header" >&5 24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24959 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24960 echo $ECHO_N "(cached) $ECHO_C" >&6 24961 else 24962 cat >conftest.$ac_ext <<_ACEOF 24963 /* confdefs.h. */ 24964 _ACEOF 24965 cat confdefs.h >>conftest.$ac_ext 24966 cat >>conftest.$ac_ext <<_ACEOF 24967 /* end confdefs.h. */ 24968 #include <stdio.h> 24969 24970 #include <$ac_header> 24971 _ACEOF 24972 rm -f conftest.$ac_objext 24973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24974 (eval $ac_compile) 2>conftest.er1 24975 ac_status=$? 24976 grep -v '^ *+' conftest.er1 >conftest.err 24977 rm -f conftest.er1 24978 cat conftest.err >&5 24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24980 (exit $ac_status); } && 24981 { ac_try='test -z "$ac_c_werror_flag" 24982 || test ! -s conftest.err' 24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24984 (eval $ac_try) 2>&5 24985 ac_status=$? 24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24987 (exit $ac_status); }; } && 24988 { ac_try='test -s conftest.$ac_objext' 24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24990 (eval $ac_try) 2>&5 24991 ac_status=$? 24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24993 (exit $ac_status); }; }; then 24994 eval "$as_ac_Header=yes" 24995 else 24996 echo "$as_me: failed program was:" >&5 24997 sed 's/^/| /' conftest.$ac_ext >&5 24998 24999 eval "$as_ac_Header=no" 25000 fi 25001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25002 fi 25003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25005 if test `eval echo '${'$as_ac_Header'}'` = yes; then 25006 cat >>confdefs.h <<_ACEOF 25007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25008 _ACEOF 25009 coin_has_readline=yes 25010 fi 25011 25012 done 25013 25014 25015 25016 coin_save_LIBS="$LIBS" 25017 LIBS= 25018 # First we check if tputs and friends are available 25019 if test $coin_has_readline = yes; then 25020 echo "$as_me:$LINENO: checking for library containing tputs" >&5 25021 echo $ECHO_N "checking for library containing tputs... $ECHO_C" >&6 25022 if test "${ac_cv_search_tputs+set}" = set; then 25023 echo $ECHO_N "(cached) $ECHO_C" >&6 25024 else 25025 ac_func_search_save_LIBS=$LIBS 25026 ac_cv_search_tputs=no 25027 cat >conftest.$ac_ext <<_ACEOF 25028 /* confdefs.h. */ 25029 _ACEOF 25030 cat confdefs.h >>conftest.$ac_ext 25031 cat >>conftest.$ac_ext <<_ACEOF 25032 /* end confdefs.h. */ 25033 25034 /* Override any gcc2 internal prototype to avoid an error. */ 25035 #ifdef __cplusplus 25036 extern "C" 25037 #endif 25038 /* We use char because int might match the return type of a gcc2 25039 builtin and then its argument prototype would still apply. */ 25040 char tputs (); 25041 int 25042 main () 25043 { 25044 tputs (); 25045 ; 25046 return 0; 25047 } 25048 _ACEOF 25049 rm -f conftest.$ac_objext conftest$ac_exeext 25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25051 (eval $ac_link) 2>conftest.er1 25052 ac_status=$? 25053 grep -v '^ *+' conftest.er1 >conftest.err 25054 rm -f conftest.er1 25055 cat conftest.err >&5 25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25057 (exit $ac_status); } && 25058 { ac_try='test -z "$ac_c_werror_flag" 25059 || test ! -s conftest.err' 25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25061 (eval $ac_try) 2>&5 25062 ac_status=$? 25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25064 (exit $ac_status); }; } && 25065 { ac_try='test -s conftest$ac_exeext' 25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25067 (eval $ac_try) 2>&5 25068 ac_status=$? 25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25070 (exit $ac_status); }; }; then 25071 ac_cv_search_tputs="none required" 25072 else 25073 echo "$as_me: failed program was:" >&5 25074 sed 's/^/| /' conftest.$ac_ext >&5 25075 25076 fi 25077 rm -f conftest.err conftest.$ac_objext \ 25078 conftest$ac_exeext conftest.$ac_ext 25079 if test "$ac_cv_search_tputs" = no; then 25080 for ac_lib in ncurses termcap curses; do 25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25082 cat >conftest.$ac_ext <<_ACEOF 25083 /* confdefs.h. */ 25084 _ACEOF 25085 cat confdefs.h >>conftest.$ac_ext 25086 cat >>conftest.$ac_ext <<_ACEOF 25087 /* end confdefs.h. */ 25088 25089 /* Override any gcc2 internal prototype to avoid an error. */ 25090 #ifdef __cplusplus 25091 extern "C" 25092 #endif 25093 /* We use char because int might match the return type of a gcc2 25094 builtin and then its argument prototype would still apply. */ 25095 char tputs (); 25096 int 25097 main () 25098 { 25099 tputs (); 25100 ; 25101 return 0; 25102 } 25103 _ACEOF 25104 rm -f conftest.$ac_objext conftest$ac_exeext 25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25106 (eval $ac_link) 2>conftest.er1 25107 ac_status=$? 25108 grep -v '^ *+' conftest.er1 >conftest.err 25109 rm -f conftest.er1 25110 cat conftest.err >&5 25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25112 (exit $ac_status); } && 25113 { ac_try='test -z "$ac_c_werror_flag" 25114 || test ! -s conftest.err' 25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25116 (eval $ac_try) 2>&5 25117 ac_status=$? 25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25119 (exit $ac_status); }; } && 25120 { ac_try='test -s conftest$ac_exeext' 25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25122 (eval $ac_try) 2>&5 25123 ac_status=$? 25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25125 (exit $ac_status); }; }; then 25126 ac_cv_search_tputs="-l$ac_lib" 25127 break 25128 else 25129 echo "$as_me: failed program was:" >&5 25130 sed 's/^/| /' conftest.$ac_ext >&5 25131 25132 fi 25133 rm -f conftest.err conftest.$ac_objext \ 25134 conftest$ac_exeext conftest.$ac_ext 25135 done 25136 fi 25137 LIBS=$ac_func_search_save_LIBS 25138 fi 25139 echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 25140 echo "${ECHO_T}$ac_cv_search_tputs" >&6 25141 if test "$ac_cv_search_tputs" != no; then 25142 test "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS" 25143 25144 else 25145 coin_has_readline=no 25146 fi 25147 25148 fi 25149 25150 # Now we check for readline 25151 if test $coin_has_readline = yes; then 25152 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 25153 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 25154 if test "${ac_cv_lib_readline_readline+set}" = set; then 25155 echo $ECHO_N "(cached) $ECHO_C" >&6 25156 else 25157 ac_check_lib_save_LIBS=$LIBS 25158 LIBS="-lreadline $LIBS" 25159 cat >conftest.$ac_ext <<_ACEOF 25160 /* confdefs.h. */ 25161 _ACEOF 25162 cat confdefs.h >>conftest.$ac_ext 25163 cat >>conftest.$ac_ext <<_ACEOF 25164 /* end confdefs.h. */ 25165 25166 /* Override any gcc2 internal prototype to avoid an error. */ 25167 #ifdef __cplusplus 25168 extern "C" 25169 #endif 25170 /* We use char because int might match the return type of a gcc2 25171 builtin and then its argument prototype would still apply. */ 25172 char readline (); 25173 int 25174 main () 25175 { 25176 readline (); 25177 ; 25178 return 0; 25179 } 25180 _ACEOF 25181 rm -f conftest.$ac_objext conftest$ac_exeext 25182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25183 (eval $ac_link) 2>conftest.er1 25184 ac_status=$? 25185 grep -v '^ *+' conftest.er1 >conftest.err 25186 rm -f conftest.er1 25187 cat conftest.err >&5 25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25189 (exit $ac_status); } && 25190 { ac_try='test -z "$ac_c_werror_flag" 25191 || test ! -s conftest.err' 25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25193 (eval $ac_try) 2>&5 25194 ac_status=$? 25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25196 (exit $ac_status); }; } && 25197 { ac_try='test -s conftest$ac_exeext' 25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25199 (eval $ac_try) 2>&5 25200 ac_status=$? 25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25202 (exit $ac_status); }; }; then 25203 ac_cv_lib_readline_readline=yes 25204 else 25205 echo "$as_me: failed program was:" >&5 25206 sed 's/^/| /' conftest.$ac_ext >&5 25207 25208 ac_cv_lib_readline_readline=no 25209 fi 25210 rm -f conftest.err conftest.$ac_objext \ 25211 conftest$ac_exeext conftest.$ac_ext 25212 LIBS=$ac_check_lib_save_LIBS 25213 fi 25214 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 25215 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 25216 if test $ac_cv_lib_readline_readline = yes; then 25217 : 25218 else 25219 coin_has_readline=no 25220 fi 25221 25222 fi 25223 25224 if test $coin_has_readline = yes; then 25225 25226 SCIPLIB_LIBS="-lreadline $LIBS $SCIPLIB_LIBS" 25227 SCIPLIB_PCLIBS="-lreadline $LIBS $SCIPLIB_PCLIBS" 25228 SCIPLIB_LIBS_INSTALLED="-lreadline $LIBS $SCIPLIB_LIBS_INSTALLED" 25229 25230 25231 cat >>confdefs.h <<\_ACEOF 25232 #define COIN_HAS_READLINE 1 25233 _ACEOF 25234 25235 fi 25236 25237 LIBS="$coin_save_LIBS" 25238 fi 25239 25240 if test $coin_has_readline = yes; then 25241 EXTRAFLAGS="$EXTRAFLAGS -DWITH_READLINE" 24667 25242 fi 24668 25243 -
ThirdParty/SCIP/trunk/configure.ac
r2419 r2429 205 205 fi 206 206 207 AC_COIN_CHECK_GMP(SCIPLib) 208 if test $coin_has_gmp = yes; then 209 EXTRAFLAGS="$EXTRAFLAGS -DWITH_GMP" 210 fi 211 212 AC_COIN_CHECK_GNU_READLINE(SCIPLib) 213 if test $coin_has_readline = yes; then 214 EXTRAFLAGS="$EXTRAFLAGS -DWITH_READLINE" 215 fi 216 207 217 AC_CHECK_MEMBER(struct sigaction.sa_handler,, 208 218 [EXTRAFLAGS="$EXTRAFLAGS -DNO_SIGACTION"],
Note: See TracChangeset
for help on using the changeset viewer.