Changeset 1272
- Timestamp:
- Apr 24, 2009 12:33:02 PM (12 years ago)
- Location:
- stable/0.5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/0.5
- Property svn:mergeinfo changed
/trunk merged: 1259,1266
- Property svn:mergeinfo changed
-
stable/0.5/coin.m4
r1239 r1272 1 # Copyright (C) 2006, 200 7International Business Machines.1 # Copyright (C) 2006, 2009 International Business Machines. 2 2 # All Rights Reserved. 3 3 # This file is distributed under the Common Public License. … … 3160 3160 3161 3161 ########################################################################### 3162 # COIN_HAS_METIS # 3163 ########################################################################### 3164 3165 # This macro checks for a library containing the METIS library. It 3166 # checks if the user has provided an argument for the METIS library, 3167 # and if not, it checks whether the METIS ThirdParty/Metis directory has 3168 # been configured. It adds to ADDLIBS any flags required to link with 3169 # an externally provided METIS. It defines the makefile conditional 3170 # and preprocessor macro COIN_HAS_METIS, if METIS is available, and it 3171 # defines the makefile conditional COIN_BUILD_METIS, if METIS is 3172 # compiled within COIN. 3173 3174 AC_DEFUN([AC_COIN_HAS_METIS], 3175 [ 3176 case "$PACKAGE_NAME" in 3177 ThirdParty*) 3178 coin_metisobjdir=../Metis 3179 ;; 3180 *) 3181 coin_metisobjdir=../ThirdParty/Metis 3182 ;; 3183 esac 3184 3185 MAKEOKFILE=.MakeOk 3186 3187 #check if user provides a METIS library (that works) 3188 AC_LANG_PUSH(C) 3189 AC_ARG_WITH(metis, 3190 AS_HELP_STRING([--with-metis], [specify flags to link with METIS library]), 3191 [METISLIB="$withval"; coin_has_metis=true], [coin_has_metis=no]) 3192 3193 if test $coin_has_metis = true; then 3194 coin_save_LIBS="$LIBS" 3195 LIBS="$METISLIB $ADDLIBS" 3196 AC_MSG_CHECKING([whether symbol metis_nodend is available with ]) 3197 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[metis_nodend()]])], 3198 [AC_MSG_RESULT(yes)], 3199 [AC_MSG_RESULT(no) 3200 AC_MSG_ERROR([User-supplied METIS library does not work])]) 3201 LIBS="$coin_save_LIBS" 3202 fi 3203 AC_LANG_POP(C) 3204 3205 if test "$coin_has_metis" = "true"; then # user provided metis library 3206 use_metis=yes 3207 coin_has_metis=yes 3208 3209 ADDLIBS="$METISLIB $ADDLIBS" 3210 3211 else # no user provided library, so we try to build our own 3212 use_metis=BUILD 3213 3214 # Check if the METIS' ThirdParty project has been configured 3215 if test "$PACKAGE_NAME" != ThirdPartyMetis; then 3216 if test -r $coin_metisobjdir/.MakeOk; then 3217 use_metis=BUILD 3218 else 3219 use_metis= 3220 fi 3221 fi 3222 3223 if test x"$use_metis" != x; then 3224 coin_has_metis=yes 3225 else 3226 coin_has_metis=no 3227 fi 3228 AC_MSG_CHECKING([whether METIS is available]) 3229 AC_MSG_RESULT([$coin_has_metis]) 3230 fi 3231 3232 AM_CONDITIONAL([COIN_HAS_METIS],[test $coin_has_metis = yes]) 3233 if test $coin_has_metis = yes; then 3234 AC_DEFINE([COIN_HAS_METIS],[1],[If defined, the METIS library is available.]) 3235 fi 3236 3237 ]) # AC_COIN_HAS_METIS 3238 3239 3240 ########################################################################### 3162 3241 # COIN_HAS_GLPK # 3163 3242 ########################################################################### -
stable/0.5/commit_new_release
r1236 r1272 86 86 # ThirdParty maintainers welcome. 87 87 88 conf_ac_files=`find . -name 'configure.ac' | grep -v -E ' .*/.*/configure.ac'`88 conf_ac_files=`find . -name 'configure.ac' | grep -v -E 'ThirdParty/.*/.*/configure.ac'` 89 89 90 90 echo ''
Note: See TracChangeset
for help on using the changeset viewer.