diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-05-18 22:05:43 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-05-18 22:05:43 +0000 |
commit | a8cd7705e7898d77764aa12ddcc2e29de1860138 (patch) | |
tree | 970f609cbecbe515998907fd55a12f814ad2edcd /m4/lib-ld.m4 | |
parent | 08394ddb2d62ec8aab9121e45ab9c1a102e85ba4 (diff) | |
download | monitoring-plugins-a8cd7705e7898d77764aa12ddcc2e29de1860138.tar.gz |
Synchronise with coreutils 2.95. Gettext now synced with coreutils,
so no longer development platform requirement
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1394 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'm4/lib-ld.m4')
-rw-r--r-- | m4/lib-ld.m4 | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 index ddb57323..96c4e2c3 100644 --- a/m4/lib-ld.m4 +++ b/m4/lib-ld.m4 | |||
@@ -1,10 +1,8 @@ | |||
1 | # lib-ld.m4 serial 1 (gettext-0.11) | 1 | # lib-ld.m4 serial 3 (gettext-0.13) |
2 | dnl Copyright (C) 1996-2002 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software, distributed under the terms of the GNU | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl General Public License. As a special exception to the GNU General | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl Public License, this file may be distributed as part of a program | 5 | dnl with or without modifications, as long as this notice is preserved. |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
8 | 6 | ||
9 | dnl Subroutines of libtool.m4, | 7 | dnl Subroutines of libtool.m4, |
10 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision | 8 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision |
@@ -14,11 +12,12 @@ dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. | |||
14 | AC_DEFUN([AC_LIB_PROG_LD_GNU], | 12 | AC_DEFUN([AC_LIB_PROG_LD_GNU], |
15 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, | 13 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, |
16 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | 14 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
17 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 15 | case `$LD -v 2>&1 </dev/null` in |
18 | acl_cv_prog_gnu_ld=yes | 16 | *GNU* | *'with BFD'*) |
19 | else | 17 | acl_cv_prog_gnu_ld=yes ;; |
20 | acl_cv_prog_gnu_ld=no | 18 | *) |
21 | fi]) | 19 | acl_cv_prog_gnu_ld=no ;; |
20 | esac]) | ||
22 | with_gnu_ld=$acl_cv_prog_gnu_ld | 21 | with_gnu_ld=$acl_cv_prog_gnu_ld |
23 | ]) | 22 | ]) |
24 | 23 | ||
@@ -29,6 +28,19 @@ AC_DEFUN([AC_LIB_PROG_LD], | |||
29 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | 28 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) |
30 | AC_REQUIRE([AC_PROG_CC])dnl | 29 | AC_REQUIRE([AC_PROG_CC])dnl |
31 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | 30 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
31 | # Prepare PATH_SEPARATOR. | ||
32 | # The user is always right. | ||
33 | if test "${PATH_SEPARATOR+set}" != set; then | ||
34 | echo "#! /bin/sh" >conf$$.sh | ||
35 | echo "exit 0" >>conf$$.sh | ||
36 | chmod +x conf$$.sh | ||
37 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
38 | PATH_SEPARATOR=';' | ||
39 | else | ||
40 | PATH_SEPARATOR=: | ||
41 | fi | ||
42 | rm -f conf$$.sh | ||
43 | fi | ||
32 | ac_prog=ld | 44 | ac_prog=ld |
33 | if test "$GCC" = yes; then | 45 | if test "$GCC" = yes; then |
34 | # Check if gcc -print-prog-name=ld gives a path. | 46 | # Check if gcc -print-prog-name=ld gives a path. |
@@ -75,11 +87,12 @@ AC_CACHE_VAL(acl_cv_path_LD, | |||
75 | # Check to see if the program is GNU ld. I'd rather use --version, | 87 | # Check to see if the program is GNU ld. I'd rather use --version, |
76 | # but apparently some GNU ld's only accept -v. | 88 | # but apparently some GNU ld's only accept -v. |
77 | # Break only if it was the GNU/non-GNU ld that we prefer. | 89 | # Break only if it was the GNU/non-GNU ld that we prefer. |
78 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 90 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
79 | test "$with_gnu_ld" != no && break | 91 | *GNU* | *'with BFD'*) |
80 | else | 92 | test "$with_gnu_ld" != no && break ;; |
81 | test "$with_gnu_ld" != yes && break | 93 | *) |
82 | fi | 94 | test "$with_gnu_ld" != yes && break ;; |
95 | esac | ||
83 | fi | 96 | fi |
84 | done | 97 | done |
85 | IFS="$ac_save_ifs" | 98 | IFS="$ac_save_ifs" |