diff options
Diffstat (limited to 'meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch')
-rw-r--r-- | meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch b/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch index fdb9760e89..cfcbd8c73a 100644 --- a/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch +++ b/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch | |||
@@ -1,52 +1,56 @@ | |||
1 | From 5c4d6d8538994d5fe9b3b46bfafaf0a605e3bda6 Mon Sep 17 00:00:00 2001 | 1 | From ffb785ed8d3cac3c28e014b1238d93e2bc1f0c01 Mon Sep 17 00:00:00 2001 |
2 | From: Koen Kooi <koen.kooi@linaro.org> | 2 | From: Koen Kooi <koen.kooi@linaro.org> |
3 | Date: Tue, 17 Jun 2014 08:18:17 +0200 | 3 | Date: Tue, 17 Jun 2014 08:18:17 +0200 |
4 | Subject: [PATCH] configure: use pkg-config for pcre detection | 4 | Subject: [PATCH] configure: use pkg-config for pcre detection |
5 | 5 | ||
6 | Signed-off-by: Koen Kooi <koen.kooi@linaro.org> | 6 | Signed-off-by: Koen Kooi <koen.kooi@linaro.org> |
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | |||
8 | --- | 9 | --- |
9 | configure.ac | 38 +++++++------------------------------- | 10 | configure.ac | 39 +++++++-------------------------------- |
10 | 1 file changed, 7 insertions(+), 31 deletions(-) | 11 | 1 file changed, 7 insertions(+), 32 deletions(-) |
11 | 12 | ||
13 | diff --git a/configure.ac b/configure.ac | ||
14 | index f88004a..3a2b47c 100644 | ||
12 | --- a/configure.ac | 15 | --- a/configure.ac |
13 | +++ b/configure.ac | 16 | +++ b/configure.ac |
14 | @@ -52,38 +52,14 @@ AC_MSG_RESULT([$with_pcre]) | 17 | @@ -57,39 +57,14 @@ AC_MSG_RESULT([$with_pcre]) |
15 | 18 | ||
16 | dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script | 19 | dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script |
17 | if test x"${with_pcre}" = xyes ; then | 20 | if test x"${with_pcre}" = xyes ; then |
18 | - AC_MSG_CHECKING([whether to use local PCRE]) | 21 | - AC_MSG_CHECKING([whether to use local PCRE2]) |
19 | - local_pcre_config=no | 22 | - local_pcre_config=no |
20 | - if test -z $PCRE_CONFIG; then | 23 | - if test -z "$PCRE2_CONFIG"; then |
21 | - if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then | 24 | - if test -f `pwd`/pcre/pcre-swig-install/bin/pcre2-config; then |
22 | - PCRE_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre-config | 25 | - PCRE2_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre2-config |
23 | - local_pcre_config=$PCRE_CONFIG | 26 | - local_pcre_config=$PCRE2_CONFIG |
24 | - fi | 27 | - fi |
25 | - fi | 28 | - fi |
26 | - AC_MSG_RESULT([$local_pcre_config]) | 29 | - AC_MSG_RESULT([$local_pcre_config]) |
27 | -fi | 30 | -fi |
28 | -AS_IF([test "x$with_pcre" != xno], | 31 | -AS_IF([test "x$with_pcre" != xno], |
29 | - [AX_PATH_GENERIC([pcre], | 32 | - [AX_PATH_GENERIC([pcre2], |
30 | - [], dnl Minimal version of PCRE we need -- accept any | 33 | - [], dnl Minimal version of PCRE we need -- accept any |
31 | - [], dnl custom sed script for version parsing is not needed | 34 | - [], dnl custom sed script for version parsing is not needed |
32 | - [AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) | 35 | - [AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE2 library]) |
33 | - LIBS="$LIBS $PCRE_LIBS" | 36 | - LIBS="$LIBS $PCRE2_LIBS" |
34 | - CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | 37 | - CPPFLAGS="$CPPFLAGS $PCRE2_CFLAGS" |
35 | - ], | 38 | - ], |
36 | - [AC_MSG_FAILURE([ | 39 | - [AC_MSG_FAILURE([ |
37 | - Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions) | 40 | - Cannot find pcre2-config script from PCRE2 (Perl Compatible Regular Expressions) |
38 | - library package. This dependency is needed for configure to complete, | 41 | - library package. This dependency is needed for configure to complete, |
39 | - Either: | 42 | - Either: |
40 | - - Install the PCRE developer package on your system (preferred approach). | 43 | - - Install the PCRE2 developer package on your system (preferred approach). |
41 | - - Download the PCRE source tarball, build and install on your system | 44 | - - Download the PCRE2 source tarball, build and install on your system |
42 | - as you would for any package built from source distribution. | 45 | - as you would for any package built from source distribution. |
43 | - - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically | 46 | - - Use the Tools/pcre-build.sh script to build PCRE2 just for SWIG to statically |
44 | - link against. Run 'Tools/pcre-build.sh --help' for instructions. | 47 | - link against. Run 'Tools/pcre-build.sh --help' for instructions. |
45 | - (quite easy and does not require privileges to install PCRE on your system) | 48 | - (quite easy and does not require privileges to install PCRE2 on your system) |
46 | - - Use configure --without-pcre to disable regular expressions support in SWIG | 49 | - - Use configure --without-pcre to disable regular expressions support in SWIG |
47 | - (not recommended).]) | 50 | - (not recommended).]) |
48 | - ]) | 51 | - ], |
49 | + PKG_CHECK_MODULES([PCRE], [libpcre], [ | 52 | - [],[],[--libs8]) |
53 | + PKG_CHECK_MODULES([PCRE], [libpcre2], [ | ||
50 | + AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) | 54 | + AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) |
51 | + LIBS="$LIBS $PCRE_LIBS" | 55 | + LIBS="$LIBS $PCRE_LIBS" |
52 | + CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | 56 | + CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" |