Commit 420d3874 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

only run additional checks if feature is not disabled

GEM_CHECK_LIB should not not run AC_CHECK_...  if it has been
explicitely disabled via "--without-..."

Closes https://github.com/umlaeute/Gem/issues/25
parent c2966b9b
......@@ -232,11 +232,10 @@ dnl turn of further checking for this package
])
AS_VAR_POPDEF([ac_Lib])dnl
AC_CHECK_LIB([$2],[$4],,,[$7])
AC_CHECK_HEADERS([$3])
fi[]dnl
AC_CHECK_LIB([$2],[$4],,,[$7])
AC_CHECK_HEADERS([$3])
AM_CONDITIONAL(HAVE_LIB_[]NAME, [test "x${have_[]Name}" = "xyes"])
AS_IF([test "x${have_[]Name}" = "xyes" ],
[AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_GEM_LIB_$1),[1], [$8])],[])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment