Changeset 1379 for ThirdParty/Glpk
- Timestamp:
- Jul 26, 2009 2:33:41 PM (11 years ago)
- Location:
- ThirdParty/Glpk/trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Glpk/trunk/Makefile.am
r1321 r1379 9 9 EXTRA_DIST = get.GLPK INSTALL.Glpk glpk.patch 10 10 11 if COIN_BUILD_GLPK 12 noinst_LTLIBRARIES = libcoinglpk.la 13 else 14 noinst_LTLIBRARIES = 15 endif 11 thirdpartylibdir = $(prefix)/lib/ThirdParty 12 thirdpartylib_LTLIBRARIES = libcoinglpk.la 16 13 17 14 GLPKDIR = @GLPKDIR@ 18 15 19 nodist_libcoinglpk_la_SOURCES = \16 libcoinglpk_la_SOURCES = \ 20 17 $(GLPKDIR)/src/glpapi01.c \ 21 18 $(GLPKDIR)/src/glpapi02.c \ … … 173 170 libcoinglpk_la_LDFLAGS = $(LT_LDFLAGS) 174 171 172 thirdpartyincludedir = $(includedir)/coin/ThirdParty 173 thirdpartyinclude_HEADERS = $(GLPKDIR)/include/glpk.h 174 175 addlibsdir = $(prefix)/share/doc/coin/ThirdParty/Glpk 176 addlibs_DATA = glpk_addlibs.txt README 177 175 178 ######################################################################## 176 179 # Maintainer Stuff # -
ThirdParty/Glpk/trunk/Makefile.in
r1321 r1379 28 28 # Documentation installation # 29 29 ######################################################################## 30 31 30 32 31 33 srcdir = @srcdir@ … … 51 53 build_triplet = @build@ 52 54 host_triplet = @host@ 53 DIST_COMMON = $(am__configure_deps) \55 DIST_COMMON = README $(am__configure_deps) \ 54 56 $(srcdir)/../../BuildTools/Makemain.inc \ 55 57 $(srcdir)/../../config.guess $(srcdir)/../../config.sub \ … … 58 60 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ 59 61 $(srcdir)/config_glpk.h.in $(srcdir)/glpk_addlibs.txt.in \ 60 $(t op_srcdir)/configure62 $(thirdpartyinclude_HEADERS) $(top_srcdir)/configure 61 63 @HAVE_EXTERNALS_TRUE@am__append_1 = Externals 62 64 @HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp … … 72 74 CONFIG_HEADER = config_glpk.h 73 75 CONFIG_CLEAN_FILES = glpk_addlibs.txt 74 LTLIBRARIES = $(noinst_LTLIBRARIES) 76 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 77 am__vpath_adj = case $$p in \ 78 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 79 *) f=$$p;; \ 80 esac; 81 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 82 am__installdirs = "$(DESTDIR)$(thirdpartylibdir)" \ 83 "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(thirdpartyincludedir)" 84 thirdpartylibLTLIBRARIES_INSTALL = $(INSTALL) 85 LTLIBRARIES = $(thirdpartylib_LTLIBRARIES) 75 86 libcoinglpk_la_LIBADD = 76 nodist_libcoinglpk_la_OBJECTS = glpapi01.lo glpapi02.lo glpapi03.lo \87 am_libcoinglpk_la_OBJECTS = glpapi01.lo glpapi02.lo glpapi03.lo \ 77 88 glpapi04.lo glpapi05.lo glpapi06.lo glpapi07.lo glpapi08.lo \ 78 89 glpapi09.lo glpapi10.lo glpapi11.lo glpapi12.lo glpapi13.lo \ … … 97 108 amd_order.lo amd_postorder.lo amd_post_tree.lo \ 98 109 amd_preprocess.lo amd_valid.lo colamd.lo 99 libcoinglpk_la_OBJECTS = $(nodist_libcoinglpk_la_OBJECTS) 100 @COIN_BUILD_GLPK_TRUE@am_libcoinglpk_la_rpath = 110 libcoinglpk_la_OBJECTS = $(am_libcoinglpk_la_OBJECTS) 101 111 depcomp = $(SHELL) $(top_srcdir)/../../depcomp 102 112 am__depfiles_maybe = depfiles … … 109 119 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 110 120 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 111 SOURCES = $(nodist_libcoinglpk_la_SOURCES) 112 DIST_SOURCES = 121 SOURCES = $(libcoinglpk_la_SOURCES) 122 DIST_SOURCES = $(libcoinglpk_la_SOURCES) 123 addlibsDATA_INSTALL = $(INSTALL_DATA) 124 DATA = $(addlibs_DATA) 125 thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER) 126 HEADERS = $(thirdpartyinclude_HEADERS) 113 127 ETAGS = etags 114 128 CTAGS = ctags … … 143 157 CDEFS = @CDEFS@ 144 158 CFLAGS = @CFLAGS@ 145 COIN_BUILD_GLPK_FALSE = @COIN_BUILD_GLPK_FALSE@146 COIN_BUILD_GLPK_TRUE = @COIN_BUILD_GLPK_TRUE@147 159 COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@ 148 160 COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@ … … 169 181 FFLAGS = @FFLAGS@ 170 182 GLPKDIR = @GLPKDIR@ 171 GLPKINCDIR = @GLPKINCDIR@ 172 GLPKLIB = @GLPKLIB@ 183 GLPKDOCDIR = @GLPKDOCDIR@ 173 184 GLPKOBJDIR = @GLPKOBJDIR@ 185 GLPKSRCDIR = @GLPKSRCDIR@ 174 186 HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@ 175 187 HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@ … … 191 203 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ 192 204 MAKEINFO = @MAKEINFO@ 193 MAKEOKFILE = @MAKEOKFILE@194 205 MPICC = @MPICC@ 195 206 OBJEXT = @OBJEXT@ … … 264 275 AUTOMAKE_OPTIONS = foreign 265 276 EXTRA_DIST = get.GLPK INSTALL.Glpk glpk.patch $(am__append_1) 266 @COIN_BUILD_GLPK_FALSE@noinst_LTLIBRARIES = 267 @COIN_BUILD_GLPK_TRUE@noinst_LTLIBRARIES = libcoinglpk.la268 nodist_libcoinglpk_la_SOURCES = \277 thirdpartylibdir = $(prefix)/lib/ThirdParty 278 thirdpartylib_LTLIBRARIES = libcoinglpk.la 279 libcoinglpk_la_SOURCES = \ 269 280 $(GLPKDIR)/src/glpapi01.c \ 270 281 $(GLPKDIR)/src/glpapi02.c \ … … 400 411 401 412 libcoinglpk_la_LDFLAGS = $(LT_LDFLAGS) 413 thirdpartyincludedir = $(includedir)/coin/ThirdParty 414 thirdpartyinclude_HEADERS = $(GLPKDIR)/include/glpk.h 415 addlibsdir = $(prefix)/share/doc/coin/ThirdParty/Glpk 416 addlibs_DATA = glpk_addlibs.txt README 402 417 403 418 ######################################################################## … … 466 481 glpk_addlibs.txt: $(top_builddir)/config.status $(srcdir)/glpk_addlibs.txt.in 467 482 cd $(top_builddir) && $(SHELL) ./config.status $@ 468 469 clean-noinstLTLIBRARIES: 470 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 471 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 483 install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES) 484 @$(NORMAL_INSTALL) 485 test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)" 486 @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \ 487 if test -f $$p; then \ 488 f=$(am__strip_dir) \ 489 echo " $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \ 490 $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \ 491 else :; fi; \ 492 done 493 494 uninstall-thirdpartylibLTLIBRARIES: 495 @$(NORMAL_UNINSTALL) 496 @set -x; list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \ 497 p=$(am__strip_dir) \ 498 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(thirdpartylibdir)/$$p'"; \ 499 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(thirdpartylibdir)/$$p"; \ 500 done 501 502 clean-thirdpartylibLTLIBRARIES: 503 -test -z "$(thirdpartylib_LTLIBRARIES)" || rm -f $(thirdpartylib_LTLIBRARIES) 504 @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \ 472 505 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 473 506 test "$$dir" != "$$p" || dir=.; \ … … 476 509 done 477 510 libcoinglpk.la: $(libcoinglpk_la_OBJECTS) $(libcoinglpk_la_DEPENDENCIES) 478 $(LINK) $(am_libcoinglpk_la_rpath) $(libcoinglpk_la_LDFLAGS) $(libcoinglpk_la_OBJECTS) $(libcoinglpk_la_LIBADD) $(LIBS)511 $(LINK) -rpath $(thirdpartylibdir) $(libcoinglpk_la_LDFLAGS) $(libcoinglpk_la_OBJECTS) $(libcoinglpk_la_LIBADD) $(LIBS) 479 512 480 513 mostlyclean-compile: … … 1395 1428 -rm -f libtool 1396 1429 uninstall-info-am: 1430 install-addlibsDATA: $(addlibs_DATA) 1431 @$(NORMAL_INSTALL) 1432 test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)" 1433 @list='$(addlibs_DATA)'; for p in $$list; do \ 1434 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 1435 f=$(am__strip_dir) \ 1436 echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \ 1437 $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \ 1438 done 1439 1440 uninstall-addlibsDATA: 1441 @$(NORMAL_UNINSTALL) 1442 @list='$(addlibs_DATA)'; for p in $$list; do \ 1443 f=$(am__strip_dir) \ 1444 echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \ 1445 rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \ 1446 done 1447 install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS) 1448 @$(NORMAL_INSTALL) 1449 test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)" 1450 @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \ 1451 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 1452 f=$(am__strip_dir) \ 1453 echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \ 1454 $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \ 1455 done 1456 1457 uninstall-thirdpartyincludeHEADERS: 1458 @$(NORMAL_UNINSTALL) 1459 @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \ 1460 f=$(am__strip_dir) \ 1461 echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \ 1462 rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \ 1463 done 1397 1464 1398 1465 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) … … 1447 1514 $(am__remove_distdir) 1448 1515 mkdir $(distdir) 1449 $(mkdir_p) $(distdir)/ . $(distdir)/../.. $(distdir)/../../BuildTools1516 $(mkdir_p) $(distdir)/$(GLPKDIR)/include $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools 1450 1517 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 1451 1518 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ … … 1573 1640 check-am: all-am 1574 1641 check: check-am 1575 all-am: Makefile $(LTLIBRARIES) config_glpk.h1642 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) config_glpk.h 1576 1643 installdirs: 1644 for dir in "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \ 1645 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 1646 done 1577 1647 install: install-am 1578 1648 install-exec: install-exec-am … … 1602 1672 clean: clean-am 1603 1673 1604 clean-am: clean-generic clean-libtool clean- noinstLTLIBRARIES \1674 clean-am: clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \ 1605 1675 mostlyclean-am 1606 1676 … … 1622 1692 info-am: 1623 1693 1624 install-data-am: 1694 install-data-am: install-addlibsDATA install-thirdpartyincludeHEADERS \ 1695 install-thirdpartylibLTLIBRARIES 1625 1696 1626 1697 install-exec-am: … … 1652 1723 ps-am: 1653 1724 1654 uninstall-am: uninstall-info-am 1725 uninstall-am: uninstall-addlibsDATA uninstall-info-am \ 1726 uninstall-thirdpartyincludeHEADERS \ 1727 uninstall-thirdpartylibLTLIBRARIES 1655 1728 1656 1729 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ 1657 clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \ 1658 dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ 1659 distcheck distclean distclean-compile distclean-generic \ 1660 distclean-hdr distclean-libtool distclean-tags distcleancheck \ 1661 distdir distuninstallcheck dvi dvi-am html html-am info \ 1662 info-am install install-am install-data install-data-am \ 1663 install-exec install-exec-am install-info install-info-am \ 1664 install-man install-strip installcheck installcheck-am \ 1730 clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \ 1731 ctags dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \ 1732 dist-zip distcheck distclean distclean-compile \ 1733 distclean-generic distclean-hdr distclean-libtool \ 1734 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 1735 dvi-am html html-am info info-am install install-addlibsDATA \ 1736 install-am install-data install-data-am install-exec \ 1737 install-exec-am install-info install-info-am install-man \ 1738 install-strip install-thirdpartyincludeHEADERS \ 1739 install-thirdpartylibLTLIBRARIES installcheck installcheck-am \ 1665 1740 installdirs maintainer-clean maintainer-clean-generic \ 1666 1741 mostlyclean mostlyclean-compile mostlyclean-generic \ 1667 1742 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ 1668 uninstall-am uninstall-info-am 1743 uninstall-addlibsDATA uninstall-am uninstall-info-am \ 1744 uninstall-thirdpartyincludeHEADERS \ 1745 uninstall-thirdpartylibLTLIBRARIES 1669 1746 1670 1747 -
ThirdParty/Glpk/trunk/config_glpk.h.in
r1321 r1379 7 7 #undef COIN_GLPK_VERBOSITY 8 8 9 /* Define to 1 if Glpk package is available*/9 /* Define to 1 if the Glpk package is used */ 10 10 #undef COIN_HAS_GLPK 11 11 -
ThirdParty/Glpk/trunk/configure
r1321 r1379 434 434 PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' 435 435 436 ac_unique_file=" Makefile.am"436 ac_unique_file="glpk/include/glpk.h" 437 437 ac_default_prefix=`pwd` 438 438 # Factoring default headers for most tests. … … 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 GLPK INCDIR 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'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 GLPKSRCDIR GLPKOBJDIR GLPKDOCDIR COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1073 1073 optimize for fast installation [default=yes] 1074 1074 --disable-libtool-lock avoid locking (might break parallel builds) 1075 --enable-glpk-libcheck use disable-glpk-libcheck to skip the1076 link check at configuration time1077 1075 --enable-gnu-packages compile with GNU packages (disabled by default) 1078 1076 --enable-odbc enable MathProg ODBC support [default=auto] … … 1089 1087 --with-tags[=TAGS] 1090 1088 include additional configurations [automatic] 1091 --with-glpk-incdir specify the header file directory for library Glpk1092 --with-glpk-lib specify the flags used to link with the library Glpk1093 1089 1094 1090 Some influential environment variables: … … 1583 1579 1584 1580 1581 # As backup, we make sure we don't loose an FLIBS if it has been set 1582 # by the user 1583 save_FLIBS="$FLIBS" 1584 1585 1585 # Initialize the FADDLIBS variable (which is to be used with a fortran 1586 1586 # compiler and will not include FLIBS) … … 1603 1603 # that we are in a project main directory 1604 1604 coin_projectdir=yes 1605 1606 # Check if a library version is set for libtool 1607 1605 1608 1606 1609 … … 4725 4728 *-*-irix6*) 4726 4729 # Find out which ABI we are using. 4727 echo '#line 47 27"configure"' > conftest.$ac_ext4730 echo '#line 4730 "configure"' > conftest.$ac_ext 4728 4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4729 4732 (eval $ac_compile) 2>&5 … … 6324 6327 6325 6328 # Provide some information about the compiler. 6326 echo "$as_me:632 6:" \6329 echo "$as_me:6329:" \ 6327 6330 "checking for Fortran 77 compiler version" >&5 6328 6331 ac_compiler=`set X $ac_compile; echo $2` … … 7391 7394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7392 7395 -e 's:$: $lt_compiler_flag:'` 7393 (eval echo "\"\$as_me:739 3: $lt_compile\"" >&5)7396 (eval echo "\"\$as_me:7396: $lt_compile\"" >&5) 7394 7397 (eval "$lt_compile" 2>conftest.err) 7395 7398 ac_status=$? 7396 7399 cat conftest.err >&5 7397 echo "$as_me:7 397: \$? = $ac_status" >&57400 echo "$as_me:7400: \$? = $ac_status" >&5 7398 7401 if (exit $ac_status) && test -s "$ac_outfile"; then 7399 7402 # The compiler can only warn and ignore the option if not recognized … … 7659 7662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7660 7663 -e 's:$: $lt_compiler_flag:'` 7661 (eval echo "\"\$as_me:766 1: $lt_compile\"" >&5)7664 (eval echo "\"\$as_me:7664: $lt_compile\"" >&5) 7662 7665 (eval "$lt_compile" 2>conftest.err) 7663 7666 ac_status=$? 7664 7667 cat conftest.err >&5 7665 echo "$as_me:766 5: \$? = $ac_status" >&57668 echo "$as_me:7668: \$? = $ac_status" >&5 7666 7669 if (exit $ac_status) && test -s "$ac_outfile"; then 7667 7670 # The compiler can only warn and ignore the option if not recognized … … 7763 7766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7764 7767 -e 's:$: $lt_compiler_flag:'` 7765 (eval echo "\"\$as_me:776 5: $lt_compile\"" >&5)7768 (eval echo "\"\$as_me:7768: $lt_compile\"" >&5) 7766 7769 (eval "$lt_compile" 2>out/conftest.err) 7767 7770 ac_status=$? 7768 7771 cat out/conftest.err >&5 7769 echo "$as_me:77 69: \$? = $ac_status" >&57772 echo "$as_me:7772: \$? = $ac_status" >&5 7770 7773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7771 7774 then … … 10108 10111 lt_status=$lt_dlunknown 10109 10112 cat > conftest.$ac_ext <<EOF 10110 #line 1011 0"configure"10113 #line 10113 "configure" 10111 10114 #include "confdefs.h" 10112 10115 … … 10208 10211 lt_status=$lt_dlunknown 10209 10212 cat > conftest.$ac_ext <<EOF 10210 #line 1021 0"configure"10213 #line 10213 "configure" 10211 10214 #include "confdefs.h" 10212 10215 … … 12552 12555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12553 12556 -e 's:$: $lt_compiler_flag:'` 12554 (eval echo "\"\$as_me:1255 4: $lt_compile\"" >&5)12557 (eval echo "\"\$as_me:12557: $lt_compile\"" >&5) 12555 12558 (eval "$lt_compile" 2>conftest.err) 12556 12559 ac_status=$? 12557 12560 cat conftest.err >&5 12558 echo "$as_me:125 58: \$? = $ac_status" >&512561 echo "$as_me:12561: \$? = $ac_status" >&5 12559 12562 if (exit $ac_status) && test -s "$ac_outfile"; then 12560 12563 # The compiler can only warn and ignore the option if not recognized … … 12656 12659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12657 12660 -e 's:$: $lt_compiler_flag:'` 12658 (eval echo "\"\$as_me:126 58: $lt_compile\"" >&5)12661 (eval echo "\"\$as_me:12661: $lt_compile\"" >&5) 12659 12662 (eval "$lt_compile" 2>out/conftest.err) 12660 12663 ac_status=$? 12661 12664 cat out/conftest.err >&5 12662 echo "$as_me:1266 2: \$? = $ac_status" >&512665 echo "$as_me:12665: \$? = $ac_status" >&5 12663 12666 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12664 12667 then … … 14226 14229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14227 14230 -e 's:$: $lt_compiler_flag:'` 14228 (eval echo "\"\$as_me:142 28: $lt_compile\"" >&5)14231 (eval echo "\"\$as_me:14231: $lt_compile\"" >&5) 14229 14232 (eval "$lt_compile" 2>conftest.err) 14230 14233 ac_status=$? 14231 14234 cat conftest.err >&5 14232 echo "$as_me:1423 2: \$? = $ac_status" >&514235 echo "$as_me:14235: \$? = $ac_status" >&5 14233 14236 if (exit $ac_status) && test -s "$ac_outfile"; then 14234 14237 # The compiler can only warn and ignore the option if not recognized … … 14330 14333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14331 14334 -e 's:$: $lt_compiler_flag:'` 14332 (eval echo "\"\$as_me:1433 2: $lt_compile\"" >&5)14335 (eval echo "\"\$as_me:14335: $lt_compile\"" >&5) 14333 14336 (eval "$lt_compile" 2>out/conftest.err) 14334 14337 ac_status=$? 14335 14338 cat out/conftest.err >&5 14336 echo "$as_me:1433 6: \$? = $ac_status" >&514339 echo "$as_me:14339: \$? = $ac_status" >&5 14337 14340 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14338 14341 then … … 16537 16540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16538 16541 -e 's:$: $lt_compiler_flag:'` 16539 (eval echo "\"\$as_me:165 39: $lt_compile\"" >&5)16542 (eval echo "\"\$as_me:16542: $lt_compile\"" >&5) 16540 16543 (eval "$lt_compile" 2>conftest.err) 16541 16544 ac_status=$? 16542 16545 cat conftest.err >&5 16543 echo "$as_me:1654 3: \$? = $ac_status" >&516546 echo "$as_me:16546: \$? = $ac_status" >&5 16544 16547 if (exit $ac_status) && test -s "$ac_outfile"; then 16545 16548 # The compiler can only warn and ignore the option if not recognized … … 16805 16808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16806 16809 -e 's:$: $lt_compiler_flag:'` 16807 (eval echo "\"\$as_me:168 07: $lt_compile\"" >&5)16810 (eval echo "\"\$as_me:16810: $lt_compile\"" >&5) 16808 16811 (eval "$lt_compile" 2>conftest.err) 16809 16812 ac_status=$? 16810 16813 cat conftest.err >&5 16811 echo "$as_me:1681 1: \$? = $ac_status" >&516814 echo "$as_me:16814: \$? = $ac_status" >&5 16812 16815 if (exit $ac_status) && test -s "$ac_outfile"; then 16813 16816 # The compiler can only warn and ignore the option if not recognized … … 16909 16912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16910 16913 -e 's:$: $lt_compiler_flag:'` 16911 (eval echo "\"\$as_me:1691 1: $lt_compile\"" >&5)16914 (eval echo "\"\$as_me:16914: $lt_compile\"" >&5) 16912 16915 (eval "$lt_compile" 2>out/conftest.err) 16913 16916 ac_status=$? 16914 16917 cat out/conftest.err >&5 16915 echo "$as_me:1691 5: \$? = $ac_status" >&516918 echo "$as_me:16918: \$? = $ac_status" >&5 16916 16919 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16917 16920 then … … 19794 19797 LT_LDFLAGS= 19795 19798 19799 # Check if we want to set the library version 19800 echo "$as_me:$LINENO: checking if library version is set" >&5 19801 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 19802 if test x"$coin_libversion" != x; then 19803 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 19804 echo "$as_me:$LINENO: result: $coin_libversion" >&5 19805 echo "${ECHO_T}$coin_libversion" >&6 19806 else 19807 echo "$as_me:$LINENO: result: no" >&5 19808 echo "${ECHO_T}no" >&6 19809 fi 19810 19811 19796 19812 19797 19813 #END … … 19801 19817 # COIN_HAS_GLPK # 19802 19818 ########################################################################### 19819 19820 echo "$as_me:$LINENO: checking for COIN project Glpk" >&5 19821 echo $ECHO_N "checking for COIN project Glpk... $ECHO_C" >&6 19822 19823 # First check, if the sub-project is actually available (ToDo: allow 19824 # other locations) 19825 19826 coin_has_glpk=unavailable 19827 if test x"$COIN_SKIP_PROJECTS" != x; then 19828 for dir in $COIN_SKIP_PROJECTS; do 19829 if test $dir = Glpk; then 19830 coin_has_glpk=skipping 19831 fi 19832 done 19833 fi 19834 19835 if test $coin_has_glpk != skipping; then 19836 if test $PACKAGE_TARNAME = glpk; then 19837 coin_has_glpk=. 19838 else 19839 if test -d $srcdir/../Glpk; then 19840 coin_has_glpk=../Glpk 19841 fi 19842 fi 19843 fi 19844 19845 if test $coin_has_glpk != unavailable && 19846 test $coin_has_glpk != skipping; then 19847 # Set the #define if the component is available 19848 19849 cat >>confdefs.h <<\_ACEOF 19850 #define COIN_HAS_GLPK 1 19851 _ACEOF 19852 19853 19854 # Set the variables for source and object code location 19855 19856 GLPKSRCDIR=`cd $srcdir/$coin_has_glpk; pwd` 19857 19858 GLPKOBJDIR=`pwd`/$coin_has_glpk 19859 19860 GLPKDOCDIR=$abs_lib_dir/../share/doc/coin/Glpk 19861 fi 19862 19863 # Define the Makefile conditional 19864 19865 19866 if test $coin_has_glpk != unavailable && 19867 test $coin_has_glpk != skipping; then 19868 COIN_HAS_GLPK_TRUE= 19869 COIN_HAS_GLPK_FALSE='#' 19870 else 19871 COIN_HAS_GLPK_TRUE='#' 19872 COIN_HAS_GLPK_FALSE= 19873 fi 19874 19875 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5 19876 echo "${ECHO_T}$coin_has_glpk" >&6 19877 19803 19878 19804 19879 # This macro checks for a library containing the GLPK library. It … … 19812 19887 19813 19888 ## Check if GLPK is already provided by user 19814 19815 if test "$PACKAGE_NAME" = ThirdPartyGlpk; then 19816 coin_glpkobjdir=../Glpk 19817 else 19818 coin_glpkobjdir=../ThirdParty/Glpk 19819 fi 19820 coin_glpksrcdir=$abs_source_dir/$coin_glpkobjdir 19821 19822 use_thirdpartyglpk=no 19823 19824 # Check for the requested component. If the user specified an external glpk 19825 # library don't force a ThirdParty build, let the error propagate. 19826 19827 19828 echo "$as_me:$LINENO: checking if user provides library for Glpk" >&5 19829 echo $ECHO_N "checking if user provides library for Glpk... $ECHO_C" >&6 19830 19831 # Check for header file directory 19832 19833 19834 # Check whether --with-glpk-incdir or --without-glpk-incdir was given. 19835 if test "${with_glpk_incdir+set}" = set; then 19836 withval="$with_glpk_incdir" 19837 GLPKINCDIR=`cd $withval; pwd` 19838 fi; 19839 19840 # Check for library directory 19841 19842 19843 # Check whether --with-glpk-lib or --without-glpk-lib was given. 19844 if test "${with_glpk_lib+set}" = set; then 19845 withval="$with_glpk_lib" 19846 GLPKLIB=$withval 19847 fi; 19848 19849 # Switch to disable library check if requested 19850 19851 # Check whether --enable-glpk-libcheck or --disable-glpk-libcheck was given. 19852 if test "${enable_glpk_libcheck+set}" = set; then 19853 enableval="$enable_glpk_libcheck" 19854 glpk_libcheck=$enableval 19855 else 19856 glpk_libcheck=yes 19857 fi; 19858 19859 # At this point, if we're going to use the library, both LBRYINCDIR and 19860 # LBRYLIB must be defined and not empty. 19861 19862 if test x"$GLPKINCDIR" != x || test x"$GLPKLIB" != x; then 19863 if test x"$GLPKINCDIR" = x || test x"$GLPKLIB" = x; then 19864 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&5 19865 echo "$as_me: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&2;} 19866 { (exit 1); exit 1; }; } 19867 fi 19868 coin_has_glpk=true 19869 echo "$as_me:$LINENO: result: yes" >&5 19870 echo "${ECHO_T}yes" >&6 19871 else 19872 coin_has_glpk=false 19873 echo "$as_me:$LINENO: result: no" >&5 19874 echo "${ECHO_T}no" >&6 19875 fi 19876 19877 # If we have instructions for use, consider header and link checks. 19878 19879 if test $coin_has_glpk = true; then 19880 19881 # If argument 3 (file) is given, check for the file. Typically this will be a 19882 # header file, but that's not assumed. 19883 19884 if test -r $GLPKINCDIR/glpk.h; then 19885 19886 : 19887 else 19888 { { echo "$as_me:$LINENO: error: Cannot find file glpk.h in $GLPKINCDIR" >&5 19889 echo "$as_me: error: Cannot find file glpk.h in $GLPKINCDIR" >&2;} 19890 { (exit 1); exit 1; }; } 19891 : 19892 fi 19893 19894 19895 # Now see if we can link the function. There are arguments for and against 19896 # assuming argument 3 is a header file declaring the function. A correct 19897 # function declaration is the main argument in favour. Having to cope with 19898 # possible dependencies or other oddities are the main arguments against. 19899 # Force the use of C as the best single choice amongst C++, C, and Fortran. 19900 # Obviously, this has limits. 19901 19902 if test x"$glpk_libcheck" != xno; then 19903 coin_save_LIBS="$LIBS" 19904 LIBS="$GLPKLIB $ADDLIBS" 19905 coin_GLPK_link=no 19906 ac_ext=c 19907 ac_cpp='$CPP $CPPFLAGS' 19908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19910 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19911 19912 for fnm in _glp_lpx_simplex glp_lpx_simplex ; do 19913 echo "$as_me:$LINENO: checking whether symbol $fnm is available with GLPK" >&5 19914 echo $ECHO_N "checking whether symbol $fnm is available with GLPK... $ECHO_C" >&6 19915 cat >conftest.$ac_ext <<_ACEOF 19916 /* confdefs.h. */ 19917 _ACEOF 19918 cat confdefs.h >>conftest.$ac_ext 19919 cat >>conftest.$ac_ext <<_ACEOF 19920 /* end confdefs.h. */ 19921 19922 int 19923 main () 19924 { 19925 $fnm() 19926 ; 19927 return 0; 19928 } 19929 _ACEOF 19930 rm -f conftest.$ac_objext conftest$ac_exeext 19931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19932 (eval $ac_link) 2>conftest.er1 19933 ac_status=$? 19934 grep -v '^ *+' conftest.er1 >conftest.err 19935 rm -f conftest.er1 19936 cat conftest.err >&5 19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19938 (exit $ac_status); } && 19939 { ac_try='test -z "$ac_c_werror_flag" 19940 || test ! -s conftest.err' 19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19942 (eval $ac_try) 2>&5 19943 ac_status=$? 19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19945 (exit $ac_status); }; } && 19946 { ac_try='test -s conftest$ac_exeext' 19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19948 (eval $ac_try) 2>&5 19949 ac_status=$? 19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19951 (exit $ac_status); }; }; then 19952 echo "$as_me:$LINENO: result: yes" >&5 19953 echo "${ECHO_T}yes" >&6 19954 coin_GLPK_link=yes 19955 break 19956 else 19957 echo "$as_me: failed program was:" >&5 19958 sed 's/^/| /' conftest.$ac_ext >&5 19959 19960 echo "$as_me:$LINENO: result: no" >&5 19961 echo "${ECHO_T}no" >&6 19962 fi 19963 rm -f conftest.err conftest.$ac_objext \ 19964 conftest$ac_exeext conftest.$ac_ext 19965 done 19966 ac_ext=c 19967 ac_cpp='$CPP $CPPFLAGS' 19968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19971 19972 if test x"$coin_GLPK_link" = xyes ; then 19973 LIBS="$coin_save_LIBS" 19974 else 19975 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) _glp_lpx_simplex glp_lpx_simplex with GLPK" >&5 19976 echo "$as_me: error: Cannot find symbol(s) _glp_lpx_simplex glp_lpx_simplex with GLPK" >&2;} 19977 { (exit 1); exit 1; }; } 19978 fi 19979 fi 19980 19981 19982 # If we make it this far, we've verified the file and linked the function. Add 19983 # the necessary link flags to ADDLIBS and define the preprocessor symbol 19984 # COIN_HAS_LBRY. 19985 19986 ADDLIBS="$GLPKLIB $ADDLIBS" 19987 19988 cat >>confdefs.h <<\_ACEOF 19989 #define COIN_HAS_GLPK 1 19990 _ACEOF 19991 19992 fi 19993 19994 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the 19995 # automake conditional. These actions must occur unconditionally. 19996 19997 19998 19999 20000 20001 if test $coin_has_glpk = true; then 20002 COIN_HAS_GLPK_TRUE= 20003 COIN_HAS_GLPK_FALSE='#' 20004 else 20005 COIN_HAS_GLPK_TRUE='#' 20006 COIN_HAS_GLPK_FALSE= 20007 fi 20008 20009 20010 if test x"$coin_has_glpk" = xfalse && test x"$GLPKLIB" = x ; then 20011 use_thirdpartyglpk=try 20012 fi 20013 20014 20015 # If the user has supplied an external library, use it. Otherwise, consider 20016 # a build in ThirdParty/Glpk. If we build, assume we get both glpk and gmpl. 20017 20018 if test x"$use_thirdpartyglpk" = xtry ; then 20019 MAKEOKFILE=.MakeOk 20020 # Check if the Glpk's ThirdParty project has been configured 20021 if test "$PACKAGE_NAME" != ThirdPartyGlpk; then 20022 if test -r $coin_glpkobjdir/.MakeOk; then 20023 use_thirdpartyglpk=build 20024 else 20025 use_thirdpartyglpk=no 20026 fi 20027 else 20028 use_thirdpartyglpk=build 20029 fi 20030 20031 # If we're building, set the library and include directory variables, create a 20032 # preprocessor symbol, define a variable that says we're using glpk/gmpl, and 20033 # another to indicate a link check is a bad idea (hard to do before the library 20034 # exists). 20035 20036 if test x"$use_thirdpartyglpk" = xbuild ; then 20037 GLPKINCDIR="$coin_glpksrcdir/glpk/include" 20038 20039 20040 cat >>confdefs.h <<\_ACEOF 20041 #define COIN_HAS_GLPK 1 20042 _ACEOF 20043 20044 coin_has_glpk=true 20045 glpk_libcheck=no 20046 GLPKOBJDIR=`cd $coin_glpkobjdir; pwd` 20047 20048 { echo "$as_me:$LINENO: Using Glpk in ThirdParty/Glpk" >&5 20049 echo "$as_me: Using Glpk in ThirdParty/Glpk" >&6;} 20050 fi 20051 fi 20052 20053 # Define the necessary automake conditionals. 20054 20055 20056 20057 if test x"$coin_has_glpk" = xtrue; then 20058 COIN_HAS_GLPK_TRUE= 20059 COIN_HAS_GLPK_FALSE='#' 20060 else 20061 COIN_HAS_GLPK_TRUE='#' 20062 COIN_HAS_GLPK_FALSE= 20063 fi 20064 20065 20066 20067 if test x"$use_thirdpartyglpk" = xbuild; then 20068 COIN_BUILD_GLPK_TRUE= 20069 COIN_BUILD_GLPK_FALSE='#' 20070 else 20071 COIN_BUILD_GLPK_TRUE='#' 20072 COIN_BUILD_GLPK_FALSE= 20073 fi 20074 20075 20076 20077 20078 rm -f $MAKEOKFILE 20079 if test x"$use_thirdpartyglpk" = xbuild ; then 20080 touch $MAKEOKFILE 19889 #AC_COIN_HAS_GLPK(Glpk) 19890 19891 #rm -f $MAKEOKFILE 19892 #if test x"$use_thirdpartyglpk" = xbuild ; then 19893 # touch $MAKEOKFILE 20081 19894 echo "$as_me:$LINENO: checking GLPK version" >&5 20082 19895 echo $ECHO_N "checking GLPK version... $ECHO_C" >&6 20083 majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $ {GLPKINCDIR}/glpk.h`20084 minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $ {GLPKINCDIR}/glpk.h`19896 majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 19897 minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 20085 19898 echo "$as_me:$LINENO: result: ${majorver}.${minorver}" >&5 20086 19899 echo "${ECHO_T}${majorver}.${minorver}" >&6 20087 if test $majorver != 4 || test $minorver !=38 ; then19900 if test x$majorver != x4 || test x$minorver != x38 ; then 20088 19901 { { echo "$as_me:$LINENO: error: \"Incorrect GLPK version. This build system is made for GLPK 4.38. Please update by rerunning get.GLPK\"" >&5 20089 19902 echo "$as_me: error: \"Incorrect GLPK version. This build system is made for GLPK 4.38. Please update by rerunning get.GLPK\"" >&2;} 20090 19903 { (exit 1); exit 1; }; } 20091 19904 fi 20092 else 20093 if test x$coin_has_glpk = xtrue ; then 20094 { echo "$as_me:$LINENO: The Glpk sources don't need to be compiled" >&5 20095 echo "$as_me: The Glpk sources don't need to be compiled" >&6;} 20096 else 20097 { echo "$as_me:$LINENO: WARNING: Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?" >&5 20098 echo "$as_me: WARNING: Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?" >&2;} 20099 fi 20100 MAKEOKFILE= 20101 fi 20102 19905 #else 19906 # if test x$coin_has_glpk = xtrue ; then 19907 # AC_MSG_NOTICE([The Glpk sources don't need to be compiled]) 19908 # else 19909 # AC_MSG_WARN([Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?]) 19910 # fi 19911 # MAKEOKFILE= 19912 #fi 19913 #AC_SUBST(MAKEOKFILE) 20103 19914 20104 19915 ########################################################################### … … 20978 20789 20979 20790 if test "$enable_dl" = "no"; then 20980 #if test x"" = x; then20791 #if test x"" = x; then 20981 20792 # hdr="#include <ltdl.h>" 20982 20793 #else … … 21388 21199 enableval="$enable_odbc" 21389 21200 case $enableval in 21390 21201 yes | unix) 21391 21202 #if test x"" = x; then 21392 21203 # hdr="#include <sql.h>" … … 21555 21366 enable_odbc="no" 21556 21367 ;; 21557 21558 21368 *) 21369 { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-odbc" >&5 21559 21370 echo "$as_me: error: invalid value '$enableval' for --enable-odbc" >&2;} 21560 21371 { (exit 1); exit 1; }; } 21561 21372 ;; 21562 21373 esac 21563 21374 else … … 21728 21539 enableval="$enable_mysql" 21729 21540 case $enableval in 21730 21541 yes) 21731 21542 #if test x"" = x; then 21732 21543 # hdr="#include <mysql.h mysql/mysql.h>" … … 21896 21707 enable_mysql="no" 21897 21708 ;; 21898 21899 21709 *) 21710 { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-mysql" >&5 21900 21711 echo "$as_me: error: invalid value '$enableval' for --enable-mysql" >&2;} 21901 21712 { (exit 1); exit 1; }; } 21902 21713 ;; 21903 21714 esac 21904 21715 else … … 22366 22177 Usually this means the macro was only invoked conditionally." >&5 22367 22178 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined. 22368 Usually this means the macro was only invoked conditionally." >&2;}22369 { (exit 1); exit 1; }; }22370 fi22371 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then22372 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.22373 Usually this means the macro was only invoked conditionally." >&522374 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.22375 Usually this means the macro was only invoked conditionally." >&2;}22376 { (exit 1); exit 1; }; }22377 fi22378 if test -z "${COIN_BUILD_GLPK_TRUE}" && test -z "${COIN_BUILD_GLPK_FALSE}"; then22379 { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_GLPK\" was never defined.22380 Usually this means the macro was only invoked conditionally." >&522381 echo "$as_me: error: conditional \"COIN_BUILD_GLPK\" was never defined.22382 22179 Usually this means the macro was only invoked conditionally." >&2;} 22383 22180 { (exit 1); exit 1; }; } … … 23017 22814 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 23018 22815 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 23019 s,@GLPKINCDIR@,$GLPKINCDIR,;t t 23020 s,@GLPKLIB@,$GLPKLIB,;t t 22816 s,@GLPKSRCDIR@,$GLPKSRCDIR,;t t 22817 s,@GLPKOBJDIR@,$GLPKOBJDIR,;t t 22818 s,@GLPKDOCDIR@,$GLPKDOCDIR,;t t 23021 22819 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t 23022 22820 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t 23023 s,@GLPKOBJDIR@,$GLPKOBJDIR,;t t23024 s,@COIN_BUILD_GLPK_TRUE@,$COIN_BUILD_GLPK_TRUE,;t t23025 s,@COIN_BUILD_GLPK_FALSE@,$COIN_BUILD_GLPK_FALSE,;t t23026 s,@MAKEOKFILE@,$MAKEOKFILE,;t t23027 22821 s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t 23028 22822 s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t -
ThirdParty/Glpk/trunk/configure.ac
r1321 r1379 21 21 # List one file in the package so that the configure script can test 22 22 # whether the package is actually there 23 AC_CONFIG_SRCDIR( Makefile.am)23 AC_CONFIG_SRCDIR(glpk/include/glpk.h) 24 24 25 25 # Where should everything be installed by default? Here, we want it … … 54 54 # COIN_HAS_GLPK # 55 55 ########################################################################### 56 57 AC_COIN_HAS_PROJECT(Glpk) 56 58 57 59 # This macro checks for a library containing the GLPK library. It … … 65 67 66 68 ## Check if GLPK is already provided by user 67 AC_COIN_HAS_GLPK(Glpk)68 69 rm -f $MAKEOKFILE70 if test x"$use_thirdpartyglpk" = xbuild ; then71 touch $MAKEOKFILE69 #AC_COIN_HAS_GLPK(Glpk) 70 71 #rm -f $MAKEOKFILE 72 #if test x"$use_thirdpartyglpk" = xbuild ; then 73 # touch $MAKEOKFILE 72 74 AC_MSG_CHECKING([GLPK version]) 73 majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $ {GLPKINCDIR}/glpk.h`74 minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $ {GLPKINCDIR}/glpk.h`75 majorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 76 minorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 75 77 AC_MSG_RESULT([${majorver}.${minorver}]) 76 if test $majorver != 4 || test $minorver !=38 ; then78 if test x$majorver != x4 || test x$minorver != x38 ; then 77 79 AC_MSG_ERROR(["Incorrect GLPK version. This build system is made for GLPK 4.38. Please update by rerunning get.GLPK"]) 78 80 fi 79 else80 if test x$coin_has_glpk = xtrue ; then81 AC_MSG_NOTICE([The Glpk sources don't need to be compiled])82 else83 AC_MSG_WARN([Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?])84 fi85 MAKEOKFILE=86 fi87 AC_SUBST(MAKEOKFILE)81 #else 82 # if test x$coin_has_glpk = xtrue ; then 83 # AC_MSG_NOTICE([The Glpk sources don't need to be compiled]) 84 # else 85 # AC_MSG_WARN([Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?]) 86 # fi 87 # MAKEOKFILE= 88 #fi 89 #AC_SUBST(MAKEOKFILE) 88 90 89 91 ########################################################################### … … 132 134 133 135 if test "$enable_dl" = "no"; then 134 AC_COIN_CHECK_HEADER([ltdl.h],[enable_dl=yes])136 AC_COIN_CHECK_HEADER([ltdl.h],[enable_dl=yes]) 135 137 if test "$enable_dl" = "yes"; then 136 138 #if ltdl.h is there, check also if libltdl is there; if so, set corresponding define for GLPK … … 150 152 151 153 AC_ARG_ENABLE(odbc, 152 153 154 154 AC_HELP_STRING([--enable-odbc],[enable MathProg ODBC support [[default=auto]]]), 155 [case $enableval in 156 yes | unix) 155 157 AC_COIN_CHECK_HEADER([sql.h],,[AC_MSG_ERROR(["need sql.h to enable ODBC support"])]) 156 158 enable_odbc="$enableval" … … 159 161 enable_odbc="no" 160 162 ;; 161 162 163 163 *) 164 AC_MSG_ERROR([invalid value '$enableval' for --enable-odbc]) 165 ;; 164 166 esac], 165 167 [AC_COIN_CHECK_HEADER([sql.h],[enable_odbc=yes],[enable_odbc=no])] 166 168 ) 167 169 168 170 AC_ARG_ENABLE(mysql, 169 170 171 171 AC_HELP_STRING([--enable-mysql],[enable MathProg MySQL support [[default=auto]]]), 172 [case $enableval in 173 yes) 172 174 AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],,[AC_MSG_ERROR(["need mysql.h to enable MySQL support"])]) 173 175 enable_mysql="$enableval" … … 176 178 enable_mysql="no" 177 179 ;; 178 179 180 180 *) 181 AC_MSG_ERROR([invalid value '$enableval' for --enable-mysql]) 182 ;; 181 183 esac], 182 184 [AC_COIN_CHECK_HEADER([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no])] 183 185 ) 184 186 185 187 AC_LANG_POP(C) 186 188 187 189 if test "$enable_dl" = "yes" && ( test "$enable_odbc" = "yes" || test "$enable_odbc" = "unix"); then 188 190 AC_MSG_CHECKING([checking name of ODBC library])
Note: See TracChangeset
for help on using the changeset viewer.