aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf/ast_prog_ld_gnu.m4
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf/ast_prog_ld_gnu.m4')
-rw-r--r--autoconf/ast_prog_ld_gnu.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/autoconf/ast_prog_ld_gnu.m4 b/autoconf/ast_prog_ld_gnu.m4
new file mode 100644
index 000000000..43556ca6b
--- /dev/null
+++ b/autoconf/ast_prog_ld_gnu.m4
@@ -0,0 +1,16 @@
+# AST_PROG_LD_GNU
+# --------------
+AC_DEFUN([AST_PROG_LD_GNU],
+[AC_REQUIRE([AST_PROG_EGREP])dnl
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# AST_PROG_LD_GNU