diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-17 20:32:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-17 20:32:54 +0100 |
commit | 49b6a57d19e46258c2b4c7fb71a5e78f6a7840d1 (patch) | |
tree | 34c152deb08c513b3fc8f90969f0f19322eb0b2c /src/auto | |
parent | 9421bdc2cd7cdcd801bcde4d41ea0a2c60b66199 (diff) | |
download | vim-git-49b6a57d19e46258c2b4c7fb71a5e78f6a7840d1.tar.gz |
updated for version 7.4.094v7.4.094
Problem: Configure may not find that -lint is needed for gettext().
Solution: Check for gettext() with empty $LIBS. (Thomas De Schampheleire)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/auto/configure b/src/auto/configure index 5a205966e..472afcb42 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -12690,6 +12690,8 @@ $as_echo_n "checking for NLS... " >&6; } if test -f po/Makefile; then have_gettext="no" if test -n "$MSGFMT"; then + olibs=$LIBS + LIBS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <libintl.h> @@ -12703,10 +12705,9 @@ gettext("Test"); _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 -$as_echo "gettext() works" >&6; }; have_gettext="yes" +$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs else - olibs=$LIBS - LIBS="$LIBS -lintl" + LIBS="-lintl" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <libintl.h> @@ -12720,7 +12721,8 @@ gettext("Test"); _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 -$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" +$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; + LIBS="$olibs -lintl" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 $as_echo "gettext() doesn't work" >&6; }; |