check: Only check for gmp/gsl if building of tests is not disabled

This commit is contained in:
Sebastian Dröge 2009-11-20 09:33:48 +01:00
parent 81d3fda6e8
commit 43b157b775

View file

@ -326,18 +326,20 @@ if test "x$HAVE_WINSOCK2_H" = "xyes"; then
fi
dnl check for GMP/GSL, used by the gst_util_uint64_scale unit test only
AG_GST_CHECK_LIBHEADER(GMP, gmp,
__gmpz_init_set_d, ,
gmp.h,
GMP_LIBS="-lgmp"
AC_SUBST(GMP_LIBS)
AC_DEFINE(HAVE_GMP, [1],[Have GMP library]))
AG_GST_CHECK_LIBHEADER(GSL, gsl,
gsl_rng_uniform_int, -lgslcblas,
gsl/gsl_rng.h,
GSL_LIBS="-lgsl -lgslcblas"
AC_SUBST(GSL_LIBS)
AC_DEFINE(HAVE_GSL, [1],[Have GSL library]))
if test "x$BUILD_TESTS" = "xyes"; then
AG_GST_CHECK_LIBHEADER(GMP, gmp,
__gmpz_init_set_d, ,
gmp.h,
GMP_LIBS="-lgmp"
AC_SUBST(GMP_LIBS)
AC_DEFINE(HAVE_GMP, [1],[Have GMP library]))
AG_GST_CHECK_LIBHEADER(GSL, gsl,
gsl_rng_uniform_int, -lgslcblas,
gsl/gsl_rng.h,
GSL_LIBS="-lgsl -lgslcblas"
AC_SUBST(GSL_LIBS)
AC_DEFINE(HAVE_GSL, [1],[Have GSL library]))
fi
dnl *** checks for types/defines ***