2665
5554
pic_mode="$withval"
2667
5556
pic_mode=default
2670
5558
test -z "$pic_mode" && pic_mode=default
2672
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2673
# in isolation, and that seeing it set (from the cache) indicates that
2674
# the associated values are set (in the cache) correctly too.
2675
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2676
echo "configure:2677: checking for $compiler option to produce PIC" >&5
2677
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2678
echo $ac_n "(cached) $ac_c" 1>&6
2681
lt_cv_prog_cc_shlib=
2683
lt_cv_prog_cc_static=
2684
lt_cv_prog_cc_no_builtin=
2685
lt_cv_prog_cc_can_build_shared=$can_build_shared
2687
if test "$GCC" = yes; then
2688
lt_cv_prog_cc_wl='-Wl,'
2689
lt_cv_prog_cc_static='-static'
2693
# Below there is a dirty hack to force normal static linking with -ldl
2694
# The problem is because libdl dynamically linked with both libc and
2695
# libC (AIX C++ library), which obviously doesn't included in libraries
2696
# list by gcc. This cause undefined symbols with -static flags.
2697
# This hack allows C programs to be linked with "-static -ldl", but
2698
# we not sure about C++ programs.
2699
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2702
# FIXME: we need at least 68020 code to build shared libraries, but
2703
# adding the `-m68020' flag to GCC prevents building anything better,
2705
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2707
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2708
# PIC is the default for these OSes.
2710
darwin* | rhapsody*)
2711
# PIC is the default on this platform
2712
# Common symbols not allowed in MH_DYLIB files
2713
lt_cv_prog_cc_pic='-fno-common'
2715
cygwin* | mingw* | pw32* | os2*)
2716
# This hack is so that the source file can tell whether it is being
2717
# built for inclusion in a dll (and should export symbols for example).
2718
lt_cv_prog_cc_pic='-DDLL_EXPORT'
2721
if test -d /usr/nec; then
2722
lt_cv_prog_cc_pic=-Kconform_pic
2726
lt_cv_prog_cc_pic='-fPIC'
2730
# PORTME Check for PIC flags for the system compiler.
2732
aix3* | aix4* | aix5*)
2733
# All AIX code is PIC.
2734
if test "$host_cpu" = ia64; then
2735
# AIX 5 now supports IA64 processor
2736
lt_cv_prog_cc_static='-Bstatic'
2737
lt_cv_prog_cc_wl='-Wl,'
2739
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2743
hpux9* | hpux10* | hpux11*)
2744
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2745
lt_cv_prog_cc_wl='-Wl,'
2746
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2747
lt_cv_prog_cc_pic='+Z'
2751
lt_cv_prog_cc_wl='-Wl,'
2752
lt_cv_prog_cc_static='-non_shared'
2753
# PIC (with -KPIC) is the default.
2756
cygwin* | mingw* | pw32* | os2*)
2757
# This hack is so that the source file can tell whether it is being
2758
# built for inclusion in a dll (and should export symbols for example).
2759
lt_cv_prog_cc_pic='-DDLL_EXPORT'
2763
lt_cv_prog_cc_pic='-KPIC'
2764
lt_cv_prog_cc_static='-Bstatic'
2767
osf3* | osf4* | osf5*)
2768
# All OSF/1 code is PIC.
2769
lt_cv_prog_cc_wl='-Wl,'
2770
lt_cv_prog_cc_static='-non_shared'
2774
lt_cv_prog_cc_pic='-Kpic'
2775
lt_cv_prog_cc_static='-dn'
2776
lt_cv_prog_cc_shlib='-belf'
2780
lt_cv_prog_cc_pic='-KPIC'
2781
lt_cv_prog_cc_static='-Bstatic'
2782
lt_cv_prog_cc_wl='-Wl,'
2786
lt_cv_prog_cc_pic='-PIC'
2787
lt_cv_prog_cc_static='-Bstatic'
2788
lt_cv_prog_cc_wl='-Qoption ld '
2791
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2792
lt_cv_prog_cc_pic='-KPIC'
2793
lt_cv_prog_cc_static='-Bstatic'
2794
if test "x$host_vendor" = xsni; then
2795
lt_cv_prog_cc_wl='-LD'
2797
lt_cv_prog_cc_wl='-Wl,'
2802
lt_cv_prog_cc_pic='-pic'
2803
lt_cv_prog_cc_static='-Bstatic'
2807
if test -d /usr/nec ;then
2808
lt_cv_prog_cc_pic='-Kconform_pic'
2809
lt_cv_prog_cc_static='-Bstatic'
2814
lt_cv_prog_cc_can_build_shared=no
2821
if test -z "$lt_cv_prog_cc_pic"; then
2822
echo "$ac_t""none" 1>&6
2824
echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2826
# Check to make sure the pic_flag actually works.
2827
echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2828
echo "configure:2829: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2829
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2830
echo $ac_n "(cached) $ac_c" 1>&6
2832
save_CFLAGS="$CFLAGS"
2833
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2834
cat > conftest.$ac_ext <<EOF
2835
#line 2836 "configure"
2836
#include "confdefs.h"
2842
if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2845
hpux9* | hpux10* | hpux11*)
2846
# On HP-UX, both CC and GCC only warn that PIC is supported... then
2847
# they create non-PIC objects. So, if there were any warnings, we
2848
# assume that PIC is not supported.
2849
if test -s conftest.err; then
2850
lt_cv_prog_cc_pic_works=no
2852
lt_cv_prog_cc_pic_works=yes
2856
lt_cv_prog_cc_pic_works=yes
2861
echo "configure: failed program was:" >&5
2862
cat conftest.$ac_ext >&5
2864
lt_cv_prog_cc_pic_works=no
2868
CFLAGS="$save_CFLAGS"
2873
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2875
lt_cv_prog_cc_can_build_shared=no
2877
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2880
echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5560
# Use C for the default configuration in the libtool script
5564
ac_cpp='$CPP $CPPFLAGS'
5565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570
# Source file extension for C test sources.
5573
# Object file extension for compiled C test sources.
5577
# Code to be used in simple compile tests
5578
lt_simple_compile_test_code="int some_variable = 0;\n"
5580
# Code to be used in simple link tests
5581
lt_simple_link_test_code='int main(){return(0);}\n'
5584
# If no C compiler was specified, use CC.
5587
# Allow CC to be a program name with arguments.
2883
5592
# Check for any special shared library compilation flags.
2884
if test -n "$lt_cv_prog_cc_shlib"; then
2885
echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2886
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2888
echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2889
lt_cv_prog_cc_can_build_shared=no
2893
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2894
echo "configure:2895: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2895
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2896
echo $ac_n "(cached) $ac_c" 1>&6
2898
lt_cv_prog_cc_static_works=no
2899
save_LDFLAGS="$LDFLAGS"
2900
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2901
cat > conftest.$ac_ext <<EOF
2902
#line 2903 "configure"
2903
#include "confdefs.h"
2909
if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911
lt_cv_prog_cc_static_works=yes
2913
echo "configure: failed program was:" >&5
2914
cat conftest.$ac_ext >&5
2917
LDFLAGS="$save_LDFLAGS"
2922
# Belt *and* braces to stop my trousers falling down:
2923
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2924
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2926
pic_flag="$lt_cv_prog_cc_pic"
2927
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2928
wl="$lt_cv_prog_cc_wl"
2929
link_static_flag="$lt_cv_prog_cc_static"
2930
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2931
can_build_shared="$lt_cv_prog_cc_can_build_shared"
2934
# Check to see if options -o and -c are simultaneously supported by compiler
2935
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2936
echo "configure:2937: checking if $compiler supports -c -o file.$ac_objext" >&5
2937
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2938
echo $ac_n "(cached) $ac_c" 1>&6
2941
$rm -r conftest 2>/dev/null
2944
echo "int some_variable = 0;" > conftest.$ac_ext
2946
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2947
# that will create temporary files in the current directory regardless of
2948
# the output directory. Thus, making CWD read-only will cause this test
2949
# to fail, enabling locking or at least warning the user not to do parallel
2952
save_CFLAGS="$CFLAGS"
2953
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2955
if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2956
# The compiler can only warn and ignore the option if not recognized
2957
# So say no if there are warnings
2958
if test -s out/conftest.err; then
2959
lt_cv_compiler_c_o=no
2961
lt_cv_compiler_c_o=yes
2964
# Append any errors to the config.log.
2965
cat out/conftest.err 1>&5
2966
lt_cv_compiler_c_o=no
2968
CFLAGS="$save_CFLAGS"
2974
$rm -r conftest 2>/dev/null
2978
compiler_c_o=$lt_cv_compiler_c_o
2979
echo "$ac_t""$compiler_c_o" 1>&6
2981
if test x"$compiler_c_o" = x"yes"; then
2982
# Check to see if we can write to a .lo
2983
echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2984
echo "configure:2985: checking if $compiler supports -c -o file.lo" >&5
2985
if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2986
echo $ac_n "(cached) $ac_c" 1>&6
2989
lt_cv_compiler_o_lo=no
2990
save_CFLAGS="$CFLAGS"
2991
CFLAGS="$CFLAGS -c -o conftest.lo"
2992
cat > conftest.$ac_ext <<EOF
2993
#line 2994 "configure"
2994
#include "confdefs.h"
2997
int some_variable = 0;
3000
if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002
# The compiler can only warn and ignore the option if not recognized
3003
# So say no if there are warnings
3004
if test -s conftest.err; then
3005
lt_cv_compiler_o_lo=no
3007
lt_cv_compiler_o_lo=yes
3011
echo "configure: failed program was:" >&5
3012
cat conftest.$ac_ext >&5
3015
CFLAGS="$save_CFLAGS"
3019
compiler_o_lo=$lt_cv_compiler_o_lo
3020
echo "$ac_t""$compiler_c_lo" 1>&6
3025
# Check to see if we can do hard links to lock some files if needed
3026
hard_links="nottested"
3027
if test "$compiler_c_o" = no && test "$need_locks" != no; then
3028
# do not overwrite the value of need_locks provided by the user
3029
echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3030
echo "configure:3031: checking if we can lock with hard links" >&5
3033
ln conftest.a conftest.b 2>/dev/null && hard_links=no
3035
ln conftest.a conftest.b 2>&5 || hard_links=no
3036
ln conftest.a conftest.b 2>/dev/null && hard_links=no
3037
echo "$ac_t""$hard_links" 1>&6
3038
if test "$hard_links" = no; then
3039
echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3046
if test "$GCC" = yes; then
3047
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3048
echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3049
echo "configure:3050: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3050
echo "int some_variable = 0;" > conftest.$ac_ext
3051
save_CFLAGS="$CFLAGS"
3052
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3053
compiler_rtti_exceptions=no
3054
cat > conftest.$ac_ext <<EOF
3055
#line 3056 "configure"
3056
#include "confdefs.h"
3059
int some_variable = 0;
3062
if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3064
# The compiler can only warn and ignore the option if not recognized
3065
# So say no if there are warnings
3066
if test -s conftest.err; then
3067
compiler_rtti_exceptions=no
3069
compiler_rtti_exceptions=yes
3073
echo "configure: failed program was:" >&5
3074
cat conftest.$ac_ext >&5
3077
CFLAGS="$save_CFLAGS"
3078
echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3080
if test "$compiler_rtti_exceptions" = "yes"; then
3081
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3083
no_builtin_flag=' -fno-builtin'
3087
# See if the linker supports building shared libraries.
3088
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3089
echo "configure:3090: checking whether the linker ($LD) supports shared libraries" >&5
3091
allow_undefined_flag=
3093
need_lib_prefix=unknown
3094
need_version=unknown
3095
# when you set need_version to no, make sure it does not cause -set_version
3096
# flags to be left without arguments
3098
archive_expsym_cmds=
3099
old_archive_from_new_cmds=
3100
old_archive_from_expsyms_cmds=
3101
export_dynamic_flag_spec=
3102
whole_archive_flag_spec=
3103
thread_safe_flag_spec=
3104
hardcode_into_libs=no
3105
hardcode_libdir_flag_spec=
3106
hardcode_libdir_separator=
3109
hardcode_shlibpath_var=unsupported
3111
link_all_deplibs=unknown
3112
always_export_symbols=no
3113
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3114
# include_expsyms should be a list of space-separated symbols to be *always*
3115
# included in the symbol list
3117
# exclude_expsyms can be an egrep regular expression of symbols to exclude
3118
# it will be wrapped by ` (' and `)$', so one must not match beginning or
3119
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3120
# as well as any symbol that contains `d'.
3121
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3122
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3123
# platforms (ab)use it in PIC code, but their linkers get confused if
3124
# the symbol is explicitly referenced. Since portable code cannot
3125
# rely on this symbol name, it's probably fine to never include it in
3126
# preloaded symbol tables.
3127
extract_expsyms_cmds=
3130
cygwin* | mingw* | pw32* )
3131
# FIXME: the MSVC++ port hasn't been tested in a loooong time
3132
# When not using gcc, we currently assume that we are using
3133
# Microsoft Visual C++.
3134
if test "$GCC" != yes; then
3142
if test "$with_gnu_ld" = yes; then
3143
# If archive_cmds runs LD, not CC, wlarc should be empty
3146
# See if GNU ld supports shared libraries.
3148
aix3* | aix4* | aix5*)
3149
# On AIX, the GNU linker is very broken
3150
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3154
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3155
*** to be unable to reliably create shared libraries on AIX.
3156
*** Therefore, libtool is disabling shared libraries support. If you
3157
*** really care for shared libraries, you may want to modify your PATH
3158
*** so that a non-GNU linker is found, and then restart.
3164
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)'
3165
hardcode_libdir_flag_spec='-L$libdir'
3166
hardcode_minus_L=yes
3168
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3169
# that the semantics of dynamic libraries on AmigaOS, at least up
3170
# to version 4, is to share data among multiple programs linked
3171
# with the same dynamic library. Since this doesn't match the
3172
# behavior of shared libraries on other platforms, we can use
3178
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3179
allow_undefined_flag=unsupported
3180
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3181
# support --undefined. This deserves some investigation. FIXME
3182
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3188
cygwin* | mingw* | pw32*)
3189
# hardcode_libdir_flag_spec is actually meaningless, as there is
3190
# no search path for DLLs.
3191
hardcode_libdir_flag_spec='-L$libdir'
3192
allow_undefined_flag=unsupported
3193
always_export_symbols=yes
3195
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3196
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3197
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3198
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3199
else $CC -o impgen impgen.c ; fi)~
3200
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3202
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3204
# cygwin and mingw dlls have different entry points and sets of symbols
3206
# FIXME: what about values for MSVC?
3207
dll_entry=__cygwin_dll_entry@12
3208
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3212
dll_entry=_DllMainCRTStartup@12
3213
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3217
# mingw and cygwin differ, and it's simplest to just exclude the union
3218
# of the two symbol sets.
3219
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3221
# recent cygwin and mingw systems supply a stub DllMain which the user
3222
# can override, but on older systems we have to supply one (in ltdll.c)
3223
if test "x$lt_cv_need_dllmain" = "xyes"; then
3224
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3225
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~
3226
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3232
# Extract the symbol export list from an `--export-all' def file,
3233
# then regenerate the def file from the symbol export list, so that
3234
# the compiled dll only exports the symbol export list.
3235
# Be careful not to strip the DATA tag left be newer dlltools.
3236
export_symbols_cmds="$ltdll_cmds"'
3237
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3238
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3240
# If the export-symbols file already is a .def file (1st line
3241
# is EXPORTS), use it as is.
3242
# If DATA tags from a recent dlltool are present, honour them!
3243
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3244
cp $export_symbols $output_objdir/$soname-def;
3246
echo EXPORTS > $output_objdir/$soname-def;
3248
cat $export_symbols | while read symbol; do
3251
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3252
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3254
_lt_hint=`expr 1 + \$_lt_hint`;
3258
$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~
3259
$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~
3260
$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~
3261
$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~
3262
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3266
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3267
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3270
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3271
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3276
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3280
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3281
*** create shared libraries on Solaris systems. Therefore, libtool
3282
*** is disabling shared libraries support. We urge you to upgrade GNU
3283
*** binutils to release 2.9.1 or newer. Another option is to modify
3284
*** your PATH or compiler configuration so that the native linker is
3285
*** used, and then restart.
3288
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3289
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3290
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3297
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3300
hardcode_shlibpath_var=no
3304
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3305
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3306
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3313
if test "$ld_shlibs" = yes; then
3314
runpath_var=LD_RUN_PATH
3315
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3316
export_dynamic_flag_spec='${wl}--export-dynamic'
3318
cygwin* | mingw* | pw32*)
3319
# dlltool doesn't understand --whole-archive et. al.
3320
whole_archive_flag_spec=
3323
# ancient GNU ld didn't support --whole-archive et. al.
3324
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3325
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3327
whole_archive_flag_spec=
3333
# PORTME fill in a description of your system's linker (not GNU ld)
3336
allow_undefined_flag=unsupported
3337
always_export_symbols=yes
3338
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'
3339
# Note: this linker hardcodes the directories in LIBPATH if there
3340
# are no directories specified by -L.
3341
hardcode_minus_L=yes
3342
if test "$GCC" = yes && test -z "$link_static_flag"; then
3343
# Neither direct hardcoding nor static linking is supported with a
3345
hardcode_direct=unsupported
3350
# When large executables or shared objects are built, AIX ld can
3351
# have problems creating the table of contents. If linking a library
3352
# or program results in "error TOC overflow" add -mminimal-toc to
3353
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3354
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3357
hardcode_libdir_separator=':'
3358
if test "$GCC" = yes; then
3359
collect2name=`${CC} -print-prog-name=collect2`
3360
if test -f "$collect2name" && \
3361
strings "$collect2name" | grep resolve_lib_name >/dev/null
3363
# We have reworked collect2
3366
# We have old collect2
3367
hardcode_direct=unsupported
3368
# It fails to find uninstalled libraries when the uninstalled
3369
# path is not listed in the libpath. Setting hardcode_minus_L
3370
# to unsupported forces relinking
3371
hardcode_minus_L=yes
3372
hardcode_libdir_flag_spec='-L$libdir'
3373
hardcode_libdir_separator=
3375
shared_flag='-shared'
3377
if test "$host_cpu" = ia64; then
3380
shared_flag='${wl}-bM:SRE'
3385
if test "$host_cpu" = ia64; then
3386
# On IA64, the linker does run time linking by default, so we don't
3387
# have to do anything special.
3388
aix_use_runtimelinking=no
3389
exp_sym_flag='-Bexport'
3392
# Test if we are trying to use run time linking, or normal AIX style linking.
3393
# If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3394
aix_use_runtimelinking=no
3395
for ld_flag in $LDFLAGS; do
3396
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3397
aix_use_runtimelinking=yes
3401
exp_sym_flag='-bexport'
3402
no_entry_flag='-bnoentry'
3404
# It seems that -bexpall can do strange things, so it is better to
3405
# generate a list of symbols to export.
3406
always_export_symbols=yes
3407
if test "$aix_use_runtimelinking" = yes; then
3408
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3409
allow_undefined_flag=' -Wl,-G'
3410
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"
3412
if test "$host_cpu" = ia64; then
3413
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3414
allow_undefined_flag="-znodefs"
3415
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"
3417
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3418
# Warning - without using the other run time loading flags, -berok will
3419
# link without error, but may produce a broken library.
3420
allow_undefined_flag='${wl}-berok"
3421
# This is a bit strange, but is similar to how AIX traditionally builds
3422
# it's shared libraries.
3423
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'
3429
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)'
3430
hardcode_libdir_flag_spec='-L$libdir'
3431
hardcode_minus_L=yes
3432
# see comment about different semantics on the GNU ld section
3436
cygwin* | mingw* | pw32*)
3437
# When not using gcc, we currently assume that we are using
3438
# Microsoft Visual C++.
3439
# hardcode_libdir_flag_spec is actually meaningless, as there is
3440
# no search path for DLLs.
3441
hardcode_libdir_flag_spec=' '
3442
allow_undefined_flag=unsupported
3443
# Tell ltmain to make .lib files, not .a files.
3445
# FIXME: Setting linknames here is a bad hack.
3446
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3447
# The linker will automatically build a .lib file if we build a DLL.
3448
old_archive_from_new_cmds='true'
3449
# FIXME: Should let the user specify the lib program.
3450
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3451
fix_srcfile_path='`cygpath -w "$srcfile"`'
3454
darwin* | rhapsody*)
3455
allow_undefined_flag='-undefined suppress'
3456
# FIXME: Relying on posixy $() will cause problems for
3457
# cross-compilation, but unfortunately the echo tests do not
3458
# yet detect zsh echo's removal of \ escapes.
3459
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3460
# We need to add '_' to the symbols in $export_symbols first
3461
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3463
hardcode_shlibpath_var=no
3464
whole_archive_flag_spec='-all_load $convenience'
3471
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3472
# support. Future versions do this automatically, but an explicit c++rt0.o
3473
# does not break anything, and helps significantly (at the cost of a little
3476
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3477
hardcode_libdir_flag_spec='-R$libdir'
3479
hardcode_shlibpath_var=no
3482
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
3484
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3486
hardcode_minus_L=yes
3487
hardcode_shlibpath_var=no
3490
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3492
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3493
hardcode_libdir_flag_spec='-R$libdir'
3495
hardcode_shlibpath_var=no
3498
hpux9* | hpux10* | hpux11*)
3500
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' ;;
3501
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3503
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3504
hardcode_libdir_separator=:
3506
hardcode_minus_L=yes # Not in the search PATH, but as the default
3507
# location of the library.
3508
export_dynamic_flag_spec='${wl}-E'
3512
if test "$GCC" = yes; then
3513
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'
3515
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'
3517
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3518
hardcode_libdir_separator=:
3519
link_all_deplibs=yes
3523
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3524
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3526
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3528
hardcode_libdir_flag_spec='-R$libdir'
3530
hardcode_shlibpath_var=no
3534
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3536
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3537
hardcode_libdir_separator=:
3538
hardcode_shlibpath_var=no
3542
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3543
hardcode_libdir_flag_spec='-R$libdir'
3545
hardcode_shlibpath_var=no
3549
hardcode_libdir_flag_spec='-L$libdir'
3550
hardcode_minus_L=yes
3551
allow_undefined_flag=unsupported
3552
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'
3553
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3557
if test "$GCC" = yes; then
3558
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3559
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'
3561
allow_undefined_flag=' -expect_unresolved \*'
3562
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'
3564
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3565
hardcode_libdir_separator=:
3568
osf4* | osf5*) # as osf3* with the addition of -msym flag
3569
if test "$GCC" = yes; then
3570
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3571
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'
3572
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3574
allow_undefined_flag=' -expect_unresolved \*'
3575
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'
3576
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3577
$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'
3579
#Both c and cxx compiler support -rpath directly
3580
hardcode_libdir_flag_spec='-rpath $libdir'
3582
hardcode_libdir_separator=:
5595
if test "$GCC" = no; then
3586
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3587
hardcode_shlibpath_var=no
3588
runpath_var=LD_RUN_PATH
3589
hardcode_runpath_var=yes
3593
no_undefined_flag=' -z defs'
3594
# $CC -shared without GNU ld will not create a library from C++
3595
# object files and a static libstdc++, better avoid it by now
3596
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3597
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3598
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3599
hardcode_libdir_flag_spec='-R$libdir'
3600
hardcode_shlibpath_var=no
3602
solaris2.[0-5] | solaris2.[0-5].*) ;;
3603
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
3604
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3606
link_all_deplibs=yes
3610
if test "x$host_vendor" = xsequent; then
3611
# Use $CC to link under sequent, because it throws in some extra .o
3612
# files that make .init and .fini sections work.
3613
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3615
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3617
hardcode_libdir_flag_spec='-L$libdir'
3619
hardcode_minus_L=yes
3620
hardcode_shlibpath_var=no
3624
if test "x$host_vendor" = xsno; then
3625
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3626
hardcode_direct=yes # is this really true???
3628
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3629
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3631
runpath_var='LD_RUN_PATH'
3632
hardcode_shlibpath_var=no
3636
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3637
hardcode_shlibpath_var=no
3638
export_dynamic_flag_spec='-Bexport'
3642
no_undefined_flag=' -z text'
3643
# $CC -shared without GNU ld will not create a library from C++
3644
# object files and a static libstdc++, better avoid it by now
3645
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3646
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3647
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3648
hardcode_libdir_flag_spec=
3649
hardcode_shlibpath_var=no
3650
runpath_var='LD_RUN_PATH'
3654
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3655
hardcode_libdir_flag_spec='-L$libdir'
3656
hardcode_shlibpath_var=no
3660
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3661
hardcode_libdir_flag_spec='-L$libdir'
3662
hardcode_shlibpath_var=no
3666
if test -d /usr/nec; then
3667
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3668
hardcode_shlibpath_var=no
3669
runpath_var=LD_RUN_PATH
3670
hardcode_runpath_var=yes
3676
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3679
hardcode_shlibpath_var=no
3680
hardcode_runpath_var=yes
3681
runpath_var=LD_RUN_PATH
3684
sysv5uw7* | unixware7*)
3685
no_undefined_flag='${wl}-z ${wl}text'
3686
if test "$GCC" = yes; then
3687
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3689
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3691
runpath_var='LD_RUN_PATH'
3692
hardcode_shlibpath_var=no
5598
lt_prog_cc_shlib='-belf'
5602
if test -n "$lt_prog_cc_shlib"; then
5603
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5604
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5605
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5607
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5608
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5609
lt_cv_prog_cc_can_build_shared=no
5615
# Check to make sure the static flag actually works.
5617
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5618
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5619
if test "${lt_prog_compiler_static_works+set}" = set; then
5620
echo $ECHO_N "(cached) $ECHO_C" >&6
5622
lt_prog_compiler_static_works=no
5623
save_LDFLAGS="$LDFLAGS"
5624
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5625
printf "$lt_simple_link_test_code" > conftest.$ac_ext
5626
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5627
# The compiler can only warn and ignore the option if not recognized
5628
# So say no if there are warnings
5629
if test -s conftest.err; then
5630
# Append any errors to the config.log.
5631
cat conftest.err 1>&5
5633
lt_prog_compiler_static_works=yes
5637
LDFLAGS="$save_LDFLAGS"
5640
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5641
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5643
if test x"$lt_prog_compiler_static_works" = xyes; then
5646
lt_prog_compiler_static=
5652
lt_prog_compiler_no_builtin_flag=
5654
if test "$GCC" = yes; then
5655
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5658
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5659
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5660
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5661
echo $ECHO_N "(cached) $ECHO_C" >&6
5663
lt_cv_prog_compiler_rtti_exceptions=no
5664
ac_outfile=conftest.$ac_objext
5665
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5666
lt_compiler_flag="-fno-rtti -fno-exceptions"
5667
# Insert the option either (1) after the last *FLAGS variable, or
5668
# (2) before a word containing "conftest.", or (3) at the end.
5669
# Note that $ac_compile itself does not contain backslashes and begins
5670
# with a dollar sign (not a hyphen), so the echo should work correctly.
5671
# The option is referenced via a variable to avoid confusing sed.
5672
lt_compile=`echo "$ac_compile" | $SED \
5673
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5674
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5675
-e 's:$: $lt_compiler_flag:'`
5676
(eval echo "\"\$as_me:5676: $lt_compile\"" >&5)
5677
(eval "$lt_compile" 2>conftest.err)
5679
cat conftest.err >&5
5680
echo "$as_me:5680: \$? = $ac_status" >&5
5681
if (exit $ac_status) && test -s "$ac_outfile"; then
5682
# The compiler can only warn and ignore the option if not recognized
5683
# So say no if there are warnings
5684
if test ! -s conftest.err; then
5685
lt_cv_prog_compiler_rtti_exceptions=yes
5691
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5692
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5694
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5695
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5702
lt_prog_compiler_wl=
5703
lt_prog_compiler_pic=
5704
lt_prog_compiler_static=
5706
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5707
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5709
if test "$GCC" = yes; then
5710
lt_prog_compiler_wl='-Wl,'
5711
lt_prog_compiler_static='-static'
5715
# All AIX code is PIC.
5716
if test "$host_cpu" = ia64; then
5717
# AIX 5 now supports IA64 processor
5718
lt_prog_compiler_static='-Bstatic'
5723
# FIXME: we need at least 68020 code to build shared libraries, but
5724
# adding the `-m68020' flag to GCC prevents building anything better,
5726
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5729
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5730
# PIC is the default for these OSes.
5733
mingw* | pw32* | os2*)
5734
# This hack is so that the source file can tell whether it is being
5735
# built for inclusion in a dll (and should export symbols for example).
5736
lt_prog_compiler_pic='-DDLL_EXPORT'
5739
darwin* | rhapsody*)
5740
# PIC is the default on this platform
5741
# Common symbols not allowed in MH_DYLIB files
5742
lt_prog_compiler_pic='-fno-common'
5746
# Just because we use GCC doesn't mean we suddenly get shared libraries
5747
# on systems that don't support them.
5748
lt_prog_compiler_can_build_shared=no
5753
if test -d /usr/nec; then
5754
lt_prog_compiler_pic=-Kconform_pic
5759
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5766
lt_prog_compiler_pic='-fPIC'
5772
lt_prog_compiler_pic='-fPIC'
5776
# PORTME Check for flag to pass linker flags through the system compiler.
5779
lt_prog_compiler_wl='-Wl,'
5780
if test "$host_cpu" = ia64; then
5781
# AIX 5 now supports IA64 processor
5782
lt_prog_compiler_static='-Bstatic'
5784
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5788
mingw* | pw32* | os2*)
5789
# This hack is so that the source file can tell whether it is being
5790
# built for inclusion in a dll (and should export symbols for example).
5791
lt_prog_compiler_pic='-DDLL_EXPORT'
5794
hpux9* | hpux10* | hpux11*)
5795
lt_prog_compiler_wl='-Wl,'
5796
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5803
lt_prog_compiler_pic='+Z'
5806
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5807
lt_prog_compiler_static='${wl}-a ${wl}archive'
5810
irix5* | irix6* | nonstopux*)
5811
lt_prog_compiler_wl='-Wl,'
5812
# PIC (with -KPIC) is the default.
5813
lt_prog_compiler_static='-non_shared'
5817
lt_prog_compiler_pic='-KPIC'
5818
lt_prog_compiler_static='-Bstatic'
5824
lt_prog_compiler_wl='-Wl,'
5825
lt_prog_compiler_pic='-KPIC'
5826
lt_prog_compiler_static='-static'
5829
lt_prog_compiler_wl='-Wl,'
5830
# All Alpha code is PIC.
5831
lt_prog_compiler_static='-non_shared'
5836
osf3* | osf4* | osf5*)
5837
lt_prog_compiler_wl='-Wl,'
5838
# All OSF/1 code is PIC.
5839
lt_prog_compiler_static='-non_shared'
5843
lt_prog_compiler_pic='-Kpic'
5844
lt_prog_compiler_static='-dn'
5848
lt_prog_compiler_wl='-Wl,'
5849
lt_prog_compiler_pic='-KPIC'
5850
lt_prog_compiler_static='-Bstatic'
5854
lt_prog_compiler_wl='-Qoption ld '
5855
lt_prog_compiler_pic='-PIC'
5856
lt_prog_compiler_static='-Bstatic'
5859
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5860
lt_prog_compiler_wl='-Wl,'
5861
lt_prog_compiler_pic='-KPIC'
5862
lt_prog_compiler_static='-Bstatic'
5866
if test -d /usr/nec ;then
5867
lt_prog_compiler_pic='-Kconform_pic'
5868
lt_prog_compiler_static='-Bstatic'
5873
lt_prog_compiler_pic='-pic'
5874
lt_prog_compiler_static='-Bstatic'
5878
lt_prog_compiler_can_build_shared=no
5883
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5884
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5887
# Check to make sure the PIC flag actually works.
5889
if test -n "$lt_prog_compiler_pic"; then
5891
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5892
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5893
if test "${lt_prog_compiler_pic_works+set}" = set; then
5894
echo $ECHO_N "(cached) $ECHO_C" >&6
5896
lt_prog_compiler_pic_works=no
5897
ac_outfile=conftest.$ac_objext
5898
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5899
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5900
# Insert the option either (1) after the last *FLAGS variable, or
5901
# (2) before a word containing "conftest.", or (3) at the end.
5902
# Note that $ac_compile itself does not contain backslashes and begins
5903
# with a dollar sign (not a hyphen), so the echo should work correctly.
5904
# The option is referenced via a variable to avoid confusing sed.
5905
lt_compile=`echo "$ac_compile" | $SED \
5906
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5907
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5908
-e 's:$: $lt_compiler_flag:'`
5909
(eval echo "\"\$as_me:5909: $lt_compile\"" >&5)
5910
(eval "$lt_compile" 2>conftest.err)
5912
cat conftest.err >&5
5913
echo "$as_me:5913: \$? = $ac_status" >&5
5914
if (exit $ac_status) && test -s "$ac_outfile"; then
5915
# The compiler can only warn and ignore the option if not recognized
5916
# So say no if there are warnings
5917
if test ! -s conftest.err; then
5918
lt_prog_compiler_pic_works=yes
5924
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5925
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5927
if test x"$lt_prog_compiler_pic_works" = xyes; then
5928
case $lt_prog_compiler_pic in
5930
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5933
lt_prog_compiler_pic=
5934
lt_prog_compiler_can_build_shared=no
5939
# For platforms which do not support PIC, -DPIC is meaningless:
5941
lt_prog_compiler_pic=
5944
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5948
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5949
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5950
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5951
echo $ECHO_N "(cached) $ECHO_C" >&6
5953
lt_cv_prog_compiler_c_o=no
5954
$rm -r conftest 2>/dev/null
5958
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5960
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5961
# that will create temporary files in the current directory regardless of
5962
# the output directory. Thus, making CWD read-only will cause this test
5963
# to fail, enabling locking or at least warning the user not to do parallel
5967
lt_compiler_flag="-o out/conftest2.$ac_objext"
5968
# Insert the option either (1) after the last *FLAGS variable, or
5969
# (2) before a word containing "conftest.", or (3) at the end.
5970
# Note that $ac_compile itself does not contain backslashes and begins
5971
# with a dollar sign (not a hyphen), so the echo should work correctly.
5972
lt_compile=`echo "$ac_compile" | $SED \
5973
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5974
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5975
-e 's:$: $lt_compiler_flag:'`
5976
(eval echo "\"\$as_me:5976: $lt_compile\"" >&5)
5977
(eval "$lt_compile" 2>out/conftest.err)
5979
cat out/conftest.err >&5
5980
echo "$as_me:5980: \$? = $ac_status" >&5
5981
if (exit $ac_status) && test -s out/conftest2.$ac_objext
5983
# The compiler can only warn and ignore the option if not recognized
5984
# So say no if there are warnings
5985
if test ! -s out/conftest.err; then
5986
lt_cv_prog_compiler_c_o=yes
5991
# SGI C++ compiler will create directory out/ii_files/ for
5992
# template instantiation
5993
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5994
$rm out/* && rmdir out
6000
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6001
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6004
hard_links="nottested"
6005
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6006
# do not overwrite the value of need_locks provided by the user
6007
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6008
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6011
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6013
ln conftest.a conftest.b 2>&5 || hard_links=no
6014
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6015
echo "$as_me:$LINENO: result: $hard_links" >&5
6016
echo "${ECHO_T}$hard_links" >&6
6017
if test "$hard_links" = no; then
6018
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6019
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6026
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6027
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6030
allow_undefined_flag=
6031
enable_shared_with_static_runtimes=no
6033
archive_expsym_cmds=
6034
old_archive_From_new_cmds=
6035
old_archive_from_expsyms_cmds=
6036
export_dynamic_flag_spec=
6037
whole_archive_flag_spec=
6038
thread_safe_flag_spec=
6039
hardcode_libdir_flag_spec=
6040
hardcode_libdir_flag_spec_ld=
6041
hardcode_libdir_separator=
6044
hardcode_shlibpath_var=unsupported
6045
link_all_deplibs=unknown
6046
hardcode_automatic=no
6049
always_export_symbols=no
6050
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6051
# include_expsyms should be a list of space-separated symbols to be *always*
6052
# included in the symbol list
6054
# exclude_expsyms can be an extended regexp of symbols to exclude
6055
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6056
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6057
# as well as any symbol that contains `d'.
6058
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6059
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6060
# platforms (ab)use it in PIC code, but their linkers get confused if
6061
# the symbol is explicitly referenced. Since portable code cannot
6062
# rely on this symbol name, it's probably fine to never include it in
6063
# preloaded symbol tables.
6064
extract_expsyms_cmds=
6067
cygwin* | mingw* | pw32*)
6068
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6069
# When not using gcc, we currently assume that we are using
6070
# Microsoft Visual C++.
6071
if test "$GCC" != yes; then
3700
echo "$ac_t""$ld_shlibs" 1>&6
6081
if test "$with_gnu_ld" = yes; then
6082
# If archive_cmds runs LD, not CC, wlarc should be empty
6085
# See if GNU ld supports shared libraries.
6087
aix3* | aix4* | aix5*)
6088
# On AIX/PPC, the GNU linker is very broken
6089
if test "$host_cpu" != ia64; then
6093
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6094
*** to be unable to reliably create shared libraries on AIX.
6095
*** Therefore, libtool is disabling shared libraries support. If you
6096
*** really care for shared libraries, you may want to modify your PATH
6097
*** so that a non-GNU linker is found, and then restart.
6104
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)'
6105
hardcode_libdir_flag_spec='-L$libdir'
6106
hardcode_minus_L=yes
6108
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6109
# that the semantics of dynamic libraries on AmigaOS, at least up
6110
# to version 4, is to share data among multiple programs linked
6111
# with the same dynamic library. Since this doesn't match the
6112
# behavior of shared libraries on other platforms, we can't use
6118
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6119
allow_undefined_flag=unsupported
6120
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6121
# support --undefined. This deserves some investigation. FIXME
6122
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6128
cygwin* | mingw* | pw32*)
6129
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6130
# as there is no search path for DLLs.
6131
hardcode_libdir_flag_spec='-L$libdir'
6132
allow_undefined_flag=unsupported
6133
always_export_symbols=no
6134
enable_shared_with_static_runtimes=yes
6135
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6137
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6138
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6139
# If the export-symbols file already is a .def file (1st line
6140
# is EXPORTS), use it as is; otherwise, prepend...
6141
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6142
cp $export_symbols $output_objdir/$soname.def;
6144
echo EXPORTS > $output_objdir/$soname.def;
6145
cat $export_symbols >> $output_objdir/$soname.def;
6147
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6154
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6155
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6158
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6159
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6164
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6168
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6169
*** create shared libraries on Solaris systems. Therefore, libtool
6170
*** is disabling shared libraries support. We urge you to upgrade GNU
6171
*** binutils to release 2.9.1 or newer. Another option is to modify
6172
*** your PATH or compiler configuration so that the native linker is
6173
*** used, and then restart.
6176
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6177
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6178
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6185
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6188
hardcode_shlibpath_var=no
6192
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6193
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6194
archive_cmds="$tmp_archive_cmds"
6195
supports_anon_versioning=no
6196
case `$LD -v 2>/dev/null` in
6197
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6198
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6199
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6200
*\ 2.11.*) ;; # other 2.11 versions
6201
*) supports_anon_versioning=yes ;;
6203
if test $supports_anon_versioning = yes; then
6204
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6205
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6206
$echo "local: *; };" >> $output_objdir/$libname.ver~
6207
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6209
archive_expsym_cmds="$tmp_archive_cmds"
6217
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6218
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6219
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6226
if test "$ld_shlibs" = yes; then
6227
runpath_var=LD_RUN_PATH
6228
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6229
export_dynamic_flag_spec='${wl}--export-dynamic'
6230
# ancient GNU ld didn't support --whole-archive et. al.
6231
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6232
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6234
whole_archive_flag_spec=
6238
# PORTME fill in a description of your system's linker (not GNU ld)
6241
allow_undefined_flag=unsupported
6242
always_export_symbols=yes
6243
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'
6244
# Note: this linker hardcodes the directories in LIBPATH if there
6245
# are no directories specified by -L.
6246
hardcode_minus_L=yes
6247
if test "$GCC" = yes && test -z "$link_static_flag"; then
6248
# Neither direct hardcoding nor static linking is supported with a
6250
hardcode_direct=unsupported
6255
if test "$host_cpu" = ia64; then
6256
# On IA64, the linker does run time linking by default, so we don't
6257
# have to do anything special.
6258
aix_use_runtimelinking=no
6259
exp_sym_flag='-Bexport'
6262
# If we're using GNU nm, then we don't want the "-C" option.
6263
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6264
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6265
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6267
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6269
aix_use_runtimelinking=no
6271
# Test if we are trying to use run time linking or normal
6272
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6273
# need to do runtime linking.
6274
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6275
for ld_flag in $LDFLAGS; do
6276
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6277
aix_use_runtimelinking=yes
6283
exp_sym_flag='-bexport'
6284
no_entry_flag='-bnoentry'
6287
# When large executables or shared objects are built, AIX ld can
6288
# have problems creating the table of contents. If linking a library
6289
# or program results in "error TOC overflow" add -mminimal-toc to
6290
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6291
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6295
hardcode_libdir_separator=':'
6296
link_all_deplibs=yes
6298
if test "$GCC" = yes; then
6299
case $host_os in aix4.012|aix4.012.*)
6300
# We only want to do this on AIX 4.2 and lower, the check
6301
# below for broken collect2 doesn't work under 4.3+
6302
collect2name=`${CC} -print-prog-name=collect2`
6303
if test -f "$collect2name" && \
6304
strings "$collect2name" | grep resolve_lib_name >/dev/null
6306
# We have reworked collect2
6309
# We have old collect2
6310
hardcode_direct=unsupported
6311
# It fails to find uninstalled libraries when the uninstalled
6312
# path is not listed in the libpath. Setting hardcode_minus_L
6313
# to unsupported forces relinking
6314
hardcode_minus_L=yes
6315
hardcode_libdir_flag_spec='-L$libdir'
6316
hardcode_libdir_separator=
6319
shared_flag='-shared'
6322
if test "$host_cpu" = ia64; then
6323
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6324
# chokes on -Wl,-G. The following line is correct:
6327
if test "$aix_use_runtimelinking" = yes; then
6328
shared_flag='${wl}-G'
6330
shared_flag='${wl}-bM:SRE'
6335
# It seems that -bexpall does not export symbols beginning with
6336
# underscore (_), so it is better to generate a list of symbols to export.
6337
always_export_symbols=yes
6338
if test "$aix_use_runtimelinking" = yes; then
6339
# Warning - without using the other runtime loading flags (-brtl),
6340
# -berok will link without error, but may produce a broken library.
6341
allow_undefined_flag='-berok'
6342
# Determine the default libpath from the value encoded in an empty executable.
6343
cat >conftest.$ac_ext <<_ACEOF
6344
#line $LINENO "configure"
6347
cat confdefs.h >>conftest.$ac_ext
6348
cat >>conftest.$ac_ext <<_ACEOF
6349
/* end confdefs.h. */
6359
rm -f conftest.$ac_objext conftest$ac_exeext
6360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361
(eval $ac_link) 2>&5
6363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364
(exit $ac_status); } &&
6365
{ ac_try='test -s conftest$ac_exeext'
6366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370
(exit $ac_status); }; }; then
6372
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6374
# Check for a 64-bit object if we didn't find anything.
6375
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6378
echo "$as_me: failed program was:" >&5
6379
sed 's/^/| /' conftest.$ac_ext >&5
6382
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6385
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6386
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"
6388
if test "$host_cpu" = ia64; then
6389
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6390
allow_undefined_flag="-z nodefs"
6391
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6393
# Determine the default libpath from the value encoded in an empty executable.
6394
cat >conftest.$ac_ext <<_ACEOF
6395
#line $LINENO "configure"
6398
cat confdefs.h >>conftest.$ac_ext
6399
cat >>conftest.$ac_ext <<_ACEOF
6400
/* end confdefs.h. */
6410
rm -f conftest.$ac_objext conftest$ac_exeext
6411
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412
(eval $ac_link) 2>&5
6414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415
(exit $ac_status); } &&
6416
{ ac_try='test -s conftest$ac_exeext'
6417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421
(exit $ac_status); }; }; then
6423
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6425
# Check for a 64-bit object if we didn't find anything.
6426
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6429
echo "$as_me: failed program was:" >&5
6430
sed 's/^/| /' conftest.$ac_ext >&5
6433
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6436
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6437
# Warning - without using the other run time loading flags,
6438
# -berok will link without error, but may produce a broken library.
6439
no_undefined_flag=' ${wl}-bernotok'
6440
allow_undefined_flag=' ${wl}-berok'
6441
# -bexpall does not export symbols beginning with underscore (_)
6442
always_export_symbols=yes
6443
# Exported symbols can be pulled into shared objects from archives
6444
whole_archive_flag_spec=' '
6445
archive_cmds_need_lc=yes
6446
# This is similar to how AIX traditionally builds it's shared libraries.
6447
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6453
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)'
6454
hardcode_libdir_flag_spec='-L$libdir'
6455
hardcode_minus_L=yes
6456
# see comment about different semantics on the GNU ld section
6461
export_dynamic_flag_spec=-rdynamic
6464
cygwin* | mingw* | pw32*)
6465
# When not using gcc, we currently assume that we are using
6466
# Microsoft Visual C++.
6467
# hardcode_libdir_flag_spec is actually meaningless, as there is
6468
# no search path for DLLs.
6469
hardcode_libdir_flag_spec=' '
6470
allow_undefined_flag=unsupported
6471
# Tell ltmain to make .lib files, not .a files.
6473
# Tell ltmain to make .dll files, not .so files.
6475
# FIXME: Setting linknames here is a bad hack.
6476
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6477
# The linker will automatically build a .lib file if we build a DLL.
6478
old_archive_From_new_cmds='true'
6479
# FIXME: Should let the user specify the lib program.
6480
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6481
fix_srcfile_path='`cygpath -w "$srcfile"`'
6482
enable_shared_with_static_runtimes=yes
6485
darwin* | rhapsody*)
6486
if test "$GXX" = yes ; then
6487
archive_cmds_need_lc=no
6489
rhapsody* | darwin1.[012])
6490
allow_undefined_flag='-undefined suppress'
6493
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6494
allow_undefined_flag='-flat_namespace -undefined suppress'
6496
case ${MACOSX_DEPLOYMENT_TARGET} in
6498
allow_undefined_flag='-flat_namespace -undefined suppress'
6501
allow_undefined_flag='-undefined dynamic_lookup'
6507
lt_int_apple_cc_single_mod=no
6508
output_verbose_link_cmd='echo'
6509
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6510
lt_int_apple_cc_single_mod=yes
6512
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6513
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6515
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6517
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6518
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6519
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6520
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6522
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6524
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6526
hardcode_automatic=yes
6527
hardcode_shlibpath_var=unsupported
6528
whole_archive_flag_spec='-all_load $convenience'
6529
link_all_deplibs=yes
6536
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6537
hardcode_libdir_flag_spec='-L$libdir'
6538
hardcode_shlibpath_var=no
6545
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6546
# support. Future versions do this automatically, but an explicit c++rt0.o
6547
# does not break anything, and helps significantly (at the cost of a little
6550
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6551
hardcode_libdir_flag_spec='-R$libdir'
6553
hardcode_shlibpath_var=no
6556
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6558
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6560
hardcode_minus_L=yes
6561
hardcode_shlibpath_var=no
6564
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6565
freebsd* | kfreebsd*-gnu)
6566
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6567
hardcode_libdir_flag_spec='-R$libdir'
6569
hardcode_shlibpath_var=no
6573
if test "$GCC" = yes; then
6574
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6576
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'
6578
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6579
hardcode_libdir_separator=:
6582
# hardcode_minus_L: Not really in the search PATH,
6583
# but as the default location of the library.
6584
hardcode_minus_L=yes
6585
export_dynamic_flag_spec='${wl}-E'
6589
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6592
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6595
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6601
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6604
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6608
if test "$with_gnu_ld" = no; then
6611
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6612
hardcode_libdir_flag_spec_ld='+b $libdir'
6613
hardcode_libdir_separator=:
6615
hardcode_shlibpath_var=no
6618
hardcode_libdir_flag_spec='-L$libdir'
6620
hardcode_shlibpath_var=no
6622
# hardcode_minus_L: Not really in the search PATH,
6623
# but as the default location of the library.
6624
hardcode_minus_L=yes
6627
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6628
hardcode_libdir_separator=:
6630
export_dynamic_flag_spec='${wl}-E'
6632
# hardcode_minus_L: Not really in the search PATH,
6633
# but as the default location of the library.
6634
hardcode_minus_L=yes
6640
irix5* | irix6* | nonstopux*)
6641
if test "$GCC" = yes; then
6642
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'
6644
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'
6645
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6647
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6648
hardcode_libdir_separator=:
6649
link_all_deplibs=yes
6653
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6654
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6656
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6658
hardcode_libdir_flag_spec='-R$libdir'
6660
hardcode_shlibpath_var=no
6664
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6666
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6667
hardcode_libdir_separator=:
6668
hardcode_shlibpath_var=no
6673
hardcode_shlibpath_var=no
6674
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6675
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6676
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6677
export_dynamic_flag_spec='${wl}-E'
6680
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6681
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6682
hardcode_libdir_flag_spec='-R$libdir'
6685
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6686
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6693
hardcode_libdir_flag_spec='-L$libdir'
6694
hardcode_minus_L=yes
6695
allow_undefined_flag=unsupported
6696
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'
6697
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6701
if test "$GCC" = yes; then
6702
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6703
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'
6705
allow_undefined_flag=' -expect_unresolved \*'
6706
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'
6708
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6709
hardcode_libdir_separator=:
6712
osf4* | osf5*) # as osf3* with the addition of -msym flag
6713
if test "$GCC" = yes; then
6714
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6715
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'
6716
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6718
allow_undefined_flag=' -expect_unresolved \*'
6719
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'
6720
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6721
$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'
6723
# Both c and cxx compiler support -rpath directly
6724
hardcode_libdir_flag_spec='-rpath $libdir'
6726
hardcode_libdir_separator=:
6730
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6731
hardcode_shlibpath_var=no
6732
export_dynamic_flag_spec='${wl}-Bexport'
6733
runpath_var=LD_RUN_PATH
6734
hardcode_runpath_var=yes
6738
no_undefined_flag=' -z text'
6739
if test "$GCC" = yes; then
6740
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6741
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6742
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6744
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6745
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6746
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6748
hardcode_libdir_flag_spec='-R$libdir'
6749
hardcode_shlibpath_var=no
6751
solaris2.[0-5] | solaris2.[0-5].*) ;;
6752
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6753
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6755
link_all_deplibs=yes
6759
if test "x$host_vendor" = xsequent; then
6760
# Use $CC to link under sequent, because it throws in some extra .o
6761
# files that make .init and .fini sections work.
6762
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6764
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6766
hardcode_libdir_flag_spec='-L$libdir'
6768
hardcode_minus_L=yes
6769
hardcode_shlibpath_var=no
6773
case $host_vendor in
6775
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6776
hardcode_direct=yes # is this really true???
6779
## LD is ld it makes a PLAMLIB
6780
## CC just makes a GrossModule.
6781
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6782
reload_cmds='$CC -r -o $output$reload_objs'
6786
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6787
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6790
runpath_var='LD_RUN_PATH'
6791
hardcode_shlibpath_var=no
6795
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6796
hardcode_shlibpath_var=no
6797
export_dynamic_flag_spec='-Bexport'
6801
if test -d /usr/nec; then
6802
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6803
hardcode_shlibpath_var=no
6804
runpath_var=LD_RUN_PATH
6805
hardcode_runpath_var=yes
6811
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6814
hardcode_shlibpath_var=no
6815
hardcode_runpath_var=yes
6816
runpath_var=LD_RUN_PATH
6819
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6820
no_undefined_flag='${wl}-z ${wl}text'
6821
if test "$GCC" = yes; then
6822
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6824
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6826
runpath_var='LD_RUN_PATH'
6827
hardcode_shlibpath_var=no
6831
no_undefined_flag=' -z text'
6832
# $CC -shared without GNU ld will not create a library from C++
6833
# object files and a static libstdc++, better avoid it by now
6834
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6835
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6836
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6837
hardcode_libdir_flag_spec=
6838
hardcode_shlibpath_var=no
6839
runpath_var='LD_RUN_PATH'
6843
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6844
hardcode_libdir_flag_spec='-L$libdir'
6845
hardcode_shlibpath_var=no
6854
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6855
echo "${ECHO_T}$ld_shlibs" >&6
3701
6856
test "$ld_shlibs" = no && can_build_shared=no
3703
# Check hardcoding attributes.
3704
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3705
echo "configure:3706: checking how to hardcode library paths into programs" >&5
6858
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6859
if test "$GCC" = yes; then
6860
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6864
# Do we need to explicitly link libc?
6866
case "x$archive_cmds_need_lc" in
6868
# Assume -lc should be added
6869
archive_cmds_need_lc=yes
6871
if test "$enable_shared" = yes && test "$GCC" = yes; then
6872
case $archive_cmds in
6874
# FIXME: we may have to deal with multi-command sequences.
6877
# Test whether the compiler implicitly links with -lc since on some
6878
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6879
# to ld, don't add -lc before -lgcc.
6880
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6881
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6883
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886
(eval $ac_compile) 2>&5
6888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889
(exit $ac_status); } 2>conftest.err; then
6892
libobjs=conftest.$ac_objext
6894
wl=$lt_prog_compiler_wl
6900
lt_save_allow_undefined_flag=$allow_undefined_flag
6901
allow_undefined_flag=
6902
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6903
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906
(exit $ac_status); }
6908
archive_cmds_need_lc=no
6910
archive_cmds_need_lc=yes
6912
allow_undefined_flag=$lt_save_allow_undefined_flag
6914
cat conftest.err 1>&5
6917
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6918
echo "${ECHO_T}$archive_cmds_need_lc" >&6
6925
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6926
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6928
libname_spec='lib$name'
6936
shlibpath_overrides_runpath=unknown
6938
dynamic_linker="$host_os ld.so"
6939
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6940
if test "$GCC" = yes; then
6941
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6942
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6943
# if the path contains ";" then we assume it to be the separator
6944
# otherwise default to the standard path separator (i.e. ":") - it is
6945
# assumed that no part of a normal pathname contains ";" but that should
6946
# okay in the real world where ";" in dirpaths is itself problematic.
6947
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6949
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6952
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6954
need_lib_prefix=unknown
6955
hardcode_into_libs=no
6957
# when you set need_version to no, make sure it does not cause -set_version
6958
# flags to be left without arguments
6959
need_version=unknown
6964
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6965
shlibpath_var=LIBPATH
6967
# AIX 3 has no versioning support, so we append a major version to the name.
6968
soname_spec='${libname}${release}${shared_ext}$major'
6975
hardcode_into_libs=yes
6976
if test "$host_cpu" = ia64; then
6977
# AIX 5 supports IA64
6978
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6979
shlibpath_var=LD_LIBRARY_PATH
6981
# With GCC up to 2.95.x, collect2 would create an import file
6982
# for dependence libraries. The import file would start with
6983
# the line `#! .'. This would cause the generated library to
6984
# depend on `.', always an invalid library. This was fixed in
6985
# development snapshots of GCC prior to 3.0.
6987
aix4 | aix4.[01] | aix4.[01].*)
6988
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6990
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6997
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6998
# soname into executable. Probably we can add versioning support to
6999
# collect2, so additional links can be useful in future.
7000
if test "$aix_use_runtimelinking" = yes; then
7001
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7002
# instead of lib<name>.a to let people know that these are not
7003
# typical AIX shared libraries.
7004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7006
# We preserve .a as extension for shared libraries through AIX4.2
7007
# and later when we are not doing run time linking.
7008
library_names_spec='${libname}${release}.a $libname.a'
7009
soname_spec='${libname}${release}${shared_ext}$major'
7011
shlibpath_var=LIBPATH
7016
library_names_spec='$libname.ixlibrary $libname.a'
7017
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7018
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7022
library_names_spec='${libname}${shared_ext}'
7023
dynamic_linker="$host_os ld.so"
7024
shlibpath_var=LIBRARY_PATH
7030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7031
soname_spec='${libname}${release}${shared_ext}$major'
7032
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7033
shlibpath_var=LD_LIBRARY_PATH
7034
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7035
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7036
# the default ld.so.conf also contains /usr/contrib/lib and
7037
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7038
# libtool to hard-code these into programs
7041
cygwin* | mingw* | pw32*)
7042
version_type=windows
7047
case $GCC,$host_os in
7048
yes,cygwin* | yes,mingw* | yes,pw32*)
7049
library_names_spec='$libname.dll.a'
7050
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7051
postinstall_cmds='base_file=`basename \${file}`~
7052
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7053
dldir=$destdir/`dirname \$dlpath`~
7054
test -d \$dldir || mkdir -p \$dldir~
7055
$install_prog $dir/$dlname \$dldir/$dlname'
7056
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7057
dlpath=$dir/\$dldll~
7059
shlibpath_overrides_runpath=yes
7063
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7064
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7065
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7068
# MinGW DLLs use traditional 'lib' prefix
7069
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7070
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7071
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7072
# It is most probably a Windows format PATH printed by
7073
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7074
# path with ; separators, and with drive letters. We can handle the
7075
# drive letters (cygwin fileutils understands them), so leave them,
7076
# especially as we might pass files found there to a mingw objdump,
7077
# which wouldn't understand a cygwinified path. Ahh.
7078
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7080
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7084
# pw32 DLLs use 'pw' prefix rather than 'lib'
7085
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7091
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7094
dynamic_linker='Win32 ld.exe'
7095
# FIXME: first we should search . and the directory the executable is in
7099
darwin* | rhapsody*)
7100
dynamic_linker="$host_os dyld"
7104
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7105
soname_spec='${libname}${release}${major}$shared_ext'
7106
shlibpath_overrides_runpath=yes
7107
shlibpath_var=DYLD_LIBRARY_PATH
7108
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7109
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7110
if test "$GCC" = yes; then
7111
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7113
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7115
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7123
soname_spec='${libname}${release}${shared_ext}$major'
7124
shlibpath_var=LD_LIBRARY_PATH
7135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7136
soname_spec='${libname}${release}${shared_ext}$major'
7137
shlibpath_var=LD_LIBRARY_PATH
7138
shlibpath_overrides_runpath=no
7139
hardcode_into_libs=yes
7140
dynamic_linker='GNU ld.so'
7144
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7145
version_type=freebsd-$objformat
7146
case $version_type in
7148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7153
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7157
shlibpath_var=LD_LIBRARY_PATH
7160
shlibpath_overrides_runpath=yes
7162
freebsd3.01* | freebsdelf3.01*)
7163
shlibpath_overrides_runpath=yes
7164
hardcode_into_libs=yes
7167
shlibpath_overrides_runpath=no
7168
hardcode_into_libs=yes
7177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7178
soname_spec='${libname}${release}${shared_ext}$major'
7179
shlibpath_var=LD_LIBRARY_PATH
7180
hardcode_into_libs=yes
7183
hpux9* | hpux10* | hpux11*)
7184
# Give a soname corresponding to the major version so that dld.sl refuses to
7185
# link against other versions.
7192
hardcode_into_libs=yes
7193
dynamic_linker="$host_os dld.so"
7194
shlibpath_var=LD_LIBRARY_PATH
7195
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7197
soname_spec='${libname}${release}${shared_ext}$major'
7198
if test "X$HPUX_IA64_MODE" = X32; then
7199
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7201
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7203
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7207
hardcode_into_libs=yes
7208
dynamic_linker="$host_os dld.sl"
7209
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7210
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7212
soname_spec='${libname}${release}${shared_ext}$major'
7213
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7214
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7218
dynamic_linker="$host_os dld.sl"
7219
shlibpath_var=SHLIB_PATH
7220
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7222
soname_spec='${libname}${release}${shared_ext}$major'
7225
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7226
postinstall_cmds='chmod 555 $lib'
7229
irix5* | irix6* | nonstopux*)
7231
nonstopux*) version_type=nonstopux ;;
7233
if test "$lt_cv_prog_gnu_ld" = yes; then
7241
soname_spec='${libname}${release}${shared_ext}$major'
7242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7244
irix5* | nonstopux*)
7248
case $LD in # libtool.m4 will add one of these switches to LD
7249
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7250
libsuff= shlibsuff= libmagic=32-bit;;
7251
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7252
libsuff=32 shlibsuff=N32 libmagic=N32;;
7253
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7254
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7255
*) libsuff= shlibsuff= libmagic=never-match;;
7259
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7260
shlibpath_overrides_runpath=no
7261
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7262
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7263
hardcode_into_libs=yes
7266
# No shared lib support for Linux oldld, aout, or coff.
7267
linux*oldld* | linux*aout* | linux*coff*)
7271
# This must be Linux ELF.
7276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7277
soname_spec='${libname}${release}${shared_ext}$major'
7278
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7279
shlibpath_var=LD_LIBRARY_PATH
7280
shlibpath_overrides_runpath=no
7281
# This implies no fast_install, which is unacceptable.
7282
# Some rework will be needed to allow for fast_install
7283
# before this can be enabled.
7284
hardcode_into_libs=yes
7286
# We used to test for /lib/ld.so.1 and disable shared libraries on
7287
# powerpc, because MkLinux only supported shared libraries with the
7288
# GNU dynamic linker. Since this was broken with cross compilers,
7289
# most powerpc-linux boxes support dynamic linking these days and
7290
# people can always --disable-shared, the test was removed, and we
7291
# assume the GNU/Linux dynamic linker is in use.
7292
dynamic_linker='GNU/Linux ld.so'
7299
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7301
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7302
dynamic_linker='NetBSD (a.out) ld.so'
7304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7305
soname_spec='${libname}${release}${shared_ext}$major'
7306
dynamic_linker='NetBSD ld.elf_so'
7308
shlibpath_var=LD_LIBRARY_PATH
7309
shlibpath_overrides_runpath=yes
7310
hardcode_into_libs=yes
7315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7316
shlibpath_var=LD_LIBRARY_PATH
7317
shlibpath_overrides_runpath=yes
7324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7325
soname_spec='${libname}${release}${shared_ext}$major'
7326
shlibpath_var=LD_LIBRARY_PATH
7327
shlibpath_overrides_runpath=yes
7334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7335
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7336
shlibpath_var=LD_LIBRARY_PATH
7337
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7339
openbsd2.[89] | openbsd2.[89].*)
7340
shlibpath_overrides_runpath=no
7343
shlibpath_overrides_runpath=yes
7347
shlibpath_overrides_runpath=yes
7352
libname_spec='$name'
7355
library_names_spec='$libname${shared_ext} $libname.a'
7356
dynamic_linker='OS/2 ld.exe'
7357
shlibpath_var=LIBPATH
7360
osf3* | osf4* | osf5*)
7364
soname_spec='${libname}${release}${shared_ext}$major'
7365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7366
shlibpath_var=LD_LIBRARY_PATH
7367
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7368
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7373
soname_spec='${libname}${release}${shared_ext}$major'
7374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7375
shlibpath_var=LD_LIBRARY_PATH
7382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7383
soname_spec='${libname}${release}${shared_ext}$major'
7384
shlibpath_var=LD_LIBRARY_PATH
7385
shlibpath_overrides_runpath=yes
7386
hardcode_into_libs=yes
7387
# ldd complains unless libraries are executable
7388
postinstall_cmds='chmod +x $lib'
7393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7394
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7395
shlibpath_var=LD_LIBRARY_PATH
7396
shlibpath_overrides_runpath=yes
7397
if test "$with_gnu_ld" = yes; then
7403
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7406
soname_spec='${libname}${release}${shared_ext}$major'
7407
shlibpath_var=LD_LIBRARY_PATH
7408
case $host_vendor in
7410
shlibpath_overrides_runpath=no
7412
export_dynamic_flag_spec='${wl}-Blargedynsym'
7413
runpath_var=LD_RUN_PATH
7421
shlibpath_overrides_runpath=no
7422
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7428
if test -d /usr/nec ;then
7430
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7431
soname_spec='$libname${shared_ext}.$major'
7432
shlibpath_var=LD_LIBRARY_PATH
7438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7439
soname_spec='${libname}${release}${shared_ext}$major'
7440
shlibpath_var=LD_LIBRARY_PATH
7447
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7448
echo "${ECHO_T}$dynamic_linker" >&6
7449
test "$dynamic_linker" = no && can_build_shared=no
7451
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7452
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
3706
7453
hardcode_action=
3707
7454
if test -n "$hardcode_libdir_flag_spec" || \
3708
test -n "$runpath_var"; then
7455
test -n "$runpath_var " || \
7456
test "X$hardcode_automatic"="Xyes" ; then
3710
7458
# We can hardcode non-existant directories.
3711
7459
if test "$hardcode_direct" != no &&
3712
7460
# If the only mechanism to avoid hardcoding is shlibpath_var, we
3713
7461
# have to relink, otherwise we might link with an installed library
3714
7462
# when we should be linking with a yet-to-be-installed one
3715
## test "$hardcode_shlibpath_var" != no &&
7463
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
3716
7464
test "$hardcode_minus_L" != no; then
3717
7465
# Linking always hardcodes the temporary library directory.
3718
7466
hardcode_action=relink
5020
cygwin* | mingw* | pw32* | os2*)
5021
cat <<'EOF' >> "${ofile}T"
5022
# This is a source program that is used to create dlls on Windows
5023
# Don't remove nor modify the starting and closing comments
5024
# /* ltdll.c starts here */
5025
# #define WIN32_LEAN_AND_MEAN
5026
# #include <windows.h>
5027
# #undef WIN32_LEAN_AND_MEAN
5028
# #include <stdio.h>
5030
# #ifndef __CYGWIN__
5031
# # ifdef __CYGWIN32__
5032
# # define __CYGWIN__ __CYGWIN32__
5036
# #ifdef __cplusplus
5039
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5040
# #ifdef __cplusplus
5045
# #include <cygwin/cygwin_dll.h>
5046
# DECLARE_CYGWIN_DLL( DllMain );
5048
# HINSTANCE __hDllInstance_base;
5051
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5053
# __hDllInstance_base = hInst;
5056
# /* ltdll.c ends here */
5057
# This is a source program that is used to create import libraries
5058
# on Windows for dlls which lack them. Don't remove nor modify the
5059
# starting and closing comments
5060
# /* impgen.c starts here */
5061
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5063
# This file is part of GNU libtool.
5065
# This program is free software; you can redistribute it and/or modify
5066
# it under the terms of the GNU General Public License as published by
5067
# the Free Software Foundation; either version 2 of the License, or
5068
# (at your option) any later version.
5070
# This program is distributed in the hope that it will be useful,
5071
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5072
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5073
# GNU General Public License for more details.
5075
# You should have received a copy of the GNU General Public License
5076
# along with this program; if not, write to the Free Software
5077
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5080
# #include <stdio.h> /* for printf() */
5081
# #include <unistd.h> /* for open(), lseek(), read() */
5082
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5083
# #include <string.h> /* for strdup() */
5085
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
5087
# #define O_BINARY 0
5090
# static unsigned int
5091
# pe_get16 (fd, offset)
5095
# unsigned char b[2];
5096
# lseek (fd, offset, SEEK_SET);
5098
# return b[0] + (b[1]<<8);
5101
# static unsigned int
5102
# pe_get32 (fd, offset)
5106
# unsigned char b[4];
5107
# lseek (fd, offset, SEEK_SET);
5109
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5112
# static unsigned int
5116
# unsigned char *b = ptr;
5117
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5126
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5127
# unsigned long export_rva, export_size, nsections, secptr, expptr;
5128
# unsigned long name_rvas, nexp;
5129
# unsigned char *expdata, *erva;
5130
# char *filename, *dll_name;
5132
# filename = argv[1];
5134
# dll = open(filename, O_RDONLY|O_BINARY);
5138
# dll_name = filename;
5140
# for (i=0; filename[i]; i++)
5141
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5142
# dll_name = filename + i +1;
5144
# pe_header_offset = pe_get32 (dll, 0x3c);
5145
# opthdr_ofs = pe_header_offset + 4 + 20;
5146
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
5148
# if (num_entries < 1) /* no exports */
5151
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
5152
# export_size = pe_get32 (dll, opthdr_ofs + 100);
5153
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5154
# secptr = (pe_header_offset + 4 + 20 +
5155
# pe_get16 (dll, pe_header_offset + 4 + 16));
5158
# for (i = 0; i < nsections; i++)
5161
# unsigned long secptr1 = secptr + 40 * i;
5162
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5163
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5164
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5165
# lseek(dll, secptr1, SEEK_SET);
5166
# read(dll, sname, 8);
5167
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
5169
# expptr = fptr + (export_rva - vaddr);
5170
# if (export_rva + export_size > vaddr + vsize)
5171
# export_size = vsize - (export_rva - vaddr);
5176
# expdata = (unsigned char*)malloc(export_size);
5177
# lseek (dll, expptr, SEEK_SET);
5178
# read (dll, expdata, export_size);
5179
# erva = expdata - export_rva;
5181
# nexp = pe_as32 (expdata+24);
5182
# name_rvas = pe_as32 (expdata+32);
5184
# printf ("EXPORTS\n");
5185
# for (i = 0; i<nexp; i++)
5187
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5188
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5193
# /* impgen.c ends here */
5199
8762
# We use sed instead of cat because bash on DJGPP gets confused if
5200
8763
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5201
8764
# text mode, it properly converts lines to CR/LF. This bash problem
5202
8765
# is reportedly fixed, but why not run on old versions too?
5203
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8766
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5205
mv -f "${ofile}T" "$ofile" || \
5206
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8768
mv -f "$cfgfile" "$ofile" || \
8769
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5207
8770
chmod +x "$ofile"
8773
# If there is no Makefile yet, we rely on a make rule to execute
8774
# `config.status --recheck' to rerun these tests and create the
8775
# libtool script then.
8776
test -f Makefile && make "$ltmain"
8781
ac_cpp='$CPP $CPPFLAGS'
8782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8789
# Check whether --with-tags or --without-tags was given.
8790
if test "${with_tags+set}" = set; then
8791
withval="$with_tags"
8795
if test -f "$ltmain" && test -n "$tagnames"; then
8796
if test ! -f "${ofile}"; then
8797
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8798
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8801
if test -z "$LTCC"; then
8802
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8803
if test -z "$LTCC"; then
8804
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8805
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8807
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8808
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8812
# Extract list of available tagged configurations in $ofile.
8813
# Note that this assumes the entire list is on one line.
8814
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8816
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8817
for tagname in $tagnames; do
8819
# Check whether tagname contains only valid characters
8820
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8822
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8823
echo "$as_me: error: invalid tag name: $tagname" >&2;}
8824
{ (exit 1); exit 1; }; }
8828
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8830
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8831
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8832
{ (exit 1); exit 1; }; }
8835
# Update the list of available tags.
8836
if test -n "$tagname"; then
8837
echo appending configuration tag \"$tagname\" to $ofile
8841
if test -n "$CXX" && test "X$CXX" != "Xno"; then
8843
ac_cpp='$CXXCPP $CPPFLAGS'
8844
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8851
archive_cmds_need_lc_CXX=no
8852
allow_undefined_flag_CXX=
8853
always_export_symbols_CXX=no
8854
archive_expsym_cmds_CXX=
8855
export_dynamic_flag_spec_CXX=
8856
hardcode_direct_CXX=no
8857
hardcode_libdir_flag_spec_CXX=
8858
hardcode_libdir_flag_spec_ld_CXX=
8859
hardcode_libdir_separator_CXX=
8860
hardcode_minus_L_CXX=no
8861
hardcode_automatic_CXX=no
8863
module_expsym_cmds_CXX=
8864
link_all_deplibs_CXX=unknown
8865
old_archive_cmds_CXX=$old_archive_cmds
8866
no_undefined_flag_CXX=
8867
whole_archive_flag_spec_CXX=
8868
enable_shared_with_static_runtimes_CXX=no
8870
# Dependencies to place before and after the object being linked:
8872
postdep_objects_CXX=
8875
compiler_lib_search_path_CXX=
8877
# Source file extension for C++ test sources.
8880
# Object file extension for compiled C++ test sources.
8884
# Code to be used in simple compile tests
8885
lt_simple_compile_test_code="int some_variable = 0;\n"
8887
# Code to be used in simple link tests
8888
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8890
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8892
# If no C compiler was specified, use CC.
8895
# Allow CC to be a program name with arguments.
8899
# Allow CC to be a program name with arguments.
8904
lt_save_with_gnu_ld=$with_gnu_ld
8905
lt_save_path_LD=$lt_cv_path_LD
8906
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8907
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8909
unset lt_cv_prog_gnu_ld
8911
if test -n "${lt_cv_path_LDCXX+set}"; then
8912
lt_cv_path_LD=$lt_cv_path_LDCXX
8916
test -z "${LDCXX+set}" || LD=$LDCXX
8920
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8922
# We don't want -fno-exception wen compiling C++ code, so set the
8923
# no_builtin_flag separately
8924
if test "$GXX" = yes; then
8925
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8927
lt_prog_compiler_no_builtin_flag_CXX=
8930
if test "$GXX" = yes; then
8931
# Set up default GNU C++ configuration
8934
# Check whether --with-gnu-ld or --without-gnu-ld was given.
8935
if test "${with_gnu_ld+set}" = set; then
8936
withval="$with_gnu_ld"
8937
test "$withval" = no || with_gnu_ld=yes
8942
if test "$GCC" = yes; then
8943
# Check if gcc -print-prog-name=ld gives a path.
8944
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8945
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8948
# gcc leaves a trailing carriage return which upsets mingw
8949
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8951
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8954
# Accept absolute paths.
8956
re_direlt='/[^/][^/]*/\.\./'
8957
# Canonicalize the pathname of ld
8958
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8959
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8960
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8962
test -z "$LD" && LD="$ac_prog"
8965
# If it fails, then pretend we aren't using GCC.
8969
# If it is relative, then search for the first ld in PATH.
8973
elif test "$with_gnu_ld" = yes; then
8974
echo "$as_me:$LINENO: checking for GNU ld" >&5
8975
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8977
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8978
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8980
if test "${lt_cv_path_LD+set}" = set; then
8981
echo $ECHO_N "(cached) $ECHO_C" >&6
8983
if test -z "$LD"; then
8984
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8985
for ac_dir in $PATH; do
8987
test -z "$ac_dir" && ac_dir=.
8988
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8989
lt_cv_path_LD="$ac_dir/$ac_prog"
8990
# Check to see if the program is GNU ld. I'd rather use --version,
8991
# but apparently some GNU ld's only accept -v.
8992
# Break only if it was the GNU/non-GNU ld that we prefer.
8993
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8994
*GNU* | *'with BFD'*)
8995
test "$with_gnu_ld" != no && break
8998
test "$with_gnu_ld" != yes && break
9005
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9010
if test -n "$LD"; then
9011
echo "$as_me:$LINENO: result: $LD" >&5
9012
echo "${ECHO_T}$LD" >&6
9014
echo "$as_me:$LINENO: result: no" >&5
9015
echo "${ECHO_T}no" >&6
9017
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9018
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9019
{ (exit 1); exit 1; }; }
9020
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9021
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9022
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9023
echo $ECHO_N "(cached) $ECHO_C" >&6
9025
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9026
case `$LD -v 2>&1 </dev/null` in
9027
*GNU* | *'with BFD'*)
9028
lt_cv_prog_gnu_ld=yes
9031
lt_cv_prog_gnu_ld=no
9035
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9036
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9037
with_gnu_ld=$lt_cv_prog_gnu_ld
9041
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9042
# archiving commands below assume that GNU ld is being used.
9043
if test "$with_gnu_ld" = yes; then
9044
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9047
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9048
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9050
# If archive_cmds runs LD, not CC, wlarc should be empty
9051
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9052
# investigate it a little bit more. (MM)
9055
# ancient GNU ld didn't support --whole-archive et. al.
9056
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9057
grep 'no-whole-archive' > /dev/null; then
9058
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9060
whole_archive_flag_spec_CXX=
9066
# A generic and very simple default shared library creation
9067
# command for GNU C++ for the case where it uses the native
9068
# linker, instead of GNU ld. If possible, this setting should
9069
# overridden to take advantage of the native linker features on
9070
# the platform it is being used on.
9071
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9074
# Commands to make compiler produce verbose output that lists
9075
# what "hidden" libraries, object files and flags are used when
9076
# linking a shared library.
9077
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9085
# PORTME: fill in a description of your system's C++ link characteristics
9086
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9087
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9091
# FIXME: insert proper C++ library support
9095
if test "$host_cpu" = ia64; then
9096
# On IA64, the linker does run time linking by default, so we don't
9097
# have to do anything special.
9098
aix_use_runtimelinking=no
9099
exp_sym_flag='-Bexport'
9102
aix_use_runtimelinking=no
9104
# Test if we are trying to use run time linking or normal
9105
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9106
# need to do runtime linking.
9107
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9108
for ld_flag in $LDFLAGS; do
9111
aix_use_runtimelinking=yes
9118
exp_sym_flag='-bexport'
9119
no_entry_flag='-bnoentry'
9122
# When large executables or shared objects are built, AIX ld can
9123
# have problems creating the table of contents. If linking a library
9124
# or program results in "error TOC overflow" add -mminimal-toc to
9125
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9126
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9129
hardcode_direct_CXX=yes
9130
hardcode_libdir_separator_CXX=':'
9131
link_all_deplibs_CXX=yes
9133
if test "$GXX" = yes; then
9134
case $host_os in aix4.012|aix4.012.*)
9135
# We only want to do this on AIX 4.2 and lower, the check
9136
# below for broken collect2 doesn't work under 4.3+
9137
collect2name=`${CC} -print-prog-name=collect2`
9138
if test -f "$collect2name" && \
9139
strings "$collect2name" | grep resolve_lib_name >/dev/null
9141
# We have reworked collect2
9142
hardcode_direct_CXX=yes
9144
# We have old collect2
9145
hardcode_direct_CXX=unsupported
9146
# It fails to find uninstalled libraries when the uninstalled
9147
# path is not listed in the libpath. Setting hardcode_minus_L
9148
# to unsupported forces relinking
9149
hardcode_minus_L_CXX=yes
9150
hardcode_libdir_flag_spec_CXX='-L$libdir'
9151
hardcode_libdir_separator_CXX=
9154
shared_flag='-shared'
9157
if test "$host_cpu" = ia64; then
9158
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9159
# chokes on -Wl,-G. The following line is correct:
9162
if test "$aix_use_runtimelinking" = yes; then
9163
shared_flag='${wl}-G'
9165
shared_flag='${wl}-bM:SRE'
9170
# It seems that -bexpall does not export symbols beginning with
9171
# underscore (_), so it is better to generate a list of symbols to export.
9172
always_export_symbols_CXX=yes
9173
if test "$aix_use_runtimelinking" = yes; then
9174
# Warning - without using the other runtime loading flags (-brtl),
9175
# -berok will link without error, but may produce a broken library.
9176
allow_undefined_flag_CXX='-berok'
9177
# Determine the default libpath from the value encoded in an empty executable.
9178
cat >conftest.$ac_ext <<_ACEOF
9179
#line $LINENO "configure"
9182
cat confdefs.h >>conftest.$ac_ext
9183
cat >>conftest.$ac_ext <<_ACEOF
9184
/* end confdefs.h. */
9194
rm -f conftest.$ac_objext conftest$ac_exeext
9195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196
(eval $ac_link) 2>&5
9198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199
(exit $ac_status); } &&
9200
{ ac_try='test -s conftest$ac_exeext'
9201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205
(exit $ac_status); }; }; then
9207
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9209
# Check for a 64-bit object if we didn't find anything.
9210
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9213
echo "$as_me: failed program was:" >&5
9214
sed 's/^/| /' conftest.$ac_ext >&5
9217
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9220
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9222
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9224
if test "$host_cpu" = ia64; then
9225
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9226
allow_undefined_flag_CXX="-z nodefs"
9227
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9229
# Determine the default libpath from the value encoded in an empty executable.
9230
cat >conftest.$ac_ext <<_ACEOF
9231
#line $LINENO "configure"
9234
cat confdefs.h >>conftest.$ac_ext
9235
cat >>conftest.$ac_ext <<_ACEOF
9236
/* end confdefs.h. */
9246
rm -f conftest.$ac_objext conftest$ac_exeext
9247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248
(eval $ac_link) 2>&5
9250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251
(exit $ac_status); } &&
9252
{ ac_try='test -s conftest$ac_exeext'
9253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257
(exit $ac_status); }; }; then
9259
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9261
# Check for a 64-bit object if we didn't find anything.
9262
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9265
echo "$as_me: failed program was:" >&5
9266
sed 's/^/| /' conftest.$ac_ext >&5
9269
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9270
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9272
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9273
# Warning - without using the other run time loading flags,
9274
# -berok will link without error, but may produce a broken library.
9275
no_undefined_flag_CXX=' ${wl}-bernotok'
9276
allow_undefined_flag_CXX=' ${wl}-berok'
9277
# -bexpall does not export symbols beginning with underscore (_)
9278
always_export_symbols_CXX=yes
9279
# Exported symbols can be pulled into shared objects from archives
9280
whole_archive_flag_spec_CXX=' '
9281
archive_cmds_need_lc_CXX=yes
9282
# This is similar to how AIX traditionally builds it's shared libraries.
9283
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9288
case $cc_basename in
9290
# FIXME: insert proper C++ library support
9296
cygwin* | mingw* | pw32*)
9297
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9298
# as there is no search path for DLLs.
9299
hardcode_libdir_flag_spec_CXX='-L$libdir'
9300
allow_undefined_flag_CXX=unsupported
9301
always_export_symbols_CXX=no
9302
enable_shared_with_static_runtimes_CXX=yes
9304
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9305
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9306
# If the export-symbols file already is a .def file (1st line
9307
# is EXPORTS), use it as is; otherwise, prepend...
9308
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9309
cp $export_symbols $output_objdir/$soname.def;
9311
echo EXPORTS > $output_objdir/$soname.def;
9312
cat $export_symbols >> $output_objdir/$soname.def;
9314
$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'
9320
darwin* | rhapsody*)
9321
if test "$GXX" = yes; then
9322
archive_cmds_need_lc_CXX=no
9324
rhapsody* | darwin1.[012])
9325
allow_undefined_flag_CXX='-undefined suppress'
9328
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9329
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9331
case ${MACOSX_DEPLOYMENT_TARGET} in
9333
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9336
allow_undefined_flag_CXX='-undefined dynamic_lookup'
9342
lt_int_apple_cc_single_mod=no
9343
output_verbose_link_cmd='echo'
9344
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9345
lt_int_apple_cc_single_mod=yes
9347
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9348
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9350
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9352
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9354
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9355
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9356
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9358
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9360
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9361
hardcode_direct_CXX=no
9362
hardcode_automatic_CXX=yes
9363
hardcode_shlibpath_var_CXX=unsupported
9364
whole_archive_flag_spec_CXX='-all_load $convenience'
9365
link_all_deplibs_CXX=yes
9372
case $cc_basename in
9374
# FIXME: insert proper C++ library support
9378
# Green Hills C++ Compiler
9379
# FIXME: insert proper C++ library support
9383
# FIXME: insert proper C++ library support
9389
# C++ shared libraries reported to be fairly broken before switch to ELF
9393
archive_cmds_need_lc_CXX=no
9395
freebsd* | kfreebsd*-gnu)
9396
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9403
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9404
hardcode_libdir_separator_CXX=:
9405
export_dynamic_flag_spec_CXX='${wl}-E'
9406
hardcode_direct_CXX=yes
9407
hardcode_minus_L_CXX=yes # Not in the search PATH,
9408
# but as the default
9409
# location of the library.
9411
case $cc_basename in
9413
# FIXME: insert proper C++ library support
9417
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9418
# Commands to make compiler produce verbose output that lists
9419
# what "hidden" libraries, object files and flags are used when
9420
# linking a shared library.
9422
# There doesn't appear to be a way to prevent this compiler from
9423
# explicitly linking system object files so we need to strip them
9424
# from the output so that they don't get included in the library
9426
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9429
if test "$GXX" = yes; then
9430
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9432
# FIXME: insert proper C++ library support
9439
if test $with_gnu_ld = no; then
9442
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9443
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9444
hardcode_libdir_separator_CXX=:
9447
hardcode_libdir_flag_spec_CXX='-L$libdir'
9450
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9451
hardcode_libdir_separator_CXX=:
9452
export_dynamic_flag_spec_CXX='${wl}-E'
9458
hardcode_direct_CXX=no
9459
hardcode_shlibpath_var_CXX=no
9462
hardcode_direct_CXX=no
9463
hardcode_shlibpath_var_CXX=no
9464
hardcode_minus_L_CXX=yes # Not in the search PATH,
9465
# but as the default
9466
# location of the library.
9469
hardcode_direct_CXX=yes
9470
hardcode_minus_L_CXX=yes # Not in the search PATH,
9471
# but as the default
9472
# location of the library.
9476
case $cc_basename in
9478
# FIXME: insert proper C++ library support
9484
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9487
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9490
# Commands to make compiler produce verbose output that lists
9491
# what "hidden" libraries, object files and flags are used when
9492
# linking a shared library.
9494
# There doesn't appear to be a way to prevent this compiler from
9495
# explicitly linking system object files so we need to strip them
9496
# from the output so that they don't get included in the library
9498
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'
9501
if test "$GXX" = yes; then
9502
if test $with_gnu_ld = no; then
9505
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9508
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9513
# FIXME: insert proper C++ library support
9520
case $cc_basename in
9523
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9525
# Archives containing C++ object files must be created using
9526
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9527
# necessary to make sure instantiated templates are included
9529
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9532
if test "$GXX" = yes; then
9533
if test "$with_gnu_ld" = no; then
9534
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9536
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9539
link_all_deplibs_CXX=yes
9542
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9543
hardcode_libdir_separator_CXX=:
9546
case $cc_basename in
9548
# Kuck and Associates, Inc. (KAI) C++ Compiler
9550
# KCC will only create a shared library if the output file
9551
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9552
# to its proper name (with version) after linking.
9553
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9554
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9555
# Commands to make compiler produce verbose output that lists
9556
# what "hidden" libraries, object files and flags are used when
9557
# linking a shared library.
9559
# There doesn't appear to be a way to prevent this compiler from
9560
# explicitly linking system object files so we need to strip them
9561
# from the output so that they don't get included in the library
9563
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'
9565
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9566
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9568
# Archives containing C++ object files must be created using
9569
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9570
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9575
archive_cmds_need_lc_CXX=no
9576
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9578
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9579
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9580
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9584
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9585
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9587
runpath_var=LD_RUN_PATH
9588
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9589
hardcode_libdir_separator_CXX=:
9591
# Commands to make compiler produce verbose output that lists
9592
# what "hidden" libraries, object files and flags are used when
9593
# linking a shared library.
9595
# There doesn't appear to be a way to prevent this compiler from
9596
# explicitly linking system object files so we need to strip them
9597
# from the output so that they don't get included in the library
9599
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'
9604
# FIXME: insert proper C++ library support
9608
# FIXME: insert proper C++ library support
9612
case $cc_basename in
9614
# FIXME: insert proper C++ library support
9618
# FIXME: insert proper C++ library support
9624
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9625
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9627
hardcode_libdir_flag_spec_CXX='-R$libdir'
9628
hardcode_direct_CXX=yes
9629
hardcode_shlibpath_var_CXX=no
9631
# Workaround some broken pre-1.5 toolchains
9632
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9635
case $cc_basename in
9637
# Kuck and Associates, Inc. (KAI) C++ Compiler
9639
# KCC will only create a shared library if the output file
9640
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9641
# to its proper name (with version) after linking.
9642
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9644
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9645
hardcode_libdir_separator_CXX=:
9647
# Archives containing C++ object files must be created using
9648
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9649
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9653
# Rational C++ 2.4.1
9654
# FIXME: insert proper C++ library support
9658
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9659
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9661
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9662
hardcode_libdir_separator_CXX=:
9664
# Commands to make compiler produce verbose output that lists
9665
# what "hidden" libraries, object files and flags are used when
9666
# linking a shared library.
9668
# There doesn't appear to be a way to prevent this compiler from
9669
# explicitly linking system object files so we need to strip them
9670
# from the output so that they don't get included in the library
9672
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'
9675
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9676
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9677
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9679
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9680
hardcode_libdir_separator_CXX=:
9682
# Commands to make compiler produce verbose output that lists
9683
# what "hidden" libraries, object files and flags are used when
9684
# linking a shared library.
9685
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9688
# FIXME: insert proper C++ library support
9695
case $cc_basename in
9697
# Kuck and Associates, Inc. (KAI) C++ Compiler
9699
# KCC will only create a shared library if the output file
9700
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9701
# to its proper name (with version) after linking.
9702
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9704
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9705
hardcode_libdir_separator_CXX=:
9707
# Archives containing C++ object files must be created using
9708
# the KAI C++ compiler.
9709
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9712
# Rational C++ 2.4.1
9713
# FIXME: insert proper C++ library support
9717
allow_undefined_flag_CXX=' -expect_unresolved \*'
9718
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9719
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9720
echo "-hidden">> $lib.exp~
9721
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9724
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9725
hardcode_libdir_separator_CXX=:
9727
# Commands to make compiler produce verbose output that lists
9728
# what "hidden" libraries, object files and flags are used when
9729
# linking a shared library.
9731
# There doesn't appear to be a way to prevent this compiler from
9732
# explicitly linking system object files so we need to strip them
9733
# from the output so that they don't get included in the library
9735
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'
9738
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9739
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9740
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9742
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9743
hardcode_libdir_separator_CXX=:
9745
# Commands to make compiler produce verbose output that lists
9746
# what "hidden" libraries, object files and flags are used when
9747
# linking a shared library.
9748
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9751
# FIXME: insert proper C++ library support
9758
# FIXME: insert proper C++ library support
9762
archive_cmds_need_lc_CXX=no
9763
case $cc_basename in
9765
# FIXME: insert proper C++ library support
9769
# FIXME: insert proper C++ library support
9775
case $cc_basename in
9778
# FIXME: insert proper C++ library support
9783
# FIXME: insert proper C++ library support
9787
# FIXME: insert proper C++ library support
9793
case $cc_basename in
9795
# Sun C++ 4.2, 5.x and Centerline C++
9796
no_undefined_flag_CXX=' -zdefs'
9797
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9798
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9799
$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'
9801
hardcode_libdir_flag_spec_CXX='-R$libdir'
9802
hardcode_shlibpath_var_CXX=no
9804
solaris2.0-5 | solaris2.0-5.*) ;;
9806
# The C++ compiler is used as linker so we must use $wl
9807
# flag to pass the commands to the underlying system
9809
# Supported since Solaris 2.6 (maybe 2.5.1?)
9810
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9813
link_all_deplibs_CXX=yes
9815
# Commands to make compiler produce verbose output that lists
9816
# what "hidden" libraries, object files and flags are used when
9817
# linking a shared library.
9819
# There doesn't appear to be a way to prevent this compiler from
9820
# explicitly linking system object files so we need to strip them
9821
# from the output so that they don't get included in the library
9823
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'
9825
# Archives containing C++ object files must be created using
9826
# "CC -xar", where "CC" is the Sun C++ compiler. This is
9827
# necessary to make sure instantiated templates are included
9829
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9832
# Green Hills C++ Compiler
9833
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9835
# The C++ compiler must be used to create the archive.
9836
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9839
# GNU C++ compiler with Solaris linker
9840
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9841
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9842
if $CC --version | grep -v '^2\.7' > /dev/null; then
9843
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9844
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9845
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9847
# Commands to make compiler produce verbose output that lists
9848
# what "hidden" libraries, object files and flags are used when
9849
# linking a shared library.
9850
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9852
# g++ 2.7 appears to require `-G' NOT `-shared' on this
9854
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9855
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9856
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9858
# Commands to make compiler produce verbose output that lists
9859
# what "hidden" libraries, object files and flags are used when
9860
# linking a shared library.
9861
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9864
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9869
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9870
archive_cmds_need_lc_CXX=no
9873
case $cc_basename in
9875
# NonStop-UX NCC 3.20
9876
# FIXME: insert proper C++ library support
9880
# FIXME: insert proper C++ library support
9886
# FIXME: insert proper C++ library support
9890
# FIXME: insert proper C++ library support
9894
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9895
echo "${ECHO_T}$ld_shlibs_CXX" >&6
9896
test "$ld_shlibs_CXX" = no && can_build_shared=no
9902
cat > conftest.$ac_ext <<EOF
9906
Foo (void) { a = 0; }
9912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913
(eval $ac_compile) 2>&5
9915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916
(exit $ac_status); }; then
9917
# Parse the compiler output and extract the necessary
9918
# objects, libraries and library flags.
9920
# Sentinel used to keep track of whether or not we are before
9921
# the conftest object file.
9922
pre_test_object_deps_done=no
9924
# The `*' in the case matches for architectures that use `case' in
9925
# $output_verbose_cmd can trigger glob expansion during the loop
9926
# eval without this substitution.
9927
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9929
for p in `eval $output_verbose_link_cmd`; do
9933
# Some compilers place space between "-{L,R}" and the path.
9936
|| test $p = "-R"; then
9943
if test "$pre_test_object_deps_done" = no; then
9946
# Internal compiler library paths should come after those
9947
# provided the user. The postdeps already come after the
9948
# user supplied libs so there is no need to process them.
9949
if test -z "$compiler_lib_search_path_CXX"; then
9950
compiler_lib_search_path_CXX="${prev}${p}"
9952
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9955
# The "-l" case would never come before the object being
9956
# linked, so don't bother handling this case.
9959
if test -z "$postdeps_CXX"; then
9960
postdeps_CXX="${prev}${p}"
9962
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9968
# This assumes that the test object file only shows up
9969
# once in the compiler output.
9970
if test "$p" = "conftest.$objext"; then
9971
pre_test_object_deps_done=yes
9975
if test "$pre_test_object_deps_done" = no; then
9976
if test -z "$predep_objects_CXX"; then
9977
predep_objects_CXX="$p"
9979
predep_objects_CXX="$predep_objects_CXX $p"
9982
if test -z "$postdep_objects_CXX"; then
9983
postdep_objects_CXX="$p"
9985
postdep_objects_CXX="$postdep_objects_CXX $p"
9990
*) ;; # Ignore the rest.
9998
echo "libtool.m4: error: problem compiling CXX test program"
10001
$rm -f confest.$objext
10003
case " $postdeps_CXX " in
10004
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10007
lt_prog_compiler_wl_CXX=
10008
lt_prog_compiler_pic_CXX=
10009
lt_prog_compiler_static_CXX=
10011
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10012
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10014
# C++ specific cases for pic, static, wl, etc.
10015
if test "$GXX" = yes; then
10016
lt_prog_compiler_wl_CXX='-Wl,'
10017
lt_prog_compiler_static_CXX='-static'
10021
# All AIX code is PIC.
10022
if test "$host_cpu" = ia64; then
10023
# AIX 5 now supports IA64 processor
10024
lt_prog_compiler_static_CXX='-Bstatic'
10028
# FIXME: we need at least 68020 code to build shared libraries, but
10029
# adding the `-m68020' flag to GCC prevents building anything better,
10031
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10033
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10034
# PIC is the default for these OSes.
10036
mingw* | os2* | pw32*)
10037
# This hack is so that the source file can tell whether it is being
10038
# built for inclusion in a dll (and should export symbols for example).
10039
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10041
darwin* | rhapsody*)
10042
# PIC is the default on this platform
10043
# Common symbols not allowed in MH_DYLIB files
10044
lt_prog_compiler_pic_CXX='-fno-common'
10047
# DJGPP does not support shared libraries at all
10048
lt_prog_compiler_pic_CXX=
10051
if test -d /usr/nec; then
10052
lt_prog_compiler_pic_CXX=-Kconform_pic
10056
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10057
# not for PA HP-UX.
10058
case "$host_cpu" in
10062
lt_prog_compiler_pic_CXX='-fPIC'
10067
lt_prog_compiler_pic_CXX='-fPIC'
10073
# All AIX code is PIC.
10074
if test "$host_cpu" = ia64; then
10075
# AIX 5 now supports IA64 processor
10076
lt_prog_compiler_static_CXX='-Bstatic'
10078
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10082
case $cc_basename in
10084
# Green Hills C++ Compiler
10085
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10090
case $cc_basename in
10092
lt_prog_compiler_pic_CXX='-KPIC'
10095
# Green Hills C++ Compiler
10096
lt_prog_compiler_pic_CXX='-pic'
10102
freebsd* | kfreebsd*-gnu)
10103
# FreeBSD uses GNU C++
10105
hpux9* | hpux10* | hpux11*)
10106
case $cc_basename in
10108
lt_prog_compiler_wl_CXX='-Wl,'
10109
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10110
if test "$host_cpu" != ia64; then
10111
lt_prog_compiler_pic_CXX='+Z'
10115
lt_prog_compiler_wl_CXX='-Wl,'
10116
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10117
case "$host_cpu" in
10122
lt_prog_compiler_pic_CXX='+Z'
10130
irix5* | irix6* | nonstopux*)
10131
case $cc_basename in
10133
lt_prog_compiler_wl_CXX='-Wl,'
10134
lt_prog_compiler_static_CXX='-non_shared'
10135
# CC pic flag -KPIC is the default.
10142
case $cc_basename in
10145
lt_prog_compiler_wl_CXX='--backend -Wl,'
10146
lt_prog_compiler_pic_CXX='-fPIC'
10150
lt_prog_compiler_wl_CXX='-Wl,'
10151
lt_prog_compiler_pic_CXX='-KPIC'
10152
lt_prog_compiler_static_CXX='-static'
10156
# Make sure the PIC flag is empty. It appears that all Alpha
10157
# Linux and Compaq Tru64 Unix objects are PIC.
10158
lt_prog_compiler_pic_CXX=
10159
lt_prog_compiler_static_CXX='-non_shared'
10170
case $cc_basename in
10172
lt_prog_compiler_pic_CXX='-W c,exportall'
10180
osf3* | osf4* | osf5*)
10181
case $cc_basename in
10183
lt_prog_compiler_wl_CXX='--backend -Wl,'
10186
# Rational C++ 2.4.1
10187
lt_prog_compiler_pic_CXX='-pic'
10190
# Digital/Compaq C++
10191
lt_prog_compiler_wl_CXX='-Wl,'
10192
# Make sure the PIC flag is empty. It appears that all Alpha
10193
# Linux and Compaq Tru64 Unix objects are PIC.
10194
lt_prog_compiler_pic_CXX=
10195
lt_prog_compiler_static_CXX='-non_shared'
10204
case $cc_basename in
10206
lt_prog_compiler_pic_CXX='-fPIC'
10213
case $cc_basename in
10215
# Sun C++ 4.2, 5.x and Centerline C++
10216
lt_prog_compiler_pic_CXX='-KPIC'
10217
lt_prog_compiler_static_CXX='-Bstatic'
10218
lt_prog_compiler_wl_CXX='-Qoption ld '
10221
# Green Hills C++ Compiler
10222
lt_prog_compiler_pic_CXX='-PIC'
10229
case $cc_basename in
10232
lt_prog_compiler_pic_CXX='-pic'
10233
lt_prog_compiler_static_CXX='-Bstatic'
10237
lt_prog_compiler_pic_CXX='-pic'
10244
case $cc_basename in
10246
# NonStop-UX NCC 3.20
10247
lt_prog_compiler_pic_CXX='-KPIC'
10258
lt_prog_compiler_can_build_shared_CXX=no
10263
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10264
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10267
# Check to make sure the PIC flag actually works.
10269
if test -n "$lt_prog_compiler_pic_CXX"; then
10271
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10272
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10273
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10274
echo $ECHO_N "(cached) $ECHO_C" >&6
10276
lt_prog_compiler_pic_works_CXX=no
10277
ac_outfile=conftest.$ac_objext
10278
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10279
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10280
# Insert the option either (1) after the last *FLAGS variable, or
10281
# (2) before a word containing "conftest.", or (3) at the end.
10282
# Note that $ac_compile itself does not contain backslashes and begins
10283
# with a dollar sign (not a hyphen), so the echo should work correctly.
10284
# The option is referenced via a variable to avoid confusing sed.
10285
lt_compile=`echo "$ac_compile" | $SED \
10286
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10287
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10288
-e 's:$: $lt_compiler_flag:'`
10289
(eval echo "\"\$as_me:10289: $lt_compile\"" >&5)
10290
(eval "$lt_compile" 2>conftest.err)
10292
cat conftest.err >&5
10293
echo "$as_me:10293: \$? = $ac_status" >&5
10294
if (exit $ac_status) && test -s "$ac_outfile"; then
10295
# The compiler can only warn and ignore the option if not recognized
10296
# So say no if there are warnings
10297
if test ! -s conftest.err; then
10298
lt_prog_compiler_pic_works_CXX=yes
10304
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10305
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10307
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10308
case $lt_prog_compiler_pic_CXX in
10310
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10313
lt_prog_compiler_pic_CXX=
10314
lt_prog_compiler_can_build_shared_CXX=no
10319
# For platforms which do not support PIC, -DPIC is meaningless:
10321
lt_prog_compiler_pic_CXX=
10324
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10328
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10329
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10330
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10331
echo $ECHO_N "(cached) $ECHO_C" >&6
10333
lt_cv_prog_compiler_c_o_CXX=no
10334
$rm -r conftest 2>/dev/null
10338
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10340
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10341
# that will create temporary files in the current directory regardless of
10342
# the output directory. Thus, making CWD read-only will cause this test
10343
# to fail, enabling locking or at least warning the user not to do parallel
10347
lt_compiler_flag="-o out/conftest2.$ac_objext"
10348
# Insert the option either (1) after the last *FLAGS variable, or
10349
# (2) before a word containing "conftest.", or (3) at the end.
10350
# Note that $ac_compile itself does not contain backslashes and begins
10351
# with a dollar sign (not a hyphen), so the echo should work correctly.
10352
lt_compile=`echo "$ac_compile" | $SED \
10353
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10354
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10355
-e 's:$: $lt_compiler_flag:'`
10356
(eval echo "\"\$as_me:10356: $lt_compile\"" >&5)
10357
(eval "$lt_compile" 2>out/conftest.err)
10359
cat out/conftest.err >&5
10360
echo "$as_me:10360: \$? = $ac_status" >&5
10361
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10363
# The compiler can only warn and ignore the option if not recognized
10364
# So say no if there are warnings
10365
if test ! -s out/conftest.err; then
10366
lt_cv_prog_compiler_c_o_CXX=yes
10371
# SGI C++ compiler will create directory out/ii_files/ for
10372
# template instantiation
10373
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10374
$rm out/* && rmdir out
10380
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10381
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10384
hard_links="nottested"
10385
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10386
# do not overwrite the value of need_locks provided by the user
10387
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10388
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10391
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10393
ln conftest.a conftest.b 2>&5 || hard_links=no
10394
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10395
echo "$as_me:$LINENO: result: $hard_links" >&5
10396
echo "${ECHO_T}$hard_links" >&6
10397
if test "$hard_links" = no; then
10398
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10399
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10406
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10407
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10409
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10412
# If we're using GNU nm, then we don't want the "-C" option.
10413
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10414
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10415
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10417
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10421
export_symbols_cmds_CXX="$ltdll_cmds"
10424
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10427
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10431
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10432
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10433
test "$ld_shlibs_CXX" = no && can_build_shared=no
10435
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10436
if test "$GCC" = yes; then
10437
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10441
# Do we need to explicitly link libc?
10443
case "x$archive_cmds_need_lc_CXX" in
10445
# Assume -lc should be added
10446
archive_cmds_need_lc_CXX=yes
10448
if test "$enable_shared" = yes && test "$GCC" = yes; then
10449
case $archive_cmds_CXX in
10451
# FIXME: we may have to deal with multi-command sequences.
10454
# Test whether the compiler implicitly links with -lc since on some
10455
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10456
# to ld, don't add -lc before -lgcc.
10457
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10458
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10460
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463
(eval $ac_compile) 2>&5
10465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466
(exit $ac_status); } 2>conftest.err; then
10469
libobjs=conftest.$ac_objext
10471
wl=$lt_prog_compiler_wl_CXX
10477
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10478
allow_undefined_flag_CXX=
10479
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10480
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483
(exit $ac_status); }
10485
archive_cmds_need_lc_CXX=no
10487
archive_cmds_need_lc_CXX=yes
10489
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10491
cat conftest.err 1>&5
10494
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10495
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10502
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10503
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10504
library_names_spec=
10505
libname_spec='lib$name'
10509
postuninstall_cmds=
10513
shlibpath_overrides_runpath=unknown
10515
dynamic_linker="$host_os ld.so"
10516
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10517
if test "$GCC" = yes; then
10518
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10519
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10520
# if the path contains ";" then we assume it to be the separator
10521
# otherwise default to the standard path separator (i.e. ":") - it is
10522
# assumed that no part of a normal pathname contains ";" but that should
10523
# okay in the real world where ";" in dirpaths is itself problematic.
10524
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10526
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10529
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10531
need_lib_prefix=unknown
10532
hardcode_into_libs=no
10534
# when you set need_version to no, make sure it does not cause -set_version
10535
# flags to be left without arguments
10536
need_version=unknown
10541
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10542
shlibpath_var=LIBPATH
10544
# AIX 3 has no versioning support, so we append a major version to the name.
10545
soname_spec='${libname}${release}${shared_ext}$major'
10552
hardcode_into_libs=yes
10553
if test "$host_cpu" = ia64; then
10554
# AIX 5 supports IA64
10555
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10556
shlibpath_var=LD_LIBRARY_PATH
10558
# With GCC up to 2.95.x, collect2 would create an import file
10559
# for dependence libraries. The import file would start with
10560
# the line `#! .'. This would cause the generated library to
10561
# depend on `.', always an invalid library. This was fixed in
10562
# development snapshots of GCC prior to 3.0.
10564
aix4 | aix4.[01] | aix4.[01].*)
10565
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10567
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10570
can_build_shared=no
10574
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10575
# soname into executable. Probably we can add versioning support to
10576
# collect2, so additional links can be useful in future.
10577
if test "$aix_use_runtimelinking" = yes; then
10578
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10579
# instead of lib<name>.a to let people know that these are not
10580
# typical AIX shared libraries.
10581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583
# We preserve .a as extension for shared libraries through AIX4.2
10584
# and later when we are not doing run time linking.
10585
library_names_spec='${libname}${release}.a $libname.a'
10586
soname_spec='${libname}${release}${shared_ext}$major'
10588
shlibpath_var=LIBPATH
10593
library_names_spec='$libname.ixlibrary $libname.a'
10594
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10595
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10599
library_names_spec='${libname}${shared_ext}'
10600
dynamic_linker="$host_os ld.so"
10601
shlibpath_var=LIBRARY_PATH
10607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608
soname_spec='${libname}${release}${shared_ext}$major'
10609
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10610
shlibpath_var=LD_LIBRARY_PATH
10611
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10612
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10613
# the default ld.so.conf also contains /usr/contrib/lib and
10614
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10615
# libtool to hard-code these into programs
10618
cygwin* | mingw* | pw32*)
10619
version_type=windows
10624
case $GCC,$host_os in
10625
yes,cygwin* | yes,mingw* | yes,pw32*)
10626
library_names_spec='$libname.dll.a'
10627
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10628
postinstall_cmds='base_file=`basename \${file}`~
10629
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10630
dldir=$destdir/`dirname \$dlpath`~
10631
test -d \$dldir || mkdir -p \$dldir~
10632
$install_prog $dir/$dlname \$dldir/$dlname'
10633
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10634
dlpath=$dir/\$dldll~
10636
shlibpath_overrides_runpath=yes
10640
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10641
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10642
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10645
# MinGW DLLs use traditional 'lib' prefix
10646
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10648
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10649
# It is most probably a Windows format PATH printed by
10650
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10651
# path with ; separators, and with drive letters. We can handle the
10652
# drive letters (cygwin fileutils understands them), so leave them,
10653
# especially as we might pass files found there to a mingw objdump,
10654
# which wouldn't understand a cygwinified path. Ahh.
10655
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10657
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10661
# pw32 DLLs use 'pw' prefix rather than 'lib'
10662
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10668
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10671
dynamic_linker='Win32 ld.exe'
10672
# FIXME: first we should search . and the directory the executable is in
10676
darwin* | rhapsody*)
10677
dynamic_linker="$host_os dyld"
10678
version_type=darwin
10681
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10682
soname_spec='${libname}${release}${major}$shared_ext'
10683
shlibpath_overrides_runpath=yes
10684
shlibpath_var=DYLD_LIBRARY_PATH
10685
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10686
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10687
if test "$GCC" = yes; then
10688
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10690
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10692
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10700
soname_spec='${libname}${release}${shared_ext}$major'
10701
shlibpath_var=LD_LIBRARY_PATH
10712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10713
soname_spec='${libname}${release}${shared_ext}$major'
10714
shlibpath_var=LD_LIBRARY_PATH
10715
shlibpath_overrides_runpath=no
10716
hardcode_into_libs=yes
10717
dynamic_linker='GNU ld.so'
10721
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10722
version_type=freebsd-$objformat
10723
case $version_type in
10725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10730
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10734
shlibpath_var=LD_LIBRARY_PATH
10737
shlibpath_overrides_runpath=yes
10739
freebsd3.01* | freebsdelf3.01*)
10740
shlibpath_overrides_runpath=yes
10741
hardcode_into_libs=yes
10744
shlibpath_overrides_runpath=no
10745
hardcode_into_libs=yes
10754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10755
soname_spec='${libname}${release}${shared_ext}$major'
10756
shlibpath_var=LD_LIBRARY_PATH
10757
hardcode_into_libs=yes
10760
hpux9* | hpux10* | hpux11*)
10761
# Give a soname corresponding to the major version so that dld.sl refuses to
10762
# link against other versions.
10766
case "$host_cpu" in
10769
hardcode_into_libs=yes
10770
dynamic_linker="$host_os dld.so"
10771
shlibpath_var=LD_LIBRARY_PATH
10772
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774
soname_spec='${libname}${release}${shared_ext}$major'
10775
if test "X$HPUX_IA64_MODE" = X32; then
10776
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10778
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10780
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784
hardcode_into_libs=yes
10785
dynamic_linker="$host_os dld.sl"
10786
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10787
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789
soname_spec='${libname}${release}${shared_ext}$major'
10790
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10791
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10795
dynamic_linker="$host_os dld.sl"
10796
shlibpath_var=SHLIB_PATH
10797
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799
soname_spec='${libname}${release}${shared_ext}$major'
10802
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10803
postinstall_cmds='chmod 555 $lib'
10806
irix5* | irix6* | nonstopux*)
10808
nonstopux*) version_type=nonstopux ;;
10810
if test "$lt_cv_prog_gnu_ld" = yes; then
10818
soname_spec='${libname}${release}${shared_ext}$major'
10819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10821
irix5* | nonstopux*)
10822
libsuff= shlibsuff=
10825
case $LD in # libtool.m4 will add one of these switches to LD
10826
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827
libsuff= shlibsuff= libmagic=32-bit;;
10828
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829
libsuff=32 shlibsuff=N32 libmagic=N32;;
10830
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832
*) libsuff= shlibsuff= libmagic=never-match;;
10836
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837
shlibpath_overrides_runpath=no
10838
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840
hardcode_into_libs=yes
10843
# No shared lib support for Linux oldld, aout, or coff.
10844
linux*oldld* | linux*aout* | linux*coff*)
10848
# This must be Linux ELF.
10853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854
soname_spec='${libname}${release}${shared_ext}$major'
10855
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856
shlibpath_var=LD_LIBRARY_PATH
10857
shlibpath_overrides_runpath=no
10858
# This implies no fast_install, which is unacceptable.
10859
# Some rework will be needed to allow for fast_install
10860
# before this can be enabled.
10861
hardcode_into_libs=yes
10863
# We used to test for /lib/ld.so.1 and disable shared libraries on
10864
# powerpc, because MkLinux only supported shared libraries with the
10865
# GNU dynamic linker. Since this was broken with cross compilers,
10866
# most powerpc-linux boxes support dynamic linking these days and
10867
# people can always --disable-shared, the test was removed, and we
10868
# assume the GNU/Linux dynamic linker is in use.
10869
dynamic_linker='GNU/Linux ld.so'
10876
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10878
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10879
dynamic_linker='NetBSD (a.out) ld.so'
10881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10882
soname_spec='${libname}${release}${shared_ext}$major'
10883
dynamic_linker='NetBSD ld.elf_so'
10885
shlibpath_var=LD_LIBRARY_PATH
10886
shlibpath_overrides_runpath=yes
10887
hardcode_into_libs=yes
10892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893
shlibpath_var=LD_LIBRARY_PATH
10894
shlibpath_overrides_runpath=yes
10901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902
soname_spec='${libname}${release}${shared_ext}$major'
10903
shlibpath_var=LD_LIBRARY_PATH
10904
shlibpath_overrides_runpath=yes
10911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10913
shlibpath_var=LD_LIBRARY_PATH
10914
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10916
openbsd2.[89] | openbsd2.[89].*)
10917
shlibpath_overrides_runpath=no
10920
shlibpath_overrides_runpath=yes
10924
shlibpath_overrides_runpath=yes
10929
libname_spec='$name'
10932
library_names_spec='$libname${shared_ext} $libname.a'
10933
dynamic_linker='OS/2 ld.exe'
10934
shlibpath_var=LIBPATH
10937
osf3* | osf4* | osf5*)
10941
soname_spec='${libname}${release}${shared_ext}$major'
10942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943
shlibpath_var=LD_LIBRARY_PATH
10944
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10945
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10950
soname_spec='${libname}${release}${shared_ext}$major'
10951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952
shlibpath_var=LD_LIBRARY_PATH
10959
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960
soname_spec='${libname}${release}${shared_ext}$major'
10961
shlibpath_var=LD_LIBRARY_PATH
10962
shlibpath_overrides_runpath=yes
10963
hardcode_into_libs=yes
10964
# ldd complains unless libraries are executable
10965
postinstall_cmds='chmod +x $lib'
10970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10972
shlibpath_var=LD_LIBRARY_PATH
10973
shlibpath_overrides_runpath=yes
10974
if test "$with_gnu_ld" = yes; then
10980
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983
soname_spec='${libname}${release}${shared_ext}$major'
10984
shlibpath_var=LD_LIBRARY_PATH
10985
case $host_vendor in
10987
shlibpath_overrides_runpath=no
10989
export_dynamic_flag_spec='${wl}-Blargedynsym'
10990
runpath_var=LD_RUN_PATH
10998
shlibpath_overrides_runpath=no
10999
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11005
if test -d /usr/nec ;then
11007
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11008
soname_spec='$libname${shared_ext}.$major'
11009
shlibpath_var=LD_LIBRARY_PATH
11015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016
soname_spec='${libname}${release}${shared_ext}$major'
11017
shlibpath_var=LD_LIBRARY_PATH
11024
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11025
echo "${ECHO_T}$dynamic_linker" >&6
11026
test "$dynamic_linker" = no && can_build_shared=no
11028
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11029
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11030
hardcode_action_CXX=
11031
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11032
test -n "$runpath_var CXX" || \
11033
test "X$hardcode_automatic_CXX"="Xyes" ; then
11035
# We can hardcode non-existant directories.
11036
if test "$hardcode_direct_CXX" != no &&
11037
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11038
# have to relink, otherwise we might link with an installed library
11039
# when we should be linking with a yet-to-be-installed one
11040
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11041
test "$hardcode_minus_L_CXX" != no; then
11042
# Linking always hardcodes the temporary library directory.
11043
hardcode_action_CXX=relink
11045
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11046
hardcode_action_CXX=immediate
11049
# We cannot hardcode anything, or else we can only hardcode existing
11051
hardcode_action_CXX=unsupported
11053
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11054
echo "${ECHO_T}$hardcode_action_CXX" >&6
11056
if test "$hardcode_action_CXX" = relink; then
11057
# Fast installation is not supported
11058
enable_fast_install=no
11059
elif test "$shlibpath_overrides_runpath" = yes ||
11060
test "$enable_shared" = no; then
11061
# Fast installation is not necessary
11062
enable_fast_install=needless
11067
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11068
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11069
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11070
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11071
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11072
echo "$as_me:$LINENO: result: yes" >&5
11073
echo "${ECHO_T}yes" >&6
11075
# FIXME - insert some real tests, host_os isn't really good enough
11078
if test -n "$STRIP" ; then
11079
striplib="$STRIP -x"
11080
echo "$as_me:$LINENO: result: yes" >&5
11081
echo "${ECHO_T}yes" >&6
11083
echo "$as_me:$LINENO: result: no" >&5
11084
echo "${ECHO_T}no" >&6
11088
echo "$as_me:$LINENO: result: no" >&5
11089
echo "${ECHO_T}no" >&6
11094
if test "x$enable_dlopen" != xyes; then
11095
enable_dlopen=unknown
11096
enable_dlopen_self=unknown
11097
enable_dlopen_self_static=unknown
11104
lt_cv_dlopen="load_add_on"
11106
lt_cv_dlopen_self=yes
11110
lt_cv_dlopen="LoadLibrary"
11115
lt_cv_dlopen="dlopen"
11120
# if libdl is installed we need to link against it
11121
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11122
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11123
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11124
echo $ECHO_N "(cached) $ECHO_C" >&6
11126
ac_check_lib_save_LIBS=$LIBS
11128
cat >conftest.$ac_ext <<_ACEOF
11129
#line $LINENO "configure"
11132
cat confdefs.h >>conftest.$ac_ext
11133
cat >>conftest.$ac_ext <<_ACEOF
11134
/* end confdefs.h. */
11136
/* Override any gcc2 internal prototype to avoid an error. */
11140
/* We use char because int might match the return type of a gcc2
11141
builtin and then its argument prototype would still apply. */
11151
rm -f conftest.$ac_objext conftest$ac_exeext
11152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153
(eval $ac_link) 2>&5
11155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156
(exit $ac_status); } &&
11157
{ ac_try='test -s conftest$ac_exeext'
11158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159
(eval $ac_try) 2>&5
11161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162
(exit $ac_status); }; }; then
11163
ac_cv_lib_dl_dlopen=yes
11165
echo "$as_me: failed program was:" >&5
11166
sed 's/^/| /' conftest.$ac_ext >&5
11168
ac_cv_lib_dl_dlopen=no
11170
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11171
LIBS=$ac_check_lib_save_LIBS
11173
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11174
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11175
if test $ac_cv_lib_dl_dlopen = yes; then
11176
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11179
lt_cv_dlopen="dyld"
11181
lt_cv_dlopen_self=yes
11188
echo "$as_me:$LINENO: checking for shl_load" >&5
11189
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11190
if test "${ac_cv_func_shl_load+set}" = set; then
11191
echo $ECHO_N "(cached) $ECHO_C" >&6
11193
cat >conftest.$ac_ext <<_ACEOF
11194
#line $LINENO "configure"
11197
cat confdefs.h >>conftest.$ac_ext
11198
cat >>conftest.$ac_ext <<_ACEOF
11199
/* end confdefs.h. */
11200
/* System header to define __stub macros and hopefully few prototypes,
11201
which can conflict with char shl_load (); below.
11202
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203
<limits.h> exists even on freestanding compilers. */
11205
# include <limits.h>
11207
# include <assert.h>
11209
/* Override any gcc2 internal prototype to avoid an error. */
11214
/* We use char because int might match the return type of a gcc2
11215
builtin and then its argument prototype would still apply. */
11217
/* The GNU C library defines this for functions which it implements
11218
to always fail with ENOSYS. Some functions are actually named
11219
something starting with __ and the normal name is an alias. */
11220
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11223
char (*f) () = shl_load;
11232
return f != shl_load;
11237
rm -f conftest.$ac_objext conftest$ac_exeext
11238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11239
(eval $ac_link) 2>&5
11241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242
(exit $ac_status); } &&
11243
{ ac_try='test -s conftest$ac_exeext'
11244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245
(eval $ac_try) 2>&5
11247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248
(exit $ac_status); }; }; then
11249
ac_cv_func_shl_load=yes
11251
echo "$as_me: failed program was:" >&5
11252
sed 's/^/| /' conftest.$ac_ext >&5
11254
ac_cv_func_shl_load=no
11256
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11258
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11259
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11260
if test $ac_cv_func_shl_load = yes; then
11261
lt_cv_dlopen="shl_load"
11263
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11264
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11265
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11266
echo $ECHO_N "(cached) $ECHO_C" >&6
11268
ac_check_lib_save_LIBS=$LIBS
11270
cat >conftest.$ac_ext <<_ACEOF
11271
#line $LINENO "configure"
11274
cat confdefs.h >>conftest.$ac_ext
11275
cat >>conftest.$ac_ext <<_ACEOF
11276
/* end confdefs.h. */
11278
/* Override any gcc2 internal prototype to avoid an error. */
11282
/* We use char because int might match the return type of a gcc2
11283
builtin and then its argument prototype would still apply. */
11293
rm -f conftest.$ac_objext conftest$ac_exeext
11294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295
(eval $ac_link) 2>&5
11297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298
(exit $ac_status); } &&
11299
{ ac_try='test -s conftest$ac_exeext'
11300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301
(eval $ac_try) 2>&5
11303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304
(exit $ac_status); }; }; then
11305
ac_cv_lib_dld_shl_load=yes
11307
echo "$as_me: failed program was:" >&5
11308
sed 's/^/| /' conftest.$ac_ext >&5
11310
ac_cv_lib_dld_shl_load=no
11312
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11313
LIBS=$ac_check_lib_save_LIBS
11315
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11316
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11317
if test $ac_cv_lib_dld_shl_load = yes; then
11318
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11320
echo "$as_me:$LINENO: checking for dlopen" >&5
11321
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11322
if test "${ac_cv_func_dlopen+set}" = set; then
11323
echo $ECHO_N "(cached) $ECHO_C" >&6
11325
cat >conftest.$ac_ext <<_ACEOF
11326
#line $LINENO "configure"
11329
cat confdefs.h >>conftest.$ac_ext
11330
cat >>conftest.$ac_ext <<_ACEOF
11331
/* end confdefs.h. */
11332
/* System header to define __stub macros and hopefully few prototypes,
11333
which can conflict with char dlopen (); below.
11334
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335
<limits.h> exists even on freestanding compilers. */
11337
# include <limits.h>
11339
# include <assert.h>
11341
/* Override any gcc2 internal prototype to avoid an error. */
11346
/* We use char because int might match the return type of a gcc2
11347
builtin and then its argument prototype would still apply. */
11349
/* The GNU C library defines this for functions which it implements
11350
to always fail with ENOSYS. Some functions are actually named
11351
something starting with __ and the normal name is an alias. */
11352
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11355
char (*f) () = dlopen;
11364
return f != dlopen;
11369
rm -f conftest.$ac_objext conftest$ac_exeext
11370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371
(eval $ac_link) 2>&5
11373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374
(exit $ac_status); } &&
11375
{ ac_try='test -s conftest$ac_exeext'
11376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377
(eval $ac_try) 2>&5
11379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380
(exit $ac_status); }; }; then
11381
ac_cv_func_dlopen=yes
11383
echo "$as_me: failed program was:" >&5
11384
sed 's/^/| /' conftest.$ac_ext >&5
11386
ac_cv_func_dlopen=no
11388
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11390
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11391
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11392
if test $ac_cv_func_dlopen = yes; then
11393
lt_cv_dlopen="dlopen"
11395
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11396
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11397
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11398
echo $ECHO_N "(cached) $ECHO_C" >&6
11400
ac_check_lib_save_LIBS=$LIBS
11402
cat >conftest.$ac_ext <<_ACEOF
11403
#line $LINENO "configure"
11406
cat confdefs.h >>conftest.$ac_ext
11407
cat >>conftest.$ac_ext <<_ACEOF
11408
/* end confdefs.h. */
11410
/* Override any gcc2 internal prototype to avoid an error. */
11414
/* We use char because int might match the return type of a gcc2
11415
builtin and then its argument prototype would still apply. */
11425
rm -f conftest.$ac_objext conftest$ac_exeext
11426
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427
(eval $ac_link) 2>&5
11429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430
(exit $ac_status); } &&
11431
{ ac_try='test -s conftest$ac_exeext'
11432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433
(eval $ac_try) 2>&5
11435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436
(exit $ac_status); }; }; then
11437
ac_cv_lib_dl_dlopen=yes
11439
echo "$as_me: failed program was:" >&5
11440
sed 's/^/| /' conftest.$ac_ext >&5
11442
ac_cv_lib_dl_dlopen=no
11444
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11445
LIBS=$ac_check_lib_save_LIBS
11447
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11448
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11449
if test $ac_cv_lib_dl_dlopen = yes; then
11450
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11452
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11453
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11454
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11455
echo $ECHO_N "(cached) $ECHO_C" >&6
11457
ac_check_lib_save_LIBS=$LIBS
11458
LIBS="-lsvld $LIBS"
11459
cat >conftest.$ac_ext <<_ACEOF
11460
#line $LINENO "configure"
11463
cat confdefs.h >>conftest.$ac_ext
11464
cat >>conftest.$ac_ext <<_ACEOF
11465
/* end confdefs.h. */
11467
/* Override any gcc2 internal prototype to avoid an error. */
11471
/* We use char because int might match the return type of a gcc2
11472
builtin and then its argument prototype would still apply. */
11482
rm -f conftest.$ac_objext conftest$ac_exeext
11483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484
(eval $ac_link) 2>&5
11486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487
(exit $ac_status); } &&
11488
{ ac_try='test -s conftest$ac_exeext'
11489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490
(eval $ac_try) 2>&5
11492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
(exit $ac_status); }; }; then
11494
ac_cv_lib_svld_dlopen=yes
11496
echo "$as_me: failed program was:" >&5
11497
sed 's/^/| /' conftest.$ac_ext >&5
11499
ac_cv_lib_svld_dlopen=no
11501
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11502
LIBS=$ac_check_lib_save_LIBS
11504
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11505
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11506
if test $ac_cv_lib_svld_dlopen = yes; then
11507
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11509
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11510
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11511
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11512
echo $ECHO_N "(cached) $ECHO_C" >&6
11514
ac_check_lib_save_LIBS=$LIBS
11516
cat >conftest.$ac_ext <<_ACEOF
11517
#line $LINENO "configure"
11520
cat confdefs.h >>conftest.$ac_ext
11521
cat >>conftest.$ac_ext <<_ACEOF
11522
/* end confdefs.h. */
11524
/* Override any gcc2 internal prototype to avoid an error. */
11528
/* We use char because int might match the return type of a gcc2
11529
builtin and then its argument prototype would still apply. */
11539
rm -f conftest.$ac_objext conftest$ac_exeext
11540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541
(eval $ac_link) 2>&5
11543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544
(exit $ac_status); } &&
11545
{ ac_try='test -s conftest$ac_exeext'
11546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547
(eval $ac_try) 2>&5
11549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550
(exit $ac_status); }; }; then
11551
ac_cv_lib_dld_dld_link=yes
11553
echo "$as_me: failed program was:" >&5
11554
sed 's/^/| /' conftest.$ac_ext >&5
11556
ac_cv_lib_dld_dld_link=no
11558
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559
LIBS=$ac_check_lib_save_LIBS
11561
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11562
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11563
if test $ac_cv_lib_dld_dld_link = yes; then
11564
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11585
if test "x$lt_cv_dlopen" != xno; then
11591
case $lt_cv_dlopen in
11593
save_CPPFLAGS="$CPPFLAGS"
11594
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11596
save_LDFLAGS="$LDFLAGS"
11597
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11600
LIBS="$lt_cv_dlopen_libs $LIBS"
11602
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11603
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11604
if test "${lt_cv_dlopen_self+set}" = set; then
11605
echo $ECHO_N "(cached) $ECHO_C" >&6
11607
if test "$cross_compiling" = yes; then :
11608
lt_cv_dlopen_self=cross
11610
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11611
lt_status=$lt_dlunknown
11612
cat > conftest.$ac_ext <<EOF
11613
#line 11613 "configure"
11614
#include "confdefs.h"
11623
# define LT_DLGLOBAL RTLD_GLOBAL
11626
# define LT_DLGLOBAL DL_GLOBAL
11628
# define LT_DLGLOBAL 0
11632
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11633
find out it does not work in some platform. */
11634
#ifndef LT_DLLAZY_OR_NOW
11636
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11639
# define LT_DLLAZY_OR_NOW DL_LAZY
11642
# define LT_DLLAZY_OR_NOW RTLD_NOW
11645
# define LT_DLLAZY_OR_NOW DL_NOW
11647
# define LT_DLLAZY_OR_NOW 0
11655
extern "C" void exit (int);
11658
void fnord() { int i=42;}
11661
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11662
int status = $lt_dlunknown;
11666
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11667
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11668
/* dlclose (self); */
11674
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11675
(eval $ac_link) 2>&5
11677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11679
(./conftest; exit; ) 2>/dev/null
11681
case x$lt_status in
11682
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11683
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11684
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11687
# compilation failed
11688
lt_cv_dlopen_self=no
11695
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11696
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11698
if test "x$lt_cv_dlopen_self" = xyes; then
11699
LDFLAGS="$LDFLAGS $link_static_flag"
11700
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11701
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11702
if test "${lt_cv_dlopen_self_static+set}" = set; then
11703
echo $ECHO_N "(cached) $ECHO_C" >&6
11705
if test "$cross_compiling" = yes; then :
11706
lt_cv_dlopen_self_static=cross
11708
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11709
lt_status=$lt_dlunknown
11710
cat > conftest.$ac_ext <<EOF
11711
#line 11711 "configure"
11712
#include "confdefs.h"
11721
# define LT_DLGLOBAL RTLD_GLOBAL
11724
# define LT_DLGLOBAL DL_GLOBAL
11726
# define LT_DLGLOBAL 0
11730
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11731
find out it does not work in some platform. */
11732
#ifndef LT_DLLAZY_OR_NOW
11734
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11737
# define LT_DLLAZY_OR_NOW DL_LAZY
11740
# define LT_DLLAZY_OR_NOW RTLD_NOW
11743
# define LT_DLLAZY_OR_NOW DL_NOW
11745
# define LT_DLLAZY_OR_NOW 0
11753
extern "C" void exit (int);
11756
void fnord() { int i=42;}
11759
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11760
int status = $lt_dlunknown;
11764
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11765
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11766
/* dlclose (self); */
11772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773
(eval $ac_link) 2>&5
11775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11777
(./conftest; exit; ) 2>/dev/null
11779
case x$lt_status in
11780
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11781
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11782
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11785
# compilation failed
11786
lt_cv_dlopen_self_static=no
11793
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11794
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11797
CPPFLAGS="$save_CPPFLAGS"
11798
LDFLAGS="$save_LDFLAGS"
11803
case $lt_cv_dlopen_self in
11804
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11805
*) enable_dlopen_self=unknown ;;
11808
case $lt_cv_dlopen_self_static in
11809
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11810
*) enable_dlopen_self_static=unknown ;;
11815
# The else clause should only fire when bootstrapping the
11816
# libtool distribution, otherwise you forgot to ship ltmain.sh
11817
# with your package, and you will get complaints that there are
11818
# no rules to generate ltmain.sh.
11819
if test -f "$ltmain"; then
11820
# See if we are running on zsh, and set the options which allow our commands through
11821
# without removal of \ escapes.
11822
if test -n "${ZSH_VERSION+set}" ; then
11823
setopt NO_GLOB_SUBST
11825
# Now quote all the things that may contain metacharacters while being
11826
# careful not to overquote the AC_SUBSTed values. We take copies of the
11827
# variables and quote the copies for generation of the libtool script.
11828
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11829
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11830
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11831
deplibs_check_method reload_flag reload_cmds need_locks \
11832
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11833
lt_cv_sys_global_symbol_to_c_name_address \
11834
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11835
old_postinstall_cmds old_postuninstall_cmds \
11839
lt_prog_compiler_wl_CXX \
11840
lt_prog_compiler_pic_CXX \
11841
lt_prog_compiler_static_CXX \
11842
lt_prog_compiler_no_builtin_flag_CXX \
11843
export_dynamic_flag_spec_CXX \
11844
thread_safe_flag_spec_CXX \
11845
whole_archive_flag_spec_CXX \
11846
enable_shared_with_static_runtimes_CXX \
11847
old_archive_cmds_CXX \
11848
old_archive_from_new_cmds_CXX \
11849
predep_objects_CXX \
11850
postdep_objects_CXX \
11853
compiler_lib_search_path_CXX \
11855
archive_expsym_cmds_CXX \
11856
postinstall_cmds_CXX \
11857
postuninstall_cmds_CXX \
11858
old_archive_from_expsyms_cmds_CXX \
11859
allow_undefined_flag_CXX \
11860
no_undefined_flag_CXX \
11861
export_symbols_cmds_CXX \
11862
hardcode_libdir_flag_spec_CXX \
11863
hardcode_libdir_flag_spec_ld_CXX \
11864
hardcode_libdir_separator_CXX \
11865
hardcode_automatic_CXX \
11867
module_expsym_cmds_CXX \
11868
lt_cv_prog_compiler_c_o_CXX \
11869
exclude_expsyms_CXX \
11870
include_expsyms_CXX; do
11873
old_archive_cmds_CXX | \
11874
old_archive_from_new_cmds_CXX | \
11875
archive_cmds_CXX | \
11876
archive_expsym_cmds_CXX | \
11877
module_cmds_CXX | \
11878
module_expsym_cmds_CXX | \
11879
old_archive_from_expsyms_cmds_CXX | \
11880
export_symbols_cmds_CXX | \
11881
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11882
postinstall_cmds | postuninstall_cmds | \
11883
old_postinstall_cmds | old_postuninstall_cmds | \
11884
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11885
# Double-quote double-evaled strings.
11886
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11889
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11895
*'\$0 --fallback-echo"')
11896
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11902
cat <<__EOF__ >> "$cfgfile"
11903
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11905
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11907
# Shell to use when invoking shell scripts.
11910
# Whether or not to build shared libraries.
11911
build_libtool_libs=$enable_shared
11913
# Whether or not to build static libraries.
11914
build_old_libs=$enable_static
11916
# Whether or not to add -lc for building shared libraries.
11917
build_libtool_need_lc=$archive_cmds_need_lc_CXX
11919
# Whether or not to disallow shared libs when runtime libs are static
11920
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11922
# Whether or not to optimize for fast installation.
11923
fast_install=$enable_fast_install
11926
host_alias=$host_alias
11929
# An echo program that does not interpret backslashes.
11934
AR_FLAGS=$lt_AR_FLAGS
11939
# A language-specific compiler.
11940
CC=$lt_compiler_CXX
11942
# Is the compiler the GNU C compiler?
11948
# The linker used to build libraries.
11951
# Whether we need hard or soft links.
11954
# A BSD-compatible nm program.
11957
# A symbol stripping program
11960
# Used to examine libraries when file_magic_cmd begins "file"
11961
MAGIC_CMD=$MAGIC_CMD
11963
# Used on cygwin: DLL creation program.
11966
# Used on cygwin: object dumper.
11969
# Used on cygwin: assembler.
11972
# The name of the directory that contains temporary libtool files.
11975
# How to create reloadable object files.
11976
reload_flag=$lt_reload_flag
11977
reload_cmds=$lt_reload_cmds
11979
# How to pass a linker flag through the compiler.
11980
wl=$lt_lt_prog_compiler_wl_CXX
11982
# Object file suffix (normally "o").
11983
objext="$ac_objext"
11985
# Old archive suffix (normally "a").
11988
# Shared library suffix (normally ".so").
11991
# Executable file suffix (normally "").
11994
# Additional compiler flags for building library objects.
11995
pic_flag=$lt_lt_prog_compiler_pic_CXX
11998
# What is the maximum length of a command?
11999
max_cmd_len=$lt_cv_sys_max_cmd_len
12001
# Does compiler simultaneously support -c and -o options?
12002
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12004
# Must we lock files when doing compilation ?
12005
need_locks=$lt_need_locks
12007
# Do we need the lib prefix for modules?
12008
need_lib_prefix=$need_lib_prefix
12010
# Do we need a version for libraries?
12011
need_version=$need_version
12013
# Whether dlopen is supported.
12014
dlopen_support=$enable_dlopen
12016
# Whether dlopen of programs is supported.
12017
dlopen_self=$enable_dlopen_self
12019
# Whether dlopen of statically linked programs is supported.
12020
dlopen_self_static=$enable_dlopen_self_static
12022
# Compiler flag to prevent dynamic linking.
12023
link_static_flag=$lt_lt_prog_compiler_static_CXX
12025
# Compiler flag to turn off builtin functions.
12026
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12028
# Compiler flag to allow reflexive dlopens.
12029
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12031
# Compiler flag to generate shared objects directly from archives.
12032
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12034
# Compiler flag to generate thread-safe objects.
12035
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12037
# Library versioning type.
12038
version_type=$version_type
12040
# Format of library name prefix.
12041
libname_spec=$lt_libname_spec
12043
# List of archive names. First name is the real one, the rest are links.
12044
# The last name is the one that the linker finds with -lNAME.
12045
library_names_spec=$lt_library_names_spec
12047
# The coded name of the library, if different from the real name.
12048
soname_spec=$lt_soname_spec
12050
# Commands used to build and install an old-style archive.
12052
old_archive_cmds=$lt_old_archive_cmds_CXX
12053
old_postinstall_cmds=$lt_old_postinstall_cmds
12054
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12056
# Create an old-style archive from a shared archive.
12057
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12059
# Create a temporary old-style archive to link instead of a shared archive.
12060
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12062
# Commands used to build and install a shared archive.
12063
archive_cmds=$lt_archive_cmds_CXX
12064
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12065
postinstall_cmds=$lt_postinstall_cmds
12066
postuninstall_cmds=$lt_postuninstall_cmds
12068
# Commands used to build a loadable module (assumed same as above if empty)
12069
module_cmds=$lt_module_cmds_CXX
12070
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12072
# Commands to strip libraries.
12073
old_striplib=$lt_old_striplib
12074
striplib=$lt_striplib
12076
# Dependencies to place before the objects being linked to create a
12078
predep_objects=$lt_predep_objects_CXX
12080
# Dependencies to place after the objects being linked to create a
12082
postdep_objects=$lt_postdep_objects_CXX
12084
# Dependencies to place before the objects being linked to create a
12086
predeps=$lt_predeps_CXX
12088
# Dependencies to place after the objects being linked to create a
12090
postdeps=$lt_postdeps_CXX
12092
# The library search path used internally by the compiler when linking
12093
# a shared library.
12094
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12096
# Method to check whether dependent libraries are shared objects.
12097
deplibs_check_method=$lt_deplibs_check_method
12099
# Command to use when deplibs_check_method == file_magic.
12100
file_magic_cmd=$lt_file_magic_cmd
12102
# Flag that allows shared libraries with undefined symbols to be built.
12103
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12105
# Flag that forces no undefined symbols.
12106
no_undefined_flag=$lt_no_undefined_flag_CXX
12108
# Commands used to finish a libtool library installation in a directory.
12109
finish_cmds=$lt_finish_cmds
12111
# Same as above, but a single script fragment to be evaled but not shown.
12112
finish_eval=$lt_finish_eval
12114
# Take the output of nm and produce a listing of raw symbols and C names.
12115
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12117
# Transform the output of nm in a proper C declaration
12118
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12120
# Transform the output of nm in a C name address pair
12121
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12123
# This is the shared library runtime path variable.
12124
runpath_var=$runpath_var
12126
# This is the shared library path variable.
12127
shlibpath_var=$shlibpath_var
12129
# Is shlibpath searched before the hard-coded library search path?
12130
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12132
# How to hardcode a shared library path into an executable.
12133
hardcode_action=$hardcode_action_CXX
12135
# Whether we should hardcode library paths into libraries.
12136
hardcode_into_libs=$hardcode_into_libs
12138
# Flag to hardcode \$libdir into a binary during linking.
12139
# This must work even if \$libdir does not exist.
12140
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12142
# If ld is used when linking, flag to hardcode \$libdir into
12143
# a binary during linking. This must work even if \$libdir does
12145
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12147
# Whether we need a single -rpath flag with a separated argument.
12148
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12150
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12151
# resulting binary.
12152
hardcode_direct=$hardcode_direct_CXX
12154
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12155
# resulting binary.
12156
hardcode_minus_L=$hardcode_minus_L_CXX
12158
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12159
# the resulting binary.
12160
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12162
# Set to yes if building a shared library automatically hardcodes DIR into the library
12163
# and all subsequent libraries and executables linked against it.
12164
hardcode_automatic=$hardcode_automatic_CXX
12166
# Variables whose values should be saved in libtool wrapper scripts and
12167
# restored at relink time.
12168
variables_saved_for_relink="$variables_saved_for_relink"
12170
# Whether libtool must link a program against all its dependency libraries.
12171
link_all_deplibs=$link_all_deplibs_CXX
12173
# Compile-time system search path for libraries
12174
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12176
# Run-time system search path for libraries
12177
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12179
# Fix the shell variable \$srcfile for the compiler.
12180
fix_srcfile_path="$fix_srcfile_path_CXX"
12182
# Set to yes if exported symbols are required.
12183
always_export_symbols=$always_export_symbols_CXX
12185
# The commands to list exported symbols.
12186
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12188
# The commands to extract the exported symbol list from a shared archive.
12189
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12191
# Symbols that should not be listed in the preloaded symbols.
12192
exclude_expsyms=$lt_exclude_expsyms_CXX
12194
# Symbols that must always be exported.
12195
include_expsyms=$lt_include_expsyms_CXX
12197
# ### END LIBTOOL TAG CONFIG: $tagname
12203
# If there is no Makefile yet, we rely on a make rule to execute
12204
# `config.status --recheck' to rerun these tests and create the
12205
# libtool script then.
12206
test -f Makefile && make "$ltmain"
12211
ac_cpp='$CPP $CPPFLAGS'
12212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12220
with_gnu_ldcxx=$with_gnu_ld
12221
with_gnu_ld=$lt_save_with_gnu_ld
12222
lt_cv_path_LDCXX=$lt_cv_path_LD
12223
lt_cv_path_LD=$lt_save_path_LD
12224
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12225
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12233
if test -n "$F77" && test "X$F77" != "Xno"; then
12236
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12237
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12241
archive_cmds_need_lc_F77=no
12242
allow_undefined_flag_F77=
12243
always_export_symbols_F77=no
12244
archive_expsym_cmds_F77=
12245
export_dynamic_flag_spec_F77=
12246
hardcode_direct_F77=no
12247
hardcode_libdir_flag_spec_F77=
12248
hardcode_libdir_flag_spec_ld_F77=
12249
hardcode_libdir_separator_F77=
12250
hardcode_minus_L_F77=no
12251
hardcode_automatic_F77=no
12253
module_expsym_cmds_F77=
12254
link_all_deplibs_F77=unknown
12255
old_archive_cmds_F77=$old_archive_cmds
12256
no_undefined_flag_F77=
12257
whole_archive_flag_spec_F77=
12258
enable_shared_with_static_runtimes_F77=no
12260
# Source file extension for f77 test sources.
12263
# Object file extension for compiled f77 test sources.
12267
# Code to be used in simple compile tests
12268
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12270
# Code to be used in simple link tests
12271
lt_simple_link_test_code=" program t\n end\n"
12273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12275
# If no C compiler was specified, use CC.
12278
# Allow CC to be a program name with arguments.
12282
# Allow CC to be a program name with arguments.
12287
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12289
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12290
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12291
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12292
echo "${ECHO_T}$can_build_shared" >&6
12294
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12295
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12296
test "$can_build_shared" = "no" && enable_shared=no
12298
# On AIX, shared libraries and static libraries use the same namespace, and
12299
# are all built from PIC.
12302
test "$enable_shared" = yes && enable_static=no
12303
if test -n "$RANLIB"; then
12304
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12305
postinstall_cmds='$RANLIB $lib'
12309
test "$enable_shared" = yes && enable_static=no
12312
echo "$as_me:$LINENO: result: $enable_shared" >&5
12313
echo "${ECHO_T}$enable_shared" >&6
12315
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12316
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12317
# Make sure either enable_shared or enable_static is yes.
12318
test "$enable_shared" = yes || enable_static=yes
12319
echo "$as_me:$LINENO: result: $enable_static" >&5
12320
echo "${ECHO_T}$enable_static" >&6
12322
test "$ld_shlibs_F77" = no && can_build_shared=no
12327
lt_prog_compiler_wl_F77=
12328
lt_prog_compiler_pic_F77=
12329
lt_prog_compiler_static_F77=
12331
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12332
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12334
if test "$GCC" = yes; then
12335
lt_prog_compiler_wl_F77='-Wl,'
12336
lt_prog_compiler_static_F77='-static'
12340
# All AIX code is PIC.
12341
if test "$host_cpu" = ia64; then
12342
# AIX 5 now supports IA64 processor
12343
lt_prog_compiler_static_F77='-Bstatic'
12348
# FIXME: we need at least 68020 code to build shared libraries, but
12349
# adding the `-m68020' flag to GCC prevents building anything better,
12351
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12354
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12355
# PIC is the default for these OSes.
12358
mingw* | pw32* | os2*)
12359
# This hack is so that the source file can tell whether it is being
12360
# built for inclusion in a dll (and should export symbols for example).
12361
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12364
darwin* | rhapsody*)
12365
# PIC is the default on this platform
12366
# Common symbols not allowed in MH_DYLIB files
12367
lt_prog_compiler_pic_F77='-fno-common'
12371
# Just because we use GCC doesn't mean we suddenly get shared libraries
12372
# on systems that don't support them.
12373
lt_prog_compiler_can_build_shared_F77=no
12378
if test -d /usr/nec; then
12379
lt_prog_compiler_pic_F77=-Kconform_pic
12384
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12385
# not for PA HP-UX.
12386
case "$host_cpu" in
12391
lt_prog_compiler_pic_F77='-fPIC'
12397
lt_prog_compiler_pic_F77='-fPIC'
12401
# PORTME Check for flag to pass linker flags through the system compiler.
12404
lt_prog_compiler_wl_F77='-Wl,'
12405
if test "$host_cpu" = ia64; then
12406
# AIX 5 now supports IA64 processor
12407
lt_prog_compiler_static_F77='-Bstatic'
12409
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12413
mingw* | pw32* | os2*)
12414
# This hack is so that the source file can tell whether it is being
12415
# built for inclusion in a dll (and should export symbols for example).
12416
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12419
hpux9* | hpux10* | hpux11*)
12420
lt_prog_compiler_wl_F77='-Wl,'
12421
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12422
# not for PA HP-UX.
12423
case "$host_cpu" in
12428
lt_prog_compiler_pic_F77='+Z'
12431
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12432
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12435
irix5* | irix6* | nonstopux*)
12436
lt_prog_compiler_wl_F77='-Wl,'
12437
# PIC (with -KPIC) is the default.
12438
lt_prog_compiler_static_F77='-non_shared'
12442
lt_prog_compiler_pic_F77='-KPIC'
12443
lt_prog_compiler_static_F77='-Bstatic'
12449
lt_prog_compiler_wl_F77='-Wl,'
12450
lt_prog_compiler_pic_F77='-KPIC'
12451
lt_prog_compiler_static_F77='-static'
12454
lt_prog_compiler_wl_F77='-Wl,'
12455
# All Alpha code is PIC.
12456
lt_prog_compiler_static_F77='-non_shared'
12461
osf3* | osf4* | osf5*)
12462
lt_prog_compiler_wl_F77='-Wl,'
12463
# All OSF/1 code is PIC.
12464
lt_prog_compiler_static_F77='-non_shared'
12468
lt_prog_compiler_pic_F77='-Kpic'
12469
lt_prog_compiler_static_F77='-dn'
12473
lt_prog_compiler_wl_F77='-Wl,'
12474
lt_prog_compiler_pic_F77='-KPIC'
12475
lt_prog_compiler_static_F77='-Bstatic'
12479
lt_prog_compiler_wl_F77='-Qoption ld '
12480
lt_prog_compiler_pic_F77='-PIC'
12481
lt_prog_compiler_static_F77='-Bstatic'
12484
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12485
lt_prog_compiler_wl_F77='-Wl,'
12486
lt_prog_compiler_pic_F77='-KPIC'
12487
lt_prog_compiler_static_F77='-Bstatic'
12491
if test -d /usr/nec ;then
12492
lt_prog_compiler_pic_F77='-Kconform_pic'
12493
lt_prog_compiler_static_F77='-Bstatic'
12498
lt_prog_compiler_pic_F77='-pic'
12499
lt_prog_compiler_static_F77='-Bstatic'
12503
lt_prog_compiler_can_build_shared_F77=no
12508
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12509
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12512
# Check to make sure the PIC flag actually works.
12514
if test -n "$lt_prog_compiler_pic_F77"; then
12516
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12517
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12518
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12519
echo $ECHO_N "(cached) $ECHO_C" >&6
12521
lt_prog_compiler_pic_works_F77=no
12522
ac_outfile=conftest.$ac_objext
12523
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12524
lt_compiler_flag="$lt_prog_compiler_pic_F77"
12525
# Insert the option either (1) after the last *FLAGS variable, or
12526
# (2) before a word containing "conftest.", or (3) at the end.
12527
# Note that $ac_compile itself does not contain backslashes and begins
12528
# with a dollar sign (not a hyphen), so the echo should work correctly.
12529
# The option is referenced via a variable to avoid confusing sed.
12530
lt_compile=`echo "$ac_compile" | $SED \
12531
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12532
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12533
-e 's:$: $lt_compiler_flag:'`
12534
(eval echo "\"\$as_me:12534: $lt_compile\"" >&5)
12535
(eval "$lt_compile" 2>conftest.err)
12537
cat conftest.err >&5
12538
echo "$as_me:12538: \$? = $ac_status" >&5
12539
if (exit $ac_status) && test -s "$ac_outfile"; then
12540
# The compiler can only warn and ignore the option if not recognized
12541
# So say no if there are warnings
12542
if test ! -s conftest.err; then
12543
lt_prog_compiler_pic_works_F77=yes
12549
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12550
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12552
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12553
case $lt_prog_compiler_pic_F77 in
12555
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12558
lt_prog_compiler_pic_F77=
12559
lt_prog_compiler_can_build_shared_F77=no
12564
# For platforms which do not support PIC, -DPIC is meaningless:
12566
lt_prog_compiler_pic_F77=
12569
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12573
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12574
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12575
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12576
echo $ECHO_N "(cached) $ECHO_C" >&6
12578
lt_cv_prog_compiler_c_o_F77=no
12579
$rm -r conftest 2>/dev/null
12583
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12585
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12586
# that will create temporary files in the current directory regardless of
12587
# the output directory. Thus, making CWD read-only will cause this test
12588
# to fail, enabling locking or at least warning the user not to do parallel
12592
lt_compiler_flag="-o out/conftest2.$ac_objext"
12593
# Insert the option either (1) after the last *FLAGS variable, or
12594
# (2) before a word containing "conftest.", or (3) at the end.
12595
# Note that $ac_compile itself does not contain backslashes and begins
12596
# with a dollar sign (not a hyphen), so the echo should work correctly.
12597
lt_compile=`echo "$ac_compile" | $SED \
12598
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12599
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12600
-e 's:$: $lt_compiler_flag:'`
12601
(eval echo "\"\$as_me:12601: $lt_compile\"" >&5)
12602
(eval "$lt_compile" 2>out/conftest.err)
12604
cat out/conftest.err >&5
12605
echo "$as_me:12605: \$? = $ac_status" >&5
12606
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12608
# The compiler can only warn and ignore the option if not recognized
12609
# So say no if there are warnings
12610
if test ! -s out/conftest.err; then
12611
lt_cv_prog_compiler_c_o_F77=yes
12616
# SGI C++ compiler will create directory out/ii_files/ for
12617
# template instantiation
12618
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12619
$rm out/* && rmdir out
12625
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12626
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12629
hard_links="nottested"
12630
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12631
# do not overwrite the value of need_locks provided by the user
12632
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12633
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12636
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12638
ln conftest.a conftest.b 2>&5 || hard_links=no
12639
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12640
echo "$as_me:$LINENO: result: $hard_links" >&5
12641
echo "${ECHO_T}$hard_links" >&6
12642
if test "$hard_links" = no; then
12643
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12644
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12651
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12652
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12655
allow_undefined_flag_F77=
12656
enable_shared_with_static_runtimes_F77=no
12658
archive_expsym_cmds_F77=
12659
old_archive_From_new_cmds_F77=
12660
old_archive_from_expsyms_cmds_F77=
12661
export_dynamic_flag_spec_F77=
12662
whole_archive_flag_spec_F77=
12663
thread_safe_flag_spec_F77=
12664
hardcode_libdir_flag_spec_F77=
12665
hardcode_libdir_flag_spec_ld_F77=
12666
hardcode_libdir_separator_F77=
12667
hardcode_direct_F77=no
12668
hardcode_minus_L_F77=no
12669
hardcode_shlibpath_var_F77=unsupported
12670
link_all_deplibs_F77=unknown
12671
hardcode_automatic_F77=no
12673
module_expsym_cmds_F77=
12674
always_export_symbols_F77=no
12675
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12676
# include_expsyms should be a list of space-separated symbols to be *always*
12677
# included in the symbol list
12678
include_expsyms_F77=
12679
# exclude_expsyms can be an extended regexp of symbols to exclude
12680
# it will be wrapped by ` (' and `)$', so one must not match beginning or
12681
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12682
# as well as any symbol that contains `d'.
12683
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12684
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12685
# platforms (ab)use it in PIC code, but their linkers get confused if
12686
# the symbol is explicitly referenced. Since portable code cannot
12687
# rely on this symbol name, it's probably fine to never include it in
12688
# preloaded symbol tables.
12689
extract_expsyms_cmds=
12692
cygwin* | mingw* | pw32*)
12693
# FIXME: the MSVC++ port hasn't been tested in a loooong time
12694
# When not using gcc, we currently assume that we are using
12695
# Microsoft Visual C++.
12696
if test "$GCC" != yes; then
12706
if test "$with_gnu_ld" = yes; then
12707
# If archive_cmds runs LD, not CC, wlarc should be empty
12710
# See if GNU ld supports shared libraries.
12712
aix3* | aix4* | aix5*)
12713
# On AIX/PPC, the GNU linker is very broken
12714
if test "$host_cpu" != ia64; then
12718
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12719
*** to be unable to reliably create shared libraries on AIX.
12720
*** Therefore, libtool is disabling shared libraries support. If you
12721
*** really care for shared libraries, you may want to modify your PATH
12722
*** so that a non-GNU linker is found, and then restart.
12729
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12730
hardcode_libdir_flag_spec_F77='-L$libdir'
12731
hardcode_minus_L_F77=yes
12733
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12734
# that the semantics of dynamic libraries on AmigaOS, at least up
12735
# to version 4, is to share data among multiple programs linked
12736
# with the same dynamic library. Since this doesn't match the
12737
# behavior of shared libraries on other platforms, we can't use
12743
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12744
allow_undefined_flag_F77=unsupported
12745
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12746
# support --undefined. This deserves some investigation. FIXME
12747
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753
cygwin* | mingw* | pw32*)
12754
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12755
# as there is no search path for DLLs.
12756
hardcode_libdir_flag_spec_F77='-L$libdir'
12757
allow_undefined_flag_F77=unsupported
12758
always_export_symbols_F77=no
12759
enable_shared_with_static_runtimes_F77=yes
12760
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12762
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12763
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12764
# If the export-symbols file already is a .def file (1st line
12765
# is EXPORTS), use it as is; otherwise, prepend...
12766
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12767
cp $export_symbols $output_objdir/$soname.def;
12769
echo EXPORTS > $output_objdir/$soname.def;
12770
cat $export_symbols >> $output_objdir/$soname.def;
12772
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12779
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12780
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12783
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12784
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12789
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12793
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12794
*** create shared libraries on Solaris systems. Therefore, libtool
12795
*** is disabling shared libraries support. We urge you to upgrade GNU
12796
*** binutils to release 2.9.1 or newer. Another option is to modify
12797
*** your PATH or compiler configuration so that the native linker is
12798
*** used, and then restart.
12801
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12802
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12810
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12812
hardcode_direct_F77=yes
12813
hardcode_shlibpath_var_F77=no
12817
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12818
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819
archive_cmds_F77="$tmp_archive_cmds"
12820
supports_anon_versioning=no
12821
case `$LD -v 2>/dev/null` in
12822
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12823
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12824
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12825
*\ 2.11.*) ;; # other 2.11 versions
12826
*) supports_anon_versioning=yes ;;
12828
if test $supports_anon_versioning = yes; then
12829
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12830
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12831
$echo "local: *; };" >> $output_objdir/$libname.ver~
12832
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12834
archive_expsym_cmds_F77="$tmp_archive_cmds"
12842
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12843
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12851
if test "$ld_shlibs_F77" = yes; then
12852
runpath_var=LD_RUN_PATH
12853
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12854
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12855
# ancient GNU ld didn't support --whole-archive et. al.
12856
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12857
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12859
whole_archive_flag_spec_F77=
12863
# PORTME fill in a description of your system's linker (not GNU ld)
12866
allow_undefined_flag_F77=unsupported
12867
always_export_symbols_F77=yes
12868
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12869
# Note: this linker hardcodes the directories in LIBPATH if there
12870
# are no directories specified by -L.
12871
hardcode_minus_L_F77=yes
12872
if test "$GCC" = yes && test -z "$link_static_flag"; then
12873
# Neither direct hardcoding nor static linking is supported with a
12875
hardcode_direct_F77=unsupported
12880
if test "$host_cpu" = ia64; then
12881
# On IA64, the linker does run time linking by default, so we don't
12882
# have to do anything special.
12883
aix_use_runtimelinking=no
12884
exp_sym_flag='-Bexport'
12887
# If we're using GNU nm, then we don't want the "-C" option.
12888
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12889
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12890
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12892
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12894
aix_use_runtimelinking=no
12896
# Test if we are trying to use run time linking or normal
12897
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12898
# need to do runtime linking.
12899
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12900
for ld_flag in $LDFLAGS; do
12901
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12902
aix_use_runtimelinking=yes
12908
exp_sym_flag='-bexport'
12909
no_entry_flag='-bnoentry'
12912
# When large executables or shared objects are built, AIX ld can
12913
# have problems creating the table of contents. If linking a library
12914
# or program results in "error TOC overflow" add -mminimal-toc to
12915
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12916
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12918
archive_cmds_F77=''
12919
hardcode_direct_F77=yes
12920
hardcode_libdir_separator_F77=':'
12921
link_all_deplibs_F77=yes
12923
if test "$GCC" = yes; then
12924
case $host_os in aix4.012|aix4.012.*)
12925
# We only want to do this on AIX 4.2 and lower, the check
12926
# below for broken collect2 doesn't work under 4.3+
12927
collect2name=`${CC} -print-prog-name=collect2`
12928
if test -f "$collect2name" && \
12929
strings "$collect2name" | grep resolve_lib_name >/dev/null
12931
# We have reworked collect2
12932
hardcode_direct_F77=yes
12934
# We have old collect2
12935
hardcode_direct_F77=unsupported
12936
# It fails to find uninstalled libraries when the uninstalled
12937
# path is not listed in the libpath. Setting hardcode_minus_L
12938
# to unsupported forces relinking
12939
hardcode_minus_L_F77=yes
12940
hardcode_libdir_flag_spec_F77='-L$libdir'
12941
hardcode_libdir_separator_F77=
12944
shared_flag='-shared'
12947
if test "$host_cpu" = ia64; then
12948
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12949
# chokes on -Wl,-G. The following line is correct:
12952
if test "$aix_use_runtimelinking" = yes; then
12953
shared_flag='${wl}-G'
12955
shared_flag='${wl}-bM:SRE'
12960
# It seems that -bexpall does not export symbols beginning with
12961
# underscore (_), so it is better to generate a list of symbols to export.
12962
always_export_symbols_F77=yes
12963
if test "$aix_use_runtimelinking" = yes; then
12964
# Warning - without using the other runtime loading flags (-brtl),
12965
# -berok will link without error, but may produce a broken library.
12966
allow_undefined_flag_F77='-berok'
12967
# Determine the default libpath from the value encoded in an empty executable.
12968
cat >conftest.$ac_ext <<_ACEOF
12973
rm -f conftest.$ac_objext conftest$ac_exeext
12974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975
(eval $ac_link) 2>&5
12977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978
(exit $ac_status); } &&
12979
{ ac_try='test -s conftest$ac_exeext'
12980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981
(eval $ac_try) 2>&5
12983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984
(exit $ac_status); }; }; then
12986
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12988
# Check for a 64-bit object if we didn't find anything.
12989
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12992
echo "$as_me: failed program was:" >&5
12993
sed 's/^/| /' conftest.$ac_ext >&5
12996
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12999
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13000
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13002
if test "$host_cpu" = ia64; then
13003
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13004
allow_undefined_flag_F77="-z nodefs"
13005
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13007
# Determine the default libpath from the value encoded in an empty executable.
13008
cat >conftest.$ac_ext <<_ACEOF
13013
rm -f conftest.$ac_objext conftest$ac_exeext
13014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015
(eval $ac_link) 2>&5
13017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018
(exit $ac_status); } &&
13019
{ ac_try='test -s conftest$ac_exeext'
13020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021
(eval $ac_try) 2>&5
13023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024
(exit $ac_status); }; }; then
13026
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13028
# Check for a 64-bit object if we didn't find anything.
13029
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13032
echo "$as_me: failed program was:" >&5
13033
sed 's/^/| /' conftest.$ac_ext >&5
13036
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13039
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13040
# Warning - without using the other run time loading flags,
13041
# -berok will link without error, but may produce a broken library.
13042
no_undefined_flag_F77=' ${wl}-bernotok'
13043
allow_undefined_flag_F77=' ${wl}-berok'
13044
# -bexpall does not export symbols beginning with underscore (_)
13045
always_export_symbols_F77=yes
13046
# Exported symbols can be pulled into shared objects from archives
13047
whole_archive_flag_spec_F77=' '
13048
archive_cmds_need_lc_F77=yes
13049
# This is similar to how AIX traditionally builds it's shared libraries.
13050
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13056
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13057
hardcode_libdir_flag_spec_F77='-L$libdir'
13058
hardcode_minus_L_F77=yes
13059
# see comment about different semantics on the GNU ld section
13064
export_dynamic_flag_spec_F77=-rdynamic
13067
cygwin* | mingw* | pw32*)
13068
# When not using gcc, we currently assume that we are using
13069
# Microsoft Visual C++.
13070
# hardcode_libdir_flag_spec is actually meaningless, as there is
13071
# no search path for DLLs.
13072
hardcode_libdir_flag_spec_F77=' '
13073
allow_undefined_flag_F77=unsupported
13074
# Tell ltmain to make .lib files, not .a files.
13076
# Tell ltmain to make .dll files, not .so files.
13078
# FIXME: Setting linknames here is a bad hack.
13079
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13080
# The linker will automatically build a .lib file if we build a DLL.
13081
old_archive_From_new_cmds_F77='true'
13082
# FIXME: Should let the user specify the lib program.
13083
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13084
fix_srcfile_path='`cygpath -w "$srcfile"`'
13085
enable_shared_with_static_runtimes_F77=yes
13088
darwin* | rhapsody*)
13089
if test "$GXX" = yes ; then
13090
archive_cmds_need_lc_F77=no
13092
rhapsody* | darwin1.[012])
13093
allow_undefined_flag_F77='-undefined suppress'
13096
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13097
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13099
case ${MACOSX_DEPLOYMENT_TARGET} in
13101
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13104
allow_undefined_flag_F77='-undefined dynamic_lookup'
13110
lt_int_apple_cc_single_mod=no
13111
output_verbose_link_cmd='echo'
13112
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13113
lt_int_apple_cc_single_mod=yes
13115
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13116
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13118
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13120
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13121
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13122
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13123
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13125
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13127
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13128
hardcode_direct_F77=no
13129
hardcode_automatic_F77=yes
13130
hardcode_shlibpath_var_F77=unsupported
13131
whole_archive_flag_spec_F77='-all_load $convenience'
13132
link_all_deplibs_F77=yes
13139
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13140
hardcode_libdir_flag_spec_F77='-L$libdir'
13141
hardcode_shlibpath_var_F77=no
13148
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13149
# support. Future versions do this automatically, but an explicit c++rt0.o
13150
# does not break anything, and helps significantly (at the cost of a little
13153
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13154
hardcode_libdir_flag_spec_F77='-R$libdir'
13155
hardcode_direct_F77=yes
13156
hardcode_shlibpath_var_F77=no
13159
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13161
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13162
hardcode_direct_F77=yes
13163
hardcode_minus_L_F77=yes
13164
hardcode_shlibpath_var_F77=no
13167
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13168
freebsd* | kfreebsd*-gnu)
13169
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13170
hardcode_libdir_flag_spec_F77='-R$libdir'
13171
hardcode_direct_F77=yes
13172
hardcode_shlibpath_var_F77=no
13176
if test "$GCC" = yes; then
13177
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13179
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13181
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13182
hardcode_libdir_separator_F77=:
13183
hardcode_direct_F77=yes
13185
# hardcode_minus_L: Not really in the search PATH,
13186
# but as the default location of the library.
13187
hardcode_minus_L_F77=yes
13188
export_dynamic_flag_spec_F77='${wl}-E'
13192
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13193
case "$host_cpu" in
13195
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13198
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13202
case "$host_cpu" in
13204
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13207
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13211
if test "$with_gnu_ld" = no; then
13212
case "$host_cpu" in
13214
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13215
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13216
hardcode_libdir_separator_F77=:
13217
hardcode_direct_F77=no
13218
hardcode_shlibpath_var_F77=no
13221
hardcode_libdir_flag_spec_F77='-L$libdir'
13222
hardcode_direct_F77=no
13223
hardcode_shlibpath_var_F77=no
13225
# hardcode_minus_L: Not really in the search PATH,
13226
# but as the default location of the library.
13227
hardcode_minus_L_F77=yes
13230
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13231
hardcode_libdir_separator_F77=:
13232
hardcode_direct_F77=yes
13233
export_dynamic_flag_spec_F77='${wl}-E'
13235
# hardcode_minus_L: Not really in the search PATH,
13236
# but as the default location of the library.
13237
hardcode_minus_L_F77=yes
13243
irix5* | irix6* | nonstopux*)
13244
if test "$GCC" = yes; then
13245
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13247
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13248
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13250
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13251
hardcode_libdir_separator_F77=:
13252
link_all_deplibs_F77=yes
13256
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13257
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13259
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13261
hardcode_libdir_flag_spec_F77='-R$libdir'
13262
hardcode_direct_F77=yes
13263
hardcode_shlibpath_var_F77=no
13267
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13268
hardcode_direct_F77=yes
13269
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13270
hardcode_libdir_separator_F77=:
13271
hardcode_shlibpath_var_F77=no
13275
hardcode_direct_F77=yes
13276
hardcode_shlibpath_var_F77=no
13277
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13278
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13279
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13280
export_dynamic_flag_spec_F77='${wl}-E'
13283
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13284
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13285
hardcode_libdir_flag_spec_F77='-R$libdir'
13288
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13289
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13296
hardcode_libdir_flag_spec_F77='-L$libdir'
13297
hardcode_minus_L_F77=yes
13298
allow_undefined_flag_F77=unsupported
13299
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13300
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13304
if test "$GCC" = yes; then
13305
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13306
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13308
allow_undefined_flag_F77=' -expect_unresolved \*'
13309
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13311
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13312
hardcode_libdir_separator_F77=:
13315
osf4* | osf5*) # as osf3* with the addition of -msym flag
13316
if test "$GCC" = yes; then
13317
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13318
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13319
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13321
allow_undefined_flag_F77=' -expect_unresolved \*'
13322
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13323
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13324
$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'
13326
# Both c and cxx compiler support -rpath directly
13327
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13329
hardcode_libdir_separator_F77=:
13333
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13334
hardcode_shlibpath_var_F77=no
13335
export_dynamic_flag_spec_F77='${wl}-Bexport'
13336
runpath_var=LD_RUN_PATH
13337
hardcode_runpath_var=yes
13341
no_undefined_flag_F77=' -z text'
13342
if test "$GCC" = yes; then
13343
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13344
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13345
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13347
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13348
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13349
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13351
hardcode_libdir_flag_spec_F77='-R$libdir'
13352
hardcode_shlibpath_var_F77=no
13354
solaris2.[0-5] | solaris2.[0-5].*) ;;
13355
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
13356
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13358
link_all_deplibs_F77=yes
13362
if test "x$host_vendor" = xsequent; then
13363
# Use $CC to link under sequent, because it throws in some extra .o
13364
# files that make .init and .fini sections work.
13365
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13367
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13369
hardcode_libdir_flag_spec_F77='-L$libdir'
13370
hardcode_direct_F77=yes
13371
hardcode_minus_L_F77=yes
13372
hardcode_shlibpath_var_F77=no
13376
case $host_vendor in
13378
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13379
hardcode_direct_F77=yes # is this really true???
13382
## LD is ld it makes a PLAMLIB
13383
## CC just makes a GrossModule.
13384
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13385
reload_cmds_F77='$CC -r -o $output$reload_objs'
13386
hardcode_direct_F77=no
13389
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13390
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13393
runpath_var='LD_RUN_PATH'
13394
hardcode_shlibpath_var_F77=no
13398
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13399
hardcode_shlibpath_var_F77=no
13400
export_dynamic_flag_spec_F77='-Bexport'
13404
if test -d /usr/nec; then
13405
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13406
hardcode_shlibpath_var_F77=no
13407
runpath_var=LD_RUN_PATH
13408
hardcode_runpath_var=yes
13414
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13415
hardcode_direct_F77=yes
13416
hardcode_minus_L_F77=no
13417
hardcode_shlibpath_var_F77=no
13418
hardcode_runpath_var=yes
13419
runpath_var=LD_RUN_PATH
13422
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13423
no_undefined_flag_F77='${wl}-z ${wl}text'
13424
if test "$GCC" = yes; then
13425
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13427
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13429
runpath_var='LD_RUN_PATH'
13430
hardcode_shlibpath_var_F77=no
13434
no_undefined_flag_F77=' -z text'
13435
# $CC -shared without GNU ld will not create a library from C++
13436
# object files and a static libstdc++, better avoid it by now
13437
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13440
hardcode_libdir_flag_spec_F77=
13441
hardcode_shlibpath_var_F77=no
13442
runpath_var='LD_RUN_PATH'
13446
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447
hardcode_libdir_flag_spec_F77='-L$libdir'
13448
hardcode_shlibpath_var_F77=no
13457
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13458
echo "${ECHO_T}$ld_shlibs_F77" >&6
13459
test "$ld_shlibs_F77" = no && can_build_shared=no
13461
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13462
if test "$GCC" = yes; then
13463
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13467
# Do we need to explicitly link libc?
13469
case "x$archive_cmds_need_lc_F77" in
13471
# Assume -lc should be added
13472
archive_cmds_need_lc_F77=yes
13474
if test "$enable_shared" = yes && test "$GCC" = yes; then
13475
case $archive_cmds_F77 in
13477
# FIXME: we may have to deal with multi-command sequences.
13480
# Test whether the compiler implicitly links with -lc since on some
13481
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13482
# to ld, don't add -lc before -lgcc.
13483
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13484
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13486
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489
(eval $ac_compile) 2>&5
13491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492
(exit $ac_status); } 2>conftest.err; then
13495
libobjs=conftest.$ac_objext
13497
wl=$lt_prog_compiler_wl_F77
13503
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13504
allow_undefined_flag_F77=
13505
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13506
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509
(exit $ac_status); }
13511
archive_cmds_need_lc_F77=no
13513
archive_cmds_need_lc_F77=yes
13515
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13517
cat conftest.err 1>&5
13520
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13521
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13528
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13529
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13530
library_names_spec=
13531
libname_spec='lib$name'
13535
postuninstall_cmds=
13539
shlibpath_overrides_runpath=unknown
13541
dynamic_linker="$host_os ld.so"
13542
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13543
if test "$GCC" = yes; then
13544
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13545
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13546
# if the path contains ";" then we assume it to be the separator
13547
# otherwise default to the standard path separator (i.e. ":") - it is
13548
# assumed that no part of a normal pathname contains ";" but that should
13549
# okay in the real world where ";" in dirpaths is itself problematic.
13550
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13552
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13555
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13557
need_lib_prefix=unknown
13558
hardcode_into_libs=no
13560
# when you set need_version to no, make sure it does not cause -set_version
13561
# flags to be left without arguments
13562
need_version=unknown
13567
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13568
shlibpath_var=LIBPATH
13570
# AIX 3 has no versioning support, so we append a major version to the name.
13571
soname_spec='${libname}${release}${shared_ext}$major'
13578
hardcode_into_libs=yes
13579
if test "$host_cpu" = ia64; then
13580
# AIX 5 supports IA64
13581
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13582
shlibpath_var=LD_LIBRARY_PATH
13584
# With GCC up to 2.95.x, collect2 would create an import file
13585
# for dependence libraries. The import file would start with
13586
# the line `#! .'. This would cause the generated library to
13587
# depend on `.', always an invalid library. This was fixed in
13588
# development snapshots of GCC prior to 3.0.
13590
aix4 | aix4.[01] | aix4.[01].*)
13591
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13593
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13596
can_build_shared=no
13600
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13601
# soname into executable. Probably we can add versioning support to
13602
# collect2, so additional links can be useful in future.
13603
if test "$aix_use_runtimelinking" = yes; then
13604
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13605
# instead of lib<name>.a to let people know that these are not
13606
# typical AIX shared libraries.
13607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609
# We preserve .a as extension for shared libraries through AIX4.2
13610
# and later when we are not doing run time linking.
13611
library_names_spec='${libname}${release}.a $libname.a'
13612
soname_spec='${libname}${release}${shared_ext}$major'
13614
shlibpath_var=LIBPATH
13619
library_names_spec='$libname.ixlibrary $libname.a'
13620
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13621
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13625
library_names_spec='${libname}${shared_ext}'
13626
dynamic_linker="$host_os ld.so"
13627
shlibpath_var=LIBRARY_PATH
13633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13634
soname_spec='${libname}${release}${shared_ext}$major'
13635
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13636
shlibpath_var=LD_LIBRARY_PATH
13637
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13638
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13639
# the default ld.so.conf also contains /usr/contrib/lib and
13640
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13641
# libtool to hard-code these into programs
13644
cygwin* | mingw* | pw32*)
13645
version_type=windows
13650
case $GCC,$host_os in
13651
yes,cygwin* | yes,mingw* | yes,pw32*)
13652
library_names_spec='$libname.dll.a'
13653
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13654
postinstall_cmds='base_file=`basename \${file}`~
13655
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13656
dldir=$destdir/`dirname \$dlpath`~
13657
test -d \$dldir || mkdir -p \$dldir~
13658
$install_prog $dir/$dlname \$dldir/$dlname'
13659
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13660
dlpath=$dir/\$dldll~
13662
shlibpath_overrides_runpath=yes
13666
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13667
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13668
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13671
# MinGW DLLs use traditional 'lib' prefix
13672
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13673
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13674
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13675
# It is most probably a Windows format PATH printed by
13676
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13677
# path with ; separators, and with drive letters. We can handle the
13678
# drive letters (cygwin fileutils understands them), so leave them,
13679
# especially as we might pass files found there to a mingw objdump,
13680
# which wouldn't understand a cygwinified path. Ahh.
13681
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13683
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13687
# pw32 DLLs use 'pw' prefix rather than 'lib'
13688
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13694
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13697
dynamic_linker='Win32 ld.exe'
13698
# FIXME: first we should search . and the directory the executable is in
13702
darwin* | rhapsody*)
13703
dynamic_linker="$host_os dyld"
13704
version_type=darwin
13707
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13708
soname_spec='${libname}${release}${major}$shared_ext'
13709
shlibpath_overrides_runpath=yes
13710
shlibpath_var=DYLD_LIBRARY_PATH
13711
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13712
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13713
if test "$GCC" = yes; then
13714
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13716
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13718
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13726
soname_spec='${libname}${release}${shared_ext}$major'
13727
shlibpath_var=LD_LIBRARY_PATH
13738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13739
soname_spec='${libname}${release}${shared_ext}$major'
13740
shlibpath_var=LD_LIBRARY_PATH
13741
shlibpath_overrides_runpath=no
13742
hardcode_into_libs=yes
13743
dynamic_linker='GNU ld.so'
13747
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13748
version_type=freebsd-$objformat
13749
case $version_type in
13751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13756
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13760
shlibpath_var=LD_LIBRARY_PATH
13763
shlibpath_overrides_runpath=yes
13765
freebsd3.01* | freebsdelf3.01*)
13766
shlibpath_overrides_runpath=yes
13767
hardcode_into_libs=yes
13770
shlibpath_overrides_runpath=no
13771
hardcode_into_libs=yes
13780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13781
soname_spec='${libname}${release}${shared_ext}$major'
13782
shlibpath_var=LD_LIBRARY_PATH
13783
hardcode_into_libs=yes
13786
hpux9* | hpux10* | hpux11*)
13787
# Give a soname corresponding to the major version so that dld.sl refuses to
13788
# link against other versions.
13792
case "$host_cpu" in
13795
hardcode_into_libs=yes
13796
dynamic_linker="$host_os dld.so"
13797
shlibpath_var=LD_LIBRARY_PATH
13798
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13800
soname_spec='${libname}${release}${shared_ext}$major'
13801
if test "X$HPUX_IA64_MODE" = X32; then
13802
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13804
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13806
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13810
hardcode_into_libs=yes
13811
dynamic_linker="$host_os dld.sl"
13812
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13813
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13815
soname_spec='${libname}${release}${shared_ext}$major'
13816
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13817
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13821
dynamic_linker="$host_os dld.sl"
13822
shlibpath_var=SHLIB_PATH
13823
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13825
soname_spec='${libname}${release}${shared_ext}$major'
13828
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13829
postinstall_cmds='chmod 555 $lib'
13832
irix5* | irix6* | nonstopux*)
13834
nonstopux*) version_type=nonstopux ;;
13836
if test "$lt_cv_prog_gnu_ld" = yes; then
13844
soname_spec='${libname}${release}${shared_ext}$major'
13845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13847
irix5* | nonstopux*)
13848
libsuff= shlibsuff=
13851
case $LD in # libtool.m4 will add one of these switches to LD
13852
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13853
libsuff= shlibsuff= libmagic=32-bit;;
13854
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13855
libsuff=32 shlibsuff=N32 libmagic=N32;;
13856
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13857
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13858
*) libsuff= shlibsuff= libmagic=never-match;;
13862
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13863
shlibpath_overrides_runpath=no
13864
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13865
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13866
hardcode_into_libs=yes
13869
# No shared lib support for Linux oldld, aout, or coff.
13870
linux*oldld* | linux*aout* | linux*coff*)
13874
# This must be Linux ELF.
13879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13880
soname_spec='${libname}${release}${shared_ext}$major'
13881
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13882
shlibpath_var=LD_LIBRARY_PATH
13883
shlibpath_overrides_runpath=no
13884
# This implies no fast_install, which is unacceptable.
13885
# Some rework will be needed to allow for fast_install
13886
# before this can be enabled.
13887
hardcode_into_libs=yes
13889
# We used to test for /lib/ld.so.1 and disable shared libraries on
13890
# powerpc, because MkLinux only supported shared libraries with the
13891
# GNU dynamic linker. Since this was broken with cross compilers,
13892
# most powerpc-linux boxes support dynamic linking these days and
13893
# people can always --disable-shared, the test was removed, and we
13894
# assume the GNU/Linux dynamic linker is in use.
13895
dynamic_linker='GNU/Linux ld.so'
13902
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13904
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13905
dynamic_linker='NetBSD (a.out) ld.so'
13907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13908
soname_spec='${libname}${release}${shared_ext}$major'
13909
dynamic_linker='NetBSD ld.elf_so'
13911
shlibpath_var=LD_LIBRARY_PATH
13912
shlibpath_overrides_runpath=yes
13913
hardcode_into_libs=yes
13918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919
shlibpath_var=LD_LIBRARY_PATH
13920
shlibpath_overrides_runpath=yes
13927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13928
soname_spec='${libname}${release}${shared_ext}$major'
13929
shlibpath_var=LD_LIBRARY_PATH
13930
shlibpath_overrides_runpath=yes
13937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13938
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13939
shlibpath_var=LD_LIBRARY_PATH
13940
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13942
openbsd2.[89] | openbsd2.[89].*)
13943
shlibpath_overrides_runpath=no
13946
shlibpath_overrides_runpath=yes
13950
shlibpath_overrides_runpath=yes
13955
libname_spec='$name'
13958
library_names_spec='$libname${shared_ext} $libname.a'
13959
dynamic_linker='OS/2 ld.exe'
13960
shlibpath_var=LIBPATH
13963
osf3* | osf4* | osf5*)
13967
soname_spec='${libname}${release}${shared_ext}$major'
13968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969
shlibpath_var=LD_LIBRARY_PATH
13970
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13971
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13976
soname_spec='${libname}${release}${shared_ext}$major'
13977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978
shlibpath_var=LD_LIBRARY_PATH
13985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13986
soname_spec='${libname}${release}${shared_ext}$major'
13987
shlibpath_var=LD_LIBRARY_PATH
13988
shlibpath_overrides_runpath=yes
13989
hardcode_into_libs=yes
13990
# ldd complains unless libraries are executable
13991
postinstall_cmds='chmod +x $lib'
13996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13997
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13998
shlibpath_var=LD_LIBRARY_PATH
13999
shlibpath_overrides_runpath=yes
14000
if test "$with_gnu_ld" = yes; then
14006
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009
soname_spec='${libname}${release}${shared_ext}$major'
14010
shlibpath_var=LD_LIBRARY_PATH
14011
case $host_vendor in
14013
shlibpath_overrides_runpath=no
14015
export_dynamic_flag_spec='${wl}-Blargedynsym'
14016
runpath_var=LD_RUN_PATH
14024
shlibpath_overrides_runpath=no
14025
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14031
if test -d /usr/nec ;then
14033
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14034
soname_spec='$libname${shared_ext}.$major'
14035
shlibpath_var=LD_LIBRARY_PATH
14041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14042
soname_spec='${libname}${release}${shared_ext}$major'
14043
shlibpath_var=LD_LIBRARY_PATH
14050
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14051
echo "${ECHO_T}$dynamic_linker" >&6
14052
test "$dynamic_linker" = no && can_build_shared=no
14054
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14055
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14056
hardcode_action_F77=
14057
if test -n "$hardcode_libdir_flag_spec_F77" || \
14058
test -n "$runpath_var F77" || \
14059
test "X$hardcode_automatic_F77"="Xyes" ; then
14061
# We can hardcode non-existant directories.
14062
if test "$hardcode_direct_F77" != no &&
14063
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14064
# have to relink, otherwise we might link with an installed library
14065
# when we should be linking with a yet-to-be-installed one
14066
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14067
test "$hardcode_minus_L_F77" != no; then
14068
# Linking always hardcodes the temporary library directory.
14069
hardcode_action_F77=relink
14071
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14072
hardcode_action_F77=immediate
14075
# We cannot hardcode anything, or else we can only hardcode existing
14077
hardcode_action_F77=unsupported
14079
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14080
echo "${ECHO_T}$hardcode_action_F77" >&6
14082
if test "$hardcode_action_F77" = relink; then
14083
# Fast installation is not supported
14084
enable_fast_install=no
14085
elif test "$shlibpath_overrides_runpath" = yes ||
14086
test "$enable_shared" = no; then
14087
# Fast installation is not necessary
14088
enable_fast_install=needless
14093
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14094
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14095
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14096
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14097
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14098
echo "$as_me:$LINENO: result: yes" >&5
14099
echo "${ECHO_T}yes" >&6
14101
# FIXME - insert some real tests, host_os isn't really good enough
14104
if test -n "$STRIP" ; then
14105
striplib="$STRIP -x"
14106
echo "$as_me:$LINENO: result: yes" >&5
14107
echo "${ECHO_T}yes" >&6
14109
echo "$as_me:$LINENO: result: no" >&5
14110
echo "${ECHO_T}no" >&6
14114
echo "$as_me:$LINENO: result: no" >&5
14115
echo "${ECHO_T}no" >&6
14122
# The else clause should only fire when bootstrapping the
14123
# libtool distribution, otherwise you forgot to ship ltmain.sh
14124
# with your package, and you will get complaints that there are
14125
# no rules to generate ltmain.sh.
14126
if test -f "$ltmain"; then
14127
# See if we are running on zsh, and set the options which allow our commands through
14128
# without removal of \ escapes.
14129
if test -n "${ZSH_VERSION+set}" ; then
14130
setopt NO_GLOB_SUBST
14132
# Now quote all the things that may contain metacharacters while being
14133
# careful not to overquote the AC_SUBSTed values. We take copies of the
14134
# variables and quote the copies for generation of the libtool script.
14135
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14136
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14137
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14138
deplibs_check_method reload_flag reload_cmds need_locks \
14139
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14140
lt_cv_sys_global_symbol_to_c_name_address \
14141
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14142
old_postinstall_cmds old_postuninstall_cmds \
14146
lt_prog_compiler_wl_F77 \
14147
lt_prog_compiler_pic_F77 \
14148
lt_prog_compiler_static_F77 \
14149
lt_prog_compiler_no_builtin_flag_F77 \
14150
export_dynamic_flag_spec_F77 \
14151
thread_safe_flag_spec_F77 \
14152
whole_archive_flag_spec_F77 \
14153
enable_shared_with_static_runtimes_F77 \
14154
old_archive_cmds_F77 \
14155
old_archive_from_new_cmds_F77 \
14156
predep_objects_F77 \
14157
postdep_objects_F77 \
14160
compiler_lib_search_path_F77 \
14162
archive_expsym_cmds_F77 \
14163
postinstall_cmds_F77 \
14164
postuninstall_cmds_F77 \
14165
old_archive_from_expsyms_cmds_F77 \
14166
allow_undefined_flag_F77 \
14167
no_undefined_flag_F77 \
14168
export_symbols_cmds_F77 \
14169
hardcode_libdir_flag_spec_F77 \
14170
hardcode_libdir_flag_spec_ld_F77 \
14171
hardcode_libdir_separator_F77 \
14172
hardcode_automatic_F77 \
14174
module_expsym_cmds_F77 \
14175
lt_cv_prog_compiler_c_o_F77 \
14176
exclude_expsyms_F77 \
14177
include_expsyms_F77; do
14180
old_archive_cmds_F77 | \
14181
old_archive_from_new_cmds_F77 | \
14182
archive_cmds_F77 | \
14183
archive_expsym_cmds_F77 | \
14184
module_cmds_F77 | \
14185
module_expsym_cmds_F77 | \
14186
old_archive_from_expsyms_cmds_F77 | \
14187
export_symbols_cmds_F77 | \
14188
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14189
postinstall_cmds | postuninstall_cmds | \
14190
old_postinstall_cmds | old_postuninstall_cmds | \
14191
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14192
# Double-quote double-evaled strings.
14193
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14196
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14202
*'\$0 --fallback-echo"')
14203
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14209
cat <<__EOF__ >> "$cfgfile"
14210
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14212
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14214
# Shell to use when invoking shell scripts.
14217
# Whether or not to build shared libraries.
14218
build_libtool_libs=$enable_shared
14220
# Whether or not to build static libraries.
14221
build_old_libs=$enable_static
14223
# Whether or not to add -lc for building shared libraries.
14224
build_libtool_need_lc=$archive_cmds_need_lc_F77
14226
# Whether or not to disallow shared libs when runtime libs are static
14227
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14229
# Whether or not to optimize for fast installation.
14230
fast_install=$enable_fast_install
14233
host_alias=$host_alias
14236
# An echo program that does not interpret backslashes.
14241
AR_FLAGS=$lt_AR_FLAGS
14246
# A language-specific compiler.
14247
CC=$lt_compiler_F77
14249
# Is the compiler the GNU C compiler?
14255
# The linker used to build libraries.
14258
# Whether we need hard or soft links.
14261
# A BSD-compatible nm program.
14264
# A symbol stripping program
14267
# Used to examine libraries when file_magic_cmd begins "file"
14268
MAGIC_CMD=$MAGIC_CMD
14270
# Used on cygwin: DLL creation program.
14273
# Used on cygwin: object dumper.
14276
# Used on cygwin: assembler.
14279
# The name of the directory that contains temporary libtool files.
14282
# How to create reloadable object files.
14283
reload_flag=$lt_reload_flag
14284
reload_cmds=$lt_reload_cmds
14286
# How to pass a linker flag through the compiler.
14287
wl=$lt_lt_prog_compiler_wl_F77
14289
# Object file suffix (normally "o").
14290
objext="$ac_objext"
14292
# Old archive suffix (normally "a").
14295
# Shared library suffix (normally ".so").
14298
# Executable file suffix (normally "").
14301
# Additional compiler flags for building library objects.
14302
pic_flag=$lt_lt_prog_compiler_pic_F77
14305
# What is the maximum length of a command?
14306
max_cmd_len=$lt_cv_sys_max_cmd_len
14308
# Does compiler simultaneously support -c and -o options?
14309
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14311
# Must we lock files when doing compilation ?
14312
need_locks=$lt_need_locks
14314
# Do we need the lib prefix for modules?
14315
need_lib_prefix=$need_lib_prefix
14317
# Do we need a version for libraries?
14318
need_version=$need_version
14320
# Whether dlopen is supported.
14321
dlopen_support=$enable_dlopen
14323
# Whether dlopen of programs is supported.
14324
dlopen_self=$enable_dlopen_self
14326
# Whether dlopen of statically linked programs is supported.
14327
dlopen_self_static=$enable_dlopen_self_static
14329
# Compiler flag to prevent dynamic linking.
14330
link_static_flag=$lt_lt_prog_compiler_static_F77
14332
# Compiler flag to turn off builtin functions.
14333
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14335
# Compiler flag to allow reflexive dlopens.
14336
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14338
# Compiler flag to generate shared objects directly from archives.
14339
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14341
# Compiler flag to generate thread-safe objects.
14342
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14344
# Library versioning type.
14345
version_type=$version_type
14347
# Format of library name prefix.
14348
libname_spec=$lt_libname_spec
14350
# List of archive names. First name is the real one, the rest are links.
14351
# The last name is the one that the linker finds with -lNAME.
14352
library_names_spec=$lt_library_names_spec
14354
# The coded name of the library, if different from the real name.
14355
soname_spec=$lt_soname_spec
14357
# Commands used to build and install an old-style archive.
14359
old_archive_cmds=$lt_old_archive_cmds_F77
14360
old_postinstall_cmds=$lt_old_postinstall_cmds
14361
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14363
# Create an old-style archive from a shared archive.
14364
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14366
# Create a temporary old-style archive to link instead of a shared archive.
14367
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14369
# Commands used to build and install a shared archive.
14370
archive_cmds=$lt_archive_cmds_F77
14371
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14372
postinstall_cmds=$lt_postinstall_cmds
14373
postuninstall_cmds=$lt_postuninstall_cmds
14375
# Commands used to build a loadable module (assumed same as above if empty)
14376
module_cmds=$lt_module_cmds_F77
14377
module_expsym_cmds=$lt_module_expsym_cmds_F77
14379
# Commands to strip libraries.
14380
old_striplib=$lt_old_striplib
14381
striplib=$lt_striplib
14383
# Dependencies to place before the objects being linked to create a
14385
predep_objects=$lt_predep_objects_F77
14387
# Dependencies to place after the objects being linked to create a
14389
postdep_objects=$lt_postdep_objects_F77
14391
# Dependencies to place before the objects being linked to create a
14393
predeps=$lt_predeps_F77
14395
# Dependencies to place after the objects being linked to create a
14397
postdeps=$lt_postdeps_F77
14399
# The library search path used internally by the compiler when linking
14400
# a shared library.
14401
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14403
# Method to check whether dependent libraries are shared objects.
14404
deplibs_check_method=$lt_deplibs_check_method
14406
# Command to use when deplibs_check_method == file_magic.
14407
file_magic_cmd=$lt_file_magic_cmd
14409
# Flag that allows shared libraries with undefined symbols to be built.
14410
allow_undefined_flag=$lt_allow_undefined_flag_F77
14412
# Flag that forces no undefined symbols.
14413
no_undefined_flag=$lt_no_undefined_flag_F77
14415
# Commands used to finish a libtool library installation in a directory.
14416
finish_cmds=$lt_finish_cmds
14418
# Same as above, but a single script fragment to be evaled but not shown.
14419
finish_eval=$lt_finish_eval
14421
# Take the output of nm and produce a listing of raw symbols and C names.
14422
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14424
# Transform the output of nm in a proper C declaration
14425
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14427
# Transform the output of nm in a C name address pair
14428
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14430
# This is the shared library runtime path variable.
14431
runpath_var=$runpath_var
14433
# This is the shared library path variable.
14434
shlibpath_var=$shlibpath_var
14436
# Is shlibpath searched before the hard-coded library search path?
14437
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14439
# How to hardcode a shared library path into an executable.
14440
hardcode_action=$hardcode_action_F77
14442
# Whether we should hardcode library paths into libraries.
14443
hardcode_into_libs=$hardcode_into_libs
14445
# Flag to hardcode \$libdir into a binary during linking.
14446
# This must work even if \$libdir does not exist.
14447
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14449
# If ld is used when linking, flag to hardcode \$libdir into
14450
# a binary during linking. This must work even if \$libdir does
14452
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14454
# Whether we need a single -rpath flag with a separated argument.
14455
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14457
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14458
# resulting binary.
14459
hardcode_direct=$hardcode_direct_F77
14461
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14462
# resulting binary.
14463
hardcode_minus_L=$hardcode_minus_L_F77
14465
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14466
# the resulting binary.
14467
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14469
# Set to yes if building a shared library automatically hardcodes DIR into the library
14470
# and all subsequent libraries and executables linked against it.
14471
hardcode_automatic=$hardcode_automatic_F77
14473
# Variables whose values should be saved in libtool wrapper scripts and
14474
# restored at relink time.
14475
variables_saved_for_relink="$variables_saved_for_relink"
14477
# Whether libtool must link a program against all its dependency libraries.
14478
link_all_deplibs=$link_all_deplibs_F77
14480
# Compile-time system search path for libraries
14481
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14483
# Run-time system search path for libraries
14484
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14486
# Fix the shell variable \$srcfile for the compiler.
14487
fix_srcfile_path="$fix_srcfile_path_F77"
14489
# Set to yes if exported symbols are required.
14490
always_export_symbols=$always_export_symbols_F77
14492
# The commands to list exported symbols.
14493
export_symbols_cmds=$lt_export_symbols_cmds_F77
14495
# The commands to extract the exported symbol list from a shared archive.
14496
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14498
# Symbols that should not be listed in the preloaded symbols.
14499
exclude_expsyms=$lt_exclude_expsyms_F77
14501
# Symbols that must always be exported.
14502
include_expsyms=$lt_include_expsyms_F77
14504
# ### END LIBTOOL TAG CONFIG: $tagname
14510
# If there is no Makefile yet, we rely on a make rule to execute
14511
# `config.status --recheck' to rerun these tests and create the
14512
# libtool script then.
14513
test -f Makefile && make "$ltmain"
14518
ac_cpp='$CPP $CPPFLAGS'
14519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14531
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14535
# Source file extension for Java test sources.
14538
# Object file extension for compiled Java test sources.
14542
# Code to be used in simple compile tests
14543
lt_simple_compile_test_code="class foo {}\n"
14545
# Code to be used in simple link tests
14546
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14548
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14550
# If no C compiler was specified, use CC.
14553
# Allow CC to be a program name with arguments.
14557
# Allow CC to be a program name with arguments.
14563
# GCJ did not exist at the time GCC didn't implicitly link libc in.
14564
archive_cmds_need_lc_GCJ=no
14567
lt_prog_compiler_no_builtin_flag_GCJ=
14569
if test "$GCC" = yes; then
14570
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14573
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14574
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14575
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14576
echo $ECHO_N "(cached) $ECHO_C" >&6
14578
lt_cv_prog_compiler_rtti_exceptions=no
14579
ac_outfile=conftest.$ac_objext
14580
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14581
lt_compiler_flag="-fno-rtti -fno-exceptions"
14582
# Insert the option either (1) after the last *FLAGS variable, or
14583
# (2) before a word containing "conftest.", or (3) at the end.
14584
# Note that $ac_compile itself does not contain backslashes and begins
14585
# with a dollar sign (not a hyphen), so the echo should work correctly.
14586
# The option is referenced via a variable to avoid confusing sed.
14587
lt_compile=`echo "$ac_compile" | $SED \
14588
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14589
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590
-e 's:$: $lt_compiler_flag:'`
14591
(eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592
(eval "$lt_compile" 2>conftest.err)
14594
cat conftest.err >&5
14595
echo "$as_me:14595: \$? = $ac_status" >&5
14596
if (exit $ac_status) && test -s "$ac_outfile"; then
14597
# The compiler can only warn and ignore the option if not recognized
14598
# So say no if there are warnings
14599
if test ! -s conftest.err; then
14600
lt_cv_prog_compiler_rtti_exceptions=yes
14606
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14607
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14609
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14610
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14617
lt_prog_compiler_wl_GCJ=
14618
lt_prog_compiler_pic_GCJ=
14619
lt_prog_compiler_static_GCJ=
14621
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14622
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14624
if test "$GCC" = yes; then
14625
lt_prog_compiler_wl_GCJ='-Wl,'
14626
lt_prog_compiler_static_GCJ='-static'
14630
# All AIX code is PIC.
14631
if test "$host_cpu" = ia64; then
14632
# AIX 5 now supports IA64 processor
14633
lt_prog_compiler_static_GCJ='-Bstatic'
14638
# FIXME: we need at least 68020 code to build shared libraries, but
14639
# adding the `-m68020' flag to GCC prevents building anything better,
14641
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14644
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14645
# PIC is the default for these OSes.
14648
mingw* | pw32* | os2*)
14649
# This hack is so that the source file can tell whether it is being
14650
# built for inclusion in a dll (and should export symbols for example).
14651
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14654
darwin* | rhapsody*)
14655
# PIC is the default on this platform
14656
# Common symbols not allowed in MH_DYLIB files
14657
lt_prog_compiler_pic_GCJ='-fno-common'
14661
# Just because we use GCC doesn't mean we suddenly get shared libraries
14662
# on systems that don't support them.
14663
lt_prog_compiler_can_build_shared_GCJ=no
14668
if test -d /usr/nec; then
14669
lt_prog_compiler_pic_GCJ=-Kconform_pic
14674
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14675
# not for PA HP-UX.
14676
case "$host_cpu" in
14681
lt_prog_compiler_pic_GCJ='-fPIC'
14687
lt_prog_compiler_pic_GCJ='-fPIC'
14691
# PORTME Check for flag to pass linker flags through the system compiler.
14694
lt_prog_compiler_wl_GCJ='-Wl,'
14695
if test "$host_cpu" = ia64; then
14696
# AIX 5 now supports IA64 processor
14697
lt_prog_compiler_static_GCJ='-Bstatic'
14699
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14703
mingw* | pw32* | os2*)
14704
# This hack is so that the source file can tell whether it is being
14705
# built for inclusion in a dll (and should export symbols for example).
14706
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14709
hpux9* | hpux10* | hpux11*)
14710
lt_prog_compiler_wl_GCJ='-Wl,'
14711
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14712
# not for PA HP-UX.
14713
case "$host_cpu" in
14718
lt_prog_compiler_pic_GCJ='+Z'
14721
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14722
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14725
irix5* | irix6* | nonstopux*)
14726
lt_prog_compiler_wl_GCJ='-Wl,'
14727
# PIC (with -KPIC) is the default.
14728
lt_prog_compiler_static_GCJ='-non_shared'
14732
lt_prog_compiler_pic_GCJ='-KPIC'
14733
lt_prog_compiler_static_GCJ='-Bstatic'
14739
lt_prog_compiler_wl_GCJ='-Wl,'
14740
lt_prog_compiler_pic_GCJ='-KPIC'
14741
lt_prog_compiler_static_GCJ='-static'
14744
lt_prog_compiler_wl_GCJ='-Wl,'
14745
# All Alpha code is PIC.
14746
lt_prog_compiler_static_GCJ='-non_shared'
14751
osf3* | osf4* | osf5*)
14752
lt_prog_compiler_wl_GCJ='-Wl,'
14753
# All OSF/1 code is PIC.
14754
lt_prog_compiler_static_GCJ='-non_shared'
14758
lt_prog_compiler_pic_GCJ='-Kpic'
14759
lt_prog_compiler_static_GCJ='-dn'
14763
lt_prog_compiler_wl_GCJ='-Wl,'
14764
lt_prog_compiler_pic_GCJ='-KPIC'
14765
lt_prog_compiler_static_GCJ='-Bstatic'
14769
lt_prog_compiler_wl_GCJ='-Qoption ld '
14770
lt_prog_compiler_pic_GCJ='-PIC'
14771
lt_prog_compiler_static_GCJ='-Bstatic'
14774
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14775
lt_prog_compiler_wl_GCJ='-Wl,'
14776
lt_prog_compiler_pic_GCJ='-KPIC'
14777
lt_prog_compiler_static_GCJ='-Bstatic'
14781
if test -d /usr/nec ;then
14782
lt_prog_compiler_pic_GCJ='-Kconform_pic'
14783
lt_prog_compiler_static_GCJ='-Bstatic'
14788
lt_prog_compiler_pic_GCJ='-pic'
14789
lt_prog_compiler_static_GCJ='-Bstatic'
14793
lt_prog_compiler_can_build_shared_GCJ=no
14798
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14799
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14802
# Check to make sure the PIC flag actually works.
14804
if test -n "$lt_prog_compiler_pic_GCJ"; then
14806
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14807
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14808
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14809
echo $ECHO_N "(cached) $ECHO_C" >&6
14811
lt_prog_compiler_pic_works_GCJ=no
14812
ac_outfile=conftest.$ac_objext
14813
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14814
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14815
# Insert the option either (1) after the last *FLAGS variable, or
14816
# (2) before a word containing "conftest.", or (3) at the end.
14817
# Note that $ac_compile itself does not contain backslashes and begins
14818
# with a dollar sign (not a hyphen), so the echo should work correctly.
14819
# The option is referenced via a variable to avoid confusing sed.
14820
lt_compile=`echo "$ac_compile" | $SED \
14821
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14822
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823
-e 's:$: $lt_compiler_flag:'`
14824
(eval echo "\"\$as_me:14824: $lt_compile\"" >&5)
14825
(eval "$lt_compile" 2>conftest.err)
14827
cat conftest.err >&5
14828
echo "$as_me:14828: \$? = $ac_status" >&5
14829
if (exit $ac_status) && test -s "$ac_outfile"; then
14830
# The compiler can only warn and ignore the option if not recognized
14831
# So say no if there are warnings
14832
if test ! -s conftest.err; then
14833
lt_prog_compiler_pic_works_GCJ=yes
14839
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14840
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14842
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14843
case $lt_prog_compiler_pic_GCJ in
14845
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14848
lt_prog_compiler_pic_GCJ=
14849
lt_prog_compiler_can_build_shared_GCJ=no
14854
# For platforms which do not support PIC, -DPIC is meaningless:
14856
lt_prog_compiler_pic_GCJ=
14859
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14863
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14864
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14865
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14866
echo $ECHO_N "(cached) $ECHO_C" >&6
14868
lt_cv_prog_compiler_c_o_GCJ=no
14869
$rm -r conftest 2>/dev/null
14873
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14875
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14876
# that will create temporary files in the current directory regardless of
14877
# the output directory. Thus, making CWD read-only will cause this test
14878
# to fail, enabling locking or at least warning the user not to do parallel
14882
lt_compiler_flag="-o out/conftest2.$ac_objext"
14883
# Insert the option either (1) after the last *FLAGS variable, or
14884
# (2) before a word containing "conftest.", or (3) at the end.
14885
# Note that $ac_compile itself does not contain backslashes and begins
14886
# with a dollar sign (not a hyphen), so the echo should work correctly.
14887
lt_compile=`echo "$ac_compile" | $SED \
14888
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14889
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14890
-e 's:$: $lt_compiler_flag:'`
14891
(eval echo "\"\$as_me:14891: $lt_compile\"" >&5)
14892
(eval "$lt_compile" 2>out/conftest.err)
14894
cat out/conftest.err >&5
14895
echo "$as_me:14895: \$? = $ac_status" >&5
14896
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14898
# The compiler can only warn and ignore the option if not recognized
14899
# So say no if there are warnings
14900
if test ! -s out/conftest.err; then
14901
lt_cv_prog_compiler_c_o_GCJ=yes
14906
# SGI C++ compiler will create directory out/ii_files/ for
14907
# template instantiation
14908
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14909
$rm out/* && rmdir out
14915
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14916
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14919
hard_links="nottested"
14920
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14921
# do not overwrite the value of need_locks provided by the user
14922
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14923
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14926
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14928
ln conftest.a conftest.b 2>&5 || hard_links=no
14929
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14930
echo "$as_me:$LINENO: result: $hard_links" >&5
14931
echo "${ECHO_T}$hard_links" >&6
14932
if test "$hard_links" = no; then
14933
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14934
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14941
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14942
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14945
allow_undefined_flag_GCJ=
14946
enable_shared_with_static_runtimes_GCJ=no
14948
archive_expsym_cmds_GCJ=
14949
old_archive_From_new_cmds_GCJ=
14950
old_archive_from_expsyms_cmds_GCJ=
14951
export_dynamic_flag_spec_GCJ=
14952
whole_archive_flag_spec_GCJ=
14953
thread_safe_flag_spec_GCJ=
14954
hardcode_libdir_flag_spec_GCJ=
14955
hardcode_libdir_flag_spec_ld_GCJ=
14956
hardcode_libdir_separator_GCJ=
14957
hardcode_direct_GCJ=no
14958
hardcode_minus_L_GCJ=no
14959
hardcode_shlibpath_var_GCJ=unsupported
14960
link_all_deplibs_GCJ=unknown
14961
hardcode_automatic_GCJ=no
14963
module_expsym_cmds_GCJ=
14964
always_export_symbols_GCJ=no
14965
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14966
# include_expsyms should be a list of space-separated symbols to be *always*
14967
# included in the symbol list
14968
include_expsyms_GCJ=
14969
# exclude_expsyms can be an extended regexp of symbols to exclude
14970
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14971
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14972
# as well as any symbol that contains `d'.
14973
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14974
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14975
# platforms (ab)use it in PIC code, but their linkers get confused if
14976
# the symbol is explicitly referenced. Since portable code cannot
14977
# rely on this symbol name, it's probably fine to never include it in
14978
# preloaded symbol tables.
14979
extract_expsyms_cmds=
14982
cygwin* | mingw* | pw32*)
14983
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14984
# When not using gcc, we currently assume that we are using
14985
# Microsoft Visual C++.
14986
if test "$GCC" != yes; then
14996
if test "$with_gnu_ld" = yes; then
14997
# If archive_cmds runs LD, not CC, wlarc should be empty
15000
# See if GNU ld supports shared libraries.
15002
aix3* | aix4* | aix5*)
15003
# On AIX/PPC, the GNU linker is very broken
15004
if test "$host_cpu" != ia64; then
15008
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15009
*** to be unable to reliably create shared libraries on AIX.
15010
*** Therefore, libtool is disabling shared libraries support. If you
15011
*** really care for shared libraries, you may want to modify your PATH
15012
*** so that a non-GNU linker is found, and then restart.
15019
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15020
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15021
hardcode_minus_L_GCJ=yes
15023
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15024
# that the semantics of dynamic libraries on AmigaOS, at least up
15025
# to version 4, is to share data among multiple programs linked
15026
# with the same dynamic library. Since this doesn't match the
15027
# behavior of shared libraries on other platforms, we can't use
15033
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15034
allow_undefined_flag_GCJ=unsupported
15035
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15036
# support --undefined. This deserves some investigation. FIXME
15037
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043
cygwin* | mingw* | pw32*)
15044
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15045
# as there is no search path for DLLs.
15046
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15047
allow_undefined_flag_GCJ=unsupported
15048
always_export_symbols_GCJ=no
15049
enable_shared_with_static_runtimes_GCJ=yes
15050
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15052
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15053
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15054
# If the export-symbols file already is a .def file (1st line
15055
# is EXPORTS), use it as is; otherwise, prepend...
15056
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15057
cp $export_symbols $output_objdir/$soname.def;
15059
echo EXPORTS > $output_objdir/$soname.def;
15060
cat $export_symbols >> $output_objdir/$soname.def;
15062
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15069
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15070
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15073
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15079
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15083
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15084
*** create shared libraries on Solaris systems. Therefore, libtool
15085
*** is disabling shared libraries support. We urge you to upgrade GNU
15086
*** binutils to release 2.9.1 or newer. Another option is to modify
15087
*** your PATH or compiler configuration so that the native linker is
15088
*** used, and then restart.
15091
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15092
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15093
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15102
hardcode_direct_GCJ=yes
15103
hardcode_shlibpath_var_GCJ=no
15107
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15108
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15109
archive_cmds_GCJ="$tmp_archive_cmds"
15110
supports_anon_versioning=no
15111
case `$LD -v 2>/dev/null` in
15112
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15113
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15114
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15115
*\ 2.11.*) ;; # other 2.11 versions
15116
*) supports_anon_versioning=yes ;;
15118
if test $supports_anon_versioning = yes; then
15119
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15120
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15121
$echo "local: *; };" >> $output_objdir/$libname.ver~
15122
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15124
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15132
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15133
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15141
if test "$ld_shlibs_GCJ" = yes; then
15142
runpath_var=LD_RUN_PATH
15143
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15144
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15145
# ancient GNU ld didn't support --whole-archive et. al.
15146
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15147
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15149
whole_archive_flag_spec_GCJ=
15153
# PORTME fill in a description of your system's linker (not GNU ld)
15156
allow_undefined_flag_GCJ=unsupported
15157
always_export_symbols_GCJ=yes
15158
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15159
# Note: this linker hardcodes the directories in LIBPATH if there
15160
# are no directories specified by -L.
15161
hardcode_minus_L_GCJ=yes
15162
if test "$GCC" = yes && test -z "$link_static_flag"; then
15163
# Neither direct hardcoding nor static linking is supported with a
15165
hardcode_direct_GCJ=unsupported
15170
if test "$host_cpu" = ia64; then
15171
# On IA64, the linker does run time linking by default, so we don't
15172
# have to do anything special.
15173
aix_use_runtimelinking=no
15174
exp_sym_flag='-Bexport'
15177
# If we're using GNU nm, then we don't want the "-C" option.
15178
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15179
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15180
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15182
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15184
aix_use_runtimelinking=no
15186
# Test if we are trying to use run time linking or normal
15187
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15188
# need to do runtime linking.
15189
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15190
for ld_flag in $LDFLAGS; do
15191
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15192
aix_use_runtimelinking=yes
15198
exp_sym_flag='-bexport'
15199
no_entry_flag='-bnoentry'
15202
# When large executables or shared objects are built, AIX ld can
15203
# have problems creating the table of contents. If linking a library
15204
# or program results in "error TOC overflow" add -mminimal-toc to
15205
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15206
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15208
archive_cmds_GCJ=''
15209
hardcode_direct_GCJ=yes
15210
hardcode_libdir_separator_GCJ=':'
15211
link_all_deplibs_GCJ=yes
15213
if test "$GCC" = yes; then
15214
case $host_os in aix4.012|aix4.012.*)
15215
# We only want to do this on AIX 4.2 and lower, the check
15216
# below for broken collect2 doesn't work under 4.3+
15217
collect2name=`${CC} -print-prog-name=collect2`
15218
if test -f "$collect2name" && \
15219
strings "$collect2name" | grep resolve_lib_name >/dev/null
15221
# We have reworked collect2
15222
hardcode_direct_GCJ=yes
15224
# We have old collect2
15225
hardcode_direct_GCJ=unsupported
15226
# It fails to find uninstalled libraries when the uninstalled
15227
# path is not listed in the libpath. Setting hardcode_minus_L
15228
# to unsupported forces relinking
15229
hardcode_minus_L_GCJ=yes
15230
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15231
hardcode_libdir_separator_GCJ=
15234
shared_flag='-shared'
15237
if test "$host_cpu" = ia64; then
15238
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15239
# chokes on -Wl,-G. The following line is correct:
15242
if test "$aix_use_runtimelinking" = yes; then
15243
shared_flag='${wl}-G'
15245
shared_flag='${wl}-bM:SRE'
15250
# It seems that -bexpall does not export symbols beginning with
15251
# underscore (_), so it is better to generate a list of symbols to export.
15252
always_export_symbols_GCJ=yes
15253
if test "$aix_use_runtimelinking" = yes; then
15254
# Warning - without using the other runtime loading flags (-brtl),
15255
# -berok will link without error, but may produce a broken library.
15256
allow_undefined_flag_GCJ='-berok'
15257
# Determine the default libpath from the value encoded in an empty executable.
15258
cat >conftest.$ac_ext <<_ACEOF
15259
#line $LINENO "configure"
15262
cat confdefs.h >>conftest.$ac_ext
15263
cat >>conftest.$ac_ext <<_ACEOF
15264
/* end confdefs.h. */
15274
rm -f conftest.$ac_objext conftest$ac_exeext
15275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276
(eval $ac_link) 2>&5
15278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279
(exit $ac_status); } &&
15280
{ ac_try='test -s conftest$ac_exeext'
15281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282
(eval $ac_try) 2>&5
15284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285
(exit $ac_status); }; }; then
15287
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15289
# Check for a 64-bit object if we didn't find anything.
15290
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15293
echo "$as_me: failed program was:" >&5
15294
sed 's/^/| /' conftest.$ac_ext >&5
15297
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15298
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15300
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15301
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15303
if test "$host_cpu" = ia64; then
15304
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15305
allow_undefined_flag_GCJ="-z nodefs"
15306
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15308
# Determine the default libpath from the value encoded in an empty executable.
15309
cat >conftest.$ac_ext <<_ACEOF
15310
#line $LINENO "configure"
15313
cat confdefs.h >>conftest.$ac_ext
15314
cat >>conftest.$ac_ext <<_ACEOF
15315
/* end confdefs.h. */
15325
rm -f conftest.$ac_objext conftest$ac_exeext
15326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327
(eval $ac_link) 2>&5
15329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330
(exit $ac_status); } &&
15331
{ ac_try='test -s conftest$ac_exeext'
15332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333
(eval $ac_try) 2>&5
15335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336
(exit $ac_status); }; }; then
15338
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15340
# Check for a 64-bit object if we didn't find anything.
15341
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15344
echo "$as_me: failed program was:" >&5
15345
sed 's/^/| /' conftest.$ac_ext >&5
15348
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15351
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15352
# Warning - without using the other run time loading flags,
15353
# -berok will link without error, but may produce a broken library.
15354
no_undefined_flag_GCJ=' ${wl}-bernotok'
15355
allow_undefined_flag_GCJ=' ${wl}-berok'
15356
# -bexpall does not export symbols beginning with underscore (_)
15357
always_export_symbols_GCJ=yes
15358
# Exported symbols can be pulled into shared objects from archives
15359
whole_archive_flag_spec_GCJ=' '
15360
archive_cmds_need_lc_GCJ=yes
15361
# This is similar to how AIX traditionally builds it's shared libraries.
15362
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15368
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15369
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15370
hardcode_minus_L_GCJ=yes
15371
# see comment about different semantics on the GNU ld section
15376
export_dynamic_flag_spec_GCJ=-rdynamic
15379
cygwin* | mingw* | pw32*)
15380
# When not using gcc, we currently assume that we are using
15381
# Microsoft Visual C++.
15382
# hardcode_libdir_flag_spec is actually meaningless, as there is
15383
# no search path for DLLs.
15384
hardcode_libdir_flag_spec_GCJ=' '
15385
allow_undefined_flag_GCJ=unsupported
15386
# Tell ltmain to make .lib files, not .a files.
15388
# Tell ltmain to make .dll files, not .so files.
15390
# FIXME: Setting linknames here is a bad hack.
15391
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15392
# The linker will automatically build a .lib file if we build a DLL.
15393
old_archive_From_new_cmds_GCJ='true'
15394
# FIXME: Should let the user specify the lib program.
15395
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15396
fix_srcfile_path='`cygpath -w "$srcfile"`'
15397
enable_shared_with_static_runtimes_GCJ=yes
15400
darwin* | rhapsody*)
15401
if test "$GXX" = yes ; then
15402
archive_cmds_need_lc_GCJ=no
15404
rhapsody* | darwin1.[012])
15405
allow_undefined_flag_GCJ='-undefined suppress'
15408
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15409
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15411
case ${MACOSX_DEPLOYMENT_TARGET} in
15413
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15416
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15422
lt_int_apple_cc_single_mod=no
15423
output_verbose_link_cmd='echo'
15424
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15425
lt_int_apple_cc_single_mod=yes
15427
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15428
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15430
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15432
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15433
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15434
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15435
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15437
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15439
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15440
hardcode_direct_GCJ=no
15441
hardcode_automatic_GCJ=yes
15442
hardcode_shlibpath_var_GCJ=unsupported
15443
whole_archive_flag_spec_GCJ='-all_load $convenience'
15444
link_all_deplibs_GCJ=yes
15451
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15453
hardcode_shlibpath_var_GCJ=no
15460
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15461
# support. Future versions do this automatically, but an explicit c++rt0.o
15462
# does not break anything, and helps significantly (at the cost of a little
15465
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15466
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15467
hardcode_direct_GCJ=yes
15468
hardcode_shlibpath_var_GCJ=no
15471
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15473
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15474
hardcode_direct_GCJ=yes
15475
hardcode_minus_L_GCJ=yes
15476
hardcode_shlibpath_var_GCJ=no
15479
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15480
freebsd* | kfreebsd*-gnu)
15481
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15482
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15483
hardcode_direct_GCJ=yes
15484
hardcode_shlibpath_var_GCJ=no
15488
if test "$GCC" = yes; then
15489
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15491
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15493
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15494
hardcode_libdir_separator_GCJ=:
15495
hardcode_direct_GCJ=yes
15497
# hardcode_minus_L: Not really in the search PATH,
15498
# but as the default location of the library.
15499
hardcode_minus_L_GCJ=yes
15500
export_dynamic_flag_spec_GCJ='${wl}-E'
15504
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15505
case "$host_cpu" in
15507
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15514
case "$host_cpu" in
15516
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15519
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15523
if test "$with_gnu_ld" = no; then
15524
case "$host_cpu" in
15526
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15527
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15528
hardcode_libdir_separator_GCJ=:
15529
hardcode_direct_GCJ=no
15530
hardcode_shlibpath_var_GCJ=no
15533
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15534
hardcode_direct_GCJ=no
15535
hardcode_shlibpath_var_GCJ=no
15537
# hardcode_minus_L: Not really in the search PATH,
15538
# but as the default location of the library.
15539
hardcode_minus_L_GCJ=yes
15542
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15543
hardcode_libdir_separator_GCJ=:
15544
hardcode_direct_GCJ=yes
15545
export_dynamic_flag_spec_GCJ='${wl}-E'
15547
# hardcode_minus_L: Not really in the search PATH,
15548
# but as the default location of the library.
15549
hardcode_minus_L_GCJ=yes
15555
irix5* | irix6* | nonstopux*)
15556
if test "$GCC" = yes; then
15557
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15559
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15560
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15562
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15563
hardcode_libdir_separator_GCJ=:
15564
link_all_deplibs_GCJ=yes
15568
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15569
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15571
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15573
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15574
hardcode_direct_GCJ=yes
15575
hardcode_shlibpath_var_GCJ=no
15579
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580
hardcode_direct_GCJ=yes
15581
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15582
hardcode_libdir_separator_GCJ=:
15583
hardcode_shlibpath_var_GCJ=no
15587
hardcode_direct_GCJ=yes
15588
hardcode_shlibpath_var_GCJ=no
15589
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15590
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15591
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15592
export_dynamic_flag_spec_GCJ='${wl}-E'
15595
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15596
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15597
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15600
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15601
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15608
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15609
hardcode_minus_L_GCJ=yes
15610
allow_undefined_flag_GCJ=unsupported
15611
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15612
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15616
if test "$GCC" = yes; then
15617
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15618
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15620
allow_undefined_flag_GCJ=' -expect_unresolved \*'
15621
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15623
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15624
hardcode_libdir_separator_GCJ=:
15627
osf4* | osf5*) # as osf3* with the addition of -msym flag
15628
if test "$GCC" = yes; then
15629
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15630
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15631
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15633
allow_undefined_flag_GCJ=' -expect_unresolved \*'
15634
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15635
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15636
$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'
15638
# Both c and cxx compiler support -rpath directly
15639
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15641
hardcode_libdir_separator_GCJ=:
15645
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646
hardcode_shlibpath_var_GCJ=no
15647
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15648
runpath_var=LD_RUN_PATH
15649
hardcode_runpath_var=yes
15653
no_undefined_flag_GCJ=' -z text'
15654
if test "$GCC" = yes; then
15655
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15657
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15659
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15660
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15661
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15663
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15664
hardcode_shlibpath_var_GCJ=no
15666
solaris2.[0-5] | solaris2.[0-5].*) ;;
15667
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15668
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15670
link_all_deplibs_GCJ=yes
15674
if test "x$host_vendor" = xsequent; then
15675
# Use $CC to link under sequent, because it throws in some extra .o
15676
# files that make .init and .fini sections work.
15677
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15679
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15681
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15682
hardcode_direct_GCJ=yes
15683
hardcode_minus_L_GCJ=yes
15684
hardcode_shlibpath_var_GCJ=no
15688
case $host_vendor in
15690
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691
hardcode_direct_GCJ=yes # is this really true???
15694
## LD is ld it makes a PLAMLIB
15695
## CC just makes a GrossModule.
15696
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15697
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15698
hardcode_direct_GCJ=no
15701
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15705
runpath_var='LD_RUN_PATH'
15706
hardcode_shlibpath_var_GCJ=no
15710
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711
hardcode_shlibpath_var_GCJ=no
15712
export_dynamic_flag_spec_GCJ='-Bexport'
15716
if test -d /usr/nec; then
15717
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718
hardcode_shlibpath_var_GCJ=no
15719
runpath_var=LD_RUN_PATH
15720
hardcode_runpath_var=yes
15726
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15727
hardcode_direct_GCJ=yes
15728
hardcode_minus_L_GCJ=no
15729
hardcode_shlibpath_var_GCJ=no
15730
hardcode_runpath_var=yes
15731
runpath_var=LD_RUN_PATH
15734
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15735
no_undefined_flag_GCJ='${wl}-z ${wl}text'
15736
if test "$GCC" = yes; then
15737
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15741
runpath_var='LD_RUN_PATH'
15742
hardcode_shlibpath_var_GCJ=no
15746
no_undefined_flag_GCJ=' -z text'
15747
# $CC -shared without GNU ld will not create a library from C++
15748
# object files and a static libstdc++, better avoid it by now
15749
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15751
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15752
hardcode_libdir_flag_spec_GCJ=
15753
hardcode_shlibpath_var_GCJ=no
15754
runpath_var='LD_RUN_PATH'
15758
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15760
hardcode_shlibpath_var_GCJ=no
15769
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15770
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15771
test "$ld_shlibs_GCJ" = no && can_build_shared=no
15773
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15774
if test "$GCC" = yes; then
15775
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15779
# Do we need to explicitly link libc?
15781
case "x$archive_cmds_need_lc_GCJ" in
15783
# Assume -lc should be added
15784
archive_cmds_need_lc_GCJ=yes
15786
if test "$enable_shared" = yes && test "$GCC" = yes; then
15787
case $archive_cmds_GCJ in
15789
# FIXME: we may have to deal with multi-command sequences.
15792
# Test whether the compiler implicitly links with -lc since on some
15793
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15794
# to ld, don't add -lc before -lgcc.
15795
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15798
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801
(eval $ac_compile) 2>&5
15803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804
(exit $ac_status); } 2>conftest.err; then
15807
libobjs=conftest.$ac_objext
15809
wl=$lt_prog_compiler_wl_GCJ
15815
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15816
allow_undefined_flag_GCJ=
15817
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15818
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821
(exit $ac_status); }
15823
archive_cmds_need_lc_GCJ=no
15825
archive_cmds_need_lc_GCJ=yes
15827
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15829
cat conftest.err 1>&5
15832
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15833
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15840
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15841
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15842
library_names_spec=
15843
libname_spec='lib$name'
15847
postuninstall_cmds=
15851
shlibpath_overrides_runpath=unknown
15853
dynamic_linker="$host_os ld.so"
15854
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15855
if test "$GCC" = yes; then
15856
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15857
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15858
# if the path contains ";" then we assume it to be the separator
15859
# otherwise default to the standard path separator (i.e. ":") - it is
15860
# assumed that no part of a normal pathname contains ";" but that should
15861
# okay in the real world where ";" in dirpaths is itself problematic.
15862
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15864
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15867
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15869
need_lib_prefix=unknown
15870
hardcode_into_libs=no
15872
# when you set need_version to no, make sure it does not cause -set_version
15873
# flags to be left without arguments
15874
need_version=unknown
15879
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15880
shlibpath_var=LIBPATH
15882
# AIX 3 has no versioning support, so we append a major version to the name.
15883
soname_spec='${libname}${release}${shared_ext}$major'
15890
hardcode_into_libs=yes
15891
if test "$host_cpu" = ia64; then
15892
# AIX 5 supports IA64
15893
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15894
shlibpath_var=LD_LIBRARY_PATH
15896
# With GCC up to 2.95.x, collect2 would create an import file
15897
# for dependence libraries. The import file would start with
15898
# the line `#! .'. This would cause the generated library to
15899
# depend on `.', always an invalid library. This was fixed in
15900
# development snapshots of GCC prior to 3.0.
15902
aix4 | aix4.[01] | aix4.[01].*)
15903
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15905
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15908
can_build_shared=no
15912
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15913
# soname into executable. Probably we can add versioning support to
15914
# collect2, so additional links can be useful in future.
15915
if test "$aix_use_runtimelinking" = yes; then
15916
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15917
# instead of lib<name>.a to let people know that these are not
15918
# typical AIX shared libraries.
15919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921
# We preserve .a as extension for shared libraries through AIX4.2
15922
# and later when we are not doing run time linking.
15923
library_names_spec='${libname}${release}.a $libname.a'
15924
soname_spec='${libname}${release}${shared_ext}$major'
15926
shlibpath_var=LIBPATH
15931
library_names_spec='$libname.ixlibrary $libname.a'
15932
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15933
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15937
library_names_spec='${libname}${shared_ext}'
15938
dynamic_linker="$host_os ld.so"
15939
shlibpath_var=LIBRARY_PATH
15945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946
soname_spec='${libname}${release}${shared_ext}$major'
15947
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15948
shlibpath_var=LD_LIBRARY_PATH
15949
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15950
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15951
# the default ld.so.conf also contains /usr/contrib/lib and
15952
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15953
# libtool to hard-code these into programs
15956
cygwin* | mingw* | pw32*)
15957
version_type=windows
15962
case $GCC,$host_os in
15963
yes,cygwin* | yes,mingw* | yes,pw32*)
15964
library_names_spec='$libname.dll.a'
15965
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15966
postinstall_cmds='base_file=`basename \${file}`~
15967
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15968
dldir=$destdir/`dirname \$dlpath`~
15969
test -d \$dldir || mkdir -p \$dldir~
15970
$install_prog $dir/$dlname \$dldir/$dlname'
15971
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15972
dlpath=$dir/\$dldll~
15974
shlibpath_overrides_runpath=yes
15978
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15979
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15980
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15983
# MinGW DLLs use traditional 'lib' prefix
15984
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15985
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15986
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15987
# It is most probably a Windows format PATH printed by
15988
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15989
# path with ; separators, and with drive letters. We can handle the
15990
# drive letters (cygwin fileutils understands them), so leave them,
15991
# especially as we might pass files found there to a mingw objdump,
15992
# which wouldn't understand a cygwinified path. Ahh.
15993
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15995
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15999
# pw32 DLLs use 'pw' prefix rather than 'lib'
16000
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16006
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16009
dynamic_linker='Win32 ld.exe'
16010
# FIXME: first we should search . and the directory the executable is in
16014
darwin* | rhapsody*)
16015
dynamic_linker="$host_os dyld"
16016
version_type=darwin
16019
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16020
soname_spec='${libname}${release}${major}$shared_ext'
16021
shlibpath_overrides_runpath=yes
16022
shlibpath_var=DYLD_LIBRARY_PATH
16023
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16024
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16025
if test "$GCC" = yes; then
16026
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16028
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16030
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16038
soname_spec='${libname}${release}${shared_ext}$major'
16039
shlibpath_var=LD_LIBRARY_PATH
16050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16051
soname_spec='${libname}${release}${shared_ext}$major'
16052
shlibpath_var=LD_LIBRARY_PATH
16053
shlibpath_overrides_runpath=no
16054
hardcode_into_libs=yes
16055
dynamic_linker='GNU ld.so'
16059
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16060
version_type=freebsd-$objformat
16061
case $version_type in
16063
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16068
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16072
shlibpath_var=LD_LIBRARY_PATH
16075
shlibpath_overrides_runpath=yes
16077
freebsd3.01* | freebsdelf3.01*)
16078
shlibpath_overrides_runpath=yes
16079
hardcode_into_libs=yes
16082
shlibpath_overrides_runpath=no
16083
hardcode_into_libs=yes
16092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16093
soname_spec='${libname}${release}${shared_ext}$major'
16094
shlibpath_var=LD_LIBRARY_PATH
16095
hardcode_into_libs=yes
16098
hpux9* | hpux10* | hpux11*)
16099
# Give a soname corresponding to the major version so that dld.sl refuses to
16100
# link against other versions.
16104
case "$host_cpu" in
16107
hardcode_into_libs=yes
16108
dynamic_linker="$host_os dld.so"
16109
shlibpath_var=LD_LIBRARY_PATH
16110
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112
soname_spec='${libname}${release}${shared_ext}$major'
16113
if test "X$HPUX_IA64_MODE" = X32; then
16114
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16116
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16118
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16122
hardcode_into_libs=yes
16123
dynamic_linker="$host_os dld.sl"
16124
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16125
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127
soname_spec='${libname}${release}${shared_ext}$major'
16128
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16129
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16133
dynamic_linker="$host_os dld.sl"
16134
shlibpath_var=SHLIB_PATH
16135
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137
soname_spec='${libname}${release}${shared_ext}$major'
16140
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16141
postinstall_cmds='chmod 555 $lib'
16144
irix5* | irix6* | nonstopux*)
16146
nonstopux*) version_type=nonstopux ;;
16148
if test "$lt_cv_prog_gnu_ld" = yes; then
16156
soname_spec='${libname}${release}${shared_ext}$major'
16157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16159
irix5* | nonstopux*)
16160
libsuff= shlibsuff=
16163
case $LD in # libtool.m4 will add one of these switches to LD
16164
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16165
libsuff= shlibsuff= libmagic=32-bit;;
16166
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16167
libsuff=32 shlibsuff=N32 libmagic=N32;;
16168
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16169
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16170
*) libsuff= shlibsuff= libmagic=never-match;;
16174
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16175
shlibpath_overrides_runpath=no
16176
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16177
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16178
hardcode_into_libs=yes
16181
# No shared lib support for Linux oldld, aout, or coff.
16182
linux*oldld* | linux*aout* | linux*coff*)
16186
# This must be Linux ELF.
16191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192
soname_spec='${libname}${release}${shared_ext}$major'
16193
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16194
shlibpath_var=LD_LIBRARY_PATH
16195
shlibpath_overrides_runpath=no
16196
# This implies no fast_install, which is unacceptable.
16197
# Some rework will be needed to allow for fast_install
16198
# before this can be enabled.
16199
hardcode_into_libs=yes
16201
# We used to test for /lib/ld.so.1 and disable shared libraries on
16202
# powerpc, because MkLinux only supported shared libraries with the
16203
# GNU dynamic linker. Since this was broken with cross compilers,
16204
# most powerpc-linux boxes support dynamic linking these days and
16205
# people can always --disable-shared, the test was removed, and we
16206
# assume the GNU/Linux dynamic linker is in use.
16207
dynamic_linker='GNU/Linux ld.so'
16214
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16216
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16217
dynamic_linker='NetBSD (a.out) ld.so'
16219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16220
soname_spec='${libname}${release}${shared_ext}$major'
16221
dynamic_linker='NetBSD ld.elf_so'
16223
shlibpath_var=LD_LIBRARY_PATH
16224
shlibpath_overrides_runpath=yes
16225
hardcode_into_libs=yes
16230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231
shlibpath_var=LD_LIBRARY_PATH
16232
shlibpath_overrides_runpath=yes
16239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240
soname_spec='${libname}${release}${shared_ext}$major'
16241
shlibpath_var=LD_LIBRARY_PATH
16242
shlibpath_overrides_runpath=yes
16249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251
shlibpath_var=LD_LIBRARY_PATH
16252
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16254
openbsd2.[89] | openbsd2.[89].*)
16255
shlibpath_overrides_runpath=no
16258
shlibpath_overrides_runpath=yes
16262
shlibpath_overrides_runpath=yes
16267
libname_spec='$name'
16270
library_names_spec='$libname${shared_ext} $libname.a'
16271
dynamic_linker='OS/2 ld.exe'
16272
shlibpath_var=LIBPATH
16275
osf3* | osf4* | osf5*)
16279
soname_spec='${libname}${release}${shared_ext}$major'
16280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281
shlibpath_var=LD_LIBRARY_PATH
16282
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16283
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16288
soname_spec='${libname}${release}${shared_ext}$major'
16289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290
shlibpath_var=LD_LIBRARY_PATH
16297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298
soname_spec='${libname}${release}${shared_ext}$major'
16299
shlibpath_var=LD_LIBRARY_PATH
16300
shlibpath_overrides_runpath=yes
16301
hardcode_into_libs=yes
16302
# ldd complains unless libraries are executable
16303
postinstall_cmds='chmod +x $lib'
16308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16309
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16310
shlibpath_var=LD_LIBRARY_PATH
16311
shlibpath_overrides_runpath=yes
16312
if test "$with_gnu_ld" = yes; then
16318
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321
soname_spec='${libname}${release}${shared_ext}$major'
16322
shlibpath_var=LD_LIBRARY_PATH
16323
case $host_vendor in
16325
shlibpath_overrides_runpath=no
16327
export_dynamic_flag_spec='${wl}-Blargedynsym'
16328
runpath_var=LD_RUN_PATH
16336
shlibpath_overrides_runpath=no
16337
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16343
if test -d /usr/nec ;then
16345
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16346
soname_spec='$libname${shared_ext}.$major'
16347
shlibpath_var=LD_LIBRARY_PATH
16353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354
soname_spec='${libname}${release}${shared_ext}$major'
16355
shlibpath_var=LD_LIBRARY_PATH
16362
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16363
echo "${ECHO_T}$dynamic_linker" >&6
16364
test "$dynamic_linker" = no && can_build_shared=no
16366
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16367
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16368
hardcode_action_GCJ=
16369
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16370
test -n "$runpath_var GCJ" || \
16371
test "X$hardcode_automatic_GCJ"="Xyes" ; then
16373
# We can hardcode non-existant directories.
16374
if test "$hardcode_direct_GCJ" != no &&
16375
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16376
# have to relink, otherwise we might link with an installed library
16377
# when we should be linking with a yet-to-be-installed one
16378
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16379
test "$hardcode_minus_L_GCJ" != no; then
16380
# Linking always hardcodes the temporary library directory.
16381
hardcode_action_GCJ=relink
16383
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16384
hardcode_action_GCJ=immediate
16387
# We cannot hardcode anything, or else we can only hardcode existing
16389
hardcode_action_GCJ=unsupported
16391
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16392
echo "${ECHO_T}$hardcode_action_GCJ" >&6
16394
if test "$hardcode_action_GCJ" = relink; then
16395
# Fast installation is not supported
16396
enable_fast_install=no
16397
elif test "$shlibpath_overrides_runpath" = yes ||
16398
test "$enable_shared" = no; then
16399
# Fast installation is not necessary
16400
enable_fast_install=needless
16405
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16406
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16407
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16408
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16409
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16410
echo "$as_me:$LINENO: result: yes" >&5
16411
echo "${ECHO_T}yes" >&6
16413
# FIXME - insert some real tests, host_os isn't really good enough
16416
if test -n "$STRIP" ; then
16417
striplib="$STRIP -x"
16418
echo "$as_me:$LINENO: result: yes" >&5
16419
echo "${ECHO_T}yes" >&6
16421
echo "$as_me:$LINENO: result: no" >&5
16422
echo "${ECHO_T}no" >&6
16426
echo "$as_me:$LINENO: result: no" >&5
16427
echo "${ECHO_T}no" >&6
16432
if test "x$enable_dlopen" != xyes; then
16433
enable_dlopen=unknown
16434
enable_dlopen_self=unknown
16435
enable_dlopen_self_static=unknown
16442
lt_cv_dlopen="load_add_on"
16444
lt_cv_dlopen_self=yes
16448
lt_cv_dlopen="LoadLibrary"
16453
lt_cv_dlopen="dlopen"
16458
# if libdl is installed we need to link against it
16459
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16460
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16461
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16462
echo $ECHO_N "(cached) $ECHO_C" >&6
16464
ac_check_lib_save_LIBS=$LIBS
16466
cat >conftest.$ac_ext <<_ACEOF
16467
#line $LINENO "configure"
16470
cat confdefs.h >>conftest.$ac_ext
16471
cat >>conftest.$ac_ext <<_ACEOF
16472
/* end confdefs.h. */
16474
/* Override any gcc2 internal prototype to avoid an error. */
16478
/* We use char because int might match the return type of a gcc2
16479
builtin and then its argument prototype would still apply. */
16489
rm -f conftest.$ac_objext conftest$ac_exeext
16490
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491
(eval $ac_link) 2>&5
16493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494
(exit $ac_status); } &&
16495
{ ac_try='test -s conftest$ac_exeext'
16496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497
(eval $ac_try) 2>&5
16499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500
(exit $ac_status); }; }; then
16501
ac_cv_lib_dl_dlopen=yes
16503
echo "$as_me: failed program was:" >&5
16504
sed 's/^/| /' conftest.$ac_ext >&5
16506
ac_cv_lib_dl_dlopen=no
16508
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16509
LIBS=$ac_check_lib_save_LIBS
16511
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16512
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16513
if test $ac_cv_lib_dl_dlopen = yes; then
16514
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16517
lt_cv_dlopen="dyld"
16519
lt_cv_dlopen_self=yes
16526
echo "$as_me:$LINENO: checking for shl_load" >&5
16527
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16528
if test "${ac_cv_func_shl_load+set}" = set; then
16529
echo $ECHO_N "(cached) $ECHO_C" >&6
16531
cat >conftest.$ac_ext <<_ACEOF
16532
#line $LINENO "configure"
16535
cat confdefs.h >>conftest.$ac_ext
16536
cat >>conftest.$ac_ext <<_ACEOF
16537
/* end confdefs.h. */
16538
/* System header to define __stub macros and hopefully few prototypes,
16539
which can conflict with char shl_load (); below.
16540
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16541
<limits.h> exists even on freestanding compilers. */
16543
# include <limits.h>
16545
# include <assert.h>
16547
/* Override any gcc2 internal prototype to avoid an error. */
16552
/* We use char because int might match the return type of a gcc2
16553
builtin and then its argument prototype would still apply. */
16555
/* The GNU C library defines this for functions which it implements
16556
to always fail with ENOSYS. Some functions are actually named
16557
something starting with __ and the normal name is an alias. */
16558
#if defined (__stub_shl_load) || defined (__stub___shl_load)
16561
char (*f) () = shl_load;
16570
return f != shl_load;
16575
rm -f conftest.$ac_objext conftest$ac_exeext
16576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577
(eval $ac_link) 2>&5
16579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580
(exit $ac_status); } &&
16581
{ ac_try='test -s conftest$ac_exeext'
16582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583
(eval $ac_try) 2>&5
16585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586
(exit $ac_status); }; }; then
16587
ac_cv_func_shl_load=yes
16589
echo "$as_me: failed program was:" >&5
16590
sed 's/^/| /' conftest.$ac_ext >&5
16592
ac_cv_func_shl_load=no
16594
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16596
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16597
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16598
if test $ac_cv_func_shl_load = yes; then
16599
lt_cv_dlopen="shl_load"
16601
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16602
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16603
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16604
echo $ECHO_N "(cached) $ECHO_C" >&6
16606
ac_check_lib_save_LIBS=$LIBS
16608
cat >conftest.$ac_ext <<_ACEOF
16609
#line $LINENO "configure"
16612
cat confdefs.h >>conftest.$ac_ext
16613
cat >>conftest.$ac_ext <<_ACEOF
16614
/* end confdefs.h. */
16616
/* Override any gcc2 internal prototype to avoid an error. */
16620
/* We use char because int might match the return type of a gcc2
16621
builtin and then its argument prototype would still apply. */
16631
rm -f conftest.$ac_objext conftest$ac_exeext
16632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16633
(eval $ac_link) 2>&5
16635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636
(exit $ac_status); } &&
16637
{ ac_try='test -s conftest$ac_exeext'
16638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639
(eval $ac_try) 2>&5
16641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642
(exit $ac_status); }; }; then
16643
ac_cv_lib_dld_shl_load=yes
16645
echo "$as_me: failed program was:" >&5
16646
sed 's/^/| /' conftest.$ac_ext >&5
16648
ac_cv_lib_dld_shl_load=no
16650
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16651
LIBS=$ac_check_lib_save_LIBS
16653
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16654
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16655
if test $ac_cv_lib_dld_shl_load = yes; then
16656
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16658
echo "$as_me:$LINENO: checking for dlopen" >&5
16659
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16660
if test "${ac_cv_func_dlopen+set}" = set; then
16661
echo $ECHO_N "(cached) $ECHO_C" >&6
16663
cat >conftest.$ac_ext <<_ACEOF
16664
#line $LINENO "configure"
16667
cat confdefs.h >>conftest.$ac_ext
16668
cat >>conftest.$ac_ext <<_ACEOF
16669
/* end confdefs.h. */
16670
/* System header to define __stub macros and hopefully few prototypes,
16671
which can conflict with char dlopen (); below.
16672
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16673
<limits.h> exists even on freestanding compilers. */
16675
# include <limits.h>
16677
# include <assert.h>
16679
/* Override any gcc2 internal prototype to avoid an error. */
16684
/* We use char because int might match the return type of a gcc2
16685
builtin and then its argument prototype would still apply. */
16687
/* The GNU C library defines this for functions which it implements
16688
to always fail with ENOSYS. Some functions are actually named
16689
something starting with __ and the normal name is an alias. */
16690
#if defined (__stub_dlopen) || defined (__stub___dlopen)
16693
char (*f) () = dlopen;
16702
return f != dlopen;
16707
rm -f conftest.$ac_objext conftest$ac_exeext
16708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709
(eval $ac_link) 2>&5
16711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712
(exit $ac_status); } &&
16713
{ ac_try='test -s conftest$ac_exeext'
16714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715
(eval $ac_try) 2>&5
16717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718
(exit $ac_status); }; }; then
16719
ac_cv_func_dlopen=yes
16721
echo "$as_me: failed program was:" >&5
16722
sed 's/^/| /' conftest.$ac_ext >&5
16724
ac_cv_func_dlopen=no
16726
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16728
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16729
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16730
if test $ac_cv_func_dlopen = yes; then
16731
lt_cv_dlopen="dlopen"
16733
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16734
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16735
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16736
echo $ECHO_N "(cached) $ECHO_C" >&6
16738
ac_check_lib_save_LIBS=$LIBS
16740
cat >conftest.$ac_ext <<_ACEOF
16741
#line $LINENO "configure"
16744
cat confdefs.h >>conftest.$ac_ext
16745
cat >>conftest.$ac_ext <<_ACEOF
16746
/* end confdefs.h. */
16748
/* Override any gcc2 internal prototype to avoid an error. */
16752
/* We use char because int might match the return type of a gcc2
16753
builtin and then its argument prototype would still apply. */
16763
rm -f conftest.$ac_objext conftest$ac_exeext
16764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765
(eval $ac_link) 2>&5
16767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768
(exit $ac_status); } &&
16769
{ ac_try='test -s conftest$ac_exeext'
16770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771
(eval $ac_try) 2>&5
16773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774
(exit $ac_status); }; }; then
16775
ac_cv_lib_dl_dlopen=yes
16777
echo "$as_me: failed program was:" >&5
16778
sed 's/^/| /' conftest.$ac_ext >&5
16780
ac_cv_lib_dl_dlopen=no
16782
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16783
LIBS=$ac_check_lib_save_LIBS
16785
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16786
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16787
if test $ac_cv_lib_dl_dlopen = yes; then
16788
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16790
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16791
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16792
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16793
echo $ECHO_N "(cached) $ECHO_C" >&6
16795
ac_check_lib_save_LIBS=$LIBS
16796
LIBS="-lsvld $LIBS"
16797
cat >conftest.$ac_ext <<_ACEOF
16798
#line $LINENO "configure"
16801
cat confdefs.h >>conftest.$ac_ext
16802
cat >>conftest.$ac_ext <<_ACEOF
16803
/* end confdefs.h. */
16805
/* Override any gcc2 internal prototype to avoid an error. */
16809
/* We use char because int might match the return type of a gcc2
16810
builtin and then its argument prototype would still apply. */
16820
rm -f conftest.$ac_objext conftest$ac_exeext
16821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822
(eval $ac_link) 2>&5
16824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825
(exit $ac_status); } &&
16826
{ ac_try='test -s conftest$ac_exeext'
16827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828
(eval $ac_try) 2>&5
16830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831
(exit $ac_status); }; }; then
16832
ac_cv_lib_svld_dlopen=yes
16834
echo "$as_me: failed program was:" >&5
16835
sed 's/^/| /' conftest.$ac_ext >&5
16837
ac_cv_lib_svld_dlopen=no
16839
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16840
LIBS=$ac_check_lib_save_LIBS
16842
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16843
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16844
if test $ac_cv_lib_svld_dlopen = yes; then
16845
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16847
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16848
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16849
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16850
echo $ECHO_N "(cached) $ECHO_C" >&6
16852
ac_check_lib_save_LIBS=$LIBS
16854
cat >conftest.$ac_ext <<_ACEOF
16855
#line $LINENO "configure"
16858
cat confdefs.h >>conftest.$ac_ext
16859
cat >>conftest.$ac_ext <<_ACEOF
16860
/* end confdefs.h. */
16862
/* Override any gcc2 internal prototype to avoid an error. */
16866
/* We use char because int might match the return type of a gcc2
16867
builtin and then its argument prototype would still apply. */
16877
rm -f conftest.$ac_objext conftest$ac_exeext
16878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16879
(eval $ac_link) 2>&5
16881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882
(exit $ac_status); } &&
16883
{ ac_try='test -s conftest$ac_exeext'
16884
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885
(eval $ac_try) 2>&5
16887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888
(exit $ac_status); }; }; then
16889
ac_cv_lib_dld_dld_link=yes
16891
echo "$as_me: failed program was:" >&5
16892
sed 's/^/| /' conftest.$ac_ext >&5
16894
ac_cv_lib_dld_dld_link=no
16896
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16897
LIBS=$ac_check_lib_save_LIBS
16899
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16900
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16901
if test $ac_cv_lib_dld_dld_link = yes; then
16902
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16923
if test "x$lt_cv_dlopen" != xno; then
16929
case $lt_cv_dlopen in
16931
save_CPPFLAGS="$CPPFLAGS"
16932
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16934
save_LDFLAGS="$LDFLAGS"
16935
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16938
LIBS="$lt_cv_dlopen_libs $LIBS"
16940
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16941
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16942
if test "${lt_cv_dlopen_self+set}" = set; then
16943
echo $ECHO_N "(cached) $ECHO_C" >&6
16945
if test "$cross_compiling" = yes; then :
16946
lt_cv_dlopen_self=cross
16948
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16949
lt_status=$lt_dlunknown
16950
cat > conftest.$ac_ext <<EOF
16951
#line 16951 "configure"
16952
#include "confdefs.h"
16961
# define LT_DLGLOBAL RTLD_GLOBAL
16964
# define LT_DLGLOBAL DL_GLOBAL
16966
# define LT_DLGLOBAL 0
16970
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16971
find out it does not work in some platform. */
16972
#ifndef LT_DLLAZY_OR_NOW
16974
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16977
# define LT_DLLAZY_OR_NOW DL_LAZY
16980
# define LT_DLLAZY_OR_NOW RTLD_NOW
16983
# define LT_DLLAZY_OR_NOW DL_NOW
16985
# define LT_DLLAZY_OR_NOW 0
16993
extern "C" void exit (int);
16996
void fnord() { int i=42;}
16999
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17000
int status = $lt_dlunknown;
17004
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17005
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17006
/* dlclose (self); */
17012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013
(eval $ac_link) 2>&5
17015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17017
(./conftest; exit; ) 2>/dev/null
17019
case x$lt_status in
17020
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17021
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17022
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17025
# compilation failed
17026
lt_cv_dlopen_self=no
17033
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17034
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17036
if test "x$lt_cv_dlopen_self" = xyes; then
17037
LDFLAGS="$LDFLAGS $link_static_flag"
17038
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17039
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17040
if test "${lt_cv_dlopen_self_static+set}" = set; then
17041
echo $ECHO_N "(cached) $ECHO_C" >&6
17043
if test "$cross_compiling" = yes; then :
17044
lt_cv_dlopen_self_static=cross
17046
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17047
lt_status=$lt_dlunknown
17048
cat > conftest.$ac_ext <<EOF
17049
#line 17049 "configure"
17050
#include "confdefs.h"
17059
# define LT_DLGLOBAL RTLD_GLOBAL
17062
# define LT_DLGLOBAL DL_GLOBAL
17064
# define LT_DLGLOBAL 0
17068
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17069
find out it does not work in some platform. */
17070
#ifndef LT_DLLAZY_OR_NOW
17072
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17075
# define LT_DLLAZY_OR_NOW DL_LAZY
17078
# define LT_DLLAZY_OR_NOW RTLD_NOW
17081
# define LT_DLLAZY_OR_NOW DL_NOW
17083
# define LT_DLLAZY_OR_NOW 0
17091
extern "C" void exit (int);
17094
void fnord() { int i=42;}
17097
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17098
int status = $lt_dlunknown;
17102
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17103
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17104
/* dlclose (self); */
17110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111
(eval $ac_link) 2>&5
17113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17115
(./conftest; exit; ) 2>/dev/null
17117
case x$lt_status in
17118
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17119
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17120
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17123
# compilation failed
17124
lt_cv_dlopen_self_static=no
17131
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17132
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17135
CPPFLAGS="$save_CPPFLAGS"
17136
LDFLAGS="$save_LDFLAGS"
17141
case $lt_cv_dlopen_self in
17142
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17143
*) enable_dlopen_self=unknown ;;
17146
case $lt_cv_dlopen_self_static in
17147
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17148
*) enable_dlopen_self_static=unknown ;;
17153
# The else clause should only fire when bootstrapping the
17154
# libtool distribution, otherwise you forgot to ship ltmain.sh
17155
# with your package, and you will get complaints that there are
17156
# no rules to generate ltmain.sh.
17157
if test -f "$ltmain"; then
17158
# See if we are running on zsh, and set the options which allow our commands through
17159
# without removal of \ escapes.
17160
if test -n "${ZSH_VERSION+set}" ; then
17161
setopt NO_GLOB_SUBST
17163
# Now quote all the things that may contain metacharacters while being
17164
# careful not to overquote the AC_SUBSTed values. We take copies of the
17165
# variables and quote the copies for generation of the libtool script.
17166
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17167
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17168
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17169
deplibs_check_method reload_flag reload_cmds need_locks \
17170
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17171
lt_cv_sys_global_symbol_to_c_name_address \
17172
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17173
old_postinstall_cmds old_postuninstall_cmds \
17177
lt_prog_compiler_wl_GCJ \
17178
lt_prog_compiler_pic_GCJ \
17179
lt_prog_compiler_static_GCJ \
17180
lt_prog_compiler_no_builtin_flag_GCJ \
17181
export_dynamic_flag_spec_GCJ \
17182
thread_safe_flag_spec_GCJ \
17183
whole_archive_flag_spec_GCJ \
17184
enable_shared_with_static_runtimes_GCJ \
17185
old_archive_cmds_GCJ \
17186
old_archive_from_new_cmds_GCJ \
17187
predep_objects_GCJ \
17188
postdep_objects_GCJ \
17191
compiler_lib_search_path_GCJ \
17193
archive_expsym_cmds_GCJ \
17194
postinstall_cmds_GCJ \
17195
postuninstall_cmds_GCJ \
17196
old_archive_from_expsyms_cmds_GCJ \
17197
allow_undefined_flag_GCJ \
17198
no_undefined_flag_GCJ \
17199
export_symbols_cmds_GCJ \
17200
hardcode_libdir_flag_spec_GCJ \
17201
hardcode_libdir_flag_spec_ld_GCJ \
17202
hardcode_libdir_separator_GCJ \
17203
hardcode_automatic_GCJ \
17205
module_expsym_cmds_GCJ \
17206
lt_cv_prog_compiler_c_o_GCJ \
17207
exclude_expsyms_GCJ \
17208
include_expsyms_GCJ; do
17211
old_archive_cmds_GCJ | \
17212
old_archive_from_new_cmds_GCJ | \
17213
archive_cmds_GCJ | \
17214
archive_expsym_cmds_GCJ | \
17215
module_cmds_GCJ | \
17216
module_expsym_cmds_GCJ | \
17217
old_archive_from_expsyms_cmds_GCJ | \
17218
export_symbols_cmds_GCJ | \
17219
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17220
postinstall_cmds | postuninstall_cmds | \
17221
old_postinstall_cmds | old_postuninstall_cmds | \
17222
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17223
# Double-quote double-evaled strings.
17224
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17227
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17233
*'\$0 --fallback-echo"')
17234
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17240
cat <<__EOF__ >> "$cfgfile"
17241
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17243
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17245
# Shell to use when invoking shell scripts.
17248
# Whether or not to build shared libraries.
17249
build_libtool_libs=$enable_shared
17251
# Whether or not to build static libraries.
17252
build_old_libs=$enable_static
17254
# Whether or not to add -lc for building shared libraries.
17255
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17257
# Whether or not to disallow shared libs when runtime libs are static
17258
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17260
# Whether or not to optimize for fast installation.
17261
fast_install=$enable_fast_install
17264
host_alias=$host_alias
17267
# An echo program that does not interpret backslashes.
17272
AR_FLAGS=$lt_AR_FLAGS
17277
# A language-specific compiler.
17278
CC=$lt_compiler_GCJ
17280
# Is the compiler the GNU C compiler?
17286
# The linker used to build libraries.
17289
# Whether we need hard or soft links.
17292
# A BSD-compatible nm program.
17295
# A symbol stripping program
17298
# Used to examine libraries when file_magic_cmd begins "file"
17299
MAGIC_CMD=$MAGIC_CMD
17301
# Used on cygwin: DLL creation program.
17304
# Used on cygwin: object dumper.
17307
# Used on cygwin: assembler.
17310
# The name of the directory that contains temporary libtool files.
17313
# How to create reloadable object files.
17314
reload_flag=$lt_reload_flag
17315
reload_cmds=$lt_reload_cmds
17317
# How to pass a linker flag through the compiler.
17318
wl=$lt_lt_prog_compiler_wl_GCJ
17320
# Object file suffix (normally "o").
17321
objext="$ac_objext"
17323
# Old archive suffix (normally "a").
17326
# Shared library suffix (normally ".so").
17329
# Executable file suffix (normally "").
17332
# Additional compiler flags for building library objects.
17333
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17336
# What is the maximum length of a command?
17337
max_cmd_len=$lt_cv_sys_max_cmd_len
17339
# Does compiler simultaneously support -c and -o options?
17340
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17342
# Must we lock files when doing compilation ?
17343
need_locks=$lt_need_locks
17345
# Do we need the lib prefix for modules?
17346
need_lib_prefix=$need_lib_prefix
17348
# Do we need a version for libraries?
17349
need_version=$need_version
17351
# Whether dlopen is supported.
17352
dlopen_support=$enable_dlopen
17354
# Whether dlopen of programs is supported.
17355
dlopen_self=$enable_dlopen_self
17357
# Whether dlopen of statically linked programs is supported.
17358
dlopen_self_static=$enable_dlopen_self_static
17360
# Compiler flag to prevent dynamic linking.
17361
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17363
# Compiler flag to turn off builtin functions.
17364
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17366
# Compiler flag to allow reflexive dlopens.
17367
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17369
# Compiler flag to generate shared objects directly from archives.
17370
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17372
# Compiler flag to generate thread-safe objects.
17373
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17375
# Library versioning type.
17376
version_type=$version_type
17378
# Format of library name prefix.
17379
libname_spec=$lt_libname_spec
17381
# List of archive names. First name is the real one, the rest are links.
17382
# The last name is the one that the linker finds with -lNAME.
17383
library_names_spec=$lt_library_names_spec
17385
# The coded name of the library, if different from the real name.
17386
soname_spec=$lt_soname_spec
17388
# Commands used to build and install an old-style archive.
17390
old_archive_cmds=$lt_old_archive_cmds_GCJ
17391
old_postinstall_cmds=$lt_old_postinstall_cmds
17392
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17394
# Create an old-style archive from a shared archive.
17395
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17397
# Create a temporary old-style archive to link instead of a shared archive.
17398
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17400
# Commands used to build and install a shared archive.
17401
archive_cmds=$lt_archive_cmds_GCJ
17402
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17403
postinstall_cmds=$lt_postinstall_cmds
17404
postuninstall_cmds=$lt_postuninstall_cmds
17406
# Commands used to build a loadable module (assumed same as above if empty)
17407
module_cmds=$lt_module_cmds_GCJ
17408
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17410
# Commands to strip libraries.
17411
old_striplib=$lt_old_striplib
17412
striplib=$lt_striplib
17414
# Dependencies to place before the objects being linked to create a
17416
predep_objects=$lt_predep_objects_GCJ
17418
# Dependencies to place after the objects being linked to create a
17420
postdep_objects=$lt_postdep_objects_GCJ
17422
# Dependencies to place before the objects being linked to create a
17424
predeps=$lt_predeps_GCJ
17426
# Dependencies to place after the objects being linked to create a
17428
postdeps=$lt_postdeps_GCJ
17430
# The library search path used internally by the compiler when linking
17431
# a shared library.
17432
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17434
# Method to check whether dependent libraries are shared objects.
17435
deplibs_check_method=$lt_deplibs_check_method
17437
# Command to use when deplibs_check_method == file_magic.
17438
file_magic_cmd=$lt_file_magic_cmd
17440
# Flag that allows shared libraries with undefined symbols to be built.
17441
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17443
# Flag that forces no undefined symbols.
17444
no_undefined_flag=$lt_no_undefined_flag_GCJ
17446
# Commands used to finish a libtool library installation in a directory.
17447
finish_cmds=$lt_finish_cmds
17449
# Same as above, but a single script fragment to be evaled but not shown.
17450
finish_eval=$lt_finish_eval
17452
# Take the output of nm and produce a listing of raw symbols and C names.
17453
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17455
# Transform the output of nm in a proper C declaration
17456
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17458
# Transform the output of nm in a C name address pair
17459
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17461
# This is the shared library runtime path variable.
17462
runpath_var=$runpath_var
17464
# This is the shared library path variable.
17465
shlibpath_var=$shlibpath_var
17467
# Is shlibpath searched before the hard-coded library search path?
17468
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17470
# How to hardcode a shared library path into an executable.
17471
hardcode_action=$hardcode_action_GCJ
17473
# Whether we should hardcode library paths into libraries.
17474
hardcode_into_libs=$hardcode_into_libs
17476
# Flag to hardcode \$libdir into a binary during linking.
17477
# This must work even if \$libdir does not exist.
17478
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17480
# If ld is used when linking, flag to hardcode \$libdir into
17481
# a binary during linking. This must work even if \$libdir does
17483
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17485
# Whether we need a single -rpath flag with a separated argument.
17486
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17488
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17489
# resulting binary.
17490
hardcode_direct=$hardcode_direct_GCJ
17492
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17493
# resulting binary.
17494
hardcode_minus_L=$hardcode_minus_L_GCJ
17496
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17497
# the resulting binary.
17498
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17500
# Set to yes if building a shared library automatically hardcodes DIR into the library
17501
# and all subsequent libraries and executables linked against it.
17502
hardcode_automatic=$hardcode_automatic_GCJ
17504
# Variables whose values should be saved in libtool wrapper scripts and
17505
# restored at relink time.
17506
variables_saved_for_relink="$variables_saved_for_relink"
17508
# Whether libtool must link a program against all its dependency libraries.
17509
link_all_deplibs=$link_all_deplibs_GCJ
17511
# Compile-time system search path for libraries
17512
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17514
# Run-time system search path for libraries
17515
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17517
# Fix the shell variable \$srcfile for the compiler.
17518
fix_srcfile_path="$fix_srcfile_path_GCJ"
17520
# Set to yes if exported symbols are required.
17521
always_export_symbols=$always_export_symbols_GCJ
17523
# The commands to list exported symbols.
17524
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17526
# The commands to extract the exported symbol list from a shared archive.
17527
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17529
# Symbols that should not be listed in the preloaded symbols.
17530
exclude_expsyms=$lt_exclude_expsyms_GCJ
17532
# Symbols that must always be exported.
17533
include_expsyms=$lt_include_expsyms_GCJ
17535
# ### END LIBTOOL TAG CONFIG: $tagname
17541
# If there is no Makefile yet, we rely on a make rule to execute
17542
# `config.status --recheck' to rerun these tests and create the
17543
# libtool script then.
17544
test -f Makefile && make "$ltmain"
17549
ac_cpp='$CPP $CPPFLAGS'
17550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17565
# Source file extension for RC test sources.
17568
# Object file extension for compiled RC test sources.
17572
# Code to be used in simple compile tests
17573
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17575
# Code to be used in simple link tests
17576
lt_simple_link_test_code="$lt_simple_compile_test_code"
17578
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17580
# If no C compiler was specified, use CC.
17583
# Allow CC to be a program name with arguments.
17587
# Allow CC to be a program name with arguments.
17592
lt_cv_prog_compiler_c_o_RC=yes
17594
# The else clause should only fire when bootstrapping the
17595
# libtool distribution, otherwise you forgot to ship ltmain.sh
17596
# with your package, and you will get complaints that there are
17597
# no rules to generate ltmain.sh.
17598
if test -f "$ltmain"; then
17599
# See if we are running on zsh, and set the options which allow our commands through
17600
# without removal of \ escapes.
17601
if test -n "${ZSH_VERSION+set}" ; then
17602
setopt NO_GLOB_SUBST
17604
# Now quote all the things that may contain metacharacters while being
17605
# careful not to overquote the AC_SUBSTed values. We take copies of the
17606
# variables and quote the copies for generation of the libtool script.
17607
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17608
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17609
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17610
deplibs_check_method reload_flag reload_cmds need_locks \
17611
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17612
lt_cv_sys_global_symbol_to_c_name_address \
17613
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17614
old_postinstall_cmds old_postuninstall_cmds \
17618
lt_prog_compiler_wl_RC \
17619
lt_prog_compiler_pic_RC \
17620
lt_prog_compiler_static_RC \
17621
lt_prog_compiler_no_builtin_flag_RC \
17622
export_dynamic_flag_spec_RC \
17623
thread_safe_flag_spec_RC \
17624
whole_archive_flag_spec_RC \
17625
enable_shared_with_static_runtimes_RC \
17626
old_archive_cmds_RC \
17627
old_archive_from_new_cmds_RC \
17628
predep_objects_RC \
17629
postdep_objects_RC \
17632
compiler_lib_search_path_RC \
17634
archive_expsym_cmds_RC \
17635
postinstall_cmds_RC \
17636
postuninstall_cmds_RC \
17637
old_archive_from_expsyms_cmds_RC \
17638
allow_undefined_flag_RC \
17639
no_undefined_flag_RC \
17640
export_symbols_cmds_RC \
17641
hardcode_libdir_flag_spec_RC \
17642
hardcode_libdir_flag_spec_ld_RC \
17643
hardcode_libdir_separator_RC \
17644
hardcode_automatic_RC \
17646
module_expsym_cmds_RC \
17647
lt_cv_prog_compiler_c_o_RC \
17648
exclude_expsyms_RC \
17649
include_expsyms_RC; do
17652
old_archive_cmds_RC | \
17653
old_archive_from_new_cmds_RC | \
17654
archive_cmds_RC | \
17655
archive_expsym_cmds_RC | \
17657
module_expsym_cmds_RC | \
17658
old_archive_from_expsyms_cmds_RC | \
17659
export_symbols_cmds_RC | \
17660
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17661
postinstall_cmds | postuninstall_cmds | \
17662
old_postinstall_cmds | old_postuninstall_cmds | \
17663
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17664
# Double-quote double-evaled strings.
17665
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17668
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17674
*'\$0 --fallback-echo"')
17675
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17681
cat <<__EOF__ >> "$cfgfile"
17682
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17684
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17686
# Shell to use when invoking shell scripts.
17689
# Whether or not to build shared libraries.
17690
build_libtool_libs=$enable_shared
17692
# Whether or not to build static libraries.
17693
build_old_libs=$enable_static
17695
# Whether or not to add -lc for building shared libraries.
17696
build_libtool_need_lc=$archive_cmds_need_lc_RC
17698
# Whether or not to disallow shared libs when runtime libs are static
17699
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17701
# Whether or not to optimize for fast installation.
17702
fast_install=$enable_fast_install
17705
host_alias=$host_alias
17708
# An echo program that does not interpret backslashes.
17713
AR_FLAGS=$lt_AR_FLAGS
17718
# A language-specific compiler.
17721
# Is the compiler the GNU C compiler?
17727
# The linker used to build libraries.
17730
# Whether we need hard or soft links.
17733
# A BSD-compatible nm program.
17736
# A symbol stripping program
17739
# Used to examine libraries when file_magic_cmd begins "file"
17740
MAGIC_CMD=$MAGIC_CMD
17742
# Used on cygwin: DLL creation program.
17745
# Used on cygwin: object dumper.
17748
# Used on cygwin: assembler.
17751
# The name of the directory that contains temporary libtool files.
17754
# How to create reloadable object files.
17755
reload_flag=$lt_reload_flag
17756
reload_cmds=$lt_reload_cmds
17758
# How to pass a linker flag through the compiler.
17759
wl=$lt_lt_prog_compiler_wl_RC
17761
# Object file suffix (normally "o").
17762
objext="$ac_objext"
17764
# Old archive suffix (normally "a").
17767
# Shared library suffix (normally ".so").
17770
# Executable file suffix (normally "").
17773
# Additional compiler flags for building library objects.
17774
pic_flag=$lt_lt_prog_compiler_pic_RC
17777
# What is the maximum length of a command?
17778
max_cmd_len=$lt_cv_sys_max_cmd_len
17780
# Does compiler simultaneously support -c and -o options?
17781
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17783
# Must we lock files when doing compilation ?
17784
need_locks=$lt_need_locks
17786
# Do we need the lib prefix for modules?
17787
need_lib_prefix=$need_lib_prefix
17789
# Do we need a version for libraries?
17790
need_version=$need_version
17792
# Whether dlopen is supported.
17793
dlopen_support=$enable_dlopen
17795
# Whether dlopen of programs is supported.
17796
dlopen_self=$enable_dlopen_self
17798
# Whether dlopen of statically linked programs is supported.
17799
dlopen_self_static=$enable_dlopen_self_static
17801
# Compiler flag to prevent dynamic linking.
17802
link_static_flag=$lt_lt_prog_compiler_static_RC
17804
# Compiler flag to turn off builtin functions.
17805
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17807
# Compiler flag to allow reflexive dlopens.
17808
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17810
# Compiler flag to generate shared objects directly from archives.
17811
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17813
# Compiler flag to generate thread-safe objects.
17814
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17816
# Library versioning type.
17817
version_type=$version_type
17819
# Format of library name prefix.
17820
libname_spec=$lt_libname_spec
17822
# List of archive names. First name is the real one, the rest are links.
17823
# The last name is the one that the linker finds with -lNAME.
17824
library_names_spec=$lt_library_names_spec
17826
# The coded name of the library, if different from the real name.
17827
soname_spec=$lt_soname_spec
17829
# Commands used to build and install an old-style archive.
17831
old_archive_cmds=$lt_old_archive_cmds_RC
17832
old_postinstall_cmds=$lt_old_postinstall_cmds
17833
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17835
# Create an old-style archive from a shared archive.
17836
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17838
# Create a temporary old-style archive to link instead of a shared archive.
17839
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17841
# Commands used to build and install a shared archive.
17842
archive_cmds=$lt_archive_cmds_RC
17843
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17844
postinstall_cmds=$lt_postinstall_cmds
17845
postuninstall_cmds=$lt_postuninstall_cmds
17847
# Commands used to build a loadable module (assumed same as above if empty)
17848
module_cmds=$lt_module_cmds_RC
17849
module_expsym_cmds=$lt_module_expsym_cmds_RC
17851
# Commands to strip libraries.
17852
old_striplib=$lt_old_striplib
17853
striplib=$lt_striplib
17855
# Dependencies to place before the objects being linked to create a
17857
predep_objects=$lt_predep_objects_RC
17859
# Dependencies to place after the objects being linked to create a
17861
postdep_objects=$lt_postdep_objects_RC
17863
# Dependencies to place before the objects being linked to create a
17865
predeps=$lt_predeps_RC
17867
# Dependencies to place after the objects being linked to create a
17869
postdeps=$lt_postdeps_RC
17871
# The library search path used internally by the compiler when linking
17872
# a shared library.
17873
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17875
# Method to check whether dependent libraries are shared objects.
17876
deplibs_check_method=$lt_deplibs_check_method
17878
# Command to use when deplibs_check_method == file_magic.
17879
file_magic_cmd=$lt_file_magic_cmd
17881
# Flag that allows shared libraries with undefined symbols to be built.
17882
allow_undefined_flag=$lt_allow_undefined_flag_RC
17884
# Flag that forces no undefined symbols.
17885
no_undefined_flag=$lt_no_undefined_flag_RC
17887
# Commands used to finish a libtool library installation in a directory.
17888
finish_cmds=$lt_finish_cmds
17890
# Same as above, but a single script fragment to be evaled but not shown.
17891
finish_eval=$lt_finish_eval
17893
# Take the output of nm and produce a listing of raw symbols and C names.
17894
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17896
# Transform the output of nm in a proper C declaration
17897
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17899
# Transform the output of nm in a C name address pair
17900
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17902
# This is the shared library runtime path variable.
17903
runpath_var=$runpath_var
17905
# This is the shared library path variable.
17906
shlibpath_var=$shlibpath_var
17908
# Is shlibpath searched before the hard-coded library search path?
17909
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17911
# How to hardcode a shared library path into an executable.
17912
hardcode_action=$hardcode_action_RC
17914
# Whether we should hardcode library paths into libraries.
17915
hardcode_into_libs=$hardcode_into_libs
17917
# Flag to hardcode \$libdir into a binary during linking.
17918
# This must work even if \$libdir does not exist.
17919
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17921
# If ld is used when linking, flag to hardcode \$libdir into
17922
# a binary during linking. This must work even if \$libdir does
17924
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17926
# Whether we need a single -rpath flag with a separated argument.
17927
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17929
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17930
# resulting binary.
17931
hardcode_direct=$hardcode_direct_RC
17933
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17934
# resulting binary.
17935
hardcode_minus_L=$hardcode_minus_L_RC
17937
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17938
# the resulting binary.
17939
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17941
# Set to yes if building a shared library automatically hardcodes DIR into the library
17942
# and all subsequent libraries and executables linked against it.
17943
hardcode_automatic=$hardcode_automatic_RC
17945
# Variables whose values should be saved in libtool wrapper scripts and
17946
# restored at relink time.
17947
variables_saved_for_relink="$variables_saved_for_relink"
17949
# Whether libtool must link a program against all its dependency libraries.
17950
link_all_deplibs=$link_all_deplibs_RC
17952
# Compile-time system search path for libraries
17953
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17955
# Run-time system search path for libraries
17956
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17958
# Fix the shell variable \$srcfile for the compiler.
17959
fix_srcfile_path="$fix_srcfile_path_RC"
17961
# Set to yes if exported symbols are required.
17962
always_export_symbols=$always_export_symbols_RC
17964
# The commands to list exported symbols.
17965
export_symbols_cmds=$lt_export_symbols_cmds_RC
17967
# The commands to extract the exported symbol list from a shared archive.
17968
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17970
# Symbols that should not be listed in the preloaded symbols.
17971
exclude_expsyms=$lt_exclude_expsyms_RC
17973
# Symbols that must always be exported.
17974
include_expsyms=$lt_include_expsyms_RC
17976
# ### END LIBTOOL TAG CONFIG: $tagname
17982
# If there is no Makefile yet, we rely on a make rule to execute
17983
# `config.status --recheck' to rerun these tests and create the
17984
# libtool script then.
17985
test -f Makefile && make "$ltmain"
17990
ac_cpp='$CPP $CPPFLAGS'
17991
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17992
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17993
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18000
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18001
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18002
{ (exit 1); exit 1; }; }
18006
# Append the new tag name to the list of available tags.
18007
if test -n "$tagname" ; then
18008
available_tags="$available_tags $tagname"
18014
# Now substitute the updated list of available tags.
18015
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18016
mv "${ofile}T" "$ofile"
18020
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18021
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18022
{ (exit 1); exit 1; }; }
8530
24743
USE_INCLUDED_LIBINTL=yes
8532
echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6
8533
echo "configure:8534: checking for _nl_msg_cat_cntr" >&5
8534
if eval "test \"`echo '$''{'ac_cv_func__nl_msg_cat_cntr'+set}'`\" = set"; then
8535
echo $ac_n "(cached) $ac_c" 1>&6
24745
echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
24746
echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
24747
if test "${ac_cv_func__nl_msg_cat_cntr+set}" = set; then
24748
echo $ECHO_N "(cached) $ECHO_C" >&6
8537
cat > conftest.$ac_ext <<EOF
8538
#line 8539 "configure"
8539
#include "confdefs.h"
24750
cat >conftest.$ac_ext <<_ACEOF
24751
#line $LINENO "configure"
24754
cat confdefs.h >>conftest.$ac_ext
24755
cat >>conftest.$ac_ext <<_ACEOF
24756
/* end confdefs.h. */
8540
24757
/* System header to define __stub macros and hopefully few prototypes,
8541
which can conflict with char _nl_msg_cat_cntr(); below. */
24758
which can conflict with char _nl_msg_cat_cntr (); below.
24759
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24760
<limits.h> exists even on freestanding compilers. */
24762
# include <limits.h>
24764
# include <assert.h>
8543
24766
/* Override any gcc2 internal prototype to avoid an error. */
8544
24771
/* We use char because int might match the return type of a gcc2
8545
builtin and then its argument prototype would still apply. */
8546
char _nl_msg_cat_cntr();
24772
builtin and then its argument prototype would still apply. */
24773
char _nl_msg_cat_cntr ();
8550
24774
/* The GNU C library defines this for functions which it implements
8551
24775
to always fail with ENOSYS. Some functions are actually named
8552
24776
something starting with __ and the normal name is an alias. */
8553
24777
#if defined (__stub__nl_msg_cat_cntr) || defined (__stub____nl_msg_cat_cntr)
24780
char (*f) () = _nl_msg_cat_cntr;
8561
if { (eval echo configure:8562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8563
eval "ac_cv_func__nl_msg_cat_cntr=yes"
24789
return f != _nl_msg_cat_cntr;
24794
rm -f conftest.$ac_objext conftest$ac_exeext
24795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24796
(eval $ac_link) 2>&5
24798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799
(exit $ac_status); } &&
24800
{ ac_try='test -s conftest$ac_exeext'
24801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802
(eval $ac_try) 2>&5
24804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805
(exit $ac_status); }; }; then
24806
ac_cv_func__nl_msg_cat_cntr=yes
8565
echo "configure: failed program was:" >&5
8566
cat conftest.$ac_ext >&5
8568
eval "ac_cv_func__nl_msg_cat_cntr=no"
24808
echo "$as_me: failed program was:" >&5
24809
sed 's/^/| /' conftest.$ac_ext >&5
8573
if eval "test \"`echo '$ac_cv_func_'_nl_msg_cat_cntr`\" = yes"; then
8574
echo "$ac_t""yes" 1>&6
8575
cat >> confdefs.h <<\EOF
24811
ac_cv_func__nl_msg_cat_cntr=no
24813
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24815
echo "$as_me:$LINENO: result: $ac_cv_func__nl_msg_cat_cntr" >&5
24816
echo "${ECHO_T}$ac_cv_func__nl_msg_cat_cntr" >&6
24817
if test $ac_cv_func__nl_msg_cat_cntr = yes; then
24818
cat >>confdefs.h <<\_ACEOF
8576
24819
#define LIBC_GETTEXT 1
8579
for ac_hdr in libintl.h
24823
for ac_header in libintl.h
8581
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8582
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8583
echo "configure:8584: checking for $ac_hdr" >&5
8584
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8585
echo $ac_n "(cached) $ac_c" 1>&6
8587
cat > conftest.$ac_ext <<EOF
8588
#line 8589 "configure"
8589
#include "confdefs.h"
8592
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8593
{ (eval echo configure:8594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8594
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8595
if test -z "$ac_err"; then
8597
eval "ac_cv_header_$ac_safe=yes"
8600
echo "configure: failed program was:" >&5
8601
cat conftest.$ac_ext >&5
8603
eval "ac_cv_header_$ac_safe=no"
8607
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8608
echo "$ac_t""yes" 1>&6
8609
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8610
cat >> confdefs.h <<EOF
8611
#define $ac_tr_hdr 1
8615
echo "$ac_t""no" 1>&6
24825
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24826
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24827
echo "$as_me:$LINENO: checking for $ac_header" >&5
24828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24830
echo $ECHO_N "(cached) $ECHO_C" >&6
24832
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24833
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24835
# Is the header compilable?
24836
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24837
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24838
cat >conftest.$ac_ext <<_ACEOF
24839
#line $LINENO "configure"
24842
cat confdefs.h >>conftest.$ac_ext
24843
cat >>conftest.$ac_ext <<_ACEOF
24844
/* end confdefs.h. */
24845
$ac_includes_default
24846
#include <$ac_header>
24848
rm -f conftest.$ac_objext
24849
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24850
(eval $ac_compile) 2>&5
24852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853
(exit $ac_status); } &&
24854
{ ac_try='test -s conftest.$ac_objext'
24855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856
(eval $ac_try) 2>&5
24858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859
(exit $ac_status); }; }; then
24860
ac_header_compiler=yes
24862
echo "$as_me: failed program was:" >&5
24863
sed 's/^/| /' conftest.$ac_ext >&5
24865
ac_header_compiler=no
24867
rm -f conftest.$ac_objext conftest.$ac_ext
24868
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24869
echo "${ECHO_T}$ac_header_compiler" >&6
24871
# Is the header present?
24872
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24873
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24874
cat >conftest.$ac_ext <<_ACEOF
24875
#line $LINENO "configure"
24878
cat confdefs.h >>conftest.$ac_ext
24879
cat >>conftest.$ac_ext <<_ACEOF
24880
/* end confdefs.h. */
24881
#include <$ac_header>
24883
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24884
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24886
grep -v '^ *+' conftest.er1 >conftest.err
24888
cat conftest.err >&5
24889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890
(exit $ac_status); } >/dev/null; then
24891
if test -s conftest.err; then
24892
ac_cpp_err=$ac_c_preproc_warn_flag
24899
if test -z "$ac_cpp_err"; then
24900
ac_header_preproc=yes
24902
echo "$as_me: failed program was:" >&5
24903
sed 's/^/| /' conftest.$ac_ext >&5
24905
ac_header_preproc=no
24907
rm -f conftest.err conftest.$ac_ext
24908
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909
echo "${ECHO_T}$ac_header_preproc" >&6
24911
# So? What about this header?
24912
case $ac_header_compiler:$ac_header_preproc in
24914
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24917
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24920
## ------------------------------------ ##
24921
## Report this to bug-autoconf@gnu.org. ##
24922
## ------------------------------------ ##
24925
sed "s/^/$as_me: WARNING: /" >&2
24928
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24929
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24930
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24931
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24932
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24933
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24936
## ------------------------------------ ##
24937
## Report this to bug-autoconf@gnu.org. ##
24938
## ------------------------------------ ##
24941
sed "s/^/$as_me: WARNING: /" >&2
24944
echo "$as_me:$LINENO: checking for $ac_header" >&5
24945
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24946
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24947
echo $ECHO_N "(cached) $ECHO_C" >&6
24949
eval "$as_ac_Header=$ac_header_preproc"
24951
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24952
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24955
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24956
cat >>confdefs.h <<_ACEOF
24957
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619
24964
USE_INCLUDED_LIBINTL=no
8621
echo "$ac_t""no" 1>&6
8626
cat > confcache <<\EOF
24968
ac_config_files="$ac_config_files ${output_files}"
24969
ac_config_commands="$ac_config_commands default"
24970
cat >confcache <<\_ACEOF
8627
24971
# This file is a shell script that caches the results of configure
8628
24972
# tests run on this system so they can be shared between configure
8629
# scripts and configure runs. It is not useful on other systems.
8630
# If it contains results you don't want to keep, you may remove or edit it.
8632
# By default, configure uses ./config.cache as the cache file,
8633
# creating it if it does not exist already. You can give configure
8634
# the --cache-file=FILE option to use a different cache file; that is
8635
# what configure does when it calls configure scripts in
8636
# subdirectories, so they share the cache.
8637
# Giving --cache-file=/dev/null disables caching, for debugging configure.
8638
# config.status only pays attention to the cache file if you give it the
8639
# --recheck option to rerun configure.
24973
# scripts and configure runs, see configure's option --config-cache.
24974
# It is not useful on other systems. If it contains results you don't
24975
# want to keep, you may remove or edit it.
24977
# config.status only pays attention to the cache file if you give it
24978
# the --recheck option to rerun configure.
24980
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24981
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24982
# following values.
8642
24986
# The following way of writing the cache mishandles newlines in values,
8643
24987
# but we know of no workaround that is simple, portable, and efficient.
8644
24988
# So, don't put newlines in cache variables' values.
8645
24989
# Ultrix sh set writes to stderr and can't be redirected directly,
8646
24990
# and sets the high bit in the cache file unless we assign to the vars.
8648
case `(ac_space=' '; set | grep ac_space) 2>&1` in
8650
# `set' does not quote correctly, so add quotes (double-quote substitution
8651
# turns \\\\ into \\, and sed turns \\ into \).
8653
-e "s/'/'\\\\''/g" \
8654
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8657
# `set' quotes correctly as required by POSIX, so do not add quotes.
8658
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8661
if cmp -s $cache_file confcache; then
24993
case `(ac_space=' '; set | grep ac_space) 2>&1` in
24995
# `set' does not quote correctly, so add quotes (double-quote
24996
# substitution turns \\\\ into \\, and sed turns \\ into \).
24999
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25002
# `set' quotes correctly as required by POSIX, so do not add quotes.
25004
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25011
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25013
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25015
if diff $cache_file confcache >/dev/null 2>&1; then :; else
8664
25016
if test -w $cache_file; then
8665
echo "updating cache $cache_file"
8666
cat confcache > $cache_file
25017
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25018
cat confcache >$cache_file
8668
25020
echo "not updating unwritable cache $cache_file"
8671
25023
rm -f confcache
8673
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8675
25025
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8676
25026
# Let make expand exec_prefix.
8677
25027
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8679
# Any assignment to VPATH causes Sun make to only execute
8680
# the first set of double-colon rules, so remove it if not needed.
8681
# If there is a colon in the path, we need to keep it.
25029
# VPATH may cause trouble with some makes, so we remove $(srcdir),
25030
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25031
# trailing colons and then remove the whole line if VPATH becomes empty
25032
# (actually we leave an empty line to preserve line numbers).
8682
25033
if test "x$srcdir" = x.; then
8683
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25034
ac_vpsub='/^[ ]*VPATH[ ]*=/{
25035
s/:*\$(srcdir):*/:/;
25036
s/:*\${srcdir}:*/:/;
25038
s/^\([^=]*=[ ]*\):*/\1/;
8686
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8688
25044
DEFS=-DHAVE_CONFIG_H
8690
# Without the "./", some shells look in PATH for config.status.
25048
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25049
# 1. Remove the extension, and $U if already installed.
25050
ac_i=`echo "$ac_i" |
25051
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25053
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25054
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25056
LIBOBJS=$ac_libobjs
25058
LTLIBOBJS=$ac_ltlibobjs
8691
25062
: ${CONFIG_STATUS=./config.status}
8693
echo creating $CONFIG_STATUS
8694
rm -f $CONFIG_STATUS
8695
cat > $CONFIG_STATUS <<EOF
8697
# Generated automatically by configure.
25063
ac_clean_files_save=$ac_clean_files
25064
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25065
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25066
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25067
cat >$CONFIG_STATUS <<_ACEOF
25069
# Generated by $as_me.
8698
25070
# Run this file to recreate the current configuration.
8699
# This directory was configured as follows,
8700
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8702
# $0 $ac_configure_args
8704
25071
# Compiler output produced by configure, useful for debugging
8705
# configure, is in ./config.log if it exists.
8707
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8710
case "\$ac_option" in
25072
# configure, is in config.log if it exists.
25075
ac_cs_recheck=false
25077
SHELL=\${CONFIG_SHELL-$SHELL}
25080
cat >>$CONFIG_STATUS <<\_ACEOF
25081
## --------------------- ##
25082
## M4sh Initialization. ##
25083
## --------------------- ##
25085
# Be Bourne compatible
25086
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25089
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25090
# is contrary to our usage. Disable this feature.
25091
alias -g '${1+"$@"}'='"$@"'
25092
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25096
# Support unset when possible.
25097
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
25104
# Work around bugs in pre-3.0 UWIN ksh.
25105
$as_unset ENV MAIL MAILPATH
25112
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25113
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25114
LC_TELEPHONE LC_TIME
25116
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
25117
eval $as_var=C; export $as_var
25123
# Required to use basename.
25124
if expr a : '\(a\)' >/dev/null 2>&1; then
25130
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25131
as_basename=basename
25137
# Name of the executable.
25138
as_me=`$as_basename "$0" ||
25139
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25140
X"$0" : 'X\(//\)$' \| \
25141
X"$0" : 'X\(/\)$' \| \
25142
. : '\(.\)' 2>/dev/null ||
25144
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25145
/^X\/\(\/\/\)$/{ s//\1/; q; }
25146
/^X\/\(\/\).*/{ s//\1/; q; }
25150
# PATH needs CR, and LINENO needs CR and PATH.
25151
# Avoid depending upon Character Ranges.
25152
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25153
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25154
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25155
as_cr_digits='0123456789'
25156
as_cr_alnum=$as_cr_Letters$as_cr_digits
25158
# The user is always right.
25159
if test "${PATH_SEPARATOR+set}" != set; then
25160
echo "#! /bin/sh" >conf$$.sh
25161
echo "exit 0" >>conf$$.sh
25163
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25172
as_lineno_1=$LINENO
25173
as_lineno_2=$LINENO
25174
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25175
test "x$as_lineno_1" != "x$as_lineno_2" &&
25176
test "x$as_lineno_3" = "x$as_lineno_2" || {
25177
# Find who we are. Look in the path if we contain no path at all
25180
*[\\/]* ) as_myself=$0 ;;
25181
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25182
for as_dir in $PATH
25185
test -z "$as_dir" && as_dir=.
25186
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25191
# We did not find ourselves, most probably we were run as `sh COMMAND'
25192
# in which case we are not to be found in the path.
25193
if test "x$as_myself" = x; then
25196
if test ! -f "$as_myself"; then
25197
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25198
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25199
{ (exit 1); exit 1; }; }
25201
case $CONFIG_SHELL in
25203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25204
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25207
test -z "$as_dir" && as_dir=.
25208
for as_base in sh bash ksh sh5; do
25211
if ("$as_dir/$as_base" -c '
25212
as_lineno_1=$LINENO
25213
as_lineno_2=$LINENO
25214
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25215
test "x$as_lineno_1" != "x$as_lineno_2" &&
25216
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25217
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25218
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25219
CONFIG_SHELL=$as_dir/$as_base
25220
export CONFIG_SHELL
25221
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25229
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25230
# uniformly replaced by the line number. The first 'sed' inserts a
25231
# line-number line before each line; the second 'sed' does the real
25232
# work. The second script uses 'N' to pair each line-number line
25233
# with the numbered line, and appends trailing '-' during
25234
# substitution so that $LINENO is not a special case at line end.
25235
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25236
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25237
sed '=' <$as_myself |
25242
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25245
s,^['$as_cr_digits']*\n,,
25246
' >$as_me.lineno &&
25247
chmod +x $as_me.lineno ||
25248
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25249
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25250
{ (exit 1); exit 1; }; }
25252
# Don't try to exec as it changes $[0], causing all sort of problems
25253
# (the dirname of $[0] is not the place where we might find the
25254
# original and so on. Autoconf is especially sensible to this).
25256
# Exit status is that of the last command.
25261
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25262
*c*,-n*) ECHO_N= ECHO_C='
25264
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25265
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25268
if expr a : '\(a\)' >/dev/null 2>&1; then
25274
rm -f conf$$ conf$$.exe conf$$.file
25276
if ln -s conf$$.file conf$$ 2>/dev/null; then
25277
# We could just check for DJGPP; but this test a) works b) is more generic
25278
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25279
if test -f conf$$.exe; then
25280
# Don't use ln at all; we don't have any links
25285
elif ln conf$$.file conf$$ 2>/dev/null; then
25290
rm -f conf$$ conf$$.exe conf$$.file
25292
if mkdir -p . 2>/dev/null; then
25298
as_executable_p="test -f"
25300
# Sed expression to map a string onto a valid CPP name.
25301
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25303
# Sed expression to map a string onto a valid variable name.
25304
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25308
# We need space, tab and new line, in precisely that order.
25318
# Open the log real soon, to keep \$[0] and so on meaningful, and to
25319
# report actual input values of CONFIG_FILES etc. instead of their
25320
# values after options handling. Logging --version etc. is OK.
25324
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25325
## Running $as_me. ##
25330
This file was extended by $as_me, which was
25331
generated by GNU Autoconf 2.57. Invocation command line was
25333
CONFIG_FILES = $CONFIG_FILES
25334
CONFIG_HEADERS = $CONFIG_HEADERS
25335
CONFIG_LINKS = $CONFIG_LINKS
25336
CONFIG_COMMANDS = $CONFIG_COMMANDS
25340
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25344
# Files that config.status was made for.
25345
if test -n "$ac_config_files"; then
25346
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25349
if test -n "$ac_config_headers"; then
25350
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25353
if test -n "$ac_config_links"; then
25354
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25357
if test -n "$ac_config_commands"; then
25358
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25361
cat >>$CONFIG_STATUS <<\_ACEOF
25364
\`$as_me' instantiates files from templates according to the
25365
current configuration.
25367
Usage: $0 [OPTIONS] [FILE]...
25369
-h, --help print this help, then exit
25370
-V, --version print version number, then exit
25371
-q, --quiet do not print progress messages
25372
-d, --debug don't remove temporary files
25373
--recheck update $as_me by reconfiguring in the same conditions
25374
--file=FILE[:TEMPLATE]
25375
instantiate the configuration file FILE
25376
--header=FILE[:TEMPLATE]
25377
instantiate the configuration header FILE
25379
Configuration files:
25382
Configuration headers:
25385
Configuration commands:
25388
Report bugs to <bug-autoconf@gnu.org>."
25391
cat >>$CONFIG_STATUS <<_ACEOF
25394
configured by $0, generated by GNU Autoconf 2.57,
25395
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25397
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25398
Free Software Foundation, Inc.
25399
This config.status script is free software; the Free Software Foundation
25400
gives unlimited permission to copy, distribute and modify it."
25405
cat >>$CONFIG_STATUS <<\_ACEOF
25406
# If no file are specified by the user, then we need to provide default
25407
# value. By we need to know if files were specified by the user.
25413
ac_option=`expr "x$1" : 'x\([^=]*\)='`
25414
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25422
*) # This is not an option, so the user has probably given explicit
25425
ac_need_defaults=false;;
25429
# Handling of the options.
25431
cat >>$CONFIG_STATUS <<\_ACEOF
8711
25432
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8712
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8713
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8714
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8715
echo "$CONFIG_STATUS generated by autoconf version 2.13"
8717
-help | --help | --hel | --he | --h)
8718
echo "\$ac_cs_usage"; exit 0 ;;
8719
*) echo "\$ac_cs_usage"; exit 1 ;;
8723
ac_given_srcdir=$srcdir
8724
ac_given_INSTALL="$INSTALL"
8726
trap 'rm -fr `echo "${output_files} config.h src/rep_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8728
cat >> $CONFIG_STATUS <<EOF
8730
# Protect against being on the right side of a sed subst in config.status.
8731
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8732
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25434
--version | --vers* | -V )
25435
echo "$ac_cs_version"; exit 0 ;;
25437
# Conflict between --help and --header
25438
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
25439
Try \`$0 --help' for more information." >&5
25440
echo "$as_me: error: ambiguous option: $1
25441
Try \`$0 --help' for more information." >&2;}
25442
{ (exit 1); exit 1; }; };;
25443
--help | --hel | -h )
25444
echo "$ac_cs_usage"; exit 0 ;;
25445
--debug | --d* | -d )
25447
--file | --fil | --fi | --f )
25449
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25450
ac_need_defaults=false;;
25451
--header | --heade | --head | --hea )
25453
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25454
ac_need_defaults=false;;
25455
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
25456
| -silent | --silent | --silen | --sile | --sil | --si | --s)
25459
# This is an error.
25460
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25461
Try \`$0 --help' for more information." >&5
25462
echo "$as_me: error: unrecognized option: $1
25463
Try \`$0 --help' for more information." >&2;}
25464
{ (exit 1); exit 1; }; } ;;
25466
*) ac_config_targets="$ac_config_targets $1" ;;
25472
ac_configure_extra_args=
25474
if $ac_cs_silent; then
25476
ac_configure_extra_args="$ac_configure_extra_args --silent"
25480
cat >>$CONFIG_STATUS <<_ACEOF
25481
if \$ac_cs_recheck; then
25482
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25483
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25492
cat >>$CONFIG_STATUS <<\_ACEOF
25493
for ac_config_target in $ac_config_targets
25495
case "$ac_config_target" in
25496
# Handling of arguments.
25497
"${output_files}" ) CONFIG_FILES="$CONFIG_FILES ${output_files}" ;;
25498
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25499
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25500
"src/rep_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/rep_config.h" ;;
25501
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25502
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25503
{ (exit 1); exit 1; }; };;
25507
# If the user did not use the arguments to specify the items to instantiate,
25508
# then the envvar interface is used. Set only those that are not.
25509
# We use the long form for the default assignment because of an extremely
25510
# bizarre bug on SunOS 4.1.3.
25511
if $ac_need_defaults; then
25512
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25513
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25514
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25517
# Have a temporary directory for convenience. Make it in the build tree
25518
# simply because there is no reason to put it here, and in addition,
25519
# creating and moving files from /tmp can sometimes cause problems.
25520
# Create a temporary directory, and hook for its removal unless debugging.
25523
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25524
trap '{ (exit 1); exit 1; }' 1 2 13 15
25527
# Create a (secure) tmp directory for tmp files.
25530
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25531
test -n "$tmp" && test -d "$tmp"
25534
tmp=./confstat$$-$RANDOM
25535
(umask 077 && mkdir $tmp)
25538
echo "$me: cannot create a temporary directory in ." >&2
25539
{ (exit 1); exit 1; }
25544
cat >>$CONFIG_STATUS <<_ACEOF
25547
# CONFIG_FILES section.
25550
# No need to generate the scripts if there are no CONFIG_FILES.
25551
# This happens for instance when ./config.status config.h
25552
if test -n "\$CONFIG_FILES"; then
25553
# Protect against being on the right side of a sed subst in config.status.
25554
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25555
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25556
s,@SHELL@,$SHELL,;t t
25557
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25558
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25559
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25560
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25561
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25562
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25563
s,@exec_prefix@,$exec_prefix,;t t
25564
s,@prefix@,$prefix,;t t
25565
s,@program_transform_name@,$program_transform_name,;t t
25566
s,@bindir@,$bindir,;t t
25567
s,@sbindir@,$sbindir,;t t
25568
s,@libexecdir@,$libexecdir,;t t
25569
s,@datadir@,$datadir,;t t
25570
s,@sysconfdir@,$sysconfdir,;t t
25571
s,@sharedstatedir@,$sharedstatedir,;t t
25572
s,@localstatedir@,$localstatedir,;t t
25573
s,@libdir@,$libdir,;t t
25574
s,@includedir@,$includedir,;t t
25575
s,@oldincludedir@,$oldincludedir,;t t
25576
s,@infodir@,$infodir,;t t
25577
s,@mandir@,$mandir,;t t
25578
s,@build_alias@,$build_alias,;t t
25579
s,@host_alias@,$host_alias,;t t
25580
s,@target_alias@,$target_alias,;t t
25581
s,@DEFS@,$DEFS,;t t
25582
s,@ECHO_C@,$ECHO_C,;t t
25583
s,@ECHO_N@,$ECHO_N,;t t
25584
s,@ECHO_T@,$ECHO_T,;t t
25585
s,@LIBS@,$LIBS,;t t
25586
s,@build@,$build,;t t
25587
s,@build_cpu@,$build_cpu,;t t
25588
s,@build_vendor@,$build_vendor,;t t
25589
s,@build_os@,$build_os,;t t
25590
s,@host@,$host,;t t
25591
s,@host_cpu@,$host_cpu,;t t
25592
s,@host_vendor@,$host_vendor,;t t
25593
s,@host_os@,$host_os,;t t
25594
s,@EXTRA_LIBOBJS@,$EXTRA_LIBOBJS,;t t
25595
s,@LDFLAGS@,$LDFLAGS,;t t
25596
s,@CPPFLAGS@,$CPPFLAGS,;t t
25597
s,@CFLAGS@,$CFLAGS,;t t
25599
s,@ac_ct_CC@,$ac_ct_CC,;t t
25600
s,@EXEEXT@,$EXEEXT,;t t
25601
s,@OBJEXT@,$OBJEXT,;t t
25603
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25604
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25605
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25606
s,@LN_S@,$LN_S,;t t
25607
s,@SET_MAKE@,$SET_MAKE,;t t
25608
s,@EGREP@,$EGREP,;t t
25609
s,@ECHO@,$ECHO,;t t
25611
s,@ac_ct_AR@,$ac_ct_AR,;t t
25612
s,@RANLIB@,$RANLIB,;t t
25613
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25614
s,@STRIP@,$STRIP,;t t
25615
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25617
s,@CXXFLAGS@,$CXXFLAGS,;t t
25618
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25619
s,@CXXCPP@,$CXXCPP,;t t
25621
s,@FFLAGS@,$FFLAGS,;t t
25622
s,@ac_ct_F77@,$ac_ct_F77,;t t
25623
s,@LIBTOOL@,$LIBTOOL,;t t
25624
s,@GMP_LIBS@,$GMP_LIBS,;t t
25625
s,@GDBM_LIBS@,$GDBM_LIBS,;t t
25626
s,@READLINE_LIBS@,$READLINE_LIBS,;t t
25627
s,@FFI_LIBS@,$FFI_LIBS,;t t
25628
s,@ALLOCA@,$ALLOCA,;t t
25629
s,@LIBOBJS@,$LIBOBJS,;t t
25630
s,@MAKEDEP@,$MAKEDEP,;t t
25631
s,@aclocaldir@,$aclocaldir,;t t
25632
s,@version@,$version,;t t
25633
s,@libversion@,$libversion,;t t
25634
s,@repdir@,$repdir,;t t
25635
s,@repexecdir@,$repexecdir,;t t
25636
s,@repcommonexecdir@,$repcommonexecdir,;t t
25637
s,@replispdir@,$replispdir,;t t
25638
s,@repdocfile@,$repdocfile,;t t
25639
s,@emacssitelispdir@,$emacssitelispdir,;t t
25640
s,@HAVE_UNIX@,$HAVE_UNIX,;t t
25641
s,@HAVE_X11@,$HAVE_X11,;t t
25642
s,@VERSION@,$VERSION,;t t
25643
s,@PACKAGE@,$PACKAGE,;t t
25644
s,@DATADIRNAME@,$DATADIRNAME,;t t
25645
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
25646
s,@INTLOBJS@,$INTLOBJS,;t t
25647
s,@GT_YES@,$GT_YES,;t t
25648
s,@GT_NO@,$GT_NO,;t t
25650
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
25651
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25656
cat >>$CONFIG_STATUS <<\_ACEOF
25657
# Split the substitutions into bite-sized pieces for seds with
25658
# small command number limits, like on Digital OSF/1 and HP-UX.
25659
ac_max_sed_lines=48
25660
ac_sed_frag=1 # Number of current file.
25661
ac_beg=1 # First line for current file.
25662
ac_end=$ac_max_sed_lines # Line after last line for current file.
25665
while $ac_more_lines; do
25666
if test $ac_beg -gt 1; then
25667
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25669
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25671
if test ! -s $tmp/subs.frag; then
25672
ac_more_lines=false
25674
# The purpose of the label and of the branching condition is to
25675
# speed up the sed processing (if there are no `@' at all, there
25676
# is no need to browse any of the substitutions).
25677
# These are the two extra sed commands mentioned above.
25679
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25680
if test -z "$ac_sed_cmds"; then
25681
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25683
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25685
ac_sed_frag=`expr $ac_sed_frag + 1`
25687
ac_end=`expr $ac_end + $ac_max_sed_lines`
25690
if test -z "$ac_sed_cmds"; then
25693
fi # test -n "$CONFIG_FILES"
25696
cat >>$CONFIG_STATUS <<\_ACEOF
25697
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25698
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25700
- | *:- | *:-:* ) # input from stdin
25702
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25703
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25704
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25705
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25706
* ) ac_file_in=$ac_file.in ;;
25709
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25710
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25711
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25712
X"$ac_file" : 'X\(//\)[^/]' \| \
25713
X"$ac_file" : 'X\(//\)$' \| \
25714
X"$ac_file" : 'X\(/\)' \| \
25715
. : '\(.\)' 2>/dev/null ||
25717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25719
/^X\(\/\/\)$/{ s//\1/; q; }
25720
/^X\(\/\).*/{ s//\1/; q; }
25722
{ if $as_mkdir_p; then
25727
while test ! -d "$as_dir"; do
25728
as_dirs="$as_dir $as_dirs"
25729
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25731
X"$as_dir" : 'X\(//\)[^/]' \| \
25732
X"$as_dir" : 'X\(//\)$' \| \
25733
X"$as_dir" : 'X\(/\)' \| \
25734
. : '\(.\)' 2>/dev/null ||
25736
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25737
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25738
/^X\(\/\/\)$/{ s//\1/; q; }
25739
/^X\(\/\).*/{ s//\1/; q; }
25742
test ! -n "$as_dirs" || mkdir $as_dirs
25743
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25744
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25745
{ (exit 1); exit 1; }; }; }
25749
if test "$ac_dir" != .; then
25750
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25751
# A "../" for each directory in $ac_dir_suffix.
25752
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25754
ac_dir_suffix= ac_top_builddir=
25758
.) # No --srcdir option. We are building in place.
25760
if test -z "$ac_top_builddir"; then
25763
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25765
[\\/]* | ?:[\\/]* ) # Absolute path.
25766
ac_srcdir=$srcdir$ac_dir_suffix;
25767
ac_top_srcdir=$srcdir ;;
25768
*) # Relative path.
25769
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25770
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25772
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25774
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25775
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25776
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25777
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25781
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25782
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25785
if test x"$ac_file" != x-; then
25786
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25787
echo "$as_me: creating $ac_file" >&6;}
25790
# Let's still pretend it is `configure' which instantiates (i.e., don't
25791
# use $as_me), people would be surprised to read:
25792
# /* config.h. Generated by config.status. */
25793
if test x"$ac_file" = x-; then
25796
configure_input="$ac_file. "
25798
configure_input=$configure_input"Generated from `echo $ac_file_in |
25799
sed 's,.*/,,'` by configure."
25801
# First look for the input files in the build tree, otherwise in the
25803
ac_file_inputs=`IFS=:
25804
for f in $ac_file_in; do
25806
-) echo $tmp/stdin ;;
25808
# Absolute (can't be DOS-style, as IFS=:)
25809
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25810
echo "$as_me: error: cannot find input file: $f" >&2;}
25811
{ (exit 1); exit 1; }; }
25814
if test -f "$f"; then
25817
elif test -f "$srcdir/$f"; then
25822
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25823
echo "$as_me: error: cannot find input file: $f" >&2;}
25824
{ (exit 1); exit 1; }; }
25827
done` || { (exit 1); exit 1; }
25829
cat >>$CONFIG_STATUS <<_ACEOF
8736
s%@CFLAGS@%$CFLAGS%g
8737
s%@CPPFLAGS@%$CPPFLAGS%g
8738
s%@CXXFLAGS@%$CXXFLAGS%g
8739
s%@FFLAGS@%$FFLAGS%g
8741
s%@LDFLAGS@%$LDFLAGS%g
8743
s%@exec_prefix@%$exec_prefix%g
8744
s%@prefix@%$prefix%g
8745
s%@program_transform_name@%$program_transform_name%g
8746
s%@bindir@%$bindir%g
8747
s%@sbindir@%$sbindir%g
8748
s%@libexecdir@%$libexecdir%g
8749
s%@datadir@%$datadir%g
8750
s%@sysconfdir@%$sysconfdir%g
8751
s%@sharedstatedir@%$sharedstatedir%g
8752
s%@localstatedir@%$localstatedir%g
8753
s%@libdir@%$libdir%g
8754
s%@includedir@%$includedir%g
8755
s%@oldincludedir@%$oldincludedir%g
8756
s%@infodir@%$infodir%g
8757
s%@mandir@%$mandir%g
8759
s%@host_alias@%$host_alias%g
8760
s%@host_cpu@%$host_cpu%g
8761
s%@host_vendor@%$host_vendor%g
8762
s%@host_os@%$host_os%g
8763
s%@EXTRA_LIBOBJS@%$EXTRA_LIBOBJS%g
8766
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8767
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8768
s%@INSTALL_DATA@%$INSTALL_DATA%g
8770
s%@SET_MAKE@%$SET_MAKE%g
8772
s%@build_alias@%$build_alias%g
8773
s%@build_cpu@%$build_cpu%g
8774
s%@build_vendor@%$build_vendor%g
8775
s%@build_os@%$build_os%g
8776
s%@OBJEXT@%$OBJEXT%g
8777
s%@EXEEXT@%$EXEEXT%g
8779
s%@RANLIB@%$RANLIB%g
8781
s%@LIBTOOL@%$LIBTOOL%g
8782
s%@GMP_LIBS@%$GMP_LIBS%g
8783
s%@GDBM_LIBS@%$GDBM_LIBS%g
8784
s%@READLINE_LIBS@%$READLINE_LIBS%g
8785
s%@ALLOCA@%$ALLOCA%g
8786
s%@LIBOBJS@%$LIBOBJS%g
8787
s%@MAKEDEP@%$MAKEDEP%g
8788
s%@aclocaldir@%$aclocaldir%g
8789
s%@version@%$version%g
8790
s%@libversion@%$libversion%g
8791
s%@repdir@%$repdir%g
8792
s%@repexecdir@%$repexecdir%g
8793
s%@repcommonexecdir@%$repcommonexecdir%g
8794
s%@replispdir@%$replispdir%g
8795
s%@repdocfile@%$repdocfile%g
8796
s%@emacssitelispdir@%$emacssitelispdir%g
8797
s%@HAVE_UNIX@%$HAVE_UNIX%g
8798
s%@HAVE_X11@%$HAVE_X11%g
8799
s%@VERSION@%$VERSION%g
8800
s%@PACKAGE@%$PACKAGE%g
8801
s%@DATADIRNAME@%$DATADIRNAME%g
8802
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8803
s%@INTLOBJS@%$INTLOBJS%g
8804
s%@GT_YES@%$GT_YES%g
8807
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8812
cat >> $CONFIG_STATUS <<\EOF
8814
# Split the substitutions into bite-sized pieces for seds with
8815
# small command number limits, like on Digital OSF/1 and HP-UX.
8816
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8817
ac_file=1 # Number of current file.
8818
ac_beg=1 # First line for current file.
8819
ac_end=$ac_max_sed_cmds # Line after last line for current file.
8822
while $ac_more_lines; do
8823
if test $ac_beg -gt 1; then
8824
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8826
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8828
if test ! -s conftest.s$ac_file; then
8830
rm -f conftest.s$ac_file
8832
if test -z "$ac_sed_cmds"; then
8833
ac_sed_cmds="sed -f conftest.s$ac_file"
8835
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8837
ac_file=`expr $ac_file + 1`
8839
ac_end=`expr $ac_end + $ac_max_sed_cmds`
25833
cat >>$CONFIG_STATUS <<\_ACEOF
25835
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25836
s,@configure_input@,$configure_input,;t t
25837
s,@srcdir@,$ac_srcdir,;t t
25838
s,@abs_srcdir@,$ac_abs_srcdir,;t t
25839
s,@top_srcdir@,$ac_top_srcdir,;t t
25840
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25841
s,@builddir@,$ac_builddir,;t t
25842
s,@abs_builddir@,$ac_abs_builddir,;t t
25843
s,@top_builddir@,$ac_top_builddir,;t t
25844
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25845
s,@INSTALL@,$ac_INSTALL,;t t
25846
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25848
if test x"$ac_file" != x-; then
25849
mv $tmp/out $ac_file
8842
if test -z "$ac_sed_cmds"; then
8847
cat >> $CONFIG_STATUS <<EOF
8849
CONFIG_FILES=\${CONFIG_FILES-"${output_files}"}
8851
cat >> $CONFIG_STATUS <<\EOF
8852
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8853
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8855
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8856
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8857
*) ac_file_in="${ac_file}.in" ;;
8860
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8862
# Remove last slash and all that follows it. Not all systems have dirname.
8863
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8864
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8865
# The file is in a subdirectory.
8866
test ! -d "$ac_dir" && mkdir "$ac_dir"
8867
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8868
# A "../" for each directory in $ac_dir_suffix.
8869
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8871
ac_dir_suffix= ac_dots=
8874
case "$ac_given_srcdir" in
8876
if test -z "$ac_dots"; then top_srcdir=.
8877
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8878
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8880
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8881
top_srcdir="$ac_dots$ac_given_srcdir" ;;
8884
case "$ac_given_INSTALL" in
8885
[/$]*) INSTALL="$ac_given_INSTALL" ;;
8886
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8889
echo creating "$ac_file"
8891
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8893
*Makefile*) ac_comsub="1i\\
8894
# $configure_input" ;;
8898
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8900
s%@configure_input@%$configure_input%g
8901
s%@srcdir@%$srcdir%g
8902
s%@top_srcdir@%$top_srcdir%g
8903
s%@INSTALL@%$INSTALL%g
8904
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25857
cat >>$CONFIG_STATUS <<\_ACEOF
25860
# CONFIG_HEADER section.
8908
25863
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8909
25864
# NAME is the cpp macro being defined and VALUE is the value it is being given.
8911
25866
# ac_d sets the value in "#define NAME VALUE" lines.
8912
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8913
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8916
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8917
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8918
ac_uB='\([ ]\)%\1#\2define\3'
25867
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25868
ac_dB='[ ].*$,\1#\2'
25871
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25872
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25873
ac_uB='$,\1#\2define\3'
8921
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8922
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8923
ac_eB='$%\1#\2define\3'
8927
if test "${CONFIG_HEADERS+set}" != set; then
8929
cat >> $CONFIG_STATUS <<EOF
8930
CONFIG_HEADERS="config.h src/rep_config.h"
8932
cat >> $CONFIG_STATUS <<\EOF
8934
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25877
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8935
25878
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8937
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8938
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8939
*) ac_file_in="${ac_file}.in" ;;
25880
- | *:- | *:-:* ) # input from stdin
25882
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25883
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25884
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25885
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25886
* ) ac_file_in=$ac_file.in ;;
8942
echo creating $ac_file
8944
rm -f conftest.frag conftest.in conftest.out
8945
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8946
cat $ac_file_inputs > conftest.in
8950
# Transform confdefs.h into a sed script conftest.vals that substitutes
8951
# the proper values into config.h.in to produce config.h. And first:
8952
# Protect against being on the right side of a sed subst in config.status.
8953
# Protect against being in an unquoted here document in config.status.
8955
cat > conftest.hdr <<\EOF
8958
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8962
sed -n -f conftest.hdr confdefs.h > conftest.vals
25889
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25890
echo "$as_me: creating $ac_file" >&6;}
25892
# First look for the input files in the build tree, otherwise in the
25894
ac_file_inputs=`IFS=:
25895
for f in $ac_file_in; do
25897
-) echo $tmp/stdin ;;
25899
# Absolute (can't be DOS-style, as IFS=:)
25900
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25901
echo "$as_me: error: cannot find input file: $f" >&2;}
25902
{ (exit 1); exit 1; }; }
25905
if test -f "$f"; then
25908
elif test -f "$srcdir/$f"; then
25913
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25914
echo "$as_me: error: cannot find input file: $f" >&2;}
25915
{ (exit 1); exit 1; }; }
25918
done` || { (exit 1); exit 1; }
25919
# Remove the trailing spaces.
25920
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25924
# Transform confdefs.h into two sed scripts, `conftest.defines' and
25925
# `conftest.undefs', that substitutes the proper values into
25926
# config.h.in to produce config.h. The first handles `#define'
25927
# templates, and the second `#undef' templates.
25928
# And first: Protect against being on the right side of a sed subst in
25929
# config.status. Protect against being in an unquoted here document
25930
# in config.status.
25931
rm -f conftest.defines conftest.undefs
25932
# Using a here document instead of a string reduces the quoting nightmare.
25933
# Putting comments in sed scripts is not portable.
25935
# `end' is used to avoid that the second main sed command (meant for
25936
# 0-ary CPP macros) applies to n-ary macro definitions.
25937
# See the Autoconf documentation for `clear'.
25938
cat >confdef2sed.sed <<\_ACEOF
25943
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25945
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25948
# If some macros were called several times there might be several times
25949
# the same #defines, which is useless. Nevertheless, we may not want to
25950
# sort them, since we want the *last* AC-DEFINE to be honored.
25951
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25952
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25953
rm -f confdef2sed.sed
8965
25955
# This sed command replaces #undef with comments. This is necessary, for
8966
25956
# example, in the case of _POSIX_SOURCE, which is predefined and required
8967
25957
# on some systems where configure will not decide to define it.
8968
cat >> conftest.vals <<\EOF
8969
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8972
# Break up conftest.vals because some shells have a limit on
8973
# the size of here documents, and old seds have small limits too.
8978
ac_lines=`grep -c . conftest.vals`
8979
# grep -c gives empty output for an empty file on some AIX systems.
8980
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8981
# Write a limited-size here document to conftest.frag.
8982
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8983
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8985
sed -f conftest.frag conftest.in > conftest.out
8987
mv conftest.out conftest.in
8989
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8991
mv conftest.tail conftest.vals
8995
cat >> $CONFIG_STATUS <<\EOF
8996
rm -f conftest.frag conftest.h
8997
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8998
cat conftest.in >> conftest.h
9000
if cmp -s $ac_file conftest.h 2>/dev/null; then
9001
echo "$ac_file is unchanged"
9004
# Remove last slash and all that follows it. Not all systems have dirname.
9005
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9006
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9007
# The file is in a subdirectory.
9008
test ! -d "$ac_dir" && mkdir "$ac_dir"
25958
cat >>conftest.undefs <<\_ACEOF
25959
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25962
# Break up conftest.defines because some shells have a limit on the size
25963
# of here documents, and old seds have small limits too (100 cmds).
25964
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25965
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25966
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25967
echo ' :' >>$CONFIG_STATUS
25968
rm -f conftest.tail
25969
while grep . conftest.defines >/dev/null
25971
# Write a limited-size here document to $tmp/defines.sed.
25972
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25973
# Speed up: don't consider the non `#define' lines.
25974
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25975
# Work around the forget-to-reset-the-flag bug.
25976
echo 't clr' >>$CONFIG_STATUS
25977
echo ': clr' >>$CONFIG_STATUS
25978
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25980
sed -f $tmp/defines.sed $tmp/in >$tmp/out
25982
mv $tmp/out $tmp/in
25984
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25985
rm -f conftest.defines
25986
mv conftest.tail conftest.defines
25988
rm -f conftest.defines
25989
echo ' fi # grep' >>$CONFIG_STATUS
25990
echo >>$CONFIG_STATUS
25992
# Break up conftest.undefs because some shells have a limit on the size
25993
# of here documents, and old seds have small limits too (100 cmds).
25994
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25995
rm -f conftest.tail
25996
while grep . conftest.undefs >/dev/null
25998
# Write a limited-size here document to $tmp/undefs.sed.
25999
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26000
# Speed up: don't consider the non `#undef'
26001
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26002
# Work around the forget-to-reset-the-flag bug.
26003
echo 't clr' >>$CONFIG_STATUS
26004
echo ': clr' >>$CONFIG_STATUS
26005
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26007
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26009
mv $tmp/out $tmp/in
26011
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26012
rm -f conftest.undefs
26013
mv conftest.tail conftest.undefs
26015
rm -f conftest.undefs
26017
cat >>$CONFIG_STATUS <<\_ACEOF
26018
# Let's still pretend it is `configure' which instantiates (i.e., don't
26019
# use $as_me), people would be surprised to read:
26020
# /* config.h. Generated by config.status. */
26021
if test x"$ac_file" = x-; then
26022
echo "/* Generated by configure. */" >$tmp/config.h
26024
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26026
cat $tmp/in >>$tmp/config.h
26028
if test x"$ac_file" != x-; then
26029
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26030
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26031
echo "$as_me: $ac_file is unchanged" >&6;}
26033
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26034
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26035
X"$ac_file" : 'X\(//\)[^/]' \| \
26036
X"$ac_file" : 'X\(//\)$' \| \
26037
X"$ac_file" : 'X\(/\)' \| \
26038
. : '\(.\)' 2>/dev/null ||
26040
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26041
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26042
/^X\(\/\/\)$/{ s//\1/; q; }
26043
/^X\(\/\).*/{ s//\1/; q; }
26045
{ if $as_mkdir_p; then
26050
while test ! -d "$as_dir"; do
26051
as_dirs="$as_dir $as_dirs"
26052
as_dir=`(dirname "$as_dir") 2>/dev/null ||
26053
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26054
X"$as_dir" : 'X\(//\)[^/]' \| \
26055
X"$as_dir" : 'X\(//\)$' \| \
26056
X"$as_dir" : 'X\(/\)' \| \
26057
. : '\(.\)' 2>/dev/null ||
26059
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26060
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26061
/^X\(\/\/\)$/{ s//\1/; q; }
26062
/^X\(\/\).*/{ s//\1/; q; }
26065
test ! -n "$as_dirs" || mkdir $as_dirs
26066
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26067
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26068
{ (exit 1); exit 1; }; }; }
26071
mv $tmp/config.h $ac_file
9011
mv conftest.h $ac_file
26075
rm -f $tmp/config.h
9016
cat >> $CONFIG_STATUS <<EOF
9019
cat >> $CONFIG_STATUS <<\EOF
26079
cat >>$CONFIG_STATUS <<\_ACEOF
26082
# CONFIG_COMMANDS section.
26084
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26085
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26086
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26087
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26088
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26089
X"$ac_dest" : 'X\(//\)[^/]' \| \
26090
X"$ac_dest" : 'X\(//\)$' \| \
26091
X"$ac_dest" : 'X\(/\)' \| \
26092
. : '\(.\)' 2>/dev/null ||
26094
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26095
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26096
/^X\(\/\/\)$/{ s//\1/; q; }
26097
/^X\(\/\).*/{ s//\1/; q; }
26101
if test "$ac_dir" != .; then
26102
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26103
# A "../" for each directory in $ac_dir_suffix.
26104
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26106
ac_dir_suffix= ac_top_builddir=
26110
.) # No --srcdir option. We are building in place.
26112
if test -z "$ac_top_builddir"; then
26115
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26117
[\\/]* | ?:[\\/]* ) # Absolute path.
26118
ac_srcdir=$srcdir$ac_dir_suffix;
26119
ac_top_srcdir=$srcdir ;;
26120
*) # Relative path.
26121
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26122
ac_top_srcdir=$ac_top_builddir$srcdir ;;
26124
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
26126
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
26127
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
26128
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
26129
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
26132
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26133
echo "$as_me: executing $ac_dest commands" >&6;}
26135
default ) rm -f rules.mk ;;
26140
cat >>$CONFIG_STATUS <<\_ACEOF
26142
{ (exit 0); exit 0; }
9023
26144
chmod +x $CONFIG_STATUS
9024
rm -fr confdefs* $ac_clean_files
9025
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
26145
ac_clean_files=$ac_clean_files_save
26148
# configure is writing to config.log, and then calls config.status.
26149
# config.status does its own redirection, appending to config.log.
26150
# Unfortunately, on DOS this fails, as config.log is still kept open
26151
# by configure, so config.status won't be able to write to it; its
26152
# output is simply discarded. So we exec the FD to /dev/null,
26153
# effectively closing config.log, so it can be properly (re)opened and
26154
# appended to by config.status. When coming back to configure, we
26155
# need to make the FD available again.
26156
if test "$no_create" != yes; then
26158
ac_config_status_args=
26159
test "$silent" = yes &&
26160
ac_config_status_args="$ac_config_status_args --quiet"
26162
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26164
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
26165
# would make configure fail if this is the last instruction.
26166
$ac_cs_success || { (exit 1); exit 1; }
9028
26170
tem=`make --version -f /dev/null 2>&1 | grep GNU`
9029
26171
if test "x$tem" = "x"; then
9030
echo "configure: warning: You need to use GNU Make when compiling" 1>&2
26172
{ echo "$as_me:$LINENO: WARNING: You need to use GNU Make when compiling" >&5
26173
echo "$as_me: WARNING: You need to use GNU Make when compiling" >&2;}