]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (lt_cv_cc_needs_belf): Set the test language to C
authorOssama Othman <ossama@debian.org>
Mon, 31 Jan 2000 00:15:31 +0000 (00:15 +0000)
committerOssama Othman <ossama@debian.org>
Mon, 31 Jan 2000 00:15:31 +0000 (00:15 +0000)
prior to executing the test that checks if the C compiler needs
"-belf."
Reported by Chris Butler <chrisb@sandy.force9.co.uk>

ChangeLog
libtool.m4

index 0b813e3ee5479e0adeda27bb265aa257390d3942..644682f6f0cb7de13b0e923a3d93cc6b2b0f301b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-01-30  Ossama Othman  <ossama@debian.org>
+
+       * libtool.m4 (lt_cv_cc_needs_belf): Set the test language to C
+       prior to executing the test that checks if the C compiler needs
+       "-belf."
+       Reported by Chris Butler <chrisb@sandy.force9.co.uk>
+
 2000-01-28  Gary V. Vaughan  <gary@oranda.demon.co.uk>
 
        * libtool.m4 (AC_DEPLIBS_CHECK_METHOD):  Use changequote to
index 954412974e888c39e73efb7c3eedf5f1f6fd92a2..1f3559e2f04dd30558bed8f52209beb2321c11e9 100644 (file)
@@ -137,7 +137,10 @@ case "$lt_target" 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"