summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormandyke <mandyke@gmail.com>2014-07-29 05:42:52 +0000
committermandyke <mandyke@gmail.com>2014-07-29 05:42:52 +0000
commita92be4d03532c94a0b263bd1122ae3fe825df476 (patch)
treea0041e53ee1d823f64032f03b33f9b7f23128e5e
parent8f3ae93635a849c880fb36fa919ae61e2bcced8e (diff)
downloaddistcc-git-a92be4d03532c94a0b263bd1122ae3fe825df476.tar.gz
Check that the system popt is linkable
Fixes issue 31
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d795edc..16a593f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -345,6 +345,7 @@ then
# If not explicitly requested, guess.
# People might have the library but not the header, in which case we
# still need to use the included copy.
+ AC_CHECK_LIB(popt, poptGetContext, , [with_included_popt=yes])
AC_CHECK_HEADER(popt.h, , [with_included_popt=yes])
fi
AC_CACHE_SAVE
@@ -357,9 +358,10 @@ then
BUILD_POPT='$(popt_OBJS)'
POPT_INCLUDES='-I"$(srcdir)/popt"'
else
- LIBS="$LIBS -lpopt"
AC_MSG_RESULT(no)
POPT_INCLUDES=''
+ AC_CHECK_LIB(popt, poptGetContext, ,
+ AC_MSG_ERROR([Cannot find system libpopt]))
fi
AC_ARG_WITH(libiberty,