Changeset 1446 for ThirdParty/Glpk/branches/BSPsplit/configure.ac
- Timestamp:
- Nov 22, 2009 1:47:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Glpk/branches/BSPsplit/configure.ac
r1396 r1446 52 52 53 53 ########################################################################### 54 # COIN_HAS_GLPK # 55 ########################################################################### 56 57 AC_COIN_HAS_PROJECT(Glpk) 58 59 # This macro checks for a library containing the GLPK library. It 60 # checks if the user has provided an argument for the GLPK library, 61 # and if not, it checks whether the GLPK ThirdParty/GLPK directory has 62 # been configured. It adds to ADDLIBS any flags required to link with 63 # an externally provided GLPK. It defines the makefile conditional 64 # and preprocessor macro COIN_HAS_GLPK, if GLPK is available, and it 65 # defines the makefile conditional COIN_BUILD_GLPK, if GLPK is 66 # compiled within COIN. 67 68 ## Check if GLPK is already provided by user 69 #AC_COIN_HAS_GLPK(Glpk) 70 71 #rm -f $MAKEOKFILE 72 #if test x"$use_thirdpartyglpk" = xbuild ; then 73 # touch $MAKEOKFILE 74 AC_MSG_CHECKING([GLPK version]) 75 glpkmajorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 76 glpkminorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 77 AC_MSG_RESULT([${glpkmajorver}.${glpkminorver}]) 78 if test x$glpkmajorver != x4 || test x$glpkminorver != x39 ; then 79 AC_MSG_ERROR(["Incorrect GLPK version. This build system is made for GLPK 4.39. Please update by rerunning get.GLPK"]) 80 fi 81 AC_SUBST(glpkmajorver) 82 AC_SUBST(glpkminorver) 83 #else 84 # if test x$coin_has_glpk = xtrue ; then 85 # AC_MSG_NOTICE([The Glpk sources don't need to be compiled]) 86 # else 87 # 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?]) 88 # fi 89 # MAKEOKFILE= 90 #fi 91 #AC_SUBST(MAKEOKFILE) 54 # check GLPK version # 55 ########################################################################### 56 57 AC_MSG_CHECKING([GLPK version]) 58 glpkmajorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 59 glpkminorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/include/glpk.h` 60 AC_MSG_RESULT([${glpkmajorver}.${glpkminorver}]) 61 if test x$glpkmajorver != x4 || test x$glpkminorver != x39 ; then 62 AC_MSG_ERROR(["Incorrect GLPK version. This build system is made for GLPK 4.39. Please update by rerunning get.GLPK"]) 63 fi 64 AC_SUBST(glpkmajorver) 65 AC_SUBST(glpkminorver) 92 66 93 67 ###########################################################################
Note: See TracChangeset
for help on using the changeset viewer.