prior to executing the test that checks if the C compiler needs
"-belf."
Reported by Chris Butler <chrisb@sandy.force9.co.uk>
+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
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"