Changeset 941


Ignore:
Timestamp:
Oct 7, 2007, 8:49:16 PM (14 years ago)
Author:
Peter
Message:

shaping up configure.ac. Replaced AC_CHECK_LIB with AC_SEARCH_LIBS when possible. AC_SEARCH_LIBS does not work checking for main. Removed several variables such as MATH_LIB that is not used. Default behavior of ac macros make sense in most cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r940 r941  
    4242
    4343# Checks for libraries.
    44 AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
    45 AC_CHECK_LIB(atlas,ATL_ctrsv,
    46   [CBLAS_LIB="-lcblas -latlas"],
    47   AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
    48     [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
    49 AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
    50 AC_SUBST(GSL_LIB)
    51 AC_SUBST(CBLAS_LIB)
    52 AC_SUBST(MATH_LIB)
     44AC_CHECK_LIB(m,main)
     45AC_SEARCH_LIBS(ATL_ctrsv,atlas,,
     46  AC_SEARCH_LIBS(cblas_sdsdot,gslcblas))
     47AC_CHECK_LIB(gsl,main)
    5348
    5449# Set default programming language
Note: See TracChangeset for help on using the changeset viewer.