aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-25 21:39:10 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-25 21:39:10 +0000
commit7f40267c6a8741be85b9249d18e070e8e99bf88b (patch)
tree28dd0efa35e7dfbeb290ca7d8ad12ea807b5989c
parente1462bc7450cefd69aff0057a8a6d4b546c25347 (diff)
downloadpaludis-7f40267c6a8741be85b9249d18e070e8e99bf88b.tar.gz
paludis-7f40267c6a8741be85b9249d18e070e8e99bf88b.tar.xz
Fix pcre++-config check
-rw-r--r--configure.ac15
1 files changed, 9 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 085636d..1a0ddf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -368,12 +368,15 @@ AC_ARG_ENABLE([qa],
[ENABLE_QA=no
AC_MSG_RESULT([no])])
if test x"$ENABLE_QA" = "xyes" ; then
- AC_CHECK_PROG(HAVE_PRCEPLUSPLUS, [pcre++-config], [yes],
- [AC_MSG_ERROR([pcre++ is needed for --enable-qa])])
- PCREPLUSPLUS_CFLAGS=`pcre++-config --cflags`
- AC_SUBST(PCREPLUSPLUS_CFLAGS)
- PCREPLUSPLUS_LIBS=`pcre++-config --libs`
- AC_SUBST(PCREPLUSPLUS_LIBS)
+ AC_CHECK_PROG(HAVE_PRCEPLUSPLUS, [pcre++-config], [yes], [no]])
+ if test x"$HAVE_PRCEPLUSPLUS" = "xyes" ; then
+ PCREPLUSPLUS_CFLAGS=`pcre++-config --cflags`
+ AC_SUBST(PCREPLUSPLUS_CFLAGS)
+ PCREPLUSPLUS_LIBS=`pcre++-config --libs`
+ AC_SUBST(PCREPLUSPLUS_LIBS)
+ else
+ AC_MSG_ERROR([pcre++ (http://www.daemon.de/PCRE) is required if --enable-qa is used])])
+ fi
fi
AC_SUBST([ENABLE_QA])
AM_CONDITIONAL([ENABLE_QA], test "x$ENABLE_QA" = "xyes")