summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2021-09-09 17:14:50 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-09 17:14:50 +0200
commit6b9efdde7828b3317b64f38bd90fb5a784a654c0 (patch)
treead79a11d3cd6a743b93f638bdea1972ac874717d
parent0325d3967ce7d0fd35bc1472fd476b911b895b76 (diff)
downloadvim-git-6b9efdde7828b3317b64f38bd90fb5a784a654c0.tar.gz
patch 8.2.3420: _REENTRANT defined more than oncev8.2.3420
Problem: _REENTRANT defined more than once. Solution: Fix configure script. (Christian Brabandt, closes #8852)
-rwxr-xr-xsrc/auto/configure6
-rw-r--r--src/configure.ac4
-rw-r--r--src/version.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 4f4363224..be1440d3a 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -12978,7 +12978,9 @@ if test "$enable_canberra" = "yes"; then
$as_echo_n "checking for libcanberra... " >&6; }
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $canberra_cflags"
+ if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then
+ CFLAGS="$CFLAGS $canberra_cflags"
+ fi
LIBS="$LIBS $canberra_lib"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -14960,7 +14962,7 @@ $as_echo "no" >&6; }
fi
fi
-if `echo "$CFLAGS" | grep -v D_XEENTRANT >/dev/null`; then
+if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
diff --git a/src/configure.ac b/src/configure.ac
index 4cd6dea1f..d417b9046 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -3756,7 +3756,9 @@ if test "$enable_canberra" = "yes"; then
AC_MSG_CHECKING(for libcanberra)
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $canberra_cflags"
+ if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then
+ CFLAGS="$CFLAGS $canberra_cflags"
+ fi
LIBS="$LIBS $canberra_lib"
AC_TRY_LINK([
# include <canberra.h>
diff --git a/src/version.c b/src/version.c
index 664f4ca8c..6d64ffed2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3420,
+/**/
3419,
/**/
3418,