with_cap_include_dir
with_execinfo_lib_dir
with_execinfo_include_dir
+with_pcre
with_pcre_lib_dir
with_pcre_include_dir
with_regex
--with-execinfo-include-dir=DIR
directory in which to look for execinfo include
files
+ --with-pcre use libpcre (if available). (default=yes)
--with-pcre-lib-dir=DIR directory in which to look for pcre library files
--with-pcre-include-dir=DIR
directory in which to look for pcre include files
fi
fi
+PCRE=yes
+
+# Check whether --with-pcre was given.
+if test "${with_pcre+set}" = set; then :
+ withval=$with_pcre; case "$withval" in
+ no)
+ PCRE=no
+ ;;
+ yes)
+ PCRE=yes
+ ;;
+ esac
+
+fi
+
+
pcre_lib_dir=
# Check whether --with-pcre-lib-dir was given.
fi
-if test "x$REGEX" = "x"; then
+if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
smart_try_dir=$pcre_include_dir
fi
dnl #
-dnl # Check for regular expression support, if were using PCRE it MUST be included
-dnl # before all others, else we seem to still pickup the posix symbols for regcomp
-dnl # and regexec, which results in crashes as soon as we call any posix regex
-dnl # functions.
+dnl # Check for regular expression support.
dnl #
+dnl extra argument: --with-pcre
+PCRE=yes
+AC_ARG_WITH(pcre,
+[AS_HELP_STRING([--with-pcre],
+[use libpcre (if available). (default=yes)])],
+[ case "$withval" in
+ no)
+ PCRE=no
+ ;;
+ yes)
+ PCRE=yes
+ ;;
+ esac ]
+)
+
dnl extra argument: --with-pcre-lib-dir
pcre_lib_dir=
AC_ARG_WITH(pcre-lib-dir,
dnl #
dnl # First look for PCRE
dnl #
-if test "x$REGEX" = "x"; then
+if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
smart_try_dir=$pcre_include_dir
FR_SMART_CHECK_INCLUDE(pcre.h)
if test "x$ac_cv_header_pcre_h" = "xyes"; then