Changeset ec4e84 for pcp


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
  • pcp/configure.ac

    r03c204 rec4e84  
    172172#AC_CHECK_LIB(m,main)
    173173AC_CHECK_HEADERS([gsl/gsl_blas.h])
    174 AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas)
    175 AC_CHECK_LIB(gsl, main)
     174AC_SEARCH_LIBS(dnrm2, goto blas cblas gslblas gslcblas)
     175AC_CHECK_LIB(gsl, main, [],
     176        [AC_SEARCH_LIBS(cblas_dnrm2, blas cblas gslblas gslcblas)])
     177AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
    176178
    177179dnl Check for "extern inline", using a modified version
     
    192194fi
    193195
    194 AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
     196#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
    195197
    196198# test suite
Note: See TracChangeset for help on using the changeset viewer.