246 |
]) |
]) |
247 |
|
|
248 |
|
|
249 |
|
# _LT_COMPILER_BOILERPLATE |
250 |
|
# ------------------------ |
251 |
|
# Check for compiler boilerplate output or warnings with |
252 |
|
# the simple compiler test code. |
253 |
|
AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
254 |
|
[ac_outfile=conftest.$ac_objext |
255 |
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
256 |
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
257 |
|
_lt_compiler_boilerplate=`cat conftest.err` |
258 |
|
$rm conftest* |
259 |
|
])# _LT_COMPILER_BOILERPLATE |
260 |
|
|
261 |
|
|
262 |
|
# _LT_LINKER_BOILERPLATE |
263 |
|
# ---------------------- |
264 |
|
# Check for linker boilerplate output or warnings with |
265 |
|
# the simple link test code. |
266 |
|
AC_DEFUN([_LT_LINKER_BOILERPLATE], |
267 |
|
[ac_outfile=conftest.$ac_objext |
268 |
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
269 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
270 |
|
_lt_linker_boilerplate=`cat conftest.err` |
271 |
|
$rm conftest* |
272 |
|
])# _LT_LINKER_BOILERPLATE |
273 |
|
|
274 |
|
|
275 |
# _LT_AC_SYS_LIBPATH_AIX |
# _LT_AC_SYS_LIBPATH_AIX |
276 |
# ---------------------- |
# ---------------------- |
277 |
# Links a minimal program and checks the executable |
# Links a minimal program and checks the executable |
613 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
614 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
if (exit $ac_status) && test -s "$ac_outfile"; then |
615 |
# The compiler can only warn and ignore the option if not recognized |
# The compiler can only warn and ignore the option if not recognized |
616 |
# So say no if there are warnings |
# So say no if there are warnings other than the usual output. |
617 |
if test ! -s conftest.err; then |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
618 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
619 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
620 |
$2=yes |
$2=yes |
621 |
fi |
fi |
622 |
fi |
fi |
647 |
if test -s conftest.err; then |
if test -s conftest.err; then |
648 |
# Append any errors to the config.log. |
# Append any errors to the config.log. |
649 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
650 |
|
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp |
651 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
652 |
|
if diff conftest.exp conftest.er2 >/dev/null; then |
653 |
|
$2=yes |
654 |
|
fi |
655 |
else |
else |
656 |
$2=yes |
$2=yes |
657 |
fi |
fi |
1007 |
then |
then |
1008 |
# The compiler can only warn and ignore the option if not recognized |
# The compiler can only warn and ignore the option if not recognized |
1009 |
# So say no if there are warnings |
# So say no if there are warnings |
1010 |
if test ! -s out/conftest.err; then |
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
1011 |
|
$SED '/^$/d' out/conftest.err >out/conftest.er2 |
1012 |
|
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1013 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1014 |
fi |
fi |
1015 |
fi |
fi |
2561 |
|
|
2562 |
_LT_AC_SYS_COMPILER |
_LT_AC_SYS_COMPILER |
2563 |
|
|
2564 |
|
# save warnings/boilerplate of simple test code |
2565 |
|
_LT_COMPILER_BOILERPLATE |
2566 |
|
_LT_LINKER_BOILERPLATE |
2567 |
|
|
2568 |
# |
# |
2569 |
# Check for any special shared library compilation flags. |
# Check for any special shared library compilation flags. |
2570 |
# |
# |
2701 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
2702 |
_LT_AC_SYS_COMPILER |
_LT_AC_SYS_COMPILER |
2703 |
|
|
2704 |
|
# save warnings/boilerplate of simple test code |
2705 |
|
_LT_COMPILER_BOILERPLATE |
2706 |
|
_LT_LINKER_BOILERPLATE |
2707 |
|
|
2708 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
2709 |
lt_save_CC=$CC |
lt_save_CC=$CC |
2710 |
lt_save_LD=$LD |
lt_save_LD=$LD |
3786 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3787 |
_LT_AC_SYS_COMPILER |
_LT_AC_SYS_COMPILER |
3788 |
|
|
3789 |
|
# save warnings/boilerplate of simple test code |
3790 |
|
_LT_COMPILER_BOILERPLATE |
3791 |
|
_LT_LINKER_BOILERPLATE |
3792 |
|
|
3793 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
3794 |
lt_save_CC="$CC" |
lt_save_CC="$CC" |
3795 |
CC=${F77-"f77"} |
CC=${F77-"f77"} |
3870 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3871 |
_LT_AC_SYS_COMPILER |
_LT_AC_SYS_COMPILER |
3872 |
|
|
3873 |
|
# save warnings/boilerplate of simple test code |
3874 |
|
_LT_COMPILER_BOILERPLATE |
3875 |
|
_LT_LINKER_BOILERPLATE |
3876 |
|
|
3877 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
3878 |
lt_save_CC="$CC" |
lt_save_CC="$CC" |
3879 |
CC=${GCJ-"gcj"} |
CC=${GCJ-"gcj"} |
3932 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3933 |
_LT_AC_SYS_COMPILER |
_LT_AC_SYS_COMPILER |
3934 |
|
|
3935 |
|
# save warnings/boilerplate of simple test code |
3936 |
|
_LT_COMPILER_BOILERPLATE |
3937 |
|
_LT_LINKER_BOILERPLATE |
3938 |
|
|
3939 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
3940 |
lt_save_CC="$CC" |
lt_save_CC="$CC" |
3941 |
CC=${RC-"windres"} |
CC=${RC-"windres"} |