summaryrefslogtreecommitdiffstats
path: root/source3/aclocal.m4
diff options
context:
space:
mode:
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 d838a9f0db7..4ae5336a4bf 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])
+])