Commit graph

4 commits

Author SHA1 Message Date
William S Fulton
e544ce8f82 Update AX_PATH_GENERIC for spaces support
Fix when the _CFLAGS and _LIBS are provided and they contain a space

For example:
./configure PCRE_LIBS='-L/home/me/pcre/lib -lpcre'

Serial number 13 in autoconf macro archive
2015-04-04 02:17:57 +01:00
Vadim Zeitlin
faa6be3bd9 Don't use non-portable "==" in shell tests.
Use POSIX "=" instead of "==" which is not supported at least by FreeBSD
/bin/sh.

Closes #3515925.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-09 20:58:10 +00:00
Vadim Zeitlin
ae6aef5d8f Allow setting PCRE_{CFLAGS,LIBS} when building SWIG with PCRE.
These options can be used to override the values returned by pcre-config, e.g.
to build using a static PCRE library even if pcre-config prefers to use the
shared one by default.

Use the updated AX_PATH_GENERIC macro from autoconf archive which was fixed to
allow the options set by the user to override the ones returned by pcre-config
(in fact, pcre-config isn't even called at all if these options are set).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-20 23:24:32 +00:00
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