Use conventional search for gsl if pkg-config fails
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 9 Oct 2010 19:12:42 +0000 (21:12 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 11 Oct 2010 18:03:20 +0000 (20:03 +0200)
configure.ac

index 2d8b6a45919d46d344588962a49be423327701c6..7e065acf43714b9f3b45e01cdff40a56a080ef3a 100644 (file)
@@ -239,7 +239,9 @@ AC_SUBST([WITH_PERL_MODULE])
 AM_CONDITIONAL(WITH_PERL_MODULE, test $WITH_PERL_MODULE = yes)
 
 AC_SEARCH_LIBS([cblas_dsdot], [gslcblas],,[PSPP_REQUIRED_PREREQ([libgslcblas])])
-PKG_CHECK_MODULES([GSL], [gsl >= 1.12], [], [PSPP_REQUIRED_PREREQ([gsl 2.0 version 1.12 or later])])
+PKG_CHECK_MODULES([GSL], [gsl >= 1.12], [],
+                        AC_SEARCH_LIBS([gsl_linalg_cholesky_invert], [gsl],,[PSPP_REQUIRED_PREREQ([gsl 2.0 version 1.12 or later])]))
+
 
 PSPP_GSL_NEEDS_FGNU89_INLINE