1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/lighttpd/pcre.patch.cross
5 # Copyright (C) 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- lighttpd-1.4.59/configure.ac 2021-02-02 15:11:28.000000000 +0200
18 +++ configure.ac 2021-08-28 21:48:53.960207523 +0300
20 AC_MSG_RESULT([$WITH_PCRE])
22 if test "$WITH_PCRE" != no; then
23 - if test "$WITH_PCRE" != yes; then
24 - PCRE_LIB="-L$WITH_PCRE/lib -lpcre"
25 - CPPFLAGS="$CPPFLAGS -I$WITH_PCRE/include"
27 - AC_PATH_PROG([PCRECONFIG], [pcre-config])
28 - if test -n "$PCRECONFIG"; then
29 - PCRE_LIB=`"$PCRECONFIG" --libs`
30 - CPPFLAGS="$CPPFLAGS `"$PCRECONFIG" --cflags`"
34 - if test -z "$PCRE_LIB"; then
35 - AC_MSG_ERROR([pcre-config not found, install the pcre-devel package or build with --without-pcre])
39 + PKG_CHECK_MODULES(PCRE, libpcre >= 6.7,[
40 AC_DEFINE([HAVE_LIBPCRE], [1], [libpcre])
41 AC_DEFINE([HAVE_PCRE_H], [1], [pcre.h])
43 + AC_SUBST(PCRE_CFLAGS)
45 + PCRE_LIB="$PCRE_LIBS"