summaryrefslogtreecommitdiff
path: root/source3/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
commit66de8367c6b0e7d3bd4c3711eeb39e51302708db (patch)
tree1c9635ce31a2b7f17a87426672326e9809595b2b /source3/aclocal.m4
parent9d6301dfe0e3001086251e3014be772ae63e4dd1 (diff)
downloadsamba-66de8367c6b0e7d3bd4c3711eeb39e51302708db.tar.gz
samba-66de8367c6b0e7d3bd4c3711eeb39e51302708db.tar.bz2
samba-66de8367c6b0e7d3bd4c3711eeb39e51302708db.zip
merging some autoconf changes from SAMBA_2_2
(This used to be commit 708c6b8297e720c0d0146e66e3a011feabe01531)
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r--source3/aclocal.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4
index d838a9f0db..4ae5336a4b 100644
--- a/source3/aclocal.m4
+++ b/source3/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])
+])