Ignore:
Timestamp:
Sep 9, 2008, 7:46:15 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
79cd79
Parents:
03c204
Message:

configure BUGFIX: GSL may be linked against cblas_... functions or just ..., this is fixed.

Before we checked for cblas_dnrm2. However, e.g. libgoto names it simply dnrm2. Hence, the blas functions are not found or slower (c)blas, or gsl(c)blas is used. Now, we simply check for dnrm2 functions in the list of libs first, if it fails, then for cblas_dnrm2. And finally, we test GSL functionality by checking for main(), which only works if a working blas lib has been found before.
Also, we removed AC_MSG_NOTICE about CFLAGS and others. However, the other for MPICC was left present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/configure.ac

    r03c204 rec4e84  
    4343# Checks for library functions.
    4444# check for GNU Scientific Library
    45 AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas)
    46 AC_CHECK_LIB(gsl,main)
     45AC_CHECK_HEADERS([gsl/gsl_blas.h])
     46AC_SEARCH_LIBS(dnrm2, goto blas cblas gslblas gslcblas)
     47AC_CHECK_LIB(gsl, main, [],
     48        [AC_SEARCH_LIBS(cblas_dnrm2, blas cblas gslblas gslcblas)])
     49AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
    4750
    4851# add replacement/saturation hydrogen or not
     
    7073fi
    7174
    72 AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
     75#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
    7376
    7477# test suite
Note: See TracChangeset for help on using the changeset viewer.