X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=aclocal.m4;h=fe627fdbb27983075d709448bd603ba23ce74306;hb=55d35dcf72dc411c8265628fcad2bd67d320a8c9;hp=dd8a1c229dda2f064eaa2a275f987d75efea43ce;hpb=956a3ad3779759028bfd742456ed9eafc3e85063;p=ginac.git diff --git a/aclocal.m4 b/aclocal.m4 index dd8a1c22..fe627fdb 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -66,7 +66,7 @@ dnl linking failed: "fail") LIBS="${saved_LIBS}" AC_MSG_RESULT([no]) - GINAC_ERROR([I could not successfully link a test-program against libcln and run it. + GINAC_ERROR([I could not successfully link a test-program against libcln. You either need to set \$LDFLAGS or install/update the CLN library.]) ;; esac @@ -372,7 +372,10 @@ case "$host" in SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) + [AC_LANG_SAVE + AC_LANG_C + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_RESTORE]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS"