Commit ebbb5200 authored by Jon Kåre Hellan's avatar Jon Kåre Hellan

Both anonflib and extraflib need PCRE.



git-svn-id: file:///home/svn/mapi/trunk@858 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent b218f3e9
......@@ -453,19 +453,24 @@ AC_ARG_WITH(libpcre_libraries,
AS_HELP_STRING([--with-libpcre-libraries=DIR], [Search for libpcre library in DIR. Effective only if --enable-extraflib has been previously specified]),
[with_libpcre_libraries="$withval"],[with_libpcre_libraries=no])
wants_pcre=false
if test x$extraflib = xtrue || test x$anonflib = xtrue; then
wants_pcre=true
fi
# if any of the above pcre options has been specified,
#check that --enable-extraflib has been specified too
if test x$extraflib != xtrue; then
#check that --enable-extraflib or --enable-anonflib has been specified too
if test x$wants_pcre != xtrue; then
if test "$with_libpcre_includes" != "no"; then
AC_MSG_ERROR(Please use --with-libpcre-includes only in conjunction with --with-extraflib. You don't need to configure libpcre if you are not going to use extraflib)
AC_MSG_ERROR(Please use --with-libpcre-includes only in conjunction with --with-extraflib or --with-anonflib. You don't need to configure libpcre if you are not going to use any of them)
fi
if test "$with_libpcre_libraries" != "no"; then
AC_MSG_ERROR(Please use --with-libpcre-libraries only in conjunction with --with-extraflib. You don't need configure libpcre if you are not going to use extraflib)
AC_MSG_ERROR(Please use --with-libpcre-libraries only in conjunction with --with-extraflib or --with-anonflib. You don't need configure libpcre if you are not going to use any of them)
fi
fi
# check for libpcre only if --enable-extraflib has been specified
if test x$extraflib = xtrue; then
# check for libpcre only if --enable-extraflib or --enable-anonflib has been specified
if test x$wants_pcre = xtrue; then
save_CPPFLAGS=$CPPFLAGS
save_LDFLAGS=$LDFLAGS
......
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