From df90ae25fc3d3abdd83a45809e62f496946446ee Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 4 Jan 2016 18:10:34 +1100 Subject: [PATCH] fix ckdb configure to use AC_CHECK_LIB correctly --- configure.ac | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index ba42bb9f..f769485f 100644 --- a/configure.ac +++ b/configure.ac @@ -85,16 +85,12 @@ AC_SEARCH_LIBS(exp, m, , echo "Error: Required library math not found." && exit AC_SEARCH_LIBS(pthread_mutex_trylock, pthread, , "Error: Required library pthreads not found." && exit 1) if test "x$ckdb" != "xno"; then - AC_CHECK_LIB([pq], [main],[PQ=-lpq],echo "Error: Required library libpq-dev + AC_CHECK_LIB([pq], [main],[PQ=-lpq],echo "Error: Required library pq not found. Install it or disable postgresql support with --without-ckdb" && exit 1) - AC_CHECK_LIB([gsl], [main],[GSL=-lgsl],echo "Error: Required library gsl-dev - not found. Install it or disable support with --without-ckdb" && exit 1) - AC_CHECK_LIB([gslcblas], [main],[GSLCBLAS=-lgslcblas],echo "Error: Required library gslcblas - not found. Install it or disable support with --without-ckdb" && exit 1) - AC_CHECK_LIB([ssl], [main],[SSL=-lssl],echo "Error: Required library ssl - not found. Install it or disable support with --without-ckdb" && exit 1) - AC_CHECK_LIB([crypto], [main],[SSL=-lcrypto],echo "Error: Required library crypto - not found. Install it or disable support with --without-ckdb" && exit 1) + AC_CHECK_LIB([gsl], [main],[GSL=-lgsl],echo "Error: Required libraries gsl and gslcblas + not found. Install them or disable support with --without-ckdb" && exit 1,[-lgslcblas]) + AC_CHECK_LIB([ssl], [main],[SSL=-lssl],echo "Error: Required libraries ssl and crypto + not found. Install them or disable support with --without-ckdb" && exit 1,[-lcrypto]) AC_DEFINE([USE_CKDB], [1], [Defined to 1 if ckdb support required]) DB_LIBS="-lpq -lgsl -lgslcblas -lssl -lcrypto" else