561
# Fix-up fallback echo if it was mangled by the above quoting rules.
563
*'\\\[$]0 --fallback-echo"')dnl "
564
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
568
581
_LT_OUTPUT_LIBTOOL_INIT
584
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
585
# ------------------------------------
586
# Generate a child script FILE with all initialization necessary to
587
# reuse the environment learned by the parent script, and make the
588
# file executable. If COMMENT is supplied, it is inserted after the
589
# `#!' sequence but before initialization text begins. After this
590
# macro, additional text can be appended to FILE to form the body of
591
# the child script. The macro ends with non-zero status if the
592
# file could not be fully written (such as if the disk is full).
593
m4_ifdef([AS_INIT_GENERATED],
594
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
595
[m4_defun([_LT_GENERATED_FILE_INIT],
596
[m4_require([AS_PREPARE])]dnl
597
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
599
cat >$1 <<_ASEOF || lt_write_fail=1
601
# Generated by $as_me.
603
SHELL=\${CONFIG_SHELL-$SHELL}
606
cat >>$1 <<\_ASEOF || lt_write_fail=1
609
exec AS_MESSAGE_FD>&1
611
test $lt_write_fail = 0 && chmod +x $1[]dnl
612
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1056
1118
# _LT_SHELL_INIT(ARG)
1057
1119
# -------------------
1058
1120
m4_define([_LT_SHELL_INIT],
1059
[ifdef([AC_DIVERSION_NOTICE],
1060
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1061
[AC_DIVERT_PUSH(NOTICE)])
1121
[m4_divert_text([M4SH-INIT], [$1
1122
])])# _LT_SHELL_INIT
1067
1126
# _LT_PROG_ECHO_BACKSLASH
1068
1127
# -----------------------
1069
# Add some code to the start of the generated configure script which
1070
# will find an echo command which doesn't interpret backslashes.
1128
# Find how we can fake an echo command that does not interpret backslash.
1129
# In particular, with Autoconf 2.60 or later we add some code to the start
1130
# of the generated configure script which will find a shell with a builtin
1131
# printf (which we can use as an echo command).
1071
1132
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1073
# Check that we are running under the correct shell.
1074
SHELL=${CONFIG_SHELL-/bin/sh}
1078
# Remove one level of quotation (which was required for Make).
1079
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1133
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1134
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1135
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1137
AC_MSG_CHECKING([how to print strings])
1138
# Test print first, because it will be a builtin if present.
1139
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1140
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1142
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1145
# Use this function as a fallback that always works.
1146
func_fallback_echo ()
1148
eval 'cat <<_LTECHO_EOF
1152
ECHO='func_fallback_echo'
1155
# func_echo_all arg...
1156
# Invoke $ECHO with all args, space-separated.
1163
printf*) AC_MSG_RESULT([printf]) ;;
1164
print*) AC_MSG_RESULT([print -r]) ;;
1165
*) AC_MSG_RESULT([cat]) ;;
1083
ECHO=${lt_ECHO-echo}
1084
if test "X[$]1" = X--no-reexec; then
1085
# Discard the --no-reexec flag, and continue.
1087
elif test "X[$]1" = X--fallback-echo; then
1088
# Avoid inline document here, it may be left over
1090
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1091
# Yippee, $ECHO works!
1094
# Restart under the correct shell.
1095
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1098
if test "X[$]1" = X--fallback-echo; then
1099
# used as fallback echo
1107
# The HP-UX ksh and POSIX shell print the target directory to stdout
1109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1111
if test -z "$lt_ECHO"; then
1112
if test "X${echo_test_string+set}" != Xset; then
1113
# find a string as large as possible, as long as the shell can cope with it
1114
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1124
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126
test "X$echo_testing_string" = "X$echo_test_string"; then
1129
# The Solaris, AIX, and Digital Unix default echo programs unquote
1130
# backslashes. This makes it impossible to quote backslashes using
1131
# echo "$something" | sed 's/\\/\\\\/g'
1133
# So, first we look for a working echo in the user's PATH.
1135
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136
for dir in $PATH /usr/ucb; do
1138
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141
test "X$echo_testing_string" = "X$echo_test_string"; then
1148
if test "X$ECHO" = Xecho; then
1149
# We didn't find a better echo, so look for alternatives.
1150
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152
test "X$echo_testing_string" = "X$echo_test_string"; then
1153
# This shell has a builtin print -r that does the trick.
1155
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156
test "X$CONFIG_SHELL" != X/bin/ksh; then
1157
# If we have ksh, try running configure again with it.
1158
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159
export ORIGINAL_CONFIG_SHELL
1160
CONFIG_SHELL=/bin/ksh
1162
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1166
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168
test "X$echo_testing_string" = "X$echo_test_string"; then
1169
# Cool, printf works
1171
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172
test "X$echo_testing_string" = 'X\t' &&
1173
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174
test "X$echo_testing_string" = "X$echo_test_string"; then
1175
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1177
SHELL="$CONFIG_SHELL"
1179
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181
test "X$echo_testing_string" = 'X\t' &&
1182
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183
test "X$echo_testing_string" = "X$echo_test_string"; then
1184
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1186
# maybe with a smaller string...
1189
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1197
if test "$prev" != 'sed 50q "[$]0"'; then
1198
echo_test_string=`eval $prev`
1199
export echo_test_string
1200
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1202
# Oops. We lost completely, so just stick with echo.
1211
# Copy echo and quote the copy suitably for passing to libtool from
1212
# the Makefile, instead of quoting the original, which is used later.
1214
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1168
m4_ifdef([_AS_DETECT_SUGGESTED],
1169
[_AS_DETECT_SUGGESTED([
1170
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1171
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1172
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1173
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1174
PATH=/empty FPATH=/empty; export PATH FPATH
1175
test "X`printf %s $ECHO`" = "X$ECHO" \
1176
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1220
1178
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221
_LT_DECL([], [ECHO], [1],
1222
[An echo program that does not interpret backslashes])
1179
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1180
])# _LT_PROG_ECHO_BACKSLASH
2060
2042
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061
2043
*) lt_awk_arg="/^libraries:/" ;;
2063
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2064
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2046
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2047
*) lt_sed_strip_eq="s,=/,/,g" ;;
2049
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2050
case $lt_search_path_spec in
2065
2052
# if the path contains ";" then we assume it to be the separator
2066
2053
# otherwise default to the standard path separator (i.e. ":") - it is
2067
2054
# assumed that no part of a normal pathname contains ";" but that should
2068
2055
# okay in the real world where ";" in dirpaths is itself problematic.
2069
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2071
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2056
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2059
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2073
2062
# Ok, now we have the path, separated by spaces, we can step through it
2074
2063
# and add multilib dir if necessary.
2075
2064
lt_tmp_lt_search_path_spec=
2469
2468
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
2469
shlibpath_var=LD_LIBRARY_PATH
2471
2470
shlibpath_overrides_runpath=no
2472
2472
# Some binutils ld are patched to set DT_RUNPATH
2473
save_LDFLAGS=$LDFLAGS
2475
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2476
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2477
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2478
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2479
[shlibpath_overrides_runpath=yes])])
2480
LDFLAGS=$save_LDFLAGS
2473
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2474
[lt_cv_shlibpath_overrides_runpath=no
2475
save_LDFLAGS=$LDFLAGS
2477
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2478
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2479
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2480
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2481
[lt_cv_shlibpath_overrides_runpath=yes])])
2482
LDFLAGS=$save_LDFLAGS
2485
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2483
2487
# This implies no fast_install, which is unacceptable.
2484
2488
# Some rework will be needed to allow for fast_install
4028
4078
# All Alpha code is PIC.
4029
4079
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4032
# IBM XL C 8.0/Fortran 10.1 on PPC
4081
xl* | bgxl* | bgf* | mpixl*)
4082
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4033
4083
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4034
4084
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4035
4085
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4038
4088
case `$CC -V 2>&1 | sed 5q` in
4089
*Sun\ F* | *Sun*Fortran*)
4090
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4091
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4092
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4093
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4041
4097
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
4098
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043
4099
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4046
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4047
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4048
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4049
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4839
4944
irix5* | irix6* | nonstopux*)
4840
4945
if test "$GCC" = yes; then
4841
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4946
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4842
4947
# Try to use the -exported_symbol ld option, if it does not
4843
4948
# work, assume that -exports_file does not work either and
4844
4949
# implicitly export all symbols.
4845
4950
save_LDFLAGS="$LDFLAGS"
4846
4951
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4847
4952
AC_LINK_IFELSE(int foo(void) {},
4848
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4953
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4850
4955
LDFLAGS="$save_LDFLAGS"
4852
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4853
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4957
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4958
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4855
4960
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4856
4961
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4912
5017
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4913
5018
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4914
5019
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4915
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5020
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4916
5021
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4920
5025
if test "$GCC" = yes; then
4921
5026
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4922
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5027
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4924
5029
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4925
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5030
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4927
5032
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4928
5033
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4932
5037
osf4* | osf5*) # as osf3* with the addition of -msym flag
4933
5038
if test "$GCC" = yes; then
4934
5039
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4935
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5040
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4936
5041
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4938
5043
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4939
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5044
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4940
5045
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4941
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5046
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4943
5048
# Both c and cxx compiler support -rpath directly
4944
5049
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5129
5234
# Test whether the compiler implicitly links with -lc since on some
5130
5235
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5131
5236
# to ld, don't add -lc before -lgcc.
5132
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5134
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5237
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5238
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5240
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5136
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5139
libobjs=conftest.$ac_objext
5141
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5142
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5148
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5149
_LT_TAGVAR(allow_undefined_flag, $1)=
5150
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5152
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5154
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5156
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5158
cat conftest.err 1>&5
5161
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5242
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5245
libobjs=conftest.$ac_objext
5247
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5248
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5254
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5255
_LT_TAGVAR(allow_undefined_flag, $1)=
5256
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5258
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5260
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5262
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5264
cat conftest.err 1>&5
5268
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5910
6014
pgCC* | pgcpp*)
5911
6015
# Portland Group C++ compiler
5912
6016
case `$CC -V` in
5913
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6017
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5914
6018
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5915
6019
rm -rf $tpldir~
5916
6020
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5917
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6021
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5918
6022
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5919
6023
rm -rf $tpldir~
5920
6024
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5921
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6025
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5922
6026
$RANLIB $oldlib'
5923
6027
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5924
6028
rm -rf $tpldir~
5925
6029
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5926
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6030
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5927
6031
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5928
6032
rm -rf $tpldir~
5929
6033
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5930
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6034
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5932
*) # Version 6 will use weak symbols
6036
*) # Version 6 and above use weak symbols
5933
6037
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5934
6038
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7863
7945
# Generated from ltversion.in.
7865
# serial 3017 ltversion.m4
7947
# serial 3175 ltversion.m4
7866
7948
# This file is part of GNU Libtool
7868
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7869
m4_define([LT_PACKAGE_REVISION], [1.3017])
7950
m4_define([LT_PACKAGE_VERSION], [2.2.10])
7951
m4_define([LT_PACKAGE_REVISION], [1.3175])
7871
7953
AC_DEFUN([LTVERSION_VERSION],
7872
[macro_version='2.2.6b'
7873
macro_revision='1.3017'
7954
[macro_version='2.2.10'
7955
macro_revision='1.3175'
7874
7956
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7875
7957
_LT_DECL(, macro_revision, 0)
7878
7960
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7880
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7962
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7881
7963
# Written by Scott James Remnant, 2004.
7883
7965
# This file is free software; the Free Software Foundation gives
7884
7966
# unlimited permission to copy and/or distribute it, with or without
7885
7967
# modifications, as long as this notice is preserved.
7887
# serial 4 lt~obsolete.m4
7969
# serial 5 lt~obsolete.m4
7889
7971
# These exist entirely to fool aclocal when bootstrapping libtool.