swig/Tools/config
Vadim Zeitlin 6399502719 Add a check for PCRE library to configure.
We use standard AX_PATH_GENERIC() macro from Autoconf archive to do the check
to keep our own code as simple as possible. Notice that this script must be
used, just adding the include and library directories to {C,LD}FLAGS is not
enough, notably -DPCRE_STATIC which is output by pcre-config for static builds
only is crucial. Also use LIBS instead of LDFLAGS to fix linking when using
static libraries.

Also note that this allows to pass PCRE_CONFIG variable value to configure to
force the use of the specified script (and not the one first found in PATH),
which is especially important when cross-compiling.

Finally, PCRE is required by default now, --without-pcre must be explicitly
used to build without it.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12169 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:00:16 +00:00
..
ac_compare_version.m4 Sorry i haven't been here in a while. 2006-11-03 07:28:42 +00:00
ac_compile_warnings.m4 --without-maximum-compile-warnings option added so that these compiler options can be completely removed 2005-04-30 06:48:14 +00:00
ac_define_dir.m4 updated version from autoconf macro archive 2006-07-08 00:55:55 +00:00
ax_compare_version.m4 Add a check for PCRE library to configure. 2010-07-22 17:00:16 +00:00
ax_path_generic.m4 Add a check for PCRE library to configure. 2010-07-22 17:00:16 +00:00