8681
9893
# Do we need to explicitly link libc?
8683
archive_cmds_need_lc=yes
8684
if test "$enable_shared" = yes && test "$GCC" = yes; then
8685
case $archive_cmds in
8687
# FIXME: we may have to deal with multi-command sequences.
8690
# Test whether the compiler implicitly links with -lc since on some
8691
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8692
# to ld, don't add -lc before -lgcc.
8693
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9895
case "x$archive_cmds_need_lc" in
9897
# Assume -lc should be added
9898
archive_cmds_need_lc=yes
9900
if test "$enable_shared" = yes && test "$GCC" = yes; then
9901
case $archive_cmds in
9903
# FIXME: we may have to deal with multi-command sequences.
9906
# Test whether the compiler implicitly links with -lc since on some
9907
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9908
# to ld, don't add -lc before -lgcc.
9909
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8694
9910
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8696
echo 'static int dummy;' > conftest.$ac_ext
9912
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8698
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699
9915
(eval $ac_compile) 2>&5
8701
9917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702
9918
(exit $ac_status); } 2>conftest.err; then
8705
libobjs=conftest.$ac_objext
8707
wl=$lt_prog_compiler_wl
8713
lt_save_allow_undefined_flag=$allow_undefined_flag
8714
allow_undefined_flag=
8715
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9921
libobjs=conftest.$ac_objext
9923
wl=$lt_prog_compiler_wl
9929
lt_save_allow_undefined_flag=$allow_undefined_flag
9930
allow_undefined_flag=
9931
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8716
9932
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8718
9934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
9935
(exit $ac_status); }
8721
archive_cmds_need_lc=no
9937
archive_cmds_need_lc=no
9939
archive_cmds_need_lc=yes
9941
allow_undefined_flag=$lt_save_allow_undefined_flag
8723
archive_cmds_need_lc=yes
9943
cat conftest.err 1>&5
8725
allow_undefined_flag=$lt_save_allow_undefined_flag
8727
cat conftest.err 1>&5
8730
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9946
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8731
9947
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9954
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9955
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9957
libname_spec='lib$name'
9965
shlibpath_overrides_runpath=unknown
9967
dynamic_linker="$host_os ld.so"
9968
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9969
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9970
need_lib_prefix=unknown
9971
hardcode_into_libs=no
9973
# when you set need_version to no, make sure it does not cause -set_version
9974
# flags to be left without arguments
9975
need_version=unknown
9980
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9981
shlibpath_var=LIBPATH
9983
# AIX 3 has no versioning support, so we append a major version to the name.
9984
soname_spec='${libname}${release}${shared_ext}$major'
9991
hardcode_into_libs=yes
9992
if test "$host_cpu" = ia64; then
9993
# AIX 5 supports IA64
9994
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9995
shlibpath_var=LD_LIBRARY_PATH
9997
# With GCC up to 2.95.x, collect2 would create an import file
9998
# for dependence libraries. The import file would start with
9999
# the line `#! .'. This would cause the generated library to
10000
# depend on `.', always an invalid library. This was fixed in
10001
# development snapshots of GCC prior to 3.0.
10003
aix4 | aix4.[01] | aix4.[01].*)
10004
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10006
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10009
can_build_shared=no
10013
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10014
# soname into executable. Probably we can add versioning support to
10015
# collect2, so additional links can be useful in future.
10016
if test "$aix_use_runtimelinking" = yes; then
10017
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10018
# instead of lib<name>.a to let people know that these are not
10019
# typical AIX shared libraries.
10020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022
# We preserve .a as extension for shared libraries through AIX4.2
10023
# and later when we are not doing run time linking.
10024
library_names_spec='${libname}${release}.a $libname.a'
10025
soname_spec='${libname}${release}${shared_ext}$major'
10027
shlibpath_var=LIBPATH
10032
library_names_spec='$libname.ixlibrary $libname.a'
10033
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10034
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'
10038
library_names_spec='${libname}${shared_ext}'
10039
dynamic_linker="$host_os ld.so"
10040
shlibpath_var=LIBRARY_PATH
10046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047
soname_spec='${libname}${release}${shared_ext}$major'
10048
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10049
shlibpath_var=LD_LIBRARY_PATH
10050
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10051
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10052
# the default ld.so.conf also contains /usr/contrib/lib and
10053
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10054
# libtool to hard-code these into programs
10057
cygwin* | mingw* | pw32*)
10058
version_type=windows
10063
case $GCC,$host_os in
10064
yes,cygwin* | yes,mingw* | yes,pw32*)
10065
library_names_spec='$libname.dll.a'
10066
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10067
postinstall_cmds='base_file=`basename \${file}`~
10068
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10069
dldir=$destdir/`dirname \$dlpath`~
10070
test -d \$dldir || mkdir -p \$dldir~
10071
$install_prog $dir/$dlname \$dldir/$dlname'
10072
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10073
dlpath=$dir/\$dldll~
10075
shlibpath_overrides_runpath=yes
10079
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10080
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10084
# MinGW DLLs use traditional 'lib' prefix
10085
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10086
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10087
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10088
# It is most probably a Windows format PATH printed by
10089
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10090
# path with ; separators, and with drive letters. We can handle the
10091
# drive letters (cygwin fileutils understands them), so leave them,
10092
# especially as we might pass files found there to a mingw objdump,
10093
# which wouldn't understand a cygwinified path. Ahh.
10094
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10096
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10100
# pw32 DLLs use 'pw' prefix rather than 'lib'
10101
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10107
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10110
dynamic_linker='Win32 ld.exe'
10111
# FIXME: first we should search . and the directory the executable is in
10115
darwin* | rhapsody*)
10116
dynamic_linker="$host_os dyld"
10117
version_type=darwin
10120
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10121
soname_spec='${libname}${release}${major}$shared_ext'
10122
shlibpath_overrides_runpath=yes
10123
shlibpath_var=DYLD_LIBRARY_PATH
10124
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10125
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10126
if test "$GCC" = yes; then
10127
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"`
10129
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10131
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10139
soname_spec='${libname}${release}${shared_ext}$major'
10140
shlibpath_var=LD_LIBRARY_PATH
10151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152
soname_spec='${libname}${release}${shared_ext}$major'
10153
shlibpath_var=LD_LIBRARY_PATH
10154
shlibpath_overrides_runpath=no
10155
hardcode_into_libs=yes
10156
dynamic_linker='GNU ld.so'
10160
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10161
version_type=freebsd-$objformat
10162
case $version_type in
10164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10169
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10173
shlibpath_var=LD_LIBRARY_PATH
10176
shlibpath_overrides_runpath=yes
10178
freebsd3.01* | freebsdelf3.01*)
10179
shlibpath_overrides_runpath=yes
10180
hardcode_into_libs=yes
10183
shlibpath_overrides_runpath=no
10184
hardcode_into_libs=yes
10193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10194
soname_spec='${libname}${release}${shared_ext}$major'
10195
shlibpath_var=LD_LIBRARY_PATH
10196
hardcode_into_libs=yes
10199
hpux9* | hpux10* | hpux11*)
10200
# Give a soname corresponding to the major version so that dld.sl refuses to
10201
# link against other versions.
10205
case "$host_cpu" in
10208
hardcode_into_libs=yes
10209
dynamic_linker="$host_os dld.so"
10210
shlibpath_var=LD_LIBRARY_PATH
10211
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213
soname_spec='${libname}${release}${shared_ext}$major'
10214
if test "X$HPUX_IA64_MODE" = X32; then
10215
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10217
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10219
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10223
hardcode_into_libs=yes
10224
dynamic_linker="$host_os dld.sl"
10225
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10226
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228
soname_spec='${libname}${release}${shared_ext}$major'
10229
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10230
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10234
dynamic_linker="$host_os dld.sl"
10235
shlibpath_var=SHLIB_PATH
10236
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238
soname_spec='${libname}${release}${shared_ext}$major'
10241
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10242
postinstall_cmds='chmod 555 $lib'
10245
irix5* | irix6* | nonstopux*)
10247
nonstopux*) version_type=nonstopux ;;
10249
if test "$lt_cv_prog_gnu_ld" = yes; then
10257
soname_spec='${libname}${release}${shared_ext}$major'
10258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10260
irix5* | nonstopux*)
10261
libsuff= shlibsuff=
10264
case $LD in # libtool.m4 will add one of these switches to LD
10265
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10266
libsuff= shlibsuff= libmagic=32-bit;;
10267
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10268
libsuff=32 shlibsuff=N32 libmagic=N32;;
10269
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10270
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10271
*) libsuff= shlibsuff= libmagic=never-match;;
10275
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10276
shlibpath_overrides_runpath=no
10277
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10278
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10279
hardcode_into_libs=yes
10282
# No shared lib support for Linux oldld, aout, or coff.
10283
linux*oldld* | linux*aout* | linux*coff*)
10287
# This must be Linux ELF.
10292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293
soname_spec='${libname}${release}${shared_ext}$major'
10294
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10296
if test "x$LINUX_64_MODE" = x64; then
10297
# Some platforms are per default 64-bit, so there's no /lib64
10298
if test -d /lib64; then
10302
shlibpath_var=LD_LIBRARY_PATH
10303
shlibpath_overrides_runpath=no
10304
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10305
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10306
# This implies no fast_install, which is unacceptable.
10307
# Some rework will be needed to allow for fast_install
10308
# before this can be enabled.
10309
hardcode_into_libs=yes
10311
# We used to test for /lib/ld.so.1 and disable shared libraries on
10312
# powerpc, because MkLinux only supported shared libraries with the
10313
# GNU dynamic linker. Since this was broken with cross compilers,
10314
# most powerpc-linux boxes support dynamic linking these days and
10315
# people can always --disable-shared, the test was removed, and we
10316
# assume the GNU/Linux dynamic linker is in use.
10317
dynamic_linker='GNU/Linux ld.so'
10324
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10326
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10327
dynamic_linker='NetBSD (a.out) ld.so'
10329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10330
soname_spec='${libname}${release}${shared_ext}$major'
10331
dynamic_linker='NetBSD ld.elf_so'
10333
shlibpath_var=LD_LIBRARY_PATH
10334
shlibpath_overrides_runpath=yes
10335
hardcode_into_libs=yes
10340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341
shlibpath_var=LD_LIBRARY_PATH
10342
shlibpath_overrides_runpath=yes
10349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350
soname_spec='${libname}${release}${shared_ext}$major'
10351
shlibpath_var=LD_LIBRARY_PATH
10352
shlibpath_overrides_runpath=yes
10359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10360
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10361
shlibpath_var=LD_LIBRARY_PATH
10362
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10364
openbsd2.[89] | openbsd2.[89].*)
10365
shlibpath_overrides_runpath=no
10368
shlibpath_overrides_runpath=yes
10372
shlibpath_overrides_runpath=yes
10377
libname_spec='$name'
10380
library_names_spec='$libname${shared_ext} $libname.a'
10381
dynamic_linker='OS/2 ld.exe'
10382
shlibpath_var=LIBPATH
10385
osf3* | osf4* | osf5*)
10389
soname_spec='${libname}${release}${shared_ext}$major'
10390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391
shlibpath_var=LD_LIBRARY_PATH
10392
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10393
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10398
soname_spec='${libname}${release}${shared_ext}$major'
10399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400
shlibpath_var=LD_LIBRARY_PATH
10407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408
soname_spec='${libname}${release}${shared_ext}$major'
10409
shlibpath_var=LD_LIBRARY_PATH
10410
shlibpath_overrides_runpath=yes
10411
hardcode_into_libs=yes
10412
# ldd complains unless libraries are executable
10413
postinstall_cmds='chmod +x $lib'
10418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10419
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10420
shlibpath_var=LD_LIBRARY_PATH
10421
shlibpath_overrides_runpath=yes
10422
if test "$with_gnu_ld" = yes; then
10428
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431
soname_spec='${libname}${release}${shared_ext}$major'
10432
shlibpath_var=LD_LIBRARY_PATH
10433
case $host_vendor in
10435
shlibpath_overrides_runpath=no
10437
export_dynamic_flag_spec='${wl}-Blargedynsym'
10438
runpath_var=LD_RUN_PATH
10446
shlibpath_overrides_runpath=no
10447
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10453
if test -d /usr/nec ;then
10455
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10456
soname_spec='$libname${shared_ext}.$major'
10457
shlibpath_var=LD_LIBRARY_PATH
10463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464
soname_spec='${libname}${release}${shared_ext}$major'
10465
shlibpath_var=LD_LIBRARY_PATH
10472
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10473
echo "${ECHO_T}$dynamic_linker" >&6
10474
test "$dynamic_linker" = no && can_build_shared=no
8736
10476
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8737
10477
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8738
10478
hardcode_action=
8739
10479
if test -n "$hardcode_libdir_flag_spec" || \
8740
test -n "$runpath_var "; then
10480
test -n "$runpath_var " || \
10481
test "X$hardcode_automatic"="Xyes" ; then
8742
10483
# We can hardcode non-existant directories.
8743
10484
if test "$hardcode_direct" != no &&
11892
13524
# Do we need to explicitly link libc?
11894
archive_cmds_need_lc_CXX=yes
11895
if test "$enable_shared" = yes && test "$GCC" = yes; then
11896
case $archive_cmds_CXX in
11898
# FIXME: we may have to deal with multi-command sequences.
11901
# Test whether the compiler implicitly links with -lc since on some
11902
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11903
# to ld, don't add -lc before -lgcc.
11904
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13526
case "x$archive_cmds_need_lc_CXX" in
13528
# Assume -lc should be added
13529
archive_cmds_need_lc_CXX=yes
13531
if test "$enable_shared" = yes && test "$GCC" = yes; then
13532
case $archive_cmds_CXX in
13534
# FIXME: we may have to deal with multi-command sequences.
13537
# Test whether the compiler implicitly links with -lc since on some
13538
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13539
# to ld, don't add -lc before -lgcc.
13540
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11905
13541
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11907
echo 'static int dummy;' > conftest.$ac_ext
13543
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910
13546
(eval $ac_compile) 2>&5
11912
13548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
13549
(exit $ac_status); } 2>conftest.err; then
11916
libobjs=conftest.$ac_objext
11918
wl=$lt_prog_compiler_wl_CXX
11924
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11925
allow_undefined_flag_CXX=
11926
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13552
libobjs=conftest.$ac_objext
13554
wl=$lt_prog_compiler_wl_CXX
13560
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13561
allow_undefined_flag_CXX=
13562
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11927
13563
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11929
13565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930
13566
(exit $ac_status); }
11932
archive_cmds_need_lc_CXX=no
13568
archive_cmds_need_lc_CXX=no
13570
archive_cmds_need_lc_CXX=yes
13572
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11934
archive_cmds_need_lc_CXX=yes
13574
cat conftest.err 1>&5
11936
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11938
cat conftest.err 1>&5
11941
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13577
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11942
13578
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13585
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13586
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13587
library_names_spec=
13588
libname_spec='lib$name'
13592
postuninstall_cmds=
13596
shlibpath_overrides_runpath=unknown
13598
dynamic_linker="$host_os ld.so"
13599
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13600
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13601
need_lib_prefix=unknown
13602
hardcode_into_libs=no
13604
# when you set need_version to no, make sure it does not cause -set_version
13605
# flags to be left without arguments
13606
need_version=unknown
13611
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13612
shlibpath_var=LIBPATH
13614
# AIX 3 has no versioning support, so we append a major version to the name.
13615
soname_spec='${libname}${release}${shared_ext}$major'
13622
hardcode_into_libs=yes
13623
if test "$host_cpu" = ia64; then
13624
# AIX 5 supports IA64
13625
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13626
shlibpath_var=LD_LIBRARY_PATH
13628
# With GCC up to 2.95.x, collect2 would create an import file
13629
# for dependence libraries. The import file would start with
13630
# the line `#! .'. This would cause the generated library to
13631
# depend on `.', always an invalid library. This was fixed in
13632
# development snapshots of GCC prior to 3.0.
13634
aix4 | aix4.[01] | aix4.[01].*)
13635
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13637
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13640
can_build_shared=no
13644
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13645
# soname into executable. Probably we can add versioning support to
13646
# collect2, so additional links can be useful in future.
13647
if test "$aix_use_runtimelinking" = yes; then
13648
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13649
# instead of lib<name>.a to let people know that these are not
13650
# typical AIX shared libraries.
13651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653
# We preserve .a as extension for shared libraries through AIX4.2
13654
# and later when we are not doing run time linking.
13655
library_names_spec='${libname}${release}.a $libname.a'
13656
soname_spec='${libname}${release}${shared_ext}$major'
13658
shlibpath_var=LIBPATH
13663
library_names_spec='$libname.ixlibrary $libname.a'
13664
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13665
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'
13669
library_names_spec='${libname}${shared_ext}'
13670
dynamic_linker="$host_os ld.so"
13671
shlibpath_var=LIBRARY_PATH
13677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13678
soname_spec='${libname}${release}${shared_ext}$major'
13679
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13680
shlibpath_var=LD_LIBRARY_PATH
13681
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13682
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13683
# the default ld.so.conf also contains /usr/contrib/lib and
13684
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13685
# libtool to hard-code these into programs
13688
cygwin* | mingw* | pw32*)
13689
version_type=windows
13694
case $GCC,$host_os in
13695
yes,cygwin* | yes,mingw* | yes,pw32*)
13696
library_names_spec='$libname.dll.a'
13697
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13698
postinstall_cmds='base_file=`basename \${file}`~
13699
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13700
dldir=$destdir/`dirname \$dlpath`~
13701
test -d \$dldir || mkdir -p \$dldir~
13702
$install_prog $dir/$dlname \$dldir/$dlname'
13703
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13704
dlpath=$dir/\$dldll~
13706
shlibpath_overrides_runpath=yes
13710
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13711
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13712
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13715
# MinGW DLLs use traditional 'lib' prefix
13716
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13717
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13718
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13719
# It is most probably a Windows format PATH printed by
13720
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13721
# path with ; separators, and with drive letters. We can handle the
13722
# drive letters (cygwin fileutils understands them), so leave them,
13723
# especially as we might pass files found there to a mingw objdump,
13724
# which wouldn't understand a cygwinified path. Ahh.
13725
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13727
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13731
# pw32 DLLs use 'pw' prefix rather than 'lib'
13732
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13738
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13741
dynamic_linker='Win32 ld.exe'
13742
# FIXME: first we should search . and the directory the executable is in
13746
darwin* | rhapsody*)
13747
dynamic_linker="$host_os dyld"
13748
version_type=darwin
13751
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13752
soname_spec='${libname}${release}${major}$shared_ext'
13753
shlibpath_overrides_runpath=yes
13754
shlibpath_var=DYLD_LIBRARY_PATH
13755
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13756
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13757
if test "$GCC" = yes; then
13758
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"`
13760
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13762
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13770
soname_spec='${libname}${release}${shared_ext}$major'
13771
shlibpath_var=LD_LIBRARY_PATH
13782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13783
soname_spec='${libname}${release}${shared_ext}$major'
13784
shlibpath_var=LD_LIBRARY_PATH
13785
shlibpath_overrides_runpath=no
13786
hardcode_into_libs=yes
13787
dynamic_linker='GNU ld.so'
13791
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13792
version_type=freebsd-$objformat
13793
case $version_type in
13795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13800
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13804
shlibpath_var=LD_LIBRARY_PATH
13807
shlibpath_overrides_runpath=yes
13809
freebsd3.01* | freebsdelf3.01*)
13810
shlibpath_overrides_runpath=yes
13811
hardcode_into_libs=yes
13814
shlibpath_overrides_runpath=no
13815
hardcode_into_libs=yes
13824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13825
soname_spec='${libname}${release}${shared_ext}$major'
13826
shlibpath_var=LD_LIBRARY_PATH
13827
hardcode_into_libs=yes
13830
hpux9* | hpux10* | hpux11*)
13831
# Give a soname corresponding to the major version so that dld.sl refuses to
13832
# link against other versions.
13836
case "$host_cpu" in
13839
hardcode_into_libs=yes
13840
dynamic_linker="$host_os dld.so"
13841
shlibpath_var=LD_LIBRARY_PATH
13842
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844
soname_spec='${libname}${release}${shared_ext}$major'
13845
if test "X$HPUX_IA64_MODE" = X32; then
13846
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13848
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13850
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13854
hardcode_into_libs=yes
13855
dynamic_linker="$host_os dld.sl"
13856
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13857
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859
soname_spec='${libname}${release}${shared_ext}$major'
13860
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13861
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13865
dynamic_linker="$host_os dld.sl"
13866
shlibpath_var=SHLIB_PATH
13867
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869
soname_spec='${libname}${release}${shared_ext}$major'
13872
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13873
postinstall_cmds='chmod 555 $lib'
13876
irix5* | irix6* | nonstopux*)
13878
nonstopux*) version_type=nonstopux ;;
13880
if test "$lt_cv_prog_gnu_ld" = yes; then
13888
soname_spec='${libname}${release}${shared_ext}$major'
13889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13891
irix5* | nonstopux*)
13892
libsuff= shlibsuff=
13895
case $LD in # libtool.m4 will add one of these switches to LD
13896
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13897
libsuff= shlibsuff= libmagic=32-bit;;
13898
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13899
libsuff=32 shlibsuff=N32 libmagic=N32;;
13900
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13901
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13902
*) libsuff= shlibsuff= libmagic=never-match;;
13906
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13907
shlibpath_overrides_runpath=no
13908
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13909
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13910
hardcode_into_libs=yes
13913
# No shared lib support for Linux oldld, aout, or coff.
13914
linux*oldld* | linux*aout* | linux*coff*)
13918
# This must be Linux ELF.
13923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924
soname_spec='${libname}${release}${shared_ext}$major'
13925
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13927
if test "x$LINUX_64_MODE" = x64; then
13928
# Some platforms are per default 64-bit, so there's no /lib64
13929
if test -d /lib64; then
13933
shlibpath_var=LD_LIBRARY_PATH
13934
shlibpath_overrides_runpath=no
13935
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13936
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13937
# This implies no fast_install, which is unacceptable.
13938
# Some rework will be needed to allow for fast_install
13939
# before this can be enabled.
13940
hardcode_into_libs=yes
13942
# We used to test for /lib/ld.so.1 and disable shared libraries on
13943
# powerpc, because MkLinux only supported shared libraries with the
13944
# GNU dynamic linker. Since this was broken with cross compilers,
13945
# most powerpc-linux boxes support dynamic linking these days and
13946
# people can always --disable-shared, the test was removed, and we
13947
# assume the GNU/Linux dynamic linker is in use.
13948
dynamic_linker='GNU/Linux ld.so'
13955
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13957
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13958
dynamic_linker='NetBSD (a.out) ld.so'
13960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13961
soname_spec='${libname}${release}${shared_ext}$major'
13962
dynamic_linker='NetBSD ld.elf_so'
13964
shlibpath_var=LD_LIBRARY_PATH
13965
shlibpath_overrides_runpath=yes
13966
hardcode_into_libs=yes
13971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972
shlibpath_var=LD_LIBRARY_PATH
13973
shlibpath_overrides_runpath=yes
13980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981
soname_spec='${libname}${release}${shared_ext}$major'
13982
shlibpath_var=LD_LIBRARY_PATH
13983
shlibpath_overrides_runpath=yes
13990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13992
shlibpath_var=LD_LIBRARY_PATH
13993
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13995
openbsd2.[89] | openbsd2.[89].*)
13996
shlibpath_overrides_runpath=no
13999
shlibpath_overrides_runpath=yes
14003
shlibpath_overrides_runpath=yes
14008
libname_spec='$name'
14011
library_names_spec='$libname${shared_ext} $libname.a'
14012
dynamic_linker='OS/2 ld.exe'
14013
shlibpath_var=LIBPATH
14016
osf3* | osf4* | osf5*)
14020
soname_spec='${libname}${release}${shared_ext}$major'
14021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022
shlibpath_var=LD_LIBRARY_PATH
14023
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14024
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14029
soname_spec='${libname}${release}${shared_ext}$major'
14030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031
shlibpath_var=LD_LIBRARY_PATH
14038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039
soname_spec='${libname}${release}${shared_ext}$major'
14040
shlibpath_var=LD_LIBRARY_PATH
14041
shlibpath_overrides_runpath=yes
14042
hardcode_into_libs=yes
14043
# ldd complains unless libraries are executable
14044
postinstall_cmds='chmod +x $lib'
14049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14050
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14051
shlibpath_var=LD_LIBRARY_PATH
14052
shlibpath_overrides_runpath=yes
14053
if test "$with_gnu_ld" = yes; then
14059
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062
soname_spec='${libname}${release}${shared_ext}$major'
14063
shlibpath_var=LD_LIBRARY_PATH
14064
case $host_vendor in
14066
shlibpath_overrides_runpath=no
14068
export_dynamic_flag_spec='${wl}-Blargedynsym'
14069
runpath_var=LD_RUN_PATH
14077
shlibpath_overrides_runpath=no
14078
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14084
if test -d /usr/nec ;then
14086
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14087
soname_spec='$libname${shared_ext}.$major'
14088
shlibpath_var=LD_LIBRARY_PATH
14094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095
soname_spec='${libname}${release}${shared_ext}$major'
14096
shlibpath_var=LD_LIBRARY_PATH
14103
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14104
echo "${ECHO_T}$dynamic_linker" >&6
14105
test "$dynamic_linker" = no && can_build_shared=no
11947
14107
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11948
14108
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11949
14109
hardcode_action_CXX=
11950
14110
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11951
test -n "$runpath_var CXX"; then
14111
test -n "$runpath_var CXX" || \
14112
test "X$hardcode_automatic_CXX"="Xyes" ; then
11953
14114
# We can hardcode non-existant directories.
11954
14115
if test "$hardcode_direct_CXX" != no &&
13467
15371
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468
15372
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15378
with_gnu_ldcxx=$with_gnu_ld
15379
with_gnu_ld=$lt_save_with_gnu_ld
15380
lt_cv_path_LDCXX=$lt_cv_path_LD
15381
lt_cv_path_LD=$lt_save_path_LD
15382
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15383
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15391
if test -n "$F77" && test "X$F77" != "Xno"; then
15394
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15395
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15396
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15399
archive_cmds_need_lc_F77=no
15400
allow_undefined_flag_F77=
15401
always_export_symbols_F77=no
15402
archive_expsym_cmds_F77=
15403
export_dynamic_flag_spec_F77=
15404
hardcode_direct_F77=no
15405
hardcode_libdir_flag_spec_F77=
15406
hardcode_libdir_flag_spec_ld_F77=
15407
hardcode_libdir_separator_F77=
15408
hardcode_minus_L_F77=no
15409
hardcode_automatic_F77=no
15411
module_expsym_cmds_F77=
15412
link_all_deplibs_F77=unknown
15413
old_archive_cmds_F77=$old_archive_cmds
15414
no_undefined_flag_F77=
15415
whole_archive_flag_spec_F77=
15416
enable_shared_with_static_runtimes_F77=no
15418
# Source file extension for f77 test sources.
15421
# Object file extension for compiled f77 test sources.
15425
# Code to be used in simple compile tests
15426
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15428
# Code to be used in simple link tests
15429
lt_simple_link_test_code=" program t\n end\n"
15431
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15433
# If no C compiler was specified, use CC.
15436
# Allow CC to be a program name with arguments.
15440
# Allow CC to be a program name with arguments.
15445
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15447
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15448
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15449
echo "$as_me:$LINENO: result: $can_build_shared" >&5
15450
echo "${ECHO_T}$can_build_shared" >&6
15452
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15453
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15454
test "$can_build_shared" = "no" && enable_shared=no
15456
# On AIX, shared libraries and static libraries use the same namespace, and
15457
# are all built from PIC.
15460
test "$enable_shared" = yes && enable_static=no
15461
if test -n "$RANLIB"; then
15462
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15463
postinstall_cmds='$RANLIB $lib'
15467
test "$enable_shared" = yes && enable_static=no
15470
echo "$as_me:$LINENO: result: $enable_shared" >&5
15471
echo "${ECHO_T}$enable_shared" >&6
15473
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15474
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15475
# Make sure either enable_shared or enable_static is yes.
15476
test "$enable_shared" = yes || enable_static=yes
15477
echo "$as_me:$LINENO: result: $enable_static" >&5
15478
echo "${ECHO_T}$enable_static" >&6
15480
test "$ld_shlibs_F77" = no && can_build_shared=no
15485
lt_prog_compiler_wl_F77=
15486
lt_prog_compiler_pic_F77=
15487
lt_prog_compiler_static_F77=
15489
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15490
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15492
if test "$GCC" = yes; then
15493
lt_prog_compiler_wl_F77='-Wl,'
15494
lt_prog_compiler_static_F77='-static'
15498
# All AIX code is PIC.
15499
if test "$host_cpu" = ia64; then
15500
# AIX 5 now supports IA64 processor
15501
lt_prog_compiler_static_F77='-Bstatic'
15506
# FIXME: we need at least 68020 code to build shared libraries, but
15507
# adding the `-m68020' flag to GCC prevents building anything better,
15509
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15512
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15513
# PIC is the default for these OSes.
15516
mingw* | pw32* | os2*)
15517
# This hack is so that the source file can tell whether it is being
15518
# built for inclusion in a dll (and should export symbols for example).
15519
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15522
darwin* | rhapsody*)
15523
# PIC is the default on this platform
15524
# Common symbols not allowed in MH_DYLIB files
15525
lt_prog_compiler_pic_F77='-fno-common'
15529
# Just because we use GCC doesn't mean we suddenly get shared libraries
15530
# on systems that don't support them.
15531
lt_prog_compiler_can_build_shared_F77=no
15536
if test -d /usr/nec; then
15537
lt_prog_compiler_pic_F77=-Kconform_pic
15542
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15543
# not for PA HP-UX.
15544
case "$host_cpu" in
15549
lt_prog_compiler_pic_F77='-fPIC'
15555
lt_prog_compiler_pic_F77='-fPIC'
15559
# PORTME Check for flag to pass linker flags through the system compiler.
15562
lt_prog_compiler_wl_F77='-Wl,'
15563
if test "$host_cpu" = ia64; then
15564
# AIX 5 now supports IA64 processor
15565
lt_prog_compiler_static_F77='-Bstatic'
15567
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15571
mingw* | pw32* | os2*)
15572
# This hack is so that the source file can tell whether it is being
15573
# built for inclusion in a dll (and should export symbols for example).
15574
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15577
hpux9* | hpux10* | hpux11*)
15578
lt_prog_compiler_wl_F77='-Wl,'
15579
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15580
# not for PA HP-UX.
15581
case "$host_cpu" in
15586
lt_prog_compiler_pic_F77='+Z'
15589
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15590
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15593
irix5* | irix6* | nonstopux*)
15594
lt_prog_compiler_wl_F77='-Wl,'
15595
# PIC (with -KPIC) is the default.
15596
lt_prog_compiler_static_F77='-non_shared'
15600
lt_prog_compiler_pic_F77='-KPIC'
15601
lt_prog_compiler_static_F77='-Bstatic'
15607
lt_prog_compiler_wl_F77='-Wl,'
15608
lt_prog_compiler_pic_F77='-KPIC'
15609
lt_prog_compiler_static_F77='-static'
15612
lt_prog_compiler_wl_F77='-Wl,'
15613
# All Alpha code is PIC.
15614
lt_prog_compiler_static_F77='-non_shared'
15619
osf3* | osf4* | osf5*)
15620
lt_prog_compiler_wl_F77='-Wl,'
15621
# All OSF/1 code is PIC.
15622
lt_prog_compiler_static_F77='-non_shared'
15626
lt_prog_compiler_pic_F77='-Kpic'
15627
lt_prog_compiler_static_F77='-dn'
15631
lt_prog_compiler_wl_F77='-Wl,'
15632
lt_prog_compiler_pic_F77='-KPIC'
15633
lt_prog_compiler_static_F77='-Bstatic'
15637
lt_prog_compiler_wl_F77='-Qoption ld '
15638
lt_prog_compiler_pic_F77='-PIC'
15639
lt_prog_compiler_static_F77='-Bstatic'
15642
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15643
lt_prog_compiler_wl_F77='-Wl,'
15644
lt_prog_compiler_pic_F77='-KPIC'
15645
lt_prog_compiler_static_F77='-Bstatic'
15649
if test -d /usr/nec ;then
15650
lt_prog_compiler_pic_F77='-Kconform_pic'
15651
lt_prog_compiler_static_F77='-Bstatic'
15656
lt_prog_compiler_pic_F77='-pic'
15657
lt_prog_compiler_static_F77='-Bstatic'
15661
lt_prog_compiler_can_build_shared_F77=no
15666
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15667
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15670
# Check to make sure the PIC flag actually works.
15672
if test -n "$lt_prog_compiler_pic_F77"; then
15674
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15675
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15676
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15677
echo $ECHO_N "(cached) $ECHO_C" >&6
15679
lt_prog_compiler_pic_works_F77=no
15680
ac_outfile=conftest.$ac_objext
15681
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15682
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15683
# Insert the option either (1) after the last *FLAGS variable, or
15684
# (2) before a word containing "conftest.", or (3) at the end.
15685
# Note that $ac_compile itself does not contain backslashes and begins
15686
# with a dollar sign (not a hyphen), so the echo should work correctly.
15687
# The option is referenced via a variable to avoid confusing sed.
15688
lt_compile=`echo "$ac_compile" | $SED \
15689
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15690
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15691
-e 's:$: $lt_compiler_flag:'`
15692
(eval echo "\"\$as_me:15692: $lt_compile\"" >&5)
15693
(eval "$lt_compile" 2>conftest.err)
15695
cat conftest.err >&5
15696
echo "$as_me:15696: \$? = $ac_status" >&5
15697
if (exit $ac_status) && test -s "$ac_outfile"; then
15698
# The compiler can only warn and ignore the option if not recognized
15699
# So say no if there are warnings
15700
if test ! -s conftest.err; then
15701
lt_prog_compiler_pic_works_F77=yes
15707
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15708
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15710
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15711
case $lt_prog_compiler_pic_F77 in
15713
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15716
lt_prog_compiler_pic_F77=
15717
lt_prog_compiler_can_build_shared_F77=no
15722
# For platforms which do not support PIC, -DPIC is meaningless:
15724
lt_prog_compiler_pic_F77=
15727
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15731
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15732
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15733
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15734
echo $ECHO_N "(cached) $ECHO_C" >&6
15736
lt_cv_prog_compiler_c_o_F77=no
15737
$rm -r conftest 2>/dev/null
15741
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15743
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15744
# that will create temporary files in the current directory regardless of
15745
# the output directory. Thus, making CWD read-only will cause this test
15746
# to fail, enabling locking or at least warning the user not to do parallel
15750
lt_compiler_flag="-o out/conftest2.$ac_objext"
15751
# Insert the option either (1) after the last *FLAGS variable, or
15752
# (2) before a word containing "conftest.", or (3) at the end.
15753
# Note that $ac_compile itself does not contain backslashes and begins
15754
# with a dollar sign (not a hyphen), so the echo should work correctly.
15755
lt_compile=`echo "$ac_compile" | $SED \
15756
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15757
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15758
-e 's:$: $lt_compiler_flag:'`
15759
(eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
15760
(eval "$lt_compile" 2>out/conftest.err)
15762
cat out/conftest.err >&5
15763
echo "$as_me:15763: \$? = $ac_status" >&5
15764
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15766
# The compiler can only warn and ignore the option if not recognized
15767
# So say no if there are warnings
15768
if test ! -s out/conftest.err; then
15769
lt_cv_prog_compiler_c_o_F77=yes
15773
$rm conftest* out/*
15780
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15781
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15784
hard_links="nottested"
15785
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15786
# do not overwrite the value of need_locks provided by the user
15787
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15788
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15791
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15793
ln conftest.a conftest.b 2>&5 || hard_links=no
15794
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15795
echo "$as_me:$LINENO: result: $hard_links" >&5
15796
echo "${ECHO_T}$hard_links" >&6
15797
if test "$hard_links" = no; then
15798
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15799
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15806
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15807
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15810
allow_undefined_flag_F77=
15811
enable_shared_with_static_runtimes_F77=no
15813
archive_expsym_cmds_F77=
15814
old_archive_From_new_cmds_F77=
15815
old_archive_from_expsyms_cmds_F77=
15816
export_dynamic_flag_spec_F77=
15817
whole_archive_flag_spec_F77=
15818
thread_safe_flag_spec_F77=
15819
hardcode_libdir_flag_spec_F77=
15820
hardcode_libdir_flag_spec_ld_F77=
15821
hardcode_libdir_separator_F77=
15822
hardcode_direct_F77=no
15823
hardcode_minus_L_F77=no
15824
hardcode_shlibpath_var_F77=unsupported
15825
link_all_deplibs_F77=unknown
15826
hardcode_automatic_F77=no
15828
module_expsym_cmds_F77=
15829
always_export_symbols_F77=no
15830
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15831
# include_expsyms should be a list of space-separated symbols to be *always*
15832
# included in the symbol list
15833
include_expsyms_F77=
15834
# exclude_expsyms can be an extended regexp of symbols to exclude
15835
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15836
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15837
# as well as any symbol that contains `d'.
15838
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15839
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15840
# platforms (ab)use it in PIC code, but their linkers get confused if
15841
# the symbol is explicitly referenced. Since portable code cannot
15842
# rely on this symbol name, it's probably fine to never include it in
15843
# preloaded symbol tables.
15844
extract_expsyms_cmds=
15847
cygwin* | mingw* | pw32*)
15848
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15849
# When not using gcc, we currently assume that we are using
15850
# Microsoft Visual C++.
15851
if test "$GCC" != yes; then
15861
if test "$with_gnu_ld" = yes; then
15862
# If archive_cmds runs LD, not CC, wlarc should be empty
15865
# See if GNU ld supports shared libraries.
15867
aix3* | aix4* | aix5*)
15868
# On AIX/PPC, the GNU linker is very broken
15869
if test "$host_cpu" != ia64; then
15873
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15874
*** to be unable to reliably create shared libraries on AIX.
15875
*** Therefore, libtool is disabling shared libraries support. If you
15876
*** really care for shared libraries, you may want to modify your PATH
15877
*** so that a non-GNU linker is found, and then restart.
15884
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)'
15885
hardcode_libdir_flag_spec_F77='-L$libdir'
15886
hardcode_minus_L_F77=yes
15888
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15889
# that the semantics of dynamic libraries on AmigaOS, at least up
15890
# to version 4, is to share data among multiple programs linked
15891
# with the same dynamic library. Since this doesn't match the
15892
# behavior of shared libraries on other platforms, we can't use
15898
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15899
allow_undefined_flag_F77=unsupported
15900
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15901
# support --undefined. This deserves some investigation. FIXME
15902
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908
cygwin* | mingw* | pw32*)
15909
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15910
# as there is no search path for DLLs.
15911
hardcode_libdir_flag_spec_F77='-L$libdir'
15912
allow_undefined_flag_F77=no
15913
always_export_symbols_F77=no
15914
enable_shared_with_static_runtimes_F77=yes
15915
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15917
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15918
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15919
# If the export-symbols file already is a .def file (1st line
15920
# is EXPORTS), use it as is; otherwise, prepend...
15921
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15922
cp $export_symbols $output_objdir/$soname.def;
15924
echo EXPORTS > $output_objdir/$soname.def;
15925
cat $export_symbols >> $output_objdir/$soname.def;
15927
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15934
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15935
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15938
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15939
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15944
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15948
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15949
*** create shared libraries on Solaris systems. Therefore, libtool
15950
*** is disabling shared libraries support. We urge you to upgrade GNU
15951
*** binutils to release 2.9.1 or newer. Another option is to modify
15952
*** your PATH or compiler configuration so that the native linker is
15953
*** used, and then restart.
15956
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15957
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15965
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15967
hardcode_direct_F77=yes
15968
hardcode_shlibpath_var_F77=no
15972
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15973
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15981
if test "$ld_shlibs_F77" = yes; then
15982
runpath_var=LD_RUN_PATH
15983
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15984
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15985
# ancient GNU ld didn't support --whole-archive et. al.
15986
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15987
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15989
whole_archive_flag_spec_F77=
15993
# PORTME fill in a description of your system's linker (not GNU ld)
15996
allow_undefined_flag_F77=unsupported
15997
always_export_symbols_F77=yes
15998
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'
15999
# Note: this linker hardcodes the directories in LIBPATH if there
16000
# are no directories specified by -L.
16001
hardcode_minus_L_F77=yes
16002
if test "$GCC" = yes && test -z "$link_static_flag"; then
16003
# Neither direct hardcoding nor static linking is supported with a
16005
hardcode_direct_F77=unsupported
16010
if test "$host_cpu" = ia64; then
16011
# On IA64, the linker does run time linking by default, so we don't
16012
# have to do anything special.
16013
aix_use_runtimelinking=no
16014
exp_sym_flag='-Bexport'
16017
# If we're using GNU nm, then we don't want the "-C" option.
16018
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16019
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16020
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'
16022
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'
16025
# KDE requires run time linking. Make it the default.
16026
aix_use_runtimelinking=yes
16027
exp_sym_flag='-bexport'
16028
no_entry_flag='-bnoentry'
16031
# When large executables or shared objects are built, AIX ld can
16032
# have problems creating the table of contents. If linking a library
16033
# or program results in "error TOC overflow" add -mminimal-toc to
16034
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16035
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16037
archive_cmds_F77=''
16038
hardcode_direct_F77=yes
16039
hardcode_libdir_separator_F77=':'
16040
link_all_deplibs_F77=yes
16042
if test "$GCC" = yes; then
16043
case $host_os in aix4.012|aix4.012.*)
16044
# We only want to do this on AIX 4.2 and lower, the check
16045
# below for broken collect2 doesn't work under 4.3+
16046
collect2name=`${CC} -print-prog-name=collect2`
16047
if test -f "$collect2name" && \
16048
strings "$collect2name" | grep resolve_lib_name >/dev/null
16050
# We have reworked collect2
16051
hardcode_direct_F77=yes
16053
# We have old collect2
16054
hardcode_direct_F77=unsupported
16055
# It fails to find uninstalled libraries when the uninstalled
16056
# path is not listed in the libpath. Setting hardcode_minus_L
16057
# to unsupported forces relinking
16058
hardcode_minus_L_F77=yes
16059
hardcode_libdir_flag_spec_F77='-L$libdir'
16060
hardcode_libdir_separator_F77=
16063
shared_flag='-shared'
16066
if test "$host_cpu" = ia64; then
16067
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16068
# chokes on -Wl,-G. The following line is correct:
16071
if test "$aix_use_runtimelinking" = yes; then
16072
shared_flag='-qmkshrobj ${wl}-G'
16074
shared_flag='-qmkshrobj'
16079
# Let the compiler handle the export list.
16080
always_export_symbols_F77=no
16081
if test "$aix_use_runtimelinking" = yes; then
16082
# Warning - without using the other runtime loading flags (-brtl),
16083
# -berok will link without error, but may produce a broken library.
16084
allow_undefined_flag_F77='-berok'
16085
# Determine the default libpath from the value encoded in an empty executable.
16086
cat >conftest.$ac_ext <<_ACEOF
16091
rm -f conftest.$ac_objext conftest$ac_exeext
16092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16093
(eval $ac_link) 2>conftest.er1
16095
grep -v '^ *+' conftest.er1 >conftest.err
16097
cat conftest.err >&5
16098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099
(exit $ac_status); } &&
16100
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16101
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102
(eval $ac_try) 2>&5
16104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105
(exit $ac_status); }; } &&
16106
{ ac_try='test -s conftest$ac_exeext'
16107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108
(eval $ac_try) 2>&5
16110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111
(exit $ac_status); }; }; then
16113
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16115
# Check for a 64-bit object if we didn't find anything.
16116
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; }
16119
echo "$as_me: failed program was:" >&5
16120
sed 's/^/| /' conftest.$ac_ext >&5
16123
rm -f conftest.err conftest.$ac_objext \
16124
conftest$ac_exeext conftest.$ac_ext
16125
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16127
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16128
archive_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` '" $shared_flag"
16129
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}$exp_sym_flag:\$export_symbols $shared_flag"
16131
if test "$host_cpu" = ia64; then
16132
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16133
allow_undefined_flag_F77="-z nodefs"
16134
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"
16136
# Determine the default libpath from the value encoded in an empty executable.
16137
cat >conftest.$ac_ext <<_ACEOF
16142
rm -f conftest.$ac_objext conftest$ac_exeext
16143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16144
(eval $ac_link) 2>conftest.er1
16146
grep -v '^ *+' conftest.er1 >conftest.err
16148
cat conftest.err >&5
16149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150
(exit $ac_status); } &&
16151
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153
(eval $ac_try) 2>&5
16155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156
(exit $ac_status); }; } &&
16157
{ ac_try='test -s conftest$ac_exeext'
16158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159
(eval $ac_try) 2>&5
16161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162
(exit $ac_status); }; }; then
16164
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16166
# Check for a 64-bit object if we didn't find anything.
16167
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; }
16170
echo "$as_me: failed program was:" >&5
16171
sed 's/^/| /' conftest.$ac_ext >&5
16174
rm -f conftest.err conftest.$ac_objext \
16175
conftest$ac_exeext conftest.$ac_ext
16176
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16178
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16179
# Warning - without using the other run time loading flags,
16180
# -berok will link without error, but may produce a broken library.
16181
no_undefined_flag_F77=' ${wl}-bernotok'
16182
allow_undefined_flag_F77=' ${wl}-berok'
16183
# -bexpall does not export symbols beginning with underscore (_)
16184
always_export_symbols_F77=yes
16185
# Exported symbols can be pulled into shared objects from archives
16186
whole_archive_flag_spec_F77=' '
16187
archive_cmds_need_lc_F77=yes
16188
# This is similar to how AIX traditionally builds it's shared libraries.
16189
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'
16195
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)'
16196
hardcode_libdir_flag_spec_F77='-L$libdir'
16197
hardcode_minus_L_F77=yes
16198
# see comment about different semantics on the GNU ld section
16203
export_dynamic_flag_spec_F77=-rdynamic
16206
cygwin* | mingw* | pw32*)
16207
# When not using gcc, we currently assume that we are using
16208
# Microsoft Visual C++.
16209
# hardcode_libdir_flag_spec is actually meaningless, as there is
16210
# no search path for DLLs.
16211
hardcode_libdir_flag_spec_F77=' '
16212
allow_undefined_flag_F77=no
16213
# Tell ltmain to make .lib files, not .a files.
16215
# Tell ltmain to make .dll files, not .so files.
16217
# FIXME: Setting linknames here is a bad hack.
16218
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16219
# The linker will automatically build a .lib file if we build a DLL.
16220
old_archive_From_new_cmds_F77='true'
16221
# FIXME: Should let the user specify the lib program.
16222
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16223
fix_srcfile_path='`cygpath -w "$srcfile"`'
16224
enable_shared_with_static_runtimes_F77=yes
16227
darwin* | rhapsody*)
16228
if test "$GXX" = yes ; then
16229
archive_cmds_need_lc_F77=no
16231
rhapsody* | darwin1.[012])
16232
allow_undefined_flag_F77='-undefined suppress'
16235
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16238
lt_int_apple_cc_single_mod=no
16239
output_verbose_link_cmd='echo'
16240
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16241
lt_int_apple_cc_single_mod=yes
16243
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16244
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16246
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'
16248
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16249
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16250
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16251
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}'
16253
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}'
16255
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}'
16256
hardcode_direct_F77=no
16257
hardcode_automatic_F77=yes
16258
hardcode_shlibpath_var_F77=unsupported
16259
whole_archive_flag_spec_F77='-all_load $convenience'
16260
link_all_deplibs_F77=yes
16267
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268
hardcode_libdir_flag_spec_F77='-L$libdir'
16269
hardcode_shlibpath_var_F77=no
16276
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16277
# support. Future versions do this automatically, but an explicit c++rt0.o
16278
# does not break anything, and helps significantly (at the cost of a little
16281
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16282
hardcode_libdir_flag_spec_F77='-R$libdir'
16283
hardcode_direct_F77=yes
16284
hardcode_shlibpath_var_F77=no
16287
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16289
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16290
hardcode_direct_F77=yes
16291
hardcode_minus_L_F77=yes
16292
hardcode_shlibpath_var_F77=no
16295
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16297
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16298
hardcode_libdir_flag_spec_F77='-R$libdir'
16299
hardcode_direct_F77=yes
16300
hardcode_shlibpath_var_F77=no
16304
if test "$GCC" = yes; then
16305
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'
16307
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'
16309
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16310
hardcode_libdir_separator_F77=:
16311
hardcode_direct_F77=yes
16313
# hardcode_minus_L: Not really in the search PATH,
16314
# but as the default location of the library.
16315
hardcode_minus_L_F77=yes
16316
export_dynamic_flag_spec_F77='${wl}-E'
16320
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16321
case "$host_cpu" in
16323
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16326
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16330
case "$host_cpu" in
16332
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16335
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16339
if test "$with_gnu_ld" = no; then
16340
case "$host_cpu" in
16342
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16343
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16344
hardcode_libdir_separator_F77=:
16345
hardcode_direct_F77=no
16346
hardcode_shlibpath_var_F77=no
16349
hardcode_libdir_flag_spec_F77='-L$libdir'
16350
hardcode_direct_F77=no
16351
hardcode_shlibpath_var_F77=no
16353
# hardcode_minus_L: Not really in the search PATH,
16354
# but as the default location of the library.
16355
hardcode_minus_L_F77=yes
16358
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16359
hardcode_libdir_separator_F77=:
16360
hardcode_direct_F77=yes
16361
export_dynamic_flag_spec_F77='${wl}-E'
16363
# hardcode_minus_L: Not really in the search PATH,
16364
# but as the default location of the library.
16365
hardcode_minus_L_F77=yes
16371
irix5* | irix6* | nonstopux*)
16372
if test "$GCC" = yes; then
16373
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'
16375
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'
16376
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16378
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16379
hardcode_libdir_separator_F77=:
16380
link_all_deplibs_F77=yes
16384
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16385
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16387
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16389
hardcode_libdir_flag_spec_F77='-R$libdir'
16390
hardcode_direct_F77=yes
16391
hardcode_shlibpath_var_F77=no
16395
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396
hardcode_direct_F77=yes
16397
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16398
hardcode_libdir_separator_F77=:
16399
hardcode_shlibpath_var_F77=no
16403
hardcode_direct_F77=yes
16404
hardcode_shlibpath_var_F77=no
16405
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16408
export_dynamic_flag_spec_F77='${wl}-E'
16411
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16412
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16413
hardcode_libdir_flag_spec_F77='-R$libdir'
16416
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16417
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16424
hardcode_libdir_flag_spec_F77='-L$libdir'
16425
hardcode_minus_L_F77=yes
16426
allow_undefined_flag_F77=unsupported
16427
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'
16428
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16432
if test "$GCC" = yes; then
16433
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16434
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'
16436
allow_undefined_flag_F77=' -expect_unresolved \*'
16437
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'
16439
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16440
hardcode_libdir_separator_F77=:
16443
osf4* | osf5*) # as osf3* with the addition of -msym flag
16444
if test "$GCC" = yes; then
16445
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16446
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'
16447
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16449
allow_undefined_flag_F77=' -expect_unresolved \*'
16450
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'
16451
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~
16452
$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'
16454
# Both c and cxx compiler support -rpath directly
16455
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16457
hardcode_libdir_separator_F77=:
16461
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462
hardcode_shlibpath_var_F77=no
16463
export_dynamic_flag_spec_F77='${wl}-Bexport'
16464
runpath_var=LD_RUN_PATH
16465
hardcode_runpath_var=yes
16469
no_undefined_flag_F77=' -z text'
16470
if test "$GCC" = yes; then
16471
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16472
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16473
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16475
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16477
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16479
hardcode_libdir_flag_spec_F77='-R$libdir'
16480
hardcode_shlibpath_var_F77=no
16482
solaris2.[0-5] | solaris2.[0-5].*) ;;
16483
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16484
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16486
link_all_deplibs_F77=yes
16490
if test "x$host_vendor" = xsequent; then
16491
# Use $CC to link under sequent, because it throws in some extra .o
16492
# files that make .init and .fini sections work.
16493
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16495
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16497
hardcode_libdir_flag_spec_F77='-L$libdir'
16498
hardcode_direct_F77=yes
16499
hardcode_minus_L_F77=yes
16500
hardcode_shlibpath_var_F77=no
16504
case $host_vendor in
16506
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507
hardcode_direct_F77=yes # is this really true???
16510
## LD is ld it makes a PLAMLIB
16511
## CC just makes a GrossModule.
16512
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16513
reload_cmds_F77='$CC -r -o $output$reload_objs'
16514
hardcode_direct_F77=no
16517
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16518
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16521
runpath_var='LD_RUN_PATH'
16522
hardcode_shlibpath_var_F77=no
16526
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16527
hardcode_shlibpath_var_F77=no
16528
export_dynamic_flag_spec_F77='-Bexport'
16532
if test -d /usr/nec; then
16533
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534
hardcode_shlibpath_var_F77=no
16535
runpath_var=LD_RUN_PATH
16536
hardcode_runpath_var=yes
16542
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16543
hardcode_direct_F77=yes
16544
hardcode_minus_L_F77=no
16545
hardcode_shlibpath_var_F77=no
16546
hardcode_runpath_var=yes
16547
runpath_var=LD_RUN_PATH
16550
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16551
no_undefined_flag_F77='${wl}-z ${wl}text'
16552
if test "$GCC" = yes; then
16553
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16557
runpath_var='LD_RUN_PATH'
16558
hardcode_shlibpath_var_F77=no
16562
no_undefined_flag_F77=' -z text'
16563
# $CC -shared without GNU ld will not create a library from C++
16564
# object files and a static libstdc++, better avoid it by now
16565
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16567
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16568
hardcode_libdir_flag_spec_F77=
16569
hardcode_shlibpath_var_F77=no
16570
runpath_var='LD_RUN_PATH'
16574
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16575
hardcode_libdir_flag_spec_F77='-L$libdir'
16576
hardcode_shlibpath_var_F77=no
16585
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16586
echo "${ECHO_T}$ld_shlibs_F77" >&6
16587
test "$ld_shlibs_F77" = no && can_build_shared=no
16589
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16590
if test "$GCC" = yes; then
16591
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16595
# Do we need to explicitly link libc?
16597
case "x$archive_cmds_need_lc_F77" in
16599
# Assume -lc should be added
16600
archive_cmds_need_lc_F77=yes
16602
if test "$enable_shared" = yes && test "$GCC" = yes; then
16603
case $archive_cmds_F77 in
16605
# FIXME: we may have to deal with multi-command sequences.
16608
# Test whether the compiler implicitly links with -lc since on some
16609
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16610
# to ld, don't add -lc before -lgcc.
16611
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16612
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16614
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16616
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617
(eval $ac_compile) 2>&5
16619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620
(exit $ac_status); } 2>conftest.err; then
16623
libobjs=conftest.$ac_objext
16625
wl=$lt_prog_compiler_wl_F77
16631
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16632
allow_undefined_flag_F77=
16633
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16634
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637
(exit $ac_status); }
16639
archive_cmds_need_lc_F77=no
16641
archive_cmds_need_lc_F77=yes
16643
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16645
cat conftest.err 1>&5
16648
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16649
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16656
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16657
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16658
library_names_spec=
16659
libname_spec='lib$name'
16663
postuninstall_cmds=
16667
shlibpath_overrides_runpath=unknown
16669
dynamic_linker="$host_os ld.so"
16670
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16671
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16672
need_lib_prefix=unknown
16673
hardcode_into_libs=no
16675
# when you set need_version to no, make sure it does not cause -set_version
16676
# flags to be left without arguments
16677
need_version=unknown
16682
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16683
shlibpath_var=LIBPATH
16685
# AIX 3 has no versioning support, so we append a major version to the name.
16686
soname_spec='${libname}${release}${shared_ext}$major'
16693
hardcode_into_libs=yes
16694
if test "$host_cpu" = ia64; then
16695
# AIX 5 supports IA64
16696
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16697
shlibpath_var=LD_LIBRARY_PATH
16699
# With GCC up to 2.95.x, collect2 would create an import file
16700
# for dependence libraries. The import file would start with
16701
# the line `#! .'. This would cause the generated library to
16702
# depend on `.', always an invalid library. This was fixed in
16703
# development snapshots of GCC prior to 3.0.
16705
aix4 | aix4.[01] | aix4.[01].*)
16706
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16708
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16711
can_build_shared=no
16715
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16716
# soname into executable. Probably we can add versioning support to
16717
# collect2, so additional links can be useful in future.
16718
if test "$aix_use_runtimelinking" = yes; then
16719
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16720
# instead of lib<name>.a to let people know that these are not
16721
# typical AIX shared libraries.
16722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724
# We preserve .a as extension for shared libraries through AIX4.2
16725
# and later when we are not doing run time linking.
16726
library_names_spec='${libname}${release}.a $libname.a'
16727
soname_spec='${libname}${release}${shared_ext}$major'
16729
shlibpath_var=LIBPATH
16734
library_names_spec='$libname.ixlibrary $libname.a'
16735
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16736
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'
16740
library_names_spec='${libname}${shared_ext}'
16741
dynamic_linker="$host_os ld.so"
16742
shlibpath_var=LIBRARY_PATH
16748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749
soname_spec='${libname}${release}${shared_ext}$major'
16750
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16751
shlibpath_var=LD_LIBRARY_PATH
16752
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16753
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16754
# the default ld.so.conf also contains /usr/contrib/lib and
16755
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16756
# libtool to hard-code these into programs
16759
cygwin* | mingw* | pw32*)
16760
version_type=windows
16765
case $GCC,$host_os in
16766
yes,cygwin* | yes,mingw* | yes,pw32*)
16767
library_names_spec='$libname.dll.a'
16768
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16769
postinstall_cmds='base_file=`basename \${file}`~
16770
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16771
dldir=$destdir/`dirname \$dlpath`~
16772
test -d \$dldir || mkdir -p \$dldir~
16773
$install_prog $dir/$dlname \$dldir/$dlname'
16774
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16775
dlpath=$dir/\$dldll~
16777
shlibpath_overrides_runpath=yes
16781
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16782
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16783
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16786
# MinGW DLLs use traditional 'lib' prefix
16787
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16788
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16789
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16790
# It is most probably a Windows format PATH printed by
16791
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16792
# path with ; separators, and with drive letters. We can handle the
16793
# drive letters (cygwin fileutils understands them), so leave them,
16794
# especially as we might pass files found there to a mingw objdump,
16795
# which wouldn't understand a cygwinified path. Ahh.
16796
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16798
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16802
# pw32 DLLs use 'pw' prefix rather than 'lib'
16803
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16809
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16812
dynamic_linker='Win32 ld.exe'
16813
# FIXME: first we should search . and the directory the executable is in
16817
darwin* | rhapsody*)
16818
dynamic_linker="$host_os dyld"
16819
version_type=darwin
16822
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16823
soname_spec='${libname}${release}${major}$shared_ext'
16824
shlibpath_overrides_runpath=yes
16825
shlibpath_var=DYLD_LIBRARY_PATH
16826
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16827
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16828
if test "$GCC" = yes; then
16829
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"`
16831
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16833
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16841
soname_spec='${libname}${release}${shared_ext}$major'
16842
shlibpath_var=LD_LIBRARY_PATH
16853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16854
soname_spec='${libname}${release}${shared_ext}$major'
16855
shlibpath_var=LD_LIBRARY_PATH
16856
shlibpath_overrides_runpath=no
16857
hardcode_into_libs=yes
16858
dynamic_linker='GNU ld.so'
16862
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16863
version_type=freebsd-$objformat
16864
case $version_type in
16866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16871
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16875
shlibpath_var=LD_LIBRARY_PATH
16878
shlibpath_overrides_runpath=yes
16880
freebsd3.01* | freebsdelf3.01*)
16881
shlibpath_overrides_runpath=yes
16882
hardcode_into_libs=yes
16885
shlibpath_overrides_runpath=no
16886
hardcode_into_libs=yes
16895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16896
soname_spec='${libname}${release}${shared_ext}$major'
16897
shlibpath_var=LD_LIBRARY_PATH
16898
hardcode_into_libs=yes
16901
hpux9* | hpux10* | hpux11*)
16902
# Give a soname corresponding to the major version so that dld.sl refuses to
16903
# link against other versions.
16907
case "$host_cpu" in
16910
hardcode_into_libs=yes
16911
dynamic_linker="$host_os dld.so"
16912
shlibpath_var=LD_LIBRARY_PATH
16913
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915
soname_spec='${libname}${release}${shared_ext}$major'
16916
if test "X$HPUX_IA64_MODE" = X32; then
16917
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16919
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16921
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16925
hardcode_into_libs=yes
16926
dynamic_linker="$host_os dld.sl"
16927
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16928
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930
soname_spec='${libname}${release}${shared_ext}$major'
16931
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16932
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16936
dynamic_linker="$host_os dld.sl"
16937
shlibpath_var=SHLIB_PATH
16938
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940
soname_spec='${libname}${release}${shared_ext}$major'
16943
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16944
postinstall_cmds='chmod 555 $lib'
16947
irix5* | irix6* | nonstopux*)
16949
nonstopux*) version_type=nonstopux ;;
16951
if test "$lt_cv_prog_gnu_ld" = yes; then
16959
soname_spec='${libname}${release}${shared_ext}$major'
16960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16962
irix5* | nonstopux*)
16963
libsuff= shlibsuff=
16966
case $LD in # libtool.m4 will add one of these switches to LD
16967
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16968
libsuff= shlibsuff= libmagic=32-bit;;
16969
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16970
libsuff=32 shlibsuff=N32 libmagic=N32;;
16971
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16972
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16973
*) libsuff= shlibsuff= libmagic=never-match;;
16977
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16978
shlibpath_overrides_runpath=no
16979
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16980
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16981
hardcode_into_libs=yes
16984
# No shared lib support for Linux oldld, aout, or coff.
16985
linux*oldld* | linux*aout* | linux*coff*)
16989
# This must be Linux ELF.
16994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995
soname_spec='${libname}${release}${shared_ext}$major'
16996
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16998
if test "x$LINUX_64_MODE" = x64; then
16999
# Some platforms are per default 64-bit, so there's no /lib64
17000
if test -d /lib64; then
17004
shlibpath_var=LD_LIBRARY_PATH
17005
shlibpath_overrides_runpath=no
17006
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17007
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17008
# This implies no fast_install, which is unacceptable.
17009
# Some rework will be needed to allow for fast_install
17010
# before this can be enabled.
17011
hardcode_into_libs=yes
17013
# We used to test for /lib/ld.so.1 and disable shared libraries on
17014
# powerpc, because MkLinux only supported shared libraries with the
17015
# GNU dynamic linker. Since this was broken with cross compilers,
17016
# most powerpc-linux boxes support dynamic linking these days and
17017
# people can always --disable-shared, the test was removed, and we
17018
# assume the GNU/Linux dynamic linker is in use.
17019
dynamic_linker='GNU/Linux ld.so'
17026
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17028
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17029
dynamic_linker='NetBSD (a.out) ld.so'
17031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17032
soname_spec='${libname}${release}${shared_ext}$major'
17033
dynamic_linker='NetBSD ld.elf_so'
17035
shlibpath_var=LD_LIBRARY_PATH
17036
shlibpath_overrides_runpath=yes
17037
hardcode_into_libs=yes
17042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043
shlibpath_var=LD_LIBRARY_PATH
17044
shlibpath_overrides_runpath=yes
17051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052
soname_spec='${libname}${release}${shared_ext}$major'
17053
shlibpath_var=LD_LIBRARY_PATH
17054
shlibpath_overrides_runpath=yes
17061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17062
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17063
shlibpath_var=LD_LIBRARY_PATH
17064
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17066
openbsd2.[89] | openbsd2.[89].*)
17067
shlibpath_overrides_runpath=no
17070
shlibpath_overrides_runpath=yes
17074
shlibpath_overrides_runpath=yes
17079
libname_spec='$name'
17082
library_names_spec='$libname${shared_ext} $libname.a'
17083
dynamic_linker='OS/2 ld.exe'
17084
shlibpath_var=LIBPATH
17087
osf3* | osf4* | osf5*)
17091
soname_spec='${libname}${release}${shared_ext}$major'
17092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093
shlibpath_var=LD_LIBRARY_PATH
17094
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17095
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17100
soname_spec='${libname}${release}${shared_ext}$major'
17101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102
shlibpath_var=LD_LIBRARY_PATH
17109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110
soname_spec='${libname}${release}${shared_ext}$major'
17111
shlibpath_var=LD_LIBRARY_PATH
17112
shlibpath_overrides_runpath=yes
17113
hardcode_into_libs=yes
17114
# ldd complains unless libraries are executable
17115
postinstall_cmds='chmod +x $lib'
17120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17121
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17122
shlibpath_var=LD_LIBRARY_PATH
17123
shlibpath_overrides_runpath=yes
17124
if test "$with_gnu_ld" = yes; then
17130
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133
soname_spec='${libname}${release}${shared_ext}$major'
17134
shlibpath_var=LD_LIBRARY_PATH
17135
case $host_vendor in
17137
shlibpath_overrides_runpath=no
17139
export_dynamic_flag_spec='${wl}-Blargedynsym'
17140
runpath_var=LD_RUN_PATH
17148
shlibpath_overrides_runpath=no
17149
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17155
if test -d /usr/nec ;then
17157
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17158
soname_spec='$libname${shared_ext}.$major'
17159
shlibpath_var=LD_LIBRARY_PATH
17165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166
soname_spec='${libname}${release}${shared_ext}$major'
17167
shlibpath_var=LD_LIBRARY_PATH
17174
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17175
echo "${ECHO_T}$dynamic_linker" >&6
17176
test "$dynamic_linker" = no && can_build_shared=no
17178
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17179
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17180
hardcode_action_F77=
17181
if test -n "$hardcode_libdir_flag_spec_F77" || \
17182
test -n "$runpath_var F77" || \
17183
test "X$hardcode_automatic_F77"="Xyes" ; then
17185
# We can hardcode non-existant directories.
17186
if test "$hardcode_direct_F77" != no &&
17187
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17188
# have to relink, otherwise we might link with an installed library
17189
# when we should be linking with a yet-to-be-installed one
17190
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17191
test "$hardcode_minus_L_F77" != no; then
17192
# Linking always hardcodes the temporary library directory.
17193
hardcode_action_F77=relink
17195
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17196
hardcode_action_F77=immediate
17199
# We cannot hardcode anything, or else we can only hardcode existing
17201
hardcode_action_F77=unsupported
17203
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17204
echo "${ECHO_T}$hardcode_action_F77" >&6
17206
if test "$hardcode_action_F77" = relink; then
17207
# Fast installation is not supported
17208
enable_fast_install=no
17209
elif test "$shlibpath_overrides_runpath" = yes ||
17210
test "$enable_shared" = no; then
17211
# Fast installation is not necessary
17212
enable_fast_install=needless
17217
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17218
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17219
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17220
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17221
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17222
echo "$as_me:$LINENO: result: yes" >&5
17223
echo "${ECHO_T}yes" >&6
17225
# FIXME - insert some real tests, host_os isn't really good enough
17228
if test -n "$STRIP" ; then
17229
striplib="$STRIP -x"
17230
echo "$as_me:$LINENO: result: yes" >&5
17231
echo "${ECHO_T}yes" >&6
17233
echo "$as_me:$LINENO: result: no" >&5
17234
echo "${ECHO_T}no" >&6
17238
echo "$as_me:$LINENO: result: no" >&5
17239
echo "${ECHO_T}no" >&6
17246
# The else clause should only fire when bootstrapping the
17247
# libtool distribution, otherwise you forgot to ship ltmain.sh
17248
# with your package, and you will get complaints that there are
17249
# no rules to generate ltmain.sh.
17250
if test -f "$ltmain"; then
17251
# See if we are running on zsh, and set the options which allow our commands through
17252
# without removal of \ escapes.
17253
if test -n "${ZSH_VERSION+set}" ; then
17254
setopt NO_GLOB_SUBST
17256
# Now quote all the things that may contain metacharacters while being
17257
# careful not to overquote the AC_SUBSTed values. We take copies of the
17258
# variables and quote the copies for generation of the libtool script.
17259
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17260
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17261
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17262
deplibs_check_method reload_flag reload_cmds need_locks \
17263
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17264
lt_cv_sys_global_symbol_to_c_name_address \
17265
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17266
old_postinstall_cmds old_postuninstall_cmds \
17270
lt_prog_compiler_wl_F77 \
17271
lt_prog_compiler_pic_F77 \
17272
lt_prog_compiler_static_F77 \
17273
lt_prog_compiler_no_builtin_flag_F77 \
17274
export_dynamic_flag_spec_F77 \
17275
thread_safe_flag_spec_F77 \
17276
whole_archive_flag_spec_F77 \
17277
enable_shared_with_static_runtimes_F77 \
17278
old_archive_cmds_F77 \
17279
old_archive_from_new_cmds_F77 \
17280
predep_objects_F77 \
17281
postdep_objects_F77 \
17284
compiler_lib_search_path_F77 \
17286
archive_expsym_cmds_F77 \
17287
postinstall_cmds_F77 \
17288
postuninstall_cmds_F77 \
17289
old_archive_from_expsyms_cmds_F77 \
17290
allow_undefined_flag_F77 \
17291
no_undefined_flag_F77 \
17292
export_symbols_cmds_F77 \
17293
hardcode_libdir_flag_spec_F77 \
17294
hardcode_libdir_flag_spec_ld_F77 \
17295
hardcode_libdir_separator_F77 \
17296
hardcode_automatic_F77 \
17298
module_expsym_cmds_F77 \
17299
lt_cv_prog_compiler_c_o_F77 \
17300
exclude_expsyms_F77 \
17301
include_expsyms_F77; do
17304
old_archive_cmds_F77 | \
17305
old_archive_from_new_cmds_F77 | \
17306
archive_cmds_F77 | \
17307
archive_expsym_cmds_F77 | \
17308
module_cmds_F77 | \
17309
module_expsym_cmds_F77 | \
17310
old_archive_from_expsyms_cmds_F77 | \
17311
export_symbols_cmds_F77 | \
17312
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17313
postinstall_cmds | postuninstall_cmds | \
17314
old_postinstall_cmds | old_postuninstall_cmds | \
17315
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17316
# Double-quote double-evaled strings.
17317
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17320
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17326
*'\$0 --fallback-echo"')
17327
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17333
cat <<__EOF__ >> "$cfgfile"
17334
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17336
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17338
# Shell to use when invoking shell scripts.
17341
# Whether or not to build shared libraries.
17342
build_libtool_libs=$enable_shared
17344
# Whether or not to build static libraries.
17345
build_old_libs=$enable_static
17347
# Whether or not to add -lc for building shared libraries.
17348
build_libtool_need_lc=$archive_cmds_need_lc_F77
17350
# Whether or not to disallow shared libs when runtime libs are static
17351
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17353
# Whether or not to optimize for fast installation.
17354
fast_install=$enable_fast_install
17357
host_alias=$host_alias
17360
# An echo program that does not interpret backslashes.
17365
AR_FLAGS=$lt_AR_FLAGS
17370
# A language-specific compiler.
17371
CC=$lt_compiler_F77
17373
# Is the compiler the GNU C compiler?
17379
# The linker used to build libraries.
17382
# Whether we need hard or soft links.
17385
# A BSD-compatible nm program.
17388
# A symbol stripping program
17391
# Used to examine libraries when file_magic_cmd begins "file"
17392
MAGIC_CMD=$MAGIC_CMD
17394
# Used on cygwin: DLL creation program.
17397
# Used on cygwin: object dumper.
17400
# Used on cygwin: assembler.
17403
# The name of the directory that contains temporary libtool files.
17406
# How to create reloadable object files.
17407
reload_flag=$lt_reload_flag
17408
reload_cmds=$lt_reload_cmds
17410
# How to pass a linker flag through the compiler.
17411
wl=$lt_lt_prog_compiler_wl_F77
17413
# Object file suffix (normally "o").
17414
objext="$ac_objext"
17416
# Old archive suffix (normally "a").
17419
# Shared library suffix (normally ".so").
17422
# Executable file suffix (normally "").
17425
# Additional compiler flags for building library objects.
17426
pic_flag=$lt_lt_prog_compiler_pic_F77
17429
# What is the maximum length of a command?
17430
max_cmd_len=$lt_cv_sys_max_cmd_len
17432
# Does compiler simultaneously support -c and -o options?
17433
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17435
# Must we lock files when doing compilation ?
17436
need_locks=$lt_need_locks
17438
# Do we need the lib prefix for modules?
17439
need_lib_prefix=$need_lib_prefix
17441
# Do we need a version for libraries?
17442
need_version=$need_version
17444
# Whether dlopen is supported.
17445
dlopen_support=$enable_dlopen
17447
# Whether dlopen of programs is supported.
17448
dlopen_self=$enable_dlopen_self
17450
# Whether dlopen of statically linked programs is supported.
17451
dlopen_self_static=$enable_dlopen_self_static
17453
# Compiler flag to prevent dynamic linking.
17454
link_static_flag=$lt_lt_prog_compiler_static_F77
17456
# Compiler flag to turn off builtin functions.
17457
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17459
# Compiler flag to allow reflexive dlopens.
17460
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17462
# Compiler flag to generate shared objects directly from archives.
17463
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17465
# Compiler flag to generate thread-safe objects.
17466
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17468
# Library versioning type.
17469
version_type=$version_type
17471
# Format of library name prefix.
17472
libname_spec=$lt_libname_spec
17474
# List of archive names. First name is the real one, the rest are links.
17475
# The last name is the one that the linker finds with -lNAME.
17476
library_names_spec=$lt_library_names_spec
17478
# The coded name of the library, if different from the real name.
17479
soname_spec=$lt_soname_spec
17481
# Commands used to build and install an old-style archive.
17483
old_archive_cmds=$lt_old_archive_cmds_F77
17484
old_postinstall_cmds=$lt_old_postinstall_cmds
17485
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17487
# Create an old-style archive from a shared archive.
17488
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17490
# Create a temporary old-style archive to link instead of a shared archive.
17491
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17493
# Commands used to build and install a shared archive.
17494
archive_cmds=$lt_archive_cmds_F77
17495
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17496
postinstall_cmds=$lt_postinstall_cmds
17497
postuninstall_cmds=$lt_postuninstall_cmds
17499
# Commands used to build a loadable module (assumed same as above if empty)
17500
module_cmds=$lt_module_cmds_F77
17501
module_expsym_cmds=$lt_module_expsym_cmds_F77
17503
# Commands to strip libraries.
17504
old_striplib=$lt_old_striplib
17505
striplib=$lt_striplib
17507
# Dependencies to place before the objects being linked to create a
17509
predep_objects=$lt_predep_objects_F77
17511
# Dependencies to place after the objects being linked to create a
17513
postdep_objects=$lt_postdep_objects_F77
17515
# Dependencies to place before the objects being linked to create a
17517
predeps=$lt_predeps_F77
17519
# Dependencies to place after the objects being linked to create a
17521
postdeps=$lt_postdeps_F77
17523
# The library search path used internally by the compiler when linking
17524
# a shared library.
17525
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17527
# Method to check whether dependent libraries are shared objects.
17528
deplibs_check_method=$lt_deplibs_check_method
17530
# Command to use when deplibs_check_method == file_magic.
17531
file_magic_cmd=$lt_file_magic_cmd
17533
# Flag that allows shared libraries with undefined symbols to be built.
17534
allow_undefined_flag=$lt_allow_undefined_flag_F77
17536
# Flag that forces no undefined symbols.
17537
no_undefined_flag=$lt_no_undefined_flag_F77
17539
# Commands used to finish a libtool library installation in a directory.
17540
finish_cmds=$lt_finish_cmds
17542
# Same as above, but a single script fragment to be evaled but not shown.
17543
finish_eval=$lt_finish_eval
17545
# Take the output of nm and produce a listing of raw symbols and C names.
17546
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17548
# Transform the output of nm in a proper C declaration
17549
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17551
# Transform the output of nm in a C name address pair
17552
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17554
# This is the shared library runtime path variable.
17555
runpath_var=$runpath_var
17557
# This is the shared library path variable.
17558
shlibpath_var=$shlibpath_var
17560
# Is shlibpath searched before the hard-coded library search path?
17561
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17563
# How to hardcode a shared library path into an executable.
17564
hardcode_action=$hardcode_action_F77
17566
# Whether we should hardcode library paths into libraries.
17567
hardcode_into_libs=$hardcode_into_libs
17569
# Flag to hardcode \$libdir into a binary during linking.
17570
# This must work even if \$libdir does not exist.
17571
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17573
# If ld is used when linking, flag to hardcode \$libdir into
17574
# a binary during linking. This must work even if \$libdir does
17576
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17578
# Whether we need a single -rpath flag with a separated argument.
17579
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17581
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17582
# resulting binary.
17583
hardcode_direct=$hardcode_direct_F77
17585
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17586
# resulting binary.
17587
hardcode_minus_L=$hardcode_minus_L_F77
17589
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17590
# the resulting binary.
17591
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17593
# Set to yes if building a shared library automatically hardcodes DIR into the library
17594
# and all subsequent libraries and executables linked against it.
17595
hardcode_automatic=$hardcode_automatic_F77
17597
# Variables whose values should be saved in libtool wrapper scripts and
17598
# restored at relink time.
17599
variables_saved_for_relink="$variables_saved_for_relink"
17601
# Whether libtool must link a program against all its dependency libraries.
17602
link_all_deplibs=$link_all_deplibs_F77
17604
# Compile-time system search path for libraries
17605
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17607
# Run-time system search path for libraries
17608
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17610
# Fix the shell variable \$srcfile for the compiler.
17611
fix_srcfile_path="$fix_srcfile_path_F77"
17613
# Set to yes if exported symbols are required.
17614
always_export_symbols=$always_export_symbols_F77
17616
# The commands to list exported symbols.
17617
export_symbols_cmds=$lt_export_symbols_cmds_F77
17619
# The commands to extract the exported symbol list from a shared archive.
17620
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17622
# Symbols that should not be listed in the preloaded symbols.
17623
exclude_expsyms=$lt_exclude_expsyms_F77
17625
# Symbols that must always be exported.
17626
include_expsyms=$lt_include_expsyms_F77
17628
# ### END LIBTOOL TAG CONFIG: $tagname
17634
# If there is no Makefile yet, we rely on a make rule to execute
17635
# `config.status --recheck' to rerun these tests and create the
17636
# libtool script then.
17637
test -f Makefile && make "$ltmain"
17642
ac_cpp='$CPP $CPPFLAGS'
17643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13470
17647
CC="$lt_save_CC"
13478
# Source file extension for C test sources.
17655
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17659
# Source file extension for Java test sources.
13481
# Object file extension for compiled C test sources.
17662
# Object file extension for compiled Java test sources.
13483
17664
objext_GCJ=$objext
13485
17666
# Code to be used in simple compile tests
13486
lt_simple_compile_test_code="class foo {}"
17667
lt_simple_compile_test_code="class foo {}\n"
13488
17669
# Code to be used in simple link tests
13489
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
17670
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
13491
17672
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14624
18871
# Do we need to explicitly link libc?
14626
archive_cmds_need_lc_GCJ=yes
14627
if test "$enable_shared" = yes && test "$GCC" = yes; then
14628
case $archive_cmds_GCJ in
14630
# FIXME: we may have to deal with multi-command sequences.
14633
# Test whether the compiler implicitly links with -lc since on some
14634
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14635
# to ld, don't add -lc before -lgcc.
14636
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18873
case "x$archive_cmds_need_lc_GCJ" in
18875
# Assume -lc should be added
18876
archive_cmds_need_lc_GCJ=yes
18878
if test "$enable_shared" = yes && test "$GCC" = yes; then
18879
case $archive_cmds_GCJ in
18881
# FIXME: we may have to deal with multi-command sequences.
18884
# Test whether the compiler implicitly links with -lc since on some
18885
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18886
# to ld, don't add -lc before -lgcc.
18887
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14637
18888
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14639
echo 'static int dummy;' > conftest.$ac_ext
18890
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642
18893
(eval $ac_compile) 2>&5
14644
18895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645
18896
(exit $ac_status); } 2>conftest.err; then
14648
libobjs=conftest.$ac_objext
14650
wl=$lt_prog_compiler_wl_GCJ
14656
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14657
allow_undefined_flag_GCJ=
14658
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18899
libobjs=conftest.$ac_objext
18901
wl=$lt_prog_compiler_wl_GCJ
18907
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18908
allow_undefined_flag_GCJ=
18909
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14659
18910
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14661
18912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662
18913
(exit $ac_status); }
14664
archive_cmds_need_lc_GCJ=no
18915
archive_cmds_need_lc_GCJ=no
18917
archive_cmds_need_lc_GCJ=yes
18919
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14666
archive_cmds_need_lc_GCJ=yes
18921
cat conftest.err 1>&5
14668
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14670
cat conftest.err 1>&5
14673
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18924
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14674
18925
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18932
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18933
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18934
library_names_spec=
18935
libname_spec='lib$name'
18939
postuninstall_cmds=
18943
shlibpath_overrides_runpath=unknown
18945
dynamic_linker="$host_os ld.so"
18946
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18947
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18948
need_lib_prefix=unknown
18949
hardcode_into_libs=no
18951
# when you set need_version to no, make sure it does not cause -set_version
18952
# flags to be left without arguments
18953
need_version=unknown
18958
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18959
shlibpath_var=LIBPATH
18961
# AIX 3 has no versioning support, so we append a major version to the name.
18962
soname_spec='${libname}${release}${shared_ext}$major'
18969
hardcode_into_libs=yes
18970
if test "$host_cpu" = ia64; then
18971
# AIX 5 supports IA64
18972
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18973
shlibpath_var=LD_LIBRARY_PATH
18975
# With GCC up to 2.95.x, collect2 would create an import file
18976
# for dependence libraries. The import file would start with
18977
# the line `#! .'. This would cause the generated library to
18978
# depend on `.', always an invalid library. This was fixed in
18979
# development snapshots of GCC prior to 3.0.
18981
aix4 | aix4.[01] | aix4.[01].*)
18982
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18984
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18987
can_build_shared=no
18991
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18992
# soname into executable. Probably we can add versioning support to
18993
# collect2, so additional links can be useful in future.
18994
if test "$aix_use_runtimelinking" = yes; then
18995
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18996
# instead of lib<name>.a to let people know that these are not
18997
# typical AIX shared libraries.
18998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19000
# We preserve .a as extension for shared libraries through AIX4.2
19001
# and later when we are not doing run time linking.
19002
library_names_spec='${libname}${release}.a $libname.a'
19003
soname_spec='${libname}${release}${shared_ext}$major'
19005
shlibpath_var=LIBPATH
19010
library_names_spec='$libname.ixlibrary $libname.a'
19011
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19012
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'
19016
library_names_spec='${libname}${shared_ext}'
19017
dynamic_linker="$host_os ld.so"
19018
shlibpath_var=LIBRARY_PATH
19024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19025
soname_spec='${libname}${release}${shared_ext}$major'
19026
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19027
shlibpath_var=LD_LIBRARY_PATH
19028
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19029
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19030
# the default ld.so.conf also contains /usr/contrib/lib and
19031
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19032
# libtool to hard-code these into programs
19035
cygwin* | mingw* | pw32*)
19036
version_type=windows
19041
case $GCC,$host_os in
19042
yes,cygwin* | yes,mingw* | yes,pw32*)
19043
library_names_spec='$libname.dll.a'
19044
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19045
postinstall_cmds='base_file=`basename \${file}`~
19046
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19047
dldir=$destdir/`dirname \$dlpath`~
19048
test -d \$dldir || mkdir -p \$dldir~
19049
$install_prog $dir/$dlname \$dldir/$dlname'
19050
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19051
dlpath=$dir/\$dldll~
19053
shlibpath_overrides_runpath=yes
19057
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19058
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19059
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19062
# MinGW DLLs use traditional 'lib' prefix
19063
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19064
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19065
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19066
# It is most probably a Windows format PATH printed by
19067
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19068
# path with ; separators, and with drive letters. We can handle the
19069
# drive letters (cygwin fileutils understands them), so leave them,
19070
# especially as we might pass files found there to a mingw objdump,
19071
# which wouldn't understand a cygwinified path. Ahh.
19072
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19074
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19078
# pw32 DLLs use 'pw' prefix rather than 'lib'
19079
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19085
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19088
dynamic_linker='Win32 ld.exe'
19089
# FIXME: first we should search . and the directory the executable is in
19093
darwin* | rhapsody*)
19094
dynamic_linker="$host_os dyld"
19095
version_type=darwin
19098
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19099
soname_spec='${libname}${release}${major}$shared_ext'
19100
shlibpath_overrides_runpath=yes
19101
shlibpath_var=DYLD_LIBRARY_PATH
19102
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
19103
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19104
if test "$GCC" = yes; then
19105
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"`
19107
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19109
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19117
soname_spec='${libname}${release}${shared_ext}$major'
19118
shlibpath_var=LD_LIBRARY_PATH
19129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19130
soname_spec='${libname}${release}${shared_ext}$major'
19131
shlibpath_var=LD_LIBRARY_PATH
19132
shlibpath_overrides_runpath=no
19133
hardcode_into_libs=yes
19134
dynamic_linker='GNU ld.so'
19138
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19139
version_type=freebsd-$objformat
19140
case $version_type in
19142
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19147
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19151
shlibpath_var=LD_LIBRARY_PATH
19154
shlibpath_overrides_runpath=yes
19156
freebsd3.01* | freebsdelf3.01*)
19157
shlibpath_overrides_runpath=yes
19158
hardcode_into_libs=yes
19161
shlibpath_overrides_runpath=no
19162
hardcode_into_libs=yes
19171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19172
soname_spec='${libname}${release}${shared_ext}$major'
19173
shlibpath_var=LD_LIBRARY_PATH
19174
hardcode_into_libs=yes
19177
hpux9* | hpux10* | hpux11*)
19178
# Give a soname corresponding to the major version so that dld.sl refuses to
19179
# link against other versions.
19183
case "$host_cpu" in
19186
hardcode_into_libs=yes
19187
dynamic_linker="$host_os dld.so"
19188
shlibpath_var=LD_LIBRARY_PATH
19189
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19191
soname_spec='${libname}${release}${shared_ext}$major'
19192
if test "X$HPUX_IA64_MODE" = X32; then
19193
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19195
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19197
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19201
hardcode_into_libs=yes
19202
dynamic_linker="$host_os dld.sl"
19203
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19204
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19206
soname_spec='${libname}${release}${shared_ext}$major'
19207
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19208
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19212
dynamic_linker="$host_os dld.sl"
19213
shlibpath_var=SHLIB_PATH
19214
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216
soname_spec='${libname}${release}${shared_ext}$major'
19219
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19220
postinstall_cmds='chmod 555 $lib'
19223
irix5* | irix6* | nonstopux*)
19225
nonstopux*) version_type=nonstopux ;;
19227
if test "$lt_cv_prog_gnu_ld" = yes; then
19235
soname_spec='${libname}${release}${shared_ext}$major'
19236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19238
irix5* | nonstopux*)
19239
libsuff= shlibsuff=
19242
case $LD in # libtool.m4 will add one of these switches to LD
19243
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19244
libsuff= shlibsuff= libmagic=32-bit;;
19245
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19246
libsuff=32 shlibsuff=N32 libmagic=N32;;
19247
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19248
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19249
*) libsuff= shlibsuff= libmagic=never-match;;
19253
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19254
shlibpath_overrides_runpath=no
19255
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19256
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19257
hardcode_into_libs=yes
19260
# No shared lib support for Linux oldld, aout, or coff.
19261
linux*oldld* | linux*aout* | linux*coff*)
19265
# This must be Linux ELF.
19270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19271
soname_spec='${libname}${release}${shared_ext}$major'
19272
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19274
if test "x$LINUX_64_MODE" = x64; then
19275
# Some platforms are per default 64-bit, so there's no /lib64
19276
if test -d /lib64; then
19280
shlibpath_var=LD_LIBRARY_PATH
19281
shlibpath_overrides_runpath=no
19282
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19283
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19284
# This implies no fast_install, which is unacceptable.
19285
# Some rework will be needed to allow for fast_install
19286
# before this can be enabled.
19287
hardcode_into_libs=yes
19289
# We used to test for /lib/ld.so.1 and disable shared libraries on
19290
# powerpc, because MkLinux only supported shared libraries with the
19291
# GNU dynamic linker. Since this was broken with cross compilers,
19292
# most powerpc-linux boxes support dynamic linking these days and
19293
# people can always --disable-shared, the test was removed, and we
19294
# assume the GNU/Linux dynamic linker is in use.
19295
dynamic_linker='GNU/Linux ld.so'
19302
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19304
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19305
dynamic_linker='NetBSD (a.out) ld.so'
19307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
19308
soname_spec='${libname}${release}${shared_ext}$major'
19309
dynamic_linker='NetBSD ld.elf_so'
19311
shlibpath_var=LD_LIBRARY_PATH
19312
shlibpath_overrides_runpath=yes
19313
hardcode_into_libs=yes
19318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19319
shlibpath_var=LD_LIBRARY_PATH
19320
shlibpath_overrides_runpath=yes
19327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19328
soname_spec='${libname}${release}${shared_ext}$major'
19329
shlibpath_var=LD_LIBRARY_PATH
19330
shlibpath_overrides_runpath=yes
19337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19338
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19339
shlibpath_var=LD_LIBRARY_PATH
19340
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19342
openbsd2.[89] | openbsd2.[89].*)
19343
shlibpath_overrides_runpath=no
19346
shlibpath_overrides_runpath=yes
19350
shlibpath_overrides_runpath=yes
19355
libname_spec='$name'
19358
library_names_spec='$libname${shared_ext} $libname.a'
19359
dynamic_linker='OS/2 ld.exe'
19360
shlibpath_var=LIBPATH
19363
osf3* | osf4* | osf5*)
19367
soname_spec='${libname}${release}${shared_ext}$major'
19368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19369
shlibpath_var=LD_LIBRARY_PATH
19370
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19371
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19376
soname_spec='${libname}${release}${shared_ext}$major'
19377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378
shlibpath_var=LD_LIBRARY_PATH
19385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19386
soname_spec='${libname}${release}${shared_ext}$major'
19387
shlibpath_var=LD_LIBRARY_PATH
19388
shlibpath_overrides_runpath=yes
19389
hardcode_into_libs=yes
19390
# ldd complains unless libraries are executable
19391
postinstall_cmds='chmod +x $lib'
19396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19397
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19398
shlibpath_var=LD_LIBRARY_PATH
19399
shlibpath_overrides_runpath=yes
19400
if test "$with_gnu_ld" = yes; then
19406
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19409
soname_spec='${libname}${release}${shared_ext}$major'
19410
shlibpath_var=LD_LIBRARY_PATH
19411
case $host_vendor in
19413
shlibpath_overrides_runpath=no
19415
export_dynamic_flag_spec='${wl}-Blargedynsym'
19416
runpath_var=LD_RUN_PATH
19424
shlibpath_overrides_runpath=no
19425
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19431
if test -d /usr/nec ;then
19433
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19434
soname_spec='$libname${shared_ext}.$major'
19435
shlibpath_var=LD_LIBRARY_PATH
19441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442
soname_spec='${libname}${release}${shared_ext}$major'
19443
shlibpath_var=LD_LIBRARY_PATH
19450
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19451
echo "${ECHO_T}$dynamic_linker" >&6
19452
test "$dynamic_linker" = no && can_build_shared=no
14679
19454
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14680
19455
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14681
19456
hardcode_action_GCJ=
14682
19457
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14683
test -n "$runpath_var GCJ"; then
19458
test -n "$runpath_var GCJ" || \
19459
test "X$hardcode_automatic_GCJ"="Xyes" ; then
14685
19461
# We can hardcode non-existant directories.
14686
19462
if test "$hardcode_direct_GCJ" != no &&
25956
echo "$as_me:$LINENO: checking for size_t" >&5
25957
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25958
if test "${ac_cv_type_size_t+set}" = set; then
25959
echo $ECHO_N "(cached) $ECHO_C" >&6
25961
cat >conftest.$ac_ext <<_ACEOF
25964
cat confdefs.h >>conftest.$ac_ext
25965
cat >>conftest.$ac_ext <<_ACEOF
25966
/* end confdefs.h. */
25967
$ac_includes_default
25973
if (sizeof (size_t))
25979
rm -f conftest.$ac_objext
25980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981
(eval $ac_compile) 2>conftest.er1
25983
grep -v '^ *+' conftest.er1 >conftest.err
25985
cat conftest.err >&5
25986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987
(exit $ac_status); } &&
25988
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25990
(eval $ac_try) 2>&5
25992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993
(exit $ac_status); }; } &&
25994
{ ac_try='test -s conftest.$ac_objext'
25995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996
(eval $ac_try) 2>&5
25998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999
(exit $ac_status); }; }; then
26000
ac_cv_type_size_t=yes
26002
echo "$as_me: failed program was:" >&5
26003
sed 's/^/| /' conftest.$ac_ext >&5
26005
ac_cv_type_size_t=no
26007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26010
echo "${ECHO_T}$ac_cv_type_size_t" >&6
26012
echo "$as_me:$LINENO: checking size of size_t" >&5
26013
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26014
if test "${ac_cv_sizeof_size_t+set}" = set; then
26015
echo $ECHO_N "(cached) $ECHO_C" >&6
26017
if test "$ac_cv_type_size_t" = yes; then
26018
# The cast to unsigned long works around a bug in the HP C Compiler
26019
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26020
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26021
# This bug is HP SR number 8606223364.
26022
if test "$cross_compiling" = yes; then
26023
# Depending upon the size, compute the lo and hi bounds.
26024
cat >conftest.$ac_ext <<_ACEOF
26027
cat confdefs.h >>conftest.$ac_ext
26028
cat >>conftest.$ac_ext <<_ACEOF
26029
/* end confdefs.h. */
26030
$ac_includes_default
26034
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26041
rm -f conftest.$ac_objext
26042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26043
(eval $ac_compile) 2>conftest.er1
26045
grep -v '^ *+' conftest.er1 >conftest.err
26047
cat conftest.err >&5
26048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049
(exit $ac_status); } &&
26050
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052
(eval $ac_try) 2>&5
26054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055
(exit $ac_status); }; } &&
26056
{ ac_try='test -s conftest.$ac_objext'
26057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058
(eval $ac_try) 2>&5
26060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061
(exit $ac_status); }; }; then
26064
cat >conftest.$ac_ext <<_ACEOF
26067
cat confdefs.h >>conftest.$ac_ext
26068
cat >>conftest.$ac_ext <<_ACEOF
26069
/* end confdefs.h. */
26070
$ac_includes_default
26074
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26081
rm -f conftest.$ac_objext
26082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26083
(eval $ac_compile) 2>conftest.er1
26085
grep -v '^ *+' conftest.er1 >conftest.err
26087
cat conftest.err >&5
26088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089
(exit $ac_status); } &&
26090
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092
(eval $ac_try) 2>&5
26094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095
(exit $ac_status); }; } &&
26096
{ ac_try='test -s conftest.$ac_objext'
26097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098
(eval $ac_try) 2>&5
26100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101
(exit $ac_status); }; }; then
26102
ac_hi=$ac_mid; break
26104
echo "$as_me: failed program was:" >&5
26105
sed 's/^/| /' conftest.$ac_ext >&5
26107
ac_lo=`expr $ac_mid + 1`
26108
if test $ac_lo -le $ac_mid; then
26112
ac_mid=`expr 2 '*' $ac_mid + 1`
26114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26117
echo "$as_me: failed program was:" >&5
26118
sed 's/^/| /' conftest.$ac_ext >&5
26120
cat >conftest.$ac_ext <<_ACEOF
26123
cat confdefs.h >>conftest.$ac_ext
26124
cat >>conftest.$ac_ext <<_ACEOF
26125
/* end confdefs.h. */
26126
$ac_includes_default
26130
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
26137
rm -f conftest.$ac_objext
26138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26139
(eval $ac_compile) 2>conftest.er1
26141
grep -v '^ *+' conftest.er1 >conftest.err
26143
cat conftest.err >&5
26144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145
(exit $ac_status); } &&
26146
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148
(eval $ac_try) 2>&5
26150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151
(exit $ac_status); }; } &&
26152
{ ac_try='test -s conftest.$ac_objext'
26153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154
(eval $ac_try) 2>&5
26156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157
(exit $ac_status); }; }; then
26160
cat >conftest.$ac_ext <<_ACEOF
26163
cat confdefs.h >>conftest.$ac_ext
26164
cat >>conftest.$ac_ext <<_ACEOF
26165
/* end confdefs.h. */
26166
$ac_includes_default
26170
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
26177
rm -f conftest.$ac_objext
26178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26179
(eval $ac_compile) 2>conftest.er1
26181
grep -v '^ *+' conftest.er1 >conftest.err
26183
cat conftest.err >&5
26184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185
(exit $ac_status); } &&
26186
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188
(eval $ac_try) 2>&5
26190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191
(exit $ac_status); }; } &&
26192
{ ac_try='test -s conftest.$ac_objext'
26193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194
(eval $ac_try) 2>&5
26196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197
(exit $ac_status); }; }; then
26198
ac_lo=$ac_mid; break
26200
echo "$as_me: failed program was:" >&5
26201
sed 's/^/| /' conftest.$ac_ext >&5
26203
ac_hi=`expr '(' $ac_mid ')' - 1`
26204
if test $ac_mid -le $ac_hi; then
26208
ac_mid=`expr 2 '*' $ac_mid`
26210
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26213
echo "$as_me: failed program was:" >&5
26214
sed 's/^/| /' conftest.$ac_ext >&5
26218
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26220
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26221
# Binary search between lo and hi bounds.
26222
while test "x$ac_lo" != "x$ac_hi"; do
26223
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26224
cat >conftest.$ac_ext <<_ACEOF
26227
cat confdefs.h >>conftest.$ac_ext
26228
cat >>conftest.$ac_ext <<_ACEOF
26229
/* end confdefs.h. */
26230
$ac_includes_default
26234
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26241
rm -f conftest.$ac_objext
26242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26243
(eval $ac_compile) 2>conftest.er1
26245
grep -v '^ *+' conftest.er1 >conftest.err
26247
cat conftest.err >&5
26248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249
(exit $ac_status); } &&
26250
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252
(eval $ac_try) 2>&5
26254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255
(exit $ac_status); }; } &&
26256
{ ac_try='test -s conftest.$ac_objext'
26257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258
(eval $ac_try) 2>&5
26260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261
(exit $ac_status); }; }; then
26264
echo "$as_me: failed program was:" >&5
26265
sed 's/^/| /' conftest.$ac_ext >&5
26267
ac_lo=`expr '(' $ac_mid ')' + 1`
26269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272
?*) ac_cv_sizeof_size_t=$ac_lo;;
26273
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
26274
See \`config.log' for more details." >&5
26275
echo "$as_me: error: cannot compute sizeof (size_t), 77
26276
See \`config.log' for more details." >&2;}
26277
{ (exit 1); exit 1; }; } ;;
26280
if test "$cross_compiling" = yes; then
26281
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26282
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26283
{ (exit 1); exit 1; }; }
26285
cat >conftest.$ac_ext <<_ACEOF
26288
cat confdefs.h >>conftest.$ac_ext
26289
cat >>conftest.$ac_ext <<_ACEOF
26290
/* end confdefs.h. */
26291
$ac_includes_default
26292
long longval () { return (long) (sizeof (size_t)); }
26293
unsigned long ulongval () { return (long) (sizeof (size_t)); }
26295
#include <stdlib.h>
26300
FILE *f = fopen ("conftest.val", "w");
26303
if (((long) (sizeof (size_t))) < 0)
26305
long i = longval ();
26306
if (i != ((long) (sizeof (size_t))))
26308
fprintf (f, "%ld\n", i);
26312
unsigned long i = ulongval ();
26313
if (i != ((long) (sizeof (size_t))))
26315
fprintf (f, "%lu\n", i);
26317
exit (ferror (f) || fclose (f) != 0);
26323
rm -f conftest$ac_exeext
26324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325
(eval $ac_link) 2>&5
26327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330
(eval $ac_try) 2>&5
26332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333
(exit $ac_status); }; }; then
26334
ac_cv_sizeof_size_t=`cat conftest.val`
26336
echo "$as_me: program exited with status $ac_status" >&5
26337
echo "$as_me: failed program was:" >&5
26338
sed 's/^/| /' conftest.$ac_ext >&5
26340
( exit $ac_status )
26341
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
26342
See \`config.log' for more details." >&5
26343
echo "$as_me: error: cannot compute sizeof (size_t), 77
26344
See \`config.log' for more details." >&2;}
26345
{ (exit 1); exit 1; }; }
26347
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26352
ac_cv_sizeof_size_t=0
26355
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
26356
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
26357
cat >>confdefs.h <<_ACEOF
26358
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26362
echo "$as_me:$LINENO: checking for unsigned long" >&5
26363
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
26364
if test "${ac_cv_type_unsigned_long+set}" = set; then
26365
echo $ECHO_N "(cached) $ECHO_C" >&6
26367
cat >conftest.$ac_ext <<_ACEOF
26370
cat confdefs.h >>conftest.$ac_ext
26371
cat >>conftest.$ac_ext <<_ACEOF
26372
/* end confdefs.h. */
26373
$ac_includes_default
26377
if ((unsigned long *) 0)
26379
if (sizeof (unsigned long))
26385
rm -f conftest.$ac_objext
26386
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26387
(eval $ac_compile) 2>conftest.er1
26389
grep -v '^ *+' conftest.er1 >conftest.err
26391
cat conftest.err >&5
26392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393
(exit $ac_status); } &&
26394
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396
(eval $ac_try) 2>&5
26398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399
(exit $ac_status); }; } &&
26400
{ ac_try='test -s conftest.$ac_objext'
26401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402
(eval $ac_try) 2>&5
26404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405
(exit $ac_status); }; }; then
26406
ac_cv_type_unsigned_long=yes
26408
echo "$as_me: failed program was:" >&5
26409
sed 's/^/| /' conftest.$ac_ext >&5
26411
ac_cv_type_unsigned_long=no
26413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26415
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
26416
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
26418
echo "$as_me:$LINENO: checking size of unsigned long" >&5
26419
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
26420
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26421
echo $ECHO_N "(cached) $ECHO_C" >&6
26423
if test "$ac_cv_type_unsigned_long" = yes; then
26424
# The cast to unsigned long works around a bug in the HP C Compiler
26425
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26426
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26427
# This bug is HP SR number 8606223364.
26428
if test "$cross_compiling" = yes; then
26429
# Depending upon the size, compute the lo and hi bounds.
26430
cat >conftest.$ac_ext <<_ACEOF
26433
cat confdefs.h >>conftest.$ac_ext
26434
cat >>conftest.$ac_ext <<_ACEOF
26435
/* end confdefs.h. */
26436
$ac_includes_default
26440
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
26447
rm -f conftest.$ac_objext
26448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26449
(eval $ac_compile) 2>conftest.er1
26451
grep -v '^ *+' conftest.er1 >conftest.err
26453
cat conftest.err >&5
26454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455
(exit $ac_status); } &&
26456
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458
(eval $ac_try) 2>&5
26460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461
(exit $ac_status); }; } &&
26462
{ ac_try='test -s conftest.$ac_objext'
26463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26464
(eval $ac_try) 2>&5
26466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467
(exit $ac_status); }; }; then
26470
cat >conftest.$ac_ext <<_ACEOF
26473
cat confdefs.h >>conftest.$ac_ext
26474
cat >>conftest.$ac_ext <<_ACEOF
26475
/* end confdefs.h. */
26476
$ac_includes_default
26480
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
26487
rm -f conftest.$ac_objext
26488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26489
(eval $ac_compile) 2>conftest.er1
26491
grep -v '^ *+' conftest.er1 >conftest.err
26493
cat conftest.err >&5
26494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495
(exit $ac_status); } &&
26496
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498
(eval $ac_try) 2>&5
26500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501
(exit $ac_status); }; } &&
26502
{ ac_try='test -s conftest.$ac_objext'
26503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504
(eval $ac_try) 2>&5
26506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507
(exit $ac_status); }; }; then
26508
ac_hi=$ac_mid; break
26510
echo "$as_me: failed program was:" >&5
26511
sed 's/^/| /' conftest.$ac_ext >&5
26513
ac_lo=`expr $ac_mid + 1`
26514
if test $ac_lo -le $ac_mid; then
26518
ac_mid=`expr 2 '*' $ac_mid + 1`
26520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26523
echo "$as_me: failed program was:" >&5
26524
sed 's/^/| /' conftest.$ac_ext >&5
26526
cat >conftest.$ac_ext <<_ACEOF
26529
cat confdefs.h >>conftest.$ac_ext
26530
cat >>conftest.$ac_ext <<_ACEOF
26531
/* end confdefs.h. */
26532
$ac_includes_default
26536
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
26543
rm -f conftest.$ac_objext
26544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26545
(eval $ac_compile) 2>conftest.er1
26547
grep -v '^ *+' conftest.er1 >conftest.err
26549
cat conftest.err >&5
26550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551
(exit $ac_status); } &&
26552
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554
(eval $ac_try) 2>&5
26556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557
(exit $ac_status); }; } &&
26558
{ ac_try='test -s conftest.$ac_objext'
26559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560
(eval $ac_try) 2>&5
26562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563
(exit $ac_status); }; }; then
26566
cat >conftest.$ac_ext <<_ACEOF
26569
cat confdefs.h >>conftest.$ac_ext
26570
cat >>conftest.$ac_ext <<_ACEOF
26571
/* end confdefs.h. */
26572
$ac_includes_default
26576
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
26583
rm -f conftest.$ac_objext
26584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26585
(eval $ac_compile) 2>conftest.er1
26587
grep -v '^ *+' conftest.er1 >conftest.err
26589
cat conftest.err >&5
26590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591
(exit $ac_status); } &&
26592
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594
(eval $ac_try) 2>&5
26596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597
(exit $ac_status); }; } &&
26598
{ ac_try='test -s conftest.$ac_objext'
26599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600
(eval $ac_try) 2>&5
26602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603
(exit $ac_status); }; }; then
26604
ac_lo=$ac_mid; break
26606
echo "$as_me: failed program was:" >&5
26607
sed 's/^/| /' conftest.$ac_ext >&5
26609
ac_hi=`expr '(' $ac_mid ')' - 1`
26610
if test $ac_mid -le $ac_hi; then
26614
ac_mid=`expr 2 '*' $ac_mid`
26616
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26619
echo "$as_me: failed program was:" >&5
26620
sed 's/^/| /' conftest.$ac_ext >&5
26624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26626
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26627
# Binary search between lo and hi bounds.
26628
while test "x$ac_lo" != "x$ac_hi"; do
26629
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26630
cat >conftest.$ac_ext <<_ACEOF
26633
cat confdefs.h >>conftest.$ac_ext
26634
cat >>conftest.$ac_ext <<_ACEOF
26635
/* end confdefs.h. */
26636
$ac_includes_default
26640
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
26647
rm -f conftest.$ac_objext
26648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26649
(eval $ac_compile) 2>conftest.er1
26651
grep -v '^ *+' conftest.er1 >conftest.err
26653
cat conftest.err >&5
26654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655
(exit $ac_status); } &&
26656
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26657
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658
(eval $ac_try) 2>&5
26660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661
(exit $ac_status); }; } &&
26662
{ ac_try='test -s conftest.$ac_objext'
26663
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664
(eval $ac_try) 2>&5
26666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667
(exit $ac_status); }; }; then
26670
echo "$as_me: failed program was:" >&5
26671
sed 's/^/| /' conftest.$ac_ext >&5
26673
ac_lo=`expr '(' $ac_mid ')' + 1`
26675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26678
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26679
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
26680
See \`config.log' for more details." >&5
26681
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
26682
See \`config.log' for more details." >&2;}
26683
{ (exit 1); exit 1; }; } ;;
26686
if test "$cross_compiling" = yes; then
26687
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26688
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26689
{ (exit 1); exit 1; }; }
26691
cat >conftest.$ac_ext <<_ACEOF
26694
cat confdefs.h >>conftest.$ac_ext
26695
cat >>conftest.$ac_ext <<_ACEOF
26696
/* end confdefs.h. */
26697
$ac_includes_default
26698
long longval () { return (long) (sizeof (unsigned long)); }
26699
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
26701
#include <stdlib.h>
26706
FILE *f = fopen ("conftest.val", "w");
26709
if (((long) (sizeof (unsigned long))) < 0)
26711
long i = longval ();
26712
if (i != ((long) (sizeof (unsigned long))))
26714
fprintf (f, "%ld\n", i);
26718
unsigned long i = ulongval ();
26719
if (i != ((long) (sizeof (unsigned long))))
26721
fprintf (f, "%lu\n", i);
26723
exit (ferror (f) || fclose (f) != 0);
26729
rm -f conftest$ac_exeext
26730
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26731
(eval $ac_link) 2>&5
26733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736
(eval $ac_try) 2>&5
26738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739
(exit $ac_status); }; }; then
26740
ac_cv_sizeof_unsigned_long=`cat conftest.val`
26742
echo "$as_me: program exited with status $ac_status" >&5
26743
echo "$as_me: failed program was:" >&5
26744
sed 's/^/| /' conftest.$ac_ext >&5
26746
( exit $ac_status )
26747
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
26748
See \`config.log' for more details." >&5
26749
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
26750
See \`config.log' for more details." >&2;}
26751
{ (exit 1); exit 1; }; }
26753
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26758
ac_cv_sizeof_unsigned_long=0
26761
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26762
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
26763
cat >>confdefs.h <<_ACEOF
26764
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26769
echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
26770
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
26771
cat >conftest.$ac_ext <<_ACEOF
26774
cat confdefs.h >>conftest.$ac_ext
26775
cat >>conftest.$ac_ext <<_ACEOF
26776
/* end confdefs.h. */
26782
#if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
26790
rm -f conftest.$ac_objext
26791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26792
(eval $ac_compile) 2>conftest.er1
26794
grep -v '^ *+' conftest.er1 >conftest.err
26796
cat conftest.err >&5
26797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798
(exit $ac_status); } &&
26799
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801
(eval $ac_try) 2>&5
26803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804
(exit $ac_status); }; } &&
26805
{ ac_try='test -s conftest.$ac_objext'
26806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807
(eval $ac_try) 2>&5
26809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810
(exit $ac_status); }; }; then
26811
echo "$as_me:$LINENO: result: yes" >&5
26812
echo "${ECHO_T}yes" >&6
26814
echo "$as_me: failed program was:" >&5
26815
sed 's/^/| /' conftest.$ac_ext >&5
26818
echo "$as_me:$LINENO: result: no" >&5
26819
echo "${ECHO_T}no" >&6
26820
{ { echo "$as_me:$LINENO: error:
26821
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
26822
does not apply. Please mail kde-devel@kde.org with a description of your system!
26824
echo "$as_me: error:
26825
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
26826
does not apply. Please mail kde-devel@kde.org with a description of your system!
26828
{ (exit 1); exit 1; }; }
26831
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26834
# darwin needs this to initialize the environment
26836
for ac_header in crt_externs.h
26838
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26839
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840
echo "$as_me:$LINENO: checking for $ac_header" >&5
26841
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26843
echo $ECHO_N "(cached) $ECHO_C" >&6
26845
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26846
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26848
# Is the header compilable?
26849
echo "$as_me:$LINENO: checking $ac_header usability" >&5
26850
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26851
cat >conftest.$ac_ext <<_ACEOF
26854
cat confdefs.h >>conftest.$ac_ext
26855
cat >>conftest.$ac_ext <<_ACEOF
26856
/* end confdefs.h. */
26857
$ac_includes_default
26858
#include <$ac_header>
26860
rm -f conftest.$ac_objext
26861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26862
(eval $ac_compile) 2>conftest.er1
26864
grep -v '^ *+' conftest.er1 >conftest.err
26866
cat conftest.err >&5
26867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868
(exit $ac_status); } &&
26869
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26871
(eval $ac_try) 2>&5
26873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874
(exit $ac_status); }; } &&
26875
{ ac_try='test -s conftest.$ac_objext'
26876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877
(eval $ac_try) 2>&5
26879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880
(exit $ac_status); }; }; then
26881
ac_header_compiler=yes
26883
echo "$as_me: failed program was:" >&5
26884
sed 's/^/| /' conftest.$ac_ext >&5
26886
ac_header_compiler=no
26888
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26889
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26890
echo "${ECHO_T}$ac_header_compiler" >&6
26892
# Is the header present?
26893
echo "$as_me:$LINENO: checking $ac_header presence" >&5
26894
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26895
cat >conftest.$ac_ext <<_ACEOF
26898
cat confdefs.h >>conftest.$ac_ext
26899
cat >>conftest.$ac_ext <<_ACEOF
26900
/* end confdefs.h. */
26901
#include <$ac_header>
26903
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26904
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26906
grep -v '^ *+' conftest.er1 >conftest.err
26908
cat conftest.err >&5
26909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910
(exit $ac_status); } >/dev/null; then
26911
if test -s conftest.err; then
26912
ac_cpp_err=$ac_c_preproc_warn_flag
26913
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26920
if test -z "$ac_cpp_err"; then
26921
ac_header_preproc=yes
26923
echo "$as_me: failed program was:" >&5
26924
sed 's/^/| /' conftest.$ac_ext >&5
26926
ac_header_preproc=no
26928
rm -f conftest.err conftest.$ac_ext
26929
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26930
echo "${ECHO_T}$ac_header_preproc" >&6
26932
# So? What about this header?
26933
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26935
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26936
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26937
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26938
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26939
ac_header_preproc=yes
26942
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26943
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26944
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26945
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26946
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26947
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26948
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26949
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26950
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26951
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26952
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26953
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26956
## ------------------------------------------ ##
26957
## Report this to the AC_PACKAGE_NAME lists. ##
26958
## ------------------------------------------ ##
26961
sed "s/^/$as_me: WARNING: /" >&2
26964
echo "$as_me:$LINENO: checking for $ac_header" >&5
26965
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26966
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26967
echo $ECHO_N "(cached) $ECHO_C" >&6
26969
eval "$as_ac_Header=\$ac_header_preproc"
26971
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26972
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26975
if test `eval echo '${'$as_ac_Header'}'` = yes; then
26976
cat >>confdefs.h <<_ACEOF
26977
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26984
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
26985
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
26986
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
26987
echo $ECHO_N "(cached) $ECHO_C" >&6
26989
cat >conftest.$ac_ext <<_ACEOF
26992
cat confdefs.h >>conftest.$ac_ext
26993
cat >>conftest.$ac_ext <<_ACEOF
26994
/* end confdefs.h. */
26995
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
26996
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26997
#define _NSGetEnviron innocuous__NSGetEnviron
26999
/* System header to define __stub macros and hopefully few prototypes,
27000
which can conflict with char _NSGetEnviron (); below.
27001
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27002
<limits.h> exists even on freestanding compilers. */
27005
# include <limits.h>
27007
# include <assert.h>
27010
#undef _NSGetEnviron
27012
/* Override any gcc2 internal prototype to avoid an error. */
27017
/* We use char because int might match the return type of a gcc2
27018
builtin and then its argument prototype would still apply. */
27019
char _NSGetEnviron ();
27020
/* The GNU C library defines this for functions which it implements
27021
to always fail with ENOSYS. Some functions are actually named
27022
something starting with __ and the normal name is an alias. */
27023
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
27026
char (*f) () = _NSGetEnviron;
27035
return f != _NSGetEnviron;
27040
rm -f conftest.$ac_objext conftest$ac_exeext
27041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27042
(eval $ac_link) 2>conftest.er1
27044
grep -v '^ *+' conftest.er1 >conftest.err
27046
cat conftest.err >&5
27047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048
(exit $ac_status); } &&
27049
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27050
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051
(eval $ac_try) 2>&5
27053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054
(exit $ac_status); }; } &&
27055
{ ac_try='test -s conftest$ac_exeext'
27056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057
(eval $ac_try) 2>&5
27059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060
(exit $ac_status); }; }; then
27061
ac_cv_func__NSGetEnviron=yes
27063
echo "$as_me: failed program was:" >&5
27064
sed 's/^/| /' conftest.$ac_ext >&5
27066
ac_cv_func__NSGetEnviron=no
27068
rm -f conftest.err conftest.$ac_objext \
27069
conftest$ac_exeext conftest.$ac_ext
27071
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
27072
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
27073
if test $ac_cv_func__NSGetEnviron = yes; then
27075
cat >>confdefs.h <<\_ACEOF
27076
#define HAVE_NSGETENVIRON 1
31622
# MusicBrainz support with libtunepimp
31624
# Check whether --with-musicbrainz or --without-musicbrainz was given.
31625
if test "${with_musicbrainz+set}" = set; then
31626
withval="$with_musicbrainz"
31627
with_musicbrainz="$withval"
31629
with_musicbrainz=yes
31632
if test "$with_musicbrainz" != "no"; then
31637
kde_safe_cppflags=$CPPFLAGS
31638
CPPFLAGS="$CPPFLAGS $all_includes"
31640
ac_cpp='$CXXCPP $CPPFLAGS'
31641
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31642
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31643
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31645
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31648
if test "${ac_cv_header_tunepimp_tp_c_h+set}" = set; then
31649
echo "$as_me:$LINENO: checking for tunepimp/tp_c.h" >&5
31650
echo $ECHO_N "checking for tunepimp/tp_c.h... $ECHO_C" >&6
31651
if test "${ac_cv_header_tunepimp_tp_c_h+set}" = set; then
31652
echo $ECHO_N "(cached) $ECHO_C" >&6
31654
echo "$as_me:$LINENO: result: $ac_cv_header_tunepimp_tp_c_h" >&5
31655
echo "${ECHO_T}$ac_cv_header_tunepimp_tp_c_h" >&6
31657
# Is the header compilable?
31658
echo "$as_me:$LINENO: checking tunepimp/tp_c.h usability" >&5
31659
echo $ECHO_N "checking tunepimp/tp_c.h usability... $ECHO_C" >&6
31660
cat >conftest.$ac_ext <<_ACEOF
31663
cat confdefs.h >>conftest.$ac_ext
31664
cat >>conftest.$ac_ext <<_ACEOF
31665
/* end confdefs.h. */
31666
$ac_includes_default
31667
#include <tunepimp/tp_c.h>
31669
rm -f conftest.$ac_objext
31670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31671
(eval $ac_compile) 2>conftest.er1
31673
grep -v '^ *+' conftest.er1 >conftest.err
31675
cat conftest.err >&5
31676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677
(exit $ac_status); } &&
31678
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31680
(eval $ac_try) 2>&5
31682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683
(exit $ac_status); }; } &&
31684
{ ac_try='test -s conftest.$ac_objext'
31685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31686
(eval $ac_try) 2>&5
31688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689
(exit $ac_status); }; }; then
31690
ac_header_compiler=yes
31692
echo "$as_me: failed program was:" >&5
31693
sed 's/^/| /' conftest.$ac_ext >&5
31695
ac_header_compiler=no
31697
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31698
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31699
echo "${ECHO_T}$ac_header_compiler" >&6
31701
# Is the header present?
31702
echo "$as_me:$LINENO: checking tunepimp/tp_c.h presence" >&5
31703
echo $ECHO_N "checking tunepimp/tp_c.h presence... $ECHO_C" >&6
31704
cat >conftest.$ac_ext <<_ACEOF
31707
cat confdefs.h >>conftest.$ac_ext
31708
cat >>conftest.$ac_ext <<_ACEOF
31709
/* end confdefs.h. */
31710
#include <tunepimp/tp_c.h>
31712
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31713
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31715
grep -v '^ *+' conftest.er1 >conftest.err
31717
cat conftest.err >&5
31718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719
(exit $ac_status); } >/dev/null; then
31720
if test -s conftest.err; then
31721
ac_cpp_err=$ac_cxx_preproc_warn_flag
31722
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31729
if test -z "$ac_cpp_err"; then
31730
ac_header_preproc=yes
31732
echo "$as_me: failed program was:" >&5
31733
sed 's/^/| /' conftest.$ac_ext >&5
31735
ac_header_preproc=no
31737
rm -f conftest.err conftest.$ac_ext
31738
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31739
echo "${ECHO_T}$ac_header_preproc" >&6
31741
# So? What about this header?
31742
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31744
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: accepted by the compiler, rejected by the preprocessor!" >&5
31745
echo "$as_me: WARNING: tunepimp/tp_c.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31746
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: proceeding with the compiler's result" >&5
31747
echo "$as_me: WARNING: tunepimp/tp_c.h: proceeding with the compiler's result" >&2;}
31748
ac_header_preproc=yes
31751
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: present but cannot be compiled" >&5
31752
echo "$as_me: WARNING: tunepimp/tp_c.h: present but cannot be compiled" >&2;}
31753
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: check for missing prerequisite headers?" >&5
31754
echo "$as_me: WARNING: tunepimp/tp_c.h: check for missing prerequisite headers?" >&2;}
31755
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: see the Autoconf documentation" >&5
31756
echo "$as_me: WARNING: tunepimp/tp_c.h: see the Autoconf documentation" >&2;}
31757
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: section \"Present But Cannot Be Compiled\"" >&5
31758
echo "$as_me: WARNING: tunepimp/tp_c.h: section \"Present But Cannot Be Compiled\"" >&2;}
31759
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: proceeding with the preprocessor's result" >&5
31760
echo "$as_me: WARNING: tunepimp/tp_c.h: proceeding with the preprocessor's result" >&2;}
31761
{ echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: in the future, the compiler will take precedence" >&5
31762
echo "$as_me: WARNING: tunepimp/tp_c.h: in the future, the compiler will take precedence" >&2;}
31765
## ------------------------------------------ ##
31766
## Report this to the AC_PACKAGE_NAME lists. ##
31767
## ------------------------------------------ ##
31770
sed "s/^/$as_me: WARNING: /" >&2
31773
echo "$as_me:$LINENO: checking for tunepimp/tp_c.h" >&5
31774
echo $ECHO_N "checking for tunepimp/tp_c.h... $ECHO_C" >&6
31775
if test "${ac_cv_header_tunepimp_tp_c_h+set}" = set; then
31776
echo $ECHO_N "(cached) $ECHO_C" >&6
31778
ac_cv_header_tunepimp_tp_c_h=$ac_header_preproc
31780
echo "$as_me:$LINENO: result: $ac_cv_header_tunepimp_tp_c_h" >&5
31781
echo "${ECHO_T}$ac_cv_header_tunepimp_tp_c_h" >&6
31784
if test $ac_cv_header_tunepimp_tp_c_h = yes; then
31785
build_musicbrainz="yes"
31787
build_musicbrainz="no"
31791
CPPFLAGS=$kde_safe_cppflags
31793
ac_cpp='$CPP $CPPFLAGS'
31794
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31795
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31796
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31800
if test "$build_musicbrainz" = "yes"; then
31804
cat >>confdefs.h <<\_ACEOF
31805
#define HAVE_TUNEPIMP 1
31808
LIB_TUNEPIMP="-ltunepimp"
31817
if test "$build_musicbrainz" = "yes"; then
31818
HAVE_TUNEPIMP_TRUE=
31819
HAVE_TUNEPIMP_FALSE='#'
31821
HAVE_TUNEPIMP_TRUE='#'
31822
HAVE_TUNEPIMP_FALSE=
31826
# ogg/vorbis support with libvorbis
31828
# Check whether --with-vorbis or --without-vorbis was given.
31829
if test "${with_vorbis+set}" = set; then
31830
withval="$with_vorbis"
31831
with_vorbis="$withval"
31836
if test "$with_vorbis" != "no"; then
31840
kde_safe_cppflags=$CPPFLAGS
31841
CPPFLAGS="$CPPFLAGS $all_includes"
31843
ac_cpp='$CXXCPP $CPPFLAGS'
31844
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31848
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31851
if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31852
echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31853
echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6
31854
if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31855
echo $ECHO_N "(cached) $ECHO_C" >&6
31857
echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31858
echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6
31860
# Is the header compilable?
31861
echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
31862
echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6
31863
cat >conftest.$ac_ext <<_ACEOF
31866
cat confdefs.h >>conftest.$ac_ext
31867
cat >>conftest.$ac_ext <<_ACEOF
31868
/* end confdefs.h. */
31869
$ac_includes_default
31870
#include <vorbis/codec.h>
31872
rm -f conftest.$ac_objext
31873
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31874
(eval $ac_compile) 2>conftest.er1
31876
grep -v '^ *+' conftest.er1 >conftest.err
31878
cat conftest.err >&5
31879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880
(exit $ac_status); } &&
31881
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31883
(eval $ac_try) 2>&5
31885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886
(exit $ac_status); }; } &&
31887
{ ac_try='test -s conftest.$ac_objext'
31888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889
(eval $ac_try) 2>&5
31891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892
(exit $ac_status); }; }; then
31893
ac_header_compiler=yes
31895
echo "$as_me: failed program was:" >&5
31896
sed 's/^/| /' conftest.$ac_ext >&5
31898
ac_header_compiler=no
31900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31901
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31902
echo "${ECHO_T}$ac_header_compiler" >&6
31904
# Is the header present?
31905
echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
31906
echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6
31907
cat >conftest.$ac_ext <<_ACEOF
31910
cat confdefs.h >>conftest.$ac_ext
31911
cat >>conftest.$ac_ext <<_ACEOF
31912
/* end confdefs.h. */
31913
#include <vorbis/codec.h>
31915
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31916
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31918
grep -v '^ *+' conftest.er1 >conftest.err
31920
cat conftest.err >&5
31921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922
(exit $ac_status); } >/dev/null; then
31923
if test -s conftest.err; then
31924
ac_cpp_err=$ac_cxx_preproc_warn_flag
31925
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31932
if test -z "$ac_cpp_err"; then
31933
ac_header_preproc=yes
31935
echo "$as_me: failed program was:" >&5
31936
sed 's/^/| /' conftest.$ac_ext >&5
31938
ac_header_preproc=no
31940
rm -f conftest.err conftest.$ac_ext
31941
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31942
echo "${ECHO_T}$ac_header_preproc" >&6
31944
# So? What about this header?
31945
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31947
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31948
echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31949
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
31950
echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
31951
ac_header_preproc=yes
31954
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
31955
echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
31956
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
31957
echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31958
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
31959
echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
31960
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31961
echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31962
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
31963
echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31964
{ echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
31965
echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31968
## ------------------------------------------ ##
31969
## Report this to the AC_PACKAGE_NAME lists. ##
31970
## ------------------------------------------ ##
31973
sed "s/^/$as_me: WARNING: /" >&2
31976
echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31977
echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6
31978
if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31979
echo $ECHO_N "(cached) $ECHO_C" >&6
31981
ac_cv_header_vorbis_codec_h=$ac_header_preproc
31983
echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31984
echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6
31987
if test $ac_cv_header_vorbis_codec_h = yes; then
31994
CPPFLAGS=$kde_safe_cppflags
31996
ac_cpp='$CPP $CPPFLAGS'
31997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003
if test "$build_vorbis" = "yes"; then
32007
cat >>confdefs.h <<\_ACEOF
32008
#define HAVE_VORBIS 1
32011
LIB_VORBIS="-lvorbis -lvorbisfile"
32020
if test "$build_vorbis" = "yes"; then
32022
HAVE_VORBIS_FALSE='#'
32024
HAVE_VORBIS_TRUE='#'
32029
# FLAC support with libFLAC++
32031
# Check whether --with-flac or --without-flac was given.
32032
if test "${with_flac+set}" = set; then
32033
withval="$with_flac"
32034
with_flac="$withval"
32039
if test "$with_flac" != "no"; then
32043
kde_safe_cppflags=$CPPFLAGS
32044
CPPFLAGS="$CPPFLAGS $all_includes"
32046
ac_cpp='$CXXCPP $CPPFLAGS'
32047
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32051
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32054
if test "${ac_cv_header_FLACpp_metadata_h+set}" = set; then
32055
echo "$as_me:$LINENO: checking for FLAC++/metadata.h" >&5
32056
echo $ECHO_N "checking for FLAC++/metadata.h... $ECHO_C" >&6
32057
if test "${ac_cv_header_FLACpp_metadata_h+set}" = set; then
32058
echo $ECHO_N "(cached) $ECHO_C" >&6
32060
echo "$as_me:$LINENO: result: $ac_cv_header_FLACpp_metadata_h" >&5
32061
echo "${ECHO_T}$ac_cv_header_FLACpp_metadata_h" >&6
32063
# Is the header compilable?
32064
echo "$as_me:$LINENO: checking FLAC++/metadata.h usability" >&5
32065
echo $ECHO_N "checking FLAC++/metadata.h usability... $ECHO_C" >&6
32066
cat >conftest.$ac_ext <<_ACEOF
32069
cat confdefs.h >>conftest.$ac_ext
32070
cat >>conftest.$ac_ext <<_ACEOF
32071
/* end confdefs.h. */
32072
$ac_includes_default
32073
#include <FLAC++/metadata.h>
32075
rm -f conftest.$ac_objext
32076
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32077
(eval $ac_compile) 2>conftest.er1
32079
grep -v '^ *+' conftest.er1 >conftest.err
32081
cat conftest.err >&5
32082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083
(exit $ac_status); } &&
32084
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086
(eval $ac_try) 2>&5
32088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089
(exit $ac_status); }; } &&
32090
{ ac_try='test -s conftest.$ac_objext'
32091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32092
(eval $ac_try) 2>&5
32094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095
(exit $ac_status); }; }; then
32096
ac_header_compiler=yes
32098
echo "$as_me: failed program was:" >&5
32099
sed 's/^/| /' conftest.$ac_ext >&5
32101
ac_header_compiler=no
32103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32104
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32105
echo "${ECHO_T}$ac_header_compiler" >&6
32107
# Is the header present?
32108
echo "$as_me:$LINENO: checking FLAC++/metadata.h presence" >&5
32109
echo $ECHO_N "checking FLAC++/metadata.h presence... $ECHO_C" >&6
32110
cat >conftest.$ac_ext <<_ACEOF
32113
cat confdefs.h >>conftest.$ac_ext
32114
cat >>conftest.$ac_ext <<_ACEOF
32115
/* end confdefs.h. */
32116
#include <FLAC++/metadata.h>
32118
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32119
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32121
grep -v '^ *+' conftest.er1 >conftest.err
32123
cat conftest.err >&5
32124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125
(exit $ac_status); } >/dev/null; then
32126
if test -s conftest.err; then
32127
ac_cpp_err=$ac_cxx_preproc_warn_flag
32128
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32135
if test -z "$ac_cpp_err"; then
32136
ac_header_preproc=yes
32138
echo "$as_me: failed program was:" >&5
32139
sed 's/^/| /' conftest.$ac_ext >&5
32141
ac_header_preproc=no
32143
rm -f conftest.err conftest.$ac_ext
32144
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32145
echo "${ECHO_T}$ac_header_preproc" >&6
32147
# So? What about this header?
32148
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32150
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
32151
echo "$as_me: WARNING: FLAC++/metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32152
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: proceeding with the compiler's result" >&5
32153
echo "$as_me: WARNING: FLAC++/metadata.h: proceeding with the compiler's result" >&2;}
32154
ac_header_preproc=yes
32157
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: present but cannot be compiled" >&5
32158
echo "$as_me: WARNING: FLAC++/metadata.h: present but cannot be compiled" >&2;}
32159
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: check for missing prerequisite headers?" >&5
32160
echo "$as_me: WARNING: FLAC++/metadata.h: check for missing prerequisite headers?" >&2;}
32161
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: see the Autoconf documentation" >&5
32162
echo "$as_me: WARNING: FLAC++/metadata.h: see the Autoconf documentation" >&2;}
32163
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: section \"Present But Cannot Be Compiled\"" >&5
32164
echo "$as_me: WARNING: FLAC++/metadata.h: section \"Present But Cannot Be Compiled\"" >&2;}
32165
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: proceeding with the preprocessor's result" >&5
32166
echo "$as_me: WARNING: FLAC++/metadata.h: proceeding with the preprocessor's result" >&2;}
32167
{ echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: in the future, the compiler will take precedence" >&5
32168
echo "$as_me: WARNING: FLAC++/metadata.h: in the future, the compiler will take precedence" >&2;}
32171
## ------------------------------------------ ##
32172
## Report this to the AC_PACKAGE_NAME lists. ##
32173
## ------------------------------------------ ##
32176
sed "s/^/$as_me: WARNING: /" >&2
32179
echo "$as_me:$LINENO: checking for FLAC++/metadata.h" >&5
32180
echo $ECHO_N "checking for FLAC++/metadata.h... $ECHO_C" >&6
32181
if test "${ac_cv_header_FLACpp_metadata_h+set}" = set; then
32182
echo $ECHO_N "(cached) $ECHO_C" >&6
32184
ac_cv_header_FLACpp_metadata_h=$ac_header_preproc
32186
echo "$as_me:$LINENO: result: $ac_cv_header_FLACpp_metadata_h" >&5
32187
echo "${ECHO_T}$ac_cv_header_FLACpp_metadata_h" >&6
32190
if test $ac_cv_header_FLACpp_metadata_h = yes; then
32197
CPPFLAGS=$kde_safe_cppflags
32199
ac_cpp='$CPP $CPPFLAGS'
32200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
32206
if test "$build_flac" = "yes"; then
32210
cat >>confdefs.h <<\_ACEOF
32211
#define HAVE_FLAC 1
32214
LIB_FLAC="-lFLAC++ -lFLAC"
32223
if test "$build_flac" = "yes"; then
32225
HAVE_FLAC_FALSE='#'
32232
# Check if old FLAC++ without Prototype::operator ::FLAC__StreamMetadata const *()
32235
echo "$as_me:$LINENO: checking for FLAC__StreamMetadata operator" >&5
32236
echo $ECHO_N "checking for FLAC__StreamMetadata operator... $ECHO_C" >&6
32240
ac_cpp='$CXXCPP $CPPFLAGS'
32241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32245
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32248
cat > conftest.$ac_ext <<EOF
32249
#include <FLAC++/metadata.h>
32251
FLAC::Metadata::VorbisComment vc;
32252
const ::FLAC__StreamMetadata* fsmd = vc;
32257
ac_save_CPPFLAGS=$CPPFLAGS
32258
CPPFLAGS="$all_includes $CPPFLAGS"
32259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32260
(eval $ac_compile) 2>&5
32262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263
(exit $ac_status); }; then
32264
echo "$as_me:$LINENO: result: yes" >&5
32265
echo "${ECHO_T}yes" >&6
32267
echo "$as_me:$LINENO: result: no" >&5
32268
echo "${ECHO_T}no" >&6
32270
cat >>confdefs.h <<\_ACEOF
32271
#define HAVE_NO_FLAC_STREAMMETADATA_OPERATOR 1
32275
CPPFLAGS=$ac_save_CPPFLAGS
32278
ac_cpp='$CPP $CPPFLAGS'
32279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
24508
32286
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"