]> www.ginac.de Git - ginac.git/blobdiff - aclocal.m4
- Derivatives are now assembled in a slightly different manner (i.e. they
[ginac.git] / aclocal.m4
index dd8a1c229dda2f064eaa2a275f987d75efea43ce..fe627fdbb27983075d709448bd603ba23ce74306 100644 (file)
@@ -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"