Changeset 942 for ThirdParty/Glpk/trunk/configure
- Timestamp:
- Feb 24, 2008 11:27:53 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Glpk/trunk/configure
r940 r942 10 10 # 11 11 # 12 # Copyright 2007 Stefan Vigerske and others.12 # Copyright 2007-2008 Stefan Vigerske and others. 13 13 # All Rights Reserved. 14 14 # This file is part of the open source package Coin which is distributed … … 1055 1055 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1056 1056 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1057 --enable-debug compile all projects with debug options tests1058 --enable-debug-glpk compile this project (GLPK) with debug options1059 1057 --enable-doscompile Under Cygwin, compile so that executables run under 1060 1058 DOS. Set to mingw to use gcc/g++/ld with … … 1079 1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1080 1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1081 --with-glpk-verbosity specify the debug verbosity level for project GLPK1082 --with-glpk-checklevel specify the sanity check level for project GLPK1083 1079 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1084 1080 --with-pic try to use only PIC/non-PIC objects [default=use … … 1215 1211 1216 1212 1217 Copyright 2007 Stefan Vigerske and others.1213 Copyright 2007-2008 Stefan Vigerske and others. 1218 1214 All Rights Reserved. 1219 1215 This file is part of the open source package Coin which is distributed … … 1602 1598 1603 1599 1604 1605 1600 ############################################################################# 1606 1601 # Standard build tool stuff # … … 1669 1664 #and we couldn't fix it anyway 1670 1665 coin_skip_warn_cflags=yes 1671 1672 # Check if user wants to produce debugging code1673 1674 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&51675 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&61676 1677 # Check whether --enable-debug or --disable-debug was given.1678 if test "${enable_debug+set}" = set; then1679 enableval="$enable_debug"1680 case "${enableval}" in1681 yes) coin_debug_compile=true1682 if test "${enable_shared+set}" = set; then :; else1683 enable_shared=no1684 fi1685 ;;1686 no) coin_debug_compile=false1687 ;;1688 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&51689 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}1690 { (exit 1); exit 1; }; }1691 ;;1692 esac1693 else1694 coin_debug_compile=false1695 fi;1696 1697 # Check whether --enable-debug-glpk or --disable-debug-glpk was given.1698 if test "${enable_debug_glpk+set}" = set; then1699 enableval="$enable_debug_glpk"1700 case "${enableval}" in1701 yes) coin_debug_compile=true1702 enable_shared=no1703 ;;1704 no) coin_debug_compile=false1705 ;;1706 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&51707 echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}1708 { (exit 1); exit 1; }; }1709 ;;1710 esac1711 else1712 :1713 fi;1714 1715 # m4_ifvaln([GLPK],1716 1717 if test $coin_debug_compile = true; then1718 echo "$as_me:$LINENO: result: yes" >&51719 echo "${ECHO_T}yes" >&61720 else1721 echo "$as_me:$LINENO: result: no" >&51722 echo "${ECHO_T}no" >&61723 fi1724 1725 1726 # Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.1727 if test "${with_glpk_verbosity+set}" = set; then1728 withval="$with_glpk_verbosity"1729 if test "$withval" = yes; then1730 withval=11731 fi1732 coin_glpk_verbosity=$withval1733 else1734 coin_glpk_verbosity=01735 fi;1736 1737 cat >>confdefs.h <<_ACEOF1738 #define COIN_GLPK_VERBOSITY $coin_glpk_verbosity1739 _ACEOF1740 1741 1742 1743 # Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.1744 if test "${with_glpk_checklevel+set}" = set; then1745 withval="$with_glpk_checklevel"1746 if test "$withval" = yes; then1747 withval=11748 fi1749 coin_glpk_checklevel=$withval1750 else1751 coin_glpk_checklevel=01752 fi;1753 1754 cat >>confdefs.h <<_ACEOF1755 #define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel1756 _ACEOF1757 1758 1759 # We use the following variable to have a string with the upper case1760 # version of the project name1761 COIN_PRJCT=GLPK1762 1763 1764 # m4_ifvaln([GLPK],1765 1766 1767 1666 1768 1667 # Get the name of the C compiler … … 4706 4605 *-*-irix6*) 4707 4606 # Find out which ABI we are using. 4708 echo '#line 4 708"configure"' > conftest.$ac_ext4607 echo '#line 4607 "configure"' > conftest.$ac_ext 4709 4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4710 4609 (eval $ac_compile) 2>&5 … … 6305 6204 6306 6205 # Provide some information about the compiler. 6307 echo "$as_me:6 307:" \6206 echo "$as_me:6206:" \ 6308 6207 "checking for Fortran 77 compiler version" >&5 6309 6208 ac_compiler=`set X $ac_compile; echo $2` … … 7372 7271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7373 7272 -e 's:$: $lt_compiler_flag:'` 7374 (eval echo "\"\$as_me:7 374: $lt_compile\"" >&5)7273 (eval echo "\"\$as_me:7273: $lt_compile\"" >&5) 7375 7274 (eval "$lt_compile" 2>conftest.err) 7376 7275 ac_status=$? 7377 7276 cat conftest.err >&5 7378 echo "$as_me:7 378: \$? = $ac_status" >&57277 echo "$as_me:7277: \$? = $ac_status" >&5 7379 7278 if (exit $ac_status) && test -s "$ac_outfile"; then 7380 7279 # The compiler can only warn and ignore the option if not recognized … … 7640 7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7641 7540 -e 's:$: $lt_compiler_flag:'` 7642 (eval echo "\"\$as_me:7 642: $lt_compile\"" >&5)7541 (eval echo "\"\$as_me:7541: $lt_compile\"" >&5) 7643 7542 (eval "$lt_compile" 2>conftest.err) 7644 7543 ac_status=$? 7645 7544 cat conftest.err >&5 7646 echo "$as_me:7 646: \$? = $ac_status" >&57545 echo "$as_me:7545: \$? = $ac_status" >&5 7647 7546 if (exit $ac_status) && test -s "$ac_outfile"; then 7648 7547 # The compiler can only warn and ignore the option if not recognized … … 7744 7643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7745 7644 -e 's:$: $lt_compiler_flag:'` 7746 (eval echo "\"\$as_me:7 746: $lt_compile\"" >&5)7645 (eval echo "\"\$as_me:7645: $lt_compile\"" >&5) 7747 7646 (eval "$lt_compile" 2>out/conftest.err) 7748 7647 ac_status=$? 7749 7648 cat out/conftest.err >&5 7750 echo "$as_me:7 750: \$? = $ac_status" >&57649 echo "$as_me:7649: \$? = $ac_status" >&5 7751 7650 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7752 7651 then … … 10089 9988 lt_status=$lt_dlunknown 10090 9989 cat > conftest.$ac_ext <<EOF 10091 #line 10091"configure"9990 #line 9990 "configure" 10092 9991 #include "confdefs.h" 10093 9992 … … 10189 10088 lt_status=$lt_dlunknown 10190 10089 cat > conftest.$ac_ext <<EOF 10191 #line 10 191"configure"10090 #line 10090 "configure" 10192 10091 #include "confdefs.h" 10193 10092 … … 12533 12432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12534 12433 -e 's:$: $lt_compiler_flag:'` 12535 (eval echo "\"\$as_me:12 535: $lt_compile\"" >&5)12434 (eval echo "\"\$as_me:12434: $lt_compile\"" >&5) 12536 12435 (eval "$lt_compile" 2>conftest.err) 12537 12436 ac_status=$? 12538 12437 cat conftest.err >&5 12539 echo "$as_me:12 539: \$? = $ac_status" >&512438 echo "$as_me:12438: \$? = $ac_status" >&5 12540 12439 if (exit $ac_status) && test -s "$ac_outfile"; then 12541 12440 # The compiler can only warn and ignore the option if not recognized … … 12637 12536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12638 12537 -e 's:$: $lt_compiler_flag:'` 12639 (eval echo "\"\$as_me:12 639: $lt_compile\"" >&5)12538 (eval echo "\"\$as_me:12538: $lt_compile\"" >&5) 12640 12539 (eval "$lt_compile" 2>out/conftest.err) 12641 12540 ac_status=$? 12642 12541 cat out/conftest.err >&5 12643 echo "$as_me:12 643: \$? = $ac_status" >&512542 echo "$as_me:12542: \$? = $ac_status" >&5 12644 12543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12645 12544 then … … 14207 14106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14208 14107 -e 's:$: $lt_compiler_flag:'` 14209 (eval echo "\"\$as_me:14 209: $lt_compile\"" >&5)14108 (eval echo "\"\$as_me:14108: $lt_compile\"" >&5) 14210 14109 (eval "$lt_compile" 2>conftest.err) 14211 14110 ac_status=$? 14212 14111 cat conftest.err >&5 14213 echo "$as_me:14 213: \$? = $ac_status" >&514112 echo "$as_me:14112: \$? = $ac_status" >&5 14214 14113 if (exit $ac_status) && test -s "$ac_outfile"; then 14215 14114 # The compiler can only warn and ignore the option if not recognized … … 14311 14210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14312 14211 -e 's:$: $lt_compiler_flag:'` 14313 (eval echo "\"\$as_me:14 313: $lt_compile\"" >&5)14212 (eval echo "\"\$as_me:14212: $lt_compile\"" >&5) 14314 14213 (eval "$lt_compile" 2>out/conftest.err) 14315 14214 ac_status=$? 14316 14215 cat out/conftest.err >&5 14317 echo "$as_me:14 317: \$? = $ac_status" >&514216 echo "$as_me:14216: \$? = $ac_status" >&5 14318 14217 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14319 14218 then … … 16518 16417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16519 16418 -e 's:$: $lt_compiler_flag:'` 16520 (eval echo "\"\$as_me:16 520: $lt_compile\"" >&5)16419 (eval echo "\"\$as_me:16419: $lt_compile\"" >&5) 16521 16420 (eval "$lt_compile" 2>conftest.err) 16522 16421 ac_status=$? 16523 16422 cat conftest.err >&5 16524 echo "$as_me:16 524: \$? = $ac_status" >&516423 echo "$as_me:16423: \$? = $ac_status" >&5 16525 16424 if (exit $ac_status) && test -s "$ac_outfile"; then 16526 16425 # The compiler can only warn and ignore the option if not recognized … … 16786 16685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16787 16686 -e 's:$: $lt_compiler_flag:'` 16788 (eval echo "\"\$as_me:16 788: $lt_compile\"" >&5)16687 (eval echo "\"\$as_me:16687: $lt_compile\"" >&5) 16789 16688 (eval "$lt_compile" 2>conftest.err) 16790 16689 ac_status=$? 16791 16690 cat conftest.err >&5 16792 echo "$as_me:16 792: \$? = $ac_status" >&516691 echo "$as_me:16691: \$? = $ac_status" >&5 16793 16692 if (exit $ac_status) && test -s "$ac_outfile"; then 16794 16693 # The compiler can only warn and ignore the option if not recognized … … 16890 16789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16891 16790 -e 's:$: $lt_compiler_flag:'` 16892 (eval echo "\"\$as_me:16 892: $lt_compile\"" >&5)16791 (eval echo "\"\$as_me:16791: $lt_compile\"" >&5) 16893 16792 (eval "$lt_compile" 2>out/conftest.err) 16894 16793 ac_status=$? 16895 16794 cat out/conftest.err >&5 16896 echo "$as_me:16 896: \$? = $ac_status" >&516795 echo "$as_me:16795: \$? = $ac_status" >&5 16897 16796 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16898 16797 then … … 19778 19677 } 19779 19678 19780 19781 for ac_func in vsnprintf19782 do19783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`19784 echo "$as_me:$LINENO: checking for $ac_func" >&519785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&619786 if eval "test \"\${$as_ac_var+set}\" = set"; then19787 echo $ECHO_N "(cached) $ECHO_C" >&619788 else19789 cat >conftest.$ac_ext <<_ACEOF19790 /* confdefs.h. */19791 _ACEOF19792 cat confdefs.h >>conftest.$ac_ext19793 cat >>conftest.$ac_ext <<_ACEOF19794 /* end confdefs.h. */19795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */19797 #define $ac_func innocuous_$ac_func19798 19799 /* System header to define __stub macros and hopefully few prototypes,19800 which can conflict with char $ac_func (); below.19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since19802 <limits.h> exists even on freestanding compilers. */19803 19804 #ifdef __STDC__19805 # include <limits.h>19806 #else19807 # include <assert.h>19808 #endif19809 19810 #undef $ac_func19811 19812 /* Override any gcc2 internal prototype to avoid an error. */19813 #ifdef __cplusplus19814 extern "C"19815 {19816 #endif19817 /* We use char because int might match the return type of a gcc219818 builtin and then its argument prototype would still apply. */19819 char $ac_func ();19820 /* The GNU C library defines this for functions which it implements19821 to always fail with ENOSYS. Some functions are actually named19822 something starting with __ and the normal name is an alias. */19823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)19824 choke me19825 #else19826 char (*f) () = $ac_func;19827 #endif19828 #ifdef __cplusplus19829 }19830 #endif19831 19832 int19833 main ()19834 {19835 return f != $ac_func;19836 ;19837 return 0;19838 }19839 _ACEOF19840 rm -f conftest.$ac_objext conftest$ac_exeext19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&519842 (eval $ac_link) 2>conftest.er119843 ac_status=$?19844 grep -v '^ *+' conftest.er1 >conftest.err19845 rm -f conftest.er119846 cat conftest.err >&519847 echo "$as_me:$LINENO: \$? = $ac_status" >&519848 (exit $ac_status); } &&19849 { ac_try='test -z "$ac_c_werror_flag"19850 || test ! -s conftest.err'19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&519852 (eval $ac_try) 2>&519853 ac_status=$?19854 echo "$as_me:$LINENO: \$? = $ac_status" >&519855 (exit $ac_status); }; } &&19856 { ac_try='test -s conftest$ac_exeext'19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&519858 (eval $ac_try) 2>&519859 ac_status=$?19860 echo "$as_me:$LINENO: \$? = $ac_status" >&519861 (exit $ac_status); }; }; then19862 eval "$as_ac_var=yes"19863 else19864 echo "$as_me: failed program was:" >&519865 sed 's/^/| /' conftest.$ac_ext >&519866 19867 eval "$as_ac_var=no"19868 fi19869 rm -f conftest.err conftest.$ac_objext \19870 conftest$ac_exeext conftest.$ac_ext19871 fi19872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&519873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&619874 if test `eval echo '${'$as_ac_var'}'` = yes; then19875 cat >>confdefs.h <<_ACEOF19876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 119877 _ACEOF19878 19879 fi19880 done19881 19882 19883 19679 ########################################################################### 19884 19680 # COIN_HAS_GLPK # … … 20160 19956 if test x"$use_thirdpartyglpk" = xbuild ; then 20161 19957 touch $MAKEOKFILE 19958 echo "$as_me:$LINENO: checking GLPK version" >&5 19959 echo $ECHO_N "checking GLPK version... $ECHO_C" >&6 19960 majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' ${GLPKINCDIR}/glpk.h` 19961 minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' ${GLPKINCDIR}/glpk.h` 19962 echo "$as_me:$LINENO: result: ${majorver}.${minorver}" >&5 19963 echo "${ECHO_T}${majorver}.${minorver}" >&6 19964 if test $majorver != 4 || test $minorver != 26 ; then 19965 { { echo "$as_me:$LINENO: error: \"Incorrect GLPK version. This build system is made for GLPK 4.26. Please update by rerunning get.GLPK\"" >&5 19966 echo "$as_me: error: \"Incorrect GLPK version. This build system is made for GLPK 4.26. Please update by rerunning get.GLPK\"" >&2;} 19967 { (exit 1); exit 1; }; } 19968 fi 20162 19969 else 20163 19970 if test x$coin_has_glpk = xtrue ; then
Note: See TracChangeset
for help on using the changeset viewer.