Changeset 940 for trunk/configure.ac


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

fixing problem to find gsl in configure. I suspect the problem was that we used c++ compiler to compile gsl. I have now moved the detection to occur before setting language to c++.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r924 r940  
    3737AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT)
    3838
    39 # Set default programming language
    40 AC_LANG(C++)
    41 
    4239# Checks for programs.
    4340AC_PROG_CXX
     
    4542
    4643# Checks for libraries.
     44AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
     45AC_CHECK_LIB(atlas,ATL_ctrsv,
     46  [CBLAS_LIB="-lcblas -latlas"],
     47  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
     48    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
     49AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
     50AC_SUBST(GSL_LIB)
     51AC_SUBST(CBLAS_LIB)
     52AC_SUBST(MATH_LIB)
     53
     54# Set default programming language
     55AC_LANG(C++)
    4756
    4857# Checks for header files.
     
    7281  CPPFLAGS="$CPPFLAGS -DNDEBUG -DGSL_RANGE_CHECK_OFF"
    7382fi
    74 
    75 AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
    76 AC_CHECK_LIB(atlas,ATL_ctrsv,
    77   [CBLAS_LIB="-lcblas -latlas"],
    78   AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
    79     [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
    80 AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
    81 AC_SUBST(GSL_LIB)
    82 AC_SUBST(CBLAS_LIB)
    83 AC_SUBST(MATH_LIB)
    8483
    8584# check for quiet_NaN support in OS
Note: See TracChangeset for help on using the changeset viewer.