Changeset 1272


Ignore:
Timestamp:
Apr 24, 2009 12:33:02 PM (11 years ago)
Author:
andreasw
Message:

synchronized BuildTools?/stable/0.5 with trunk rev 1271

Location:
stable/0.5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable/0.5

  • stable/0.5/coin.m4

    r1239 r1272  
    1 # Copyright (C) 2006, 2007 International Business Machines.
     1# Copyright (C) 2006, 2009 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    31603160
    31613161###########################################################################
     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
     3174AC_DEFUN([AC_COIN_HAS_METIS],
     3175[
     3176case "$PACKAGE_NAME" in
     3177  ThirdParty*)
     3178    coin_metisobjdir=../Metis
     3179    ;;
     3180  *)
     3181    coin_metisobjdir=../ThirdParty/Metis
     3182    ;;
     3183esac
     3184
     3185MAKEOKFILE=.MakeOk
     3186
     3187#check if user provides a METIS library (that works)
     3188AC_LANG_PUSH(C)
     3189AC_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
     3193if 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"
     3202fi
     3203AC_LANG_POP(C)
     3204
     3205if 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
     3211else # 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])
     3230fi
     3231
     3232AM_CONDITIONAL([COIN_HAS_METIS],[test $coin_has_metis = yes])
     3233if test $coin_has_metis = yes; then
     3234  AC_DEFINE([COIN_HAS_METIS],[1],[If defined, the METIS library is available.])
     3235fi
     3236
     3237]) # AC_COIN_HAS_METIS
     3238
     3239
     3240###########################################################################
    31623241#                             COIN_HAS_GLPK                               #
    31633242###########################################################################
  • stable/0.5/commit_new_release

    r1236 r1272  
    8686# ThirdParty maintainers welcome.
    8787
    88 conf_ac_files=`find . -name 'configure.ac' | grep -v -E '.*/.*/configure.ac'`
     88conf_ac_files=`find . -name 'configure.ac' | grep -v -E 'ThirdParty/.*/.*/configure.ac'`
    8989
    9090echo ''
Note: See TracChangeset for help on using the changeset viewer.