2107
1913
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2108
1914
AC_MSG_RESULT([$hard_links])
2109
1915
if test "$hard_links" = no; then
2110
AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
1916
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2111
1917
need_locks=warn
2117
if test "$GCC" = yes; then
2118
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2119
AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2120
echo "int some_variable = 0;" > conftest.$ac_ext
2121
save_CFLAGS="$CFLAGS"
2122
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2123
compiler_rtti_exceptions=no
2124
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2125
# The compiler can only warn and ignore the option if not recognized
2126
# So say no if there are warnings
2127
if test -s conftest.err; then
2128
compiler_rtti_exceptions=no
2130
compiler_rtti_exceptions=yes
2133
CFLAGS="$save_CFLAGS"
2134
AC_MSG_RESULT([$compiler_rtti_exceptions])
2136
if test "$compiler_rtti_exceptions" = "yes"; then
2137
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2139
no_builtin_flag=' -fno-builtin'
2143
# See if the linker supports building shared libraries.
2144
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2146
allow_undefined_flag=
2148
need_lib_prefix=unknown
2149
need_version=unknown
2150
# when you set need_version to no, make sure it does not cause -set_version
2151
# flags to be left without arguments
2153
archive_expsym_cmds=
2154
old_archive_from_new_cmds=
2155
old_archive_from_expsyms_cmds=
2156
export_dynamic_flag_spec=
2157
whole_archive_flag_spec=
2158
thread_safe_flag_spec=
2159
hardcode_into_libs=no
2160
hardcode_libdir_flag_spec=
2161
hardcode_libdir_separator=
2164
hardcode_shlibpath_var=unsupported
2166
link_all_deplibs=unknown
2167
always_export_symbols=no
2168
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2169
# include_expsyms should be a list of space-separated symbols to be *always*
2170
# included in the symbol list
2172
# exclude_expsyms can be an egrep regular expression of symbols to exclude
2173
# it will be wrapped by ` (' and `)$', so one must not match beginning or
2174
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2175
# as well as any symbol that contains `d'.
2176
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2177
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2178
# platforms (ab)use it in PIC code, but their linkers get confused if
2179
# the symbol is explicitly referenced. Since portable code cannot
2180
# rely on this symbol name, it's probably fine to never include it in
2181
# preloaded symbol tables.
2182
extract_expsyms_cmds=
2185
cygwin* | mingw* | pw32*)
2186
# FIXME: the MSVC++ port hasn't been tested in a loooong time
2187
# When not using gcc, we currently assume that we are using
2188
# Microsoft Visual C++.
2189
if test "$GCC" != yes; then
2199
if test "$with_gnu_ld" = yes; then
2200
# If archive_cmds runs LD, not CC, wlarc should be empty
2203
# See if GNU ld supports shared libraries.
2205
aix3* | aix4* | aix5*)
2206
# On AIX, the GNU linker is very broken
2207
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2211
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2212
*** to be unable to reliably create shared libraries on AIX.
2213
*** Therefore, libtool is disabling shared libraries support. If you
2214
*** really care for shared libraries, you may want to modify your PATH
2215
*** so that a non-GNU linker is found, and then restart.
2221
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2222
hardcode_libdir_flag_spec='-L$libdir'
2223
hardcode_minus_L=yes
2225
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2226
# that the semantics of dynamic libraries on AmigaOS, at least up
2227
# to version 4, is to share data among multiple programs linked
2228
# with the same dynamic library. Since this doesn't match the
2229
# behavior of shared libraries on other platforms, we can use
2235
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2236
allow_undefined_flag=unsupported
2237
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2238
# support --undefined. This deserves some investigation. FIXME
2239
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2245
cygwin* | mingw* | pw32*)
2246
# hardcode_libdir_flag_spec is actually meaningless, as there is
2247
# no search path for DLLs.
2248
hardcode_libdir_flag_spec='-L$libdir'
2249
allow_undefined_flag=unsupported
2250
always_export_symbols=yes
2252
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2253
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2254
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2255
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2256
else $CC -o impgen impgen.c ; fi)~
2257
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2259
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2261
# cygwin and mingw dlls have different entry points and sets of symbols
2263
# FIXME: what about values for MSVC?
2264
dll_entry=__cygwin_dll_entry@12
2265
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2269
dll_entry=_DllMainCRTStartup@12
2270
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2274
# mingw and cygwin differ, and it's simplest to just exclude the union
2275
# of the two symbol sets.
2276
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2278
# recent cygwin and mingw systems supply a stub DllMain which the user
2279
# can override, but on older systems we have to supply one (in ltdll.c)
2280
if test "x$lt_cv_need_dllmain" = "xyes"; then
2281
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2282
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2283
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2289
# Extract the symbol export list from an `--export-all' def file,
2290
# then regenerate the def file from the symbol export list, so that
2291
# the compiled dll only exports the symbol export list.
2292
# Be careful not to strip the DATA tag left be newer dlltools.
2293
export_symbols_cmds="$ltdll_cmds"'
2294
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2295
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2297
# If the export-symbols file already is a .def file (1st line
2298
# is EXPORTS), use it as is.
2299
# If DATA tags from a recent dlltool are present, honour them!
2300
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
2301
cp $export_symbols $output_objdir/$soname-def;
2303
echo EXPORTS > $output_objdir/$soname-def;
2305
cat $export_symbols | while read symbol; do
2308
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2309
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2311
_lt_hint=`expr 1 + \$_lt_hint`;
2315
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2316
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2317
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2318
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2319
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2323
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2324
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2327
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2328
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2333
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
2337
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
2338
*** create shared libraries on Solaris systems. Therefore, libtool
2339
*** is disabling shared libraries support. We urge you to upgrade GNU
2340
*** binutils to release 2.9.1 or newer. Another option is to modify
2341
*** your PATH or compiler configuration so that the native linker is
2342
*** used, and then restart.
2345
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2346
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2347
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2354
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2357
hardcode_shlibpath_var=no
2361
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2362
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2363
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2370
if test "$ld_shlibs" = yes; then
2371
runpath_var=LD_RUN_PATH
2372
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
2373
export_dynamic_flag_spec='${wl}--export-dynamic'
2375
cygwin* | mingw* | pw32*)
2376
# dlltool doesn't understand --whole-archive et. al.
2377
whole_archive_flag_spec=
2380
# ancient GNU ld didn't support --whole-archive et. al.
2381
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
2382
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2384
whole_archive_flag_spec=
1922
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1927
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1928
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1929
[rm -f .libs 2>/dev/null
1930
mkdir .libs 2>/dev/null
1931
if test -d .libs; then
2390
# PORTME fill in a description of your system's linker (not GNU ld)
2393
allow_undefined_flag=unsupported
2394
always_export_symbols=yes
2395
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
2396
# Note: this linker hardcodes the directories in LIBPATH if there
2397
# are no directories specified by -L.
2398
hardcode_minus_L=yes
2399
if test "$GCC" = yes && test -z "$link_static_flag"; then
2400
# Neither direct hardcoding nor static linking is supported with a
2402
hardcode_direct=unsupported
2407
if test "$host_cpu" = ia64; then
2408
# On IA64, the linker does run time linking by default, so we don't
2409
# have to do anything special.
2410
aix_use_runtimelinking=no
2411
exp_sym_flag='-Bexport'
2414
aix_use_runtimelinking=no
2416
# Test if we are trying to use run time linking or normal
2417
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
2418
# need to do runtime linking.
2419
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2420
for ld_flag in $LDFLAGS; do
2421
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
2422
aix_use_runtimelinking=yes
2428
exp_sym_flag='-bexport'
2429
no_entry_flag='-bnoentry'
2432
# When large executables or shared objects are built, AIX ld can
2433
# have problems creating the table of contents. If linking a library
2434
# or program results in "error TOC overflow" add -mminimal-toc to
2435
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2436
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2440
hardcode_libdir_separator=':'
2441
if test "$GCC" = yes; then
2442
case $host_os in aix4.[[012]]|aix4.[[012]].*)
2443
collect2name=`${CC} -print-prog-name=collect2`
2444
if test -f "$collect2name" && \
2445
strings "$collect2name" | grep resolve_lib_name >/dev/null
2447
# We have reworked collect2
2450
# We have old collect2
2451
hardcode_direct=unsupported
2452
# It fails to find uninstalled libraries when the uninstalled
2453
# path is not listed in the libpath. Setting hardcode_minus_L
2454
# to unsupported forces relinking
2455
hardcode_minus_L=yes
2456
hardcode_libdir_flag_spec='-L$libdir'
2457
hardcode_libdir_separator=
2461
shared_flag='-shared'
2464
if test "$host_cpu" = ia64; then
2465
shared_flag='${wl}-G'
2467
if test "$aix_use_runtimelinking" = yes; then
2468
shared_flag='${wl}-G'
2470
shared_flag='${wl}-bM:SRE'
2475
# It seems that -bexpall can do strange things, so it is better to
2476
# generate a list of symbols to export.
2477
always_export_symbols=yes
2478
if test "$aix_use_runtimelinking" = yes; then
2479
# Warning - without using the other runtime loading flags (-brtl),
2480
# -berok will link without error, but may produce a broken library.
2481
allow_undefined_flag='-berok'
2482
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
2483
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2485
if test "$host_cpu" = ia64; then
2486
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
2487
allow_undefined_flag="-z nodefs"
2488
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2490
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
2491
# Warning - without using the other run time loading flags,
2492
# -berok will link without error, but may produce a broken library.
2493
allow_undefined_flag='${wl}-berok'
2494
# This is a bit strange, but is similar to how AIX traditionally builds
2495
# it's shared libraries.
2496
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
2502
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2503
hardcode_libdir_flag_spec='-L$libdir'
2504
hardcode_minus_L=yes
2505
# see comment about different semantics on the GNU ld section
2509
cygwin* | mingw* | pw32*)
2510
# When not using gcc, we currently assume that we are using
2511
# Microsoft Visual C++.
2512
# hardcode_libdir_flag_spec is actually meaningless, as there is
2513
# no search path for DLLs.
2514
hardcode_libdir_flag_spec=' '
2515
allow_undefined_flag=unsupported
2516
# Tell ltmain to make .lib files, not .a files.
2518
# FIXME: Setting linknames here is a bad hack.
2519
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
2520
# The linker will automatically build a .lib file if we build a DLL.
2521
old_archive_from_new_cmds='true'
2522
# FIXME: Should let the user specify the lib program.
2523
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
2524
fix_srcfile_path='`cygpath -w "$srcfile"`'
2527
darwin* | rhapsody*)
2529
rhapsody* | darwin1.[[012]])
2530
allow_undefined_flag='-undefined suppress'
2533
allow_undefined_flag='-flat_namespace -undefined suppress'
2536
# FIXME: Relying on posixy $() will cause problems for
2537
# cross-compilation, but unfortunately the echo tests do not
2538
# yet detect zsh echo's removal of \ escapes.
2539
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
2540
# We need to add '_' to the symbols in $export_symbols first
2541
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
2543
hardcode_shlibpath_var=no
2544
whole_archive_flag_spec='-all_load $convenience'
2551
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
2552
# support. Future versions do this automatically, but an explicit c++rt0.o
2553
# does not break anything, and helps significantly (at the cost of a little
2556
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
2557
hardcode_libdir_flag_spec='-R$libdir'
2559
hardcode_shlibpath_var=no
2562
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
2564
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2566
hardcode_minus_L=yes
2567
hardcode_shlibpath_var=no
2570
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2572
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2573
hardcode_libdir_flag_spec='-R$libdir'
2575
hardcode_shlibpath_var=no
2578
hpux9* | hpux10* | hpux11*)
2580
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
2581
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
2583
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
2584
hardcode_libdir_separator=:
2586
hardcode_minus_L=yes # Not in the search PATH, but as the default
2587
# location of the library.
2588
export_dynamic_flag_spec='${wl}-E'
2592
if test "$GCC" = yes; then
2593
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2595
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2597
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2598
hardcode_libdir_separator=:
2599
link_all_deplibs=yes
2603
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2604
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
2606
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
2608
hardcode_libdir_flag_spec='-R$libdir'
2610
hardcode_shlibpath_var=no
2614
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2616
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2617
hardcode_libdir_separator=:
2618
hardcode_shlibpath_var=no
2623
hardcode_shlibpath_var=no
2624
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2625
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2626
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2627
export_dynamic_flag_spec='${wl}-E'
2630
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2631
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2632
hardcode_libdir_flag_spec='-R$libdir'
2635
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2636
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2643
hardcode_libdir_flag_spec='-L$libdir'
2644
hardcode_minus_L=yes
2645
allow_undefined_flag=unsupported
2646
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
2647
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2651
if test "$GCC" = yes; then
2652
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2653
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2655
allow_undefined_flag=' -expect_unresolved \*'
2656
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2658
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2659
hardcode_libdir_separator=:
2662
osf4* | osf5*) # as osf3* with the addition of -msym flag
2663
if test "$GCC" = yes; then
2664
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2665
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2666
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2668
allow_undefined_flag=' -expect_unresolved \*'
2669
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2670
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2671
$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'
2673
#Both c and cxx compiler support -rpath directly
2674
hardcode_libdir_flag_spec='-rpath $libdir'
2676
hardcode_libdir_separator=:
2680
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2681
hardcode_shlibpath_var=no
2682
runpath_var=LD_RUN_PATH
2683
hardcode_runpath_var=yes
2684
export_dynamic_flag_spec='${wl}-Bexport'
2688
# gcc --version < 3.0 without binutils cannot create self contained
2689
# shared libraries reliably, requiring libgcc.a to resolve some of
2690
# the object symbols generated in some cases. Libraries that use
2691
# assert need libgcc.a to resolve __eprintf, for example. Linking
2692
# a copy of libgcc.a into every shared library to guarantee resolving
2693
# such symbols causes other problems: According to Tim Van Holder
2694
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2695
# (to the application) exception stack for one thing.
2696
no_undefined_flag=' -z defs'
2697
if test "$GCC" = yes; then
2698
case `$CC --version 2>/dev/null` in
2702
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2703
*** create self contained shared libraries on Solaris systems, without
2704
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
2705
*** -no-undefined support, which will at least allow you to build shared
2706
*** libraries. However, you may find that when you link such libraries
2707
*** into an application without using GCC, you have to manually add
2708
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
2709
*** upgrade to a newer version of GCC. Another option is to rebuild your
2710
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
2717
# $CC -shared without GNU ld will not create a library from C++
2718
# object files and a static libstdc++, better avoid it by now
2719
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2720
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2721
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2722
hardcode_libdir_flag_spec='-R$libdir'
2723
hardcode_shlibpath_var=no
2725
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2726
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
2727
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
2729
link_all_deplibs=yes
2733
if test "x$host_vendor" = xsequent; then
2734
# Use $CC to link under sequent, because it throws in some extra .o
2735
# files that make .init and .fini sections work.
2736
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2738
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2740
hardcode_libdir_flag_spec='-L$libdir'
2742
hardcode_minus_L=yes
2743
hardcode_shlibpath_var=no
2747
if test "x$host_vendor" = xsno; then
2748
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
2749
hardcode_direct=yes # is this really true???
2751
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2752
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
2754
runpath_var='LD_RUN_PATH'
2755
hardcode_shlibpath_var=no
2759
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2760
hardcode_shlibpath_var=no
2761
export_dynamic_flag_spec='-Bexport'
2765
no_undefined_flag=' -z text'
2766
# $CC -shared without GNU ld will not create a library from C++
2767
# object files and a static libstdc++, better avoid it by now
2768
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2769
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2770
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2771
hardcode_libdir_flag_spec=
2772
hardcode_shlibpath_var=no
2773
runpath_var='LD_RUN_PATH'
2777
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2778
hardcode_libdir_flag_spec='-L$libdir'
2779
hardcode_shlibpath_var=no
2783
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2784
hardcode_libdir_flag_spec='-L$libdir'
2785
hardcode_shlibpath_var=no
2789
if test -d /usr/nec; then
2790
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2791
hardcode_shlibpath_var=no
2792
runpath_var=LD_RUN_PATH
2793
hardcode_runpath_var=yes
2799
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2802
hardcode_shlibpath_var=no
2803
hardcode_runpath_var=yes
2804
runpath_var=LD_RUN_PATH
2807
sysv5uw7* | unixware7*)
2808
no_undefined_flag='${wl}-z ${wl}text'
2809
if test "$GCC" = yes; then
2810
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2812
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2814
runpath_var='LD_RUN_PATH'
2815
hardcode_shlibpath_var=no
1934
# MS-DOS does not allow filenames that begin with a dot.
2823
AC_MSG_RESULT([$ld_shlibs])
2824
test "$ld_shlibs" = no && can_build_shared=no
1937
rmdir .libs 2>/dev/null])
1938
objdir=$lt_cv_objdir
1939
])# AC_LIBTOOL_OBJDIR
1942
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1943
# ----------------------------------------------
2826
1944
# Check hardcoding attributes.
2827
AC_MSG_CHECKING([how to hardcode library paths into programs])
2829
if test -n "$hardcode_libdir_flag_spec" || \
2830
test -n "$runpath_var"; then
1945
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1946
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1947
_LT_AC_TAGVAR(hardcode_action, $1)=
1948
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1949
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1950
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2832
1952
# We can hardcode non-existant directories.
2833
if test "$hardcode_direct" != no &&
1953
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2834
1954
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2835
1955
# have to relink, otherwise we might link with an installed library
2836
1956
# when we should be linking with a yet-to-be-installed one
2837
## test "$hardcode_shlibpath_var" != no &&
2838
test "$hardcode_minus_L" != no; then
1957
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1958
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2839
1959
# Linking always hardcodes the temporary library directory.
2840
hardcode_action=relink
1960
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2842
1962
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2843
hardcode_action=immediate
1963
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2846
1966
# We cannot hardcode anything, or else we can only hardcode existing
2848
hardcode_action=unsupported
2850
AC_MSG_RESULT([$hardcode_action])
1968
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1970
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1972
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1973
# Fast installation is not supported
1974
enable_fast_install=no
1975
elif test "$shlibpath_overrides_runpath" = yes ||
1976
test "$enable_shared" = no; then
1977
# Fast installation is not necessary
1978
enable_fast_install=needless
1980
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1983
# AC_LIBTOOL_SYS_LIB_STRIP
1984
# ------------------------
1985
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2854
1988
AC_MSG_CHECKING([whether stripping libraries is possible])
2855
1989
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3232
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3233
soname_spec='${libname}${release}.so$major'
3234
shlibpath_var=LD_LIBRARY_PATH
3241
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3242
soname_spec='${libname}${release}.so$major'
3243
shlibpath_var=LD_LIBRARY_PATH
3247
2555
if test -d /usr/nec ;then
3248
2556
version_type=linux
3249
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
3250
soname_spec='$libname.so.$major'
2557
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2558
soname_spec='$libname${shared_ext}.$major'
3251
2559
shlibpath_var=LD_LIBRARY_PATH
2565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2566
soname_spec='${libname}${release}${shared_ext}$major'
2567
shlibpath_var=LD_LIBRARY_PATH
3256
2571
dynamic_linker=no
3259
2574
AC_MSG_RESULT([$dynamic_linker])
3260
2575
test "$dynamic_linker" = no && can_build_shared=no
3262
# Report the final consequences.
3263
AC_MSG_CHECKING([if libtool supports shared libraries])
3264
AC_MSG_RESULT([$can_build_shared])
3266
AC_MSG_CHECKING([whether to build shared libraries])
3267
test "$can_build_shared" = "no" && enable_shared=no
3269
# On AIX, shared libraries and static libraries use the same namespace, and
3270
# are all built from PIC.
3273
test "$enable_shared" = yes && enable_static=no
3274
if test -n "$RANLIB"; then
3275
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3276
postinstall_cmds='$RANLIB $lib'
3281
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3282
test "$enable_shared" = yes && enable_static=no
3286
AC_MSG_RESULT([$enable_shared])
3288
AC_MSG_CHECKING([whether to build static libraries])
3289
# Make sure either enable_shared or enable_static is yes.
3290
test "$enable_shared" = yes || enable_static=yes
3291
AC_MSG_RESULT([$enable_static])
3293
if test "$hardcode_action" = relink; then
3294
# Fast installation is not supported
3295
enable_fast_install=no
3296
elif test "$shlibpath_overrides_runpath" = yes ||
3297
test "$enable_shared" = no; then
3298
# Fast installation is not necessary
3299
enable_fast_install=needless
3302
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3303
if test "$GCC" = yes; then
3304
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3307
AC_LIBTOOL_DLOPEN_SELF
3309
if test "$enable_shared" = yes && test "$GCC" = yes; then
3310
case $archive_cmds in
3312
# FIXME: we may have to deal with multi-command sequences.
3315
# Test whether the compiler implicitly links with -lc since on some
3316
# systems, -lgcc has to come before -lc. If gcc already passes -lc
3317
# to ld, don't add -lc before -lgcc.
3318
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
3319
AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
3321
echo 'static int dummy;' > conftest.$ac_ext
3323
if AC_TRY_EVAL(ac_compile); then
3326
libobjs=conftest.$ac_objext
3328
wl=$lt_cv_prog_cc_wl
3334
save_allow_undefined_flag=$allow_undefined_flag
3335
allow_undefined_flag=
3336
if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
3338
lt_cv_archive_cmds_need_lc=no
3340
lt_cv_archive_cmds_need_lc=yes
3342
allow_undefined_flag=$save_allow_undefined_flag
2576
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2581
AC_DEFUN([_LT_AC_TAGCONFIG],
2582
[AC_ARG_WITH([tags],
2583
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2584
[include additional configurations @<:@automatic@:>@])],
2585
[tagnames="$withval"])
2587
if test -f "$ltmain" && test -n "$tagnames"; then
2588
if test ! -f "${ofile}"; then
2589
AC_MSG_WARN([output file `$ofile' does not exist])
2592
if test -z "$LTCC"; then
2593
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2594
if test -z "$LTCC"; then
2595
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3344
cat conftest.err 1>&5
2597
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2601
# Extract list of available tagged configurations in $ofile.
2602
# Note that this assumes the entire list is on one line.
2603
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2605
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2606
for tagname in $tagnames; do
2608
# Check whether tagname contains only valid characters
2609
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2611
*) AC_MSG_ERROR([invalid tag name: $tagname])
2615
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2617
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2620
# Update the list of available tags.
2621
if test -n "$tagname"; then
2622
echo appending configuration tag \"$tagname\" to $ofile
2626
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2627
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2628
(test "X$CXX" != "Xg++"))) ; then
2629
AC_LIBTOOL_LANG_CXX_CONFIG
2636
if test -n "$F77" && test "X$F77" != "Xno"; then
2637
AC_LIBTOOL_LANG_F77_CONFIG
2644
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2645
AC_LIBTOOL_LANG_GCJ_CONFIG
2652
AC_LIBTOOL_LANG_RC_CONFIG
2656
AC_MSG_ERROR([Unsupported tag name: $tagname])
2660
# Append the new tag name to the list of available tags.
2661
if test -n "$tagname" ; then
2662
available_tags="$available_tags $tagname"
2668
# Now substitute the updated list of available tags.
2669
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2670
mv "${ofile}T" "$ofile"
2674
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2677
])# _LT_AC_TAGCONFIG
2682
# enable checks for dlopen support
2683
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2684
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2685
])# AC_LIBTOOL_DLOPEN
2688
# AC_LIBTOOL_WIN32_DLL
2689
# --------------------
2690
# declare package support for building win32 dll's
2691
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2692
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2693
])# AC_LIBTOOL_WIN32_DLL
2696
# AC_ENABLE_SHARED([DEFAULT])
2697
# ---------------------------
2698
# implement the --enable-shared flag
2699
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2700
AC_DEFUN([AC_ENABLE_SHARED],
2701
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2702
AC_ARG_ENABLE([shared],
2703
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2704
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2705
[p=${PACKAGE-default}
2707
yes) enable_shared=yes ;;
2708
no) enable_shared=no ;;
2711
# Look at the argument we got. We use all the common list separators.
2712
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2713
for pkg in $enableval; do
2715
if test "X$pkg" = "X$p"; then
2722
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2723
])# AC_ENABLE_SHARED
2728
#- set the default shared flag to --disable-shared
2729
AC_DEFUN([AC_DISABLE_SHARED],
2730
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2731
AC_ENABLE_SHARED(no)
2732
])# AC_DISABLE_SHARED
2735
# AC_ENABLE_STATIC([DEFAULT])
2736
# ---------------------------
2737
# implement the --enable-static flag
2738
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2739
AC_DEFUN([AC_ENABLE_STATIC],
2740
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2741
AC_ARG_ENABLE([static],
2742
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2743
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2744
[p=${PACKAGE-default}
2746
yes) enable_static=yes ;;
2747
no) enable_static=no ;;
2750
# Look at the argument we got. We use all the common list separators.
2751
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2752
for pkg in $enableval; do
2754
if test "X$pkg" = "X$p"; then
2761
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2762
])# AC_ENABLE_STATIC
2767
# set the default static flag to --disable-static
2768
AC_DEFUN([AC_DISABLE_STATIC],
2769
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2770
AC_ENABLE_STATIC(no)
2771
])# AC_DISABLE_STATIC
2774
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2775
# ---------------------------------
2776
# implement the --enable-fast-install flag
2777
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2778
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2779
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2780
AC_ARG_ENABLE([fast-install],
2781
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2782
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2783
[p=${PACKAGE-default}
2785
yes) enable_fast_install=yes ;;
2786
no) enable_fast_install=no ;;
2788
enable_fast_install=no
2789
# Look at the argument we got. We use all the common list separators.
2790
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2791
for pkg in $enableval; do
2793
if test "X$pkg" = "X$p"; then
2794
enable_fast_install=yes
2800
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2801
])# AC_ENABLE_FAST_INSTALL
2804
# AC_DISABLE_FAST_INSTALL
2805
# -----------------------
2806
# set the default to --disable-fast-install
2807
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2808
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2809
AC_ENABLE_FAST_INSTALL(no)
2810
])# AC_DISABLE_FAST_INSTALL
2813
# AC_LIBTOOL_PICMODE([MODE])
2814
# --------------------------
2815
# implement the --with-pic flag
2816
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2817
AC_DEFUN([AC_LIBTOOL_PICMODE],
2818
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2819
pic_mode=ifelse($#,1,$1,default)
2820
])# AC_LIBTOOL_PICMODE
2825
# This is predefined starting with Autoconf 2.54, so this conditional
2826
# definition can be removed once we require Autoconf 2.54 or later.
2827
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2828
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2829
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2830
then ac_cv_prog_egrep='grep -E'
2831
else ac_cv_prog_egrep='egrep'
3346
AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
3350
need_lc=${lt_cv_archive_cmds_need_lc-yes}
3352
# The second clause should only fire when bootstrapping the
2833
EGREP=$ac_cv_prog_egrep
2838
# AC_PATH_TOOL_PREFIX
2839
# -------------------
2840
# find a file program which can recognise shared library
2841
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2842
[AC_REQUIRE([AC_PROG_EGREP])dnl
2843
AC_MSG_CHECKING([for $1])
2844
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2846
[[\\/*] | ?:[\\/]*])
2847
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2850
lt_save_MAGIC_CMD="$MAGIC_CMD"
2851
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2852
dnl $ac_dummy forces splitting on constant user-supplied paths.
2853
dnl POSIX.2 word splitting is done only on the output of word expansions,
2854
dnl not every word. This closes a longstanding sh security hole.
2855
ac_dummy="ifelse([$2], , $PATH, [$2])"
2856
for ac_dir in $ac_dummy; do
2858
test -z "$ac_dir" && ac_dir=.
2859
if test -f $ac_dir/$1; then
2860
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2861
if test -n "$file_magic_test_file"; then
2862
case $deplibs_check_method in
2864
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2865
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2866
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2867
$EGREP "$file_magic_regex" > /dev/null; then
2872
*** Warning: the command libtool uses to detect shared libraries,
2873
*** $file_magic_cmd, produces output that libtool cannot recognize.
2874
*** The result is that libtool may fail to recognize shared libraries
2875
*** as such. This will affect the creation of libtool libraries that
2876
*** depend on shared libraries, but programs linked with such libtool
2877
*** libraries will work regardless of this problem. Nevertheless, you
2878
*** may want to report the problem to your system manager and/or to
2879
*** bug-libtool@gnu.org
2889
MAGIC_CMD="$lt_save_MAGIC_CMD"
2892
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2893
if test -n "$MAGIC_CMD"; then
2894
AC_MSG_RESULT($MAGIC_CMD)
2898
])# AC_PATH_TOOL_PREFIX
2903
# find a file program which can recognise a shared library
2904
AC_DEFUN([AC_PATH_MAGIC],
2905
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2906
if test -z "$lt_cv_path_MAGIC_CMD"; then
2907
if test -n "$ac_tool_prefix"; then
2908
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2918
# find the pathname to the GNU or non-GNU linker
2919
AC_DEFUN([AC_PROG_LD],
2920
[AC_ARG_WITH([gnu-ld],
2921
[AC_HELP_STRING([--with-gnu-ld],
2922
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2923
[test "$withval" = no || with_gnu_ld=yes],
2925
AC_REQUIRE([LT_AC_PROG_SED])dnl
2926
AC_REQUIRE([AC_PROG_CC])dnl
2927
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2928
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2930
if test "$GCC" = yes; then
2931
# Check if gcc -print-prog-name=ld gives a path.
2932
AC_MSG_CHECKING([for ld used by $CC])
2935
# gcc leaves a trailing carriage return which upsets mingw
2936
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2938
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2941
# Accept absolute paths.
2942
[[\\/]]* | ?:[[\\/]]*)
2943
re_direlt='/[[^/]][[^/]]*/\.\./'
2944
# Canonicalize the pathname of ld
2945
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2946
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2947
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2949
test -z "$LD" && LD="$ac_prog"
2952
# If it fails, then pretend we aren't using GCC.
2956
# If it is relative, then search for the first ld in PATH.
2960
elif test "$with_gnu_ld" = yes; then
2961
AC_MSG_CHECKING([for GNU ld])
2963
AC_MSG_CHECKING([for non-GNU ld])
2965
AC_CACHE_VAL(lt_cv_path_LD,
2966
[if test -z "$LD"; then
2967
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2968
for ac_dir in $PATH; do
2970
test -z "$ac_dir" && ac_dir=.
2971
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2972
lt_cv_path_LD="$ac_dir/$ac_prog"
2973
# Check to see if the program is GNU ld. I'd rather use --version,
2974
# but apparently some GNU ld's only accept -v.
2975
# Break only if it was the GNU/non-GNU ld that we prefer.
2976
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2977
*GNU* | *'with BFD'*)
2978
test "$with_gnu_ld" != no && break
2981
test "$with_gnu_ld" != yes && break
2988
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2991
if test -n "$LD"; then
2996
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3003
AC_DEFUN([AC_PROG_LD_GNU],
3004
[AC_REQUIRE([AC_PROG_EGREP])dnl
3005
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3006
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3007
case `$LD -v 2>&1 </dev/null` in
3008
*GNU* | *'with BFD'*)
3009
lt_cv_prog_gnu_ld=yes
3012
lt_cv_prog_gnu_ld=no
3015
with_gnu_ld=$lt_cv_prog_gnu_ld
3019
# AC_PROG_LD_RELOAD_FLAG
3020
# ----------------------
3021
# find reload flag for linker
3022
# -- PORTME Some linkers may need a different reload flag.
3023
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3024
[AC_CACHE_CHECK([for $LD option to reload object files],
3025
lt_cv_ld_reload_flag,
3026
[lt_cv_ld_reload_flag='-r'])
3027
reload_flag=$lt_cv_ld_reload_flag
3028
case $reload_flag in
3030
*) reload_flag=" $reload_flag" ;;
3032
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3035
if test "$GCC" = yes; then
3036
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3038
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3042
])# AC_PROG_LD_RELOAD_FLAG
3045
# AC_DEPLIBS_CHECK_METHOD
3046
# -----------------------
3047
# how to check for library dependencies
3048
# -- PORTME fill in with the dynamic library characteristics
3049
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3050
[AC_CACHE_CHECK([how to recognise dependent libraries],
3051
lt_cv_deplibs_check_method,
3052
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3053
lt_cv_file_magic_test_file=
3054
lt_cv_deplibs_check_method='unknown'
3055
# Need to set the preceding variable on all platforms that support
3056
# interlibrary dependencies.
3057
# 'none' -- dependencies not supported.
3058
# `unknown' -- same as none, but documents that we really don't know.
3059
# 'pass_all' -- all dependencies passed with no checks.
3060
# 'test_compile' -- check by making test program.
3061
# 'file_magic [[regex]]' -- check by looking for files in library path
3062
# which responds to the $file_magic_cmd with a given extended regex.
3063
# If you have `file' or equivalent on your system and you're not sure
3064
# whether `pass_all' will *always* work, you probably want this one.
3068
lt_cv_deplibs_check_method=pass_all
3072
lt_cv_deplibs_check_method=pass_all
3076
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3077
lt_cv_file_magic_cmd='/usr/bin/file -L'
3078
lt_cv_file_magic_test_file=/shlib/libc.so
3082
# func_win32_libid is a shell function defined in ltmain.sh
3083
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3084
lt_cv_file_magic_cmd='func_win32_libid'
3088
# Base MSYS/MinGW do not provide the 'file' command needed by
3089
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3090
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3091
lt_cv_file_magic_cmd='$OBJDUMP -f'
3094
darwin* | rhapsody*)
3095
lt_cv_deplibs_check_method=pass_all
3098
freebsd* | kfreebsd*-gnu | dragonfly*)
3099
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3102
# Not sure whether the presence of OpenBSD here was a mistake.
3103
# Let's accept both of them until this is cleared up.
3104
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3105
lt_cv_file_magic_cmd=/usr/bin/file
3106
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3110
lt_cv_deplibs_check_method=pass_all
3115
lt_cv_deplibs_check_method=pass_all
3118
hpux10.20* | hpux11*)
3119
lt_cv_file_magic_cmd=/usr/bin/file
3122
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3123
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3126
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3127
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3130
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3131
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3136
irix5* | irix6* | nonstopux*)
3138
*-32|*"-32 ") libmagic=32-bit;;
3139
*-n32|*"-n32 ") libmagic=N32;;
3140
*-64|*"-64 ") libmagic=64-bit;;
3141
*) libmagic=never-match;;
3143
lt_cv_deplibs_check_method=pass_all
3146
# This must be Linux ELF.
3148
lt_cv_deplibs_check_method=pass_all
3152
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3153
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3155
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3160
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3161
lt_cv_file_magic_cmd=/usr/bin/file
3162
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3166
lt_cv_deplibs_check_method=unknown
3170
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3171
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3173
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3177
osf3* | osf4* | osf5*)
3178
lt_cv_deplibs_check_method=pass_all
3182
lt_cv_deplibs_check_method=pass_all
3186
lt_cv_deplibs_check_method=pass_all
3189
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3190
case $host_vendor in
3192
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3193
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3196
lt_cv_deplibs_check_method=pass_all
3199
lt_cv_file_magic_cmd='/bin/file'
3200
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3203
lt_cv_file_magic_cmd='/bin/file'
3204
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3205
lt_cv_file_magic_test_file=/lib/libc.so
3208
lt_cv_deplibs_check_method=pass_all
3213
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3214
lt_cv_deplibs_check_method=pass_all
3218
file_magic_cmd=$lt_cv_file_magic_cmd
3219
deplibs_check_method=$lt_cv_deplibs_check_method
3220
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3221
])# AC_DEPLIBS_CHECK_METHOD
3226
# find the pathname to a BSD-compatible name lister
3227
AC_DEFUN([AC_PROG_NM],
3228
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3229
[if test -n "$NM"; then
3230
# Let the user override the test.
3233
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3234
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3236
test -z "$ac_dir" && ac_dir=.
3237
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3238
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3239
# Check to see if the nm accepts a BSD-compat flag.
3240
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3241
# nm: unknown option "B" ignored
3242
# Tru64's nm complains that /dev/null is an invalid object file
3243
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3244
*/dev/null* | *'Invalid file or object type'*)
3245
lt_cv_path_NM="$tmp_nm -B"
3249
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3251
lt_cv_path_NM="$tmp_nm -p"
3255
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3256
continue # so that we can try to find one that supports BSD flags
3263
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3271
# check for math library
3272
AC_DEFUN([AC_CHECK_LIBM],
3273
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3276
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3277
# These system don't have libm, or don't need it
3280
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3281
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3284
AC_CHECK_LIB(m, cos, LIBM="-lm")
3290
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3291
# -----------------------------------
3292
# sets LIBLTDL to the link flags for the libltdl convenience library and
3293
# LTDLINCL to the include flags for the libltdl header and adds
3294
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3295
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3296
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3297
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3298
# '${top_srcdir}/' (note the single quotes!). If your package is not
3299
# flat and you're not using automake, define top_builddir and
3300
# top_srcdir appropriately in the Makefiles.
3301
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3302
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3303
case $enable_ltdl_convenience in
3304
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3305
"") enable_ltdl_convenience=yes
3306
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3308
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3309
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3310
# For backwards non-gettext consistent compatibility...
3312
])# AC_LIBLTDL_CONVENIENCE
3315
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3316
# -----------------------------------
3317
# sets LIBLTDL to the link flags for the libltdl installable library and
3318
# LTDLINCL to the include flags for the libltdl header and adds
3319
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3320
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3321
# DIRECTORY is not provided and an installed libltdl is not found, it is
3322
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3323
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3324
# quotes!). If your package is not flat and you're not using automake,
3325
# define top_builddir and top_srcdir appropriately in the Makefiles.
3326
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3327
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3328
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3329
AC_CHECK_LIB(ltdl, lt_dlinit,
3330
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3331
[if test x"$enable_ltdl_install" = xno; then
3332
AC_MSG_WARN([libltdl not installed, but installation disabled])
3334
enable_ltdl_install=yes
3337
if test x"$enable_ltdl_install" = x"yes"; then
3338
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3339
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3340
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3342
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3346
# For backwards non-gettext consistent compatibility...
3348
])# AC_LIBLTDL_INSTALLABLE
3353
# enable support for C++ libraries
3354
AC_DEFUN([AC_LIBTOOL_CXX],
3355
[AC_REQUIRE([_LT_AC_LANG_CXX])
3361
AC_DEFUN([_LT_AC_LANG_CXX],
3362
[AC_REQUIRE([AC_PROG_CXX])
3363
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3364
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3367
# _LT_AC_PROG_CXXCPP
3369
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3371
AC_REQUIRE([AC_PROG_CXX])
3372
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3373
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3374
(test "X$CXX" != "Xg++"))) ; then
3377
])# _LT_AC_PROG_CXXCPP
3381
# enable support for Fortran 77 libraries
3382
AC_DEFUN([AC_LIBTOOL_F77],
3383
[AC_REQUIRE([_LT_AC_LANG_F77])
3389
AC_DEFUN([_LT_AC_LANG_F77],
3390
[AC_REQUIRE([AC_PROG_F77])
3391
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3397
# enable support for GCJ libraries
3398
AC_DEFUN([AC_LIBTOOL_GCJ],
3399
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3405
AC_DEFUN([_LT_AC_LANG_GCJ],
3406
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3407
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3408
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3409
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3410
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3411
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3412
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3418
# enable support for Windows resource files
3419
AC_DEFUN([AC_LIBTOOL_RC],
3420
[AC_REQUIRE([LT_AC_PROG_RC])
3421
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3425
# AC_LIBTOOL_LANG_C_CONFIG
3426
# ------------------------
3427
# Ensure that the configuration vars for the C compiler are
3428
# suitably defined. Those variables are subsequently used by
3429
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3430
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3431
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3435
# Source file extension for C test sources.
3438
# Object file extension for compiled C test sources.
3440
_LT_AC_TAGVAR(objext, $1)=$objext
3442
# Code to be used in simple compile tests
3443
lt_simple_compile_test_code="int some_variable = 0;\n"
3445
# Code to be used in simple link tests
3446
lt_simple_link_test_code='int main(){return(0);}\n'
3450
# save warnings/boilerplate of simple test code
3451
_LT_COMPILER_BOILERPLATE
3452
_LT_LINKER_BOILERPLATE
3455
# Check for any special shared library compilation flags.
3457
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3458
if test "$GCC" = no; then
3461
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3465
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3466
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3467
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3469
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3470
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3476
# Check to make sure the static flag actually works.
3478
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3479
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3480
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3482
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3485
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3486
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3487
AC_LIBTOOL_PROG_CC_C_O($1)
3488
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3489
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3490
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3491
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3492
AC_LIBTOOL_SYS_LIB_STRIP
3493
AC_LIBTOOL_DLOPEN_SELF($1)
3495
# Report which librarie types wil actually be built
3496
AC_MSG_CHECKING([if libtool supports shared libraries])
3497
AC_MSG_RESULT([$can_build_shared])
3499
AC_MSG_CHECKING([whether to build shared libraries])
3500
test "$can_build_shared" = "no" && enable_shared=no
3502
# On AIX, shared libraries and static libraries use the same namespace, and
3503
# are all built from PIC.
3506
test "$enable_shared" = yes && enable_static=no
3507
if test -n "$RANLIB"; then
3508
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3509
postinstall_cmds='$RANLIB $lib'
3514
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3515
test "$enable_shared" = yes && enable_static=no
3519
AC_MSG_RESULT([$enable_shared])
3521
AC_MSG_CHECKING([whether to build static libraries])
3522
# Make sure either enable_shared or enable_static is yes.
3523
test "$enable_shared" = yes || enable_static=yes
3524
AC_MSG_RESULT([$enable_static])
3526
AC_LIBTOOL_CONFIG($1)
3530
])# AC_LIBTOOL_LANG_C_CONFIG
3533
# AC_LIBTOOL_LANG_CXX_CONFIG
3534
# --------------------------
3535
# Ensure that the configuration vars for the C compiler are
3536
# suitably defined. Those variables are subsequently used by
3537
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3538
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3539
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3541
AC_REQUIRE([AC_PROG_CXX])
3542
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3544
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3545
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3546
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3547
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3548
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3549
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3550
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3551
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3552
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3553
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3554
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3555
_LT_AC_TAGVAR(module_cmds, $1)=
3556
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3557
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3558
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3559
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3560
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3561
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3563
# Dependencies to place before and after the object being linked:
3564
_LT_AC_TAGVAR(predep_objects, $1)=
3565
_LT_AC_TAGVAR(postdep_objects, $1)=
3566
_LT_AC_TAGVAR(predeps, $1)=
3567
_LT_AC_TAGVAR(postdeps, $1)=
3568
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3570
# Source file extension for C++ test sources.
3573
# Object file extension for compiled C++ test sources.
3575
_LT_AC_TAGVAR(objext, $1)=$objext
3577
# Code to be used in simple compile tests
3578
lt_simple_compile_test_code="int some_variable = 0;\n"
3580
# Code to be used in simple link tests
3581
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3583
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3586
# save warnings/boilerplate of simple test code
3587
_LT_COMPILER_BOILERPLATE
3588
_LT_LINKER_BOILERPLATE
3590
# Allow CC to be a program name with arguments.
3595
lt_save_with_gnu_ld=$with_gnu_ld
3596
lt_save_path_LD=$lt_cv_path_LD
3597
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3598
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3600
unset lt_cv_prog_gnu_ld
3602
if test -n "${lt_cv_path_LDCXX+set}"; then
3603
lt_cv_path_LD=$lt_cv_path_LDCXX
3607
test -z "${LDCXX+set}" || LD=$LDCXX
3610
_LT_AC_TAGVAR(compiler, $1)=$CC
3611
_LT_CC_BASENAME([$compiler])
3613
# We don't want -fno-exception wen compiling C++ code, so set the
3614
# no_builtin_flag separately
3615
if test "$GXX" = yes; then
3616
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3618
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3621
if test "$GXX" = yes; then
3622
# Set up default GNU C++ configuration
3626
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3627
# archiving commands below assume that GNU ld is being used.
3628
if test "$with_gnu_ld" = yes; then
3629
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3630
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3632
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3633
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3635
# If archive_cmds runs LD, not CC, wlarc should be empty
3636
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3637
# investigate it a little bit more. (MM)
3640
# ancient GNU ld didn't support --whole-archive et. al.
3641
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3642
grep 'no-whole-archive' > /dev/null; then
3643
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3645
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3651
# A generic and very simple default shared library creation
3652
# command for GNU C++ for the case where it uses the native
3653
# linker, instead of GNU ld. If possible, this setting should
3654
# overridden to take advantage of the native linker features on
3655
# the platform it is being used on.
3656
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3659
# Commands to make compiler produce verbose output that lists
3660
# what "hidden" libraries, object files and flags are used when
3661
# linking a shared library.
3662
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3670
# PORTME: fill in a description of your system's C++ link characteristics
3671
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3672
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3675
# FIXME: insert proper C++ library support
3676
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3679
if test "$host_cpu" = ia64; then
3680
# On IA64, the linker does run time linking by default, so we don't
3681
# have to do anything special.
3682
aix_use_runtimelinking=no
3683
exp_sym_flag='-Bexport'
3686
aix_use_runtimelinking=no
3688
# Test if we are trying to use run time linking or normal
3689
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3690
# need to do runtime linking.
3691
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3692
for ld_flag in $LDFLAGS; do
3695
aix_use_runtimelinking=yes
3702
exp_sym_flag='-bexport'
3703
no_entry_flag='-bnoentry'
3706
# When large executables or shared objects are built, AIX ld can
3707
# have problems creating the table of contents. If linking a library
3708
# or program results in "error TOC overflow" add -mminimal-toc to
3709
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3710
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3712
_LT_AC_TAGVAR(archive_cmds, $1)=''
3713
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3714
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3715
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3717
if test "$GXX" = yes; then
3718
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3719
# We only want to do this on AIX 4.2 and lower, the check
3720
# below for broken collect2 doesn't work under 4.3+
3721
collect2name=`${CC} -print-prog-name=collect2`
3722
if test -f "$collect2name" && \
3723
strings "$collect2name" | grep resolve_lib_name >/dev/null
3725
# We have reworked collect2
3726
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3728
# We have old collect2
3729
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3730
# It fails to find uninstalled libraries when the uninstalled
3731
# path is not listed in the libpath. Setting hardcode_minus_L
3732
# to unsupported forces relinking
3733
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3734
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3735
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3738
shared_flag='-shared'
3739
if test "$aix_use_runtimelinking" = yes; then
3740
shared_flag="$shared_flag "'${wl}-G'
3744
if test "$host_cpu" = ia64; then
3745
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3746
# chokes on -Wl,-G. The following line is correct:
3749
if test "$aix_use_runtimelinking" = yes; then
3750
shared_flag='${wl}-G'
3752
shared_flag='${wl}-bM:SRE'
3757
# It seems that -bexpall does not export symbols beginning with
3758
# underscore (_), so it is better to generate a list of symbols to export.
3759
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3760
if test "$aix_use_runtimelinking" = yes; then
3761
# Warning - without using the other runtime loading flags (-brtl),
3762
# -berok will link without error, but may produce a broken library.
3763
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3764
# Determine the default libpath from the value encoded in an empty executable.
3765
_LT_AC_SYS_LIBPATH_AIX
3766
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3768
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3770
if test "$host_cpu" = ia64; then
3771
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3772
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3773
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
3775
# Determine the default libpath from the value encoded in an empty executable.
3776
_LT_AC_SYS_LIBPATH_AIX
3777
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3778
# Warning - without using the other run time loading flags,
3779
# -berok will link without error, but may produce a broken library.
3780
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3781
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3782
# -bexpall does not export symbols beginning with underscore (_)
3783
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3784
# Exported symbols can be pulled into shared objects from archives
3785
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3786
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3787
# This is similar to how AIX traditionally builds it's shared libraries.
3788
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
3793
case $cc_basename in
3795
# FIXME: insert proper C++ library support
3796
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3802
cygwin* | mingw* | pw32*)
3803
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3804
# as there is no search path for DLLs.
3805
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3806
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3807
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3808
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3810
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3811
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3812
# If the export-symbols file already is a .def file (1st line
3813
# is EXPORTS), use it as is; otherwise, prepend...
3814
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3815
cp $export_symbols $output_objdir/$soname.def;
3817
echo EXPORTS > $output_objdir/$soname.def;
3818
cat $export_symbols >> $output_objdir/$soname.def;
3820
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3822
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3825
darwin* | rhapsody*)
3827
rhapsody* | darwin1.[[012]])
3828
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3831
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3832
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3834
case ${MACOSX_DEPLOYMENT_TARGET} in
3836
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3839
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3845
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3846
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3847
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3848
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3849
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3850
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3852
if test "$GXX" = yes ; then
3853
lt_int_apple_cc_single_mod=no
3854
output_verbose_link_cmd='echo'
3855
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3856
lt_int_apple_cc_single_mod=yes
3858
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3859
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3861
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -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'
3863
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3864
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3865
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3866
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3868
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
3870
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3872
case $cc_basename in
3874
output_verbose_link_cmd='echo'
3875
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3876
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3877
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3878
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3879
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3882
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3889
case $cc_basename in
3891
# FIXME: insert proper C++ library support
3892
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3895
# Green Hills C++ Compiler
3896
# FIXME: insert proper C++ library support
3897
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3900
# FIXME: insert proper C++ library support
3901
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3906
# C++ shared libraries reported to be fairly broken before switch to ELF
3907
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3910
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3912
freebsd* | kfreebsd*-gnu | dragonfly*)
3913
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3915
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3920
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3921
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3922
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3923
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3924
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3925
# but as the default
3926
# location of the library.
3928
case $cc_basename in
3930
# FIXME: insert proper C++ library support
3931
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3934
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3935
# Commands to make compiler produce verbose output that lists
3936
# what "hidden" libraries, object files and flags are used when
3937
# linking a shared library.
3939
# There doesn't appear to be a way to prevent this compiler from
3940
# explicitly linking system object files so we need to strip them
3941
# from the output so that they don't get included in the library
3943
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3946
if test "$GXX" = yes; then
3947
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3949
# FIXME: insert proper C++ library support
3950
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3956
if test $with_gnu_ld = no; then
3959
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3960
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3961
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3964
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3967
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3968
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3969
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3975
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3976
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3979
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3980
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3981
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3982
# but as the default
3983
# location of the library.
3986
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3987
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3988
# but as the default
3989
# location of the library.
3993
case $cc_basename in
3995
# FIXME: insert proper C++ library support
3996
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4001
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4004
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4007
# Commands to make compiler produce verbose output that lists
4008
# what "hidden" libraries, object files and flags are used when
4009
# linking a shared library.
4011
# There doesn't appear to be a way to prevent this compiler from
4012
# explicitly linking system object files so we need to strip them
4013
# from the output so that they don't get included in the library
4015
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4018
if test "$GXX" = yes; then
4019
if test $with_gnu_ld = no; then
4022
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4025
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4030
# FIXME: insert proper C++ library support
4031
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4037
case $cc_basename in
4040
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4042
# Archives containing C++ object files must be created using
4043
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4044
# necessary to make sure instantiated templates are included
4046
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4049
if test "$GXX" = yes; then
4050
if test "$with_gnu_ld" = no; then
4051
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4053
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4056
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4059
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4060
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4063
case $cc_basename in
4065
# Kuck and Associates, Inc. (KAI) C++ Compiler
4067
# KCC will only create a shared library if the output file
4068
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4069
# to its proper name (with version) after linking.
4070
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4071
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4072
# Commands to make compiler produce verbose output that lists
4073
# what "hidden" libraries, object files and flags are used when
4074
# linking a shared library.
4076
# There doesn't appear to be a way to prevent this compiler from
4077
# explicitly linking system object files so we need to strip them
4078
# from the output so that they don't get included in the library
4080
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4082
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4083
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4085
# Archives containing C++ object files must be created using
4086
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4087
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4092
# version 8.0 and above of icpc choke on multiply defined symbols
4093
# if we add $predep_objects and $postdep_objects, however 7.1 and
4094
# earlier do not add the objects themselves.
4095
case `$CC -V 2>&1` in
4097
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4098
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4100
*) # Version 8.0 or newer
4103
ia64*) tmp_idyn=' -i_dynamic';;
4105
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4106
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4109
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4110
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4111
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4112
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4115
# Portland Group C++ compiler
4116
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4117
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4119
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4120
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4121
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4125
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4126
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4128
runpath_var=LD_RUN_PATH
4129
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4130
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4132
# Commands to make compiler produce verbose output that lists
4133
# what "hidden" libraries, object files and flags are used when
4134
# linking a shared library.
4136
# There doesn't appear to be a way to prevent this compiler from
4137
# explicitly linking system object files so we need to strip them
4138
# from the output so that they don't get included in the library
4140
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4145
# FIXME: insert proper C++ library support
4146
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4149
# FIXME: insert proper C++ library support
4150
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4153
case $cc_basename in
4155
# FIXME: insert proper C++ library support
4156
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4159
# FIXME: insert proper C++ library support
4160
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4165
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4166
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4168
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4169
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4170
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4172
# Workaround some broken pre-1.5 toolchains
4173
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4176
# C++ shared libraries are fairly broken
4177
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4180
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4181
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4182
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4183
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4184
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4185
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4186
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4187
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4189
output_verbose_link_cmd='echo'
4192
case $cc_basename in
4194
# Kuck and Associates, Inc. (KAI) C++ Compiler
4196
# KCC will only create a shared library if the output file
4197
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4198
# to its proper name (with version) after linking.
4199
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4201
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4202
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4204
# Archives containing C++ object files must be created using
4205
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4206
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4210
# Rational C++ 2.4.1
4211
# FIXME: insert proper C++ library support
4212
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4215
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4216
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4218
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4219
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4221
# Commands to make compiler produce verbose output that lists
4222
# what "hidden" libraries, object files and flags are used when
4223
# linking a shared library.
4225
# There doesn't appear to be a way to prevent this compiler from
4226
# explicitly linking system object files so we need to strip them
4227
# from the output so that they don't get included in the library
4229
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4232
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4233
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4234
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4236
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4237
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4239
# Commands to make compiler produce verbose output that lists
4240
# what "hidden" libraries, object files and flags are used when
4241
# linking a shared library.
4242
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4245
# FIXME: insert proper C++ library support
4246
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4252
case $cc_basename in
4254
# Kuck and Associates, Inc. (KAI) C++ Compiler
4256
# KCC will only create a shared library if the output file
4257
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4258
# to its proper name (with version) after linking.
4259
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4261
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4262
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4264
# Archives containing C++ object files must be created using
4265
# the KAI C++ compiler.
4266
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4269
# Rational C++ 2.4.1
4270
# FIXME: insert proper C++ library support
4271
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4274
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4275
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4276
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4277
echo "-hidden">> $lib.exp~
4278
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4281
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4282
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4284
# Commands to make compiler produce verbose output that lists
4285
# what "hidden" libraries, object files and flags are used when
4286
# linking a shared library.
4288
# There doesn't appear to be a way to prevent this compiler from
4289
# explicitly linking system object files so we need to strip them
4290
# from the output so that they don't get included in the library
4292
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4295
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4296
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4297
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4299
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4300
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4302
# Commands to make compiler produce verbose output that lists
4303
# what "hidden" libraries, object files and flags are used when
4304
# linking a shared library.
4305
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4308
# FIXME: insert proper C++ library support
4309
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4315
# FIXME: insert proper C++ library support
4316
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4319
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4320
case $cc_basename in
4322
# FIXME: insert proper C++ library support
4323
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4326
# FIXME: insert proper C++ library support
4327
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4332
case $cc_basename in
4335
# FIXME: insert proper C++ library support
4336
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4340
# FIXME: insert proper C++ library support
4341
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4344
# FIXME: insert proper C++ library support
4345
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4350
case $cc_basename in
4352
# Sun C++ 4.2, 5.x and Centerline C++
4353
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4354
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4355
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4356
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4358
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4359
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4361
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4363
# The C++ compiler is used as linker so we must use $wl
4364
# flag to pass the commands to the underlying system
4365
# linker. We must also pass each convience library through
4366
# to the system linker between allextract/defaultextract.
4367
# The C++ compiler will combine linker options so we
4368
# cannot just pass the convience library names through
4370
# Supported since Solaris 2.6 (maybe 2.5.1?)
4371
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4374
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4376
# Commands to make compiler produce verbose output that lists
4377
# what "hidden" libraries, object files and flags are used when
4378
# linking a shared library.
4380
# There doesn't appear to be a way to prevent this compiler from
4381
# explicitly linking system object files so we need to strip them
4382
# from the output so that they don't get included in the library
4384
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4386
# Archives containing C++ object files must be created using
4387
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4388
# necessary to make sure instantiated templates are included
4390
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4393
# Green Hills C++ Compiler
4394
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4396
# The C++ compiler must be used to create the archive.
4397
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4400
# GNU C++ compiler with Solaris linker
4401
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4402
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4403
if $CC --version | grep -v '^2\.7' > /dev/null; then
4404
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4405
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4406
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4408
# Commands to make compiler produce verbose output that lists
4409
# what "hidden" libraries, object files and flags are used when
4410
# linking a shared library.
4411
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4413
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4415
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4416
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4417
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4419
# Commands to make compiler produce verbose output that lists
4420
# what "hidden" libraries, object files and flags are used when
4421
# linking a shared library.
4422
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4425
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4430
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4431
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4434
case $cc_basename in
4436
# NonStop-UX NCC 3.20
4437
# FIXME: insert proper C++ library support
4438
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4441
# FIXME: insert proper C++ library support
4442
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4447
# FIXME: insert proper C++ library support
4448
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4451
# FIXME: insert proper C++ library support
4452
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4455
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4456
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4458
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4459
_LT_AC_TAGVAR(LD, $1)="$LD"
4461
AC_LIBTOOL_POSTDEP_PREDEP($1)
4462
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4463
AC_LIBTOOL_PROG_CC_C_O($1)
4464
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4465
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4466
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4467
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4468
AC_LIBTOOL_SYS_LIB_STRIP
4469
AC_LIBTOOL_DLOPEN_SELF($1)
4471
AC_LIBTOOL_CONFIG($1)
4478
with_gnu_ldcxx=$with_gnu_ld
4479
with_gnu_ld=$lt_save_with_gnu_ld
4480
lt_cv_path_LDCXX=$lt_cv_path_LD
4481
lt_cv_path_LD=$lt_save_path_LD
4482
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4483
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4484
])# AC_LIBTOOL_LANG_CXX_CONFIG
4486
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4487
# ------------------------
4488
# Figure out "hidden" library dependencies from verbose
4489
# compiler output when linking a shared library.
4490
# Parse the compiler output and extract the necessary
4491
# objects, libraries and library flags.
4492
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4493
dnl we can't use the lt_simple_compile_test_code here,
4494
dnl because it contains code intended for an executable,
4495
dnl not a library. It's possible we should let each
4496
dnl tag define a new lt_????_link_test_code variable,
4497
dnl but it's only used here...
4498
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4500
void foo (void) { a = 0; }
4502
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4506
Foo (void) { a = 0; }
4511
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4519
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4522
public void bar (void) {
4528
dnl Parse the compiler output and extract the necessary
4529
dnl objects, libraries and library flags.
4530
if AC_TRY_EVAL(ac_compile); then
4531
# Parse the compiler output and extract the necessary
4532
# objects, libraries and library flags.
4534
# Sentinel used to keep track of whether or not we are before
4535
# the conftest object file.
4536
pre_test_object_deps_done=no
4538
# The `*' in the case matches for architectures that use `case' in
4539
# $output_verbose_cmd can trigger glob expansion during the loop
4540
# eval without this substitution.
4541
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4543
for p in `eval $output_verbose_link_cmd`; do
4547
# Some compilers place space between "-{L,R}" and the path.
4550
|| test $p = "-R"; then
4557
if test "$pre_test_object_deps_done" = no; then
4560
# Internal compiler library paths should come after those
4561
# provided the user. The postdeps already come after the
4562
# user supplied libs so there is no need to process them.
4563
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4564
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4566
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4569
# The "-l" case would never come before the object being
4570
# linked, so don't bother handling this case.
4573
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4574
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4576
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4582
# This assumes that the test object file only shows up
4583
# once in the compiler output.
4584
if test "$p" = "conftest.$objext"; then
4585
pre_test_object_deps_done=yes
4589
if test "$pre_test_object_deps_done" = no; then
4590
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4591
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4593
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4596
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4597
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4599
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4604
*) ;; # Ignore the rest.
4612
echo "libtool.m4: error: problem compiling $1 test program"
4615
$rm -f confest.$objext
4617
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4618
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4620
])# AC_LIBTOOL_POSTDEP_PREDEP
4622
# AC_LIBTOOL_LANG_F77_CONFIG
4623
# ------------------------
4624
# Ensure that the configuration vars for the C compiler are
4625
# suitably defined. Those variables are subsequently used by
4626
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4627
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4628
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4629
[AC_REQUIRE([AC_PROG_F77])
4630
AC_LANG_PUSH(Fortran 77)
4632
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4633
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4634
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4635
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4636
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4637
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4638
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4639
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4640
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4641
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4642
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4643
_LT_AC_TAGVAR(module_cmds, $1)=
4644
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4645
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4646
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4647
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4648
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4649
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4651
# Source file extension for f77 test sources.
4654
# Object file extension for compiled f77 test sources.
4656
_LT_AC_TAGVAR(objext, $1)=$objext
4658
# Code to be used in simple compile tests
4659
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4661
# Code to be used in simple link tests
4662
lt_simple_link_test_code=" program t\n end\n"
4664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4667
# save warnings/boilerplate of simple test code
4668
_LT_COMPILER_BOILERPLATE
4669
_LT_LINKER_BOILERPLATE
4671
# Allow CC to be a program name with arguments.
4675
_LT_AC_TAGVAR(compiler, $1)=$CC
4676
_LT_CC_BASENAME([$compiler])
4678
AC_MSG_CHECKING([if libtool supports shared libraries])
4679
AC_MSG_RESULT([$can_build_shared])
4681
AC_MSG_CHECKING([whether to build shared libraries])
4682
test "$can_build_shared" = "no" && enable_shared=no
4684
# On AIX, shared libraries and static libraries use the same namespace, and
4685
# are all built from PIC.
4688
test "$enable_shared" = yes && enable_static=no
4689
if test -n "$RANLIB"; then
4690
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4691
postinstall_cmds='$RANLIB $lib'
4695
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4696
test "$enable_shared" = yes && enable_static=no
4700
AC_MSG_RESULT([$enable_shared])
4702
AC_MSG_CHECKING([whether to build static libraries])
4703
# Make sure either enable_shared or enable_static is yes.
4704
test "$enable_shared" = yes || enable_static=yes
4705
AC_MSG_RESULT([$enable_static])
4707
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4709
_LT_AC_TAGVAR(GCC, $1)="$G77"
4710
_LT_AC_TAGVAR(LD, $1)="$LD"
4712
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4713
AC_LIBTOOL_PROG_CC_C_O($1)
4714
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4715
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4716
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4717
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4718
AC_LIBTOOL_SYS_LIB_STRIP
4721
AC_LIBTOOL_CONFIG($1)
4725
])# AC_LIBTOOL_LANG_F77_CONFIG
4728
# AC_LIBTOOL_LANG_GCJ_CONFIG
4729
# --------------------------
4730
# Ensure that the configuration vars for the C compiler are
4731
# suitably defined. Those variables are subsequently used by
4732
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4733
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4734
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4737
# Source file extension for Java test sources.
4740
# Object file extension for compiled Java test sources.
4742
_LT_AC_TAGVAR(objext, $1)=$objext
4744
# Code to be used in simple compile tests
4745
lt_simple_compile_test_code="class foo {}\n"
4747
# Code to be used in simple link tests
4748
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4750
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4753
# save warnings/boilerplate of simple test code
4754
_LT_COMPILER_BOILERPLATE
4755
_LT_LINKER_BOILERPLATE
4757
# Allow CC to be a program name with arguments.
4761
_LT_AC_TAGVAR(compiler, $1)=$CC
4762
_LT_CC_BASENAME([$compiler])
4764
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4765
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4767
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4769
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4770
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4771
AC_LIBTOOL_PROG_CC_C_O($1)
4772
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4773
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4774
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4775
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4776
AC_LIBTOOL_SYS_LIB_STRIP
4777
AC_LIBTOOL_DLOPEN_SELF($1)
4779
AC_LIBTOOL_CONFIG($1)
4783
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4786
# AC_LIBTOOL_LANG_RC_CONFIG
4787
# --------------------------
4788
# Ensure that the configuration vars for the Windows resource compiler are
4789
# suitably defined. Those variables are subsequently used by
4790
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4791
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4792
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4795
# Source file extension for RC test sources.
4798
# Object file extension for compiled RC test sources.
4800
_LT_AC_TAGVAR(objext, $1)=$objext
4802
# Code to be used in simple compile tests
4803
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4805
# Code to be used in simple link tests
4806
lt_simple_link_test_code="$lt_simple_compile_test_code"
4808
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4811
# save warnings/boilerplate of simple test code
4812
_LT_COMPILER_BOILERPLATE
4813
_LT_LINKER_BOILERPLATE
4815
# Allow CC to be a program name with arguments.
4819
_LT_AC_TAGVAR(compiler, $1)=$CC
4820
_LT_CC_BASENAME([$compiler])
4821
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4823
AC_LIBTOOL_CONFIG($1)
4827
])# AC_LIBTOOL_LANG_RC_CONFIG
4830
# AC_LIBTOOL_CONFIG([TAGNAME])
4831
# ----------------------------
4832
# If TAGNAME is not passed, then create an initial libtool script
4833
# with a default configuration from the untagged config vars. Otherwise
4834
# add code to config.status for appending the configuration named by
4835
# TAGNAME from the matching tagged config vars.
4836
AC_DEFUN([AC_LIBTOOL_CONFIG],
4837
[# The else clause should only fire when bootstrapping the
3353
4838
# libtool distribution, otherwise you forgot to ship ltmain.sh
3354
4839
# with your package, and you will get complaints that there are
3355
4840
# no rules to generate ltmain.sh.
3356
4841
if test -f "$ltmain"; then
3359
# If there is no Makefile yet, we rely on a make rule to execute
3360
# `config.status --recheck' to rerun these tests and create the
3361
# libtool script then.
3362
test -f Makefile && make "$ltmain"
3365
if test -f "$ltmain"; then
3366
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
3369
echo creating $ofile
4842
# See if we are running on zsh, and set the options which allow our commands through
4843
# without removal of \ escapes.
4844
if test -n "${ZSH_VERSION+set}" ; then
4845
setopt NO_GLOB_SUBST
3371
4847
# Now quote all the things that may contain metacharacters while being
3372
4848
# careful not to overquote the AC_SUBSTed values. We take copies of the
3373
4849
# variables and quote the copies for generation of the libtool script.
3374
for var in echo old_CC old_CFLAGS \
3375
AR AR_FLAGS CC LD LN_S NM SHELL \
3376
reload_flag reload_cmds wl \
3377
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
3378
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
3379
library_names_spec soname_spec \
3380
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
3381
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
3382
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
3383
old_striplib striplib file_magic_cmd export_symbols_cmds \
3384
deplibs_check_method allow_undefined_flag no_undefined_flag \
3385
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
3386
global_symbol_to_c_name_address \
3387
hardcode_libdir_flag_spec hardcode_libdir_separator \
4850
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4852
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4853
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4854
deplibs_check_method reload_flag reload_cmds need_locks \
4855
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4856
lt_cv_sys_global_symbol_to_c_name_address \
3388
4857
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3389
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4858
old_postinstall_cmds old_postuninstall_cmds \
4859
_LT_AC_TAGVAR(compiler, $1) \
4860
_LT_AC_TAGVAR(CC, $1) \
4861
_LT_AC_TAGVAR(LD, $1) \
4862
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4863
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4864
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4865
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4866
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4867
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4868
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4869
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4870
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4871
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4872
_LT_AC_TAGVAR(predep_objects, $1) \
4873
_LT_AC_TAGVAR(postdep_objects, $1) \
4874
_LT_AC_TAGVAR(predeps, $1) \
4875
_LT_AC_TAGVAR(postdeps, $1) \
4876
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4877
_LT_AC_TAGVAR(archive_cmds, $1) \
4878
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4879
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4880
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4881
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4882
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4883
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4884
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4885
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4886
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4887
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4888
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4889
_LT_AC_TAGVAR(module_cmds, $1) \
4890
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4891
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4892
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4893
_LT_AC_TAGVAR(include_expsyms, $1); do
3392
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4896
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4897
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4898
_LT_AC_TAGVAR(archive_cmds, $1) | \
4899
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4900
_LT_AC_TAGVAR(module_cmds, $1) | \
4901
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4902
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4903
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4904
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4905
postinstall_cmds | postuninstall_cmds | \
3393
4906
old_postinstall_cmds | old_postuninstall_cmds | \
3394
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
3395
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
3396
postinstall_cmds | postuninstall_cmds | \
3397
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4907
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3398
4908
# Double-quote double-evaled strings.
3399
4909
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3712
cygwin* | mingw* | pw32* | os2*)
3713
cat <<'EOF' >> "${ofile}T"
3714
# This is a source program that is used to create dlls on Windows
3715
# Don't remove nor modify the starting and closing comments
5299
# We use sed instead of cat because bash on DJGPP gets confused if
5300
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5301
# text mode, it properly converts lines to CR/LF. This bash problem
5302
# is reportedly fixed, but why not run on old versions too?
5303
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5305
mv -f "$cfgfile" "$ofile" || \
5306
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5310
# If there is no Makefile yet, we rely on a make rule to execute
5311
# `config.status --recheck' to rerun these tests and create the
5312
# libtool script then.
5313
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5314
if test -f "$ltmain_in"; then
5315
test -f Makefile && make "$ltmain"
5318
])# AC_LIBTOOL_CONFIG
5321
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5322
# -------------------------------------------
5323
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5324
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5326
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5328
if test "$GCC" = yes; then
5329
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5331
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5332
lt_cv_prog_compiler_rtti_exceptions,
5333
[-fno-rtti -fno-exceptions], [],
5334
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5336
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5339
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5340
# ---------------------------------
5341
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5342
[AC_REQUIRE([AC_CANONICAL_HOST])
5343
AC_REQUIRE([AC_PROG_NM])
5344
AC_REQUIRE([AC_OBJEXT])
5345
# Check for command to grab the raw symbol name followed by C symbol from nm.
5346
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5347
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5349
# These are sane defaults that work on at least a few old systems.
5350
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5352
# Character class describing NM global symbol codes.
5353
symcode='[[BCDEGRST]]'
5355
# Regexp to match symbols that can be accessed directly from C.
5356
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5358
# Transform an extracted symbol line into a proper C declaration
5359
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5361
# Transform an extracted symbol line into symbol name and symbol address
5362
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5364
# Define system-specific variables.
5369
cygwin* | mingw* | pw32*)
5370
symcode='[[ABCDGISTW]]'
5372
hpux*) # Its linker distinguishes data from code symbols
5373
if test "$host_cpu" = ia64; then
5374
symcode='[[ABCDEGRST]]'
5376
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5377
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5380
if test "$host_cpu" = ia64; then
5381
symcode='[[ABCDGIRSTW]]'
5382
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5383
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5387
symcode='[[BCDEGRST]]'
5390
symcode='[[BCDEGQRST]]'
5396
symcode='[[DFNSTU]]'
5400
# Handle CRLF in mingw tool chain
5404
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5408
# If we're using GNU nm, then use its standard symbol codes.
5409
case `$NM -V 2>&1` in
5410
*GNU* | *'with BFD'*)
5411
symcode='[[ABCDGIRSTW]]' ;;
5414
# Try without a prefix undercore, then with it.
5415
for ac_symprfx in "" "_"; do
5417
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5418
symxfrm="\\1 $ac_symprfx\\2 \\2"
5420
# Write the raw and C identifiers.
5421
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5423
# Check to see that the pipe works correctly.
5427
cat > conftest.$ac_ext <<EOF
5432
void nm_test_func(){}
5436
int main(){nm_test_var='a';nm_test_func();return(0);}
5439
if AC_TRY_EVAL(ac_compile); then
5440
# Now try to grab the symbols.
5442
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5443
# Try sorting and uniquifying the output.
5444
if sort "$nlist" | uniq > "$nlist"T; then
5445
mv -f "$nlist"T "$nlist"
5450
# Make sure that we snagged all the symbols we need.
5451
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5452
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5453
cat <<EOF > conftest.$ac_ext
5459
# Now generate the symbol file.
5460
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5462
cat <<EOF >> conftest.$ac_ext
5463
#if defined (__STDC__) && __STDC__
5464
# define lt_ptr_t void *
5466
# define lt_ptr_t char *
5470
/* The mapping between symbol names and symbols. */
5475
lt_preloaded_symbols[[]] =
5478
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5479
cat <<\EOF >> conftest.$ac_ext
5487
# Now try linking the two files.
5488
mv conftest.$ac_objext conftstm.$ac_objext
5489
lt_save_LIBS="$LIBS"
5490
lt_save_CFLAGS="$CFLAGS"
5491
LIBS="conftstm.$ac_objext"
5492
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5493
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5496
LIBS="$lt_save_LIBS"
5497
CFLAGS="$lt_save_CFLAGS"
5499
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5502
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5505
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5508
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5509
cat conftest.$ac_ext >&5
5511
rm -f conftest* conftst*
5513
# Do not use the global_symbol_pipe unless it works.
5514
if test "$pipe_works" = yes; then
5517
lt_cv_sys_global_symbol_pipe=
5521
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5522
lt_cv_sys_global_symbol_to_cdecl=
5524
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5525
AC_MSG_RESULT(failed)
5529
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5532
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5533
# ---------------------------------------
5534
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5535
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5536
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5537
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5539
AC_MSG_CHECKING([for $compiler option to produce PIC])
5541
# C++ specific cases for pic, static, wl, etc.
5542
if test "$GXX" = yes; then
5543
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5544
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5548
# All AIX code is PIC.
5549
if test "$host_cpu" = ia64; then
5550
# AIX 5 now supports IA64 processor
5551
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5555
# FIXME: we need at least 68020 code to build shared libraries, but
5556
# adding the `-m68020' flag to GCC prevents building anything better,
5558
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5560
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5561
# PIC is the default for these OSes.
5563
mingw* | os2* | pw32*)
5564
# This hack is so that the source file can tell whether it is being
5565
# built for inclusion in a dll (and should export symbols for example).
5566
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5568
darwin* | rhapsody*)
5569
# PIC is the default on this platform
5570
# Common symbols not allowed in MH_DYLIB files
5571
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5574
# DJGPP does not support shared libraries at all
5575
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5578
if test -d /usr/nec; then
5579
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5583
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5589
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5594
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5600
# All AIX code is PIC.
5601
if test "$host_cpu" = ia64; then
5602
# AIX 5 now supports IA64 processor
5603
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5605
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5609
case $cc_basename in
5611
# Green Hills C++ Compiler
5612
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5617
# PIC is the default on this platform
5618
# Common symbols not allowed in MH_DYLIB files
5619
case $cc_basename in
5621
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5622
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5627
case $cc_basename in
5629
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5632
# Green Hills C++ Compiler
5633
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5639
freebsd* | kfreebsd*-gnu | dragonfly*)
5640
# FreeBSD uses GNU C++
5642
hpux9* | hpux10* | hpux11*)
5643
case $cc_basename in
5645
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5646
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5647
if test "$host_cpu" != ia64; then
5648
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5652
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5653
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5659
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5667
irix5* | irix6* | nonstopux*)
5668
case $cc_basename in
5670
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5671
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5672
# CC pic flag -KPIC is the default.
5679
case $cc_basename in
5682
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5683
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5687
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5688
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5689
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5692
# Portland Group C++ compiler.
5693
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5694
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5695
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5699
# Make sure the PIC flag is empty. It appears that all Alpha
5700
# Linux and Compaq Tru64 Unix objects are PIC.
5701
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5702
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5713
case $cc_basename in
5715
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5723
osf3* | osf4* | osf5*)
5724
case $cc_basename in
5726
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5729
# Rational C++ 2.4.1
5730
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5733
# Digital/Compaq C++
5734
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5735
# Make sure the PIC flag is empty. It appears that all Alpha
5736
# Linux and Compaq Tru64 Unix objects are PIC.
5737
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5738
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5747
case $cc_basename in
5749
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5756
case $cc_basename in
5758
# Sun C++ 4.2, 5.x and Centerline C++
5759
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5760
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5761
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5764
# Green Hills C++ Compiler
5765
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5772
case $cc_basename in
5775
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5776
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5780
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5787
case $cc_basename in
5789
# NonStop-UX NCC 3.20
5790
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5801
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5807
if test "$GCC" = yes; then
5808
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5809
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5813
# All AIX code is PIC.
5814
if test "$host_cpu" = ia64; then
5815
# AIX 5 now supports IA64 processor
5816
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5821
# FIXME: we need at least 68020 code to build shared libraries, but
5822
# adding the `-m68020' flag to GCC prevents building anything better,
5824
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5827
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5828
# PIC is the default for these OSes.
5831
mingw* | pw32* | os2*)
5832
# This hack is so that the source file can tell whether it is being
5833
# built for inclusion in a dll (and should export symbols for example).
5834
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5837
darwin* | rhapsody*)
5838
# PIC is the default on this platform
5839
# Common symbols not allowed in MH_DYLIB files
5840
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5844
# Just because we use GCC doesn't mean we suddenly get shared libraries
5845
# on systems that don't support them.
5846
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5851
if test -d /usr/nec; then
5852
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5857
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5864
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5870
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5874
# PORTME Check for flag to pass linker flags through the system compiler.
5877
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5878
if test "$host_cpu" = ia64; then
5879
# AIX 5 now supports IA64 processor
5880
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5882
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5886
# PIC is the default on this platform
5887
# Common symbols not allowed in MH_DYLIB files
5888
case $cc_basename in
5890
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5891
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5896
mingw* | pw32* | os2*)
5897
# This hack is so that the source file can tell whether it is being
5898
# built for inclusion in a dll (and should export symbols for example).
5899
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5902
hpux9* | hpux10* | hpux11*)
5903
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5904
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5911
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5914
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5915
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5918
irix5* | irix6* | nonstopux*)
5919
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5920
# PIC (with -KPIC) is the default.
5921
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5925
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5926
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5930
case $cc_basename in
5932
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5933
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5934
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5936
pgcc* | pgf77* | pgf90*)
5937
# Portland Group compilers (*not* the Pentium gcc compiler,
5938
# which looks to be a dead project)
5939
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5940
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5941
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5944
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5945
# All Alpha code is PIC.
5946
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5951
osf3* | osf4* | osf5*)
5952
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5953
# All OSF/1 code is PIC.
5954
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5958
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5959
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5963
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5964
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5965
case $cc_basename in
5967
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5969
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5974
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5975
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5976
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5979
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5980
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5981
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5982
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5986
if test -d /usr/nec ;then
5987
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5988
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5993
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5994
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5998
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5999
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6003
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6008
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6011
# Check to make sure the PIC flag actually works.
6013
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6014
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6015
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6016
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6017
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6019
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6021
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6022
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6025
# For platforms which do not support PIC, -DPIC is meaningless:
6027
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6030
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6036
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6037
# ------------------------------------
6038
# See if the linker supports building shared libraries.
6039
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6040
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6042
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6045
# If we're using GNU nm, then we don't want the "-C" option.
6046
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6047
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6048
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6050
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6054
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6057
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6060
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6065
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6066
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6067
_LT_AC_TAGVAR(archive_cmds, $1)=
6068
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6069
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6070
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6071
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6072
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6073
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6074
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6075
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6076
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6077
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6078
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6079
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6080
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6081
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6082
_LT_AC_TAGVAR(module_cmds, $1)=
6083
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6084
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6085
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6086
# include_expsyms should be a list of space-separated symbols to be *always*
6087
# included in the symbol list
6088
_LT_AC_TAGVAR(include_expsyms, $1)=
6089
# exclude_expsyms can be an extended regexp of symbols to exclude
6090
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6091
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6092
# as well as any symbol that contains `d'.
6093
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6094
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6095
# platforms (ab)use it in PIC code, but their linkers get confused if
6096
# the symbol is explicitly referenced. Since portable code cannot
6097
# rely on this symbol name, it's probably fine to never include it in
6098
# preloaded symbol tables.
6099
extract_expsyms_cmds=
6100
# Just being paranoid about ensuring that cc_basename is set.
6101
_LT_CC_BASENAME([$compiler])
6103
cygwin* | mingw* | pw32*)
6104
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6105
# When not using gcc, we currently assume that we are using
6106
# Microsoft Visual C++.
6107
if test "$GCC" != yes; then
6116
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6117
if test "$with_gnu_ld" = yes; then
6118
# If archive_cmds runs LD, not CC, wlarc should be empty
6121
# Set some defaults for GNU ld with shared library support. These
6122
# are reset later if shared libraries are not supported. Putting them
6123
# here allows them to be overridden if necessary.
6124
runpath_var=LD_RUN_PATH
6125
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6126
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6127
# ancient GNU ld didn't support --whole-archive et. al.
6128
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6129
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6131
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6133
supports_anon_versioning=no
6134
case `$LD -v 2>/dev/null` in
6135
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6136
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6137
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6138
*\ 2.11.*) ;; # other 2.11 versions
6139
*) supports_anon_versioning=yes ;;
6142
# See if GNU ld supports shared libraries.
6144
aix3* | aix4* | aix5*)
6145
# On AIX/PPC, the GNU linker is very broken
6146
if test "$host_cpu" != ia64; then
6147
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6150
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6151
*** to be unable to reliably create shared libraries on AIX.
6152
*** Therefore, libtool is disabling shared libraries support. If you
6153
*** really care for shared libraries, you may want to modify your PATH
6154
*** so that a non-GNU linker is found, and then restart.
6161
_LT_AC_TAGVAR(archive_cmds, $1)='$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)'
6162
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6163
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6165
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6166
# that the semantics of dynamic libraries on AmigaOS, at least up
6167
# to version 4, is to share data among multiple programs linked
6168
# with the same dynamic library. Since this doesn't match the
6169
# behavior of shared libraries on other platforms, we can't use
6171
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6175
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6176
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6177
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6178
# support --undefined. This deserves some investigation. FIXME
6179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6181
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6185
cygwin* | mingw* | pw32*)
6186
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6187
# as there is no search path for DLLs.
6188
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6189
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6190
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6191
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6192
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6194
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6195
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6196
# If the export-symbols file already is a .def file (1st line
6197
# is EXPORTS), use it as is; otherwise, prepend...
6198
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6199
cp $export_symbols $output_objdir/$soname.def;
6201
echo EXPORTS > $output_objdir/$soname.def;
6202
cat $export_symbols >> $output_objdir/$soname.def;
6204
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6206
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6211
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6213
case $cc_basename,$host_cpu in
6214
pgcc*) # Portland Group C compiler
6215
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6217
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6218
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6219
tmp_addflag=' -fpic -Mnomain' ;;
6220
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6221
tmp_addflag=' -i_dynamic' ;;
6222
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6223
tmp_addflag=' -i_dynamic -nofor_main' ;;
6224
ifc* | ifort*) # Intel Fortran compiler
6225
tmp_addflag=' -nofor_main' ;;
6227
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6229
if test $supports_anon_versioning = yes; then
6230
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6231
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6232
$echo "local: *; };" >> $output_objdir/$libname.ver~
6233
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6236
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6241
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6242
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6245
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6246
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6251
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6252
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6255
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6256
*** create shared libraries on Solaris systems. Therefore, libtool
6257
*** is disabling shared libraries support. We urge you to upgrade GNU
6258
*** binutils to release 2.9.1 or newer. Another option is to modify
6259
*** your PATH or compiler configuration so that the native linker is
6260
*** used, and then restart.
6263
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6264
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6265
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6267
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6272
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6274
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6275
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6279
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6280
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6281
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6283
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6288
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6290
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6291
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6292
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6295
# PORTME fill in a description of your system's linker (not GNU ld)
6298
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6299
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6300
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6301
# Note: this linker hardcodes the directories in LIBPATH if there
6302
# are no directories specified by -L.
6303
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6304
if test "$GCC" = yes && test -z "$link_static_flag"; then
6305
# Neither direct hardcoding nor static linking is supported with a
6307
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6312
if test "$host_cpu" = ia64; then
6313
# On IA64, the linker does run time linking by default, so we don't
6314
# have to do anything special.
6315
aix_use_runtimelinking=no
6316
exp_sym_flag='-Bexport'
6319
# If we're using GNU nm, then we don't want the "-C" option.
6320
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6321
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6322
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6324
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6326
aix_use_runtimelinking=no
6328
# Test if we are trying to use run time linking or normal
6329
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6330
# need to do runtime linking.
6331
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6332
for ld_flag in $LDFLAGS; do
6333
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6334
aix_use_runtimelinking=yes
6340
exp_sym_flag='-bexport'
6341
no_entry_flag='-bnoentry'
6344
# When large executables or shared objects are built, AIX ld can
6345
# have problems creating the table of contents. If linking a library
6346
# or program results in "error TOC overflow" add -mminimal-toc to
6347
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6348
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6350
_LT_AC_TAGVAR(archive_cmds, $1)=''
6351
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6352
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6353
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6355
if test "$GCC" = yes; then
6356
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6357
# We only want to do this on AIX 4.2 and lower, the check
6358
# below for broken collect2 doesn't work under 4.3+
6359
collect2name=`${CC} -print-prog-name=collect2`
6360
if test -f "$collect2name" && \
6361
strings "$collect2name" | grep resolve_lib_name >/dev/null
6363
# We have reworked collect2
6364
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6366
# We have old collect2
6367
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6368
# It fails to find uninstalled libraries when the uninstalled
6369
# path is not listed in the libpath. Setting hardcode_minus_L
6370
# to unsupported forces relinking
6371
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6372
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6373
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6376
shared_flag='-shared'
6377
if test "$aix_use_runtimelinking" = yes; then
6378
shared_flag="$shared_flag "'${wl}-G'
6382
if test "$host_cpu" = ia64; then
6383
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6384
# chokes on -Wl,-G. The following line is correct:
6387
if test "$aix_use_runtimelinking" = yes; then
6388
shared_flag='${wl}-G'
6390
shared_flag='${wl}-bM:SRE'
6395
# It seems that -bexpall does not export symbols beginning with
6396
# underscore (_), so it is better to generate a list of symbols to export.
6397
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6398
if test "$aix_use_runtimelinking" = yes; then
6399
# Warning - without using the other runtime loading flags (-brtl),
6400
# -berok will link without error, but may produce a broken library.
6401
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6402
# Determine the default libpath from the value encoded in an empty executable.
6403
_LT_AC_SYS_LIBPATH_AIX
6404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6405
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6407
if test "$host_cpu" = ia64; then
6408
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6409
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6410
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
6412
# Determine the default libpath from the value encoded in an empty executable.
6413
_LT_AC_SYS_LIBPATH_AIX
6414
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6415
# Warning - without using the other run time loading flags,
6416
# -berok will link without error, but may produce a broken library.
6417
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6418
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6419
# -bexpall does not export symbols beginning with underscore (_)
6420
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6421
# Exported symbols can be pulled into shared objects from archives
6422
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6423
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6424
# This is similar to how AIX traditionally builds it's shared libraries.
6425
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
6431
_LT_AC_TAGVAR(archive_cmds, $1)='$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)'
6432
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6433
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6434
# see comment about different semantics on the GNU ld section
6435
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6439
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6442
cygwin* | mingw* | pw32*)
6443
# When not using gcc, we currently assume that we are using
6444
# Microsoft Visual C++.
6445
# hardcode_libdir_flag_spec is actually meaningless, as there is
6446
# no search path for DLLs.
6447
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6448
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6449
# Tell ltmain to make .lib files, not .a files.
6451
# Tell ltmain to make .dll files, not .so files.
6453
# FIXME: Setting linknames here is a bad hack.
6454
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6455
# The linker will automatically build a .lib file if we build a DLL.
6456
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6457
# FIXME: Should let the user specify the lib program.
6458
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6459
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6460
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6463
darwin* | rhapsody*)
6465
rhapsody* | darwin1.[[012]])
6466
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6469
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6470
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6472
case ${MACOSX_DEPLOYMENT_TARGET} in
6474
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6477
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6483
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6484
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6485
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6486
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6487
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6488
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6489
if test "$GCC" = yes ; then
6490
output_verbose_link_cmd='echo'
6491
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6492
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6493
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6494
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6495
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6497
case $cc_basename in
6499
output_verbose_link_cmd='echo'
6500
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6501
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6502
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6503
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6504
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6507
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6514
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6515
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6516
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6520
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6523
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6524
# support. Future versions do this automatically, but an explicit c++rt0.o
6525
# does not break anything, and helps significantly (at the cost of a little
6528
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6529
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6530
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6531
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6534
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6536
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6537
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6538
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6539
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6542
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6543
freebsd* | kfreebsd*-gnu | dragonfly*)
6544
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6545
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6546
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6547
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6551
if test "$GCC" = yes; then
6552
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6554
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6556
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6557
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6558
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6560
# hardcode_minus_L: Not really in the search PATH,
6561
# but as the default location of the library.
6562
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6563
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6567
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6570
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6573
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6579
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6582
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6586
if test "$with_gnu_ld" = no; then
6589
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6590
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6591
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6592
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6593
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6596
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6597
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6598
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6600
# hardcode_minus_L: Not really in the search PATH,
6601
# but as the default location of the library.
6602
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6605
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6606
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6607
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6608
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6610
# hardcode_minus_L: Not really in the search PATH,
6611
# but as the default location of the library.
6612
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6618
irix5* | irix6* | nonstopux*)
6619
if test "$GCC" = yes; then
6620
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6622
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6623
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6625
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6626
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6627
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6631
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6632
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6634
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6636
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6637
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6638
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6642
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6643
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6644
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6645
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6646
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6650
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6651
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6652
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6653
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6654
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6655
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6656
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6659
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6660
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6661
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6664
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6665
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6672
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6673
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6674
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6675
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6676
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6680
if test "$GCC" = yes; then
6681
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6682
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6684
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6685
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6687
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6688
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6691
osf4* | osf5*) # as osf3* with the addition of -msym flag
6692
if test "$GCC" = yes; then
6693
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6694
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6695
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6697
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6698
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6699
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6700
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6702
# Both c and cxx compiler support -rpath directly
6703
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6705
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6709
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6710
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6711
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6712
runpath_var=LD_RUN_PATH
6713
hardcode_runpath_var=yes
6717
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6718
if test "$GCC" = yes; then
6720
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6721
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6722
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6725
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6726
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6727
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6729
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6730
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6732
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6734
# The compiler driver will combine linker options so we
6735
# cannot just pass the convience library names through
6736
# without $wl, iff we do not link with $LD.
6737
# Luckily, gcc supports the same syntax we need for Sun Studio.
6738
# Supported since Solaris 2.6 (maybe 2.5.1?)
6741
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6743
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6746
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6750
if test "x$host_vendor" = xsequent; then
6751
# Use $CC to link under sequent, because it throws in some extra .o
6752
# files that make .init and .fini sections work.
6753
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6755
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6757
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6758
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6759
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6760
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6764
case $host_vendor in
6766
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6767
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6770
## LD is ld it makes a PLAMLIB
6771
## CC just makes a GrossModule.
6772
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6773
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6774
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6777
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6778
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6781
runpath_var='LD_RUN_PATH'
6782
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6786
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6787
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6788
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6792
if test -d /usr/nec; then
6793
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6794
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6795
runpath_var=LD_RUN_PATH
6796
hardcode_runpath_var=yes
6797
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6802
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6803
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6804
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6805
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6806
hardcode_runpath_var=yes
6807
runpath_var=LD_RUN_PATH
6810
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6811
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6812
if test "$GCC" = yes; then
6813
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6815
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6817
runpath_var='LD_RUN_PATH'
6818
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6822
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6823
# $CC -shared without GNU ld will not create a library from C++
6824
# object files and a static libstdc++, better avoid it by now
6825
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6826
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6827
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6828
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6829
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6830
runpath_var='LD_RUN_PATH'
6834
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6835
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6836
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6840
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6845
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6846
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6848
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6849
if test "$GCC" = yes; then
6850
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6854
# Do we need to explicitly link libc?
6856
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6858
# Assume -lc should be added
6859
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6861
if test "$enable_shared" = yes && test "$GCC" = yes; then
6862
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6864
# FIXME: we may have to deal with multi-command sequences.
6867
# Test whether the compiler implicitly links with -lc since on some
6868
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6869
# to ld, don't add -lc before -lgcc.
6870
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6872
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6874
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6877
libobjs=conftest.$ac_objext
6879
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6885
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6886
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6887
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6889
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6891
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6893
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6895
cat conftest.err 1>&5
6898
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6904
])# AC_LIBTOOL_PROG_LD_SHLIBS
6907
# _LT_AC_FILE_LTDLL_C
6908
# -------------------
6909
# Be careful that the start marker always follows a newline.
6910
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
3716
6911
# /* ltdll.c starts here */
3717
6912
# #define WIN32_LEAN_AND_MEAN
3718
6913
# #include <windows.h>
3748
6943
# /* ltdll.c ends here */
3749
# This is a source program that is used to create import libraries
3750
# on Windows for dlls which lack them. Don't remove nor modify the
3751
# starting and closing comments
3752
# /* impgen.c starts here */
3753
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
3755
# This file is part of GNU libtool.
3757
# This program is free software; you can redistribute it and/or modify
3758
# it under the terms of the GNU General Public License as published by
3759
# the Free Software Foundation; either version 2 of the License, or
3760
# (at your option) any later version.
3762
# This program is distributed in the hope that it will be useful,
3763
# but WITHOUT ANY WARRANTY; without even the implied warranty of
3764
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3765
# GNU General Public License for more details.
3767
# You should have received a copy of the GNU General Public License
3768
# along with this program; if not, write to the Free Software
3769
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3772
# #include <stdio.h> /* for printf() */
3773
# #include <unistd.h> /* for open(), lseek(), read() */
3774
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
3775
# #include <string.h> /* for strdup() */
3777
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3779
# #define O_BINARY 0
3782
# static unsigned int
3783
# pe_get16 (fd, offset)
3787
# unsigned char b[2];
3788
# lseek (fd, offset, SEEK_SET);
3790
# return b[0] + (b[1]<<8);
3793
# static unsigned int
3794
# pe_get32 (fd, offset)
3798
# unsigned char b[4];
3799
# lseek (fd, offset, SEEK_SET);
3801
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3804
# static unsigned int
3808
# unsigned char *b = ptr;
3809
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3818
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
3819
# unsigned long export_rva, export_size, nsections, secptr, expptr;
3820
# unsigned long name_rvas, nexp;
3821
# unsigned char *expdata, *erva;
3822
# char *filename, *dll_name;
3824
# filename = argv[1];
3826
# dll = open(filename, O_RDONLY|O_BINARY);
3830
# dll_name = filename;
3832
# for (i=0; filename[i]; i++)
3833
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
3834
# dll_name = filename + i +1;
3836
# pe_header_offset = pe_get32 (dll, 0x3c);
3837
# opthdr_ofs = pe_header_offset + 4 + 20;
3838
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
3840
# if (num_entries < 1) /* no exports */
3843
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
3844
# export_size = pe_get32 (dll, opthdr_ofs + 100);
3845
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
3846
# secptr = (pe_header_offset + 4 + 20 +
3847
# pe_get16 (dll, pe_header_offset + 4 + 16));
3850
# for (i = 0; i < nsections; i++)
3853
# unsigned long secptr1 = secptr + 40 * i;
3854
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
3855
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
3856
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
3857
# lseek(dll, secptr1, SEEK_SET);
3858
# read(dll, sname, 8);
3859
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
3861
# expptr = fptr + (export_rva - vaddr);
3862
# if (export_rva + export_size > vaddr + vsize)
3863
# export_size = vsize - (export_rva - vaddr);
3868
# expdata = (unsigned char*)malloc(export_size);
3869
# lseek (dll, expptr, SEEK_SET);
3870
# read (dll, expdata, export_size);
3871
# erva = expdata - export_rva;
3873
# nexp = pe_as32 (expdata+24);
3874
# name_rvas = pe_as32 (expdata+32);
3876
# printf ("EXPORTS\n");
3877
# for (i = 0; i<nexp; i++)
3879
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3880
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3885
# /* impgen.c ends here */
3891
# We use sed instead of cat because bash on DJGPP gets confused if
3892
# if finds mixed CR/LF and LF-only lines. Since sed operates in
3893
# text mode, it properly converts lines to CR/LF. This bash problem
3894
# is reportedly fixed, but why not run on old versions too?
3895
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
3897
mv -f "${ofile}T" "$ofile" || \
3898
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
3902
])# _LT_AC_LTCONFIG_HACK
3904
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3905
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3907
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3908
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3910
# AC_ENABLE_SHARED - implement the --enable-shared flag
3911
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
3912
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3914
AC_DEFUN([AC_ENABLE_SHARED],
3915
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3916
AC_ARG_ENABLE(shared,
3917
changequote(<<, >>)dnl
3918
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
3919
changequote([, ])dnl
3920
[p=${PACKAGE-default}
3922
yes) enable_shared=yes ;;
3923
no) enable_shared=no ;;
3926
# Look at the argument we got. We use all the common list separators.
3927
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3928
for pkg in $enableval; do
3929
if test "X$pkg" = "X$p"; then
3936
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
3939
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3940
AC_DEFUN([AC_DISABLE_SHARED],
3941
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3942
AC_ENABLE_SHARED(no)])
3944
# AC_ENABLE_STATIC - implement the --enable-static flag
3945
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
3946
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3948
AC_DEFUN([AC_ENABLE_STATIC],
3949
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3950
AC_ARG_ENABLE(static,
3951
changequote(<<, >>)dnl
3952
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
3953
changequote([, ])dnl
3954
[p=${PACKAGE-default}
3956
yes) enable_static=yes ;;
3957
no) enable_static=no ;;
3960
# Look at the argument we got. We use all the common list separators.
3961
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3962
for pkg in $enableval; do
3963
if test "X$pkg" = "X$p"; then
3970
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
3973
# AC_DISABLE_STATIC - set the default static flag to --disable-static
3974
AC_DEFUN([AC_DISABLE_STATIC],
3975
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3976
AC_ENABLE_STATIC(no)])
3979
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3980
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3981
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3983
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3984
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3985
AC_ARG_ENABLE(fast-install,
3986
changequote(<<, >>)dnl
3987
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
3988
changequote([, ])dnl
3989
[p=${PACKAGE-default}
3991
yes) enable_fast_install=yes ;;
3992
no) enable_fast_install=no ;;
3994
enable_fast_install=no
3995
# Look at the argument we got. We use all the common list separators.
3996
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3997
for pkg in $enableval; do
3998
if test "X$pkg" = "X$p"; then
3999
enable_fast_install=yes
4005
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
4008
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
4009
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4010
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4011
AC_ENABLE_FAST_INSTALL(no)])
4013
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
4014
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
4015
# Where MODE is either `yes' or `no'. If omitted, it defaults to
4017
AC_DEFUN([AC_LIBTOOL_PICMODE],
4018
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4019
pic_mode=ifelse($#,1,$1,default)])
4022
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
4023
AC_DEFUN([AC_PATH_TOOL_PREFIX],
4024
[AC_MSG_CHECKING([for $1])
4025
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4028
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4031
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4034
ac_save_MAGIC_CMD="$MAGIC_CMD"
4035
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4036
dnl $ac_dummy forces splitting on constant user-supplied paths.
4037
dnl POSIX.2 word splitting is done only on the output of word expansions,
4038
dnl not every word. This closes a longstanding sh security hole.
4039
ac_dummy="ifelse([$2], , $PATH, [$2])"
4040
for ac_dir in $ac_dummy; do
4041
test -z "$ac_dir" && ac_dir=.
4042
if test -f $ac_dir/$1; then
4043
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4044
if test -n "$file_magic_test_file"; then
4045
case $deplibs_check_method in
4047
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4048
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4049
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4050
egrep "$file_magic_regex" > /dev/null; then
4055
*** Warning: the command libtool uses to detect shared libraries,
4056
*** $file_magic_cmd, produces output that libtool cannot recognize.
4057
*** The result is that libtool may fail to recognize shared libraries
4058
*** as such. This will affect the creation of libtool libraries that
4059
*** depend on shared libraries, but programs linked with such libtool
4060
*** libraries will work regardless of this problem. Nevertheless, you
4061
*** may want to report the problem to your system manager and/or to
4062
*** bug-libtool@gnu.org
4072
MAGIC_CMD="$ac_save_MAGIC_CMD"
4075
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4076
if test -n "$MAGIC_CMD"; then
4077
AC_MSG_RESULT($MAGIC_CMD)
4084
# AC_PATH_MAGIC - find a file program which can recognise a shared library
4085
AC_DEFUN([AC_PATH_MAGIC],
4086
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
4087
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
4088
if test -z "$lt_cv_path_MAGIC_CMD"; then
4089
if test -n "$ac_tool_prefix"; then
4090
AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
4098
# AC_PROG_LD - find the path to the GNU or non-GNU linker
4099
AC_DEFUN([AC_PROG_LD],
4100
[AC_ARG_WITH(gnu-ld,
4101
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
4102
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
4103
AC_REQUIRE([AC_PROG_CC])dnl
4104
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4105
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4106
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
4108
if test "$GCC" = yes; then
4109
# Check if gcc -print-prog-name=ld gives a path.
4110
AC_MSG_CHECKING([for ld used by GCC])
4113
# gcc leaves a trailing carriage return which upsets mingw
4114
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4116
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119
# Accept absolute paths.
4120
[[\\/]]* | [[A-Za-z]]:[[\\/]]*)
4121
re_direlt='/[[^/]][[^/]]*/\.\./'
4122
# Canonicalize the path of ld
4123
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4124
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4125
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4127
test -z "$LD" && LD="$ac_prog"
4130
# If it fails, then pretend we aren't using GCC.
4134
# If it is relative, then search for the first ld in PATH.
4138
elif test "$with_gnu_ld" = yes; then
4139
AC_MSG_CHECKING([for GNU ld])
4141
AC_MSG_CHECKING([for non-GNU ld])
4143
AC_CACHE_VAL(lt_cv_path_LD,
4144
[if test -z "$LD"; then
4145
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4146
for ac_dir in $PATH; do
4147
test -z "$ac_dir" && ac_dir=.
4148
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4149
lt_cv_path_LD="$ac_dir/$ac_prog"
4150
# Check to see if the program is GNU ld. I'd rather use --version,
4151
# but apparently some GNU ld's only accept -v.
4152
# Break only if it was the GNU/non-GNU ld that we prefer.
4153
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4154
test "$with_gnu_ld" != no && break
4156
test "$with_gnu_ld" != yes && break
4162
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4165
if test -n "$LD"; then
4170
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4175
AC_DEFUN([AC_PROG_LD_GNU],
4176
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4177
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4178
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4179
lt_cv_prog_gnu_ld=yes
4181
lt_cv_prog_gnu_ld=no
4183
with_gnu_ld=$lt_cv_prog_gnu_ld
4186
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
4187
# -- PORTME Some linkers may need a different reload flag.
4188
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4189
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
4190
[lt_cv_ld_reload_flag='-r'])
4191
reload_flag=$lt_cv_ld_reload_flag
4192
test -n "$reload_flag" && reload_flag=" $reload_flag"
4195
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
4196
# -- PORTME fill in with the dynamic library characteristics
4197
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4198
[AC_CACHE_CHECK([how to recognise dependant libraries],
4199
lt_cv_deplibs_check_method,
4200
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4201
lt_cv_file_magic_test_file=
4202
lt_cv_deplibs_check_method='unknown'
4203
# Need to set the preceding variable on all platforms that support
4204
# interlibrary dependencies.
4205
# 'none' -- dependencies not supported.
4206
# `unknown' -- same as none, but documents that we really don't know.
4207
# 'pass_all' -- all dependencies passed with no checks.
4208
# 'test_compile' -- check by making test program.
4209
# 'file_magic [[regex]]' -- check by looking for files in library path
4210
# which responds to the $file_magic_cmd with a given egrep regex.
4211
# If you have `file' or equivalent on your system and you're not sure
4212
# whether `pass_all' will *always* work, you probably want this one.
4216
lt_cv_deplibs_check_method=pass_all
4220
lt_cv_deplibs_check_method=pass_all
4224
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4225
lt_cv_file_magic_cmd='/usr/bin/file -L'
4226
lt_cv_file_magic_test_file=/shlib/libc.so
4229
cygwin* | mingw* | pw32*)
4230
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4231
lt_cv_file_magic_cmd='$OBJDUMP -f'
4234
darwin* | rhapsody*)
4235
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4236
lt_cv_file_magic_cmd='/usr/bin/file -L'
4238
rhapsody* | darwin1.[[012]])
4239
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4242
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4248
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4251
# Not sure whether the presence of OpenBSD here was a mistake.
4252
# Let's accept both of them until this is cleared up.
4253
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
4254
lt_cv_file_magic_cmd=/usr/bin/file
4255
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4259
lt_cv_deplibs_check_method=pass_all
4264
lt_cv_deplibs_check_method=pass_all
4268
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4269
lt_cv_file_magic_cmd=/usr/bin/file
4270
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4276
# this will be overridden with pass_all, but let us keep it just in case
4277
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4281
*-32|*"-32 ") libmagic=32-bit;;
4282
*-n32|*"-n32 ") libmagic=N32;;
4283
*-64|*"-64 ") libmagic=64-bit;;
4284
*) libmagic=never-match;;
4286
# this will be overridden with pass_all, but let us keep it just in case
4287
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
4290
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4291
lt_cv_deplibs_check_method=pass_all
4294
# This must be Linux ELF.
4297
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
4298
lt_cv_deplibs_check_method=pass_all ;;
4300
# glibc up to 2.1.1 does not perform some relocations on ARM
4301
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
4303
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4307
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4308
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
4310
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
4315
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4316
lt_cv_file_magic_cmd=/usr/bin/file
4317
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4321
lt_cv_file_magic_cmd=/usr/bin/file
4322
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4323
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4324
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
4326
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4330
osf3* | osf4* | osf5*)
4331
# this will be overridden with pass_all, but let us keep it just in case
4332
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4333
lt_cv_file_magic_test_file=/shlib/libc.so
4334
lt_cv_deplibs_check_method=pass_all
4338
lt_cv_deplibs_check_method=pass_all
4342
lt_cv_deplibs_check_method=pass_all
4343
lt_cv_file_magic_test_file=/lib/libc.so
4346
sysv5uw[[78]]* | sysv4*uw2*)
4347
lt_cv_deplibs_check_method=pass_all
4350
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4351
case $host_vendor in
4353
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4354
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4357
lt_cv_deplibs_check_method=pass_all
4360
lt_cv_file_magic_cmd='/bin/file'
4361
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4364
lt_cv_file_magic_cmd='/bin/file'
4365
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4366
lt_cv_file_magic_test_file=/lib/libc.so
4372
file_magic_cmd=$lt_cv_file_magic_cmd
4373
deplibs_check_method=$lt_cv_deplibs_check_method
4377
# AC_PROG_NM - find the path to a BSD-compatible name lister
4378
AC_DEFUN([AC_PROG_NM],
4379
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
4380
AC_MSG_CHECKING([for BSD-compatible nm])
4381
AC_CACHE_VAL(lt_cv_path_NM,
4382
[if test -n "$NM"; then
4383
# Let the user override the test.
4386
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4387
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4388
test -z "$ac_dir" && ac_dir=.
4389
tmp_nm=$ac_dir/${ac_tool_prefix}nm
4390
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4391
# Check to see if the nm accepts a BSD-compat flag.
4392
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4393
# nm: unknown option "B" ignored
4394
# Tru64's nm complains that /dev/null is an invalid object file
4395
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4396
lt_cv_path_NM="$tmp_nm -B"
4398
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4399
lt_cv_path_NM="$tmp_nm -p"
4402
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4403
continue # so that we can try to find one that supports BSD flags
4408
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4411
AC_MSG_RESULT([$NM])
4414
# AC_CHECK_LIBM - check for math library
4415
AC_DEFUN([AC_CHECK_LIBM],
4416
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4419
*-*-beos* | *-*-cygwin* | *-*-pw32*)
4420
# These system don't have libm
4423
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4424
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
4427
AC_CHECK_LIB(m, main, LIBM="-lm")
4432
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
4433
# the libltdl convenience library and INCLTDL to the include flags for
4434
# the libltdl header and adds --enable-ltdl-convenience to the
4435
# configure arguments. Note that LIBLTDL and INCLTDL are not
4436
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
4437
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
4438
# with '${top_builddir}/' and INCLTDL will be prefixed with
4439
# '${top_srcdir}/' (note the single quotes!). If your package is not
4440
# flat and you're not using automake, define top_builddir and
4441
# top_srcdir appropriately in the Makefiles.
4442
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4443
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4444
case $enable_ltdl_convenience in
4445
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4446
"") enable_ltdl_convenience=yes
4447
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4449
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4450
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4453
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
4454
# the libltdl installable library and INCLTDL to the include flags for
4455
# the libltdl header and adds --enable-ltdl-install to the configure
4456
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
4457
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
4458
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
4459
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
4460
# with '${top_srcdir}/' (note the single quotes!). If your package is
4461
# not flat and you're not using automake, define top_builddir and
4462
# top_srcdir appropriately in the Makefiles.
4463
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4464
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4465
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4466
AC_CHECK_LIB(ltdl, main,
4467
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4468
[if test x"$enable_ltdl_install" = xno; then
4469
AC_MSG_WARN([libltdl not installed, but installation disabled])
4471
enable_ltdl_install=yes
4474
if test x"$enable_ltdl_install" = x"yes"; then
4475
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4476
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4477
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4479
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
6944
])# _LT_AC_FILE_LTDLL_C
6947
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6948
# ---------------------------------
6949
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
4486
6953
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])