summaryrefslogtreecommitdiffstats
path: root/source/aclocal.m4
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-06-24 23:18:39 +0000
committerGerald Carter <jerry@samba.org>2002-06-24 23:18:39 +0000
commit708c6b8297e720c0d0146e66e3a011feabe01531 (patch)
treebb4b768b6e392453ad9798753ddcbacb1c227345 /source/aclocal.m4
parentf471c880db8562231f2d6623124d3e9c31559f4c (diff)
downloadsamba-708c6b8297e720c0d0146e66e3a011feabe01531.tar.gz
samba-708c6b8297e720c0d0146e66e3a011feabe01531.tar.xz
samba-708c6b8297e720c0d0146e66e3a011feabe01531.zip
merging some autoconf changes from SAMBA_2_2
Diffstat (limited to 'source/aclocal.m4')
-rw-r--r--source/aclocal.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/source/aclocal.m4 b/source/aclocal.m4
index d838a9f0db7..4ae5336a4bf 100644
--- a/source/aclocal.m4
+++ b/source/aclocal.m4
@@ -92,3 +92,14 @@ define(AC_ADD_INCLUDE,
[#include] $1
EOF
])
+
+dnl Copied from libtool.m4
+AC_DEFUN(AC_PROG_LD_GNU,
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ ac_cv_prog_gnu_ld=yes
+else
+ ac_cv_prog_gnu_ld=no
+fi])
+])