Changeset 969


Ignore:
Timestamp:
Oct 14, 2007, 1:57:41 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #118. ATLAS is now detected, see ticket comments for more info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r957 r969  
    4242# Set default programming language
    4343AC_LANG(C++)
     44# reset CXXFLAGS, it has "-g -O2" as default
     45CXXFLAGS=""
    4446
    4547# Checks for programs.
     
    5355# Checks for libraries.
    5456AC_CHECK_LIB(m,main)
    55 AC_SEARCH_LIBS(ATL_ctrsv,atlas,,
    56   AC_SEARCH_LIBS(cblas_sdsdot,gslcblas))
     57# searching for cblas. Priority 1) find a cblas library, 2) find ATLAS
     58# generated cblas, and 3) fall back to GSL cblas implementation. If
     59# partial ATLAS is detected the configure script fails.
     60AC_SEARCH_LIBS(cblas_sdsdot,cblas,,
     61  AC_SEARCH_LIBS(ATL_sdsdot,atlas,
     62    AC_SEARCH_LIBS(cblas_sdsdot,cblas,[CXXFLAGS="$CXXFLAGS -m64" LDFLAGS="$LDFLAGS -m64"],
     63      AC_MSG_ERROR(partial ATLAS library detected!),-m64),
     64                            AC_SEARCH_LIBS(cblas_sdsdot,gslcblas),-m64))
    5765AC_CHECK_LIB(gsl,main)
    5866
     
    7785AC_CHECK_FUNCS([pow sqrt])
    7886
    79 CXXFLAGS="-Wall -pedantic"
     87CXXFLAGS="$CXXFLAGS -Wall -pedantic"
    8088CPPFLAGS="-DHAVE_INLINE=1"
    8189AC_ARG_ENABLE(debug,
     
    176184AC_MSG_NOTICE([  CXXFLAGS=\"$CXXFLAGS\"])
    177185AC_MSG_NOTICE([  LIBS=\"$LIBS\"])
     186AC_MSG_NOTICE([  LDFLAGS=\"$LDFLAGS\"])
    178187AC_MSG_NOTICE([ +++++++++++++++++++++++++++++++++++++++++++++++])
    179188AC_MSG_NOTICE([])
Note: See TracChangeset for help on using the changeset viewer.