Changeset 1697


Ignore:
Timestamp:
Nov 1, 2010 6:51:02 PM (9 years ago)
Author:
stefan
Message:

rename some COIN_HAS macros to COIN_CHECK; remove old _MODULE_ macros; mark some old macros as deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.6/coin.m4

    r1695 r1697  
    2424
    2525###########################################################################
    26 #                           COIN_MAIN_SUBDIRS                             #
     26#                    COIN_MAIN_SUBDIRS (deprecated)                       #
    2727###########################################################################
    2828
     
    234234
    235235###########################################################################
    236 #                        COIN_THIRDPARTY_SUBDIRS                          #
     236#                        COIN_THIRDPARTY_SUBDIRS  (deprecated)            #
    237237###########################################################################
    238238
     
    26432643
    26442644###########################################################################
    2645 #                        COIN_HAS_USER_LIBRARY                            #
     2645#                      COIN_CHECK_USER_LIBRARY                            #
    26462646###########################################################################
    26472647# This macro sets up usage of a user library with header files. The assumption
     
    26902690# if the library has been found and seems to work.
    26912691
    2692 AC_DEFUN([AC_COIN_HAS_USER_LIBRARY],
     2692AC_DEFUN([AC_COIN_CHECK_USER_LIBRARY],
    26932693[ AC_REQUIRE([AC_COIN_PROJECTDIR_INIT])
    26942694  AC_MSG_CHECKING(if user provides library for $1)
     
    27892789  AC_SUBST($2LIB)
    27902790  AM_CONDITIONAL(COIN_HAS_$2, test $m4_tolower(coin_has_$2) = true)
    2791 ]) #AC_COIN_HAS_USER_LIBRARY
    2792 
    2793 ###########################################################################
    2794 #                               COIN_HAS_ASL                              #
     2791]) #AC_COIN_CHECK_USER_LIBRARY
     2792
     2793###########################################################################
     2794#                      COIN_CHECK_USER_LIBRARY (deprecated)               #
     2795###########################################################################
     2796
     2797AC_DEFUN([AC_COIN_HAS_USER_LIBRARY], [AC_COIN_CHECK_USER_LIBRARY([$1],[$2], [$3], [$4], [$5], [$6])])
     2798
     2799###########################################################################
     2800#                               COIN_HAS_ASL (deprecated)                 #
    27952801###########################################################################
    27962802
     
    29452951
    29462952###########################################################################
    2947 #                             COIN_HAS_BLAS                               #
     2953#                             COIN_HAS_BLAS (deprecated)                  #
    29482954###########################################################################
    29492955
     
    30843090
    30853091###########################################################################
    3086 #                            COIN_HAS_LAPACK                              #
     3092#                            COIN_HAS_LAPACK (deprecated)                 #
    30873093###########################################################################
    30883094
     
    32093215
    32103216###########################################################################
    3211 #                            COIN_HAS_MUMPS                               #
     3217#                            COIN_HAS_MUMPS (deprecated)                  #
    32123218###########################################################################
    32133219
     
    32913297
    32923298###########################################################################
    3293 #                            COIN_HAS_METIS                               #
     3299#                            COIN_HAS_METIS (deprecated)                  #
    32943300###########################################################################
    32953301
     
    33703376
    33713377###########################################################################
    3372 #                             COIN_HAS_GLPK                               #
     3378#                             COIN_HAS_GLPK (deprecated)                  #
    33733379###########################################################################
    33743380#
     
    37063712if test -n "$PKG_CONFIG" ; then
    37073713  if $PKG_CONFIG --exists "$2"; then
    3708     m4_toupper($1)[]_VERSIONS="`$PKG_CONFIG --modversion $2 2>/dev/null`"
     3714    m4_toupper($1)[]_VERSIONS="`$PKG_CONFIG --modversion "$2" 2>/dev/null`"
    37093715    $3
    37103716  else
     
    38843890
    38853891###########################################################################
    3886 #                            COIN_HAS_MODULE                              #
    3887 ###########################################################################
    3888 
    3889 # This macro sets up a COIN-OR module.
    3890 # A module consists of one or more COIN-OR packages.
    3891 # It defines the MODULE_CFLAGS, MODULE_LIBS, and MODULE_DATA variables, referring to the compiler and linker
     3892#                            COIN_CHECK_PACKAGE                           #
     3893###########################################################################
     3894
     3895# This macro checks for the existance of a COIN-OR package and provides compiler and linker flags to compile against this package.
     3896# A package can consists of one or more COIN-OR or other projects.
     3897# It defines the PACKAGE_CFLAGS, PACKAGE_LIBS, and PACKAGE_DATA variables, referring to the compiler and linker
    38923898# flags to use when linking against this module and the directories where the module data resists.
    3893 # It also defines a COIN_HAS_MODULE preprocessor macro and makefile conditional.
     3899# It also defines a COIN_HAS_PACKAGE preprocessor macro and makefile conditional.
    38943900# Further, tolower(coin_has_$1) is set to "yes".
    3895 # If the flag 'required' is set (which is on by default), then the packages of the module are added to
    3896 # the REQUIREDPACKAGES variable, which can be used to setup a .pc file.
    3897 # The first argument should be the name (MODULE) of the module (in correct lower
     3901# If a list of build targets using this projects is given in the third argument,
     3902# then the compiler and linker variables and .pc file setup variable corresponding to this build target
     3903# are extended with the values for this package.
     3904# That is, for each build target X, the variables X_CFLAGS, X_LIBS, X_PCLIBS, X_PCREQUIRES are setup,
     3905# whereas the last two specify the values to put into the "Libs:" and "Requires:" fields of the .pc file, resp.
     3906#
     3907# The first argument should be the name (PACKAGE) of the package (in correct lower
    38983908# and upper case).
    38993909# The second argument should be a (space separated) list of projects which this
    3900 # module consists of. Optionally, required version numbers can be added.
    3901 # The optional third argument can be used to overwrite default values for flags like 'required'.
     3910# package consists of. Optionally, required version numbers can be added.
     3911# The optional third argument should be a (space separated) list of build targets
     3912# which use this package, if available.
    39023913#
    3903 # It is also possible to specify a preinstalled version of this module
     3914# It is also possible to specify a preinstalled version of this package
    39043915# or to specify only the linker and compiler flags and data directory.
    3905 # If the flag 'required' (which is on by default) is set, then user-given linker flags are added to
    3906 # the PCADDLIBS variable, which can be used to setup a .pc file.
    39073916#
    39083917# If the user did not specify --with-$1-... flags and pkg-config is not available,
    3909 # COIN_HAS_MODULE_FALLBACK($1, $2, $3) is called.
    3910 
    3911 AC_DEFUN([AC_COIN_HAS_MODULE],
     3918# COIN_CHECK_PACKAGE_FALLBACK($1, $2, $3) is called.
     3919
     3920AC_DEFUN([AC_COIN_CHECK_PACKAGE],
    39123921[AC_REQUIRE([AC_COIN_HAS_PKGCONFIG])
    3913 AC_MSG_CHECKING([for COIN-OR module $1])
     3922AC_MSG_CHECKING([for COIN-OR package $1])
    39143923
    39153924m4_tolower(coin_has_$1)=notGiven
    39163925
    3917 # check if user wants to skip module in any case
     3926# check if user wants to skip package in any case
    39183927if test x"$COIN_SKIP_PROJECTS" != x; then
    39193928  for dir in $COIN_SKIP_PROJECTS; do
     
    39303939AC_SUBST(m4_toupper($1_CFLAGS))
    39313940AC_SUBST(m4_toupper($1_DATA))
    3932 AC_SUBST(REQUIREDPACKAGES)
     3941coin_foreach_w([myvar], [$3], [
     3942  AC_SUBST(m4_toupper(myvar)_CFLAGS)
     3943  AC_SUBST(m4_toupper(myvar)_LIBS)
     3944  AC_SUBST(m4_toupper(myvar)_PCLIBS)
     3945  AC_SUBST(m4_toupper(myvar)_PCREQUIRES)
     3946])
    39333947
    39343948#check if user provided LIBS, CFLAGS, or DATA for module
     
    39373951  AC_ARG_WITH([m4_tolower($1)-lib],
    39383952    AC_HELP_STRING([--with-m4_tolower($1)-lib],
    3939                    [linker flags for using module $1]),
     3953                   [linker flags for using package $1]),
    39403954      [m4_tolower(coin_has_$1)=yes
    39413955       m4_toupper($1_LIBS)="$withval"
    3942        m4_bmatch($3, [required=0], [], [PCADDLIBS="$withval $PCADDLIBS"])
     3956       coin_foreach_w([myvar], [$3], [
     3957         m4_toupper(myvar)_PCLIBS="$withval $m4_toupper(myvar)_PCLIBS"
     3958         m4_toupper(myvar)_LIBS="$withval $m4_toupper(myvar)_LIBS"
     3959       ])
    39433960      ],
    39443961      [])
     
    39463963  AC_ARG_WITH([m4_tolower($1)-incdir],
    39473964    AC_HELP_STRING([--with-m4_tolower($1)-incdir],
    3948                    [directory with header files for using module $1]),
     3965                   [directory with header files for using package $1]),
    39493966    [m4_tolower(coin_has_$1)=yes
    3950      m4_toupper($1_CFLAGS)="-I`${CYGPATH_W} $withval`"],
     3967     m4_toupper($1_CFLAGS)="-I`${CYGPATH_W} $withval`"
     3968     coin_foreach_w([myvar], [$3], [m4_toupper(myvar)_CFLAGS="$withval $m4_toupper(myvar)_CFLAGS"
     3969     ])
     3970    ],
    39513971    [])
    39523972
    39533973  AC_ARG_WITH([m4_tolower($1)-datadir],
    39543974    AC_HELP_STRING([--with-m4_tolower($1)-datadir],
    3955                    [directory with data files for using module $1]),
     3975                   [directory with data files for using package $1]),
    39563976    [m4_tolower(coin_has_$1)=yes
    39573977     m4_toupper($1_DATA)="$withval"],
     
    39713991      [ m4_tolower(coin_has_$1)=yes
    39723992        AC_MSG_RESULT([yes: $m4_toupper($1)_VERSIONS])
    3973         m4_bmatch($3, [required=0], [], [REQUIREDPACKAGES="$2 $REQUIREDPACKAGES"])
     3993        coin_foreach_w([myvar], [$3], [m4_toupper(myvar)_PCREQUIRES="$2 $m4_toupper(myvar)_PCREQUIRES"
     3994        ])
    39743995      ],
    39753996      [ m4_tolower(coin_has_$1)=notGiven
     
    39804001    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    39814002    export PKG_CONFIG_PATH
     4003   
     4004    # augment X_CFLAGS and X_LIBS for each build target X in $3
     4005    coin_foreach_w([myvar], [$3], [
     4006      m4_toupper(myvar)_CFLAGS="$m4_toupper($1)_CFLAGS $m4_toupper(myvar)_CFLAGS"
     4007      m4_toupper(myvar)_LIBS="$m4_toupper($1)_LIBS $m4_toupper(myvar)_LIBS"
     4008    ])
    39824009  else
    39834010    AC_MSG_RESULT([skipped check via pkg-config, redirect to fallback])
    3984     AC_COIN_HAS_MODULE_FALLBACK([$1], [$2], [$3])
     4011    AC_COIN_CHECK_PACKAGE_FALLBACK([$1], [$2], [$3])
    39854012  fi
    39864013
     
    39914018if test $m4_tolower(coin_has_$1) != skipping &&
    39924019   test $m4_tolower(coin_has_$1) != notGiven ; then
    3993   if test 0 = 1 ; then  #change this test to enable a bit of debugging output
    3994   if test -n "$m4_toupper($1)_CFLAGS" ; then
    3995     AC_MSG_NOTICE([$1 CFLAGS are $m4_toupper($1)_CFLAGS])
    3996   fi
    3997   if test -n "$m4_toupper($1)_LIBS" ; then
    3998     AC_MSG_NOTICE([$1 LIBS   are $m4_toupper($1)_LIBS])
    3999   fi
    4000   if test -n "$m4_toupper($1)_DATA" ; then
    4001     AC_MSG_NOTICE([$1 DATA   is  $m4_toupper($1)_DATA])
    4002   fi
    4003   fi
    4004   AC_DEFINE(m4_toupper(COIN_HAS_$1),[1],[Define to 1 if the $1 module is available])
     4020  AC_DEFINE(m4_toupper(COIN_HAS_$1),[1],[Define to 1 if the $1 package is available])
     4021   
     4022  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     4023    if test -n "$m4_toupper($1)_CFLAGS" ; then
     4024      AC_MSG_NOTICE([$1 CFLAGS are $m4_toupper($1)_CFLAGS])
     4025    fi
     4026    if test -n "$m4_toupper($1)_LIBS" ; then
     4027      AC_MSG_NOTICE([$1 LIBS   are $m4_toupper($1)_LIBS])
     4028    fi
     4029    if test -n "$m4_toupper($1)_DATA" ; then
     4030      AC_MSG_NOTICE([$1 DATA   is  $m4_toupper($1)_DATA])
     4031    fi
     4032    if test -n "$m4_toupper($1)_CFLAGS" ; then
     4033      AC_MSG_NOTICE([$1 CFLAGS are $m4_toupper($1)_CFLAGS])
     4034    fi
     4035    coin_foreach_w([myvar], [$3], [
     4036      AC_MSG_NOTICE([myvar CFLAGS are $m4_toupper(myvar)_CFLAGS])
     4037      AC_MSG_NOTICE([myvar LIBS   are $m4_toupper(myvar)_LIBS])
     4038    ])
     4039  fi
    40054040fi
    40064041
     
    40104045                test $m4_tolower(coin_has_$1) != skipping])
    40114046
    4012 ]) # AC_COIN_HAS_MODULE
    4013 
    4014 ###########################################################################
    4015 #                       COIN_HAS_MODULE_FALLBACK                          #
    4016 ###########################################################################
    4017 
    4018 # This macro is used if COIN_HAS_MODULE fails to find a module because pkg-config was disabled or is not available.
     4047]) # AC_COIN_CHECK_PACKAGE
     4048
     4049###########################################################################
     4050#                       COIN_HAS_PACKAGE (deprecated)                     #
     4051###########################################################################
     4052
     4053AC_DEFUN([AC_COIN_HAS_PACKAGE], [AC_COIN_CHECK_PACKAGE([$1], [$2], [$3])])
     4054
     4055###########################################################################
     4056#                       COIN_CHECK_PACKAGE_FALLBACK                       #
     4057###########################################################################
     4058
     4059# This macro is used by COIN_CHECK_PACKAGE, if it fails to find a package because pkg-config was disabled or is not available.
    40194060#
    40204061# For each project xxx specified in $2, it searches for a xxx-uninstalled.pc file in the directories specified in
    40214062# $COIN_PKG_CONFIG_PATH_UNINSTALLED. The latter variable is setup by COIN_HAS_PKGCONFIG and
    40224063# consists of the content of the coin_subdirs.txt file which has been created by configure in the base directory.
    4023 # The content of xxx-uninstalled.pc is parsed in order to defines the variables MODULE_CFLAGS, MODULE_LIBS, and MODULE_DATA,
    4024 # referring to the compiler and linker flags to use when linking against this module
    4025 # and the directory where the module data resists.
    4026 # Further, the Required field of each .pc file is parsed and -uninstalled.pc files for these projects are searched for.
    4027 # The MODULE_CFLAGS and MODULE_LIBS variables are augmented with the information from these .pc files.
    4028 # Thus, the macros checks also dependencies of $2.
    4029 # Note that the MODULE_DATA variable is set to the content of datadir of the first .pc file that is parsed.
     4064# The content of xxx-uninstalled.pc is parsed in order to defines the variables PACKAGE_CFLAGS, PACKAGE_LIBS, and PACKAGE_DATA,
     4065# referring to the compiler and linker flags to use when linking against this package
     4066# and the directory where the package data resists.
     4067# Further, for each build target X specified in the third argument, the variables X_CFLAGS and X_LIBS are
     4068# extended with the compiler and linker flags of this package and the variables X_PCLIBS and X_PCREQUIRES are extended by the list
     4069# of linker flags and dependent projects as needed to setup a .pc file.
     4070# The macros checks also dependencies of $2.
     4071# Note that the PACKAGE_DATA variable is set to the content of datadir of the first .pc file that is parsed.
    40304072#
    40314073# If .pc files for all projects in $2 and their dependencies is found, tolower(coin_has_$1) is set to "yes".
    4032 # Otherwise, if some dependency is not found, tolower(coin_has_$1) is set to no.
    4033 # Further, a COIN_HAS_MODULE preprocessor macro and a makefile conditional are defined.
    4034 # If the flag 'required' is set (which is on by default), then the module package is added to
    4035 # the REQUIREDPACKAGES variable, which can be used to setup a .pc file.
     4074# Otherwise, if some dependency is not found, tolower(coin_has_$1) is set to "notGiven".
     4075# Further, a COIN_HAS_PACKAGE preprocessor macro and a makefile conditional are defined.
    40364076#
    4037 # The first argument should be the name (MODULE) of the module (in correct lower and upper case).
    4038 # The second argument should be the base names of the projects .pc file which define this module.
    4039 # The optional third argument can be used to overwrite default values for flags like 'required'.
     4077# The first argument should be the name (PACKAGE) of the package (in correct lower and upper case).
     4078# The second argument should be the base names of the projects .pc file which define this package.
     4079# The optional third argument should be a (space separated) list of build targets
     4080# which use this package, if available.
    40404081
    40414082# $1 is not checked for $COIN_SKIP_PROJECTS, since we only look into $COIN_PKG_CONFIG_PATH_UNINSTALLED.
    40424083# When the content of this variable was setup in the base directory, $COIN_SKIP_PROJECTS has already been considered.
    40434084
    4044 AC_DEFUN([AC_COIN_HAS_MODULE_FALLBACK],
     4085AC_DEFUN([AC_COIN_CHECK_PACKAGE_FALLBACK],
    40454086[AC_REQUIRE([AC_COIN_HAS_PKGCONFIG])
    4046 AC_MSG_CHECKING([for COIN-OR module $1 (fallback)])
     4087AC_MSG_CHECKING([for COIN-OR package $1 (fallback)])
    40474088
    40484089m4_tolower(coin_has_$1)=notGiven
     
    40504091m4_toupper($1_CFLAGS)=
    40514092m4_toupper($1_DATA)=
    4052 AC_SUBST(REQUIREDPACKAGES)
    40534093
    40544094# initial list of dependencies is "$2", but we need to filter out version number specifications (= x, <= x, >= x)
     
    41254165  projtoprocess="$nextprojtoprocess"
    41264166 
    4127   if test "x$projtoprocess" = x ; then
    4128     m4_tolower(coin_has_$1)=yes
    4129     AC_MSG_RESULT([yes, dependencies are$projprocessed])
    4130    
    4131     m4_bmatch($3, [required=0], [], [REQUIREDPACKAGES="$2 $REQUIREDPACKAGES"])
    4132     AC_DEFINE(m4_toupper(COIN_HAS_$1),[1],[Define to 1 if the $1 module is available])
    4133    
    4134     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    4135     if test -n "$m4_toupper($1)_CFLAGS" ; then
    4136       AC_MSG_NOTICE([$1 CFLAGS are $m4_toupper($1)_CFLAGS])
    4137     fi
    4138     if test -n "$m4_toupper($1)_LIBS" ; then
    4139       AC_MSG_NOTICE([$1 LIBS   are $m4_toupper($1)_LIBS])
    4140     fi
    4141     if test -n "$m4_toupper($1)_DATA" ; then
    4142       AC_MSG_NOTICE([$1 DATA   is  $m4_toupper($1)_DATA])
    4143     fi
    4144     fi
    4145   fi
    4146 done
    4147 
    4148 AM_CONDITIONAL(m4_toupper(COIN_HAS_$1),
    4149                [test $m4_tolower(coin_has_$1) != notGiven &&
    4150                 test $m4_tolower(coin_has_$1) != skipping])
    4151 
    4152 ]) # AC_COIN_HAS_MODULE_FALLBACK
    4153 
    4154 ###########################################################################
    4155 #                         COIN_HAS_MODULE_BLAS                            #
    4156 ###########################################################################
    4157 
    4158 # This macro checks for a library containing the BLAS library.  It
    4159 # 1. checks the --with-blas argument
    4160 # 2. if --with-blas=BUILD has been specified goes to point 5
    4161 # 3. if --with-blas has been specified to a working library, sets BLAS_LIBS to its value
    4162 # 4. tries standard libraries
    4163 # 5. calls COIN_HAS_MODULE(Blas, [coinblas]) to check for ThirdParty/Blas
    4164 # 6. calls COIN_HAS_MODULE_FALLBACK(Blas, [coinblas], [../ThirdParty/Blas or ../Blas])
    4165 # The makefile conditional and preprocessor macro COIN_HAS_BLAS is defined.
    4166 # BLAS_LIBS is set to the flags required to link with a Blas library.
    4167 # In case 3 and 4, the flags to link to Blas are added to PCADDLIBS too.
    4168 # In case 5, Blas is added to REQUIREDPACKAGES
    4169 
    4170 AC_DEFUN([AC_COIN_HAS_MODULE_BLAS],
    4171 [
    4172 AC_ARG_WITH([blas],
    4173             AC_HELP_STRING([--with-blas],
    4174                            [specify BLAS library (or BUILD for compilation)]),
    4175             [use_blas="$withval"], [use_blas=])
    4176 
    4177 #if user specified --with-blas-lib, then we should give COIN_HAS_MODULE preference
    4178 AC_ARG_WITH([blas-lib],,[use_blas=BUILD])
    4179 
    4180 # Check if user supplied option makes sense
    4181 if test x"$use_blas" != x; then
    4182   if test "$use_blas" = "BUILD"; then
    4183     # we come to this later
    4184     :
    4185   elif test "$use_blas" != "no"; then
    4186     AC_MSG_CHECKING([whether user supplied BLASLIB=\"$use_blas\" works])
    4187     coin_save_LIBS="$LIBS"
    4188     LIBS="$use_blas $LIBS"
    4189     AC_COIN_TRY_FLINK([daxpy],
    4190                       [AC_MSG_RESULT([yes])],
    4191                       [AC_MSG_RESULT([no])
    4192                        AC_MSG_ERROR([user supplied BLAS library \"$use_blas\" does not work])])
    4193     LIBS="$coin_save_LIBS"
    4194   fi
    4195 else
    4196 # Try to autodetect the library for blas based on build system
    4197   #AC_MSG_CHECKING([default locations for BLAS])
    4198   skip_lblas_check=no
    4199   case $build in
    4200     *-sgi-*)
    4201       AC_MSG_CHECKING([whether -lcomplib.sgimath has BLAS])
    4202       SAVE_LIBS="$LIBS"
    4203       LIBS="-lcomplib.sgimath $LIBS"
    4204       AC_COIN_TRY_FLINK([daxpy],
    4205                         [AC_MSG_RESULT([yes])
    4206                          use_blas="-lcomplib.sgimath"],
    4207                         [AC_MSG_RESULT([no])
    4208                          SAVE_LIBS="$LIBS"])
    4209       ;;
    4210 
    4211 # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
    4212 # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
    4213 # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
    4214 # that CC and cc will understand -library in Studio 13. The main extra
    4215 # function of -xlic_lib and -library is to arrange for the Fortran run-time
    4216 # libraries to be linked for C++ and C. We can arrange that explicitly.
    4217     *-*-solaris*)
    4218       SAVE_LIBS="$LIBS"
    4219       AC_MSG_CHECKING([for BLAS in libsunperf])
    4220       LIBS="-lsunperf $FLIBS $LIBS"
    4221       AC_COIN_TRY_FLINK([daxpy],
    4222                         [AC_MSG_RESULT([yes])
    4223                          use_blas='-lsunperf'
    4224                          coin_need_flibs=yes],
    4225                         [AC_MSG_RESULT([no])
    4226                          LIBS="$SAVE_LIBS"])
    4227       ;;
    4228     *-cygwin* | *-mingw*)
    4229 # On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
    4230 # library will want to link with cygwin, hence won't run standalone in DOS.
    4231       if test "$enable_doscompile" = mingw; then
    4232         skip_lblas_check=yes
    4233       fi
    4234       case "$CC" in
    4235         cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    4236           SAVE_LIBS="$LIBS"
    4237           AC_MSG_CHECKING([for BLAS in MKL])
    4238           LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
    4239           AC_COIN_TRY_FLINK([daxpy],
    4240                             [AC_MSG_RESULT([yes])
    4241                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'],
    4242                             [AC_MSG_RESULT([no])
    4243                              LIBS="$SAVE_LIBS"])
    4244           ;;
    4245       esac
    4246       ;;
    4247   esac
    4248 
    4249   if test -z "$use_blas" && test $skip_lblas_check = no; then
    4250     SAVE_LIBS="$LIBS"
    4251     AC_MSG_CHECKING([whether -lblas has BLAS])
    4252     LIBS="-lblas $LIBS"
    4253     AC_COIN_TRY_FLINK([daxpy],
    4254                       [AC_MSG_RESULT([yes])
    4255                        use_blas='-lblas'],
    4256                       [AC_MSG_RESULT([no])
    4257                        LIBS="$SAVE_LIBS"])
    4258   fi
    4259   LIBS="$SAVE_LIBS"
    4260  
    4261   # If we have no other ideas, consider building BLAS.
    4262   if test -z "$use_blas" ; then
    4263     use_blas=BUILD
    4264   fi
    4265 fi
    4266 
    4267 if test "x$use_blas" = xBUILD ; then
    4268   AC_COIN_HAS_MODULE(Blas, [coinblas])
    4269  
    4270 elif test "x$use_blas" != x && test "$use_blas" != no; then
    4271   coin_has_blas=yes
    4272   AM_CONDITIONAL([COIN_HAS_BLAS],[test 0 = 0])
    4273   AC_DEFINE([COIN_HAS_BLAS],[1], [If defined, the BLAS Library is available.])
    4274   BLAS_LIBS="$use_blas"
    4275   BLAS_CFLAGS=
    4276   BLAS_DATA=
    4277   AC_SUBST(BLAS_LIBS)
    4278   AC_SUBST(BLAS_CFLAGS)
    4279   AC_SUBST(BLAS_DATA)
    4280   PCADDLIBS="$use_blas $PCADDLIBS"
    4281  
    4282 else
    4283   coin_has_blas=no
    4284   AM_CONDITIONAL([COIN_HAS_BLAS],[test 0 = 1])
    4285 fi
    4286 
    4287 ]) # AC_COIN_HAS_MODULE_BLAS
    4288 
    4289 ###########################################################################
    4290 #                       COIN_HAS_MODULE_LAPACK                            #
    4291 ###########################################################################
    4292 
    4293 # This macro checks for a library containing the LAPACK library.  It
    4294 # 1. checks the --with-lapack argument
    4295 # 2. if --with-lapack=BUILD has been specified goes to point 5
    4296 # 3. if --with-lapack has been specified to a working library, sets LAPACK_LIBS to its value
    4297 # 4. tries standard libraries
    4298 # 5. calls COIN_HAS_MODULE(Lapack, [lapack]) to check for ThirdParty/Lapack
    4299 # 6. calls COIN_HAS_MODULE_FALLBACK(Lapack, [coinlapack], [../ThirdParty/Lapack or ../Lapack])
    4300 # The makefile conditional and preprocessor macro COIN_HAS_LAPACK is defined.
    4301 # LAPACK_LIBS is set to the flags required to link with a Lapack library.
    4302 # In case 3 and 4, the flags to link to Lapack are added to PCADDLIBS too.
    4303 # In case 5, Lapack is added to REQUIREDPACKAGES
    4304 
    4305 AC_DEFUN([AC_COIN_HAS_MODULE_LAPACK],
    4306 [
    4307 AC_ARG_WITH([lapack],
    4308             AC_HELP_STRING([--with-lapack],
    4309                            [specify LAPACK library (or BUILD for compilation)]),
    4310             [use_lapack=$withval], [use_lapack=])
    4311            
    4312 #if user specified --with-lapack-lib, then we should give COIN_HAS_MODULE preference
    4313 AC_ARG_WITH([lapack-lib],,[use_lapack=BUILD])
    4314 
    4315 # Check if user supplied option makes sense
    4316 if test x"$use_lapack" != x; then
    4317   if test "$use_lapack" = "BUILD"; then
    4318     # we come to this later
    4319     :
    4320   elif test "$use_lapack" != no; then
    4321     AC_MSG_CHECKING([whether user supplied LAPACKLIB=\"$use_lapack\" works])
    4322     coin_save_LIBS="$LIBS"
    4323     LIBS="$use_lapack $LIBS"
    4324     AC_COIN_TRY_FLINK([dsyev],
    4325                       [AC_MSG_RESULT([yes])],
    4326                       [AC_MSG_RESULT([no])
    4327                        AC_MSG_ERROR([user supplied LAPACK library \"$use_lapack\" does not work])])
    4328     LIBS="$coin_save_LIBS"
    4329   fi
    4330 else
    4331   if test x$coin_has_blas = xyes; then
    4332     # First try to see if LAPACK is already available with BLAS library
    4333     AC_MSG_CHECKING([whether LAPACK is already available with BLAS library])
    4334     coin_save_LIBS="$LIBS"
    4335     LIBS="$BLAS_LIBS $LIBS"
    4336     AC_COIN_TRY_FLINK([dsyev],
    4337                       [AC_MSG_RESULT([yes]); use_lapack="$BLAS_LIBS"],
    4338                       [AC_MSG_RESULT([no])])
    4339     LIBS="$coin_save_LIBS"
    4340   fi
    4341   skip_llapack_check=no
    4342   if test -z "$use_lapack"; then
    4343     # Try to autodetect the library for lapack based on build system
    4344     case $build in
    4345       *-sgi-*)
    4346         SAVE_LIBS="$LIBS"
    4347         AC_MSG_CHECKING([whether -lcomplib.sgimath has LAPACK])
    4348         LIBS="-lcomplib.sgimath $LIBS"
    4349         AC_COIN_TRY_FLINK([dsyev],
    4350                           [AC_MSG_RESULT([yes])
    4351                            use_lapack="-lcomplib.sgimath;"],
    4352                           [AC_MSG_RESULT([no])
    4353                            SAVE_LIBS="$LIBS"])
    4354         ;;
    4355 
    4356 # See comments in COIN_HAS_BLAS.
    4357       *-*-solaris*)
    4358       SAVE_LIBS="$LIBS"
    4359       AC_MSG_CHECKING([for LAPACK in libsunperf])
    4360       LIBS="-lsunperf $FLIBS $LIBS"
    4361       AC_COIN_TRY_FLINK([dsyev],
    4362                         [AC_MSG_RESULT([yes])
    4363                          use_lapack='-lsunperf'
    4364                          coin_need_flibs=yes],
    4365                         [AC_MSG_RESULT([no])
    4366                          LIBS="$SAVE_LIBS"])
    4367         ;;
    4368 # On cygwin, do this check only if doscompile is disabled. The prebuilt library
    4369 # will want to link with cygwin, hence won't run standalone in DOS.
    4370       *-cygwin*)
    4371         if test "$enable_doscompile" = mingw; then
    4372           skip_llapack_check=yes
    4373         fi
    4374         ;;
    4375     esac
    4376   fi
    4377 
    4378   if test -z "$use_lapack" && test $skip_llapack_check = no; then
    4379     SAVE_LIBS="$LIBS"
    4380     AC_MSG_CHECKING([whether -llapack has LAPACK])
    4381     LIBS="-llapack $LIBS"
    4382     AC_COIN_TRY_FLINK([dsyev],
    4383                       [AC_MSG_RESULT([yes])
    4384                        use_lapack='-llapack'],
    4385                       [AC_MSG_RESULT([no])
    4386                        LIBS="$SAVE_LIBS"])
    4387   fi
    4388  
    4389   LIBS="$SAVE_LIBS"
    4390 
    4391   # If we have no other ideas, consider building LAPACK.
    4392   if test -z "$use_lapack" ; then
    4393     use_lapack=BUILD
    4394   fi
    4395 fi
    4396 
    4397 if test "x$use_lapack" = xBUILD ; then
    4398   AC_COIN_HAS_MODULE(Lapack, [coinlapack])
    4399  
    4400 elif test "x$use_lapack" != x && test "$use_lapack" != no; then
    4401   coin_has_lapack=yes
    4402   AM_CONDITIONAL([COIN_HAS_LAPACK],[test 0 = 0])
    4403   AC_DEFINE([COIN_HAS_LAPACK],[1], [If defined, the LAPACK Library is available.])
    4404   LAPACK_LIBS="$use_lapack"
    4405   LAPACK_CFLAGS=
    4406   LAPACK_DATA=
    4407   AC_SUBST(LAPACK_LIBS)
    4408   AC_SUBST(LAPACK_CFLAGS)
    4409   AC_SUBST(LAPACK_DATA)
    4410   if test "x$LAPACK_LIBS" != "x$BLAS_LIBS"; then
    4411     PCADDLIBS="$LAPACK_LIBS $PCADDLIBS"
    4412   fi
    4413  
    4414 else
    4415   coin_has_lapack=no
    4416   AM_CONDITIONAL([COIN_HAS_LAPACK],[test 0 = 1])
    4417 fi
    4418 
    4419 ]) # AC_COIN_HAS_MODULE_LAPACK
    4420 
    4421 ###########################################################################
    4422 #                            COIN_HAS_PACKAGE                             #
    4423 ###########################################################################
    4424 
    4425 # This macro checks for the existance of a COIN-OR package and provides compiler and linker flags to compile against this package.
    4426 # A package can consists of one or more COIN-OR or other projects.
    4427 # It defines the PACKAGE_CFLAGS, PACKAGE_LIBS, and PACKAGE_DATA variables, referring to the compiler and linker
    4428 # flags to use when linking against this module and the directories where the module data resists.
    4429 # It also defines a COIN_HAS_PACKAGE preprocessor macro and makefile conditional.
    4430 # Further, tolower(coin_has_$1) is set to "yes".
    4431 # If a list of build targets using this projects is given in the third argument,
    4432 # then the compiler and linker variables and .pc file setup variable corresponding to this build target
    4433 # are extended with the values for this package.
    4434 # That is, for each build target X, the variables X_CFLAGS, X_LIBS, X_PCLIBS, X_PCREQUIRES are setup,
    4435 # whereas the last two specify the values to put into the "Libs:" and "Requires:" fields of the .pc file, resp.
    4436 #
    4437 # The first argument should be the name (PACKAGE) of the package (in correct lower
    4438 # and upper case).
    4439 # The second argument should be a (space separated) list of projects which this
    4440 # package consists of. Optionally, required version numbers can be added.
    4441 # The optional third argument should be a (space separated) list of build targets
    4442 # which use this package, if available.
    4443 #
    4444 # It is also possible to specify a preinstalled version of this package
    4445 # or to specify only the linker and compiler flags and data directory.
    4446 #
    4447 # If the user did not specify --with-$1-... flags and pkg-config is not available,
    4448 # COIN_HAS_PACKAGE_FALLBACK($1, $2, $3) is called.
    4449 
    4450 AC_DEFUN([AC_COIN_HAS_PACKAGE],
    4451 [AC_REQUIRE([AC_COIN_HAS_PKGCONFIG])
    4452 AC_MSG_CHECKING([for COIN-OR package $1])
    4453 
    4454 m4_tolower(coin_has_$1)=notGiven
    4455 
    4456 # check if user wants to skip package in any case
    4457 if test x"$COIN_SKIP_PROJECTS" != x; then
    4458   for dir in $COIN_SKIP_PROJECTS; do
    4459     if test $dir = "$1"; then
    4460       m4_tolower(coin_has_$1)=skipping
    4461     fi
    4462   done
    4463 fi
    4464 
    4465 m4_toupper($1_LIBS)=
    4466 m4_toupper($1_CFLAGS)=
    4467 m4_toupper($1_DATA)=
    4468 AC_SUBST(m4_toupper($1_LIBS))
    4469 AC_SUBST(m4_toupper($1_CFLAGS))
    4470 AC_SUBST(m4_toupper($1_DATA))
    4471 coin_foreach_w([myvar], [$3], [
    4472   AC_SUBST(m4_toupper(myvar)_CFLAGS)
    4473   AC_SUBST(m4_toupper(myvar)_LIBS)
    4474   AC_SUBST(m4_toupper(myvar)_PCLIBS)
    4475   AC_SUBST(m4_toupper(myvar)_PCREQUIRES)
    4476 ])
    4477 
    4478 #check if user provided LIBS, CFLAGS, or DATA for module
    4479 if test $m4_tolower(coin_has_$1) != skipping; then
    4480 
    4481   AC_ARG_WITH([m4_tolower($1)-lib],
    4482     AC_HELP_STRING([--with-m4_tolower($1)-lib],
    4483                    [linker flags for using package $1]),
    4484       [m4_tolower(coin_has_$1)=yes
    4485        m4_toupper($1_LIBS)="$withval"
    4486        coin_foreach_w([myvar], [$3], [
    4487          m4_toupper(myvar)_PCLIBS="$withval $m4_toupper(myvar)_PCLIBS"
    4488          m4_toupper(myvar)_LIBS="$withval $m4_toupper(myvar)_LIBS"
    4489        ])
    4490       ],
    4491       [])
    4492 
    4493   AC_ARG_WITH([m4_tolower($1)-incdir],
    4494     AC_HELP_STRING([--with-m4_tolower($1)-incdir],
    4495                    [directory with header files for using package $1]),
    4496     [m4_tolower(coin_has_$1)=yes
    4497      m4_toupper($1_CFLAGS)="-I`${CYGPATH_W} $withval`"
    4498      coin_foreach_w([myvar], [$3], [m4_toupper(myvar)_CFLAGS="$withval $m4_toupper(myvar)_CFLAGS"
    4499      ])
    4500     ],
    4501     [])
    4502 
    4503   AC_ARG_WITH([m4_tolower($1)-datadir],
    4504     AC_HELP_STRING([--with-m4_tolower($1)-datadir],
    4505                    [directory with data files for using package $1]),
    4506     [m4_tolower(coin_has_$1)=yes
    4507      m4_toupper($1_DATA)="$withval"],
    4508     [])
    4509 fi
    4510 
    4511 if test $m4_tolower(coin_has_$1) = notGiven; then
    4512   if test -n "$PKG_CONFIG" ; then
    4513     # set search path for pkg-config
    4514     # need to export variable to be sure that the following pkg-config gets these values
    4515     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    4516     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    4517     export PKG_CONFIG_PATH
    4518    
    4519     # let pkg-config do it's magic
    4520     AC_COIN_PKG_HAS_MODULE([$1],[$2],
    4521       [ m4_tolower(coin_has_$1)=yes
    4522         AC_MSG_RESULT([yes: $m4_toupper($1)_VERSIONS])
    4523         coin_foreach_w([myvar], [$3], [m4_toupper(myvar)_PCREQUIRES="$2 $m4_toupper(myvar)_PCREQUIRES"
    4524         ])
    4525       ],
    4526       [ m4_tolower(coin_has_$1)=notGiven
    4527         AC_MSG_RESULT([not given: $m4_toupper($1)_PKG_ERRORS])
    4528       ])
    4529 
    4530     # reset PKG_CONFIG_PATH variable
    4531     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    4532     export PKG_CONFIG_PATH
    4533    
    4534     # augment X_CFLAGS and X_LIBS for each build target X in $3
    4535     coin_foreach_w([myvar], [$3], [
    4536       m4_toupper(myvar)_CFLAGS="$m4_toupper($1)_CFLAGS $m4_toupper(myvar)_CFLAGS"
    4537       m4_toupper(myvar)_LIBS="$m4_toupper($1)_LIBS $m4_toupper(myvar)_LIBS"
    4538     ])
    4539   else
    4540     AC_MSG_RESULT([skipped check via pkg-config, redirect to fallback])
    4541     AC_COIN_HAS_PACKAGE_FALLBACK([$1], [$2], [$3])
    4542   fi
    4543 
    4544 else
    4545   AC_MSG_RESULT([$m4_tolower(coin_has_$1)])
    4546 fi
    4547 
    4548 if test $m4_tolower(coin_has_$1) != skipping &&
    4549    test $m4_tolower(coin_has_$1) != notGiven ; then
    4550   AC_DEFINE(m4_toupper(COIN_HAS_$1),[1],[Define to 1 if the $1 package is available])
    4551    
    4552   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    4553     if test -n "$m4_toupper($1)_CFLAGS" ; then
    4554       AC_MSG_NOTICE([$1 CFLAGS are $m4_toupper($1)_CFLAGS])
    4555     fi
    4556     if test -n "$m4_toupper($1)_LIBS" ; then
    4557       AC_MSG_NOTICE([$1 LIBS   are $m4_toupper($1)_LIBS])
    4558     fi
    4559     if test -n "$m4_toupper($1)_DATA" ; then
    4560       AC_MSG_NOTICE([$1 DATA   is  $m4_toupper($1)_DATA])
    4561     fi
    4562     if test -n "$m4_toupper($1)_CFLAGS" ; then
    4563       AC_MSG_NOTICE([$1 CFLAGS are $m4_toupper($1)_CFLAGS])
    4564     fi
    4565     coin_foreach_w([myvar], [$3], [
    4566       AC_MSG_NOTICE([myvar CFLAGS are $m4_toupper(myvar)_CFLAGS])
    4567       AC_MSG_NOTICE([myvar LIBS   are $m4_toupper(myvar)_LIBS])
    4568     ])
    4569   fi
    4570 fi
    4571 
    4572 # Define the Makefile conditional
    4573 AM_CONDITIONAL(m4_toupper(COIN_HAS_$1),
    4574                [test $m4_tolower(coin_has_$1) != notGiven &&
    4575                 test $m4_tolower(coin_has_$1) != skipping])
    4576 
    4577 ]) # AC_COIN_HAS_MODULE
    4578 
    4579 ###########################################################################
    4580 #                       COIN_HAS_PACKAGE_FALLBACK                         #
    4581 ###########################################################################
    4582 
    4583 # This macro is used if COIN_HAS_PACKAGE fails to find a module because pkg-config was disabled or is not available.
    4584 #
    4585 # For each project xxx specified in $2, it searches for a xxx-uninstalled.pc file in the directories specified in
    4586 # $COIN_PKG_CONFIG_PATH_UNINSTALLED. The latter variable is setup by COIN_HAS_PKGCONFIG and
    4587 # consists of the content of the coin_subdirs.txt file which has been created by configure in the base directory.
    4588 # The content of xxx-uninstalled.pc is parsed in order to defines the variables PACKAGE_CFLAGS, PACKAGE_LIBS, and PACKAGE_DATA,
    4589 # referring to the compiler and linker flags to use when linking against this package
    4590 # and the directory where the package data resists.
    4591 # Further, for each build target X specified in the third argument, the variables X_CFLAGS and X_LIBS are
    4592 # extended with the compiler and linker flags of this package and the variables X_PCLIBS and X_PCREQUIRES are extended by the list
    4593 # of linker flags and dependent projects as needed to setup a .pc file.
    4594 # The macros checks also dependencies of $2.
    4595 # Note that the PACKAGE_DATA variable is set to the content of datadir of the first .pc file that is parsed.
    4596 #
    4597 # If .pc files for all projects in $2 and their dependencies is found, tolower(coin_has_$1) is set to "yes".
    4598 # Otherwise, if some dependency is not found, tolower(coin_has_$1) is set to "notGiven".
    4599 # Further, a COIN_HAS_PACKAGE preprocessor macro and a makefile conditional are defined.
    4600 #
    4601 # The first argument should be the name (PACKAGE) of the package (in correct lower and upper case).
    4602 # The second argument should be the base names of the projects .pc file which define this package.
    4603 # The optional third argument should be a (space separated) list of build targets
    4604 # which use this package, if available.
    4605 
    4606 # $1 is not checked for $COIN_SKIP_PROJECTS, since we only look into $COIN_PKG_CONFIG_PATH_UNINSTALLED.
    4607 # When the content of this variable was setup in the base directory, $COIN_SKIP_PROJECTS has already been considered.
    4608 
    4609 AC_DEFUN([AC_COIN_HAS_PACKAGE_FALLBACK],
    4610 [AC_REQUIRE([AC_COIN_HAS_PKGCONFIG])
    4611 AC_MSG_CHECKING([for COIN-OR package $1 (fallback)])
    4612 
    4613 m4_tolower(coin_has_$1)=notGiven
    4614 m4_toupper($1_LIBS)=
    4615 m4_toupper($1_CFLAGS)=
    4616 m4_toupper($1_DATA)=
    4617 
    4618 # initial list of dependencies is "$2", but we need to filter out version number specifications (= x, <= x, >= x)
    4619 projtoprocess="m4_bpatsubsts([$2], [<?>?=[      ]*[^    ]+])"
    4620 projprocessed=""
    4621 
    4622 while test $m4_tolower(coin_has_$1) = notGiven ; do
    4623   # setup list of projects that need to be processed in the next round
    4624   nextprojtoprocess=""
    4625 
    4626   for proj in $projtoprocess ; do
    4627     # if $proj has been processed already, skip this round
    4628     if test "x$projprocessed" != x ; then
    4629       for projdone in $projprocessed ; do
    4630         if test $projdone = $proj ; then
    4631           continue 2
    4632         fi
    4633       done
    4634     fi
    4635 
    4636     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    4637     pcfile=""
    4638     save_IFS="$IFS"
    4639     IFS=":"
    4640     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    4641       # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
    4642       if test -r "$dir/$proj-uninstalled.pc" ; then
    4643         pcfile="$dir/$proj-uninstalled.pc"
    4644         pcfiledir="$dir"
    4645         break
    4646       fi
    4647     done
    4648     IFS="$save_IFS"
    4649 
    4650     if test "x$pcfile" != x ; then
    4651       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    4652       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    4653       projcflags=[`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`]
    4654       m4_toupper($1_CFLAGS)="$projcflags $m4_toupper($1_CFLAGS)"
    4655      
    4656       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    4657       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    4658       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    4659       if test "x$projlibs" != x ; then
    4660         if test -d "${pcfiledir}/src" ; then
    4661           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    4662         else
    4663           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    4664         fi
    4665       else
    4666         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    4667       fi
    4668       m4_toupper($1_LIBS)="$m4_toupper($1_LIBS) $projlibs"
    4669      
    4670       # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    4671       if test "x$projprocessed" = x ; then
    4672         m4_toupper($1_DATA)=`sed -n -e 's/datadir=//gp' "$pcfile"`
    4673       fi
    4674      
    4675       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    4676       projrequires=[`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[         ]*[^    ]\+//g'`]
    4677       nextprojtoprocess="$nextprojtoprocess $projrequires"
    4678      
    4679       # remember that we have processed $proj
    4680       projprocessed="$projprocessed $proj"
    4681      
    4682     else
    4683       AC_MSG_RESULT([no, dependency $proj not available])
    4684       break 2
    4685     fi
    4686 
    4687   done
    4688  
    4689   projtoprocess="$nextprojtoprocess"
    4690  
    46914167  # if there are no more projects to search for, finish up
    46924168  if test "x$projtoprocess" = x ; then
     
    47234199                test $m4_tolower(coin_has_$1) != skipping])
    47244200
    4725 ]) # AC_COIN_HAS_PACKAGE_FALLBACK
    4726 
    4727 ###########################################################################
    4728 #                         COIN_HAS_PACKAGE_BLAS                           #
     4201]) # AC_COIN_CHECK_PACKAGE_FALLBACK
     4202
     4203###########################################################################
     4204#                         COIN_CHECK_PACKAGE_BLAS                         #
    47294205###########################################################################
    47304206
     
    47344210# 3. if --with-blas has been specified to a working library, sets BLAS_LIBS to its value
    47354211# 4. tries standard libraries
    4736 # 5. calls COIN_HAS_PACKAGE(Blas, [coinblas], [$1]) to check for ThirdParty/Blas
     4212# 5. calls COIN_CHECK_PACKAGE(Blas, [coinblas], [$1]) to check for ThirdParty/Blas
    47374213# The makefile conditional and preprocessor macro COIN_HAS_BLAS is defined.
    47384214# BLAS_LIBS is set to the flags required to link with a Blas library.
     
    47414217# In case 5, Blas is added to X_PCREQUIRES.
    47424218
    4743 AC_DEFUN([AC_COIN_HAS_PACKAGE_BLAS],
     4219AC_DEFUN([AC_COIN_CHECK_PACKAGE_BLAS],
    47444220[
    47454221AC_ARG_WITH([blas],
     
    48384314
    48394315if test "x$use_blas" = xBUILD ; then
    4840   AC_COIN_HAS_PACKAGE(Blas, [coinblas], [$1])
     4316  AC_COIN_CHECK_PACKAGE(Blas, [coinblas], [$1])
    48414317 
    48424318elif test "x$use_blas" != x && test "$use_blas" != no; then
     
    48654341])
    48664342
    4867 ]) # AC_COIN_HAS_PACKAGE_BLAS
    4868 
    4869 ###########################################################################
    4870 #                       COIN_HAS_PACKAGE_LAPACK                           #
     4343]) # AC_COIN_CHECK_PACKAGE_BLAS
     4344
     4345###########################################################################
     4346#                   COIN_HAS_PACKAGE_BLAS (deprecated)                    #
     4347###########################################################################
     4348
     4349AC_DEFUN([AC_COIN_HAS_PACKAGE_BLAS], [AC_COIN_CHECK_PACKAGE_BLAS([$1])])
     4350
     4351###########################################################################
     4352#                       COIN_CHECK_PACKAGE_LAPACK                         #
    48714353###########################################################################
    48724354
     
    48764358# 3. if --with-lapack has been specified to a working library, sets LAPACK_LIBS to its value
    48774359# 4. tries standard libraries
    4878 # 5. calls COIN_HAS_PACKAGE(Lapack, [lapack], [$1]) to check for ThirdParty/Lapack
     4360# 5. calls COIN_CHECK_PACKAGE(Lapack, [lapack], [$1]) to check for ThirdParty/Lapack
    48794361# The makefile conditional and preprocessor macro COIN_HAS_LAPACK is defined.
    48804362# LAPACK_LIBS is set to the flags required to link with a Lapack library.
     
    48834365# In case 5, Lapack is added to X_PCREQUIRES.
    48844366
    4885 AC_DEFUN([AC_COIN_HAS_PACKAGE_LAPACK],
     4367AC_DEFUN([AC_COIN_CHECK_PACKAGE_LAPACK],
    48864368[
    48874369AC_ARG_WITH([lapack],
     
    49744456
    49754457if test "x$use_lapack" = xBUILD ; then
    4976   AC_COIN_HAS_PACKAGE(Lapack, [coinlapack], [$1])
     4458  AC_COIN_CHECK_PACKAGE(Lapack, [coinlapack], [$1])
    49774459 
    49784460elif test "x$use_lapack" != x && test "$use_lapack" != no; then
     
    50014483])
    50024484
    5003 ]) # AC_COIN_HAS_PACKAGE_LAPACK
     4485]) # AC_COIN_CHECK_PACKAGE_LAPACK
     4486
     4487###########################################################################
     4488#                 COIN_HAS_PACKAGE_LAPACK (deprecated)                    #
     4489###########################################################################
     4490
     4491AC_DEFUN([AC_COIN_HAS_PACKAGE_LAPACK], [AC_COIN_CHECK_PACKAGE_LAPACK([$1])])
Note: See TracChangeset for help on using the changeset viewer.