@@ -271,7 +271,7 @@ $rm -r conftest*
271
271
272
272
dnl autoconf 2.13 compatibility
273
273
dnl _LT_AC_TRY_LINK()
274
- AC_DEFUN ( _LT_AC_TRY_LINK , [
274
+ AC_DEFUN ( [ _LT_AC_TRY_LINK] , [
275
275
cat > conftest.$ac_ext <<EOF
276
276
dnl This sometimes fails to find confdefs.h, for some reason.
277
277
dnl [ #] line __oline__ "[ $] 0"
@@ -675,10 +675,9 @@ s390*-*linux*|sparc*-*linux*)
675
675
SAVE_CFLAGS="$CFLAGS"
676
676
CFLAGS="$CFLAGS -belf"
677
677
AC_CACHE_CHECK ( [ whether the C compiler needs -belf] , lt_cv_cc_needs_belf ,
678
- [ AC_LANG_SAVE
679
- AC_LANG_C
680
- AC_TRY_LINK ( [ ] ,[ ] ,[ lt_cv_cc_needs_belf=yes] ,[ lt_cv_cc_needs_belf=no] )
681
- AC_LANG_RESTORE ] )
678
+ [ AC_LANG_PUSH ( [ C] )
679
+ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [ ] ] , [ [ ] ] ) ] ,[ lt_cv_cc_needs_belf=yes] ,[ lt_cv_cc_needs_belf=no] )
680
+ AC_LANG_POP ( [ C] ) ] )
682
681
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
683
682
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
684
683
CFLAGS="$SAVE_CFLAGS"
@@ -1197,7 +1196,7 @@ if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks"
1197
1196
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1198
1197
AC_MSG_RESULT ( [ $hard_links] )
1199
1198
if test "$hard_links" = no; then
1200
- AC_MSG_WARN ( [ \` $CC' does not support \` -c -o', so \` make -j' may be unsafe] )
1199
+ AC_MSG_WARN ( [ ' $CC' does not support ' -c -o', so ' make -j' may be unsafe] )
1201
1200
need_locks=warn
1202
1201
fi
1203
1202
else
@@ -1935,15 +1934,15 @@ AC_ARG_WITH([tags],
1935
1934
1936
1935
if test -f "$ltmain" && test -n "$tagnames"; then
1937
1936
if test ! -f "${ofile}"; then
1938
- AC_MSG_WARN ( [ output file \` $ofile' does not exist] )
1937
+ AC_MSG_WARN ( [ output file ' $ofile' does not exist] )
1939
1938
fi
1940
1939
1941
1940
if test -z "$LTCC"; then
1942
1941
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1943
1942
if test -z "$LTCC"; then
1944
- AC_MSG_WARN ( [ output file \` $ofile' does not look like a libtool script] )
1943
+ AC_MSG_WARN ( [ output file ' $ofile' does not look like a libtool script] )
1945
1944
else
1946
- AC_MSG_WARN ( [ using \` LTCC=$LTCC', extracted from \` $ofile'] )
1945
+ AC_MSG_WARN ( [ using ' LTCC=$LTCC', extracted from ' $ofile'] )
1947
1946
fi
1948
1947
fi
1949
1948
if test -z "$LTCFLAGS"; then
@@ -1966,7 +1965,7 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1966
1965
1967
1966
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1968
1967
then
1969
- AC_MSG_ERROR ( [ tag name \ "$tagname\ " already exists] )
1968
+ AC_MSG_ERROR ( [ tag name "$tagname" already exists] )
1970
1969
fi
1971
1970
1972
1971
# Update the list of available tags.
2738
2737
AC_DEFUN ( [ AC_LIBTOOL_LANG_C_CONFIG] , [ _LT_AC_LANG_C_CONFIG] )
2739
2738
AC_DEFUN ( [ _LT_AC_LANG_C_CONFIG] ,
2740
2739
[ lt_save_CC="$CC"
2741
- AC_LANG_SAVE
2742
- AC_LANG_C
2740
+ AC_LANG_PUSH ( [ C] )
2743
2741
2744
2742
# Source file extension for C test sources.
2745
2743
ac_ext=c
@@ -2807,7 +2805,7 @@ AC_MSG_RESULT([$enable_static])
2807
2805
2808
2806
AC_LIBTOOL_CONFIG($1 )
2809
2807
2810
- AC_LANG_RESTORE
2808
+ AC_LANG_POP ( [ C ] )
2811
2809
CC="$lt_save_CC"
2812
2810
] ) # AC_LIBTOOL_LANG_C_CONFIG
2813
2811
@@ -2819,8 +2817,7 @@ CC="$lt_save_CC"
2819
2817
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2820
2818
AC_DEFUN ( [ AC_LIBTOOL_LANG_CXX_CONFIG] , [ _LT_AC_LANG_CXX_CONFIG(CXX)] )
2821
2819
AC_DEFUN ( [ _LT_AC_LANG_CXX_CONFIG] ,
2822
- [ AC_LANG_SAVE
2823
- AC_LANG_CPLUSPLUS
2820
+ [ AC_LANG_PUSH ( [ C++] )
2824
2821
AC_REQUIRE ( [ AC_PROG_CXX ] )
2825
2822
AC_REQUIRE ( [ _LT_AC_PROG_CXXCPP] )
2826
2823
@@ -3806,7 +3803,7 @@ AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3806
3803
3807
3804
AC_LIBTOOL_CONFIG($1 )
3808
3805
3809
- AC_LANG_RESTORE
3806
+ AC_LANG_POP ( [ C++ ] )
3810
3807
CC=$lt_save_CC
3811
3808
LDCXX=$LD
3812
3809
LD=$lt_save_LD
0 commit comments