added doxygen comments
[libfirm] / aclocal.m4
index 45c8636..5049b22 100644 (file)
@@ -6,11 +6,8 @@ dnl $Id$
 
 
 dnl Set variable `LD' to the name of the linker program.
-AC_DEFUN(LIBFIRM_PROG_LD,
+AC_DEFUN(LIBFIRM_PROG_LD,[
 dnl AC_REQUIRE([AC_PROG_CC])
-[if test -z "$LD" && test "$GCC" = yes; then
-  AC_CHECK_TOOL(LD, gld, "")
-fi
 if test -z "$LD"; then
   AC_CHECK_TOOL(LD, ld)
 fi
@@ -28,6 +25,7 @@ int foo() { return 0; }
 EOF
   if eval $ac_compile && mv conftest.o conftest2.o; then
     cat > conftest.$ac_ext <<EOF
+extern int foo();
 int main() { return foo(); }
 EOF
     if eval $ac_compile; then