diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2013-07-31 13:56:22 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2013-07-31 13:56:22 +0000 |
commit | 85f6bbc8e5afc9b0f7a0ad4345d98580927df9f4 (patch) | |
tree | 1cac2349975322864037910fc657bf3ee54deeda /macros/ld-version-script.m4 | |
parent | 3839ccb9dd55159f63ac061e1305ee927d6374a6 (diff) | |
download | neon-85f6bbc8e5afc9b0f7a0ad4345d98580927df9f4.tar.gz |
* macros/ld-version-script.m4: Update from gnulib.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1914 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'macros/ld-version-script.m4')
-rw-r--r-- | macros/ld-version-script.m4 | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/macros/ld-version-script.m4 b/macros/ld-version-script.m4 index 4dec588..63386f1 100644 --- a/macros/ld-version-script.m4 +++ b/macros/ld-version-script.m4 @@ -1,5 +1,5 @@ -# ld-version-script.m4 serial 1 -dnl Copyright (C) 2008, 2009 Free Software Foundation, Inc. +# ld-version-script.m4 serial 3 +dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,18 +26,28 @@ AC_DEFUN([gl_LD_VERSION_SCRIPT], save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" cat > conftest.map <<EOF +foo +EOF + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [accepts_syntax_errors=yes], [accepts_syntax_errors=no]) + if test "$accepts_syntax_errors" = no; then + cat > conftest.map <<EOF VERS_1 { - global: sym; + global: sym; }; VERS_2 { global: sym; } VERS_1; EOF - AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), - [have_ld_version_script=yes], [have_ld_version_script=no]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [have_ld_version_script=yes], [have_ld_version_script=no]) + else + have_ld_version_script=no + fi rm -f conftest.map LDFLAGS="$save_LDFLAGS" AC_MSG_RESULT($have_ld_version_script) fi + AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes") ]) |