summaryrefslogtreecommitdiffstats
path: root/m4/lib-ld.m4
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-05-18 22:05:43 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2006-05-18 22:05:43 +0000
commita8cd7705e7898d77764aa12ddcc2e29de1860138 (patch)
tree970f609cbecbe515998907fd55a12f814ad2edcd /m4/lib-ld.m4
parent08394ddb2d62ec8aab9121e45ab9c1a102e85ba4 (diff)
downloadmonitoring-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.m447
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)
2dnl Copyright (C) 1996-2002 Free Software Foundation, Inc. 2dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU 3dnl This file is free software; the Free Software Foundation
4dnl General Public License. As a special exception to the GNU General 4dnl gives unlimited permission to copy and/or distribute it,
5dnl Public License, this file may be distributed as part of a program 5dnl with or without modifications, as long as this notice is preserved.
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8 6
9dnl Subroutines of libtool.m4, 7dnl Subroutines of libtool.m4,
10dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 8dnl 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.
14AC_DEFUN([AC_LIB_PROG_LD_GNU], 12AC_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.
17if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 15case `$LD -v 2>&1 </dev/null` in
18 acl_cv_prog_gnu_ld=yes 16*GNU* | *'with BFD'*)
19else 17 acl_cv_prog_gnu_ld=yes ;;
20 acl_cv_prog_gnu_ld=no 18*)
21fi]) 19 acl_cv_prog_gnu_ld=no ;;
20esac])
22with_gnu_ld=$acl_cv_prog_gnu_ld 21with_gnu_ld=$acl_cv_prog_gnu_ld
23]) 22])
24 23
@@ -29,6 +28,19 @@ AC_DEFUN([AC_LIB_PROG_LD],
29test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 28test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
30AC_REQUIRE([AC_PROG_CC])dnl 29AC_REQUIRE([AC_PROG_CC])dnl
31AC_REQUIRE([AC_CANONICAL_HOST])dnl 30AC_REQUIRE([AC_CANONICAL_HOST])dnl
31# Prepare PATH_SEPARATOR.
32# The user is always right.
33if 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
43fi
32ac_prog=ld 44ac_prog=ld
33if test "$GCC" = yes; then 45if 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"