X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=eb7b0cacee016038e871f9ac8ff9d2242e9b5476;hb=aa28d2d407ecd14edc2d37afa20a06e2bef702b2;hp=f8435bf36e778e92b48318993891a7ae54d44c29;hpb=ba9948be18a1ec8d88a1230d32d2eec6b09e1584;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index f8435bf..eb7b0ca 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl $Id: aclocal.m4,v 1.85 2001/10/13 20:26:13 sof Exp $ +dnl $Id: aclocal.m4,v 1.86 2001/10/24 09:43:47 simonmar Exp $ dnl dnl Extra autoconf macros for the Glasgow fptools dnl @@ -245,6 +245,29 @@ AC_SUBST(ContextDiffCmd) ]) dnl +dnl Check whether ld supports -x +dnl +AC_DEFUN(FPTOOLS_LD_X, +[AC_CACHE_CHECK([whether ld understands -x], fptools_cv_ld_x, +[ +echo 'foo() {}' > conftest.c +${CC-cc} -c conftest.c +if ${LdCmd} -r -x -o foo.o conftest.o; then + fptools_cv_ld_x=yes +else + fptools_cv_ld_x=no +fi +rm -rf conftest.c conftest.o foo.o +]) +if test "$fptools_cv_ld_x" = yes; then + LdXFlag=-x +else + LdXFlag= +fi +AC_SUBST(LdXFlag) +]) + +dnl dnl Finding the Right Yacc dnl AC_DEFUN(FPTOOLS_PROG_YACCY,