3999
7934
*** used, and then restart.
4002
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4003
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4004
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4011
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4014
hardcode_shlibpath_var=no
4018
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4019
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4020
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4027
if test "$ld_shlibs" = yes; then
4028
runpath_var=LD_RUN_PATH
4029
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4030
export_dynamic_flag_spec='${wl}--export-dynamic'
4032
cygwin* | mingw* | pw32*)
4033
# dlltool doesn't understand --whole-archive et. al.
4034
whole_archive_flag_spec=
7937
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7938
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7939
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7946
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7949
hardcode_shlibpath_var=no
7953
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7954
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7955
archive_cmds="$tmp_archive_cmds"
7956
supports_anon_versioning=no
7957
case `$LD -v 2>/dev/null` in
7958
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7959
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7960
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7961
*\ 2.11.*) ;; # other 2.11 versions
7962
*) supports_anon_versioning=yes ;;
7964
if test $supports_anon_versioning = yes; then
7965
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7966
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7967
$echo "local: *; };" >> $output_objdir/$libname.ver~
7968
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7970
archive_expsym_cmds="$tmp_archive_cmds"
7979
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7980
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7988
if test "$ld_shlibs" = yes; then
7989
runpath_var=LD_RUN_PATH
7990
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7991
export_dynamic_flag_spec='${wl}--export-dynamic'
4037
7992
# ancient GNU ld didn't support --whole-archive et. al.
4038
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4039
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7993
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7994
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4041
whole_archive_flag_spec=
7996
whole_archive_flag_spec=
8000
# PORTME fill in a description of your system's linker (not GNU ld)
8003
allow_undefined_flag=unsupported
8004
always_export_symbols=yes
8005
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8006
# Note: this linker hardcodes the directories in LIBPATH if there
8007
# are no directories specified by -L.
8008
hardcode_minus_L=yes
8009
if test "$GCC" = yes && test -z "$link_static_flag"; then
8010
# Neither direct hardcoding nor static linking is supported with a
8012
hardcode_direct=unsupported
4047
# PORTME fill in a description of your system's linker (not GNU ld)
4050
allow_undefined_flag=unsupported
4051
always_export_symbols=yes
4052
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4053
# Note: this linker hardcodes the directories in LIBPATH if there
4054
# are no directories specified by -L.
4055
hardcode_minus_L=yes
4056
if test "$GCC" = yes && test -z "$link_static_flag"; then
4057
# Neither direct hardcoding nor static linking is supported with a
4059
hardcode_direct=unsupported
4064
if test "$host_cpu" = ia64; then
4065
# On IA64, the linker does run time linking by default, so we don't
4066
# have to do anything special.
4067
aix_use_runtimelinking=no
4068
exp_sym_flag='-Bexport'
4071
aix_use_runtimelinking=no
4073
# Test if we are trying to use run time linking or normal
4074
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4075
# need to do runtime linking.
4076
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4077
for ld_flag in $LDFLAGS; do
4078
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4079
aix_use_runtimelinking=yes
8017
if test "$host_cpu" = ia64; then
8018
# On IA64, the linker does run time linking by default, so we don't
8019
# have to do anything special.
8020
aix_use_runtimelinking=no
8021
exp_sym_flag='-Bexport'
8024
# If we're using GNU nm, then we don't want the "-C" option.
8025
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8026
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8027
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8029
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8031
aix_use_runtimelinking=no
8033
# Test if we are trying to use run time linking or normal
8034
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8035
# need to do runtime linking.
8036
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8037
for ld_flag in $LDFLAGS; do
8038
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8039
aix_use_runtimelinking=yes
8045
exp_sym_flag='-bexport'
8046
no_entry_flag='-bnoentry'
8049
# When large executables or shared objects are built, AIX ld can
8050
# have problems creating the table of contents. If linking a library
8051
# or program results in "error TOC overflow" add -mminimal-toc to
8052
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8053
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8057
hardcode_libdir_separator=':'
8058
link_all_deplibs=yes
8060
if test "$GCC" = yes; then
8061
case $host_os in aix4.012|aix4.012.*)
8062
# We only want to do this on AIX 4.2 and lower, the check
8063
# below for broken collect2 doesn't work under 4.3+
8064
collect2name=`${CC} -print-prog-name=collect2`
8065
if test -f "$collect2name" && \
8066
strings "$collect2name" | grep resolve_lib_name >/dev/null
8068
# We have reworked collect2
8071
# We have old collect2
8072
hardcode_direct=unsupported
8073
# It fails to find uninstalled libraries when the uninstalled
8074
# path is not listed in the libpath. Setting hardcode_minus_L
8075
# to unsupported forces relinking
8076
hardcode_minus_L=yes
8077
hardcode_libdir_flag_spec='-L$libdir'
8078
hardcode_libdir_separator=
8081
shared_flag='-shared'
8084
if test "$host_cpu" = ia64; then
8085
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8086
# chokes on -Wl,-G. The following line is correct:
8089
if test "$aix_use_runtimelinking" = yes; then
8090
shared_flag='${wl}-G'
8092
shared_flag='${wl}-bM:SRE'
8097
# It seems that -bexpall does not export symbols beginning with
8098
# underscore (_), so it is better to generate a list of symbols to export.
8099
always_export_symbols=yes
8100
if test "$aix_use_runtimelinking" = yes; then
8101
# Warning - without using the other runtime loading flags (-brtl),
8102
# -berok will link without error, but may produce a broken library.
8103
allow_undefined_flag='-berok'
8104
# Determine the default libpath from the value encoded in an empty executable.
8105
cat >conftest.$ac_ext <<_ACEOF
8108
cat confdefs.h >>conftest.$ac_ext
8109
cat >>conftest.$ac_ext <<_ACEOF
8110
/* end confdefs.h. */
8120
rm -f conftest.$ac_objext conftest$ac_exeext
8121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8122
(eval $ac_link) 2>conftest.er1
8124
grep -v '^ *+' conftest.er1 >conftest.err
8126
cat conftest.err >&5
8127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128
(exit $ac_status); } &&
8129
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134
(exit $ac_status); }; } &&
8135
{ ac_try='test -s conftest$ac_exeext'
8136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140
(exit $ac_status); }; }; then
8142
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8144
# Check for a 64-bit object if we didn't find anything.
8145
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8148
echo "$as_me: failed program was:" >&5
8149
sed 's/^/| /' conftest.$ac_ext >&5
8152
rm -f conftest.err conftest.$ac_objext \
8153
conftest$ac_exeext conftest.$ac_ext
8154
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8156
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8157
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8159
if test "$host_cpu" = ia64; then
8160
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8161
allow_undefined_flag="-z nodefs"
8162
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8164
# Determine the default libpath from the value encoded in an empty executable.
8165
cat >conftest.$ac_ext <<_ACEOF
8168
cat confdefs.h >>conftest.$ac_ext
8169
cat >>conftest.$ac_ext <<_ACEOF
8170
/* end confdefs.h. */
8180
rm -f conftest.$ac_objext conftest$ac_exeext
8181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8182
(eval $ac_link) 2>conftest.er1
8184
grep -v '^ *+' conftest.er1 >conftest.err
8186
cat conftest.err >&5
8187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188
(exit $ac_status); } &&
8189
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194
(exit $ac_status); }; } &&
8195
{ ac_try='test -s conftest$ac_exeext'
8196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200
(exit $ac_status); }; }; then
8202
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8204
# Check for a 64-bit object if we didn't find anything.
8205
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8208
echo "$as_me: failed program was:" >&5
8209
sed 's/^/| /' conftest.$ac_ext >&5
8212
rm -f conftest.err conftest.$ac_objext \
8213
conftest$ac_exeext conftest.$ac_ext
8214
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8216
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8217
# Warning - without using the other run time loading flags,
8218
# -berok will link without error, but may produce a broken library.
8219
no_undefined_flag=' ${wl}-bernotok'
8220
allow_undefined_flag=' ${wl}-berok'
8221
# -bexpall does not export symbols beginning with underscore (_)
8222
always_export_symbols=yes
8223
# Exported symbols can be pulled into shared objects from archives
8224
whole_archive_flag_spec=' '
8225
archive_cmds_need_lc=yes
8226
# This is similar to how AIX traditionally builds it's shared libraries.
8227
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8233
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8234
hardcode_libdir_flag_spec='-L$libdir'
8235
hardcode_minus_L=yes
8236
# see comment about different semantics on the GNU ld section
8241
export_dynamic_flag_spec=-rdynamic
8244
cygwin* | mingw* | pw32*)
8245
# When not using gcc, we currently assume that we are using
8246
# Microsoft Visual C++.
8247
# hardcode_libdir_flag_spec is actually meaningless, as there is
8248
# no search path for DLLs.
8249
hardcode_libdir_flag_spec=' '
8250
allow_undefined_flag=unsupported
8251
# Tell ltmain to make .lib files, not .a files.
8253
# Tell ltmain to make .dll files, not .so files.
8255
# FIXME: Setting linknames here is a bad hack.
8256
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8257
# The linker will automatically build a .lib file if we build a DLL.
8258
old_archive_From_new_cmds='true'
8259
# FIXME: Should let the user specify the lib program.
8260
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8261
fix_srcfile_path='`cygpath -w "$srcfile"`'
8262
enable_shared_with_static_runtimes=yes
8265
darwin* | rhapsody*)
8266
if test "$GXX" = yes ; then
8267
archive_cmds_need_lc=no
8269
rhapsody* | darwin1.[012])
8270
allow_undefined_flag='-undefined suppress'
8273
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8274
allow_undefined_flag='-flat_namespace -undefined suppress'
8276
case ${MACOSX_DEPLOYMENT_TARGET} in
8278
allow_undefined_flag='-flat_namespace -undefined suppress'
8281
allow_undefined_flag='-undefined dynamic_lookup'
4085
exp_sym_flag='-bexport'
4086
no_entry_flag='-bnoentry'
8287
lt_int_apple_cc_single_mod=no
8288
output_verbose_link_cmd='echo'
8289
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8290
lt_int_apple_cc_single_mod=yes
8292
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8293
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8295
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8297
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8298
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8299
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8300
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8302
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8304
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8306
hardcode_automatic=yes
8307
hardcode_shlibpath_var=unsupported
8308
whole_archive_flag_spec='-all_load $convenience'
8309
link_all_deplibs=yes
4089
# When large executables or shared objects are built, AIX ld can
4090
# have problems creating the table of contents. If linking a library
4091
# or program results in "error TOC overflow" add -mminimal-toc to
4092
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4093
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4097
hardcode_libdir_separator=':'
4098
if test "$GCC" = yes; then
4099
case $host_os in aix4.[012]|aix4.[012].*)
4100
collect2name=`${CC} -print-prog-name=collect2`
4101
if test -f "$collect2name" && \
4102
strings "$collect2name" | grep resolve_lib_name >/dev/null
4104
# We have reworked collect2
8316
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317
hardcode_libdir_flag_spec='-L$libdir'
8318
hardcode_shlibpath_var=no
8325
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8326
# support. Future versions do this automatically, but an explicit c++rt0.o
8327
# does not break anything, and helps significantly (at the cost of a little
8330
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8331
hardcode_libdir_flag_spec='-R$libdir'
8333
hardcode_shlibpath_var=no
8336
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8338
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8340
hardcode_minus_L=yes
8341
hardcode_shlibpath_var=no
8344
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8345
freebsd* | kfreebsd*-gnu)
8346
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8347
hardcode_libdir_flag_spec='-R$libdir'
8349
hardcode_shlibpath_var=no
8353
if test "$GCC" = yes; then
8354
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8356
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8358
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8359
hardcode_libdir_separator=:
8362
# hardcode_minus_L: Not really in the search PATH,
8363
# but as the default location of the library.
8364
hardcode_minus_L=yes
8365
export_dynamic_flag_spec='${wl}-E'
8369
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8372
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8375
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8381
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8384
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8388
if test "$with_gnu_ld" = no; then
8391
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8392
hardcode_libdir_flag_spec_ld='+b $libdir'
8393
hardcode_libdir_separator=:
8395
hardcode_shlibpath_var=no
8398
hardcode_libdir_flag_spec='-L$libdir'
8400
hardcode_shlibpath_var=no
8402
# hardcode_minus_L: Not really in the search PATH,
8403
# but as the default location of the library.
8404
hardcode_minus_L=yes
8407
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8408
hardcode_libdir_separator=:
4105
8409
hardcode_direct=yes
4107
# We have old collect2
4108
hardcode_direct=unsupported
4109
# It fails to find uninstalled libraries when the uninstalled
4110
# path is not listed in the libpath. Setting hardcode_minus_L
4111
# to unsupported forces relinking
8410
export_dynamic_flag_spec='${wl}-E'
8412
# hardcode_minus_L: Not really in the search PATH,
8413
# but as the default location of the library.
4112
8414
hardcode_minus_L=yes
4113
hardcode_libdir_flag_spec='-L$libdir'
4114
hardcode_libdir_separator=
4118
shared_flag='-shared'
4121
if test "$host_cpu" = ia64; then
4122
shared_flag='${wl}-G'
4124
if test "$aix_use_runtimelinking" = yes; then
4125
shared_flag='${wl}-G'
4127
shared_flag='${wl}-bM:SRE'
4132
# It seems that -bexpall can do strange things, so it is better to
4133
# generate a list of symbols to export.
4134
always_export_symbols=yes
4135
if test "$aix_use_runtimelinking" = yes; then
4136
# Warning - without using the other runtime loading flags (-brtl),
4137
# -berok will link without error, but may produce a broken library.
4138
allow_undefined_flag='-berok'
4139
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4140
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4142
if test "$host_cpu" = ia64; then
4143
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4144
allow_undefined_flag="-z nodefs"
4145
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4147
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4148
# Warning - without using the other run time loading flags,
4149
# -berok will link without error, but may produce a broken library.
4150
allow_undefined_flag='${wl}-berok'
4151
# This is a bit strange, but is similar to how AIX traditionally builds
4152
# it's shared libraries.
4153
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4159
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4160
hardcode_libdir_flag_spec='-L$libdir'
4161
hardcode_minus_L=yes
4162
# see comment about different semantics on the GNU ld section
4166
cygwin* | mingw* | pw32*)
4167
# When not using gcc, we currently assume that we are using
4168
# Microsoft Visual C++.
4169
# hardcode_libdir_flag_spec is actually meaningless, as there is
4170
# no search path for DLLs.
4171
hardcode_libdir_flag_spec=' '
4172
allow_undefined_flag=unsupported
4173
# Tell ltmain to make .lib files, not .a files.
4175
# FIXME: Setting linknames here is a bad hack.
4176
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4177
# The linker will automatically build a .lib file if we build a DLL.
4178
old_archive_from_new_cmds='true'
4179
# FIXME: Should let the user specify the lib program.
4180
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4181
fix_srcfile_path='`cygpath -w "$srcfile"`'
4184
darwin* | rhapsody*)
4186
rhapsody* | darwin1.[012])
4187
allow_undefined_flag='-undefined suppress'
4190
allow_undefined_flag='-flat_namespace -undefined suppress'
4193
# FIXME: Relying on posixy $() will cause problems for
4194
# cross-compilation, but unfortunately the echo tests do not
4195
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
4196
# `"' quotes if we put them in here... so don't!
4197
archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4198
# We need to add '_' to the symbols in $export_symbols first
4199
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4201
hardcode_shlibpath_var=no
4202
whole_archive_flag_spec='-all_load $convenience'
4209
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4210
# support. Future versions do this automatically, but an explicit c++rt0.o
4211
# does not break anything, and helps significantly (at the cost of a little
4214
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4215
hardcode_libdir_flag_spec='-R$libdir'
4217
hardcode_shlibpath_var=no
4220
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
4222
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4224
hardcode_minus_L=yes
4225
hardcode_shlibpath_var=no
4228
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4230
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4231
hardcode_libdir_flag_spec='-R$libdir'
4233
hardcode_shlibpath_var=no
4236
hpux9* | hpux10* | hpux11*)
4238
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4239
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4241
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4242
hardcode_libdir_separator=:
4244
hardcode_minus_L=yes # Not in the search PATH, but as the default
4245
# location of the library.
4246
export_dynamic_flag_spec='${wl}-E'
4249
irix5* | irix6* | nonstopux*)
4250
if test "$GCC" = yes; then
4251
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4253
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4255
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4256
hardcode_libdir_separator=:
4257
link_all_deplibs=yes
4261
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4262
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4264
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4266
hardcode_libdir_flag_spec='-R$libdir'
4268
hardcode_shlibpath_var=no
4272
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4274
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4275
hardcode_libdir_separator=:
4276
hardcode_shlibpath_var=no
4281
hardcode_shlibpath_var=no
4282
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4283
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4284
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4285
export_dynamic_flag_spec='${wl}-E'
4288
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4289
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4290
hardcode_libdir_flag_spec='-R$libdir'
4293
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4294
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4301
hardcode_libdir_flag_spec='-L$libdir'
4302
hardcode_minus_L=yes
4303
allow_undefined_flag=unsupported
4304
archive_cmds='$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'
4305
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4309
if test "$GCC" = yes; then
4310
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4311
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4313
allow_undefined_flag=' -expect_unresolved \*'
4314
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4316
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4317
hardcode_libdir_separator=:
4320
osf4* | osf5*) # as osf3* with the addition of -msym flag
4321
if test "$GCC" = yes; then
4322
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4323
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4324
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4326
allow_undefined_flag=' -expect_unresolved \*'
4327
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4328
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4329
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4331
#Both c and cxx compiler support -rpath directly
4332
hardcode_libdir_flag_spec='-rpath $libdir'
4334
hardcode_libdir_separator=:
4338
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4339
hardcode_shlibpath_var=no
4340
runpath_var=LD_RUN_PATH
4341
hardcode_runpath_var=yes
4342
export_dynamic_flag_spec='${wl}-Bexport'
4346
# gcc --version < 3.0 without binutils cannot create self contained
4347
# shared libraries reliably, requiring libgcc.a to resolve some of
4348
# the object symbols generated in some cases. Libraries that use
4349
# assert need libgcc.a to resolve __eprintf, for example. Linking
4350
# a copy of libgcc.a into every shared library to guarantee resolving
4351
# such symbols causes other problems: According to Tim Van Holder
4352
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4353
# (to the application) exception stack for one thing.
4354
no_undefined_flag=' -z defs'
4355
if test "$GCC" = yes; then
4356
case `$CC --version 2>/dev/null` in
4360
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4361
*** create self contained shared libraries on Solaris systems, without
4362
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4363
*** -no-undefined support, which will at least allow you to build shared
4364
*** libraries. However, you may find that when you link such libraries
4365
*** into an application without using GCC, you have to manually add
4366
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4367
*** upgrade to a newer version of GCC. Another option is to rebuild your
4368
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4375
# $CC -shared without GNU ld will not create a library from C++
4376
# object files and a static libstdc++, better avoid it by now
4377
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4378
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4379
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4380
hardcode_libdir_flag_spec='-R$libdir'
4381
hardcode_shlibpath_var=no
4383
solaris2.[0-5] | solaris2.[0-5].*) ;;
4384
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
4385
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4387
link_all_deplibs=yes
4391
if test "x$host_vendor" = xsequent; then
4392
# Use $CC to link under sequent, because it throws in some extra .o
4393
# files that make .init and .fini sections work.
4394
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4396
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4398
hardcode_libdir_flag_spec='-L$libdir'
4400
hardcode_minus_L=yes
4401
hardcode_shlibpath_var=no
4405
if test "x$host_vendor" = xsno; then
4406
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4407
hardcode_direct=yes # is this really true???
4409
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4410
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4412
runpath_var='LD_RUN_PATH'
4413
hardcode_shlibpath_var=no
4417
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4418
hardcode_shlibpath_var=no
4419
export_dynamic_flag_spec='-Bexport'
4423
no_undefined_flag=' -z text'
4424
# $CC -shared without GNU ld will not create a library from C++
4425
# object files and a static libstdc++, better avoid it by now
4426
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4427
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4428
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4429
hardcode_libdir_flag_spec=
4430
hardcode_shlibpath_var=no
4431
runpath_var='LD_RUN_PATH'
4435
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4436
hardcode_libdir_flag_spec='-L$libdir'
4437
hardcode_shlibpath_var=no
4441
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4442
hardcode_libdir_flag_spec='-L$libdir'
4443
hardcode_shlibpath_var=no
4447
if test -d /usr/nec; then
4448
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4449
hardcode_shlibpath_var=no
4450
runpath_var=LD_RUN_PATH
4451
hardcode_runpath_var=yes
4457
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4460
hardcode_shlibpath_var=no
4461
hardcode_runpath_var=yes
4462
runpath_var=LD_RUN_PATH
4465
sysv5uw7* | unixware7*)
4466
no_undefined_flag='${wl}-z ${wl}text'
4467
if test "$GCC" = yes; then
4468
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4470
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4472
runpath_var='LD_RUN_PATH'
4473
hardcode_shlibpath_var=no
4481
echo "$ac_t""$ld_shlibs" 1>&6
8420
irix5* | irix6* | nonstopux*)
8421
if test "$GCC" = yes; then
8422
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8424
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8425
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8427
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8428
hardcode_libdir_separator=:
8429
link_all_deplibs=yes
8432
netbsd* | knetbsd*-gnu)
8433
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8434
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8436
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8438
hardcode_libdir_flag_spec='-R$libdir'
8440
hardcode_shlibpath_var=no
8444
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8447
hardcode_libdir_separator=:
8448
hardcode_shlibpath_var=no
8453
hardcode_shlibpath_var=no
8454
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8455
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8456
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8457
export_dynamic_flag_spec='${wl}-E'
8460
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8461
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462
hardcode_libdir_flag_spec='-R$libdir'
8465
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8466
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8473
hardcode_libdir_flag_spec='-L$libdir'
8474
hardcode_minus_L=yes
8475
allow_undefined_flag=unsupported
8476
archive_cmds='$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'
8477
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8481
if test "$GCC" = yes; then
8482
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8483
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8485
allow_undefined_flag=' -expect_unresolved \*'
8486
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8488
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8489
hardcode_libdir_separator=:
8492
osf4* | osf5*) # as osf3* with the addition of -msym flag
8493
if test "$GCC" = yes; then
8494
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8495
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8496
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8498
allow_undefined_flag=' -expect_unresolved \*'
8499
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8500
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8501
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8503
# Both c and cxx compiler support -rpath directly
8504
hardcode_libdir_flag_spec='-rpath $libdir'
8506
hardcode_libdir_separator=:
8510
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8511
hardcode_shlibpath_var=no
8512
export_dynamic_flag_spec='${wl}-Bexport'
8513
runpath_var=LD_RUN_PATH
8514
hardcode_runpath_var=yes
8518
no_undefined_flag=' -z text'
8519
if test "$GCC" = yes; then
8520
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8522
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8524
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8525
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8526
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8528
hardcode_libdir_flag_spec='-R$libdir'
8529
hardcode_shlibpath_var=no
8531
solaris2.[0-5] | solaris2.[0-5].*) ;;
8532
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8533
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8535
link_all_deplibs=yes
8539
if test "x$host_vendor" = xsequent; then
8540
# Use $CC to link under sequent, because it throws in some extra .o
8541
# files that make .init and .fini sections work.
8542
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8544
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8546
hardcode_libdir_flag_spec='-L$libdir'
8548
hardcode_minus_L=yes
8549
hardcode_shlibpath_var=no
8553
case $host_vendor in
8555
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8556
hardcode_direct=yes # is this really true???
8559
## LD is ld it makes a PLAMLIB
8560
## CC just makes a GrossModule.
8561
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8562
reload_cmds='$CC -r -o $output$reload_objs'
8566
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8570
runpath_var='LD_RUN_PATH'
8571
hardcode_shlibpath_var=no
8575
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576
hardcode_shlibpath_var=no
8577
export_dynamic_flag_spec='-Bexport'
8581
if test -d /usr/nec; then
8582
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8583
hardcode_shlibpath_var=no
8584
runpath_var=LD_RUN_PATH
8585
hardcode_runpath_var=yes
8591
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8594
hardcode_shlibpath_var=no
8595
hardcode_runpath_var=yes
8596
runpath_var=LD_RUN_PATH
8599
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8600
no_undefined_flag='${wl}-z ${wl}text'
8601
if test "$GCC" = yes; then
8602
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606
runpath_var='LD_RUN_PATH'
8607
hardcode_shlibpath_var=no
8611
no_undefined_flag=' -z text'
8612
# $CC -shared without GNU ld will not create a library from C++
8613
# object files and a static libstdc++, better avoid it by now
8614
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8616
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8617
hardcode_libdir_flag_spec=
8618
hardcode_shlibpath_var=no
8619
runpath_var='LD_RUN_PATH'
8623
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624
hardcode_libdir_flag_spec='-L$libdir'
8625
hardcode_shlibpath_var=no
8634
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8635
echo "${ECHO_T}$ld_shlibs" >&6
4482
8636
test "$ld_shlibs" = no && can_build_shared=no
4484
# Check hardcoding attributes.
4485
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4486
echo "configure:4487: checking how to hardcode library paths into programs" >&5
8638
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8639
if test "$GCC" = yes; then
8640
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8644
# Do we need to explicitly link libc?
8646
case "x$archive_cmds_need_lc" in
8648
# Assume -lc should be added
8649
archive_cmds_need_lc=yes
8651
if test "$enable_shared" = yes && test "$GCC" = yes; then
8652
case $archive_cmds in
8654
# FIXME: we may have to deal with multi-command sequences.
8657
# Test whether the compiler implicitly links with -lc since on some
8658
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8659
# to ld, don't add -lc before -lgcc.
8660
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8661
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8663
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666
(eval $ac_compile) 2>&5
8668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669
(exit $ac_status); } 2>conftest.err; then
8672
libobjs=conftest.$ac_objext
8674
wl=$lt_prog_compiler_wl
8680
lt_save_allow_undefined_flag=$allow_undefined_flag
8681
allow_undefined_flag=
8682
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8683
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686
(exit $ac_status); }
8688
archive_cmds_need_lc=no
8690
archive_cmds_need_lc=yes
8692
allow_undefined_flag=$lt_save_allow_undefined_flag
8694
cat conftest.err 1>&5
8697
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8698
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8705
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8706
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8708
libname_spec='lib$name'
8716
shlibpath_overrides_runpath=unknown
8718
dynamic_linker="$host_os ld.so"
8719
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8720
if test "$GCC" = yes; then
8721
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8722
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8723
# if the path contains ";" then we assume it to be the separator
8724
# otherwise default to the standard path separator (i.e. ":") - it is
8725
# assumed that no part of a normal pathname contains ";" but that should
8726
# okay in the real world where ";" in dirpaths is itself problematic.
8727
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8729
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8732
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8734
need_lib_prefix=unknown
8735
hardcode_into_libs=no
8737
# when you set need_version to no, make sure it does not cause -set_version
8738
# flags to be left without arguments
8739
need_version=unknown
8744
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8745
shlibpath_var=LIBPATH
8747
# AIX 3 has no versioning support, so we append a major version to the name.
8748
soname_spec='${libname}${release}${shared_ext}$major'
8755
hardcode_into_libs=yes
8756
if test "$host_cpu" = ia64; then
8757
# AIX 5 supports IA64
8758
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8759
shlibpath_var=LD_LIBRARY_PATH
8761
# With GCC up to 2.95.x, collect2 would create an import file
8762
# for dependence libraries. The import file would start with
8763
# the line `#! .'. This would cause the generated library to
8764
# depend on `.', always an invalid library. This was fixed in
8765
# development snapshots of GCC prior to 3.0.
8767
aix4 | aix4.[01] | aix4.[01].*)
8768
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8770
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8777
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8778
# soname into executable. Probably we can add versioning support to
8779
# collect2, so additional links can be useful in future.
8780
if test "$aix_use_runtimelinking" = yes; then
8781
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8782
# instead of lib<name>.a to let people know that these are not
8783
# typical AIX shared libraries.
8784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786
# We preserve .a as extension for shared libraries through AIX4.2
8787
# and later when we are not doing run time linking.
8788
library_names_spec='${libname}${release}.a $libname.a'
8789
soname_spec='${libname}${release}${shared_ext}$major'
8791
shlibpath_var=LIBPATH
8796
library_names_spec='$libname.ixlibrary $libname.a'
8797
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8798
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8802
library_names_spec='${libname}${shared_ext}'
8803
dynamic_linker="$host_os ld.so"
8804
shlibpath_var=LIBRARY_PATH
8810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811
soname_spec='${libname}${release}${shared_ext}$major'
8812
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8813
shlibpath_var=LD_LIBRARY_PATH
8814
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8815
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8816
# the default ld.so.conf also contains /usr/contrib/lib and
8817
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8818
# libtool to hard-code these into programs
8821
cygwin* | mingw* | pw32*)
8822
version_type=windows
8827
case $GCC,$host_os in
8828
yes,cygwin* | yes,mingw* | yes,pw32*)
8829
library_names_spec='$libname.dll.a'
8830
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8831
postinstall_cmds='base_file=`basename \${file}`~
8832
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8833
dldir=$destdir/`dirname \$dlpath`~
8834
test -d \$dldir || mkdir -p \$dldir~
8835
$install_prog $dir/$dlname \$dldir/$dlname'
8836
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8837
dlpath=$dir/\$dldll~
8839
shlibpath_overrides_runpath=yes
8843
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8844
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8845
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8848
# MinGW DLLs use traditional 'lib' prefix
8849
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8851
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8852
# It is most probably a Windows format PATH printed by
8853
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8854
# path with ; separators, and with drive letters. We can handle the
8855
# drive letters (cygwin fileutils understands them), so leave them,
8856
# especially as we might pass files found there to a mingw objdump,
8857
# which wouldn't understand a cygwinified path. Ahh.
8858
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8860
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8864
# pw32 DLLs use 'pw' prefix rather than 'lib'
8865
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8871
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8874
dynamic_linker='Win32 ld.exe'
8875
# FIXME: first we should search . and the directory the executable is in
8879
darwin* | rhapsody*)
8880
dynamic_linker="$host_os dyld"
8884
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8885
soname_spec='${libname}${release}${major}$shared_ext'
8886
shlibpath_overrides_runpath=yes
8887
shlibpath_var=DYLD_LIBRARY_PATH
8888
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8889
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8890
if test "$GCC" = yes; then
8891
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8893
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8895
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8903
soname_spec='${libname}${release}${shared_ext}$major'
8904
shlibpath_var=LD_LIBRARY_PATH
8915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8916
soname_spec='${libname}${release}${shared_ext}$major'
8917
shlibpath_var=LD_LIBRARY_PATH
8918
shlibpath_overrides_runpath=no
8919
hardcode_into_libs=yes
8920
dynamic_linker='GNU ld.so'
8924
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8925
version_type=freebsd-$objformat
8926
case $version_type in
8928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8933
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8937
shlibpath_var=LD_LIBRARY_PATH
8940
shlibpath_overrides_runpath=yes
8942
freebsd3.01* | freebsdelf3.01*)
8943
shlibpath_overrides_runpath=yes
8944
hardcode_into_libs=yes
8947
shlibpath_overrides_runpath=no
8948
hardcode_into_libs=yes
8957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8958
soname_spec='${libname}${release}${shared_ext}$major'
8959
shlibpath_var=LD_LIBRARY_PATH
8960
hardcode_into_libs=yes
8963
hpux9* | hpux10* | hpux11*)
8964
# Give a soname corresponding to the major version so that dld.sl refuses to
8965
# link against other versions.
8972
hardcode_into_libs=yes
8973
dynamic_linker="$host_os dld.so"
8974
shlibpath_var=LD_LIBRARY_PATH
8975
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977
soname_spec='${libname}${release}${shared_ext}$major'
8978
if test "X$HPUX_IA64_MODE" = X32; then
8979
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8981
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8983
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8987
hardcode_into_libs=yes
8988
dynamic_linker="$host_os dld.sl"
8989
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8990
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992
soname_spec='${libname}${release}${shared_ext}$major'
8993
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8994
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8998
dynamic_linker="$host_os dld.sl"
8999
shlibpath_var=SHLIB_PATH
9000
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002
soname_spec='${libname}${release}${shared_ext}$major'
9005
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9006
postinstall_cmds='chmod 555 $lib'
9009
irix5* | irix6* | nonstopux*)
9011
nonstopux*) version_type=nonstopux ;;
9013
if test "$lt_cv_prog_gnu_ld" = yes; then
9021
soname_spec='${libname}${release}${shared_ext}$major'
9022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9024
irix5* | nonstopux*)
9028
case $LD in # libtool.m4 will add one of these switches to LD
9029
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9030
libsuff= shlibsuff= libmagic=32-bit;;
9031
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9032
libsuff=32 shlibsuff=N32 libmagic=N32;;
9033
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9034
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9035
*) libsuff= shlibsuff= libmagic=never-match;;
9039
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9040
shlibpath_overrides_runpath=no
9041
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9042
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9043
hardcode_into_libs=yes
9046
# No shared lib support for Linux oldld, aout, or coff.
9047
linux*oldld* | linux*aout* | linux*coff*)
9051
# This must be Linux ELF.
9056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057
soname_spec='${libname}${release}${shared_ext}$major'
9058
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9059
shlibpath_var=LD_LIBRARY_PATH
9060
shlibpath_overrides_runpath=no
9061
# This implies no fast_install, which is unacceptable.
9062
# Some rework will be needed to allow for fast_install
9063
# before this can be enabled.
9064
hardcode_into_libs=yes
9066
# Append ld.so.conf contents to the search path
9067
if test -f /etc/ld.so.conf; then
9068
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9069
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9072
# We used to test for /lib/ld.so.1 and disable shared libraries on
9073
# powerpc, because MkLinux only supported shared libraries with the
9074
# GNU dynamic linker. Since this was broken with cross compilers,
9075
# most powerpc-linux boxes support dynamic linking these days and
9076
# people can always --disable-shared, the test was removed, and we
9077
# assume the GNU/Linux dynamic linker is in use.
9078
dynamic_linker='GNU/Linux ld.so'
9085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9086
soname_spec='${libname}${release}${shared_ext}$major'
9087
shlibpath_var=LD_LIBRARY_PATH
9088
shlibpath_overrides_runpath=no
9089
hardcode_into_libs=yes
9090
dynamic_linker='GNU ld.so'
9097
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9099
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9100
dynamic_linker='NetBSD (a.out) ld.so'
9102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9103
soname_spec='${libname}${release}${shared_ext}$major'
9104
dynamic_linker='NetBSD ld.elf_so'
9106
shlibpath_var=LD_LIBRARY_PATH
9107
shlibpath_overrides_runpath=yes
9108
hardcode_into_libs=yes
9113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114
shlibpath_var=LD_LIBRARY_PATH
9115
shlibpath_overrides_runpath=yes
9122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123
soname_spec='${libname}${release}${shared_ext}$major'
9124
shlibpath_var=LD_LIBRARY_PATH
9125
shlibpath_overrides_runpath=yes
9132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9133
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9134
shlibpath_var=LD_LIBRARY_PATH
9135
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9137
openbsd2.[89] | openbsd2.[89].*)
9138
shlibpath_overrides_runpath=no
9141
shlibpath_overrides_runpath=yes
9145
shlibpath_overrides_runpath=yes
9150
libname_spec='$name'
9153
library_names_spec='$libname${shared_ext} $libname.a'
9154
dynamic_linker='OS/2 ld.exe'
9155
shlibpath_var=LIBPATH
9158
osf3* | osf4* | osf5*)
9162
soname_spec='${libname}${release}${shared_ext}$major'
9163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164
shlibpath_var=LD_LIBRARY_PATH
9165
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9166
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9171
soname_spec='${libname}${release}${shared_ext}$major'
9172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173
shlibpath_var=LD_LIBRARY_PATH
9180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181
soname_spec='${libname}${release}${shared_ext}$major'
9182
shlibpath_var=LD_LIBRARY_PATH
9183
shlibpath_overrides_runpath=yes
9184
hardcode_into_libs=yes
9185
# ldd complains unless libraries are executable
9186
postinstall_cmds='chmod +x $lib'
9191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9193
shlibpath_var=LD_LIBRARY_PATH
9194
shlibpath_overrides_runpath=yes
9195
if test "$with_gnu_ld" = yes; then
9201
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204
soname_spec='${libname}${release}${shared_ext}$major'
9205
shlibpath_var=LD_LIBRARY_PATH
9206
case $host_vendor in
9208
shlibpath_overrides_runpath=no
9210
export_dynamic_flag_spec='${wl}-Blargedynsym'
9211
runpath_var=LD_RUN_PATH
9219
shlibpath_overrides_runpath=no
9220
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9226
if test -d /usr/nec ;then
9228
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9229
soname_spec='$libname${shared_ext}.$major'
9230
shlibpath_var=LD_LIBRARY_PATH
9236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237
soname_spec='${libname}${release}${shared_ext}$major'
9238
shlibpath_var=LD_LIBRARY_PATH
9245
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9246
echo "${ECHO_T}$dynamic_linker" >&6
9247
test "$dynamic_linker" = no && can_build_shared=no
9249
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9250
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4487
9251
hardcode_action=
4488
9252
if test -n "$hardcode_libdir_flag_spec" || \
4489
test -n "$runpath_var"; then
9253
test -n "$runpath_var " || \
9254
test "X$hardcode_automatic"="Xyes" ; then
4491
9256
# We can hardcode non-existant directories.
4492
9257
if test "$hardcode_direct" != no &&
4493
9258
# If the only mechanism to avoid hardcoding is shlibpath_var, we
4494
9259
# have to relink, otherwise we might link with an installed library
4495
9260
# when we should be linking with a yet-to-be-installed one
4496
## test "$hardcode_shlibpath_var" != no &&
9261
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
4497
9262
test "$hardcode_minus_L" != no; then
4498
9263
# Linking always hardcodes the temporary library directory.
4499
9264
hardcode_action=relink
5890
cygwin* | mingw* | pw32* | os2*)
5891
cat <<'EOF' >> "${ofile}T"
5892
# This is a source program that is used to create dlls on Windows
5893
# Don't remove nor modify the starting and closing comments
5894
# /* ltdll.c starts here */
5895
# #define WIN32_LEAN_AND_MEAN
5896
# #include <windows.h>
5897
# #undef WIN32_LEAN_AND_MEAN
5898
# #include <stdio.h>
5900
# #ifndef __CYGWIN__
5901
# # ifdef __CYGWIN32__
5902
# # define __CYGWIN__ __CYGWIN32__
5906
# #ifdef __cplusplus
5909
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5910
# #ifdef __cplusplus
5915
# #include <cygwin/cygwin_dll.h>
5916
# DECLARE_CYGWIN_DLL( DllMain );
5918
# HINSTANCE __hDllInstance_base;
5921
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5923
# __hDllInstance_base = hInst;
5926
# /* ltdll.c ends here */
5927
# This is a source program that is used to create import libraries
5928
# on Windows for dlls which lack them. Don't remove nor modify the
5929
# starting and closing comments
5930
# /* impgen.c starts here */
5931
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5933
# This file is part of GNU libtool.
5935
# This program is free software; you can redistribute it and/or modify
5936
# it under the terms of the GNU General Public License as published by
5937
# the Free Software Foundation; either version 2 of the License, or
5938
# (at your option) any later version.
5940
# This program is distributed in the hope that it will be useful,
5941
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5942
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5943
# GNU General Public License for more details.
5945
# You should have received a copy of the GNU General Public License
5946
# along with this program; if not, write to the Free Software
5947
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5950
# #include <stdio.h> /* for printf() */
5951
# #include <unistd.h> /* for open(), lseek(), read() */
5952
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5953
# #include <string.h> /* for strdup() */
5955
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
5957
# #define O_BINARY 0
5960
# static unsigned int
5961
# pe_get16 (fd, offset)
5965
# unsigned char b[2];
5966
# lseek (fd, offset, SEEK_SET);
5968
# return b[0] + (b[1]<<8);
5971
# static unsigned int
5972
# pe_get32 (fd, offset)
5976
# unsigned char b[4];
5977
# lseek (fd, offset, SEEK_SET);
5979
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5982
# static unsigned int
5986
# unsigned char *b = ptr;
5987
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5996
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5997
# unsigned long export_rva, export_size, nsections, secptr, expptr;
5998
# unsigned long name_rvas, nexp;
5999
# unsigned char *expdata, *erva;
6000
# char *filename, *dll_name;
6002
# filename = argv[1];
6004
# dll = open(filename, O_RDONLY|O_BINARY);
6008
# dll_name = filename;
6010
# for (i=0; filename[i]; i++)
6011
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6012
# dll_name = filename + i +1;
6014
# pe_header_offset = pe_get32 (dll, 0x3c);
6015
# opthdr_ofs = pe_header_offset + 4 + 20;
6016
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
6018
# if (num_entries < 1) /* no exports */
6021
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
6022
# export_size = pe_get32 (dll, opthdr_ofs + 100);
6023
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6024
# secptr = (pe_header_offset + 4 + 20 +
6025
# pe_get16 (dll, pe_header_offset + 4 + 16));
6028
# for (i = 0; i < nsections; i++)
6031
# unsigned long secptr1 = secptr + 40 * i;
6032
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6033
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6034
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6035
# lseek(dll, secptr1, SEEK_SET);
6036
# read(dll, sname, 8);
6037
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
6039
# expptr = fptr + (export_rva - vaddr);
6040
# if (export_rva + export_size > vaddr + vsize)
6041
# export_size = vsize - (export_rva - vaddr);
6046
# expdata = (unsigned char*)malloc(export_size);
6047
# lseek (dll, expptr, SEEK_SET);
6048
# read (dll, expdata, export_size);
6049
# erva = expdata - export_rva;
6051
# nexp = pe_as32 (expdata+24);
6052
# name_rvas = pe_as32 (expdata+32);
6054
# printf ("EXPORTS\n");
6055
# for (i = 0; i<nexp; i++)
6057
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6058
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6063
# /* impgen.c ends here */
6069
10640
# We use sed instead of cat because bash on DJGPP gets confused if
6070
10641
# if finds mixed CR/LF and LF-only lines. Since sed operates in
6071
10642
# text mode, it properly converts lines to CR/LF. This bash problem
6072
10643
# is reportedly fixed, but why not run on old versions too?
6073
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
10644
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6075
mv -f "${ofile}T" "$ofile" || \
6076
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
10646
mv -f "$cfgfile" "$ofile" || \
10647
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6077
10648
chmod +x "$ofile"
10651
# If there is no Makefile yet, we rely on a make rule to execute
10652
# `config.status --recheck' to rerun these tests and create the
10653
# libtool script then.
10654
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10655
if test -f "$ltmain_in"; then
10656
test -f Makefile && make "$ltmain"
10662
ac_cpp='$CPP $CPPFLAGS'
10663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10670
# Check whether --with-tags or --without-tags was given.
10671
if test "${with_tags+set}" = set; then
10672
withval="$with_tags"
10673
tagnames="$withval"
10676
if test -f "$ltmain" && test -n "$tagnames"; then
10677
if test ! -f "${ofile}"; then
10678
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10679
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10682
if test -z "$LTCC"; then
10683
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10684
if test -z "$LTCC"; then
10685
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10686
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10688
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10689
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10693
# Extract list of available tagged configurations in $ofile.
10694
# Note that this assumes the entire list is on one line.
10695
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10697
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10698
for tagname in $tagnames; do
10700
# Check whether tagname contains only valid characters
10701
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10703
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10704
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10705
{ (exit 1); exit 1; }; }
10709
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10711
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10712
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10713
{ (exit 1); exit 1; }; }
10716
# Update the list of available tags.
10717
if test -n "$tagname"; then
10718
echo appending configuration tag \"$tagname\" to $ofile
10722
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10724
ac_cpp='$CXXCPP $CPPFLAGS'
10725
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10732
archive_cmds_need_lc_CXX=no
10733
allow_undefined_flag_CXX=
10734
always_export_symbols_CXX=no
10735
archive_expsym_cmds_CXX=
10736
export_dynamic_flag_spec_CXX=
10737
hardcode_direct_CXX=no
10738
hardcode_libdir_flag_spec_CXX=
10739
hardcode_libdir_flag_spec_ld_CXX=
10740
hardcode_libdir_separator_CXX=
10741
hardcode_minus_L_CXX=no
10742
hardcode_automatic_CXX=no
10744
module_expsym_cmds_CXX=
10745
link_all_deplibs_CXX=unknown
10746
old_archive_cmds_CXX=$old_archive_cmds
10747
no_undefined_flag_CXX=
10748
whole_archive_flag_spec_CXX=
10749
enable_shared_with_static_runtimes_CXX=no
10751
# Dependencies to place before and after the object being linked:
10752
predep_objects_CXX=
10753
postdep_objects_CXX=
10756
compiler_lib_search_path_CXX=
10758
# Source file extension for C++ test sources.
10761
# Object file extension for compiled C++ test sources.
10765
# Code to be used in simple compile tests
10766
lt_simple_compile_test_code="int some_variable = 0;\n"
10768
# Code to be used in simple link tests
10769
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10771
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10773
# If no C compiler was specified, use CC.
10776
# Allow CC to be a program name with arguments.
10780
# Allow CC to be a program name with arguments.
10785
lt_save_with_gnu_ld=$with_gnu_ld
10786
lt_save_path_LD=$lt_cv_path_LD
10787
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10788
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10790
unset lt_cv_prog_gnu_ld
10792
if test -n "${lt_cv_path_LDCXX+set}"; then
10793
lt_cv_path_LD=$lt_cv_path_LDCXX
10795
unset lt_cv_path_LD
10797
test -z "${LDCXX+set}" || LD=$LDCXX
10801
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10803
# We don't want -fno-exception wen compiling C++ code, so set the
10804
# no_builtin_flag separately
10805
if test "$GXX" = yes; then
10806
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10808
lt_prog_compiler_no_builtin_flag_CXX=
10811
if test "$GXX" = yes; then
10812
# Set up default GNU C++ configuration
10815
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10816
if test "${with_gnu_ld+set}" = set; then
10817
withval="$with_gnu_ld"
10818
test "$withval" = no || with_gnu_ld=yes
10823
if test "$GCC" = yes; then
10824
# Check if gcc -print-prog-name=ld gives a path.
10825
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10826
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10829
# gcc leaves a trailing carriage return which upsets mingw
10830
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10832
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10835
# Accept absolute paths.
10837
re_direlt='/[^/][^/]*/\.\./'
10838
# Canonicalize the pathname of ld
10839
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10840
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10841
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10843
test -z "$LD" && LD="$ac_prog"
10846
# If it fails, then pretend we aren't using GCC.
10850
# If it is relative, then search for the first ld in PATH.
10851
with_gnu_ld=unknown
10854
elif test "$with_gnu_ld" = yes; then
10855
echo "$as_me:$LINENO: checking for GNU ld" >&5
10856
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10858
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10859
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10861
if test "${lt_cv_path_LD+set}" = set; then
10862
echo $ECHO_N "(cached) $ECHO_C" >&6
10864
if test -z "$LD"; then
10865
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10866
for ac_dir in $PATH; do
10868
test -z "$ac_dir" && ac_dir=.
10869
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10870
lt_cv_path_LD="$ac_dir/$ac_prog"
10871
# Check to see if the program is GNU ld. I'd rather use --version,
10872
# but apparently some GNU ld's only accept -v.
10873
# Break only if it was the GNU/non-GNU ld that we prefer.
10874
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10875
*GNU* | *'with BFD'*)
10876
test "$with_gnu_ld" != no && break
10879
test "$with_gnu_ld" != yes && break
10886
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10890
LD="$lt_cv_path_LD"
10891
if test -n "$LD"; then
10892
echo "$as_me:$LINENO: result: $LD" >&5
10893
echo "${ECHO_T}$LD" >&6
10895
echo "$as_me:$LINENO: result: no" >&5
10896
echo "${ECHO_T}no" >&6
10898
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10899
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10900
{ (exit 1); exit 1; }; }
10901
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10902
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10903
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10904
echo $ECHO_N "(cached) $ECHO_C" >&6
10906
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10907
case `$LD -v 2>&1 </dev/null` in
10908
*GNU* | *'with BFD'*)
10909
lt_cv_prog_gnu_ld=yes
10912
lt_cv_prog_gnu_ld=no
10916
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10917
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10918
with_gnu_ld=$lt_cv_prog_gnu_ld
10922
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10923
# archiving commands below assume that GNU ld is being used.
10924
if test "$with_gnu_ld" = yes; then
10925
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10926
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10928
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10929
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10931
# If archive_cmds runs LD, not CC, wlarc should be empty
10932
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10933
# investigate it a little bit more. (MM)
10936
# ancient GNU ld didn't support --whole-archive et. al.
10937
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10938
grep 'no-whole-archive' > /dev/null; then
10939
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10941
whole_archive_flag_spec_CXX=
10947
# A generic and very simple default shared library creation
10948
# command for GNU C++ for the case where it uses the native
10949
# linker, instead of GNU ld. If possible, this setting should
10950
# overridden to take advantage of the native linker features on
10951
# the platform it is being used on.
10952
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10955
# Commands to make compiler produce verbose output that lists
10956
# what "hidden" libraries, object files and flags are used when
10957
# linking a shared library.
10958
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10966
# PORTME: fill in a description of your system's C++ link characteristics
10967
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10968
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10972
# FIXME: insert proper C++ library support
10976
if test "$host_cpu" = ia64; then
10977
# On IA64, the linker does run time linking by default, so we don't
10978
# have to do anything special.
10979
aix_use_runtimelinking=no
10980
exp_sym_flag='-Bexport'
10983
aix_use_runtimelinking=no
10985
# Test if we are trying to use run time linking or normal
10986
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10987
# need to do runtime linking.
10988
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10989
for ld_flag in $LDFLAGS; do
10992
aix_use_runtimelinking=yes
10999
exp_sym_flag='-bexport'
11000
no_entry_flag='-bnoentry'
11003
# When large executables or shared objects are built, AIX ld can
11004
# have problems creating the table of contents. If linking a library
11005
# or program results in "error TOC overflow" add -mminimal-toc to
11006
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11007
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11009
archive_cmds_CXX=''
11010
hardcode_direct_CXX=yes
11011
hardcode_libdir_separator_CXX=':'
11012
link_all_deplibs_CXX=yes
11014
if test "$GXX" = yes; then
11015
case $host_os in aix4.012|aix4.012.*)
11016
# We only want to do this on AIX 4.2 and lower, the check
11017
# below for broken collect2 doesn't work under 4.3+
11018
collect2name=`${CC} -print-prog-name=collect2`
11019
if test -f "$collect2name" && \
11020
strings "$collect2name" | grep resolve_lib_name >/dev/null
11022
# We have reworked collect2
11023
hardcode_direct_CXX=yes
11025
# We have old collect2
11026
hardcode_direct_CXX=unsupported
11027
# It fails to find uninstalled libraries when the uninstalled
11028
# path is not listed in the libpath. Setting hardcode_minus_L
11029
# to unsupported forces relinking
11030
hardcode_minus_L_CXX=yes
11031
hardcode_libdir_flag_spec_CXX='-L$libdir'
11032
hardcode_libdir_separator_CXX=
11035
shared_flag='-shared'
11038
if test "$host_cpu" = ia64; then
11039
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11040
# chokes on -Wl,-G. The following line is correct:
11043
if test "$aix_use_runtimelinking" = yes; then
11044
shared_flag='${wl}-G'
11046
shared_flag='${wl}-bM:SRE'
11051
# It seems that -bexpall does not export symbols beginning with
11052
# underscore (_), so it is better to generate a list of symbols to export.
11053
always_export_symbols_CXX=yes
11054
if test "$aix_use_runtimelinking" = yes; then
11055
# Warning - without using the other runtime loading flags (-brtl),
11056
# -berok will link without error, but may produce a broken library.
11057
allow_undefined_flag_CXX='-berok'
11058
# Determine the default libpath from the value encoded in an empty executable.
11059
cat >conftest.$ac_ext <<_ACEOF
11062
cat confdefs.h >>conftest.$ac_ext
11063
cat >>conftest.$ac_ext <<_ACEOF
11064
/* end confdefs.h. */
11074
rm -f conftest.$ac_objext conftest$ac_exeext
11075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076
(eval $ac_link) 2>conftest.er1
11078
grep -v '^ *+' conftest.er1 >conftest.err
11080
cat conftest.err >&5
11081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082
(exit $ac_status); } &&
11083
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085
(eval $ac_try) 2>&5
11087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088
(exit $ac_status); }; } &&
11089
{ ac_try='test -s conftest$ac_exeext'
11090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091
(eval $ac_try) 2>&5
11093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094
(exit $ac_status); }; }; then
11096
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11098
# Check for a 64-bit object if we didn't find anything.
11099
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11102
echo "$as_me: failed program was:" >&5
11103
sed 's/^/| /' conftest.$ac_ext >&5
11106
rm -f conftest.err conftest.$ac_objext \
11107
conftest$ac_exeext conftest.$ac_ext
11108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11110
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11112
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11114
if test "$host_cpu" = ia64; then
11115
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11116
allow_undefined_flag_CXX="-z nodefs"
11117
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11119
# Determine the default libpath from the value encoded in an empty executable.
11120
cat >conftest.$ac_ext <<_ACEOF
11123
cat confdefs.h >>conftest.$ac_ext
11124
cat >>conftest.$ac_ext <<_ACEOF
11125
/* end confdefs.h. */
11135
rm -f conftest.$ac_objext conftest$ac_exeext
11136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11137
(eval $ac_link) 2>conftest.er1
11139
grep -v '^ *+' conftest.er1 >conftest.err
11141
cat conftest.err >&5
11142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143
(exit $ac_status); } &&
11144
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146
(eval $ac_try) 2>&5
11148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
(exit $ac_status); }; } &&
11150
{ ac_try='test -s conftest$ac_exeext'
11151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152
(eval $ac_try) 2>&5
11154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155
(exit $ac_status); }; }; then
11157
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11159
# Check for a 64-bit object if we didn't find anything.
11160
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11163
echo "$as_me: failed program was:" >&5
11164
sed 's/^/| /' conftest.$ac_ext >&5
11167
rm -f conftest.err conftest.$ac_objext \
11168
conftest$ac_exeext conftest.$ac_ext
11169
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11171
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172
# Warning - without using the other run time loading flags,
11173
# -berok will link without error, but may produce a broken library.
11174
no_undefined_flag_CXX=' ${wl}-bernotok'
11175
allow_undefined_flag_CXX=' ${wl}-berok'
11176
# -bexpall does not export symbols beginning with underscore (_)
11177
always_export_symbols_CXX=yes
11178
# Exported symbols can be pulled into shared objects from archives
11179
whole_archive_flag_spec_CXX=' '
11180
archive_cmds_need_lc_CXX=yes
11181
# This is similar to how AIX traditionally builds it's shared libraries.
11182
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11187
case $cc_basename in
11189
# FIXME: insert proper C++ library support
11195
cygwin* | mingw* | pw32*)
11196
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11197
# as there is no search path for DLLs.
11198
hardcode_libdir_flag_spec_CXX='-L$libdir'
11199
allow_undefined_flag_CXX=unsupported
11200
always_export_symbols_CXX=no
11201
enable_shared_with_static_runtimes_CXX=yes
11203
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11204
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11205
# If the export-symbols file already is a .def file (1st line
11206
# is EXPORTS), use it as is; otherwise, prepend...
11207
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11208
cp $export_symbols $output_objdir/$soname.def;
11210
echo EXPORTS > $output_objdir/$soname.def;
11211
cat $export_symbols >> $output_objdir/$soname.def;
11213
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11219
darwin* | rhapsody*)
11220
if test "$GXX" = yes; then
11221
archive_cmds_need_lc_CXX=no
11223
rhapsody* | darwin1.[012])
11224
allow_undefined_flag_CXX='-undefined suppress'
11227
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11228
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11230
case ${MACOSX_DEPLOYMENT_TARGET} in
11232
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11235
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11241
lt_int_apple_cc_single_mod=no
11242
output_verbose_link_cmd='echo'
11243
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11244
lt_int_apple_cc_single_mod=yes
11246
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11247
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11249
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11251
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11253
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11254
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11255
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11257
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11259
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11260
hardcode_direct_CXX=no
11261
hardcode_automatic_CXX=yes
11262
hardcode_shlibpath_var_CXX=unsupported
11263
whole_archive_flag_spec_CXX='-all_load $convenience'
11264
link_all_deplibs_CXX=yes
11271
case $cc_basename in
11273
# FIXME: insert proper C++ library support
11277
# Green Hills C++ Compiler
11278
# FIXME: insert proper C++ library support
11282
# FIXME: insert proper C++ library support
11288
# C++ shared libraries reported to be fairly broken before switch to ELF
11292
archive_cmds_need_lc_CXX=no
11294
freebsd* | kfreebsd*-gnu)
11295
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11302
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11303
hardcode_libdir_separator_CXX=:
11304
export_dynamic_flag_spec_CXX='${wl}-E'
11305
hardcode_direct_CXX=yes
11306
hardcode_minus_L_CXX=yes # Not in the search PATH,
11307
# but as the default
11308
# location of the library.
11310
case $cc_basename in
11312
# FIXME: insert proper C++ library support
11316
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11317
# Commands to make compiler produce verbose output that lists
11318
# what "hidden" libraries, object files and flags are used when
11319
# linking a shared library.
11321
# There doesn't appear to be a way to prevent this compiler from
11322
# explicitly linking system object files so we need to strip them
11323
# from the output so that they don't get included in the library
11325
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11328
if test "$GXX" = yes; then
11329
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11331
# FIXME: insert proper C++ library support
11338
if test $with_gnu_ld = no; then
11339
case "$host_cpu" in
11341
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11342
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11343
hardcode_libdir_separator_CXX=:
11346
hardcode_libdir_flag_spec_CXX='-L$libdir'
11349
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11350
hardcode_libdir_separator_CXX=:
11351
export_dynamic_flag_spec_CXX='${wl}-E'
11355
case "$host_cpu" in
11357
hardcode_direct_CXX=no
11358
hardcode_shlibpath_var_CXX=no
11361
hardcode_direct_CXX=no
11362
hardcode_shlibpath_var_CXX=no
11363
hardcode_minus_L_CXX=yes # Not in the search PATH,
11364
# but as the default
11365
# location of the library.
11368
hardcode_direct_CXX=yes
11369
hardcode_minus_L_CXX=yes # Not in the search PATH,
11370
# but as the default
11371
# location of the library.
11375
case $cc_basename in
11377
# FIXME: insert proper C++ library support
11381
case "$host_cpu" in
11383
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11386
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11389
# Commands to make compiler produce verbose output that lists
11390
# what "hidden" libraries, object files and flags are used when
11391
# linking a shared library.
11393
# There doesn't appear to be a way to prevent this compiler from
11394
# explicitly linking system object files so we need to strip them
11395
# from the output so that they don't get included in the library
11397
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11400
if test "$GXX" = yes; then
11401
if test $with_gnu_ld = no; then
11402
case "$host_cpu" in
11404
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11407
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11412
# FIXME: insert proper C++ library support
11419
case $cc_basename in
11422
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11424
# Archives containing C++ object files must be created using
11425
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11426
# necessary to make sure instantiated templates are included
11428
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11431
if test "$GXX" = yes; then
11432
if test "$with_gnu_ld" = no; then
11433
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11435
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11438
link_all_deplibs_CXX=yes
11441
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11442
hardcode_libdir_separator_CXX=:
11445
case $cc_basename in
11447
# Kuck and Associates, Inc. (KAI) C++ Compiler
11449
# KCC will only create a shared library if the output file
11450
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11451
# to its proper name (with version) after linking.
11452
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11453
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11454
# Commands to make compiler produce verbose output that lists
11455
# what "hidden" libraries, object files and flags are used when
11456
# linking a shared library.
11458
# There doesn't appear to be a way to prevent this compiler from
11459
# explicitly linking system object files so we need to strip them
11460
# from the output so that they don't get included in the library
11462
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11464
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11465
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11467
# Archives containing C++ object files must be created using
11468
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11469
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11474
archive_cmds_need_lc_CXX=no
11475
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11476
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11477
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11478
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11479
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11483
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11486
runpath_var=LD_RUN_PATH
11487
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11488
hardcode_libdir_separator_CXX=:
11490
# Commands to make compiler produce verbose output that lists
11491
# what "hidden" libraries, object files and flags are used when
11492
# linking a shared library.
11494
# There doesn't appear to be a way to prevent this compiler from
11495
# explicitly linking system object files so we need to strip them
11496
# from the output so that they don't get included in the library
11498
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11503
# FIXME: insert proper C++ library support
11507
# FIXME: insert proper C++ library support
11511
case $cc_basename in
11513
# FIXME: insert proper C++ library support
11517
# FIXME: insert proper C++ library support
11522
netbsd* | knetbsd*-gnu)
11523
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11524
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11526
hardcode_libdir_flag_spec_CXX='-R$libdir'
11527
hardcode_direct_CXX=yes
11528
hardcode_shlibpath_var_CXX=no
11530
# Workaround some broken pre-1.5 toolchains
11531
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11534
case $cc_basename in
11536
# Kuck and Associates, Inc. (KAI) C++ Compiler
11538
# KCC will only create a shared library if the output file
11539
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11540
# to its proper name (with version) after linking.
11541
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11543
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11544
hardcode_libdir_separator_CXX=:
11546
# Archives containing C++ object files must be created using
11547
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11548
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11552
# Rational C++ 2.4.1
11553
# FIXME: insert proper C++ library support
11557
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11558
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11560
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11561
hardcode_libdir_separator_CXX=:
11563
# Commands to make compiler produce verbose output that lists
11564
# what "hidden" libraries, object files and flags are used when
11565
# linking a shared library.
11567
# There doesn't appear to be a way to prevent this compiler from
11568
# explicitly linking system object files so we need to strip them
11569
# from the output so that they don't get included in the library
11571
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11574
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11575
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11576
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11578
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11579
hardcode_libdir_separator_CXX=:
11581
# Commands to make compiler produce verbose output that lists
11582
# what "hidden" libraries, object files and flags are used when
11583
# linking a shared library.
11584
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11587
# FIXME: insert proper C++ library support
11594
case $cc_basename in
11596
# Kuck and Associates, Inc. (KAI) C++ Compiler
11598
# KCC will only create a shared library if the output file
11599
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11600
# to its proper name (with version) after linking.
11601
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11603
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11604
hardcode_libdir_separator_CXX=:
11606
# Archives containing C++ object files must be created using
11607
# the KAI C++ compiler.
11608
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11611
# Rational C++ 2.4.1
11612
# FIXME: insert proper C++ library support
11616
allow_undefined_flag_CXX=' -expect_unresolved \*'
11617
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11618
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11619
echo "-hidden">> $lib.exp~
11620
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11623
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11624
hardcode_libdir_separator_CXX=:
11626
# Commands to make compiler produce verbose output that lists
11627
# what "hidden" libraries, object files and flags are used when
11628
# linking a shared library.
11630
# There doesn't appear to be a way to prevent this compiler from
11631
# explicitly linking system object files so we need to strip them
11632
# from the output so that they don't get included in the library
11634
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11637
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11638
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11639
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11641
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11642
hardcode_libdir_separator_CXX=:
11644
# Commands to make compiler produce verbose output that lists
11645
# what "hidden" libraries, object files and flags are used when
11646
# linking a shared library.
11647
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11650
# FIXME: insert proper C++ library support
11657
# FIXME: insert proper C++ library support
11661
archive_cmds_need_lc_CXX=no
11662
case $cc_basename in
11664
# FIXME: insert proper C++ library support
11668
# FIXME: insert proper C++ library support
11674
case $cc_basename in
11677
# FIXME: insert proper C++ library support
11682
# FIXME: insert proper C++ library support
11686
# FIXME: insert proper C++ library support
11692
case $cc_basename in
11694
# Sun C++ 4.2, 5.x and Centerline C++
11695
no_undefined_flag_CXX=' -zdefs'
11696
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11698
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11700
hardcode_libdir_flag_spec_CXX='-R$libdir'
11701
hardcode_shlibpath_var_CXX=no
11703
solaris2.0-5 | solaris2.0-5.*) ;;
11705
# The C++ compiler is used as linker so we must use $wl
11706
# flag to pass the commands to the underlying system
11708
# Supported since Solaris 2.6 (maybe 2.5.1?)
11709
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11712
link_all_deplibs_CXX=yes
11714
# Commands to make compiler produce verbose output that lists
11715
# what "hidden" libraries, object files and flags are used when
11716
# linking a shared library.
11718
# There doesn't appear to be a way to prevent this compiler from
11719
# explicitly linking system object files so we need to strip them
11720
# from the output so that they don't get included in the library
11722
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11724
# Archives containing C++ object files must be created using
11725
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11726
# necessary to make sure instantiated templates are included
11728
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11731
# Green Hills C++ Compiler
11732
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11734
# The C++ compiler must be used to create the archive.
11735
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11738
# GNU C++ compiler with Solaris linker
11739
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11740
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11741
if $CC --version | grep -v '^2\.7' > /dev/null; then
11742
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11743
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11744
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11746
# Commands to make compiler produce verbose output that lists
11747
# what "hidden" libraries, object files and flags are used when
11748
# linking a shared library.
11749
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11751
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11753
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11754
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11755
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11757
# Commands to make compiler produce verbose output that lists
11758
# what "hidden" libraries, object files and flags are used when
11759
# linking a shared library.
11760
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11763
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11768
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11769
archive_cmds_need_lc_CXX=no
11772
case $cc_basename in
11774
# NonStop-UX NCC 3.20
11775
# FIXME: insert proper C++ library support
11779
# FIXME: insert proper C++ library support
11785
# FIXME: insert proper C++ library support
11789
# FIXME: insert proper C++ library support
11793
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11794
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11795
test "$ld_shlibs_CXX" = no && can_build_shared=no
11801
cat > conftest.$ac_ext <<EOF
11805
Foo (void) { a = 0; }
11811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812
(eval $ac_compile) 2>&5
11814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815
(exit $ac_status); }; then
11816
# Parse the compiler output and extract the necessary
11817
# objects, libraries and library flags.
11819
# Sentinel used to keep track of whether or not we are before
11820
# the conftest object file.
11821
pre_test_object_deps_done=no
11823
# The `*' in the case matches for architectures that use `case' in
11824
# $output_verbose_cmd can trigger glob expansion during the loop
11825
# eval without this substitution.
11826
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11828
for p in `eval $output_verbose_link_cmd`; do
11832
# Some compilers place space between "-{L,R}" and the path.
11833
# Remove the space.
11834
if test $p = "-L" \
11835
|| test $p = "-R"; then
11842
if test "$pre_test_object_deps_done" = no; then
11845
# Internal compiler library paths should come after those
11846
# provided the user. The postdeps already come after the
11847
# user supplied libs so there is no need to process them.
11848
if test -z "$compiler_lib_search_path_CXX"; then
11849
compiler_lib_search_path_CXX="${prev}${p}"
11851
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11854
# The "-l" case would never come before the object being
11855
# linked, so don't bother handling this case.
11858
if test -z "$postdeps_CXX"; then
11859
postdeps_CXX="${prev}${p}"
11861
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11867
# This assumes that the test object file only shows up
11868
# once in the compiler output.
11869
if test "$p" = "conftest.$objext"; then
11870
pre_test_object_deps_done=yes
11874
if test "$pre_test_object_deps_done" = no; then
11875
if test -z "$predep_objects_CXX"; then
11876
predep_objects_CXX="$p"
11878
predep_objects_CXX="$predep_objects_CXX $p"
11881
if test -z "$postdep_objects_CXX"; then
11882
postdep_objects_CXX="$p"
11884
postdep_objects_CXX="$postdep_objects_CXX $p"
11889
*) ;; # Ignore the rest.
11897
echo "libtool.m4: error: problem compiling CXX test program"
11900
$rm -f confest.$objext
11902
case " $postdeps_CXX " in
11903
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11906
lt_prog_compiler_wl_CXX=
11907
lt_prog_compiler_pic_CXX=
11908
lt_prog_compiler_static_CXX=
11910
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11911
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11913
# C++ specific cases for pic, static, wl, etc.
11914
if test "$GXX" = yes; then
11915
lt_prog_compiler_wl_CXX='-Wl,'
11916
lt_prog_compiler_static_CXX='-static'
11920
# All AIX code is PIC.
11921
if test "$host_cpu" = ia64; then
11922
# AIX 5 now supports IA64 processor
11923
lt_prog_compiler_static_CXX='-Bstatic'
11927
# FIXME: we need at least 68020 code to build shared libraries, but
11928
# adding the `-m68020' flag to GCC prevents building anything better,
11930
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11932
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11933
# PIC is the default for these OSes.
11935
mingw* | os2* | pw32*)
11936
# This hack is so that the source file can tell whether it is being
11937
# built for inclusion in a dll (and should export symbols for example).
11938
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11940
darwin* | rhapsody*)
11941
# PIC is the default on this platform
11942
# Common symbols not allowed in MH_DYLIB files
11943
lt_prog_compiler_pic_CXX='-fno-common'
11946
# DJGPP does not support shared libraries at all
11947
lt_prog_compiler_pic_CXX=
11950
if test -d /usr/nec; then
11951
lt_prog_compiler_pic_CXX=-Kconform_pic
11955
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11956
# not for PA HP-UX.
11957
case "$host_cpu" in
11961
lt_prog_compiler_pic_CXX='-fPIC'
11966
lt_prog_compiler_pic_CXX='-fPIC'
11972
# All AIX code is PIC.
11973
if test "$host_cpu" = ia64; then
11974
# AIX 5 now supports IA64 processor
11975
lt_prog_compiler_static_CXX='-Bstatic'
11977
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11981
case $cc_basename in
11983
# Green Hills C++ Compiler
11984
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11989
case $cc_basename in
11991
lt_prog_compiler_pic_CXX='-KPIC'
11994
# Green Hills C++ Compiler
11995
lt_prog_compiler_pic_CXX='-pic'
12001
freebsd* | kfreebsd*-gnu)
12002
# FreeBSD uses GNU C++
12004
hpux9* | hpux10* | hpux11*)
12005
case $cc_basename in
12007
lt_prog_compiler_wl_CXX='-Wl,'
12008
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12009
if test "$host_cpu" != ia64; then
12010
lt_prog_compiler_pic_CXX='+Z'
12014
lt_prog_compiler_wl_CXX='-Wl,'
12015
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12016
case "$host_cpu" in
12021
lt_prog_compiler_pic_CXX='+Z'
12029
irix5* | irix6* | nonstopux*)
12030
case $cc_basename in
12032
lt_prog_compiler_wl_CXX='-Wl,'
12033
lt_prog_compiler_static_CXX='-non_shared'
12034
# CC pic flag -KPIC is the default.
12041
case $cc_basename in
12044
lt_prog_compiler_wl_CXX='--backend -Wl,'
12045
lt_prog_compiler_pic_CXX='-fPIC'
12049
lt_prog_compiler_wl_CXX='-Wl,'
12050
lt_prog_compiler_pic_CXX='-KPIC'
12051
lt_prog_compiler_static_CXX='-static'
12055
# Make sure the PIC flag is empty. It appears that all Alpha
12056
# Linux and Compaq Tru64 Unix objects are PIC.
12057
lt_prog_compiler_pic_CXX=
12058
lt_prog_compiler_static_CXX='-non_shared'
12069
case $cc_basename in
12071
lt_prog_compiler_pic_CXX='-W c,exportall'
12077
netbsd* | knetbsd*-gnu)
12079
osf3* | osf4* | osf5*)
12080
case $cc_basename in
12082
lt_prog_compiler_wl_CXX='--backend -Wl,'
12085
# Rational C++ 2.4.1
12086
lt_prog_compiler_pic_CXX='-pic'
12089
# Digital/Compaq C++
12090
lt_prog_compiler_wl_CXX='-Wl,'
12091
# Make sure the PIC flag is empty. It appears that all Alpha
12092
# Linux and Compaq Tru64 Unix objects are PIC.
12093
lt_prog_compiler_pic_CXX=
12094
lt_prog_compiler_static_CXX='-non_shared'
12103
case $cc_basename in
12105
lt_prog_compiler_pic_CXX='-fPIC'
12112
case $cc_basename in
12114
# Sun C++ 4.2, 5.x and Centerline C++
12115
lt_prog_compiler_pic_CXX='-KPIC'
12116
lt_prog_compiler_static_CXX='-Bstatic'
12117
lt_prog_compiler_wl_CXX='-Qoption ld '
12120
# Green Hills C++ Compiler
12121
lt_prog_compiler_pic_CXX='-PIC'
12128
case $cc_basename in
12131
lt_prog_compiler_pic_CXX='-pic'
12132
lt_prog_compiler_static_CXX='-Bstatic'
12136
lt_prog_compiler_pic_CXX='-pic'
12143
case $cc_basename in
12145
# NonStop-UX NCC 3.20
12146
lt_prog_compiler_pic_CXX='-KPIC'
12157
lt_prog_compiler_can_build_shared_CXX=no
12162
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12163
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12166
# Check to make sure the PIC flag actually works.
12168
if test -n "$lt_prog_compiler_pic_CXX"; then
12170
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12171
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12172
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12173
echo $ECHO_N "(cached) $ECHO_C" >&6
12175
lt_prog_compiler_pic_works_CXX=no
12176
ac_outfile=conftest.$ac_objext
12177
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12178
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12179
# Insert the option either (1) after the last *FLAGS variable, or
12180
# (2) before a word containing "conftest.", or (3) at the end.
12181
# Note that $ac_compile itself does not contain backslashes and begins
12182
# with a dollar sign (not a hyphen), so the echo should work correctly.
12183
# The option is referenced via a variable to avoid confusing sed.
12184
lt_compile=`echo "$ac_compile" | $SED \
12185
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12186
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12187
-e 's:$: $lt_compiler_flag:'`
12188
(eval echo "\"\$as_me:12188: $lt_compile\"" >&5)
12189
(eval "$lt_compile" 2>conftest.err)
12191
cat conftest.err >&5
12192
echo "$as_me:12192: \$? = $ac_status" >&5
12193
if (exit $ac_status) && test -s "$ac_outfile"; then
12194
# The compiler can only warn and ignore the option if not recognized
12195
# So say no if there are warnings
12196
if test ! -s conftest.err; then
12197
lt_prog_compiler_pic_works_CXX=yes
12203
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12204
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12206
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12207
case $lt_prog_compiler_pic_CXX in
12209
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12212
lt_prog_compiler_pic_CXX=
12213
lt_prog_compiler_can_build_shared_CXX=no
12218
# For platforms which do not support PIC, -DPIC is meaningless:
12220
lt_prog_compiler_pic_CXX=
12223
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12227
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12228
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12229
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12230
echo $ECHO_N "(cached) $ECHO_C" >&6
12232
lt_cv_prog_compiler_c_o_CXX=no
12233
$rm -r conftest 2>/dev/null
12237
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12239
lt_compiler_flag="-o out/conftest2.$ac_objext"
12240
# Insert the option either (1) after the last *FLAGS variable, or
12241
# (2) before a word containing "conftest.", or (3) at the end.
12242
# Note that $ac_compile itself does not contain backslashes and begins
12243
# with a dollar sign (not a hyphen), so the echo should work correctly.
12244
lt_compile=`echo "$ac_compile" | $SED \
12245
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12246
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12247
-e 's:$: $lt_compiler_flag:'`
12248
(eval echo "\"\$as_me:12248: $lt_compile\"" >&5)
12249
(eval "$lt_compile" 2>out/conftest.err)
12251
cat out/conftest.err >&5
12252
echo "$as_me:12252: \$? = $ac_status" >&5
12253
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12255
# The compiler can only warn and ignore the option if not recognized
12256
# So say no if there are warnings
12257
if test ! -s out/conftest.err; then
12258
lt_cv_prog_compiler_c_o_CXX=yes
12263
# SGI C++ compiler will create directory out/ii_files/ for
12264
# template instantiation
12265
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12266
$rm out/* && rmdir out
12272
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12273
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12276
hard_links="nottested"
12277
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12278
# do not overwrite the value of need_locks provided by the user
12279
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12280
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12283
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12285
ln conftest.a conftest.b 2>&5 || hard_links=no
12286
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12287
echo "$as_me:$LINENO: result: $hard_links" >&5
12288
echo "${ECHO_T}$hard_links" >&6
12289
if test "$hard_links" = no; then
12290
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12291
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12298
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12299
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12301
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12304
# If we're using GNU nm, then we don't want the "-C" option.
12305
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12306
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12307
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12309
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12313
export_symbols_cmds_CXX="$ltdll_cmds"
12316
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12319
link_all_deplibs_CXX=no
12322
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12326
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12327
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12328
test "$ld_shlibs_CXX" = no && can_build_shared=no
12330
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12331
if test "$GCC" = yes; then
12332
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12336
# Do we need to explicitly link libc?
12338
case "x$archive_cmds_need_lc_CXX" in
12340
# Assume -lc should be added
12341
archive_cmds_need_lc_CXX=yes
12343
if test "$enable_shared" = yes && test "$GCC" = yes; then
12344
case $archive_cmds_CXX in
12346
# FIXME: we may have to deal with multi-command sequences.
12349
# Test whether the compiler implicitly links with -lc since on some
12350
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12351
# to ld, don't add -lc before -lgcc.
12352
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12353
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12355
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358
(eval $ac_compile) 2>&5
12360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361
(exit $ac_status); } 2>conftest.err; then
12364
libobjs=conftest.$ac_objext
12366
wl=$lt_prog_compiler_wl_CXX
12372
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12373
allow_undefined_flag_CXX=
12374
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12375
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378
(exit $ac_status); }
12380
archive_cmds_need_lc_CXX=no
12382
archive_cmds_need_lc_CXX=yes
12384
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12386
cat conftest.err 1>&5
12389
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12390
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12397
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12398
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12399
library_names_spec=
12400
libname_spec='lib$name'
12404
postuninstall_cmds=
12408
shlibpath_overrides_runpath=unknown
12410
dynamic_linker="$host_os ld.so"
12411
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12412
if test "$GCC" = yes; then
12413
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12414
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12415
# if the path contains ";" then we assume it to be the separator
12416
# otherwise default to the standard path separator (i.e. ":") - it is
12417
# assumed that no part of a normal pathname contains ";" but that should
12418
# okay in the real world where ";" in dirpaths is itself problematic.
12419
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12421
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12424
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12426
need_lib_prefix=unknown
12427
hardcode_into_libs=no
12429
# when you set need_version to no, make sure it does not cause -set_version
12430
# flags to be left without arguments
12431
need_version=unknown
12436
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12437
shlibpath_var=LIBPATH
12439
# AIX 3 has no versioning support, so we append a major version to the name.
12440
soname_spec='${libname}${release}${shared_ext}$major'
12447
hardcode_into_libs=yes
12448
if test "$host_cpu" = ia64; then
12449
# AIX 5 supports IA64
12450
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12451
shlibpath_var=LD_LIBRARY_PATH
12453
# With GCC up to 2.95.x, collect2 would create an import file
12454
# for dependence libraries. The import file would start with
12455
# the line `#! .'. This would cause the generated library to
12456
# depend on `.', always an invalid library. This was fixed in
12457
# development snapshots of GCC prior to 3.0.
12459
aix4 | aix4.[01] | aix4.[01].*)
12460
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12462
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12465
can_build_shared=no
12469
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12470
# soname into executable. Probably we can add versioning support to
12471
# collect2, so additional links can be useful in future.
12472
if test "$aix_use_runtimelinking" = yes; then
12473
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12474
# instead of lib<name>.a to let people know that these are not
12475
# typical AIX shared libraries.
12476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12478
# We preserve .a as extension for shared libraries through AIX4.2
12479
# and later when we are not doing run time linking.
12480
library_names_spec='${libname}${release}.a $libname.a'
12481
soname_spec='${libname}${release}${shared_ext}$major'
12483
shlibpath_var=LIBPATH
12488
library_names_spec='$libname.ixlibrary $libname.a'
12489
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12490
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12494
library_names_spec='${libname}${shared_ext}'
12495
dynamic_linker="$host_os ld.so"
12496
shlibpath_var=LIBRARY_PATH
12502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12503
soname_spec='${libname}${release}${shared_ext}$major'
12504
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12505
shlibpath_var=LD_LIBRARY_PATH
12506
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12507
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12508
# the default ld.so.conf also contains /usr/contrib/lib and
12509
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12510
# libtool to hard-code these into programs
12513
cygwin* | mingw* | pw32*)
12514
version_type=windows
12519
case $GCC,$host_os in
12520
yes,cygwin* | yes,mingw* | yes,pw32*)
12521
library_names_spec='$libname.dll.a'
12522
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12523
postinstall_cmds='base_file=`basename \${file}`~
12524
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12525
dldir=$destdir/`dirname \$dlpath`~
12526
test -d \$dldir || mkdir -p \$dldir~
12527
$install_prog $dir/$dlname \$dldir/$dlname'
12528
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12529
dlpath=$dir/\$dldll~
12531
shlibpath_overrides_runpath=yes
12535
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12536
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12537
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12540
# MinGW DLLs use traditional 'lib' prefix
12541
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12542
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12543
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12544
# It is most probably a Windows format PATH printed by
12545
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12546
# path with ; separators, and with drive letters. We can handle the
12547
# drive letters (cygwin fileutils understands them), so leave them,
12548
# especially as we might pass files found there to a mingw objdump,
12549
# which wouldn't understand a cygwinified path. Ahh.
12550
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12552
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12556
# pw32 DLLs use 'pw' prefix rather than 'lib'
12557
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12563
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12566
dynamic_linker='Win32 ld.exe'
12567
# FIXME: first we should search . and the directory the executable is in
12571
darwin* | rhapsody*)
12572
dynamic_linker="$host_os dyld"
12573
version_type=darwin
12576
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12577
soname_spec='${libname}${release}${major}$shared_ext'
12578
shlibpath_overrides_runpath=yes
12579
shlibpath_var=DYLD_LIBRARY_PATH
12580
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12581
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12582
if test "$GCC" = yes; then
12583
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12585
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12587
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12595
soname_spec='${libname}${release}${shared_ext}$major'
12596
shlibpath_var=LD_LIBRARY_PATH
12607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12608
soname_spec='${libname}${release}${shared_ext}$major'
12609
shlibpath_var=LD_LIBRARY_PATH
12610
shlibpath_overrides_runpath=no
12611
hardcode_into_libs=yes
12612
dynamic_linker='GNU ld.so'
12616
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12617
version_type=freebsd-$objformat
12618
case $version_type in
12620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12625
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12629
shlibpath_var=LD_LIBRARY_PATH
12632
shlibpath_overrides_runpath=yes
12634
freebsd3.01* | freebsdelf3.01*)
12635
shlibpath_overrides_runpath=yes
12636
hardcode_into_libs=yes
12639
shlibpath_overrides_runpath=no
12640
hardcode_into_libs=yes
12649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12650
soname_spec='${libname}${release}${shared_ext}$major'
12651
shlibpath_var=LD_LIBRARY_PATH
12652
hardcode_into_libs=yes
12655
hpux9* | hpux10* | hpux11*)
12656
# Give a soname corresponding to the major version so that dld.sl refuses to
12657
# link against other versions.
12661
case "$host_cpu" in
12664
hardcode_into_libs=yes
12665
dynamic_linker="$host_os dld.so"
12666
shlibpath_var=LD_LIBRARY_PATH
12667
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669
soname_spec='${libname}${release}${shared_ext}$major'
12670
if test "X$HPUX_IA64_MODE" = X32; then
12671
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12673
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12675
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12679
hardcode_into_libs=yes
12680
dynamic_linker="$host_os dld.sl"
12681
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12682
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12684
soname_spec='${libname}${release}${shared_ext}$major'
12685
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12686
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12690
dynamic_linker="$host_os dld.sl"
12691
shlibpath_var=SHLIB_PATH
12692
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12693
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12694
soname_spec='${libname}${release}${shared_ext}$major'
12697
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12698
postinstall_cmds='chmod 555 $lib'
12701
irix5* | irix6* | nonstopux*)
12703
nonstopux*) version_type=nonstopux ;;
12705
if test "$lt_cv_prog_gnu_ld" = yes; then
12713
soname_spec='${libname}${release}${shared_ext}$major'
12714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12716
irix5* | nonstopux*)
12717
libsuff= shlibsuff=
12720
case $LD in # libtool.m4 will add one of these switches to LD
12721
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12722
libsuff= shlibsuff= libmagic=32-bit;;
12723
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12724
libsuff=32 shlibsuff=N32 libmagic=N32;;
12725
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12726
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12727
*) libsuff= shlibsuff= libmagic=never-match;;
12731
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12732
shlibpath_overrides_runpath=no
12733
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12734
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12735
hardcode_into_libs=yes
12738
# No shared lib support for Linux oldld, aout, or coff.
12739
linux*oldld* | linux*aout* | linux*coff*)
12743
# This must be Linux ELF.
12748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749
soname_spec='${libname}${release}${shared_ext}$major'
12750
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12751
shlibpath_var=LD_LIBRARY_PATH
12752
shlibpath_overrides_runpath=no
12753
# This implies no fast_install, which is unacceptable.
12754
# Some rework will be needed to allow for fast_install
12755
# before this can be enabled.
12756
hardcode_into_libs=yes
12758
# Append ld.so.conf contents to the search path
12759
if test -f /etc/ld.so.conf; then
12760
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12761
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12764
# We used to test for /lib/ld.so.1 and disable shared libraries on
12765
# powerpc, because MkLinux only supported shared libraries with the
12766
# GNU dynamic linker. Since this was broken with cross compilers,
12767
# most powerpc-linux boxes support dynamic linking these days and
12768
# people can always --disable-shared, the test was removed, and we
12769
# assume the GNU/Linux dynamic linker is in use.
12770
dynamic_linker='GNU/Linux ld.so'
12777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778
soname_spec='${libname}${release}${shared_ext}$major'
12779
shlibpath_var=LD_LIBRARY_PATH
12780
shlibpath_overrides_runpath=no
12781
hardcode_into_libs=yes
12782
dynamic_linker='GNU ld.so'
12789
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12791
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12792
dynamic_linker='NetBSD (a.out) ld.so'
12794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12795
soname_spec='${libname}${release}${shared_ext}$major'
12796
dynamic_linker='NetBSD ld.elf_so'
12798
shlibpath_var=LD_LIBRARY_PATH
12799
shlibpath_overrides_runpath=yes
12800
hardcode_into_libs=yes
12805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806
shlibpath_var=LD_LIBRARY_PATH
12807
shlibpath_overrides_runpath=yes
12814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815
soname_spec='${libname}${release}${shared_ext}$major'
12816
shlibpath_var=LD_LIBRARY_PATH
12817
shlibpath_overrides_runpath=yes
12824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12825
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12826
shlibpath_var=LD_LIBRARY_PATH
12827
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12829
openbsd2.[89] | openbsd2.[89].*)
12830
shlibpath_overrides_runpath=no
12833
shlibpath_overrides_runpath=yes
12837
shlibpath_overrides_runpath=yes
12842
libname_spec='$name'
12845
library_names_spec='$libname${shared_ext} $libname.a'
12846
dynamic_linker='OS/2 ld.exe'
12847
shlibpath_var=LIBPATH
12850
osf3* | osf4* | osf5*)
12854
soname_spec='${libname}${release}${shared_ext}$major'
12855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856
shlibpath_var=LD_LIBRARY_PATH
12857
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12858
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12863
soname_spec='${libname}${release}${shared_ext}$major'
12864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12865
shlibpath_var=LD_LIBRARY_PATH
12872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873
soname_spec='${libname}${release}${shared_ext}$major'
12874
shlibpath_var=LD_LIBRARY_PATH
12875
shlibpath_overrides_runpath=yes
12876
hardcode_into_libs=yes
12877
# ldd complains unless libraries are executable
12878
postinstall_cmds='chmod +x $lib'
12883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12884
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12885
shlibpath_var=LD_LIBRARY_PATH
12886
shlibpath_overrides_runpath=yes
12887
if test "$with_gnu_ld" = yes; then
12893
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896
soname_spec='${libname}${release}${shared_ext}$major'
12897
shlibpath_var=LD_LIBRARY_PATH
12898
case $host_vendor in
12900
shlibpath_overrides_runpath=no
12902
export_dynamic_flag_spec='${wl}-Blargedynsym'
12903
runpath_var=LD_RUN_PATH
12911
shlibpath_overrides_runpath=no
12912
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12918
if test -d /usr/nec ;then
12920
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12921
soname_spec='$libname${shared_ext}.$major'
12922
shlibpath_var=LD_LIBRARY_PATH
12928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12929
soname_spec='${libname}${release}${shared_ext}$major'
12930
shlibpath_var=LD_LIBRARY_PATH
12937
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12938
echo "${ECHO_T}$dynamic_linker" >&6
12939
test "$dynamic_linker" = no && can_build_shared=no
12941
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12942
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12943
hardcode_action_CXX=
12944
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12945
test -n "$runpath_var CXX" || \
12946
test "X$hardcode_automatic_CXX"="Xyes" ; then
12948
# We can hardcode non-existant directories.
12949
if test "$hardcode_direct_CXX" != no &&
12950
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12951
# have to relink, otherwise we might link with an installed library
12952
# when we should be linking with a yet-to-be-installed one
12953
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12954
test "$hardcode_minus_L_CXX" != no; then
12955
# Linking always hardcodes the temporary library directory.
12956
hardcode_action_CXX=relink
12958
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12959
hardcode_action_CXX=immediate
12962
# We cannot hardcode anything, or else we can only hardcode existing
12964
hardcode_action_CXX=unsupported
12966
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12967
echo "${ECHO_T}$hardcode_action_CXX" >&6
12969
if test "$hardcode_action_CXX" = relink; then
12970
# Fast installation is not supported
12971
enable_fast_install=no
12972
elif test "$shlibpath_overrides_runpath" = yes ||
12973
test "$enable_shared" = no; then
12974
# Fast installation is not necessary
12975
enable_fast_install=needless
12980
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12981
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12982
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12983
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12984
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12985
echo "$as_me:$LINENO: result: yes" >&5
12986
echo "${ECHO_T}yes" >&6
12988
# FIXME - insert some real tests, host_os isn't really good enough
12991
if test -n "$STRIP" ; then
12992
striplib="$STRIP -x"
12993
echo "$as_me:$LINENO: result: yes" >&5
12994
echo "${ECHO_T}yes" >&6
12996
echo "$as_me:$LINENO: result: no" >&5
12997
echo "${ECHO_T}no" >&6
13001
echo "$as_me:$LINENO: result: no" >&5
13002
echo "${ECHO_T}no" >&6
13007
if test "x$enable_dlopen" != xyes; then
13008
enable_dlopen=unknown
13009
enable_dlopen_self=unknown
13010
enable_dlopen_self_static=unknown
13017
lt_cv_dlopen="load_add_on"
13019
lt_cv_dlopen_self=yes
13023
lt_cv_dlopen="LoadLibrary"
13028
lt_cv_dlopen="dlopen"
13033
# if libdl is installed we need to link against it
13034
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13035
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13036
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13037
echo $ECHO_N "(cached) $ECHO_C" >&6
13039
ac_check_lib_save_LIBS=$LIBS
13041
cat >conftest.$ac_ext <<_ACEOF
13044
cat confdefs.h >>conftest.$ac_ext
13045
cat >>conftest.$ac_ext <<_ACEOF
13046
/* end confdefs.h. */
13048
/* Override any gcc2 internal prototype to avoid an error. */
13052
/* We use char because int might match the return type of a gcc2
13053
builtin and then its argument prototype would still apply. */
13063
rm -f conftest.$ac_objext conftest$ac_exeext
13064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065
(eval $ac_link) 2>conftest.er1
13067
grep -v '^ *+' conftest.er1 >conftest.err
13069
cat conftest.err >&5
13070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071
(exit $ac_status); } &&
13072
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074
(eval $ac_try) 2>&5
13076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077
(exit $ac_status); }; } &&
13078
{ ac_try='test -s conftest$ac_exeext'
13079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080
(eval $ac_try) 2>&5
13082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083
(exit $ac_status); }; }; then
13084
ac_cv_lib_dl_dlopen=yes
13086
echo "$as_me: failed program was:" >&5
13087
sed 's/^/| /' conftest.$ac_ext >&5
13089
ac_cv_lib_dl_dlopen=no
13091
rm -f conftest.err conftest.$ac_objext \
13092
conftest$ac_exeext conftest.$ac_ext
13093
LIBS=$ac_check_lib_save_LIBS
13095
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13096
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13097
if test $ac_cv_lib_dl_dlopen = yes; then
13098
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13101
lt_cv_dlopen="dyld"
13103
lt_cv_dlopen_self=yes
13110
echo "$as_me:$LINENO: checking for shl_load" >&5
13111
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13112
if test "${ac_cv_func_shl_load+set}" = set; then
13113
echo $ECHO_N "(cached) $ECHO_C" >&6
13115
cat >conftest.$ac_ext <<_ACEOF
13118
cat confdefs.h >>conftest.$ac_ext
13119
cat >>conftest.$ac_ext <<_ACEOF
13120
/* end confdefs.h. */
13121
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13122
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13123
#define shl_load innocuous_shl_load
13125
/* System header to define __stub macros and hopefully few prototypes,
13126
which can conflict with char shl_load (); below.
13127
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13128
<limits.h> exists even on freestanding compilers. */
13131
# include <limits.h>
13133
# include <assert.h>
13138
/* Override any gcc2 internal prototype to avoid an error. */
13143
/* We use char because int might match the return type of a gcc2
13144
builtin and then its argument prototype would still apply. */
13146
/* The GNU C library defines this for functions which it implements
13147
to always fail with ENOSYS. Some functions are actually named
13148
something starting with __ and the normal name is an alias. */
13149
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13152
char (*f) () = shl_load;
13161
return f != shl_load;
13166
rm -f conftest.$ac_objext conftest$ac_exeext
13167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168
(eval $ac_link) 2>conftest.er1
13170
grep -v '^ *+' conftest.er1 >conftest.err
13172
cat conftest.err >&5
13173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174
(exit $ac_status); } &&
13175
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177
(eval $ac_try) 2>&5
13179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180
(exit $ac_status); }; } &&
13181
{ ac_try='test -s conftest$ac_exeext'
13182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183
(eval $ac_try) 2>&5
13185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186
(exit $ac_status); }; }; then
13187
ac_cv_func_shl_load=yes
13189
echo "$as_me: failed program was:" >&5
13190
sed 's/^/| /' conftest.$ac_ext >&5
13192
ac_cv_func_shl_load=no
13194
rm -f conftest.err conftest.$ac_objext \
13195
conftest$ac_exeext conftest.$ac_ext
13197
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13198
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13199
if test $ac_cv_func_shl_load = yes; then
13200
lt_cv_dlopen="shl_load"
13202
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13203
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13204
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13205
echo $ECHO_N "(cached) $ECHO_C" >&6
13207
ac_check_lib_save_LIBS=$LIBS
13209
cat >conftest.$ac_ext <<_ACEOF
13212
cat confdefs.h >>conftest.$ac_ext
13213
cat >>conftest.$ac_ext <<_ACEOF
13214
/* end confdefs.h. */
13216
/* Override any gcc2 internal prototype to avoid an error. */
13220
/* We use char because int might match the return type of a gcc2
13221
builtin and then its argument prototype would still apply. */
13231
rm -f conftest.$ac_objext conftest$ac_exeext
13232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13233
(eval $ac_link) 2>conftest.er1
13235
grep -v '^ *+' conftest.er1 >conftest.err
13237
cat conftest.err >&5
13238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239
(exit $ac_status); } &&
13240
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242
(eval $ac_try) 2>&5
13244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245
(exit $ac_status); }; } &&
13246
{ ac_try='test -s conftest$ac_exeext'
13247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248
(eval $ac_try) 2>&5
13250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251
(exit $ac_status); }; }; then
13252
ac_cv_lib_dld_shl_load=yes
13254
echo "$as_me: failed program was:" >&5
13255
sed 's/^/| /' conftest.$ac_ext >&5
13257
ac_cv_lib_dld_shl_load=no
13259
rm -f conftest.err conftest.$ac_objext \
13260
conftest$ac_exeext conftest.$ac_ext
13261
LIBS=$ac_check_lib_save_LIBS
13263
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13264
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13265
if test $ac_cv_lib_dld_shl_load = yes; then
13266
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13268
echo "$as_me:$LINENO: checking for dlopen" >&5
13269
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13270
if test "${ac_cv_func_dlopen+set}" = set; then
13271
echo $ECHO_N "(cached) $ECHO_C" >&6
13273
cat >conftest.$ac_ext <<_ACEOF
13276
cat confdefs.h >>conftest.$ac_ext
13277
cat >>conftest.$ac_ext <<_ACEOF
13278
/* end confdefs.h. */
13279
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13280
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13281
#define dlopen innocuous_dlopen
13283
/* System header to define __stub macros and hopefully few prototypes,
13284
which can conflict with char dlopen (); below.
13285
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13286
<limits.h> exists even on freestanding compilers. */
13289
# include <limits.h>
13291
# include <assert.h>
13296
/* Override any gcc2 internal prototype to avoid an error. */
13301
/* We use char because int might match the return type of a gcc2
13302
builtin and then its argument prototype would still apply. */
13304
/* The GNU C library defines this for functions which it implements
13305
to always fail with ENOSYS. Some functions are actually named
13306
something starting with __ and the normal name is an alias. */
13307
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13310
char (*f) () = dlopen;
13319
return f != dlopen;
13324
rm -f conftest.$ac_objext conftest$ac_exeext
13325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13326
(eval $ac_link) 2>conftest.er1
13328
grep -v '^ *+' conftest.er1 >conftest.err
13330
cat conftest.err >&5
13331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332
(exit $ac_status); } &&
13333
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335
(eval $ac_try) 2>&5
13337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338
(exit $ac_status); }; } &&
13339
{ ac_try='test -s conftest$ac_exeext'
13340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341
(eval $ac_try) 2>&5
13343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344
(exit $ac_status); }; }; then
13345
ac_cv_func_dlopen=yes
13347
echo "$as_me: failed program was:" >&5
13348
sed 's/^/| /' conftest.$ac_ext >&5
13350
ac_cv_func_dlopen=no
13352
rm -f conftest.err conftest.$ac_objext \
13353
conftest$ac_exeext conftest.$ac_ext
13355
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13356
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13357
if test $ac_cv_func_dlopen = yes; then
13358
lt_cv_dlopen="dlopen"
13360
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13361
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13362
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13363
echo $ECHO_N "(cached) $ECHO_C" >&6
13365
ac_check_lib_save_LIBS=$LIBS
13367
cat >conftest.$ac_ext <<_ACEOF
13370
cat confdefs.h >>conftest.$ac_ext
13371
cat >>conftest.$ac_ext <<_ACEOF
13372
/* end confdefs.h. */
13374
/* Override any gcc2 internal prototype to avoid an error. */
13378
/* We use char because int might match the return type of a gcc2
13379
builtin and then its argument prototype would still apply. */
13389
rm -f conftest.$ac_objext conftest$ac_exeext
13390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391
(eval $ac_link) 2>conftest.er1
13393
grep -v '^ *+' conftest.er1 >conftest.err
13395
cat conftest.err >&5
13396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397
(exit $ac_status); } &&
13398
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400
(eval $ac_try) 2>&5
13402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403
(exit $ac_status); }; } &&
13404
{ ac_try='test -s conftest$ac_exeext'
13405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406
(eval $ac_try) 2>&5
13408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409
(exit $ac_status); }; }; then
13410
ac_cv_lib_dl_dlopen=yes
13412
echo "$as_me: failed program was:" >&5
13413
sed 's/^/| /' conftest.$ac_ext >&5
13415
ac_cv_lib_dl_dlopen=no
13417
rm -f conftest.err conftest.$ac_objext \
13418
conftest$ac_exeext conftest.$ac_ext
13419
LIBS=$ac_check_lib_save_LIBS
13421
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13422
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13423
if test $ac_cv_lib_dl_dlopen = yes; then
13424
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13426
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13427
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13428
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13429
echo $ECHO_N "(cached) $ECHO_C" >&6
13431
ac_check_lib_save_LIBS=$LIBS
13432
LIBS="-lsvld $LIBS"
13433
cat >conftest.$ac_ext <<_ACEOF
13436
cat confdefs.h >>conftest.$ac_ext
13437
cat >>conftest.$ac_ext <<_ACEOF
13438
/* end confdefs.h. */
13440
/* Override any gcc2 internal prototype to avoid an error. */
13444
/* We use char because int might match the return type of a gcc2
13445
builtin and then its argument prototype would still apply. */
13455
rm -f conftest.$ac_objext conftest$ac_exeext
13456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457
(eval $ac_link) 2>conftest.er1
13459
grep -v '^ *+' conftest.er1 >conftest.err
13461
cat conftest.err >&5
13462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463
(exit $ac_status); } &&
13464
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466
(eval $ac_try) 2>&5
13468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469
(exit $ac_status); }; } &&
13470
{ ac_try='test -s conftest$ac_exeext'
13471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472
(eval $ac_try) 2>&5
13474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475
(exit $ac_status); }; }; then
13476
ac_cv_lib_svld_dlopen=yes
13478
echo "$as_me: failed program was:" >&5
13479
sed 's/^/| /' conftest.$ac_ext >&5
13481
ac_cv_lib_svld_dlopen=no
13483
rm -f conftest.err conftest.$ac_objext \
13484
conftest$ac_exeext conftest.$ac_ext
13485
LIBS=$ac_check_lib_save_LIBS
13487
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13488
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13489
if test $ac_cv_lib_svld_dlopen = yes; then
13490
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13492
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13493
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13494
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13495
echo $ECHO_N "(cached) $ECHO_C" >&6
13497
ac_check_lib_save_LIBS=$LIBS
13499
cat >conftest.$ac_ext <<_ACEOF
13502
cat confdefs.h >>conftest.$ac_ext
13503
cat >>conftest.$ac_ext <<_ACEOF
13504
/* end confdefs.h. */
13506
/* Override any gcc2 internal prototype to avoid an error. */
13510
/* We use char because int might match the return type of a gcc2
13511
builtin and then its argument prototype would still apply. */
13521
rm -f conftest.$ac_objext conftest$ac_exeext
13522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523
(eval $ac_link) 2>conftest.er1
13525
grep -v '^ *+' conftest.er1 >conftest.err
13527
cat conftest.err >&5
13528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529
(exit $ac_status); } &&
13530
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13531
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532
(eval $ac_try) 2>&5
13534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535
(exit $ac_status); }; } &&
13536
{ ac_try='test -s conftest$ac_exeext'
13537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538
(eval $ac_try) 2>&5
13540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541
(exit $ac_status); }; }; then
13542
ac_cv_lib_dld_dld_link=yes
13544
echo "$as_me: failed program was:" >&5
13545
sed 's/^/| /' conftest.$ac_ext >&5
13547
ac_cv_lib_dld_dld_link=no
13549
rm -f conftest.err conftest.$ac_objext \
13550
conftest$ac_exeext conftest.$ac_ext
13551
LIBS=$ac_check_lib_save_LIBS
13553
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13554
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13555
if test $ac_cv_lib_dld_dld_link = yes; then
13556
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13577
if test "x$lt_cv_dlopen" != xno; then
13583
case $lt_cv_dlopen in
13585
save_CPPFLAGS="$CPPFLAGS"
13586
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13588
save_LDFLAGS="$LDFLAGS"
13589
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13592
LIBS="$lt_cv_dlopen_libs $LIBS"
13594
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13595
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13596
if test "${lt_cv_dlopen_self+set}" = set; then
13597
echo $ECHO_N "(cached) $ECHO_C" >&6
13599
if test "$cross_compiling" = yes; then :
13600
lt_cv_dlopen_self=cross
13602
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13603
lt_status=$lt_dlunknown
13604
cat > conftest.$ac_ext <<EOF
13605
#line 13605 "configure"
13606
#include "confdefs.h"
13615
# define LT_DLGLOBAL RTLD_GLOBAL
13618
# define LT_DLGLOBAL DL_GLOBAL
13620
# define LT_DLGLOBAL 0
13624
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13625
find out it does not work in some platform. */
13626
#ifndef LT_DLLAZY_OR_NOW
13628
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13631
# define LT_DLLAZY_OR_NOW DL_LAZY
13634
# define LT_DLLAZY_OR_NOW RTLD_NOW
13637
# define LT_DLLAZY_OR_NOW DL_NOW
13639
# define LT_DLLAZY_OR_NOW 0
13647
extern "C" void exit (int);
13650
void fnord() { int i=42;}
13653
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13654
int status = $lt_dlunknown;
13658
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13659
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13660
/* dlclose (self); */
13666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667
(eval $ac_link) 2>&5
13669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13671
(./conftest; exit; ) 2>/dev/null
13673
case x$lt_status in
13674
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13675
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13676
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13679
# compilation failed
13680
lt_cv_dlopen_self=no
13687
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13688
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13690
if test "x$lt_cv_dlopen_self" = xyes; then
13691
LDFLAGS="$LDFLAGS $link_static_flag"
13692
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13693
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13694
if test "${lt_cv_dlopen_self_static+set}" = set; then
13695
echo $ECHO_N "(cached) $ECHO_C" >&6
13697
if test "$cross_compiling" = yes; then :
13698
lt_cv_dlopen_self_static=cross
13700
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13701
lt_status=$lt_dlunknown
13702
cat > conftest.$ac_ext <<EOF
13703
#line 13703 "configure"
13704
#include "confdefs.h"
13713
# define LT_DLGLOBAL RTLD_GLOBAL
13716
# define LT_DLGLOBAL DL_GLOBAL
13718
# define LT_DLGLOBAL 0
13722
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13723
find out it does not work in some platform. */
13724
#ifndef LT_DLLAZY_OR_NOW
13726
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13729
# define LT_DLLAZY_OR_NOW DL_LAZY
13732
# define LT_DLLAZY_OR_NOW RTLD_NOW
13735
# define LT_DLLAZY_OR_NOW DL_NOW
13737
# define LT_DLLAZY_OR_NOW 0
13745
extern "C" void exit (int);
13748
void fnord() { int i=42;}
13751
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13752
int status = $lt_dlunknown;
13756
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13757
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13758
/* dlclose (self); */
13764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765
(eval $ac_link) 2>&5
13767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13769
(./conftest; exit; ) 2>/dev/null
13771
case x$lt_status in
13772
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13773
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13774
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13777
# compilation failed
13778
lt_cv_dlopen_self_static=no
13785
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13786
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13789
CPPFLAGS="$save_CPPFLAGS"
13790
LDFLAGS="$save_LDFLAGS"
13795
case $lt_cv_dlopen_self in
13796
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13797
*) enable_dlopen_self=unknown ;;
13800
case $lt_cv_dlopen_self_static in
13801
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13802
*) enable_dlopen_self_static=unknown ;;
13807
# The else clause should only fire when bootstrapping the
13808
# libtool distribution, otherwise you forgot to ship ltmain.sh
13809
# with your package, and you will get complaints that there are
13810
# no rules to generate ltmain.sh.
13811
if test -f "$ltmain"; then
13812
# See if we are running on zsh, and set the options which allow our commands through
13813
# without removal of \ escapes.
13814
if test -n "${ZSH_VERSION+set}" ; then
13815
setopt NO_GLOB_SUBST
13817
# Now quote all the things that may contain metacharacters while being
13818
# careful not to overquote the AC_SUBSTed values. We take copies of the
13819
# variables and quote the copies for generation of the libtool script.
13820
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13822
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13823
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13824
deplibs_check_method reload_flag reload_cmds need_locks \
13825
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13826
lt_cv_sys_global_symbol_to_c_name_address \
13827
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13828
old_postinstall_cmds old_postuninstall_cmds \
13832
lt_prog_compiler_wl_CXX \
13833
lt_prog_compiler_pic_CXX \
13834
lt_prog_compiler_static_CXX \
13835
lt_prog_compiler_no_builtin_flag_CXX \
13836
export_dynamic_flag_spec_CXX \
13837
thread_safe_flag_spec_CXX \
13838
whole_archive_flag_spec_CXX \
13839
enable_shared_with_static_runtimes_CXX \
13840
old_archive_cmds_CXX \
13841
old_archive_from_new_cmds_CXX \
13842
predep_objects_CXX \
13843
postdep_objects_CXX \
13846
compiler_lib_search_path_CXX \
13848
archive_expsym_cmds_CXX \
13849
postinstall_cmds_CXX \
13850
postuninstall_cmds_CXX \
13851
old_archive_from_expsyms_cmds_CXX \
13852
allow_undefined_flag_CXX \
13853
no_undefined_flag_CXX \
13854
export_symbols_cmds_CXX \
13855
hardcode_libdir_flag_spec_CXX \
13856
hardcode_libdir_flag_spec_ld_CXX \
13857
hardcode_libdir_separator_CXX \
13858
hardcode_automatic_CXX \
13860
module_expsym_cmds_CXX \
13861
lt_cv_prog_compiler_c_o_CXX \
13862
exclude_expsyms_CXX \
13863
include_expsyms_CXX; do
13866
old_archive_cmds_CXX | \
13867
old_archive_from_new_cmds_CXX | \
13868
archive_cmds_CXX | \
13869
archive_expsym_cmds_CXX | \
13870
module_cmds_CXX | \
13871
module_expsym_cmds_CXX | \
13872
old_archive_from_expsyms_cmds_CXX | \
13873
export_symbols_cmds_CXX | \
13874
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13875
postinstall_cmds | postuninstall_cmds | \
13876
old_postinstall_cmds | old_postuninstall_cmds | \
13877
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13878
# Double-quote double-evaled strings.
13879
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13882
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13888
*'\$0 --fallback-echo"')
13889
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13895
cat <<__EOF__ >> "$cfgfile"
13896
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13898
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13900
# Shell to use when invoking shell scripts.
13903
# Whether or not to build shared libraries.
13904
build_libtool_libs=$enable_shared
13906
# Whether or not to build static libraries.
13907
build_old_libs=$enable_static
13909
# Whether or not to add -lc for building shared libraries.
13910
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13912
# Whether or not to disallow shared libs when runtime libs are static
13913
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13915
# Whether or not to optimize for fast installation.
13916
fast_install=$enable_fast_install
13919
host_alias=$host_alias
13922
# An echo program that does not interpret backslashes.
13927
AR_FLAGS=$lt_AR_FLAGS
13932
# A language-specific compiler.
13933
CC=$lt_compiler_CXX
13935
# Is the compiler the GNU C compiler?
13941
# The linker used to build libraries.
13944
# Whether we need hard or soft links.
13947
# A BSD-compatible nm program.
13950
# A symbol stripping program
13953
# Used to examine libraries when file_magic_cmd begins "file"
13954
MAGIC_CMD=$MAGIC_CMD
13956
# Used on cygwin: DLL creation program.
13959
# Used on cygwin: object dumper.
13962
# Used on cygwin: assembler.
13965
# The name of the directory that contains temporary libtool files.
13968
# How to create reloadable object files.
13969
reload_flag=$lt_reload_flag
13970
reload_cmds=$lt_reload_cmds
13972
# How to pass a linker flag through the compiler.
13973
wl=$lt_lt_prog_compiler_wl_CXX
13975
# Object file suffix (normally "o").
13976
objext="$ac_objext"
13978
# Old archive suffix (normally "a").
13981
# Shared library suffix (normally ".so").
13982
shrext_cmds='$shrext_cmds'
13984
# Executable file suffix (normally "").
13987
# Additional compiler flags for building library objects.
13988
pic_flag=$lt_lt_prog_compiler_pic_CXX
13991
# What is the maximum length of a command?
13992
max_cmd_len=$lt_cv_sys_max_cmd_len
13994
# Does compiler simultaneously support -c and -o options?
13995
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13997
# Must we lock files when doing compilation ?
13998
need_locks=$lt_need_locks
14000
# Do we need the lib prefix for modules?
14001
need_lib_prefix=$need_lib_prefix
14003
# Do we need a version for libraries?
14004
need_version=$need_version
14006
# Whether dlopen is supported.
14007
dlopen_support=$enable_dlopen
14009
# Whether dlopen of programs is supported.
14010
dlopen_self=$enable_dlopen_self
14012
# Whether dlopen of statically linked programs is supported.
14013
dlopen_self_static=$enable_dlopen_self_static
14015
# Compiler flag to prevent dynamic linking.
14016
link_static_flag=$lt_lt_prog_compiler_static_CXX
14018
# Compiler flag to turn off builtin functions.
14019
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14021
# Compiler flag to allow reflexive dlopens.
14022
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14024
# Compiler flag to generate shared objects directly from archives.
14025
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14027
# Compiler flag to generate thread-safe objects.
14028
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14030
# Library versioning type.
14031
version_type=$version_type
14033
# Format of library name prefix.
14034
libname_spec=$lt_libname_spec
14036
# List of archive names. First name is the real one, the rest are links.
14037
# The last name is the one that the linker finds with -lNAME.
14038
library_names_spec=$lt_library_names_spec
14040
# The coded name of the library, if different from the real name.
14041
soname_spec=$lt_soname_spec
14043
# Commands used to build and install an old-style archive.
14045
old_archive_cmds=$lt_old_archive_cmds_CXX
14046
old_postinstall_cmds=$lt_old_postinstall_cmds
14047
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14049
# Create an old-style archive from a shared archive.
14050
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14052
# Create a temporary old-style archive to link instead of a shared archive.
14053
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14055
# Commands used to build and install a shared archive.
14056
archive_cmds=$lt_archive_cmds_CXX
14057
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14058
postinstall_cmds=$lt_postinstall_cmds
14059
postuninstall_cmds=$lt_postuninstall_cmds
14061
# Commands used to build a loadable module (assumed same as above if empty)
14062
module_cmds=$lt_module_cmds_CXX
14063
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14065
# Commands to strip libraries.
14066
old_striplib=$lt_old_striplib
14067
striplib=$lt_striplib
14069
# Dependencies to place before the objects being linked to create a
14071
predep_objects=$lt_predep_objects_CXX
14073
# Dependencies to place after the objects being linked to create a
14075
postdep_objects=$lt_postdep_objects_CXX
14077
# Dependencies to place before the objects being linked to create a
14079
predeps=$lt_predeps_CXX
14081
# Dependencies to place after the objects being linked to create a
14083
postdeps=$lt_postdeps_CXX
14085
# The library search path used internally by the compiler when linking
14086
# a shared library.
14087
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14089
# Method to check whether dependent libraries are shared objects.
14090
deplibs_check_method=$lt_deplibs_check_method
14092
# Command to use when deplibs_check_method == file_magic.
14093
file_magic_cmd=$lt_file_magic_cmd
14095
# Flag that allows shared libraries with undefined symbols to be built.
14096
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14098
# Flag that forces no undefined symbols.
14099
no_undefined_flag=$lt_no_undefined_flag_CXX
14101
# Commands used to finish a libtool library installation in a directory.
14102
finish_cmds=$lt_finish_cmds
14104
# Same as above, but a single script fragment to be evaled but not shown.
14105
finish_eval=$lt_finish_eval
14107
# Take the output of nm and produce a listing of raw symbols and C names.
14108
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14110
# Transform the output of nm in a proper C declaration
14111
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14113
# Transform the output of nm in a C name address pair
14114
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14116
# This is the shared library runtime path variable.
14117
runpath_var=$runpath_var
14119
# This is the shared library path variable.
14120
shlibpath_var=$shlibpath_var
14122
# Is shlibpath searched before the hard-coded library search path?
14123
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14125
# How to hardcode a shared library path into an executable.
14126
hardcode_action=$hardcode_action_CXX
14128
# Whether we should hardcode library paths into libraries.
14129
hardcode_into_libs=$hardcode_into_libs
14131
# Flag to hardcode \$libdir into a binary during linking.
14132
# This must work even if \$libdir does not exist.
14133
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14135
# If ld is used when linking, flag to hardcode \$libdir into
14136
# a binary during linking. This must work even if \$libdir does
14138
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14140
# Whether we need a single -rpath flag with a separated argument.
14141
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14143
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14144
# resulting binary.
14145
hardcode_direct=$hardcode_direct_CXX
14147
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14148
# resulting binary.
14149
hardcode_minus_L=$hardcode_minus_L_CXX
14151
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14152
# the resulting binary.
14153
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14155
# Set to yes if building a shared library automatically hardcodes DIR into the library
14156
# and all subsequent libraries and executables linked against it.
14157
hardcode_automatic=$hardcode_automatic_CXX
14159
# Variables whose values should be saved in libtool wrapper scripts and
14160
# restored at relink time.
14161
variables_saved_for_relink="$variables_saved_for_relink"
14163
# Whether libtool must link a program against all its dependency libraries.
14164
link_all_deplibs=$link_all_deplibs_CXX
14166
# Compile-time system search path for libraries
14167
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14169
# Run-time system search path for libraries
14170
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14172
# Fix the shell variable \$srcfile for the compiler.
14173
fix_srcfile_path="$fix_srcfile_path_CXX"
14175
# Set to yes if exported symbols are required.
14176
always_export_symbols=$always_export_symbols_CXX
14178
# The commands to list exported symbols.
14179
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14181
# The commands to extract the exported symbol list from a shared archive.
14182
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14184
# Symbols that should not be listed in the preloaded symbols.
14185
exclude_expsyms=$lt_exclude_expsyms_CXX
14187
# Symbols that must always be exported.
14188
include_expsyms=$lt_include_expsyms_CXX
14190
# ### END LIBTOOL TAG CONFIG: $tagname
14196
# If there is no Makefile yet, we rely on a make rule to execute
14197
# `config.status --recheck' to rerun these tests and create the
14198
# libtool script then.
14199
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14200
if test -f "$ltmain_in"; then
14201
test -f Makefile && make "$ltmain"
14207
ac_cpp='$CPP $CPPFLAGS'
14208
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14216
with_gnu_ldcxx=$with_gnu_ld
14217
with_gnu_ld=$lt_save_with_gnu_ld
14218
lt_cv_path_LDCXX=$lt_cv_path_LD
14219
lt_cv_path_LD=$lt_save_path_LD
14220
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14221
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14229
if test -n "$F77" && test "X$F77" != "Xno"; then
14232
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14233
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14234
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14237
archive_cmds_need_lc_F77=no
14238
allow_undefined_flag_F77=
14239
always_export_symbols_F77=no
14240
archive_expsym_cmds_F77=
14241
export_dynamic_flag_spec_F77=
14242
hardcode_direct_F77=no
14243
hardcode_libdir_flag_spec_F77=
14244
hardcode_libdir_flag_spec_ld_F77=
14245
hardcode_libdir_separator_F77=
14246
hardcode_minus_L_F77=no
14247
hardcode_automatic_F77=no
14249
module_expsym_cmds_F77=
14250
link_all_deplibs_F77=unknown
14251
old_archive_cmds_F77=$old_archive_cmds
14252
no_undefined_flag_F77=
14253
whole_archive_flag_spec_F77=
14254
enable_shared_with_static_runtimes_F77=no
14256
# Source file extension for f77 test sources.
14259
# Object file extension for compiled f77 test sources.
14263
# Code to be used in simple compile tests
14264
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14266
# Code to be used in simple link tests
14267
lt_simple_link_test_code=" program t\n end\n"
14269
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14271
# If no C compiler was specified, use CC.
14274
# Allow CC to be a program name with arguments.
14278
# Allow CC to be a program name with arguments.
14283
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14285
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14286
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14287
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14288
echo "${ECHO_T}$can_build_shared" >&6
14290
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14291
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14292
test "$can_build_shared" = "no" && enable_shared=no
14294
# On AIX, shared libraries and static libraries use the same namespace, and
14295
# are all built from PIC.
14298
test "$enable_shared" = yes && enable_static=no
14299
if test -n "$RANLIB"; then
14300
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14301
postinstall_cmds='$RANLIB $lib'
14305
test "$enable_shared" = yes && enable_static=no
14308
echo "$as_me:$LINENO: result: $enable_shared" >&5
14309
echo "${ECHO_T}$enable_shared" >&6
14311
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14312
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14313
# Make sure either enable_shared or enable_static is yes.
14314
test "$enable_shared" = yes || enable_static=yes
14315
echo "$as_me:$LINENO: result: $enable_static" >&5
14316
echo "${ECHO_T}$enable_static" >&6
14318
test "$ld_shlibs_F77" = no && can_build_shared=no
14323
lt_prog_compiler_wl_F77=
14324
lt_prog_compiler_pic_F77=
14325
lt_prog_compiler_static_F77=
14327
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14328
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14330
if test "$GCC" = yes; then
14331
lt_prog_compiler_wl_F77='-Wl,'
14332
lt_prog_compiler_static_F77='-static'
14336
# All AIX code is PIC.
14337
if test "$host_cpu" = ia64; then
14338
# AIX 5 now supports IA64 processor
14339
lt_prog_compiler_static_F77='-Bstatic'
14344
# FIXME: we need at least 68020 code to build shared libraries, but
14345
# adding the `-m68020' flag to GCC prevents building anything better,
14347
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14350
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14351
# PIC is the default for these OSes.
14354
mingw* | pw32* | os2*)
14355
# This hack is so that the source file can tell whether it is being
14356
# built for inclusion in a dll (and should export symbols for example).
14357
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14360
darwin* | rhapsody*)
14361
# PIC is the default on this platform
14362
# Common symbols not allowed in MH_DYLIB files
14363
lt_prog_compiler_pic_F77='-fno-common'
14367
# Just because we use GCC doesn't mean we suddenly get shared libraries
14368
# on systems that don't support them.
14369
lt_prog_compiler_can_build_shared_F77=no
14374
if test -d /usr/nec; then
14375
lt_prog_compiler_pic_F77=-Kconform_pic
14380
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14381
# not for PA HP-UX.
14382
case "$host_cpu" in
14387
lt_prog_compiler_pic_F77='-fPIC'
14393
lt_prog_compiler_pic_F77='-fPIC'
14397
# PORTME Check for flag to pass linker flags through the system compiler.
14400
lt_prog_compiler_wl_F77='-Wl,'
14401
if test "$host_cpu" = ia64; then
14402
# AIX 5 now supports IA64 processor
14403
lt_prog_compiler_static_F77='-Bstatic'
14405
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14409
mingw* | pw32* | os2*)
14410
# This hack is so that the source file can tell whether it is being
14411
# built for inclusion in a dll (and should export symbols for example).
14412
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14415
hpux9* | hpux10* | hpux11*)
14416
lt_prog_compiler_wl_F77='-Wl,'
14417
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14418
# not for PA HP-UX.
14419
case "$host_cpu" in
14424
lt_prog_compiler_pic_F77='+Z'
14427
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14428
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14431
irix5* | irix6* | nonstopux*)
14432
lt_prog_compiler_wl_F77='-Wl,'
14433
# PIC (with -KPIC) is the default.
14434
lt_prog_compiler_static_F77='-non_shared'
14438
lt_prog_compiler_pic_F77='-KPIC'
14439
lt_prog_compiler_static_F77='-Bstatic'
14445
lt_prog_compiler_wl_F77='-Wl,'
14446
lt_prog_compiler_pic_F77='-KPIC'
14447
lt_prog_compiler_static_F77='-static'
14450
lt_prog_compiler_wl_F77='-Wl,'
14451
# All Alpha code is PIC.
14452
lt_prog_compiler_static_F77='-non_shared'
14457
osf3* | osf4* | osf5*)
14458
lt_prog_compiler_wl_F77='-Wl,'
14459
# All OSF/1 code is PIC.
14460
lt_prog_compiler_static_F77='-non_shared'
14464
lt_prog_compiler_pic_F77='-Kpic'
14465
lt_prog_compiler_static_F77='-dn'
14469
lt_prog_compiler_wl_F77='-Wl,'
14470
lt_prog_compiler_pic_F77='-KPIC'
14471
lt_prog_compiler_static_F77='-Bstatic'
14475
lt_prog_compiler_wl_F77='-Qoption ld '
14476
lt_prog_compiler_pic_F77='-PIC'
14477
lt_prog_compiler_static_F77='-Bstatic'
14480
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14481
lt_prog_compiler_wl_F77='-Wl,'
14482
lt_prog_compiler_pic_F77='-KPIC'
14483
lt_prog_compiler_static_F77='-Bstatic'
14487
if test -d /usr/nec ;then
14488
lt_prog_compiler_pic_F77='-Kconform_pic'
14489
lt_prog_compiler_static_F77='-Bstatic'
14494
lt_prog_compiler_pic_F77='-pic'
14495
lt_prog_compiler_static_F77='-Bstatic'
14499
lt_prog_compiler_can_build_shared_F77=no
14504
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14505
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14508
# Check to make sure the PIC flag actually works.
14510
if test -n "$lt_prog_compiler_pic_F77"; then
14512
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14513
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14514
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14515
echo $ECHO_N "(cached) $ECHO_C" >&6
14517
lt_prog_compiler_pic_works_F77=no
14518
ac_outfile=conftest.$ac_objext
14519
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14520
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14521
# Insert the option either (1) after the last *FLAGS variable, or
14522
# (2) before a word containing "conftest.", or (3) at the end.
14523
# Note that $ac_compile itself does not contain backslashes and begins
14524
# with a dollar sign (not a hyphen), so the echo should work correctly.
14525
# The option is referenced via a variable to avoid confusing sed.
14526
lt_compile=`echo "$ac_compile" | $SED \
14527
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14528
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14529
-e 's:$: $lt_compiler_flag:'`
14530
(eval echo "\"\$as_me:14530: $lt_compile\"" >&5)
14531
(eval "$lt_compile" 2>conftest.err)
14533
cat conftest.err >&5
14534
echo "$as_me:14534: \$? = $ac_status" >&5
14535
if (exit $ac_status) && test -s "$ac_outfile"; then
14536
# The compiler can only warn and ignore the option if not recognized
14537
# So say no if there are warnings
14538
if test ! -s conftest.err; then
14539
lt_prog_compiler_pic_works_F77=yes
14545
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14546
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14548
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14549
case $lt_prog_compiler_pic_F77 in
14551
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14554
lt_prog_compiler_pic_F77=
14555
lt_prog_compiler_can_build_shared_F77=no
14560
# For platforms which do not support PIC, -DPIC is meaningless:
14562
lt_prog_compiler_pic_F77=
14565
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14569
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14570
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14571
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14572
echo $ECHO_N "(cached) $ECHO_C" >&6
14574
lt_cv_prog_compiler_c_o_F77=no
14575
$rm -r conftest 2>/dev/null
14579
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14581
lt_compiler_flag="-o out/conftest2.$ac_objext"
14582
# Insert the option either (1) after the last *FLAGS variable, or
14583
# (2) before a word containing "conftest.", or (3) at the end.
14584
# Note that $ac_compile itself does not contain backslashes and begins
14585
# with a dollar sign (not a hyphen), so the echo should work correctly.
14586
lt_compile=`echo "$ac_compile" | $SED \
14587
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14588
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14589
-e 's:$: $lt_compiler_flag:'`
14590
(eval echo "\"\$as_me:14590: $lt_compile\"" >&5)
14591
(eval "$lt_compile" 2>out/conftest.err)
14593
cat out/conftest.err >&5
14594
echo "$as_me:14594: \$? = $ac_status" >&5
14595
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14597
# The compiler can only warn and ignore the option if not recognized
14598
# So say no if there are warnings
14599
if test ! -s out/conftest.err; then
14600
lt_cv_prog_compiler_c_o_F77=yes
14605
# SGI C++ compiler will create directory out/ii_files/ for
14606
# template instantiation
14607
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14608
$rm out/* && rmdir out
14614
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14615
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14618
hard_links="nottested"
14619
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14620
# do not overwrite the value of need_locks provided by the user
14621
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14622
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14625
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14627
ln conftest.a conftest.b 2>&5 || hard_links=no
14628
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14629
echo "$as_me:$LINENO: result: $hard_links" >&5
14630
echo "${ECHO_T}$hard_links" >&6
14631
if test "$hard_links" = no; then
14632
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14633
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14640
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14641
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14644
allow_undefined_flag_F77=
14645
enable_shared_with_static_runtimes_F77=no
14647
archive_expsym_cmds_F77=
14648
old_archive_From_new_cmds_F77=
14649
old_archive_from_expsyms_cmds_F77=
14650
export_dynamic_flag_spec_F77=
14651
whole_archive_flag_spec_F77=
14652
thread_safe_flag_spec_F77=
14653
hardcode_libdir_flag_spec_F77=
14654
hardcode_libdir_flag_spec_ld_F77=
14655
hardcode_libdir_separator_F77=
14656
hardcode_direct_F77=no
14657
hardcode_minus_L_F77=no
14658
hardcode_shlibpath_var_F77=unsupported
14659
link_all_deplibs_F77=unknown
14660
hardcode_automatic_F77=no
14662
module_expsym_cmds_F77=
14663
always_export_symbols_F77=no
14664
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14665
# include_expsyms should be a list of space-separated symbols to be *always*
14666
# included in the symbol list
14667
include_expsyms_F77=
14668
# exclude_expsyms can be an extended regexp of symbols to exclude
14669
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14670
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14671
# as well as any symbol that contains `d'.
14672
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14673
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14674
# platforms (ab)use it in PIC code, but their linkers get confused if
14675
# the symbol is explicitly referenced. Since portable code cannot
14676
# rely on this symbol name, it's probably fine to never include it in
14677
# preloaded symbol tables.
14678
extract_expsyms_cmds=
14681
cygwin* | mingw* | pw32*)
14682
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14683
# When not using gcc, we currently assume that we are using
14684
# Microsoft Visual C++.
14685
if test "$GCC" != yes; then
14695
if test "$with_gnu_ld" = yes; then
14696
# If archive_cmds runs LD, not CC, wlarc should be empty
14699
# See if GNU ld supports shared libraries.
14701
aix3* | aix4* | aix5*)
14702
# On AIX/PPC, the GNU linker is very broken
14703
if test "$host_cpu" != ia64; then
14707
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14708
*** to be unable to reliably create shared libraries on AIX.
14709
*** Therefore, libtool is disabling shared libraries support. If you
14710
*** really care for shared libraries, you may want to modify your PATH
14711
*** so that a non-GNU linker is found, and then restart.
14718
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14719
hardcode_libdir_flag_spec_F77='-L$libdir'
14720
hardcode_minus_L_F77=yes
14722
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14723
# that the semantics of dynamic libraries on AmigaOS, at least up
14724
# to version 4, is to share data among multiple programs linked
14725
# with the same dynamic library. Since this doesn't match the
14726
# behavior of shared libraries on other platforms, we can't use
14732
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14733
allow_undefined_flag_F77=unsupported
14734
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14735
# support --undefined. This deserves some investigation. FIXME
14736
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14742
cygwin* | mingw* | pw32*)
14743
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14744
# as there is no search path for DLLs.
14745
hardcode_libdir_flag_spec_F77='-L$libdir'
14746
allow_undefined_flag_F77=unsupported
14747
always_export_symbols_F77=no
14748
enable_shared_with_static_runtimes_F77=yes
14749
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14751
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14752
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14753
# If the export-symbols file already is a .def file (1st line
14754
# is EXPORTS), use it as is; otherwise, prepend...
14755
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14756
cp $export_symbols $output_objdir/$soname.def;
14758
echo EXPORTS > $output_objdir/$soname.def;
14759
cat $export_symbols >> $output_objdir/$soname.def;
14761
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14767
netbsd* | knetbsd*-gnu)
14768
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14769
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14772
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14773
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14778
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14782
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14783
*** create shared libraries on Solaris systems. Therefore, libtool
14784
*** is disabling shared libraries support. We urge you to upgrade GNU
14785
*** binutils to release 2.9.1 or newer. Another option is to modify
14786
*** your PATH or compiler configuration so that the native linker is
14787
*** used, and then restart.
14790
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14792
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14799
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14801
hardcode_direct_F77=yes
14802
hardcode_shlibpath_var_F77=no
14806
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14807
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808
archive_cmds_F77="$tmp_archive_cmds"
14809
supports_anon_versioning=no
14810
case `$LD -v 2>/dev/null` in
14811
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14812
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14813
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14814
*\ 2.11.*) ;; # other 2.11 versions
14815
*) supports_anon_versioning=yes ;;
14817
if test $supports_anon_versioning = yes; then
14818
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14819
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14820
$echo "local: *; };" >> $output_objdir/$libname.ver~
14821
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14823
archive_expsym_cmds_F77="$tmp_archive_cmds"
14825
link_all_deplibs_F77=no
14832
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14841
if test "$ld_shlibs_F77" = yes; then
14842
runpath_var=LD_RUN_PATH
14843
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14844
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14845
# ancient GNU ld didn't support --whole-archive et. al.
14846
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14847
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14849
whole_archive_flag_spec_F77=
14853
# PORTME fill in a description of your system's linker (not GNU ld)
14856
allow_undefined_flag_F77=unsupported
14857
always_export_symbols_F77=yes
14858
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14859
# Note: this linker hardcodes the directories in LIBPATH if there
14860
# are no directories specified by -L.
14861
hardcode_minus_L_F77=yes
14862
if test "$GCC" = yes && test -z "$link_static_flag"; then
14863
# Neither direct hardcoding nor static linking is supported with a
14865
hardcode_direct_F77=unsupported
14870
if test "$host_cpu" = ia64; then
14871
# On IA64, the linker does run time linking by default, so we don't
14872
# have to do anything special.
14873
aix_use_runtimelinking=no
14874
exp_sym_flag='-Bexport'
14877
# If we're using GNU nm, then we don't want the "-C" option.
14878
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14879
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14880
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14882
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14884
aix_use_runtimelinking=no
14886
# Test if we are trying to use run time linking or normal
14887
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14888
# need to do runtime linking.
14889
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14890
for ld_flag in $LDFLAGS; do
14891
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14892
aix_use_runtimelinking=yes
14898
exp_sym_flag='-bexport'
14899
no_entry_flag='-bnoentry'
14902
# When large executables or shared objects are built, AIX ld can
14903
# have problems creating the table of contents. If linking a library
14904
# or program results in "error TOC overflow" add -mminimal-toc to
14905
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14906
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14908
archive_cmds_F77=''
14909
hardcode_direct_F77=yes
14910
hardcode_libdir_separator_F77=':'
14911
link_all_deplibs_F77=yes
14913
if test "$GCC" = yes; then
14914
case $host_os in aix4.012|aix4.012.*)
14915
# We only want to do this on AIX 4.2 and lower, the check
14916
# below for broken collect2 doesn't work under 4.3+
14917
collect2name=`${CC} -print-prog-name=collect2`
14918
if test -f "$collect2name" && \
14919
strings "$collect2name" | grep resolve_lib_name >/dev/null
14921
# We have reworked collect2
14922
hardcode_direct_F77=yes
14924
# We have old collect2
14925
hardcode_direct_F77=unsupported
14926
# It fails to find uninstalled libraries when the uninstalled
14927
# path is not listed in the libpath. Setting hardcode_minus_L
14928
# to unsupported forces relinking
14929
hardcode_minus_L_F77=yes
14930
hardcode_libdir_flag_spec_F77='-L$libdir'
14931
hardcode_libdir_separator_F77=
14934
shared_flag='-shared'
14937
if test "$host_cpu" = ia64; then
14938
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14939
# chokes on -Wl,-G. The following line is correct:
14942
if test "$aix_use_runtimelinking" = yes; then
14943
shared_flag='${wl}-G'
14945
shared_flag='${wl}-bM:SRE'
14950
# It seems that -bexpall does not export symbols beginning with
14951
# underscore (_), so it is better to generate a list of symbols to export.
14952
always_export_symbols_F77=yes
14953
if test "$aix_use_runtimelinking" = yes; then
14954
# Warning - without using the other runtime loading flags (-brtl),
14955
# -berok will link without error, but may produce a broken library.
14956
allow_undefined_flag_F77='-berok'
14957
# Determine the default libpath from the value encoded in an empty executable.
14958
cat >conftest.$ac_ext <<_ACEOF
14963
rm -f conftest.$ac_objext conftest$ac_exeext
14964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965
(eval $ac_link) 2>conftest.er1
14967
grep -v '^ *+' conftest.er1 >conftest.err
14969
cat conftest.err >&5
14970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971
(exit $ac_status); } &&
14972
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974
(eval $ac_try) 2>&5
14976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977
(exit $ac_status); }; } &&
14978
{ ac_try='test -s conftest$ac_exeext'
14979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980
(eval $ac_try) 2>&5
14982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983
(exit $ac_status); }; }; then
14985
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14987
# Check for a 64-bit object if we didn't find anything.
14988
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14991
echo "$as_me: failed program was:" >&5
14992
sed 's/^/| /' conftest.$ac_ext >&5
14995
rm -f conftest.err conftest.$ac_objext \
14996
conftest$ac_exeext conftest.$ac_ext
14997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14999
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15000
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15002
if test "$host_cpu" = ia64; then
15003
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15004
allow_undefined_flag_F77="-z nodefs"
15005
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15007
# Determine the default libpath from the value encoded in an empty executable.
15008
cat >conftest.$ac_ext <<_ACEOF
15013
rm -f conftest.$ac_objext conftest$ac_exeext
15014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015
(eval $ac_link) 2>conftest.er1
15017
grep -v '^ *+' conftest.er1 >conftest.err
15019
cat conftest.err >&5
15020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021
(exit $ac_status); } &&
15022
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024
(eval $ac_try) 2>&5
15026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027
(exit $ac_status); }; } &&
15028
{ ac_try='test -s conftest$ac_exeext'
15029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030
(eval $ac_try) 2>&5
15032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033
(exit $ac_status); }; }; then
15035
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15037
# Check for a 64-bit object if we didn't find anything.
15038
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15041
echo "$as_me: failed program was:" >&5
15042
sed 's/^/| /' conftest.$ac_ext >&5
15045
rm -f conftest.err conftest.$ac_objext \
15046
conftest$ac_exeext conftest.$ac_ext
15047
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15049
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15050
# Warning - without using the other run time loading flags,
15051
# -berok will link without error, but may produce a broken library.
15052
no_undefined_flag_F77=' ${wl}-bernotok'
15053
allow_undefined_flag_F77=' ${wl}-berok'
15054
# -bexpall does not export symbols beginning with underscore (_)
15055
always_export_symbols_F77=yes
15056
# Exported symbols can be pulled into shared objects from archives
15057
whole_archive_flag_spec_F77=' '
15058
archive_cmds_need_lc_F77=yes
15059
# This is similar to how AIX traditionally builds it's shared libraries.
15060
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15066
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15067
hardcode_libdir_flag_spec_F77='-L$libdir'
15068
hardcode_minus_L_F77=yes
15069
# see comment about different semantics on the GNU ld section
15074
export_dynamic_flag_spec_F77=-rdynamic
15077
cygwin* | mingw* | pw32*)
15078
# When not using gcc, we currently assume that we are using
15079
# Microsoft Visual C++.
15080
# hardcode_libdir_flag_spec is actually meaningless, as there is
15081
# no search path for DLLs.
15082
hardcode_libdir_flag_spec_F77=' '
15083
allow_undefined_flag_F77=unsupported
15084
# Tell ltmain to make .lib files, not .a files.
15086
# Tell ltmain to make .dll files, not .so files.
15088
# FIXME: Setting linknames here is a bad hack.
15089
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15090
# The linker will automatically build a .lib file if we build a DLL.
15091
old_archive_From_new_cmds_F77='true'
15092
# FIXME: Should let the user specify the lib program.
15093
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15094
fix_srcfile_path='`cygpath -w "$srcfile"`'
15095
enable_shared_with_static_runtimes_F77=yes
15098
darwin* | rhapsody*)
15099
if test "$GXX" = yes ; then
15100
archive_cmds_need_lc_F77=no
15102
rhapsody* | darwin1.[012])
15103
allow_undefined_flag_F77='-undefined suppress'
15106
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15107
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15109
case ${MACOSX_DEPLOYMENT_TARGET} in
15111
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15114
allow_undefined_flag_F77='-undefined dynamic_lookup'
15120
lt_int_apple_cc_single_mod=no
15121
output_verbose_link_cmd='echo'
15122
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15123
lt_int_apple_cc_single_mod=yes
15125
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15126
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15128
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15130
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15131
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15132
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15133
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15135
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15137
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15138
hardcode_direct_F77=no
15139
hardcode_automatic_F77=yes
15140
hardcode_shlibpath_var_F77=unsupported
15141
whole_archive_flag_spec_F77='-all_load $convenience'
15142
link_all_deplibs_F77=yes
15149
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150
hardcode_libdir_flag_spec_F77='-L$libdir'
15151
hardcode_shlibpath_var_F77=no
15158
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15159
# support. Future versions do this automatically, but an explicit c++rt0.o
15160
# does not break anything, and helps significantly (at the cost of a little
15163
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15164
hardcode_libdir_flag_spec_F77='-R$libdir'
15165
hardcode_direct_F77=yes
15166
hardcode_shlibpath_var_F77=no
15169
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15171
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15172
hardcode_direct_F77=yes
15173
hardcode_minus_L_F77=yes
15174
hardcode_shlibpath_var_F77=no
15177
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15178
freebsd* | kfreebsd*-gnu)
15179
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15180
hardcode_libdir_flag_spec_F77='-R$libdir'
15181
hardcode_direct_F77=yes
15182
hardcode_shlibpath_var_F77=no
15186
if test "$GCC" = yes; then
15187
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15189
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15191
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15192
hardcode_libdir_separator_F77=:
15193
hardcode_direct_F77=yes
15195
# hardcode_minus_L: Not really in the search PATH,
15196
# but as the default location of the library.
15197
hardcode_minus_L_F77=yes
15198
export_dynamic_flag_spec_F77='${wl}-E'
15202
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15203
case "$host_cpu" in
15205
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15208
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15212
case "$host_cpu" in
15214
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15217
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15221
if test "$with_gnu_ld" = no; then
15222
case "$host_cpu" in
15224
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15225
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15226
hardcode_libdir_separator_F77=:
15227
hardcode_direct_F77=no
15228
hardcode_shlibpath_var_F77=no
15231
hardcode_libdir_flag_spec_F77='-L$libdir'
15232
hardcode_direct_F77=no
15233
hardcode_shlibpath_var_F77=no
15235
# hardcode_minus_L: Not really in the search PATH,
15236
# but as the default location of the library.
15237
hardcode_minus_L_F77=yes
15240
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15241
hardcode_libdir_separator_F77=:
15242
hardcode_direct_F77=yes
15243
export_dynamic_flag_spec_F77='${wl}-E'
15245
# hardcode_minus_L: Not really in the search PATH,
15246
# but as the default location of the library.
15247
hardcode_minus_L_F77=yes
15253
irix5* | irix6* | nonstopux*)
15254
if test "$GCC" = yes; then
15255
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15257
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15258
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15260
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15261
hardcode_libdir_separator_F77=:
15262
link_all_deplibs_F77=yes
15265
netbsd* | knetbsd*-gnu)
15266
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15267
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15269
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15271
hardcode_libdir_flag_spec_F77='-R$libdir'
15272
hardcode_direct_F77=yes
15273
hardcode_shlibpath_var_F77=no
15277
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15278
hardcode_direct_F77=yes
15279
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15280
hardcode_libdir_separator_F77=:
15281
hardcode_shlibpath_var_F77=no
15285
hardcode_direct_F77=yes
15286
hardcode_shlibpath_var_F77=no
15287
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15288
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15289
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15290
export_dynamic_flag_spec_F77='${wl}-E'
15293
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15294
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15295
hardcode_libdir_flag_spec_F77='-R$libdir'
15298
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15299
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15306
hardcode_libdir_flag_spec_F77='-L$libdir'
15307
hardcode_minus_L_F77=yes
15308
allow_undefined_flag_F77=unsupported
15309
archive_cmds_F77='$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'
15310
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15314
if test "$GCC" = yes; then
15315
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15316
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15318
allow_undefined_flag_F77=' -expect_unresolved \*'
15319
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15321
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322
hardcode_libdir_separator_F77=:
15325
osf4* | osf5*) # as osf3* with the addition of -msym flag
15326
if test "$GCC" = yes; then
15327
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15328
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15329
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15331
allow_undefined_flag_F77=' -expect_unresolved \*'
15332
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15333
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15334
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15336
# Both c and cxx compiler support -rpath directly
15337
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15339
hardcode_libdir_separator_F77=:
15343
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344
hardcode_shlibpath_var_F77=no
15345
export_dynamic_flag_spec_F77='${wl}-Bexport'
15346
runpath_var=LD_RUN_PATH
15347
hardcode_runpath_var=yes
15351
no_undefined_flag_F77=' -z text'
15352
if test "$GCC" = yes; then
15353
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15354
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15355
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15357
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15358
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15359
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15361
hardcode_libdir_flag_spec_F77='-R$libdir'
15362
hardcode_shlibpath_var_F77=no
15364
solaris2.[0-5] | solaris2.[0-5].*) ;;
15365
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15366
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15368
link_all_deplibs_F77=yes
15372
if test "x$host_vendor" = xsequent; then
15373
# Use $CC to link under sequent, because it throws in some extra .o
15374
# files that make .init and .fini sections work.
15375
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15377
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15379
hardcode_libdir_flag_spec_F77='-L$libdir'
15380
hardcode_direct_F77=yes
15381
hardcode_minus_L_F77=yes
15382
hardcode_shlibpath_var_F77=no
15386
case $host_vendor in
15388
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15389
hardcode_direct_F77=yes # is this really true???
15392
## LD is ld it makes a PLAMLIB
15393
## CC just makes a GrossModule.
15394
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15395
reload_cmds_F77='$CC -r -o $output$reload_objs'
15396
hardcode_direct_F77=no
15399
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15400
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15403
runpath_var='LD_RUN_PATH'
15404
hardcode_shlibpath_var_F77=no
15408
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409
hardcode_shlibpath_var_F77=no
15410
export_dynamic_flag_spec_F77='-Bexport'
15414
if test -d /usr/nec; then
15415
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15416
hardcode_shlibpath_var_F77=no
15417
runpath_var=LD_RUN_PATH
15418
hardcode_runpath_var=yes
15424
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15425
hardcode_direct_F77=yes
15426
hardcode_minus_L_F77=no
15427
hardcode_shlibpath_var_F77=no
15428
hardcode_runpath_var=yes
15429
runpath_var=LD_RUN_PATH
15432
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15433
no_undefined_flag_F77='${wl}-z ${wl}text'
15434
if test "$GCC" = yes; then
15435
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439
runpath_var='LD_RUN_PATH'
15440
hardcode_shlibpath_var_F77=no
15444
no_undefined_flag_F77=' -z text'
15445
# $CC -shared without GNU ld will not create a library from C++
15446
# object files and a static libstdc++, better avoid it by now
15447
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15449
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15450
hardcode_libdir_flag_spec_F77=
15451
hardcode_shlibpath_var_F77=no
15452
runpath_var='LD_RUN_PATH'
15456
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15457
hardcode_libdir_flag_spec_F77='-L$libdir'
15458
hardcode_shlibpath_var_F77=no
15467
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15468
echo "${ECHO_T}$ld_shlibs_F77" >&6
15469
test "$ld_shlibs_F77" = no && can_build_shared=no
15471
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15472
if test "$GCC" = yes; then
15473
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15477
# Do we need to explicitly link libc?
15479
case "x$archive_cmds_need_lc_F77" in
15481
# Assume -lc should be added
15482
archive_cmds_need_lc_F77=yes
15484
if test "$enable_shared" = yes && test "$GCC" = yes; then
15485
case $archive_cmds_F77 in
15487
# FIXME: we may have to deal with multi-command sequences.
15490
# Test whether the compiler implicitly links with -lc since on some
15491
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15492
# to ld, don't add -lc before -lgcc.
15493
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15494
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15496
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499
(eval $ac_compile) 2>&5
15501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502
(exit $ac_status); } 2>conftest.err; then
15505
libobjs=conftest.$ac_objext
15507
wl=$lt_prog_compiler_wl_F77
15513
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15514
allow_undefined_flag_F77=
15515
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15516
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519
(exit $ac_status); }
15521
archive_cmds_need_lc_F77=no
15523
archive_cmds_need_lc_F77=yes
15525
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15527
cat conftest.err 1>&5
15530
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15531
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15538
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15539
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15540
library_names_spec=
15541
libname_spec='lib$name'
15545
postuninstall_cmds=
15549
shlibpath_overrides_runpath=unknown
15551
dynamic_linker="$host_os ld.so"
15552
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15553
if test "$GCC" = yes; then
15554
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15555
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15556
# if the path contains ";" then we assume it to be the separator
15557
# otherwise default to the standard path separator (i.e. ":") - it is
15558
# assumed that no part of a normal pathname contains ";" but that should
15559
# okay in the real world where ";" in dirpaths is itself problematic.
15560
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15562
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15565
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15567
need_lib_prefix=unknown
15568
hardcode_into_libs=no
15570
# when you set need_version to no, make sure it does not cause -set_version
15571
# flags to be left without arguments
15572
need_version=unknown
15577
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15578
shlibpath_var=LIBPATH
15580
# AIX 3 has no versioning support, so we append a major version to the name.
15581
soname_spec='${libname}${release}${shared_ext}$major'
15588
hardcode_into_libs=yes
15589
if test "$host_cpu" = ia64; then
15590
# AIX 5 supports IA64
15591
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15592
shlibpath_var=LD_LIBRARY_PATH
15594
# With GCC up to 2.95.x, collect2 would create an import file
15595
# for dependence libraries. The import file would start with
15596
# the line `#! .'. This would cause the generated library to
15597
# depend on `.', always an invalid library. This was fixed in
15598
# development snapshots of GCC prior to 3.0.
15600
aix4 | aix4.[01] | aix4.[01].*)
15601
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15603
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15606
can_build_shared=no
15610
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15611
# soname into executable. Probably we can add versioning support to
15612
# collect2, so additional links can be useful in future.
15613
if test "$aix_use_runtimelinking" = yes; then
15614
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15615
# instead of lib<name>.a to let people know that these are not
15616
# typical AIX shared libraries.
15617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619
# We preserve .a as extension for shared libraries through AIX4.2
15620
# and later when we are not doing run time linking.
15621
library_names_spec='${libname}${release}.a $libname.a'
15622
soname_spec='${libname}${release}${shared_ext}$major'
15624
shlibpath_var=LIBPATH
15629
library_names_spec='$libname.ixlibrary $libname.a'
15630
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15631
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15635
library_names_spec='${libname}${shared_ext}'
15636
dynamic_linker="$host_os ld.so"
15637
shlibpath_var=LIBRARY_PATH
15643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644
soname_spec='${libname}${release}${shared_ext}$major'
15645
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15646
shlibpath_var=LD_LIBRARY_PATH
15647
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15648
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15649
# the default ld.so.conf also contains /usr/contrib/lib and
15650
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15651
# libtool to hard-code these into programs
15654
cygwin* | mingw* | pw32*)
15655
version_type=windows
15660
case $GCC,$host_os in
15661
yes,cygwin* | yes,mingw* | yes,pw32*)
15662
library_names_spec='$libname.dll.a'
15663
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15664
postinstall_cmds='base_file=`basename \${file}`~
15665
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15666
dldir=$destdir/`dirname \$dlpath`~
15667
test -d \$dldir || mkdir -p \$dldir~
15668
$install_prog $dir/$dlname \$dldir/$dlname'
15669
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15670
dlpath=$dir/\$dldll~
15672
shlibpath_overrides_runpath=yes
15676
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15677
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15678
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15681
# MinGW DLLs use traditional 'lib' prefix
15682
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15683
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15684
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15685
# It is most probably a Windows format PATH printed by
15686
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15687
# path with ; separators, and with drive letters. We can handle the
15688
# drive letters (cygwin fileutils understands them), so leave them,
15689
# especially as we might pass files found there to a mingw objdump,
15690
# which wouldn't understand a cygwinified path. Ahh.
15691
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15693
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15697
# pw32 DLLs use 'pw' prefix rather than 'lib'
15698
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15704
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15707
dynamic_linker='Win32 ld.exe'
15708
# FIXME: first we should search . and the directory the executable is in
15712
darwin* | rhapsody*)
15713
dynamic_linker="$host_os dyld"
15714
version_type=darwin
15717
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15718
soname_spec='${libname}${release}${major}$shared_ext'
15719
shlibpath_overrides_runpath=yes
15720
shlibpath_var=DYLD_LIBRARY_PATH
15721
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15722
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15723
if test "$GCC" = yes; then
15724
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15726
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15728
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15736
soname_spec='${libname}${release}${shared_ext}$major'
15737
shlibpath_var=LD_LIBRARY_PATH
15748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15749
soname_spec='${libname}${release}${shared_ext}$major'
15750
shlibpath_var=LD_LIBRARY_PATH
15751
shlibpath_overrides_runpath=no
15752
hardcode_into_libs=yes
15753
dynamic_linker='GNU ld.so'
15757
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15758
version_type=freebsd-$objformat
15759
case $version_type in
15761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15766
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15770
shlibpath_var=LD_LIBRARY_PATH
15773
shlibpath_overrides_runpath=yes
15775
freebsd3.01* | freebsdelf3.01*)
15776
shlibpath_overrides_runpath=yes
15777
hardcode_into_libs=yes
15780
shlibpath_overrides_runpath=no
15781
hardcode_into_libs=yes
15790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15791
soname_spec='${libname}${release}${shared_ext}$major'
15792
shlibpath_var=LD_LIBRARY_PATH
15793
hardcode_into_libs=yes
15796
hpux9* | hpux10* | hpux11*)
15797
# Give a soname corresponding to the major version so that dld.sl refuses to
15798
# link against other versions.
15802
case "$host_cpu" in
15805
hardcode_into_libs=yes
15806
dynamic_linker="$host_os dld.so"
15807
shlibpath_var=LD_LIBRARY_PATH
15808
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810
soname_spec='${libname}${release}${shared_ext}$major'
15811
if test "X$HPUX_IA64_MODE" = X32; then
15812
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15814
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15816
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15820
hardcode_into_libs=yes
15821
dynamic_linker="$host_os dld.sl"
15822
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15823
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825
soname_spec='${libname}${release}${shared_ext}$major'
15826
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15827
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15831
dynamic_linker="$host_os dld.sl"
15832
shlibpath_var=SHLIB_PATH
15833
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835
soname_spec='${libname}${release}${shared_ext}$major'
15838
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15839
postinstall_cmds='chmod 555 $lib'
15842
irix5* | irix6* | nonstopux*)
15844
nonstopux*) version_type=nonstopux ;;
15846
if test "$lt_cv_prog_gnu_ld" = yes; then
15854
soname_spec='${libname}${release}${shared_ext}$major'
15855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15857
irix5* | nonstopux*)
15858
libsuff= shlibsuff=
15861
case $LD in # libtool.m4 will add one of these switches to LD
15862
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15863
libsuff= shlibsuff= libmagic=32-bit;;
15864
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15865
libsuff=32 shlibsuff=N32 libmagic=N32;;
15866
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15867
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15868
*) libsuff= shlibsuff= libmagic=never-match;;
15872
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15873
shlibpath_overrides_runpath=no
15874
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15875
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15876
hardcode_into_libs=yes
15879
# No shared lib support for Linux oldld, aout, or coff.
15880
linux*oldld* | linux*aout* | linux*coff*)
15884
# This must be Linux ELF.
15889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890
soname_spec='${libname}${release}${shared_ext}$major'
15891
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15892
shlibpath_var=LD_LIBRARY_PATH
15893
shlibpath_overrides_runpath=no
15894
# This implies no fast_install, which is unacceptable.
15895
# Some rework will be needed to allow for fast_install
15896
# before this can be enabled.
15897
hardcode_into_libs=yes
15899
# Append ld.so.conf contents to the search path
15900
if test -f /etc/ld.so.conf; then
15901
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15902
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15905
# We used to test for /lib/ld.so.1 and disable shared libraries on
15906
# powerpc, because MkLinux only supported shared libraries with the
15907
# GNU dynamic linker. Since this was broken with cross compilers,
15908
# most powerpc-linux boxes support dynamic linking these days and
15909
# people can always --disable-shared, the test was removed, and we
15910
# assume the GNU/Linux dynamic linker is in use.
15911
dynamic_linker='GNU/Linux ld.so'
15918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15919
soname_spec='${libname}${release}${shared_ext}$major'
15920
shlibpath_var=LD_LIBRARY_PATH
15921
shlibpath_overrides_runpath=no
15922
hardcode_into_libs=yes
15923
dynamic_linker='GNU ld.so'
15930
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15932
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15933
dynamic_linker='NetBSD (a.out) ld.so'
15935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15936
soname_spec='${libname}${release}${shared_ext}$major'
15937
dynamic_linker='NetBSD ld.elf_so'
15939
shlibpath_var=LD_LIBRARY_PATH
15940
shlibpath_overrides_runpath=yes
15941
hardcode_into_libs=yes
15946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947
shlibpath_var=LD_LIBRARY_PATH
15948
shlibpath_overrides_runpath=yes
15955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956
soname_spec='${libname}${release}${shared_ext}$major'
15957
shlibpath_var=LD_LIBRARY_PATH
15958
shlibpath_overrides_runpath=yes
15965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15966
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15967
shlibpath_var=LD_LIBRARY_PATH
15968
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15970
openbsd2.[89] | openbsd2.[89].*)
15971
shlibpath_overrides_runpath=no
15974
shlibpath_overrides_runpath=yes
15978
shlibpath_overrides_runpath=yes
15983
libname_spec='$name'
15986
library_names_spec='$libname${shared_ext} $libname.a'
15987
dynamic_linker='OS/2 ld.exe'
15988
shlibpath_var=LIBPATH
15991
osf3* | osf4* | osf5*)
15995
soname_spec='${libname}${release}${shared_ext}$major'
15996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997
shlibpath_var=LD_LIBRARY_PATH
15998
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15999
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16004
soname_spec='${libname}${release}${shared_ext}$major'
16005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006
shlibpath_var=LD_LIBRARY_PATH
16013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16014
soname_spec='${libname}${release}${shared_ext}$major'
16015
shlibpath_var=LD_LIBRARY_PATH
16016
shlibpath_overrides_runpath=yes
16017
hardcode_into_libs=yes
16018
# ldd complains unless libraries are executable
16019
postinstall_cmds='chmod +x $lib'
16024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16025
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16026
shlibpath_var=LD_LIBRARY_PATH
16027
shlibpath_overrides_runpath=yes
16028
if test "$with_gnu_ld" = yes; then
16034
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037
soname_spec='${libname}${release}${shared_ext}$major'
16038
shlibpath_var=LD_LIBRARY_PATH
16039
case $host_vendor in
16041
shlibpath_overrides_runpath=no
16043
export_dynamic_flag_spec='${wl}-Blargedynsym'
16044
runpath_var=LD_RUN_PATH
16052
shlibpath_overrides_runpath=no
16053
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16059
if test -d /usr/nec ;then
16061
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16062
soname_spec='$libname${shared_ext}.$major'
16063
shlibpath_var=LD_LIBRARY_PATH
16069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070
soname_spec='${libname}${release}${shared_ext}$major'
16071
shlibpath_var=LD_LIBRARY_PATH
16078
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16079
echo "${ECHO_T}$dynamic_linker" >&6
16080
test "$dynamic_linker" = no && can_build_shared=no
16082
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16083
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16084
hardcode_action_F77=
16085
if test -n "$hardcode_libdir_flag_spec_F77" || \
16086
test -n "$runpath_var F77" || \
16087
test "X$hardcode_automatic_F77"="Xyes" ; then
16089
# We can hardcode non-existant directories.
16090
if test "$hardcode_direct_F77" != no &&
16091
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16092
# have to relink, otherwise we might link with an installed library
16093
# when we should be linking with a yet-to-be-installed one
16094
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16095
test "$hardcode_minus_L_F77" != no; then
16096
# Linking always hardcodes the temporary library directory.
16097
hardcode_action_F77=relink
16099
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16100
hardcode_action_F77=immediate
16103
# We cannot hardcode anything, or else we can only hardcode existing
16105
hardcode_action_F77=unsupported
16107
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16108
echo "${ECHO_T}$hardcode_action_F77" >&6
16110
if test "$hardcode_action_F77" = relink; then
16111
# Fast installation is not supported
16112
enable_fast_install=no
16113
elif test "$shlibpath_overrides_runpath" = yes ||
16114
test "$enable_shared" = no; then
16115
# Fast installation is not necessary
16116
enable_fast_install=needless
16121
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16122
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16123
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16124
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16125
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16126
echo "$as_me:$LINENO: result: yes" >&5
16127
echo "${ECHO_T}yes" >&6
16129
# FIXME - insert some real tests, host_os isn't really good enough
16132
if test -n "$STRIP" ; then
16133
striplib="$STRIP -x"
16134
echo "$as_me:$LINENO: result: yes" >&5
16135
echo "${ECHO_T}yes" >&6
16137
echo "$as_me:$LINENO: result: no" >&5
16138
echo "${ECHO_T}no" >&6
16142
echo "$as_me:$LINENO: result: no" >&5
16143
echo "${ECHO_T}no" >&6
16150
# The else clause should only fire when bootstrapping the
16151
# libtool distribution, otherwise you forgot to ship ltmain.sh
16152
# with your package, and you will get complaints that there are
16153
# no rules to generate ltmain.sh.
16154
if test -f "$ltmain"; then
16155
# See if we are running on zsh, and set the options which allow our commands through
16156
# without removal of \ escapes.
16157
if test -n "${ZSH_VERSION+set}" ; then
16158
setopt NO_GLOB_SUBST
16160
# Now quote all the things that may contain metacharacters while being
16161
# careful not to overquote the AC_SUBSTed values. We take copies of the
16162
# variables and quote the copies for generation of the libtool script.
16163
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16165
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16166
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16167
deplibs_check_method reload_flag reload_cmds need_locks \
16168
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16169
lt_cv_sys_global_symbol_to_c_name_address \
16170
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16171
old_postinstall_cmds old_postuninstall_cmds \
16175
lt_prog_compiler_wl_F77 \
16176
lt_prog_compiler_pic_F77 \
16177
lt_prog_compiler_static_F77 \
16178
lt_prog_compiler_no_builtin_flag_F77 \
16179
export_dynamic_flag_spec_F77 \
16180
thread_safe_flag_spec_F77 \
16181
whole_archive_flag_spec_F77 \
16182
enable_shared_with_static_runtimes_F77 \
16183
old_archive_cmds_F77 \
16184
old_archive_from_new_cmds_F77 \
16185
predep_objects_F77 \
16186
postdep_objects_F77 \
16189
compiler_lib_search_path_F77 \
16191
archive_expsym_cmds_F77 \
16192
postinstall_cmds_F77 \
16193
postuninstall_cmds_F77 \
16194
old_archive_from_expsyms_cmds_F77 \
16195
allow_undefined_flag_F77 \
16196
no_undefined_flag_F77 \
16197
export_symbols_cmds_F77 \
16198
hardcode_libdir_flag_spec_F77 \
16199
hardcode_libdir_flag_spec_ld_F77 \
16200
hardcode_libdir_separator_F77 \
16201
hardcode_automatic_F77 \
16203
module_expsym_cmds_F77 \
16204
lt_cv_prog_compiler_c_o_F77 \
16205
exclude_expsyms_F77 \
16206
include_expsyms_F77; do
16209
old_archive_cmds_F77 | \
16210
old_archive_from_new_cmds_F77 | \
16211
archive_cmds_F77 | \
16212
archive_expsym_cmds_F77 | \
16213
module_cmds_F77 | \
16214
module_expsym_cmds_F77 | \
16215
old_archive_from_expsyms_cmds_F77 | \
16216
export_symbols_cmds_F77 | \
16217
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16218
postinstall_cmds | postuninstall_cmds | \
16219
old_postinstall_cmds | old_postuninstall_cmds | \
16220
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16221
# Double-quote double-evaled strings.
16222
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16225
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16231
*'\$0 --fallback-echo"')
16232
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16238
cat <<__EOF__ >> "$cfgfile"
16239
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16241
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16243
# Shell to use when invoking shell scripts.
16246
# Whether or not to build shared libraries.
16247
build_libtool_libs=$enable_shared
16249
# Whether or not to build static libraries.
16250
build_old_libs=$enable_static
16252
# Whether or not to add -lc for building shared libraries.
16253
build_libtool_need_lc=$archive_cmds_need_lc_F77
16255
# Whether or not to disallow shared libs when runtime libs are static
16256
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16258
# Whether or not to optimize for fast installation.
16259
fast_install=$enable_fast_install
16262
host_alias=$host_alias
16265
# An echo program that does not interpret backslashes.
16270
AR_FLAGS=$lt_AR_FLAGS
16275
# A language-specific compiler.
16276
CC=$lt_compiler_F77
16278
# Is the compiler the GNU C compiler?
16284
# The linker used to build libraries.
16287
# Whether we need hard or soft links.
16290
# A BSD-compatible nm program.
16293
# A symbol stripping program
16296
# Used to examine libraries when file_magic_cmd begins "file"
16297
MAGIC_CMD=$MAGIC_CMD
16299
# Used on cygwin: DLL creation program.
16302
# Used on cygwin: object dumper.
16305
# Used on cygwin: assembler.
16308
# The name of the directory that contains temporary libtool files.
16311
# How to create reloadable object files.
16312
reload_flag=$lt_reload_flag
16313
reload_cmds=$lt_reload_cmds
16315
# How to pass a linker flag through the compiler.
16316
wl=$lt_lt_prog_compiler_wl_F77
16318
# Object file suffix (normally "o").
16319
objext="$ac_objext"
16321
# Old archive suffix (normally "a").
16324
# Shared library suffix (normally ".so").
16325
shrext_cmds='$shrext_cmds'
16327
# Executable file suffix (normally "").
16330
# Additional compiler flags for building library objects.
16331
pic_flag=$lt_lt_prog_compiler_pic_F77
16334
# What is the maximum length of a command?
16335
max_cmd_len=$lt_cv_sys_max_cmd_len
16337
# Does compiler simultaneously support -c and -o options?
16338
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16340
# Must we lock files when doing compilation ?
16341
need_locks=$lt_need_locks
16343
# Do we need the lib prefix for modules?
16344
need_lib_prefix=$need_lib_prefix
16346
# Do we need a version for libraries?
16347
need_version=$need_version
16349
# Whether dlopen is supported.
16350
dlopen_support=$enable_dlopen
16352
# Whether dlopen of programs is supported.
16353
dlopen_self=$enable_dlopen_self
16355
# Whether dlopen of statically linked programs is supported.
16356
dlopen_self_static=$enable_dlopen_self_static
16358
# Compiler flag to prevent dynamic linking.
16359
link_static_flag=$lt_lt_prog_compiler_static_F77
16361
# Compiler flag to turn off builtin functions.
16362
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16364
# Compiler flag to allow reflexive dlopens.
16365
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16367
# Compiler flag to generate shared objects directly from archives.
16368
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16370
# Compiler flag to generate thread-safe objects.
16371
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16373
# Library versioning type.
16374
version_type=$version_type
16376
# Format of library name prefix.
16377
libname_spec=$lt_libname_spec
16379
# List of archive names. First name is the real one, the rest are links.
16380
# The last name is the one that the linker finds with -lNAME.
16381
library_names_spec=$lt_library_names_spec
16383
# The coded name of the library, if different from the real name.
16384
soname_spec=$lt_soname_spec
16386
# Commands used to build and install an old-style archive.
16388
old_archive_cmds=$lt_old_archive_cmds_F77
16389
old_postinstall_cmds=$lt_old_postinstall_cmds
16390
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16392
# Create an old-style archive from a shared archive.
16393
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16395
# Create a temporary old-style archive to link instead of a shared archive.
16396
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16398
# Commands used to build and install a shared archive.
16399
archive_cmds=$lt_archive_cmds_F77
16400
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16401
postinstall_cmds=$lt_postinstall_cmds
16402
postuninstall_cmds=$lt_postuninstall_cmds
16404
# Commands used to build a loadable module (assumed same as above if empty)
16405
module_cmds=$lt_module_cmds_F77
16406
module_expsym_cmds=$lt_module_expsym_cmds_F77
16408
# Commands to strip libraries.
16409
old_striplib=$lt_old_striplib
16410
striplib=$lt_striplib
16412
# Dependencies to place before the objects being linked to create a
16414
predep_objects=$lt_predep_objects_F77
16416
# Dependencies to place after the objects being linked to create a
16418
postdep_objects=$lt_postdep_objects_F77
16420
# Dependencies to place before the objects being linked to create a
16422
predeps=$lt_predeps_F77
16424
# Dependencies to place after the objects being linked to create a
16426
postdeps=$lt_postdeps_F77
16428
# The library search path used internally by the compiler when linking
16429
# a shared library.
16430
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16432
# Method to check whether dependent libraries are shared objects.
16433
deplibs_check_method=$lt_deplibs_check_method
16435
# Command to use when deplibs_check_method == file_magic.
16436
file_magic_cmd=$lt_file_magic_cmd
16438
# Flag that allows shared libraries with undefined symbols to be built.
16439
allow_undefined_flag=$lt_allow_undefined_flag_F77
16441
# Flag that forces no undefined symbols.
16442
no_undefined_flag=$lt_no_undefined_flag_F77
16444
# Commands used to finish a libtool library installation in a directory.
16445
finish_cmds=$lt_finish_cmds
16447
# Same as above, but a single script fragment to be evaled but not shown.
16448
finish_eval=$lt_finish_eval
16450
# Take the output of nm and produce a listing of raw symbols and C names.
16451
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16453
# Transform the output of nm in a proper C declaration
16454
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16456
# Transform the output of nm in a C name address pair
16457
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16459
# This is the shared library runtime path variable.
16460
runpath_var=$runpath_var
16462
# This is the shared library path variable.
16463
shlibpath_var=$shlibpath_var
16465
# Is shlibpath searched before the hard-coded library search path?
16466
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16468
# How to hardcode a shared library path into an executable.
16469
hardcode_action=$hardcode_action_F77
16471
# Whether we should hardcode library paths into libraries.
16472
hardcode_into_libs=$hardcode_into_libs
16474
# Flag to hardcode \$libdir into a binary during linking.
16475
# This must work even if \$libdir does not exist.
16476
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16478
# If ld is used when linking, flag to hardcode \$libdir into
16479
# a binary during linking. This must work even if \$libdir does
16481
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16483
# Whether we need a single -rpath flag with a separated argument.
16484
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16486
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16487
# resulting binary.
16488
hardcode_direct=$hardcode_direct_F77
16490
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16491
# resulting binary.
16492
hardcode_minus_L=$hardcode_minus_L_F77
16494
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16495
# the resulting binary.
16496
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16498
# Set to yes if building a shared library automatically hardcodes DIR into the library
16499
# and all subsequent libraries and executables linked against it.
16500
hardcode_automatic=$hardcode_automatic_F77
16502
# Variables whose values should be saved in libtool wrapper scripts and
16503
# restored at relink time.
16504
variables_saved_for_relink="$variables_saved_for_relink"
16506
# Whether libtool must link a program against all its dependency libraries.
16507
link_all_deplibs=$link_all_deplibs_F77
16509
# Compile-time system search path for libraries
16510
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16512
# Run-time system search path for libraries
16513
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16515
# Fix the shell variable \$srcfile for the compiler.
16516
fix_srcfile_path="$fix_srcfile_path_F77"
16518
# Set to yes if exported symbols are required.
16519
always_export_symbols=$always_export_symbols_F77
16521
# The commands to list exported symbols.
16522
export_symbols_cmds=$lt_export_symbols_cmds_F77
16524
# The commands to extract the exported symbol list from a shared archive.
16525
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16527
# Symbols that should not be listed in the preloaded symbols.
16528
exclude_expsyms=$lt_exclude_expsyms_F77
16530
# Symbols that must always be exported.
16531
include_expsyms=$lt_include_expsyms_F77
16533
# ### END LIBTOOL TAG CONFIG: $tagname
16539
# If there is no Makefile yet, we rely on a make rule to execute
16540
# `config.status --recheck' to rerun these tests and create the
16541
# libtool script then.
16542
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16543
if test -f "$ltmain_in"; then
16544
test -f Makefile && make "$ltmain"
16550
ac_cpp='$CPP $CPPFLAGS'
16551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16563
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16567
# Source file extension for Java test sources.
16570
# Object file extension for compiled Java test sources.
16574
# Code to be used in simple compile tests
16575
lt_simple_compile_test_code="class foo {}\n"
16577
# Code to be used in simple link tests
16578
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16580
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16582
# If no C compiler was specified, use CC.
16585
# Allow CC to be a program name with arguments.
16589
# Allow CC to be a program name with arguments.
16595
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16596
archive_cmds_need_lc_GCJ=no
16599
lt_prog_compiler_no_builtin_flag_GCJ=
16601
if test "$GCC" = yes; then
16602
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16605
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16606
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16607
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16608
echo $ECHO_N "(cached) $ECHO_C" >&6
16610
lt_cv_prog_compiler_rtti_exceptions=no
16611
ac_outfile=conftest.$ac_objext
16612
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16613
lt_compiler_flag="-fno-rtti -fno-exceptions"
16614
# Insert the option either (1) after the last *FLAGS variable, or
16615
# (2) before a word containing "conftest.", or (3) at the end.
16616
# Note that $ac_compile itself does not contain backslashes and begins
16617
# with a dollar sign (not a hyphen), so the echo should work correctly.
16618
# The option is referenced via a variable to avoid confusing sed.
16619
lt_compile=`echo "$ac_compile" | $SED \
16620
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16621
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16622
-e 's:$: $lt_compiler_flag:'`
16623
(eval echo "\"\$as_me:16623: $lt_compile\"" >&5)
16624
(eval "$lt_compile" 2>conftest.err)
16626
cat conftest.err >&5
16627
echo "$as_me:16627: \$? = $ac_status" >&5
16628
if (exit $ac_status) && test -s "$ac_outfile"; then
16629
# The compiler can only warn and ignore the option if not recognized
16630
# So say no if there are warnings
16631
if test ! -s conftest.err; then
16632
lt_cv_prog_compiler_rtti_exceptions=yes
16638
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16639
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16641
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16642
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16649
lt_prog_compiler_wl_GCJ=
16650
lt_prog_compiler_pic_GCJ=
16651
lt_prog_compiler_static_GCJ=
16653
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16654
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16656
if test "$GCC" = yes; then
16657
lt_prog_compiler_wl_GCJ='-Wl,'
16658
lt_prog_compiler_static_GCJ='-static'
16662
# All AIX code is PIC.
16663
if test "$host_cpu" = ia64; then
16664
# AIX 5 now supports IA64 processor
16665
lt_prog_compiler_static_GCJ='-Bstatic'
16670
# FIXME: we need at least 68020 code to build shared libraries, but
16671
# adding the `-m68020' flag to GCC prevents building anything better,
16673
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16676
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16677
# PIC is the default for these OSes.
16680
mingw* | pw32* | os2*)
16681
# This hack is so that the source file can tell whether it is being
16682
# built for inclusion in a dll (and should export symbols for example).
16683
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16686
darwin* | rhapsody*)
16687
# PIC is the default on this platform
16688
# Common symbols not allowed in MH_DYLIB files
16689
lt_prog_compiler_pic_GCJ='-fno-common'
16693
# Just because we use GCC doesn't mean we suddenly get shared libraries
16694
# on systems that don't support them.
16695
lt_prog_compiler_can_build_shared_GCJ=no
16700
if test -d /usr/nec; then
16701
lt_prog_compiler_pic_GCJ=-Kconform_pic
16706
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16707
# not for PA HP-UX.
16708
case "$host_cpu" in
16713
lt_prog_compiler_pic_GCJ='-fPIC'
16719
lt_prog_compiler_pic_GCJ='-fPIC'
16723
# PORTME Check for flag to pass linker flags through the system compiler.
16726
lt_prog_compiler_wl_GCJ='-Wl,'
16727
if test "$host_cpu" = ia64; then
16728
# AIX 5 now supports IA64 processor
16729
lt_prog_compiler_static_GCJ='-Bstatic'
16731
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16735
mingw* | pw32* | os2*)
16736
# This hack is so that the source file can tell whether it is being
16737
# built for inclusion in a dll (and should export symbols for example).
16738
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16741
hpux9* | hpux10* | hpux11*)
16742
lt_prog_compiler_wl_GCJ='-Wl,'
16743
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16744
# not for PA HP-UX.
16745
case "$host_cpu" in
16750
lt_prog_compiler_pic_GCJ='+Z'
16753
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16754
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16757
irix5* | irix6* | nonstopux*)
16758
lt_prog_compiler_wl_GCJ='-Wl,'
16759
# PIC (with -KPIC) is the default.
16760
lt_prog_compiler_static_GCJ='-non_shared'
16764
lt_prog_compiler_pic_GCJ='-KPIC'
16765
lt_prog_compiler_static_GCJ='-Bstatic'
16771
lt_prog_compiler_wl_GCJ='-Wl,'
16772
lt_prog_compiler_pic_GCJ='-KPIC'
16773
lt_prog_compiler_static_GCJ='-static'
16776
lt_prog_compiler_wl_GCJ='-Wl,'
16777
# All Alpha code is PIC.
16778
lt_prog_compiler_static_GCJ='-non_shared'
16783
osf3* | osf4* | osf5*)
16784
lt_prog_compiler_wl_GCJ='-Wl,'
16785
# All OSF/1 code is PIC.
16786
lt_prog_compiler_static_GCJ='-non_shared'
16790
lt_prog_compiler_pic_GCJ='-Kpic'
16791
lt_prog_compiler_static_GCJ='-dn'
16795
lt_prog_compiler_wl_GCJ='-Wl,'
16796
lt_prog_compiler_pic_GCJ='-KPIC'
16797
lt_prog_compiler_static_GCJ='-Bstatic'
16801
lt_prog_compiler_wl_GCJ='-Qoption ld '
16802
lt_prog_compiler_pic_GCJ='-PIC'
16803
lt_prog_compiler_static_GCJ='-Bstatic'
16806
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16807
lt_prog_compiler_wl_GCJ='-Wl,'
16808
lt_prog_compiler_pic_GCJ='-KPIC'
16809
lt_prog_compiler_static_GCJ='-Bstatic'
16813
if test -d /usr/nec ;then
16814
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16815
lt_prog_compiler_static_GCJ='-Bstatic'
16820
lt_prog_compiler_pic_GCJ='-pic'
16821
lt_prog_compiler_static_GCJ='-Bstatic'
16825
lt_prog_compiler_can_build_shared_GCJ=no
16830
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16831
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16834
# Check to make sure the PIC flag actually works.
16836
if test -n "$lt_prog_compiler_pic_GCJ"; then
16838
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16839
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16840
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16841
echo $ECHO_N "(cached) $ECHO_C" >&6
16843
lt_prog_compiler_pic_works_GCJ=no
16844
ac_outfile=conftest.$ac_objext
16845
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16846
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16847
# Insert the option either (1) after the last *FLAGS variable, or
16848
# (2) before a word containing "conftest.", or (3) at the end.
16849
# Note that $ac_compile itself does not contain backslashes and begins
16850
# with a dollar sign (not a hyphen), so the echo should work correctly.
16851
# The option is referenced via a variable to avoid confusing sed.
16852
lt_compile=`echo "$ac_compile" | $SED \
16853
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16854
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16855
-e 's:$: $lt_compiler_flag:'`
16856
(eval echo "\"\$as_me:16856: $lt_compile\"" >&5)
16857
(eval "$lt_compile" 2>conftest.err)
16859
cat conftest.err >&5
16860
echo "$as_me:16860: \$? = $ac_status" >&5
16861
if (exit $ac_status) && test -s "$ac_outfile"; then
16862
# The compiler can only warn and ignore the option if not recognized
16863
# So say no if there are warnings
16864
if test ! -s conftest.err; then
16865
lt_prog_compiler_pic_works_GCJ=yes
16871
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16872
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16874
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16875
case $lt_prog_compiler_pic_GCJ in
16877
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16880
lt_prog_compiler_pic_GCJ=
16881
lt_prog_compiler_can_build_shared_GCJ=no
16886
# For platforms which do not support PIC, -DPIC is meaningless:
16888
lt_prog_compiler_pic_GCJ=
16891
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16895
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16896
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16897
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16898
echo $ECHO_N "(cached) $ECHO_C" >&6
16900
lt_cv_prog_compiler_c_o_GCJ=no
16901
$rm -r conftest 2>/dev/null
16905
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16907
lt_compiler_flag="-o out/conftest2.$ac_objext"
16908
# Insert the option either (1) after the last *FLAGS variable, or
16909
# (2) before a word containing "conftest.", or (3) at the end.
16910
# Note that $ac_compile itself does not contain backslashes and begins
16911
# with a dollar sign (not a hyphen), so the echo should work correctly.
16912
lt_compile=`echo "$ac_compile" | $SED \
16913
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16914
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16915
-e 's:$: $lt_compiler_flag:'`
16916
(eval echo "\"\$as_me:16916: $lt_compile\"" >&5)
16917
(eval "$lt_compile" 2>out/conftest.err)
16919
cat out/conftest.err >&5
16920
echo "$as_me:16920: \$? = $ac_status" >&5
16921
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16923
# The compiler can only warn and ignore the option if not recognized
16924
# So say no if there are warnings
16925
if test ! -s out/conftest.err; then
16926
lt_cv_prog_compiler_c_o_GCJ=yes
16931
# SGI C++ compiler will create directory out/ii_files/ for
16932
# template instantiation
16933
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16934
$rm out/* && rmdir out
16940
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16941
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16944
hard_links="nottested"
16945
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16946
# do not overwrite the value of need_locks provided by the user
16947
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16948
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16951
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16953
ln conftest.a conftest.b 2>&5 || hard_links=no
16954
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16955
echo "$as_me:$LINENO: result: $hard_links" >&5
16956
echo "${ECHO_T}$hard_links" >&6
16957
if test "$hard_links" = no; then
16958
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16959
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16966
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16967
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16970
allow_undefined_flag_GCJ=
16971
enable_shared_with_static_runtimes_GCJ=no
16973
archive_expsym_cmds_GCJ=
16974
old_archive_From_new_cmds_GCJ=
16975
old_archive_from_expsyms_cmds_GCJ=
16976
export_dynamic_flag_spec_GCJ=
16977
whole_archive_flag_spec_GCJ=
16978
thread_safe_flag_spec_GCJ=
16979
hardcode_libdir_flag_spec_GCJ=
16980
hardcode_libdir_flag_spec_ld_GCJ=
16981
hardcode_libdir_separator_GCJ=
16982
hardcode_direct_GCJ=no
16983
hardcode_minus_L_GCJ=no
16984
hardcode_shlibpath_var_GCJ=unsupported
16985
link_all_deplibs_GCJ=unknown
16986
hardcode_automatic_GCJ=no
16988
module_expsym_cmds_GCJ=
16989
always_export_symbols_GCJ=no
16990
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16991
# include_expsyms should be a list of space-separated symbols to be *always*
16992
# included in the symbol list
16993
include_expsyms_GCJ=
16994
# exclude_expsyms can be an extended regexp of symbols to exclude
16995
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16996
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16997
# as well as any symbol that contains `d'.
16998
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16999
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17000
# platforms (ab)use it in PIC code, but their linkers get confused if
17001
# the symbol is explicitly referenced. Since portable code cannot
17002
# rely on this symbol name, it's probably fine to never include it in
17003
# preloaded symbol tables.
17004
extract_expsyms_cmds=
17007
cygwin* | mingw* | pw32*)
17008
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17009
# When not using gcc, we currently assume that we are using
17010
# Microsoft Visual C++.
17011
if test "$GCC" != yes; then
17021
if test "$with_gnu_ld" = yes; then
17022
# If archive_cmds runs LD, not CC, wlarc should be empty
17025
# See if GNU ld supports shared libraries.
17027
aix3* | aix4* | aix5*)
17028
# On AIX/PPC, the GNU linker is very broken
17029
if test "$host_cpu" != ia64; then
17033
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17034
*** to be unable to reliably create shared libraries on AIX.
17035
*** Therefore, libtool is disabling shared libraries support. If you
17036
*** really care for shared libraries, you may want to modify your PATH
17037
*** so that a non-GNU linker is found, and then restart.
17044
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17045
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17046
hardcode_minus_L_GCJ=yes
17048
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17049
# that the semantics of dynamic libraries on AmigaOS, at least up
17050
# to version 4, is to share data among multiple programs linked
17051
# with the same dynamic library. Since this doesn't match the
17052
# behavior of shared libraries on other platforms, we can't use
17058
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17059
allow_undefined_flag_GCJ=unsupported
17060
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17061
# support --undefined. This deserves some investigation. FIXME
17062
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068
cygwin* | mingw* | pw32*)
17069
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17070
# as there is no search path for DLLs.
17071
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17072
allow_undefined_flag_GCJ=unsupported
17073
always_export_symbols_GCJ=no
17074
enable_shared_with_static_runtimes_GCJ=yes
17075
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17077
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17078
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17079
# If the export-symbols file already is a .def file (1st line
17080
# is EXPORTS), use it as is; otherwise, prepend...
17081
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17082
cp $export_symbols $output_objdir/$soname.def;
17084
echo EXPORTS > $output_objdir/$soname.def;
17085
cat $export_symbols >> $output_objdir/$soname.def;
17087
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17093
netbsd* | knetbsd*-gnu)
17094
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17095
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17098
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17104
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17108
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17109
*** create shared libraries on Solaris systems. Therefore, libtool
17110
*** is disabling shared libraries support. We urge you to upgrade GNU
17111
*** binutils to release 2.9.1 or newer. Another option is to modify
17112
*** your PATH or compiler configuration so that the native linker is
17113
*** used, and then restart.
17116
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17117
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17118
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17125
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17127
hardcode_direct_GCJ=yes
17128
hardcode_shlibpath_var_GCJ=no
17132
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17133
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17134
archive_cmds_GCJ="$tmp_archive_cmds"
17135
supports_anon_versioning=no
17136
case `$LD -v 2>/dev/null` in
17137
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17138
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17139
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17140
*\ 2.11.*) ;; # other 2.11 versions
17141
*) supports_anon_versioning=yes ;;
17143
if test $supports_anon_versioning = yes; then
17144
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17145
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17146
$echo "local: *; };" >> $output_objdir/$libname.ver~
17147
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17149
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17151
link_all_deplibs_GCJ=no
17158
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17159
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17167
if test "$ld_shlibs_GCJ" = yes; then
17168
runpath_var=LD_RUN_PATH
17169
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17170
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17171
# ancient GNU ld didn't support --whole-archive et. al.
17172
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17173
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17175
whole_archive_flag_spec_GCJ=
17179
# PORTME fill in a description of your system's linker (not GNU ld)
17182
allow_undefined_flag_GCJ=unsupported
17183
always_export_symbols_GCJ=yes
17184
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17185
# Note: this linker hardcodes the directories in LIBPATH if there
17186
# are no directories specified by -L.
17187
hardcode_minus_L_GCJ=yes
17188
if test "$GCC" = yes && test -z "$link_static_flag"; then
17189
# Neither direct hardcoding nor static linking is supported with a
17191
hardcode_direct_GCJ=unsupported
17196
if test "$host_cpu" = ia64; then
17197
# On IA64, the linker does run time linking by default, so we don't
17198
# have to do anything special.
17199
aix_use_runtimelinking=no
17200
exp_sym_flag='-Bexport'
17203
# If we're using GNU nm, then we don't want the "-C" option.
17204
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17205
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17206
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17208
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17210
aix_use_runtimelinking=no
17212
# Test if we are trying to use run time linking or normal
17213
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17214
# need to do runtime linking.
17215
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17216
for ld_flag in $LDFLAGS; do
17217
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17218
aix_use_runtimelinking=yes
17224
exp_sym_flag='-bexport'
17225
no_entry_flag='-bnoentry'
17228
# When large executables or shared objects are built, AIX ld can
17229
# have problems creating the table of contents. If linking a library
17230
# or program results in "error TOC overflow" add -mminimal-toc to
17231
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17232
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17234
archive_cmds_GCJ=''
17235
hardcode_direct_GCJ=yes
17236
hardcode_libdir_separator_GCJ=':'
17237
link_all_deplibs_GCJ=yes
17239
if test "$GCC" = yes; then
17240
case $host_os in aix4.012|aix4.012.*)
17241
# We only want to do this on AIX 4.2 and lower, the check
17242
# below for broken collect2 doesn't work under 4.3+
17243
collect2name=`${CC} -print-prog-name=collect2`
17244
if test -f "$collect2name" && \
17245
strings "$collect2name" | grep resolve_lib_name >/dev/null
17247
# We have reworked collect2
17248
hardcode_direct_GCJ=yes
17250
# We have old collect2
17251
hardcode_direct_GCJ=unsupported
17252
# It fails to find uninstalled libraries when the uninstalled
17253
# path is not listed in the libpath. Setting hardcode_minus_L
17254
# to unsupported forces relinking
17255
hardcode_minus_L_GCJ=yes
17256
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17257
hardcode_libdir_separator_GCJ=
17260
shared_flag='-shared'
17263
if test "$host_cpu" = ia64; then
17264
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265
# chokes on -Wl,-G. The following line is correct:
17268
if test "$aix_use_runtimelinking" = yes; then
17269
shared_flag='${wl}-G'
17271
shared_flag='${wl}-bM:SRE'
17276
# It seems that -bexpall does not export symbols beginning with
17277
# underscore (_), so it is better to generate a list of symbols to export.
17278
always_export_symbols_GCJ=yes
17279
if test "$aix_use_runtimelinking" = yes; then
17280
# Warning - without using the other runtime loading flags (-brtl),
17281
# -berok will link without error, but may produce a broken library.
17282
allow_undefined_flag_GCJ='-berok'
17283
# Determine the default libpath from the value encoded in an empty executable.
17284
cat >conftest.$ac_ext <<_ACEOF
17287
cat confdefs.h >>conftest.$ac_ext
17288
cat >>conftest.$ac_ext <<_ACEOF
17289
/* end confdefs.h. */
17299
rm -f conftest.$ac_objext conftest$ac_exeext
17300
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301
(eval $ac_link) 2>conftest.er1
17303
grep -v '^ *+' conftest.er1 >conftest.err
17305
cat conftest.err >&5
17306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307
(exit $ac_status); } &&
17308
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310
(eval $ac_try) 2>&5
17312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313
(exit $ac_status); }; } &&
17314
{ ac_try='test -s conftest$ac_exeext'
17315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316
(eval $ac_try) 2>&5
17318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319
(exit $ac_status); }; }; then
17321
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17323
# Check for a 64-bit object if we didn't find anything.
17324
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17327
echo "$as_me: failed program was:" >&5
17328
sed 's/^/| /' conftest.$ac_ext >&5
17331
rm -f conftest.err conftest.$ac_objext \
17332
conftest$ac_exeext conftest.$ac_ext
17333
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17335
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17336
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17338
if test "$host_cpu" = ia64; then
17339
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17340
allow_undefined_flag_GCJ="-z nodefs"
17341
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17343
# Determine the default libpath from the value encoded in an empty executable.
17344
cat >conftest.$ac_ext <<_ACEOF
17347
cat confdefs.h >>conftest.$ac_ext
17348
cat >>conftest.$ac_ext <<_ACEOF
17349
/* end confdefs.h. */
17359
rm -f conftest.$ac_objext conftest$ac_exeext
17360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361
(eval $ac_link) 2>conftest.er1
17363
grep -v '^ *+' conftest.er1 >conftest.err
17365
cat conftest.err >&5
17366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367
(exit $ac_status); } &&
17368
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370
(eval $ac_try) 2>&5
17372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373
(exit $ac_status); }; } &&
17374
{ ac_try='test -s conftest$ac_exeext'
17375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376
(eval $ac_try) 2>&5
17378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379
(exit $ac_status); }; }; then
17381
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17383
# Check for a 64-bit object if we didn't find anything.
17384
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17387
echo "$as_me: failed program was:" >&5
17388
sed 's/^/| /' conftest.$ac_ext >&5
17391
rm -f conftest.err conftest.$ac_objext \
17392
conftest$ac_exeext conftest.$ac_ext
17393
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17395
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17396
# Warning - without using the other run time loading flags,
17397
# -berok will link without error, but may produce a broken library.
17398
no_undefined_flag_GCJ=' ${wl}-bernotok'
17399
allow_undefined_flag_GCJ=' ${wl}-berok'
17400
# -bexpall does not export symbols beginning with underscore (_)
17401
always_export_symbols_GCJ=yes
17402
# Exported symbols can be pulled into shared objects from archives
17403
whole_archive_flag_spec_GCJ=' '
17404
archive_cmds_need_lc_GCJ=yes
17405
# This is similar to how AIX traditionally builds it's shared libraries.
17406
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17412
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17413
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17414
hardcode_minus_L_GCJ=yes
17415
# see comment about different semantics on the GNU ld section
17420
export_dynamic_flag_spec_GCJ=-rdynamic
17423
cygwin* | mingw* | pw32*)
17424
# When not using gcc, we currently assume that we are using
17425
# Microsoft Visual C++.
17426
# hardcode_libdir_flag_spec is actually meaningless, as there is
17427
# no search path for DLLs.
17428
hardcode_libdir_flag_spec_GCJ=' '
17429
allow_undefined_flag_GCJ=unsupported
17430
# Tell ltmain to make .lib files, not .a files.
17432
# Tell ltmain to make .dll files, not .so files.
17434
# FIXME: Setting linknames here is a bad hack.
17435
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17436
# The linker will automatically build a .lib file if we build a DLL.
17437
old_archive_From_new_cmds_GCJ='true'
17438
# FIXME: Should let the user specify the lib program.
17439
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17440
fix_srcfile_path='`cygpath -w "$srcfile"`'
17441
enable_shared_with_static_runtimes_GCJ=yes
17444
darwin* | rhapsody*)
17445
if test "$GXX" = yes ; then
17446
archive_cmds_need_lc_GCJ=no
17448
rhapsody* | darwin1.[012])
17449
allow_undefined_flag_GCJ='-undefined suppress'
17452
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17453
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17455
case ${MACOSX_DEPLOYMENT_TARGET} in
17457
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17460
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17466
lt_int_apple_cc_single_mod=no
17467
output_verbose_link_cmd='echo'
17468
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17469
lt_int_apple_cc_single_mod=yes
17471
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17472
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17474
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17476
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17477
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17478
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17479
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17481
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17483
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17484
hardcode_direct_GCJ=no
17485
hardcode_automatic_GCJ=yes
17486
hardcode_shlibpath_var_GCJ=unsupported
17487
whole_archive_flag_spec_GCJ='-all_load $convenience'
17488
link_all_deplibs_GCJ=yes
17495
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17497
hardcode_shlibpath_var_GCJ=no
17504
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17505
# support. Future versions do this automatically, but an explicit c++rt0.o
17506
# does not break anything, and helps significantly (at the cost of a little
17509
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17510
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17511
hardcode_direct_GCJ=yes
17512
hardcode_shlibpath_var_GCJ=no
17515
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17517
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518
hardcode_direct_GCJ=yes
17519
hardcode_minus_L_GCJ=yes
17520
hardcode_shlibpath_var_GCJ=no
17523
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17524
freebsd* | kfreebsd*-gnu)
17525
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17526
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17527
hardcode_direct_GCJ=yes
17528
hardcode_shlibpath_var_GCJ=no
17532
if test "$GCC" = yes; then
17533
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17535
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17537
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17538
hardcode_libdir_separator_GCJ=:
17539
hardcode_direct_GCJ=yes
17541
# hardcode_minus_L: Not really in the search PATH,
17542
# but as the default location of the library.
17543
hardcode_minus_L_GCJ=yes
17544
export_dynamic_flag_spec_GCJ='${wl}-E'
17548
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17549
case "$host_cpu" in
17551
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17554
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17558
case "$host_cpu" in
17560
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17563
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17567
if test "$with_gnu_ld" = no; then
17568
case "$host_cpu" in
17570
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17571
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17572
hardcode_libdir_separator_GCJ=:
17573
hardcode_direct_GCJ=no
17574
hardcode_shlibpath_var_GCJ=no
17577
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17578
hardcode_direct_GCJ=no
17579
hardcode_shlibpath_var_GCJ=no
17581
# hardcode_minus_L: Not really in the search PATH,
17582
# but as the default location of the library.
17583
hardcode_minus_L_GCJ=yes
17586
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17587
hardcode_libdir_separator_GCJ=:
17588
hardcode_direct_GCJ=yes
17589
export_dynamic_flag_spec_GCJ='${wl}-E'
17591
# hardcode_minus_L: Not really in the search PATH,
17592
# but as the default location of the library.
17593
hardcode_minus_L_GCJ=yes
17599
irix5* | irix6* | nonstopux*)
17600
if test "$GCC" = yes; then
17601
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17603
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17604
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17606
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17607
hardcode_libdir_separator_GCJ=:
17608
link_all_deplibs_GCJ=yes
17611
netbsd* | knetbsd*-gnu)
17612
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17613
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17615
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17617
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17618
hardcode_direct_GCJ=yes
17619
hardcode_shlibpath_var_GCJ=no
17623
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624
hardcode_direct_GCJ=yes
17625
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626
hardcode_libdir_separator_GCJ=:
17627
hardcode_shlibpath_var_GCJ=no
17631
hardcode_direct_GCJ=yes
17632
hardcode_shlibpath_var_GCJ=no
17633
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17634
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17635
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17636
export_dynamic_flag_spec_GCJ='${wl}-E'
17639
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17640
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17641
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17644
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17645
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17652
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17653
hardcode_minus_L_GCJ=yes
17654
allow_undefined_flag_GCJ=unsupported
17655
archive_cmds_GCJ='$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'
17656
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17660
if test "$GCC" = yes; then
17661
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17662
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17664
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17665
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17667
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17668
hardcode_libdir_separator_GCJ=:
17671
osf4* | osf5*) # as osf3* with the addition of -msym flag
17672
if test "$GCC" = yes; then
17673
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17674
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17675
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17677
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17678
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17679
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17680
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17682
# Both c and cxx compiler support -rpath directly
17683
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17685
hardcode_libdir_separator_GCJ=:
17689
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17690
hardcode_shlibpath_var_GCJ=no
17691
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17692
runpath_var=LD_RUN_PATH
17693
hardcode_runpath_var=yes
17697
no_undefined_flag_GCJ=' -z text'
17698
if test "$GCC" = yes; then
17699
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17700
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17701
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17703
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17704
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17705
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17707
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17708
hardcode_shlibpath_var_GCJ=no
17710
solaris2.[0-5] | solaris2.[0-5].*) ;;
17711
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17712
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17714
link_all_deplibs_GCJ=yes
17718
if test "x$host_vendor" = xsequent; then
17719
# Use $CC to link under sequent, because it throws in some extra .o
17720
# files that make .init and .fini sections work.
17721
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17723
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17725
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726
hardcode_direct_GCJ=yes
17727
hardcode_minus_L_GCJ=yes
17728
hardcode_shlibpath_var_GCJ=no
17732
case $host_vendor in
17734
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735
hardcode_direct_GCJ=yes # is this really true???
17738
## LD is ld it makes a PLAMLIB
17739
## CC just makes a GrossModule.
17740
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17741
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17742
hardcode_direct_GCJ=no
17745
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17749
runpath_var='LD_RUN_PATH'
17750
hardcode_shlibpath_var_GCJ=no
17754
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17755
hardcode_shlibpath_var_GCJ=no
17756
export_dynamic_flag_spec_GCJ='-Bexport'
17760
if test -d /usr/nec; then
17761
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17762
hardcode_shlibpath_var_GCJ=no
17763
runpath_var=LD_RUN_PATH
17764
hardcode_runpath_var=yes
17770
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17771
hardcode_direct_GCJ=yes
17772
hardcode_minus_L_GCJ=no
17773
hardcode_shlibpath_var_GCJ=no
17774
hardcode_runpath_var=yes
17775
runpath_var=LD_RUN_PATH
17778
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17779
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17780
if test "$GCC" = yes; then
17781
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785
runpath_var='LD_RUN_PATH'
17786
hardcode_shlibpath_var_GCJ=no
17790
no_undefined_flag_GCJ=' -z text'
17791
# $CC -shared without GNU ld will not create a library from C++
17792
# object files and a static libstdc++, better avoid it by now
17793
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17795
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17796
hardcode_libdir_flag_spec_GCJ=
17797
hardcode_shlibpath_var_GCJ=no
17798
runpath_var='LD_RUN_PATH'
17802
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17803
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17804
hardcode_shlibpath_var_GCJ=no
17813
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17814
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17815
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17817
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17818
if test "$GCC" = yes; then
17819
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17823
# Do we need to explicitly link libc?
17825
case "x$archive_cmds_need_lc_GCJ" in
17827
# Assume -lc should be added
17828
archive_cmds_need_lc_GCJ=yes
17830
if test "$enable_shared" = yes && test "$GCC" = yes; then
17831
case $archive_cmds_GCJ in
17833
# FIXME: we may have to deal with multi-command sequences.
17836
# Test whether the compiler implicitly links with -lc since on some
17837
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17838
# to ld, don't add -lc before -lgcc.
17839
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17840
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17842
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845
(eval $ac_compile) 2>&5
17847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848
(exit $ac_status); } 2>conftest.err; then
17851
libobjs=conftest.$ac_objext
17853
wl=$lt_prog_compiler_wl_GCJ
17859
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17860
allow_undefined_flag_GCJ=
17861
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17862
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865
(exit $ac_status); }
17867
archive_cmds_need_lc_GCJ=no
17869
archive_cmds_need_lc_GCJ=yes
17871
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17873
cat conftest.err 1>&5
17876
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17877
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17884
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17885
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17886
library_names_spec=
17887
libname_spec='lib$name'
17891
postuninstall_cmds=
17895
shlibpath_overrides_runpath=unknown
17897
dynamic_linker="$host_os ld.so"
17898
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17899
if test "$GCC" = yes; then
17900
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17901
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17902
# if the path contains ";" then we assume it to be the separator
17903
# otherwise default to the standard path separator (i.e. ":") - it is
17904
# assumed that no part of a normal pathname contains ";" but that should
17905
# okay in the real world where ";" in dirpaths is itself problematic.
17906
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17908
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17911
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17913
need_lib_prefix=unknown
17914
hardcode_into_libs=no
17916
# when you set need_version to no, make sure it does not cause -set_version
17917
# flags to be left without arguments
17918
need_version=unknown
17923
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17924
shlibpath_var=LIBPATH
17926
# AIX 3 has no versioning support, so we append a major version to the name.
17927
soname_spec='${libname}${release}${shared_ext}$major'
17934
hardcode_into_libs=yes
17935
if test "$host_cpu" = ia64; then
17936
# AIX 5 supports IA64
17937
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17938
shlibpath_var=LD_LIBRARY_PATH
17940
# With GCC up to 2.95.x, collect2 would create an import file
17941
# for dependence libraries. The import file would start with
17942
# the line `#! .'. This would cause the generated library to
17943
# depend on `.', always an invalid library. This was fixed in
17944
# development snapshots of GCC prior to 3.0.
17946
aix4 | aix4.[01] | aix4.[01].*)
17947
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17949
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17952
can_build_shared=no
17956
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17957
# soname into executable. Probably we can add versioning support to
17958
# collect2, so additional links can be useful in future.
17959
if test "$aix_use_runtimelinking" = yes; then
17960
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17961
# instead of lib<name>.a to let people know that these are not
17962
# typical AIX shared libraries.
17963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965
# We preserve .a as extension for shared libraries through AIX4.2
17966
# and later when we are not doing run time linking.
17967
library_names_spec='${libname}${release}.a $libname.a'
17968
soname_spec='${libname}${release}${shared_ext}$major'
17970
shlibpath_var=LIBPATH
17975
library_names_spec='$libname.ixlibrary $libname.a'
17976
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17977
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17981
library_names_spec='${libname}${shared_ext}'
17982
dynamic_linker="$host_os ld.so"
17983
shlibpath_var=LIBRARY_PATH
17989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990
soname_spec='${libname}${release}${shared_ext}$major'
17991
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17992
shlibpath_var=LD_LIBRARY_PATH
17993
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17994
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17995
# the default ld.so.conf also contains /usr/contrib/lib and
17996
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17997
# libtool to hard-code these into programs
18000
cygwin* | mingw* | pw32*)
18001
version_type=windows
18006
case $GCC,$host_os in
18007
yes,cygwin* | yes,mingw* | yes,pw32*)
18008
library_names_spec='$libname.dll.a'
18009
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18010
postinstall_cmds='base_file=`basename \${file}`~
18011
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18012
dldir=$destdir/`dirname \$dlpath`~
18013
test -d \$dldir || mkdir -p \$dldir~
18014
$install_prog $dir/$dlname \$dldir/$dlname'
18015
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18016
dlpath=$dir/\$dldll~
18018
shlibpath_overrides_runpath=yes
18022
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18023
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18024
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18027
# MinGW DLLs use traditional 'lib' prefix
18028
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18029
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18030
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18031
# It is most probably a Windows format PATH printed by
18032
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18033
# path with ; separators, and with drive letters. We can handle the
18034
# drive letters (cygwin fileutils understands them), so leave them,
18035
# especially as we might pass files found there to a mingw objdump,
18036
# which wouldn't understand a cygwinified path. Ahh.
18037
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18039
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18043
# pw32 DLLs use 'pw' prefix rather than 'lib'
18044
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18050
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18053
dynamic_linker='Win32 ld.exe'
18054
# FIXME: first we should search . and the directory the executable is in
18058
darwin* | rhapsody*)
18059
dynamic_linker="$host_os dyld"
18060
version_type=darwin
18063
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18064
soname_spec='${libname}${release}${major}$shared_ext'
18065
shlibpath_overrides_runpath=yes
18066
shlibpath_var=DYLD_LIBRARY_PATH
18067
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18068
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18069
if test "$GCC" = yes; then
18070
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18072
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18074
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18082
soname_spec='${libname}${release}${shared_ext}$major'
18083
shlibpath_var=LD_LIBRARY_PATH
18094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18095
soname_spec='${libname}${release}${shared_ext}$major'
18096
shlibpath_var=LD_LIBRARY_PATH
18097
shlibpath_overrides_runpath=no
18098
hardcode_into_libs=yes
18099
dynamic_linker='GNU ld.so'
18103
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18104
version_type=freebsd-$objformat
18105
case $version_type in
18107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18112
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18116
shlibpath_var=LD_LIBRARY_PATH
18119
shlibpath_overrides_runpath=yes
18121
freebsd3.01* | freebsdelf3.01*)
18122
shlibpath_overrides_runpath=yes
18123
hardcode_into_libs=yes
18126
shlibpath_overrides_runpath=no
18127
hardcode_into_libs=yes
18136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137
soname_spec='${libname}${release}${shared_ext}$major'
18138
shlibpath_var=LD_LIBRARY_PATH
18139
hardcode_into_libs=yes
18142
hpux9* | hpux10* | hpux11*)
18143
# Give a soname corresponding to the major version so that dld.sl refuses to
18144
# link against other versions.
18148
case "$host_cpu" in
18151
hardcode_into_libs=yes
18152
dynamic_linker="$host_os dld.so"
18153
shlibpath_var=LD_LIBRARY_PATH
18154
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156
soname_spec='${libname}${release}${shared_ext}$major'
18157
if test "X$HPUX_IA64_MODE" = X32; then
18158
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18160
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18166
hardcode_into_libs=yes
18167
dynamic_linker="$host_os dld.sl"
18168
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171
soname_spec='${libname}${release}${shared_ext}$major'
18172
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18177
dynamic_linker="$host_os dld.sl"
18178
shlibpath_var=SHLIB_PATH
18179
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181
soname_spec='${libname}${release}${shared_ext}$major'
18184
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18185
postinstall_cmds='chmod 555 $lib'
18188
irix5* | irix6* | nonstopux*)
18190
nonstopux*) version_type=nonstopux ;;
18192
if test "$lt_cv_prog_gnu_ld" = yes; then
18200
soname_spec='${libname}${release}${shared_ext}$major'
18201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18203
irix5* | nonstopux*)
18204
libsuff= shlibsuff=
18207
case $LD in # libtool.m4 will add one of these switches to LD
18208
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18209
libsuff= shlibsuff= libmagic=32-bit;;
18210
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18211
libsuff=32 shlibsuff=N32 libmagic=N32;;
18212
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18213
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18214
*) libsuff= shlibsuff= libmagic=never-match;;
18218
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18219
shlibpath_overrides_runpath=no
18220
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18221
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18222
hardcode_into_libs=yes
18225
# No shared lib support for Linux oldld, aout, or coff.
18226
linux*oldld* | linux*aout* | linux*coff*)
18230
# This must be Linux ELF.
18235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18236
soname_spec='${libname}${release}${shared_ext}$major'
18237
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18238
shlibpath_var=LD_LIBRARY_PATH
18239
shlibpath_overrides_runpath=no
18240
# This implies no fast_install, which is unacceptable.
18241
# Some rework will be needed to allow for fast_install
18242
# before this can be enabled.
18243
hardcode_into_libs=yes
18245
# Append ld.so.conf contents to the search path
18246
if test -f /etc/ld.so.conf; then
18247
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18248
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18251
# We used to test for /lib/ld.so.1 and disable shared libraries on
18252
# powerpc, because MkLinux only supported shared libraries with the
18253
# GNU dynamic linker. Since this was broken with cross compilers,
18254
# most powerpc-linux boxes support dynamic linking these days and
18255
# people can always --disable-shared, the test was removed, and we
18256
# assume the GNU/Linux dynamic linker is in use.
18257
dynamic_linker='GNU/Linux ld.so'
18264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18265
soname_spec='${libname}${release}${shared_ext}$major'
18266
shlibpath_var=LD_LIBRARY_PATH
18267
shlibpath_overrides_runpath=no
18268
hardcode_into_libs=yes
18269
dynamic_linker='GNU ld.so'
18276
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18278
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18279
dynamic_linker='NetBSD (a.out) ld.so'
18281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18282
soname_spec='${libname}${release}${shared_ext}$major'
18283
dynamic_linker='NetBSD ld.elf_so'
18285
shlibpath_var=LD_LIBRARY_PATH
18286
shlibpath_overrides_runpath=yes
18287
hardcode_into_libs=yes
18292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293
shlibpath_var=LD_LIBRARY_PATH
18294
shlibpath_overrides_runpath=yes
18301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302
soname_spec='${libname}${release}${shared_ext}$major'
18303
shlibpath_var=LD_LIBRARY_PATH
18304
shlibpath_overrides_runpath=yes
18311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18312
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18313
shlibpath_var=LD_LIBRARY_PATH
18314
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18316
openbsd2.[89] | openbsd2.[89].*)
18317
shlibpath_overrides_runpath=no
18320
shlibpath_overrides_runpath=yes
18324
shlibpath_overrides_runpath=yes
18329
libname_spec='$name'
18332
library_names_spec='$libname${shared_ext} $libname.a'
18333
dynamic_linker='OS/2 ld.exe'
18334
shlibpath_var=LIBPATH
18337
osf3* | osf4* | osf5*)
18341
soname_spec='${libname}${release}${shared_ext}$major'
18342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343
shlibpath_var=LD_LIBRARY_PATH
18344
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18345
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18350
soname_spec='${libname}${release}${shared_ext}$major'
18351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352
shlibpath_var=LD_LIBRARY_PATH
18359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360
soname_spec='${libname}${release}${shared_ext}$major'
18361
shlibpath_var=LD_LIBRARY_PATH
18362
shlibpath_overrides_runpath=yes
18363
hardcode_into_libs=yes
18364
# ldd complains unless libraries are executable
18365
postinstall_cmds='chmod +x $lib'
18370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18371
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18372
shlibpath_var=LD_LIBRARY_PATH
18373
shlibpath_overrides_runpath=yes
18374
if test "$with_gnu_ld" = yes; then
18380
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383
soname_spec='${libname}${release}${shared_ext}$major'
18384
shlibpath_var=LD_LIBRARY_PATH
18385
case $host_vendor in
18387
shlibpath_overrides_runpath=no
18389
export_dynamic_flag_spec='${wl}-Blargedynsym'
18390
runpath_var=LD_RUN_PATH
18398
shlibpath_overrides_runpath=no
18399
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18405
if test -d /usr/nec ;then
18407
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18408
soname_spec='$libname${shared_ext}.$major'
18409
shlibpath_var=LD_LIBRARY_PATH
18415
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416
soname_spec='${libname}${release}${shared_ext}$major'
18417
shlibpath_var=LD_LIBRARY_PATH
18424
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18425
echo "${ECHO_T}$dynamic_linker" >&6
18426
test "$dynamic_linker" = no && can_build_shared=no
18428
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18429
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18430
hardcode_action_GCJ=
18431
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18432
test -n "$runpath_var GCJ" || \
18433
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18435
# We can hardcode non-existant directories.
18436
if test "$hardcode_direct_GCJ" != no &&
18437
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18438
# have to relink, otherwise we might link with an installed library
18439
# when we should be linking with a yet-to-be-installed one
18440
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18441
test "$hardcode_minus_L_GCJ" != no; then
18442
# Linking always hardcodes the temporary library directory.
18443
hardcode_action_GCJ=relink
18445
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18446
hardcode_action_GCJ=immediate
18449
# We cannot hardcode anything, or else we can only hardcode existing
18451
hardcode_action_GCJ=unsupported
18453
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18454
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18456
if test "$hardcode_action_GCJ" = relink; then
18457
# Fast installation is not supported
18458
enable_fast_install=no
18459
elif test "$shlibpath_overrides_runpath" = yes ||
18460
test "$enable_shared" = no; then
18461
# Fast installation is not necessary
18462
enable_fast_install=needless
18467
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18468
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18469
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18470
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18471
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18472
echo "$as_me:$LINENO: result: yes" >&5
18473
echo "${ECHO_T}yes" >&6
18475
# FIXME - insert some real tests, host_os isn't really good enough
18478
if test -n "$STRIP" ; then
18479
striplib="$STRIP -x"
18480
echo "$as_me:$LINENO: result: yes" >&5
18481
echo "${ECHO_T}yes" >&6
18483
echo "$as_me:$LINENO: result: no" >&5
18484
echo "${ECHO_T}no" >&6
18488
echo "$as_me:$LINENO: result: no" >&5
18489
echo "${ECHO_T}no" >&6
18494
if test "x$enable_dlopen" != xyes; then
18495
enable_dlopen=unknown
18496
enable_dlopen_self=unknown
18497
enable_dlopen_self_static=unknown
18504
lt_cv_dlopen="load_add_on"
18506
lt_cv_dlopen_self=yes
18510
lt_cv_dlopen="LoadLibrary"
18515
lt_cv_dlopen="dlopen"
18520
# if libdl is installed we need to link against it
18521
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18522
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18523
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18524
echo $ECHO_N "(cached) $ECHO_C" >&6
18526
ac_check_lib_save_LIBS=$LIBS
18528
cat >conftest.$ac_ext <<_ACEOF
18531
cat confdefs.h >>conftest.$ac_ext
18532
cat >>conftest.$ac_ext <<_ACEOF
18533
/* end confdefs.h. */
18535
/* Override any gcc2 internal prototype to avoid an error. */
18539
/* We use char because int might match the return type of a gcc2
18540
builtin and then its argument prototype would still apply. */
18550
rm -f conftest.$ac_objext conftest$ac_exeext
18551
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18552
(eval $ac_link) 2>conftest.er1
18554
grep -v '^ *+' conftest.er1 >conftest.err
18556
cat conftest.err >&5
18557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558
(exit $ac_status); } &&
18559
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561
(eval $ac_try) 2>&5
18563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564
(exit $ac_status); }; } &&
18565
{ ac_try='test -s conftest$ac_exeext'
18566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567
(eval $ac_try) 2>&5
18569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570
(exit $ac_status); }; }; then
18571
ac_cv_lib_dl_dlopen=yes
18573
echo "$as_me: failed program was:" >&5
18574
sed 's/^/| /' conftest.$ac_ext >&5
18576
ac_cv_lib_dl_dlopen=no
18578
rm -f conftest.err conftest.$ac_objext \
18579
conftest$ac_exeext conftest.$ac_ext
18580
LIBS=$ac_check_lib_save_LIBS
18582
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18583
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18584
if test $ac_cv_lib_dl_dlopen = yes; then
18585
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18588
lt_cv_dlopen="dyld"
18590
lt_cv_dlopen_self=yes
18597
echo "$as_me:$LINENO: checking for shl_load" >&5
18598
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18599
if test "${ac_cv_func_shl_load+set}" = set; then
18600
echo $ECHO_N "(cached) $ECHO_C" >&6
18602
cat >conftest.$ac_ext <<_ACEOF
18605
cat confdefs.h >>conftest.$ac_ext
18606
cat >>conftest.$ac_ext <<_ACEOF
18607
/* end confdefs.h. */
18608
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18609
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18610
#define shl_load innocuous_shl_load
18612
/* System header to define __stub macros and hopefully few prototypes,
18613
which can conflict with char shl_load (); below.
18614
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18615
<limits.h> exists even on freestanding compilers. */
18618
# include <limits.h>
18620
# include <assert.h>
18625
/* Override any gcc2 internal prototype to avoid an error. */
18630
/* We use char because int might match the return type of a gcc2
18631
builtin and then its argument prototype would still apply. */
18633
/* The GNU C library defines this for functions which it implements
18634
to always fail with ENOSYS. Some functions are actually named
18635
something starting with __ and the normal name is an alias. */
18636
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18639
char (*f) () = shl_load;
18648
return f != shl_load;
18653
rm -f conftest.$ac_objext conftest$ac_exeext
18654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18655
(eval $ac_link) 2>conftest.er1
18657
grep -v '^ *+' conftest.er1 >conftest.err
18659
cat conftest.err >&5
18660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661
(exit $ac_status); } &&
18662
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18663
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664
(eval $ac_try) 2>&5
18666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667
(exit $ac_status); }; } &&
18668
{ ac_try='test -s conftest$ac_exeext'
18669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670
(eval $ac_try) 2>&5
18672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673
(exit $ac_status); }; }; then
18674
ac_cv_func_shl_load=yes
18676
echo "$as_me: failed program was:" >&5
18677
sed 's/^/| /' conftest.$ac_ext >&5
18679
ac_cv_func_shl_load=no
18681
rm -f conftest.err conftest.$ac_objext \
18682
conftest$ac_exeext conftest.$ac_ext
18684
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18685
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18686
if test $ac_cv_func_shl_load = yes; then
18687
lt_cv_dlopen="shl_load"
18689
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18690
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18691
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18692
echo $ECHO_N "(cached) $ECHO_C" >&6
18694
ac_check_lib_save_LIBS=$LIBS
18696
cat >conftest.$ac_ext <<_ACEOF
18699
cat confdefs.h >>conftest.$ac_ext
18700
cat >>conftest.$ac_ext <<_ACEOF
18701
/* end confdefs.h. */
18703
/* Override any gcc2 internal prototype to avoid an error. */
18707
/* We use char because int might match the return type of a gcc2
18708
builtin and then its argument prototype would still apply. */
18718
rm -f conftest.$ac_objext conftest$ac_exeext
18719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18720
(eval $ac_link) 2>conftest.er1
18722
grep -v '^ *+' conftest.er1 >conftest.err
18724
cat conftest.err >&5
18725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726
(exit $ac_status); } &&
18727
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729
(eval $ac_try) 2>&5
18731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732
(exit $ac_status); }; } &&
18733
{ ac_try='test -s conftest$ac_exeext'
18734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735
(eval $ac_try) 2>&5
18737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738
(exit $ac_status); }; }; then
18739
ac_cv_lib_dld_shl_load=yes
18741
echo "$as_me: failed program was:" >&5
18742
sed 's/^/| /' conftest.$ac_ext >&5
18744
ac_cv_lib_dld_shl_load=no
18746
rm -f conftest.err conftest.$ac_objext \
18747
conftest$ac_exeext conftest.$ac_ext
18748
LIBS=$ac_check_lib_save_LIBS
18750
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18751
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18752
if test $ac_cv_lib_dld_shl_load = yes; then
18753
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18755
echo "$as_me:$LINENO: checking for dlopen" >&5
18756
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18757
if test "${ac_cv_func_dlopen+set}" = set; then
18758
echo $ECHO_N "(cached) $ECHO_C" >&6
18760
cat >conftest.$ac_ext <<_ACEOF
18763
cat confdefs.h >>conftest.$ac_ext
18764
cat >>conftest.$ac_ext <<_ACEOF
18765
/* end confdefs.h. */
18766
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18767
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18768
#define dlopen innocuous_dlopen
18770
/* System header to define __stub macros and hopefully few prototypes,
18771
which can conflict with char dlopen (); below.
18772
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18773
<limits.h> exists even on freestanding compilers. */
18776
# include <limits.h>
18778
# include <assert.h>
18783
/* Override any gcc2 internal prototype to avoid an error. */
18788
/* We use char because int might match the return type of a gcc2
18789
builtin and then its argument prototype would still apply. */
18791
/* The GNU C library defines this for functions which it implements
18792
to always fail with ENOSYS. Some functions are actually named
18793
something starting with __ and the normal name is an alias. */
18794
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18797
char (*f) () = dlopen;
18806
return f != dlopen;
18811
rm -f conftest.$ac_objext conftest$ac_exeext
18812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813
(eval $ac_link) 2>conftest.er1
18815
grep -v '^ *+' conftest.er1 >conftest.err
18817
cat conftest.err >&5
18818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819
(exit $ac_status); } &&
18820
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822
(eval $ac_try) 2>&5
18824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825
(exit $ac_status); }; } &&
18826
{ ac_try='test -s conftest$ac_exeext'
18827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828
(eval $ac_try) 2>&5
18830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831
(exit $ac_status); }; }; then
18832
ac_cv_func_dlopen=yes
18834
echo "$as_me: failed program was:" >&5
18835
sed 's/^/| /' conftest.$ac_ext >&5
18837
ac_cv_func_dlopen=no
18839
rm -f conftest.err conftest.$ac_objext \
18840
conftest$ac_exeext conftest.$ac_ext
18842
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18843
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18844
if test $ac_cv_func_dlopen = yes; then
18845
lt_cv_dlopen="dlopen"
18847
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18848
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18849
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18850
echo $ECHO_N "(cached) $ECHO_C" >&6
18852
ac_check_lib_save_LIBS=$LIBS
18854
cat >conftest.$ac_ext <<_ACEOF
18857
cat confdefs.h >>conftest.$ac_ext
18858
cat >>conftest.$ac_ext <<_ACEOF
18859
/* end confdefs.h. */
18861
/* Override any gcc2 internal prototype to avoid an error. */
18865
/* We use char because int might match the return type of a gcc2
18866
builtin and then its argument prototype would still apply. */
18876
rm -f conftest.$ac_objext conftest$ac_exeext
18877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878
(eval $ac_link) 2>conftest.er1
18880
grep -v '^ *+' conftest.er1 >conftest.err
18882
cat conftest.err >&5
18883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884
(exit $ac_status); } &&
18885
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887
(eval $ac_try) 2>&5
18889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890
(exit $ac_status); }; } &&
18891
{ ac_try='test -s conftest$ac_exeext'
18892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893
(eval $ac_try) 2>&5
18895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896
(exit $ac_status); }; }; then
18897
ac_cv_lib_dl_dlopen=yes
18899
echo "$as_me: failed program was:" >&5
18900
sed 's/^/| /' conftest.$ac_ext >&5
18902
ac_cv_lib_dl_dlopen=no
18904
rm -f conftest.err conftest.$ac_objext \
18905
conftest$ac_exeext conftest.$ac_ext
18906
LIBS=$ac_check_lib_save_LIBS
18908
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18909
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18910
if test $ac_cv_lib_dl_dlopen = yes; then
18911
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18913
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18914
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18915
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18916
echo $ECHO_N "(cached) $ECHO_C" >&6
18918
ac_check_lib_save_LIBS=$LIBS
18919
LIBS="-lsvld $LIBS"
18920
cat >conftest.$ac_ext <<_ACEOF
18923
cat confdefs.h >>conftest.$ac_ext
18924
cat >>conftest.$ac_ext <<_ACEOF
18925
/* end confdefs.h. */
18927
/* Override any gcc2 internal prototype to avoid an error. */
18931
/* We use char because int might match the return type of a gcc2
18932
builtin and then its argument prototype would still apply. */
18942
rm -f conftest.$ac_objext conftest$ac_exeext
18943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18944
(eval $ac_link) 2>conftest.er1
18946
grep -v '^ *+' conftest.er1 >conftest.err
18948
cat conftest.err >&5
18949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950
(exit $ac_status); } &&
18951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953
(eval $ac_try) 2>&5
18955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956
(exit $ac_status); }; } &&
18957
{ ac_try='test -s conftest$ac_exeext'
18958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959
(eval $ac_try) 2>&5
18961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962
(exit $ac_status); }; }; then
18963
ac_cv_lib_svld_dlopen=yes
18965
echo "$as_me: failed program was:" >&5
18966
sed 's/^/| /' conftest.$ac_ext >&5
18968
ac_cv_lib_svld_dlopen=no
18970
rm -f conftest.err conftest.$ac_objext \
18971
conftest$ac_exeext conftest.$ac_ext
18972
LIBS=$ac_check_lib_save_LIBS
18974
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18975
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18976
if test $ac_cv_lib_svld_dlopen = yes; then
18977
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18979
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18980
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18981
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18982
echo $ECHO_N "(cached) $ECHO_C" >&6
18984
ac_check_lib_save_LIBS=$LIBS
18986
cat >conftest.$ac_ext <<_ACEOF
18989
cat confdefs.h >>conftest.$ac_ext
18990
cat >>conftest.$ac_ext <<_ACEOF
18991
/* end confdefs.h. */
18993
/* Override any gcc2 internal prototype to avoid an error. */
18997
/* We use char because int might match the return type of a gcc2
18998
builtin and then its argument prototype would still apply. */
19008
rm -f conftest.$ac_objext conftest$ac_exeext
19009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19010
(eval $ac_link) 2>conftest.er1
19012
grep -v '^ *+' conftest.er1 >conftest.err
19014
cat conftest.err >&5
19015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016
(exit $ac_status); } &&
19017
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019
(eval $ac_try) 2>&5
19021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022
(exit $ac_status); }; } &&
19023
{ ac_try='test -s conftest$ac_exeext'
19024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025
(eval $ac_try) 2>&5
19027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028
(exit $ac_status); }; }; then
19029
ac_cv_lib_dld_dld_link=yes
19031
echo "$as_me: failed program was:" >&5
19032
sed 's/^/| /' conftest.$ac_ext >&5
19034
ac_cv_lib_dld_dld_link=no
19036
rm -f conftest.err conftest.$ac_objext \
19037
conftest$ac_exeext conftest.$ac_ext
19038
LIBS=$ac_check_lib_save_LIBS
19040
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19041
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19042
if test $ac_cv_lib_dld_dld_link = yes; then
19043
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19064
if test "x$lt_cv_dlopen" != xno; then
19070
case $lt_cv_dlopen in
19072
save_CPPFLAGS="$CPPFLAGS"
19073
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19075
save_LDFLAGS="$LDFLAGS"
19076
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19079
LIBS="$lt_cv_dlopen_libs $LIBS"
19081
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19082
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19083
if test "${lt_cv_dlopen_self+set}" = set; then
19084
echo $ECHO_N "(cached) $ECHO_C" >&6
19086
if test "$cross_compiling" = yes; then :
19087
lt_cv_dlopen_self=cross
19089
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19090
lt_status=$lt_dlunknown
19091
cat > conftest.$ac_ext <<EOF
19092
#line 19092 "configure"
19093
#include "confdefs.h"
19102
# define LT_DLGLOBAL RTLD_GLOBAL
19105
# define LT_DLGLOBAL DL_GLOBAL
19107
# define LT_DLGLOBAL 0
19111
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19112
find out it does not work in some platform. */
19113
#ifndef LT_DLLAZY_OR_NOW
19115
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19118
# define LT_DLLAZY_OR_NOW DL_LAZY
19121
# define LT_DLLAZY_OR_NOW RTLD_NOW
19124
# define LT_DLLAZY_OR_NOW DL_NOW
19126
# define LT_DLLAZY_OR_NOW 0
19134
extern "C" void exit (int);
19137
void fnord() { int i=42;}
19140
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19141
int status = $lt_dlunknown;
19145
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19146
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19147
/* dlclose (self); */
19153
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154
(eval $ac_link) 2>&5
19156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19158
(./conftest; exit; ) 2>/dev/null
19160
case x$lt_status in
19161
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19162
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19163
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19166
# compilation failed
19167
lt_cv_dlopen_self=no
19174
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19175
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19177
if test "x$lt_cv_dlopen_self" = xyes; then
19178
LDFLAGS="$LDFLAGS $link_static_flag"
19179
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19180
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19181
if test "${lt_cv_dlopen_self_static+set}" = set; then
19182
echo $ECHO_N "(cached) $ECHO_C" >&6
19184
if test "$cross_compiling" = yes; then :
19185
lt_cv_dlopen_self_static=cross
19187
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19188
lt_status=$lt_dlunknown
19189
cat > conftest.$ac_ext <<EOF
19190
#line 19190 "configure"
19191
#include "confdefs.h"
19200
# define LT_DLGLOBAL RTLD_GLOBAL
19203
# define LT_DLGLOBAL DL_GLOBAL
19205
# define LT_DLGLOBAL 0
19209
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19210
find out it does not work in some platform. */
19211
#ifndef LT_DLLAZY_OR_NOW
19213
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19216
# define LT_DLLAZY_OR_NOW DL_LAZY
19219
# define LT_DLLAZY_OR_NOW RTLD_NOW
19222
# define LT_DLLAZY_OR_NOW DL_NOW
19224
# define LT_DLLAZY_OR_NOW 0
19232
extern "C" void exit (int);
19235
void fnord() { int i=42;}
19238
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19239
int status = $lt_dlunknown;
19243
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19244
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19245
/* dlclose (self); */
19251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252
(eval $ac_link) 2>&5
19254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19256
(./conftest; exit; ) 2>/dev/null
19258
case x$lt_status in
19259
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19260
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19261
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19264
# compilation failed
19265
lt_cv_dlopen_self_static=no
19272
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19273
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19276
CPPFLAGS="$save_CPPFLAGS"
19277
LDFLAGS="$save_LDFLAGS"
19282
case $lt_cv_dlopen_self in
19283
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19284
*) enable_dlopen_self=unknown ;;
19287
case $lt_cv_dlopen_self_static in
19288
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19289
*) enable_dlopen_self_static=unknown ;;
19294
# The else clause should only fire when bootstrapping the
19295
# libtool distribution, otherwise you forgot to ship ltmain.sh
19296
# with your package, and you will get complaints that there are
19297
# no rules to generate ltmain.sh.
19298
if test -f "$ltmain"; then
19299
# See if we are running on zsh, and set the options which allow our commands through
19300
# without removal of \ escapes.
19301
if test -n "${ZSH_VERSION+set}" ; then
19302
setopt NO_GLOB_SUBST
19304
# Now quote all the things that may contain metacharacters while being
19305
# careful not to overquote the AC_SUBSTed values. We take copies of the
19306
# variables and quote the copies for generation of the libtool script.
19307
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19309
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19310
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19311
deplibs_check_method reload_flag reload_cmds need_locks \
19312
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19313
lt_cv_sys_global_symbol_to_c_name_address \
19314
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19315
old_postinstall_cmds old_postuninstall_cmds \
19319
lt_prog_compiler_wl_GCJ \
19320
lt_prog_compiler_pic_GCJ \
19321
lt_prog_compiler_static_GCJ \
19322
lt_prog_compiler_no_builtin_flag_GCJ \
19323
export_dynamic_flag_spec_GCJ \
19324
thread_safe_flag_spec_GCJ \
19325
whole_archive_flag_spec_GCJ \
19326
enable_shared_with_static_runtimes_GCJ \
19327
old_archive_cmds_GCJ \
19328
old_archive_from_new_cmds_GCJ \
19329
predep_objects_GCJ \
19330
postdep_objects_GCJ \
19333
compiler_lib_search_path_GCJ \
19335
archive_expsym_cmds_GCJ \
19336
postinstall_cmds_GCJ \
19337
postuninstall_cmds_GCJ \
19338
old_archive_from_expsyms_cmds_GCJ \
19339
allow_undefined_flag_GCJ \
19340
no_undefined_flag_GCJ \
19341
export_symbols_cmds_GCJ \
19342
hardcode_libdir_flag_spec_GCJ \
19343
hardcode_libdir_flag_spec_ld_GCJ \
19344
hardcode_libdir_separator_GCJ \
19345
hardcode_automatic_GCJ \
19347
module_expsym_cmds_GCJ \
19348
lt_cv_prog_compiler_c_o_GCJ \
19349
exclude_expsyms_GCJ \
19350
include_expsyms_GCJ; do
19353
old_archive_cmds_GCJ | \
19354
old_archive_from_new_cmds_GCJ | \
19355
archive_cmds_GCJ | \
19356
archive_expsym_cmds_GCJ | \
19357
module_cmds_GCJ | \
19358
module_expsym_cmds_GCJ | \
19359
old_archive_from_expsyms_cmds_GCJ | \
19360
export_symbols_cmds_GCJ | \
19361
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19362
postinstall_cmds | postuninstall_cmds | \
19363
old_postinstall_cmds | old_postuninstall_cmds | \
19364
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19365
# Double-quote double-evaled strings.
19366
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19369
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19375
*'\$0 --fallback-echo"')
19376
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19382
cat <<__EOF__ >> "$cfgfile"
19383
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19385
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19387
# Shell to use when invoking shell scripts.
19390
# Whether or not to build shared libraries.
19391
build_libtool_libs=$enable_shared
19393
# Whether or not to build static libraries.
19394
build_old_libs=$enable_static
19396
# Whether or not to add -lc for building shared libraries.
19397
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19399
# Whether or not to disallow shared libs when runtime libs are static
19400
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19402
# Whether or not to optimize for fast installation.
19403
fast_install=$enable_fast_install
19406
host_alias=$host_alias
19409
# An echo program that does not interpret backslashes.
19414
AR_FLAGS=$lt_AR_FLAGS
19419
# A language-specific compiler.
19420
CC=$lt_compiler_GCJ
19422
# Is the compiler the GNU C compiler?
19428
# The linker used to build libraries.
19431
# Whether we need hard or soft links.
19434
# A BSD-compatible nm program.
19437
# A symbol stripping program
19440
# Used to examine libraries when file_magic_cmd begins "file"
19441
MAGIC_CMD=$MAGIC_CMD
19443
# Used on cygwin: DLL creation program.
19446
# Used on cygwin: object dumper.
19449
# Used on cygwin: assembler.
19452
# The name of the directory that contains temporary libtool files.
19455
# How to create reloadable object files.
19456
reload_flag=$lt_reload_flag
19457
reload_cmds=$lt_reload_cmds
19459
# How to pass a linker flag through the compiler.
19460
wl=$lt_lt_prog_compiler_wl_GCJ
19462
# Object file suffix (normally "o").
19463
objext="$ac_objext"
19465
# Old archive suffix (normally "a").
19468
# Shared library suffix (normally ".so").
19469
shrext_cmds='$shrext_cmds'
19471
# Executable file suffix (normally "").
19474
# Additional compiler flags for building library objects.
19475
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19478
# What is the maximum length of a command?
19479
max_cmd_len=$lt_cv_sys_max_cmd_len
19481
# Does compiler simultaneously support -c and -o options?
19482
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19484
# Must we lock files when doing compilation ?
19485
need_locks=$lt_need_locks
19487
# Do we need the lib prefix for modules?
19488
need_lib_prefix=$need_lib_prefix
19490
# Do we need a version for libraries?
19491
need_version=$need_version
19493
# Whether dlopen is supported.
19494
dlopen_support=$enable_dlopen
19496
# Whether dlopen of programs is supported.
19497
dlopen_self=$enable_dlopen_self
19499
# Whether dlopen of statically linked programs is supported.
19500
dlopen_self_static=$enable_dlopen_self_static
19502
# Compiler flag to prevent dynamic linking.
19503
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19505
# Compiler flag to turn off builtin functions.
19506
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19508
# Compiler flag to allow reflexive dlopens.
19509
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19511
# Compiler flag to generate shared objects directly from archives.
19512
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19514
# Compiler flag to generate thread-safe objects.
19515
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19517
# Library versioning type.
19518
version_type=$version_type
19520
# Format of library name prefix.
19521
libname_spec=$lt_libname_spec
19523
# List of archive names. First name is the real one, the rest are links.
19524
# The last name is the one that the linker finds with -lNAME.
19525
library_names_spec=$lt_library_names_spec
19527
# The coded name of the library, if different from the real name.
19528
soname_spec=$lt_soname_spec
19530
# Commands used to build and install an old-style archive.
19532
old_archive_cmds=$lt_old_archive_cmds_GCJ
19533
old_postinstall_cmds=$lt_old_postinstall_cmds
19534
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19536
# Create an old-style archive from a shared archive.
19537
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19539
# Create a temporary old-style archive to link instead of a shared archive.
19540
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19542
# Commands used to build and install a shared archive.
19543
archive_cmds=$lt_archive_cmds_GCJ
19544
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19545
postinstall_cmds=$lt_postinstall_cmds
19546
postuninstall_cmds=$lt_postuninstall_cmds
19548
# Commands used to build a loadable module (assumed same as above if empty)
19549
module_cmds=$lt_module_cmds_GCJ
19550
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19552
# Commands to strip libraries.
19553
old_striplib=$lt_old_striplib
19554
striplib=$lt_striplib
19556
# Dependencies to place before the objects being linked to create a
19558
predep_objects=$lt_predep_objects_GCJ
19560
# Dependencies to place after the objects being linked to create a
19562
postdep_objects=$lt_postdep_objects_GCJ
19564
# Dependencies to place before the objects being linked to create a
19566
predeps=$lt_predeps_GCJ
19568
# Dependencies to place after the objects being linked to create a
19570
postdeps=$lt_postdeps_GCJ
19572
# The library search path used internally by the compiler when linking
19573
# a shared library.
19574
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19576
# Method to check whether dependent libraries are shared objects.
19577
deplibs_check_method=$lt_deplibs_check_method
19579
# Command to use when deplibs_check_method == file_magic.
19580
file_magic_cmd=$lt_file_magic_cmd
19582
# Flag that allows shared libraries with undefined symbols to be built.
19583
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19585
# Flag that forces no undefined symbols.
19586
no_undefined_flag=$lt_no_undefined_flag_GCJ
19588
# Commands used to finish a libtool library installation in a directory.
19589
finish_cmds=$lt_finish_cmds
19591
# Same as above, but a single script fragment to be evaled but not shown.
19592
finish_eval=$lt_finish_eval
19594
# Take the output of nm and produce a listing of raw symbols and C names.
19595
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19597
# Transform the output of nm in a proper C declaration
19598
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19600
# Transform the output of nm in a C name address pair
19601
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19603
# This is the shared library runtime path variable.
19604
runpath_var=$runpath_var
19606
# This is the shared library path variable.
19607
shlibpath_var=$shlibpath_var
19609
# Is shlibpath searched before the hard-coded library search path?
19610
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19612
# How to hardcode a shared library path into an executable.
19613
hardcode_action=$hardcode_action_GCJ
19615
# Whether we should hardcode library paths into libraries.
19616
hardcode_into_libs=$hardcode_into_libs
19618
# Flag to hardcode \$libdir into a binary during linking.
19619
# This must work even if \$libdir does not exist.
19620
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19622
# If ld is used when linking, flag to hardcode \$libdir into
19623
# a binary during linking. This must work even if \$libdir does
19625
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19627
# Whether we need a single -rpath flag with a separated argument.
19628
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19630
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19631
# resulting binary.
19632
hardcode_direct=$hardcode_direct_GCJ
19634
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19635
# resulting binary.
19636
hardcode_minus_L=$hardcode_minus_L_GCJ
19638
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19639
# the resulting binary.
19640
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19642
# Set to yes if building a shared library automatically hardcodes DIR into the library
19643
# and all subsequent libraries and executables linked against it.
19644
hardcode_automatic=$hardcode_automatic_GCJ
19646
# Variables whose values should be saved in libtool wrapper scripts and
19647
# restored at relink time.
19648
variables_saved_for_relink="$variables_saved_for_relink"
19650
# Whether libtool must link a program against all its dependency libraries.
19651
link_all_deplibs=$link_all_deplibs_GCJ
19653
# Compile-time system search path for libraries
19654
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19656
# Run-time system search path for libraries
19657
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19659
# Fix the shell variable \$srcfile for the compiler.
19660
fix_srcfile_path="$fix_srcfile_path_GCJ"
19662
# Set to yes if exported symbols are required.
19663
always_export_symbols=$always_export_symbols_GCJ
19665
# The commands to list exported symbols.
19666
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19668
# The commands to extract the exported symbol list from a shared archive.
19669
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19671
# Symbols that should not be listed in the preloaded symbols.
19672
exclude_expsyms=$lt_exclude_expsyms_GCJ
19674
# Symbols that must always be exported.
19675
include_expsyms=$lt_include_expsyms_GCJ
19677
# ### END LIBTOOL TAG CONFIG: $tagname
19683
# If there is no Makefile yet, we rely on a make rule to execute
19684
# `config.status --recheck' to rerun these tests and create the
19685
# libtool script then.
19686
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19687
if test -f "$ltmain_in"; then
19688
test -f Makefile && make "$ltmain"
19694
ac_cpp='$CPP $CPPFLAGS'
19695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19710
# Source file extension for RC test sources.
19713
# Object file extension for compiled RC test sources.
19717
# Code to be used in simple compile tests
19718
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19720
# Code to be used in simple link tests
19721
lt_simple_link_test_code="$lt_simple_compile_test_code"
19723
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19725
# If no C compiler was specified, use CC.
19728
# Allow CC to be a program name with arguments.
19732
# Allow CC to be a program name with arguments.
19737
lt_cv_prog_compiler_c_o_RC=yes
19739
# The else clause should only fire when bootstrapping the
19740
# libtool distribution, otherwise you forgot to ship ltmain.sh
19741
# with your package, and you will get complaints that there are
19742
# no rules to generate ltmain.sh.
19743
if test -f "$ltmain"; then
19744
# See if we are running on zsh, and set the options which allow our commands through
19745
# without removal of \ escapes.
19746
if test -n "${ZSH_VERSION+set}" ; then
19747
setopt NO_GLOB_SUBST
19749
# Now quote all the things that may contain metacharacters while being
19750
# careful not to overquote the AC_SUBSTed values. We take copies of the
19751
# variables and quote the copies for generation of the libtool script.
19752
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19754
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19755
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19756
deplibs_check_method reload_flag reload_cmds need_locks \
19757
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19758
lt_cv_sys_global_symbol_to_c_name_address \
19759
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19760
old_postinstall_cmds old_postuninstall_cmds \
19764
lt_prog_compiler_wl_RC \
19765
lt_prog_compiler_pic_RC \
19766
lt_prog_compiler_static_RC \
19767
lt_prog_compiler_no_builtin_flag_RC \
19768
export_dynamic_flag_spec_RC \
19769
thread_safe_flag_spec_RC \
19770
whole_archive_flag_spec_RC \
19771
enable_shared_with_static_runtimes_RC \
19772
old_archive_cmds_RC \
19773
old_archive_from_new_cmds_RC \
19774
predep_objects_RC \
19775
postdep_objects_RC \
19778
compiler_lib_search_path_RC \
19780
archive_expsym_cmds_RC \
19781
postinstall_cmds_RC \
19782
postuninstall_cmds_RC \
19783
old_archive_from_expsyms_cmds_RC \
19784
allow_undefined_flag_RC \
19785
no_undefined_flag_RC \
19786
export_symbols_cmds_RC \
19787
hardcode_libdir_flag_spec_RC \
19788
hardcode_libdir_flag_spec_ld_RC \
19789
hardcode_libdir_separator_RC \
19790
hardcode_automatic_RC \
19792
module_expsym_cmds_RC \
19793
lt_cv_prog_compiler_c_o_RC \
19794
exclude_expsyms_RC \
19795
include_expsyms_RC; do
19798
old_archive_cmds_RC | \
19799
old_archive_from_new_cmds_RC | \
19800
archive_cmds_RC | \
19801
archive_expsym_cmds_RC | \
19803
module_expsym_cmds_RC | \
19804
old_archive_from_expsyms_cmds_RC | \
19805
export_symbols_cmds_RC | \
19806
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19807
postinstall_cmds | postuninstall_cmds | \
19808
old_postinstall_cmds | old_postuninstall_cmds | \
19809
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19810
# Double-quote double-evaled strings.
19811
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19814
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19820
*'\$0 --fallback-echo"')
19821
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19827
cat <<__EOF__ >> "$cfgfile"
19828
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19830
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19832
# Shell to use when invoking shell scripts.
19835
# Whether or not to build shared libraries.
19836
build_libtool_libs=$enable_shared
19838
# Whether or not to build static libraries.
19839
build_old_libs=$enable_static
19841
# Whether or not to add -lc for building shared libraries.
19842
build_libtool_need_lc=$archive_cmds_need_lc_RC
19844
# Whether or not to disallow shared libs when runtime libs are static
19845
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19847
# Whether or not to optimize for fast installation.
19848
fast_install=$enable_fast_install
19851
host_alias=$host_alias
19854
# An echo program that does not interpret backslashes.
19859
AR_FLAGS=$lt_AR_FLAGS
19864
# A language-specific compiler.
19867
# Is the compiler the GNU C compiler?
19873
# The linker used to build libraries.
19876
# Whether we need hard or soft links.
19879
# A BSD-compatible nm program.
19882
# A symbol stripping program
19885
# Used to examine libraries when file_magic_cmd begins "file"
19886
MAGIC_CMD=$MAGIC_CMD
19888
# Used on cygwin: DLL creation program.
19891
# Used on cygwin: object dumper.
19894
# Used on cygwin: assembler.
19897
# The name of the directory that contains temporary libtool files.
19900
# How to create reloadable object files.
19901
reload_flag=$lt_reload_flag
19902
reload_cmds=$lt_reload_cmds
19904
# How to pass a linker flag through the compiler.
19905
wl=$lt_lt_prog_compiler_wl_RC
19907
# Object file suffix (normally "o").
19908
objext="$ac_objext"
19910
# Old archive suffix (normally "a").
19913
# Shared library suffix (normally ".so").
19914
shrext_cmds='$shrext_cmds'
19916
# Executable file suffix (normally "").
19919
# Additional compiler flags for building library objects.
19920
pic_flag=$lt_lt_prog_compiler_pic_RC
19923
# What is the maximum length of a command?
19924
max_cmd_len=$lt_cv_sys_max_cmd_len
19926
# Does compiler simultaneously support -c and -o options?
19927
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19929
# Must we lock files when doing compilation ?
19930
need_locks=$lt_need_locks
19932
# Do we need the lib prefix for modules?
19933
need_lib_prefix=$need_lib_prefix
19935
# Do we need a version for libraries?
19936
need_version=$need_version
19938
# Whether dlopen is supported.
19939
dlopen_support=$enable_dlopen
19941
# Whether dlopen of programs is supported.
19942
dlopen_self=$enable_dlopen_self
19944
# Whether dlopen of statically linked programs is supported.
19945
dlopen_self_static=$enable_dlopen_self_static
19947
# Compiler flag to prevent dynamic linking.
19948
link_static_flag=$lt_lt_prog_compiler_static_RC
19950
# Compiler flag to turn off builtin functions.
19951
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19953
# Compiler flag to allow reflexive dlopens.
19954
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19956
# Compiler flag to generate shared objects directly from archives.
19957
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19959
# Compiler flag to generate thread-safe objects.
19960
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19962
# Library versioning type.
19963
version_type=$version_type
19965
# Format of library name prefix.
19966
libname_spec=$lt_libname_spec
19968
# List of archive names. First name is the real one, the rest are links.
19969
# The last name is the one that the linker finds with -lNAME.
19970
library_names_spec=$lt_library_names_spec
19972
# The coded name of the library, if different from the real name.
19973
soname_spec=$lt_soname_spec
19975
# Commands used to build and install an old-style archive.
19977
old_archive_cmds=$lt_old_archive_cmds_RC
19978
old_postinstall_cmds=$lt_old_postinstall_cmds
19979
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19981
# Create an old-style archive from a shared archive.
19982
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19984
# Create a temporary old-style archive to link instead of a shared archive.
19985
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19987
# Commands used to build and install a shared archive.
19988
archive_cmds=$lt_archive_cmds_RC
19989
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19990
postinstall_cmds=$lt_postinstall_cmds
19991
postuninstall_cmds=$lt_postuninstall_cmds
19993
# Commands used to build a loadable module (assumed same as above if empty)
19994
module_cmds=$lt_module_cmds_RC
19995
module_expsym_cmds=$lt_module_expsym_cmds_RC
19997
# Commands to strip libraries.
19998
old_striplib=$lt_old_striplib
19999
striplib=$lt_striplib
20001
# Dependencies to place before the objects being linked to create a
20003
predep_objects=$lt_predep_objects_RC
20005
# Dependencies to place after the objects being linked to create a
20007
postdep_objects=$lt_postdep_objects_RC
20009
# Dependencies to place before the objects being linked to create a
20011
predeps=$lt_predeps_RC
20013
# Dependencies to place after the objects being linked to create a
20015
postdeps=$lt_postdeps_RC
20017
# The library search path used internally by the compiler when linking
20018
# a shared library.
20019
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20021
# Method to check whether dependent libraries are shared objects.
20022
deplibs_check_method=$lt_deplibs_check_method
20024
# Command to use when deplibs_check_method == file_magic.
20025
file_magic_cmd=$lt_file_magic_cmd
20027
# Flag that allows shared libraries with undefined symbols to be built.
20028
allow_undefined_flag=$lt_allow_undefined_flag_RC
20030
# Flag that forces no undefined symbols.
20031
no_undefined_flag=$lt_no_undefined_flag_RC
20033
# Commands used to finish a libtool library installation in a directory.
20034
finish_cmds=$lt_finish_cmds
20036
# Same as above, but a single script fragment to be evaled but not shown.
20037
finish_eval=$lt_finish_eval
20039
# Take the output of nm and produce a listing of raw symbols and C names.
20040
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20042
# Transform the output of nm in a proper C declaration
20043
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20045
# Transform the output of nm in a C name address pair
20046
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20048
# This is the shared library runtime path variable.
20049
runpath_var=$runpath_var
20051
# This is the shared library path variable.
20052
shlibpath_var=$shlibpath_var
20054
# Is shlibpath searched before the hard-coded library search path?
20055
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20057
# How to hardcode a shared library path into an executable.
20058
hardcode_action=$hardcode_action_RC
20060
# Whether we should hardcode library paths into libraries.
20061
hardcode_into_libs=$hardcode_into_libs
20063
# Flag to hardcode \$libdir into a binary during linking.
20064
# This must work even if \$libdir does not exist.
20065
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20067
# If ld is used when linking, flag to hardcode \$libdir into
20068
# a binary during linking. This must work even if \$libdir does
20070
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20072
# Whether we need a single -rpath flag with a separated argument.
20073
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20075
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20076
# resulting binary.
20077
hardcode_direct=$hardcode_direct_RC
20079
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20080
# resulting binary.
20081
hardcode_minus_L=$hardcode_minus_L_RC
20083
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20084
# the resulting binary.
20085
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20087
# Set to yes if building a shared library automatically hardcodes DIR into the library
20088
# and all subsequent libraries and executables linked against it.
20089
hardcode_automatic=$hardcode_automatic_RC
20091
# Variables whose values should be saved in libtool wrapper scripts and
20092
# restored at relink time.
20093
variables_saved_for_relink="$variables_saved_for_relink"
20095
# Whether libtool must link a program against all its dependency libraries.
20096
link_all_deplibs=$link_all_deplibs_RC
20098
# Compile-time system search path for libraries
20099
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20101
# Run-time system search path for libraries
20102
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20104
# Fix the shell variable \$srcfile for the compiler.
20105
fix_srcfile_path="$fix_srcfile_path_RC"
20107
# Set to yes if exported symbols are required.
20108
always_export_symbols=$always_export_symbols_RC
20110
# The commands to list exported symbols.
20111
export_symbols_cmds=$lt_export_symbols_cmds_RC
20113
# The commands to extract the exported symbol list from a shared archive.
20114
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20116
# Symbols that should not be listed in the preloaded symbols.
20117
exclude_expsyms=$lt_exclude_expsyms_RC
20119
# Symbols that must always be exported.
20120
include_expsyms=$lt_include_expsyms_RC
20122
# ### END LIBTOOL TAG CONFIG: $tagname
20128
# If there is no Makefile yet, we rely on a make rule to execute
20129
# `config.status --recheck' to rerun these tests and create the
20130
# libtool script then.
20131
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20132
if test -f "$ltmain_in"; then
20133
test -f Makefile && make "$ltmain"
20139
ac_cpp='$CPP $CPPFLAGS'
20140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20149
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20150
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20151
{ (exit 1); exit 1; }; }
20155
# Append the new tag name to the list of available tags.
20156
if test -n "$tagname" ; then
20157
available_tags="$available_tags $tagname"
20163
# Now substitute the updated list of available tags.
20164
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20165
mv "${ofile}T" "$ofile"
20169
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20170
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20171
{ (exit 1); exit 1; }; }
6097
#AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
6104
#AC_CHECK_FUNCS(gettimeofday strdup strtoul)
6110
# Check whether --enable-usb or --disable-usb was given.
6111
if test "${enable_usb+set}" = set; then
6112
enableval="$enable_usb"
6113
case "${enableval}" in
6115
case "${build_os}" in
6116
linux-gnu) usb=true ;;
6117
*) echo "configure: warning: USB hotplug support only available on Linux" 1>&2
6123
*) { echo "configure: error: bad value ${enableval} for --enable-usb" 1>&2; exit 1; } ;;
6130
echo "$ac_t""enable linux usb capability: $usb" 1>&6
6134
if test x$usb = xtrue; then
6135
PCSC_LINUX_USB_TRUE=
6136
PCSC_LINUX_USB_FALSE='#'
6138
PCSC_LINUX_USB_TRUE='#'
6139
PCSC_LINUX_USB_FALSE=
6142
# Check whether --enable-threadsafe or --disable-threadsafe was given.
6143
if test "${enable_threadsafe+set}" = set; then
6144
enableval="$enable_threadsafe"
6145
case "${enableval}" in
6146
yes) threadsafe=true ;;
6147
no) threadsafe=false ;;
6148
*) { echo "configure: error: bad value ${enableval} for --enable-threadsafe" 1>&2; exit 1; } ;;
6155
echo "$ac_t""enable threadsafe client : $threadsafe" 1>&6
6159
if test x$threadsafe = xtrue; then
6161
PCSC_THR_SAFE_FALSE='#'
6163
PCSC_THR_SAFE_TRUE='#'
6164
PCSC_THR_SAFE_FALSE=
20204
#AC_SUBST(LIBTOOL_DEPS)
20206
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20207
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20208
if test "${ac_cv_header_stdc+set}" = set; then
20209
echo $ECHO_N "(cached) $ECHO_C" >&6
20211
cat >conftest.$ac_ext <<_ACEOF
20214
cat confdefs.h >>conftest.$ac_ext
20215
cat >>conftest.$ac_ext <<_ACEOF
20216
/* end confdefs.h. */
20217
#include <stdlib.h>
20218
#include <stdarg.h>
20219
#include <string.h>
20230
rm -f conftest.$ac_objext
20231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232
(eval $ac_compile) 2>conftest.er1
20234
grep -v '^ *+' conftest.er1 >conftest.err
20236
cat conftest.err >&5
20237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238
(exit $ac_status); } &&
20239
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20240
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241
(eval $ac_try) 2>&5
20243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244
(exit $ac_status); }; } &&
20245
{ ac_try='test -s conftest.$ac_objext'
20246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247
(eval $ac_try) 2>&5
20249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250
(exit $ac_status); }; }; then
20251
ac_cv_header_stdc=yes
20253
echo "$as_me: failed program was:" >&5
20254
sed 's/^/| /' conftest.$ac_ext >&5
20256
ac_cv_header_stdc=no
20258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20260
if test $ac_cv_header_stdc = yes; then
20261
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20262
cat >conftest.$ac_ext <<_ACEOF
20265
cat confdefs.h >>conftest.$ac_ext
20266
cat >>conftest.$ac_ext <<_ACEOF
20267
/* end confdefs.h. */
20268
#include <string.h>
20271
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20272
$EGREP "memchr" >/dev/null 2>&1; then
20275
ac_cv_header_stdc=no
20281
if test $ac_cv_header_stdc = yes; then
20282
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20283
cat >conftest.$ac_ext <<_ACEOF
20286
cat confdefs.h >>conftest.$ac_ext
20287
cat >>conftest.$ac_ext <<_ACEOF
20288
/* end confdefs.h. */
20289
#include <stdlib.h>
20292
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20293
$EGREP "free" >/dev/null 2>&1; then
20296
ac_cv_header_stdc=no
20302
if test $ac_cv_header_stdc = yes; then
20303
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20304
if test "$cross_compiling" = yes; then
20307
cat >conftest.$ac_ext <<_ACEOF
20310
cat confdefs.h >>conftest.$ac_ext
20311
cat >>conftest.$ac_ext <<_ACEOF
20312
/* end confdefs.h. */
20314
#if ((' ' & 0x0FF) == 0x020)
20315
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20316
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20318
# define ISLOWER(c) \
20319
(('a' <= (c) && (c) <= 'i') \
20320
|| ('j' <= (c) && (c) <= 'r') \
20321
|| ('s' <= (c) && (c) <= 'z'))
20322
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20325
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20330
for (i = 0; i < 256; i++)
20331
if (XOR (islower (i), ISLOWER (i))
20332
|| toupper (i) != TOUPPER (i))
20337
rm -f conftest$ac_exeext
20338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339
(eval $ac_link) 2>&5
20341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344
(eval $ac_try) 2>&5
20346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347
(exit $ac_status); }; }; then
20350
echo "$as_me: program exited with status $ac_status" >&5
20351
echo "$as_me: failed program was:" >&5
20352
sed 's/^/| /' conftest.$ac_ext >&5
20354
( exit $ac_status )
20355
ac_cv_header_stdc=no
20357
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20361
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20362
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20363
if test $ac_cv_header_stdc = yes; then
20365
cat >>confdefs.h <<\_ACEOF
20366
#define STDC_HEADERS 1
20371
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20372
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20373
if test "${ac_cv_header_sys_wait_h+set}" = set; then
20374
echo $ECHO_N "(cached) $ECHO_C" >&6
20376
cat >conftest.$ac_ext <<_ACEOF
20379
cat confdefs.h >>conftest.$ac_ext
20380
cat >>conftest.$ac_ext <<_ACEOF
20381
/* end confdefs.h. */
20382
#include <sys/types.h>
20383
#include <sys/wait.h>
20384
#ifndef WEXITSTATUS
20385
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20388
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20396
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20401
rm -f conftest.$ac_objext
20402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403
(eval $ac_compile) 2>conftest.er1
20405
grep -v '^ *+' conftest.er1 >conftest.err
20407
cat conftest.err >&5
20408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409
(exit $ac_status); } &&
20410
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412
(eval $ac_try) 2>&5
20414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415
(exit $ac_status); }; } &&
20416
{ ac_try='test -s conftest.$ac_objext'
20417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418
(eval $ac_try) 2>&5
20420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421
(exit $ac_status); }; }; then
20422
ac_cv_header_sys_wait_h=yes
20424
echo "$as_me: failed program was:" >&5
20425
sed 's/^/| /' conftest.$ac_ext >&5
20427
ac_cv_header_sys_wait_h=no
20429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20432
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20433
if test $ac_cv_header_sys_wait_h = yes; then
20435
cat >>confdefs.h <<\_ACEOF
20436
#define HAVE_SYS_WAIT_H 1
20456
for ac_header in dirent.h dl.h dlfcn.h errno.h fcntl.h getopt.h malloc.h stdlib.h string.h strings.h sys/filio.h sys/time.h syslog.h unistd.h smartcard/scf.h
20458
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20459
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20460
echo "$as_me:$LINENO: checking for $ac_header" >&5
20461
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20462
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20463
echo $ECHO_N "(cached) $ECHO_C" >&6
20465
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20466
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20468
# Is the header compilable?
20469
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20470
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20471
cat >conftest.$ac_ext <<_ACEOF
20474
cat confdefs.h >>conftest.$ac_ext
20475
cat >>conftest.$ac_ext <<_ACEOF
20476
/* end confdefs.h. */
20477
$ac_includes_default
20478
#include <$ac_header>
20480
rm -f conftest.$ac_objext
20481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482
(eval $ac_compile) 2>conftest.er1
20484
grep -v '^ *+' conftest.er1 >conftest.err
20486
cat conftest.err >&5
20487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488
(exit $ac_status); } &&
20489
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491
(eval $ac_try) 2>&5
20493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494
(exit $ac_status); }; } &&
20495
{ ac_try='test -s conftest.$ac_objext'
20496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497
(eval $ac_try) 2>&5
20499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500
(exit $ac_status); }; }; then
20501
ac_header_compiler=yes
20503
echo "$as_me: failed program was:" >&5
20504
sed 's/^/| /' conftest.$ac_ext >&5
20506
ac_header_compiler=no
20508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20509
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20510
echo "${ECHO_T}$ac_header_compiler" >&6
20512
# Is the header present?
20513
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20514
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20515
cat >conftest.$ac_ext <<_ACEOF
20518
cat confdefs.h >>conftest.$ac_ext
20519
cat >>conftest.$ac_ext <<_ACEOF
20520
/* end confdefs.h. */
20521
#include <$ac_header>
20523
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20524
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20526
grep -v '^ *+' conftest.er1 >conftest.err
20528
cat conftest.err >&5
20529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530
(exit $ac_status); } >/dev/null; then
20531
if test -s conftest.err; then
20532
ac_cpp_err=$ac_c_preproc_warn_flag
20533
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20540
if test -z "$ac_cpp_err"; then
20541
ac_header_preproc=yes
20543
echo "$as_me: failed program was:" >&5
20544
sed 's/^/| /' conftest.$ac_ext >&5
20546
ac_header_preproc=no
20548
rm -f conftest.err conftest.$ac_ext
20549
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20550
echo "${ECHO_T}$ac_header_preproc" >&6
20552
# So? What about this header?
20553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20555
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20556
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20557
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20558
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20559
ac_header_preproc=yes
20562
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20563
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20564
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20565
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20566
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20567
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20568
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20569
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20570
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20571
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20572
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20573
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20576
## ------------------------------------------ ##
20577
## Report this to the AC_PACKAGE_NAME lists. ##
20578
## ------------------------------------------ ##
20581
sed "s/^/$as_me: WARNING: /" >&2
20584
echo "$as_me:$LINENO: checking for $ac_header" >&5
20585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20586
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20587
echo $ECHO_N "(cached) $ECHO_C" >&6
20589
eval "$as_ac_Header=\$ac_header_preproc"
20591
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20592
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20595
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20596
cat >>confdefs.h <<_ACEOF
20597
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20605
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20606
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20607
if test "${ac_cv_c_const+set}" = set; then
20608
echo $ECHO_N "(cached) $ECHO_C" >&6
20610
cat >conftest.$ac_ext <<_ACEOF
20613
cat confdefs.h >>conftest.$ac_ext
20614
cat >>conftest.$ac_ext <<_ACEOF
20615
/* end confdefs.h. */
20620
/* FIXME: Include the comments suggested by Paul. */
20621
#ifndef __cplusplus
20622
/* Ultrix mips cc rejects this. */
20623
typedef int charset[2];
20625
/* SunOS 4.1.1 cc rejects this. */
20626
char const *const *ccp;
20628
/* NEC SVR4.0.2 mips cc rejects this. */
20629
struct point {int x, y;};
20630
static struct point const zero = {0,0};
20631
/* AIX XL C 1.02.0.0 rejects this.
20632
It does not let you subtract one const X* pointer from another in
20633
an arm of an if-expression whose if-part is not a constant
20635
const char *g = "string";
20636
ccp = &g + (g ? g-g : 0);
20637
/* HPUX 7.0 cc rejects these. */
20640
ccp = (char const *const *) p;
20641
{ /* SCO 3.2v4 cc rejects this. */
20643
char const *s = 0 ? (char *) 0 : (char const *) 0;
20647
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20648
int x[] = {25, 17};
20649
const int *foo = &x[0];
20652
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20653
typedef const int *iptr;
20657
{ /* AIX XL C 1.02.0.0 rejects this saying
20658
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20659
struct s { int j; const int *ap[3]; };
20660
struct s *b; b->j = 5;
20662
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20663
const int foo = 10;
20671
rm -f conftest.$ac_objext
20672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20673
(eval $ac_compile) 2>conftest.er1
20675
grep -v '^ *+' conftest.er1 >conftest.err
20677
cat conftest.err >&5
20678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679
(exit $ac_status); } &&
20680
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682
(eval $ac_try) 2>&5
20684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685
(exit $ac_status); }; } &&
20686
{ ac_try='test -s conftest.$ac_objext'
20687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688
(eval $ac_try) 2>&5
20690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691
(exit $ac_status); }; }; then
20694
echo "$as_me: failed program was:" >&5
20695
sed 's/^/| /' conftest.$ac_ext >&5
20699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20701
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20702
echo "${ECHO_T}$ac_cv_c_const" >&6
20703
if test $ac_cv_c_const = no; then
20705
cat >>confdefs.h <<\_ACEOF
20711
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20712
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20713
if test "${ac_cv_type_uid_t+set}" = set; then
20714
echo $ECHO_N "(cached) $ECHO_C" >&6
20716
cat >conftest.$ac_ext <<_ACEOF
20719
cat confdefs.h >>conftest.$ac_ext
20720
cat >>conftest.$ac_ext <<_ACEOF
20721
/* end confdefs.h. */
20722
#include <sys/types.h>
20725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20726
$EGREP "uid_t" >/dev/null 2>&1; then
20727
ac_cv_type_uid_t=yes
20729
ac_cv_type_uid_t=no
20734
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20735
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20736
if test $ac_cv_type_uid_t = no; then
20738
cat >>confdefs.h <<\_ACEOF
20743
cat >>confdefs.h <<\_ACEOF
20749
echo "$as_me:$LINENO: checking for size_t" >&5
20750
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20751
if test "${ac_cv_type_size_t+set}" = set; then
20752
echo $ECHO_N "(cached) $ECHO_C" >&6
20754
cat >conftest.$ac_ext <<_ACEOF
20757
cat confdefs.h >>conftest.$ac_ext
20758
cat >>conftest.$ac_ext <<_ACEOF
20759
/* end confdefs.h. */
20760
$ac_includes_default
20766
if (sizeof (size_t))
20772
rm -f conftest.$ac_objext
20773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774
(eval $ac_compile) 2>conftest.er1
20776
grep -v '^ *+' conftest.er1 >conftest.err
20778
cat conftest.err >&5
20779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780
(exit $ac_status); } &&
20781
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783
(eval $ac_try) 2>&5
20785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786
(exit $ac_status); }; } &&
20787
{ ac_try='test -s conftest.$ac_objext'
20788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789
(eval $ac_try) 2>&5
20791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792
(exit $ac_status); }; }; then
20793
ac_cv_type_size_t=yes
20795
echo "$as_me: failed program was:" >&5
20796
sed 's/^/| /' conftest.$ac_ext >&5
20798
ac_cv_type_size_t=no
20800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20802
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20803
echo "${ECHO_T}$ac_cv_type_size_t" >&6
20804
if test $ac_cv_type_size_t = yes; then
20808
cat >>confdefs.h <<_ACEOF
20809
#define size_t unsigned
20814
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20815
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20816
if test "${ac_cv_header_time+set}" = set; then
20817
echo $ECHO_N "(cached) $ECHO_C" >&6
20819
cat >conftest.$ac_ext <<_ACEOF
20822
cat confdefs.h >>conftest.$ac_ext
20823
cat >>conftest.$ac_ext <<_ACEOF
20824
/* end confdefs.h. */
20825
#include <sys/types.h>
20826
#include <sys/time.h>
20832
if ((struct tm *) 0)
20838
rm -f conftest.$ac_objext
20839
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840
(eval $ac_compile) 2>conftest.er1
20842
grep -v '^ *+' conftest.er1 >conftest.err
20844
cat conftest.err >&5
20845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846
(exit $ac_status); } &&
20847
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849
(eval $ac_try) 2>&5
20851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852
(exit $ac_status); }; } &&
20853
{ ac_try='test -s conftest.$ac_objext'
20854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855
(eval $ac_try) 2>&5
20857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858
(exit $ac_status); }; }; then
20859
ac_cv_header_time=yes
20861
echo "$as_me: failed program was:" >&5
20862
sed 's/^/| /' conftest.$ac_ext >&5
20864
ac_cv_header_time=no
20866
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20868
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20869
echo "${ECHO_T}$ac_cv_header_time" >&6
20870
if test $ac_cv_header_time = yes; then
20872
cat >>confdefs.h <<\_ACEOF
20873
#define TIME_WITH_SYS_TIME 1
20879
echo "$as_me:$LINENO: checking for error_at_line" >&5
20880
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
20881
if test "${ac_cv_lib_error_at_line+set}" = set; then
20882
echo $ECHO_N "(cached) $ECHO_C" >&6
20884
cat >conftest.$ac_ext <<_ACEOF
20887
cat confdefs.h >>conftest.$ac_ext
20888
cat >>conftest.$ac_ext <<_ACEOF
20889
/* end confdefs.h. */
20890
$ac_includes_default
20894
error_at_line (0, 0, "", 0, "");
20899
rm -f conftest.$ac_objext conftest$ac_exeext
20900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901
(eval $ac_link) 2>conftest.er1
20903
grep -v '^ *+' conftest.er1 >conftest.err
20905
cat conftest.err >&5
20906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907
(exit $ac_status); } &&
20908
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910
(eval $ac_try) 2>&5
20912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913
(exit $ac_status); }; } &&
20914
{ ac_try='test -s conftest$ac_exeext'
20915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916
(eval $ac_try) 2>&5
20918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919
(exit $ac_status); }; }; then
20920
ac_cv_lib_error_at_line=yes
20922
echo "$as_me: failed program was:" >&5
20923
sed 's/^/| /' conftest.$ac_ext >&5
20925
ac_cv_lib_error_at_line=no
20927
rm -f conftest.err conftest.$ac_objext \
20928
conftest$ac_exeext conftest.$ac_ext
20930
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20931
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
20932
if test $ac_cv_lib_error_at_line = no; then
20934
"error.$ac_objext" | \
20935
*" error.$ac_objext" | \
20936
"error.$ac_objext "* | \
20937
*" error.$ac_objext "* ) ;;
20938
*) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
20943
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20944
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20945
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20946
echo $ECHO_N "(cached) $ECHO_C" >&6
20948
rm -f conftest.sym conftest.file
20949
echo >conftest.file
20950
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20951
if test "$cross_compiling" = yes; then
20952
ac_cv_func_lstat_dereferences_slashed_symlink=no
20954
cat >conftest.$ac_ext <<_ACEOF
20957
cat confdefs.h >>conftest.$ac_ext
20958
cat >>conftest.$ac_ext <<_ACEOF
20959
/* end confdefs.h. */
20960
$ac_includes_default
20965
/* Linux will dereference the symlink and fail.
20966
That is better in the sense that it means we will not
20967
have to compile and use the lstat wrapper. */
20968
exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20973
rm -f conftest$ac_exeext
20974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20975
(eval $ac_link) 2>&5
20977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980
(eval $ac_try) 2>&5
20982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983
(exit $ac_status); }; }; then
20984
ac_cv_func_lstat_dereferences_slashed_symlink=yes
20986
echo "$as_me: program exited with status $ac_status" >&5
20987
echo "$as_me: failed program was:" >&5
20988
sed 's/^/| /' conftest.$ac_ext >&5
20990
( exit $ac_status )
20991
ac_cv_func_lstat_dereferences_slashed_symlink=no
20993
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996
# If the `ln -s' command failed, then we probably don't even
20997
# have an lstat function.
20998
ac_cv_func_lstat_dereferences_slashed_symlink=no
21000
rm -f conftest.sym conftest.file
21003
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21004
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21006
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21008
cat >>confdefs.h <<_ACEOF
21009
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21013
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21015
"lstat.$ac_objext" | \
21016
*" lstat.$ac_objext" | \
21017
"lstat.$ac_objext "* | \
21018
*" lstat.$ac_objext "* ) ;;
21019
*) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
21024
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21025
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21026
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21027
echo $ECHO_N "(cached) $ECHO_C" >&6
21029
if test "$cross_compiling" = yes; then
21030
ac_cv_func_stat_empty_string_bug=yes
21032
cat >conftest.$ac_ext <<_ACEOF
21035
cat confdefs.h >>conftest.$ac_ext
21036
cat >>conftest.$ac_ext <<_ACEOF
21037
/* end confdefs.h. */
21038
$ac_includes_default
21043
exit (stat ("", &sbuf) ? 1 : 0);
21048
rm -f conftest$ac_exeext
21049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050
(eval $ac_link) 2>&5
21052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055
(eval $ac_try) 2>&5
21057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058
(exit $ac_status); }; }; then
21059
ac_cv_func_stat_empty_string_bug=yes
21061
echo "$as_me: program exited with status $ac_status" >&5
21062
echo "$as_me: failed program was:" >&5
21063
sed 's/^/| /' conftest.$ac_ext >&5
21065
( exit $ac_status )
21066
ac_cv_func_stat_empty_string_bug=no
21068
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21072
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
21073
if test $ac_cv_func_stat_empty_string_bug = yes; then
21075
"stat.$ac_objext" | \
21076
*" stat.$ac_objext" | \
21077
"stat.$ac_objext "* | \
21078
*" stat.$ac_objext "* ) ;;
21079
*) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
21083
cat >>confdefs.h <<_ACEOF
21084
#define HAVE_STAT_EMPTY_STRING_BUG 1
21090
for ac_func in vprintf
21092
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21093
echo "$as_me:$LINENO: checking for $ac_func" >&5
21094
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21095
if eval "test \"\${$as_ac_var+set}\" = set"; then
21096
echo $ECHO_N "(cached) $ECHO_C" >&6
21098
cat >conftest.$ac_ext <<_ACEOF
21101
cat confdefs.h >>conftest.$ac_ext
21102
cat >>conftest.$ac_ext <<_ACEOF
21103
/* end confdefs.h. */
21104
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21105
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21106
#define $ac_func innocuous_$ac_func
21108
/* System header to define __stub macros and hopefully few prototypes,
21109
which can conflict with char $ac_func (); below.
21110
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21111
<limits.h> exists even on freestanding compilers. */
21114
# include <limits.h>
21116
# include <assert.h>
21121
/* Override any gcc2 internal prototype to avoid an error. */
21126
/* We use char because int might match the return type of a gcc2
21127
builtin and then its argument prototype would still apply. */
21129
/* The GNU C library defines this for functions which it implements
21130
to always fail with ENOSYS. Some functions are actually named
21131
something starting with __ and the normal name is an alias. */
21132
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21135
char (*f) () = $ac_func;
21144
return f != $ac_func;
21149
rm -f conftest.$ac_objext conftest$ac_exeext
21150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21151
(eval $ac_link) 2>conftest.er1
21153
grep -v '^ *+' conftest.er1 >conftest.err
21155
cat conftest.err >&5
21156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157
(exit $ac_status); } &&
21158
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160
(eval $ac_try) 2>&5
21162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163
(exit $ac_status); }; } &&
21164
{ ac_try='test -s conftest$ac_exeext'
21165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166
(eval $ac_try) 2>&5
21168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169
(exit $ac_status); }; }; then
21170
eval "$as_ac_var=yes"
21172
echo "$as_me: failed program was:" >&5
21173
sed 's/^/| /' conftest.$ac_ext >&5
21175
eval "$as_ac_var=no"
21177
rm -f conftest.err conftest.$ac_objext \
21178
conftest$ac_exeext conftest.$ac_ext
21180
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21181
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21182
if test `eval echo '${'$as_ac_var'}'` = yes; then
21183
cat >>confdefs.h <<_ACEOF
21184
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21187
echo "$as_me:$LINENO: checking for _doprnt" >&5
21188
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21189
if test "${ac_cv_func__doprnt+set}" = set; then
21190
echo $ECHO_N "(cached) $ECHO_C" >&6
21192
cat >conftest.$ac_ext <<_ACEOF
21195
cat confdefs.h >>conftest.$ac_ext
21196
cat >>conftest.$ac_ext <<_ACEOF
21197
/* end confdefs.h. */
21198
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21199
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21200
#define _doprnt innocuous__doprnt
21202
/* System header to define __stub macros and hopefully few prototypes,
21203
which can conflict with char _doprnt (); below.
21204
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21205
<limits.h> exists even on freestanding compilers. */
21208
# include <limits.h>
21210
# include <assert.h>
21215
/* Override any gcc2 internal prototype to avoid an error. */
21220
/* We use char because int might match the return type of a gcc2
21221
builtin and then its argument prototype would still apply. */
21223
/* The GNU C library defines this for functions which it implements
21224
to always fail with ENOSYS. Some functions are actually named
21225
something starting with __ and the normal name is an alias. */
21226
#if defined (__stub__doprnt) || defined (__stub____doprnt)
21229
char (*f) () = _doprnt;
21238
return f != _doprnt;
21243
rm -f conftest.$ac_objext conftest$ac_exeext
21244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21245
(eval $ac_link) 2>conftest.er1
21247
grep -v '^ *+' conftest.er1 >conftest.err
21249
cat conftest.err >&5
21250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251
(exit $ac_status); } &&
21252
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254
(eval $ac_try) 2>&5
21256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257
(exit $ac_status); }; } &&
21258
{ ac_try='test -s conftest$ac_exeext'
21259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260
(eval $ac_try) 2>&5
21262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263
(exit $ac_status); }; }; then
21264
ac_cv_func__doprnt=yes
21266
echo "$as_me: failed program was:" >&5
21267
sed 's/^/| /' conftest.$ac_ext >&5
21269
ac_cv_func__doprnt=no
21271
rm -f conftest.err conftest.$ac_objext \
21272
conftest$ac_exeext conftest.$ac_ext
21274
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21275
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21276
if test $ac_cv_func__doprnt = yes; then
21278
cat >>confdefs.h <<\_ACEOF
21279
#define HAVE_DOPRNT 1
21295
for ac_func in daemon flock getopt_long nanosleep strerror strncpy vsnprintf
21297
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21298
echo "$as_me:$LINENO: checking for $ac_func" >&5
21299
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21300
if eval "test \"\${$as_ac_var+set}\" = set"; then
21301
echo $ECHO_N "(cached) $ECHO_C" >&6
21303
cat >conftest.$ac_ext <<_ACEOF
21306
cat confdefs.h >>conftest.$ac_ext
21307
cat >>conftest.$ac_ext <<_ACEOF
21308
/* end confdefs.h. */
21309
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21310
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21311
#define $ac_func innocuous_$ac_func
21313
/* System header to define __stub macros and hopefully few prototypes,
21314
which can conflict with char $ac_func (); below.
21315
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21316
<limits.h> exists even on freestanding compilers. */
21319
# include <limits.h>
21321
# include <assert.h>
21326
/* Override any gcc2 internal prototype to avoid an error. */
21331
/* We use char because int might match the return type of a gcc2
21332
builtin and then its argument prototype would still apply. */
21334
/* The GNU C library defines this for functions which it implements
21335
to always fail with ENOSYS. Some functions are actually named
21336
something starting with __ and the normal name is an alias. */
21337
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21340
char (*f) () = $ac_func;
21349
return f != $ac_func;
21354
rm -f conftest.$ac_objext conftest$ac_exeext
21355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21356
(eval $ac_link) 2>conftest.er1
21358
grep -v '^ *+' conftest.er1 >conftest.err
21360
cat conftest.err >&5
21361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362
(exit $ac_status); } &&
21363
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365
(eval $ac_try) 2>&5
21367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368
(exit $ac_status); }; } &&
21369
{ ac_try='test -s conftest$ac_exeext'
21370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371
(eval $ac_try) 2>&5
21373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374
(exit $ac_status); }; }; then
21375
eval "$as_ac_var=yes"
21377
echo "$as_me: failed program was:" >&5
21378
sed 's/^/| /' conftest.$ac_ext >&5
21380
eval "$as_ac_var=no"
21382
rm -f conftest.err conftest.$ac_objext \
21383
conftest$ac_exeext conftest.$ac_ext
21385
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21386
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21387
if test `eval echo '${'$as_ac_var'}'` = yes; then
21388
cat >>confdefs.h <<_ACEOF
21389
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21396
echo "$as_me:$LINENO: checking for inline" >&5
21397
echo $ECHO_N "checking for inline... $ECHO_C" >&6
21398
if test "${ac_cv_c_inline+set}" = set; then
21399
echo $ECHO_N "(cached) $ECHO_C" >&6
21402
for ac_kw in inline __inline__ __inline; do
21403
cat >conftest.$ac_ext <<_ACEOF
21406
cat confdefs.h >>conftest.$ac_ext
21407
cat >>conftest.$ac_ext <<_ACEOF
21408
/* end confdefs.h. */
21409
#ifndef __cplusplus
21411
static $ac_kw foo_t static_foo () {return 0; }
21412
$ac_kw foo_t foo () {return 0; }
21416
rm -f conftest.$ac_objext
21417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21418
(eval $ac_compile) 2>conftest.er1
21420
grep -v '^ *+' conftest.er1 >conftest.err
21422
cat conftest.err >&5
21423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424
(exit $ac_status); } &&
21425
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427
(eval $ac_try) 2>&5
21429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430
(exit $ac_status); }; } &&
21431
{ ac_try='test -s conftest.$ac_objext'
21432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433
(eval $ac_try) 2>&5
21435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436
(exit $ac_status); }; }; then
21437
ac_cv_c_inline=$ac_kw; break
21439
echo "$as_me: failed program was:" >&5
21440
sed 's/^/| /' conftest.$ac_ext >&5
21443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21447
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21448
echo "${ECHO_T}$ac_cv_c_inline" >&6
21451
case $ac_cv_c_inline in
21454
case $ac_cv_c_inline in
21456
*) ac_val=$ac_cv_c_inline;;
21458
cat >>confdefs.h <<_ACEOF
21459
#ifndef __cplusplus
21460
#define inline $ac_val
21466
if test "$GCC" = "yes"; then
21467
CFLAGS="-Wall -fno-common $CFLAGS"
21471
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21472
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21473
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21474
echo $ECHO_N "(cached) $ECHO_C" >&6
21476
ac_check_lib_save_LIBS=$LIBS
21478
cat >conftest.$ac_ext <<_ACEOF
21481
cat confdefs.h >>conftest.$ac_ext
21482
cat >>conftest.$ac_ext <<_ACEOF
21483
/* end confdefs.h. */
21485
/* Override any gcc2 internal prototype to avoid an error. */
21489
/* We use char because int might match the return type of a gcc2
21490
builtin and then its argument prototype would still apply. */
21500
rm -f conftest.$ac_objext conftest$ac_exeext
21501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21502
(eval $ac_link) 2>conftest.er1
21504
grep -v '^ *+' conftest.er1 >conftest.err
21506
cat conftest.err >&5
21507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508
(exit $ac_status); } &&
21509
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511
(eval $ac_try) 2>&5
21513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514
(exit $ac_status); }; } &&
21515
{ ac_try='test -s conftest$ac_exeext'
21516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517
(eval $ac_try) 2>&5
21519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520
(exit $ac_status); }; }; then
21521
ac_cv_lib_dl_dlopen=yes
21523
echo "$as_me: failed program was:" >&5
21524
sed 's/^/| /' conftest.$ac_ext >&5
21526
ac_cv_lib_dl_dlopen=no
21528
rm -f conftest.err conftest.$ac_objext \
21529
conftest$ac_exeext conftest.$ac_ext
21530
LIBS=$ac_check_lib_save_LIBS
21532
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21533
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21534
if test $ac_cv_lib_dl_dlopen = yes; then
21535
LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes
21537
ac_cv_func_dlopen_ldl=no
21548
cat >>confdefs.h <<_ACEOF
21549
#define PCSC_ARCH "$uname"
21553
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
21554
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
21555
if test "${ac_cv_lib_socket_socket+set}" = set; then
21556
echo $ECHO_N "(cached) $ECHO_C" >&6
21558
ac_check_lib_save_LIBS=$LIBS
21559
LIBS="-lsocket $LIBS"
21560
cat >conftest.$ac_ext <<_ACEOF
21563
cat confdefs.h >>conftest.$ac_ext
21564
cat >>conftest.$ac_ext <<_ACEOF
21565
/* end confdefs.h. */
21567
/* Override any gcc2 internal prototype to avoid an error. */
21571
/* We use char because int might match the return type of a gcc2
21572
builtin and then its argument prototype would still apply. */
21582
rm -f conftest.$ac_objext conftest$ac_exeext
21583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584
(eval $ac_link) 2>conftest.er1
21586
grep -v '^ *+' conftest.er1 >conftest.err
21588
cat conftest.err >&5
21589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590
(exit $ac_status); } &&
21591
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593
(eval $ac_try) 2>&5
21595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596
(exit $ac_status); }; } &&
21597
{ ac_try='test -s conftest$ac_exeext'
21598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599
(eval $ac_try) 2>&5
21601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602
(exit $ac_status); }; }; then
21603
ac_cv_lib_socket_socket=yes
21605
echo "$as_me: failed program was:" >&5
21606
sed 's/^/| /' conftest.$ac_ext >&5
21608
ac_cv_lib_socket_socket=no
21610
rm -f conftest.err conftest.$ac_objext \
21611
conftest$ac_exeext conftest.$ac_ext
21612
LIBS=$ac_check_lib_save_LIBS
21614
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
21615
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
21616
if test $ac_cv_lib_socket_socket = yes; then
21617
LIBS="$LIBS -lsocket"
21622
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
21623
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
21624
if test "${ac_cv_lib_l_yywrap+set}" = set; then
21625
echo $ECHO_N "(cached) $ECHO_C" >&6
21627
ac_check_lib_save_LIBS=$LIBS
21629
cat >conftest.$ac_ext <<_ACEOF
21632
cat confdefs.h >>conftest.$ac_ext
21633
cat >>conftest.$ac_ext <<_ACEOF
21634
/* end confdefs.h. */
21636
/* Override any gcc2 internal prototype to avoid an error. */
21640
/* We use char because int might match the return type of a gcc2
21641
builtin and then its argument prototype would still apply. */
21651
rm -f conftest.$ac_objext conftest$ac_exeext
21652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21653
(eval $ac_link) 2>conftest.er1
21655
grep -v '^ *+' conftest.er1 >conftest.err
21657
cat conftest.err >&5
21658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659
(exit $ac_status); } &&
21660
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662
(eval $ac_try) 2>&5
21664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665
(exit $ac_status); }; } &&
21666
{ ac_try='test -s conftest$ac_exeext'
21667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668
(eval $ac_try) 2>&5
21670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671
(exit $ac_status); }; }; then
21672
ac_cv_lib_l_yywrap=yes
21674
echo "$as_me: failed program was:" >&5
21675
sed 's/^/| /' conftest.$ac_ext >&5
21677
ac_cv_lib_l_yywrap=no
21679
rm -f conftest.err conftest.$ac_objext \
21680
conftest$ac_exeext conftest.$ac_ext
21681
LIBS=$ac_check_lib_save_LIBS
21683
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
21684
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
21685
if test $ac_cv_lib_l_yywrap = yes; then
21688
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
21689
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
21690
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
21691
echo $ECHO_N "(cached) $ECHO_C" >&6
21693
ac_check_lib_save_LIBS=$LIBS
21695
cat >conftest.$ac_ext <<_ACEOF
21698
cat confdefs.h >>conftest.$ac_ext
21699
cat >>conftest.$ac_ext <<_ACEOF
21700
/* end confdefs.h. */
21702
/* Override any gcc2 internal prototype to avoid an error. */
21706
/* We use char because int might match the return type of a gcc2
21707
builtin and then its argument prototype would still apply. */
21717
rm -f conftest.$ac_objext conftest$ac_exeext
21718
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21719
(eval $ac_link) 2>conftest.er1
21721
grep -v '^ *+' conftest.er1 >conftest.err
21723
cat conftest.err >&5
21724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725
(exit $ac_status); } &&
21726
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728
(eval $ac_try) 2>&5
21730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731
(exit $ac_status); }; } &&
21732
{ ac_try='test -s conftest$ac_exeext'
21733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734
(eval $ac_try) 2>&5
21736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737
(exit $ac_status); }; }; then
21738
ac_cv_lib_fl_yywrap=yes
21740
echo "$as_me: failed program was:" >&5
21741
sed 's/^/| /' conftest.$ac_ext >&5
21743
ac_cv_lib_fl_yywrap=no
21745
rm -f conftest.err conftest.$ac_objext \
21746
conftest$ac_exeext conftest.$ac_ext
21747
LIBS=$ac_check_lib_save_LIBS
21749
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
21750
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
21751
if test $ac_cv_lib_fl_yywrap = yes; then
21752
LIBFL="$LIBFL -lfl"
21759
# Check whether --enable-libusb or --disable-libusb was given.
21760
if test "${enable_libusb+set}" = set; then
21761
enableval="$enable_libusb"
21763
case ${enableval} in
21764
"" | "yes" | "YES")
21771
libusb_prefix=${enableval}
21772
echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
21773
echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6
21774
if test "${ac_cv_lib_usb_usb_init+set}" = set; then
21775
echo $ECHO_N "(cached) $ECHO_C" >&6
21777
ac_check_lib_save_LIBS=$LIBS
21778
LIBS="-lusb "-L${libusb_prefix}/lib" $LIBS"
21779
cat >conftest.$ac_ext <<_ACEOF
21782
cat confdefs.h >>conftest.$ac_ext
21783
cat >>conftest.$ac_ext <<_ACEOF
21784
/* end confdefs.h. */
21786
/* Override any gcc2 internal prototype to avoid an error. */
21790
/* We use char because int might match the return type of a gcc2
21791
builtin and then its argument prototype would still apply. */
21801
rm -f conftest.$ac_objext conftest$ac_exeext
21802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21803
(eval $ac_link) 2>conftest.er1
21805
grep -v '^ *+' conftest.er1 >conftest.err
21807
cat conftest.err >&5
21808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809
(exit $ac_status); } &&
21810
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812
(eval $ac_try) 2>&5
21814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815
(exit $ac_status); }; } &&
21816
{ ac_try='test -s conftest$ac_exeext'
21817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818
(eval $ac_try) 2>&5
21820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821
(exit $ac_status); }; }; then
21822
ac_cv_lib_usb_usb_init=yes
21824
echo "$as_me: failed program was:" >&5
21825
sed 's/^/| /' conftest.$ac_ext >&5
21827
ac_cv_lib_usb_usb_init=no
21829
rm -f conftest.err conftest.$ac_objext \
21830
conftest$ac_exeext conftest.$ac_ext
21831
LIBS=$ac_check_lib_save_LIBS
21833
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
21834
echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6
21835
if test $ac_cv_lib_usb_usb_init = yes; then
21836
LIBUSB="$LIBUSB -lusb" use_libusb=true
21842
for ac_header in ${libusb_prefix}/include/usb.h
21844
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21845
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21846
echo "$as_me:$LINENO: checking for $ac_header" >&5
21847
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21848
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21849
echo $ECHO_N "(cached) $ECHO_C" >&6
21851
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21852
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21854
# Is the header compilable?
21855
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21856
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21857
cat >conftest.$ac_ext <<_ACEOF
21860
cat confdefs.h >>conftest.$ac_ext
21861
cat >>conftest.$ac_ext <<_ACEOF
21862
/* end confdefs.h. */
21863
$ac_includes_default
21864
#include <$ac_header>
21866
rm -f conftest.$ac_objext
21867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868
(eval $ac_compile) 2>conftest.er1
21870
grep -v '^ *+' conftest.er1 >conftest.err
21872
cat conftest.err >&5
21873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874
(exit $ac_status); } &&
21875
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877
(eval $ac_try) 2>&5
21879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880
(exit $ac_status); }; } &&
21881
{ ac_try='test -s conftest.$ac_objext'
21882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883
(eval $ac_try) 2>&5
21885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886
(exit $ac_status); }; }; then
21887
ac_header_compiler=yes
21889
echo "$as_me: failed program was:" >&5
21890
sed 's/^/| /' conftest.$ac_ext >&5
21892
ac_header_compiler=no
21894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21895
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21896
echo "${ECHO_T}$ac_header_compiler" >&6
21898
# Is the header present?
21899
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21900
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21901
cat >conftest.$ac_ext <<_ACEOF
21904
cat confdefs.h >>conftest.$ac_ext
21905
cat >>conftest.$ac_ext <<_ACEOF
21906
/* end confdefs.h. */
21907
#include <$ac_header>
21909
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21910
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21912
grep -v '^ *+' conftest.er1 >conftest.err
21914
cat conftest.err >&5
21915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916
(exit $ac_status); } >/dev/null; then
21917
if test -s conftest.err; then
21918
ac_cpp_err=$ac_c_preproc_warn_flag
21919
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21926
if test -z "$ac_cpp_err"; then
21927
ac_header_preproc=yes
21929
echo "$as_me: failed program was:" >&5
21930
sed 's/^/| /' conftest.$ac_ext >&5
21932
ac_header_preproc=no
21934
rm -f conftest.err conftest.$ac_ext
21935
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21936
echo "${ECHO_T}$ac_header_preproc" >&6
21938
# So? What about this header?
21939
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21941
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21942
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21943
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21944
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21945
ac_header_preproc=yes
21948
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21949
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21950
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21951
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21952
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21953
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21954
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21955
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21956
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21957
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21958
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21959
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21962
## ------------------------------------------ ##
21963
## Report this to the AC_PACKAGE_NAME lists. ##
21964
## ------------------------------------------ ##
21967
sed "s/^/$as_me: WARNING: /" >&2
21970
echo "$as_me:$LINENO: checking for $ac_header" >&5
21971
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21972
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21973
echo $ECHO_N "(cached) $ECHO_C" >&6
21975
eval "$as_ac_Header=\$ac_header_preproc"
21977
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21978
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21981
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21982
cat >>confdefs.h <<_ACEOF
21983
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21992
if test x$use_libusb = xtrue; then
21993
CPPFLAGS="$CPPFLAGS -I${libusb_prefix}/include"
21994
LDFLAGS="$LDFLAGS -L${libusb_prefix}/lib"
22002
if test x$use_libusb = x; then
22004
for ac_header in usb.h
22006
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22007
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22008
echo "$as_me:$LINENO: checking for $ac_header" >&5
22009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22010
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22011
echo $ECHO_N "(cached) $ECHO_C" >&6
22013
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22014
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22016
# Is the header compilable?
22017
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22018
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22019
cat >conftest.$ac_ext <<_ACEOF
22022
cat confdefs.h >>conftest.$ac_ext
22023
cat >>conftest.$ac_ext <<_ACEOF
22024
/* end confdefs.h. */
22025
$ac_includes_default
22026
#include <$ac_header>
22028
rm -f conftest.$ac_objext
22029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22030
(eval $ac_compile) 2>conftest.er1
22032
grep -v '^ *+' conftest.er1 >conftest.err
22034
cat conftest.err >&5
22035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036
(exit $ac_status); } &&
22037
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039
(eval $ac_try) 2>&5
22041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042
(exit $ac_status); }; } &&
22043
{ ac_try='test -s conftest.$ac_objext'
22044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045
(eval $ac_try) 2>&5
22047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048
(exit $ac_status); }; }; then
22049
ac_header_compiler=yes
22051
echo "$as_me: failed program was:" >&5
22052
sed 's/^/| /' conftest.$ac_ext >&5
22054
ac_header_compiler=no
22056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22057
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22058
echo "${ECHO_T}$ac_header_compiler" >&6
22060
# Is the header present?
22061
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22062
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22063
cat >conftest.$ac_ext <<_ACEOF
22066
cat confdefs.h >>conftest.$ac_ext
22067
cat >>conftest.$ac_ext <<_ACEOF
22068
/* end confdefs.h. */
22069
#include <$ac_header>
22071
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22072
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22074
grep -v '^ *+' conftest.er1 >conftest.err
22076
cat conftest.err >&5
22077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078
(exit $ac_status); } >/dev/null; then
22079
if test -s conftest.err; then
22080
ac_cpp_err=$ac_c_preproc_warn_flag
22081
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22088
if test -z "$ac_cpp_err"; then
22089
ac_header_preproc=yes
22091
echo "$as_me: failed program was:" >&5
22092
sed 's/^/| /' conftest.$ac_ext >&5
22094
ac_header_preproc=no
22096
rm -f conftest.err conftest.$ac_ext
22097
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22098
echo "${ECHO_T}$ac_header_preproc" >&6
22100
# So? What about this header?
22101
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22103
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22104
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22105
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22106
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22107
ac_header_preproc=yes
22110
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22111
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22112
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22113
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22114
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22115
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22116
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22117
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22118
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22119
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22120
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22121
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22124
## ------------------------------------------ ##
22125
## Report this to the AC_PACKAGE_NAME lists. ##
22126
## ------------------------------------------ ##
22129
sed "s/^/$as_me: WARNING: /" >&2
22132
echo "$as_me:$LINENO: checking for $ac_header" >&5
22133
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22134
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22135
echo $ECHO_N "(cached) $ECHO_C" >&6
22137
eval "$as_ac_Header=\$ac_header_preproc"
22139
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22140
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22143
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22144
cat >>confdefs.h <<_ACEOF
22145
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22154
echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
22155
echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6
22156
if test "${ac_cv_lib_usb_usb_init+set}" = set; then
22157
echo $ECHO_N "(cached) $ECHO_C" >&6
22159
ac_check_lib_save_LIBS=$LIBS
22161
cat >conftest.$ac_ext <<_ACEOF
22164
cat confdefs.h >>conftest.$ac_ext
22165
cat >>conftest.$ac_ext <<_ACEOF
22166
/* end confdefs.h. */
22168
/* Override any gcc2 internal prototype to avoid an error. */
22172
/* We use char because int might match the return type of a gcc2
22173
builtin and then its argument prototype would still apply. */
22183
rm -f conftest.$ac_objext conftest$ac_exeext
22184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22185
(eval $ac_link) 2>conftest.er1
22187
grep -v '^ *+' conftest.er1 >conftest.err
22189
cat conftest.err >&5
22190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191
(exit $ac_status); } &&
22192
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194
(eval $ac_try) 2>&5
22196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197
(exit $ac_status); }; } &&
22198
{ ac_try='test -s conftest$ac_exeext'
22199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200
(eval $ac_try) 2>&5
22202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203
(exit $ac_status); }; }; then
22204
ac_cv_lib_usb_usb_init=yes
22206
echo "$as_me: failed program was:" >&5
22207
sed 's/^/| /' conftest.$ac_ext >&5
22209
ac_cv_lib_usb_usb_init=no
22211
rm -f conftest.err conftest.$ac_objext \
22212
conftest$ac_exeext conftest.$ac_ext
22213
LIBS=$ac_check_lib_save_LIBS
22215
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
22216
echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6
22217
if test $ac_cv_lib_usb_usb_init = yes; then
22218
LIBUSB="$LIBUSB -lusb" use_libusb=true
22225
echo "$as_me:$LINENO: result: enable libusb support : $use_libusb" >&5
22226
echo "${ECHO_T}enable libusb support : $use_libusb" >&6
22230
if test x$use_libusb = xtrue; then
22231
PCSC_USE_LIBUSB_TRUE=
22232
PCSC_USE_LIBUSB_FALSE='#'
22234
PCSC_USE_LIBUSB_TRUE='#'
22235
PCSC_USE_LIBUSB_FALSE=
22238
if test x$use_libusb = xtrue; then
22240
cat >>confdefs.h <<\_ACEOF
22241
#define HAVE_LIBUSB 1
22246
# Check whether --enable-usbdropdir or --disable-usbdropdir was given.
22247
if test "${enable_usbdropdir+set}" = set; then
22248
enableval="$enable_usbdropdir"
22249
usbdropdir="${enableval}"
22253
if test x${usbdropdir} = xfalse ; then
22254
usbdropdir="/usr/local/pcsc/drivers"
22256
echo "$as_me:$LINENO: result: enable USB drop directory : $usbdropdir" >&5
22257
echo "${ECHO_T}enable USB drop directory : $usbdropdir" >&6
22259
cat >>confdefs.h <<_ACEOF
22260
#define PCSCLITE_HP_DROPDIR "$usbdropdir"
6168
22264
# Check whether --enable-debug or --disable-debug was given.
6169
22265
if test "${enable_debug+set}" = set; then
6170
22266
enableval="$enable_debug"
6171
22267
case "${enableval}" in
6175
22271
debug=false ;;
6176
*) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } ;;
22272
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
22273
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
22274
{ (exit 1); exit 1; }; } ;;
6183
echo "$ac_t""enable debug messages : $debug" 1>&6
22280
echo "$as_me:$LINENO: result: enable debug messages : $debug" >&5
22281
echo "${ECHO_T}enable debug messages : $debug" >&6
6185
22283
if test x${debug} = xtrue ; then
6186
cat >> confdefs.h <<\EOF
22285
cat >>confdefs.h <<\_ACEOF
6187
22286
#define PCSC_DEBUG 1
22290
cat >>confdefs.h <<\_ACEOF
22291
#define MSC_DEBUG 1
6193
22296
# Check whether --enable-debugatr or --disable-debugatr was given.
6194
22297
if test "${enable_debugatr+set}" = set; then
6195
22298
enableval="$enable_debugatr"
6196
22299
case "${enableval}" in
6197
22300
yes) debugatr=true ;;
6198
22301
no) debugatr=false ;;
6199
*) { echo "configure: error: bad value ${enableval} for --enable-debugatr" 1>&2; exit 1; } ;;
22302
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debugatr" >&5
22303
echo "$as_me: error: bad value ${enableval} for --enable-debugatr" >&2;}
22304
{ (exit 1); exit 1; }; } ;;
6202
22307
debugatr=false
6206
echo "$ac_t""enable ATR parsing messages: $debugatr" 1>&6
22310
echo "$as_me:$LINENO: result: enable ATR parsing messages : $debugatr" >&5
22311
echo "${ECHO_T}enable ATR parsing messages : $debugatr" >&6
6208
22313
if test x${debugatr} = xtrue ; then
6209
cat >> confdefs.h <<\EOF
22315
cat >>confdefs.h <<\_ACEOF
6210
22316
#define ATR_DEBUG 1
6215
# Check whether --enable-syslog or --disable-syslog was given.
6216
if test "${enable_syslog+set}" = set; then
6217
enableval="$enable_syslog"
6218
case "${enableval}" in
6221
*) { echo "configure: error: bad value ${enableval} for --enable-syslog" 1>&2; exit 1; } ;;
6228
echo "$ac_t""enable debug out to syslog : $syslog" 1>&6
6230
if test x${syslog} = xtrue ; then
6231
cat >> confdefs.h <<\EOF
6232
#define USE_SYSLOG 1
6238
# Check whether --enable-daemon or --disable-daemon was given.
6239
if test "${enable_daemon+set}" = set; then
6240
enableval="$enable_daemon"
6241
case "${enableval}" in
6244
*) { echo "configure: error: bad value ${enableval} for --enable-daemon" 1>&2; exit 1; } ;;
6251
echo "$ac_t""enable pcscd forked daemon : $daemon" 1>&6
6253
if test x${daemon} = xtrue ; then
6254
cat >> confdefs.h <<\EOF
6255
#define USE_DAEMON 1
22321
# Check whether --enable-scf or --disable-scf was given.
22322
if test "${enable_scf+set}" = set; then
22323
enableval="$enable_scf"
22324
case "${enableval}" in
22327
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-scf" >&5
22328
echo "$as_me: error: bad value ${enableval} for --enable-scf" >&2;}
22329
{ (exit 1); exit 1; }; } ;;
22336
if test x$scf = xtrue -a x$ac_cv_header_smartcard_scf_h = xyes; then
22337
echo "$as_me:$LINENO: checking for SCF_strerror in -lsmartcard" >&5
22338
echo $ECHO_N "checking for SCF_strerror in -lsmartcard... $ECHO_C" >&6
22339
if test "${ac_cv_lib_smartcard_SCF_strerror+set}" = set; then
22340
echo $ECHO_N "(cached) $ECHO_C" >&6
22342
ac_check_lib_save_LIBS=$LIBS
22343
LIBS="-lsmartcard $LIBS"
22344
cat >conftest.$ac_ext <<_ACEOF
22347
cat confdefs.h >>conftest.$ac_ext
22348
cat >>conftest.$ac_ext <<_ACEOF
22349
/* end confdefs.h. */
22351
/* Override any gcc2 internal prototype to avoid an error. */
22355
/* We use char because int might match the return type of a gcc2
22356
builtin and then its argument prototype would still apply. */
22357
char SCF_strerror ();
22366
rm -f conftest.$ac_objext conftest$ac_exeext
22367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22368
(eval $ac_link) 2>conftest.er1
22370
grep -v '^ *+' conftest.er1 >conftest.err
22372
cat conftest.err >&5
22373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374
(exit $ac_status); } &&
22375
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377
(eval $ac_try) 2>&5
22379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380
(exit $ac_status); }; } &&
22381
{ ac_try='test -s conftest$ac_exeext'
22382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383
(eval $ac_try) 2>&5
22385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386
(exit $ac_status); }; }; then
22387
ac_cv_lib_smartcard_SCF_strerror=yes
22389
echo "$as_me: failed program was:" >&5
22390
sed 's/^/| /' conftest.$ac_ext >&5
22392
ac_cv_lib_smartcard_SCF_strerror=no
22394
rm -f conftest.err conftest.$ac_objext \
22395
conftest$ac_exeext conftest.$ac_ext
22396
LIBS=$ac_check_lib_save_LIBS
22398
echo "$as_me:$LINENO: result: $ac_cv_lib_smartcard_SCF_strerror" >&5
22399
echo "${ECHO_T}$ac_cv_lib_smartcard_SCF_strerror" >&6
22400
if test $ac_cv_lib_smartcard_SCF_strerror = yes; then
22401
LIBSMARTCARD="$LIBSMARTCARD -lsmartcard" scf=true
22409
echo "$as_me:$LINENO: result: enable SCF reader support : $scf" >&5
22410
echo "${ECHO_T}enable SCF reader support : $scf" >&6
22413
if test x$scf = xtrue; then
22422
# Check whether --enable-musclecard or --disable-musclecard was given.
22423
if test "${enable_musclecard+set}" = set; then
22424
enableval="$enable_musclecard"
22425
case "${enableval}" in
22426
yes) musclecard=true ;;
22427
no) musclecard=false ;;
22428
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-musclecard" >&5
22429
echo "$as_me: error: bad value ${enableval} for --disable-musclecard" >&2;}
22430
{ (exit 1); exit 1; }; } ;;
22436
echo "$as_me:$LINENO: result: enable MuscleCard : $musclecard" >&5
22437
echo "${ECHO_T}enable MuscleCard : $musclecard" >&6
22441
if test x$musclecard = xtrue; then
22442
HAVE_MUSCLECARD_TRUE=
22443
HAVE_MUSCLECARD_FALSE='#'
22445
HAVE_MUSCLECARD_TRUE='#'
22446
HAVE_MUSCLECARD_FALSE=
22450
# Check whether --enable-muscledropdir or --disable-muscledropdir was given.
22451
if test "${enable_muscledropdir+set}" = set; then
22452
enableval="$enable_muscledropdir"
22453
muscledropdir="${enableval}"
22455
muscledropdir=false
22457
if test x${muscledropdir} = xfalse ; then
22458
muscledropdir="/usr/local/pcsc/services"
22460
echo "$as_me:$LINENO: result: enable MuscleCard bundles dir : $muscledropdir" >&5
22461
echo "${ECHO_T}enable MuscleCard bundles dir : $muscledropdir" >&6
22463
cat >>confdefs.h <<_ACEOF
22464
#define MSC_SVC_DROPDIR "$muscledropdir"
6261
22468
# Check whether --enable-confdir or --disable-confdir was given.
6264
22471
confdir="${enableval}"
6270
22476
if test x${confdir} != xfalse ; then
6271
echo "$ac_t""enable confdir : $confdir" 1>&6
6273
cat >> confdefs.h <<EOF
22477
echo "$as_me:$LINENO: result: enable confdir : $confdir" >&5
22478
echo "${ECHO_T}enable confdir : $confdir" >&6
22481
cat >>confdefs.h <<_ACEOF
6274
22482
#define USE_READER_CONF "$confdir"
6278
echo "$ac_t""enable confdir : /etc (default)" 1>&6
22487
echo "$as_me:$LINENO: result: enable confdir : /etc (default)" >&5
22488
echo "${ECHO_T}enable confdir : /etc (default)" >&6
6282
22491
# Check whether --enable-runpid or --disable-runpid was given.
6283
22492
if test "${enable_runpid+set}" = set; then
6284
22493
enableval="$enable_runpid"
6285
22494
runpid="${enableval}"
6291
echo "$ac_t""enable runpid : $runpid" 1>&6
22499
echo "$as_me:$LINENO: result: enable runpid : $runpid" >&5
22500
echo "${ECHO_T}enable runpid : $runpid" >&6
6293
22502
if test x${runpid} != xfalse ; then
6294
cat >> confdefs.h <<EOF
22504
cat >>confdefs.h <<_ACEOF
6295
22505
#define USE_RUN_PID "$runpid"
22510
# Check whether --enable-ipcdir or --disable-ipcdir was given.
22511
if test "${enable_ipcdir+set}" = set; then
22512
enableval="$enable_ipcdir"
22513
ipcdir="${enableval}"
22518
if test x${ipcdir} != xfalse ; then
22519
echo "$as_me:$LINENO: result: enable ipcdir : $ipcdir" >&5
22520
echo "${ECHO_T}enable ipcdir : $ipcdir" >&6
22523
cat >>confdefs.h <<_ACEOF
22524
#define USE_IPCDIR "$ipcdir"
22528
echo "$as_me:$LINENO: result: enable ipcdir : /var/run (default)" >&5
22529
echo "${ECHO_T}enable ipcdir : /var/run (default)" >&6
22532
echo "$as_me:$LINENO: result: enable threadsafe client : $threadsafe" >&5
22533
echo "${ECHO_T}enable threadsafe client : $threadsafe" >&6
22536
if test x$threadsafe = xtrue; then
22537
PCSC_THR_SAFE_TRUE=
22538
PCSC_THR_SAFE_FALSE='#'
22540
PCSC_THR_SAFE_TRUE='#'
22541
PCSC_THR_SAFE_FALSE=
22545
# Check whether --enable-extendedapdu or --disable-extendedapdu was given.
22546
if test "${enable_extendedapdu+set}" = set; then
22547
enableval="$enable_extendedapdu"
22548
case "${enableval}" in
22549
yes) extendedapdu=true ;;
22550
no) extendedapdu=false ;;
22551
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extendedapdu" >&5
22552
echo "$as_me: error: bad value ${enableval} for --enable-extendedapdu" >&2;}
22553
{ (exit 1); exit 1; }; } ;;
22559
echo "$as_me:$LINENO: result: enable extended APDU : $extendedapdu" >&5
22560
echo "${ECHO_T}enable extended APDU : $extendedapdu" >&6
22562
if test x${extendedapdu} = xtrue ; then
22563
extended_apdu="#define PCSCLITE_ENHANCED_MESSAGING"
22565
extended_apdu="#undef PCSCLITE_ENHANCED_MESSAGING"
6301
22568
if test x${threadsafe} = xtrue ; then
6302
echo "$ac_t""NOTE :: You must link pthread libraries with your app." 1>&6
6303
cat >> confdefs.h <<\EOF
22569
echo "$as_me:$LINENO: result: NOTE :: You must link pthread libraries with your app." >&5
22570
echo "${ECHO_T}NOTE :: You must link pthread libraries with your app." >&6
22572
cat >>confdefs.h <<\_ACEOF
6304
22573
#define USE_THREAD_SAFETY 1
6310
cat > confcache <<\EOF
22578
CPPFLAGS="-I\${top_srcdir}/src $CPPFLAGS"
22586
ac_config_files="$ac_config_files Makefile aclocal/Makefile doc/Makefile doc/bundleTool.8 doc/pcscd.8 doc/reader.conf.5 doc/example/Makefile etc/Makefile etc/reader.conf src/Makefile src/libmusclecard.pc src/libpcsclite.pc src/pcsclite.h src/utils/Makefile win32/Makefile"
22587
cat >confcache <<\_ACEOF
6311
22588
# This file is a shell script that caches the results of configure
6312
22589
# tests run on this system so they can be shared between configure
6313
# scripts and configure runs. It is not useful on other systems.
6314
# If it contains results you don't want to keep, you may remove or edit it.
6316
# By default, configure uses ./config.cache as the cache file,
6317
# creating it if it does not exist already. You can give configure
6318
# the --cache-file=FILE option to use a different cache file; that is
6319
# what configure does when it calls configure scripts in
6320
# subdirectories, so they share the cache.
6321
# Giving --cache-file=/dev/null disables caching, for debugging configure.
6322
# config.status only pays attention to the cache file if you give it the
6323
# --recheck option to rerun configure.
22590
# scripts and configure runs, see configure's option --config-cache.
22591
# It is not useful on other systems. If it contains results you don't
22592
# want to keep, you may remove or edit it.
22594
# config.status only pays attention to the cache file if you give it
22595
# the --recheck option to rerun configure.
22597
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22598
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22599
# following values.
6326
22603
# The following way of writing the cache mishandles newlines in values,
6327
22604
# but we know of no workaround that is simple, portable, and efficient.
6328
22605
# So, don't put newlines in cache variables' values.
6329
22606
# Ultrix sh set writes to stderr and can't be redirected directly,
6330
22607
# and sets the high bit in the cache file unless we assign to the vars.
6332
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6334
# `set' does not quote correctly, so add quotes (double-quote substitution
6335
# turns \\\\ into \\, and sed turns \\ into \).
6337
-e "s/'/'\\\\''/g" \
6338
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6341
# `set' quotes correctly as required by POSIX, so do not add quotes.
6342
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6345
if cmp -s $cache_file confcache; then
22610
case `(ac_space=' '; set | grep ac_space) 2>&1` in
22612
# `set' does not quote correctly, so add quotes (double-quote
22613
# substitution turns \\\\ into \\, and sed turns \\ into \).
22616
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22619
# `set' quotes correctly as required by POSIX, so do not add quotes.
22621
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22628
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22630
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22632
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6348
22633
if test -w $cache_file; then
6349
echo "updating cache $cache_file"
6350
cat confcache > $cache_file
22634
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22635
cat confcache >$cache_file
6352
22637
echo "not updating unwritable cache $cache_file"
6355
22640
rm -f confcache
6357
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6359
22642
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6360
22643
# Let make expand exec_prefix.
6361
22644
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6363
# Any assignment to VPATH causes Sun make to only execute
6364
# the first set of double-colon rules, so remove it if not needed.
6365
# If there is a colon in the path, we need to keep it.
22646
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22647
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22648
# trailing colons and then remove the whole line if VPATH becomes empty
22649
# (actually we leave an empty line to preserve line numbers).
6366
22650
if test "x$srcdir" = x.; then
6367
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22651
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22652
s/:*\$(srcdir):*/:/;
22653
s/:*\${srcdir}:*/:/;
22655
s/^\([^=]*=[ ]*\):*/\1/;
6370
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6372
22661
DEFS=-DHAVE_CONFIG_H
6374
# Without the "./", some shells look in PATH for config.status.
22665
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22666
# 1. Remove the extension, and $U if already installed.
22667
ac_i=`echo "$ac_i" |
22668
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22670
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22671
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22673
LIBOBJS=$ac_libobjs
22675
LTLIBOBJS=$ac_ltlibobjs
22678
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22679
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22680
Usually this means the macro was only invoked conditionally." >&5
22681
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22682
Usually this means the macro was only invoked conditionally." >&2;}
22683
{ (exit 1); exit 1; }; }
22685
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22686
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22687
Usually this means the macro was only invoked conditionally." >&5
22688
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22689
Usually this means the macro was only invoked conditionally." >&2;}
22690
{ (exit 1); exit 1; }; }
22692
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22693
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22694
Usually this means the macro was only invoked conditionally." >&5
22695
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22696
Usually this means the macro was only invoked conditionally." >&2;}
22697
{ (exit 1); exit 1; }; }
22699
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22700
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22701
Usually this means the macro was only invoked conditionally." >&5
22702
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22703
Usually this means the macro was only invoked conditionally." >&2;}
22704
{ (exit 1); exit 1; }; }
22706
if test -z "${PCSC_USE_LIBUSB_TRUE}" && test -z "${PCSC_USE_LIBUSB_FALSE}"; then
22707
{ { echo "$as_me:$LINENO: error: conditional \"PCSC_USE_LIBUSB\" was never defined.
22708
Usually this means the macro was only invoked conditionally." >&5
22709
echo "$as_me: error: conditional \"PCSC_USE_LIBUSB\" was never defined.
22710
Usually this means the macro was only invoked conditionally." >&2;}
22711
{ (exit 1); exit 1; }; }
22713
if test -z "${HAVE_SCF_TRUE}" && test -z "${HAVE_SCF_FALSE}"; then
22714
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_SCF\" was never defined.
22715
Usually this means the macro was only invoked conditionally." >&5
22716
echo "$as_me: error: conditional \"HAVE_SCF\" was never defined.
22717
Usually this means the macro was only invoked conditionally." >&2;}
22718
{ (exit 1); exit 1; }; }
22720
if test -z "${HAVE_MUSCLECARD_TRUE}" && test -z "${HAVE_MUSCLECARD_FALSE}"; then
22721
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_MUSCLECARD\" was never defined.
22722
Usually this means the macro was only invoked conditionally." >&5
22723
echo "$as_me: error: conditional \"HAVE_MUSCLECARD\" was never defined.
22724
Usually this means the macro was only invoked conditionally." >&2;}
22725
{ (exit 1); exit 1; }; }
22727
if test -z "${PCSC_THR_SAFE_TRUE}" && test -z "${PCSC_THR_SAFE_FALSE}"; then
22728
{ { echo "$as_me:$LINENO: error: conditional \"PCSC_THR_SAFE\" was never defined.
22729
Usually this means the macro was only invoked conditionally." >&5
22730
echo "$as_me: error: conditional \"PCSC_THR_SAFE\" was never defined.
22731
Usually this means the macro was only invoked conditionally." >&2;}
22732
{ (exit 1); exit 1; }; }
6375
22735
: ${CONFIG_STATUS=./config.status}
6377
echo creating $CONFIG_STATUS
6378
rm -f $CONFIG_STATUS
6379
cat > $CONFIG_STATUS <<EOF
6381
# Generated automatically by configure.
22736
ac_clean_files_save=$ac_clean_files
22737
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22738
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22739
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22740
cat >$CONFIG_STATUS <<_ACEOF
22742
# Generated by $as_me.
6382
22743
# Run this file to recreate the current configuration.
6383
# This directory was configured as follows,
6384
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6386
# $0 $ac_configure_args
6388
22744
# Compiler output produced by configure, useful for debugging
6389
# configure, is in ./config.log if it exists.
6391
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6394
case "\$ac_option" in
22745
# configure, is in config.log if it exists.
22748
ac_cs_recheck=false
22750
SHELL=\${CONFIG_SHELL-$SHELL}
22753
cat >>$CONFIG_STATUS <<\_ACEOF
22754
## --------------------- ##
22755
## M4sh Initialization. ##
22756
## --------------------- ##
22758
# Be Bourne compatible
22759
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22762
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22763
# is contrary to our usage. Disable this feature.
22764
alias -g '${1+"$@"}'='"$@"'
22765
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22768
DUALCASE=1; export DUALCASE # for MKS sh
22770
# Support unset when possible.
22771
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22778
# Work around bugs in pre-3.0 UWIN ksh.
22779
$as_unset ENV MAIL MAILPATH
22786
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22787
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22788
LC_TELEPHONE LC_TIME
22790
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22791
eval $as_var=C; export $as_var
22797
# Required to use basename.
22798
if expr a : '\(a\)' >/dev/null 2>&1; then
22804
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22805
as_basename=basename
22811
# Name of the executable.
22812
as_me=`$as_basename "$0" ||
22813
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22814
X"$0" : 'X\(//\)$' \| \
22815
X"$0" : 'X\(/\)$' \| \
22816
. : '\(.\)' 2>/dev/null ||
22818
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22819
/^X\/\(\/\/\)$/{ s//\1/; q; }
22820
/^X\/\(\/\).*/{ s//\1/; q; }
22824
# PATH needs CR, and LINENO needs CR and PATH.
22825
# Avoid depending upon Character Ranges.
22826
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22827
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22828
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22829
as_cr_digits='0123456789'
22830
as_cr_alnum=$as_cr_Letters$as_cr_digits
22832
# The user is always right.
22833
if test "${PATH_SEPARATOR+set}" != set; then
22834
echo "#! /bin/sh" >conf$$.sh
22835
echo "exit 0" >>conf$$.sh
22837
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22846
as_lineno_1=$LINENO
22847
as_lineno_2=$LINENO
22848
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22849
test "x$as_lineno_1" != "x$as_lineno_2" &&
22850
test "x$as_lineno_3" = "x$as_lineno_2" || {
22851
# Find who we are. Look in the path if we contain no path at all
22854
*[\\/]* ) as_myself=$0 ;;
22855
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22856
for as_dir in $PATH
22859
test -z "$as_dir" && as_dir=.
22860
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22865
# We did not find ourselves, most probably we were run as `sh COMMAND'
22866
# in which case we are not to be found in the path.
22867
if test "x$as_myself" = x; then
22870
if test ! -f "$as_myself"; then
22871
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22872
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22873
{ (exit 1); exit 1; }; }
22875
case $CONFIG_SHELL in
22877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22878
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22881
test -z "$as_dir" && as_dir=.
22882
for as_base in sh bash ksh sh5; do
22885
if ("$as_dir/$as_base" -c '
22886
as_lineno_1=$LINENO
22887
as_lineno_2=$LINENO
22888
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22889
test "x$as_lineno_1" != "x$as_lineno_2" &&
22890
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22891
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22892
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22893
CONFIG_SHELL=$as_dir/$as_base
22894
export CONFIG_SHELL
22895
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22903
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22904
# uniformly replaced by the line number. The first 'sed' inserts a
22905
# line-number line before each line; the second 'sed' does the real
22906
# work. The second script uses 'N' to pair each line-number line
22907
# with the numbered line, and appends trailing '-' during
22908
# substitution so that $LINENO is not a special case at line end.
22909
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22910
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22911
sed '=' <$as_myself |
22916
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22919
s,^['$as_cr_digits']*\n,,
22920
' >$as_me.lineno &&
22921
chmod +x $as_me.lineno ||
22922
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22923
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22924
{ (exit 1); exit 1; }; }
22926
# Don't try to exec as it changes $[0], causing all sort of problems
22927
# (the dirname of $[0] is not the place where we might find the
22928
# original and so on. Autoconf is especially sensible to this).
22930
# Exit status is that of the last command.
22935
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22936
*c*,-n*) ECHO_N= ECHO_C='
22938
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22939
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22942
if expr a : '\(a\)' >/dev/null 2>&1; then
22948
rm -f conf$$ conf$$.exe conf$$.file
22950
if ln -s conf$$.file conf$$ 2>/dev/null; then
22951
# We could just check for DJGPP; but this test a) works b) is more generic
22952
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22953
if test -f conf$$.exe; then
22954
# Don't use ln at all; we don't have any links
22959
elif ln conf$$.file conf$$ 2>/dev/null; then
22964
rm -f conf$$ conf$$.exe conf$$.file
22966
if mkdir -p . 2>/dev/null; then
22969
test -d ./-p && rmdir ./-p
22973
as_executable_p="test -f"
22975
# Sed expression to map a string onto a valid CPP name.
22976
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22978
# Sed expression to map a string onto a valid variable name.
22979
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22983
# We need space, tab and new line, in precisely that order.
22993
# Open the log real soon, to keep \$[0] and so on meaningful, and to
22994
# report actual input values of CONFIG_FILES etc. instead of their
22995
# values after options handling. Logging --version etc. is OK.
22999
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23000
## Running $as_me. ##
23005
This file was extended by $as_me, which was
23006
generated by GNU Autoconf 2.59. Invocation command line was
23008
CONFIG_FILES = $CONFIG_FILES
23009
CONFIG_HEADERS = $CONFIG_HEADERS
23010
CONFIG_LINKS = $CONFIG_LINKS
23011
CONFIG_COMMANDS = $CONFIG_COMMANDS
23015
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23019
# Files that config.status was made for.
23020
if test -n "$ac_config_files"; then
23021
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23024
if test -n "$ac_config_headers"; then
23025
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23028
if test -n "$ac_config_links"; then
23029
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23032
if test -n "$ac_config_commands"; then
23033
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23036
cat >>$CONFIG_STATUS <<\_ACEOF
23039
\`$as_me' instantiates files from templates according to the
23040
current configuration.
23042
Usage: $0 [OPTIONS] [FILE]...
23044
-h, --help print this help, then exit
23045
-V, --version print version number, then exit
23046
-q, --quiet do not print progress messages
23047
-d, --debug don't remove temporary files
23048
--recheck update $as_me by reconfiguring in the same conditions
23049
--file=FILE[:TEMPLATE]
23050
instantiate the configuration file FILE
23051
--header=FILE[:TEMPLATE]
23052
instantiate the configuration header FILE
23054
Configuration files:
23057
Configuration headers:
23060
Configuration commands:
23063
Report bugs to <bug-autoconf@gnu.org>."
23066
cat >>$CONFIG_STATUS <<_ACEOF
23069
configured by $0, generated by GNU Autoconf 2.59,
23070
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23072
Copyright (C) 2003 Free Software Foundation, Inc.
23073
This config.status script is free software; the Free Software Foundation
23074
gives unlimited permission to copy, distribute and modify it."
23079
cat >>$CONFIG_STATUS <<\_ACEOF
23080
# If no file are specified by the user, then we need to provide default
23081
# value. By we need to know if files were specified by the user.
23087
ac_option=`expr "x$1" : 'x\([^=]*\)='`
23088
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23096
*) # This is not an option, so the user has probably given explicit
23099
ac_need_defaults=false;;
23103
# Handling of the options.
23105
cat >>$CONFIG_STATUS <<\_ACEOF
6395
23106
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6396
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6397
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6398
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6399
echo "$CONFIG_STATUS generated by autoconf version 2.13"
6401
-help | --help | --hel | --he | --h)
6402
echo "\$ac_cs_usage"; exit 0 ;;
6403
*) echo "\$ac_cs_usage"; exit 1 ;;
6407
ac_given_srcdir=$srcdir
6408
ac_given_INSTALL="$INSTALL"
6410
trap 'rm -fr `echo "Makefile src/Makefile src/utils/Makefile etc/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6412
cat >> $CONFIG_STATUS <<EOF
6414
# Protect against being on the right side of a sed subst in config.status.
6415
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6416
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23108
--version | --vers* | -V )
23109
echo "$ac_cs_version"; exit 0 ;;
23111
# Conflict between --help and --header
23112
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
23113
Try \`$0 --help' for more information." >&5
23114
echo "$as_me: error: ambiguous option: $1
23115
Try \`$0 --help' for more information." >&2;}
23116
{ (exit 1); exit 1; }; };;
23117
--help | --hel | -h )
23118
echo "$ac_cs_usage"; exit 0 ;;
23119
--debug | --d* | -d )
23121
--file | --fil | --fi | --f )
23123
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23124
ac_need_defaults=false;;
23125
--header | --heade | --head | --hea )
23127
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23128
ac_need_defaults=false;;
23129
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23130
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23133
# This is an error.
23134
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23135
Try \`$0 --help' for more information." >&5
23136
echo "$as_me: error: unrecognized option: $1
23137
Try \`$0 --help' for more information." >&2;}
23138
{ (exit 1); exit 1; }; } ;;
23140
*) ac_config_targets="$ac_config_targets $1" ;;
23146
ac_configure_extra_args=
23148
if $ac_cs_silent; then
23150
ac_configure_extra_args="$ac_configure_extra_args --silent"
23154
cat >>$CONFIG_STATUS <<_ACEOF
23155
if \$ac_cs_recheck; then
23156
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23157
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23162
cat >>$CONFIG_STATUS <<_ACEOF
23164
# INIT-COMMANDS section.
23167
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23173
cat >>$CONFIG_STATUS <<\_ACEOF
23174
for ac_config_target in $ac_config_targets
23176
case "$ac_config_target" in
23177
# Handling of arguments.
23178
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23179
"aclocal/Makefile" ) CONFIG_FILES="$CONFIG_FILES aclocal/Makefile" ;;
23180
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23181
"doc/bundleTool.8" ) CONFIG_FILES="$CONFIG_FILES doc/bundleTool.8" ;;
23182
"doc/pcscd.8" ) CONFIG_FILES="$CONFIG_FILES doc/pcscd.8" ;;
23183
"doc/reader.conf.5" ) CONFIG_FILES="$CONFIG_FILES doc/reader.conf.5" ;;
23184
"doc/example/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/example/Makefile" ;;
23185
"etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
23186
"etc/reader.conf" ) CONFIG_FILES="$CONFIG_FILES etc/reader.conf" ;;
23187
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23188
"src/libmusclecard.pc" ) CONFIG_FILES="$CONFIG_FILES src/libmusclecard.pc" ;;
23189
"src/libpcsclite.pc" ) CONFIG_FILES="$CONFIG_FILES src/libpcsclite.pc" ;;
23190
"src/pcsclite.h" ) CONFIG_FILES="$CONFIG_FILES src/pcsclite.h" ;;
23191
"src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
23192
"win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
23193
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23194
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23195
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23196
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23197
{ (exit 1); exit 1; }; };;
23201
# If the user did not use the arguments to specify the items to instantiate,
23202
# then the envvar interface is used. Set only those that are not.
23203
# We use the long form for the default assignment because of an extremely
23204
# bizarre bug on SunOS 4.1.3.
23205
if $ac_need_defaults; then
23206
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23207
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23208
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23211
# Have a temporary directory for convenience. Make it in the build tree
23212
# simply because there is no reason to put it here, and in addition,
23213
# creating and moving files from /tmp can sometimes cause problems.
23214
# Create a temporary directory, and hook for its removal unless debugging.
23217
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23218
trap '{ (exit 1); exit 1; }' 1 2 13 15
23221
# Create a (secure) tmp directory for tmp files.
23224
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23225
test -n "$tmp" && test -d "$tmp"
23228
tmp=./confstat$$-$RANDOM
23229
(umask 077 && mkdir $tmp)
23232
echo "$me: cannot create a temporary directory in ." >&2
23233
{ (exit 1); exit 1; }
23238
cat >>$CONFIG_STATUS <<_ACEOF
23241
# CONFIG_FILES section.
23244
# No need to generate the scripts if there are no CONFIG_FILES.
23245
# This happens for instance when ./config.status config.h
23246
if test -n "\$CONFIG_FILES"; then
23247
# Protect against being on the right side of a sed subst in config.status.
23248
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23249
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23250
s,@SHELL@,$SHELL,;t t
23251
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23252
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23253
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23254
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23255
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23256
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23257
s,@exec_prefix@,$exec_prefix,;t t
23258
s,@prefix@,$prefix,;t t
23259
s,@program_transform_name@,$program_transform_name,;t t
23260
s,@bindir@,$bindir,;t t
23261
s,@sbindir@,$sbindir,;t t
23262
s,@libexecdir@,$libexecdir,;t t
23263
s,@datadir@,$datadir,;t t
23264
s,@sysconfdir@,$sysconfdir,;t t
23265
s,@sharedstatedir@,$sharedstatedir,;t t
23266
s,@localstatedir@,$localstatedir,;t t
23267
s,@libdir@,$libdir,;t t
23268
s,@includedir@,$includedir,;t t
23269
s,@oldincludedir@,$oldincludedir,;t t
23270
s,@infodir@,$infodir,;t t
23271
s,@mandir@,$mandir,;t t
23272
s,@build_alias@,$build_alias,;t t
23273
s,@host_alias@,$host_alias,;t t
23274
s,@target_alias@,$target_alias,;t t
23275
s,@DEFS@,$DEFS,;t t
23276
s,@ECHO_C@,$ECHO_C,;t t
23277
s,@ECHO_N@,$ECHO_N,;t t
23278
s,@ECHO_T@,$ECHO_T,;t t
23279
s,@LIBS@,$LIBS,;t t
23280
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23281
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23282
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23283
s,@CYGPATH_W@,$CYGPATH_W,;t t
23284
s,@PACKAGE@,$PACKAGE,;t t
23285
s,@VERSION@,$VERSION,;t t
23286
s,@ACLOCAL@,$ACLOCAL,;t t
23287
s,@AUTOCONF@,$AUTOCONF,;t t
23288
s,@AUTOMAKE@,$AUTOMAKE,;t t
23289
s,@AUTOHEADER@,$AUTOHEADER,;t t
23290
s,@MAKEINFO@,$MAKEINFO,;t t
23291
s,@AMTAR@,$AMTAR,;t t
23292
s,@install_sh@,$install_sh,;t t
23293
s,@STRIP@,$STRIP,;t t
23294
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23295
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23297
s,@SET_MAKE@,$SET_MAKE,;t t
23298
s,@am__leading_dot@,$am__leading_dot,;t t
23299
s,@build@,$build,;t t
23300
s,@build_cpu@,$build_cpu,;t t
23301
s,@build_vendor@,$build_vendor,;t t
23302
s,@build_os@,$build_os,;t t
23303
s,@host@,$host,;t t
23304
s,@host_cpu@,$host_cpu,;t t
23305
s,@host_vendor@,$host_vendor,;t t
23306
s,@host_os@,$host_os,;t t
23308
s,@CFLAGS@,$CFLAGS,;t t
23309
s,@LDFLAGS@,$LDFLAGS,;t t
23310
s,@CPPFLAGS@,$CPPFLAGS,;t t
23311
s,@ac_ct_CC@,$ac_ct_CC,;t t
23312
s,@EXEEXT@,$EXEEXT,;t t
23313
s,@OBJEXT@,$OBJEXT,;t t
23314
s,@DEPDIR@,$DEPDIR,;t t
23315
s,@am__include@,$am__include,;t t
23316
s,@am__quote@,$am__quote,;t t
23317
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23318
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23319
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23320
s,@CCDEPMODE@,$CCDEPMODE,;t t
23321
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23322
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23323
s,@COREFOUNDATION@,$COREFOUNDATION,;t t
23324
s,@IOKIT@,$IOKIT,;t t
23325
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23326
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23327
s,@MAINT@,$MAINT,;t t
23329
s,@LN_S@,$LN_S,;t t
23331
s,@LEXLIB@,$LEXLIB,;t t
23332
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23333
s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
23334
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23335
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23336
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23337
s,@EGREP@,$EGREP,;t t
23338
s,@ECHO@,$ECHO,;t t
23340
s,@ac_ct_AR@,$ac_ct_AR,;t t
23341
s,@RANLIB@,$RANLIB,;t t
23342
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23344
s,@CXXFLAGS@,$CXXFLAGS,;t t
23345
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23346
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23347
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23348
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23349
s,@CXXCPP@,$CXXCPP,;t t
23351
s,@FFLAGS@,$FFLAGS,;t t
23352
s,@ac_ct_F77@,$ac_ct_F77,;t t
23353
s,@LIBTOOL@,$LIBTOOL,;t t
23354
s,@LIBOBJS@,$LIBOBJS,;t t
23355
s,@LIBDL@,$LIBDL,;t t
23356
s,@LIBFL@,$LIBFL,;t t
23357
s,@LIBUSB@,$LIBUSB,;t t
23358
s,@PCSC_USE_LIBUSB_TRUE@,$PCSC_USE_LIBUSB_TRUE,;t t
23359
s,@PCSC_USE_LIBUSB_FALSE@,$PCSC_USE_LIBUSB_FALSE,;t t
23360
s,@LIBSMARTCARD@,$LIBSMARTCARD,;t t
23361
s,@HAVE_SCF_TRUE@,$HAVE_SCF_TRUE,;t t
23362
s,@HAVE_SCF_FALSE@,$HAVE_SCF_FALSE,;t t
23363
s,@HAVE_MUSCLECARD_TRUE@,$HAVE_MUSCLECARD_TRUE,;t t
23364
s,@HAVE_MUSCLECARD_FALSE@,$HAVE_MUSCLECARD_FALSE,;t t
23365
s,@PCSC_THR_SAFE_TRUE@,$PCSC_THR_SAFE_TRUE,;t t
23366
s,@PCSC_THR_SAFE_FALSE@,$PCSC_THR_SAFE_FALSE,;t t
23367
s,@muscledropdir@,$muscledropdir,;t t
23368
s,@usbdropdir@,$usbdropdir,;t t
23369
s,@confdir@,$confdir,;t t
23370
s,@runpid@,$runpid,;t t
23371
s,@extended_apdu@,$extended_apdu,;t t
23372
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23377
cat >>$CONFIG_STATUS <<\_ACEOF
23378
# Split the substitutions into bite-sized pieces for seds with
23379
# small command number limits, like on Digital OSF/1 and HP-UX.
23380
ac_max_sed_lines=48
23381
ac_sed_frag=1 # Number of current file.
23382
ac_beg=1 # First line for current file.
23383
ac_end=$ac_max_sed_lines # Line after last line for current file.
23386
while $ac_more_lines; do
23387
if test $ac_beg -gt 1; then
23388
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23390
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23392
if test ! -s $tmp/subs.frag; then
23393
ac_more_lines=false
23395
# The purpose of the label and of the branching condition is to
23396
# speed up the sed processing (if there are no `@' at all, there
23397
# is no need to browse any of the substitutions).
23398
# These are the two extra sed commands mentioned above.
23400
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23401
if test -z "$ac_sed_cmds"; then
23402
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23404
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23406
ac_sed_frag=`expr $ac_sed_frag + 1`
23408
ac_end=`expr $ac_end + $ac_max_sed_lines`
23411
if test -z "$ac_sed_cmds"; then
23414
fi # test -n "$CONFIG_FILES"
23417
cat >>$CONFIG_STATUS <<\_ACEOF
23418
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23419
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23421
- | *:- | *:-:* ) # input from stdin
23423
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23424
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23425
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23426
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23427
* ) ac_file_in=$ac_file.in ;;
23430
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23431
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23432
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23433
X"$ac_file" : 'X\(//\)[^/]' \| \
23434
X"$ac_file" : 'X\(//\)$' \| \
23435
X"$ac_file" : 'X\(/\)' \| \
23436
. : '\(.\)' 2>/dev/null ||
23438
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23439
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23440
/^X\(\/\/\)$/{ s//\1/; q; }
23441
/^X\(\/\).*/{ s//\1/; q; }
23443
{ if $as_mkdir_p; then
23448
while test ! -d "$as_dir"; do
23449
as_dirs="$as_dir $as_dirs"
23450
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23451
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23452
X"$as_dir" : 'X\(//\)[^/]' \| \
23453
X"$as_dir" : 'X\(//\)$' \| \
23454
X"$as_dir" : 'X\(/\)' \| \
23455
. : '\(.\)' 2>/dev/null ||
23457
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23458
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23459
/^X\(\/\/\)$/{ s//\1/; q; }
23460
/^X\(\/\).*/{ s//\1/; q; }
23463
test ! -n "$as_dirs" || mkdir $as_dirs
23464
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23465
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23466
{ (exit 1); exit 1; }; }; }
23470
if test "$ac_dir" != .; then
23471
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23472
# A "../" for each directory in $ac_dir_suffix.
23473
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23475
ac_dir_suffix= ac_top_builddir=
23479
.) # No --srcdir option. We are building in place.
23481
if test -z "$ac_top_builddir"; then
23484
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23486
[\\/]* | ?:[\\/]* ) # Absolute path.
23487
ac_srcdir=$srcdir$ac_dir_suffix;
23488
ac_top_srcdir=$srcdir ;;
23489
*) # Relative path.
23490
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23491
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23494
# Do not use `cd foo && pwd` to compute absolute paths, because
23495
# the directories may not exist.
23497
.) ac_abs_builddir="$ac_dir";;
23500
.) ac_abs_builddir=`pwd`;;
23501
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23502
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23505
case $ac_abs_builddir in
23506
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23508
case ${ac_top_builddir}. in
23509
.) ac_abs_top_builddir=$ac_abs_builddir;;
23510
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23511
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23514
case $ac_abs_builddir in
23515
.) ac_abs_srcdir=$ac_srcdir;;
23518
.) ac_abs_srcdir=$ac_abs_builddir;;
23519
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23520
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23523
case $ac_abs_builddir in
23524
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23526
case $ac_top_srcdir in
23527
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23528
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23529
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23535
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23536
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23539
# Let's still pretend it is `configure' which instantiates (i.e., don't
23540
# use $as_me), people would be surprised to read:
23541
# /* config.h. Generated by config.status. */
23542
if test x"$ac_file" = x-; then
23545
configure_input="$ac_file. "
23547
configure_input=$configure_input"Generated from `echo $ac_file_in |
23548
sed 's,.*/,,'` by configure."
23550
# First look for the input files in the build tree, otherwise in the
23552
ac_file_inputs=`IFS=:
23553
for f in $ac_file_in; do
23555
-) echo $tmp/stdin ;;
23557
# Absolute (can't be DOS-style, as IFS=:)
23558
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23559
echo "$as_me: error: cannot find input file: $f" >&2;}
23560
{ (exit 1); exit 1; }; }
23563
if test -f "$f"; then
23566
elif test -f "$srcdir/$f"; then
23571
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23572
echo "$as_me: error: cannot find input file: $f" >&2;}
23573
{ (exit 1); exit 1; }; }
23576
done` || { (exit 1); exit 1; }
23578
if test x"$ac_file" != x-; then
23579
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23580
echo "$as_me: creating $ac_file" >&6;}
23584
cat >>$CONFIG_STATUS <<_ACEOF
6420
s%@CFLAGS@%$CFLAGS%g
6421
s%@CPPFLAGS@%$CPPFLAGS%g
6422
s%@CXXFLAGS@%$CXXFLAGS%g
6423
s%@FFLAGS@%$FFLAGS%g
6425
s%@LDFLAGS@%$LDFLAGS%g
6427
s%@exec_prefix@%$exec_prefix%g
6428
s%@prefix@%$prefix%g
6429
s%@program_transform_name@%$program_transform_name%g
6430
s%@bindir@%$bindir%g
6431
s%@sbindir@%$sbindir%g
6432
s%@libexecdir@%$libexecdir%g
6433
s%@datadir@%$datadir%g
6434
s%@sysconfdir@%$sysconfdir%g
6435
s%@sharedstatedir@%$sharedstatedir%g
6436
s%@localstatedir@%$localstatedir%g
6437
s%@libdir@%$libdir%g
6438
s%@includedir@%$includedir%g
6439
s%@oldincludedir@%$oldincludedir%g
6440
s%@infodir@%$infodir%g
6441
s%@mandir@%$mandir%g
6443
s%@host_alias@%$host_alias%g
6444
s%@host_cpu@%$host_cpu%g
6445
s%@host_vendor@%$host_vendor%g
6446
s%@host_os@%$host_os%g
6447
s%@target@%$target%g
6448
s%@target_alias@%$target_alias%g
6449
s%@target_cpu@%$target_cpu%g
6450
s%@target_vendor@%$target_vendor%g
6451
s%@target_os@%$target_os%g
6453
s%@build_alias@%$build_alias%g
6454
s%@build_cpu@%$build_cpu%g
6455
s%@build_vendor@%$build_vendor%g
6456
s%@build_os@%$build_os%g
6457
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6458
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6459
s%@INSTALL_DATA@%$INSTALL_DATA%g
6460
s%@PACKAGE@%$PACKAGE%g
6461
s%@VERSION@%$VERSION%g
6462
s%@ACLOCAL@%$ACLOCAL%g
6463
s%@AUTOCONF@%$AUTOCONF%g
6464
s%@AUTOMAKE@%$AUTOMAKE%g
6465
s%@AUTOHEADER@%$AUTOHEADER%g
6466
s%@MAKEINFO@%$MAKEINFO%g
6467
s%@SET_MAKE@%$SET_MAKE%g
6468
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6469
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6471
s%@PCSC_ARCH_LINUX_TRUE@%$PCSC_ARCH_LINUX_TRUE%g
6472
s%@PCSC_ARCH_LINUX_FALSE@%$PCSC_ARCH_LINUX_FALSE%g
6473
s%@PCSC_ARCH_BSD_TRUE@%$PCSC_ARCH_BSD_TRUE%g
6474
s%@PCSC_ARCH_BSD_FALSE@%$PCSC_ARCH_BSD_FALSE%g
6475
s%@PCSC_ARCH_OSX_TRUE@%$PCSC_ARCH_OSX_TRUE%g
6476
s%@PCSC_ARCH_OSX_FALSE@%$PCSC_ARCH_OSX_FALSE%g
6477
s%@PCSC_ARCH_SOLARIS_TRUE@%$PCSC_ARCH_SOLARIS_TRUE%g
6478
s%@PCSC_ARCH_SOLARIS_FALSE@%$PCSC_ARCH_SOLARIS_FALSE%g
6479
s%@PCSC_ARCH_HPUX_TRUE@%$PCSC_ARCH_HPUX_TRUE%g
6480
s%@PCSC_ARCH_HPUX_FALSE@%$PCSC_ARCH_HPUX_FALSE%g
6485
s%@LEXLIB@%$LEXLIB%g
6486
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6487
s%@PTHREAD_CC@%$PTHREAD_CC%g
6488
s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
6489
s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
6490
s%@OBJEXT@%$OBJEXT%g
6491
s%@EXEEXT@%$EXEEXT%g
6493
s%@RANLIB@%$RANLIB%g
6495
s%@LIBTOOL@%$LIBTOOL%g
6496
s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
6497
s%@ac_aux_dir@%$ac_aux_dir%g
6498
s%@PCSC_LINUX_USB_TRUE@%$PCSC_LINUX_USB_TRUE%g
6499
s%@PCSC_LINUX_USB_FALSE@%$PCSC_LINUX_USB_FALSE%g
6500
s%@PCSC_THR_SAFE_TRUE@%$PCSC_THR_SAFE_TRUE%g
6501
s%@PCSC_THR_SAFE_FALSE@%$PCSC_THR_SAFE_FALSE%g
6506
cat >> $CONFIG_STATUS <<\EOF
6508
# Split the substitutions into bite-sized pieces for seds with
6509
# small command number limits, like on Digital OSF/1 and HP-UX.
6510
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6511
ac_file=1 # Number of current file.
6512
ac_beg=1 # First line for current file.
6513
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6516
while $ac_more_lines; do
6517
if test $ac_beg -gt 1; then
6518
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6520
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6522
if test ! -s conftest.s$ac_file; then
6524
rm -f conftest.s$ac_file
6526
if test -z "$ac_sed_cmds"; then
6527
ac_sed_cmds="sed -f conftest.s$ac_file"
6529
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6531
ac_file=`expr $ac_file + 1`
6533
ac_end=`expr $ac_end + $ac_max_sed_cmds`
23588
cat >>$CONFIG_STATUS <<\_ACEOF
23590
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23591
s,@configure_input@,$configure_input,;t t
23592
s,@srcdir@,$ac_srcdir,;t t
23593
s,@abs_srcdir@,$ac_abs_srcdir,;t t
23594
s,@top_srcdir@,$ac_top_srcdir,;t t
23595
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23596
s,@builddir@,$ac_builddir,;t t
23597
s,@abs_builddir@,$ac_abs_builddir,;t t
23598
s,@top_builddir@,$ac_top_builddir,;t t
23599
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23600
s,@INSTALL@,$ac_INSTALL,;t t
23601
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23603
if test x"$ac_file" != x-; then
23604
mv $tmp/out $ac_file
6536
if test -z "$ac_sed_cmds"; then
6541
cat >> $CONFIG_STATUS <<EOF
6543
CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/utils/Makefile etc/Makefile doc/Makefile"}
6545
cat >> $CONFIG_STATUS <<\EOF
6546
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6547
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6549
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6550
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6551
*) ac_file_in="${ac_file}.in" ;;
6554
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6556
# Remove last slash and all that follows it. Not all systems have dirname.
6557
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6558
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6559
# The file is in a subdirectory.
6560
test ! -d "$ac_dir" && mkdir "$ac_dir"
6561
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6562
# A "../" for each directory in $ac_dir_suffix.
6563
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6565
ac_dir_suffix= ac_dots=
6568
case "$ac_given_srcdir" in
6570
if test -z "$ac_dots"; then top_srcdir=.
6571
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6572
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6574
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6575
top_srcdir="$ac_dots$ac_given_srcdir" ;;
6578
case "$ac_given_INSTALL" in
6579
[/$]*) INSTALL="$ac_given_INSTALL" ;;
6580
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6583
echo creating "$ac_file"
6585
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6587
*Makefile*) ac_comsub="1i\\
6588
# $configure_input" ;;
6592
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6594
s%@configure_input@%$configure_input%g
6595
s%@srcdir@%$srcdir%g
6596
s%@top_srcdir@%$top_srcdir%g
6597
s%@INSTALL@%$INSTALL%g
6598
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23612
cat >>$CONFIG_STATUS <<\_ACEOF
23615
# CONFIG_HEADER section.
6602
23618
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6603
23619
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6605
23621
# ac_d sets the value in "#define NAME VALUE" lines.
6606
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6607
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6610
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6611
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6612
ac_uB='\([ ]\)%\1#\2define\3'
23622
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23623
ac_dB='[ ].*$,\1#\2'
23626
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23627
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23628
ac_uB='$,\1#\2define\3'
6615
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6616
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6617
ac_eB='$%\1#\2define\3'
6621
if test "${CONFIG_HEADERS+set}" != set; then
6623
cat >> $CONFIG_STATUS <<EOF
6624
CONFIG_HEADERS="config.h"
6626
cat >> $CONFIG_STATUS <<\EOF
6628
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23632
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6629
23633
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6631
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6632
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6633
*) ac_file_in="${ac_file}.in" ;;
23635
- | *:- | *:-:* ) # input from stdin
23637
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23638
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23639
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23640
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23641
* ) ac_file_in=$ac_file.in ;;
6636
echo creating $ac_file
6638
rm -f conftest.frag conftest.in conftest.out
6639
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6640
cat $ac_file_inputs > conftest.in
6644
# Transform confdefs.h into a sed script conftest.vals that substitutes
6645
# the proper values into config.h.in to produce config.h. And first:
6646
# Protect against being on the right side of a sed subst in config.status.
6647
# Protect against being in an unquoted here document in config.status.
6649
cat > conftest.hdr <<\EOF
6652
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6656
sed -n -f conftest.hdr confdefs.h > conftest.vals
23644
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23645
echo "$as_me: creating $ac_file" >&6;}
23647
# First look for the input files in the build tree, otherwise in the
23649
ac_file_inputs=`IFS=:
23650
for f in $ac_file_in; do
23652
-) echo $tmp/stdin ;;
23654
# Absolute (can't be DOS-style, as IFS=:)
23655
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23656
echo "$as_me: error: cannot find input file: $f" >&2;}
23657
{ (exit 1); exit 1; }; }
23658
# Do quote $f, to prevent DOS paths from being IFS'd.
23661
if test -f "$f"; then
23664
elif test -f "$srcdir/$f"; then
23669
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23670
echo "$as_me: error: cannot find input file: $f" >&2;}
23671
{ (exit 1); exit 1; }; }
23674
done` || { (exit 1); exit 1; }
23675
# Remove the trailing spaces.
23676
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23680
# Transform confdefs.h into two sed scripts, `conftest.defines' and
23681
# `conftest.undefs', that substitutes the proper values into
23682
# config.h.in to produce config.h. The first handles `#define'
23683
# templates, and the second `#undef' templates.
23684
# And first: Protect against being on the right side of a sed subst in
23685
# config.status. Protect against being in an unquoted here document
23686
# in config.status.
23687
rm -f conftest.defines conftest.undefs
23688
# Using a here document instead of a string reduces the quoting nightmare.
23689
# Putting comments in sed scripts is not portable.
23691
# `end' is used to avoid that the second main sed command (meant for
23692
# 0-ary CPP macros) applies to n-ary macro definitions.
23693
# See the Autoconf documentation for `clear'.
23694
cat >confdef2sed.sed <<\_ACEOF
23699
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23701
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23704
# If some macros were called several times there might be several times
23705
# the same #defines, which is useless. Nevertheless, we may not want to
23706
# sort them, since we want the *last* AC-DEFINE to be honored.
23707
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23708
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23709
rm -f confdef2sed.sed
6659
23711
# This sed command replaces #undef with comments. This is necessary, for
6660
23712
# example, in the case of _POSIX_SOURCE, which is predefined and required
6661
23713
# on some systems where configure will not decide to define it.
6662
cat >> conftest.vals <<\EOF
6663
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6666
# Break up conftest.vals because some shells have a limit on
6667
# the size of here documents, and old seds have small limits too.
6672
ac_lines=`grep -c . conftest.vals`
6673
# grep -c gives empty output for an empty file on some AIX systems.
6674
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6675
# Write a limited-size here document to conftest.frag.
6676
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6677
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6679
sed -f conftest.frag conftest.in > conftest.out
6681
mv conftest.out conftest.in
6683
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6685
mv conftest.tail conftest.vals
6689
cat >> $CONFIG_STATUS <<\EOF
6690
rm -f conftest.frag conftest.h
6691
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6692
cat conftest.in >> conftest.h
6694
if cmp -s $ac_file conftest.h 2>/dev/null; then
6695
echo "$ac_file is unchanged"
6698
# Remove last slash and all that follows it. Not all systems have dirname.
6699
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6700
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6701
# The file is in a subdirectory.
6702
test ! -d "$ac_dir" && mkdir "$ac_dir"
23714
cat >>conftest.undefs <<\_ACEOF
23715
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23718
# Break up conftest.defines because some shells have a limit on the size
23719
# of here documents, and old seds have small limits too (100 cmds).
23720
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23721
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23722
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23723
echo ' :' >>$CONFIG_STATUS
23724
rm -f conftest.tail
23725
while grep . conftest.defines >/dev/null
23727
# Write a limited-size here document to $tmp/defines.sed.
23728
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23729
# Speed up: don't consider the non `#define' lines.
23730
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23731
# Work around the forget-to-reset-the-flag bug.
23732
echo 't clr' >>$CONFIG_STATUS
23733
echo ': clr' >>$CONFIG_STATUS
23734
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23736
sed -f $tmp/defines.sed $tmp/in >$tmp/out
23738
mv $tmp/out $tmp/in
23740
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23741
rm -f conftest.defines
23742
mv conftest.tail conftest.defines
23744
rm -f conftest.defines
23745
echo ' fi # grep' >>$CONFIG_STATUS
23746
echo >>$CONFIG_STATUS
23748
# Break up conftest.undefs because some shells have a limit on the size
23749
# of here documents, and old seds have small limits too (100 cmds).
23750
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23751
rm -f conftest.tail
23752
while grep . conftest.undefs >/dev/null
23754
# Write a limited-size here document to $tmp/undefs.sed.
23755
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23756
# Speed up: don't consider the non `#undef'
23757
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23758
# Work around the forget-to-reset-the-flag bug.
23759
echo 't clr' >>$CONFIG_STATUS
23760
echo ': clr' >>$CONFIG_STATUS
23761
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23763
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23765
mv $tmp/out $tmp/in
23767
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23768
rm -f conftest.undefs
23769
mv conftest.tail conftest.undefs
23771
rm -f conftest.undefs
23773
cat >>$CONFIG_STATUS <<\_ACEOF
23774
# Let's still pretend it is `configure' which instantiates (i.e., don't
23775
# use $as_me), people would be surprised to read:
23776
# /* config.h. Generated by config.status. */
23777
if test x"$ac_file" = x-; then
23778
echo "/* Generated by configure. */" >$tmp/config.h
23780
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23782
cat $tmp/in >>$tmp/config.h
23784
if test x"$ac_file" != x-; then
23785
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23786
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23787
echo "$as_me: $ac_file is unchanged" >&6;}
23789
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23790
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23791
X"$ac_file" : 'X\(//\)[^/]' \| \
23792
X"$ac_file" : 'X\(//\)$' \| \
23793
X"$ac_file" : 'X\(/\)' \| \
23794
. : '\(.\)' 2>/dev/null ||
23796
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23797
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23798
/^X\(\/\/\)$/{ s//\1/; q; }
23799
/^X\(\/\).*/{ s//\1/; q; }
23801
{ if $as_mkdir_p; then
23806
while test ! -d "$as_dir"; do
23807
as_dirs="$as_dir $as_dirs"
23808
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23809
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23810
X"$as_dir" : 'X\(//\)[^/]' \| \
23811
X"$as_dir" : 'X\(//\)$' \| \
23812
X"$as_dir" : 'X\(/\)' \| \
23813
. : '\(.\)' 2>/dev/null ||
23815
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23816
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23817
/^X\(\/\/\)$/{ s//\1/; q; }
23818
/^X\(\/\).*/{ s//\1/; q; }
23821
test ! -n "$as_dirs" || mkdir $as_dirs
23822
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23823
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23824
{ (exit 1); exit 1; }; }; }
23827
mv $tmp/config.h $ac_file
6705
mv conftest.h $ac_file
6710
cat >> $CONFIG_STATUS <<EOF
6714
cat >> $CONFIG_STATUS <<\EOF
6715
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
23831
rm -f $tmp/config.h
23833
# Compute $ac_file's index in $config_headers.
23835
for _am_header in $config_headers :; do
23836
case $_am_header in
23837
$ac_file | $ac_file:* )
23840
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23843
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23844
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23845
X$ac_file : 'X\(//\)[^/]' \| \
23846
X$ac_file : 'X\(//\)$' \| \
23847
X$ac_file : 'X\(/\)' \| \
23848
. : '\(.\)' 2>/dev/null ||
23850
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23851
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23852
/^X\(\/\/\)$/{ s//\1/; q; }
23853
/^X\(\/\).*/{ s//\1/; q; }
23854
s/.*/./; q'`/stamp-h$_am_stamp_count
23857
cat >>$CONFIG_STATUS <<\_ACEOF
23860
# CONFIG_COMMANDS section.
23862
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23863
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23864
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23865
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23866
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23867
X"$ac_dest" : 'X\(//\)[^/]' \| \
23868
X"$ac_dest" : 'X\(//\)$' \| \
23869
X"$ac_dest" : 'X\(/\)' \| \
23870
. : '\(.\)' 2>/dev/null ||
23872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23874
/^X\(\/\/\)$/{ s//\1/; q; }
23875
/^X\(\/\).*/{ s//\1/; q; }
23877
{ if $as_mkdir_p; then
23882
while test ! -d "$as_dir"; do
23883
as_dirs="$as_dir $as_dirs"
23884
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23885
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23886
X"$as_dir" : 'X\(//\)[^/]' \| \
23887
X"$as_dir" : 'X\(//\)$' \| \
23888
X"$as_dir" : 'X\(/\)' \| \
23889
. : '\(.\)' 2>/dev/null ||
23891
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23892
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23893
/^X\(\/\/\)$/{ s//\1/; q; }
23894
/^X\(\/\).*/{ s//\1/; q; }
23897
test ! -n "$as_dirs" || mkdir $as_dirs
23898
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23899
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23900
{ (exit 1); exit 1; }; }; }
23904
if test "$ac_dir" != .; then
23905
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23906
# A "../" for each directory in $ac_dir_suffix.
23907
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23909
ac_dir_suffix= ac_top_builddir=
23913
.) # No --srcdir option. We are building in place.
23915
if test -z "$ac_top_builddir"; then
23918
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23920
[\\/]* | ?:[\\/]* ) # Absolute path.
23921
ac_srcdir=$srcdir$ac_dir_suffix;
23922
ac_top_srcdir=$srcdir ;;
23923
*) # Relative path.
23924
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23925
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23928
# Do not use `cd foo && pwd` to compute absolute paths, because
23929
# the directories may not exist.
23931
.) ac_abs_builddir="$ac_dir";;
23934
.) ac_abs_builddir=`pwd`;;
23935
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23936
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23939
case $ac_abs_builddir in
23940
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23942
case ${ac_top_builddir}. in
23943
.) ac_abs_top_builddir=$ac_abs_builddir;;
23944
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23945
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23948
case $ac_abs_builddir in
23949
.) ac_abs_srcdir=$ac_srcdir;;
23952
.) ac_abs_srcdir=$ac_abs_builddir;;
23953
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23954
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23957
case $ac_abs_builddir in
23958
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23960
case $ac_top_srcdir in
23961
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23962
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23963
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23968
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23969
echo "$as_me: executing $ac_dest commands" >&6;}
23971
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23972
# Strip MF so we end up with the name of the file.
23973
mf=`echo "$mf" | sed -e 's/:.*$//'`
23974
# Check whether this is an Automake generated Makefile or not.
23975
# We used to match only the files named `Makefile.in', but
23976
# some people rename them; so instead we look at the file content.
23977
# Grep'ing the first line is not enough: some people post-process
23978
# each Makefile.in and add a new line on top of each file to say so.
23979
# So let's grep whole file.
23980
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23981
dirpart=`(dirname "$mf") 2>/dev/null ||
23982
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23983
X"$mf" : 'X\(//\)[^/]' \| \
23984
X"$mf" : 'X\(//\)$' \| \
23985
X"$mf" : 'X\(/\)' \| \
23986
. : '\(.\)' 2>/dev/null ||
23988
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23989
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23990
/^X\(\/\/\)$/{ s//\1/; q; }
23991
/^X\(\/\).*/{ s//\1/; q; }
23996
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23997
# Extract the definition of DEP_FILES from the Makefile without
23999
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24000
test -z "$DEPDIR" && continue
24001
# When using ansi2knr, U may be empty or an underscore; expand it
24002
U=`sed -n -e '/^U = / s///p' < "$mf"`
24003
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24004
# We invoke sed twice because it is the simplest approach to
24005
# changing $(DEPDIR) to its actual value in the expansion.
24006
for file in `sed -n -e '
24007
/^DEP_FILES = .*\\\\$/ {
24016
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24017
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24018
# Make sure the directory exists.
24019
test -f "$dirpart/$file" && continue
24020
fdir=`(dirname "$file") 2>/dev/null ||
24021
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022
X"$file" : 'X\(//\)[^/]' \| \
24023
X"$file" : 'X\(//\)$' \| \
24024
X"$file" : 'X\(/\)' \| \
24025
. : '\(.\)' 2>/dev/null ||
24027
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24028
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24029
/^X\(\/\/\)$/{ s//\1/; q; }
24030
/^X\(\/\).*/{ s//\1/; q; }
24032
{ if $as_mkdir_p; then
24033
mkdir -p $dirpart/$fdir
24035
as_dir=$dirpart/$fdir
24037
while test ! -d "$as_dir"; do
24038
as_dirs="$as_dir $as_dirs"
24039
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24040
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24041
X"$as_dir" : 'X\(//\)[^/]' \| \
24042
X"$as_dir" : 'X\(//\)$' \| \
24043
X"$as_dir" : 'X\(/\)' \| \
24044
. : '\(.\)' 2>/dev/null ||
24046
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24047
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24048
/^X\(\/\/\)$/{ s//\1/; q; }
24049
/^X\(\/\).*/{ s//\1/; q; }
24052
test ! -n "$as_dirs" || mkdir $as_dirs
24053
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24054
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24055
{ (exit 1); exit 1; }; }; }
24057
# echo "creating $dirpart/$file"
24058
echo '# dummy' > "$dirpart/$file"
24066
cat >>$CONFIG_STATUS <<\_ACEOF
24068
{ (exit 0); exit 0; }
6719
24070
chmod +x $CONFIG_STATUS
6720
rm -fr confdefs* $ac_clean_files
6721
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24071
ac_clean_files=$ac_clean_files_save
24074
# configure is writing to config.log, and then calls config.status.
24075
# config.status does its own redirection, appending to config.log.
24076
# Unfortunately, on DOS this fails, as config.log is still kept open
24077
# by configure, so config.status won't be able to write to it; its
24078
# output is simply discarded. So we exec the FD to /dev/null,
24079
# effectively closing config.log, so it can be properly (re)opened and
24080
# appended to by config.status. When coming back to configure, we
24081
# need to make the FD available again.
24082
if test "$no_create" != yes; then
24084
ac_config_status_args=
24085
test "$silent" = yes &&
24086
ac_config_status_args="$ac_config_status_args --quiet"
24088
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24090
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24091
# would make configure fail if this is the last instruction.
24092
$ac_cs_success || { (exit 1); exit 1; }