Changeset 3087 for trunk/configure.ac


Ignore:
Timestamp:
Sep 19, 2013, 10:22:32 AM (8 years ago)
Author:
Peter
Message:

refs #737. check if -lgsl is suitable for libtool archive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3086 r3087  
    203203])
    204204
     205# prefer using libtool in link tests
     206YAT_USE_LIBTOOL_PUSH
     207
    205208# Checks for libraries.
    206209AC_MSG_NOTICE([checking for libraries])
     
    212215# 737 for discussion.
    213216YAT_STATIC_LIBS=
     217AC_MSG_CHECKING([if libtool archive can be created with $LIBM])
    214218YAT_LT_LINK_LA_IFELSE([
    215219  double cos(double x);
    216220  double foo(double x) { return cos(x); }
    217221], [
    218   AC_MSG_CHECKING([if $LIBM suitable for libyat])
    219222  AC_MSG_RESULT([yes])
    220223], [
    221   AC_MSG_CHECKING([if $LIBM suitable for libyat])
    222224  AC_MSG_RESULT([no])
    223225  YAT_STATIC_LIBS="$YAT_STATIC_LIBS $LIBM"
     
    235237GSL $gsl_version (or newer) not found. The GNU Scientific Library
    236238(GSL) library cannot be found. Please make sure GSL is installed.])
     239])
     240
     241AC_MSG_CHECKING([if libtool archive can be created with -lgsl])
     242YAT_LT_LINK_LA_IFELSE([
     243  double gsl_cdf_hypergeometric_P(const unsigned int k, const unsigned int n1,
     244                                  const unsigned int n2, const unsigned int t);
     245  double yat_foo(void) { return gsl_cdf_hypergeometric_P(1,2,3,10); }
     246], [
     247  AC_MSG_RESULT([yes])
     248], [
     249  AC_MSG_RESULT([no])
     250  YAT_STATIC_LIBS="$YAT_STATIC_LIBS -lgsl"
    237251])
    238252
Note: See TracChangeset for help on using the changeset viewer.