Changeset 1321 for ThirdParty/Glpk/trunk/configure
- Timestamp:
- Jul 11, 2009 3:24:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Glpk/trunk/configure
r1299 r1321 473 473 #endif" 474 474 475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GLPKOBJDIR COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1075 1075 --enable-glpk-libcheck use disable-glpk-libcheck to skip the 1076 1076 link check at configuration time 1077 --enable-gnu-packages compile with GNU packages (disabled by default) 1078 --enable-odbc enable MathProg ODBC support [default=auto] 1079 --enable-mysql enable MathProg MySQL support [default=auto] 1077 1080 1078 1081 Optional Packages: … … 4722 4725 *-*-irix6*) 4723 4726 # Find out which ABI we are using. 4724 echo '#line 472 4"configure"' > conftest.$ac_ext4727 echo '#line 4727 "configure"' > conftest.$ac_ext 4725 4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4726 4729 (eval $ac_compile) 2>&5 … … 6321 6324 6322 6325 # Provide some information about the compiler. 6323 echo "$as_me:632 3:" \6326 echo "$as_me:6326:" \ 6324 6327 "checking for Fortran 77 compiler version" >&5 6325 6328 ac_compiler=`set X $ac_compile; echo $2` … … 7388 7391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7389 7392 -e 's:$: $lt_compiler_flag:'` 7390 (eval echo "\"\$as_me:739 0: $lt_compile\"" >&5)7393 (eval echo "\"\$as_me:7393: $lt_compile\"" >&5) 7391 7394 (eval "$lt_compile" 2>conftest.err) 7392 7395 ac_status=$? 7393 7396 cat conftest.err >&5 7394 echo "$as_me:739 4: \$? = $ac_status" >&57397 echo "$as_me:7397: \$? = $ac_status" >&5 7395 7398 if (exit $ac_status) && test -s "$ac_outfile"; then 7396 7399 # The compiler can only warn and ignore the option if not recognized … … 7656 7659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7657 7660 -e 's:$: $lt_compiler_flag:'` 7658 (eval echo "\"\$as_me:76 58: $lt_compile\"" >&5)7661 (eval echo "\"\$as_me:7661: $lt_compile\"" >&5) 7659 7662 (eval "$lt_compile" 2>conftest.err) 7660 7663 ac_status=$? 7661 7664 cat conftest.err >&5 7662 echo "$as_me:766 2: \$? = $ac_status" >&57665 echo "$as_me:7665: \$? = $ac_status" >&5 7663 7666 if (exit $ac_status) && test -s "$ac_outfile"; then 7664 7667 # The compiler can only warn and ignore the option if not recognized … … 7760 7763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7761 7764 -e 's:$: $lt_compiler_flag:'` 7762 (eval echo "\"\$as_me:776 2: $lt_compile\"" >&5)7765 (eval echo "\"\$as_me:7765: $lt_compile\"" >&5) 7763 7766 (eval "$lt_compile" 2>out/conftest.err) 7764 7767 ac_status=$? 7765 7768 cat out/conftest.err >&5 7766 echo "$as_me:776 6: \$? = $ac_status" >&57769 echo "$as_me:7769: \$? = $ac_status" >&5 7767 7770 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7768 7771 then … … 10105 10108 lt_status=$lt_dlunknown 10106 10109 cat > conftest.$ac_ext <<EOF 10107 #line 101 07"configure"10110 #line 10110 "configure" 10108 10111 #include "confdefs.h" 10109 10112 … … 10205 10208 lt_status=$lt_dlunknown 10206 10209 cat > conftest.$ac_ext <<EOF 10207 #line 102 07"configure"10210 #line 10210 "configure" 10208 10211 #include "confdefs.h" 10209 10212 … … 12549 12552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12550 12553 -e 's:$: $lt_compiler_flag:'` 12551 (eval echo "\"\$as_me:1255 1: $lt_compile\"" >&5)12554 (eval echo "\"\$as_me:12554: $lt_compile\"" >&5) 12552 12555 (eval "$lt_compile" 2>conftest.err) 12553 12556 ac_status=$? 12554 12557 cat conftest.err >&5 12555 echo "$as_me:1255 5: \$? = $ac_status" >&512558 echo "$as_me:12558: \$? = $ac_status" >&5 12556 12559 if (exit $ac_status) && test -s "$ac_outfile"; then 12557 12560 # The compiler can only warn and ignore the option if not recognized … … 12653 12656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12654 12657 -e 's:$: $lt_compiler_flag:'` 12655 (eval echo "\"\$as_me:1265 5: $lt_compile\"" >&5)12658 (eval echo "\"\$as_me:12658: $lt_compile\"" >&5) 12656 12659 (eval "$lt_compile" 2>out/conftest.err) 12657 12660 ac_status=$? 12658 12661 cat out/conftest.err >&5 12659 echo "$as_me:126 59: \$? = $ac_status" >&512662 echo "$as_me:12662: \$? = $ac_status" >&5 12660 12663 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12661 12664 then … … 14223 14226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14224 14227 -e 's:$: $lt_compiler_flag:'` 14225 (eval echo "\"\$as_me:1422 5: $lt_compile\"" >&5)14228 (eval echo "\"\$as_me:14228: $lt_compile\"" >&5) 14226 14229 (eval "$lt_compile" 2>conftest.err) 14227 14230 ac_status=$? 14228 14231 cat conftest.err >&5 14229 echo "$as_me:142 29: \$? = $ac_status" >&514232 echo "$as_me:14232: \$? = $ac_status" >&5 14230 14233 if (exit $ac_status) && test -s "$ac_outfile"; then 14231 14234 # The compiler can only warn and ignore the option if not recognized … … 14327 14330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14328 14331 -e 's:$: $lt_compiler_flag:'` 14329 (eval echo "\"\$as_me:143 29: $lt_compile\"" >&5)14332 (eval echo "\"\$as_me:14332: $lt_compile\"" >&5) 14330 14333 (eval "$lt_compile" 2>out/conftest.err) 14331 14334 ac_status=$? 14332 14335 cat out/conftest.err >&5 14333 echo "$as_me:1433 3: \$? = $ac_status" >&514336 echo "$as_me:14336: \$? = $ac_status" >&5 14334 14337 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14335 14338 then … … 16534 16537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16535 16538 -e 's:$: $lt_compiler_flag:'` 16536 (eval echo "\"\$as_me:1653 6: $lt_compile\"" >&5)16539 (eval echo "\"\$as_me:16539: $lt_compile\"" >&5) 16537 16540 (eval "$lt_compile" 2>conftest.err) 16538 16541 ac_status=$? 16539 16542 cat conftest.err >&5 16540 echo "$as_me:1654 0: \$? = $ac_status" >&516543 echo "$as_me:16543: \$? = $ac_status" >&5 16541 16544 if (exit $ac_status) && test -s "$ac_outfile"; then 16542 16545 # The compiler can only warn and ignore the option if not recognized … … 16802 16805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16803 16806 -e 's:$: $lt_compiler_flag:'` 16804 (eval echo "\"\$as_me:1680 4: $lt_compile\"" >&5)16807 (eval echo "\"\$as_me:16807: $lt_compile\"" >&5) 16805 16808 (eval "$lt_compile" 2>conftest.err) 16806 16809 ac_status=$? 16807 16810 cat conftest.err >&5 16808 echo "$as_me:168 08: \$? = $ac_status" >&516811 echo "$as_me:16811: \$? = $ac_status" >&5 16809 16812 if (exit $ac_status) && test -s "$ac_outfile"; then 16810 16813 # The compiler can only warn and ignore the option if not recognized … … 16906 16909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16907 16910 -e 's:$: $lt_compiler_flag:'` 16908 (eval echo "\"\$as_me:169 08: $lt_compile\"" >&5)16911 (eval echo "\"\$as_me:16911: $lt_compile\"" >&5) 16909 16912 (eval "$lt_compile" 2>out/conftest.err) 16910 16913 ac_status=$? 16911 16914 cat out/conftest.err >&5 16912 echo "$as_me:1691 2: \$? = $ac_status" >&516915 echo "$as_me:16915: \$? = $ac_status" >&5 16913 16916 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16914 16917 then … … 20041 20044 coin_has_glpk=true 20042 20045 glpk_libcheck=no 20046 GLPKOBJDIR=`cd $coin_glpkobjdir; pwd` 20047 20043 20048 { echo "$as_me:$LINENO: Using Glpk in ThirdParty/Glpk" >&5 20044 20049 echo "$as_me: Using Glpk in ThirdParty/Glpk" >&6;} … … 20097 20102 20098 20103 20104 ########################################################################### 20105 # GNU packages and C functions # 20106 ########################################################################### 20107 20108 ADDLIBS= 20109 20110 ac_ext=c 20111 ac_cpp='$CPP $CPPFLAGS' 20112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20114 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20115 20116 20117 # Check whether --enable-gnu-packages or --disable-gnu-packages was given. 20118 if test "${enable_gnu_packages+set}" = set; then 20119 enableval="$enable_gnu_packages" 20120 coin_enable_gnu=$enableval 20121 else 20122 coin_enable_gnu=no 20123 fi; 20124 20125 20126 20127 20128 20129 20130 20131 coin_has_zlib=no 20132 if test $coin_enable_gnu = yes; then 20133 #if test x"" = x; then 20134 # hdr="#include <zlib.h>" 20135 #else 20136 # hdr="" 20137 #fi 20138 #AC_CHECK_HEADERS([zlib.h],[coin_has_zlib=yes],[],[$hdr]) 20139 20140 for ac_header in zlib.h 20141 do 20142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20143 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20144 echo "$as_me:$LINENO: checking for $ac_header" >&5 20145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20146 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20147 echo $ECHO_N "(cached) $ECHO_C" >&6 20148 fi 20149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20151 else 20152 # Is the header compilable? 20153 echo "$as_me:$LINENO: checking $ac_header usability" >&5 20154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20155 cat >conftest.$ac_ext <<_ACEOF 20156 /* confdefs.h. */ 20157 _ACEOF 20158 cat confdefs.h >>conftest.$ac_ext 20159 cat >>conftest.$ac_ext <<_ACEOF 20160 /* end confdefs.h. */ 20161 $ac_includes_default 20162 #include <$ac_header> 20163 _ACEOF 20164 rm -f conftest.$ac_objext 20165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20166 (eval $ac_compile) 2>conftest.er1 20167 ac_status=$? 20168 grep -v '^ *+' conftest.er1 >conftest.err 20169 rm -f conftest.er1 20170 cat conftest.err >&5 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } && 20173 { ac_try='test -z "$ac_c_werror_flag" 20174 || test ! -s conftest.err' 20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20176 (eval $ac_try) 2>&5 20177 ac_status=$? 20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20179 (exit $ac_status); }; } && 20180 { ac_try='test -s conftest.$ac_objext' 20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20182 (eval $ac_try) 2>&5 20183 ac_status=$? 20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20185 (exit $ac_status); }; }; then 20186 ac_header_compiler=yes 20187 else 20188 echo "$as_me: failed program was:" >&5 20189 sed 's/^/| /' conftest.$ac_ext >&5 20190 20191 ac_header_compiler=no 20192 fi 20193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20195 echo "${ECHO_T}$ac_header_compiler" >&6 20196 20197 # Is the header present? 20198 echo "$as_me:$LINENO: checking $ac_header presence" >&5 20199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20200 cat >conftest.$ac_ext <<_ACEOF 20201 /* confdefs.h. */ 20202 _ACEOF 20203 cat confdefs.h >>conftest.$ac_ext 20204 cat >>conftest.$ac_ext <<_ACEOF 20205 /* end confdefs.h. */ 20206 #include <$ac_header> 20207 _ACEOF 20208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20210 ac_status=$? 20211 grep -v '^ *+' conftest.er1 >conftest.err 20212 rm -f conftest.er1 20213 cat conftest.err >&5 20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20215 (exit $ac_status); } >/dev/null; then 20216 if test -s conftest.err; then 20217 ac_cpp_err=$ac_c_preproc_warn_flag 20218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20219 else 20220 ac_cpp_err= 20221 fi 20222 else 20223 ac_cpp_err=yes 20224 fi 20225 if test -z "$ac_cpp_err"; then 20226 ac_header_preproc=yes 20227 else 20228 echo "$as_me: failed program was:" >&5 20229 sed 's/^/| /' conftest.$ac_ext >&5 20230 20231 ac_header_preproc=no 20232 fi 20233 rm -f conftest.err conftest.$ac_ext 20234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20235 echo "${ECHO_T}$ac_header_preproc" >&6 20236 20237 # So? What about this header? 20238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20239 yes:no: ) 20240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20244 ac_header_preproc=yes 20245 ;; 20246 no:yes:* ) 20247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20259 ( 20260 cat <<\_ASBOX 20261 ## --------------------------------------------------------------- ## 20262 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 20263 ## --------------------------------------------------------------- ## 20264 _ASBOX 20265 ) | 20266 sed "s/^/$as_me: WARNING: /" >&2 20267 ;; 20268 esac 20269 echo "$as_me:$LINENO: checking for $ac_header" >&5 20270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20271 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20272 echo $ECHO_N "(cached) $ECHO_C" >&6 20273 else 20274 eval "$as_ac_Header=\$ac_header_preproc" 20275 fi 20276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20278 20279 fi 20280 if test `eval echo '${'$as_ac_Header'}'` = yes; then 20281 cat >>confdefs.h <<_ACEOF 20282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20283 _ACEOF 20284 coin_has_zlib=yes 20285 fi 20286 20287 done 20288 20289 20290 20291 if test $coin_has_zlib = yes; then 20292 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 20293 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 20294 if test "${ac_cv_lib_z_gzopen+set}" = set; then 20295 echo $ECHO_N "(cached) $ECHO_C" >&6 20296 else 20297 ac_check_lib_save_LIBS=$LIBS 20298 LIBS="-lz $LIBS" 20299 cat >conftest.$ac_ext <<_ACEOF 20300 /* confdefs.h. */ 20301 _ACEOF 20302 cat confdefs.h >>conftest.$ac_ext 20303 cat >>conftest.$ac_ext <<_ACEOF 20304 /* end confdefs.h. */ 20305 20306 /* Override any gcc2 internal prototype to avoid an error. */ 20307 #ifdef __cplusplus 20308 extern "C" 20309 #endif 20310 /* We use char because int might match the return type of a gcc2 20311 builtin and then its argument prototype would still apply. */ 20312 char gzopen (); 20313 int 20314 main () 20315 { 20316 gzopen (); 20317 ; 20318 return 0; 20319 } 20320 _ACEOF 20321 rm -f conftest.$ac_objext conftest$ac_exeext 20322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20323 (eval $ac_link) 2>conftest.er1 20324 ac_status=$? 20325 grep -v '^ *+' conftest.er1 >conftest.err 20326 rm -f conftest.er1 20327 cat conftest.err >&5 20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20329 (exit $ac_status); } && 20330 { ac_try='test -z "$ac_c_werror_flag" 20331 || test ! -s conftest.err' 20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20333 (eval $ac_try) 2>&5 20334 ac_status=$? 20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20336 (exit $ac_status); }; } && 20337 { ac_try='test -s conftest$ac_exeext' 20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20339 (eval $ac_try) 2>&5 20340 ac_status=$? 20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20342 (exit $ac_status); }; }; then 20343 ac_cv_lib_z_gzopen=yes 20344 else 20345 echo "$as_me: failed program was:" >&5 20346 sed 's/^/| /' conftest.$ac_ext >&5 20347 20348 ac_cv_lib_z_gzopen=no 20349 fi 20350 rm -f conftest.err conftest.$ac_objext \ 20351 conftest$ac_exeext conftest.$ac_ext 20352 LIBS=$ac_check_lib_save_LIBS 20353 fi 20354 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 20355 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 20356 if test $ac_cv_lib_z_gzopen = yes; then 20357 ADDLIBS="-lz $ADDLIBS" 20358 else 20359 coin_has_zlib=no 20360 fi 20361 20362 fi 20363 20364 if test $coin_has_zlib = yes; then 20365 20366 cat >>confdefs.h <<\_ACEOF 20367 #define COIN_HAS_ZLIB 1 20368 _ACEOF 20369 20370 fi 20371 fi 20372 20373 20374 20375 if test x$coin_has_zlib = xyes; then 20376 COIN_HAS_ZLIB_TRUE= 20377 COIN_HAS_ZLIB_FALSE='#' 20378 else 20379 COIN_HAS_ZLIB_TRUE='#' 20380 COIN_HAS_ZLIB_FALSE= 20381 fi 20382 20383 20384 if test $coin_has_zlib = "yes"; then 20385 20386 cat >>confdefs.h <<\_ACEOF 20387 #define HAVE_ZLIB 1 20388 _ACEOF 20389 20390 fi 20391 20392 if test $coin_enable_gnu = yes; then 20393 coin_has_gmp=no 20394 #if test x"" = x; then 20395 # hdr="#include <gmp.h>" 20396 #else 20397 # hdr="" 20398 #fi 20399 #AC_CHECK_HEADERS([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])],[],[$hdr]) 20400 20401 for ac_header in gmp.h 20402 do 20403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20404 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20405 echo "$as_me:$LINENO: checking for $ac_header" >&5 20406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20407 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20408 echo $ECHO_N "(cached) $ECHO_C" >&6 20409 fi 20410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20412 else 20413 # Is the header compilable? 20414 echo "$as_me:$LINENO: checking $ac_header usability" >&5 20415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20416 cat >conftest.$ac_ext <<_ACEOF 20417 /* confdefs.h. */ 20418 _ACEOF 20419 cat confdefs.h >>conftest.$ac_ext 20420 cat >>conftest.$ac_ext <<_ACEOF 20421 /* end confdefs.h. */ 20422 $ac_includes_default 20423 #include <$ac_header> 20424 _ACEOF 20425 rm -f conftest.$ac_objext 20426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20427 (eval $ac_compile) 2>conftest.er1 20428 ac_status=$? 20429 grep -v '^ *+' conftest.er1 >conftest.err 20430 rm -f conftest.er1 20431 cat conftest.err >&5 20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20433 (exit $ac_status); } && 20434 { ac_try='test -z "$ac_c_werror_flag" 20435 || test ! -s conftest.err' 20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20437 (eval $ac_try) 2>&5 20438 ac_status=$? 20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20440 (exit $ac_status); }; } && 20441 { ac_try='test -s conftest.$ac_objext' 20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20443 (eval $ac_try) 2>&5 20444 ac_status=$? 20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20446 (exit $ac_status); }; }; then 20447 ac_header_compiler=yes 20448 else 20449 echo "$as_me: failed program was:" >&5 20450 sed 's/^/| /' conftest.$ac_ext >&5 20451 20452 ac_header_compiler=no 20453 fi 20454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20456 echo "${ECHO_T}$ac_header_compiler" >&6 20457 20458 # Is the header present? 20459 echo "$as_me:$LINENO: checking $ac_header presence" >&5 20460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20461 cat >conftest.$ac_ext <<_ACEOF 20462 /* confdefs.h. */ 20463 _ACEOF 20464 cat confdefs.h >>conftest.$ac_ext 20465 cat >>conftest.$ac_ext <<_ACEOF 20466 /* end confdefs.h. */ 20467 #include <$ac_header> 20468 _ACEOF 20469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20471 ac_status=$? 20472 grep -v '^ *+' conftest.er1 >conftest.err 20473 rm -f conftest.er1 20474 cat conftest.err >&5 20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20476 (exit $ac_status); } >/dev/null; then 20477 if test -s conftest.err; then 20478 ac_cpp_err=$ac_c_preproc_warn_flag 20479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20480 else 20481 ac_cpp_err= 20482 fi 20483 else 20484 ac_cpp_err=yes 20485 fi 20486 if test -z "$ac_cpp_err"; then 20487 ac_header_preproc=yes 20488 else 20489 echo "$as_me: failed program was:" >&5 20490 sed 's/^/| /' conftest.$ac_ext >&5 20491 20492 ac_header_preproc=no 20493 fi 20494 rm -f conftest.err conftest.$ac_ext 20495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20496 echo "${ECHO_T}$ac_header_preproc" >&6 20497 20498 # So? What about this header? 20499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20500 yes:no: ) 20501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20505 ac_header_preproc=yes 20506 ;; 20507 no:yes:* ) 20508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20520 ( 20521 cat <<\_ASBOX 20522 ## --------------------------------------------------------------- ## 20523 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 20524 ## --------------------------------------------------------------- ## 20525 _ASBOX 20526 ) | 20527 sed "s/^/$as_me: WARNING: /" >&2 20528 ;; 20529 esac 20530 echo "$as_me:$LINENO: checking for $ac_header" >&5 20531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20532 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20533 echo $ECHO_N "(cached) $ECHO_C" >&6 20534 else 20535 eval "$as_ac_Header=\$ac_header_preproc" 20536 fi 20537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20539 20540 fi 20541 if test `eval echo '${'$as_ac_Header'}'` = yes; then 20542 cat >>confdefs.h <<_ACEOF 20543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20544 _ACEOF 20545 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5 20546 echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6 20547 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then 20548 echo $ECHO_N "(cached) $ECHO_C" >&6 20549 else 20550 ac_check_lib_save_LIBS=$LIBS 20551 LIBS="-lgmp $LIBS" 20552 cat >conftest.$ac_ext <<_ACEOF 20553 /* confdefs.h. */ 20554 _ACEOF 20555 cat confdefs.h >>conftest.$ac_ext 20556 cat >>conftest.$ac_ext <<_ACEOF 20557 /* end confdefs.h. */ 20558 20559 /* Override any gcc2 internal prototype to avoid an error. */ 20560 #ifdef __cplusplus 20561 extern "C" 20562 #endif 20563 /* We use char because int might match the return type of a gcc2 20564 builtin and then its argument prototype would still apply. */ 20565 char __gmpz_init (); 20566 int 20567 main () 20568 { 20569 __gmpz_init (); 20570 ; 20571 return 0; 20572 } 20573 _ACEOF 20574 rm -f conftest.$ac_objext conftest$ac_exeext 20575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20576 (eval $ac_link) 2>conftest.er1 20577 ac_status=$? 20578 grep -v '^ *+' conftest.er1 >conftest.err 20579 rm -f conftest.er1 20580 cat conftest.err >&5 20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20582 (exit $ac_status); } && 20583 { ac_try='test -z "$ac_c_werror_flag" 20584 || test ! -s conftest.err' 20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20586 (eval $ac_try) 2>&5 20587 ac_status=$? 20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20589 (exit $ac_status); }; } && 20590 { ac_try='test -s conftest$ac_exeext' 20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20592 (eval $ac_try) 2>&5 20593 ac_status=$? 20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20595 (exit $ac_status); }; }; then 20596 ac_cv_lib_gmp___gmpz_init=yes 20597 else 20598 echo "$as_me: failed program was:" >&5 20599 sed 's/^/| /' conftest.$ac_ext >&5 20600 20601 ac_cv_lib_gmp___gmpz_init=no 20602 fi 20603 rm -f conftest.err conftest.$ac_objext \ 20604 conftest$ac_exeext conftest.$ac_ext 20605 LIBS=$ac_check_lib_save_LIBS 20606 fi 20607 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5 20608 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6 20609 if test $ac_cv_lib_gmp___gmpz_init = yes; then 20610 coin_has_gmp=yes 20611 fi 20612 20613 fi 20614 20615 done 20616 20617 20618 if test $coin_has_gmp = yes; then 20619 20620 cat >>confdefs.h <<\_ACEOF 20621 #define HAVE_GMP 1 20622 _ACEOF 20623 20624 ADDLIBS="-lgmp $ADDLIBS" 20625 fi 20626 fi 20627 20628 echo "$as_me:$LINENO: checking for vsnprintf" >&5 20629 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 20630 if test "${ac_cv_func_vsnprintf+set}" = set; then 20631 echo $ECHO_N "(cached) $ECHO_C" >&6 20632 else 20633 cat >conftest.$ac_ext <<_ACEOF 20634 /* confdefs.h. */ 20635 _ACEOF 20636 cat confdefs.h >>conftest.$ac_ext 20637 cat >>conftest.$ac_ext <<_ACEOF 20638 /* end confdefs.h. */ 20639 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. 20640 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20641 #define vsnprintf innocuous_vsnprintf 20642 20643 /* System header to define __stub macros and hopefully few prototypes, 20644 which can conflict with char vsnprintf (); below. 20645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20646 <limits.h> exists even on freestanding compilers. */ 20647 20648 #ifdef __STDC__ 20649 # include <limits.h> 20650 #else 20651 # include <assert.h> 20652 #endif 20653 20654 #undef vsnprintf 20655 20656 /* Override any gcc2 internal prototype to avoid an error. */ 20657 #ifdef __cplusplus 20658 extern "C" 20659 { 20660 #endif 20661 /* We use char because int might match the return type of a gcc2 20662 builtin and then its argument prototype would still apply. */ 20663 char vsnprintf (); 20664 /* The GNU C library defines this for functions which it implements 20665 to always fail with ENOSYS. Some functions are actually named 20666 something starting with __ and the normal name is an alias. */ 20667 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) 20668 choke me 20669 #else 20670 char (*f) () = vsnprintf; 20671 #endif 20672 #ifdef __cplusplus 20673 } 20674 #endif 20675 20676 int 20677 main () 20678 { 20679 return f != vsnprintf; 20680 ; 20681 return 0; 20682 } 20683 _ACEOF 20684 rm -f conftest.$ac_objext conftest$ac_exeext 20685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20686 (eval $ac_link) 2>conftest.er1 20687 ac_status=$? 20688 grep -v '^ *+' conftest.er1 >conftest.err 20689 rm -f conftest.er1 20690 cat conftest.err >&5 20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20692 (exit $ac_status); } && 20693 { ac_try='test -z "$ac_c_werror_flag" 20694 || test ! -s conftest.err' 20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20696 (eval $ac_try) 2>&5 20697 ac_status=$? 20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20699 (exit $ac_status); }; } && 20700 { ac_try='test -s conftest$ac_exeext' 20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20702 (eval $ac_try) 2>&5 20703 ac_status=$? 20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20705 (exit $ac_status); }; }; then 20706 ac_cv_func_vsnprintf=yes 20707 else 20708 echo "$as_me: failed program was:" >&5 20709 sed 's/^/| /' conftest.$ac_ext >&5 20710 20711 ac_cv_func_vsnprintf=no 20712 fi 20713 rm -f conftest.err conftest.$ac_objext \ 20714 conftest$ac_exeext conftest.$ac_ext 20715 fi 20716 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 20717 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 20718 20719 20720 ac_ext=c 20721 ac_cpp='$CPP $CPPFLAGS' 20722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20724 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20725 20726 20727 ########################################################################### 20728 # Database connectivity # 20729 ########################################################################### 20730 20731 #whether we have any means to load shared libraries 20732 enable_dl=no 20733 20734 ac_ext=c 20735 ac_cpp='$CPP $CPPFLAGS' 20736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20738 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20739 20740 20741 #if test x"" = x; then 20742 # hdr="#include <dlfcn.h>" 20743 #else 20744 # hdr="" 20745 #fi 20746 #AC_CHECK_HEADERS([dlfcn.h],[enable_dl=yes],[],[$hdr]) 20747 20748 for ac_header in dlfcn.h 20749 do 20750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20751 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20752 echo "$as_me:$LINENO: checking for $ac_header" >&5 20753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20754 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20755 echo $ECHO_N "(cached) $ECHO_C" >&6 20756 fi 20757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20759 else 20760 # Is the header compilable? 20761 echo "$as_me:$LINENO: checking $ac_header usability" >&5 20762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20763 cat >conftest.$ac_ext <<_ACEOF 20764 /* confdefs.h. */ 20765 _ACEOF 20766 cat confdefs.h >>conftest.$ac_ext 20767 cat >>conftest.$ac_ext <<_ACEOF 20768 /* end confdefs.h. */ 20769 $ac_includes_default 20770 #include <$ac_header> 20771 _ACEOF 20772 rm -f conftest.$ac_objext 20773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20774 (eval $ac_compile) 2>conftest.er1 20775 ac_status=$? 20776 grep -v '^ *+' conftest.er1 >conftest.err 20777 rm -f conftest.er1 20778 cat conftest.err >&5 20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20780 (exit $ac_status); } && 20781 { ac_try='test -z "$ac_c_werror_flag" 20782 || test ! -s conftest.err' 20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20784 (eval $ac_try) 2>&5 20785 ac_status=$? 20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20787 (exit $ac_status); }; } && 20788 { ac_try='test -s conftest.$ac_objext' 20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20790 (eval $ac_try) 2>&5 20791 ac_status=$? 20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20793 (exit $ac_status); }; }; then 20794 ac_header_compiler=yes 20795 else 20796 echo "$as_me: failed program was:" >&5 20797 sed 's/^/| /' conftest.$ac_ext >&5 20798 20799 ac_header_compiler=no 20800 fi 20801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20803 echo "${ECHO_T}$ac_header_compiler" >&6 20804 20805 # Is the header present? 20806 echo "$as_me:$LINENO: checking $ac_header presence" >&5 20807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20808 cat >conftest.$ac_ext <<_ACEOF 20809 /* confdefs.h. */ 20810 _ACEOF 20811 cat confdefs.h >>conftest.$ac_ext 20812 cat >>conftest.$ac_ext <<_ACEOF 20813 /* end confdefs.h. */ 20814 #include <$ac_header> 20815 _ACEOF 20816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20818 ac_status=$? 20819 grep -v '^ *+' conftest.er1 >conftest.err 20820 rm -f conftest.er1 20821 cat conftest.err >&5 20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20823 (exit $ac_status); } >/dev/null; then 20824 if test -s conftest.err; then 20825 ac_cpp_err=$ac_c_preproc_warn_flag 20826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20827 else 20828 ac_cpp_err= 20829 fi 20830 else 20831 ac_cpp_err=yes 20832 fi 20833 if test -z "$ac_cpp_err"; then 20834 ac_header_preproc=yes 20835 else 20836 echo "$as_me: failed program was:" >&5 20837 sed 's/^/| /' conftest.$ac_ext >&5 20838 20839 ac_header_preproc=no 20840 fi 20841 rm -f conftest.err conftest.$ac_ext 20842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20843 echo "${ECHO_T}$ac_header_preproc" >&6 20844 20845 # So? What about this header? 20846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20847 yes:no: ) 20848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20852 ac_header_preproc=yes 20853 ;; 20854 no:yes:* ) 20855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20867 ( 20868 cat <<\_ASBOX 20869 ## --------------------------------------------------------------- ## 20870 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 20871 ## --------------------------------------------------------------- ## 20872 _ASBOX 20873 ) | 20874 sed "s/^/$as_me: WARNING: /" >&2 20875 ;; 20876 esac 20877 echo "$as_me:$LINENO: checking for $ac_header" >&5 20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20879 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20880 echo $ECHO_N "(cached) $ECHO_C" >&6 20881 else 20882 eval "$as_ac_Header=\$ac_header_preproc" 20883 fi 20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20886 20887 fi 20888 if test `eval echo '${'$as_ac_Header'}'` = yes; then 20889 cat >>confdefs.h <<_ACEOF 20890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20891 _ACEOF 20892 enable_dl=yes 20893 fi 20894 20895 done 20896 20897 20898 if test "$enable_dl" = "yes"; then 20899 #if dlfcn.h is there, check also if libdl is there; if so, set corresponding define for GLPK 20900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20903 echo $ECHO_N "(cached) $ECHO_C" >&6 20904 else 20905 ac_check_lib_save_LIBS=$LIBS 20906 LIBS="-ldl $LIBS" 20907 cat >conftest.$ac_ext <<_ACEOF 20908 /* confdefs.h. */ 20909 _ACEOF 20910 cat confdefs.h >>conftest.$ac_ext 20911 cat >>conftest.$ac_ext <<_ACEOF 20912 /* end confdefs.h. */ 20913 20914 /* Override any gcc2 internal prototype to avoid an error. */ 20915 #ifdef __cplusplus 20916 extern "C" 20917 #endif 20918 /* We use char because int might match the return type of a gcc2 20919 builtin and then its argument prototype would still apply. */ 20920 char dlopen (); 20921 int 20922 main () 20923 { 20924 dlopen (); 20925 ; 20926 return 0; 20927 } 20928 _ACEOF 20929 rm -f conftest.$ac_objext conftest$ac_exeext 20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20931 (eval $ac_link) 2>conftest.er1 20932 ac_status=$? 20933 grep -v '^ *+' conftest.er1 >conftest.err 20934 rm -f conftest.er1 20935 cat conftest.err >&5 20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20937 (exit $ac_status); } && 20938 { ac_try='test -z "$ac_c_werror_flag" 20939 || test ! -s conftest.err' 20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20941 (eval $ac_try) 2>&5 20942 ac_status=$? 20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20944 (exit $ac_status); }; } && 20945 { ac_try='test -s conftest$ac_exeext' 20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20947 (eval $ac_try) 2>&5 20948 ac_status=$? 20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20950 (exit $ac_status); }; }; then 20951 ac_cv_lib_dl_dlopen=yes 20952 else 20953 echo "$as_me: failed program was:" >&5 20954 sed 's/^/| /' conftest.$ac_ext >&5 20955 20956 ac_cv_lib_dl_dlopen=no 20957 fi 20958 rm -f conftest.err conftest.$ac_objext \ 20959 conftest$ac_exeext conftest.$ac_ext 20960 LIBS=$ac_check_lib_save_LIBS 20961 fi 20962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20964 if test $ac_cv_lib_dl_dlopen = yes; then 20965 20966 cat >>confdefs.h <<\_ACEOF 20967 #define HAVE_DLFCN 1 20968 _ACEOF 20969 20970 else 20971 enable_dl=no 20972 fi 20973 20974 if test $enable_dl = yes; then 20975 ADDLIBS="-ldl $ADDLIBS" 20976 fi 20977 fi 20978 20979 if test "$enable_dl" = "no"; then 20980 #if test x"" = x; then 20981 # hdr="#include <ltdl.h>" 20982 #else 20983 # hdr="" 20984 #fi 20985 #AC_CHECK_HEADERS([ltdl.h],[enable_dl=yes],[],[$hdr]) 20986 20987 for ac_header in ltdl.h 20988 do 20989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20990 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20991 echo "$as_me:$LINENO: checking for $ac_header" >&5 20992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20993 if eval "test \"\${$as_ac_Header+set}\" = set"; then 20994 echo $ECHO_N "(cached) $ECHO_C" >&6 20995 fi 20996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20998 else 20999 # Is the header compilable? 21000 echo "$as_me:$LINENO: checking $ac_header usability" >&5 21001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21002 cat >conftest.$ac_ext <<_ACEOF 21003 /* confdefs.h. */ 21004 _ACEOF 21005 cat confdefs.h >>conftest.$ac_ext 21006 cat >>conftest.$ac_ext <<_ACEOF 21007 /* end confdefs.h. */ 21008 $ac_includes_default 21009 #include <$ac_header> 21010 _ACEOF 21011 rm -f conftest.$ac_objext 21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21013 (eval $ac_compile) 2>conftest.er1 21014 ac_status=$? 21015 grep -v '^ *+' conftest.er1 >conftest.err 21016 rm -f conftest.er1 21017 cat conftest.err >&5 21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21019 (exit $ac_status); } && 21020 { ac_try='test -z "$ac_c_werror_flag" 21021 || test ! -s conftest.err' 21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21023 (eval $ac_try) 2>&5 21024 ac_status=$? 21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21026 (exit $ac_status); }; } && 21027 { ac_try='test -s conftest.$ac_objext' 21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21029 (eval $ac_try) 2>&5 21030 ac_status=$? 21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21032 (exit $ac_status); }; }; then 21033 ac_header_compiler=yes 21034 else 21035 echo "$as_me: failed program was:" >&5 21036 sed 's/^/| /' conftest.$ac_ext >&5 21037 21038 ac_header_compiler=no 21039 fi 21040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21042 echo "${ECHO_T}$ac_header_compiler" >&6 21043 21044 # Is the header present? 21045 echo "$as_me:$LINENO: checking $ac_header presence" >&5 21046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21047 cat >conftest.$ac_ext <<_ACEOF 21048 /* confdefs.h. */ 21049 _ACEOF 21050 cat confdefs.h >>conftest.$ac_ext 21051 cat >>conftest.$ac_ext <<_ACEOF 21052 /* end confdefs.h. */ 21053 #include <$ac_header> 21054 _ACEOF 21055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21057 ac_status=$? 21058 grep -v '^ *+' conftest.er1 >conftest.err 21059 rm -f conftest.er1 21060 cat conftest.err >&5 21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21062 (exit $ac_status); } >/dev/null; then 21063 if test -s conftest.err; then 21064 ac_cpp_err=$ac_c_preproc_warn_flag 21065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21066 else 21067 ac_cpp_err= 21068 fi 21069 else 21070 ac_cpp_err=yes 21071 fi 21072 if test -z "$ac_cpp_err"; then 21073 ac_header_preproc=yes 21074 else 21075 echo "$as_me: failed program was:" >&5 21076 sed 's/^/| /' conftest.$ac_ext >&5 21077 21078 ac_header_preproc=no 21079 fi 21080 rm -f conftest.err conftest.$ac_ext 21081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21082 echo "${ECHO_T}$ac_header_preproc" >&6 21083 21084 # So? What about this header? 21085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21086 yes:no: ) 21087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21091 ac_header_preproc=yes 21092 ;; 21093 no:yes:* ) 21094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21106 ( 21107 cat <<\_ASBOX 21108 ## --------------------------------------------------------------- ## 21109 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 21110 ## --------------------------------------------------------------- ## 21111 _ASBOX 21112 ) | 21113 sed "s/^/$as_me: WARNING: /" >&2 21114 ;; 21115 esac 21116 echo "$as_me:$LINENO: checking for $ac_header" >&5 21117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21118 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21119 echo $ECHO_N "(cached) $ECHO_C" >&6 21120 else 21121 eval "$as_ac_Header=\$ac_header_preproc" 21122 fi 21123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21125 21126 fi 21127 if test `eval echo '${'$as_ac_Header'}'` = yes; then 21128 cat >>confdefs.h <<_ACEOF 21129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21130 _ACEOF 21131 enable_dl=yes 21132 fi 21133 21134 done 21135 21136 21137 if test "$enable_dl" = "yes"; then 21138 #if ltdl.h is there, check also if libltdl is there; if so, set corresponding define for GLPK 21139 echo "$as_me:$LINENO: checking for lt_dlopen in -lldtl" >&5 21140 echo $ECHO_N "checking for lt_dlopen in -lldtl... $ECHO_C" >&6 21141 if test "${ac_cv_lib_ldtl_lt_dlopen+set}" = set; then 21142 echo $ECHO_N "(cached) $ECHO_C" >&6 21143 else 21144 ac_check_lib_save_LIBS=$LIBS 21145 LIBS="-lldtl $LIBS" 21146 cat >conftest.$ac_ext <<_ACEOF 21147 /* confdefs.h. */ 21148 _ACEOF 21149 cat confdefs.h >>conftest.$ac_ext 21150 cat >>conftest.$ac_ext <<_ACEOF 21151 /* end confdefs.h. */ 21152 21153 /* Override any gcc2 internal prototype to avoid an error. */ 21154 #ifdef __cplusplus 21155 extern "C" 21156 #endif 21157 /* We use char because int might match the return type of a gcc2 21158 builtin and then its argument prototype would still apply. */ 21159 char lt_dlopen (); 21160 int 21161 main () 21162 { 21163 lt_dlopen (); 21164 ; 21165 return 0; 21166 } 21167 _ACEOF 21168 rm -f conftest.$ac_objext conftest$ac_exeext 21169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21170 (eval $ac_link) 2>conftest.er1 21171 ac_status=$? 21172 grep -v '^ *+' conftest.er1 >conftest.err 21173 rm -f conftest.er1 21174 cat conftest.err >&5 21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21176 (exit $ac_status); } && 21177 { ac_try='test -z "$ac_c_werror_flag" 21178 || test ! -s conftest.err' 21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21180 (eval $ac_try) 2>&5 21181 ac_status=$? 21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21183 (exit $ac_status); }; } && 21184 { ac_try='test -s conftest$ac_exeext' 21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21186 (eval $ac_try) 2>&5 21187 ac_status=$? 21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21189 (exit $ac_status); }; }; then 21190 ac_cv_lib_ldtl_lt_dlopen=yes 21191 else 21192 echo "$as_me: failed program was:" >&5 21193 sed 's/^/| /' conftest.$ac_ext >&5 21194 21195 ac_cv_lib_ldtl_lt_dlopen=no 21196 fi 21197 rm -f conftest.err conftest.$ac_objext \ 21198 conftest$ac_exeext conftest.$ac_ext 21199 LIBS=$ac_check_lib_save_LIBS 21200 fi 21201 echo "$as_me:$LINENO: result: $ac_cv_lib_ldtl_lt_dlopen" >&5 21202 echo "${ECHO_T}$ac_cv_lib_ldtl_lt_dlopen" >&6 21203 if test $ac_cv_lib_ldtl_lt_dlopen = yes; then 21204 21205 cat >>confdefs.h <<\_ACEOF 21206 #define HAVE_LTDL 1 21207 _ACEOF 21208 21209 else 21210 enable_dl=no 21211 fi 21212 21213 if test $enable_dl = yes; then 21214 ADDLIBS="-lltdl $ADDLIBS" 21215 fi 21216 fi 21217 fi 21218 21219 if test "$enable_dl" = "no"; then 21220 #if test x"" = x; then 21221 # hdr="#include <windows.h>" 21222 #else 21223 # hdr="" 21224 #fi 21225 #AC_CHECK_HEADERS([windows.h],[enable_dl=yes],[],[$hdr]) 21226 21227 for ac_header in windows.h 21228 do 21229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21230 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21231 echo "$as_me:$LINENO: checking for $ac_header" >&5 21232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21233 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21234 echo $ECHO_N "(cached) $ECHO_C" >&6 21235 fi 21236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21238 else 21239 # Is the header compilable? 21240 echo "$as_me:$LINENO: checking $ac_header usability" >&5 21241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21242 cat >conftest.$ac_ext <<_ACEOF 21243 /* confdefs.h. */ 21244 _ACEOF 21245 cat confdefs.h >>conftest.$ac_ext 21246 cat >>conftest.$ac_ext <<_ACEOF 21247 /* end confdefs.h. */ 21248 $ac_includes_default 21249 #include <$ac_header> 21250 _ACEOF 21251 rm -f conftest.$ac_objext 21252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21253 (eval $ac_compile) 2>conftest.er1 21254 ac_status=$? 21255 grep -v '^ *+' conftest.er1 >conftest.err 21256 rm -f conftest.er1 21257 cat conftest.err >&5 21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21259 (exit $ac_status); } && 21260 { ac_try='test -z "$ac_c_werror_flag" 21261 || test ! -s conftest.err' 21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21263 (eval $ac_try) 2>&5 21264 ac_status=$? 21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21266 (exit $ac_status); }; } && 21267 { ac_try='test -s conftest.$ac_objext' 21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21269 (eval $ac_try) 2>&5 21270 ac_status=$? 21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21272 (exit $ac_status); }; }; then 21273 ac_header_compiler=yes 21274 else 21275 echo "$as_me: failed program was:" >&5 21276 sed 's/^/| /' conftest.$ac_ext >&5 21277 21278 ac_header_compiler=no 21279 fi 21280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21282 echo "${ECHO_T}$ac_header_compiler" >&6 21283 21284 # Is the header present? 21285 echo "$as_me:$LINENO: checking $ac_header presence" >&5 21286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21287 cat >conftest.$ac_ext <<_ACEOF 21288 /* confdefs.h. */ 21289 _ACEOF 21290 cat confdefs.h >>conftest.$ac_ext 21291 cat >>conftest.$ac_ext <<_ACEOF 21292 /* end confdefs.h. */ 21293 #include <$ac_header> 21294 _ACEOF 21295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21297 ac_status=$? 21298 grep -v '^ *+' conftest.er1 >conftest.err 21299 rm -f conftest.er1 21300 cat conftest.err >&5 21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21302 (exit $ac_status); } >/dev/null; then 21303 if test -s conftest.err; then 21304 ac_cpp_err=$ac_c_preproc_warn_flag 21305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21306 else 21307 ac_cpp_err= 21308 fi 21309 else 21310 ac_cpp_err=yes 21311 fi 21312 if test -z "$ac_cpp_err"; then 21313 ac_header_preproc=yes 21314 else 21315 echo "$as_me: failed program was:" >&5 21316 sed 's/^/| /' conftest.$ac_ext >&5 21317 21318 ac_header_preproc=no 21319 fi 21320 rm -f conftest.err conftest.$ac_ext 21321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21322 echo "${ECHO_T}$ac_header_preproc" >&6 21323 21324 # So? What about this header? 21325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21326 yes:no: ) 21327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21331 ac_header_preproc=yes 21332 ;; 21333 no:yes:* ) 21334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21346 ( 21347 cat <<\_ASBOX 21348 ## --------------------------------------------------------------- ## 21349 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 21350 ## --------------------------------------------------------------- ## 21351 _ASBOX 21352 ) | 21353 sed "s/^/$as_me: WARNING: /" >&2 21354 ;; 21355 esac 21356 echo "$as_me:$LINENO: checking for $ac_header" >&5 21357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21358 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21359 echo $ECHO_N "(cached) $ECHO_C" >&6 21360 else 21361 eval "$as_ac_Header=\$ac_header_preproc" 21362 fi 21363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21365 21366 fi 21367 if test `eval echo '${'$as_ac_Header'}'` = yes; then 21368 cat >>confdefs.h <<_ACEOF 21369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21370 _ACEOF 21371 enable_dl=yes 21372 fi 21373 21374 done 21375 21376 21377 if test "$enable_dl" = "yes"; then 21378 21379 cat >>confdefs.h <<\_ACEOF 21380 #define __WOE__ 1 21381 _ACEOF 21382 21383 fi 21384 fi 21385 21386 # Check whether --enable-odbc or --disable-odbc was given. 21387 if test "${enable_odbc+set}" = set; then 21388 enableval="$enable_odbc" 21389 case $enableval in 21390 yes | unix) 21391 #if test x"" = x; then 21392 # hdr="#include <sql.h>" 21393 #else 21394 # hdr="" 21395 #fi 21396 #AC_CHECK_HEADERS([sql.h],[],[AC_MSG_ERROR(["need sql.h to enable ODBC support"])],[$hdr]) 21397 21398 for ac_header in sql.h 21399 do 21400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21401 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21402 echo "$as_me:$LINENO: checking for $ac_header" >&5 21403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21404 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21405 echo $ECHO_N "(cached) $ECHO_C" >&6 21406 fi 21407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21409 else 21410 # Is the header compilable? 21411 echo "$as_me:$LINENO: checking $ac_header usability" >&5 21412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21413 cat >conftest.$ac_ext <<_ACEOF 21414 /* confdefs.h. */ 21415 _ACEOF 21416 cat confdefs.h >>conftest.$ac_ext 21417 cat >>conftest.$ac_ext <<_ACEOF 21418 /* end confdefs.h. */ 21419 $ac_includes_default 21420 #include <$ac_header> 21421 _ACEOF 21422 rm -f conftest.$ac_objext 21423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21424 (eval $ac_compile) 2>conftest.er1 21425 ac_status=$? 21426 grep -v '^ *+' conftest.er1 >conftest.err 21427 rm -f conftest.er1 21428 cat conftest.err >&5 21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21430 (exit $ac_status); } && 21431 { ac_try='test -z "$ac_c_werror_flag" 21432 || test ! -s conftest.err' 21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21434 (eval $ac_try) 2>&5 21435 ac_status=$? 21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21437 (exit $ac_status); }; } && 21438 { ac_try='test -s conftest.$ac_objext' 21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21440 (eval $ac_try) 2>&5 21441 ac_status=$? 21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21443 (exit $ac_status); }; }; then 21444 ac_header_compiler=yes 21445 else 21446 echo "$as_me: failed program was:" >&5 21447 sed 's/^/| /' conftest.$ac_ext >&5 21448 21449 ac_header_compiler=no 21450 fi 21451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21453 echo "${ECHO_T}$ac_header_compiler" >&6 21454 21455 # Is the header present? 21456 echo "$as_me:$LINENO: checking $ac_header presence" >&5 21457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21458 cat >conftest.$ac_ext <<_ACEOF 21459 /* confdefs.h. */ 21460 _ACEOF 21461 cat confdefs.h >>conftest.$ac_ext 21462 cat >>conftest.$ac_ext <<_ACEOF 21463 /* end confdefs.h. */ 21464 #include <$ac_header> 21465 _ACEOF 21466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21468 ac_status=$? 21469 grep -v '^ *+' conftest.er1 >conftest.err 21470 rm -f conftest.er1 21471 cat conftest.err >&5 21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21473 (exit $ac_status); } >/dev/null; then 21474 if test -s conftest.err; then 21475 ac_cpp_err=$ac_c_preproc_warn_flag 21476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21477 else 21478 ac_cpp_err= 21479 fi 21480 else 21481 ac_cpp_err=yes 21482 fi 21483 if test -z "$ac_cpp_err"; then 21484 ac_header_preproc=yes 21485 else 21486 echo "$as_me: failed program was:" >&5 21487 sed 's/^/| /' conftest.$ac_ext >&5 21488 21489 ac_header_preproc=no 21490 fi 21491 rm -f conftest.err conftest.$ac_ext 21492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21493 echo "${ECHO_T}$ac_header_preproc" >&6 21494 21495 # So? What about this header? 21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21497 yes:no: ) 21498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21502 ac_header_preproc=yes 21503 ;; 21504 no:yes:* ) 21505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21517 ( 21518 cat <<\_ASBOX 21519 ## --------------------------------------------------------------- ## 21520 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 21521 ## --------------------------------------------------------------- ## 21522 _ASBOX 21523 ) | 21524 sed "s/^/$as_me: WARNING: /" >&2 21525 ;; 21526 esac 21527 echo "$as_me:$LINENO: checking for $ac_header" >&5 21528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21529 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21530 echo $ECHO_N "(cached) $ECHO_C" >&6 21531 else 21532 eval "$as_ac_Header=\$ac_header_preproc" 21533 fi 21534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21536 21537 fi 21538 if test `eval echo '${'$as_ac_Header'}'` = yes; then 21539 cat >>confdefs.h <<_ACEOF 21540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21541 _ACEOF 21542 21543 else 21544 { { echo "$as_me:$LINENO: error: \"need sql.h to enable ODBC support\"" >&5 21545 echo "$as_me: error: \"need sql.h to enable ODBC support\"" >&2;} 21546 { (exit 1); exit 1; }; } 21547 fi 21548 21549 done 21550 21551 21552 enable_odbc="$enableval" 21553 ;; 21554 no) 21555 enable_odbc="no" 21556 ;; 21557 *) 21558 { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-odbc" >&5 21559 echo "$as_me: error: invalid value '$enableval' for --enable-odbc" >&2;} 21560 { (exit 1); exit 1; }; } 21561 ;; 21562 esac 21563 else 21564 #if test x"" = x; then 21565 # hdr="#include <sql.h>" 21566 #else 21567 # hdr="" 21568 #fi 21569 #AC_CHECK_HEADERS([sql.h],[enable_odbc=yes],[enable_odbc=no],[$hdr]) 21570 21571 for ac_header in sql.h 21572 do 21573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21574 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21575 echo "$as_me:$LINENO: checking for $ac_header" >&5 21576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21577 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21578 echo $ECHO_N "(cached) $ECHO_C" >&6 21579 fi 21580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21582 else 21583 # Is the header compilable? 21584 echo "$as_me:$LINENO: checking $ac_header usability" >&5 21585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21586 cat >conftest.$ac_ext <<_ACEOF 21587 /* confdefs.h. */ 21588 _ACEOF 21589 cat confdefs.h >>conftest.$ac_ext 21590 cat >>conftest.$ac_ext <<_ACEOF 21591 /* end confdefs.h. */ 21592 $ac_includes_default 21593 #include <$ac_header> 21594 _ACEOF 21595 rm -f conftest.$ac_objext 21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21597 (eval $ac_compile) 2>conftest.er1 21598 ac_status=$? 21599 grep -v '^ *+' conftest.er1 >conftest.err 21600 rm -f conftest.er1 21601 cat conftest.err >&5 21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21603 (exit $ac_status); } && 21604 { ac_try='test -z "$ac_c_werror_flag" 21605 || test ! -s conftest.err' 21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21607 (eval $ac_try) 2>&5 21608 ac_status=$? 21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21610 (exit $ac_status); }; } && 21611 { ac_try='test -s conftest.$ac_objext' 21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21613 (eval $ac_try) 2>&5 21614 ac_status=$? 21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21616 (exit $ac_status); }; }; then 21617 ac_header_compiler=yes 21618 else 21619 echo "$as_me: failed program was:" >&5 21620 sed 's/^/| /' conftest.$ac_ext >&5 21621 21622 ac_header_compiler=no 21623 fi 21624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21626 echo "${ECHO_T}$ac_header_compiler" >&6 21627 21628 # Is the header present? 21629 echo "$as_me:$LINENO: checking $ac_header presence" >&5 21630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21631 cat >conftest.$ac_ext <<_ACEOF 21632 /* confdefs.h. */ 21633 _ACEOF 21634 cat confdefs.h >>conftest.$ac_ext 21635 cat >>conftest.$ac_ext <<_ACEOF 21636 /* end confdefs.h. */ 21637 #include <$ac_header> 21638 _ACEOF 21639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21641 ac_status=$? 21642 grep -v '^ *+' conftest.er1 >conftest.err 21643 rm -f conftest.er1 21644 cat conftest.err >&5 21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21646 (exit $ac_status); } >/dev/null; then 21647 if test -s conftest.err; then 21648 ac_cpp_err=$ac_c_preproc_warn_flag 21649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21650 else 21651 ac_cpp_err= 21652 fi 21653 else 21654 ac_cpp_err=yes 21655 fi 21656 if test -z "$ac_cpp_err"; then 21657 ac_header_preproc=yes 21658 else 21659 echo "$as_me: failed program was:" >&5 21660 sed 's/^/| /' conftest.$ac_ext >&5 21661 21662 ac_header_preproc=no 21663 fi 21664 rm -f conftest.err conftest.$ac_ext 21665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21666 echo "${ECHO_T}$ac_header_preproc" >&6 21667 21668 # So? What about this header? 21669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21670 yes:no: ) 21671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21675 ac_header_preproc=yes 21676 ;; 21677 no:yes:* ) 21678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21690 ( 21691 cat <<\_ASBOX 21692 ## --------------------------------------------------------------- ## 21693 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 21694 ## --------------------------------------------------------------- ## 21695 _ASBOX 21696 ) | 21697 sed "s/^/$as_me: WARNING: /" >&2 21698 ;; 21699 esac 21700 echo "$as_me:$LINENO: checking for $ac_header" >&5 21701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21702 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21703 echo $ECHO_N "(cached) $ECHO_C" >&6 21704 else 21705 eval "$as_ac_Header=\$ac_header_preproc" 21706 fi 21707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21709 21710 fi 21711 if test `eval echo '${'$as_ac_Header'}'` = yes; then 21712 cat >>confdefs.h <<_ACEOF 21713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21714 _ACEOF 21715 enable_odbc=yes 21716 else 21717 enable_odbc=no 21718 fi 21719 21720 done 21721 21722 21723 21724 fi; 21725 21726 # Check whether --enable-mysql or --disable-mysql was given. 21727 if test "${enable_mysql+set}" = set; then 21728 enableval="$enable_mysql" 21729 case $enableval in 21730 yes) 21731 #if test x"" = x; then 21732 # hdr="#include <mysql.h mysql/mysql.h>" 21733 #else 21734 # hdr="" 21735 #fi 21736 #AC_CHECK_HEADERS([mysql.h mysql/mysql.h],[],[AC_MSG_ERROR(["need mysql.h to enable MySQL support"])],[$hdr]) 21737 21738 21739 for ac_header in mysql.h mysql/mysql.h 21740 do 21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21742 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21743 echo "$as_me:$LINENO: checking for $ac_header" >&5 21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21745 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21746 echo $ECHO_N "(cached) $ECHO_C" >&6 21747 fi 21748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21750 else 21751 # Is the header compilable? 21752 echo "$as_me:$LINENO: checking $ac_header usability" >&5 21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21754 cat >conftest.$ac_ext <<_ACEOF 21755 /* confdefs.h. */ 21756 _ACEOF 21757 cat confdefs.h >>conftest.$ac_ext 21758 cat >>conftest.$ac_ext <<_ACEOF 21759 /* end confdefs.h. */ 21760 $ac_includes_default 21761 #include <$ac_header> 21762 _ACEOF 21763 rm -f conftest.$ac_objext 21764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21765 (eval $ac_compile) 2>conftest.er1 21766 ac_status=$? 21767 grep -v '^ *+' conftest.er1 >conftest.err 21768 rm -f conftest.er1 21769 cat conftest.err >&5 21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21771 (exit $ac_status); } && 21772 { ac_try='test -z "$ac_c_werror_flag" 21773 || test ! -s conftest.err' 21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21775 (eval $ac_try) 2>&5 21776 ac_status=$? 21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21778 (exit $ac_status); }; } && 21779 { ac_try='test -s conftest.$ac_objext' 21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21781 (eval $ac_try) 2>&5 21782 ac_status=$? 21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21784 (exit $ac_status); }; }; then 21785 ac_header_compiler=yes 21786 else 21787 echo "$as_me: failed program was:" >&5 21788 sed 's/^/| /' conftest.$ac_ext >&5 21789 21790 ac_header_compiler=no 21791 fi 21792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21794 echo "${ECHO_T}$ac_header_compiler" >&6 21795 21796 # Is the header present? 21797 echo "$as_me:$LINENO: checking $ac_header presence" >&5 21798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21799 cat >conftest.$ac_ext <<_ACEOF 21800 /* confdefs.h. */ 21801 _ACEOF 21802 cat confdefs.h >>conftest.$ac_ext 21803 cat >>conftest.$ac_ext <<_ACEOF 21804 /* end confdefs.h. */ 21805 #include <$ac_header> 21806 _ACEOF 21807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21809 ac_status=$? 21810 grep -v '^ *+' conftest.er1 >conftest.err 21811 rm -f conftest.er1 21812 cat conftest.err >&5 21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21814 (exit $ac_status); } >/dev/null; then 21815 if test -s conftest.err; then 21816 ac_cpp_err=$ac_c_preproc_warn_flag 21817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21818 else 21819 ac_cpp_err= 21820 fi 21821 else 21822 ac_cpp_err=yes 21823 fi 21824 if test -z "$ac_cpp_err"; then 21825 ac_header_preproc=yes 21826 else 21827 echo "$as_me: failed program was:" >&5 21828 sed 's/^/| /' conftest.$ac_ext >&5 21829 21830 ac_header_preproc=no 21831 fi 21832 rm -f conftest.err conftest.$ac_ext 21833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21834 echo "${ECHO_T}$ac_header_preproc" >&6 21835 21836 # So? What about this header? 21837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21838 yes:no: ) 21839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21843 ac_header_preproc=yes 21844 ;; 21845 no:yes:* ) 21846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21858 ( 21859 cat <<\_ASBOX 21860 ## --------------------------------------------------------------- ## 21861 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 21862 ## --------------------------------------------------------------- ## 21863 _ASBOX 21864 ) | 21865 sed "s/^/$as_me: WARNING: /" >&2 21866 ;; 21867 esac 21868 echo "$as_me:$LINENO: checking for $ac_header" >&5 21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21870 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21871 echo $ECHO_N "(cached) $ECHO_C" >&6 21872 else 21873 eval "$as_ac_Header=\$ac_header_preproc" 21874 fi 21875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21877 21878 fi 21879 if test `eval echo '${'$as_ac_Header'}'` = yes; then 21880 cat >>confdefs.h <<_ACEOF 21881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21882 _ACEOF 21883 21884 else 21885 { { echo "$as_me:$LINENO: error: \"need mysql.h to enable MySQL support\"" >&5 21886 echo "$as_me: error: \"need mysql.h to enable MySQL support\"" >&2;} 21887 { (exit 1); exit 1; }; } 21888 fi 21889 21890 done 21891 21892 21893 enable_mysql="$enableval" 21894 ;; 21895 no) 21896 enable_mysql="no" 21897 ;; 21898 *) 21899 { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-mysql" >&5 21900 echo "$as_me: error: invalid value '$enableval' for --enable-mysql" >&2;} 21901 { (exit 1); exit 1; }; } 21902 ;; 21903 esac 21904 else 21905 #if test x"" = x; then 21906 # hdr="#include <mysql.h mysql/mysql.h>" 21907 #else 21908 # hdr="" 21909 #fi 21910 #AC_CHECK_HEADERS([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no],[$hdr]) 21911 21912 21913 for ac_header in mysql.h mysql/mysql.h 21914 do 21915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21916 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21917 echo "$as_me:$LINENO: checking for $ac_header" >&5 21918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21919 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21920 echo $ECHO_N "(cached) $ECHO_C" >&6 21921 fi 21922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21924 else 21925 # Is the header compilable? 21926 echo "$as_me:$LINENO: checking $ac_header usability" >&5 21927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21928 cat >conftest.$ac_ext <<_ACEOF 21929 /* confdefs.h. */ 21930 _ACEOF 21931 cat confdefs.h >>conftest.$ac_ext 21932 cat >>conftest.$ac_ext <<_ACEOF 21933 /* end confdefs.h. */ 21934 $ac_includes_default 21935 #include <$ac_header> 21936 _ACEOF 21937 rm -f conftest.$ac_objext 21938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21939 (eval $ac_compile) 2>conftest.er1 21940 ac_status=$? 21941 grep -v '^ *+' conftest.er1 >conftest.err 21942 rm -f conftest.er1 21943 cat conftest.err >&5 21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21945 (exit $ac_status); } && 21946 { ac_try='test -z "$ac_c_werror_flag" 21947 || test ! -s conftest.err' 21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21949 (eval $ac_try) 2>&5 21950 ac_status=$? 21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21952 (exit $ac_status); }; } && 21953 { ac_try='test -s conftest.$ac_objext' 21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21955 (eval $ac_try) 2>&5 21956 ac_status=$? 21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21958 (exit $ac_status); }; }; then 21959 ac_header_compiler=yes 21960 else 21961 echo "$as_me: failed program was:" >&5 21962 sed 's/^/| /' conftest.$ac_ext >&5 21963 21964 ac_header_compiler=no 21965 fi 21966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21968 echo "${ECHO_T}$ac_header_compiler" >&6 21969 21970 # Is the header present? 21971 echo "$as_me:$LINENO: checking $ac_header presence" >&5 21972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21973 cat >conftest.$ac_ext <<_ACEOF 21974 /* confdefs.h. */ 21975 _ACEOF 21976 cat confdefs.h >>conftest.$ac_ext 21977 cat >>conftest.$ac_ext <<_ACEOF 21978 /* end confdefs.h. */ 21979 #include <$ac_header> 21980 _ACEOF 21981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21983 ac_status=$? 21984 grep -v '^ *+' conftest.er1 >conftest.err 21985 rm -f conftest.er1 21986 cat conftest.err >&5 21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21988 (exit $ac_status); } >/dev/null; then 21989 if test -s conftest.err; then 21990 ac_cpp_err=$ac_c_preproc_warn_flag 21991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21992 else 21993 ac_cpp_err= 21994 fi 21995 else 21996 ac_cpp_err=yes 21997 fi 21998 if test -z "$ac_cpp_err"; then 21999 ac_header_preproc=yes 22000 else 22001 echo "$as_me: failed program was:" >&5 22002 sed 's/^/| /' conftest.$ac_ext >&5 22003 22004 ac_header_preproc=no 22005 fi 22006 rm -f conftest.err conftest.$ac_ext 22007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22008 echo "${ECHO_T}$ac_header_preproc" >&6 22009 22010 # So? What about this header? 22011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22012 yes:no: ) 22013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22017 ac_header_preproc=yes 22018 ;; 22019 no:yes:* ) 22020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22032 ( 22033 cat <<\_ASBOX 22034 ## --------------------------------------------------------------- ## 22035 ## Report this to http://projects.coin-or.org/BuildTools/newticket ## 22036 ## --------------------------------------------------------------- ## 22037 _ASBOX 22038 ) | 22039 sed "s/^/$as_me: WARNING: /" >&2 22040 ;; 22041 esac 22042 echo "$as_me:$LINENO: checking for $ac_header" >&5 22043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22044 if eval "test \"\${$as_ac_Header+set}\" = set"; then 22045 echo $ECHO_N "(cached) $ECHO_C" >&6 22046 else 22047 eval "$as_ac_Header=\$ac_header_preproc" 22048 fi 22049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22051 22052 fi 22053 if test `eval echo '${'$as_ac_Header'}'` = yes; then 22054 cat >>confdefs.h <<_ACEOF 22055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22056 _ACEOF 22057 enable_mysql=yes 22058 else 22059 enable_mysql=no 22060 fi 22061 22062 done 22063 22064 22065 22066 fi; 22067 22068 ac_ext=c 22069 ac_cpp='$CPP $CPPFLAGS' 22070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22072 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22073 22074 22075 if test "$enable_dl" = "yes" && ( test "$enable_odbc" = "yes" || test "$enable_odbc" = "unix"); then 22076 echo "$as_me:$LINENO: checking checking name of ODBC library" >&5 22077 echo $ECHO_N "checking checking name of ODBC library... $ECHO_C" >&6 22078 case $build in 22079 *-cygwin* | *-mingw32*) 22080 case "$CC" in 22081 *cl* ) 22082 odbclibname="odbc32.dll" 22083 ;; 22084 *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows? 22085 if test "$enable_odbc" = "yes"; then 22086 odbclibname="libiodbc.dll" 22087 else 22088 odbclibname="libodbc.dll" 22089 fi 22090 ;; 22091 esac 22092 ;; 22093 *-mingw64*) 22094 case "$CC" in 22095 *cl* ) 22096 odbclibname="odbc64.dll" 22097 ;; 22098 *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows? 22099 if test "$enable_odbc" = "yes"; then 22100 odbclibname="libiodbc.dll" 22101 else 22102 odbclibname="libodbc.dll" 22103 fi 22104 ;; 22105 esac 22106 ;; 22107 *-darwin*) 22108 if test "$enable_odbc" = "yes"; then 22109 odbclibname="libiodbc.dylib" 22110 else 22111 odbclibname="libodbc.dylib" 22112 fi 22113 ;; 22114 *) 22115 if test "$enable_odbc" = "yes"; then 22116 odbclibname="libiodbc.so" 22117 else 22118 odbclibname="libodbc.so" 22119 fi 22120 ;; 22121 esac 22122 22123 22124 cat >>confdefs.h <<_ACEOF 22125 #define ODBC_DLNAME "$odbclibname" 22126 _ACEOF 22127 22128 echo "$as_me:$LINENO: result: $odbclibname" >&5 22129 echo "${ECHO_T}$odbclibname" >&6 22130 fi 22131 22132 if test "$enable_dl" = "yes" && test "$enable_mysql" = "yes" ; then 22133 echo "$as_me:$LINENO: checking checking name of MySQL library" >&5 22134 echo $ECHO_N "checking checking name of MySQL library... $ECHO_C" >&6 22135 case $build in 22136 *-cygwin* | *-mingw*) 22137 case "$CC" in 22138 *cl* ) 22139 mysqllibname="libmysql.dll" 22140 ;; 22141 *) #FIXME: what is the correct library name for using MySQL with gnu compiler under Windows? 22142 mysqllibname="libmysqlclient.dll" 22143 CFLAGS="-I/usr/include/mysql $CFLAGS" 22144 ;; 22145 esac 22146 ;; 22147 *-darwin*) 22148 mysqllibname="libmysqlclient.dylib" 22149 CFLAGS="-I/usr/include/mysql $CFLAGS" 22150 ;; 22151 *) 22152 mysqllibname="libmysqlclient.so" 22153 CFLAGS="-I/usr/include/mysql $CFLAGS" 22154 ;; 22155 esac 22156 22157 22158 cat >>confdefs.h <<_ACEOF 22159 #define MYSQL_DLNAME "$mysqllibname" 22160 _ACEOF 22161 22162 echo "$as_me:$LINENO: result: $mysqllibname" >&5 22163 echo "${ECHO_T}$mysqllibname" >&6 22164 fi 22165 20099 22166 GLPKDIR=glpk 20100 22167 20101 22168 20102 ac_config_files="$ac_config_files Makefile" 22169 ac_config_files="$ac_config_files Makefile glpk_addlibs.txt" 22170 22171 ac_config_headers="$ac_config_headers config_glpk.h" 20103 22172 20104 22173 … … 20234 22303 fi 20235 22304 20236 # Transform confdefs.h into DEFS. 20237 # Protect against shell expansion while executing Makefile rules. 20238 # Protect against Makefile macro expansion. 20239 # 20240 # If the first sed substitution is executed (which looks for macros that 20241 # take arguments), then we branch to the quote section. Otherwise, 20242 # look for a macro that doesn't take arguments. 20243 cat >confdef2opt.sed <<\_ACEOF 20244 t clear 20245 : clear 20246 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 20247 t quote 20248 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 20249 t quote 20250 d 20251 : quote 20252 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 20253 s,\[,\\&,g 20254 s,\],\\&,g 20255 s,\$,$$,g 20256 p 20257 _ACEOF 20258 # We use echo to avoid assuming a particular line-breaking character. 20259 # The extra dot is to prevent the shell from consuming trailing 20260 # line-breaks from the sub-command output. A line-break within 20261 # single-quotes doesn't work because, if this script is created in a 20262 # platform that uses two characters for line-breaks (e.g., DOS), tr 20263 # would break. 20264 ac_LF_and_DOT=`echo; echo .` 20265 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 20266 rm -f confdef2opt.sed 20267 22305 DEFS=-DHAVE_CONFIG_H 20268 22306 20269 22307 ac_libobjs= … … 20342 22380 Usually this means the macro was only invoked conditionally." >&5 20343 22381 echo "$as_me: error: conditional \"COIN_BUILD_GLPK\" was never defined. 22382 Usually this means the macro was only invoked conditionally." >&2;} 22383 { (exit 1); exit 1; }; } 22384 fi 22385 if test -z "${COIN_HAS_ZLIB_TRUE}" && test -z "${COIN_HAS_ZLIB_FALSE}"; then 22386 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ZLIB\" was never defined. 22387 Usually this means the macro was only invoked conditionally." >&5 22388 echo "$as_me: error: conditional \"COIN_HAS_ZLIB\" was never defined. 20344 22389 Usually this means the macro was only invoked conditionally." >&2;} 20345 22390 { (exit 1); exit 1; }; } … … 20662 22707 --file=FILE[:TEMPLATE] 20663 22708 instantiate the configuration file FILE 22709 --header=FILE[:TEMPLATE] 22710 instantiate the configuration header FILE 20664 22711 20665 22712 Configuration files: 20666 22713 $config_files 22714 22715 Configuration headers: 22716 $config_headers 20667 22717 20668 22718 Configuration commands: … … 20785 22835 # Handling of arguments. 20786 22836 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22837 "glpk_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES glpk_addlibs.txt" ;; 20787 22838 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22839 "config_glpk.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_glpk.h" ;; 20788 22840 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20789 22841 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} … … 20798 22850 if $ac_need_defaults; then 20799 22851 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22852 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20800 22853 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20801 22854 fi … … 20968 23021 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t 20969 23022 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t 23023 s,@GLPKOBJDIR@,$GLPKOBJDIR,;t t 20970 23024 s,@COIN_BUILD_GLPK_TRUE@,$COIN_BUILD_GLPK_TRUE,;t t 20971 23025 s,@COIN_BUILD_GLPK_FALSE@,$COIN_BUILD_GLPK_FALSE,;t t 20972 23026 s,@MAKEOKFILE@,$MAKEOKFILE,;t t 23027 s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t 23028 s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t 20973 23029 s,@GLPKDIR@,$GLPKDIR,;t t 20974 23030 s,@LIBEXT@,$LIBEXT,;t t … … 21212 23268 fi 21213 23269 23270 done 23271 _ACEOF 23272 cat >>$CONFIG_STATUS <<\_ACEOF 23273 23274 # 23275 # CONFIG_HEADER section. 23276 # 23277 23278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23279 # NAME is the cpp macro being defined and VALUE is the value it is being given. 23280 # 23281 # ac_d sets the value in "#define NAME VALUE" lines. 23282 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23283 ac_dB='[ ].*$,\1#\2' 23284 ac_dC=' ' 23285 ac_dD=',;t' 23286 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23287 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23288 ac_uB='$,\1#\2define\3' 23289 ac_uC=' ' 23290 ac_uD=',;t' 23291 23292 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23294 case $ac_file in 23295 - | *:- | *:-:* ) # input from stdin 23296 cat >$tmp/stdin 23297 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23298 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23299 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23301 * ) ac_file_in=$ac_file.in ;; 23302 esac 23303 23304 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23305 echo "$as_me: creating $ac_file" >&6;} 23306 23307 # First look for the input files in the build tree, otherwise in the 23308 # src tree. 23309 ac_file_inputs=`IFS=: 23310 for f in $ac_file_in; do 23311 case $f in 23312 -) echo $tmp/stdin ;; 23313 [\\/$]*) 23314 # Absolute (can't be DOS-style, as IFS=:) 23315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23316 echo "$as_me: error: cannot find input file: $f" >&2;} 23317 { (exit 1); exit 1; }; } 23318 # Do quote $f, to prevent DOS paths from being IFS'd. 23319 echo "$f";; 23320 *) # Relative 23321 if test -f "$f"; then 23322 # Build tree 23323 echo "$f" 23324 elif test -f "$srcdir/$f"; then 23325 # Source tree 23326 echo "$srcdir/$f" 23327 else 23328 # /dev/null tree 23329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23330 echo "$as_me: error: cannot find input file: $f" >&2;} 23331 { (exit 1); exit 1; }; } 23332 fi;; 23333 esac 23334 done` || { (exit 1); exit 1; } 23335 # Remove the trailing spaces. 23336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23337 23338 _ACEOF 23339 23340 # Transform confdefs.h into two sed scripts, `conftest.defines' and 23341 # `conftest.undefs', that substitutes the proper values into 23342 # config.h.in to produce config.h. The first handles `#define' 23343 # templates, and the second `#undef' templates. 23344 # And first: Protect against being on the right side of a sed subst in 23345 # config.status. Protect against being in an unquoted here document 23346 # in config.status. 23347 rm -f conftest.defines conftest.undefs 23348 # Using a here document instead of a string reduces the quoting nightmare. 23349 # Putting comments in sed scripts is not portable. 23350 # 23351 # `end' is used to avoid that the second main sed command (meant for 23352 # 0-ary CPP macros) applies to n-ary macro definitions. 23353 # See the Autoconf documentation for `clear'. 23354 cat >confdef2sed.sed <<\_ACEOF 23355 s/[\\&,]/\\&/g 23356 s,[\\$`],\\&,g 23357 t clear 23358 : clear 23359 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23360 t end 23361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23362 : end 23363 _ACEOF 23364 # If some macros were called several times there might be several times 23365 # the same #defines, which is useless. Nevertheless, we may not want to 23366 # sort them, since we want the *last* AC-DEFINE to be honored. 23367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23369 rm -f confdef2sed.sed 23370 23371 # This sed command replaces #undef with comments. This is necessary, for 23372 # example, in the case of _POSIX_SOURCE, which is predefined and required 23373 # on some systems where configure will not decide to define it. 23374 cat >>conftest.undefs <<\_ACEOF 23375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23376 _ACEOF 23377 23378 # Break up conftest.defines because some shells have a limit on the size 23379 # of here documents, and old seds have small limits too (100 cmds). 23380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23381 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23382 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23383 echo ' :' >>$CONFIG_STATUS 23384 rm -f conftest.tail 23385 while grep . conftest.defines >/dev/null 23386 do 23387 # Write a limited-size here document to $tmp/defines.sed. 23388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23389 # Speed up: don't consider the non `#define' lines. 23390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23391 # Work around the forget-to-reset-the-flag bug. 23392 echo 't clr' >>$CONFIG_STATUS 23393 echo ': clr' >>$CONFIG_STATUS 23394 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23395 echo 'CEOF 23396 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23397 rm -f $tmp/in 23398 mv $tmp/out $tmp/in 23399 ' >>$CONFIG_STATUS 23400 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23401 rm -f conftest.defines 23402 mv conftest.tail conftest.defines 23403 done 23404 rm -f conftest.defines 23405 echo ' fi # grep' >>$CONFIG_STATUS 23406 echo >>$CONFIG_STATUS 23407 23408 # Break up conftest.undefs because some shells have a limit on the size 23409 # of here documents, and old seds have small limits too (100 cmds). 23410 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23411 rm -f conftest.tail 23412 while grep . conftest.undefs >/dev/null 23413 do 23414 # Write a limited-size here document to $tmp/undefs.sed. 23415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23416 # Speed up: don't consider the non `#undef' 23417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23418 # Work around the forget-to-reset-the-flag bug. 23419 echo 't clr' >>$CONFIG_STATUS 23420 echo ': clr' >>$CONFIG_STATUS 23421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23422 echo 'CEOF 23423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23424 rm -f $tmp/in 23425 mv $tmp/out $tmp/in 23426 ' >>$CONFIG_STATUS 23427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23428 rm -f conftest.undefs 23429 mv conftest.tail conftest.undefs 23430 done 23431 rm -f conftest.undefs 23432 23433 cat >>$CONFIG_STATUS <<\_ACEOF 23434 # Let's still pretend it is `configure' which instantiates (i.e., don't 23435 # use $as_me), people would be surprised to read: 23436 # /* config.h. Generated by config.status. */ 23437 if test x"$ac_file" = x-; then 23438 echo "/* Generated by configure. */" >$tmp/config.h 23439 else 23440 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23441 fi 23442 cat $tmp/in >>$tmp/config.h 23443 rm -f $tmp/in 23444 if test x"$ac_file" != x-; then 23445 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23447 echo "$as_me: $ac_file is unchanged" >&6;} 23448 else 23449 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23451 X"$ac_file" : 'X\(//\)[^/]' \| \ 23452 X"$ac_file" : 'X\(//\)$' \| \ 23453 X"$ac_file" : 'X\(/\)' \| \ 23454 . : '\(.\)' 2>/dev/null || 23455 echo X"$ac_file" | 23456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23457 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23458 /^X\(\/\/\)$/{ s//\1/; q; } 23459 /^X\(\/\).*/{ s//\1/; q; } 23460 s/.*/./; q'` 23461 { if $as_mkdir_p; then 23462 mkdir -p "$ac_dir" 23463 else 23464 as_dir="$ac_dir" 23465 as_dirs= 23466 while test ! -d "$as_dir"; do 23467 as_dirs="$as_dir $as_dirs" 23468 as_dir=`(dirname "$as_dir") 2>/dev/null || 23469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23470 X"$as_dir" : 'X\(//\)[^/]' \| \ 23471 X"$as_dir" : 'X\(//\)$' \| \ 23472 X"$as_dir" : 'X\(/\)' \| \ 23473 . : '\(.\)' 2>/dev/null || 23474 echo X"$as_dir" | 23475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23476 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23477 /^X\(\/\/\)$/{ s//\1/; q; } 23478 /^X\(\/\).*/{ s//\1/; q; } 23479 s/.*/./; q'` 23480 done 23481 test ! -n "$as_dirs" || mkdir $as_dirs 23482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23484 { (exit 1); exit 1; }; }; } 23485 23486 rm -f $ac_file 23487 mv $tmp/config.h $ac_file 23488 fi 23489 else 23490 cat $tmp/config.h 23491 rm -f $tmp/config.h 23492 fi 23493 # Compute $ac_file's index in $config_headers. 23494 _am_stamp_count=1 23495 for _am_header in $config_headers :; do 23496 case $_am_header in 23497 $ac_file | $ac_file:* ) 23498 break ;; 23499 * ) 23500 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23501 esac 23502 done 23503 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23505 X$ac_file : 'X\(//\)[^/]' \| \ 23506 X$ac_file : 'X\(//\)$' \| \ 23507 X$ac_file : 'X\(/\)' \| \ 23508 . : '\(.\)' 2>/dev/null || 23509 echo X$ac_file | 23510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23511 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23512 /^X\(\/\/\)$/{ s//\1/; q; } 23513 /^X\(\/\).*/{ s//\1/; q; } 23514 s/.*/./; q'`/stamp-h$_am_stamp_count 21214 23515 done 21215 23516 _ACEOF
Note: See TracChangeset
for help on using the changeset viewer.