2818
2672
- additional_libdir="$withval/$acl_libdirstem"
2821
+dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
2822
+dnl the libraries corresponding to explicit and implicit dependencies.
2823
+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
2824
+dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
2825
+dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
2826
+AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
2828
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2829
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
2830
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
2831
+ dnl Autoconf >= 2.61 supports dots in --with options.
2832
+ define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
2833
+ dnl By default, look in $includedir and $libdir.
2834
+ use_additional=yes
2835
+ AC_LIB_WITH_FINAL_PREFIX([
2836
+ eval additional_includedir=\"$includedir\"
2837
+ eval additional_libdir=\"$libdir\"
2839
+ AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
2840
+[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
2841
+ --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
2843
+ if test "X$withval" = "Xno"; then
2846
+ if test "X$withval" = "X"; then
2847
+ AC_LIB_WITH_FINAL_PREFIX([
2848
+ eval additional_includedir=\"$includedir\"
2849
+ eval additional_libdir=\"$libdir\"
2852
+ additional_includedir="$withval/include"
2853
+ additional_libdir="$withval/$acl_libdirstem"
2857
dnl Search the library and its dependencies in $additional_libdir and
2858
dnl $LDFLAGS. Using breadth-first-seach.
2859
@@ -2633,7 +1643,7 @@
2861
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2863
-# serial 52 AC_PROG_LIBTOOL
2864
+# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
2867
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2868
@@ -4335,6 +3345,18 @@
2869
dynamic_linker='GNU/Linux ld.so'
2873
+ version_type=linux
2874
+ need_lib_prefix=no
2876
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2877
+ soname_spec='${libname}${release}${shared_ext}$major'
2878
+ shlibpath_var=LD_LIBRARY_PATH
2879
+ shlibpath_overrides_runpath=no
2880
+ hardcode_into_libs=yes
2881
+ dynamic_linker='NetBSD ld.elf_so'
2887
@@ -5116,7 +4138,7 @@
2888
lt_cv_deplibs_check_method=pass_all
2892
+netbsd* | netbsdelf*-gnu)
2893
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2894
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2896
@@ -6123,7 +5145,7 @@
2901
+ netbsd* | netbsdelf*-gnu)
2902
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2903
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2905
@@ -6953,2893 +5975,3893 @@
2906
_LT_AC_TAGVAR(exclude_expsyms, $1) \
2907
_LT_AC_TAGVAR(include_expsyms, $1); do
2910
- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
2911
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
2912
- _LT_AC_TAGVAR(archive_cmds, $1) | \
2913
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
2914
- _LT_AC_TAGVAR(module_cmds, $1) | \
2915
- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
2916
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
2917
- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
2918
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
2919
- postinstall_cmds | postuninstall_cmds | \
2920
- old_postinstall_cmds | old_postuninstall_cmds | \
2921
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2922
- # Double-quote double-evaled strings.
2923
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
2926
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
2931
+ _LT_AC_TAGVAR(old_archive_cmds, $1) | \
2932
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
2933
+ _LT_AC_TAGVAR(archive_cmds, $1) | \
2934
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
2935
+ _LT_AC_TAGVAR(module_cmds, $1) | \
2936
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
2937
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
2938
+ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
2939
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
2940
+ postinstall_cmds | postuninstall_cmds | \
2941
+ old_postinstall_cmds | old_postuninstall_cmds | \
2942
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2943
+ # Double-quote double-evaled strings.
2944
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
2947
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
2953
+ *'\[$]0 --fallback-echo"')
2954
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
2959
+ [cfgfile="${ofile}T"
2960
+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
2962
+ AC_MSG_NOTICE([creating $ofile])],
2963
+ [cfgfile="$ofile"])
2965
+ cat <<__EOF__ >> "$cfgfile"
2969
+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2970
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2971
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2973
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
2974
+# Free Software Foundation, Inc.
2976
+# This file is part of GNU Libtool:
2977
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2979
+# This program is free software; you can redistribute it and/or modify
2980
+# it under the terms of the GNU General Public License as published by
2981
+# the Free Software Foundation; either version 2 of the License, or
2982
+# (at your option) any later version.
2984
+# This program is distributed in the hope that it will be useful, but
2985
+# WITHOUT ANY WARRANTY; without even the implied warranty of
2986
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2987
+# General Public License for more details.
2989
+# You should have received a copy of the GNU General Public License
2990
+# along with this program; if not, write to the Free Software
2991
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2993
+# As a special exception to the GNU General Public License, if you
2994
+# distribute this file as part of a program that contains a
2995
+# configuration script generated by Autoconf, you may include it under
2996
+# the same distribution terms that you use for the rest of that program.
2998
+# A sed program that does not truncate output.
3001
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3002
+Xsed="$SED -e 1s/^X//"
3004
+# The HP-UX ksh and POSIX shell print the target directory to stdout
3005
+# if CDPATH is set.
3006
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3008
+# The names of the tagged configurations supported by this script.
3011
+# ### BEGIN LIBTOOL CONFIG],
3012
+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
3014
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3016
+# Shell to use when invoking shell scripts.
3019
+# Whether or not to build shared libraries.
3020
+build_libtool_libs=$enable_shared
3022
+# Whether or not to build static libraries.
3023
+build_old_libs=$enable_static
3025
+# Whether or not to add -lc for building shared libraries.
3026
+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3028
+# Whether or not to disallow shared libs when runtime libs are static
3029
+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
3031
+# Whether or not to optimize for fast installation.
3032
+fast_install=$enable_fast_install
3035
+host_alias=$host_alias
3039
+# The build system.
3040
+build_alias=$build_alias
3044
+# An echo program that does not interpret backslashes.
3049
+AR_FLAGS=$lt_AR_FLAGS
3054
+# LTCC compiler flags.
3055
+LTCFLAGS=$lt_LTCFLAGS
3057
+# A language-specific compiler.
3058
+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3060
+# Is the compiler the GNU C compiler?
3061
+with_gcc=$_LT_AC_TAGVAR(GCC, $1)
3066
+# The linker used to build libraries.
3067
+LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
3069
+# Whether we need hard or soft links.
3072
+# A BSD-compatible nm program.
3075
+# A symbol stripping program
3078
+# Used to examine libraries when file_magic_cmd begins "file"
3079
+MAGIC_CMD=$MAGIC_CMD
3081
+# Used on cygwin: DLL creation program.
3084
+# Used on cygwin: object dumper.
3087
+# Used on cygwin: assembler.
3090
+# The name of the directory that contains temporary libtool files.
3093
+# How to create reloadable object files.
3094
+reload_flag=$lt_reload_flag
3095
+reload_cmds=$lt_reload_cmds
3097
+# How to pass a linker flag through the compiler.
3098
+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
3100
+# Object file suffix (normally "o").
3101
+objext="$ac_objext"
3103
+# Old archive suffix (normally "a").
3106
+# Shared library suffix (normally ".so").
3107
+shrext_cmds='$shrext_cmds'
3109
+# Executable file suffix (normally "").
3112
+# Additional compiler flags for building library objects.
3113
+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
3116
+# What is the maximum length of a command?
3117
+max_cmd_len=$lt_cv_sys_max_cmd_len
3119
+# Does compiler simultaneously support -c and -o options?
3120
+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
3122
+# Must we lock files when doing compilation?
3123
+need_locks=$lt_need_locks
3125
+# Do we need the lib prefix for modules?
3126
+need_lib_prefix=$need_lib_prefix
3128
+# Do we need a version for libraries?
3129
+need_version=$need_version
3131
+# Whether dlopen is supported.
3132
+dlopen_support=$enable_dlopen
3134
+# Whether dlopen of programs is supported.
3135
+dlopen_self=$enable_dlopen_self
3137
+# Whether dlopen of statically linked programs is supported.
3138
+dlopen_self_static=$enable_dlopen_self_static
3140
+# Compiler flag to prevent dynamic linking.
3141
+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
3143
+# Compiler flag to turn off builtin functions.
3144
+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
3146
+# Compiler flag to allow reflexive dlopens.
3147
+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
3149
+# Compiler flag to generate shared objects directly from archives.
3150
+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
3152
+# Compiler flag to generate thread-safe objects.
3153
+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
3155
+# Library versioning type.
3156
+version_type=$version_type
3158
+# Format of library name prefix.
3159
+libname_spec=$lt_libname_spec
3161
+# List of archive names. First name is the real one, the rest are links.
3162
+# The last name is the one that the linker finds with -lNAME.
3163
+library_names_spec=$lt_library_names_spec
3165
+# The coded name of the library, if different from the real name.
3166
+soname_spec=$lt_soname_spec
3168
+# Commands used to build and install an old-style archive.
3170
+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
3171
+old_postinstall_cmds=$lt_old_postinstall_cmds
3172
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
3174
+# Create an old-style archive from a shared archive.
3175
+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
3177
+# Create a temporary old-style archive to link instead of a shared archive.
3178
+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
3180
+# Commands used to build and install a shared archive.
3181
+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
3182
+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
3183
+postinstall_cmds=$lt_postinstall_cmds
3184
+postuninstall_cmds=$lt_postuninstall_cmds
3186
+# Commands used to build a loadable module (assumed same as above if empty)
3187
+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
3188
+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
3191
- *'\[$]0 --fallback-echo"')
3192
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
3195
+# Commands to strip libraries.
3196
+old_striplib=$lt_old_striplib
3197
+striplib=$lt_striplib
3200
- [cfgfile="${ofile}T"
3201
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3203
- AC_MSG_NOTICE([creating $ofile])],
3204
- [cfgfile="$ofile"])
3205
+# Dependencies to place before the objects being linked to create a
3207
+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
3209
- cat <<__EOF__ >> "$cfgfile"
3212
+# Dependencies to place after the objects being linked to create a
3214
+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
3216
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3217
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3218
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3220
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3221
-# Free Software Foundation, Inc.
3223
-# This file is part of GNU Libtool:
3224
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3226
-# This program is free software; you can redistribute it and/or modify
3227
-# it under the terms of the GNU General Public License as published by
3228
-# the Free Software Foundation; either version 2 of the License, or
3229
-# (at your option) any later version.
3231
-# This program is distributed in the hope that it will be useful, but
3232
-# WITHOUT ANY WARRANTY; without even the implied warranty of
3233
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3234
-# General Public License for more details.
2676
- dnl Search the library and its dependencies in $additional_libdir and
2677
- dnl $LDFLAGS. Using breadth-first-seach.
2681
- LIB[]NAME[]_PREFIX=
2684
- names_already_handled=
2685
- names_next_round='$1 $2'
2686
- while test -n "$names_next_round"; do
2687
- names_this_round="$names_next_round"
2689
- for name in $names_this_round; do
2691
- for n in $names_already_handled; do
2692
- if test "$n" = "$name"; then
2693
- already_handled=yes
2697
- if test -z "$already_handled"; then
2698
- names_already_handled="$names_already_handled $name"
2699
- dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
2700
- dnl or AC_LIB_HAVE_LINKFLAGS call.
2701
- uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
2702
- eval value=\"\$HAVE_LIB$uppername\"
2703
- if test -n "$value"; then
2704
- if test "$value" = yes; then
2705
- eval value=\"\$LIB$uppername\"
2706
- test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
2707
- eval value=\"\$LTLIB$uppername\"
2708
- test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
2710
- dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
2711
- dnl that this library doesn't exist. So just drop it.
2715
- dnl Search the library lib$name in $additional_libdir and $LDFLAGS
2716
- dnl and the already constructed $LIBNAME/$LTLIBNAME.
2721
- eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
2722
- if test -n "$acl_shlibext"; then
2723
- shrext=".$acl_shlibext" # typically: shrext=.so
2727
- if test $use_additional = yes; then
2728
- dir="$additional_libdir"
2729
- dnl The same code as in the loop below:
2730
- dnl First look for a shared library.
2731
- if test -n "$acl_shlibext"; then
2732
- if test -f "$dir/$libname$shrext"; then
2734
- found_so="$dir/$libname$shrext"
2736
- if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2737
- ver=`(cd "$dir" && \
2738
- for f in "$libname$shrext".*; do echo "$f"; done \
2739
- | sed -e "s,^$libname$shrext\\\\.,," \
2740
- | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2741
- | sed 1q ) 2>/dev/null`
2742
- if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2744
- found_so="$dir/$libname$shrext.$ver"
2747
- eval library_names=\"$acl_library_names_spec\"
2748
- for f in $library_names; do
2749
- if test -f "$dir/$f"; then
2751
- found_so="$dir/$f"
2758
- dnl Then look for a static library.
2759
- if test "X$found_dir" = "X"; then
2760
- if test -f "$dir/$libname.$acl_libext"; then
2762
- found_a="$dir/$libname.$acl_libext"
2765
- if test "X$found_dir" != "X"; then
2766
- if test -f "$dir/$libname.la"; then
2767
- found_la="$dir/$libname.la"
2771
- if test "X$found_dir" = "X"; then
2772
- for x in $LDFLAGS $LTLIB[]NAME; do
2773
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2776
- dir=`echo "X$x" | sed -e 's/^X-L//'`
2777
- dnl First look for a shared library.
2778
- if test -n "$acl_shlibext"; then
2779
- if test -f "$dir/$libname$shrext"; then
2781
- found_so="$dir/$libname$shrext"
2783
- if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2784
- ver=`(cd "$dir" && \
2785
- for f in "$libname$shrext".*; do echo "$f"; done \
2786
- | sed -e "s,^$libname$shrext\\\\.,," \
2787
- | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2788
- | sed 1q ) 2>/dev/null`
2789
- if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2791
- found_so="$dir/$libname$shrext.$ver"
2794
- eval library_names=\"$acl_library_names_spec\"
2795
- for f in $library_names; do
2796
- if test -f "$dir/$f"; then
2798
- found_so="$dir/$f"
2805
- dnl Then look for a static library.
2806
- if test "X$found_dir" = "X"; then
2807
- if test -f "$dir/$libname.$acl_libext"; then
2809
- found_a="$dir/$libname.$acl_libext"
2812
- if test "X$found_dir" != "X"; then
2813
- if test -f "$dir/$libname.la"; then
2814
- found_la="$dir/$libname.la"
2819
- if test "X$found_dir" != "X"; then
2824
- if test "X$found_dir" != "X"; then
2825
- dnl Found the library.
2826
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
2827
- if test "X$found_so" != "X"; then
2828
- dnl Linking with a shared library. We attempt to hardcode its
2829
- dnl directory into the executable's runpath, unless it's the
2830
- dnl standard /usr/lib.
2831
- if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
2832
- dnl No hardcoding is needed.
2833
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2835
- dnl Use an explicit option to hardcode DIR into the resulting
2837
- dnl Potentially add DIR to ltrpathdirs.
2838
- dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
2840
- for x in $ltrpathdirs; do
2841
- if test "X$x" = "X$found_dir"; then
2846
- if test -z "$haveit"; then
2847
- ltrpathdirs="$ltrpathdirs $found_dir"
2849
- dnl The hardcoding into $LIBNAME is system dependent.
2850
- if test "$acl_hardcode_direct" = yes; then
2851
- dnl Using DIR/libNAME.so during linking hardcodes DIR into the
2852
- dnl resulting binary.
2853
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2855
- if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2856
- dnl Use an explicit option to hardcode DIR into the resulting
2858
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2859
- dnl Potentially add DIR to rpathdirs.
2860
- dnl The rpathdirs will be appended to $LIBNAME at the end.
2862
- for x in $rpathdirs; do
2863
- if test "X$x" = "X$found_dir"; then
2868
- if test -z "$haveit"; then
2869
- rpathdirs="$rpathdirs $found_dir"
2872
- dnl Rely on "-L$found_dir".
2873
- dnl But don't add it if it's already contained in the LDFLAGS
2874
- dnl or the already constructed $LIBNAME
2876
- for x in $LDFLAGS $LIB[]NAME; do
2877
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2878
- if test "X$x" = "X-L$found_dir"; then
2883
- if test -z "$haveit"; then
2884
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
2886
- if test "$acl_hardcode_minus_L" != no; then
2887
- dnl FIXME: Not sure whether we should use
2888
- dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2890
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2892
- dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
2893
- dnl here, because this doesn't fit in flags passed to the
2894
- dnl compiler. So give up. No hardcoding. This affects only
2895
- dnl very old systems.
2896
- dnl FIXME: Not sure whether we should use
2897
- dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2899
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
2905
- if test "X$found_a" != "X"; then
2906
- dnl Linking with a static library.
2907
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
2909
- dnl We shouldn't come here, but anyway it's good to have a
2911
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
2914
- dnl Assume the include files are nearby.
2915
- additional_includedir=
2916
- case "$found_dir" in
2917
- */$acl_libdirstem | */$acl_libdirstem/)
2918
- basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
2919
- LIB[]NAME[]_PREFIX="$basedir"
2920
- additional_includedir="$basedir/include"
2923
- if test "X$additional_includedir" != "X"; then
2924
- dnl Potentially add $additional_includedir to $INCNAME.
2925
- dnl But don't add it
2926
- dnl 1. if it's the standard /usr/include,
2927
- dnl 2. if it's /usr/local/include and we are using GCC on Linux,
2928
- dnl 3. if it's already present in $CPPFLAGS or the already
2929
- dnl constructed $INCNAME,
2930
- dnl 4. if it doesn't exist as a directory.
2931
- if test "X$additional_includedir" != "X/usr/include"; then
2933
- if test "X$additional_includedir" = "X/usr/local/include"; then
2934
- if test -n "$GCC"; then
2936
- linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2940
- if test -z "$haveit"; then
2941
- for x in $CPPFLAGS $INC[]NAME; do
2942
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2943
- if test "X$x" = "X-I$additional_includedir"; then
2948
- if test -z "$haveit"; then
2949
- if test -d "$additional_includedir"; then
2950
- dnl Really add $additional_includedir to $INCNAME.
2951
- INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
2957
- dnl Look for dependencies.
2958
- if test -n "$found_la"; then
2959
- dnl Read the .la file. It defines the variables
2960
- dnl dlname, library_names, old_library, dependency_libs, current,
2961
- dnl age, revision, installed, dlopen, dlpreopen, libdir.
2962
- save_libdir="$libdir"
2963
- case "$found_la" in
2964
- */* | *\\*) . "$found_la" ;;
2965
- *) . "./$found_la" ;;
2967
- libdir="$save_libdir"
2968
- dnl We use only dependency_libs.
2969
- for dep in $dependency_libs; do
2972
- additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
2973
- dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
2974
- dnl But don't add it
2975
- dnl 1. if it's the standard /usr/lib,
2976
- dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
2977
- dnl 3. if it's already present in $LDFLAGS or the already
2978
- dnl constructed $LIBNAME,
2979
- dnl 4. if it doesn't exist as a directory.
2980
- if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
2982
- if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
2983
- if test -n "$GCC"; then
2985
- linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2989
- if test -z "$haveit"; then
2991
- for x in $LDFLAGS $LIB[]NAME; do
2992
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2993
- if test "X$x" = "X-L$additional_libdir"; then
2998
- if test -z "$haveit"; then
2999
- if test -d "$additional_libdir"; then
3000
- dnl Really add $additional_libdir to $LIBNAME.
3001
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
3005
- for x in $LDFLAGS $LTLIB[]NAME; do
3006
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
3007
- if test "X$x" = "X-L$additional_libdir"; then
3012
- if test -z "$haveit"; then
3013
- if test -d "$additional_libdir"; then
3014
- dnl Really add $additional_libdir to $LTLIBNAME.
3015
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
3022
- dir=`echo "X$dep" | sed -e 's/^X-R//'`
3023
- if test "$enable_rpath" != no; then
3024
- dnl Potentially add DIR to rpathdirs.
3025
- dnl The rpathdirs will be appended to $LIBNAME at the end.
3027
- for x in $rpathdirs; do
3028
- if test "X$x" = "X$dir"; then
3033
- if test -z "$haveit"; then
3034
- rpathdirs="$rpathdirs $dir"
3036
- dnl Potentially add DIR to ltrpathdirs.
3037
- dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
3039
- for x in $ltrpathdirs; do
3040
- if test "X$x" = "X$dir"; then
3045
- if test -z "$haveit"; then
3046
- ltrpathdirs="$ltrpathdirs $dir"
3051
- dnl Handle this in the next round.
3052
- names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3055
- dnl Handle this in the next round. Throw away the .la's
3056
- dnl directory; it is already contained in a preceding -L
3058
- names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3061
- dnl Most likely an immediate library name.
3062
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
3063
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
3069
- dnl Didn't find the library; assume it is in the system directories
3070
- dnl known to the linker and runtime loader. (All the system
3071
- dnl directories known to the linker should also be known to the
3072
- dnl runtime loader, otherwise the system is severely misconfigured.)
3073
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
3074
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
3080
- if test "X$rpathdirs" != "X"; then
3081
- if test -n "$acl_hardcode_libdir_separator"; then
3082
- dnl Weird platform: only the last -rpath option counts, the user must
3083
- dnl pass all path elements in one option. We can arrange that for a
3084
- dnl single library, but not when more than one $LIBNAMEs are used.
3086
- for found_dir in $rpathdirs; do
3087
- alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
3089
- dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
3090
- acl_save_libdir="$libdir"
3092
- eval flag=\"$acl_hardcode_libdir_flag_spec\"
3093
- libdir="$acl_save_libdir"
3094
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
3096
- dnl The -rpath options are cumulative.
3097
- for found_dir in $rpathdirs; do
3098
- acl_save_libdir="$libdir"
3099
- libdir="$found_dir"
3100
- eval flag=\"$acl_hardcode_libdir_flag_spec\"
3101
- libdir="$acl_save_libdir"
3102
- LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
3106
- if test "X$ltrpathdirs" != "X"; then
3107
- dnl When using libtool, the option that works for both libraries and
3108
- dnl executables is -R. The -R options are cumulative.
3109
- for found_dir in $ltrpathdirs; do
3110
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
3115
-dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
3116
-dnl unless already present in VAR.
3117
-dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
3118
-dnl contains two or three consecutive elements that belong together.
3119
-AC_DEFUN([AC_LIB_APPENDTOVAR],
3121
- for element in [$2]; do
3123
- for x in $[$1]; do
3124
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
3125
- if test "X$x" = "X$element"; then
3130
- if test -z "$haveit"; then
3131
- [$1]="${[$1]}${[$1]:+ }$element"
3136
-dnl For those cases where a variable contains several -L and -l options
3137
-dnl referring to unknown libraries and directories, this macro determines the
3138
-dnl necessary additional linker options for the runtime path.
3139
-dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
3140
-dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
3141
-dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
3142
-dnl otherwise linking without libtool is assumed.
3143
-AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
3145
- AC_REQUIRE([AC_LIB_RPATH])
3146
- AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
3148
- if test "$enable_rpath" != no; then
3149
- if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
3150
- dnl Use an explicit option to hardcode directories into the resulting
3155
- if test -n "$next"; then
3157
- dnl No need to hardcode the standard /usr/lib.
3158
- if test "X$dir" != "X/usr/$acl_libdirstem"; then
3159
- rpathdirs="$rpathdirs $dir"
3165
- -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
3166
- dnl No need to hardcode the standard /usr/lib.
3167
- if test "X$dir" != "X/usr/$acl_libdirstem"; then
3168
- rpathdirs="$rpathdirs $dir"
3175
- if test "X$rpathdirs" != "X"; then
3176
- if test -n ""$3""; then
3177
- dnl libtool is used for linking. Use -R options.
3178
- for dir in $rpathdirs; do
3179
- $1="${$1}${$1:+ }-R$dir"
3182
- dnl The linker is used for linking directly.
3183
- if test -n "$acl_hardcode_libdir_separator"; then
3184
- dnl Weird platform: only the last -rpath option counts, the user
3185
- dnl must pass all path elements in one option.
3187
- for dir in $rpathdirs; do
3188
- alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
3190
- acl_save_libdir="$libdir"
3192
- eval flag=\"$acl_hardcode_libdir_flag_spec\"
3193
- libdir="$acl_save_libdir"
3196
- dnl The -rpath options are cumulative.
3197
- for dir in $rpathdirs; do
3198
- acl_save_libdir="$libdir"
3200
- eval flag=\"$acl_hardcode_libdir_flag_spec\"
3201
- libdir="$acl_save_libdir"
3202
- $1="${$1}${$1:+ }$flag"
3212
-# lib-prefix.m4 serial 5 (gettext-0.15)
3213
-dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
3214
-dnl This file is free software; the Free Software Foundation
3215
-dnl gives unlimited permission to copy and/or distribute it,
3216
-dnl with or without modifications, as long as this notice is preserved.
3218
-dnl From Bruno Haible.
3220
-dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
3221
-dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
3222
-dnl require excessive bracketing.
3223
-ifdef([AC_HELP_STRING],
3224
-[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
3225
-[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
3227
-dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
3228
-dnl to access previously installed libraries. The basic assumption is that
3229
-dnl a user will want packages to use other packages he previously installed
3230
-dnl with the same --prefix option.
3231
-dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
3232
-dnl libraries, but is otherwise very convenient.
3233
-AC_DEFUN([AC_LIB_PREFIX],
3235
- AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
3236
- AC_REQUIRE([AC_PROG_CC])
3237
- AC_REQUIRE([AC_CANONICAL_HOST])
3238
- AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
3239
- AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
3240
- dnl By default, look in $includedir and $libdir.
3241
- use_additional=yes
3242
- AC_LIB_WITH_FINAL_PREFIX([
3243
- eval additional_includedir=\"$includedir\"
3244
- eval additional_libdir=\"$libdir\"
3246
- AC_LIB_ARG_WITH([lib-prefix],
3247
-[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
3248
- --without-lib-prefix don't search for libraries in includedir and libdir],
3250
- if test "X$withval" = "Xno"; then
3253
- if test "X$withval" = "X"; then
3254
- AC_LIB_WITH_FINAL_PREFIX([
3255
- eval additional_includedir=\"$includedir\"
3256
- eval additional_libdir=\"$libdir\"
3259
- additional_includedir="$withval/include"
3260
- additional_libdir="$withval/$acl_libdirstem"
3264
- if test $use_additional = yes; then
3265
- dnl Potentially add $additional_includedir to $CPPFLAGS.
3266
- dnl But don't add it
3267
- dnl 1. if it's the standard /usr/include,
3268
- dnl 2. if it's already present in $CPPFLAGS,
3269
- dnl 3. if it's /usr/local/include and we are using GCC on Linux,
3270
- dnl 4. if it doesn't exist as a directory.
3271
- if test "X$additional_includedir" != "X/usr/include"; then
3273
- for x in $CPPFLAGS; do
3274
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
3275
- if test "X$x" = "X-I$additional_includedir"; then
3280
- if test -z "$haveit"; then
3281
- if test "X$additional_includedir" = "X/usr/local/include"; then
3282
- if test -n "$GCC"; then
3284
- linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3288
- if test -z "$haveit"; then
3289
- if test -d "$additional_includedir"; then
3290
- dnl Really add $additional_includedir to $CPPFLAGS.
3291
- CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
3296
- dnl Potentially add $additional_libdir to $LDFLAGS.
3297
- dnl But don't add it
3298
- dnl 1. if it's the standard /usr/lib,
3299
- dnl 2. if it's already present in $LDFLAGS,
3300
- dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
3301
- dnl 4. if it doesn't exist as a directory.
3302
- if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
3304
- for x in $LDFLAGS; do
3305
- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
3306
- if test "X$x" = "X-L$additional_libdir"; then
3311
- if test -z "$haveit"; then
3312
- if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
3313
- if test -n "$GCC"; then
3315
- linux*) haveit=yes;;
3319
- if test -z "$haveit"; then
3320
- if test -d "$additional_libdir"; then
3321
- dnl Really add $additional_libdir to $LDFLAGS.
3322
- LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
3330
-dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
3331
-dnl acl_final_exec_prefix, containing the values to which $prefix and
3332
-dnl $exec_prefix will expand at the end of the configure script.
3333
-AC_DEFUN([AC_LIB_PREPARE_PREFIX],
3335
- dnl Unfortunately, prefix and exec_prefix get only finally determined
3336
- dnl at the end of configure.
3337
- if test "X$prefix" = "XNONE"; then
3338
- acl_final_prefix="$ac_default_prefix"
3340
- acl_final_prefix="$prefix"
3342
- if test "X$exec_prefix" = "XNONE"; then
3343
- acl_final_exec_prefix='${prefix}'
3345
- acl_final_exec_prefix="$exec_prefix"
3347
- acl_save_prefix="$prefix"
3348
- prefix="$acl_final_prefix"
3349
- eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3350
- prefix="$acl_save_prefix"
3353
-dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
3354
-dnl variables prefix and exec_prefix bound to the values they will have
3355
-dnl at the end of the configure script.
3356
-AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
3358
- acl_save_prefix="$prefix"
3359
- prefix="$acl_final_prefix"
3360
- acl_save_exec_prefix="$exec_prefix"
3361
- exec_prefix="$acl_final_exec_prefix"
3363
- exec_prefix="$acl_save_exec_prefix"
3364
- prefix="$acl_save_prefix"
3367
-dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
3368
-dnl the basename of the libdir, either "lib" or "lib64".
3369
-AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
3371
- dnl There is no formal standard regarding lib and lib64. The current
3372
- dnl practice is that on a system supporting 32-bit and 64-bit instruction
3373
- dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
3374
- dnl libraries go under $prefix/lib. We determine the compiler's default
3375
- dnl mode by looking at the compiler's library search path. If at least
3376
- dnl of its elements ends in /lib64 or points to a directory whose absolute
3377
- dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
3378
- dnl default, namely "lib".
3379
- acl_libdirstem=lib
3380
- searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3381
- if test -n "$searchpath"; then
3382
- acl_save_IFS="${IFS= }"; IFS=":"
3383
- for searchdir in $searchpath; do
3384
- if test -d "$searchdir"; then
3385
- case "$searchdir" in
3386
- */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3387
- *) searchdir=`cd "$searchdir" && pwd`
3388
- case "$searchdir" in
3389
- */lib64 ) acl_libdirstem=lib64 ;;
3394
- IFS="$acl_save_IFS"
3398
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3400
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3401
-# 2006, 2007, 2008 Free Software Foundation, Inc.
3402
-# Written by Gordon Matzigkeit, 1996
3404
-# This file is free software; the Free Software Foundation gives
3405
-# unlimited permission to copy and/or distribute it, with or without
3406
-# modifications, as long as this notice is preserved.
3408
-m4_define([_LT_COPYING], [dnl
3409
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3410
-# 2006, 2007, 2008 Free Software Foundation, Inc.
3411
-# Written by Gordon Matzigkeit, 1996
3413
-# This file is part of GNU Libtool.
3415
-# GNU Libtool is free software; you can redistribute it and/or
3416
-# modify it under the terms of the GNU General Public License as
3417
-# published by the Free Software Foundation; either version 2 of
3418
-# the License, or (at your option) any later version.
3420
-# As a special exception to the GNU General Public License,
3421
-# if you distribute this file as part of a program or library that
3422
-# is built using GNU Libtool, you may include this file under the
3423
-# same distribution terms that you use for the rest of that program.
3425
-# GNU Libtool is distributed in the hope that it will be useful,
3426
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
3427
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3428
-# GNU General Public License for more details.
3236
3430
-# You should have received a copy of the GNU General Public License
3237
-# along with this program; if not, write to the Free Software
3238
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3240
-# As a special exception to the GNU General Public License, if you
3241
-# distribute this file as part of a program that contains a
3242
-# configuration script generated by Autoconf, you may include it under
3243
-# the same distribution terms that you use for the rest of that program.
3244
+# Dependencies to place before the objects being linked to create a
3246
+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
3248
-# A sed program that does not truncate output.
3250
+# Dependencies to place after the objects being linked to create a
3252
+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
3254
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3255
-Xsed="$SED -e 1s/^X//"
3256
+# The directories searched by this compiler when creating a shared
3258
+compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
3431
-# along with GNU Libtool; see the file COPYING. If not, a copy
3432
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
3433
-# obtained by writing to the Free Software Foundation, Inc.,
3434
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3437
-# serial 56 LT_INIT
3440
-# LT_PREREQ(VERSION)
3441
-# ------------------
3442
-# Complain and exit if this libtool version is less that VERSION.
3443
-m4_defun([LT_PREREQ],
3444
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
3446
- [m4_fatal([Libtool version $1 or higher is required],
3451
-# _LT_CHECK_BUILDDIR
3452
-# ------------------
3453
-# Complain if the absolute build directory name contains unusual characters
3454
-m4_defun([_LT_CHECK_BUILDDIR],
3457
- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
3462
-# LT_INIT([OPTIONS])
3463
-# ------------------
3464
-AC_DEFUN([LT_INIT],
3465
-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
3466
-AC_BEFORE([$0], [LT_LANG])dnl
3467
-AC_BEFORE([$0], [LT_OUTPUT])dnl
3468
-AC_BEFORE([$0], [LTDL_INIT])dnl
3469
-m4_require([_LT_CHECK_BUILDDIR])dnl
3471
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
3472
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
3473
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
3474
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
3475
-dnl unless we require an AC_DEFUNed macro:
3476
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
3477
-AC_REQUIRE([LTSUGAR_VERSION])dnl
3478
-AC_REQUIRE([LTVERSION_VERSION])dnl
3479
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
3480
-m4_require([_LT_PROG_LTMAIN])dnl
3483
-_LT_SET_OPTIONS([$0], [$1])
3485
-# This can be used to rebuild libtool when needed
3486
-LIBTOOL_DEPS="$ltmain"
3488
-# Always use our own libtool.
3489
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3490
-AC_SUBST(LIBTOOL)dnl
3494
-# Only expand once:
3495
-m4_define([LT_INIT])
3499
-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
3500
-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
3501
-dnl aclocal-1.4 backwards compatibility:
3502
-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
3503
-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
3506
-# _LT_CC_BASENAME(CC)
3507
-# -------------------
3508
-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
3509
-m4_defun([_LT_CC_BASENAME],
3510
-[for cc_temp in $1""; do
3512
- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
3513
- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
3518
-cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
3522
-# _LT_FILEUTILS_DEFAULTS
3523
-# ----------------------
3524
-# It is okay to use these file commands and assume they have been set
3525
-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
3526
-m4_defun([_LT_FILEUTILS_DEFAULTS],
3530
-])# _LT_FILEUTILS_DEFAULTS
3535
-m4_defun([_LT_SETUP],
3536
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3537
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3538
-_LT_DECL([], [host_alias], [0], [The host system])dnl
3539
-_LT_DECL([], [host], [0])dnl
3540
-_LT_DECL([], [host_os], [0])dnl
3542
-_LT_DECL([], [build_alias], [0], [The build system])dnl
3543
-_LT_DECL([], [build], [0])dnl
3544
-_LT_DECL([], [build_os], [0])dnl
3546
-AC_REQUIRE([AC_PROG_CC])dnl
3547
-AC_REQUIRE([LT_PATH_LD])dnl
3548
-AC_REQUIRE([LT_PATH_NM])dnl
3550
-AC_REQUIRE([AC_PROG_LN_S])dnl
3551
-test -z "$LN_S" && LN_S="ln -s"
3552
-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
3554
-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
3555
-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
3556
-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
3558
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3559
-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3560
-m4_require([_LT_CMD_RELOAD])dnl
3561
-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
3562
-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
3563
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
3565
-_LT_CONFIG_LIBTOOL_INIT([
3566
-# See if we are running on zsh, and set the options which allow our
3567
-# commands through without removal of \ escapes INIT.
3568
-if test -n "\${ZSH_VERSION+set}" ; then
3569
- setopt NO_GLOB_SUBST
3572
-if test -n "${ZSH_VERSION+set}" ; then
3573
- setopt NO_GLOB_SUBST
3578
-m4_require([_LT_TAG_COMPILER])dnl
3579
-_LT_PROG_ECHO_BACKSLASH
3583
- # AIX sometimes has problems with the GCC collect2 program. For some
3584
- # reason, if we set the COLLECT_NAMES environment variable, the problems
3585
- # vanish in a puff of smoke.
3586
- if test "X${COLLECT_NAMES+set}" != Xset; then
3588
- export COLLECT_NAMES
3593
-# Sed substitution that helps us do robust quoting. It backslashifies
3594
-# metacharacters that are still active within double-quoted strings.
3595
-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
3597
-# Same as above, but do not quote variable references.
3598
-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
3600
-# Sed substitution to delay expansion of an escaped shell variable in a
3601
-# double_quote_subst'ed string.
3602
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3604
-# Sed substitution to delay expansion of an escaped single quote.
3605
-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3607
-# Sed substitution to avoid accidental globbing in evaled expressions
3608
-no_glob_subst='s/\*/\\\*/g'
3610
-# Global variables:
3612
-can_build_shared=yes
3614
-# All known linkers require a `.a' archive for static linking (except MSVC,
3615
-# which needs '.lib').
3618
-with_gnu_ld="$lt_cv_prog_gnu_ld"
3621
-old_CFLAGS="$CFLAGS"
3623
-# Set sane defaults for various variables
3624
-test -z "$CC" && CC=cc
3625
-test -z "$LTCC" && LTCC=$CC
3626
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
3627
-test -z "$LD" && LD=ld
3628
-test -z "$ac_objext" && ac_objext=o
3630
-_LT_CC_BASENAME([$compiler])
3632
-# Only perform the check for file, if the check method requires it
3633
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
3634
-case $deplibs_check_method in
3636
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3642
-# Use C for the default configuration in the libtool script
3643
-LT_SUPPORTED_TAG([CC])
3645
-_LT_LANG_DEFAULT_CONFIG
3646
-_LT_CONFIG_COMMANDS
3652
-# Note that this code is called both from `configure', and `config.status'
3653
-# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
3654
-# `config.status' has no value for ac_aux_dir unless we are using Automake,
3655
-# so we pass a copy along to make sure it has a sensible value anyway.
3656
-m4_defun([_LT_PROG_LTMAIN],
3657
-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
3658
-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
3659
-ltmain="$ac_aux_dir/ltmain.sh"
3660
-])# _LT_PROG_LTMAIN
3664
-# So that we can recreate a full libtool script including additional
3665
-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3666
-# in macros and then make a single call at the end using the `libtool'
3670
-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3671
-# ----------------------------------------
3672
-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3673
-m4_define([_LT_CONFIG_LIBTOOL_INIT],
3675
- [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
3680
-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
3683
-# _LT_CONFIG_LIBTOOL([COMMANDS])
3684
-# ------------------------------
3685
-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3686
-m4_define([_LT_CONFIG_LIBTOOL],
3688
- [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
3693
-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
3696
-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3697
-# -----------------------------------------------------
3698
-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
3699
-[_LT_CONFIG_LIBTOOL([$1])
3700
-_LT_CONFIG_LIBTOOL_INIT([$2])
3704
-# _LT_FORMAT_COMMENT([COMMENT])
3705
-# -----------------------------
3706
-# Add leading comment marks to the start of each line, and a trailing
3707
-# full-stop to the whole comment if one is not present already.
3708
-m4_define([_LT_FORMAT_COMMENT],
3710
-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
3711
- [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
3718
-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3719
-# -------------------------------------------------------------------
3720
-# CONFIGNAME is the name given to the value in the libtool script.
3721
-# VARNAME is the (base) name used in the configure script.
3722
-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3723
-# VARNAME. Any other value will be used directly.
3724
-m4_define([_LT_DECL],
3725
-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
3726
- [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
3727
- [m4_ifval([$1], [$1], [$2])])
3728
- lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
3730
- [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
3731
- lt_dict_add_subkey([lt_decl_dict], [$2],
3732
- [tagged?], [m4_ifval([$5], [yes], [no])])])
3736
-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3737
-# --------------------------------------------------------
3738
-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
3741
-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3742
-# ------------------------------------------------
3743
-m4_define([lt_decl_tag_varnames],
3744
-[_lt_decl_filter([tagged?], [yes], $@)])
3747
-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3748
-# ---------------------------------------------------------
3749
-m4_define([_lt_decl_filter],
3751
- [0], [m4_fatal([$0: too few arguments: $#])],
3752
- [1], [m4_fatal([$0: too few arguments: $#: $1])],
3753
- [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
3754
- [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
3755
- [lt_dict_filter([lt_decl_dict], $@)])[]dnl
3759
-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3760
-# --------------------------------------------------
3761
-m4_define([lt_decl_quote_varnames],
3762
-[_lt_decl_filter([value], [1], $@)])
3765
-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3766
-# ---------------------------------------------------
3767
-m4_define([lt_decl_dquote_varnames],
3768
-[_lt_decl_filter([value], [2], $@)])
3771
-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3772
-# ---------------------------------------------------
3773
-m4_define([lt_decl_varnames_tagged],
3774
-[m4_assert([$# <= 2])dnl
3775
-_$0(m4_quote(m4_default([$1], [[, ]])),
3776
- m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
3777
- m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
3778
-m4_define([_lt_decl_varnames_tagged],
3779
-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
3782
-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3783
-# ------------------------------------------------
3784
-m4_define([lt_decl_all_varnames],
3785
-[_$0(m4_quote(m4_default([$1], [[, ]])),
3787
- m4_quote(lt_decl_varnames),
3788
- m4_quote(m4_shift($@))))[]dnl
3790
-m4_define([_lt_decl_all_varnames],
3791
-[lt_join($@, lt_decl_varnames_tagged([$1],
3792
- lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
3796
-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3797
-# ------------------------------------
3798
-# Quote a variable value, and forward it to `config.status' so that its
3799
-# declaration there will have the same value as in `configure'. VARNAME
3800
-# must have a single quote delimited value for this to work.
3801
-m4_define([_LT_CONFIG_STATUS_DECLARE],
3802
-[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
3805
-# _LT_CONFIG_STATUS_DECLARATIONS
3806
-# ------------------------------
3807
-# We delimit libtool config variables with single quotes, so when
3808
-# we write them to config.status, we have to be sure to quote all
3809
-# embedded single quotes properly. In configure, this macro expands
3810
-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3812
-# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
3813
-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
3814
-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
3815
- [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
3820
-# Output comment and list of tags supported by the script
3821
-m4_defun([_LT_LIBTOOL_TAGS],
3822
-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
3823
-available_tags="_LT_TAGS"dnl
3827
-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3828
-# -----------------------------------
3829
-# Extract the dictionary values for VARNAME (optionally with TAG) and
3830
-# expand to a commented shell variable setting:
3832
-# # Some comment about what VAR is for.
3833
-# visible_name=$lt_internal_name
3834
-m4_define([_LT_LIBTOOL_DECLARE],
3835
-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
3836
- [description])))[]dnl
3837
-m4_pushdef([_libtool_name],
3838
- m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
3839
-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
3840
- [0], [_libtool_name=[$]$1],
3841
- [1], [_libtool_name=$lt_[]$1],
3842
- [2], [_libtool_name=$lt_[]$1],
3843
- [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
3844
-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
3848
-# _LT_LIBTOOL_CONFIG_VARS
3849
-# -----------------------
3850
-# Produce commented declarations of non-tagged libtool config variables
3851
-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3852
-# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
3853
-# section) are produced by _LT_LIBTOOL_TAG_VARS.
3854
-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
3855
-[m4_foreach([_lt_var],
3856
- m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
3857
- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
3860
-# _LT_LIBTOOL_TAG_VARS(TAG)
3861
-# -------------------------
3862
-m4_define([_LT_LIBTOOL_TAG_VARS],
3863
-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
3864
- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
3867
-# _LT_TAGVAR(VARNAME, [TAGNAME])
3868
-# ------------------------------
3869
-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
3872
-# _LT_CONFIG_COMMANDS
3873
-# -------------------
3874
-# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
3875
-# variables for single and double quote escaping we saved from calls
3876
-# to _LT_DECL, we can put quote escaped variables declarations
3877
-# into `config.status', and then the shell code to quote escape them in
3878
-# for loops in `config.status'. Finally, any additional code accumulated
3879
-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3880
-m4_defun([_LT_CONFIG_COMMANDS],
3881
-[AC_PROVIDE_IFELSE([LT_OUTPUT],
3882
- dnl If the libtool generation code has been placed in $CONFIG_LT,
3883
- dnl instead of duplicating it all over again into config.status,
3884
- dnl then we will have config.status run $CONFIG_LT later, so it
3885
- dnl needs to know what name is stored there:
3886
- [AC_CONFIG_COMMANDS([libtool],
3887
- [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
3888
- dnl If the libtool generation code is destined for config.status,
3889
- dnl expand the accumulated commands and init code now:
3890
- [AC_CONFIG_COMMANDS([libtool],
3891
- [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
3892
-])#_LT_CONFIG_COMMANDS
3896
-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
3260
3899
-# The HP-UX ksh and POSIX shell print the target directory to stdout
3261
3900
-# if CDPATH is set.
3262
3901
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3263
+# The library search path used internally by the compiler when linking
3264
+# a shared library.
3265
+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
3267
-# The names of the tagged configurations supported by this script.
3269
+# Method to check whether dependent libraries are shared objects.
3270
+deplibs_check_method=$lt_deplibs_check_method
3272
-# ### BEGIN LIBTOOL CONFIG],
3273
-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
3274
+# Command to use when deplibs_check_method == file_magic.
3275
+file_magic_cmd=$lt_file_magic_cmd
3903
-sed_quote_subst='$sed_quote_subst'
3904
-double_quote_subst='$double_quote_subst'
3905
-delay_variable_subst='$delay_variable_subst'
3906
-_LT_CONFIG_STATUS_DECLARATIONS
3908
-LTCFLAGS='$LTCFLAGS'
3909
-compiler='$compiler_DEFAULT'
3911
-# Quote evaled strings.
3912
-for var in lt_decl_all_varnames([[ \
3913
-]], lt_decl_quote_varnames); do
3914
- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
3915
- *[[\\\\\\\`\\"\\\$]]*)
3916
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
3919
- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
3924
-# Double-quote double-evaled strings.
3925
-for var in lt_decl_all_varnames([[ \
3926
-]], lt_decl_dquote_varnames); do
3927
- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
3928
- *[[\\\\\\\`\\"\\\$]]*)
3929
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
3932
- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
3937
-# Fix-up fallback echo if it was mangled by the above quoting rules.
3939
-*'\\\[$]0 --fallback-echo"')dnl "
3940
- lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
3944
-_LT_OUTPUT_LIBTOOL_INIT
3950
-# This macro allows early generation of the libtool script (before
3951
-# AC_OUTPUT is called), incase it is used in configure for compilation
3953
-AC_DEFUN([LT_OUTPUT],
3954
-[: ${CONFIG_LT=./config.lt}
3955
-AC_MSG_NOTICE([creating $CONFIG_LT])
3956
-cat >"$CONFIG_LT" <<_LTEOF
3958
-# Generated by $as_me.
3959
-# Run this file to recreate a libtool stub with the current configuration.
3962
-SHELL=\${CONFIG_SHELL-$SHELL}
3965
-cat >>"$CONFIG_LT" <<\_LTEOF
3969
-exec AS_MESSAGE_FD>&1
3970
-exec AS_MESSAGE_LOG_FD>>config.log
3973
- AS_BOX([Running $as_me.])
3974
-} >&AS_MESSAGE_LOG_FD
3977
-\`$as_me' creates a local libtool stub from the current configuration,
3978
-for use in further configure time tests before the real libtool is
3981
-Usage: $[0] [[OPTIONS]]
3983
- -h, --help print this help, then exit
3984
- -V, --version print version number, then exit
3985
- -q, --quiet do not print progress messages
3986
- -d, --debug don't remove temporary files
3988
-Report bugs to <bug-libtool@gnu.org>."
3991
-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
3992
-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
3993
-configured by $[0], generated by m4_PACKAGE_STRING.
3995
-Copyright (C) 2008 Free Software Foundation, Inc.
3996
-This config.lt script is free software; the Free Software Foundation
3997
-gives unlimited permision to copy, distribute and modify it."
3999
-while test $[#] != 0
4002
- --version | --v* | -V )
4003
- echo "$lt_cl_version"; exit 0 ;;
4004
- --help | --h* | -h )
4005
- echo "$lt_cl_help"; exit 0 ;;
4006
- --debug | --d* | -d )
4008
- --quiet | --q* | --silent | --s* | -q )
4011
- -*) AC_MSG_ERROR([unrecognized option: $[1]
4012
-Try \`$[0] --help' for more information.]) ;;
4014
- *) AC_MSG_ERROR([unrecognized argument: $[1]
4015
-Try \`$[0] --help' for more information.]) ;;
4020
-if $lt_cl_silent; then
4021
- exec AS_MESSAGE_FD>/dev/null
4025
-cat >>"$CONFIG_LT" <<_LTEOF
4026
-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
4029
-cat >>"$CONFIG_LT" <<\_LTEOF
4030
-AC_MSG_NOTICE([creating $ofile])
4031
-_LT_OUTPUT_LIBTOOL_COMMANDS
4034
-chmod +x "$CONFIG_LT"
4036
-# configure is writing to config.log, but config.lt does its own redirection,
4037
-# appending to config.log, which fails on DOS, as config.log is still kept
4038
-# open by configure. Here we exec the FD to /dev/null, effectively closing
4039
-# config.log, so it can be properly (re)opened and appended to by config.lt.
4040
-if test "$no_create" != yes; then
4042
- test "$silent" = yes &&
4043
- lt_config_lt_args="$lt_config_lt_args --quiet"
4044
- exec AS_MESSAGE_LOG_FD>/dev/null
4045
- $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
4046
- exec AS_MESSAGE_LOG_FD>>config.log
4047
- $lt_cl_success || AS_EXIT(1)
4054
-# If TAG is the built-in tag, create an initial libtool script with a
4055
-# default configuration from the untagged config vars. Otherwise add code
4056
-# to config.status for appending the configuration named by TAG from the
4057
-# matching tagged config vars.
4058
-m4_defun([_LT_CONFIG],
4059
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4060
-_LT_CONFIG_SAVE_COMMANDS([
4061
- m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
4062
- m4_if(_LT_TAG, [C], [
4063
- # See if we are running on zsh, and set the options which allow our
4064
- # commands through without removal of \ escapes.
4065
- if test -n "${ZSH_VERSION+set}" ; then
4066
- setopt NO_GLOB_SUBST
4069
- cfgfile="${ofile}T"
4070
- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
4073
- cat <<_LT_EOF >> "$cfgfile"
4076
-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4077
-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
3277
4078
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3278
+# Flag that allows shared libraries with undefined symbols to be built.
3279
+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
3281
-# Shell to use when invoking shell scripts.
3283
+# Flag that forces no undefined symbols.
3284
+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
3286
-# Whether or not to build shared libraries.
3287
-build_libtool_libs=$enable_shared
3288
+# Commands used to finish a libtool library installation in a directory.
3289
+finish_cmds=$lt_finish_cmds
3291
-# Whether or not to build static libraries.
3292
-build_old_libs=$enable_static
3293
+# Same as above, but a single script fragment to be evaled but not shown.
3294
+finish_eval=$lt_finish_eval
3296
-# Whether or not to add -lc for building shared libraries.
3297
-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3298
+# Take the output of nm and produce a listing of raw symbols and C names.
3299
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
3301
-# Whether or not to disallow shared libs when runtime libs are static
3302
-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
3303
+# Transform the output of nm in a proper C declaration
3304
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
3306
-# Whether or not to optimize for fast installation.
3307
-fast_install=$enable_fast_install
3308
+# Transform the output of nm in a C name address pair
3309
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
3312
-host_alias=$host_alias
3315
+# This is the shared library runtime path variable.
3316
+runpath_var=$runpath_var
3318
-# The build system.
3319
-build_alias=$build_alias
3322
+# This is the shared library path variable.
3323
+shlibpath_var=$shlibpath_var
3325
-# An echo program that does not interpret backslashes.
3327
+# Is shlibpath searched before the hard-coded library search path?
3328
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3332
-AR_FLAGS=$lt_AR_FLAGS
3333
+# How to hardcode a shared library path into an executable.
3334
+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
3338
+# Whether we should hardcode library paths into libraries.
3339
+hardcode_into_libs=$hardcode_into_libs
3341
-# LTCC compiler flags.
3342
-LTCFLAGS=$lt_LTCFLAGS
3343
+# Flag to hardcode \$libdir into a binary during linking.
3344
+# This must work even if \$libdir does not exist.
3345
+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
3347
-# A language-specific compiler.
3348
-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3349
+# If ld is used when linking, flag to hardcode \$libdir into
3350
+# a binary during linking. This must work even if \$libdir does
3352
+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
3354
-# Is the compiler the GNU C compiler?
3355
-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
3356
+# Whether we need a single -rpath flag with a separated argument.
3357
+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
3361
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
3362
+# resulting binary.
3363
+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
3365
-# The linker used to build libraries.
3366
-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
3367
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
3368
+# resulting binary.
3369
+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
3371
-# Whether we need hard or soft links.
3373
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
3374
+# the resulting binary.
3375
+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
3377
-# A BSD-compatible nm program.
3379
+# Set to yes if building a shared library automatically hardcodes DIR into the library
3380
+# and all subsequent libraries and executables linked against it.
3381
+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
3383
-# A symbol stripping program
3385
+# Variables whose values should be saved in libtool wrapper scripts and
3386
+# restored at relink time.
3387
+variables_saved_for_relink="$variables_saved_for_relink"
3389
+# Whether libtool must link a program against all its dependency libraries.
3390
+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
3392
+# Compile-time system search path for libraries
3393
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
3395
+# Run-time system search path for libraries
3396
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3398
+# Fix the shell variable \$srcfile for the compiler.
3399
+fix_srcfile_path=$lt_fix_srcfile_path
3401
+# Set to yes if exported symbols are required.
3402
+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
3404
+# The commands to list exported symbols.
3405
+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
3407
+# The commands to extract the exported symbol list from a shared archive.
3408
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
3410
+# Symbols that should not be listed in the preloaded symbols.
3411
+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
3413
+# Symbols that must always be exported.
3414
+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
3417
+[# ### END LIBTOOL CONFIG],
3418
+[# ### END LIBTOOL TAG CONFIG: $tagname])
3425
+ cat <<\EOF >> "$cfgfile"
3427
+# AIX sometimes has problems with the GCC collect2 program. For some
3428
+# reason, if we set the COLLECT_NAMES environment variable, the problems
3429
+# vanish in a puff of smoke.
3430
+if test "X${COLLECT_NAMES+set}" != Xset; then
3432
+ export COLLECT_NAMES
3438
+ # We use sed instead of cat because bash on DJGPP gets confused if
3439
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
3440
+ # text mode, it properly converts lines to CR/LF. This bash problem
3441
+ # is reportedly fixed, but why not run on old versions too?
3442
+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
3444
+ mv -f "$cfgfile" "$ofile" || \
3445
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3449
+ # If there is no Makefile yet, we rely on a make rule to execute
3450
+ # `config.status --recheck' to rerun these tests and create the
3451
+ # libtool script then.
3452
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
3453
+ if test -f "$ltmain_in"; then
3454
+ test -f Makefile && make "$ltmain"
3457
+])# AC_LIBTOOL_CONFIG
3459
-# Used to examine libraries when file_magic_cmd begins "file"
3460
-MAGIC_CMD=$MAGIC_CMD
3462
-# Used on cygwin: DLL creation program.
3464
+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3465
+# -------------------------------------------
3466
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
3467
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3469
-# Used on cygwin: object dumper.
3471
+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3473
-# Used on cygwin: assembler.
3475
+if test "$GCC" = yes; then
3476
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3478
-# The name of the directory that contains temporary libtool files.
3480
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3481
+ lt_cv_prog_compiler_rtti_exceptions,
3482
+ [-fno-rtti -fno-exceptions], [],
3483
+ [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3485
+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3487
-# How to create reloadable object files.
3488
-reload_flag=$lt_reload_flag
3489
-reload_cmds=$lt_reload_cmds
3491
-# How to pass a linker flag through the compiler.
3492
-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
3493
+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3494
+# ---------------------------------
3495
+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
3496
+[AC_REQUIRE([AC_CANONICAL_HOST])
3497
+AC_REQUIRE([LT_AC_PROG_SED])
3498
+AC_REQUIRE([AC_PROG_NM])
3499
+AC_REQUIRE([AC_OBJEXT])
3500
+# Check for command to grab the raw symbol name followed by C symbol from nm.
3501
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3502
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3504
+# These are sane defaults that work on at least a few old systems.
3505
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3507
-# Object file suffix (normally "o").
3508
-objext="$ac_objext"
3509
+# Character class describing NM global symbol codes.
3510
+symcode='[[BCDEGRST]]'
3512
-# Old archive suffix (normally "a").
3514
+# Regexp to match symbols that can be accessed directly from C.
3515
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3517
-# Shared library suffix (normally ".so").
3518
-shrext_cmds='$shrext_cmds'
3519
+# Transform an extracted symbol line into a proper C declaration
3520
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3522
-# Executable file suffix (normally "").
3524
+# Transform an extracted symbol line into symbol name and symbol address
3525
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3527
-# Additional compiler flags for building library objects.
3528
-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
3530
+# Define system-specific variables.
3533
+ symcode='[[BCDT]]'
3535
+cygwin* | mingw* | pw32*)
3536
+ symcode='[[ABCDGISTW]]'
3538
+hpux*) # Its linker distinguishes data from code symbols
3539
+ if test "$host_cpu" = ia64; then
3540
+ symcode='[[ABCDEGRST]]'
3542
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3543
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3545
+linux* | k*bsd*-gnu)
3546
+ if test "$host_cpu" = ia64; then
3547
+ symcode='[[ABCDGIRSTW]]'
3548
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3549
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3552
+irix* | nonstopux*)
3553
+ symcode='[[BCDEGRST]]'
3556
+ symcode='[[BCDEGQRST]]'
3559
+ symcode='[[BDRT]]'
3567
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
3568
+ symcode='[[ABDT]]'
3571
+ symcode='[[DFNSTU]]'
3575
-# What is the maximum length of a command?
3576
-max_cmd_len=$lt_cv_sys_max_cmd_len
3577
+# Handle CRLF in mingw tool chain
3581
+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3585
-# Does compiler simultaneously support -c and -o options?
3586
-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
3587
+# If we're using GNU nm, then use its standard symbol codes.
3588
+case `$NM -V 2>&1` in
3589
+*GNU* | *'with BFD'*)
3590
+ symcode='[[ABCDGIRSTW]]' ;;
3593
-# Must we lock files when doing compilation?
3594
-need_locks=$lt_need_locks
3595
+# Try without a prefix undercore, then with it.
3596
+for ac_symprfx in "" "_"; do
3598
-# Do we need the lib prefix for modules?
3599
-need_lib_prefix=$need_lib_prefix
3600
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3601
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
3603
-# Do we need a version for libraries?
3604
-need_version=$need_version
3605
+ # Write the raw and C identifiers.
3606
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3608
-# Whether dlopen is supported.
3609
-dlopen_support=$enable_dlopen
3610
+ # Check to see that the pipe works correctly.
3613
-# Whether dlopen of programs is supported.
3614
-dlopen_self=$enable_dlopen_self
3616
+ cat > conftest.$ac_ext <<EOF
3621
+void nm_test_func(){}
3625
+int main(){nm_test_var='a';nm_test_func();return(0);}
3628
-# Whether dlopen of statically linked programs is supported.
3629
-dlopen_self_static=$enable_dlopen_self_static
3630
+ if AC_TRY_EVAL(ac_compile); then
3631
+ # Now try to grab the symbols.
3633
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3634
+ # Try sorting and uniquifying the output.
3635
+ if sort "$nlist" | uniq > "$nlist"T; then
3636
+ mv -f "$nlist"T "$nlist"
3641
-# Compiler flag to prevent dynamic linking.
3642
-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
3643
+ # Make sure that we snagged all the symbols we need.
3644
+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
3645
+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
3646
+ cat <<EOF > conftest.$ac_ext
3651
-# Compiler flag to turn off builtin functions.
3652
-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
3654
+ # Now generate the symbol file.
3655
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3657
-# Compiler flag to allow reflexive dlopens.
3658
-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
3659
+ cat <<EOF >> conftest.$ac_ext
3660
+#if defined (__STDC__) && __STDC__
3661
+# define lt_ptr_t void *
3663
+# define lt_ptr_t char *
3667
-# Compiler flag to generate shared objects directly from archives.
3668
-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
3669
+/* The mapping between symbol names and symbols. */
3674
+lt_preloaded_symbols[[]] =
3677
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3678
+ cat <<\EOF >> conftest.$ac_ext
3682
-# Compiler flag to generate thread-safe objects.
3683
-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
3688
+ # Now try linking the two files.
3689
+ mv conftest.$ac_objext conftstm.$ac_objext
3690
+ lt_save_LIBS="$LIBS"
3691
+ lt_save_CFLAGS="$CFLAGS"
3692
+ LIBS="conftstm.$ac_objext"
3693
+ CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3694
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3697
+ LIBS="$lt_save_LIBS"
3698
+ CFLAGS="$lt_save_CFLAGS"
3700
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3703
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3706
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3709
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3710
+ cat conftest.$ac_ext >&5
3712
+ rm -rf conftest* conftst*
3714
-# Library versioning type.
3715
-version_type=$version_type
3716
+ # Do not use the global_symbol_pipe unless it works.
3717
+ if test "$pipe_works" = yes; then
3720
+ lt_cv_sys_global_symbol_pipe=
3724
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
3725
+ lt_cv_sys_global_symbol_to_cdecl=
3727
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3728
+ AC_MSG_RESULT(failed)
3732
+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3734
-# Format of library name prefix.
3735
-libname_spec=$lt_libname_spec
3737
-# List of archive names. First name is the real one, the rest are links.
3738
-# The last name is the one that the linker finds with -lNAME.
3739
-library_names_spec=$lt_library_names_spec
3740
+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3741
+# ---------------------------------------
3742
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
3743
+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
3744
+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3745
+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3747
-# The coded name of the library, if different from the real name.
3748
-soname_spec=$lt_soname_spec
3749
+AC_MSG_CHECKING([for $compiler option to produce PIC])
3750
+ ifelse([$1],[CXX],[
3751
+ # C++ specific cases for pic, static, wl, etc.
3752
+ if test "$GXX" = yes; then
3753
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3754
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3756
-# Commands used to build and install an old-style archive.
3758
-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
3759
-old_postinstall_cmds=$lt_old_postinstall_cmds
3760
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
3763
+ # All AIX code is PIC.
3764
+ if test "$host_cpu" = ia64; then
3765
+ # AIX 5 now supports IA64 processor
3766
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3770
+ # FIXME: we need at least 68020 code to build shared libraries, but
3771
+ # adding the `-m68020' flag to GCC prevents building anything better,
3773
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3775
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3776
+ # PIC is the default for these OSes.
3778
+ mingw* | cygwin* | os2* | pw32*)
3779
+ # This hack is so that the source file can tell whether it is being
3780
+ # built for inclusion in a dll (and should export symbols for example).
3781
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
3782
+ # (--disable-auto-import) libraries
3783
+ m4_if([$1], [GCJ], [],
3784
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3786
+ darwin* | rhapsody*)
3787
+ # PIC is the default on this platform
3788
+ # Common symbols not allowed in MH_DYLIB files
3789
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3792
+ # DJGPP does not support shared libraries at all
3793
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3796
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3797
+ # Instead, we relocate shared libraries at runtime.
3800
+ if test -d /usr/nec; then
3801
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3805
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3806
+ # not for PA HP-UX.
3811
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3816
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3822
+ # All AIX code is PIC.
3823
+ if test "$host_cpu" = ia64; then
3824
+ # AIX 5 now supports IA64 processor
3825
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3827
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3831
+ case $cc_basename in
3833
+ # Green Hills C++ Compiler
3834
+ # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3839
+ # PIC is the default on this platform
3840
+ # Common symbols not allowed in MH_DYLIB files
3841
+ case $cc_basename in
3843
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3844
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3849
+ case $cc_basename in
3851
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3854
+ # Green Hills C++ Compiler
3855
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3861
+ freebsd* | dragonfly*)
3862
+ # FreeBSD uses GNU C++
3864
+ hpux9* | hpux10* | hpux11*)
3865
+ case $cc_basename in
3867
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3868
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3869
+ if test "$host_cpu" != ia64; then
3870
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3874
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3875
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3881
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3890
+ # This is c89, which is MS Visual C++ (no shared libs)
3891
+ # Anyone wants to do a port?
3893
+ irix5* | irix6* | nonstopux*)
3894
+ case $cc_basename in
3896
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3897
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3898
+ # CC pic flag -KPIC is the default.
3904
+ linux* | k*bsd*-gnu)
3905
+ case $cc_basename in
3907
+ # KAI C++ Compiler
3908
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3909
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3913
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3914
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3915
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3918
+ # Portland Group C++ compiler.
3919
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3920
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3921
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3925
+ # Make sure the PIC flag is empty. It appears that all Alpha
3926
+ # Linux and Compaq Tru64 Unix objects are PIC.
3927
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3928
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3931
+ case `$CC -V 2>&1 | sed 5q` in
3934
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3935
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3936
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3947
+ case $cc_basename in
3949
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3955
+ netbsd* | netbsdelf*-gnu)
3957
+ osf3* | osf4* | osf5*)
3958
+ case $cc_basename in
3960
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3963
+ # Rational C++ 2.4.1
3964
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3967
+ # Digital/Compaq C++
3968
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3969
+ # Make sure the PIC flag is empty. It appears that all Alpha
3970
+ # Linux and Compaq Tru64 Unix objects are PIC.
3971
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3972
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3981
+ case $cc_basename in
3983
+ # Sun C++ 4.2, 5.x and Centerline C++
3984
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3985
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3986
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3989
+ # Green Hills C++ Compiler
3990
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3997
+ case $cc_basename in
4000
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4001
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4005
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4012
+ case $cc_basename in
4014
+ # NonStop-UX NCC 3.20
4015
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4021
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4022
+ case $cc_basename in
4024
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4026
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4033
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4039
+ if test "$GCC" = yes; then
4040
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4041
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4043
-# Create an old-style archive from a shared archive.
4044
-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4047
+ # All AIX code is PIC.
4048
+ if test "$host_cpu" = ia64; then
4049
+ # AIX 5 now supports IA64 processor
4050
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4054
-# Create a temporary old-style archive to link instead of a shared archive.
4055
-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4057
+ # FIXME: we need at least 68020 code to build shared libraries, but
4058
+ # adding the `-m68020' flag to GCC prevents building anything better,
4060
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4063
-# Commands used to build and install a shared archive.
4064
-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4065
-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4066
-postinstall_cmds=$lt_postinstall_cmds
4067
-postuninstall_cmds=$lt_postuninstall_cmds
4068
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4069
+ # PIC is the default for these OSes.
4072
-# Commands used to build a loadable module (assumed same as above if empty)
4073
-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4074
-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4075
+ mingw* | cygwin* | pw32* | os2*)
4076
+ # This hack is so that the source file can tell whether it is being
4077
+ # built for inclusion in a dll (and should export symbols for example).
4078
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
4079
+ # (--disable-auto-import) libraries
4080
+ m4_if([$1], [GCJ], [],
4081
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4084
-# Commands to strip libraries.
4085
-old_striplib=$lt_old_striplib
4086
-striplib=$lt_striplib
4087
+ darwin* | rhapsody*)
4088
+ # PIC is the default on this platform
4089
+ # Common symbols not allowed in MH_DYLIB files
4090
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4093
-# Dependencies to place before the objects being linked to create a
4095
-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4097
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4098
+ # Instead, we relocate shared libraries at runtime.
4101
-# Dependencies to place after the objects being linked to create a
4103
-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4105
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
4106
+ # on systems that don't support them.
4107
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4111
-# Dependencies to place before the objects being linked to create a
4113
-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4115
+ if test -d /usr/nec; then
4116
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4120
-# Dependencies to place after the objects being linked to create a
4122
-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4124
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4125
+ # not for PA HP-UX.
4131
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4136
-# The directories searched by this compiler when creating a shared
4138
-compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4140
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4144
+ # PORTME Check for flag to pass linker flags through the system compiler.
4147
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4148
+ if test "$host_cpu" = ia64; then
4149
+ # AIX 5 now supports IA64 processor
4150
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4152
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4156
+ # PIC is the default on this platform
4157
+ # Common symbols not allowed in MH_DYLIB files
4158
+ case $cc_basename in
4160
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4161
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4166
-# The library search path used internally by the compiler when linking
4167
-# a shared library.
4168
-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4169
+ mingw* | cygwin* | pw32* | os2*)
4170
+ # This hack is so that the source file can tell whether it is being
4171
+ # built for inclusion in a dll (and should export symbols for example).
4172
+ m4_if([$1], [GCJ], [],
4173
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4176
-# Method to check whether dependent libraries are shared objects.
4177
-deplibs_check_method=$lt_deplibs_check_method
4178
+ hpux9* | hpux10* | hpux11*)
4179
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4180
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4181
+ # not for PA HP-UX.
4187
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4190
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
4191
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4194
-# Command to use when deplibs_check_method == file_magic.
4195
-file_magic_cmd=$lt_file_magic_cmd
4196
+ irix5* | irix6* | nonstopux*)
4197
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4198
+ # PIC (with -KPIC) is the default.
4199
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4202
-# Flag that allows shared libraries with undefined symbols to be built.
4203
-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4205
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4206
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4209
-# Flag that forces no undefined symbols.
4210
-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4211
+ linux* | k*bsd*-gnu)
4212
+ case $cc_basename in
4214
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4215
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4216
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4218
+ pgcc* | pgf77* | pgf90* | pgf95*)
4219
+ # Portland Group compilers (*not* the Pentium gcc compiler,
4220
+ # which looks to be a dead project)
4221
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4222
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4223
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4226
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4227
+ # All Alpha code is PIC.
4228
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4231
+ case `$CC -V 2>&1 | sed 5q` in
4234
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4235
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4236
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4239
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
4240
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4241
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4242
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4249
-# Commands used to finish a libtool library installation in a directory.
4250
-finish_cmds=$lt_finish_cmds
4251
+ osf3* | osf4* | osf5*)
4252
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4253
+ # All OSF/1 code is PIC.
4254
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4257
-# Same as above, but a single script fragment to be evaled but not shown.
4258
-finish_eval=$lt_finish_eval
4260
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4263
-# Take the output of nm and produce a listing of raw symbols and C names.
4264
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4266
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4267
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4268
+ case $cc_basename in
4269
+ f77* | f90* | f95*)
4270
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4272
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4276
-# Transform the output of nm in a proper C declaration
4277
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4279
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4280
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4281
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4284
-# Transform the output of nm in a C name address pair
4285
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4286
+ sysv4 | sysv4.2uw2* | sysv4.3*)
4287
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4288
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4289
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4292
-# This is the shared library runtime path variable.
4293
-runpath_var=$runpath_var
4295
+ if test -d /usr/nec ;then
4296
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4297
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4301
-# This is the shared library path variable.
4302
-shlibpath_var=$shlibpath_var
4303
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4304
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4305
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4306
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4309
-# Is shlibpath searched before the hard-coded library search path?
4310
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4312
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4313
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4316
-# How to hardcode a shared library path into an executable.
4317
-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4319
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4320
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4323
-# Whether we should hardcode library paths into libraries.
4324
-hardcode_into_libs=$hardcode_into_libs
4326
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4331
+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4333
-# Flag to hardcode \$libdir into a binary during linking.
4334
-# This must work even if \$libdir does not exist.
4335
-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4337
+# Check to make sure the PIC flag actually works.
4339
+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
4340
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
4341
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
4342
+ [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
4343
+ [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4345
+ *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4347
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4348
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4351
+ # For platforms which do not support PIC, -DPIC is meaningless:
4353
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4356
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4360
-# If ld is used when linking, flag to hardcode \$libdir into
4361
-# a binary during linking. This must work even if \$libdir does
4363
-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4365
+# Check to make sure the static flag actually works.
4367
+wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
4368
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4369
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4370
+ $lt_tmp_static_flag,
4372
+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4375
-# Whether we need a single -rpath flag with a separated argument.
4376
-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4378
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4379
-# resulting binary.
4380
-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4381
+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
4382
+# ------------------------------------
4383
+# See if the linker supports building shared libraries.
4384
+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
4385
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
4386
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4387
+ifelse([$1],[CXX],[
4388
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4391
+ # If we're using GNU nm, then we don't want the "-C" option.
4392
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
4393
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4394
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4396
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4400
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4403
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4405
+ linux* | k*bsd*-gnu)
4406
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4409
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4412
+ _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4415
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4416
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4417
+ _LT_AC_TAGVAR(archive_cmds, $1)=
4418
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4419
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
4420
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4421
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4422
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4423
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
4424
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4425
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4426
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4427
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
4428
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4429
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4430
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4431
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4432
+ _LT_AC_TAGVAR(module_cmds, $1)=
4433
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4434
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
4435
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4436
+ # include_expsyms should be a list of space-separated symbols to be *always*
4437
+ # included in the symbol list
4438
+ _LT_AC_TAGVAR(include_expsyms, $1)=
4439
+ # exclude_expsyms can be an extended regexp of symbols to exclude
4440
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
4441
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4442
+ # as well as any symbol that contains `d'.
4443
+ _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4444
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4445
+ # platforms (ab)use it in PIC code, but their linkers get confused if
4446
+ # the symbol is explicitly referenced. Since portable code cannot
4447
+ # rely on this symbol name, it's probably fine to never include it in
4448
+ # preloaded symbol tables.
4449
+ # Exclude shared library initialization/finalization symbols.
4450
+dnl Note also adjust exclude_expsyms for C++ above.
4451
+ extract_expsyms_cmds=
4452
+ # Just being paranoid about ensuring that cc_basename is set.
4453
+ _LT_CC_BASENAME([$compiler])
4455
+ cygwin* | mingw* | pw32*)
4456
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
4457
+ # When not using gcc, we currently assume that we are using
4458
+ # Microsoft Visual C++.
4459
+ if test "$GCC" != yes; then
4464
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
4472
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4473
-# resulting binary.
4474
-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4475
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4476
+ if test "$with_gnu_ld" = yes; then
4477
+ # If archive_cmds runs LD, not CC, wlarc should be empty
4480
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4481
-# the resulting binary.
4482
-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4483
+ # Set some defaults for GNU ld with shared library support. These
4484
+ # are reset later if shared libraries are not supported. Putting them
4485
+ # here allows them to be overridden if necessary.
4486
+ runpath_var=LD_RUN_PATH
4487
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4488
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4489
+ # ancient GNU ld didn't support --whole-archive et. al.
4490
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
4491
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4493
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4495
+ supports_anon_versioning=no
4496
+ case `$LD -v 2>/dev/null` in
4497
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4498
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4499
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4500
+ *\ 2.11.*) ;; # other 2.11 versions
4501
+ *) supports_anon_versioning=yes ;;
4504
-# Set to yes if building a shared library automatically hardcodes DIR into the library
4505
-# and all subsequent libraries and executables linked against it.
4506
-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4507
+ # See if GNU ld supports shared libraries.
4510
+ # On AIX/PPC, the GNU linker is very broken
4511
+ if test "$host_cpu" != ia64; then
4512
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4515
-# Variables whose values should be saved in libtool wrapper scripts and
4516
-# restored at relink time.
4517
-variables_saved_for_relink="$variables_saved_for_relink"
4518
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4519
+*** to be unable to reliably create shared libraries on AIX.
4520
+*** Therefore, libtool is disabling shared libraries support. If you
4521
+*** really care for shared libraries, you may want to modify your PATH
4522
+*** so that a non-GNU linker is found, and then restart.
4524
-# Whether libtool must link a program against all its dependency libraries.
4525
-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4530
-# Compile-time system search path for libraries
4531
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4533
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4534
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4535
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4537
-# Run-time system search path for libraries
4538
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4539
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4540
+ # that the semantics of dynamic libraries on AmigaOS, at least up
4541
+ # to version 4, is to share data among multiple programs linked
4542
+ # with the same dynamic library. Since this doesn't match the
4543
+ # behavior of shared libraries on other platforms, we can't use
4545
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4548
-# Fix the shell variable \$srcfile for the compiler.
4549
-fix_srcfile_path=$lt_fix_srcfile_path
4551
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4552
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4553
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4554
+ # support --undefined. This deserves some investigation. FIXME
4555
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4557
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4561
-# Set to yes if exported symbols are required.
4562
-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4563
+ cygwin* | mingw* | pw32*)
4564
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4565
+ # as there is no search path for DLLs.
4566
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4567
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4568
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
4569
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4570
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4572
-# The commands to list exported symbols.
4573
-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4574
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4575
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4576
+ # If the export-symbols file already is a .def file (1st line
4577
+ # is EXPORTS), use it as is; otherwise, prepend...
4578
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4579
+ cp $export_symbols $output_objdir/$soname.def;
4581
+ echo EXPORTS > $output_objdir/$soname.def;
4582
+ cat $export_symbols >> $output_objdir/$soname.def;
4584
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4586
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4590
-# The commands to extract the exported symbol list from a shared archive.
4591
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
4593
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
4594
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4595
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4596
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4597
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4598
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
4599
+ # default) and relocated if they conflict, which is a slow very memory
4600
+ # consuming and fragmenting process. To avoid this, we pick a random,
4601
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4602
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4603
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4604
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4607
-# Symbols that should not be listed in the preloaded symbols.
4608
-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4609
+ gnu* | linux* | k*bsd*-gnu)
4610
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4612
+ case $cc_basename,$host_cpu in
4613
+ pgcc*) # Portland Group C compiler
4614
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4615
+ tmp_addflag=' $pic_flag'
4617
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4618
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4619
+ tmp_addflag=' $pic_flag -Mnomain' ;;
4620
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4621
+ tmp_addflag=' -i_dynamic' ;;
4622
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4623
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
4624
+ ifc* | ifort*) # Intel Fortran compiler
4625
+ tmp_addflag=' -nofor_main' ;;
4627
+ case `$CC -V 2>&1 | sed 5q` in
4628
+ *Sun\ C*) # Sun C 5.9
4629
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4630
+ tmp_sharedflag='-G' ;;
4631
+ *Sun\ F*) # Sun Fortran 8.3
4632
+ tmp_sharedflag='-G' ;;
4634
+ tmp_sharedflag='-shared' ;;
4636
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4638
-# Symbols that must always be exported.
4639
-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4640
+ if test $supports_anon_versioning = yes; then
4641
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
4642
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4643
+ $echo "local: *; };" >> $output_objdir/$libname.ver~
4644
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4646
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4648
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4653
-[# ### END LIBTOOL CONFIG],
4654
-[# ### END LIBTOOL TAG CONFIG: $tagname])
4655
+ netbsd* | netbsdelf*-gnu)
4656
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4657
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4660
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4661
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4667
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
4668
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4079
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4084
-# ### BEGIN LIBTOOL CONFIG
4085
-_LT_LIBTOOL_CONFIG_VARS
4086
-_LT_LIBTOOL_TAG_VARS
4087
-# ### END LIBTOOL CONFIG
4672
4091
- case $host_os in
4674
- cat <<\EOF >> "$cfgfile"
4675
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4676
+*** create shared libraries on Solaris systems. Therefore, libtool
4677
+*** is disabling shared libraries support. We urge you to upgrade GNU
4678
+*** binutils to release 2.9.1 or newer. Another option is to modify
4679
+*** your PATH or compiler configuration so that the native linker is
4680
+*** used, and then restart.
4093
- cat <<\_LT_EOF >> "$cfgfile"
4682
4094
-# AIX sometimes has problems with the GCC collect2 program. For some
4683
4095
-# reason, if we set the COLLECT_NAMES environment variable, the problems
4684
4096
-# vanish in a puff of smoke.
4686
4098
- COLLECT_NAMES=
4687
4099
- export COLLECT_NAMES
4692
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4693
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4694
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4696
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4700
4107
- # We use sed instead of cat because bash on DJGPP gets confused if
4701
4108
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
4702
4109
- # text mode, it properly converts lines to CR/LF. This bash problem
4703
4110
- # is reportedly fixed, but why not run on old versions too?
4704
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4705
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4706
+ case `$LD -v 2>&1` in
4707
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4708
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4709
+ cat <<_LT_EOF 1>&2
4711
- mv -f "$cfgfile" "$ofile" || \
4111
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
4112
- || (rm -f "$cfgfile"; exit 1)
4114
- _LT_PROG_XSI_SHELLFNS
4116
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
4117
- || (rm -f "$cfgfile"; exit 1)
4119
- mv -f "$cfgfile" "$ofile" ||
4712
4120
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4713
4121
- chmod +x "$ofile"
4716
- # If there is no Makefile yet, we rely on a make rule to execute
4717
- # `config.status --recheck' to rerun these tests and create the
4718
- # libtool script then.
4719
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4720
- if test -f "$ltmain_in"; then
4721
- test -f Makefile && make "$ltmain"
4724
-])# AC_LIBTOOL_CONFIG
4725
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4726
+*** reliably create shared libraries on SCO systems. Therefore, libtool
4727
+*** is disabling shared libraries support. We urge you to upgrade GNU
4728
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4729
+*** your PATH or compiler configuration so that the native linker is
4730
+*** used, and then restart.
4735
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4736
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
4737
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
4738
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
4740
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4746
-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4747
-# -------------------------------------------
4748
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4749
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4751
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4753
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4754
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4757
-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4759
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4760
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4761
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4763
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
4768
-if test "$GCC" = yes; then
4769
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4770
+ if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
4772
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4773
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4774
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4777
+ # PORTME fill in a description of your system's linker (not GNU ld)
4780
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4781
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4782
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4783
+ # Note: this linker hardcodes the directories in LIBPATH if there
4784
+ # are no directories specified by -L.
4785
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4786
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4787
+ # Neither direct hardcoding nor static linking is supported with a
4788
+ # broken collect2.
4789
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4793
- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4123
-[cat <<_LT_EOF >> "$ofile"
4125
-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
4126
-dnl in a comment (ie after a #).
4127
-# ### BEGIN LIBTOOL TAG CONFIG: $1
4128
-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
4129
-# ### END LIBTOOL TAG CONFIG: $1
4134
- PACKAGE='$PACKAGE'
4135
- VERSION='$VERSION'
4136
- TIMESTAMP='$TIMESTAMP'
4138
- ofile='$ofile'], [])
4139
-])dnl /_LT_CONFIG_SAVE_COMMANDS
4143
-# LT_SUPPORTED_TAG(TAG)
4144
-# ---------------------
4145
-# Trace this macro to discover what tags are supported by the libtool
4146
-# --tag option, using:
4147
-# autoconf --trace 'LT_SUPPORTED_TAG:$1'
4148
-AC_DEFUN([LT_SUPPORTED_TAG], [])
4151
-# C support is built-in for now
4152
-m4_define([_LT_LANG_C_enabled], [])
4153
-m4_define([_LT_TAGS], [])
4158
-# Enable libtool support for the given language if not already enabled.
4159
-AC_DEFUN([LT_LANG],
4160
-[AC_BEFORE([$0], [LT_OUTPUT])dnl
4162
- [C], [_LT_LANG(C)],
4163
- [C++], [_LT_LANG(CXX)],
4164
- [Java], [_LT_LANG(GCJ)],
4165
- [Fortran 77], [_LT_LANG(F77)],
4166
- [Fortran], [_LT_LANG(FC)],
4167
- [Windows Resource], [_LT_LANG(RC)],
4168
- [m4_ifdef([_LT_LANG_]$1[_CONFIG],
4170
- [m4_fatal([$0: unsupported language: "$1"])])])dnl
4174
-# _LT_LANG(LANGNAME)
4175
-# ------------------
4176
-m4_defun([_LT_LANG],
4177
-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
4178
- [LT_SUPPORTED_TAG([$1])dnl
4179
- m4_append([_LT_TAGS], [$1 ])dnl
4180
- m4_define([_LT_LANG_]$1[_enabled], [])dnl
4181
- _LT_LANG_$1_CONFIG($1)])dnl
4185
-# _LT_LANG_DEFAULT_CONFIG
4186
-# -----------------------
4187
-m4_defun([_LT_LANG_DEFAULT_CONFIG],
4188
-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
4190
- [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
4192
-AC_PROVIDE_IFELSE([AC_PROG_F77],
4194
- [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
4196
-AC_PROVIDE_IFELSE([AC_PROG_FC],
4198
- [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
4200
-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
4201
-dnl pulling things in needlessly.
4202
-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
4204
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
4206
- [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
4208
- [m4_ifdef([AC_PROG_GCJ],
4209
- [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
4210
- m4_ifdef([A][M_PROG_GCJ],
4211
- [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
4212
- m4_ifdef([LT_PROG_GCJ],
4213
- [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
4215
-AC_PROVIDE_IFELSE([LT_PROG_RC],
4217
- [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
4218
-])# _LT_LANG_DEFAULT_CONFIG
4221
-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
4222
-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
4223
-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
4224
-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
4225
-dnl aclocal-1.4 backwards compatibility:
4226
-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
4227
-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
4228
-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
4229
-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
4234
-m4_defun([_LT_TAG_COMPILER],
4235
-[AC_REQUIRE([AC_PROG_CC])dnl
4237
-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
4238
-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
4239
-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
4240
-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
4242
-# If no C compiler was specified, use CC.
4245
-# If no C compiler flags were specified, use CFLAGS.
4246
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4248
-# Allow CC to be a program name with arguments.
4250
-])# _LT_TAG_COMPILER
4253
-# _LT_COMPILER_BOILERPLATE
4254
-# ------------------------
4255
-# Check for compiler boilerplate output or warnings with
4256
-# the simple compiler test code.
4257
-m4_defun([_LT_COMPILER_BOILERPLATE],
4258
-[m4_require([_LT_DECL_SED])dnl
4259
-ac_outfile=conftest.$ac_objext
4260
-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
4261
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
4262
-_lt_compiler_boilerplate=`cat conftest.err`
4264
-])# _LT_COMPILER_BOILERPLATE
4267
-# _LT_LINKER_BOILERPLATE
4268
-# ----------------------
4269
-# Check for linker boilerplate output or warnings with
4270
-# the simple link test code.
4271
-m4_defun([_LT_LINKER_BOILERPLATE],
4272
-[m4_require([_LT_DECL_SED])dnl
4273
-ac_outfile=conftest.$ac_objext
4274
-echo "$lt_simple_link_test_code" >conftest.$ac_ext
4275
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
4276
-_lt_linker_boilerplate=`cat conftest.err`
4278
-])# _LT_LINKER_BOILERPLATE
4280
-# _LT_REQUIRED_DARWIN_CHECKS
4281
-# -------------------------
4282
-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
4284
- rhapsody* | darwin*)
4285
- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
4286
- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
4287
- AC_CHECK_TOOL([LIPO], [lipo], [:])
4288
- AC_CHECK_TOOL([OTOOL], [otool], [:])
4289
- AC_CHECK_TOOL([OTOOL64], [otool64], [:])
4290
- _LT_DECL([], [DSYMUTIL], [1],
4291
- [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
4292
- _LT_DECL([], [NMEDIT], [1],
4293
- [Tool to change global to local symbols on Mac OS X])
4294
- _LT_DECL([], [LIPO], [1],
4295
- [Tool to manipulate fat objects and archives on Mac OS X])
4296
- _LT_DECL([], [OTOOL], [1],
4297
- [ldd/readelf like tool for Mach-O binaries on Mac OS X])
4298
- _LT_DECL([], [OTOOL64], [1],
4299
- [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
4301
- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
4302
- [lt_cv_apple_cc_single_mod=no
4303
- if test -z "${LT_MULTI_MODULE}"; then
4304
- # By default we will add the -single_module flag. You can override
4305
- # by either setting the environment variable LT_MULTI_MODULE
4306
- # non-empty at configure time, or by adding -multi_module to the
4308
- rm -rf libconftest.dylib*
4309
- echo "int foo(void){return 1;}" > conftest.c
4310
- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4311
--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
4312
- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4313
- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
4315
- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
4316
- lt_cv_apple_cc_single_mod=yes
4318
- cat conftest.err >&AS_MESSAGE_LOG_FD
4320
- rm -rf libconftest.dylib*
4323
- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
4324
- [lt_cv_ld_exported_symbols_list],
4325
- [lt_cv_ld_exported_symbols_list=no
4326
- save_LDFLAGS=$LDFLAGS
4327
- echo "_main" > conftest.sym
4328
- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
4329
- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4330
- [lt_cv_ld_exported_symbols_list=yes],
4331
- [lt_cv_ld_exported_symbols_list=no])
4332
- LDFLAGS="$save_LDFLAGS"
4335
- rhapsody* | darwin1.[[012]])
4336
- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
4338
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4339
- darwin*) # darwin 5.x on
4340
- # if running on 10.5 or later, the deployment target defaults
4341
- # to the OS version, if on x86, and 10.4, the deployment
4342
- # target defaults to 10.4. Don't you love it?
4343
- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
4344
- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
4345
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4347
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4349
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4353
- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
4354
- _lt_dar_single_mod='$single_module'
4356
- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
4357
- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
4359
- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
4361
- if test "$DSYMUTIL" != ":"; then
4362
- _lt_dsymutil='~$DSYMUTIL $lib || :'
4371
-# _LT_DARWIN_LINKER_FEATURES
4372
-# --------------------------
4373
-# Checks for linker and compiler features on darwin
4374
-m4_defun([_LT_DARWIN_LINKER_FEATURES],
4376
- m4_require([_LT_REQUIRED_DARWIN_CHECKS])
4377
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
4378
- _LT_TAGVAR(hardcode_direct, $1)=no
4379
- _LT_TAGVAR(hardcode_automatic, $1)=yes
4380
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4381
- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
4382
- _LT_TAGVAR(link_all_deplibs, $1)=yes
4383
- _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4384
- case $cc_basename in
4385
- ifort*) _lt_dar_can_shared=yes ;;
4386
- *) _lt_dar_can_shared=$GCC ;;
4388
- if test "$_lt_dar_can_shared" = "yes"; then
4389
- output_verbose_link_cmd=echo
4390
- _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
4391
- _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4392
- _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
4393
- _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
4394
- m4_if([$1], [CXX],
4395
-[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4396
- _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
4397
- _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4401
- _LT_TAGVAR(ld_shlibs, $1)=no
4405
-# _LT_SYS_MODULE_PATH_AIX
4406
-# -----------------------
4407
-# Links a minimal program and checks the executable
4408
-# for the system default hardcoded library path. In most cases,
4409
-# this is /usr/lib:/lib, but when the MPI compilers are used
4410
-# the location of the communication and MPI libs are included too.
4411
-# If we don't find anything, use the default library path according
4412
-# to the aix ld manual.
4413
-m4_defun([_LT_SYS_MODULE_PATH_AIX],
4414
-[m4_require([_LT_DECL_SED])dnl
4415
-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
4416
-lt_aix_libpath_sed='
4417
- /Import File Strings/,/^$/ {
4423
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4424
-# Check for a 64-bit object if we didn't find anything.
4425
-if test -z "$aix_libpath"; then
4426
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4428
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4429
-])# _LT_SYS_MODULE_PATH_AIX
4432
-# _LT_SHELL_INIT(ARG)
4433
-# -------------------
4434
-m4_define([_LT_SHELL_INIT],
4435
-[ifdef([AC_DIVERSION_NOTICE],
4436
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
4437
- [AC_DIVERT_PUSH(NOTICE)])
4443
-# _LT_PROG_ECHO_BACKSLASH
4444
-# -----------------------
4445
-# Add some code to the start of the generated configure script which
4446
-# will find an echo command which doesn't interpret backslashes.
4447
-m4_defun([_LT_PROG_ECHO_BACKSLASH],
4449
-# Check that we are running under the correct shell.
4450
-SHELL=${CONFIG_SHELL-/bin/sh}
4454
- # Remove one level of quotation (which was required for Make).
4455
- ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
4459
-ECHO=${lt_ECHO-echo}
4460
-if test "X[$]1" = X--no-reexec; then
4461
- # Discard the --no-reexec flag, and continue.
4463
-elif test "X[$]1" = X--fallback-echo; then
4464
- # Avoid inline document here, it may be left over
4466
-elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
4467
- # Yippee, $ECHO works!
4470
- # Restart under the correct shell.
4471
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
4474
-if test "X[$]1" = X--fallback-echo; then
4475
- # used as fallback echo
4483
-# The HP-UX ksh and POSIX shell print the target directory to stdout
4484
-# if CDPATH is set.
4485
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4487
-if test -z "$lt_ECHO"; then
4488
- if test "X${echo_test_string+set}" != Xset; then
4489
- # find a string as large as possible, as long as the shell can cope with it
4490
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
4491
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
4492
- if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
4493
- { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
4500
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
4501
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
4502
- test "X$echo_testing_string" = "X$echo_test_string"; then
4505
- # The Solaris, AIX, and Digital Unix default echo programs unquote
4506
- # backslashes. This makes it impossible to quote backslashes using
4507
- # echo "$something" | sed 's/\\/\\\\/g'
4509
- # So, first we look for a working echo in the user's PATH.
4511
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4512
- for dir in $PATH /usr/ucb; do
4513
- IFS="$lt_save_ifs"
4514
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
4515
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
4516
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
4517
- test "X$echo_testing_string" = "X$echo_test_string"; then
4522
- IFS="$lt_save_ifs"
4524
- if test "X$ECHO" = Xecho; then
4525
- # We didn't find a better echo, so look for alternatives.
4526
- if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
4527
- echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
4528
- test "X$echo_testing_string" = "X$echo_test_string"; then
4529
- # This shell has a builtin print -r that does the trick.
4531
- elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
4532
- test "X$CONFIG_SHELL" != X/bin/ksh; then
4533
- # If we have ksh, try running configure again with it.
4534
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4535
- export ORIGINAL_CONFIG_SHELL
4536
- CONFIG_SHELL=/bin/ksh
4537
- export CONFIG_SHELL
4538
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
4540
- # Try using printf.
4541
- ECHO='printf %s\n'
4542
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
4543
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
4544
- test "X$echo_testing_string" = "X$echo_test_string"; then
4545
- # Cool, printf works
4547
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
4548
- test "X$echo_testing_string" = 'X\t' &&
4549
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
4550
- test "X$echo_testing_string" = "X$echo_test_string"; then
4551
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
4552
- export CONFIG_SHELL
4553
- SHELL="$CONFIG_SHELL"
4555
- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
4556
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
4557
- test "X$echo_testing_string" = 'X\t' &&
4558
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
4559
- test "X$echo_testing_string" = "X$echo_test_string"; then
4560
- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
4562
- # maybe with a smaller string...
4565
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
4566
- if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
4573
- if test "$prev" != 'sed 50q "[$]0"'; then
4574
- echo_test_string=`eval $prev`
4575
- export echo_test_string
4576
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
4578
- # Oops. We lost completely, so just stick with echo.
4587
-# Copy echo and quote the copy suitably for passing to libtool from
4588
-# the Makefile, instead of quoting the original, which is used later.
4590
-if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
4591
- lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
4596
-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
4597
-_LT_DECL([], [ECHO], [1],
4598
- [An echo program that does not interpret backslashes])
4599
-])# _LT_PROG_ECHO_BACKSLASH
4604
-m4_defun([_LT_ENABLE_LOCK],
4605
-[AC_ARG_ENABLE([libtool-lock],
4606
- [AS_HELP_STRING([--disable-libtool-lock],
4607
- [avoid locking (might break parallel builds)])])
4608
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4610
-# Some flags need to be propagated to the compiler or linker for good
4614
- # Find out which ABI we are using.
4615
- echo 'int i;' > conftest.$ac_ext
4616
- if AC_TRY_EVAL(ac_compile); then
4617
- case `/usr/bin/file conftest.$ac_objext` in
4619
- HPUX_IA64_MODE="32"
4622
- HPUX_IA64_MODE="64"
4629
- # Find out which ABI we are using.
4630
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
4631
- if AC_TRY_EVAL(ac_compile); then
4632
- if test "$lt_cv_prog_gnu_ld" = yes; then
4633
- case `/usr/bin/file conftest.$ac_objext` in
4635
- LD="${LD-ld} -melf32bsmip"
4638
- LD="${LD-ld} -melf32bmipn32"
4641
- LD="${LD-ld} -melf64bmip"
4645
- case `/usr/bin/file conftest.$ac_objext` in
4650
- LD="${LD-ld} -n32"
4661
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4662
-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4663
- # Find out which ABI we are using.
4664
- echo 'int i;' > conftest.$ac_ext
4665
- if AC_TRY_EVAL(ac_compile); then
4666
- case `/usr/bin/file conftest.o` in
4669
- x86_64-*kfreebsd*-gnu)
4670
- LD="${LD-ld} -m elf_i386_fbsd"
4673
- LD="${LD-ld} -m elf_i386"
4675
- ppc64-*linux*|powerpc64-*linux*)
4676
- LD="${LD-ld} -m elf32ppclinux"
4679
- LD="${LD-ld} -m elf_s390"
4682
- LD="${LD-ld} -m elf32_sparc"
4688
- x86_64-*kfreebsd*-gnu)
4689
- LD="${LD-ld} -m elf_x86_64_fbsd"
4692
- LD="${LD-ld} -m elf_x86_64"
4694
- ppc*-*linux*|powerpc*-*linux*)
4695
- LD="${LD-ld} -m elf64ppc"
4697
- s390*-*linux*|s390*-*tpf*)
4698
- LD="${LD-ld} -m elf64_s390"
4701
- LD="${LD-ld} -m elf64_sparc"
4711
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4712
- SAVE_CFLAGS="$CFLAGS"
4713
- CFLAGS="$CFLAGS -belf"
4714
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
4716
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
4718
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4719
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4720
- CFLAGS="$SAVE_CFLAGS"
4724
- # Find out which ABI we are using.
4725
- echo 'int i;' > conftest.$ac_ext
4726
- if AC_TRY_EVAL(ac_compile); then
4727
- case `/usr/bin/file conftest.o` in
4729
- case $lt_cv_prog_gnu_ld in
4730
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
4732
- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4744
-need_locks="$enable_libtool_lock"
4745
-])# _LT_ENABLE_LOCK
4748
-# _LT_CMD_OLD_ARCHIVE
4749
-# -------------------
4750
-m4_defun([_LT_CMD_OLD_ARCHIVE],
4751
-[AC_CHECK_TOOL(AR, ar, false)
4752
-test -z "$AR" && AR=ar
4753
-test -z "$AR_FLAGS" && AR_FLAGS=cru
4754
-_LT_DECL([], [AR], [1], [The archiver])
4755
-_LT_DECL([], [AR_FLAGS], [1])
4757
-AC_CHECK_TOOL(STRIP, strip, :)
4758
-test -z "$STRIP" && STRIP=:
4759
-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
4761
-AC_CHECK_TOOL(RANLIB, ranlib, :)
4762
-test -z "$RANLIB" && RANLIB=:
4763
-_LT_DECL([], [RANLIB], [1],
4764
- [Commands used to install an old-style archive])
4766
-# Determine commands to create old-style static archives.
4767
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4768
-old_postinstall_cmds='chmod 644 $oldlib'
4769
-old_postuninstall_cmds=
4771
-if test -n "$RANLIB"; then
4774
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4777
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4780
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4782
-_LT_DECL([], [old_postinstall_cmds], [2])
4783
-_LT_DECL([], [old_postuninstall_cmds], [2])
4784
-_LT_TAGDECL([], [old_archive_cmds], [2],
4785
- [Commands used to build an old-style archive])
4786
-])# _LT_CMD_OLD_ARCHIVE
4789
-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
4790
-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
4791
-# ----------------------------------------------------------------
4792
-# Check whether the given compiler option works
4793
-AC_DEFUN([_LT_COMPILER_OPTION],
4794
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4795
-m4_require([_LT_DECL_SED])dnl
4796
-AC_CACHE_CHECK([$1], [$2],
4798
- m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
4799
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4800
- lt_compiler_flag="$3"
4801
- # Insert the option either (1) after the last *FLAGS variable, or
4802
- # (2) before a word containing "conftest.", or (3) at the end.
4803
- # Note that $ac_compile itself does not contain backslashes and begins
4804
- # with a dollar sign (not a hyphen), so the echo should work correctly.
4805
- # The option is referenced via a variable to avoid confusing sed.
4806
- lt_compile=`echo "$ac_compile" | $SED \
4807
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4808
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4809
- -e 's:$: $lt_compiler_flag:'`
4810
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
4811
- (eval "$lt_compile" 2>conftest.err)
4813
- cat conftest.err >&AS_MESSAGE_LOG_FD
4814
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
4815
- if (exit $ac_status) && test -s "$ac_outfile"; then
4816
- # The compiler can only warn and ignore the option if not recognized
4817
- # So say no if there are warnings other than the usual output.
4818
- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
4819
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4820
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
4827
-if test x"[$]$2" = xyes; then
4828
- m4_if([$5], , :, [$5])
4830
- m4_if([$6], , :, [$6])
4832
-])# _LT_COMPILER_OPTION
4835
-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
4836
-dnl aclocal-1.4 backwards compatibility:
4837
-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
4840
-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
4841
-# [ACTION-SUCCESS], [ACTION-FAILURE])
4842
-# ----------------------------------------------------
4843
-# Check whether the given linker option works
4844
-AC_DEFUN([_LT_LINKER_OPTION],
4845
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4846
-m4_require([_LT_DECL_SED])dnl
4847
-AC_CACHE_CHECK([$1], [$2],
4849
- save_LDFLAGS="$LDFLAGS"
4850
- LDFLAGS="$LDFLAGS $3"
4851
- echo "$lt_simple_link_test_code" > conftest.$ac_ext
4852
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4853
- # The linker can only warn and ignore the option if not recognized
4854
- # So say no if there are warnings
4855
- if test -s conftest.err; then
4856
- # Append any errors to the config.log.
4857
- cat conftest.err 1>&AS_MESSAGE_LOG_FD
4858
- $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
4859
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4860
- if diff conftest.exp conftest.er2 >/dev/null; then
4868
- LDFLAGS="$save_LDFLAGS"
4871
-if test x"[$]$2" = xyes; then
4872
- m4_if([$4], , :, [$4])
4874
- m4_if([$5], , :, [$5])
4876
-])# _LT_LINKER_OPTION
4879
-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
4880
-dnl aclocal-1.4 backwards compatibility:
4881
-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
4886
-AC_DEFUN([LT_CMD_MAX_LEN],
4887
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4888
-# find the maximum length of command line arguments
4889
-AC_MSG_CHECKING([the maximum length of command line arguments])
4890
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
4896
- # On DJGPP, this test can blow up pretty badly due to problems in libc
4897
- # (any single argument exceeding 2000 bytes causes a buffer overrun
4898
- # during glob expansion). Even if it were fixed, the result of this
4899
- # check would be larger than it should be.
4900
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
4904
- # Under GNU Hurd, this test is not required because there is
4905
- # no limit to the length of command line arguments.
4906
- # Libtool will interpret -1 as no limit whatsoever
4907
- lt_cv_sys_max_cmd_len=-1;
4910
- cygwin* | mingw* | cegcc*)
4911
- # On Win9x/ME, this test blows up -- it succeeds, but takes
4912
- # about 5 minutes as the teststring grows exponentially.
4913
- # Worse, since 9x/ME are not pre-emptively multitasking,
4914
- # you end up with a "frozen" computer, even though with patience
4915
- # the test eventually succeeds (with a max line length of 256k).
4916
- # Instead, let's just punt: use the minimum linelength reported by
4917
- # all of the supported platforms: 8192 (on NT/2K/XP).
4918
- lt_cv_sys_max_cmd_len=8192;
4922
- # On AmigaOS with pdksh, this test takes hours, literally.
4923
- # So we just punt and use a minimum line length of 8192.
4924
- lt_cv_sys_max_cmd_len=8192;
4927
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4928
- # This has been around since 386BSD, at least. Likely further.
4929
- if test -x /sbin/sysctl; then
4930
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4931
- elif test -x /usr/sbin/sysctl; then
4932
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4934
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4936
- # And add a safety zone
4937
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4938
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4942
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
4943
- lt_cv_sys_max_cmd_len=196608
4947
- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4948
- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4949
- # nice to cause kernel panics so lets avoid the loop below.
4950
- # First set a reasonable default.
4951
- lt_cv_sys_max_cmd_len=16384
4953
- if test -x /sbin/sysconfig; then
4954
- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4955
- *1*) lt_cv_sys_max_cmd_len=-1 ;;
4960
- lt_cv_sys_max_cmd_len=102400
4962
- sysv5* | sco5v6* | sysv4.2uw2*)
4963
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4964
- if test -n "$kargmax"; then
4965
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
4967
- lt_cv_sys_max_cmd_len=32768
4971
- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4972
- if test -n "$lt_cv_sys_max_cmd_len"; then
4973
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4974
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4976
- # Make teststring a little bigger before we do anything with it.
4977
- # a 1K string should be a reasonable start.
4978
- for i in 1 2 3 4 5 6 7 8 ; do
4979
- teststring=$teststring$teststring
4981
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4982
- # If test is not a shell built-in, we'll probably end up computing a
4983
- # maximum length that is only half of the actual maximum length, but
4985
- while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4986
- = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4987
- test $i != 17 # 1/2 MB should be enough
4990
- teststring=$teststring$teststring
4992
- # Only check the string length outside the loop.
4993
- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4995
- # Add a significant safety factor because C++ compilers can tack on
4996
- # massive amounts of additional arguments before passing them to the
4997
- # linker. It appears as though 1/2 is a usable value.
4998
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5003
-if test -n $lt_cv_sys_max_cmd_len ; then
5004
- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
5006
- AC_MSG_RESULT(none)
5008
-max_cmd_len=$lt_cv_sys_max_cmd_len
5009
-_LT_DECL([], [max_cmd_len], [0],
5010
- [What is the maximum length of a command?])
5014
-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
5015
-dnl aclocal-1.4 backwards compatibility:
5016
-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
5021
-m4_defun([_LT_HEADER_DLFCN],
5022
-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
5023
-])# _LT_HEADER_DLFCN
5026
-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
5027
-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
5028
-# ----------------------------------------------------------------
5029
-m4_defun([_LT_TRY_DLOPEN_SELF],
5030
-[m4_require([_LT_HEADER_DLFCN])dnl
5031
-if test "$cross_compiling" = yes; then :
5034
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5035
- lt_status=$lt_dlunknown
5036
- cat > conftest.$ac_ext <<_LT_EOF
5037
-[#line __oline__ "configure"
5038
-#include "confdefs.h"
5047
-# define LT_DLGLOBAL RTLD_GLOBAL
5050
-# define LT_DLGLOBAL DL_GLOBAL
5052
-# define LT_DLGLOBAL 0
5056
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5057
- find out it does not work in some platform. */
5058
-#ifndef LT_DLLAZY_OR_NOW
5060
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
5063
-# define LT_DLLAZY_OR_NOW DL_LAZY
5066
-# define LT_DLLAZY_OR_NOW RTLD_NOW
5069
-# define LT_DLLAZY_OR_NOW DL_NOW
5071
-# define LT_DLLAZY_OR_NOW 0
5078
-void fnord() { int i=42;}
5081
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5082
- int status = $lt_dlunknown;
5086
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5087
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5088
- /* dlclose (self); */
5091
- puts (dlerror ());
5096
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
5097
- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
5099
- case x$lt_status in
5100
- x$lt_dlno_uscore) $1 ;;
5101
- x$lt_dlneed_uscore) $2 ;;
5102
- x$lt_dlunknown|x*) $3 ;;
5105
- # compilation failed
5110
-])# _LT_TRY_DLOPEN_SELF
5113
-# LT_SYS_DLOPEN_SELF
5114
-# ------------------
5115
-AC_DEFUN([LT_SYS_DLOPEN_SELF],
5116
-[m4_require([_LT_HEADER_DLFCN])dnl
5117
-if test "x$enable_dlopen" != xyes; then
5118
- enable_dlopen=unknown
5119
- enable_dlopen_self=unknown
5120
- enable_dlopen_self_static=unknown
5123
- lt_cv_dlopen_libs=
5127
- lt_cv_dlopen="load_add_on"
5128
- lt_cv_dlopen_libs=
5129
- lt_cv_dlopen_self=yes
5132
- mingw* | pw32* | cegcc*)
5133
- lt_cv_dlopen="LoadLibrary"
5134
- lt_cv_dlopen_libs=
5138
- lt_cv_dlopen="dlopen"
5139
- lt_cv_dlopen_libs=
5143
- # if libdl is installed we need to link against it
5144
- AC_CHECK_LIB([dl], [dlopen],
5145
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
5146
- lt_cv_dlopen="dyld"
5147
- lt_cv_dlopen_libs=
5148
- lt_cv_dlopen_self=yes
5153
- AC_CHECK_FUNC([shl_load],
5154
- [lt_cv_dlopen="shl_load"],
5155
- [AC_CHECK_LIB([dld], [shl_load],
5156
- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
5157
- [AC_CHECK_FUNC([dlopen],
5158
- [lt_cv_dlopen="dlopen"],
5159
- [AC_CHECK_LIB([dl], [dlopen],
5160
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
5161
- [AC_CHECK_LIB([svld], [dlopen],
5162
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
5163
- [AC_CHECK_LIB([dld], [dld_link],
5164
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
5173
- if test "x$lt_cv_dlopen" != xno; then
5179
- case $lt_cv_dlopen in
5181
- save_CPPFLAGS="$CPPFLAGS"
5182
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5184
- save_LDFLAGS="$LDFLAGS"
5185
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5188
- LIBS="$lt_cv_dlopen_libs $LIBS"
5190
- AC_CACHE_CHECK([whether a program can dlopen itself],
5191
- lt_cv_dlopen_self, [dnl
5192
- _LT_TRY_DLOPEN_SELF(
5193
- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
5194
- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
5197
- if test "x$lt_cv_dlopen_self" = xyes; then
5198
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5199
- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
5200
- lt_cv_dlopen_self_static, [dnl
5201
- _LT_TRY_DLOPEN_SELF(
5202
- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
5203
- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
5207
- CPPFLAGS="$save_CPPFLAGS"
5208
- LDFLAGS="$save_LDFLAGS"
5213
- case $lt_cv_dlopen_self in
5214
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5215
- *) enable_dlopen_self=unknown ;;
5218
- case $lt_cv_dlopen_self_static in
5219
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5220
- *) enable_dlopen_self_static=unknown ;;
5223
-_LT_DECL([dlopen_support], [enable_dlopen], [0],
5224
- [Whether dlopen is supported])
5225
-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
5226
- [Whether dlopen of programs is supported])
5227
-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
5228
- [Whether dlopen of statically linked programs is supported])
5229
-])# LT_SYS_DLOPEN_SELF
5232
-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
5233
-dnl aclocal-1.4 backwards compatibility:
5234
-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
5237
-# _LT_COMPILER_C_O([TAGNAME])
5238
-# ---------------------------
5239
-# Check to see if options -c and -o are simultaneously supported by compiler.
5240
-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
5241
-m4_defun([_LT_COMPILER_C_O],
5242
-[m4_require([_LT_DECL_SED])dnl
5243
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5244
-m4_require([_LT_TAG_COMPILER])dnl
5245
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
5246
- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
5247
- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
5248
- $RM -r conftest 2>/dev/null
5252
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5254
- lt_compiler_flag="-o out/conftest2.$ac_objext"
5255
- # Insert the option either (1) after the last *FLAGS variable, or
5256
- # (2) before a word containing "conftest.", or (3) at the end.
5257
- # Note that $ac_compile itself does not contain backslashes and begins
5258
- # with a dollar sign (not a hyphen), so the echo should work correctly.
5259
- lt_compile=`echo "$ac_compile" | $SED \
5260
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5261
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
5262
- -e 's:$: $lt_compiler_flag:'`
5263
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
5264
- (eval "$lt_compile" 2>out/conftest.err)
5266
- cat out/conftest.err >&AS_MESSAGE_LOG_FD
5267
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
5268
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
5270
- # The compiler can only warn and ignore the option if not recognized
5271
- # So say no if there are warnings
5272
- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
5273
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5274
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5275
- _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5278
- chmod u+w . 2>&AS_MESSAGE_LOG_FD
5280
- # SGI C++ compiler will create directory out/ii_files/ for
5281
- # template instantiation
5282
- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
5283
- $RM out/* && rmdir out
5288
-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
5289
- [Does compiler simultaneously support -c and -o options?])
5290
-])# _LT_COMPILER_C_O
5293
-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
5294
-# ----------------------------------
5295
-# Check to see if we can do hard links to lock some files if needed
5296
-m4_defun([_LT_COMPILER_FILE_LOCKS],
5297
-[m4_require([_LT_ENABLE_LOCK])dnl
5298
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5299
-_LT_COMPILER_C_O([$1])
5301
-hard_links="nottested"
5302
-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
5303
- # do not overwrite the value of need_locks provided by the user
5304
- AC_MSG_CHECKING([if we can lock with hard links])
5307
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
5309
- ln conftest.a conftest.b 2>&5 || hard_links=no
5310
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
5311
- AC_MSG_RESULT([$hard_links])
5312
- if test "$hard_links" = no; then
5313
- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
5319
-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
5320
-])# _LT_COMPILER_FILE_LOCKS
5325
-m4_defun([_LT_CHECK_OBJDIR],
5326
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
5327
-[rm -f .libs 2>/dev/null
5328
-mkdir .libs 2>/dev/null
5329
-if test -d .libs; then
5330
- lt_cv_objdir=.libs
5332
- # MS-DOS does not allow filenames that begin with a dot.
5333
- lt_cv_objdir=_libs
5335
-rmdir .libs 2>/dev/null])
5336
-objdir=$lt_cv_objdir
5337
-_LT_DECL([], [objdir], [0],
5338
- [The name of the directory that contains temporary libtool files])dnl
5339
-m4_pattern_allow([LT_OBJDIR])dnl
5340
-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
5341
- [Define to the sub-directory in which libtool stores uninstalled libraries.])
5342
-])# _LT_CHECK_OBJDIR
5345
-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
5346
-# --------------------------------------
5347
-# Check hardcoding attributes.
5348
-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
5349
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
5350
-_LT_TAGVAR(hardcode_action, $1)=
5351
-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
5352
- test -n "$_LT_TAGVAR(runpath_var, $1)" ||
5353
- test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
5355
- # We can hardcode non-existent directories.
5356
- if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
5357
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
5358
- # have to relink, otherwise we might link with an installed library
5359
- # when we should be linking with a yet-to-be-installed one
5360
- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
5361
- test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
5362
- # Linking always hardcodes the temporary library directory.
5363
- _LT_TAGVAR(hardcode_action, $1)=relink
5365
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
5366
- _LT_TAGVAR(hardcode_action, $1)=immediate
5369
- # We cannot hardcode anything, or else we can only hardcode existing
5371
- _LT_TAGVAR(hardcode_action, $1)=unsupported
5373
-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
5375
-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
5376
- test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
5377
- # Fast installation is not supported
5378
- enable_fast_install=no
5379
-elif test "$shlibpath_overrides_runpath" = yes ||
5380
- test "$enable_shared" = no; then
5381
- # Fast installation is not necessary
5382
- enable_fast_install=needless
5384
-_LT_TAGDECL([], [hardcode_action], [0],
5385
- [How to hardcode a shared library path into an executable])
5386
-])# _LT_LINKER_HARDCODE_LIBPATH
5391
-m4_defun([_LT_CMD_STRIPLIB],
5392
-[m4_require([_LT_DECL_EGREP])
5395
-AC_MSG_CHECKING([whether stripping libraries is possible])
5396
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
5397
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5398
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5399
- AC_MSG_RESULT([yes])
5401
-# FIXME - insert some real tests, host_os isn't really good enough
5404
- if test -n "$STRIP" ; then
5405
- striplib="$STRIP -x"
5406
- old_striplib="$STRIP -S"
5407
- AC_MSG_RESULT([yes])
5409
- AC_MSG_RESULT([no])
5413
- AC_MSG_RESULT([no])
5417
-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
5418
-_LT_DECL([], [striplib], [1])
5419
-])# _LT_CMD_STRIPLIB
5422
-# _LT_SYS_DYNAMIC_LINKER([TAG])
5423
-# -----------------------------
5424
-# PORTME Fill in your ld.so characteristics
5425
-m4_defun([_LT_SYS_DYNAMIC_LINKER],
5426
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5427
-m4_require([_LT_DECL_EGREP])dnl
5428
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5429
-m4_require([_LT_DECL_OBJDUMP])dnl
5430
-m4_require([_LT_DECL_SED])dnl
5431
-AC_MSG_CHECKING([dynamic linker characteristics])
5434
-if test "$GCC" = yes; then
5436
- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
5437
- *) lt_awk_arg="/^libraries:/" ;;
5439
- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5440
- if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
5441
- # if the path contains ";" then we assume it to be the separator
5442
- # otherwise default to the standard path separator (i.e. ":") - it is
5443
- # assumed that no part of a normal pathname contains ";" but that should
5444
- # okay in the real world where ";" in dirpaths is itself problematic.
5445
- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
5447
- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5449
- # Ok, now we have the path, separated by spaces, we can step through it
5450
- # and add multilib dir if necessary.
5451
- lt_tmp_lt_search_path_spec=
5452
- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
5453
- for lt_sys_path in $lt_search_path_spec; do
5454
- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
5455
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
5457
- test -d "$lt_sys_path" && \
5458
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
5461
- lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
5462
-BEGIN {RS=" "; FS="/|\n";} {
5465
- for (lt_i = NF; lt_i > 0; lt_i--) {
5466
- if ($lt_i != "" && $lt_i != ".") {
5467
- if ($lt_i == "..") {
5470
- if (lt_count == 0) {
5471
- lt_foo="/" $lt_i lt_foo;
5478
- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
5479
- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
5481
- sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
5483
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5485
-library_names_spec=
5486
-libname_spec='lib$name'
5490
-postuninstall_cmds=
5494
-shlibpath_overrides_runpath=unknown
5496
-dynamic_linker="$host_os ld.so"
5497
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
5498
-need_lib_prefix=unknown
5499
-hardcode_into_libs=no
5501
-# when you set need_version to no, make sure it does not cause -set_version
5502
-# flags to be left without arguments
5503
-need_version=unknown
5507
- version_type=linux
5508
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5509
- shlibpath_var=LIBPATH
5511
- # AIX 3 has no versioning support, so we append a major version to the name.
5512
- soname_spec='${libname}${release}${shared_ext}$major'
5516
- version_type=linux
5517
- need_lib_prefix=no
5519
- hardcode_into_libs=yes
5520
- if test "$host_cpu" = ia64; then
5521
- # AIX 5 supports IA64
5522
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5523
- shlibpath_var=LD_LIBRARY_PATH
5525
- # With GCC up to 2.95.x, collect2 would create an import file
5526
- # for dependence libraries. The import file would start with
5527
- # the line `#! .'. This would cause the generated library to
5528
- # depend on `.', always an invalid library. This was fixed in
5529
- # development snapshots of GCC prior to 3.0.
5531
- aix4 | aix4.[[01]] | aix4.[[01]].*)
5532
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5534
- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
5537
- can_build_shared=no
5541
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5542
- # soname into executable. Probably we can add versioning support to
5543
- # collect2, so additional links can be useful in future.
5544
- if test "$aix_use_runtimelinking" = yes; then
5545
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5546
- # instead of lib<name>.a to let people know that these are not
5547
- # typical AIX shared libraries.
5548
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5550
- # We preserve .a as extension for shared libraries through AIX4.2
5551
- # and later when we are not doing run time linking.
5552
- library_names_spec='${libname}${release}.a $libname.a'
5553
- soname_spec='${libname}${release}${shared_ext}$major'
5555
- shlibpath_var=LIBPATH
5562
- # Since July 2007 AmigaOS4 officially supports .so libraries.
5563
- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
5564
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5567
- library_names_spec='$libname.ixlibrary $libname.a'
5568
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
5569
- 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'
5575
- library_names_spec='${libname}${shared_ext}'
5576
- dynamic_linker="$host_os ld.so"
5577
- shlibpath_var=LIBRARY_PATH
5581
- version_type=linux
5583
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5584
- soname_spec='${libname}${release}${shared_ext}$major'
5585
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5586
- shlibpath_var=LD_LIBRARY_PATH
5587
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5588
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5589
- # the default ld.so.conf also contains /usr/contrib/lib and
5590
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5591
- # libtool to hard-code these into programs
5594
-cygwin* | mingw* | pw32* | cegcc*)
5595
- version_type=windows
5596
- shrext_cmds=".dll"
5598
- need_lib_prefix=no
5600
- case $GCC,$host_os in
5601
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
5602
- library_names_spec='$libname.dll.a'
5603
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
5604
- postinstall_cmds='base_file=`basename \${file}`~
5605
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
5606
- dldir=$destdir/`dirname \$dlpath`~
5607
- test -d \$dldir || mkdir -p \$dldir~
5608
- $install_prog $dir/$dlname \$dldir/$dlname~
5609
- chmod a+x \$dldir/$dlname~
5610
- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
5611
- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
5613
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5614
- dlpath=$dir/\$dldll~
5616
- shlibpath_overrides_runpath=yes
5620
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5621
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
5622
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
5625
- # MinGW DLLs use traditional 'lib' prefix
5626
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
5627
- sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
5628
- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
5629
- # It is most probably a Windows format PATH printed by
5630
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
5631
- # path with ; separators, and with drive letters. We can handle the
5632
- # drive letters (cygwin fileutils understands them), so leave them,
5633
- # especially as we might pass files found there to a mingw objdump,
5634
- # which wouldn't understand a cygwinified path. Ahh.
5635
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5637
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5641
- # pw32 DLLs use 'pw' prefix rather than 'lib'
5642
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
5648
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
5651
- dynamic_linker='Win32 ld.exe'
5652
- # FIXME: first we should search . and the directory the executable is in
5653
- shlibpath_var=PATH
5656
-darwin* | rhapsody*)
5657
- dynamic_linker="$host_os dyld"
5658
- version_type=darwin
5659
- need_lib_prefix=no
5661
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5662
- soname_spec='${libname}${release}${major}$shared_ext'
5663
- shlibpath_overrides_runpath=yes
5664
- shlibpath_var=DYLD_LIBRARY_PATH
5665
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5667
- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
5668
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5672
- version_type=linux
5673
- need_lib_prefix=no
5675
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5676
- soname_spec='${libname}${release}${shared_ext}$major'
5677
- shlibpath_var=LD_LIBRARY_PATH
5684
-freebsd* | dragonfly*)
5685
- # DragonFly does not have aout. When/if they implement a new
5686
- # versioning mechanism, adjust this.
5687
- if test -x /usr/bin/objformat; then
5688
- objformat=`/usr/bin/objformat`
5691
- freebsd[[123]]*) objformat=aout ;;
5692
- *) objformat=elf ;;
5695
- version_type=freebsd-$objformat
5696
- case $version_type in
5698
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5700
- need_lib_prefix=no
5703
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5707
- shlibpath_var=LD_LIBRARY_PATH
5710
- shlibpath_overrides_runpath=yes
5712
- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
5713
- shlibpath_overrides_runpath=yes
5714
- hardcode_into_libs=yes
5716
- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
5717
- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
5718
- shlibpath_overrides_runpath=no
5719
- hardcode_into_libs=yes
5721
- *) # from 4.6 on, and DragonFly
5722
- shlibpath_overrides_runpath=yes
5723
- hardcode_into_libs=yes
5729
- version_type=linux
5730
- need_lib_prefix=no
5732
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5733
- soname_spec='${libname}${release}${shared_ext}$major'
5734
- shlibpath_var=LD_LIBRARY_PATH
5735
- hardcode_into_libs=yes
5738
-hpux9* | hpux10* | hpux11*)
5739
- # Give a soname corresponding to the major version so that dld.sl refuses to
5740
- # link against other versions.
5741
- version_type=sunos
5742
- need_lib_prefix=no
5747
- hardcode_into_libs=yes
5748
- dynamic_linker="$host_os dld.so"
5749
- shlibpath_var=LD_LIBRARY_PATH
5750
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5751
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5752
- soname_spec='${libname}${release}${shared_ext}$major'
5753
- if test "X$HPUX_IA64_MODE" = X32; then
5754
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5756
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5758
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5762
- hardcode_into_libs=yes
5763
- dynamic_linker="$host_os dld.sl"
5764
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5765
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5766
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5767
- soname_spec='${libname}${release}${shared_ext}$major'
5768
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5769
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5773
- dynamic_linker="$host_os dld.sl"
5774
- shlibpath_var=SHLIB_PATH
5775
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5776
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5777
- soname_spec='${libname}${release}${shared_ext}$major'
5780
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
5781
- postinstall_cmds='chmod 555 $lib'
5785
- version_type=linux
5786
- need_lib_prefix=no
5788
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5789
- soname_spec='${libname}${release}${shared_ext}$major'
5790
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
5791
- shlibpath_var=LD_LIBRARY_PATH
5792
- shlibpath_overrides_runpath=no
5793
- hardcode_into_libs=yes
5796
-irix5* | irix6* | nonstopux*)
5798
- nonstopux*) version_type=nonstopux ;;
5800
- if test "$lt_cv_prog_gnu_ld" = yes; then
5801
- version_type=linux
5806
- need_lib_prefix=no
5808
- soname_spec='${libname}${release}${shared_ext}$major'
5809
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5811
- irix5* | nonstopux*)
5812
- libsuff= shlibsuff=
5815
- case $LD in # libtool.m4 will add one of these switches to LD
5816
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5817
- libsuff= shlibsuff= libmagic=32-bit;;
5818
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5819
- libsuff=32 shlibsuff=N32 libmagic=N32;;
5820
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5821
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
5822
- *) libsuff= shlibsuff= libmagic=never-match;;
5826
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5827
- shlibpath_overrides_runpath=no
5828
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5829
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5830
- hardcode_into_libs=yes
5833
-# No shared lib support for Linux oldld, aout, or coff.
5834
-linux*oldld* | linux*aout* | linux*coff*)
5838
-# This must be Linux ELF.
5839
-linux* | k*bsd*-gnu)
5840
- version_type=linux
5841
- need_lib_prefix=no
5843
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5844
- soname_spec='${libname}${release}${shared_ext}$major'
5845
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5846
- shlibpath_var=LD_LIBRARY_PATH
5847
- shlibpath_overrides_runpath=no
5848
- # Some binutils ld are patched to set DT_RUNPATH
5849
- save_LDFLAGS=$LDFLAGS
5850
- save_libdir=$libdir
5851
- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
5852
- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
5853
- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
5854
- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
5855
- [shlibpath_overrides_runpath=yes])])
5856
- LDFLAGS=$save_LDFLAGS
5857
- libdir=$save_libdir
5859
- # This implies no fast_install, which is unacceptable.
5860
- # Some rework will be needed to allow for fast_install
5861
- # before this can be enabled.
5862
- hardcode_into_libs=yes
5864
- # Append ld.so.conf contents to the search path
5865
- if test -f /etc/ld.so.conf; then
5866
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
5867
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
5870
- # We used to test for /lib/ld.so.1 and disable shared libraries on
5871
- # powerpc, because MkLinux only supported shared libraries with the
5872
- # GNU dynamic linker. Since this was broken with cross compilers,
5873
- # most powerpc-linux boxes support dynamic linking these days and
5874
- # people can always --disable-shared, the test was removed, and we
5875
- # assume the GNU/Linux dynamic linker is in use.
5876
- dynamic_linker='GNU/Linux ld.so'
5880
- version_type=sunos
5881
- need_lib_prefix=no
5883
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5884
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5885
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5886
- dynamic_linker='NetBSD (a.out) ld.so'
5888
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5889
- soname_spec='${libname}${release}${shared_ext}$major'
5890
- dynamic_linker='NetBSD ld.elf_so'
5892
- shlibpath_var=LD_LIBRARY_PATH
5893
- shlibpath_overrides_runpath=yes
5894
- hardcode_into_libs=yes
5898
- version_type=linux
5899
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5900
- shlibpath_var=LD_LIBRARY_PATH
5901
- shlibpath_overrides_runpath=yes
5906
- need_lib_prefix=no
5908
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5909
- soname_spec='${libname}${release}${shared_ext}$major'
5910
- shlibpath_var=LD_LIBRARY_PATH
5911
- shlibpath_overrides_runpath=no
5912
- hardcode_into_libs=yes
5913
- dynamic_linker='ldqnx.so'
5917
- version_type=sunos
5918
- sys_lib_dlsearch_path_spec="/usr/lib"
5919
- need_lib_prefix=no
5920
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
5922
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
5923
- *) need_version=no ;;
5925
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5926
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5927
- shlibpath_var=LD_LIBRARY_PATH
5928
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5930
- openbsd2.[[89]] | openbsd2.[[89]].*)
5931
- shlibpath_overrides_runpath=no
5934
- shlibpath_overrides_runpath=yes
5938
- shlibpath_overrides_runpath=yes
5943
- libname_spec='$name'
5944
- shrext_cmds=".dll"
5945
- need_lib_prefix=no
5946
- library_names_spec='$libname${shared_ext} $libname.a'
5947
- dynamic_linker='OS/2 ld.exe'
5948
- shlibpath_var=LIBPATH
5951
-osf3* | osf4* | osf5*)
5953
- need_lib_prefix=no
5955
- soname_spec='${libname}${release}${shared_ext}$major'
5956
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5957
- shlibpath_var=LD_LIBRARY_PATH
5958
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5959
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5967
- version_type=linux
5968
- need_lib_prefix=no
5970
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5971
- soname_spec='${libname}${release}${shared_ext}$major'
5972
- shlibpath_var=LD_LIBRARY_PATH
5973
- shlibpath_overrides_runpath=yes
5974
- hardcode_into_libs=yes
5975
- # ldd complains unless libraries are executable
5976
- postinstall_cmds='chmod +x $lib'
5980
- version_type=sunos
5981
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5982
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5983
- shlibpath_var=LD_LIBRARY_PATH
5984
- shlibpath_overrides_runpath=yes
5985
- if test "$with_gnu_ld" = yes; then
5986
- need_lib_prefix=no
5992
- version_type=linux
5993
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5994
- soname_spec='${libname}${release}${shared_ext}$major'
5995
- shlibpath_var=LD_LIBRARY_PATH
5996
- case $host_vendor in
5998
- shlibpath_overrides_runpath=no
5999
- need_lib_prefix=no
6000
- runpath_var=LD_RUN_PATH
6003
- need_lib_prefix=no
6006
- need_lib_prefix=no
6008
- shlibpath_overrides_runpath=no
6009
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6015
- if test -d /usr/nec ;then
6016
- version_type=linux
6017
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6018
- soname_spec='$libname${shared_ext}.$major'
6019
- shlibpath_var=LD_LIBRARY_PATH
6023
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6024
- version_type=freebsd-elf
6025
- need_lib_prefix=no
6027
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6028
- soname_spec='${libname}${release}${shared_ext}$major'
6029
- shlibpath_var=LD_LIBRARY_PATH
6030
- shlibpath_overrides_runpath=yes
6031
- hardcode_into_libs=yes
6032
- if test "$with_gnu_ld" = yes; then
6033
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
6035
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
6038
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
6042
- sys_lib_dlsearch_path_spec='/usr/lib'
6046
- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
6047
- version_type=linux
6048
- need_lib_prefix=no
6050
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6051
- shlibpath_var=LD_LIBRARY_PATH
6052
- shlibpath_overrides_runpath=no
6053
- hardcode_into_libs=yes
6057
- version_type=linux
6058
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6059
- soname_spec='${libname}${release}${shared_ext}$major'
6060
- shlibpath_var=LD_LIBRARY_PATH
6067
-AC_MSG_RESULT([$dynamic_linker])
6068
-test "$dynamic_linker" = no && can_build_shared=no
6070
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6071
-if test "$GCC" = yes; then
6072
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6075
-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
6076
- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
6078
-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
6079
- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
6082
-_LT_DECL([], [variables_saved_for_relink], [1],
6083
- [Variables whose values should be saved in libtool wrapper scripts and
6084
- restored at link time])
6085
-_LT_DECL([], [need_lib_prefix], [0],
6086
- [Do we need the "lib" prefix for modules?])
6087
-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
6088
-_LT_DECL([], [version_type], [0], [Library versioning type])
6089
-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
6090
-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
6091
-_LT_DECL([], [shlibpath_overrides_runpath], [0],
6092
- [Is shlibpath searched before the hard-coded library search path?])
6093
-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
6094
-_LT_DECL([], [library_names_spec], [1],
6095
- [[List of archive names. First name is the real one, the rest are links.
6096
- The last name is the one that the linker finds with -lNAME]])
6097
-_LT_DECL([], [soname_spec], [1],
6098
- [[The coded name of the library, if different from the real name]])
6099
-_LT_DECL([], [postinstall_cmds], [2],
6100
- [Command to use after installation of a shared archive])
6101
-_LT_DECL([], [postuninstall_cmds], [2],
6102
- [Command to use after uninstallation of a shared archive])
6103
-_LT_DECL([], [finish_cmds], [2],
6104
- [Commands used to finish a libtool library installation in a directory])
6105
-_LT_DECL([], [finish_eval], [1],
6106
- [[As "finish_cmds", except a single script fragment to be evaled but
6108
-_LT_DECL([], [hardcode_into_libs], [0],
6109
- [Whether we should hardcode library paths into libraries])
6110
-_LT_DECL([], [sys_lib_search_path_spec], [2],
6111
- [Compile-time system search path for libraries])
6112
-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
6113
- [Run-time system search path for libraries])
6114
-])# _LT_SYS_DYNAMIC_LINKER
6117
-# _LT_PATH_TOOL_PREFIX(TOOL)
6118
-# --------------------------
6119
-# find a file program which can recognize shared library
6120
-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
6121
-[m4_require([_LT_DECL_EGREP])dnl
6122
-AC_MSG_CHECKING([for $1])
6123
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
6124
-[case $MAGIC_CMD in
6125
-[[\\/*] | ?:[\\/]*])
6126
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6129
- lt_save_MAGIC_CMD="$MAGIC_CMD"
6130
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6131
-dnl $ac_dummy forces splitting on constant user-supplied paths.
6132
-dnl POSIX.2 word splitting is done only on the output of word expansions,
6133
-dnl not every word. This closes a longstanding sh security hole.
6134
- ac_dummy="m4_if([$2], , $PATH, [$2])"
6135
- for ac_dir in $ac_dummy; do
6136
- IFS="$lt_save_ifs"
6137
- test -z "$ac_dir" && ac_dir=.
6138
- if test -f $ac_dir/$1; then
6139
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
6140
- if test -n "$file_magic_test_file"; then
6141
- case $deplibs_check_method in
6143
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6144
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6145
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6146
- $EGREP "$file_magic_regex" > /dev/null; then
6149
- cat <<_LT_EOF 1>&2
6151
-*** Warning: the command libtool uses to detect shared libraries,
6152
-*** $file_magic_cmd, produces output that libtool cannot recognize.
6153
-*** The result is that libtool may fail to recognize shared libraries
6154
-*** as such. This will affect the creation of libtool libraries that
6155
-*** depend on shared libraries, but programs linked with such libtool
6156
-*** libraries will work regardless of this problem. Nevertheless, you
6157
-*** may want to report the problem to your system manager and/or to
6158
-*** bug-libtool@gnu.org
6167
- IFS="$lt_save_ifs"
6168
- MAGIC_CMD="$lt_save_MAGIC_CMD"
6171
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6172
-if test -n "$MAGIC_CMD"; then
6173
- AC_MSG_RESULT($MAGIC_CMD)
6177
-_LT_DECL([], [MAGIC_CMD], [0],
6178
- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
6179
-])# _LT_PATH_TOOL_PREFIX
6182
-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
6183
-dnl aclocal-1.4 backwards compatibility:
6184
-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
6189
-# find a file program which can recognize a shared library
6190
-m4_defun([_LT_PATH_MAGIC],
6191
-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
6192
-if test -z "$lt_cv_path_MAGIC_CMD"; then
6193
- if test -n "$ac_tool_prefix"; then
6194
- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
6204
-# find the pathname to the GNU or non-GNU linker
6205
-AC_DEFUN([LT_PATH_LD],
6206
-[AC_REQUIRE([AC_PROG_CC])dnl
6207
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
6208
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
6209
-m4_require([_LT_DECL_SED])dnl
6210
-m4_require([_LT_DECL_EGREP])dnl
6212
-AC_ARG_WITH([gnu-ld],
6213
- [AS_HELP_STRING([--with-gnu-ld],
6214
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
6215
- [test "$withval" = no || with_gnu_ld=yes],
6216
- [with_gnu_ld=no])dnl
6219
-if test "$GCC" = yes; then
6220
- # Check if gcc -print-prog-name=ld gives a path.
6221
- AC_MSG_CHECKING([for ld used by $CC])
6224
- # gcc leaves a trailing carriage return which upsets mingw
6225
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6227
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6230
- # Accept absolute paths.
6231
- [[\\/]]* | ?:[[\\/]]*)
6232
- re_direlt='/[[^/]][[^/]]*/\.\./'
6233
- # Canonicalize the pathname of ld
6234
- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6235
- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6236
- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6238
- test -z "$LD" && LD="$ac_prog"
6241
- # If it fails, then pretend we aren't using GCC.
6245
- # If it is relative, then search for the first ld in PATH.
6246
- with_gnu_ld=unknown
6249
-elif test "$with_gnu_ld" = yes; then
6250
- AC_MSG_CHECKING([for GNU ld])
6252
- AC_MSG_CHECKING([for non-GNU ld])
6254
-AC_CACHE_VAL(lt_cv_path_LD,
6255
-[if test -z "$LD"; then
6256
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6257
- for ac_dir in $PATH; do
6258
- IFS="$lt_save_ifs"
6259
- test -z "$ac_dir" && ac_dir=.
6260
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6261
- lt_cv_path_LD="$ac_dir/$ac_prog"
6262
- # Check to see if the program is GNU ld. I'd rather use --version,
6263
- # but apparently some variants of GNU ld only accept -v.
6264
- # Break only if it was the GNU/non-GNU ld that we prefer.
6265
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6266
- *GNU* | *'with BFD'*)
6267
- test "$with_gnu_ld" != no && break
6270
- test "$with_gnu_ld" != yes && break
6275
- IFS="$lt_save_ifs"
6277
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
6279
-LD="$lt_cv_path_LD"
6280
-if test -n "$LD"; then
6281
- AC_MSG_RESULT($LD)
6285
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
6289
-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
6293
-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
6294
-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
6295
-dnl aclocal-1.4 backwards compatibility:
6296
-dnl AC_DEFUN([AM_PROG_LD], [])
6297
-dnl AC_DEFUN([AC_PROG_LD], [])
6302
-m4_defun([_LT_PATH_LD_GNU],
6303
-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
6304
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
6305
-case `$LD -v 2>&1 </dev/null` in
6306
-*GNU* | *'with BFD'*)
6307
- lt_cv_prog_gnu_ld=yes
6310
- lt_cv_prog_gnu_ld=no
6313
-with_gnu_ld=$lt_cv_prog_gnu_ld
6314
-])# _LT_PATH_LD_GNU
6319
-# find reload flag for linker
6320
-# -- PORTME Some linkers may need a different reload flag.
6321
-m4_defun([_LT_CMD_RELOAD],
6322
-[AC_CACHE_CHECK([for $LD option to reload object files],
6323
- lt_cv_ld_reload_flag,
6324
- [lt_cv_ld_reload_flag='-r'])
6325
-reload_flag=$lt_cv_ld_reload_flag
6326
-case $reload_flag in
6328
-*) reload_flag=" $reload_flag" ;;
6330
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
6333
- if test "$GCC" = yes; then
6334
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6336
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
6340
-_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
6341
-_LT_DECL([], [reload_cmds], [2])dnl
6345
-# _LT_CHECK_MAGIC_METHOD
6346
-# ----------------------
6347
-# how to check for library dependencies
6348
-# -- PORTME fill in with the dynamic library characteristics
6349
-m4_defun([_LT_CHECK_MAGIC_METHOD],
6350
-[m4_require([_LT_DECL_EGREP])
6351
-m4_require([_LT_DECL_OBJDUMP])
6352
-AC_CACHE_CHECK([how to recognize dependent libraries],
6353
-lt_cv_deplibs_check_method,
6354
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
6355
-lt_cv_file_magic_test_file=
6356
-lt_cv_deplibs_check_method='unknown'
6357
-# Need to set the preceding variable on all platforms that support
6358
-# interlibrary dependencies.
6359
-# 'none' -- dependencies not supported.
6360
-# `unknown' -- same as none, but documents that we really don't know.
6361
-# 'pass_all' -- all dependencies passed with no checks.
6362
-# 'test_compile' -- check by making test program.
6363
-# 'file_magic [[regex]]' -- check by looking for files in library path
6364
-# which responds to the $file_magic_cmd with a given extended regex.
6365
-# If you have `file' or equivalent on your system and you're not sure
6366
-# whether `pass_all' will *always* work, you probably want this one.
6370
- lt_cv_deplibs_check_method=pass_all
6374
- lt_cv_deplibs_check_method=pass_all
6378
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
6379
- lt_cv_file_magic_cmd='/usr/bin/file -L'
6380
- lt_cv_file_magic_test_file=/shlib/libc.so
6384
- # func_win32_libid is a shell function defined in ltmain.sh
6385
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6386
- lt_cv_file_magic_cmd='func_win32_libid'
6390
- # Base MSYS/MinGW do not provide the 'file' command needed by
6391
- # func_win32_libid shell function, so use a weaker test based on 'objdump',
6392
- # unless we find 'file', for example because we are cross-compiling.
6393
- if ( file / ) >/dev/null 2>&1; then
6394
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6395
- lt_cv_file_magic_cmd='func_win32_libid'
6397
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6398
- lt_cv_file_magic_cmd='$OBJDUMP -f'
6403
- # use the weaker test based on 'objdump'. See mingw*.
6404
- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6405
- lt_cv_file_magic_cmd='$OBJDUMP -f'
6408
-darwin* | rhapsody*)
6409
- lt_cv_deplibs_check_method=pass_all
6412
-freebsd* | dragonfly*)
6413
- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416
- # Not sure whether the presence of OpenBSD here was a mistake.
6417
- # Let's accept both of them until this is cleared up.
6418
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
6419
- lt_cv_file_magic_cmd=/usr/bin/file
6420
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6424
- lt_cv_deplibs_check_method=pass_all
6429
- lt_cv_deplibs_check_method=pass_all
6432
-hpux10.20* | hpux11*)
6433
- lt_cv_file_magic_cmd=/usr/bin/file
6436
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
6437
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6440
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
6441
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6444
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
6445
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6452
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
6455
-irix5* | irix6* | nonstopux*)
6457
- *-32|*"-32 ") libmagic=32-bit;;
6458
- *-n32|*"-n32 ") libmagic=N32;;
6459
- *-64|*"-64 ") libmagic=64-bit;;
6460
- *) libmagic=never-match;;
6462
- lt_cv_deplibs_check_method=pass_all
6465
-# This must be Linux ELF.
6466
-linux* | k*bsd*-gnu)
6467
- lt_cv_deplibs_check_method=pass_all
6471
- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6474
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
6479
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
6480
- lt_cv_file_magic_cmd=/usr/bin/file
6481
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
6485
- lt_cv_deplibs_check_method=pass_all
6489
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6490
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
6492
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6496
-osf3* | osf4* | osf5*)
6497
- lt_cv_deplibs_check_method=pass_all
6501
- lt_cv_deplibs_check_method=pass_all
6505
- lt_cv_deplibs_check_method=pass_all
6508
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6509
- lt_cv_deplibs_check_method=pass_all
6513
- case $host_vendor in
6515
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
6516
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6519
- lt_cv_deplibs_check_method=pass_all
6522
- lt_cv_file_magic_cmd='/bin/file'
6523
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
6526
- lt_cv_file_magic_cmd='/bin/file'
6527
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
6528
- lt_cv_file_magic_test_file=/lib/libc.so
6531
- lt_cv_deplibs_check_method=pass_all
6534
- lt_cv_deplibs_check_method=pass_all
6540
- lt_cv_deplibs_check_method=pass_all
6544
-file_magic_cmd=$lt_cv_file_magic_cmd
6545
-deplibs_check_method=$lt_cv_deplibs_check_method
6546
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
6548
-_LT_DECL([], [deplibs_check_method], [1],
6549
- [Method to check whether dependent libraries are shared objects])
6550
-_LT_DECL([], [file_magic_cmd], [1],
6551
- [Command to use when deplibs_check_method == "file_magic"])
6552
-])# _LT_CHECK_MAGIC_METHOD
6557
-# find the pathname to a BSD- or MS-compatible name lister
6558
-AC_DEFUN([LT_PATH_NM],
6559
-[AC_REQUIRE([AC_PROG_CC])dnl
6560
-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
6561
-[if test -n "$NM"; then
6562
- # Let the user override the test.
6563
- lt_cv_path_NM="$NM"
6565
- lt_nm_to_check="${ac_tool_prefix}nm"
6566
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6567
- lt_nm_to_check="$lt_nm_to_check nm"
6569
- for lt_tmp_nm in $lt_nm_to_check; do
6570
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6571
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6572
- IFS="$lt_save_ifs"
6573
- test -z "$ac_dir" && ac_dir=.
6574
- tmp_nm="$ac_dir/$lt_tmp_nm"
6575
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6576
- # Check to see if the nm accepts a BSD-compat flag.
6577
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6578
- # nm: unknown option "B" ignored
6579
- # Tru64's nm complains that /dev/null is an invalid object file
6580
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6581
- */dev/null* | *'Invalid file or object type'*)
6582
- lt_cv_path_NM="$tmp_nm -B"
6586
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6588
- lt_cv_path_NM="$tmp_nm -p"
6592
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6593
- continue # so that we can try to find one that supports BSD flags
6600
- IFS="$lt_save_ifs"
6602
- : ${lt_cv_path_NM=no}
6604
-if test "$lt_cv_path_NM" != "no"; then
6605
- NM="$lt_cv_path_NM"
6607
- # Didn't find any BSD compatible name lister, look for dumpbin.
6608
- AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
6609
- AC_SUBST([DUMPBIN])
6610
- if test "$DUMPBIN" != ":"; then
6614
-test -z "$NM" && NM=nm
6616
-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
6618
-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
6619
- [lt_cv_nm_interface="BSD nm"
6620
- echo "int some_variable = 0;" > conftest.$ac_ext
6621
- (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
6622
- (eval "$ac_compile" 2>conftest.err)
6623
- cat conftest.err >&AS_MESSAGE_LOG_FD
6624
- (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
6625
- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6626
- cat conftest.err >&AS_MESSAGE_LOG_FD
6627
- (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
6628
- cat conftest.out >&AS_MESSAGE_LOG_FD
6629
- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6630
- lt_cv_nm_interface="MS dumpbin"
6636
-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
6637
-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
6638
-dnl aclocal-1.4 backwards compatibility:
6639
-dnl AC_DEFUN([AM_PROG_NM], [])
6640
-dnl AC_DEFUN([AC_PROG_NM], [])
6645
-# check for math library
6646
-AC_DEFUN([LT_LIB_M],
6647
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6650
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
6651
- # These system don't have libm, or don't need it
6654
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
6655
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
6658
- AC_CHECK_LIB(m, cos, LIBM="-lm")
6665
-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
6666
-dnl aclocal-1.4 backwards compatibility:
6667
-dnl AC_DEFUN([AC_CHECK_LIBM], [])
6670
-# _LT_COMPILER_NO_RTTI([TAGNAME])
6671
-# -------------------------------
6672
-m4_defun([_LT_COMPILER_NO_RTTI],
6673
-[m4_require([_LT_TAG_COMPILER])dnl
6675
-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6677
-if test "$GCC" = yes; then
6678
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6680
- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4794
6681
- lt_cv_prog_compiler_rtti_exceptions,
4795
6682
- [-fno-rtti -fno-exceptions], [],
4796
- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6683
- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4798
-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4800
+ if test "$host_cpu" = ia64; then
4801
+ # On IA64, the linker does run time linking by default, so we don't
4802
+ # have to do anything special.
4803
+ aix_use_runtimelinking=no
4804
+ exp_sym_flag='-Bexport'
4807
+ # If we're using GNU nm, then we don't want the "-C" option.
4808
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
4809
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4810
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4812
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4814
+ aix_use_runtimelinking=no
4816
+ # Test if we are trying to use run time linking or normal
4817
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4818
+ # need to do runtime linking.
4819
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4820
+ for ld_flag in $LDFLAGS; do
4821
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4822
+ aix_use_runtimelinking=yes
4829
-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4830
-# ---------------------------------
4831
-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4832
-[AC_REQUIRE([AC_CANONICAL_HOST])
4833
-AC_REQUIRE([LT_AC_PROG_SED])
4834
-AC_REQUIRE([AC_PROG_NM])
4835
-AC_REQUIRE([AC_OBJEXT])
6685
-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
6686
- [Compiler flag to turn off builtin functions])
6687
-])# _LT_COMPILER_NO_RTTI
6690
-# _LT_CMD_GLOBAL_SYMBOLS
6691
-# ----------------------
6692
-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
6693
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6694
-AC_REQUIRE([AC_PROG_CC])dnl
6695
-AC_REQUIRE([LT_PATH_NM])dnl
6696
-AC_REQUIRE([LT_PATH_LD])dnl
6697
-m4_require([_LT_DECL_SED])dnl
6698
-m4_require([_LT_DECL_EGREP])dnl
6699
-m4_require([_LT_TAG_COMPILER])dnl
4836
6701
-# Check for command to grab the raw symbol name followed by C symbol from nm.
4837
6702
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4838
6703
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4840
6705
-# These are sane defaults that work on at least a few old systems.
4841
6706
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4842
+ exp_sym_flag='-bexport'
4843
+ no_entry_flag='-bnoentry'
4846
6708
-# Character class describing NM global symbol codes.
4847
6709
-symcode='[[BCDEGRST]]'
4848
+ # When large executables or shared objects are built, AIX ld can
4849
+ # have problems creating the table of contents. If linking a library
4850
+ # or program results in "error TOC overflow" add -mminimal-toc to
4851
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4852
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4854
6711
-# Regexp to match symbols that can be accessed directly from C.
4855
6712
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4856
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
4857
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4858
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4859
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4861
-# Transform an extracted symbol line into a proper C declaration
4862
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4863
+ if test "$GCC" = yes; then
4864
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
4865
+ # We only want to do this on AIX 4.2 and lower, the check
4866
+ # below for broken collect2 doesn't work under 4.3+
4867
+ collect2name=`${CC} -print-prog-name=collect2`
4868
+ if test -f "$collect2name" && \
4869
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
4871
+ # We have reworked collect2
4874
+ # We have old collect2
4875
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4876
+ # It fails to find uninstalled libraries when the uninstalled
4877
+ # path is not listed in the libpath. Setting hardcode_minus_L
4878
+ # to unsupported forces relinking
4879
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4880
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4881
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4885
+ shared_flag='-shared'
4886
+ if test "$aix_use_runtimelinking" = yes; then
4887
+ shared_flag="$shared_flag "'${wl}-G'
4891
+ if test "$host_cpu" = ia64; then
4892
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4893
+ # chokes on -Wl,-G. The following line is correct:
4896
+ if test "$aix_use_runtimelinking" = yes; then
4897
+ shared_flag='${wl}-G'
4899
+ shared_flag='${wl}-bM:SRE'
4904
-# Transform an extracted symbol line into symbol name and symbol address
4905
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4906
+ # It seems that -bexpall does not export symbols beginning with
4907
+ # underscore (_), so it is better to generate a list of symbols to export.
4908
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4909
+ if test "$aix_use_runtimelinking" = yes; then
4910
+ # Warning - without using the other runtime loading flags (-brtl),
4911
+ # -berok will link without error, but may produce a broken library.
4912
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4913
+ # Determine the default libpath from the value encoded in an empty executable.
4914
+ _LT_AC_SYS_LIBPATH_AIX
4915
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4916
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4918
+ if test "$host_cpu" = ia64; then
4919
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4920
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4921
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4923
+ # Determine the default libpath from the value encoded in an empty executable.
4924
+ _LT_AC_SYS_LIBPATH_AIX
4925
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4926
+ # Warning - without using the other run time loading flags,
4927
+ # -berok will link without error, but may produce a broken library.
4928
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4929
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4930
+ # Exported symbols can be pulled into shared objects from archives
4931
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4932
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4933
+ # This is similar to how AIX traditionally builds its shared libraries.
4934
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4939
6714
-# Define system-specific variables.
4940
6715
-case $host_os in
4942
6717
- symcode='[[BCDT]]'
4944
-cygwin* | mingw* | pw32*)
6719
-cygwin* | mingw* | pw32* | cegcc*)
4945
6720
- symcode='[[ABCDGISTW]]'
4947
-hpux*) # Its linker distinguishes data from code symbols
4948
6723
- if test "$host_cpu" = ia64; then
4949
6724
- symcode='[[ABCDEGRST]]'
4951
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4952
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4954
-linux* | k*bsd*-gnu)
4955
- if test "$host_cpu" = ia64; then
4956
- symcode='[[ABCDGIRSTW]]'
4957
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4958
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4961
6727
-irix* | nonstopux*)
4962
6728
- symcode='[[BCDEGRST]]'
6020
7355
- # +Z the default
6023
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7358
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6026
7361
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
6027
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7362
- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6029
+AC_DEFUN([LT_AC_PROG_GCJ],
6030
+[AC_CHECK_TOOL(GCJ, gcj, no)
6031
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6032
+ AC_SUBST(GCJFLAGS)
6035
7365
- irix5* | irix6* | nonstopux*)
6036
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7366
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6037
7367
- # PIC (with -KPIC) is the default.
6038
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6040
+AC_DEFUN([LT_AC_PROG_RC],
6041
+[AC_CHECK_TOOL(RC, windres, no)
6045
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6046
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7368
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6049
7371
- linux* | k*bsd*-gnu)
6050
7372
- case $cc_basename in
6052
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6053
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6054
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7373
- # old Intel for x86_64 which still supported -KPIC.
7375
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7376
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7377
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7379
- # icc used to be incompatible with GCC.
7380
- # ICC 10 doesn't accept -KPIC any more.
7382
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7383
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7384
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7386
- # Lahey Fortran 8.1.
7388
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7389
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
7390
- _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6056
7392
- pgcc* | pgf77* | pgf90* | pgf95*)
6057
7393
- # Portland Group compilers (*not* the Pentium gcc compiler,
6058
7394
- # which looks to be a dead project)
6059
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6060
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6061
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7395
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7396
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7397
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6064
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7400
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6065
7401
- # All Alpha code is PIC.
6066
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7402
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7405
- # IBM XL C 8.0/Fortran 10.1 on PPC
7406
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7407
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7408
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6069
- case `$CC -V 2>&1 | sed 5q` in
7411
- case `$CC -V 2>&1 | sed 5q` in
6072
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6073
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6074
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7414
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7415
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7416
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6077
7419
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
6078
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6079
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6080
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
7420
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7421
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7422
- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6086
+# Cheap backport of AS_EXECUTABLE_P and required macros
6087
+# from Autoconf 2.59; we should not use $as_executable_p directly.
7430
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7431
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7435
- # QNX uses GNU C++, but need to define -shared option too, otherwise
7436
- # it will coredump.
7437
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6089
7440
- osf3* | osf4* | osf5*)
6090
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7441
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6091
7442
- # All OSF/1 code is PIC.
6092
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7443
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6096
+m4_ifndef([_AS_TEST_PREPARE],
6097
+[m4_defun([_AS_TEST_PREPARE],
6098
+[if test -x / >/dev/null 2>&1; then
6099
+ as_executable_p='test -x'
6101
+ as_executable_p='test -f'
6103
+])])# _AS_TEST_PREPARE
6106
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7447
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6110
+# Check whether a file is executable.
6111
+m4_ifndef([AS_EXECUTABLE_P],
6112
+[m4_defun([AS_EXECUTABLE_P],
6113
+[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6114
+$as_executable_p $1[]dnl
6115
+])])# AS_EXECUTABLE_P
6118
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6119
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7451
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7452
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6120
7453
- case $cc_basename in
6121
7454
- f77* | f90* | f95*)
6122
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6124
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6127
+# NOTE: This macro has been submitted for inclusion into #
6128
+# GNU Autoconf as AC_PROG_SED. When it is available in #
6129
+# a released version of Autoconf we should remove this #
6130
+# macro and use it instead. #
6133
+# Check for a fully-functional sed program, that truncates
6134
+# as few characters as possible. Prefer GNU sed if found.
6135
+AC_DEFUN([LT_AC_PROG_SED],
6136
+[AC_MSG_CHECKING([for a sed that does not truncate output])
6137
+AC_CACHE_VAL(lt_cv_path_SED,
6138
+[# Loop through the user's path and test for sed and gsed.
6139
+# Then use that list of sed's as ones to test for truncation.
6140
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141
+for as_dir in $PATH
6144
+ test -z "$as_dir" && as_dir=.
6145
+ for lt_ac_prog in sed gsed; do
6146
+ for ac_exec_ext in '' $ac_executable_extensions; do
6147
+ if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6148
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6156
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6157
+# along with /bin/sed that truncates output.
6158
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6159
+ test ! -f $lt_ac_sed && continue
6160
+ cat /dev/null > conftest.in
6162
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6163
+ # Check for GNU sed and select it if it is found.
6164
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6165
+ lt_cv_path_SED=$lt_ac_sed
6169
+ cat conftest.in conftest.in >conftest.tmp
6170
+ mv conftest.tmp conftest.in
6171
+ cp conftest.in conftest.nl
6172
+ echo >>conftest.nl
6173
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6174
+ cmp -s conftest.out conftest.nl || break
6175
+ # 10000 chars as input seems more than enough
6176
+ test $lt_ac_count -gt 10 && break
6177
+ lt_ac_count=`expr $lt_ac_count + 1`
6178
+ if test $lt_ac_count -gt $lt_ac_max; then
6179
+ lt_ac_max=$lt_ac_count
6180
+ lt_cv_path_SED=$lt_ac_sed
6185
+SED=$lt_cv_path_SED
6187
+AC_MSG_RESULT([$SED])
6191
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6192
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6193
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7455
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7457
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7462
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7463
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7464
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7467
- sysv4 | sysv4.2uw2* | sysv4.3*)
7468
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7469
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7470
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7474
- if test -d /usr/nec ;then
7475
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7476
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7480
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7481
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7482
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7483
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7487
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7488
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7492
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7493
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7497
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7503
- # For platforms which do not support PIC, -DPIC is meaningless:
7505
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7508
- _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
7511
-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
7512
-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
7513
- [How to pass a linker flag through the compiler])
7516
-# Check to make sure the PIC flag actually works.
7518
-if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
7519
- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
7520
- [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
7521
- [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
7522
- [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7524
- *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7526
- [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7527
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7529
-_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
7530
- [Additional compiler flags for building library objects])
7533
-# Check to make sure the static flag actually works.
7535
-wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
7536
-_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7537
- _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7538
- $lt_tmp_static_flag,
7540
- [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
7541
-_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
7542
- [Compiler flag to prevent dynamic linking])
7543
-])# _LT_COMPILER_PIC
7546
-# _LT_LINKER_SHLIBS([TAGNAME])
7547
-# ----------------------------
7548
-# See if the linker supports building shared libraries.
7549
-m4_defun([_LT_LINKER_SHLIBS],
7550
-[AC_REQUIRE([LT_PATH_LD])dnl
7551
-AC_REQUIRE([LT_PATH_NM])dnl
7552
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7553
-m4_require([_LT_DECL_EGREP])dnl
7554
-m4_require([_LT_DECL_SED])dnl
7555
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
7556
-m4_require([_LT_TAG_COMPILER])dnl
7557
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7558
-m4_if([$1], [CXX], [
7559
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7562
- # If we're using GNU nm, then we don't want the "-C" option.
7563
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
7564
- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7565
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7567
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7571
- _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7573
- cygwin* | mingw* | cegcc*)
7574
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
7577
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7580
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7583
- _LT_TAGVAR(allow_undefined_flag, $1)=
7584
- _LT_TAGVAR(always_export_symbols, $1)=no
7585
- _LT_TAGVAR(archive_cmds, $1)=
7586
- _LT_TAGVAR(archive_expsym_cmds, $1)=
7587
- _LT_TAGVAR(compiler_needs_object, $1)=no
7588
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7589
- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7590
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7591
- _LT_TAGVAR(hardcode_automatic, $1)=no
7592
- _LT_TAGVAR(hardcode_direct, $1)=no
7593
- _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7594
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7595
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7596
- _LT_TAGVAR(hardcode_libdir_separator, $1)=
7597
- _LT_TAGVAR(hardcode_minus_L, $1)=no
7598
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7599
- _LT_TAGVAR(inherit_rpath, $1)=no
7600
- _LT_TAGVAR(link_all_deplibs, $1)=unknown
7601
- _LT_TAGVAR(module_cmds, $1)=
7602
- _LT_TAGVAR(module_expsym_cmds, $1)=
7603
- _LT_TAGVAR(old_archive_from_new_cmds, $1)=
7604
- _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7605
- _LT_TAGVAR(thread_safe_flag_spec, $1)=
7606
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
7607
- # include_expsyms should be a list of space-separated symbols to be *always*
7608
- # included in the symbol list
7609
- _LT_TAGVAR(include_expsyms, $1)=
7610
- # exclude_expsyms can be an extended regexp of symbols to exclude
7611
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
7612
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7613
- # as well as any symbol that contains `d'.
7614
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7615
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7616
- # platforms (ab)use it in PIC code, but their linkers get confused if
7617
- # the symbol is explicitly referenced. Since portable code cannot
7618
- # rely on this symbol name, it's probably fine to never include it in
7619
- # preloaded symbol tables.
7620
- # Exclude shared library initialization/finalization symbols.
7621
-dnl Note also adjust exclude_expsyms for C++ above.
7622
- extract_expsyms_cmds=
7625
- cygwin* | mingw* | pw32* | cegcc*)
7626
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
7627
- # When not using gcc, we currently assume that we are using
7628
- # Microsoft Visual C++.
7629
- if test "$GCC" != yes; then
7634
- # we just hope/assume this is gcc and not c89 (= MSVC++)
7642
- _LT_TAGVAR(ld_shlibs, $1)=yes
7643
- if test "$with_gnu_ld" = yes; then
7644
- # If archive_cmds runs LD, not CC, wlarc should be empty
7647
- # Set some defaults for GNU ld with shared library support. These
7648
- # are reset later if shared libraries are not supported. Putting them
7649
- # here allows them to be overridden if necessary.
7650
- runpath_var=LD_RUN_PATH
7651
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7652
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7653
- # ancient GNU ld didn't support --whole-archive et. al.
7654
- if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7655
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7657
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
7659
- supports_anon_versioning=no
7660
- case `$LD -v 2>&1` in
7661
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7662
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7663
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7664
- *\ 2.11.*) ;; # other 2.11 versions
7665
- *) supports_anon_versioning=yes ;;
7668
- # See if GNU ld supports shared libraries.
7671
- # On AIX/PPC, the GNU linker is very broken
7672
- if test "$host_cpu" != ia64; then
7673
- _LT_TAGVAR(ld_shlibs, $1)=no
7674
- cat <<_LT_EOF 1>&2
7676
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7677
-*** to be unable to reliably create shared libraries on AIX.
7678
-*** Therefore, libtool is disabling shared libraries support. If you
7679
-*** really care for shared libraries, you may want to modify your PATH
7680
-*** so that a non-GNU linker is found, and then restart.
7689
- # see comment about AmigaOS4 .so support
7690
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7691
- _LT_TAGVAR(archive_expsym_cmds, $1)=''
7694
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7695
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7696
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
7702
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7703
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7704
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7705
- # support --undefined. This deserves some investigation. FIXME
7706
- _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708
- _LT_TAGVAR(ld_shlibs, $1)=no
7712
- cygwin* | mingw* | pw32* | cegcc*)
7713
- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7714
- # as there is no search path for DLLs.
7715
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7716
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7717
- _LT_TAGVAR(always_export_symbols, $1)=no
7718
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7719
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
7721
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7722
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7723
- # If the export-symbols file already is a .def file (1st line
7724
- # is EXPORTS), use it as is; otherwise, prepend...
7725
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7726
- cp $export_symbols $output_objdir/$soname.def;
7728
- echo EXPORTS > $output_objdir/$soname.def;
7729
- cat $export_symbols >> $output_objdir/$soname.def;
7731
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7733
- _LT_TAGVAR(ld_shlibs, $1)=no
7738
- _LT_TAGVAR(hardcode_direct, $1)=no
7739
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7740
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7741
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7742
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7743
- # Instead, shared libraries are loaded at an image base (0x10000000 by
7744
- # default) and relocated if they conflict, which is a slow very memory
7745
- # consuming and fragmenting process. To avoid this, we pick a random,
7746
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7747
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7748
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7749
- _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7752
- gnu* | linux* | tpf* | k*bsd*-gnu)
7754
- if test "$host_os" = linux-dietlibc; then
7755
- case $cc_basename in
7756
- diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7759
- if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7760
- && test "$tmp_diet" = no
7763
- tmp_sharedflag='-shared'
7764
- case $cc_basename,$host_cpu in
7765
- pgcc*) # Portland Group C compiler
7766
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7767
- tmp_addflag=' $pic_flag'
7769
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7770
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7771
- tmp_addflag=' $pic_flag -Mnomain' ;;
7772
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7773
- tmp_addflag=' -i_dynamic' ;;
7774
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7775
- tmp_addflag=' -i_dynamic -nofor_main' ;;
7776
- ifc* | ifort*) # Intel Fortran compiler
7777
- tmp_addflag=' -nofor_main' ;;
7778
- lf95*) # Lahey Fortran 8.1
7779
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
7780
- tmp_sharedflag='--shared' ;;
7781
- xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7782
- tmp_sharedflag='-qmkshrobj'
7785
- case `$CC -V 2>&1 | sed 5q` in
7786
- *Sun\ C*) # Sun C 5.9
7787
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7788
- _LT_TAGVAR(compiler_needs_object, $1)=yes
7789
- tmp_sharedflag='-G' ;;
7790
- *Sun\ F*) # Sun Fortran 8.3
7791
- tmp_sharedflag='-G' ;;
7793
- _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7795
- if test "x$supports_anon_versioning" = xyes; then
7796
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7797
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7798
- echo "local: *; };" >> $output_objdir/$libname.ver~
7799
- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7800
+ dnl Search the library and its dependencies in $additional_libdir and
7801
+ dnl $LDFLAGS. Using breadth-first-seach.
7805
+ LIB[]NAME[]_PREFIX=
7808
+ names_already_handled=
7809
+ names_next_round='$1 $2'
7810
+ while test -n "$names_next_round"; do
7811
+ names_this_round="$names_next_round"
7813
+ for name in $names_this_round; do
7815
+ for n in $names_already_handled; do
7816
+ if test "$n" = "$name"; then
7817
+ already_handled=yes
7821
+ if test -z "$already_handled"; then
7822
+ names_already_handled="$names_already_handled $name"
7823
+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
7824
+ dnl or AC_LIB_HAVE_LINKFLAGS call.
7825
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7826
+ eval value=\"\$HAVE_LIB$uppername\"
7827
+ if test -n "$value"; then
7828
+ if test "$value" = yes; then
7829
+ eval value=\"\$LIB$uppername\"
7830
+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
7831
+ eval value=\"\$LTLIB$uppername\"
7832
+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
7834
+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
7835
+ dnl that this library doesn't exist. So just drop it.
7839
+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
7840
+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
7845
+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7846
+ if test -n "$acl_shlibext"; then
7847
+ shrext=".$acl_shlibext" # typically: shrext=.so
7851
+ if test $use_additional = yes; then
7852
+ dir="$additional_libdir"
7853
+ dnl The same code as in the loop below:
7854
+ dnl First look for a shared library.
7855
+ if test -n "$acl_shlibext"; then
7856
+ if test -f "$dir/$libname$shrext"; then
7858
+ found_so="$dir/$libname$shrext"
7860
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7861
+ ver=`(cd "$dir" && \
7862
+ for f in "$libname$shrext".*; do echo "$f"; done \
7863
+ | sed -e "s,^$libname$shrext\\\\.,," \
7864
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7865
+ | sed 1q ) 2>/dev/null`
7866
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7868
+ found_so="$dir/$libname$shrext.$ver"
7871
+ eval library_names=\"$acl_library_names_spec\"
7872
+ for f in $library_names; do
7873
+ if test -f "$dir/$f"; then
7875
+ found_so="$dir/$f"
7882
+ dnl Then look for a static library.
7883
+ if test "X$found_dir" = "X"; then
7884
+ if test -f "$dir/$libname.$acl_libext"; then
7886
+ found_a="$dir/$libname.$acl_libext"
7889
+ if test "X$found_dir" != "X"; then
7890
+ if test -f "$dir/$libname.la"; then
7891
+ found_la="$dir/$libname.la"
7895
+ if test "X$found_dir" = "X"; then
7896
+ for x in $LDFLAGS $LTLIB[]NAME; do
7897
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
7900
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
7901
+ dnl First look for a shared library.
7902
+ if test -n "$acl_shlibext"; then
7903
+ if test -f "$dir/$libname$shrext"; then
7905
+ found_so="$dir/$libname$shrext"
7907
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7908
+ ver=`(cd "$dir" && \
7909
+ for f in "$libname$shrext".*; do echo "$f"; done \
7910
+ | sed -e "s,^$libname$shrext\\\\.,," \
7911
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7912
+ | sed 1q ) 2>/dev/null`
7913
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7915
+ found_so="$dir/$libname$shrext.$ver"
7918
+ eval library_names=\"$acl_library_names_spec\"
7919
+ for f in $library_names; do
7920
+ if test -f "$dir/$f"; then
7922
+ found_so="$dir/$f"
7929
+ dnl Then look for a static library.
7930
+ if test "X$found_dir" = "X"; then
7931
+ if test -f "$dir/$libname.$acl_libext"; then
7933
+ found_a="$dir/$libname.$acl_libext"
7936
+ if test "X$found_dir" != "X"; then
7937
+ if test -f "$dir/$libname.la"; then
7938
+ found_la="$dir/$libname.la"
7943
+ if test "X$found_dir" != "X"; then
7948
+ if test "X$found_dir" != "X"; then
7949
+ dnl Found the library.
7950
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
7951
+ if test "X$found_so" != "X"; then
7952
+ dnl Linking with a shared library. We attempt to hardcode its
7953
+ dnl directory into the executable's runpath, unless it's the
7954
+ dnl standard /usr/lib.
7955
+ if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7956
+ dnl No hardcoding is needed.
7957
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
7959
+ dnl Use an explicit option to hardcode DIR into the resulting
7961
+ dnl Potentially add DIR to ltrpathdirs.
7962
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
7964
+ for x in $ltrpathdirs; do
7965
+ if test "X$x" = "X$found_dir"; then
7970
+ if test -z "$haveit"; then
7971
+ ltrpathdirs="$ltrpathdirs $found_dir"
7973
+ dnl The hardcoding into $LIBNAME is system dependent.
7974
+ if test "$acl_hardcode_direct" = yes; then
7975
+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
7976
+ dnl resulting binary.
7977
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
7979
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7980
+ dnl Use an explicit option to hardcode DIR into the resulting
7982
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
7983
+ dnl Potentially add DIR to rpathdirs.
7984
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
7986
+ for x in $rpathdirs; do
7987
+ if test "X$x" = "X$found_dir"; then
7992
+ if test -z "$haveit"; then
7993
+ rpathdirs="$rpathdirs $found_dir"
7996
+ dnl Rely on "-L$found_dir".
7997
+ dnl But don't add it if it's already contained in the LDFLAGS
7998
+ dnl or the already constructed $LIBNAME
8000
+ for x in $LDFLAGS $LIB[]NAME; do
8001
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8002
+ if test "X$x" = "X-L$found_dir"; then
8007
+ if test -z "$haveit"; then
8008
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
8010
+ if test "$acl_hardcode_minus_L" != no; then
8011
+ dnl FIXME: Not sure whether we should use
8012
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
8014
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
8016
+ dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
8017
+ dnl here, because this doesn't fit in flags passed to the
8018
+ dnl compiler. So give up. No hardcoding. This affects only
8019
+ dnl very old systems.
8020
+ dnl FIXME: Not sure whether we should use
8021
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
8023
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
8029
+ if test "X$found_a" != "X"; then
8030
+ dnl Linking with a static library.
8031
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
8033
+ dnl We shouldn't come here, but anyway it's good to have a
8035
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
8038
+ dnl Assume the include files are nearby.
8039
+ additional_includedir=
8040
+ case "$found_dir" in
8041
+ */$acl_libdirstem | */$acl_libdirstem/)
8042
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8043
+ LIB[]NAME[]_PREFIX="$basedir"
8044
+ additional_includedir="$basedir/include"
8047
+ if test "X$additional_includedir" != "X"; then
8048
+ dnl Potentially add $additional_includedir to $INCNAME.
8049
+ dnl But don't add it
8050
+ dnl 1. if it's the standard /usr/include,
8051
+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
8052
+ dnl 3. if it's already present in $CPPFLAGS or the already
8053
+ dnl constructed $INCNAME,
8054
+ dnl 4. if it doesn't exist as a directory.
8055
+ if test "X$additional_includedir" != "X/usr/include"; then
8057
+ if test "X$additional_includedir" = "X/usr/local/include"; then
8058
+ if test -n "$GCC"; then
8060
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8064
+ if test -z "$haveit"; then
8065
+ for x in $CPPFLAGS $INC[]NAME; do
8066
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8067
+ if test "X$x" = "X-I$additional_includedir"; then
8072
+ if test -z "$haveit"; then
8073
+ if test -d "$additional_includedir"; then
8074
+ dnl Really add $additional_includedir to $INCNAME.
8075
+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
8081
+ dnl Look for dependencies.
8082
+ if test -n "$found_la"; then
8083
+ dnl Read the .la file. It defines the variables
8084
+ dnl dlname, library_names, old_library, dependency_libs, current,
8085
+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
8086
+ save_libdir="$libdir"
8087
+ case "$found_la" in
8088
+ */* | *\\*) . "$found_la" ;;
8089
+ *) . "./$found_la" ;;
8091
+ libdir="$save_libdir"
8092
+ dnl We use only dependency_libs.
8093
+ for dep in $dependency_libs; do
8096
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8097
+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
8098
+ dnl But don't add it
8099
+ dnl 1. if it's the standard /usr/lib,
8100
+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
8101
+ dnl 3. if it's already present in $LDFLAGS or the already
8102
+ dnl constructed $LIBNAME,
8103
+ dnl 4. if it doesn't exist as a directory.
8104
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8106
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8107
+ if test -n "$GCC"; then
8109
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8113
+ if test -z "$haveit"; then
8115
+ for x in $LDFLAGS $LIB[]NAME; do
8116
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8117
+ if test "X$x" = "X-L$additional_libdir"; then
8122
+ if test -z "$haveit"; then
8123
+ if test -d "$additional_libdir"; then
8124
+ dnl Really add $additional_libdir to $LIBNAME.
8125
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
8129
+ for x in $LDFLAGS $LTLIB[]NAME; do
8130
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8131
+ if test "X$x" = "X-L$additional_libdir"; then
8136
+ if test -z "$haveit"; then
8137
+ if test -d "$additional_libdir"; then
8138
+ dnl Really add $additional_libdir to $LTLIBNAME.
8139
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
8146
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
8147
+ if test "$enable_rpath" != no; then
8148
+ dnl Potentially add DIR to rpathdirs.
8149
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
8151
+ for x in $rpathdirs; do
8152
+ if test "X$x" = "X$dir"; then
8157
+ if test -z "$haveit"; then
8158
+ rpathdirs="$rpathdirs $dir"
8160
+ dnl Potentially add DIR to ltrpathdirs.
8161
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
8163
+ for x in $ltrpathdirs; do
8164
+ if test "X$x" = "X$dir"; then
8169
+ if test -z "$haveit"; then
8170
+ ltrpathdirs="$ltrpathdirs $dir"
8175
+ dnl Handle this in the next round.
8176
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8179
+ dnl Handle this in the next round. Throw away the .la's
8180
+ dnl directory; it is already contained in a preceding -L
8182
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8185
+ dnl Most likely an immediate library name.
8186
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
8187
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
8193
+ dnl Didn't find the library; assume it is in the system directories
8194
+ dnl known to the linker and runtime loader. (All the system
8195
+ dnl directories known to the linker should also be known to the
8196
+ dnl runtime loader, otherwise the system is severely misconfigured.)
8197
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
8198
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
8202
- case $cc_basename in
8204
- # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8205
- _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
8206
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8207
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8208
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8209
- if test "x$supports_anon_versioning" = xyes; then
8210
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8211
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8212
- echo "local: *; };" >> $output_objdir/$libname.ver~
8213
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8218
- _LT_TAGVAR(ld_shlibs, $1)=no
8223
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8224
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8227
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233
- if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8234
- _LT_TAGVAR(ld_shlibs, $1)=no
8235
- cat <<_LT_EOF 1>&2
8237
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8238
-*** create shared libraries on Solaris systems. Therefore, libtool
8239
-*** is disabling shared libraries support. We urge you to upgrade GNU
8240
-*** binutils to release 2.9.1 or newer. Another option is to modify
8241
-*** your PATH or compiler configuration so that the native linker is
8242
-*** used, and then restart.
8245
- elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8246
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8249
- _LT_TAGVAR(ld_shlibs, $1)=no
8253
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8254
- case `$LD -v 2>&1` in
8255
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
8256
- _LT_TAGVAR(ld_shlibs, $1)=no
8257
- cat <<_LT_EOF 1>&2
8259
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8260
-*** reliably create shared libraries on SCO systems. Therefore, libtool
8261
-*** is disabling shared libraries support. We urge you to upgrade GNU
8262
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8263
-*** your PATH or compiler configuration so that the native linker is
8264
-*** used, and then restart.
8269
- # For security reasons, it is highly recommended that you always
8270
- # use absolute paths for naming shared libraries, and exclude the
8271
- # DT_RUNPATH tag from executables and libraries. But doing so
8272
- # requires that you compile everything twice, which is a pain.
8273
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8274
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8275
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8278
- _LT_TAGVAR(ld_shlibs, $1)=no
8285
- _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8287
- _LT_TAGVAR(hardcode_direct, $1)=yes
8288
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8292
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8293
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296
- _LT_TAGVAR(ld_shlibs, $1)=no
8301
- if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
8303
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8304
- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8305
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
8308
- # PORTME fill in a description of your system's linker (not GNU ld)
8311
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8312
- _LT_TAGVAR(always_export_symbols, $1)=yes
8313
- _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8314
- # Note: this linker hardcodes the directories in LIBPATH if there
8315
- # are no directories specified by -L.
8316
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8317
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8318
- # Neither direct hardcoding nor static linking is supported with a
8319
- # broken collect2.
8320
- _LT_TAGVAR(hardcode_direct, $1)=unsupported
8325
- if test "$host_cpu" = ia64; then
8326
- # On IA64, the linker does run time linking by default, so we don't
8327
- # have to do anything special.
8328
- aix_use_runtimelinking=no
8329
- exp_sym_flag='-Bexport'
8332
- # If we're using GNU nm, then we don't want the "-C" option.
8333
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
8334
- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8335
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8337
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8339
- aix_use_runtimelinking=no
8341
- # Test if we are trying to use run time linking or normal
8342
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8343
- # need to do runtime linking.
8344
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8345
- for ld_flag in $LDFLAGS; do
8346
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8347
- aix_use_runtimelinking=yes
8354
- exp_sym_flag='-bexport'
8355
- no_entry_flag='-bnoentry'
8358
- # When large executables or shared objects are built, AIX ld can
8359
- # have problems creating the table of contents. If linking a library
8360
- # or program results in "error TOC overflow" add -mminimal-toc to
8361
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8362
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8364
- _LT_TAGVAR(archive_cmds, $1)=''
8365
- _LT_TAGVAR(hardcode_direct, $1)=yes
8366
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8367
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8368
- _LT_TAGVAR(link_all_deplibs, $1)=yes
8369
- _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
8371
- if test "$GCC" = yes; then
8372
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
8373
- # We only want to do this on AIX 4.2 and lower, the check
8374
- # below for broken collect2 doesn't work under 4.3+
8375
- collect2name=`${CC} -print-prog-name=collect2`
8376
- if test -f "$collect2name" &&
8377
- strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8379
- # We have reworked collect2
8382
- # We have old collect2
8383
- _LT_TAGVAR(hardcode_direct, $1)=unsupported
8384
- # It fails to find uninstalled libraries when the uninstalled
8385
- # path is not listed in the libpath. Setting hardcode_minus_L
8386
- # to unsupported forces relinking
8387
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8388
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8389
- _LT_TAGVAR(hardcode_libdir_separator, $1)=
8393
- shared_flag='-shared'
8394
- if test "$aix_use_runtimelinking" = yes; then
8395
- shared_flag="$shared_flag "'${wl}-G'
8399
- if test "$host_cpu" = ia64; then
8400
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8401
- # chokes on -Wl,-G. The following line is correct:
8404
- if test "$aix_use_runtimelinking" = yes; then
8405
- shared_flag='${wl}-G'
8407
- shared_flag='${wl}-bM:SRE'
8412
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
8413
- # It seems that -bexpall does not export symbols beginning with
8414
- # underscore (_), so it is better to generate a list of symbols to export.
8415
- _LT_TAGVAR(always_export_symbols, $1)=yes
8416
- if test "$aix_use_runtimelinking" = yes; then
8417
- # Warning - without using the other runtime loading flags (-brtl),
8418
- # -berok will link without error, but may produce a broken library.
8419
- _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8420
- # Determine the default libpath from the value encoded in an
8421
- # empty executable.
8422
- _LT_SYS_MODULE_PATH_AIX
8423
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8424
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8426
- if test "$host_cpu" = ia64; then
8427
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8428
- _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8429
- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8431
- # Determine the default libpath from the value encoded in an
8432
- # empty executable.
8433
- _LT_SYS_MODULE_PATH_AIX
8434
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8435
- # Warning - without using the other run time loading flags,
8436
- # -berok will link without error, but may produce a broken library.
8437
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8438
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8439
- # Exported symbols can be pulled into shared objects from archives
8440
- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8441
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8442
- # This is similar to how AIX traditionally builds its shared libraries.
8443
- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8451
- # see comment about AmigaOS4 .so support
8452
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453
- _LT_TAGVAR(archive_expsym_cmds, $1)=''
8456
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8457
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8458
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8464
- _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8467
- cygwin* | mingw* | pw32* | cegcc*)
8468
- # When not using gcc, we currently assume that we are using
8469
- # Microsoft Visual C++.
8470
- # hardcode_libdir_flag_spec is actually meaningless, as there is
8471
- # no search path for DLLs.
8472
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8473
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8474
- # Tell ltmain to make .lib files, not .a files.
8476
- # Tell ltmain to make .dll files, not .so files.
8477
- shrext_cmds=".dll"
8478
- # FIXME: Setting linknames here is a bad hack.
8479
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8480
- # The linker will automatically build a .lib file if we build a DLL.
8481
- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8482
- # FIXME: Should let the user specify the lib program.
8483
- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8484
- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
8485
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8488
- darwin* | rhapsody*)
8489
- _LT_DARWIN_LINKER_FEATURES($1)
8493
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8495
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8499
- _LT_TAGVAR(ld_shlibs, $1)=no
8502
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8503
- # support. Future versions do this automatically, but an explicit c++rt0.o
8504
- # does not break anything, and helps significantly (at the cost of a little
8507
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8508
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8509
- _LT_TAGVAR(hardcode_direct, $1)=yes
8510
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8513
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8515
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8516
- _LT_TAGVAR(hardcode_direct, $1)=yes
8517
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8518
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8521
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8522
- freebsd* | dragonfly*)
8523
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8524
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8525
- _LT_TAGVAR(hardcode_direct, $1)=yes
8526
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8530
- if test "$GCC" = yes; then
8531
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8533
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8535
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8536
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8537
- _LT_TAGVAR(hardcode_direct, $1)=yes
8539
- # hardcode_minus_L: Not really in the search PATH,
8540
- # but as the default location of the library.
8541
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8542
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8546
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8547
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8549
- _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8551
- if test "$with_gnu_ld" = no; then
8552
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8553
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8554
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8555
- _LT_TAGVAR(hardcode_direct, $1)=yes
8556
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8557
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8558
- # hardcode_minus_L: Not really in the search PATH,
8559
- # but as the default location of the library.
8560
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8565
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8568
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8571
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8574
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8580
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8586
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8590
- if test "$with_gnu_ld" = no; then
8591
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8592
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8596
- _LT_TAGVAR(hardcode_direct, $1)=no
8597
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8600
- _LT_TAGVAR(hardcode_direct, $1)=yes
8601
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8602
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8604
- # hardcode_minus_L: Not really in the search PATH,
8605
- # but as the default location of the library.
8606
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8612
- irix5* | irix6* | nonstopux*)
8613
- if test "$GCC" = yes; then
8614
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8615
- # Try to use the -exported_symbol ld option, if it does not
8616
- # work, assume that -exports_file does not work either and
8617
- # implicitly export all symbols.
8618
- save_LDFLAGS="$LDFLAGS"
8619
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8620
- AC_LINK_IFELSE(int foo(void) {},
8621
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8623
- LDFLAGS="$save_LDFLAGS"
8625
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8626
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8628
- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8629
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8630
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8631
- _LT_TAGVAR(inherit_rpath, $1)=yes
8632
- _LT_TAGVAR(link_all_deplibs, $1)=yes
8636
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8637
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8639
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8641
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8642
- _LT_TAGVAR(hardcode_direct, $1)=yes
8643
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8647
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8648
- _LT_TAGVAR(hardcode_direct, $1)=yes
8649
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8650
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8651
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8658
- if test -f /usr/libexec/ld.so; then
8659
- _LT_TAGVAR(hardcode_direct, $1)=yes
8660
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8661
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8662
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8663
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8664
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8665
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8666
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8669
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8670
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8674
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8675
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8680
- _LT_TAGVAR(ld_shlibs, $1)=no
8685
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8686
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8687
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8688
- _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8689
- _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8693
- if test "$GCC" = yes; then
8694
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8695
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8697
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8698
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8700
- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8701
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8702
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8705
- osf4* | osf5*) # as osf3* with the addition of -msym flag
8706
- if test "$GCC" = yes; then
8707
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8708
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8709
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8711
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8712
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8713
- _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8714
- $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8716
- # Both c and cxx compiler support -rpath directly
8717
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8719
- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8720
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8724
- _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8725
- if test "$GCC" = yes; then
8727
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8729
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8731
- case `$CC -V 2>&1` in
8732
- *"Compilers 5.0"*)
8734
- _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8736
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8740
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8741
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8742
- $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8746
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8747
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8749
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8751
- # The compiler driver will combine and reorder linker options,
8752
- # but understands `-z linker_flag'. GCC discards it without `$wl',
8753
- # but is careful enough not to reorder.
8754
- # Supported since Solaris 2.6 (maybe 2.5.1?)
8755
- if test "$GCC" = yes; then
8756
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8758
- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8762
- _LT_TAGVAR(link_all_deplibs, $1)=yes
8766
- if test "x$host_vendor" = xsequent; then
8767
- # Use $CC to link under sequent, because it throws in some extra .o
8768
- # files that make .init and .fini sections work.
8769
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8771
- _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8773
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8774
- _LT_TAGVAR(hardcode_direct, $1)=yes
8775
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
8776
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8780
- case $host_vendor in
8782
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783
- _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8786
- ## LD is ld it makes a PLAMLIB
8787
- ## CC just makes a GrossModule.
8788
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8789
- _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8790
- _LT_TAGVAR(hardcode_direct, $1)=no
8793
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794
- _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8797
- runpath_var='LD_RUN_PATH'
8798
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8802
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8804
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8808
- if test -d /usr/nec; then
8809
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8811
- runpath_var=LD_RUN_PATH
8812
- hardcode_runpath_var=yes
8813
- _LT_TAGVAR(ld_shlibs, $1)=yes
8817
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8818
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8819
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8820
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8821
- runpath_var='LD_RUN_PATH'
8823
- if test "$GCC" = yes; then
8824
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8832
- sysv5* | sco3.2v5* | sco5v6*)
8833
- # Note: We can NOT use -z defs as we might desire, because we do not
8834
- # link with -lc, and that would cause any symbols used from libc to
8835
- # always be unresolved, which means just about no library would
8836
- # ever link correctly. If we're not using GNU ld we use -z text
8837
- # though, which does catch some bad symbols but isn't as heavy-handed
8839
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8840
- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8841
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8842
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8843
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8844
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8845
- _LT_TAGVAR(link_all_deplibs, $1)=yes
8846
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8847
- runpath_var='LD_RUN_PATH'
8849
- if test "$GCC" = yes; then
8850
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8861
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8865
- _LT_TAGVAR(ld_shlibs, $1)=no
8869
- if test x$host_vendor = xsni; then
8871
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8872
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
8877
+ if test "X$rpathdirs" != "X"; then
8878
+ if test -n "$acl_hardcode_libdir_separator"; then
8879
+ dnl Weird platform: only the last -rpath option counts, the user must
8880
+ dnl pass all path elements in one option. We can arrange that for a
8881
+ dnl single library, but not when more than one $LIBNAMEs are used.
8883
+ for found_dir in $rpathdirs; do
8884
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8886
+ dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
8887
+ acl_save_libdir="$libdir"
8889
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
8890
+ libdir="$acl_save_libdir"
8891
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
8893
+ dnl The -rpath options are cumulative.
8894
+ for found_dir in $rpathdirs; do
8895
+ acl_save_libdir="$libdir"
8896
+ libdir="$found_dir"
8897
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
8898
+ libdir="$acl_save_libdir"
8899
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
8903
+ if test "X$ltrpathdirs" != "X"; then
8904
+ dnl When using libtool, the option that works for both libraries and
8905
+ dnl executables is -R. The -R options are cumulative.
8906
+ for found_dir in $ltrpathdirs; do
8907
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
8911
-AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8912
-test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8914
-_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
8916
-_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
8917
-_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
8918
-_LT_DECL([], [extract_expsyms_cmds], [2],
8919
- [The commands to extract the exported symbol list from a shared archive])
8920
+dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
8921
+dnl unless already present in VAR.
8922
+dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
8923
+dnl contains two or three consecutive elements that belong together.
8924
+AC_DEFUN([AC_LIB_APPENDTOVAR],
8926
+ for element in [$2]; do
8928
+ for x in $[$1]; do
8929
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8930
+ if test "X$x" = "X$element"; then
8935
+ if test -z "$haveit"; then
8936
+ [$1]="${[$1]}${[$1]:+ }$element"
8942
-# Do we need to explicitly link libc?
8944
-case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
8946
- # Assume -lc should be added
8947
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8949
- if test "$enable_shared" = yes && test "$GCC" = yes; then
8950
- case $_LT_TAGVAR(archive_cmds, $1) in
8952
- # FIXME: we may have to deal with multi-command sequences.
8955
- # Test whether the compiler implicitly links with -lc since on some
8956
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
8957
- # to ld, don't add -lc before -lgcc.
8958
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8960
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8962
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8965
- libobjs=conftest.$ac_objext
8967
- wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
8968
- pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8974
- lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
8975
- _LT_TAGVAR(allow_undefined_flag, $1)=
8976
- if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8978
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8979
+dnl For those cases where a variable contains several -L and -l options
8980
+dnl referring to unknown libraries and directories, this macro determines the
8981
+dnl necessary additional linker options for the runtime path.
8982
+dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
8983
+dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
8984
+dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
8985
+dnl otherwise linking without libtool is assumed.
8986
+AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
8988
+ AC_REQUIRE([AC_LIB_RPATH])
8989
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
8991
+ if test "$enable_rpath" != no; then
8992
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8993
+ dnl Use an explicit option to hardcode directories into the resulting
8998
+ if test -n "$next"; then
9000
+ dnl No need to hardcode the standard /usr/lib.
9001
+ if test "X$dir" != "X/usr/$acl_libdirstem"; then
9002
+ rpathdirs="$rpathdirs $dir"
9006
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9009
+ -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
9010
+ dnl No need to hardcode the standard /usr/lib.
9011
+ if test "X$dir" != "X/usr/$acl_libdirstem"; then
9012
+ rpathdirs="$rpathdirs $dir"
9019
+ if test "X$rpathdirs" != "X"; then
9020
+ if test -n ""$3""; then
9021
+ dnl libtool is used for linking. Use -R options.
9022
+ for dir in $rpathdirs; do
9023
+ $1="${$1}${$1:+ }-R$dir"
9026
+ dnl The linker is used for linking directly.
9027
+ if test -n "$acl_hardcode_libdir_separator"; then
9028
+ dnl Weird platform: only the last -rpath option counts, the user
9029
+ dnl must pass all path elements in one option.
9031
+ for dir in $rpathdirs; do
9032
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
9034
+ acl_save_libdir="$libdir"
9036
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
9037
+ libdir="$acl_save_libdir"
9040
+ dnl The -rpath options are cumulative.
9041
+ for dir in $rpathdirs; do
9042
+ acl_save_libdir="$libdir"
9044
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
9045
+ libdir="$acl_save_libdir"
9046
+ $1="${$1}${$1:+ }$flag"
9050
- _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
9052
- cat conftest.err 1>&5
9055
- AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
9062
-_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
9063
- [Whether or not to add -lc for building shared libraries])
9064
-_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
9065
- [enable_shared_with_static_runtimes], [0],
9066
- [Whether or not to disallow shared libs when runtime libs are static])
9067
-_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
9068
- [Compiler flag to allow reflexive dlopens])
9069
-_LT_TAGDECL([], [whole_archive_flag_spec], [1],
9070
- [Compiler flag to generate shared objects directly from archives])
9071
-_LT_TAGDECL([], [compiler_needs_object], [1],
9072
- [Whether the compiler copes with passing no objects directly])
9073
-_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
9074
- [Create an old-style archive from a shared archive])
9075
-_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
9076
- [Create a temporary old-style archive to link instead of a shared archive])
9077
-_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
9078
-_LT_TAGDECL([], [archive_expsym_cmds], [2])
9079
-_LT_TAGDECL([], [module_cmds], [2],
9080
- [Commands used to build a loadable module if different from building
9081
- a shared archive.])
9082
-_LT_TAGDECL([], [module_expsym_cmds], [2])
9083
-_LT_TAGDECL([], [with_gnu_ld], [1],
9084
- [Whether we are building with GNU ld or not])
9085
-_LT_TAGDECL([], [allow_undefined_flag], [1],
9086
- [Flag that allows shared libraries with undefined symbols to be built])
9087
-_LT_TAGDECL([], [no_undefined_flag], [1],
9088
- [Flag that enforces no undefined symbols])
9089
-_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
9090
- [Flag to hardcode $libdir into a binary during linking.
9091
- This must work even if $libdir does not exist])
9092
-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
9093
- [[If ld is used when linking, flag to hardcode $libdir into a binary
9094
- during linking. This must work even if $libdir does not exist]])
9095
-_LT_TAGDECL([], [hardcode_libdir_separator], [1],
9096
- [Whether we need a single "-rpath" flag with a separated argument])
9097
-_LT_TAGDECL([], [hardcode_direct], [0],
9098
- [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
9099
- DIR into the resulting binary])
9100
-_LT_TAGDECL([], [hardcode_direct_absolute], [0],
9101
- [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
9102
- DIR into the resulting binary and the resulting library dependency is
9103
- "absolute", i.e impossible to change by setting ${shlibpath_var} if the
9104
- library is relocated])
9105
-_LT_TAGDECL([], [hardcode_minus_L], [0],
9106
- [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
9107
- into the resulting binary])
9108
-_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
9109
- [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
9110
- into the resulting binary])
9111
-_LT_TAGDECL([], [hardcode_automatic], [0],
9112
- [Set to "yes" if building a shared library automatically hardcodes DIR
9113
- into the library and all subsequent libraries and executables linked
9115
-_LT_TAGDECL([], [inherit_rpath], [0],
9116
- [Set to yes if linker adds runtime paths of dependent libraries
9117
- to runtime path list])
9118
-_LT_TAGDECL([], [link_all_deplibs], [0],
9119
- [Whether libtool must link a program against all its dependency libraries])
9120
-_LT_TAGDECL([], [fix_srcfile_path], [1],
9121
- [Fix the shell variable $srcfile for the compiler])
9122
-_LT_TAGDECL([], [always_export_symbols], [0],
9123
- [Set to "yes" if exported symbols are required])
9124
-_LT_TAGDECL([], [export_symbols_cmds], [2],
9125
- [The commands to list exported symbols])
9126
-_LT_TAGDECL([], [exclude_expsyms], [1],
9127
- [Symbols that should not be listed in the preloaded symbols])
9128
-_LT_TAGDECL([], [include_expsyms], [1],
9129
- [Symbols that must always be exported])
9130
-_LT_TAGDECL([], [prelink_cmds], [2],
9131
- [Commands necessary for linking programs (against libraries) with templates])
9132
-_LT_TAGDECL([], [file_list_spec], [1],
9133
- [Specify filename containing input files])
9134
-dnl FIXME: Not yet implemented
9135
-dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
9136
-dnl [Compiler flag to generate thread safe objects])
9137
-])# _LT_LINKER_SHLIBS
9140
-# _LT_LANG_C_CONFIG([TAG])
9141
-# ------------------------
9142
-# Ensure that the configuration variables for a C compiler are suitably
9143
-# defined. These variables are subsequently used by _LT_CONFIG to write
9144
-# the compiler configuration to `libtool'.
9145
-m4_defun([_LT_LANG_C_CONFIG],
9146
-[m4_require([_LT_DECL_EGREP])dnl
9150
-# Source file extension for C test sources.
9153
-# Object file extension for compiled C test sources.
9155
-_LT_TAGVAR(objext, $1)=$objext
9157
-# Code to be used in simple compile tests
9158
-lt_simple_compile_test_code="int some_variable = 0;"
9160
-# Code to be used in simple link tests
9161
-lt_simple_link_test_code='int main(){return(0);}'
9164
-# Save the default compiler, since it gets overwritten when the other
9165
-# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9166
-compiler_DEFAULT=$CC
9168
-# save warnings/boilerplate of simple test code
9169
-_LT_COMPILER_BOILERPLATE
9170
-_LT_LINKER_BOILERPLATE
9172
-if test -n "$compiler"; then
9173
- _LT_COMPILER_NO_RTTI($1)
9174
- _LT_COMPILER_PIC($1)
9175
- _LT_COMPILER_C_O($1)
9176
- _LT_COMPILER_FILE_LOCKS($1)
9177
- _LT_LINKER_SHLIBS($1)
9178
- _LT_SYS_DYNAMIC_LINKER($1)
9179
- _LT_LINKER_HARDCODE_LIBPATH($1)
9180
- LT_SYS_DLOPEN_SELF
9183
- # Report which library types will actually be built
9184
- AC_MSG_CHECKING([if libtool supports shared libraries])
9185
- AC_MSG_RESULT([$can_build_shared])
9187
- AC_MSG_CHECKING([whether to build shared libraries])
9188
- test "$can_build_shared" = "no" && enable_shared=no
9190
- # On AIX, shared libraries and static libraries use the same namespace, and
9191
- # are all built from PIC.
9194
- test "$enable_shared" = yes && enable_static=no
9195
- if test -n "$RANLIB"; then
9196
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
9197
- postinstall_cmds='$RANLIB $lib'
9202
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9203
- test "$enable_shared" = yes && enable_static=no
9207
- AC_MSG_RESULT([$enable_shared])
9212
- AC_MSG_CHECKING([whether to build static libraries])
9213
- # Make sure either enable_shared or enable_static is yes.
9214
- test "$enable_shared" = yes || enable_static=yes
9215
- AC_MSG_RESULT([$enable_static])
9216
+# lib-prefix.m4 serial 5 (gettext-0.15)
9217
+dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
9218
+dnl This file is free software; the Free Software Foundation
9219
+dnl gives unlimited permission to copy and/or distribute it,
9220
+dnl with or without modifications, as long as this notice is preserved.
9226
-])# _LT_LANG_C_CONFIG
9227
+dnl From Bruno Haible.
9229
+dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
9230
+dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
9231
+dnl require excessive bracketing.
9232
+ifdef([AC_HELP_STRING],
9233
+[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
9234
+[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
9238
-# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
9239
-# compiler, we have our own version here.
9240
-m4_defun([_LT_PROG_CXX],
9241
+dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
9242
+dnl to access previously installed libraries. The basic assumption is that
9243
+dnl a user will want packages to use other packages he previously installed
9244
+dnl with the same --prefix option.
9245
+dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
9246
+dnl libraries, but is otherwise very convenient.
9247
+AC_DEFUN([AC_LIB_PREFIX],
9249
-pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
9251
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9252
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9253
- (test "X$CXX" != "Xg++"))) ; then
9256
- _lt_caught_CXX_error=yes
9258
-popdef([AC_MSG_ERROR])
9261
-dnl aclocal-1.4 backwards compatibility:
9262
-dnl AC_DEFUN([_LT_PROG_CXX], [])
9265
-# _LT_LANG_CXX_CONFIG([TAG])
9266
-# --------------------------
9267
-# Ensure that the configuration variables for a C++ compiler are suitably
9268
-# defined. These variables are subsequently used by _LT_CONFIG to write
9269
-# the compiler configuration to `libtool'.
9270
-m4_defun([_LT_LANG_CXX_CONFIG],
9271
-[AC_REQUIRE([_LT_PROG_CXX])dnl
9272
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
9273
-m4_require([_LT_DECL_EGREP])dnl
9276
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9277
-_LT_TAGVAR(allow_undefined_flag, $1)=
9278
-_LT_TAGVAR(always_export_symbols, $1)=no
9279
-_LT_TAGVAR(archive_expsym_cmds, $1)=
9280
-_LT_TAGVAR(compiler_needs_object, $1)=no
9281
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9282
-_LT_TAGVAR(hardcode_direct, $1)=no
9283
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9284
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9285
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9286
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
9287
-_LT_TAGVAR(hardcode_minus_L, $1)=no
9288
-_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9289
-_LT_TAGVAR(hardcode_automatic, $1)=no
9290
-_LT_TAGVAR(inherit_rpath, $1)=no
9291
-_LT_TAGVAR(module_cmds, $1)=
9292
-_LT_TAGVAR(module_expsym_cmds, $1)=
9293
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
9294
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9295
-_LT_TAGVAR(no_undefined_flag, $1)=
9296
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
9297
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9299
-# Source file extension for C++ test sources.
9302
-# Object file extension for compiled C++ test sources.
9304
-_LT_TAGVAR(objext, $1)=$objext
9306
-# No sense in running all these tests if we already determined that
9307
-# the CXX compiler isn't working. Some variables (like enable_shared)
9308
-# are currently assumed to apply to all compilers on this platform,
9309
-# and will be corrupted by setting them based on a non-working compiler.
9310
-if test "$_lt_caught_CXX_error" != yes; then
9311
- # Code to be used in simple compile tests
9312
- lt_simple_compile_test_code="int some_variable = 0;"
9314
- # Code to be used in simple link tests
9315
- lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
9317
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9320
- # save warnings/boilerplate of simple test code
9321
- _LT_COMPILER_BOILERPLATE
9322
- _LT_LINKER_BOILERPLATE
9324
- # Allow CC to be a program name with arguments.
9329
- lt_save_with_gnu_ld=$with_gnu_ld
9330
- lt_save_path_LD=$lt_cv_path_LD
9331
- if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9332
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9334
- $as_unset lt_cv_prog_gnu_ld
9336
- if test -n "${lt_cv_path_LDCXX+set}"; then
9337
- lt_cv_path_LD=$lt_cv_path_LDCXX
9339
- $as_unset lt_cv_path_LD
9341
- test -z "${LDCXX+set}" || LD=$LDCXX
9344
- _LT_TAGVAR(compiler, $1)=$CC
9345
- _LT_CC_BASENAME([$compiler])
9347
- if test -n "$compiler"; then
9348
- # We don't want -fno-exception when compiling C++ code, so set the
9349
- # no_builtin_flag separately
9350
- if test "$GXX" = yes; then
9351
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9352
+ AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
9353
+ AC_REQUIRE([AC_PROG_CC])
9354
+ AC_REQUIRE([AC_CANONICAL_HOST])
9355
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
9356
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
9357
+ dnl By default, look in $includedir and $libdir.
9358
+ use_additional=yes
9359
+ AC_LIB_WITH_FINAL_PREFIX([
9360
+ eval additional_includedir=\"$includedir\"
9361
+ eval additional_libdir=\"$libdir\"
9363
+ AC_LIB_ARG_WITH([lib-prefix],
9364
+[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
9365
+ --without-lib-prefix don't search for libraries in includedir and libdir],
9367
+ if test "X$withval" = "Xno"; then
9370
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9373
- if test "$GXX" = yes; then
9374
- # Set up default GNU C++ configuration
9378
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
9379
- # archiving commands below assume that GNU ld is being used.
9380
- if test "$with_gnu_ld" = yes; then
9381
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9385
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9387
- # If archive_cmds runs LD, not CC, wlarc should be empty
9388
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9389
- # investigate it a little bit more. (MM)
9392
- # ancient GNU ld didn't support --whole-archive et. al.
9393
- if eval "`$CC -print-prog-name=ld` --help 2>&1" |
9394
- $GREP 'no-whole-archive' > /dev/null; then
9395
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9397
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
9399
+ if test "X$withval" = "X"; then
9400
+ AC_LIB_WITH_FINAL_PREFIX([
9401
+ eval additional_includedir=\"$includedir\"
9402
+ eval additional_libdir=\"$libdir\"
9408
- # A generic and very simple default shared library creation
9409
- # command for GNU C++ for the case where it uses the native
9410
- # linker, instead of GNU ld. If possible, this setting should
9411
- # overridden to take advantage of the native linker features on
9412
- # the platform it is being used on.
9413
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9414
+ additional_includedir="$withval/include"
9415
+ additional_libdir="$withval/$acl_libdirstem"
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.
9421
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9429
- # PORTME: fill in a description of your system's C++ link characteristics
9430
- AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
9431
- _LT_TAGVAR(ld_shlibs, $1)=yes
9434
- # FIXME: insert proper C++ library support
9435
- _LT_TAGVAR(ld_shlibs, $1)=no
9438
- if test "$host_cpu" = ia64; then
9439
- # On IA64, the linker does run time linking by default, so we don't
9440
- # have to do anything special.
9441
- aix_use_runtimelinking=no
9442
- exp_sym_flag='-Bexport'
9445
- aix_use_runtimelinking=no
9447
- # Test if we are trying to use run time linking or normal
9448
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9449
- # need to do runtime linking.
9450
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
9451
- for ld_flag in $LDFLAGS; do
9454
- aix_use_runtimelinking=yes
9462
- exp_sym_flag='-bexport'
9463
- no_entry_flag='-bnoentry'
9465
+ if test $use_additional = yes; then
9466
+ dnl Potentially add $additional_includedir to $CPPFLAGS.
9467
+ dnl But don't add it
9468
+ dnl 1. if it's the standard /usr/include,
9469
+ dnl 2. if it's already present in $CPPFLAGS,
9470
+ dnl 3. if it's /usr/local/include and we are using GCC on Linux,
9471
+ dnl 4. if it doesn't exist as a directory.
9472
+ if test "X$additional_includedir" != "X/usr/include"; then
9474
+ for x in $CPPFLAGS; do
9475
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
9476
+ if test "X$x" = "X-I$additional_includedir"; then
9481
- # When large executables or shared objects are built, AIX ld can
9482
- # have problems creating the table of contents. If linking a library
9483
- # or program results in "error TOC overflow" add -mminimal-toc to
9484
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9485
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487
- _LT_TAGVAR(archive_cmds, $1)=''
9488
- _LT_TAGVAR(hardcode_direct, $1)=yes
9489
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
9490
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9491
- _LT_TAGVAR(link_all_deplibs, $1)=yes
9492
- _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
9494
- if test "$GXX" = yes; then
9495
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
9496
- # We only want to do this on AIX 4.2 and lower, the check
9497
- # below for broken collect2 doesn't work under 4.3+
9498
- collect2name=`${CC} -print-prog-name=collect2`
9499
- if test -f "$collect2name" &&
9500
- strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502
- # We have reworked collect2
9505
- # We have old collect2
9506
- _LT_TAGVAR(hardcode_direct, $1)=unsupported
9507
- # It fails to find uninstalled libraries when the uninstalled
9508
- # path is not listed in the libpath. Setting hardcode_minus_L
9509
- # to unsupported forces relinking
9510
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
9511
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9512
- _LT_TAGVAR(hardcode_libdir_separator, $1)=
9515
- shared_flag='-shared'
9516
- if test "$aix_use_runtimelinking" = yes; then
9517
- shared_flag="$shared_flag "'${wl}-G'
9521
- if test "$host_cpu" = ia64; then
9522
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9523
- # chokes on -Wl,-G. The following line is correct:
9526
- if test "$aix_use_runtimelinking" = yes; then
9527
- shared_flag='${wl}-G'
9529
- shared_flag='${wl}-bM:SRE'
9532
+ if test -z "$haveit"; then
9533
+ if test "X$additional_includedir" = "X/usr/local/include"; then
9534
+ if test -n "$GCC"; then
9536
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9541
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
9542
- # It seems that -bexpall does not export symbols beginning with
9543
- # underscore (_), so it is better to generate a list of symbols to
9545
- _LT_TAGVAR(always_export_symbols, $1)=yes
9546
- if test "$aix_use_runtimelinking" = yes; then
9547
- # Warning - without using the other runtime loading flags (-brtl),
9548
- # -berok will link without error, but may produce a broken library.
9549
- _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
9550
- # Determine the default libpath from the value encoded in an empty
9552
- _LT_SYS_MODULE_PATH_AIX
9553
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9555
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9557
- if test "$host_cpu" = ia64; then
9558
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
9559
- _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9560
- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9562
- # Determine the default libpath from the value encoded in an
9563
- # empty executable.
9564
- _LT_SYS_MODULE_PATH_AIX
9565
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9566
- # Warning - without using the other run time loading flags,
9567
- # -berok will link without error, but may produce a broken library.
9568
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
9569
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9570
- # Exported symbols can be pulled into shared objects from archives
9571
- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
9572
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9573
- # This is similar to how AIX traditionally builds its shared
9575
- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9576
+ if test -z "$haveit"; then
9577
+ if test -d "$additional_includedir"; then
9578
+ dnl Really add $additional_includedir to $CPPFLAGS.
9579
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
9585
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9586
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9587
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9588
- # support --undefined. This deserves some investigation. FIXME
9589
- _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591
- _LT_TAGVAR(ld_shlibs, $1)=no
9596
- case $cc_basename in
9598
- # FIXME: insert proper C++ library support
9599
- _LT_TAGVAR(ld_shlibs, $1)=no
9604
- cygwin* | mingw* | pw32* | cegcc*)
9605
- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
9606
- # as there is no search path for DLLs.
9607
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9608
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9609
- _LT_TAGVAR(always_export_symbols, $1)=no
9610
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
9612
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9613
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9614
- # If the export-symbols file already is a .def file (1st line
9615
- # is EXPORTS), use it as is; otherwise, prepend...
9616
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9617
- cp $export_symbols $output_objdir/$soname.def;
9619
- echo EXPORTS > $output_objdir/$soname.def;
9620
- cat $export_symbols >> $output_objdir/$soname.def;
9622
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9624
- _LT_TAGVAR(ld_shlibs, $1)=no
9627
+ dnl Potentially add $additional_libdir to $LDFLAGS.
9628
+ dnl But don't add it
9629
+ dnl 1. if it's the standard /usr/lib,
9630
+ dnl 2. if it's already present in $LDFLAGS,
9631
+ dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
9632
+ dnl 4. if it doesn't exist as a directory.
9633
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9635
+ for x in $LDFLAGS; do
9636
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
9637
+ if test "X$x" = "X-L$additional_libdir"; then
9642
- darwin* | rhapsody*)
9643
- _LT_DARWIN_LINKER_FEATURES($1)
9647
- case $cc_basename in
9649
- # FIXME: insert proper C++ library support
9650
- _LT_TAGVAR(ld_shlibs, $1)=no
9653
- # Green Hills C++ Compiler
9654
- # FIXME: insert proper C++ library support
9655
- _LT_TAGVAR(ld_shlibs, $1)=no
9658
- # FIXME: insert proper C++ library support
9659
- _LT_TAGVAR(ld_shlibs, $1)=no
9665
- # C++ shared libraries reported to be fairly broken before
9667
- _LT_TAGVAR(ld_shlibs, $1)=no
9671
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9674
- freebsd* | dragonfly*)
9675
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9677
- _LT_TAGVAR(ld_shlibs, $1)=yes
9684
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9685
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9686
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9687
- _LT_TAGVAR(hardcode_direct, $1)=yes
9688
- _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
9689
- # but as the default
9690
- # location of the library.
9692
- case $cc_basename in
9694
- # FIXME: insert proper C++ library support
9695
- _LT_TAGVAR(ld_shlibs, $1)=no
9698
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9699
- # Commands to make compiler produce verbose output that lists
9700
- # what "hidden" libraries, object files and flags are used when
9701
- # linking a shared library.
9703
- # There doesn't appear to be a way to prevent this compiler from
9704
- # explicitly linking system object files so we need to strip them
9705
- # from the output so that they don't get included in the library
9707
- 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 "X$list" | $Xsed'
9710
- if test "$GXX" = yes; then
9711
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9713
- # FIXME: insert proper C++ library support
9714
- _LT_TAGVAR(ld_shlibs, $1)=no
9721
- if test $with_gnu_ld = no; then
9722
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9723
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9729
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9733
+ if test -z "$haveit"; then
9734
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9735
+ if test -n "$GCC"; then
9737
+ linux*) haveit=yes;;
9743
- _LT_TAGVAR(hardcode_direct, $1)=no
9744
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9747
- _LT_TAGVAR(hardcode_direct, $1)=yes
9748
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
9749
- _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
9750
- # but as the default
9751
- # location of the library.
9755
- case $cc_basename in
9757
- # FIXME: insert proper C++ library support
9758
- _LT_TAGVAR(ld_shlibs, $1)=no
9763
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9766
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9769
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9772
- # Commands to make compiler produce verbose output that lists
9773
- # what "hidden" libraries, object files and flags are used when
9774
- # linking a shared library.
9776
- # There doesn't appear to be a way to prevent this compiler from
9777
- # explicitly linking system object files so we need to strip them
9778
- # from the output so that they don't get included in the library
9780
- 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 "X$list" | $Xsed'
9783
- if test "$GXX" = yes; then
9784
- if test $with_gnu_ld = no; then
9787
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9790
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9793
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9798
- # FIXME: insert proper C++ library support
9799
- _LT_TAGVAR(ld_shlibs, $1)=no
9806
- _LT_TAGVAR(hardcode_direct, $1)=no
9807
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9808
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9809
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9810
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9811
- # Instead, shared libraries are loaded at an image base (0x10000000 by
9812
- # default) and relocated if they conflict, which is a slow very memory
9813
- # consuming and fragmenting process. To avoid this, we pick a random,
9814
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9815
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9816
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9817
- _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9820
- case $cc_basename in
9823
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9825
- # Archives containing C++ object files must be created using
9826
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9827
- # necessary to make sure instantiated templates are included
9829
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
9832
- if test "$GXX" = yes; then
9833
- if test "$with_gnu_ld" = no; then
9834
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9836
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
9839
- _LT_TAGVAR(link_all_deplibs, $1)=yes
9842
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9843
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9844
- _LT_TAGVAR(inherit_rpath, $1)=yes
9847
- linux* | k*bsd*-gnu)
9848
- case $cc_basename in
9850
- # Kuck and Associates, Inc. (KAI) C++ Compiler
9852
- # KCC will only create a shared library if the output file
9853
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
9854
- # to its proper name (with version) after linking.
9855
- _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9856
- _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9857
- # Commands to make compiler produce verbose output that lists
9858
- # what "hidden" libraries, object files and flags are used when
9859
- # linking a shared library.
9861
- # There doesn't appear to be a way to prevent this compiler from
9862
- # explicitly linking system object files so we need to strip them
9863
- # from the output so that they don't get included in the library
9865
- 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 "X$list" | $Xsed'
9867
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9868
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9870
- # Archives containing C++ object files must be created using
9871
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9872
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9877
- # version 8.0 and above of icpc choke on multiply defined symbols
9878
- # if we add $predep_objects and $postdep_objects, however 7.1 and
9879
- # earlier do not add the objects themselves.
9880
- case `$CC -V 2>&1` in
9882
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9885
- *) # Version 8.0 or newer
9888
- ia64*) tmp_idyn=' -i_dynamic';;
9890
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9894
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9895
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9896
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9897
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9900
- # Portland Group C++ compiler
9902
- *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
9903
- _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
9905
- $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
9906
- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
9907
- _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
9909
- $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
9910
- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
9912
- _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
9914
- $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
9915
- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9916
- _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
9918
- $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
9919
- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9921
- *) # Version 6 will use weak symbols
9922
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9923
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9927
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
9928
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9929
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9933
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9936
- runpath_var=LD_RUN_PATH
9937
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9938
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9940
- # Commands to make compiler produce verbose output that lists
9941
- # what "hidden" libraries, object files and flags are used when
9942
- # linking a shared library.
9944
- # There doesn't appear to be a way to prevent this compiler from
9945
- # explicitly linking system object files so we need to strip them
9946
- # from the output so that they don't get included in the library
9948
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
9951
- # IBM XL 8.0 on PPC, with GNU ld
9952
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9953
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9954
- _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9955
- if test "x$supports_anon_versioning" = xyes; then
9956
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
9957
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9958
- echo "local: *; };" >> $output_objdir/$libname.ver~
9959
- $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9963
- case `$CC -V 2>&1 | sed 5q` in
9966
- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9967
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9968
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
9969
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9970
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9971
- _LT_TAGVAR(compiler_needs_object, $1)=yes
9973
- # Not sure whether something based on
9974
- # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
9975
- # would be better.
9976
- output_verbose_link_cmd='echo'
9978
- # Archives containing C++ object files must be created using
9979
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
9980
- # necessary to make sure instantiated templates are included
9982
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
9990
- # FIXME: insert proper C++ library support
9991
- _LT_TAGVAR(ld_shlibs, $1)=no
9995
- # FIXME: insert proper C++ library support
9996
- _LT_TAGVAR(ld_shlibs, $1)=no
10000
- case $cc_basename in
10002
- # FIXME: insert proper C++ library support
10003
- _LT_TAGVAR(ld_shlibs, $1)=no
10006
- # FIXME: insert proper C++ library support
10007
- _LT_TAGVAR(ld_shlibs, $1)=no
10013
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10014
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10016
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10017
- _LT_TAGVAR(hardcode_direct, $1)=yes
10018
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10020
- # Workaround some broken pre-1.5 toolchains
10021
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10025
- _LT_TAGVAR(ld_shlibs, $1)=yes
10029
- # C++ shared libraries are fairly broken
10030
- _LT_TAGVAR(ld_shlibs, $1)=no
10034
- if test -f /usr/libexec/ld.so; then
10035
- _LT_TAGVAR(hardcode_direct, $1)=yes
10036
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10037
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
10038
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10039
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10040
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10041
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10042
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10043
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10045
- output_verbose_link_cmd=echo
10047
- _LT_TAGVAR(ld_shlibs, $1)=no
10051
- osf3* | osf4* | osf5*)
10052
- case $cc_basename in
10054
- # Kuck and Associates, Inc. (KAI) C++ Compiler
10056
- # KCC will only create a shared library if the output file
10057
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
10058
- # to its proper name (with version) after linking.
10059
- _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10061
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10062
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10064
- # Archives containing C++ object files must be created using
10065
- # the KAI C++ compiler.
10067
- osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
10068
- *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
10072
- # Rational C++ 2.4.1
10073
- # FIXME: insert proper C++ library support
10074
- _LT_TAGVAR(ld_shlibs, $1)=no
10079
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10080
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10081
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10084
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10085
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10086
- _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10087
- echo "-hidden">> $lib.exp~
10088
- $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
10090
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10094
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10096
- # Commands to make compiler produce verbose output that lists
10097
- # what "hidden" libraries, object files and flags are used when
10098
- # linking a shared library.
10100
- # There doesn't appear to be a way to prevent this compiler from
10101
- # explicitly linking system object files so we need to strip them
10102
- # from the output so that they don't get included in the library
10104
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
10107
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10108
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10111
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10114
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10118
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10119
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10121
- # Commands to make compiler produce verbose output that lists
10122
- # what "hidden" libraries, object files and flags are used when
10123
- # linking a shared library.
10124
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10127
- # FIXME: insert proper C++ library support
10128
- _LT_TAGVAR(ld_shlibs, $1)=no
10135
- # FIXME: insert proper C++ library support
10136
- _LT_TAGVAR(ld_shlibs, $1)=no
10140
- case $cc_basename in
10143
- # FIXME: insert proper C++ library support
10144
- _LT_TAGVAR(ld_shlibs, $1)=no
10148
- # FIXME: insert proper C++ library support
10149
- _LT_TAGVAR(ld_shlibs, $1)=no
10152
- # FIXME: insert proper C++ library support
10153
- _LT_TAGVAR(ld_shlibs, $1)=no
10159
- case $cc_basename in
10161
- # Sun C++ 4.2, 5.x and Centerline C++
10162
- _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
10163
- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10164
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10165
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10166
- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10168
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10169
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10171
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10173
- # The compiler driver will combine and reorder linker options,
10174
- # but understands `-z linker_flag'.
10175
- # Supported since Solaris 2.6 (maybe 2.5.1?)
10176
- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
10179
- _LT_TAGVAR(link_all_deplibs, $1)=yes
10181
- output_verbose_link_cmd='echo'
10183
- # Archives containing C++ object files must be created using
10184
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
10185
- # necessary to make sure instantiated templates are included
10186
- # in the archive.
10187
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10190
- # Green Hills C++ Compiler
10191
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10193
- # The C++ compiler must be used to create the archive.
10194
- _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10197
- # GNU C++ compiler with Solaris linker
10198
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10199
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
10200
- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
10201
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10202
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10203
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10205
- # Commands to make compiler produce verbose output that lists
10206
- # what "hidden" libraries, object files and flags are used when
10207
- # linking a shared library.
10208
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10210
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
10212
- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10213
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10214
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10216
- # Commands to make compiler produce verbose output that lists
10217
- # what "hidden" libraries, object files and flags are used when
10218
- # linking a shared library.
10219
- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10222
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
10224
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10226
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10234
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
10235
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10236
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10237
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10238
- runpath_var='LD_RUN_PATH'
10240
- case $cc_basename in
10242
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252
- sysv5* | sco3.2v5* | sco5v6*)
10253
- # Note: We can NOT use -z defs as we might desire, because we do not
10254
- # link with -lc, and that would cause any symbols used from libc to
10255
- # always be unresolved, which means just about no library would
10256
- # ever link correctly. If we're not using GNU ld we use -z text
10257
- # though, which does catch some bad symbols but isn't as heavy-handed
10259
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10260
- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
10261
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10262
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10263
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
10264
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
10265
- _LT_TAGVAR(link_all_deplibs, $1)=yes
10266
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
10267
- runpath_var='LD_RUN_PATH'
10269
- case $cc_basename in
10271
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282
- case $cc_basename in
10284
- # NonStop-UX NCC 3.20
10285
- # FIXME: insert proper C++ library support
10286
- _LT_TAGVAR(ld_shlibs, $1)=no
10289
- # FIXME: insert proper C++ library support
10290
- _LT_TAGVAR(ld_shlibs, $1)=no
10296
- # FIXME: insert proper C++ library support
10297
- _LT_TAGVAR(ld_shlibs, $1)=no
10301
- # FIXME: insert proper C++ library support
10302
- _LT_TAGVAR(ld_shlibs, $1)=no
10306
- AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
10307
- test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
10309
- _LT_TAGVAR(GCC, $1)="$GXX"
10310
- _LT_TAGVAR(LD, $1)="$LD"
10312
- ## CAVEAT EMPTOR:
10313
- ## There is no encapsulation within the following macros, do not change
10314
- ## the running order or otherwise move them around unless you know exactly
10315
- ## what you are doing...
10316
- _LT_SYS_HIDDEN_LIBDEPS($1)
10317
- _LT_COMPILER_PIC($1)
10318
- _LT_COMPILER_C_O($1)
10319
- _LT_COMPILER_FILE_LOCKS($1)
10320
- _LT_LINKER_SHLIBS($1)
10321
- _LT_SYS_DYNAMIC_LINKER($1)
10322
- _LT_LINKER_HARDCODE_LIBPATH($1)
10325
- fi # test -n "$compiler"
10331
- with_gnu_ld=$lt_save_with_gnu_ld
10332
- lt_cv_path_LDCXX=$lt_cv_path_LD
10333
- lt_cv_path_LD=$lt_save_path_LD
10334
- lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
10335
- lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
10336
-fi # test "$_lt_caught_CXX_error" != yes
10339
-])# _LT_LANG_CXX_CONFIG
10342
-# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
10343
-# ---------------------------------
10344
-# Figure out "hidden" library dependencies from verbose
10345
-# compiler output when linking a shared library.
10346
-# Parse the compiler output and extract the necessary
10347
-# objects, libraries and library flags.
10348
-m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
10349
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
10350
-# Dependencies to place before and after the object being linked:
10351
-_LT_TAGVAR(predep_objects, $1)=
10352
-_LT_TAGVAR(postdep_objects, $1)=
10353
-_LT_TAGVAR(predeps, $1)=
10354
-_LT_TAGVAR(postdeps, $1)=
10355
-_LT_TAGVAR(compiler_lib_search_path, $1)=
10357
-dnl we can't use the lt_simple_compile_test_code here,
10358
-dnl because it contains code intended for an executable,
10359
-dnl not a library. It's possible we should let each
10360
-dnl tag define a new lt_????_link_test_code variable,
10361
-dnl but it's only used here...
10362
-m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
10364
-void foo (void) { a = 0; }
10366
-], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
10370
- Foo (void) { a = 0; }
10375
-], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
10383
-], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
10391
-], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
10392
-public class foo {
10394
- public void bar (void) {
10400
-dnl Parse the compiler output and extract the necessary
10401
-dnl objects, libraries and library flags.
10402
-if AC_TRY_EVAL(ac_compile); then
10403
- # Parse the compiler output and extract the necessary
10404
- # objects, libraries and library flags.
10406
- # Sentinel used to keep track of whether or not we are before
10407
- # the conftest object file.
10408
- pre_test_object_deps_done=no
10410
- for p in `eval "$output_verbose_link_cmd"`; do
10414
- # Some compilers place space between "-{L,R}" and the path.
10415
- # Remove the space.
10416
- if test $p = "-L" ||
10417
- test $p = "-R"; then
10424
- if test "$pre_test_object_deps_done" = no; then
10427
- # Internal compiler library paths should come after those
10428
- # provided the user. The postdeps already come after the
10429
- # user supplied libs so there is no need to process them.
10430
- if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
10431
- _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
10433
- _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
10436
- # The "-l" case would never come before the object being
10437
- # linked, so don't bother handling this case.
10440
- if test -z "$_LT_TAGVAR(postdeps, $1)"; then
10441
- _LT_TAGVAR(postdeps, $1)="${prev}${p}"
10443
- _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
10449
- # This assumes that the test object file only shows up
10450
- # once in the compiler output.
10451
- if test "$p" = "conftest.$objext"; then
10452
- pre_test_object_deps_done=yes
10456
- if test "$pre_test_object_deps_done" = no; then
10457
- if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
10458
- _LT_TAGVAR(predep_objects, $1)="$p"
10460
- _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
10463
- if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
10464
- _LT_TAGVAR(postdep_objects, $1)="$p"
10466
- _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
10471
- *) ;; # Ignore the rest.
10477
- rm -f a.out a.exe
10479
- echo "libtool.m4: error: problem compiling $1 test program"
10482
-$RM -f confest.$objext
10484
-# PORTME: override above test on systems where it is broken
10485
-m4_if([$1], [CXX],
10488
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
10489
- # hack all around it, let's just trust "g++" to DTRT.
10490
- _LT_TAGVAR(predep_objects,$1)=
10491
- _LT_TAGVAR(postdep_objects,$1)=
10492
- _LT_TAGVAR(postdeps,$1)=
10496
- case `$CC -V 2>&1 | sed 5q` in
10500
- # The more standards-conforming stlport4 library is
10501
- # incompatible with the Cstd library. Avoid specifying
10502
- # it if it's in CXXFLAGS. Ignore libCrun as
10503
- # -library=stlport4 depends on it.
10504
- case " $CXX $CXXFLAGS " in
10505
- *" -library=stlport4 "*)
10506
- solaris_use_stlport4=yes
10510
- if test "$solaris_use_stlport4" != yes; then
10511
- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
10518
- case $cc_basename in
10520
- # The more standards-conforming stlport4 library is
10521
- # incompatible with the Cstd library. Avoid specifying
10522
- # it if it's in CXXFLAGS. Ignore libCrun as
10523
- # -library=stlport4 depends on it.
10524
- case " $CXX $CXXFLAGS " in
10525
- *" -library=stlport4 "*)
10526
- solaris_use_stlport4=yes
10530
- # Adding this requires a known-good setup of shared libraries for
10531
- # Sun compiler versions before 5.6, else PIC objects from an old
10532
- # archive will be linked into the output, leading to subtle bugs.
10533
- if test "$solaris_use_stlport4" != yes; then
10534
- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
10535
+ if test -z "$haveit"; then
10536
+ if test -d "$additional_libdir"; then
10537
+ dnl Really add $additional_libdir to $LDFLAGS.
10538
+ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
10550
-case " $_LT_TAGVAR(postdeps, $1) " in
10551
-*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
10553
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=
10554
-if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
10555
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
10557
-_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
10558
- [The directories searched by this compiler when creating a shared library])
10559
-_LT_TAGDECL([], [predep_objects], [1],
10560
- [Dependencies to place before and after the objects being linked to
10561
- create a shared library])
10562
-_LT_TAGDECL([], [postdep_objects], [1])
10563
-_LT_TAGDECL([], [predeps], [1])
10564
-_LT_TAGDECL([], [postdeps], [1])
10565
-_LT_TAGDECL([], [compiler_lib_search_path], [1],
10566
- [The library search path used internally by the compiler when linking
10567
- a shared library])
10568
-])# _LT_SYS_HIDDEN_LIBDEPS
10573
-# Since AC_PROG_F77 is broken, in that it returns the empty string
10574
-# if there is no fortran compiler, we have our own version here.
10575
-m4_defun([_LT_PROG_F77],
10576
+dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
10577
+dnl acl_final_exec_prefix, containing the values to which $prefix and
10578
+dnl $exec_prefix will expand at the end of the configure script.
10579
+AC_DEFUN([AC_LIB_PREPARE_PREFIX],
10581
-pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
10583
-if test -z "$F77" || test "X$F77" = "Xno"; then
10584
- _lt_disable_F77=yes
10586
-popdef([AC_MSG_ERROR])
10589
-dnl aclocal-1.4 backwards compatibility:
10590
-dnl AC_DEFUN([_LT_PROG_F77], [])
10593
-# _LT_LANG_F77_CONFIG([TAG])
10594
-# --------------------------
10595
-# Ensure that the configuration variables for a Fortran 77 compiler are
10596
-# suitably defined. These variables are subsequently used by _LT_CONFIG
10597
-# to write the compiler configuration to `libtool'.
10598
-m4_defun([_LT_LANG_F77_CONFIG],
10599
-[AC_REQUIRE([_LT_PROG_F77])dnl
10600
-AC_LANG_PUSH(Fortran 77)
10602
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
10603
-_LT_TAGVAR(allow_undefined_flag, $1)=
10604
-_LT_TAGVAR(always_export_symbols, $1)=no
10605
-_LT_TAGVAR(archive_expsym_cmds, $1)=
10606
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
10607
-_LT_TAGVAR(hardcode_direct, $1)=no
10608
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
10609
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
10610
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
10611
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
10612
-_LT_TAGVAR(hardcode_minus_L, $1)=no
10613
-_LT_TAGVAR(hardcode_automatic, $1)=no
10614
-_LT_TAGVAR(inherit_rpath, $1)=no
10615
-_LT_TAGVAR(module_cmds, $1)=
10616
-_LT_TAGVAR(module_expsym_cmds, $1)=
10617
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
10618
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
10619
-_LT_TAGVAR(no_undefined_flag, $1)=
10620
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
10621
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
10623
-# Source file extension for f77 test sources.
10626
-# Object file extension for compiled f77 test sources.
10628
-_LT_TAGVAR(objext, $1)=$objext
10630
-# No sense in running all these tests if we already determined that
10631
-# the F77 compiler isn't working. Some variables (like enable_shared)
10632
-# are currently assumed to apply to all compilers on this platform,
10633
-# and will be corrupted by setting them based on a non-working compiler.
10634
-if test "$_lt_disable_F77" != yes; then
10635
- # Code to be used in simple compile tests
10636
- lt_simple_compile_test_code="\
10642
- # Code to be used in simple link tests
10643
- lt_simple_link_test_code="\
10648
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10651
- # save warnings/boilerplate of simple test code
10652
- _LT_COMPILER_BOILERPLATE
10653
- _LT_LINKER_BOILERPLATE
10655
- # Allow CC to be a program name with arguments.
10660
- _LT_TAGVAR(compiler, $1)=$CC
10661
- _LT_CC_BASENAME([$compiler])
10663
- if test -n "$compiler"; then
10664
- AC_MSG_CHECKING([if libtool supports shared libraries])
10665
- AC_MSG_RESULT([$can_build_shared])
10667
- AC_MSG_CHECKING([whether to build shared libraries])
10668
- test "$can_build_shared" = "no" && enable_shared=no
10670
- # On AIX, shared libraries and static libraries use the same namespace, and
10671
- # are all built from PIC.
10674
- test "$enable_shared" = yes && enable_static=no
10675
- if test -n "$RANLIB"; then
10676
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
10677
- postinstall_cmds='$RANLIB $lib'
10681
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10682
- test "$enable_shared" = yes && enable_static=no
10686
- AC_MSG_RESULT([$enable_shared])
10687
+ dnl Unfortunately, prefix and exec_prefix get only finally determined
10688
+ dnl at the end of configure.
10689
+ if test "X$prefix" = "XNONE"; then
10690
+ acl_final_prefix="$ac_default_prefix"
10692
+ acl_final_prefix="$prefix"
10694
+ if test "X$exec_prefix" = "XNONE"; then
10695
+ acl_final_exec_prefix='${prefix}'
10697
+ acl_final_exec_prefix="$exec_prefix"
10699
+ acl_save_prefix="$prefix"
10700
+ prefix="$acl_final_prefix"
10701
+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10702
+ prefix="$acl_save_prefix"
10705
- AC_MSG_CHECKING([whether to build static libraries])
10706
- # Make sure either enable_shared or enable_static is yes.
10707
- test "$enable_shared" = yes || enable_static=yes
10708
- AC_MSG_RESULT([$enable_static])
10710
- _LT_TAGVAR(GCC, $1)="$G77"
10711
- _LT_TAGVAR(LD, $1)="$LD"
10713
- ## CAVEAT EMPTOR:
10714
- ## There is no encapsulation within the following macros, do not change
10715
- ## the running order or otherwise move them around unless you know exactly
10716
- ## what you are doing...
10717
- _LT_COMPILER_PIC($1)
10718
- _LT_COMPILER_C_O($1)
10719
- _LT_COMPILER_FILE_LOCKS($1)
10720
- _LT_LINKER_SHLIBS($1)
10721
- _LT_SYS_DYNAMIC_LINKER($1)
10722
- _LT_LINKER_HARDCODE_LIBPATH($1)
10725
- fi # test -n "$compiler"
10729
-fi # test "$_lt_disable_F77" != yes
10732
-])# _LT_LANG_F77_CONFIG
10737
-# Since AC_PROG_FC is broken, in that it returns the empty string
10738
-# if there is no fortran compiler, we have our own version here.
10739
-m4_defun([_LT_PROG_FC],
10740
+dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
10741
+dnl variables prefix and exec_prefix bound to the values they will have
10742
+dnl at the end of the configure script.
10743
+AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
10745
-pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
10747
-if test -z "$FC" || test "X$FC" = "Xno"; then
10748
- _lt_disable_FC=yes
10750
-popdef([AC_MSG_ERROR])
10753
-dnl aclocal-1.4 backwards compatibility:
10754
-dnl AC_DEFUN([_LT_PROG_FC], [])
10757
-# _LT_LANG_FC_CONFIG([TAG])
10758
-# -------------------------
10759
-# Ensure that the configuration variables for a Fortran compiler are
10760
-# suitably defined. These variables are subsequently used by _LT_CONFIG
10761
-# to write the compiler configuration to `libtool'.
10762
-m4_defun([_LT_LANG_FC_CONFIG],
10763
-[AC_REQUIRE([_LT_PROG_FC])dnl
10764
-AC_LANG_PUSH(Fortran)
10766
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
10767
-_LT_TAGVAR(allow_undefined_flag, $1)=
10768
-_LT_TAGVAR(always_export_symbols, $1)=no
10769
-_LT_TAGVAR(archive_expsym_cmds, $1)=
10770
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
10771
-_LT_TAGVAR(hardcode_direct, $1)=no
10772
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
10773
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
10774
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
10775
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
10776
-_LT_TAGVAR(hardcode_minus_L, $1)=no
10777
-_LT_TAGVAR(hardcode_automatic, $1)=no
10778
-_LT_TAGVAR(inherit_rpath, $1)=no
10779
-_LT_TAGVAR(module_cmds, $1)=
10780
-_LT_TAGVAR(module_expsym_cmds, $1)=
10781
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
10782
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
10783
-_LT_TAGVAR(no_undefined_flag, $1)=
10784
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
10785
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
10787
-# Source file extension for fc test sources.
10788
-ac_ext=${ac_fc_srcext-f}
10790
-# Object file extension for compiled fc test sources.
10792
-_LT_TAGVAR(objext, $1)=$objext
10794
-# No sense in running all these tests if we already determined that
10795
-# the FC compiler isn't working. Some variables (like enable_shared)
10796
-# are currently assumed to apply to all compilers on this platform,
10797
-# and will be corrupted by setting them based on a non-working compiler.
10798
-if test "$_lt_disable_FC" != yes; then
10799
- # Code to be used in simple compile tests
10800
- lt_simple_compile_test_code="\
10806
- # Code to be used in simple link tests
10807
- lt_simple_link_test_code="\
10812
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10815
- # save warnings/boilerplate of simple test code
10816
- _LT_COMPILER_BOILERPLATE
10817
- _LT_LINKER_BOILERPLATE
10819
- # Allow CC to be a program name with arguments.
10824
- GCC=$ac_cv_fc_compiler_gnu
10826
- _LT_TAGVAR(compiler, $1)=$CC
10827
- _LT_CC_BASENAME([$compiler])
10829
- if test -n "$compiler"; then
10830
- AC_MSG_CHECKING([if libtool supports shared libraries])
10831
- AC_MSG_RESULT([$can_build_shared])
10833
- AC_MSG_CHECKING([whether to build shared libraries])
10834
- test "$can_build_shared" = "no" && enable_shared=no
10836
- # On AIX, shared libraries and static libraries use the same namespace, and
10837
- # are all built from PIC.
10840
- test "$enable_shared" = yes && enable_static=no
10841
- if test -n "$RANLIB"; then
10842
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
10843
- postinstall_cmds='$RANLIB $lib'
10847
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10848
- test "$enable_shared" = yes && enable_static=no
10852
- AC_MSG_RESULT([$enable_shared])
10854
- AC_MSG_CHECKING([whether to build static libraries])
10855
- # Make sure either enable_shared or enable_static is yes.
10856
- test "$enable_shared" = yes || enable_static=yes
10857
- AC_MSG_RESULT([$enable_static])
10859
- _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
10860
- _LT_TAGVAR(LD, $1)="$LD"
10862
- ## CAVEAT EMPTOR:
10863
- ## There is no encapsulation within the following macros, do not change
10864
- ## the running order or otherwise move them around unless you know exactly
10865
- ## what you are doing...
10866
- _LT_SYS_HIDDEN_LIBDEPS($1)
10867
- _LT_COMPILER_PIC($1)
10868
- _LT_COMPILER_C_O($1)
10869
- _LT_COMPILER_FILE_LOCKS($1)
10870
- _LT_LINKER_SHLIBS($1)
10871
- _LT_SYS_DYNAMIC_LINKER($1)
10872
- _LT_LINKER_HARDCODE_LIBPATH($1)
10875
- fi # test -n "$compiler"
10879
-fi # test "$_lt_disable_FC" != yes
10882
-])# _LT_LANG_FC_CONFIG
10885
-# _LT_LANG_GCJ_CONFIG([TAG])
10886
-# --------------------------
10887
-# Ensure that the configuration variables for the GNU Java Compiler compiler
10888
-# are suitably defined. These variables are subsequently used by _LT_CONFIG
10889
-# to write the compiler configuration to `libtool'.
10890
-m4_defun([_LT_LANG_GCJ_CONFIG],
10891
-[AC_REQUIRE([LT_PROG_GCJ])dnl
10894
-# Source file extension for Java test sources.
10897
-# Object file extension for compiled Java test sources.
10899
-_LT_TAGVAR(objext, $1)=$objext
10901
-# Code to be used in simple compile tests
10902
-lt_simple_compile_test_code="class foo {}"
10904
-# Code to be used in simple link tests
10905
-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
10907
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10910
-# save warnings/boilerplate of simple test code
10911
-_LT_COMPILER_BOILERPLATE
10912
-_LT_LINKER_BOILERPLATE
10914
-# Allow CC to be a program name with arguments.
10920
-_LT_TAGVAR(compiler, $1)=$CC
10921
-_LT_TAGVAR(LD, $1)="$LD"
10922
-_LT_CC_BASENAME([$compiler])
10924
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
10925
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
10927
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
10929
-if test -n "$compiler"; then
10930
- _LT_COMPILER_NO_RTTI($1)
10931
- _LT_COMPILER_PIC($1)
10932
- _LT_COMPILER_C_O($1)
10933
- _LT_COMPILER_FILE_LOCKS($1)
10934
- _LT_LINKER_SHLIBS($1)
10935
- _LT_LINKER_HARDCODE_LIBPATH($1)
10944
-])# _LT_LANG_GCJ_CONFIG
10947
-# _LT_LANG_RC_CONFIG([TAG])
10948
-# -------------------------
10949
-# Ensure that the configuration variables for the Windows resource compiler
10950
-# are suitably defined. These variables are subsequently used by _LT_CONFIG
10951
-# to write the compiler configuration to `libtool'.
10952
-m4_defun([_LT_LANG_RC_CONFIG],
10953
-[AC_REQUIRE([LT_PROG_RC])dnl
10956
-# Source file extension for RC test sources.
10959
-# Object file extension for compiled RC test sources.
10961
-_LT_TAGVAR(objext, $1)=$objext
10963
-# Code to be used in simple compile tests
10964
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10966
-# Code to be used in simple link tests
10967
-lt_simple_link_test_code="$lt_simple_compile_test_code"
10969
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10972
-# save warnings/boilerplate of simple test code
10973
-_LT_COMPILER_BOILERPLATE
10974
-_LT_LINKER_BOILERPLATE
10976
-# Allow CC to be a program name with arguments.
10980
-CC=${RC-"windres"}
10982
-_LT_TAGVAR(compiler, $1)=$CC
10983
-_LT_CC_BASENAME([$compiler])
10984
-_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
10986
-if test -n "$compiler"; then
10994
-])# _LT_LANG_RC_CONFIG
10996
+ acl_save_prefix="$prefix"
10997
+ prefix="$acl_final_prefix"
10998
+ acl_save_exec_prefix="$exec_prefix"
10999
+ exec_prefix="$acl_final_exec_prefix"
11001
+ exec_prefix="$acl_save_exec_prefix"
11002
+ prefix="$acl_save_prefix"
11007
-AC_DEFUN([LT_PROG_GCJ],
11008
-[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
11009
- [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
11010
- [AC_CHECK_TOOL(GCJ, gcj,)
11011
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
11012
- AC_SUBST(GCJFLAGS)])])[]dnl
11013
+dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
11014
+dnl the basename of the libdir, either "lib" or "lib64".
11015
+AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
11017
+ dnl There is no formal standard regarding lib and lib64. The current
11018
+ dnl practice is that on a system supporting 32-bit and 64-bit instruction
11019
+ dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
11020
+ dnl libraries go under $prefix/lib. We determine the compiler's default
11021
+ dnl mode by looking at the compiler's library search path. If at least
11022
+ dnl of its elements ends in /lib64 or points to a directory whose absolute
11023
+ dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
11024
+ dnl default, namely "lib".
11025
+ acl_libdirstem=lib
11026
+ searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11027
+ if test -n "$searchpath"; then
11028
+ acl_save_IFS="${IFS= }"; IFS=":"
11029
+ for searchdir in $searchpath; do
11030
+ if test -d "$searchdir"; then
11031
+ case "$searchdir" in
11032
+ */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11033
+ *) searchdir=`cd "$searchdir" && pwd`
11034
+ case "$searchdir" in
11035
+ */lib64 ) acl_libdirstem=lib64 ;;
11040
+ IFS="$acl_save_IFS"
11045
-AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
11046
-dnl aclocal-1.4 backwards compatibility:
11047
-dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
11052
-AC_DEFUN([LT_PROG_RC],
11053
-[AC_CHECK_TOOL(RC, windres,)
6195
11055
+# nls.m4 serial 3 (gettext-0.15)
6196
11056
+dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
6197
11057
+dnl This file is free software; the Free Software Foundation
15504
20417
- need_lib_prefix=no
15505
20418
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15506
20419
- case $host_os in
15507
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15508
- *) need_version=no ;;
20420
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20421
- *) need_version=no ;;
20423
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
20424
+dnl aclocal-1.4 backwards compatibility:
20425
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
20430
+# find a file program which can recognize a shared library
20431
+m4_defun([_LT_PATH_MAGIC],
20432
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
20433
+if test -z "$lt_cv_path_MAGIC_CMD"; then
20434
+ if test -n "$ac_tool_prefix"; then
20435
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
20440
+])# _LT_PATH_MAGIC
20445
+# find the pathname to the GNU or non-GNU linker
20446
+AC_DEFUN([LT_PATH_LD],
20447
+[AC_REQUIRE([AC_PROG_CC])dnl
20448
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
20449
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
20450
+m4_require([_LT_DECL_SED])dnl
20451
+m4_require([_LT_DECL_EGREP])dnl
20453
+AC_ARG_WITH([gnu-ld],
20454
+ [AS_HELP_STRING([--with-gnu-ld],
20455
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
20456
+ [test "$withval" = no || with_gnu_ld=yes],
20457
+ [with_gnu_ld=no])dnl
20460
+if test "$GCC" = yes; then
20461
+ # Check if gcc -print-prog-name=ld gives a path.
20462
+ AC_MSG_CHECKING([for ld used by $CC])
20465
+ # gcc leaves a trailing carriage return which upsets mingw
20466
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20468
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15510
20470
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15511
20471
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15512
20472
- shlibpath_var=LD_LIBRARY_PATH
15513
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20473
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15514
20474
- case $host_os in
15515
20475
- openbsd2.[[89]] | openbsd2.[[89]].*)
15516
20476
- shlibpath_overrides_runpath=no
15519
- shlibpath_overrides_runpath=yes
15520
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15521
+ for tagname in $tagnames; do
20478
+ # Accept absolute paths.
20479
+ [[\\/]]* | ?:[[\\/]]*)
20480
+ re_direlt='/[[^/]][[^/]]*/\.\./'
20481
+ # Canonicalize the pathname of ld
20482
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20483
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20484
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20486
+ test -z "$LD" && LD="$ac_prog"
20489
+ # If it fails, then pretend we aren't using GCC.
20493
+ # If it is relative, then search for the first ld in PATH.
20494
+ with_gnu_ld=unknown
20497
+elif test "$with_gnu_ld" = yes; then
20498
+ AC_MSG_CHECKING([for GNU ld])
20500
+ AC_MSG_CHECKING([for non-GNU ld])
20502
+AC_CACHE_VAL(lt_cv_path_LD,
20503
+[if test -z "$LD"; then
20504
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20505
+ for ac_dir in $PATH; do
15522
20506
+ IFS="$lt_save_ifs"
15523
+ # Check whether tagname contains only valid characters
15524
+ case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
15526
+ *) AC_MSG_ERROR([invalid tag name: $tagname])
15530
- shlibpath_overrides_runpath=yes
15535
- libname_spec='$name'
15536
- shrext_cmds=".dll"
15537
- need_lib_prefix=no
15538
- library_names_spec='$libname${shared_ext} $libname.a'
15539
- dynamic_linker='OS/2 ld.exe'
15540
- shlibpath_var=LIBPATH
15544
-osf3* | osf4* | osf5*)
15546
- need_lib_prefix=no
15548
- soname_spec='${libname}${release}${shared_ext}$major'
15549
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550
- shlibpath_var=LD_LIBRARY_PATH
15551
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15552
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15554
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15556
+ AC_MSG_ERROR([tag name \"$tagname\" already exists])
15560
- dynamic_linker=no
15564
- version_type=linux
15565
- need_lib_prefix=no
15567
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568
- soname_spec='${libname}${release}${shared_ext}$major'
15569
- shlibpath_var=LD_LIBRARY_PATH
15570
- shlibpath_overrides_runpath=yes
15571
- hardcode_into_libs=yes
15572
- # ldd complains unless libraries are executable
15573
- postinstall_cmds='chmod +x $lib'
15577
- version_type=sunos
15578
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15579
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15580
- shlibpath_var=LD_LIBRARY_PATH
15581
- shlibpath_overrides_runpath=yes
15582
- if test "$with_gnu_ld" = yes; then
15583
- need_lib_prefix=no
15589
- version_type=linux
15590
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15591
- soname_spec='${libname}${release}${shared_ext}$major'
15592
- shlibpath_var=LD_LIBRARY_PATH
15593
- case $host_vendor in
15595
- shlibpath_overrides_runpath=no
15596
- need_lib_prefix=no
15597
- export_dynamic_flag_spec='${wl}-Blargedynsym'
15598
- runpath_var=LD_RUN_PATH
15601
- need_lib_prefix=no
15604
- need_lib_prefix=no
15606
- shlibpath_overrides_runpath=no
15607
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15613
- if test -d /usr/nec ;then
15614
- version_type=linux
15615
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15616
- soname_spec='$libname${shared_ext}.$major'
15617
- shlibpath_var=LD_LIBRARY_PATH
15621
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15622
- version_type=freebsd-elf
15623
- need_lib_prefix=no
15625
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15626
- soname_spec='${libname}${release}${shared_ext}$major'
15627
- shlibpath_var=LD_LIBRARY_PATH
15628
- hardcode_into_libs=yes
15629
- if test "$with_gnu_ld" = yes; then
15630
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15631
- shlibpath_overrides_runpath=no
15633
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15634
- shlibpath_overrides_runpath=yes
15637
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15641
- sys_lib_dlsearch_path_spec='/usr/lib'
15645
- version_type=linux
15646
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647
- soname_spec='${libname}${release}${shared_ext}$major'
15648
- shlibpath_var=LD_LIBRARY_PATH
15652
- dynamic_linker=no
15655
-AC_MSG_RESULT([$dynamic_linker])
15656
-test "$dynamic_linker" = no && can_build_shared=no
15658
-AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
15659
-[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
15660
-sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15661
-AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
15662
-[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
15663
-sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15665
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15666
-if test "$GCC" = yes; then
15667
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15669
-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
15672
-# _LT_AC_TAGCONFIG
15673
-# ----------------
15674
-AC_DEFUN([_LT_AC_TAGCONFIG],
15675
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
15676
-AC_ARG_WITH([tags],
15677
- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
15678
- [include additional configurations @<:@automatic@:>@])],
15679
- [tagnames="$withval"])
15681
-if test -f "$ltmain" && test -n "$tagnames"; then
15682
- if test ! -f "${ofile}"; then
15683
- AC_MSG_WARN([output file `$ofile' does not exist])
15686
- if test -z "$LTCC"; then
15687
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15688
- if test -z "$LTCC"; then
15689
- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
15691
- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
15694
- if test -z "$LTCFLAGS"; then
15695
- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
15698
- # Extract list of available tagged configurations in $ofile.
15699
- # Note that this assumes the entire list is on one line.
15700
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15702
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15703
- for tagname in $tagnames; do
15704
- IFS="$lt_save_ifs"
15705
- # Check whether tagname contains only valid characters
15706
- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
15708
- *) AC_MSG_ERROR([invalid tag name: $tagname])
15712
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15714
- AC_MSG_ERROR([tag name \"$tagname\" already exists])
15717
- # Update the list of available tags.
15718
- if test -n "$tagname"; then
15719
- echo appending configuration tag \"$tagname\" to $ofile
15720
+ # Update the list of available tags.
15721
+ if test -n "$tagname"; then
15722
+ echo appending configuration tag \"$tagname\" to $ofile
15726
@@ -3380,7 +2516,7 @@
15727
lt_cv_deplibs_check_method=pass_all
15731
+netbsd* | netbsdelf*-gnu)
15732
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15733
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
15735
@@ -4387,7 +3523,7 @@
15740
+ netbsd* | netbsdelf*-gnu)
15741
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15742
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15744
@@ -6079,7 +5215,7 @@
15749
+ netbsd* | netbsdelf*-gnu)
15751
osf3* | osf4* | osf5*)
15752
case $cc_basename in
15753
@@ -6177,1357 +5313,2243 @@
15757
- # FIXME: we need at least 68020 code to build shared libraries, but
15758
- # adding the `-m68020' flag to GCC prevents building anything better,
15759
- # like `-m68040'.
15760
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
15761
+ # FIXME: we need at least 68020 code to build shared libraries, but
15762
+ # adding the `-m68020' flag to GCC prevents building anything better,
15763
+ # like `-m68040'.
15764
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
15767
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15768
+ # PIC is the default for these OSes.
15771
+ mingw* | cygwin* | pw32* | os2*)
15772
+ # This hack is so that the source file can tell whether it is being
15773
+ # built for inclusion in a dll (and should export symbols for example).
15774
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
15775
+ # (--disable-auto-import) libraries
15776
+ m4_if([$1], [GCJ], [],
15777
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
15780
+ darwin* | rhapsody*)
15781
+ # PIC is the default on this platform
15782
+ # Common symbols not allowed in MH_DYLIB files
15783
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
15787
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15788
+ # Instead, we relocate shared libraries at runtime.
15792
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
15793
+ # on systems that don't support them.
15794
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
15799
+ if test -d /usr/nec; then
15800
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
15805
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15806
+ # not for PA HP-UX.
15807
+ case $host_cpu in
15812
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
15818
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
15822
+ # PORTME Check for flag to pass linker flags through the system compiler.
15825
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15826
+ if test "$host_cpu" = ia64; then
15827
+ # AIX 5 now supports IA64 processor
15828
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15830
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
15834
+ # PIC is the default on this platform
15835
+ # Common symbols not allowed in MH_DYLIB files
15836
+ case $cc_basename in
15838
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
15839
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15844
+ mingw* | cygwin* | pw32* | os2*)
15845
+ # This hack is so that the source file can tell whether it is being
15846
+ # built for inclusion in a dll (and should export symbols for example).
15847
+ m4_if([$1], [GCJ], [],
15848
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
15851
+ hpux9* | hpux10* | hpux11*)
15852
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15853
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15854
+ # not for PA HP-UX.
15855
+ case $host_cpu in
15860
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
15863
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
15864
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
15867
+ irix5* | irix6* | nonstopux*)
15868
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15869
+ # PIC (with -KPIC) is the default.
15870
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
15874
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15875
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15878
+ linux* | k*bsd*-gnu)
15879
+ case $cc_basename in
15881
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15882
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15883
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
15885
+ pgcc* | pgf77* | pgf90* | pgf95*)
15886
+ # Portland Group compilers (*not* the Pentium gcc compiler,
15887
+ # which looks to be a dead project)
15888
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15889
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
15890
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15893
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15894
+ # All Alpha code is PIC.
15895
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
15898
+ case `$CC -V 2>&1 | sed 5q` in
15901
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15902
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15903
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15906
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
15907
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15908
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15909
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
15916
+ osf3* | osf4* | osf5*)
15917
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15918
+ # All OSF/1 code is PIC.
15919
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
15923
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
15927
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15928
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15929
+ case $cc_basename in
15930
+ f77* | f90* | f95*)
15931
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
15933
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
15938
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
15939
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
15940
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15943
+ sysv4 | sysv4.2uw2* | sysv4.3*)
15944
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15945
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15946
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15950
+ if test -d /usr/nec ;then
15951
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
15952
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15956
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15957
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15958
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
15959
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15963
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
15964
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
15968
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
15969
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
15973
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
15978
+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
15981
+# Check to make sure the PIC flag actually works.
15983
+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
15984
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
15985
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
15986
+ [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
15987
+ [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
15989
+ *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
15991
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
15992
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
15995
+ # For platforms which do not support PIC, -DPIC is meaningless:
15997
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
16000
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
16005
+# Check to make sure the static flag actually works.
16007
+wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
16008
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
16009
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
16010
+ $lt_tmp_static_flag,
16012
+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
16016
+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
16017
+# ------------------------------------
16018
+# See if the linker supports building shared libraries.
16019
+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
16020
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
16021
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
16022
+ifelse([$1],[CXX],[
16023
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16026
+ # If we're using GNU nm, then we don't want the "-C" option.
16027
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
16028
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16029
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
16031
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
16035
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
16037
+ cygwin* | mingw*)
16038
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
16040
+ linux* | k*bsd*-gnu)
16041
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
16044
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16047
+ _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
16050
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
16051
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
16052
+ _LT_AC_TAGVAR(archive_cmds, $1)=
16053
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
16054
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
16055
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
16056
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
16057
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
16058
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
16059
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
16060
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
16061
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
16062
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
16063
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
16064
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
16065
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
16066
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=no
16067
+ _LT_AC_TAGVAR(module_cmds, $1)=
16068
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)=
16069
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
16070
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16071
+ # include_expsyms should be a list of space-separated symbols to be *always*
16072
+ # included in the symbol list
16073
+ _LT_AC_TAGVAR(include_expsyms, $1)=
16074
+ # exclude_expsyms can be an extended regexp of symbols to exclude
16075
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
16076
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16077
+ # as well as any symbol that contains `d'.
16078
+ _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
16079
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16080
+ # platforms (ab)use it in PIC code, but their linkers get confused if
16081
+ # the symbol is explicitly referenced. Since portable code cannot
16082
+ # rely on this symbol name, it's probably fine to never include it in
16083
+ # preloaded symbol tables.
16084
+ # Exclude shared library initialization/finalization symbols.
16085
+dnl Note also adjust exclude_expsyms for C++ above.
16086
+ extract_expsyms_cmds=
16087
+ # Just being paranoid about ensuring that cc_basename is set.
16088
+ _LT_CC_BASENAME([$compiler])
16090
+ cygwin* | mingw* | pw32*)
16091
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
16092
+ # When not using gcc, we currently assume that we are using
16093
+ # Microsoft Visual C++.
16094
+ if test "$GCC" != yes; then
16099
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
16107
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
16108
+ if test "$with_gnu_ld" = yes; then
16109
+ # If archive_cmds runs LD, not CC, wlarc should be empty
16112
+ # Set some defaults for GNU ld with shared library support. These
16113
+ # are reset later if shared libraries are not supported. Putting them
16114
+ # here allows them to be overridden if necessary.
16115
+ runpath_var=LD_RUN_PATH
16116
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
16117
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
16118
+ # ancient GNU ld didn't support --whole-archive et. al.
16119
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16120
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16122
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
16124
+ supports_anon_versioning=no
16125
+ case `$LD -v 2>/dev/null` in
16126
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
16127
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16128
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16129
+ *\ 2.11.*) ;; # other 2.11 versions
16130
+ *) supports_anon_versioning=yes ;;
16133
+ # See if GNU ld supports shared libraries.
16136
+ # On AIX/PPC, the GNU linker is very broken
16137
+ if test "$host_cpu" != ia64; then
16138
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16141
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16142
+*** to be unable to reliably create shared libraries on AIX.
16143
+*** Therefore, libtool is disabling shared libraries support. If you
16144
+*** really care for shared libraries, you may want to modify your PATH
16145
+*** so that a non-GNU linker is found, and then restart.
16152
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16153
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16154
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16156
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16157
+ # that the semantics of dynamic libraries on AmigaOS, at least up
16158
+ # to version 4, is to share data among multiple programs linked
16159
+ # with the same dynamic library. Since this doesn't match the
16160
+ # behavior of shared libraries on other platforms, we can't use
16162
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16166
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16167
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
16168
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16169
+ # support --undefined. This deserves some investigation. FIXME
16170
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16176
+ cygwin* | mingw* | pw32*)
16177
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
16178
+ # as there is no search path for DLLs.
16179
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16180
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
16181
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
16182
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
16183
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
16185
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16186
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16187
+ # If the export-symbols file already is a .def file (1st line
16188
+ # is EXPORTS), use it as is; otherwise, prepend...
16189
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16190
+ cp $export_symbols $output_objdir/$soname.def;
16192
+ echo EXPORTS > $output_objdir/$soname.def;
16193
+ cat $export_symbols >> $output_objdir/$soname.def;
16195
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16197
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16202
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
16203
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16204
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
16205
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
16206
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16207
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
16208
+ # default) and relocated if they conflict, which is a slow very memory
16209
+ # consuming and fragmenting process. To avoid this, we pick a random,
16210
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16211
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16212
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16213
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16216
+ gnu* | linux* | k*bsd*-gnu)
16217
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16219
+ case $cc_basename,$host_cpu in
16220
+ pgcc*) # Portland Group C compiler
16221
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16222
+ tmp_addflag=' $pic_flag'
16224
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16225
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16226
+ tmp_addflag=' $pic_flag -Mnomain' ;;
16227
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16228
+ tmp_addflag=' -i_dynamic' ;;
16229
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16230
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
16231
+ ifc* | ifort*) # Intel Fortran compiler
16232
+ tmp_addflag=' -nofor_main' ;;
16234
+ case `$CC -V 2>&1 | sed 5q` in
16235
+ *Sun\ C*) # Sun C 5.9
16236
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16237
+ tmp_sharedflag='-G' ;;
16238
+ *Sun\ F*) # Sun Fortran 8.3
16239
+ tmp_sharedflag='-G' ;;
16241
+ tmp_sharedflag='-shared' ;;
16243
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245
+ if test $supports_anon_versioning = yes; then
16246
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
16247
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16248
+ $echo "local: *; };" >> $output_objdir/$libname.ver~
16249
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16251
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
16253
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16257
+ netbsd* | netbsdelf*-gnu)
16258
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16259
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16262
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16263
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16268
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16269
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16272
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16273
+*** create shared libraries on Solaris systems. Therefore, libtool
16274
+*** is disabling shared libraries support. We urge you to upgrade GNU
16275
+*** binutils to release 2.9.1 or newer. Another option is to modify
16276
+*** your PATH or compiler configuration so that the native linker is
16277
+*** used, and then restart.
16280
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16281
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16282
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16284
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16288
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16289
+ case `$LD -v 2>&1` in
16290
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
16291
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16292
+ cat <<_LT_EOF 1>&2
16294
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16295
+*** reliably create shared libraries on SCO systems. Therefore, libtool
16296
+*** is disabling shared libraries support. We urge you to upgrade GNU
16297
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16298
+*** your PATH or compiler configuration so that the native linker is
16299
+*** used, and then restart.
16304
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16305
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16306
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16307
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16309
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16316
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16318
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16319
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16323
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16324
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16327
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16332
+ if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
16334
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
16335
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
16336
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
16339
+ # PORTME fill in a description of your system's linker (not GNU ld)
16342
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
16343
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
16344
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16345
+ # Note: this linker hardcodes the directories in LIBPATH if there
16346
+ # are no directories specified by -L.
16347
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16348
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16349
+ # Neither direct hardcoding nor static linking is supported with a
16350
+ # broken collect2.
16351
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
16356
+ if test "$host_cpu" = ia64; then
16357
+ # On IA64, the linker does run time linking by default, so we don't
16358
+ # have to do anything special.
16359
+ aix_use_runtimelinking=no
16360
+ exp_sym_flag='-Bexport'
16363
+ # If we're using GNU nm, then we don't want the "-C" option.
16364
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
16365
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16366
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
16368
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
16370
+ aix_use_runtimelinking=no
16372
+ # Test if we are trying to use run time linking or normal
16373
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16374
+ # need to do runtime linking.
16375
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
16376
+ for ld_flag in $LDFLAGS; do
16377
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16378
+ aix_use_runtimelinking=yes
16385
+ exp_sym_flag='-bexport'
16386
+ no_entry_flag='-bnoentry'
16389
+ # When large executables or shared objects are built, AIX ld can
16390
+ # have problems creating the table of contents. If linking a library
16391
+ # or program results in "error TOC overflow" add -mminimal-toc to
16392
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16393
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16395
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
16396
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16397
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
16398
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
16400
+ if test "$GCC" = yes; then
16401
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
16402
+ # We only want to do this on AIX 4.2 and lower, the check
16403
+ # below for broken collect2 doesn't work under 4.3+
16404
+ collect2name=`${CC} -print-prog-name=collect2`
16405
+ if test -f "$collect2name" && \
16406
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
16408
+ # We have reworked collect2
16411
+ # We have old collect2
16412
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
16413
+ # It fails to find uninstalled libraries when the uninstalled
16414
+ # path is not listed in the libpath. Setting hardcode_minus_L
16415
+ # to unsupported forces relinking
16416
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16417
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16418
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
16422
+ shared_flag='-shared'
16423
+ if test "$aix_use_runtimelinking" = yes; then
16424
+ shared_flag="$shared_flag "'${wl}-G'
16428
+ if test "$host_cpu" = ia64; then
16429
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16430
+ # chokes on -Wl,-G. The following line is correct:
16433
+ if test "$aix_use_runtimelinking" = yes; then
16434
+ shared_flag='${wl}-G'
16436
+ shared_flag='${wl}-bM:SRE'
16441
+ # It seems that -bexpall does not export symbols beginning with
16442
+ # underscore (_), so it is better to generate a list of symbols to export.
16443
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
16444
+ if test "$aix_use_runtimelinking" = yes; then
16445
+ # Warning - without using the other runtime loading flags (-brtl),
16446
+ # -berok will link without error, but may produce a broken library.
16447
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
16448
+ # Determine the default libpath from the value encoded in an empty executable.
16449
+ _LT_AC_SYS_LIBPATH_AIX
16450
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
16451
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16453
+ if test "$host_cpu" = ia64; then
16454
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
16455
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
16456
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16458
+ # Determine the default libpath from the value encoded in an empty executable.
16459
+ _LT_AC_SYS_LIBPATH_AIX
16460
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
16461
+ # Warning - without using the other run time loading flags,
16462
+ # -berok will link without error, but may produce a broken library.
16463
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
16464
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
16465
+ # Exported symbols can be pulled into shared objects from archives
16466
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
16467
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
16468
+ # This is similar to how AIX traditionally builds its shared libraries.
16469
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16475
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16476
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16477
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16478
+ # see comment about different semantics on the GNU ld section
16479
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16482
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16483
- # PIC is the default for these OSes.
16485
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
16488
- mingw* | cygwin* | pw32* | os2*)
16489
- # This hack is so that the source file can tell whether it is being
16490
- # built for inclusion in a dll (and should export symbols for example).
16491
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
16492
- # (--disable-auto-import) libraries
16493
- m4_if([$1], [GCJ], [],
16494
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
16495
+ cygwin* | mingw* | pw32*)
16496
+ # When not using gcc, we currently assume that we are using
16497
+ # Microsoft Visual C++.
16498
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
16499
+ # no search path for DLLs.
16500
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
16501
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
16502
+ # Tell ltmain to make .lib files, not .a files.
16504
+ # Tell ltmain to make .dll files, not .so files.
16505
+ shrext_cmds=".dll"
16506
+ # FIXME: Setting linknames here is a bad hack.
16507
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16508
+ # The linker will automatically build a .lib file if we build a DLL.
16509
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
16510
+ # FIXME: Should let the user specify the lib program.
16511
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
16512
+ _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
16513
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
16516
darwin* | rhapsody*)
16517
- # PIC is the default on this platform
16518
- # Common symbols not allowed in MH_DYLIB files
16519
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
16521
+ rhapsody* | darwin1.[[012]])
16522
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
16524
+ *) # Darwin 1.3 on
16525
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16526
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16528
+ case ${MACOSX_DEPLOYMENT_TARGET} in
16530
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16533
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
16539
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
16540
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
16541
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
16542
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
16543
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
16544
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
16545
+ if test "$GCC" = yes ; then
16546
+ output_verbose_link_cmd='echo'
16547
+ _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16548
+ _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16549
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16550
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16552
+ case $cc_basename in
16554
+ output_verbose_link_cmd='echo'
16555
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16556
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16557
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16558
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16559
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16562
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16569
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16570
- # Instead, we relocate shared libraries at runtime.
16572
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16573
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16574
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16578
- # Just because we use GCC doesn't mean we suddenly get shared libraries
16579
- # on systems that don't support them.
16580
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
16583
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16587
- if test -d /usr/nec; then
16588
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
16589
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16590
+ # support. Future versions do this automatically, but an explicit c++rt0.o
16591
+ # does not break anything, and helps significantly (at the cost of a little
16594
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16595
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
16596
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16597
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16600
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16602
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16603
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16604
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16605
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16608
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16609
+ freebsd* | dragonfly*)
16610
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16611
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
16612
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16613
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16617
+ if test "$GCC" = yes; then
16618
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16620
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16622
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
16623
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16624
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16626
+ # hardcode_minus_L: Not really in the search PATH,
16627
+ # but as the default location of the library.
16628
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16629
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
16633
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16634
- # not for PA HP-UX.
16635
- case $host_cpu in
16640
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
16644
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16645
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16647
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16649
+ if test "$with_gnu_ld" = no; then
16650
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
16651
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16653
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16654
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
16656
+ # hardcode_minus_L: Not really in the search PATH,
16657
+ # but as the default location of the library.
16658
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16663
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
16665
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16666
+ case $host_cpu in
16668
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16671
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16674
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16678
+ case $host_cpu in
16680
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16683
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16686
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16690
+ if test "$with_gnu_ld" = no; then
16691
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
16692
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16694
+ case $host_cpu in
16696
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
16697
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
16698
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16701
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16702
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
16704
+ # hardcode_minus_L: Not really in the search PATH,
16705
+ # but as the default location of the library.
16706
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16713
- # PORTME Check for flag to pass linker flags through the system compiler.
16716
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16717
- if test "$host_cpu" = ia64; then
16718
- # AIX 5 now supports IA64 processor
16719
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16721
+ irix5* | irix6* | nonstopux*)
16722
+ if test "$GCC" = yes; then
16723
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16725
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
16726
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16727
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
16729
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
16730
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16731
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
16734
- # PIC is the default on this platform
16735
- # Common symbols not allowed in MH_DYLIB files
16736
- case $cc_basename in
16738
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
16739
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16744
- mingw* | cygwin* | pw32* | os2*)
16745
- # This hack is so that the source file can tell whether it is being
16746
- # built for inclusion in a dll (and should export symbols for example).
16747
- m4_if([$1], [GCJ], [],
16748
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
16749
+ netbsd* | netbsdelf*-gnu)
16750
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16751
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16753
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16755
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
16756
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16757
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16760
- hpux9* | hpux10* | hpux11*)
16761
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16762
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16763
- # not for PA HP-UX.
16764
- case $host_cpu in
16769
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
16772
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
16773
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
16775
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16777
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
16778
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16779
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16782
- irix5* | irix6* | nonstopux*)
16783
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16784
- # PIC (with -KPIC) is the default.
16785
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
16787
+ if test -f /usr/libexec/ld.so; then
16788
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16789
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16790
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16791
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16792
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16793
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
16794
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
16797
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
16798
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16799
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
16802
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16803
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
16808
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
16813
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16814
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16816
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16817
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16818
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
16819
+ _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16820
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16823
- linux* | k*bsd*-gnu)
16824
- case $cc_basename in
16826
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16827
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16828
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
16830
- pgcc* | pgf77* | pgf90* | pgf95*)
16831
- # Portland Group compilers (*not* the Pentium gcc compiler,
16832
- # which looks to be a dead project)
16833
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16834
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
16835
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16838
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16839
- # All Alpha code is PIC.
16840
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
16843
- case `$CC -V 2>&1 | sed 5q` in
16846
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16847
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16848
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16851
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
16852
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16853
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16854
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
16860
+ if test "$GCC" = yes; then
16861
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
16862
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16864
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
16865
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16867
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
16868
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16871
- osf3* | osf4* | osf5*)
16872
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16873
- # All OSF/1 code is PIC.
16874
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
16876
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
16877
+ if test "$GCC" = yes; then
16878
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
16879
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16880
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
16882
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
16883
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16884
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16885
+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16888
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
16889
+ # Both c and cxx compiler support -rpath directly
16890
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
16892
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
16896
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16897
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16898
- case $cc_basename in
16899
- f77* | f90* | f95*)
16900
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
16901
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
16902
+ if test "$GCC" = yes; then
16904
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16905
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16906
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16909
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16910
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16911
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16913
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
16914
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16916
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
20507
+ test -z "$ac_dir" && ac_dir=.
20508
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20509
+ lt_cv_path_LD="$ac_dir/$ac_prog"
20510
+ # Check to see if the program is GNU ld. I'd rather use --version,
20511
+ # but apparently some variants of GNU ld only accept -v.
20512
+ # Break only if it was the GNU/non-GNU ld that we prefer.
20513
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20514
+ *GNU* | *'with BFD'*)
20515
+ test "$with_gnu_ld" != no && break
16918
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
16919
+ # The compiler driver will combine and reorder linker options,
16920
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
16921
+ # but is careful enough not to reorder.
16922
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
16923
+ if test "$GCC" = yes; then
16924
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20518
- shlibpath_overrides_runpath=yes
20519
+ test "$with_gnu_ld" != yes && break
20523
- shlibpath_overrides_runpath=yes
20527
+ IFS="$lt_save_ifs"
20529
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
20531
+LD="$lt_cv_path_LD"
20532
+if test -n "$LD"; then
20533
+ AC_MSG_RESULT($LD)
20535
+ AC_MSG_RESULT(no)
20537
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
20541
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
20545
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
20546
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
20547
+dnl aclocal-1.4 backwards compatibility:
20548
+dnl AC_DEFUN([AM_PROG_LD], [])
20549
+dnl AC_DEFUN([AC_PROG_LD], [])
20554
+m4_defun([_LT_PATH_LD_GNU],
20555
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
20556
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
20557
+case `$LD -v 2>&1 </dev/null` in
20558
+*GNU* | *'with BFD'*)
20559
+ lt_cv_prog_gnu_ld=yes
20562
+ lt_cv_prog_gnu_ld=no
20565
+with_gnu_ld=$lt_cv_prog_gnu_ld
20566
+])# _LT_PATH_LD_GNU
20569
- libname_spec='$name'
20570
- shrext_cmds=".dll"
20571
- need_lib_prefix=no
20572
- library_names_spec='$libname${shared_ext} $libname.a'
20573
- dynamic_linker='OS/2 ld.exe'
20574
- shlibpath_var=LIBPATH
20578
+# find reload flag for linker
20579
+# -- PORTME Some linkers may need a different reload flag.
20580
+m4_defun([_LT_CMD_RELOAD],
20581
+[AC_CACHE_CHECK([for $LD option to reload object files],
20582
+ lt_cv_ld_reload_flag,
20583
+ [lt_cv_ld_reload_flag='-r'])
20584
+reload_flag=$lt_cv_ld_reload_flag
20585
+case $reload_flag in
20587
+*) reload_flag=" $reload_flag" ;;
20589
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
20592
+ if test "$GCC" = yes; then
20593
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
20595
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
20599
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
20600
+_LT_DECL([], [reload_cmds], [2])dnl
20601
+])# _LT_CMD_RELOAD
20604
+# _LT_CHECK_MAGIC_METHOD
20605
+# ----------------------
20606
+# how to check for library dependencies
20607
+# -- PORTME fill in with the dynamic library characteristics
20608
+m4_defun([_LT_CHECK_MAGIC_METHOD],
20609
+[m4_require([_LT_DECL_EGREP])
20610
+m4_require([_LT_DECL_OBJDUMP])
20611
+AC_CACHE_CHECK([how to recognize dependent libraries],
20612
+lt_cv_deplibs_check_method,
20613
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
20614
+lt_cv_file_magic_test_file=
20615
+lt_cv_deplibs_check_method='unknown'
20616
+# Need to set the preceding variable on all platforms that support
20617
+# interlibrary dependencies.
20618
+# 'none' -- dependencies not supported.
20619
+# `unknown' -- same as none, but documents that we really don't know.
20620
+# 'pass_all' -- all dependencies passed with no checks.
20621
+# 'test_compile' -- check by making test program.
20622
+# 'file_magic [[regex]]' -- check by looking for files in library path
20623
+# which responds to the $file_magic_cmd with a given extended regex.
20624
+# If you have `file' or equivalent on your system and you're not sure
20625
+# whether `pass_all' will *always* work, you probably want this one.
20629
+ lt_cv_deplibs_check_method=pass_all
20632
-osf3* | osf4* | osf5*)
20634
- need_lib_prefix=no
20636
- soname_spec='${libname}${release}${shared_ext}$major'
20637
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20638
- shlibpath_var=LD_LIBRARY_PATH
20639
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20640
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20642
+ lt_cv_deplibs_check_method=pass_all
20646
- dynamic_linker=no
20648
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
20649
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
20650
+ lt_cv_file_magic_test_file=/shlib/libc.so
20654
- version_type=linux
20655
- need_lib_prefix=no
20657
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20658
- soname_spec='${libname}${release}${shared_ext}$major'
20659
- shlibpath_var=LD_LIBRARY_PATH
20660
- shlibpath_overrides_runpath=yes
20661
- hardcode_into_libs=yes
20662
- # ldd complains unless libraries are executable
20663
- postinstall_cmds='chmod +x $lib'
20665
+ # func_win32_libid is a shell function defined in ltmain.sh
20666
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
20667
+ lt_cv_file_magic_cmd='func_win32_libid'
20671
- version_type=sunos
20672
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20673
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20674
- shlibpath_var=LD_LIBRARY_PATH
20675
- shlibpath_overrides_runpath=yes
20676
- if test "$with_gnu_ld" = yes; then
20677
- need_lib_prefix=no
20679
+ # Base MSYS/MinGW do not provide the 'file' command needed by
20680
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
20681
+ # unless we find 'file', for example because we are cross-compiling.
20682
+ if ( file / ) >/dev/null 2>&1; then
20683
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
20684
+ lt_cv_file_magic_cmd='func_win32_libid'
20686
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
20687
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
20693
- version_type=linux
20694
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695
- soname_spec='${libname}${release}${shared_ext}$major'
20696
- shlibpath_var=LD_LIBRARY_PATH
20697
- case $host_vendor in
20699
- shlibpath_overrides_runpath=no
20700
- need_lib_prefix=no
20701
- runpath_var=LD_RUN_PATH
20704
- need_lib_prefix=no
20707
- need_lib_prefix=no
20709
- shlibpath_overrides_runpath=no
20710
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20714
+ # use the weaker test based on 'objdump'. See mingw*.
20715
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
20716
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
20720
- if test -d /usr/nec ;then
20721
- version_type=linux
20722
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20723
- soname_spec='$libname${shared_ext}.$major'
20724
- shlibpath_var=LD_LIBRARY_PATH
20726
+darwin* | rhapsody*)
20727
+ lt_cv_deplibs_check_method=pass_all
20730
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20731
- version_type=freebsd-elf
20732
- need_lib_prefix=no
20734
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20735
- soname_spec='${libname}${release}${shared_ext}$major'
20736
- shlibpath_var=LD_LIBRARY_PATH
20737
- shlibpath_overrides_runpath=yes
20738
- hardcode_into_libs=yes
20739
- if test "$with_gnu_ld" = yes; then
20740
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20742
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20745
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20747
+freebsd* | dragonfly*)
20748
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
20749
+ case $host_cpu in
20751
+ # Not sure whether the presence of OpenBSD here was a mistake.
20752
+ # Let's accept both of them until this is cleared up.
20753
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
20754
+ lt_cv_file_magic_cmd=/usr/bin/file
20755
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
20759
+ lt_cv_deplibs_check_method=pass_all
20761
- sys_lib_dlsearch_path_spec='/usr/lib'
20765
- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20766
- version_type=linux
20767
- need_lib_prefix=no
20769
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770
- shlibpath_var=LD_LIBRARY_PATH
20771
- shlibpath_overrides_runpath=no
20772
- hardcode_into_libs=yes
20774
+ lt_cv_deplibs_check_method=pass_all
20778
- version_type=linux
20779
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20780
- soname_spec='${libname}${release}${shared_ext}$major'
20781
- shlibpath_var=LD_LIBRARY_PATH
20782
+hpux10.20* | hpux11*)
20783
+ lt_cv_file_magic_cmd=/usr/bin/file
20784
+ case $host_cpu in
20786
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
20787
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
20790
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
20791
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
20794
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
20795
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
20801
- dynamic_linker=no
20803
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
20804
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
20807
-AC_MSG_RESULT([$dynamic_linker])
20808
-test "$dynamic_linker" = no && can_build_shared=no
20810
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20811
-if test "$GCC" = yes; then
20812
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20814
+irix5* | irix6* | nonstopux*)
20816
+ *-32|*"-32 ") libmagic=32-bit;;
20817
+ *-n32|*"-n32 ") libmagic=N32;;
20818
+ *-64|*"-64 ") libmagic=64-bit;;
20819
+ *) libmagic=never-match;;
20821
+ lt_cv_deplibs_check_method=pass_all
20824
-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20825
- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20827
-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20828
- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20830
+# This must be Linux ELF.
20831
+linux* | k*bsd*-gnu)
20832
+ lt_cv_deplibs_check_method=pass_all
20835
-_LT_DECL([], [variables_saved_for_relink], [1],
20836
- [Variables whose values should be saved in libtool wrapper scripts and
20837
- restored at link time])
20838
-_LT_DECL([], [need_lib_prefix], [0],
20839
- [Do we need the "lib" prefix for modules?])
20840
-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
20841
-_LT_DECL([], [version_type], [0], [Library versioning type])
20842
-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
20843
-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
20844
-_LT_DECL([], [shlibpath_overrides_runpath], [0],
20845
- [Is shlibpath searched before the hard-coded library search path?])
20846
-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
20847
-_LT_DECL([], [library_names_spec], [1],
20848
- [[List of archive names. First name is the real one, the rest are links.
20849
- The last name is the one that the linker finds with -lNAME]])
20850
-_LT_DECL([], [soname_spec], [1],
20851
- [[The coded name of the library, if different from the real name]])
20852
-_LT_DECL([], [postinstall_cmds], [2],
20853
- [Command to use after installation of a shared archive])
20854
-_LT_DECL([], [postuninstall_cmds], [2],
20855
- [Command to use after uninstallation of a shared archive])
20856
-_LT_DECL([], [finish_cmds], [2],
20857
- [Commands used to finish a libtool library installation in a directory])
20858
-_LT_DECL([], [finish_eval], [1],
20859
- [[As "finish_cmds", except a single script fragment to be evaled but
20861
-_LT_DECL([], [hardcode_into_libs], [0],
20862
- [Whether we should hardcode library paths into libraries])
20863
-_LT_DECL([], [sys_lib_search_path_spec], [2],
20864
- [Compile-time system search path for libraries])
20865
-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
20866
- [Run-time system search path for libraries])
20867
-])# _LT_SYS_DYNAMIC_LINKER
20868
+netbsd* | netbsdelf*-gnu)
20869
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
20870
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
20872
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
20877
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
20878
+ lt_cv_file_magic_cmd=/usr/bin/file
20879
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
20882
-# _LT_PATH_TOOL_PREFIX(TOOL)
20883
-# --------------------------
20884
-# find a file program which can recognize shared library
20885
-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
20886
-[m4_require([_LT_DECL_EGREP])dnl
20887
-AC_MSG_CHECKING([for $1])
20888
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
20889
-[case $MAGIC_CMD in
20890
-[[\\/*] | ?:[\\/]*])
20891
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20893
+ lt_cv_deplibs_check_method=pass_all
20896
- lt_save_MAGIC_CMD="$MAGIC_CMD"
20897
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20898
-dnl $ac_dummy forces splitting on constant user-supplied paths.
20899
-dnl POSIX.2 word splitting is done only on the output of word expansions,
20900
-dnl not every word. This closes a longstanding sh security hole.
20901
- ac_dummy="m4_if([$2], , $PATH, [$2])"
20902
- for ac_dir in $ac_dummy; do
20903
- IFS="$lt_save_ifs"
20904
- test -z "$ac_dir" && ac_dir=.
20905
- if test -f $ac_dir/$1; then
20906
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
20907
- if test -n "$file_magic_test_file"; then
20908
- case $deplibs_check_method in
20910
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
20911
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
20912
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
20913
- $EGREP "$file_magic_regex" > /dev/null; then
20916
- cat <<_LT_EOF 1>&2
20918
-*** Warning: the command libtool uses to detect shared libraries,
20919
-*** $file_magic_cmd, produces output that libtool cannot recognize.
20920
-*** The result is that libtool may fail to recognize shared libraries
20921
-*** as such. This will affect the creation of libtool libraries that
20922
-*** depend on shared libraries, but programs linked with such libtool
20923
-*** libraries will work regardless of this problem. Nevertheless, you
20924
-*** may want to report the problem to your system manager and/or to
20925
-*** bug-libtool@gnu.org
20927
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20928
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
20930
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
20941
- IFS="$lt_save_ifs"
20942
- MAGIC_CMD="$lt_save_MAGIC_CMD"
20943
+osf3* | osf4* | osf5*)
20944
+ lt_cv_deplibs_check_method=pass_all
20947
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
20948
-if test -n "$MAGIC_CMD"; then
20949
- AC_MSG_RESULT($MAGIC_CMD)
20951
- AC_MSG_RESULT(no)
20953
-_LT_DECL([], [MAGIC_CMD], [0],
20954
- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
20955
-])# _LT_PATH_TOOL_PREFIX
20958
-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
20959
-dnl aclocal-1.4 backwards compatibility:
20960
-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
20962
+ lt_cv_deplibs_check_method=pass_all
20966
+ lt_cv_deplibs_check_method=pass_all
20971
-# find a file program which can recognize a shared library
20972
-m4_defun([_LT_PATH_MAGIC],
20973
-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
20974
-if test -z "$lt_cv_path_MAGIC_CMD"; then
20975
- if test -n "$ac_tool_prefix"; then
20976
- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
20981
-])# _LT_PATH_MAGIC
20986
-# find the pathname to the GNU or non-GNU linker
20987
-AC_DEFUN([LT_PATH_LD],
20988
-[AC_REQUIRE([AC_PROG_CC])dnl
20989
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
20990
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
20991
-m4_require([_LT_DECL_SED])dnl
20992
-m4_require([_LT_DECL_EGREP])dnl
20994
-AC_ARG_WITH([gnu-ld],
20995
- [AS_HELP_STRING([--with-gnu-ld],
20996
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
20997
- [test "$withval" = no || with_gnu_ld=yes],
20998
- [with_gnu_ld=no])dnl
20999
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21000
+ lt_cv_deplibs_check_method=pass_all
21004
-if test "$GCC" = yes; then
21005
- # Check if gcc -print-prog-name=ld gives a path.
21006
- AC_MSG_CHECKING([for ld used by $CC])
21009
- # gcc leaves a trailing carriage return which upsets mingw
21010
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21012
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21015
- # Accept absolute paths.
21016
- [[\\/]]* | ?:[[\\/]]*)
21017
- re_direlt='/[[^/]][[^/]]*/\.\./'
21018
- # Canonicalize the pathname of ld
21019
- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21020
- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
21021
- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21023
- test -z "$LD" && LD="$ac_prog"
21026
- # If it fails, then pretend we aren't using GCC.
21029
+ case $host_vendor in
21031
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
21032
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
21035
- # If it is relative, then search for the first ld in PATH.
21036
- with_gnu_ld=unknown
21038
+ lt_cv_deplibs_check_method=pass_all
21041
+ lt_cv_file_magic_cmd='/bin/file'
21042
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
21045
+ lt_cv_file_magic_cmd='/bin/file'
21046
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
21047
+ lt_cv_file_magic_test_file=/lib/libc.so
21050
+ lt_cv_deplibs_check_method=pass_all
21053
+ lt_cv_deplibs_check_method=pass_all
21056
-elif test "$with_gnu_ld" = yes; then
21057
- AC_MSG_CHECKING([for GNU ld])
21061
+ lt_cv_deplibs_check_method=pass_all
21065
+file_magic_cmd=$lt_cv_file_magic_cmd
21066
+deplibs_check_method=$lt_cv_deplibs_check_method
21067
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
21069
+_LT_DECL([], [deplibs_check_method], [1],
21070
+ [Method to check whether dependent libraries are shared objects])
21071
+_LT_DECL([], [file_magic_cmd], [1],
21072
+ [Command to use when deplibs_check_method == "file_magic"])
21073
+])# _LT_CHECK_MAGIC_METHOD
21078
+# find the pathname to a BSD- or MS-compatible name lister
21079
+AC_DEFUN([LT_PATH_NM],
21080
+[AC_REQUIRE([AC_PROG_CC])dnl
21081
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
21082
+[if test -n "$NM"; then
21083
+ # Let the user override the test.
21084
+ lt_cv_path_NM="$NM"
21086
- AC_MSG_CHECKING([for non-GNU ld])
21088
-AC_CACHE_VAL(lt_cv_path_LD,
21089
-[if test -z "$LD"; then
21090
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21091
- for ac_dir in $PATH; do
21092
+ lt_nm_to_check="${ac_tool_prefix}nm"
21093
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
21094
+ lt_nm_to_check="$lt_nm_to_check nm"
21096
+ for lt_tmp_nm in $lt_nm_to_check; do
21097
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21098
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
21099
+ IFS="$lt_save_ifs"
21100
+ test -z "$ac_dir" && ac_dir=.
21101
+ tmp_nm="$ac_dir/$lt_tmp_nm"
21102
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
21103
+ # Check to see if the nm accepts a BSD-compat flag.
21104
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
21105
+ # nm: unknown option "B" ignored
21106
+ # Tru64's nm complains that /dev/null is an invalid object file
21107
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
21108
+ */dev/null* | *'Invalid file or object type'*)
21109
+ lt_cv_path_NM="$tmp_nm -B"
21113
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
21115
+ lt_cv_path_NM="$tmp_nm -p"
21119
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
21120
+ continue # so that we can try to find one that supports BSD flags
21128
- test -z "$ac_dir" && ac_dir=.
21129
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21130
- lt_cv_path_LD="$ac_dir/$ac_prog"
21131
- # Check to see if the program is GNU ld. I'd rather use --version,
21132
- # but apparently some variants of GNU ld only accept -v.
21133
- # Break only if it was the GNU/non-GNU ld that we prefer.
21134
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21135
- *GNU* | *'with BFD'*)
21136
- test "$with_gnu_ld" != no && break
21139
- test "$with_gnu_ld" != yes && break
21144
- IFS="$lt_save_ifs"
21146
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
21147
+ : ${lt_cv_path_NM=no}
21149
-LD="$lt_cv_path_LD"
21150
-if test -n "$LD"; then
21151
- AC_MSG_RESULT($LD)
21152
+if test "$lt_cv_path_NM" != "no"; then
21153
+ NM="$lt_cv_path_NM"
21155
- AC_MSG_RESULT(no)
21156
+ # Didn't find any BSD compatible name lister, look for dumpbin.
21157
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
21158
+ AC_SUBST([DUMPBIN])
21159
+ if test "$DUMPBIN" != ":"; then
21163
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
21166
+test -z "$NM" && NM=nm
21168
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
21170
-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
21172
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
21173
+ [lt_cv_nm_interface="BSD nm"
21174
+ echo "int some_variable = 0;" > conftest.$ac_ext
21175
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
21176
+ (eval "$ac_compile" 2>conftest.err)
21177
+ cat conftest.err >&AS_MESSAGE_LOG_FD
21178
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
21179
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
21180
+ cat conftest.err >&AS_MESSAGE_LOG_FD
21181
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
21182
+ cat conftest.out >&AS_MESSAGE_LOG_FD
21183
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
21184
+ lt_cv_nm_interface="MS dumpbin"
21186
+ rm -f conftest*])
21190
-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
21191
-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
21192
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
21193
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
21194
dnl aclocal-1.4 backwards compatibility:
21195
-dnl AC_DEFUN([AM_PROG_LD], [])
21196
-dnl AC_DEFUN([AC_PROG_LD], [])
21197
+dnl AC_DEFUN([AM_PROG_NM], [])
21198
+dnl AC_DEFUN([AC_PROG_NM], [])
21203
-m4_defun([_LT_PATH_LD_GNU],
21204
-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
21205
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
21206
-case `$LD -v 2>&1 </dev/null` in
21207
-*GNU* | *'with BFD'*)
21208
- lt_cv_prog_gnu_ld=yes
21211
+# check for math library
21212
+AC_DEFUN([LT_LIB_M],
21213
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
21216
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
21217
+ # These system don't have libm, or don't need it
21220
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
21221
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
21224
- lt_cv_prog_gnu_ld=no
21225
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
21228
-with_gnu_ld=$lt_cv_prog_gnu_ld
21229
-])# _LT_PATH_LD_GNU
21235
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
21236
+dnl aclocal-1.4 backwards compatibility:
21237
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
21241
-# find reload flag for linker
21242
-# -- PORTME Some linkers may need a different reload flag.
21243
-m4_defun([_LT_CMD_RELOAD],
21244
-[AC_CACHE_CHECK([for $LD option to reload object files],
21245
- lt_cv_ld_reload_flag,
21246
- [lt_cv_ld_reload_flag='-r'])
21247
-reload_flag=$lt_cv_ld_reload_flag
21248
-case $reload_flag in
21250
-*) reload_flag=" $reload_flag" ;;
21252
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
21255
- if test "$GCC" = yes; then
21256
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
21258
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
21262
-_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
21263
-_LT_DECL([], [reload_cmds], [2])dnl
21264
-])# _LT_CMD_RELOAD
21266
+# _LT_COMPILER_NO_RTTI([TAGNAME])
21267
+# -------------------------------
21268
+m4_defun([_LT_COMPILER_NO_RTTI],
21269
+[m4_require([_LT_TAG_COMPILER])dnl
21271
-# _LT_CHECK_MAGIC_METHOD
21272
-# ----------------------
21273
-# how to check for library dependencies
21274
-# -- PORTME fill in with the dynamic library characteristics
21275
-m4_defun([_LT_CHECK_MAGIC_METHOD],
21276
-[m4_require([_LT_DECL_EGREP])
21277
-m4_require([_LT_DECL_OBJDUMP])
21278
-AC_CACHE_CHECK([how to recognize dependent libraries],
21279
-lt_cv_deplibs_check_method,
21280
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
21281
-lt_cv_file_magic_test_file=
21282
-lt_cv_deplibs_check_method='unknown'
21283
-# Need to set the preceding variable on all platforms that support
21284
-# interlibrary dependencies.
21285
-# 'none' -- dependencies not supported.
21286
-# `unknown' -- same as none, but documents that we really don't know.
21287
-# 'pass_all' -- all dependencies passed with no checks.
21288
-# 'test_compile' -- check by making test program.
21289
-# 'file_magic [[regex]]' -- check by looking for files in library path
21290
-# which responds to the $file_magic_cmd with a given extended regex.
21291
-# If you have `file' or equivalent on your system and you're not sure
21292
-# whether `pass_all' will *always* work, you probably want this one.
21293
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
21297
- lt_cv_deplibs_check_method=pass_all
21299
+if test "$GCC" = yes; then
21300
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
21303
- lt_cv_deplibs_check_method=pass_all
21305
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
21306
+ lt_cv_prog_compiler_rtti_exceptions,
21307
+ [-fno-rtti -fno-exceptions], [],
21308
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
21310
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
21311
+ [Compiler flag to turn off builtin functions])
21312
+])# _LT_COMPILER_NO_RTTI
21315
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
21316
- lt_cv_file_magic_cmd='/usr/bin/file -L'
21317
- lt_cv_file_magic_test_file=/shlib/libc.so
21321
- # func_win32_libid is a shell function defined in ltmain.sh
21322
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21323
- lt_cv_file_magic_cmd='func_win32_libid'
21325
+# _LT_CMD_GLOBAL_SYMBOLS
21326
+# ----------------------
21327
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
21328
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
21329
+AC_REQUIRE([AC_PROG_CC])dnl
21330
+AC_REQUIRE([LT_PATH_NM])dnl
21331
+AC_REQUIRE([LT_PATH_LD])dnl
21332
+m4_require([_LT_DECL_SED])dnl
21333
+m4_require([_LT_DECL_EGREP])dnl
21334
+m4_require([_LT_TAG_COMPILER])dnl
21337
- # Base MSYS/MinGW do not provide the 'file' command needed by
21338
- # func_win32_libid shell function, so use a weaker test based on 'objdump',
21339
- # unless we find 'file', for example because we are cross-compiling.
21340
- if ( file / ) >/dev/null 2>&1; then
21341
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21342
- lt_cv_file_magic_cmd='func_win32_libid'
21344
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
21345
- lt_cv_file_magic_cmd='$OBJDUMP -f'
21348
+# Check for command to grab the raw symbol name followed by C symbol from nm.
21349
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
21350
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
21352
+# These are sane defaults that work on at least a few old systems.
21353
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
21356
- # use the weaker test based on 'objdump'. See mingw*.
21357
- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
21358
- lt_cv_file_magic_cmd='$OBJDUMP -f'
21360
+# Character class describing NM global symbol codes.
21361
+symcode='[[BCDEGRST]]'
21363
-darwin* | rhapsody*)
21364
- lt_cv_deplibs_check_method=pass_all
21366
+# Regexp to match symbols that can be accessed directly from C.
21367
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
21369
-freebsd* | dragonfly*)
21370
- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
21371
- case $host_cpu in
21373
- # Not sure whether the presence of OpenBSD here was a mistake.
21374
- # Let's accept both of them until this is cleared up.
21375
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
21376
- lt_cv_file_magic_cmd=/usr/bin/file
21377
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
21381
- lt_cv_deplibs_check_method=pass_all
21382
+# Define system-specific variables.
21385
+ symcode='[[BCDT]]'
21387
+cygwin* | mingw* | pw32* | cegcc*)
21388
+ symcode='[[ABCDGISTW]]'
21391
+ if test "$host_cpu" = ia64; then
21392
+ symcode='[[ABCDEGRST]]'
21397
- lt_cv_deplibs_check_method=pass_all
21398
+irix* | nonstopux*)
21399
+ symcode='[[BCDEGRST]]'
21402
-hpux10.20* | hpux11*)
21403
- lt_cv_file_magic_cmd=/usr/bin/file
21404
- case $host_cpu in
21406
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
21407
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
21410
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
21411
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
21414
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
21415
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
21419
+ symcode='[[BCDEGQRST]]'
21423
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
21424
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
21426
+ symcode='[[BDRT]]'
21429
-irix5* | irix6* | nonstopux*)
21431
- *-32|*"-32 ") libmagic=32-bit;;
21432
- *-n32|*"-n32 ") libmagic=N32;;
21433
- *-64|*"-64 ") libmagic=64-bit;;
21434
- *) libmagic=never-match;;
21436
- lt_cv_deplibs_check_method=pass_all
21441
-# This must be Linux ELF.
21442
-linux* | k*bsd*-gnu)
21443
- lt_cv_deplibs_check_method=pass_all
21449
- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
21450
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
21452
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
21454
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
21455
+ symcode='[[ABDT]]'
21459
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
21460
- lt_cv_file_magic_cmd=/usr/bin/file
21461
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
21463
+ symcode='[[DFNSTU]]'
21468
- lt_cv_deplibs_check_method=pass_all
21470
+# If we're using GNU nm, then use its standard symbol codes.
21471
+case `$NM -V 2>&1` in
21472
+*GNU* | *'with BFD'*)
21473
+ symcode='[[ABCDGIRSTW]]' ;;
21477
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21478
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
21480
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
21483
+# Transform an extracted symbol line into a proper C declaration.
21484
+# Some systems (esp. on ia64) link data and code symbols differently,
21485
+# so use this general approach.
21486
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21488
-osf3* | osf4* | osf5*)
21489
- lt_cv_deplibs_check_method=pass_all
21491
+# Transform an extracted symbol line into symbol name and symbol address
21492
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
21493
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
21496
- lt_cv_deplibs_check_method=pass_all
21497
+# Handle CRLF in mingw tool chain
21501
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
21506
- lt_cv_deplibs_check_method=pass_all
21508
+# Try without a prefix underscore, then with it.
21509
+for ac_symprfx in "" "_"; do
21511
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21512
- lt_cv_deplibs_check_method=pass_all
21516
- case $host_vendor in
21518
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
21519
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
21522
- lt_cv_deplibs_check_method=pass_all
21525
- lt_cv_file_magic_cmd='/bin/file'
21526
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
21529
- lt_cv_file_magic_cmd='/bin/file'
21530
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
21531
- lt_cv_file_magic_test_file=/lib/libc.so
21534
- lt_cv_deplibs_check_method=pass_all
21537
- lt_cv_deplibs_check_method=pass_all
21543
- lt_cv_deplibs_check_method=pass_all
21547
-file_magic_cmd=$lt_cv_file_magic_cmd
21548
-deplibs_check_method=$lt_cv_deplibs_check_method
21549
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
21551
-_LT_DECL([], [deplibs_check_method], [1],
21552
- [Method to check whether dependent libraries are shared objects])
21553
-_LT_DECL([], [file_magic_cmd], [1],
21554
- [Command to use when deplibs_check_method == "file_magic"])
21555
-])# _LT_CHECK_MAGIC_METHOD
21560
-# find the pathname to a BSD- or MS-compatible name lister
21561
-AC_DEFUN([LT_PATH_NM],
21562
-[AC_REQUIRE([AC_PROG_CC])dnl
21563
-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
21564
-[if test -n "$NM"; then
21565
- # Let the user override the test.
21566
- lt_cv_path_NM="$NM"
21568
- lt_nm_to_check="${ac_tool_prefix}nm"
21569
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
21570
- lt_nm_to_check="$lt_nm_to_check nm"
21572
- for lt_tmp_nm in $lt_nm_to_check; do
21573
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21574
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
21575
- IFS="$lt_save_ifs"
21576
- test -z "$ac_dir" && ac_dir=.
21577
- tmp_nm="$ac_dir/$lt_tmp_nm"
21578
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
21579
- # Check to see if the nm accepts a BSD-compat flag.
21580
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
21581
- # nm: unknown option "B" ignored
21582
- # Tru64's nm complains that /dev/null is an invalid object file
21583
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
21584
- */dev/null* | *'Invalid file or object type'*)
21585
- lt_cv_path_NM="$tmp_nm -B"
21589
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
21591
- lt_cv_path_NM="$tmp_nm -p"
21595
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
21596
- continue # so that we can try to find one that supports BSD flags
21603
- IFS="$lt_save_ifs"
21605
- : ${lt_cv_path_NM=no}
21607
-if test "$lt_cv_path_NM" != "no"; then
21608
- NM="$lt_cv_path_NM"
21610
- # Didn't find any BSD compatible name lister, look for dumpbin.
21611
- AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
21612
- AC_SUBST([DUMPBIN])
21613
- if test "$DUMPBIN" != ":"; then
21617
-test -z "$NM" && NM=nm
21619
-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
21621
-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
21622
- [lt_cv_nm_interface="BSD nm"
21623
- echo "int some_variable = 0;" > conftest.$ac_ext
21624
- (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
21625
- (eval "$ac_compile" 2>conftest.err)
21626
- cat conftest.err >&AS_MESSAGE_LOG_FD
21627
- (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
21628
- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
21629
- cat conftest.err >&AS_MESSAGE_LOG_FD
21630
- (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
21631
- cat conftest.out >&AS_MESSAGE_LOG_FD
21632
- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
21633
- lt_cv_nm_interface="MS dumpbin"
21635
- rm -f conftest*])
21639
-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
21640
-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
21641
-dnl aclocal-1.4 backwards compatibility:
21642
-dnl AC_DEFUN([AM_PROG_NM], [])
21643
-dnl AC_DEFUN([AC_PROG_NM], [])
21648
-# check for math library
21649
-AC_DEFUN([LT_LIB_M],
21650
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
21653
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
21654
- # These system don't have libm, or don't need it
21657
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
21658
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
21661
- AC_CHECK_LIB(m, cos, LIBM="-lm")
21668
-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
21669
-dnl aclocal-1.4 backwards compatibility:
21670
-dnl AC_DEFUN([AC_CHECK_LIBM], [])
21673
-# _LT_COMPILER_NO_RTTI([TAGNAME])
21674
-# -------------------------------
21675
-m4_defun([_LT_COMPILER_NO_RTTI],
21676
-[m4_require([_LT_TAG_COMPILER])dnl
21678
-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
21680
-if test "$GCC" = yes; then
21681
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
21683
- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
21684
- lt_cv_prog_compiler_rtti_exceptions,
21685
- [-fno-rtti -fno-exceptions], [],
21686
- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
21688
-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
21689
- [Compiler flag to turn off builtin functions])
21690
-])# _LT_COMPILER_NO_RTTI
21693
-# _LT_CMD_GLOBAL_SYMBOLS
21694
-# ----------------------
21695
-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
21696
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
21697
-AC_REQUIRE([AC_PROG_CC])dnl
21698
-AC_REQUIRE([LT_PATH_NM])dnl
21699
-AC_REQUIRE([LT_PATH_LD])dnl
21700
-m4_require([_LT_DECL_SED])dnl
21701
-m4_require([_LT_DECL_EGREP])dnl
21702
-m4_require([_LT_TAG_COMPILER])dnl
21704
-# Check for command to grab the raw symbol name followed by C symbol from nm.
21705
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
21706
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
21708
-# These are sane defaults that work on at least a few old systems.
21709
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
21711
-# Character class describing NM global symbol codes.
21712
-symcode='[[BCDEGRST]]'
21714
-# Regexp to match symbols that can be accessed directly from C.
21715
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
21717
-# Define system-specific variables.
21720
- symcode='[[BCDT]]'
21722
-cygwin* | mingw* | pw32* | cegcc*)
21723
- symcode='[[ABCDGISTW]]'
21726
- if test "$host_cpu" = ia64; then
21727
- symcode='[[ABCDEGRST]]'
21730
-irix* | nonstopux*)
21731
- symcode='[[BCDEGRST]]'
21734
- symcode='[[BCDEGQRST]]'
21737
- symcode='[[BDRT]]'
21745
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
21746
- symcode='[[ABDT]]'
21749
- symcode='[[DFNSTU]]'
21753
-# If we're using GNU nm, then use its standard symbol codes.
21754
-case `$NM -V 2>&1` in
21755
-*GNU* | *'with BFD'*)
21756
- symcode='[[ABCDGIRSTW]]' ;;
21759
-# Transform an extracted symbol line into a proper C declaration.
21760
-# Some systems (esp. on ia64) link data and code symbols differently,
21761
-# so use this general approach.
21762
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21764
-# Transform an extracted symbol line into symbol name and symbol address
21765
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
21766
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
21768
-# Handle CRLF in mingw tool chain
21772
- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
21776
-# Try without a prefix underscore, then with it.
21777
-for ac_symprfx in "" "_"; do
21779
- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
21780
- symxfrm="\\1 $ac_symprfx\\2 \\2"
21781
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
21782
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
21784
# Write the raw and C identifiers.
21785
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
21786
@@ -4654,7 +3784,7 @@
21791
+ netbsd* | netbsdelf*-gnu)
21794
# QNX uses GNU C++, but need to define -shared option too, otherwise
21795
@@ -5079,6 +4209,9 @@
21796
cygwin* | mingw* | cegcc*)
21797
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
21799
+ linux* | k*bsd*-gnu)
21800
+ _LT_TAGVAR(link_all_deplibs, $1)=no
21803
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21805
@@ -5143,6 +4276,9 @@
21809
+ linux* | k*bsd*-gnu)
21810
+ _LT_TAGVAR(link_all_deplibs, $1)=no
21814
_LT_TAGVAR(ld_shlibs, $1)=yes
21815
@@ -5325,7 +4461,7 @@
21820
+ netbsd* | netbsdelf*-gnu)
21821
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21822
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21824
@@ -5500,6 +4636,7 @@
21825
if test "$aix_use_runtimelinking" = yes; then
21826
shared_flag="$shared_flag "'${wl}-G'
21828
+ _LT_TAGVAR(link_all_deplibs, $1)=no
21831
if test "$host_cpu" = ia64; then
21832
@@ -5738,7 +4875,7 @@
21833
_LT_TAGVAR(link_all_deplibs, $1)=yes
21837
+ netbsd* | netbsdelf*-gnu)
21838
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21839
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21841
@@ -6881,322 +6018,839 @@
21842
_LT_TAGVAR(ld_shlibs, $1)=no
21846
- # FIXME: insert proper C++ library support
21847
- _LT_TAGVAR(ld_shlibs, $1)=no
21850
+ # FIXME: insert proper C++ library support
21851
+ _LT_TAGVAR(ld_shlibs, $1)=no
21855
+ case $cc_basename in
21857
+ # FIXME: insert proper C++ library support
21858
+ _LT_TAGVAR(ld_shlibs, $1)=no
21861
+ # FIXME: insert proper C++ library support
21862
+ _LT_TAGVAR(ld_shlibs, $1)=no
21868
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21869
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21871
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21872
+ _LT_TAGVAR(hardcode_direct, $1)=yes
21873
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21875
+ # Workaround some broken pre-1.5 toolchains
21876
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21880
+ _LT_TAGVAR(ld_shlibs, $1)=yes
21884
+ # C++ shared libraries are fairly broken
21885
+ _LT_TAGVAR(ld_shlibs, $1)=no
21889
+ if test -f /usr/libexec/ld.so; then
21890
+ _LT_TAGVAR(hardcode_direct, $1)=yes
21891
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21892
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21893
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21894
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21895
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21896
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21897
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21898
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21900
+ output_verbose_link_cmd=echo
16926
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
21902
+ _LT_TAGVAR(ld_shlibs, $1)=no
16930
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
16934
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
16935
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
16936
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16937
+ if test "x$host_vendor" = xsequent; then
16938
+ # Use $CC to link under sequent, because it throws in some extra .o
16939
+ # files that make .init and .fini sections work.
16940
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16942
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16944
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
16945
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
16946
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
16947
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16950
- sysv4 | sysv4.2uw2* | sysv4.3*)
16951
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16952
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16953
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16955
+ case $host_vendor in
16957
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
16961
+ ## LD is ld it makes a PLAMLIB
16962
+ ## CC just makes a GrossModule.
16963
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16964
+ _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
16965
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
16968
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
21906
+ osf3* | osf4* | osf5*)
21907
+ case $cc_basename in
21909
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
21911
+ # KCC will only create a shared library if the output file
21912
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
21913
+ # to its proper name (with version) after linking.
21914
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
21916
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21917
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21919
+ # Archives containing C++ object files must be created using
21920
+ # the KAI C++ compiler.
21922
+ osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
21923
+ *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
21927
+ # Rational C++ 2.4.1
21928
+ # FIXME: insert proper C++ library support
21929
+ _LT_TAGVAR(ld_shlibs, $1)=no
21934
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
21935
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
21936
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21939
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
21940
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
21941
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21942
+ echo "-hidden">> $lib.exp~
21943
+ $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
21945
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
21949
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21951
+ # Commands to make compiler produce verbose output that lists
21952
+ # what "hidden" libraries, object files and flags are used when
21953
+ # linking a shared library.
21955
+ # There doesn't appear to be a way to prevent this compiler from
21956
+ # explicitly linking system object files so we need to strip them
21957
+ # from the output so that they don't get included in the library
21959
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
21962
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21963
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
21966
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21969
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21973
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21974
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21976
+ # Commands to make compiler produce verbose output that lists
21977
+ # what "hidden" libraries, object files and flags are used when
21978
+ # linking a shared library.
21979
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
21982
+ # FIXME: insert proper C++ library support
21983
+ _LT_TAGVAR(ld_shlibs, $1)=no
21990
+ # FIXME: insert proper C++ library support
21991
+ _LT_TAGVAR(ld_shlibs, $1)=no
21995
+ case $cc_basename in
21998
+ # FIXME: insert proper C++ library support
21999
+ _LT_TAGVAR(ld_shlibs, $1)=no
22003
+ # FIXME: insert proper C++ library support
22004
+ _LT_TAGVAR(ld_shlibs, $1)=no
22007
+ # FIXME: insert proper C++ library support
22008
+ _LT_TAGVAR(ld_shlibs, $1)=no
22014
+ case $cc_basename in
22016
+ # Sun C++ 4.2, 5.x and Centerline C++
22017
+ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
22018
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
22019
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22020
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22021
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22023
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
22024
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22026
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22028
+ # The compiler driver will combine and reorder linker options,
22029
+ # but understands `-z linker_flag'.
22030
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
22031
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
22034
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
22036
+ output_verbose_link_cmd='echo'
22038
+ # Archives containing C++ object files must be created using
22039
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
22040
+ # necessary to make sure instantiated templates are included
22041
+ # in the archive.
22042
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
22045
+ # Green Hills C++ Compiler
22046
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22048
+ # The C++ compiler must be used to create the archive.
22049
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22052
+ # GNU C++ compiler with Solaris linker
22053
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22054
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
22055
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22056
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22057
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22058
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22060
+ # Commands to make compiler produce verbose output that lists
22061
+ # what "hidden" libraries, object files and flags are used when
22062
+ # linking a shared library.
22063
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22065
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
22067
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22068
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22069
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22071
+ # Commands to make compiler produce verbose output that lists
22072
+ # what "hidden" libraries, object files and flags are used when
22073
+ # linking a shared library.
22074
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22077
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
22079
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22081
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22089
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
22090
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22091
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22092
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22093
+ runpath_var='LD_RUN_PATH'
22095
+ case $cc_basename in
22097
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22098
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22101
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22102
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16972
+ runpath_var='LD_RUN_PATH'
16973
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16977
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16978
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16979
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
16983
- if test -d /usr/nec ;then
16984
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
16985
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16986
+ if test -d /usr/nec; then
16987
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
16989
+ runpath_var=LD_RUN_PATH
16990
+ hardcode_runpath_var=yes
16991
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
16995
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16996
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
16997
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
16998
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
16999
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
17000
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
17001
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
17002
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
17003
+ runpath_var='LD_RUN_PATH'
17005
+ if test "$GCC" = yes; then
17006
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17009
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17010
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17015
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
17016
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
17017
+ sysv5* | sco3.2v5* | sco5v6*)
17018
+ # Note: We can NOT use -z defs as we might desire, because we do not
17019
+ # link with -lc, and that would cause any symbols used from libc to
17020
+ # always be unresolved, which means just about no library would
17021
+ # ever link correctly. If we're not using GNU ld we use -z text
17022
+ # though, which does catch some bad symbols but isn't as heavy-handed
17024
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
17025
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
17026
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
17027
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
17028
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17029
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
17030
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
17031
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
17032
+ runpath_var='LD_RUN_PATH'
17034
+ if test "$GCC" = yes; then
17035
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17036
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17038
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17039
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17044
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
17045
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
17046
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17047
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
17048
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
17052
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
17053
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
17058
-AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
17059
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
17060
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
17063
-# Check to make sure the PIC flag actually works.
17064
+# Do we need to explicitly link libc?
17066
-if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
17067
- AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
17068
- _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
17069
- [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
17070
- [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
17072
- *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
17074
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
17075
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
17078
- # For platforms which do not support PIC, -DPIC is meaningless:
17080
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
17083
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
17085
+case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
17087
+ # Assume -lc should be added
17088
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
17090
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
17091
+ case $_LT_AC_TAGVAR(archive_cmds, $1) in
17093
+ # FIXME: we may have to deal with multi-command sequences.
17096
+ # Test whether the compiler implicitly links with -lc since on some
17097
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
17098
+ # to ld, don't add -lc before -lgcc.
17099
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
17101
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17103
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
17106
+ libobjs=conftest.$ac_objext
17108
+ wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
17109
+ pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
17110
+ compiler_flags=-v
17115
+ lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
17116
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
17117
+ if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
17119
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
17121
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
17123
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
17125
+ cat conftest.err 1>&5
17128
+ AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
22107
+ sysv5* | sco3.2v5* | sco5v6*)
22108
+ # Note: We can NOT use -z defs as we might desire, because we do not
22109
+ # link with -lc, and that would cause any symbols used from libc to
22110
+ # always be unresolved, which means just about no library would
22111
+ # ever link correctly. If we're not using GNU ld we use -z text
22112
+ # though, which does catch some bad symbols but isn't as heavy-handed
22114
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22115
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
22116
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22117
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22118
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
22119
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22120
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
22121
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
22122
+ runpath_var='LD_RUN_PATH'
22124
+ case $cc_basename in
22126
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22127
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22130
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22131
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22137
+ case $cc_basename in
22139
+ # NonStop-UX NCC 3.20
22140
+ # FIXME: insert proper C++ library support
22141
+ _LT_TAGVAR(ld_shlibs, $1)=no
22144
+ # FIXME: insert proper C++ library support
22145
+ _LT_TAGVAR(ld_shlibs, $1)=no
22151
+ # FIXME: insert proper C++ library support
22152
+ _LT_TAGVAR(ld_shlibs, $1)=no
22156
+ # FIXME: insert proper C++ library support
22157
+ _LT_TAGVAR(ld_shlibs, $1)=no
17134
+])# AC_LIBTOOL_PROG_LD_SHLIBS
17137
+# _LT_AC_FILE_LTDLL_C
17138
+# -------------------
17139
+# Be careful that the start marker always follows a newline.
17140
+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
17141
+# /* ltdll.c starts here */
17142
+# #define WIN32_LEAN_AND_MEAN
17143
+# #include <windows.h>
17144
+# #undef WIN32_LEAN_AND_MEAN
17145
+# #include <stdio.h>
17147
-# Check to make sure the static flag actually works.
17148
+# #ifndef __CYGWIN__
17149
+# # ifdef __CYGWIN32__
17150
+# # define __CYGWIN__ __CYGWIN32__
17154
-wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
17155
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
17156
- _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
17157
- $lt_tmp_static_flag,
17159
- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
17161
+# #ifdef __cplusplus
17164
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
17165
+# #ifdef __cplusplus
17169
+# #ifdef __CYGWIN__
17170
+# #include <cygwin/cygwin_dll.h>
17171
+# DECLARE_CYGWIN_DLL( DllMain );
17173
+# HINSTANCE __hDllInstance_base;
17176
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
17178
+# __hDllInstance_base = hInst;
17181
+# /* ltdll.c ends here */
17182
+])# _LT_AC_FILE_LTDLL_C
17185
-# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
17186
-# ------------------------------------
17187
-# See if the linker supports building shared libraries.
17188
-AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
17189
-[AC_REQUIRE([LT_AC_PROG_SED])dnl
17190
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
17191
-ifelse([$1],[CXX],[
17192
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17195
- # If we're using GNU nm, then we don't want the "-C" option.
17196
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
17197
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17198
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
17200
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
17204
- _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
17206
- cygwin* | mingw*)
17207
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
17210
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17213
- _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
17216
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
17217
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
17218
- _LT_AC_TAGVAR(archive_cmds, $1)=
17219
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
17220
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
17221
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
17222
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
17223
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
17224
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
17225
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
17226
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
17227
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
17228
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
17229
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
17230
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
17231
- _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
17232
- _LT_AC_TAGVAR(hardcode_automatic, $1)=no
17233
- _LT_AC_TAGVAR(module_cmds, $1)=
17234
- _LT_AC_TAGVAR(module_expsym_cmds, $1)=
17235
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
17236
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17237
- # include_expsyms should be a list of space-separated symbols to be *always*
17238
- # included in the symbol list
17239
- _LT_AC_TAGVAR(include_expsyms, $1)=
17240
- # exclude_expsyms can be an extended regexp of symbols to exclude
17241
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
17242
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17243
- # as well as any symbol that contains `d'.
17244
- _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
17245
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17246
- # platforms (ab)use it in PIC code, but their linkers get confused if
17247
- # the symbol is explicitly referenced. Since portable code cannot
17248
- # rely on this symbol name, it's probably fine to never include it in
17249
- # preloaded symbol tables.
17250
- # Exclude shared library initialization/finalization symbols.
17251
-dnl Note also adjust exclude_expsyms for C++ above.
17252
- extract_expsyms_cmds=
17253
- # Just being paranoid about ensuring that cc_basename is set.
17254
- _LT_CC_BASENAME([$compiler])
17256
- cygwin* | mingw* | pw32*)
17257
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
17258
- # When not using gcc, we currently assume that we are using
17259
- # Microsoft Visual C++.
17260
- if test "$GCC" != yes; then
17265
- # we just hope/assume this is gcc and not c89 (= MSVC++)
17272
+# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
22161
+ AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
22162
+ test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
22164
+ _LT_TAGVAR(GCC, $1)="$GXX"
22165
+ _LT_TAGVAR(LD, $1)="$LD"
22167
+ ## CAVEAT EMPTOR:
22168
+ ## There is no encapsulation within the following macros, do not change
22169
+ ## the running order or otherwise move them around unless you know exactly
22170
+ ## what you are doing...
22171
+ _LT_SYS_HIDDEN_LIBDEPS($1)
22172
+ _LT_COMPILER_PIC($1)
22173
+ _LT_COMPILER_C_O($1)
22174
+ _LT_COMPILER_FILE_LOCKS($1)
22175
+ _LT_LINKER_SHLIBS($1)
22176
+ _LT_SYS_DYNAMIC_LINKER($1)
22177
+ _LT_LINKER_HARDCODE_LIBPATH($1)
22180
+ fi # test -n "$compiler"
22186
+ with_gnu_ld=$lt_save_with_gnu_ld
22187
+ lt_cv_path_LDCXX=$lt_cv_path_LD
22188
+ lt_cv_path_LD=$lt_save_path_LD
22189
+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22190
+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22191
+fi # test "$_lt_caught_CXX_error" != yes
22194
+])# _LT_LANG_CXX_CONFIG
22197
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
17273
22198
+# ---------------------------------
17274
+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
17278
+AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
17279
+AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
17280
+AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
17281
+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
17282
+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
17283
+AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
17284
+AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
17286
+# This is just to silence aclocal about the macro not being used
17287
+ifelse([AC_DISABLE_FAST_INSTALL])
17289
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
17290
- if test "$with_gnu_ld" = yes; then
17291
- # If archive_cmds runs LD, not CC, wlarc should be empty
17293
+AC_DEFUN([LT_AC_PROG_GCJ],
17294
+[AC_CHECK_TOOL(GCJ, gcj, no)
17295
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
17296
+ AC_SUBST(GCJFLAGS)
17299
- # Set some defaults for GNU ld with shared library support. These
17300
- # are reset later if shared libraries are not supported. Putting them
17301
- # here allows them to be overridden if necessary.
17302
- runpath_var=LD_RUN_PATH
17303
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
17304
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
17305
- # ancient GNU ld didn't support --whole-archive et. al.
17306
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17307
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17309
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
17311
- supports_anon_versioning=no
17312
- case `$LD -v 2>/dev/null` in
17313
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
17314
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17315
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17316
- *\ 2.11.*) ;; # other 2.11 versions
17317
- *) supports_anon_versioning=yes ;;
17319
+AC_DEFUN([LT_AC_PROG_RC],
17320
+[AC_CHECK_TOOL(RC, windres, no)
17323
- # See if GNU ld supports shared libraries.
17326
- # On AIX/PPC, the GNU linker is very broken
17327
- if test "$host_cpu" != ia64; then
17328
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
17331
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17332
-*** to be unable to reliably create shared libraries on AIX.
17333
-*** Therefore, libtool is disabling shared libraries support. If you
17334
-*** really care for shared libraries, you may want to modify your PATH
17335
-*** so that a non-GNU linker is found, and then restart.
17336
+# Cheap backport of AS_EXECUTABLE_P and required macros
17337
+# from Autoconf 2.59; we should not use $as_executable_p directly.
17340
+# _AS_TEST_PREPARE
17341
+# ----------------
17342
+m4_ifndef([_AS_TEST_PREPARE],
17343
+[m4_defun([_AS_TEST_PREPARE],
17344
+[if test -x / >/dev/null 2>&1; then
17345
+ as_executable_p='test -x'
22199
+# Figure out "hidden" library dependencies from verbose
22200
+# compiler output when linking a shared library.
22201
+# Parse the compiler output and extract the necessary
22202
+# objects, libraries and library flags.
22203
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
22204
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
22205
+# Dependencies to place before and after the object being linked:
22206
+_LT_TAGVAR(predep_objects, $1)=
22207
+_LT_TAGVAR(postdep_objects, $1)=
22208
+_LT_TAGVAR(predeps, $1)=
22209
+_LT_TAGVAR(postdeps, $1)=
22210
+_LT_TAGVAR(compiler_lib_search_path, $1)=
22212
+dnl we can't use the lt_simple_compile_test_code here,
22213
+dnl because it contains code intended for an executable,
22214
+dnl not a library. It's possible we should let each
22215
+dnl tag define a new lt_????_link_test_code variable,
22216
+dnl but it's only used here...
22217
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
22219
+void foo (void) { a = 0; }
22221
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
22225
+ Foo (void) { a = 0; }
22230
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
22238
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
22246
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
22247
+public class foo {
22249
+ public void bar (void) {
22255
+dnl Parse the compiler output and extract the necessary
22256
+dnl objects, libraries and library flags.
22257
+if AC_TRY_EVAL(ac_compile); then
22258
+ # Parse the compiler output and extract the necessary
22259
+ # objects, libraries and library flags.
22261
+ # Sentinel used to keep track of whether or not we are before
22262
+ # the conftest object file.
22263
+ pre_test_object_deps_done=no
22265
+ for p in `eval "$output_verbose_link_cmd"`; do
22269
+ # Some compilers place space between "-{L,R}" and the path.
22270
+ # Remove the space.
22271
+ if test $p = "-L" ||
22272
+ test $p = "-R"; then
22279
+ if test "$pre_test_object_deps_done" = no; then
22282
+ # Internal compiler library paths should come after those
22283
+ # provided the user. The postdeps already come after the
22284
+ # user supplied libs so there is no need to process them.
22285
+ if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
22286
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
22288
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
22291
+ # The "-l" case would never come before the object being
22292
+ # linked, so don't bother handling this case.
22295
+ if test -z "$_LT_TAGVAR(postdeps, $1)"; then
22296
+ _LT_TAGVAR(postdeps, $1)="${prev}${p}"
22298
+ _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
22304
+ # This assumes that the test object file only shows up
22305
+ # once in the compiler output.
22306
+ if test "$p" = "conftest.$objext"; then
22307
+ pre_test_object_deps_done=yes
22311
+ if test "$pre_test_object_deps_done" = no; then
22312
+ if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
22313
+ _LT_TAGVAR(predep_objects, $1)="$p"
22315
+ _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
22318
+ if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
22319
+ _LT_TAGVAR(postdep_objects, $1)="$p"
22321
+ _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
22326
+ *) ;; # Ignore the rest.
22332
+ rm -f a.out a.exe
17347
+ as_executable_p='test -f'
17349
+])])# _AS_TEST_PREPARE
17353
+# Check whether a file is executable.
17354
+m4_ifndef([AS_EXECUTABLE_P],
17355
+[m4_defun([AS_EXECUTABLE_P],
17356
+[AS_REQUIRE([_AS_TEST_PREPARE])dnl
17357
+$as_executable_p $1[]dnl
17358
+])])# AS_EXECUTABLE_P
22334
+ echo "libtool.m4: error: problem compiling $1 test program"
22337
+$RM -f confest.$objext
22339
+# PORTME: override above test on systems where it is broken
22340
+m4_if([$1], [CXX],
22343
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
22344
+ # hack all around it, let's just trust "g++" to DTRT.
22345
+ _LT_TAGVAR(predep_objects,$1)=
22346
+ _LT_TAGVAR(postdep_objects,$1)=
22347
+ _LT_TAGVAR(postdeps,$1)=
22351
+ case `$CC -V 2>&1 | sed 5q` in
22355
+ # The more standards-conforming stlport4 library is
22356
+ # incompatible with the Cstd library. Avoid specifying
22357
+ # it if it's in CXXFLAGS. Ignore libCrun as
22358
+ # -library=stlport4 depends on it.
22359
+ case " $CXX $CXXFLAGS " in
22360
+ *" -library=stlport4 "*)
22361
+ solaris_use_stlport4=yes
22365
+ if test "$solaris_use_stlport4" != yes; then
22366
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
22373
+ case $cc_basename in
22375
+ # The more standards-conforming stlport4 library is
22376
+ # incompatible with the Cstd library. Avoid specifying
22377
+ # it if it's in CXXFLAGS. Ignore libCrun as
22378
+ # -library=stlport4 depends on it.
22379
+ case " $CXX $CXXFLAGS " in
22380
+ *" -library=stlport4 "*)
22381
+ solaris_use_stlport4=yes
22385
+ # Adding this requires a known-good setup of shared libraries for
22386
+ # Sun compiler versions before 5.6, else PIC objects from an old
22387
+ # archive will be linked into the output, leading to subtle bugs.
22388
+ if test "$solaris_use_stlport4" != yes; then
22389
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
22397
+case " $_LT_TAGVAR(postdeps, $1) " in
22398
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
22400
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
22401
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
22402
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
22404
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
22405
+ [The directories searched by this compiler when creating a shared library])
22406
+_LT_TAGDECL([], [predep_objects], [1],
22407
+ [Dependencies to place before and after the objects being linked to
22408
+ create a shared library])
22409
+_LT_TAGDECL([], [postdep_objects], [1])
22410
+_LT_TAGDECL([], [predeps], [1])
22411
+_LT_TAGDECL([], [postdeps], [1])
22412
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
22413
+ [The library search path used internally by the compiler when linking
22414
+ a shared library])
22415
+])# _LT_SYS_HIDDEN_LIBDEPS
22420
+# Since AC_PROG_F77 is broken, in that it returns the empty string
22421
+# if there is no fortran compiler, we have our own version here.
22422
+m4_defun([_LT_PROG_F77],
22424
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
22426
+if test -z "$F77" || test "X$F77" = "Xno"; then
22427
+ _lt_disable_F77=yes
22429
+popdef([AC_MSG_ERROR])
22432
+dnl aclocal-1.4 backwards compatibility:
22433
+dnl AC_DEFUN([_LT_PROG_F77], [])
22436
+# _LT_LANG_F77_CONFIG([TAG])
22437
+# --------------------------
22438
+# Ensure that the configuration variables for a Fortran 77 compiler are
22439
+# suitably defined. These variables are subsequently used by _LT_CONFIG
22440
+# to write the compiler configuration to `libtool'.
22441
+m4_defun([_LT_LANG_F77_CONFIG],
22442
+[AC_REQUIRE([_LT_PROG_F77])dnl
22443
+AC_LANG_PUSH(Fortran 77)
22445
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
22446
+_LT_TAGVAR(allow_undefined_flag, $1)=
22447
+_LT_TAGVAR(always_export_symbols, $1)=no
22448
+_LT_TAGVAR(archive_expsym_cmds, $1)=
22449
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
22450
+_LT_TAGVAR(hardcode_direct, $1)=no
22451
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
22452
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
22453
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
22454
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
22455
+_LT_TAGVAR(hardcode_minus_L, $1)=no
22456
+_LT_TAGVAR(hardcode_automatic, $1)=no
22457
+_LT_TAGVAR(inherit_rpath, $1)=no
22458
+_LT_TAGVAR(module_cmds, $1)=
22459
+_LT_TAGVAR(module_expsym_cmds, $1)=
22460
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
22461
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
22462
+_LT_TAGVAR(no_undefined_flag, $1)=
22463
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
22464
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
22466
+# Source file extension for f77 test sources.
22470
- case $cc_basename in
22472
- # FIXME: insert proper C++ library support
22473
- _LT_TAGVAR(ld_shlibs, $1)=no
22476
- # FIXME: insert proper C++ library support
22477
- _LT_TAGVAR(ld_shlibs, $1)=no
22481
+# Object file extension for compiled f77 test sources.
22483
+_LT_TAGVAR(objext, $1)=$objext
22486
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22487
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22489
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
22490
- _LT_TAGVAR(hardcode_direct, $1)=yes
22491
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22493
- # Workaround some broken pre-1.5 toolchains
22494
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22496
+# No sense in running all these tests if we already determined that
22497
+# the F77 compiler isn't working. Some variables (like enable_shared)
22498
+# are currently assumed to apply to all compilers on this platform,
22499
+# and will be corrupted by setting them based on a non-working compiler.
22500
+if test "$_lt_disable_F77" != yes; then
22501
+ # Code to be used in simple compile tests
22502
+ lt_simple_compile_test_code="\
22509
- _LT_TAGVAR(ld_shlibs, $1)=yes
22511
+ # Code to be used in simple link tests
22512
+ lt_simple_link_test_code="\
22518
- # C++ shared libraries are fairly broken
22519
- _LT_TAGVAR(ld_shlibs, $1)=no
22521
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22525
- if test -f /usr/libexec/ld.so; then
22526
- _LT_TAGVAR(hardcode_direct, $1)=yes
22527
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22528
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
22529
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22530
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22531
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22532
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22533
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
22534
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22536
- output_verbose_link_cmd=echo
22538
- _LT_TAGVAR(ld_shlibs, $1)=no
22541
+ # save warnings/boilerplate of simple test code
22542
+ _LT_COMPILER_BOILERPLATE
22543
+ _LT_LINKER_BOILERPLATE
22545
- osf3* | osf4* | osf5*)
22546
- case $cc_basename in
22548
- # Kuck and Associates, Inc. (KAI) C++ Compiler
22549
+ # Allow CC to be a program name with arguments.
22554
+ _LT_TAGVAR(compiler, $1)=$CC
22555
+ _LT_CC_BASENAME([$compiler])
22557
+ if test -n "$compiler"; then
22558
+ AC_MSG_CHECKING([if libtool supports shared libraries])
22559
+ AC_MSG_RESULT([$can_build_shared])
22561
- # KCC will only create a shared library if the output file
22562
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
22563
- # to its proper name (with version) after linking.
22564
- _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22565
+ AC_MSG_CHECKING([whether to build shared libraries])
22566
+ test "$can_build_shared" = "no" && enable_shared=no
22568
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22569
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22570
+ # On AIX, shared libraries and static libraries use the same namespace, and
22571
+ # are all built from PIC.
22574
+ test "$enable_shared" = yes && enable_static=no
22575
+ if test -n "$RANLIB"; then
22576
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
22577
+ postinstall_cmds='$RANLIB $lib'
22581
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22582
+ test "$enable_shared" = yes && enable_static=no
22586
+ AC_MSG_RESULT([$enable_shared])
22588
- # Archives containing C++ object files must be created using
22589
- # the KAI C++ compiler.
22591
- osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
22592
- *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
22596
- # Rational C++ 2.4.1
22597
- # FIXME: insert proper C++ library support
22598
- _LT_TAGVAR(ld_shlibs, $1)=no
22603
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
22604
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22605
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22608
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
22609
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22610
- _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22611
- echo "-hidden">> $lib.exp~
22612
- $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
22614
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
22617
+ AC_MSG_CHECKING([whether to build static libraries])
22618
+ # Make sure either enable_shared or enable_static is yes.
22619
+ test "$enable_shared" = yes || enable_static=yes
22620
+ AC_MSG_RESULT([$enable_static])
22622
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22623
+ _LT_TAGVAR(GCC, $1)="$G77"
22624
+ _LT_TAGVAR(LD, $1)="$LD"
22626
- # Commands to make compiler produce verbose output that lists
22627
- # what "hidden" libraries, object files and flags are used when
22628
- # linking a shared library.
22630
- # There doesn't appear to be a way to prevent this compiler from
22631
- # explicitly linking system object files so we need to strip them
22632
- # from the output so that they don't get included in the library
22634
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
22637
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22638
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
22641
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22644
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22647
+ ## CAVEAT EMPTOR:
22648
+ ## There is no encapsulation within the following macros, do not change
22649
+ ## the running order or otherwise move them around unless you know exactly
22650
+ ## what you are doing...
22651
+ _LT_COMPILER_PIC($1)
22652
+ _LT_COMPILER_C_O($1)
22653
+ _LT_COMPILER_FILE_LOCKS($1)
22654
+ _LT_LINKER_SHLIBS($1)
22655
+ _LT_SYS_DYNAMIC_LINKER($1)
22656
+ _LT_LINKER_HARDCODE_LIBPATH($1)
22658
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22659
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22661
+ fi # test -n "$compiler"
22663
- # Commands to make compiler produce verbose output that lists
22664
- # what "hidden" libraries, object files and flags are used when
22665
- # linking a shared library.
22666
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22669
+fi # test "$_lt_disable_F77" != yes
22672
- # FIXME: insert proper C++ library support
22673
- _LT_TAGVAR(ld_shlibs, $1)=no
22679
+])# _LT_LANG_F77_CONFIG
22682
- # FIXME: insert proper C++ library support
22683
- _LT_TAGVAR(ld_shlibs, $1)=no
22687
- case $cc_basename in
22690
- # FIXME: insert proper C++ library support
22691
- _LT_TAGVAR(ld_shlibs, $1)=no
22695
- # FIXME: insert proper C++ library support
22696
- _LT_TAGVAR(ld_shlibs, $1)=no
22699
- # FIXME: insert proper C++ library support
22700
- _LT_TAGVAR(ld_shlibs, $1)=no
22706
+# Since AC_PROG_FC is broken, in that it returns the empty string
22707
+# if there is no fortran compiler, we have our own version here.
22708
+m4_defun([_LT_PROG_FC],
22710
+pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
22712
+if test -z "$FC" || test "X$FC" = "Xno"; then
22713
+ _lt_disable_FC=yes
22715
+popdef([AC_MSG_ERROR])
22719
- case $cc_basename in
22721
- # Sun C++ 4.2, 5.x and Centerline C++
22722
- _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
22723
- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
22724
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22725
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22726
- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22727
+dnl aclocal-1.4 backwards compatibility:
22728
+dnl AC_DEFUN([_LT_PROG_FC], [])
22730
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
22731
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22733
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22735
- # The compiler driver will combine and reorder linker options,
22736
- # but understands `-z linker_flag'.
22737
- # Supported since Solaris 2.6 (maybe 2.5.1?)
22738
- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
22741
- _LT_TAGVAR(link_all_deplibs, $1)=yes
22743
- output_verbose_link_cmd='echo'
22744
+# _LT_LANG_FC_CONFIG([TAG])
22745
+# -------------------------
22746
+# Ensure that the configuration variables for a Fortran compiler are
22747
+# suitably defined. These variables are subsequently used by _LT_CONFIG
22748
+# to write the compiler configuration to `libtool'.
22749
+m4_defun([_LT_LANG_FC_CONFIG],
22750
+[AC_REQUIRE([_LT_PROG_FC])dnl
22751
+AC_LANG_PUSH(Fortran)
22753
- # Archives containing C++ object files must be created using
22754
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
22755
- # necessary to make sure instantiated templates are included
22756
- # in the archive.
22757
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
22760
- # Green Hills C++ Compiler
22761
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22762
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
22763
+_LT_TAGVAR(allow_undefined_flag, $1)=
22764
+_LT_TAGVAR(always_export_symbols, $1)=no
22765
+_LT_TAGVAR(archive_expsym_cmds, $1)=
22766
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
22767
+_LT_TAGVAR(hardcode_direct, $1)=no
22768
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
22769
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
22770
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
22771
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
22772
+_LT_TAGVAR(hardcode_minus_L, $1)=no
22773
+_LT_TAGVAR(hardcode_automatic, $1)=no
22774
+_LT_TAGVAR(inherit_rpath, $1)=no
22775
+_LT_TAGVAR(module_cmds, $1)=
22776
+_LT_TAGVAR(module_expsym_cmds, $1)=
22777
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
22778
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
22779
+_LT_TAGVAR(no_undefined_flag, $1)=
22780
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
22781
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
22783
- # The C++ compiler must be used to create the archive.
22784
- _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22787
- # GNU C++ compiler with Solaris linker
22788
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22789
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
22790
- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22791
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22792
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22793
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22794
+# Source file extension for fc test sources.
22795
+ac_ext=${ac_fc_srcext-f}
22797
- # Commands to make compiler produce verbose output that lists
22798
- # what "hidden" libraries, object files and flags are used when
22799
- # linking a shared library.
22800
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22802
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
22804
- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22805
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22806
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22807
+# Object file extension for compiled fc test sources.
22809
+_LT_TAGVAR(objext, $1)=$objext
22811
- # Commands to make compiler produce verbose output that lists
22812
- # what "hidden" libraries, object files and flags are used when
22813
- # linking a shared library.
22814
- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22816
+# No sense in running all these tests if we already determined that
22817
+# the FC compiler isn't working. Some variables (like enable_shared)
22818
+# are currently assumed to apply to all compilers on this platform,
22819
+# and will be corrupted by setting them based on a non-working compiler.
22820
+if test "$_lt_disable_FC" != yes; then
22821
+ # Code to be used in simple compile tests
22822
+ lt_simple_compile_test_code="\
22828
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
22830
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22832
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22839
+ # Code to be used in simple link tests
22840
+ lt_simple_link_test_code="\
22845
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
22846
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22847
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22848
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22849
- runpath_var='LD_RUN_PATH'
22850
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22853
- case $cc_basename in
22855
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22856
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22859
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22860
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22864
+ # save warnings/boilerplate of simple test code
22865
+ _LT_COMPILER_BOILERPLATE
22866
+ _LT_LINKER_BOILERPLATE
22868
- sysv5* | sco3.2v5* | sco5v6*)
22869
- # Note: We can NOT use -z defs as we might desire, because we do not
22870
- # link with -lc, and that would cause any symbols used from libc to
22871
- # always be unresolved, which means just about no library would
22872
- # ever link correctly. If we're not using GNU ld we use -z text
22873
- # though, which does catch some bad symbols but isn't as heavy-handed
22875
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22876
- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
22877
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22878
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22879
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
22880
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22881
- _LT_TAGVAR(link_all_deplibs, $1)=yes
22882
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
22883
- runpath_var='LD_RUN_PATH'
22884
+ # Allow CC to be a program name with arguments.
22889
+ GCC=$ac_cv_fc_compiler_gnu
22891
- case $cc_basename in
22893
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22894
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22897
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22898
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22902
+ _LT_TAGVAR(compiler, $1)=$CC
22903
+ _LT_CC_BASENAME([$compiler])
22906
- case $cc_basename in
22908
- # NonStop-UX NCC 3.20
22909
- # FIXME: insert proper C++ library support
22910
- _LT_TAGVAR(ld_shlibs, $1)=no
22913
- # FIXME: insert proper C++ library support
22914
- _LT_TAGVAR(ld_shlibs, $1)=no
22918
+ if test -n "$compiler"; then
22919
+ AC_MSG_CHECKING([if libtool supports shared libraries])
22920
+ AC_MSG_RESULT([$can_build_shared])
22923
- # FIXME: insert proper C++ library support
22924
- _LT_TAGVAR(ld_shlibs, $1)=no
22926
+ AC_MSG_CHECKING([whether to build shared libraries])
22927
+ test "$can_build_shared" = "no" && enable_shared=no
22930
- # FIXME: insert proper C++ library support
22931
- _LT_TAGVAR(ld_shlibs, $1)=no
22932
+ # On AIX, shared libraries and static libraries use the same namespace, and
22933
+ # are all built from PIC.
22936
+ test "$enable_shared" = yes && enable_static=no
22937
+ if test -n "$RANLIB"; then
22938
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
22939
+ postinstall_cmds='$RANLIB $lib'
22943
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22944
+ test "$enable_shared" = yes && enable_static=no
22948
+ AC_MSG_RESULT([$enable_shared])
22950
- AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
22951
- test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
22952
+ AC_MSG_CHECKING([whether to build static libraries])
22953
+ # Make sure either enable_shared or enable_static is yes.
22954
+ test "$enable_shared" = yes || enable_static=yes
22955
+ AC_MSG_RESULT([$enable_static])
22957
- _LT_TAGVAR(GCC, $1)="$GXX"
22958
+ _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
22959
_LT_TAGVAR(LD, $1)="$LD"
22962
@@ -7211,1639 +6865,2004 @@
22963
_LT_SYS_DYNAMIC_LINKER($1)
22964
_LT_LINKER_HARDCODE_LIBPATH($1)
22967
- fi # test -n "$compiler"
22969
+ fi # test -n "$compiler"
22973
+fi # test "$_lt_disable_FC" != yes
22976
+])# _LT_LANG_FC_CONFIG
22979
+# _LT_LANG_GCJ_CONFIG([TAG])
22980
+# --------------------------
22981
+# Ensure that the configuration variables for the GNU Java Compiler compiler
22982
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
22983
+# to write the compiler configuration to `libtool'.
22984
+m4_defun([_LT_LANG_GCJ_CONFIG],
22985
+[AC_REQUIRE([LT_PROG_GCJ])dnl
22988
+# Source file extension for Java test sources.
22991
+# Object file extension for compiled Java test sources.
22993
+_LT_TAGVAR(objext, $1)=$objext
22995
+# Code to be used in simple compile tests
22996
+lt_simple_compile_test_code="class foo {}"
22998
+# Code to be used in simple link tests
22999
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
23001
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23004
+# save warnings/boilerplate of simple test code
23005
+_LT_COMPILER_BOILERPLATE
23006
+_LT_LINKER_BOILERPLATE
23008
+# Allow CC to be a program name with arguments.
23014
+_LT_TAGVAR(compiler, $1)=$CC
23015
+_LT_TAGVAR(LD, $1)="$LD"
23016
+_LT_CC_BASENAME([$compiler])
23018
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
23019
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
23025
- with_gnu_ld=$lt_save_with_gnu_ld
23026
- lt_cv_path_LDCXX=$lt_cv_path_LD
23027
- lt_cv_path_LD=$lt_save_path_LD
23028
- lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23029
- lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23030
-fi # test "$_lt_caught_CXX_error" != yes
23031
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
23034
-])# _LT_LANG_CXX_CONFIG
23035
+if test -n "$compiler"; then
23036
+ _LT_COMPILER_NO_RTTI($1)
23037
+ _LT_COMPILER_PIC($1)
23038
+ _LT_COMPILER_C_O($1)
23039
+ _LT_COMPILER_FILE_LOCKS($1)
23040
+ _LT_LINKER_SHLIBS($1)
23041
+ _LT_LINKER_HARDCODE_LIBPATH($1)
23046
-# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
23047
-# ---------------------------------
23048
-# Figure out "hidden" library dependencies from verbose
23049
-# compiler output when linking a shared library.
23050
-# Parse the compiler output and extract the necessary
23051
-# objects, libraries and library flags.
23052
-m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
23053
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
23054
-# Dependencies to place before and after the object being linked:
23055
-_LT_TAGVAR(predep_objects, $1)=
23056
-_LT_TAGVAR(postdep_objects, $1)=
23057
-_LT_TAGVAR(predeps, $1)=
23058
-_LT_TAGVAR(postdeps, $1)=
23059
-_LT_TAGVAR(compiler_lib_search_path, $1)=
23062
-dnl we can't use the lt_simple_compile_test_code here,
23063
-dnl because it contains code intended for an executable,
23064
-dnl not a library. It's possible we should let each
23065
-dnl tag define a new lt_????_link_test_code variable,
23066
-dnl but it's only used here...
23067
-m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
23069
-void foo (void) { a = 0; }
23071
-], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
23075
- Foo (void) { a = 0; }
23080
-], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
23088
-], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
23096
-], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
23097
-public class foo {
23099
- public void bar (void) {
23105
-dnl Parse the compiler output and extract the necessary
23106
-dnl objects, libraries and library flags.
23107
-if AC_TRY_EVAL(ac_compile); then
23108
- # Parse the compiler output and extract the necessary
23109
- # objects, libraries and library flags.
23112
+])# _LT_LANG_GCJ_CONFIG
23114
- # Sentinel used to keep track of whether or not we are before
23115
- # the conftest object file.
23116
- pre_test_object_deps_done=no
23118
- for p in `eval "$output_verbose_link_cmd"`; do
23120
+# _LT_LANG_RC_CONFIG([TAG])
23121
+# -------------------------
23122
+# Ensure that the configuration variables for the Windows resource compiler
23123
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
23124
+# to write the compiler configuration to `libtool'.
23125
+m4_defun([_LT_LANG_RC_CONFIG],
23126
+[AC_REQUIRE([LT_PROG_RC])dnl
23130
- # Some compilers place space between "-{L,R}" and the path.
23131
- # Remove the space.
23132
- if test $p = "-L" ||
23133
- test $p = "-R"; then
23139
+# Source file extension for RC test sources.
23142
- if test "$pre_test_object_deps_done" = no; then
23145
- # Internal compiler library paths should come after those
23146
- # provided the user. The postdeps already come after the
23147
- # user supplied libs so there is no need to process them.
23148
- if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
23149
- _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
23151
- _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
23154
- # The "-l" case would never come before the object being
23155
- # linked, so don't bother handling this case.
23158
- if test -z "$_LT_TAGVAR(postdeps, $1)"; then
23159
- _LT_TAGVAR(postdeps, $1)="${prev}${p}"
23161
- _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
23165
+# Object file extension for compiled RC test sources.
23167
+_LT_TAGVAR(objext, $1)=$objext
23170
- # This assumes that the test object file only shows up
23171
- # once in the compiler output.
23172
- if test "$p" = "conftest.$objext"; then
23173
- pre_test_object_deps_done=yes
23176
+# Code to be used in simple compile tests
23177
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23179
- if test "$pre_test_object_deps_done" = no; then
23180
- if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
23181
- _LT_TAGVAR(predep_objects, $1)="$p"
23183
- _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
23186
- if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
23187
- _LT_TAGVAR(postdep_objects, $1)="$p"
23189
- _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
23193
+# Code to be used in simple link tests
23194
+lt_simple_link_test_code="$lt_simple_compile_test_code"
23196
- *) ;; # Ignore the rest.
23197
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23202
+# save warnings/boilerplate of simple test code
23203
+_LT_COMPILER_BOILERPLATE
23204
+_LT_LINKER_BOILERPLATE
23207
- rm -f a.out a.exe
23209
- echo "libtool.m4: error: problem compiling $1 test program"
23210
+# Allow CC to be a program name with arguments.
23214
+CC=${RC-"windres"}
23216
+_LT_TAGVAR(compiler, $1)=$CC
23217
+_LT_CC_BASENAME([$compiler])
23218
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
23220
+if test -n "$compiler"; then
23225
-$RM -f confest.$objext
23229
+])# _LT_LANG_RC_CONFIG
23231
-# PORTME: override above test on systems where it is broken
23232
-m4_if([$1], [CXX],
23235
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
23236
- # hack all around it, let's just trust "g++" to DTRT.
23237
- _LT_TAGVAR(predep_objects,$1)=
23238
- _LT_TAGVAR(postdep_objects,$1)=
23239
- _LT_TAGVAR(postdeps,$1)=
23243
- case `$CC -V 2>&1 | sed 5q` in
23248
+AC_DEFUN([LT_PROG_GCJ],
23249
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
23250
+ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
23251
+ [AC_CHECK_TOOL(GCJ, gcj,)
23252
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
23253
+ AC_SUBST(GCJFLAGS)])])[]dnl
23256
- # The more standards-conforming stlport4 library is
23257
- # incompatible with the Cstd library. Avoid specifying
23258
- # it if it's in CXXFLAGS. Ignore libCrun as
23259
- # -library=stlport4 depends on it.
23260
- case " $CXX $CXXFLAGS " in
23261
- *" -library=stlport4 "*)
23262
- solaris_use_stlport4=yes
23266
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
23267
+dnl aclocal-1.4 backwards compatibility:
23268
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
23270
- if test "$solaris_use_stlport4" != yes; then
23271
- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
23278
- case $cc_basename in
23280
- # The more standards-conforming stlport4 library is
23281
- # incompatible with the Cstd library. Avoid specifying
23282
- # it if it's in CXXFLAGS. Ignore libCrun as
23283
- # -library=stlport4 depends on it.
23284
- case " $CXX $CXXFLAGS " in
23285
- *" -library=stlport4 "*)
23286
- solaris_use_stlport4=yes
23291
+AC_DEFUN([LT_PROG_RC],
23292
+[AC_CHECK_TOOL(RC, windres,)
23296
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
23297
+dnl aclocal-1.4 backwards compatibility:
23298
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
23301
- # Adding this requires a known-good setup of shared libraries for
23302
- # Sun compiler versions before 5.6, else PIC objects from an old
23303
- # archive will be linked into the output, leading to subtle bugs.
23304
- if test "$solaris_use_stlport4" != yes; then
23305
- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
23313
+# If we don't have a new enough Autoconf to choose the best grep
23314
+# available, choose the one first in the user's PATH.
23315
+m4_defun([_LT_DECL_EGREP],
23316
+[AC_REQUIRE([AC_PROG_EGREP])dnl
23317
+AC_REQUIRE([AC_PROG_FGREP])dnl
23318
+test -z "$GREP" && GREP=grep
23319
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
23320
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
23321
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
23322
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
23326
-case " $_LT_TAGVAR(postdeps, $1) " in
23327
-*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
23329
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=
23330
-if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
23331
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23333
-_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
23334
- [The directories searched by this compiler when creating a shared library])
23335
-_LT_TAGDECL([], [predep_objects], [1],
23336
- [Dependencies to place before and after the objects being linked to
23337
- create a shared library])
23338
-_LT_TAGDECL([], [postdep_objects], [1])
23339
-_LT_TAGDECL([], [predeps], [1])
23340
-_LT_TAGDECL([], [postdeps], [1])
23341
-_LT_TAGDECL([], [compiler_lib_search_path], [1],
23342
- [The library search path used internally by the compiler when linking
23343
- a shared library])
23344
-])# _LT_SYS_HIDDEN_LIBDEPS
23346
+# _LT_DECL_OBJDUMP
23348
+# If we don't have a new enough Autoconf to choose the best objdump
23349
+# available, choose the one first in the user's PATH.
23350
+m4_defun([_LT_DECL_OBJDUMP],
23351
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
23352
+test -z "$OBJDUMP" && OBJDUMP=objdump
23353
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
23354
+AC_SUBST([OBJDUMP])
23361
-# Since AC_PROG_F77 is broken, in that it returns the empty string
23362
-# if there is no fortran compiler, we have our own version here.
23363
-m4_defun([_LT_PROG_F77],
23365
-pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
23367
-if test -z "$F77" || test "X$F77" = "Xno"; then
23368
- _lt_disable_F77=yes
23370
-popdef([AC_MSG_ERROR])
23372
+# Check for a fully-functional sed program, that truncates
23373
+# as few characters as possible. Prefer GNU sed if found.
23374
+m4_defun([_LT_DECL_SED],
23376
+test -z "$SED" && SED=sed
23377
+Xsed="$SED -e 1s/^X//"
23378
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
23379
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
23380
+ [Sed that helps us avoid accidentally triggering echo(1) options like -n])
23383
-dnl aclocal-1.4 backwards compatibility:
23384
-dnl AC_DEFUN([_LT_PROG_F77], [])
23385
+m4_ifndef([AC_PROG_SED], [
17360
23386
+# NOTE: This macro has been submitted for inclusion into #
17361
23387
+# GNU Autoconf as AC_PROG_SED. When it is available in #
17362
23388
+# a released version of Autoconf we should remove this #
17363
23389
+# macro and use it instead. #
17366
+# Check for a fully-functional sed program, that truncates
17367
+# as few characters as possible. Prefer GNU sed if found.
17368
+AC_DEFUN([LT_AC_PROG_SED],
23391
+m4_defun([AC_PROG_SED],
17369
23392
+[AC_MSG_CHECKING([for a sed that does not truncate output])
17370
23393
+AC_CACHE_VAL(lt_cv_path_SED,
17371
23394
+[# Loop through the user's path and test for sed and gsed.
20285
26567
===================================================================
20286
26568
--- sid.orig/ice-9/Makefile.in
20287
26569
+++ sid/ice-9/Makefile.in
20289
-# Makefile.in generated by automake 1.10 from Makefile.am.
20290
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20291
# @configure_input@
20293
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20294
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20295
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20296
# This Makefile.in is free software; the Free Software Foundation
20297
# gives unlimited permission to copy and/or distribute it,
20298
# with or without modifications, as long as this notice is preserved.
20299
@@ -429,8 +429,8 @@
20300
unique=`for i in $$list; do \
20301
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20303
- $(AWK) ' { files[$$0] = 1; } \
20304
- END { for (i in files) print i; }'`; \
20305
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20306
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20310
@@ -455,8 +455,8 @@
20311
unique=`for i in $$list; do \
20312
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20314
- $(AWK) ' { files[$$0] = 1; } \
20315
- END { for (i in files) print i; }'`; \
20316
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20317
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20318
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20319
test -n "$$unique" || unique=$$empty_fix; \
20320
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20321
@@ -466,13 +466,12 @@
20322
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20323
$(TAGS_FILES) $(LISP)
20326
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20327
unique=`for i in $$list; do \
20328
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20330
- $(AWK) ' { files[$$0] = 1; } \
20331
- END { for (i in files) print i; }'`; \
20332
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20333
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20334
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20335
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
26572
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26573
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26574
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26575
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26576
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26577
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26578
+ $(top_srcdir)/configure.in
26579
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26581
mkinstalldirs = $(install_sh) -d
20337
26582
Index: sid/ice-9/debugger/Makefile.in
20338
26583
===================================================================
20339
26584
--- sid.orig/ice-9/debugger/Makefile.in
20340
26585
+++ sid/ice-9/debugger/Makefile.in
20342
-# Makefile.in generated by automake 1.10 from Makefile.am.
20343
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20344
# @configure_input@
20346
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20347
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20348
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20349
# This Makefile.in is free software; the Free Software Foundation
20350
# gives unlimited permission to copy and/or distribute it,
20351
# with or without modifications, as long as this notice is preserved.
26587
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
26588
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26589
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26590
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26591
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26592
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26593
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26594
+ $(top_srcdir)/configure.in
26595
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26597
mkinstalldirs = $(install_sh) -d
20352
26598
Index: sid/ice-9/debugging/Makefile.in
20353
26599
===================================================================
20354
26600
--- sid.orig/ice-9/debugging/Makefile.in
20355
26601
+++ sid/ice-9/debugging/Makefile.in
20357
-# Makefile.in generated by automake 1.10 from Makefile.am.
20358
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20359
# @configure_input@
20361
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20362
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20363
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20364
# This Makefile.in is free software; the Free Software Foundation
20365
# gives unlimited permission to copy and/or distribute it,
20366
# with or without modifications, as long as this notice is preserved.
26603
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
26604
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26605
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26606
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26607
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26608
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26609
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26610
+ $(top_srcdir)/configure.in
26611
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26613
mkinstalldirs = $(install_sh) -d
20367
26614
Index: sid/lang/Makefile.in
20368
26615
===================================================================
20369
26616
--- sid.orig/lang/Makefile.in
20370
26617
+++ sid/lang/Makefile.in
20372
-# Makefile.in generated by automake 1.10 from Makefile.am.
20373
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20374
# @configure_input@
20376
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20377
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20378
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20379
# This Makefile.in is free software; the Free Software Foundation
20380
# gives unlimited permission to copy and/or distribute it,
20381
# with or without modifications, as long as this notice is preserved.
20382
@@ -379,8 +379,8 @@
20383
unique=`for i in $$list; do \
20384
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20386
- $(AWK) ' { files[$$0] = 1; } \
20387
- END { for (i in files) print i; }'`; \
20388
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20389
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20393
@@ -405,8 +405,8 @@
20394
unique=`for i in $$list; do \
20395
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20397
- $(AWK) ' { files[$$0] = 1; } \
20398
- END { for (i in files) print i; }'`; \
20399
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20400
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20401
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20402
test -n "$$unique" || unique=$$empty_fix; \
20403
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20404
@@ -416,13 +416,12 @@
20405
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20406
$(TAGS_FILES) $(LISP)
20409
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20410
unique=`for i in $$list; do \
20411
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20413
- $(AWK) ' { files[$$0] = 1; } \
20414
- END { for (i in files) print i; }'`; \
20415
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20416
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20417
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20418
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
26619
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
26620
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26621
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26622
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26623
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26624
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26625
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26626
+ $(top_srcdir)/configure.in
26627
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26629
mkinstalldirs = $(install_sh) -d
20420
26630
Index: sid/lang/elisp/Makefile.in
20421
26631
===================================================================
20422
26632
--- sid.orig/lang/elisp/Makefile.in
20423
26633
+++ sid/lang/elisp/Makefile.in
20425
-# Makefile.in generated by automake 1.10 from Makefile.am.
20426
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20427
# @configure_input@
20429
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20430
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20431
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20432
# This Makefile.in is free software; the Free Software Foundation
20433
# gives unlimited permission to copy and/or distribute it,
20434
# with or without modifications, as long as this notice is preserved.
20435
@@ -420,8 +420,8 @@
20436
unique=`for i in $$list; do \
20437
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20439
- $(AWK) ' { files[$$0] = 1; } \
20440
- END { for (i in files) print i; }'`; \
20441
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20442
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20446
@@ -446,8 +446,8 @@
20447
unique=`for i in $$list; do \
20448
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20450
- $(AWK) ' { files[$$0] = 1; } \
20451
- END { for (i in files) print i; }'`; \
20452
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20453
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20454
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20455
test -n "$$unique" || unique=$$empty_fix; \
20456
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20457
@@ -457,13 +457,12 @@
20458
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20459
$(TAGS_FILES) $(LISP)
20462
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20463
unique=`for i in $$list; do \
20464
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20466
- $(AWK) ' { files[$$0] = 1; } \
20467
- END { for (i in files) print i; }'`; \
20468
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20469
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20470
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20471
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
26635
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
26636
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26637
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26638
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26639
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26640
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26641
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26642
+ $(top_srcdir)/configure.in
26643
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26645
mkinstalldirs = $(install_sh) -d
20473
26646
Index: sid/lang/elisp/internals/Makefile.in
20474
26647
===================================================================
20475
26648
--- sid.orig/lang/elisp/internals/Makefile.in
20476
26649
+++ sid/lang/elisp/internals/Makefile.in
20478
-# Makefile.in generated by automake 1.10 from Makefile.am.
20479
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20480
# @configure_input@
20482
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20483
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20484
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20485
# This Makefile.in is free software; the Free Software Foundation
20486
# gives unlimited permission to copy and/or distribute it,
20487
# with or without modifications, as long as this notice is preserved.
26651
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
26652
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26653
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26654
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26655
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26656
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26657
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26658
+ $(top_srcdir)/configure.in
26659
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26661
mkinstalldirs = $(install_sh) -d
20488
26662
Index: sid/lang/elisp/primitives/Makefile.in
20489
26663
===================================================================
20490
26664
--- sid.orig/lang/elisp/primitives/Makefile.in
20491
26665
+++ sid/lang/elisp/primitives/Makefile.in
20493
-# Makefile.in generated by automake 1.10 from Makefile.am.
20494
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20495
# @configure_input@
20497
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20498
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20499
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20500
# This Makefile.in is free software; the Free Software Foundation
20501
# gives unlimited permission to copy and/or distribute it,
20502
# with or without modifications, as long as this notice is preserved.
26667
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
26668
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26669
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26670
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26671
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26672
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26673
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26674
+ $(top_srcdir)/configure.in
26675
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26677
mkinstalldirs = $(install_sh) -d
20503
26678
Index: sid/libguile/Makefile.in
20504
26679
===================================================================
20505
26680
--- sid.orig/libguile/Makefile.in
20506
26681
+++ sid/libguile/Makefile.in
20508
-# Makefile.in generated by automake 1.10 from Makefile.am.
20509
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20510
# @configure_input@
20512
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20513
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20514
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20515
# This Makefile.in is free software; the Free Software Foundation
20516
# gives unlimited permission to copy and/or distribute it,
20517
# with or without modifications, as long as this notice is preserved.
20518
@@ -560,8 +560,8 @@
20519
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
20520
if test -f $$p; then \
20521
f=$(am__strip_dir) \
20522
- echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
20523
- $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
20524
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
20525
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
20529
@@ -569,8 +569,8 @@
20530
@$(NORMAL_UNINSTALL)
20531
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
20532
p=$(am__strip_dir) \
20533
- echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
20534
- $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
20535
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
20536
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
20539
clean-libLTLIBRARIES:
20540
@@ -592,8 +592,8 @@
20543
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
20544
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
20545
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
20546
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
20547
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
20551
@@ -1669,8 +1669,8 @@
20552
unique=`for i in $$list; do \
20553
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20555
- $(AWK) ' { files[$$0] = 1; } \
20556
- END { for (i in files) print i; }'`; \
20557
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20558
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20562
@@ -1682,8 +1682,8 @@
20563
unique=`for i in $$list; do \
20564
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20566
- $(AWK) ' { files[$$0] = 1; } \
20567
- END { for (i in files) print i; }'`; \
20568
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20569
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20570
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20571
test -n "$$unique" || unique=$$empty_fix; \
20572
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20573
@@ -1693,13 +1693,12 @@
20574
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20575
$(TAGS_FILES) $(LISP)
20578
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20579
unique=`for i in $$list; do \
20580
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20582
- $(AWK) ' { files[$$0] = 1; } \
20583
- END { for (i in files) print i; }'`; \
20584
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20585
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20586
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20587
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
26684
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
26685
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
26686
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
26687
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
26688
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
26689
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
26690
+ $(top_srcdir)/configure.in
26691
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
26693
mkinstalldirs = $(install_sh) -d
26694
Index: sid/m4/libtool.m4
26695
===================================================================
26697
+++ sid/m4/libtool.m4
26699
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
26701
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26702
+# 2006, 2007, 2008 Free Software Foundation, Inc.
26703
+# Written by Gordon Matzigkeit, 1996
26705
+# This file is free software; the Free Software Foundation gives
26706
+# unlimited permission to copy and/or distribute it, with or without
26707
+# modifications, as long as this notice is preserved.
26709
+m4_define([_LT_COPYING], [dnl
26710
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26711
+# 2006, 2007, 2008 Free Software Foundation, Inc.
26712
+# Written by Gordon Matzigkeit, 1996
26714
+# This file is part of GNU Libtool.
26716
+# GNU Libtool is free software; you can redistribute it and/or
26717
+# modify it under the terms of the GNU General Public License as
26718
+# published by the Free Software Foundation; either version 2 of
26719
+# the License, or (at your option) any later version.
26721
+# As a special exception to the GNU General Public License,
26722
+# if you distribute this file as part of a program or library that
26723
+# is built using GNU Libtool, you may include this file under the
26724
+# same distribution terms that you use for the rest of that program.
26726
+# GNU Libtool is distributed in the hope that it will be useful,
26727
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
26728
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26729
+# GNU General Public License for more details.
26731
+# You should have received a copy of the GNU General Public License
26732
+# along with GNU Libtool; see the file COPYING. If not, a copy
26733
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26734
+# obtained by writing to the Free Software Foundation, Inc.,
26735
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26738
+# serial 56 LT_INIT
26741
+# LT_PREREQ(VERSION)
26742
+# ------------------
26743
+# Complain and exit if this libtool version is less that VERSION.
26744
+m4_defun([LT_PREREQ],
26745
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
26746
+ [m4_default([$3],
26747
+ [m4_fatal([Libtool version $1 or higher is required],
26752
+# _LT_CHECK_BUILDDIR
26753
+# ------------------
26754
+# Complain if the absolute build directory name contains unusual characters
26755
+m4_defun([_LT_CHECK_BUILDDIR],
26758
+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
26763
+# LT_INIT([OPTIONS])
26764
+# ------------------
26765
+AC_DEFUN([LT_INIT],
26766
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
26767
+AC_BEFORE([$0], [LT_LANG])dnl
26768
+AC_BEFORE([$0], [LT_OUTPUT])dnl
26769
+AC_BEFORE([$0], [LTDL_INIT])dnl
26770
+m4_require([_LT_CHECK_BUILDDIR])dnl
26772
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
26773
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
26774
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
26775
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
26776
+dnl unless we require an AC_DEFUNed macro:
26777
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
26778
+AC_REQUIRE([LTSUGAR_VERSION])dnl
26779
+AC_REQUIRE([LTVERSION_VERSION])dnl
26780
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
26781
+m4_require([_LT_PROG_LTMAIN])dnl
26784
+_LT_SET_OPTIONS([$0], [$1])
26786
+# This can be used to rebuild libtool when needed
26787
+LIBTOOL_DEPS="$ltmain"
26789
+# Always use our own libtool.
26790
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26791
+AC_SUBST(LIBTOOL)dnl
26795
+# Only expand once:
26796
+m4_define([LT_INIT])
26800
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
26801
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
26802
+dnl aclocal-1.4 backwards compatibility:
26803
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
26804
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
26807
+# _LT_CC_BASENAME(CC)
26808
+# -------------------
26809
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26810
+m4_defun([_LT_CC_BASENAME],
26811
+[for cc_temp in $1""; do
26813
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
26814
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
26819
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26823
+# _LT_FILEUTILS_DEFAULTS
26824
+# ----------------------
26825
+# It is okay to use these file commands and assume they have been set
26826
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
26827
+m4_defun([_LT_FILEUTILS_DEFAULTS],
26831
+])# _LT_FILEUTILS_DEFAULTS
26836
+m4_defun([_LT_SETUP],
26837
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
26838
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
26839
+_LT_DECL([], [host_alias], [0], [The host system])dnl
26840
+_LT_DECL([], [host], [0])dnl
26841
+_LT_DECL([], [host_os], [0])dnl
26843
+_LT_DECL([], [build_alias], [0], [The build system])dnl
26844
+_LT_DECL([], [build], [0])dnl
26845
+_LT_DECL([], [build_os], [0])dnl
26847
+AC_REQUIRE([AC_PROG_CC])dnl
26848
+AC_REQUIRE([LT_PATH_LD])dnl
26849
+AC_REQUIRE([LT_PATH_NM])dnl
26851
+AC_REQUIRE([AC_PROG_LN_S])dnl
26852
+test -z "$LN_S" && LN_S="ln -s"
26853
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
26855
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
26856
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
26857
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
26859
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
26860
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
26861
+m4_require([_LT_CMD_RELOAD])dnl
26862
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
26863
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
26864
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
26866
+_LT_CONFIG_LIBTOOL_INIT([
26867
+# See if we are running on zsh, and set the options which allow our
26868
+# commands through without removal of \ escapes INIT.
26869
+if test -n "\${ZSH_VERSION+set}" ; then
26870
+ setopt NO_GLOB_SUBST
26873
+if test -n "${ZSH_VERSION+set}" ; then
26874
+ setopt NO_GLOB_SUBST
26879
+m4_require([_LT_TAG_COMPILER])dnl
26880
+_LT_PROG_ECHO_BACKSLASH
26884
+ # AIX sometimes has problems with the GCC collect2 program. For some
26885
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
26886
+ # vanish in a puff of smoke.
26887
+ if test "X${COLLECT_NAMES+set}" != Xset; then
26889
+ export COLLECT_NAMES
26894
+# Sed substitution that helps us do robust quoting. It backslashifies
26895
+# metacharacters that are still active within double-quoted strings.
26896
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
26898
+# Same as above, but do not quote variable references.
26899
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
26901
+# Sed substitution to delay expansion of an escaped shell variable in a
26902
+# double_quote_subst'ed string.
26903
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
26905
+# Sed substitution to delay expansion of an escaped single quote.
26906
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
26908
+# Sed substitution to avoid accidental globbing in evaled expressions
26909
+no_glob_subst='s/\*/\\\*/g'
26911
+# Global variables:
26913
+can_build_shared=yes
26915
+# All known linkers require a `.a' archive for static linking (except MSVC,
26916
+# which needs '.lib').
26919
+with_gnu_ld="$lt_cv_prog_gnu_ld"
26922
+old_CFLAGS="$CFLAGS"
26924
+# Set sane defaults for various variables
26925
+test -z "$CC" && CC=cc
26926
+test -z "$LTCC" && LTCC=$CC
26927
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
26928
+test -z "$LD" && LD=ld
26929
+test -z "$ac_objext" && ac_objext=o
26931
+_LT_CC_BASENAME([$compiler])
26933
+# Only perform the check for file, if the check method requires it
26934
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
26935
+case $deplibs_check_method in
26937
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
26943
+# Use C for the default configuration in the libtool script
26944
+LT_SUPPORTED_TAG([CC])
26946
+_LT_LANG_DEFAULT_CONFIG
26947
+_LT_CONFIG_COMMANDS
26953
+# Note that this code is called both from `configure', and `config.status'
26954
+# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
26955
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
26956
+# so we pass a copy along to make sure it has a sensible value anyway.
26957
+m4_defun([_LT_PROG_LTMAIN],
26958
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
26959
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
26960
+ltmain="$ac_aux_dir/ltmain.sh"
26961
+])# _LT_PROG_LTMAIN
26964
+## ------------------------------------- ##
26965
+## Accumulate code for creating libtool. ##
26966
+## ------------------------------------- ##
26968
+# So that we can recreate a full libtool script including additional
26969
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
26970
+# in macros and then make a single call at the end using the `libtool'
26974
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
26975
+# ----------------------------------------
26976
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
26977
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
26979
+ [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
26984
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
26987
+# _LT_CONFIG_LIBTOOL([COMMANDS])
26988
+# ------------------------------
26989
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
26990
+m4_define([_LT_CONFIG_LIBTOOL],
26992
+ [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
26997
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
27000
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
27001
+# -----------------------------------------------------
27002
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
27003
+[_LT_CONFIG_LIBTOOL([$1])
27004
+_LT_CONFIG_LIBTOOL_INIT([$2])
27008
+# _LT_FORMAT_COMMENT([COMMENT])
27009
+# -----------------------------
27010
+# Add leading comment marks to the start of each line, and a trailing
27011
+# full-stop to the whole comment if one is not present already.
27012
+m4_define([_LT_FORMAT_COMMENT],
27014
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
27015
+ [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
27020
+## ------------------------ ##
27021
+## FIXME: Eliminate VARNAME ##
27022
+## ------------------------ ##
27025
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
27026
+# -------------------------------------------------------------------
27027
+# CONFIGNAME is the name given to the value in the libtool script.
27028
+# VARNAME is the (base) name used in the configure script.
27029
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
27030
+# VARNAME. Any other value will be used directly.
27031
+m4_define([_LT_DECL],
27032
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
27033
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
27034
+ [m4_ifval([$1], [$1], [$2])])
27035
+ lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
27037
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
27038
+ lt_dict_add_subkey([lt_decl_dict], [$2],
27039
+ [tagged?], [m4_ifval([$5], [yes], [no])])])
27043
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
27044
+# --------------------------------------------------------
27045
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
27048
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
27049
+# ------------------------------------------------
27050
+m4_define([lt_decl_tag_varnames],
27051
+[_lt_decl_filter([tagged?], [yes], $@)])
27054
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
27055
+# ---------------------------------------------------------
27056
+m4_define([_lt_decl_filter],
27058
+ [0], [m4_fatal([$0: too few arguments: $#])],
27059
+ [1], [m4_fatal([$0: too few arguments: $#: $1])],
27060
+ [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
27061
+ [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
27062
+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
27066
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
27067
+# --------------------------------------------------
27068
+m4_define([lt_decl_quote_varnames],
27069
+[_lt_decl_filter([value], [1], $@)])
27072
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
27073
+# ---------------------------------------------------
27074
+m4_define([lt_decl_dquote_varnames],
27075
+[_lt_decl_filter([value], [2], $@)])
27078
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
27079
+# ---------------------------------------------------
27080
+m4_define([lt_decl_varnames_tagged],
27081
+[m4_assert([$# <= 2])dnl
27082
+_$0(m4_quote(m4_default([$1], [[, ]])),
27083
+ m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
27084
+ m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
27085
+m4_define([_lt_decl_varnames_tagged],
27086
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
27089
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
27090
+# ------------------------------------------------
27091
+m4_define([lt_decl_all_varnames],
27092
+[_$0(m4_quote(m4_default([$1], [[, ]])),
27094
+ m4_quote(lt_decl_varnames),
27095
+ m4_quote(m4_shift($@))))[]dnl
27097
+m4_define([_lt_decl_all_varnames],
27098
+[lt_join($@, lt_decl_varnames_tagged([$1],
27099
+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
27103
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
27104
+# ------------------------------------
27105
+# Quote a variable value, and forward it to `config.status' so that its
27106
+# declaration there will have the same value as in `configure'. VARNAME
27107
+# must have a single quote delimited value for this to work.
27108
+m4_define([_LT_CONFIG_STATUS_DECLARE],
27109
+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
27112
+# _LT_CONFIG_STATUS_DECLARATIONS
27113
+# ------------------------------
27114
+# We delimit libtool config variables with single quotes, so when
27115
+# we write them to config.status, we have to be sure to quote all
27116
+# embedded single quotes properly. In configure, this macro expands
27117
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
27119
+# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
27120
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
27121
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
27122
+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
27125
+# _LT_LIBTOOL_TAGS
27126
+# ----------------
27127
+# Output comment and list of tags supported by the script
27128
+m4_defun([_LT_LIBTOOL_TAGS],
27129
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
27130
+available_tags="_LT_TAGS"dnl
27134
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
27135
+# -----------------------------------
27136
+# Extract the dictionary values for VARNAME (optionally with TAG) and
27137
+# expand to a commented shell variable setting:
27139
+# # Some comment about what VAR is for.
27140
+# visible_name=$lt_internal_name
27141
+m4_define([_LT_LIBTOOL_DECLARE],
27142
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
27143
+ [description])))[]dnl
27144
+m4_pushdef([_libtool_name],
27145
+ m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
27146
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
27147
+ [0], [_libtool_name=[$]$1],
27148
+ [1], [_libtool_name=$lt_[]$1],
27149
+ [2], [_libtool_name=$lt_[]$1],
27150
+ [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
27151
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
27155
+# _LT_LIBTOOL_CONFIG_VARS
27156
+# -----------------------
27157
+# Produce commented declarations of non-tagged libtool config variables
27158
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
27159
+# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
27160
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
27161
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
27162
+[m4_foreach([_lt_var],
27163
+ m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
27164
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
27167
+# _LT_LIBTOOL_TAG_VARS(TAG)
27168
+# -------------------------
27169
+m4_define([_LT_LIBTOOL_TAG_VARS],
27170
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
27171
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
27174
+# _LT_TAGVAR(VARNAME, [TAGNAME])
27175
+# ------------------------------
27176
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
27179
+# _LT_CONFIG_COMMANDS
27180
+# -------------------
27181
+# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
27182
+# variables for single and double quote escaping we saved from calls
27183
+# to _LT_DECL, we can put quote escaped variables declarations
27184
+# into `config.status', and then the shell code to quote escape them in
27185
+# for loops in `config.status'. Finally, any additional code accumulated
27186
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
27187
+m4_defun([_LT_CONFIG_COMMANDS],
27188
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
27189
+ dnl If the libtool generation code has been placed in $CONFIG_LT,
27190
+ dnl instead of duplicating it all over again into config.status,
27191
+ dnl then we will have config.status run $CONFIG_LT later, so it
27192
+ dnl needs to know what name is stored there:
27193
+ [AC_CONFIG_COMMANDS([libtool],
27194
+ [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
27195
+ dnl If the libtool generation code is destined for config.status,
27196
+ dnl expand the accumulated commands and init code now:
27197
+ [AC_CONFIG_COMMANDS([libtool],
27198
+ [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
27199
+])#_LT_CONFIG_COMMANDS
27203
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
27206
+# The HP-UX ksh and POSIX shell print the target directory to stdout
27207
+# if CDPATH is set.
27208
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27210
+sed_quote_subst='$sed_quote_subst'
27211
+double_quote_subst='$double_quote_subst'
27212
+delay_variable_subst='$delay_variable_subst'
27213
+_LT_CONFIG_STATUS_DECLARATIONS
27215
+LTCFLAGS='$LTCFLAGS'
27216
+compiler='$compiler_DEFAULT'
27218
+# Quote evaled strings.
27219
+for var in lt_decl_all_varnames([[ \
27220
+]], lt_decl_quote_varnames); do
27221
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
27222
+ *[[\\\\\\\`\\"\\\$]]*)
27223
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27226
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27231
+# Double-quote double-evaled strings.
27232
+for var in lt_decl_all_varnames([[ \
27233
+]], lt_decl_dquote_varnames); do
27234
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
27235
+ *[[\\\\\\\`\\"\\\$]]*)
27236
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27239
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27244
+# Fix-up fallback echo if it was mangled by the above quoting rules.
27246
+*'\\\[$]0 --fallback-echo"')dnl "
27247
+ lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
27251
+_LT_OUTPUT_LIBTOOL_INIT
27257
+# This macro allows early generation of the libtool script (before
27258
+# AC_OUTPUT is called), incase it is used in configure for compilation
27260
+AC_DEFUN([LT_OUTPUT],
27261
+[: ${CONFIG_LT=./config.lt}
27262
+AC_MSG_NOTICE([creating $CONFIG_LT])
27263
+cat >"$CONFIG_LT" <<_LTEOF
27265
+# Generated by $as_me.
27266
+# Run this file to recreate a libtool stub with the current configuration.
27268
+lt_cl_silent=false
27269
+SHELL=\${CONFIG_SHELL-$SHELL}
27272
+cat >>"$CONFIG_LT" <<\_LTEOF
27276
+exec AS_MESSAGE_FD>&1
27277
+exec AS_MESSAGE_LOG_FD>>config.log
27280
+ AS_BOX([Running $as_me.])
27281
+} >&AS_MESSAGE_LOG_FD
27284
+\`$as_me' creates a local libtool stub from the current configuration,
27285
+for use in further configure time tests before the real libtool is
27288
+Usage: $[0] [[OPTIONS]]
27290
+ -h, --help print this help, then exit
27291
+ -V, --version print version number, then exit
27292
+ -q, --quiet do not print progress messages
27293
+ -d, --debug don't remove temporary files
27295
+Report bugs to <bug-libtool@gnu.org>."
27298
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
27299
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
27300
+configured by $[0], generated by m4_PACKAGE_STRING.
27302
+Copyright (C) 2008 Free Software Foundation, Inc.
27303
+This config.lt script is free software; the Free Software Foundation
27304
+gives unlimited permision to copy, distribute and modify it."
27306
+while test $[#] != 0
27309
+ --version | --v* | -V )
27310
+ echo "$lt_cl_version"; exit 0 ;;
27311
+ --help | --h* | -h )
27312
+ echo "$lt_cl_help"; exit 0 ;;
27313
+ --debug | --d* | -d )
27315
+ --quiet | --q* | --silent | --s* | -q )
27316
+ lt_cl_silent=: ;;
27318
+ -*) AC_MSG_ERROR([unrecognized option: $[1]
27319
+Try \`$[0] --help' for more information.]) ;;
27321
+ *) AC_MSG_ERROR([unrecognized argument: $[1]
27322
+Try \`$[0] --help' for more information.]) ;;
27327
+if $lt_cl_silent; then
27328
+ exec AS_MESSAGE_FD>/dev/null
27332
+cat >>"$CONFIG_LT" <<_LTEOF
27333
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
27336
+cat >>"$CONFIG_LT" <<\_LTEOF
27337
+AC_MSG_NOTICE([creating $ofile])
27338
+_LT_OUTPUT_LIBTOOL_COMMANDS
27341
+chmod +x "$CONFIG_LT"
27343
+# configure is writing to config.log, but config.lt does its own redirection,
27344
+# appending to config.log, which fails on DOS, as config.log is still kept
27345
+# open by configure. Here we exec the FD to /dev/null, effectively closing
27346
+# config.log, so it can be properly (re)opened and appended to by config.lt.
27347
+if test "$no_create" != yes; then
27349
+ test "$silent" = yes &&
27350
+ lt_config_lt_args="$lt_config_lt_args --quiet"
27351
+ exec AS_MESSAGE_LOG_FD>/dev/null
27352
+ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
27353
+ exec AS_MESSAGE_LOG_FD>>config.log
27354
+ $lt_cl_success || AS_EXIT(1)
27361
+# If TAG is the built-in tag, create an initial libtool script with a
27362
+# default configuration from the untagged config vars. Otherwise add code
27363
+# to config.status for appending the configuration named by TAG from the
27364
+# matching tagged config vars.
27365
+m4_defun([_LT_CONFIG],
27366
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
27367
+_LT_CONFIG_SAVE_COMMANDS([
27368
+ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
27369
+ m4_if(_LT_TAG, [C], [
27370
+ # See if we are running on zsh, and set the options which allow our
27371
+ # commands through without removal of \ escapes.
27372
+ if test -n "${ZSH_VERSION+set}" ; then
27373
+ setopt NO_GLOB_SUBST
27376
+ cfgfile="${ofile}T"
27377
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27380
+ cat <<_LT_EOF >> "$cfgfile"
27383
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27384
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27385
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27386
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27391
+# ### BEGIN LIBTOOL CONFIG
27392
+_LT_LIBTOOL_CONFIG_VARS
27393
+_LT_LIBTOOL_TAG_VARS
27394
+# ### END LIBTOOL CONFIG
27400
+ cat <<\_LT_EOF >> "$cfgfile"
27401
+# AIX sometimes has problems with the GCC collect2 program. For some
27402
+# reason, if we set the COLLECT_NAMES environment variable, the problems
27403
+# vanish in a puff of smoke.
27404
+if test "X${COLLECT_NAMES+set}" != Xset; then
27406
+ export COLLECT_NAMES
27414
+ # We use sed instead of cat because bash on DJGPP gets confused if
27415
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
27416
+ # text mode, it properly converts lines to CR/LF. This bash problem
27417
+ # is reportedly fixed, but why not run on old versions too?
27418
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27419
+ || (rm -f "$cfgfile"; exit 1)
27421
+ _LT_PROG_XSI_SHELLFNS
27423
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27424
+ || (rm -f "$cfgfile"; exit 1)
27426
+ mv -f "$cfgfile" "$ofile" ||
27427
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27428
+ chmod +x "$ofile"
27430
+[cat <<_LT_EOF >> "$ofile"
27432
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
27433
+dnl in a comment (ie after a #).
27434
+# ### BEGIN LIBTOOL TAG CONFIG: $1
27435
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
27436
+# ### END LIBTOOL TAG CONFIG: $1
27440
+[m4_if([$1], [], [
27441
+ PACKAGE='$PACKAGE'
27442
+ VERSION='$VERSION'
27443
+ TIMESTAMP='$TIMESTAMP'
27445
+ ofile='$ofile'], [])
27446
+])dnl /_LT_CONFIG_SAVE_COMMANDS
27450
+# LT_SUPPORTED_TAG(TAG)
27451
+# ---------------------
27452
+# Trace this macro to discover what tags are supported by the libtool
27453
+# --tag option, using:
27454
+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
27455
+AC_DEFUN([LT_SUPPORTED_TAG], [])
27458
+# C support is built-in for now
27459
+m4_define([_LT_LANG_C_enabled], [])
27460
+m4_define([_LT_TAGS], [])
27465
+# Enable libtool support for the given language if not already enabled.
27466
+AC_DEFUN([LT_LANG],
27467
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
27469
+ [C], [_LT_LANG(C)],
27470
+ [C++], [_LT_LANG(CXX)],
27471
+ [Java], [_LT_LANG(GCJ)],
27472
+ [Fortran 77], [_LT_LANG(F77)],
27473
+ [Fortran], [_LT_LANG(FC)],
27474
+ [Windows Resource], [_LT_LANG(RC)],
27475
+ [m4_ifdef([_LT_LANG_]$1[_CONFIG],
27477
+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
27481
+# _LT_LANG(LANGNAME)
27482
+# ------------------
27483
+m4_defun([_LT_LANG],
27484
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
27485
+ [LT_SUPPORTED_TAG([$1])dnl
27486
+ m4_append([_LT_TAGS], [$1 ])dnl
27487
+ m4_define([_LT_LANG_]$1[_enabled], [])dnl
27488
+ _LT_LANG_$1_CONFIG($1)])dnl
27492
+# _LT_LANG_DEFAULT_CONFIG
27493
+# -----------------------
27494
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
27495
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
27497
+ [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
27499
+AC_PROVIDE_IFELSE([AC_PROG_F77],
27501
+ [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
27503
+AC_PROVIDE_IFELSE([AC_PROG_FC],
27505
+ [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
27507
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
27508
+dnl pulling things in needlessly.
27509
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
27511
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
27513
+ [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
27515
+ [m4_ifdef([AC_PROG_GCJ],
27516
+ [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
27517
+ m4_ifdef([A][M_PROG_GCJ],
27518
+ [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
27519
+ m4_ifdef([LT_PROG_GCJ],
27520
+ [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
27522
+AC_PROVIDE_IFELSE([LT_PROG_RC],
27524
+ [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
27525
+])# _LT_LANG_DEFAULT_CONFIG
27527
+# Obsolete macros:
27528
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
27529
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
27530
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
27531
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
27532
+dnl aclocal-1.4 backwards compatibility:
27533
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
27534
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
27535
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
27536
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
27539
+# _LT_TAG_COMPILER
27540
+# ----------------
27541
+m4_defun([_LT_TAG_COMPILER],
27542
+[AC_REQUIRE([AC_PROG_CC])dnl
27544
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
27545
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
27546
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
27547
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
27549
+# If no C compiler was specified, use CC.
27550
+LTCC=${LTCC-"$CC"}
27552
+# If no C compiler flags were specified, use CFLAGS.
27553
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27555
+# Allow CC to be a program name with arguments.
27557
+])# _LT_TAG_COMPILER
27560
+# _LT_COMPILER_BOILERPLATE
27561
+# ------------------------
27562
+# Check for compiler boilerplate output or warnings with
27563
+# the simple compiler test code.
27564
+m4_defun([_LT_COMPILER_BOILERPLATE],
27565
+[m4_require([_LT_DECL_SED])dnl
27566
+ac_outfile=conftest.$ac_objext
27567
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27568
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27569
+_lt_compiler_boilerplate=`cat conftest.err`
27571
+])# _LT_COMPILER_BOILERPLATE
27574
+# _LT_LINKER_BOILERPLATE
27575
+# ----------------------
27576
+# Check for linker boilerplate output or warnings with
27577
+# the simple link test code.
27578
+m4_defun([_LT_LINKER_BOILERPLATE],
27579
+[m4_require([_LT_DECL_SED])dnl
27580
+ac_outfile=conftest.$ac_objext
27581
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
27582
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27583
+_lt_linker_boilerplate=`cat conftest.err`
27585
+])# _LT_LINKER_BOILERPLATE
27587
+# _LT_REQUIRED_DARWIN_CHECKS
27588
+# -------------------------
27589
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
27591
+ rhapsody* | darwin*)
27592
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
27593
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
27594
+ AC_CHECK_TOOL([LIPO], [lipo], [:])
27595
+ AC_CHECK_TOOL([OTOOL], [otool], [:])
27596
+ AC_CHECK_TOOL([OTOOL64], [otool64], [:])
27597
+ _LT_DECL([], [DSYMUTIL], [1],
27598
+ [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
27599
+ _LT_DECL([], [NMEDIT], [1],
27600
+ [Tool to change global to local symbols on Mac OS X])
27601
+ _LT_DECL([], [LIPO], [1],
27602
+ [Tool to manipulate fat objects and archives on Mac OS X])
27603
+ _LT_DECL([], [OTOOL], [1],
27604
+ [ldd/readelf like tool for Mach-O binaries on Mac OS X])
27605
+ _LT_DECL([], [OTOOL64], [1],
27606
+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
27608
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
27609
+ [lt_cv_apple_cc_single_mod=no
27610
+ if test -z "${LT_MULTI_MODULE}"; then
27611
+ # By default we will add the -single_module flag. You can override
27612
+ # by either setting the environment variable LT_MULTI_MODULE
27613
+ # non-empty at configure time, or by adding -multi_module to the
27615
+ rm -rf libconftest.dylib*
27616
+ echo "int foo(void){return 1;}" > conftest.c
27617
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
27618
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
27619
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
27620
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
27622
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
27623
+ lt_cv_apple_cc_single_mod=yes
27625
+ cat conftest.err >&AS_MESSAGE_LOG_FD
27627
+ rm -rf libconftest.dylib*
27630
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
27631
+ [lt_cv_ld_exported_symbols_list],
27632
+ [lt_cv_ld_exported_symbols_list=no
27633
+ save_LDFLAGS=$LDFLAGS
27634
+ echo "_main" > conftest.sym
27635
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
27636
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
27637
+ [lt_cv_ld_exported_symbols_list=yes],
27638
+ [lt_cv_ld_exported_symbols_list=no])
27639
+ LDFLAGS="$save_LDFLAGS"
27642
+ rhapsody* | darwin1.[[012]])
27643
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
27645
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
27646
+ darwin*) # darwin 5.x on
27647
+ # if running on 10.5 or later, the deployment target defaults
27648
+ # to the OS version, if on x86, and 10.4, the deployment
27649
+ # target defaults to 10.4. Don't you love it?
27650
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
27651
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
27652
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
27654
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
27656
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
27660
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
27661
+ _lt_dar_single_mod='$single_module'
27663
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
27664
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
27666
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
27668
+ if test "$DSYMUTIL" != ":"; then
27669
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
27678
+# _LT_DARWIN_LINKER_FEATURES
27679
+# --------------------------
27680
+# Checks for linker and compiler features on darwin
27681
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
27683
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
27684
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
27685
+ _LT_TAGVAR(hardcode_direct, $1)=no
27686
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
27687
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
27688
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
27689
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
27690
+ _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
27691
+ case $cc_basename in
27692
+ ifort*) _lt_dar_can_shared=yes ;;
27693
+ *) _lt_dar_can_shared=$GCC ;;
27695
+ if test "$_lt_dar_can_shared" = "yes"; then
27696
+ output_verbose_link_cmd=echo
27697
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
27698
+ _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
27699
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
27700
+ _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
27701
+ m4_if([$1], [CXX],
27702
+[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
27703
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
27704
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
27708
+ _LT_TAGVAR(ld_shlibs, $1)=no
27712
+# _LT_SYS_MODULE_PATH_AIX
27713
+# -----------------------
27714
+# Links a minimal program and checks the executable
27715
+# for the system default hardcoded library path. In most cases,
27716
+# this is /usr/lib:/lib, but when the MPI compilers are used
27717
+# the location of the communication and MPI libs are included too.
27718
+# If we don't find anything, use the default library path according
27719
+# to the aix ld manual.
27720
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
27721
+[m4_require([_LT_DECL_SED])dnl
27722
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
27723
+lt_aix_libpath_sed='
27724
+ /Import File Strings/,/^$/ {
27726
+ s/^0 *\(.*\)$/\1/
27730
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27731
+# Check for a 64-bit object if we didn't find anything.
27732
+if test -z "$aix_libpath"; then
27733
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27735
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27736
+])# _LT_SYS_MODULE_PATH_AIX
27739
+# _LT_SHELL_INIT(ARG)
27740
+# -------------------
27741
+m4_define([_LT_SHELL_INIT],
27742
+[ifdef([AC_DIVERSION_NOTICE],
27743
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
27744
+ [AC_DIVERT_PUSH(NOTICE)])
27747
+])# _LT_SHELL_INIT
27750
+# _LT_PROG_ECHO_BACKSLASH
27751
+# -----------------------
27752
+# Add some code to the start of the generated configure script which
27753
+# will find an echo command which doesn't interpret backslashes.
27754
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
27756
+# Check that we are running under the correct shell.
27757
+SHELL=${CONFIG_SHELL-/bin/sh}
27760
+X*--fallback-echo)
27761
+ # Remove one level of quotation (which was required for Make).
27762
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
27766
+ECHO=${lt_ECHO-echo}
27767
+if test "X[$]1" = X--no-reexec; then
27768
+ # Discard the --no-reexec flag, and continue.
27770
+elif test "X[$]1" = X--fallback-echo; then
27771
+ # Avoid inline document here, it may be left over
27773
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
27774
+ # Yippee, $ECHO works!
27777
+ # Restart under the correct shell.
27778
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
27781
+if test "X[$]1" = X--fallback-echo; then
27782
+ # used as fallback echo
27790
+# The HP-UX ksh and POSIX shell print the target directory to stdout
27791
+# if CDPATH is set.
27792
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27794
+if test -z "$lt_ECHO"; then
27795
+ if test "X${echo_test_string+set}" != Xset; then
27796
+ # find a string as large as possible, as long as the shell can cope with it
27797
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
27798
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
27799
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
27800
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
27807
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
27808
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
27809
+ test "X$echo_testing_string" = "X$echo_test_string"; then
27812
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
27813
+ # backslashes. This makes it impossible to quote backslashes using
27814
+ # echo "$something" | sed 's/\\/\\\\/g'
27816
+ # So, first we look for a working echo in the user's PATH.
27818
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27819
+ for dir in $PATH /usr/ucb; do
27820
+ IFS="$lt_save_ifs"
27821
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
27822
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
27823
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
27824
+ test "X$echo_testing_string" = "X$echo_test_string"; then
27829
+ IFS="$lt_save_ifs"
27831
+ if test "X$ECHO" = Xecho; then
27832
+ # We didn't find a better echo, so look for alternatives.
27833
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
27834
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
27835
+ test "X$echo_testing_string" = "X$echo_test_string"; then
27836
+ # This shell has a builtin print -r that does the trick.
27838
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
27839
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
27840
+ # If we have ksh, try running configure again with it.
27841
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27842
+ export ORIGINAL_CONFIG_SHELL
27843
+ CONFIG_SHELL=/bin/ksh
27844
+ export CONFIG_SHELL
27845
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
27847
+ # Try using printf.
27848
+ ECHO='printf %s\n'
27849
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
27850
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
27851
+ test "X$echo_testing_string" = "X$echo_test_string"; then
27852
+ # Cool, printf works
27854
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
27855
+ test "X$echo_testing_string" = 'X\t' &&
27856
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
27857
+ test "X$echo_testing_string" = "X$echo_test_string"; then
27858
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
27859
+ export CONFIG_SHELL
27860
+ SHELL="$CONFIG_SHELL"
27862
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
27863
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
27864
+ test "X$echo_testing_string" = 'X\t' &&
27865
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
27866
+ test "X$echo_testing_string" = "X$echo_test_string"; then
27867
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
27869
+ # maybe with a smaller string...
27872
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
27873
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
27880
+ if test "$prev" != 'sed 50q "[$]0"'; then
27881
+ echo_test_string=`eval $prev`
27882
+ export echo_test_string
27883
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
27885
+ # Oops. We lost completely, so just stick with echo.
27894
+# Copy echo and quote the copy suitably for passing to libtool from
27895
+# the Makefile, instead of quoting the original, which is used later.
27897
+if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
27898
+ lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
27903
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
27904
+_LT_DECL([], [ECHO], [1],
27905
+ [An echo program that does not interpret backslashes])
27906
+])# _LT_PROG_ECHO_BACKSLASH
27911
+m4_defun([_LT_ENABLE_LOCK],
27912
+[AC_ARG_ENABLE([libtool-lock],
27913
+ [AS_HELP_STRING([--disable-libtool-lock],
27914
+ [avoid locking (might break parallel builds)])])
27915
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
27917
+# Some flags need to be propagated to the compiler or linker for good
27918
+# libtool support.
27921
+ # Find out which ABI we are using.
27922
+ echo 'int i;' > conftest.$ac_ext
27923
+ if AC_TRY_EVAL(ac_compile); then
27924
+ case `/usr/bin/file conftest.$ac_objext` in
27926
+ HPUX_IA64_MODE="32"
27929
+ HPUX_IA64_MODE="64"
27936
+ # Find out which ABI we are using.
27937
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
27938
+ if AC_TRY_EVAL(ac_compile); then
27939
+ if test "$lt_cv_prog_gnu_ld" = yes; then
27940
+ case `/usr/bin/file conftest.$ac_objext` in
27942
+ LD="${LD-ld} -melf32bsmip"
27945
+ LD="${LD-ld} -melf32bmipn32"
27948
+ LD="${LD-ld} -melf64bmip"
27952
+ case `/usr/bin/file conftest.$ac_objext` in
27954
+ LD="${LD-ld} -32"
27957
+ LD="${LD-ld} -n32"
27960
+ LD="${LD-ld} -64"
27968
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
27969
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
27970
+ # Find out which ABI we are using.
27971
+ echo 'int i;' > conftest.$ac_ext
27972
+ if AC_TRY_EVAL(ac_compile); then
27973
+ case `/usr/bin/file conftest.o` in
27976
+ x86_64-*kfreebsd*-gnu)
27977
+ LD="${LD-ld} -m elf_i386_fbsd"
27980
+ LD="${LD-ld} -m elf_i386"
27982
+ ppc64-*linux*|powerpc64-*linux*)
27983
+ LD="${LD-ld} -m elf32ppclinux"
27986
+ LD="${LD-ld} -m elf_s390"
27989
+ LD="${LD-ld} -m elf32_sparc"
27995
+ x86_64-*kfreebsd*-gnu)
27996
+ LD="${LD-ld} -m elf_x86_64_fbsd"
27999
+ LD="${LD-ld} -m elf_x86_64"
28001
+ ppc*-*linux*|powerpc*-*linux*)
28002
+ LD="${LD-ld} -m elf64ppc"
28004
+ s390*-*linux*|s390*-*tpf*)
28005
+ LD="${LD-ld} -m elf64_s390"
28008
+ LD="${LD-ld} -m elf64_sparc"
28018
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
28019
+ SAVE_CFLAGS="$CFLAGS"
28020
+ CFLAGS="$CFLAGS -belf"
28021
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
28023
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
28025
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
28026
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
28027
+ CFLAGS="$SAVE_CFLAGS"
28031
+ # Find out which ABI we are using.
28032
+ echo 'int i;' > conftest.$ac_ext
28033
+ if AC_TRY_EVAL(ac_compile); then
28034
+ case `/usr/bin/file conftest.o` in
28036
+ case $lt_cv_prog_gnu_ld in
28037
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
28039
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
28040
+ LD="${LD-ld} -64"
28051
+need_locks="$enable_libtool_lock"
28052
+])# _LT_ENABLE_LOCK
28055
+# _LT_CMD_OLD_ARCHIVE
28056
+# -------------------
28057
+m4_defun([_LT_CMD_OLD_ARCHIVE],
28058
+[AC_CHECK_TOOL(AR, ar, false)
28059
+test -z "$AR" && AR=ar
28060
+test -z "$AR_FLAGS" && AR_FLAGS=cru
28061
+_LT_DECL([], [AR], [1], [The archiver])
28062
+_LT_DECL([], [AR_FLAGS], [1])
28064
+AC_CHECK_TOOL(STRIP, strip, :)
28065
+test -z "$STRIP" && STRIP=:
28066
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
28068
+AC_CHECK_TOOL(RANLIB, ranlib, :)
28069
+test -z "$RANLIB" && RANLIB=:
28070
+_LT_DECL([], [RANLIB], [1],
28071
+ [Commands used to install an old-style archive])
28073
+# Determine commands to create old-style static archives.
28074
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
28075
+old_postinstall_cmds='chmod 644 $oldlib'
28076
+old_postuninstall_cmds=
28078
+if test -n "$RANLIB"; then
28081
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
28084
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
28087
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
28089
+_LT_DECL([], [old_postinstall_cmds], [2])
28090
+_LT_DECL([], [old_postuninstall_cmds], [2])
28091
+_LT_TAGDECL([], [old_archive_cmds], [2],
28092
+ [Commands used to build an old-style archive])
28093
+])# _LT_CMD_OLD_ARCHIVE
28096
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
28097
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
28098
+# ----------------------------------------------------------------
28099
+# Check whether the given compiler option works
28100
+AC_DEFUN([_LT_COMPILER_OPTION],
28101
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
28102
+m4_require([_LT_DECL_SED])dnl
28103
+AC_CACHE_CHECK([$1], [$2],
28105
+ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
28106
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
28107
+ lt_compiler_flag="$3"
28108
+ # Insert the option either (1) after the last *FLAGS variable, or
28109
+ # (2) before a word containing "conftest.", or (3) at the end.
28110
+ # Note that $ac_compile itself does not contain backslashes and begins
28111
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
28112
+ # The option is referenced via a variable to avoid confusing sed.
28113
+ lt_compile=`echo "$ac_compile" | $SED \
28114
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28115
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
28116
+ -e 's:$: $lt_compiler_flag:'`
28117
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
28118
+ (eval "$lt_compile" 2>conftest.err)
28120
+ cat conftest.err >&AS_MESSAGE_LOG_FD
28121
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
28122
+ if (exit $ac_status) && test -s "$ac_outfile"; then
28123
+ # The compiler can only warn and ignore the option if not recognized
28124
+ # So say no if there are warnings other than the usual output.
28125
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
28126
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28127
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
28134
+if test x"[$]$2" = xyes; then
28135
+ m4_if([$5], , :, [$5])
28137
+ m4_if([$6], , :, [$6])
28139
+])# _LT_COMPILER_OPTION
28142
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
28143
+dnl aclocal-1.4 backwards compatibility:
28144
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
28147
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
28148
+# [ACTION-SUCCESS], [ACTION-FAILURE])
28149
+# ----------------------------------------------------
28150
+# Check whether the given linker option works
28151
+AC_DEFUN([_LT_LINKER_OPTION],
28152
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
28153
+m4_require([_LT_DECL_SED])dnl
28154
+AC_CACHE_CHECK([$1], [$2],
28156
+ save_LDFLAGS="$LDFLAGS"
28157
+ LDFLAGS="$LDFLAGS $3"
28158
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
28159
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
28160
+ # The linker can only warn and ignore the option if not recognized
28161
+ # So say no if there are warnings
28162
+ if test -s conftest.err; then
28163
+ # Append any errors to the config.log.
28164
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
28165
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
28166
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28167
+ if diff conftest.exp conftest.er2 >/dev/null; then
28175
+ LDFLAGS="$save_LDFLAGS"
28178
+if test x"[$]$2" = xyes; then
28179
+ m4_if([$4], , :, [$4])
28181
+ m4_if([$5], , :, [$5])
28183
+])# _LT_LINKER_OPTION
28186
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
28187
+dnl aclocal-1.4 backwards compatibility:
28188
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
28193
+AC_DEFUN([LT_CMD_MAX_LEN],
28194
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
28195
+# find the maximum length of command line arguments
28196
+AC_MSG_CHECKING([the maximum length of command line arguments])
28197
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
28199
+ teststring="ABCD"
28201
+ case $build_os in
28203
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
28204
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
28205
+ # during glob expansion). Even if it were fixed, the result of this
28206
+ # check would be larger than it should be.
28207
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
28211
+ # Under GNU Hurd, this test is not required because there is
28212
+ # no limit to the length of command line arguments.
28213
+ # Libtool will interpret -1 as no limit whatsoever
28214
+ lt_cv_sys_max_cmd_len=-1;
28217
+ cygwin* | mingw* | cegcc*)
28218
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
28219
+ # about 5 minutes as the teststring grows exponentially.
28220
+ # Worse, since 9x/ME are not pre-emptively multitasking,
28221
+ # you end up with a "frozen" computer, even though with patience
28222
+ # the test eventually succeeds (with a max line length of 256k).
28223
+ # Instead, let's just punt: use the minimum linelength reported by
28224
+ # all of the supported platforms: 8192 (on NT/2K/XP).
28225
+ lt_cv_sys_max_cmd_len=8192;
28229
+ # On AmigaOS with pdksh, this test takes hours, literally.
28230
+ # So we just punt and use a minimum line length of 8192.
28231
+ lt_cv_sys_max_cmd_len=8192;
28234
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
28235
+ # This has been around since 386BSD, at least. Likely further.
28236
+ if test -x /sbin/sysctl; then
28237
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
28238
+ elif test -x /usr/sbin/sysctl; then
28239
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
28241
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
28243
+ # And add a safety zone
28244
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
28245
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
28249
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
28250
+ lt_cv_sys_max_cmd_len=196608
28254
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
28255
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
28256
+ # nice to cause kernel panics so lets avoid the loop below.
28257
+ # First set a reasonable default.
28258
+ lt_cv_sys_max_cmd_len=16384
28260
+ if test -x /sbin/sysconfig; then
28261
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
28262
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
28267
+ lt_cv_sys_max_cmd_len=102400
28269
+ sysv5* | sco5v6* | sysv4.2uw2*)
28270
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
28271
+ if test -n "$kargmax"; then
28272
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
28274
+ lt_cv_sys_max_cmd_len=32768
28278
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
28279
+ if test -n "$lt_cv_sys_max_cmd_len"; then
28280
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
28281
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
28283
+ # Make teststring a little bigger before we do anything with it.
28284
+ # a 1K string should be a reasonable start.
28285
+ for i in 1 2 3 4 5 6 7 8 ; do
28286
+ teststring=$teststring$teststring
28288
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
28289
+ # If test is not a shell built-in, we'll probably end up computing a
28290
+ # maximum length that is only half of the actual maximum length, but
28292
+ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
28293
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
28294
+ test $i != 17 # 1/2 MB should be enough
28297
+ teststring=$teststring$teststring
28299
+ # Only check the string length outside the loop.
28300
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
28302
+ # Add a significant safety factor because C++ compilers can tack on
28303
+ # massive amounts of additional arguments before passing them to the
28304
+ # linker. It appears as though 1/2 is a usable value.
28305
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
28310
+if test -n $lt_cv_sys_max_cmd_len ; then
28311
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
28313
+ AC_MSG_RESULT(none)
28315
+max_cmd_len=$lt_cv_sys_max_cmd_len
28316
+_LT_DECL([], [max_cmd_len], [0],
28317
+ [What is the maximum length of a command?])
28318
+])# LT_CMD_MAX_LEN
28321
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
28322
+dnl aclocal-1.4 backwards compatibility:
28323
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
28326
+# _LT_HEADER_DLFCN
28327
+# ----------------
28328
+m4_defun([_LT_HEADER_DLFCN],
28329
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
28330
+])# _LT_HEADER_DLFCN
28333
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
28334
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
28335
+# ----------------------------------------------------------------
28336
+m4_defun([_LT_TRY_DLOPEN_SELF],
28337
+[m4_require([_LT_HEADER_DLFCN])dnl
28338
+if test "$cross_compiling" = yes; then :
28341
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
28342
+ lt_status=$lt_dlunknown
28343
+ cat > conftest.$ac_ext <<_LT_EOF
28344
+[#line __oline__ "configure"
28345
+#include "confdefs.h"
28348
+#include <dlfcn.h>
28351
+#include <stdio.h>
28353
+#ifdef RTLD_GLOBAL
28354
+# define LT_DLGLOBAL RTLD_GLOBAL
28357
+# define LT_DLGLOBAL DL_GLOBAL
28359
+# define LT_DLGLOBAL 0
28363
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
28364
+ find out it does not work in some platform. */
28365
+#ifndef LT_DLLAZY_OR_NOW
28367
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
28370
+# define LT_DLLAZY_OR_NOW DL_LAZY
28373
+# define LT_DLLAZY_OR_NOW RTLD_NOW
28376
+# define LT_DLLAZY_OR_NOW DL_NOW
28378
+# define LT_DLLAZY_OR_NOW 0
28385
+void fnord() { int i=42;}
28388
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28389
+ int status = $lt_dlunknown;
28393
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
28394
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28395
+ /* dlclose (self); */
28398
+ puts (dlerror ());
28403
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
28404
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
28406
+ case x$lt_status in
28407
+ x$lt_dlno_uscore) $1 ;;
28408
+ x$lt_dlneed_uscore) $2 ;;
28409
+ x$lt_dlunknown|x*) $3 ;;
28412
+ # compilation failed
28417
+])# _LT_TRY_DLOPEN_SELF
28420
+# LT_SYS_DLOPEN_SELF
28421
+# ------------------
28422
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
28423
+[m4_require([_LT_HEADER_DLFCN])dnl
28424
+if test "x$enable_dlopen" != xyes; then
28425
+ enable_dlopen=unknown
28426
+ enable_dlopen_self=unknown
28427
+ enable_dlopen_self_static=unknown
28430
+ lt_cv_dlopen_libs=
28434
+ lt_cv_dlopen="load_add_on"
28435
+ lt_cv_dlopen_libs=
28436
+ lt_cv_dlopen_self=yes
28439
+ mingw* | pw32* | cegcc*)
28440
+ lt_cv_dlopen="LoadLibrary"
28441
+ lt_cv_dlopen_libs=
28445
+ lt_cv_dlopen="dlopen"
28446
+ lt_cv_dlopen_libs=
28450
+ # if libdl is installed we need to link against it
28451
+ AC_CHECK_LIB([dl], [dlopen],
28452
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
28453
+ lt_cv_dlopen="dyld"
28454
+ lt_cv_dlopen_libs=
28455
+ lt_cv_dlopen_self=yes
28460
+ AC_CHECK_FUNC([shl_load],
28461
+ [lt_cv_dlopen="shl_load"],
28462
+ [AC_CHECK_LIB([dld], [shl_load],
28463
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
28464
+ [AC_CHECK_FUNC([dlopen],
28465
+ [lt_cv_dlopen="dlopen"],
28466
+ [AC_CHECK_LIB([dl], [dlopen],
28467
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
28468
+ [AC_CHECK_LIB([svld], [dlopen],
28469
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
28470
+ [AC_CHECK_LIB([dld], [dld_link],
28471
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
28480
+ if test "x$lt_cv_dlopen" != xno; then
28481
+ enable_dlopen=yes
28486
+ case $lt_cv_dlopen in
28488
+ save_CPPFLAGS="$CPPFLAGS"
28489
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
28491
+ save_LDFLAGS="$LDFLAGS"
28492
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
28494
+ save_LIBS="$LIBS"
28495
+ LIBS="$lt_cv_dlopen_libs $LIBS"
28497
+ AC_CACHE_CHECK([whether a program can dlopen itself],
28498
+ lt_cv_dlopen_self, [dnl
28499
+ _LT_TRY_DLOPEN_SELF(
28500
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
28501
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
28504
+ if test "x$lt_cv_dlopen_self" = xyes; then
28505
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
28506
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
28507
+ lt_cv_dlopen_self_static, [dnl
28508
+ _LT_TRY_DLOPEN_SELF(
28509
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
28510
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
28514
+ CPPFLAGS="$save_CPPFLAGS"
28515
+ LDFLAGS="$save_LDFLAGS"
28516
+ LIBS="$save_LIBS"
28520
+ case $lt_cv_dlopen_self in
28521
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
28522
+ *) enable_dlopen_self=unknown ;;
28525
+ case $lt_cv_dlopen_self_static in
28526
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
28527
+ *) enable_dlopen_self_static=unknown ;;
28530
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
28531
+ [Whether dlopen is supported])
28532
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
28533
+ [Whether dlopen of programs is supported])
28534
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
28535
+ [Whether dlopen of statically linked programs is supported])
28536
+])# LT_SYS_DLOPEN_SELF
28539
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
28540
+dnl aclocal-1.4 backwards compatibility:
28541
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
28544
+# _LT_COMPILER_C_O([TAGNAME])
28545
+# ---------------------------
28546
+# Check to see if options -c and -o are simultaneously supported by compiler.
28547
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
28548
+m4_defun([_LT_COMPILER_C_O],
28549
+[m4_require([_LT_DECL_SED])dnl
28550
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
28551
+m4_require([_LT_TAG_COMPILER])dnl
28552
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
28553
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
28554
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
28555
+ $RM -r conftest 2>/dev/null
28559
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
28561
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
28562
+ # Insert the option either (1) after the last *FLAGS variable, or
28563
+ # (2) before a word containing "conftest.", or (3) at the end.
28564
+ # Note that $ac_compile itself does not contain backslashes and begins
28565
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
28566
+ lt_compile=`echo "$ac_compile" | $SED \
28567
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28568
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
28569
+ -e 's:$: $lt_compiler_flag:'`
28570
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
28571
+ (eval "$lt_compile" 2>out/conftest.err)
28573
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
28574
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
28575
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
28577
+ # The compiler can only warn and ignore the option if not recognized
28578
+ # So say no if there are warnings
28579
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
28580
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
28581
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
28582
+ _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
28585
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
28587
+ # SGI C++ compiler will create directory out/ii_files/ for
28588
+ # template instantiation
28589
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
28590
+ $RM out/* && rmdir out
28595
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
28596
+ [Does compiler simultaneously support -c and -o options?])
28597
+])# _LT_COMPILER_C_O
28600
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
28601
+# ----------------------------------
28602
+# Check to see if we can do hard links to lock some files if needed
28603
+m4_defun([_LT_COMPILER_FILE_LOCKS],
28604
+[m4_require([_LT_ENABLE_LOCK])dnl
28605
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
28606
+_LT_COMPILER_C_O([$1])
28608
+hard_links="nottested"
28609
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
28610
+ # do not overwrite the value of need_locks provided by the user
28611
+ AC_MSG_CHECKING([if we can lock with hard links])
28614
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
28616
+ ln conftest.a conftest.b 2>&5 || hard_links=no
28617
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
28618
+ AC_MSG_RESULT([$hard_links])
28619
+ if test "$hard_links" = no; then
28620
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
28626
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
28627
+])# _LT_COMPILER_FILE_LOCKS
28630
+# _LT_CHECK_OBJDIR
28631
+# ----------------
28632
+m4_defun([_LT_CHECK_OBJDIR],
28633
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
28634
+[rm -f .libs 2>/dev/null
28635
+mkdir .libs 2>/dev/null
28636
+if test -d .libs; then
28637
+ lt_cv_objdir=.libs
28639
+ # MS-DOS does not allow filenames that begin with a dot.
28640
+ lt_cv_objdir=_libs
28642
+rmdir .libs 2>/dev/null])
28643
+objdir=$lt_cv_objdir
28644
+_LT_DECL([], [objdir], [0],
28645
+ [The name of the directory that contains temporary libtool files])dnl
28646
+m4_pattern_allow([LT_OBJDIR])dnl
28647
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
28648
+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
28649
+])# _LT_CHECK_OBJDIR
28652
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
28653
+# --------------------------------------
28654
+# Check hardcoding attributes.
28655
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
28656
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
28657
+_LT_TAGVAR(hardcode_action, $1)=
28658
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
28659
+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
28660
+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
28662
+ # We can hardcode non-existent directories.
28663
+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
28664
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
28665
+ # have to relink, otherwise we might link with an installed library
28666
+ # when we should be linking with a yet-to-be-installed one
28667
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
28668
+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
28669
+ # Linking always hardcodes the temporary library directory.
28670
+ _LT_TAGVAR(hardcode_action, $1)=relink
28672
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
28673
+ _LT_TAGVAR(hardcode_action, $1)=immediate
28676
+ # We cannot hardcode anything, or else we can only hardcode existing
28678
+ _LT_TAGVAR(hardcode_action, $1)=unsupported
28680
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
28682
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
28683
+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
28684
+ # Fast installation is not supported
28685
+ enable_fast_install=no
28686
+elif test "$shlibpath_overrides_runpath" = yes ||
28687
+ test "$enable_shared" = no; then
28688
+ # Fast installation is not necessary
28689
+ enable_fast_install=needless
28691
+_LT_TAGDECL([], [hardcode_action], [0],
28692
+ [How to hardcode a shared library path into an executable])
28693
+])# _LT_LINKER_HARDCODE_LIBPATH
28696
+# _LT_CMD_STRIPLIB
28697
+# ----------------
28698
+m4_defun([_LT_CMD_STRIPLIB],
28699
+[m4_require([_LT_DECL_EGREP])
28702
+AC_MSG_CHECKING([whether stripping libraries is possible])
28703
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
28704
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28705
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28706
+ AC_MSG_RESULT([yes])
28708
+# FIXME - insert some real tests, host_os isn't really good enough
28711
+ if test -n "$STRIP" ; then
28712
+ striplib="$STRIP -x"
28713
+ old_striplib="$STRIP -S"
28714
+ AC_MSG_RESULT([yes])
28716
+ AC_MSG_RESULT([no])
28720
+ AC_MSG_RESULT([no])
28724
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
28725
+_LT_DECL([], [striplib], [1])
28726
+])# _LT_CMD_STRIPLIB
28729
+# _LT_SYS_DYNAMIC_LINKER([TAG])
28730
+# -----------------------------
28731
+# PORTME Fill in your ld.so characteristics
28732
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
28733
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
28734
+m4_require([_LT_DECL_EGREP])dnl
28735
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
28736
+m4_require([_LT_DECL_OBJDUMP])dnl
28737
+m4_require([_LT_DECL_SED])dnl
28738
+AC_MSG_CHECKING([dynamic linker characteristics])
28741
+if test "$GCC" = yes; then
28743
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
28744
+ *) lt_awk_arg="/^libraries:/" ;;
28746
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28747
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
28748
+ # if the path contains ";" then we assume it to be the separator
28749
+ # otherwise default to the standard path separator (i.e. ":") - it is
28750
+ # assumed that no part of a normal pathname contains ";" but that should
28751
+ # okay in the real world where ";" in dirpaths is itself problematic.
28752
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
28754
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28756
+ # Ok, now we have the path, separated by spaces, we can step through it
28757
+ # and add multilib dir if necessary.
28758
+ lt_tmp_lt_search_path_spec=
28759
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
28760
+ for lt_sys_path in $lt_search_path_spec; do
28761
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
28762
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
28764
+ test -d "$lt_sys_path" && \
28765
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
28768
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
28769
+BEGIN {RS=" "; FS="/|\n";} {
28772
+ for (lt_i = NF; lt_i > 0; lt_i--) {
28773
+ if ($lt_i != "" && $lt_i != ".") {
28774
+ if ($lt_i == "..") {
28777
+ if (lt_count == 0) {
28778
+ lt_foo="/" $lt_i lt_foo;
28785
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
28786
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
28788
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
28790
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
28792
+library_names_spec=
28793
+libname_spec='lib$name'
28797
+postuninstall_cmds=
28801
+shlibpath_overrides_runpath=unknown
28803
+dynamic_linker="$host_os ld.so"
28804
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
28805
+need_lib_prefix=unknown
28806
+hardcode_into_libs=no
28808
+# when you set need_version to no, make sure it does not cause -set_version
28809
+# flags to be left without arguments
28810
+need_version=unknown
28814
+ version_type=linux
28815
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
28816
+ shlibpath_var=LIBPATH
28818
+ # AIX 3 has no versioning support, so we append a major version to the name.
28819
+ soname_spec='${libname}${release}${shared_ext}$major'
28823
+ version_type=linux
28824
+ need_lib_prefix=no
28826
+ hardcode_into_libs=yes
28827
+ if test "$host_cpu" = ia64; then
28828
+ # AIX 5 supports IA64
28829
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
28830
+ shlibpath_var=LD_LIBRARY_PATH
28832
+ # With GCC up to 2.95.x, collect2 would create an import file
28833
+ # for dependence libraries. The import file would start with
28834
+ # the line `#! .'. This would cause the generated library to
28835
+ # depend on `.', always an invalid library. This was fixed in
28836
+ # development snapshots of GCC prior to 3.0.
28838
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
28839
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
28841
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
28844
+ can_build_shared=no
28848
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
28849
+ # soname into executable. Probably we can add versioning support to
28850
+ # collect2, so additional links can be useful in future.
28851
+ if test "$aix_use_runtimelinking" = yes; then
28852
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
28853
+ # instead of lib<name>.a to let people know that these are not
28854
+ # typical AIX shared libraries.
28855
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28857
+ # We preserve .a as extension for shared libraries through AIX4.2
28858
+ # and later when we are not doing run time linking.
28859
+ library_names_spec='${libname}${release}.a $libname.a'
28860
+ soname_spec='${libname}${release}${shared_ext}$major'
28862
+ shlibpath_var=LIBPATH
28867
+ case $host_cpu in
28869
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
28870
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
28871
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28874
+ library_names_spec='$libname.ixlibrary $libname.a'
28875
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
28876
+ 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'
28882
+ library_names_spec='${libname}${shared_ext}'
28883
+ dynamic_linker="$host_os ld.so"
28884
+ shlibpath_var=LIBRARY_PATH
28888
+ version_type=linux
28890
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28891
+ soname_spec='${libname}${release}${shared_ext}$major'
28892
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
28893
+ shlibpath_var=LD_LIBRARY_PATH
28894
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
28895
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
28896
+ # the default ld.so.conf also contains /usr/contrib/lib and
28897
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
28898
+ # libtool to hard-code these into programs
28901
+cygwin* | mingw* | pw32* | cegcc*)
28902
+ version_type=windows
28903
+ shrext_cmds=".dll"
28905
+ need_lib_prefix=no
28907
+ case $GCC,$host_os in
28908
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
28909
+ library_names_spec='$libname.dll.a'
28910
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
28911
+ postinstall_cmds='base_file=`basename \${file}`~
28912
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
28913
+ dldir=$destdir/`dirname \$dlpath`~
28914
+ test -d \$dldir || mkdir -p \$dldir~
28915
+ $install_prog $dir/$dlname \$dldir/$dlname~
28916
+ chmod a+x \$dldir/$dlname~
28917
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
28918
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
28920
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28921
+ dlpath=$dir/\$dldll~
28923
+ shlibpath_overrides_runpath=yes
28927
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28928
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
28929
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
28932
+ # MinGW DLLs use traditional 'lib' prefix
28933
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
28934
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28935
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
28936
+ # It is most probably a Windows format PATH printed by
28937
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
28938
+ # path with ; separators, and with drive letters. We can handle the
28939
+ # drive letters (cygwin fileutils understands them), so leave them,
28940
+ # especially as we might pass files found there to a mingw objdump,
28941
+ # which wouldn't understand a cygwinified path. Ahh.
28942
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28944
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28948
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
28949
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
28955
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
28958
+ dynamic_linker='Win32 ld.exe'
28959
+ # FIXME: first we should search . and the directory the executable is in
28960
+ shlibpath_var=PATH
28963
+darwin* | rhapsody*)
28964
+ dynamic_linker="$host_os dyld"
28965
+ version_type=darwin
28966
+ need_lib_prefix=no
28968
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28969
+ soname_spec='${libname}${release}${major}$shared_ext'
28970
+ shlibpath_overrides_runpath=yes
28971
+ shlibpath_var=DYLD_LIBRARY_PATH
28972
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28974
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
28975
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28979
+ version_type=linux
28980
+ need_lib_prefix=no
28982
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28983
+ soname_spec='${libname}${release}${shared_ext}$major'
28984
+ shlibpath_var=LD_LIBRARY_PATH
28988
+ dynamic_linker=no
28991
+freebsd* | dragonfly*)
28992
+ # DragonFly does not have aout. When/if they implement a new
28993
+ # versioning mechanism, adjust this.
28994
+ if test -x /usr/bin/objformat; then
28995
+ objformat=`/usr/bin/objformat`
28998
+ freebsd[[123]]*) objformat=aout ;;
28999
+ *) objformat=elf ;;
29002
+ version_type=freebsd-$objformat
29003
+ case $version_type in
29005
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29007
+ need_lib_prefix=no
29010
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29014
+ shlibpath_var=LD_LIBRARY_PATH
29017
+ shlibpath_overrides_runpath=yes
29019
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
29020
+ shlibpath_overrides_runpath=yes
29021
+ hardcode_into_libs=yes
29023
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
29024
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
29025
+ shlibpath_overrides_runpath=no
29026
+ hardcode_into_libs=yes
29028
+ *) # from 4.6 on, and DragonFly
29029
+ shlibpath_overrides_runpath=yes
29030
+ hardcode_into_libs=yes
29036
+ version_type=linux
29037
+ need_lib_prefix=no
29039
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29040
+ soname_spec='${libname}${release}${shared_ext}$major'
29041
+ shlibpath_var=LD_LIBRARY_PATH
29042
+ hardcode_into_libs=yes
29045
+hpux9* | hpux10* | hpux11*)
29046
+ # Give a soname corresponding to the major version so that dld.sl refuses to
29047
+ # link against other versions.
29048
+ version_type=sunos
29049
+ need_lib_prefix=no
29051
+ case $host_cpu in
29053
+ shrext_cmds='.so'
29054
+ hardcode_into_libs=yes
29055
+ dynamic_linker="$host_os dld.so"
29056
+ shlibpath_var=LD_LIBRARY_PATH
29057
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29058
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29059
+ soname_spec='${libname}${release}${shared_ext}$major'
29060
+ if test "X$HPUX_IA64_MODE" = X32; then
29061
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29063
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29065
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29068
+ shrext_cmds='.sl'
29069
+ hardcode_into_libs=yes
29070
+ dynamic_linker="$host_os dld.sl"
29071
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29072
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29073
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29074
+ soname_spec='${libname}${release}${shared_ext}$major'
29075
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29076
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29079
+ shrext_cmds='.sl'
29080
+ dynamic_linker="$host_os dld.sl"
29081
+ shlibpath_var=SHLIB_PATH
29082
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29083
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29084
+ soname_spec='${libname}${release}${shared_ext}$major'
29087
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
29088
+ postinstall_cmds='chmod 555 $lib'
29092
+ version_type=linux
29093
+ need_lib_prefix=no
29095
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29096
+ soname_spec='${libname}${release}${shared_ext}$major'
29097
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29098
+ shlibpath_var=LD_LIBRARY_PATH
29099
+ shlibpath_overrides_runpath=no
29100
+ hardcode_into_libs=yes
29103
+irix5* | irix6* | nonstopux*)
29105
+ nonstopux*) version_type=nonstopux ;;
29107
+ if test "$lt_cv_prog_gnu_ld" = yes; then
29108
+ version_type=linux
29110
+ version_type=irix
29113
+ need_lib_prefix=no
29115
+ soname_spec='${libname}${release}${shared_ext}$major'
29116
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
29118
+ irix5* | nonstopux*)
29119
+ libsuff= shlibsuff=
29122
+ case $LD in # libtool.m4 will add one of these switches to LD
29123
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
29124
+ libsuff= shlibsuff= libmagic=32-bit;;
29125
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
29126
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
29127
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
29128
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
29129
+ *) libsuff= shlibsuff= libmagic=never-match;;
29133
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
29134
+ shlibpath_overrides_runpath=no
29135
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
29136
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
29137
+ hardcode_into_libs=yes
29140
+# No shared lib support for Linux oldld, aout, or coff.
29141
+linux*oldld* | linux*aout* | linux*coff*)
29142
+ dynamic_linker=no
29145
+# This must be Linux ELF.
29146
+linux* | k*bsd*-gnu)
29147
+ version_type=linux
29148
+ need_lib_prefix=no
29150
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29151
+ soname_spec='${libname}${release}${shared_ext}$major'
29152
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
29153
+ shlibpath_var=LD_LIBRARY_PATH
29154
+ shlibpath_overrides_runpath=no
29155
+ # Some binutils ld are patched to set DT_RUNPATH
29156
+ save_LDFLAGS=$LDFLAGS
29157
+ save_libdir=$libdir
29158
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
29159
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
29160
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
29161
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
29162
+ [shlibpath_overrides_runpath=yes])])
29163
+ LDFLAGS=$save_LDFLAGS
29164
+ libdir=$save_libdir
29166
+ # This implies no fast_install, which is unacceptable.
29167
+ # Some rework will be needed to allow for fast_install
29168
+ # before this can be enabled.
29169
+ hardcode_into_libs=yes
29171
+ # Append ld.so.conf contents to the search path
29172
+ if test -f /etc/ld.so.conf; then
29173
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
29174
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
29177
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
29178
+ # powerpc, because MkLinux only supported shared libraries with the
29179
+ # GNU dynamic linker. Since this was broken with cross compilers,
29180
+ # most powerpc-linux boxes support dynamic linking these days and
29181
+ # people can always --disable-shared, the test was removed, and we
29182
+ # assume the GNU/Linux dynamic linker is in use.
29183
+ dynamic_linker='GNU/Linux ld.so'
29187
+ version_type=linux
29188
+ need_lib_prefix=no
29190
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29191
+ soname_spec='${libname}${release}${shared_ext}$major'
29192
+ shlibpath_var=LD_LIBRARY_PATH
29193
+ shlibpath_overrides_runpath=no
29194
+ hardcode_into_libs=yes
29195
+ dynamic_linker='NetBSD ld.elf_so'
29199
+ version_type=sunos
29200
+ need_lib_prefix=no
29202
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
29203
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29204
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29205
+ dynamic_linker='NetBSD (a.out) ld.so'
29207
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29208
+ soname_spec='${libname}${release}${shared_ext}$major'
29209
+ dynamic_linker='NetBSD ld.elf_so'
29211
+ shlibpath_var=LD_LIBRARY_PATH
29212
+ shlibpath_overrides_runpath=yes
29213
+ hardcode_into_libs=yes
29217
+ version_type=linux
29218
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29219
+ shlibpath_var=LD_LIBRARY_PATH
29220
+ shlibpath_overrides_runpath=yes
29225
+ need_lib_prefix=no
29227
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29228
+ soname_spec='${libname}${release}${shared_ext}$major'
29229
+ shlibpath_var=LD_LIBRARY_PATH
29230
+ shlibpath_overrides_runpath=no
29231
+ hardcode_into_libs=yes
29232
+ dynamic_linker='ldqnx.so'
29236
+ version_type=sunos
29237
+ sys_lib_dlsearch_path_spec="/usr/lib"
29238
+ need_lib_prefix=no
29239
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
29241
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
29242
+ *) need_version=no ;;
29244
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29245
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29246
+ shlibpath_var=LD_LIBRARY_PATH
29247
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29249
+ openbsd2.[[89]] | openbsd2.[[89]].*)
29250
+ shlibpath_overrides_runpath=no
29253
+ shlibpath_overrides_runpath=yes
29257
+ shlibpath_overrides_runpath=yes
29262
+ libname_spec='$name'
29263
+ shrext_cmds=".dll"
29264
+ need_lib_prefix=no
29265
+ library_names_spec='$libname${shared_ext} $libname.a'
29266
+ dynamic_linker='OS/2 ld.exe'
29267
+ shlibpath_var=LIBPATH
29270
+osf3* | osf4* | osf5*)
29272
+ need_lib_prefix=no
29274
+ soname_spec='${libname}${release}${shared_ext}$major'
29275
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29276
+ shlibpath_var=LD_LIBRARY_PATH
29277
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
29278
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
29282
+ dynamic_linker=no
29286
+ version_type=linux
29287
+ need_lib_prefix=no
29289
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29290
+ soname_spec='${libname}${release}${shared_ext}$major'
29291
+ shlibpath_var=LD_LIBRARY_PATH
29292
+ shlibpath_overrides_runpath=yes
29293
+ hardcode_into_libs=yes
29294
+ # ldd complains unless libraries are executable
29295
+ postinstall_cmds='chmod +x $lib'
29299
+ version_type=sunos
29300
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29301
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
29302
+ shlibpath_var=LD_LIBRARY_PATH
29303
+ shlibpath_overrides_runpath=yes
29304
+ if test "$with_gnu_ld" = yes; then
29305
+ need_lib_prefix=no
29311
+ version_type=linux
29312
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29313
+ soname_spec='${libname}${release}${shared_ext}$major'
29314
+ shlibpath_var=LD_LIBRARY_PATH
29315
+ case $host_vendor in
29317
+ shlibpath_overrides_runpath=no
29318
+ need_lib_prefix=no
29319
+ runpath_var=LD_RUN_PATH
29322
+ need_lib_prefix=no
29325
+ need_lib_prefix=no
29327
+ shlibpath_overrides_runpath=no
29328
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
29334
+ if test -d /usr/nec ;then
29335
+ version_type=linux
29336
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
29337
+ soname_spec='$libname${shared_ext}.$major'
29338
+ shlibpath_var=LD_LIBRARY_PATH
29342
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
29343
+ version_type=freebsd-elf
29344
+ need_lib_prefix=no
29346
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29347
+ soname_spec='${libname}${release}${shared_ext}$major'
29348
+ shlibpath_var=LD_LIBRARY_PATH
29349
+ shlibpath_overrides_runpath=yes
29350
+ hardcode_into_libs=yes
29351
+ if test "$with_gnu_ld" = yes; then
29352
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
29354
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
29357
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
29361
+ sys_lib_dlsearch_path_spec='/usr/lib'
29365
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
29366
+ version_type=linux
29367
+ need_lib_prefix=no
29369
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29370
+ shlibpath_var=LD_LIBRARY_PATH
29371
+ shlibpath_overrides_runpath=no
29372
+ hardcode_into_libs=yes
29376
+ version_type=linux
29377
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29378
+ soname_spec='${libname}${release}${shared_ext}$major'
29379
+ shlibpath_var=LD_LIBRARY_PATH
29383
+ dynamic_linker=no
29386
+AC_MSG_RESULT([$dynamic_linker])
29387
+test "$dynamic_linker" = no && can_build_shared=no
29389
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
29390
+if test "$GCC" = yes; then
29391
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29394
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
29395
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
29397
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
29398
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
29401
+_LT_DECL([], [variables_saved_for_relink], [1],
29402
+ [Variables whose values should be saved in libtool wrapper scripts and
29403
+ restored at link time])
29404
+_LT_DECL([], [need_lib_prefix], [0],
29405
+ [Do we need the "lib" prefix for modules?])
29406
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
29407
+_LT_DECL([], [version_type], [0], [Library versioning type])
29408
+_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
29409
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
29410
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
29411
+ [Is shlibpath searched before the hard-coded library search path?])
29412
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
29413
+_LT_DECL([], [library_names_spec], [1],
29414
+ [[List of archive names. First name is the real one, the rest are links.
29415
+ The last name is the one that the linker finds with -lNAME]])
29416
+_LT_DECL([], [soname_spec], [1],
29417
+ [[The coded name of the library, if different from the real name]])
29418
+_LT_DECL([], [postinstall_cmds], [2],
29419
+ [Command to use after installation of a shared archive])
29420
+_LT_DECL([], [postuninstall_cmds], [2],
29421
+ [Command to use after uninstallation of a shared archive])
29422
+_LT_DECL([], [finish_cmds], [2],
29423
+ [Commands used to finish a libtool library installation in a directory])
29424
+_LT_DECL([], [finish_eval], [1],
29425
+ [[As "finish_cmds", except a single script fragment to be evaled but
29427
+_LT_DECL([], [hardcode_into_libs], [0],
29428
+ [Whether we should hardcode library paths into libraries])
29429
+_LT_DECL([], [sys_lib_search_path_spec], [2],
29430
+ [Compile-time system search path for libraries])
29431
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
29432
+ [Run-time system search path for libraries])
29433
+])# _LT_SYS_DYNAMIC_LINKER
29436
+# _LT_PATH_TOOL_PREFIX(TOOL)
29437
+# --------------------------
29438
+# find a file program which can recognize shared library
29439
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29440
+[m4_require([_LT_DECL_EGREP])dnl
29441
+AC_MSG_CHECKING([for $1])
29442
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29443
+[case $MAGIC_CMD in
29444
+[[\\/*] | ?:[\\/]*])
29445
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
29448
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
29449
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29450
+dnl $ac_dummy forces splitting on constant user-supplied paths.
29451
+dnl POSIX.2 word splitting is done only on the output of word expansions,
29452
+dnl not every word. This closes a longstanding sh security hole.
29453
+ ac_dummy="m4_if([$2], , $PATH, [$2])"
29454
+ for ac_dir in $ac_dummy; do
29455
+ IFS="$lt_save_ifs"
29456
+ test -z "$ac_dir" && ac_dir=.
29457
+ if test -f $ac_dir/$1; then
29458
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
29459
+ if test -n "$file_magic_test_file"; then
29460
+ case $deplibs_check_method in
29462
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
29463
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29464
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29465
+ $EGREP "$file_magic_regex" > /dev/null; then
29468
+ cat <<_LT_EOF 1>&2
29470
+*** Warning: the command libtool uses to detect shared libraries,
29471
+*** $file_magic_cmd, produces output that libtool cannot recognize.
29472
+*** The result is that libtool may fail to recognize shared libraries
29473
+*** as such. This will affect the creation of libtool libraries that
29474
+*** depend on shared libraries, but programs linked with such libtool
29475
+*** libraries will work regardless of this problem. Nevertheless, you
29476
+*** may want to report the problem to your system manager and/or to
29477
+*** bug-libtool@gnu.org
29486
+ IFS="$lt_save_ifs"
29487
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
29490
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29491
+if test -n "$MAGIC_CMD"; then
29492
+ AC_MSG_RESULT($MAGIC_CMD)
29494
+ AC_MSG_RESULT(no)
29496
+_LT_DECL([], [MAGIC_CMD], [0],
29497
+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
29498
+])# _LT_PATH_TOOL_PREFIX
29501
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
29502
+dnl aclocal-1.4 backwards compatibility:
29503
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
29508
+# find a file program which can recognize a shared library
29509
+m4_defun([_LT_PATH_MAGIC],
29510
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
29511
+if test -z "$lt_cv_path_MAGIC_CMD"; then
29512
+ if test -n "$ac_tool_prefix"; then
29513
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
29518
+])# _LT_PATH_MAGIC
29523
+# find the pathname to the GNU or non-GNU linker
29524
+AC_DEFUN([LT_PATH_LD],
29525
+[AC_REQUIRE([AC_PROG_CC])dnl
29526
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
29527
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
29528
+m4_require([_LT_DECL_SED])dnl
29529
+m4_require([_LT_DECL_EGREP])dnl
29531
+AC_ARG_WITH([gnu-ld],
29532
+ [AS_HELP_STRING([--with-gnu-ld],
29533
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
29534
+ [test "$withval" = no || with_gnu_ld=yes],
29535
+ [with_gnu_ld=no])dnl
29538
+if test "$GCC" = yes; then
29539
+ # Check if gcc -print-prog-name=ld gives a path.
29540
+ AC_MSG_CHECKING([for ld used by $CC])
29543
+ # gcc leaves a trailing carriage return which upsets mingw
29544
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29546
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29549
+ # Accept absolute paths.
29550
+ [[\\/]]* | ?:[[\\/]]*)
29551
+ re_direlt='/[[^/]][[^/]]*/\.\./'
29552
+ # Canonicalize the pathname of ld
29553
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29554
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29555
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29557
+ test -z "$LD" && LD="$ac_prog"
29560
+ # If it fails, then pretend we aren't using GCC.
29564
+ # If it is relative, then search for the first ld in PATH.
29565
+ with_gnu_ld=unknown
29568
+elif test "$with_gnu_ld" = yes; then
29569
+ AC_MSG_CHECKING([for GNU ld])
29571
+ AC_MSG_CHECKING([for non-GNU ld])
29573
+AC_CACHE_VAL(lt_cv_path_LD,
29574
+[if test -z "$LD"; then
29575
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29576
+ for ac_dir in $PATH; do
29577
+ IFS="$lt_save_ifs"
29578
+ test -z "$ac_dir" && ac_dir=.
29579
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29580
+ lt_cv_path_LD="$ac_dir/$ac_prog"
29581
+ # Check to see if the program is GNU ld. I'd rather use --version,
29582
+ # but apparently some variants of GNU ld only accept -v.
29583
+ # Break only if it was the GNU/non-GNU ld that we prefer.
29584
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29585
+ *GNU* | *'with BFD'*)
29586
+ test "$with_gnu_ld" != no && break
29589
+ test "$with_gnu_ld" != yes && break
29594
+ IFS="$lt_save_ifs"
29596
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
29598
+LD="$lt_cv_path_LD"
29599
+if test -n "$LD"; then
29600
+ AC_MSG_RESULT($LD)
29602
+ AC_MSG_RESULT(no)
29604
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
29608
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
29612
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
29613
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
29614
+dnl aclocal-1.4 backwards compatibility:
29615
+dnl AC_DEFUN([AM_PROG_LD], [])
29616
+dnl AC_DEFUN([AC_PROG_LD], [])
29621
+m4_defun([_LT_PATH_LD_GNU],
29622
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
29623
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
29624
+case `$LD -v 2>&1 </dev/null` in
29625
+*GNU* | *'with BFD'*)
29626
+ lt_cv_prog_gnu_ld=yes
29629
+ lt_cv_prog_gnu_ld=no
29632
+with_gnu_ld=$lt_cv_prog_gnu_ld
29633
+])# _LT_PATH_LD_GNU
29638
+# find reload flag for linker
29639
+# -- PORTME Some linkers may need a different reload flag.
29640
+m4_defun([_LT_CMD_RELOAD],
29641
+[AC_CACHE_CHECK([for $LD option to reload object files],
29642
+ lt_cv_ld_reload_flag,
29643
+ [lt_cv_ld_reload_flag='-r'])
29644
+reload_flag=$lt_cv_ld_reload_flag
29645
+case $reload_flag in
29647
+*) reload_flag=" $reload_flag" ;;
29649
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
29652
+ if test "$GCC" = yes; then
29653
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29655
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
29659
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
29660
+_LT_DECL([], [reload_cmds], [2])dnl
29661
+])# _LT_CMD_RELOAD
29664
+# _LT_CHECK_MAGIC_METHOD
29665
+# ----------------------
29666
+# how to check for library dependencies
29667
+# -- PORTME fill in with the dynamic library characteristics
29668
+m4_defun([_LT_CHECK_MAGIC_METHOD],
29669
+[m4_require([_LT_DECL_EGREP])
29670
+m4_require([_LT_DECL_OBJDUMP])
29671
+AC_CACHE_CHECK([how to recognize dependent libraries],
29672
+lt_cv_deplibs_check_method,
29673
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
29674
+lt_cv_file_magic_test_file=
29675
+lt_cv_deplibs_check_method='unknown'
29676
+# Need to set the preceding variable on all platforms that support
29677
+# interlibrary dependencies.
29678
+# 'none' -- dependencies not supported.
29679
+# `unknown' -- same as none, but documents that we really don't know.
29680
+# 'pass_all' -- all dependencies passed with no checks.
29681
+# 'test_compile' -- check by making test program.
29682
+# 'file_magic [[regex]]' -- check by looking for files in library path
29683
+# which responds to the $file_magic_cmd with a given extended regex.
29684
+# If you have `file' or equivalent on your system and you're not sure
29685
+# whether `pass_all' will *always* work, you probably want this one.
29689
+ lt_cv_deplibs_check_method=pass_all
29693
+ lt_cv_deplibs_check_method=pass_all
29697
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
29698
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
29699
+ lt_cv_file_magic_test_file=/shlib/libc.so
29703
+ # func_win32_libid is a shell function defined in ltmain.sh
29704
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
29705
+ lt_cv_file_magic_cmd='func_win32_libid'
29709
+ # Base MSYS/MinGW do not provide the 'file' command needed by
29710
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
29711
+ # unless we find 'file', for example because we are cross-compiling.
29712
+ if ( file / ) >/dev/null 2>&1; then
29713
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
29714
+ lt_cv_file_magic_cmd='func_win32_libid'
29716
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
29717
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
29722
+ # use the weaker test based on 'objdump'. See mingw*.
29723
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
29724
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
29727
+darwin* | rhapsody*)
29728
+ lt_cv_deplibs_check_method=pass_all
29731
+freebsd* | dragonfly*)
29732
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
29733
+ case $host_cpu in
29735
+ # Not sure whether the presence of OpenBSD here was a mistake.
29736
+ # Let's accept both of them until this is cleared up.
29737
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
29738
+ lt_cv_file_magic_cmd=/usr/bin/file
29739
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
29743
+ lt_cv_deplibs_check_method=pass_all
29748
+ lt_cv_deplibs_check_method=pass_all
29751
+hpux10.20* | hpux11*)
29752
+ lt_cv_file_magic_cmd=/usr/bin/file
29753
+ case $host_cpu in
29755
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
29756
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
29759
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
29760
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
29763
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
29764
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
29770
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
29771
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
29774
+irix5* | irix6* | nonstopux*)
29776
+ *-32|*"-32 ") libmagic=32-bit;;
29777
+ *-n32|*"-n32 ") libmagic=N32;;
29778
+ *-64|*"-64 ") libmagic=64-bit;;
29779
+ *) libmagic=never-match;;
29781
+ lt_cv_deplibs_check_method=pass_all
29784
+# This must be Linux ELF.
29785
+linux* | k*bsd*-gnu)
29786
+ lt_cv_deplibs_check_method=pass_all
29789
+netbsd* | netbsdelf*-gnu)
29790
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
29791
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
29793
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
29798
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
29799
+ lt_cv_file_magic_cmd=/usr/bin/file
29800
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
29804
+ lt_cv_deplibs_check_method=pass_all
29808
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29809
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
29811
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
29815
+osf3* | osf4* | osf5*)
29816
+ lt_cv_deplibs_check_method=pass_all
29820
+ lt_cv_deplibs_check_method=pass_all
29824
+ lt_cv_deplibs_check_method=pass_all
29827
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
29828
+ lt_cv_deplibs_check_method=pass_all
29832
+ case $host_vendor in
29834
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
29835
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
29838
+ lt_cv_deplibs_check_method=pass_all
29841
+ lt_cv_file_magic_cmd='/bin/file'
29842
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
29845
+ lt_cv_file_magic_cmd='/bin/file'
29846
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
29847
+ lt_cv_file_magic_test_file=/lib/libc.so
29850
+ lt_cv_deplibs_check_method=pass_all
29853
+ lt_cv_deplibs_check_method=pass_all
29859
+ lt_cv_deplibs_check_method=pass_all
29863
+file_magic_cmd=$lt_cv_file_magic_cmd
29864
+deplibs_check_method=$lt_cv_deplibs_check_method
29865
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
29867
+_LT_DECL([], [deplibs_check_method], [1],
29868
+ [Method to check whether dependent libraries are shared objects])
29869
+_LT_DECL([], [file_magic_cmd], [1],
29870
+ [Command to use when deplibs_check_method == "file_magic"])
29871
+])# _LT_CHECK_MAGIC_METHOD
29876
+# find the pathname to a BSD- or MS-compatible name lister
29877
+AC_DEFUN([LT_PATH_NM],
29878
+[AC_REQUIRE([AC_PROG_CC])dnl
29879
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
29880
+[if test -n "$NM"; then
29881
+ # Let the user override the test.
29882
+ lt_cv_path_NM="$NM"
29884
+ lt_nm_to_check="${ac_tool_prefix}nm"
29885
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29886
+ lt_nm_to_check="$lt_nm_to_check nm"
29888
+ for lt_tmp_nm in $lt_nm_to_check; do
29889
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29890
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29891
+ IFS="$lt_save_ifs"
29892
+ test -z "$ac_dir" && ac_dir=.
29893
+ tmp_nm="$ac_dir/$lt_tmp_nm"
29894
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29895
+ # Check to see if the nm accepts a BSD-compat flag.
29896
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29897
+ # nm: unknown option "B" ignored
29898
+ # Tru64's nm complains that /dev/null is an invalid object file
29899
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29900
+ */dev/null* | *'Invalid file or object type'*)
29901
+ lt_cv_path_NM="$tmp_nm -B"
29905
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29907
+ lt_cv_path_NM="$tmp_nm -p"
29911
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29912
+ continue # so that we can try to find one that supports BSD flags
29919
+ IFS="$lt_save_ifs"
29921
+ : ${lt_cv_path_NM=no}
29923
+if test "$lt_cv_path_NM" != "no"; then
29924
+ NM="$lt_cv_path_NM"
29926
+ # Didn't find any BSD compatible name lister, look for dumpbin.
29927
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
29928
+ AC_SUBST([DUMPBIN])
29929
+ if test "$DUMPBIN" != ":"; then
29933
+test -z "$NM" && NM=nm
29935
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
29937
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
29938
+ [lt_cv_nm_interface="BSD nm"
29939
+ echo "int some_variable = 0;" > conftest.$ac_ext
29940
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
29941
+ (eval "$ac_compile" 2>conftest.err)
29942
+ cat conftest.err >&AS_MESSAGE_LOG_FD
29943
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
29944
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
29945
+ cat conftest.err >&AS_MESSAGE_LOG_FD
29946
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
29947
+ cat conftest.out >&AS_MESSAGE_LOG_FD
29948
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
29949
+ lt_cv_nm_interface="MS dumpbin"
29951
+ rm -f conftest*])
29955
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
29956
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
29957
+dnl aclocal-1.4 backwards compatibility:
29958
+dnl AC_DEFUN([AM_PROG_NM], [])
29959
+dnl AC_DEFUN([AC_PROG_NM], [])
29964
+# check for math library
29965
+AC_DEFUN([LT_LIB_M],
29966
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
29969
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
29970
+ # These system don't have libm, or don't need it
29973
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
29974
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
29977
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
29984
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
29985
+dnl aclocal-1.4 backwards compatibility:
29986
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
29989
+# _LT_COMPILER_NO_RTTI([TAGNAME])
29990
+# -------------------------------
29991
+m4_defun([_LT_COMPILER_NO_RTTI],
29992
+[m4_require([_LT_TAG_COMPILER])dnl
29994
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
29996
+if test "$GCC" = yes; then
29997
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
29999
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
30000
+ lt_cv_prog_compiler_rtti_exceptions,
30001
+ [-fno-rtti -fno-exceptions], [],
30002
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
30004
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
30005
+ [Compiler flag to turn off builtin functions])
30006
+])# _LT_COMPILER_NO_RTTI
30009
+# _LT_CMD_GLOBAL_SYMBOLS
30010
+# ----------------------
30011
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
30012
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
30013
+AC_REQUIRE([AC_PROG_CC])dnl
30014
+AC_REQUIRE([LT_PATH_NM])dnl
30015
+AC_REQUIRE([LT_PATH_LD])dnl
30016
+m4_require([_LT_DECL_SED])dnl
30017
+m4_require([_LT_DECL_EGREP])dnl
30018
+m4_require([_LT_TAG_COMPILER])dnl
30020
+# Check for command to grab the raw symbol name followed by C symbol from nm.
30021
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
30022
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
30024
+# These are sane defaults that work on at least a few old systems.
30025
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
30027
+# Character class describing NM global symbol codes.
30028
+symcode='[[BCDEGRST]]'
30030
+# Regexp to match symbols that can be accessed directly from C.
30031
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
30033
+# Define system-specific variables.
30036
+ symcode='[[BCDT]]'
30038
+cygwin* | mingw* | pw32* | cegcc*)
30039
+ symcode='[[ABCDGISTW]]'
30042
+ if test "$host_cpu" = ia64; then
30043
+ symcode='[[ABCDEGRST]]'
30046
+irix* | nonstopux*)
30047
+ symcode='[[BCDEGRST]]'
30050
+ symcode='[[BCDEGQRST]]'
30053
+ symcode='[[BDRT]]'
30061
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
30062
+ symcode='[[ABDT]]'
30065
+ symcode='[[DFNSTU]]'
30069
+# If we're using GNU nm, then use its standard symbol codes.
30070
+case `$NM -V 2>&1` in
30071
+*GNU* | *'with BFD'*)
30072
+ symcode='[[ABCDGIRSTW]]' ;;
30075
+# Transform an extracted symbol line into a proper C declaration.
30076
+# Some systems (esp. on ia64) link data and code symbols differently,
30077
+# so use this general approach.
30078
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
30080
+# Transform an extracted symbol line into symbol name and symbol address
30081
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
30082
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
30084
+# Handle CRLF in mingw tool chain
30088
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
30092
+# Try without a prefix underscore, then with it.
30093
+for ac_symprfx in "" "_"; do
30095
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
30096
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
30098
+ # Write the raw and C identifiers.
30099
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
30100
+ # Fake it for dumpbin and say T for any non-static function
30101
+ # and D for any global variable.
30102
+ # Also find C++ and __fastcall symbols from MSVC++,
30103
+ # which start with @ or ?.
30104
+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
30105
+" {last_section=section; section=\$ 3};"\
30106
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
30107
+" \$ 0!~/External *\|/{next};"\
30108
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
30109
+" {if(hide[section]) next};"\
30110
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
30111
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
30112
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
30113
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
30114
+" ' prfx=^$ac_symprfx]"
30116
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
30119
+ # Check to see that the pipe works correctly.
30123
+ cat > conftest.$ac_ext <<_LT_EOF
30124
+#ifdef __cplusplus
30128
+void nm_test_func(void);
30129
+void nm_test_func(void){}
30130
+#ifdef __cplusplus
30133
+int main(){nm_test_var='a';nm_test_func();return(0);}
30136
+ if AC_TRY_EVAL(ac_compile); then
30137
+ # Now try to grab the symbols.
30138
+ nlist=conftest.nm
30139
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
30140
+ # Try sorting and uniquifying the output.
30141
+ if sort "$nlist" | uniq > "$nlist"T; then
30142
+ mv -f "$nlist"T "$nlist"
30147
+ # Make sure that we snagged all the symbols we need.
30148
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
30149
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
30150
+ cat <<_LT_EOF > conftest.$ac_ext
30151
+#ifdef __cplusplus
30156
+ # Now generate the symbol file.
30157
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
30159
+ cat <<_LT_EOF >> conftest.$ac_ext
30161
+/* The mapping between symbol names and symbols. */
30163
+ const char *name;
30166
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
30168
+ { "@PROGRAM@", (void *) 0 },
30170
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
30171
+ cat <<\_LT_EOF >> conftest.$ac_ext
30175
+/* This works around a problem in FreeBSD linker */
30176
+#ifdef FREEBSD_WORKAROUND
30177
+static const void *lt_preloaded_setup() {
30178
+ return lt__PROGRAM__LTX_preloaded_symbols;
30182
+#ifdef __cplusplus
30186
+ # Now try linking the two files.
30187
+ mv conftest.$ac_objext conftstm.$ac_objext
30188
+ lt_save_LIBS="$LIBS"
30189
+ lt_save_CFLAGS="$CFLAGS"
30190
+ LIBS="conftstm.$ac_objext"
30191
+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
30192
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
30195
+ LIBS="$lt_save_LIBS"
30196
+ CFLAGS="$lt_save_CFLAGS"
30198
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
30201
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
30204
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
30207
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
30208
+ cat conftest.$ac_ext >&5
30210
+ rm -rf conftest* conftst*
30212
+ # Do not use the global_symbol_pipe unless it works.
30213
+ if test "$pipe_works" = yes; then
30216
+ lt_cv_sys_global_symbol_pipe=
30220
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
30221
+ lt_cv_sys_global_symbol_to_cdecl=
30223
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
30224
+ AC_MSG_RESULT(failed)
30226
+ AC_MSG_RESULT(ok)
30229
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
30230
+ [Take the output of nm and produce a listing of raw symbols and C names])
30231
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
30232
+ [Transform the output of nm in a proper C declaration])
30233
+_LT_DECL([global_symbol_to_c_name_address],
30234
+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
30235
+ [Transform the output of nm in a C name address pair])
30236
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
30237
+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
30238
+ [Transform the output of nm in a C name address pair when lib prefix is needed])
30239
+]) # _LT_CMD_GLOBAL_SYMBOLS
30242
+# _LT_COMPILER_PIC([TAGNAME])
30243
+# ---------------------------
30244
+m4_defun([_LT_COMPILER_PIC],
30245
+[m4_require([_LT_TAG_COMPILER])dnl
30246
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
30247
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
30248
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
30250
+AC_MSG_CHECKING([for $compiler option to produce PIC])
30251
+m4_if([$1], [CXX], [
30252
+ # C++ specific cases for pic, static, wl, etc.
30253
+ if test "$GXX" = yes; then
30254
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30255
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
30259
+ # All AIX code is PIC.
30260
+ if test "$host_cpu" = ia64; then
30261
+ # AIX 5 now supports IA64 processor
30262
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30267
+ case $host_cpu in
30269
+ # see comment about AmigaOS4 .so support
30270
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30273
+ # FIXME: we need at least 68020 code to build shared libraries, but
30274
+ # adding the `-m68020' flag to GCC prevents building anything better,
30275
+ # like `-m68040'.
30276
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
30281
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30282
+ # PIC is the default for these OSes.
30284
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
30285
+ # This hack is so that the source file can tell whether it is being
30286
+ # built for inclusion in a dll (and should export symbols for example).
30287
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
30288
+ # (--disable-auto-import) libraries
30289
+ m4_if([$1], [GCJ], [],
30290
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
30292
+ darwin* | rhapsody*)
30293
+ # PIC is the default on this platform
30294
+ # Common symbols not allowed in MH_DYLIB files
30295
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
30298
+ # DJGPP does not support shared libraries at all
30299
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
30302
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
30303
+ # Instead, we relocate shared libraries at runtime.
30306
+ if test -d /usr/nec; then
30307
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
30311
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
30312
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
30313
+ # sets the default TLS model and affects inlining.
30314
+ case $host_cpu in
30318
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30323
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
30324
+ # it will coredump.
30325
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
30328
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30334
+ # All AIX code is PIC.
30335
+ if test "$host_cpu" = ia64; then
30336
+ # AIX 5 now supports IA64 processor
30337
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30339
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
30343
+ case $cc_basename in
30345
+ # Green Hills C++ Compiler
30346
+ # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
30351
+ case $cc_basename in
30353
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30356
+ # Green Hills C++ Compiler
30357
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
30363
+ freebsd* | dragonfly*)
30364
+ # FreeBSD uses GNU C++
30366
+ hpux9* | hpux10* | hpux11*)
30367
+ case $cc_basename in
30369
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30370
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
30371
+ if test "$host_cpu" != ia64; then
30372
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
30376
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30377
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
30378
+ case $host_cpu in
30383
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
30392
+ # This is c89, which is MS Visual C++ (no shared libs)
30393
+ # Anyone wants to do a port?
30395
+ irix5* | irix6* | nonstopux*)
30396
+ case $cc_basename in
30398
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30399
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30400
+ # CC pic flag -KPIC is the default.
30406
+ linux* | k*bsd*-gnu)
30407
+ case $cc_basename in
30409
+ # KAI C++ Compiler
30410
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
30411
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30414
+ # old Intel C++ for x86_64 which still supported -KPIC.
30415
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30416
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30417
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
30420
+ # Intel C++, used to be incompatible with GCC.
30421
+ # ICC 10 doesn't accept -KPIC any more.
30422
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30423
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30424
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
30427
+ # Portland Group C++ compiler
30428
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30429
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
30430
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30434
+ # Make sure the PIC flag is empty. It appears that all Alpha
30435
+ # Linux and Compaq Tru64 Unix objects are PIC.
30436
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
30437
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30440
+ # IBM XL 8.0 on PPC
30441
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30442
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
30443
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
30446
+ case `$CC -V 2>&1 | sed 5q` in
30449
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30450
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30451
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
30462
+ case $cc_basename in
30464
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
30470
+ netbsd* | netbsdelf*-gnu)
30473
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
30474
+ # it will coredump.
30475
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
30477
+ osf3* | osf4* | osf5*)
30478
+ case $cc_basename in
30480
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
30483
+ # Rational C++ 2.4.1
30484
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
30487
+ # Digital/Compaq C++
30488
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30489
+ # Make sure the PIC flag is empty. It appears that all Alpha
30490
+ # Linux and Compaq Tru64 Unix objects are PIC.
30491
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
30492
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30501
+ case $cc_basename in
30503
+ # Sun C++ 4.2, 5.x and Centerline C++
30504
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30505
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30506
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
30509
+ # Green Hills C++ Compiler
30510
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
30517
+ case $cc_basename in
30520
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
30521
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30525
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
30531
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
30532
+ case $cc_basename in
30534
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30535
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30536
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30541
+ case $cc_basename in
30543
+ # NonStop-UX NCC 3.20
30544
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30553
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
30559
+ if test "$GCC" = yes; then
30560
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30561
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
30565
+ # All AIX code is PIC.
30566
+ if test "$host_cpu" = ia64; then
30567
+ # AIX 5 now supports IA64 processor
30568
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30573
+ case $host_cpu in
30575
+ # see comment about AmigaOS4 .so support
30576
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30579
+ # FIXME: we need at least 68020 code to build shared libraries, but
30580
+ # adding the `-m68020' flag to GCC prevents building anything better,
30581
+ # like `-m68040'.
30582
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
30587
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30588
+ # PIC is the default for these OSes.
30591
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
30592
+ # This hack is so that the source file can tell whether it is being
30593
+ # built for inclusion in a dll (and should export symbols for example).
30594
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
30595
+ # (--disable-auto-import) libraries
30596
+ m4_if([$1], [GCJ], [],
30597
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
30600
+ darwin* | rhapsody*)
30601
+ # PIC is the default on this platform
30602
+ # Common symbols not allowed in MH_DYLIB files
30603
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
30607
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
30608
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
30609
+ # sets the default TLS model and affects inlining.
30610
+ case $host_cpu in
30615
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30621
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
30622
+ # Instead, we relocate shared libraries at runtime.
30626
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
30627
+ # on systems that don't support them.
30628
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
30633
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
30634
+ # it will coredump.
30635
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
30639
+ if test -d /usr/nec; then
30640
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
30645
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30649
+ # PORTME Check for flag to pass linker flags through the system compiler.
30652
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30653
+ if test "$host_cpu" = ia64; then
30654
+ # AIX 5 now supports IA64 processor
30655
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30657
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
30661
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
30662
+ # This hack is so that the source file can tell whether it is being
30663
+ # built for inclusion in a dll (and should export symbols for example).
30664
+ m4_if([$1], [GCJ], [],
30665
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
30668
+ hpux9* | hpux10* | hpux11*)
30669
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30670
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30671
+ # not for PA HP-UX.
30672
+ case $host_cpu in
30677
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
30680
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
30681
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
30684
+ irix5* | irix6* | nonstopux*)
30685
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30686
+ # PIC (with -KPIC) is the default.
30687
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30690
+ linux* | k*bsd*-gnu)
30691
+ case $cc_basename in
30692
+ # old Intel for x86_64 which still supported -KPIC.
30694
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30695
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30696
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
30698
+ # icc used to be incompatible with GCC.
30699
+ # ICC 10 doesn't accept -KPIC any more.
30701
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30702
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
30703
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
30705
+ # Lahey Fortran 8.1.
30707
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30708
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
30709
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
30711
+ pgcc* | pgf77* | pgf90* | pgf95*)
30712
+ # Portland Group compilers (*not* the Pentium gcc compiler,
30713
+ # which looks to be a dead project)
30714
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30715
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
30716
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30719
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30720
+ # All Alpha code is PIC.
30721
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30724
+ # IBM XL C 8.0/Fortran 10.1 on PPC
30725
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30726
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
30727
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
30730
+ case `$CC -V 2>&1 | sed 5q` in
30733
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30734
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30735
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30738
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
30739
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30740
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30741
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
30749
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30750
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30754
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
30755
+ # it will coredump.
30756
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
30759
+ osf3* | osf4* | osf5*)
30760
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30761
+ # All OSF/1 code is PIC.
30762
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30766
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
30770
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30771
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30772
+ case $cc_basename in
30773
+ f77* | f90* | f95*)
30774
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
30776
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
30781
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
30782
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
30783
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30786
+ sysv4 | sysv4.2uw2* | sysv4.3*)
30787
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30788
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30789
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30793
+ if test -d /usr/nec ;then
30794
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
30795
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30799
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
30800
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30801
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
30802
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30806
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
30807
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
30811
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
30812
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
30816
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
30822
+ # For platforms which do not support PIC, -DPIC is meaningless:
30824
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
30827
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
30830
+AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
30831
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
30832
+ [How to pass a linker flag through the compiler])
30835
+# Check to make sure the PIC flag actually works.
30837
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
30838
+ _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
30839
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
30840
+ [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
30841
+ [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
30843
+ *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
30845
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
30846
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
30848
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
30849
+ [Additional compiler flags for building library objects])
30852
+# Check to make sure the static flag actually works.
30854
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
30855
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
30856
+ _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
30857
+ $lt_tmp_static_flag,
30859
+ [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
30860
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
30861
+ [Compiler flag to prevent dynamic linking])
30862
+])# _LT_COMPILER_PIC
30865
+# _LT_LINKER_SHLIBS([TAGNAME])
30866
+# ----------------------------
30867
+# See if the linker supports building shared libraries.
30868
+m4_defun([_LT_LINKER_SHLIBS],
30869
+[AC_REQUIRE([LT_PATH_LD])dnl
30870
+AC_REQUIRE([LT_PATH_NM])dnl
30871
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
30872
+m4_require([_LT_DECL_EGREP])dnl
30873
+m4_require([_LT_DECL_SED])dnl
30874
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
30875
+m4_require([_LT_TAG_COMPILER])dnl
30876
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
30877
+m4_if([$1], [CXX], [
30878
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30881
+ # If we're using GNU nm, then we don't want the "-C" option.
30882
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
30883
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
30884
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
30886
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
30890
+ _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
30892
+ cygwin* | mingw* | cegcc*)
30893
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
30895
+ linux* | k*bsd*-gnu)
30896
+ _LT_TAGVAR(link_all_deplibs, $1)=no
30899
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30902
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
30905
+ _LT_TAGVAR(allow_undefined_flag, $1)=
30906
+ _LT_TAGVAR(always_export_symbols, $1)=no
30907
+ _LT_TAGVAR(archive_cmds, $1)=
30908
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
30909
+ _LT_TAGVAR(compiler_needs_object, $1)=no
30910
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
30911
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
30912
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30913
+ _LT_TAGVAR(hardcode_automatic, $1)=no
30914
+ _LT_TAGVAR(hardcode_direct, $1)=no
30915
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=no
30916
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
30917
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
30918
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
30919
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
30920
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
30921
+ _LT_TAGVAR(inherit_rpath, $1)=no
30922
+ _LT_TAGVAR(link_all_deplibs, $1)=unknown
30923
+ _LT_TAGVAR(module_cmds, $1)=
30924
+ _LT_TAGVAR(module_expsym_cmds, $1)=
30925
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)=
30926
+ _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
30927
+ _LT_TAGVAR(thread_safe_flag_spec, $1)=
30928
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
30929
+ # include_expsyms should be a list of space-separated symbols to be *always*
30930
+ # included in the symbol list
30931
+ _LT_TAGVAR(include_expsyms, $1)=
30932
+ # exclude_expsyms can be an extended regexp of symbols to exclude
30933
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
30934
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
30935
+ # as well as any symbol that contains `d'.
30936
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
30937
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
30938
+ # platforms (ab)use it in PIC code, but their linkers get confused if
30939
+ # the symbol is explicitly referenced. Since portable code cannot
30940
+ # rely on this symbol name, it's probably fine to never include it in
30941
+ # preloaded symbol tables.
30942
+ # Exclude shared library initialization/finalization symbols.
30943
+dnl Note also adjust exclude_expsyms for C++ above.
30944
+ extract_expsyms_cmds=
30947
+ cygwin* | mingw* | pw32* | cegcc*)
30948
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
30949
+ # When not using gcc, we currently assume that we are using
30950
+ # Microsoft Visual C++.
30951
+ if test "$GCC" != yes; then
30956
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
30962
+ linux* | k*bsd*-gnu)
30963
+ _LT_TAGVAR(link_all_deplibs, $1)=no
30967
+ _LT_TAGVAR(ld_shlibs, $1)=yes
30968
+ if test "$with_gnu_ld" = yes; then
30969
+ # If archive_cmds runs LD, not CC, wlarc should be empty
30972
+ # Set some defaults for GNU ld with shared library support. These
30973
+ # are reset later if shared libraries are not supported. Putting them
30974
+ # here allows them to be overridden if necessary.
30975
+ runpath_var=LD_RUN_PATH
30976
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
30977
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
30978
+ # ancient GNU ld didn't support --whole-archive et. al.
30979
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
30980
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
30982
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
30984
+ supports_anon_versioning=no
30985
+ case `$LD -v 2>&1` in
30986
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
30987
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
30988
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
30989
+ *\ 2.11.*) ;; # other 2.11 versions
30990
+ *) supports_anon_versioning=yes ;;
30993
+ # See if GNU ld supports shared libraries.
30996
+ # On AIX/PPC, the GNU linker is very broken
30997
+ if test "$host_cpu" != ia64; then
30998
+ _LT_TAGVAR(ld_shlibs, $1)=no
30999
+ cat <<_LT_EOF 1>&2
31001
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
31002
+*** to be unable to reliably create shared libraries on AIX.
31003
+*** Therefore, libtool is disabling shared libraries support. If you
31004
+*** really care for shared libraries, you may want to modify your PATH
31005
+*** so that a non-GNU linker is found, and then restart.
31012
+ case $host_cpu in
31014
+ # see comment about AmigaOS4 .so support
31015
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31016
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
31019
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
31020
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31021
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31027
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31028
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
31029
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
31030
+ # support --undefined. This deserves some investigation. FIXME
31031
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31033
+ _LT_TAGVAR(ld_shlibs, $1)=no
31037
+ cygwin* | mingw* | pw32* | cegcc*)
31038
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
31039
+ # as there is no search path for DLLs.
31040
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31041
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
31042
+ _LT_TAGVAR(always_export_symbols, $1)=no
31043
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
31044
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
31046
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
31047
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31048
+ # If the export-symbols file already is a .def file (1st line
31049
+ # is EXPORTS), use it as is; otherwise, prepend...
31050
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
31051
+ cp $export_symbols $output_objdir/$soname.def;
31053
+ echo EXPORTS > $output_objdir/$soname.def;
31054
+ cat $export_symbols >> $output_objdir/$soname.def;
31056
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31058
+ _LT_TAGVAR(ld_shlibs, $1)=no
31063
+ _LT_TAGVAR(hardcode_direct, $1)=no
31064
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31065
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
31066
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
31067
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
31068
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
31069
+ # default) and relocated if they conflict, which is a slow very memory
31070
+ # consuming and fragmenting process. To avoid this, we pick a random,
31071
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
31072
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
31073
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
31074
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
31077
+ gnu* | linux* | tpf* | k*bsd*-gnu)
31079
+ if test "$host_os" = linux-dietlibc; then
31080
+ case $cc_basename in
31081
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
31084
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
31085
+ && test "$tmp_diet" = no
31088
+ tmp_sharedflag='-shared'
31089
+ case $cc_basename,$host_cpu in
31090
+ pgcc*) # Portland Group C compiler
31091
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
31092
+ tmp_addflag=' $pic_flag'
31094
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
31095
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
31096
+ tmp_addflag=' $pic_flag -Mnomain' ;;
31097
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
31098
+ tmp_addflag=' -i_dynamic' ;;
31099
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
31100
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
31101
+ ifc* | ifort*) # Intel Fortran compiler
31102
+ tmp_addflag=' -nofor_main' ;;
31103
+ lf95*) # Lahey Fortran 8.1
31104
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
31105
+ tmp_sharedflag='--shared' ;;
31106
+ xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
31107
+ tmp_sharedflag='-qmkshrobj'
31110
+ case `$CC -V 2>&1 | sed 5q` in
31111
+ *Sun\ C*) # Sun C 5.9
31112
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
31113
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
31114
+ tmp_sharedflag='-G' ;;
31115
+ *Sun\ F*) # Sun Fortran 8.3
31116
+ tmp_sharedflag='-G' ;;
31118
+ _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31120
+ if test "x$supports_anon_versioning" = xyes; then
31121
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
31122
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
31123
+ echo "local: *; };" >> $output_objdir/$libname.ver~
31124
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
31127
+ case $cc_basename in
31129
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
31130
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
31131
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
31132
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
31133
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
31134
+ if test "x$supports_anon_versioning" = xyes; then
31135
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
31136
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
31137
+ echo "local: *; };" >> $output_objdir/$libname.ver~
31138
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
31143
+ _LT_TAGVAR(ld_shlibs, $1)=no
31147
+ netbsd* | netbsdelf*-gnu)
31148
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
31149
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
31152
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31153
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31158
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
31159
+ _LT_TAGVAR(ld_shlibs, $1)=no
31160
+ cat <<_LT_EOF 1>&2
31162
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
31163
+*** create shared libraries on Solaris systems. Therefore, libtool
31164
+*** is disabling shared libraries support. We urge you to upgrade GNU
31165
+*** binutils to release 2.9.1 or newer. Another option is to modify
31166
+*** your PATH or compiler configuration so that the native linker is
31167
+*** used, and then restart.
31170
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31171
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31172
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31174
+ _LT_TAGVAR(ld_shlibs, $1)=no
31178
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
31179
+ case `$LD -v 2>&1` in
31180
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
31181
+ _LT_TAGVAR(ld_shlibs, $1)=no
31182
+ cat <<_LT_EOF 1>&2
31184
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
31185
+*** reliably create shared libraries on SCO systems. Therefore, libtool
31186
+*** is disabling shared libraries support. We urge you to upgrade GNU
31187
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
31188
+*** your PATH or compiler configuration so that the native linker is
31189
+*** used, and then restart.
31194
+ # For security reasons, it is highly recommended that you always
31195
+ # use absolute paths for naming shared libraries, and exclude the
31196
+ # DT_RUNPATH tag from executables and libraries. But doing so
31197
+ # requires that you compile everything twice, which is a pain.
31198
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31199
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
31200
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31201
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31203
+ _LT_TAGVAR(ld_shlibs, $1)=no
31210
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31212
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31213
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31217
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31218
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31219
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31221
+ _LT_TAGVAR(ld_shlibs, $1)=no
31226
+ if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
31228
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
31229
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
31230
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
31233
+ # PORTME fill in a description of your system's linker (not GNU ld)
31236
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
31237
+ _LT_TAGVAR(always_export_symbols, $1)=yes
31238
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
31239
+ # Note: this linker hardcodes the directories in LIBPATH if there
31240
+ # are no directories specified by -L.
31241
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31242
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
31243
+ # Neither direct hardcoding nor static linking is supported with a
31244
+ # broken collect2.
31245
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
31250
+ if test "$host_cpu" = ia64; then
31251
+ # On IA64, the linker does run time linking by default, so we don't
31252
+ # have to do anything special.
31253
+ aix_use_runtimelinking=no
31254
+ exp_sym_flag='-Bexport'
31257
+ # If we're using GNU nm, then we don't want the "-C" option.
31258
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
31259
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
31260
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
31262
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
31264
+ aix_use_runtimelinking=no
31266
+ # Test if we are trying to use run time linking or normal
31267
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
31268
+ # need to do runtime linking.
31269
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
31270
+ for ld_flag in $LDFLAGS; do
31271
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
31272
+ aix_use_runtimelinking=yes
31279
+ exp_sym_flag='-bexport'
31280
+ no_entry_flag='-bnoentry'
31283
+ # When large executables or shared objects are built, AIX ld can
31284
+ # have problems creating the table of contents. If linking a library
31285
+ # or program results in "error TOC overflow" add -mminimal-toc to
31286
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
31287
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
31289
+ _LT_TAGVAR(archive_cmds, $1)=''
31290
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31291
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
31292
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
31293
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
31294
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
31296
+ if test "$GCC" = yes; then
31297
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
31298
+ # We only want to do this on AIX 4.2 and lower, the check
31299
+ # below for broken collect2 doesn't work under 4.3+
31300
+ collect2name=`${CC} -print-prog-name=collect2`
31301
+ if test -f "$collect2name" &&
31302
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
31304
+ # We have reworked collect2
31307
+ # We have old collect2
31308
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
31309
+ # It fails to find uninstalled libraries when the uninstalled
31310
+ # path is not listed in the libpath. Setting hardcode_minus_L
31311
+ # to unsupported forces relinking
31312
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31313
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31314
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
31318
+ shared_flag='-shared'
31319
+ if test "$aix_use_runtimelinking" = yes; then
31320
+ shared_flag="$shared_flag "'${wl}-G'
31322
+ _LT_TAGVAR(link_all_deplibs, $1)=no
31325
+ if test "$host_cpu" = ia64; then
31326
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
31327
+ # chokes on -Wl,-G. The following line is correct:
31330
+ if test "$aix_use_runtimelinking" = yes; then
31331
+ shared_flag='${wl}-G'
31333
+ shared_flag='${wl}-bM:SRE'
31338
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
31339
+ # It seems that -bexpall does not export symbols beginning with
31340
+ # underscore (_), so it is better to generate a list of symbols to export.
31341
+ _LT_TAGVAR(always_export_symbols, $1)=yes
31342
+ if test "$aix_use_runtimelinking" = yes; then
31343
+ # Warning - without using the other runtime loading flags (-brtl),
31344
+ # -berok will link without error, but may produce a broken library.
31345
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
31346
+ # Determine the default libpath from the value encoded in an
31347
+ # empty executable.
31348
+ _LT_SYS_MODULE_PATH_AIX
31349
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
31350
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
31352
+ if test "$host_cpu" = ia64; then
31353
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
31354
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
31355
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
31357
+ # Determine the default libpath from the value encoded in an
31358
+ # empty executable.
31359
+ _LT_SYS_MODULE_PATH_AIX
31360
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
31361
+ # Warning - without using the other run time loading flags,
31362
+ # -berok will link without error, but may produce a broken library.
31363
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
31364
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
31365
+ # Exported symbols can be pulled into shared objects from archives
31366
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
31367
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
31368
+ # This is similar to how AIX traditionally builds its shared libraries.
31369
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
31375
+ case $host_cpu in
31377
+ # see comment about AmigaOS4 .so support
31378
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31379
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
31382
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
31383
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31384
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31390
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
31393
+ cygwin* | mingw* | pw32* | cegcc*)
31394
+ # When not using gcc, we currently assume that we are using
31395
+ # Microsoft Visual C++.
31396
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
31397
+ # no search path for DLLs.
31398
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
31399
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
31400
+ # Tell ltmain to make .lib files, not .a files.
31402
+ # Tell ltmain to make .dll files, not .so files.
31403
+ shrext_cmds=".dll"
31404
+ # FIXME: Setting linknames here is a bad hack.
31405
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
31406
+ # The linker will automatically build a .lib file if we build a DLL.
31407
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
31408
+ # FIXME: Should let the user specify the lib program.
31409
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
31410
+ _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
31411
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
31414
+ darwin* | rhapsody*)
31415
+ _LT_DARWIN_LINKER_FEATURES($1)
31419
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31420
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31421
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31425
+ _LT_TAGVAR(ld_shlibs, $1)=no
31428
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
31429
+ # support. Future versions do this automatically, but an explicit c++rt0.o
31430
+ # does not break anything, and helps significantly (at the cost of a little
31433
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
31434
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
31435
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31436
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31439
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31441
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31442
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31443
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31444
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31447
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
31448
+ freebsd* | dragonfly*)
31449
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
31450
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
31451
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31452
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31456
+ if test "$GCC" = yes; then
31457
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31459
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31461
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
31462
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31463
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31465
+ # hardcode_minus_L: Not really in the search PATH,
31466
+ # but as the default location of the library.
31467
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31468
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
31472
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31473
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31475
+ _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
31477
+ if test "$with_gnu_ld" = no; then
31478
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
31479
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
31480
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31481
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31482
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
31483
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
31484
+ # hardcode_minus_L: Not really in the search PATH,
31485
+ # but as the default location of the library.
31486
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31491
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31492
+ case $host_cpu in
31494
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31497
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31500
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31504
+ case $host_cpu in
31506
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31509
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31512
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31516
+ if test "$with_gnu_ld" = no; then
31517
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
31518
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31520
+ case $host_cpu in
31522
+ _LT_TAGVAR(hardcode_direct, $1)=no
31523
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31526
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31527
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
31528
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
31530
+ # hardcode_minus_L: Not really in the search PATH,
31531
+ # but as the default location of the library.
31532
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31538
+ irix5* | irix6* | nonstopux*)
31539
+ if test "$GCC" = yes; then
31540
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31541
+ # Try to use the -exported_symbol ld option, if it does not
31542
+ # work, assume that -exports_file does not work either and
31543
+ # implicitly export all symbols.
31544
+ save_LDFLAGS="$LDFLAGS"
31545
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
31546
+ AC_LINK_IFELSE(int foo(void) {},
31547
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
31549
+ LDFLAGS="$save_LDFLAGS"
31551
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
31552
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
31554
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
31555
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
31556
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31557
+ _LT_TAGVAR(inherit_rpath, $1)=yes
31558
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
31561
+ netbsd* | netbsdelf*-gnu)
31562
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
31563
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
31565
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
31567
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
31568
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31569
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31573
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31574
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31575
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
31576
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31577
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31584
+ if test -f /usr/libexec/ld.so; then
31585
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31586
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31587
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
31588
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
31589
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31590
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
31591
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
31592
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
31595
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
31596
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31597
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
31600
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31601
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
31606
+ _LT_TAGVAR(ld_shlibs, $1)=no
31611
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31612
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31613
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
31614
+ _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
31615
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
31619
+ if test "$GCC" = yes; then
31620
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
31621
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31623
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
31624
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
31626
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
31627
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
31628
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31631
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
31632
+ if test "$GCC" = yes; then
31633
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
31634
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31635
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
31637
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
31638
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
31639
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
31640
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
31642
+ # Both c and cxx compiler support -rpath directly
31643
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
31645
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
31646
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
31650
+ _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
31651
+ if test "$GCC" = yes; then
31653
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31654
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
31655
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
31657
+ case `$CC -V 2>&1` in
31658
+ *"Compilers 5.0"*)
31660
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
31661
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
31662
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
31666
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
31667
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
31668
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
31672
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
31673
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31675
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
31677
+ # The compiler driver will combine and reorder linker options,
31678
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
31679
+ # but is careful enough not to reorder.
31680
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
31681
+ if test "$GCC" = yes; then
31682
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
31684
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
31688
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
31692
+ if test "x$host_vendor" = xsequent; then
31693
+ # Use $CC to link under sequent, because it throws in some extra .o
31694
+ # files that make .init and .fini sections work.
31695
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
31697
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
31699
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31700
+ _LT_TAGVAR(hardcode_direct, $1)=yes
31701
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
31702
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31706
+ case $host_vendor in
31708
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31709
+ _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
31712
+ ## LD is ld it makes a PLAMLIB
31713
+ ## CC just makes a GrossModule.
31714
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
31715
+ _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
31716
+ _LT_TAGVAR(hardcode_direct, $1)=no
31719
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31720
+ _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
31723
+ runpath_var='LD_RUN_PATH'
31724
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31728
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31729
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31730
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
31734
+ if test -d /usr/nec; then
31735
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31736
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31737
+ runpath_var=LD_RUN_PATH
31738
+ hardcode_runpath_var=yes
31739
+ _LT_TAGVAR(ld_shlibs, $1)=yes
31743
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
31744
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
31745
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
31746
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31747
+ runpath_var='LD_RUN_PATH'
31749
+ if test "$GCC" = yes; then
31750
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31751
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31753
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31754
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31758
+ sysv5* | sco3.2v5* | sco5v6*)
31759
+ # Note: We can NOT use -z defs as we might desire, because we do not
31760
+ # link with -lc, and that would cause any symbols used from libc to
31761
+ # always be unresolved, which means just about no library would
31762
+ # ever link correctly. If we're not using GNU ld we use -z text
31763
+ # though, which does catch some bad symbols but isn't as heavy-handed
31765
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
31766
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
31767
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
31768
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31769
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
31770
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
31771
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
31772
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
31773
+ runpath_var='LD_RUN_PATH'
31775
+ if test "$GCC" = yes; then
31776
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31777
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31779
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31780
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31785
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31786
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
31787
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
31791
+ _LT_TAGVAR(ld_shlibs, $1)=no
31795
+ if test x$host_vendor = xsni; then
31797
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
31798
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
31804
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
31805
+test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
31807
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
31809
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
31810
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
31811
+_LT_DECL([], [extract_expsyms_cmds], [2],
31812
+ [The commands to extract the exported symbol list from a shared archive])
31815
+# Do we need to explicitly link libc?
31817
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
31819
+ # Assume -lc should be added
31820
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
31822
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
31823
+ case $_LT_TAGVAR(archive_cmds, $1) in
31825
+ # FIXME: we may have to deal with multi-command sequences.
31828
+ # Test whether the compiler implicitly links with -lc since on some
31829
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
31830
+ # to ld, don't add -lc before -lgcc.
31831
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
31833
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
31835
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
31838
+ libobjs=conftest.$ac_objext
31840
+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
31841
+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
31842
+ compiler_flags=-v
31847
+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
31848
+ _LT_TAGVAR(allow_undefined_flag, $1)=
31849
+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
31851
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
31853
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
31855
+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
31857
+ cat conftest.err 1>&5
31860
+ AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
31867
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
31868
+ [Whether or not to add -lc for building shared libraries])
31869
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
31870
+ [enable_shared_with_static_runtimes], [0],
31871
+ [Whether or not to disallow shared libs when runtime libs are static])
31872
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
31873
+ [Compiler flag to allow reflexive dlopens])
31874
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
31875
+ [Compiler flag to generate shared objects directly from archives])
31876
+_LT_TAGDECL([], [compiler_needs_object], [1],
31877
+ [Whether the compiler copes with passing no objects directly])
31878
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
31879
+ [Create an old-style archive from a shared archive])
31880
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
31881
+ [Create a temporary old-style archive to link instead of a shared archive])
31882
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
31883
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
31884
+_LT_TAGDECL([], [module_cmds], [2],
31885
+ [Commands used to build a loadable module if different from building
31886
+ a shared archive.])
31887
+_LT_TAGDECL([], [module_expsym_cmds], [2])
31888
+_LT_TAGDECL([], [with_gnu_ld], [1],
31889
+ [Whether we are building with GNU ld or not])
31890
+_LT_TAGDECL([], [allow_undefined_flag], [1],
31891
+ [Flag that allows shared libraries with undefined symbols to be built])
31892
+_LT_TAGDECL([], [no_undefined_flag], [1],
31893
+ [Flag that enforces no undefined symbols])
31894
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
31895
+ [Flag to hardcode $libdir into a binary during linking.
31896
+ This must work even if $libdir does not exist])
31897
+_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
31898
+ [[If ld is used when linking, flag to hardcode $libdir into a binary
31899
+ during linking. This must work even if $libdir does not exist]])
31900
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
31901
+ [Whether we need a single "-rpath" flag with a separated argument])
31902
+_LT_TAGDECL([], [hardcode_direct], [0],
31903
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
31904
+ DIR into the resulting binary])
31905
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
31906
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
31907
+ DIR into the resulting binary and the resulting library dependency is
31908
+ "absolute", i.e impossible to change by setting ${shlibpath_var} if the
31909
+ library is relocated])
31910
+_LT_TAGDECL([], [hardcode_minus_L], [0],
31911
+ [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31912
+ into the resulting binary])
31913
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
31914
+ [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31915
+ into the resulting binary])
31916
+_LT_TAGDECL([], [hardcode_automatic], [0],
31917
+ [Set to "yes" if building a shared library automatically hardcodes DIR
31918
+ into the library and all subsequent libraries and executables linked
31920
+_LT_TAGDECL([], [inherit_rpath], [0],
31921
+ [Set to yes if linker adds runtime paths of dependent libraries
31922
+ to runtime path list])
31923
+_LT_TAGDECL([], [link_all_deplibs], [0],
31924
+ [Whether libtool must link a program against all its dependency libraries])
31925
+_LT_TAGDECL([], [fix_srcfile_path], [1],
31926
+ [Fix the shell variable $srcfile for the compiler])
31927
+_LT_TAGDECL([], [always_export_symbols], [0],
31928
+ [Set to "yes" if exported symbols are required])
31929
+_LT_TAGDECL([], [export_symbols_cmds], [2],
31930
+ [The commands to list exported symbols])
31931
+_LT_TAGDECL([], [exclude_expsyms], [1],
31932
+ [Symbols that should not be listed in the preloaded symbols])
31933
+_LT_TAGDECL([], [include_expsyms], [1],
31934
+ [Symbols that must always be exported])
31935
+_LT_TAGDECL([], [prelink_cmds], [2],
31936
+ [Commands necessary for linking programs (against libraries) with templates])
31937
+_LT_TAGDECL([], [file_list_spec], [1],
31938
+ [Specify filename containing input files])
31939
+dnl FIXME: Not yet implemented
31940
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
31941
+dnl [Compiler flag to generate thread safe objects])
31942
+])# _LT_LINKER_SHLIBS
31945
+# _LT_LANG_C_CONFIG([TAG])
31946
+# ------------------------
31947
+# Ensure that the configuration variables for a C compiler are suitably
31948
+# defined. These variables are subsequently used by _LT_CONFIG to write
31949
+# the compiler configuration to `libtool'.
31950
+m4_defun([_LT_LANG_C_CONFIG],
31951
+[m4_require([_LT_DECL_EGREP])dnl
31955
+# Source file extension for C test sources.
31958
+# Object file extension for compiled C test sources.
31960
+_LT_TAGVAR(objext, $1)=$objext
31962
+# Code to be used in simple compile tests
31963
+lt_simple_compile_test_code="int some_variable = 0;"
31965
+# Code to be used in simple link tests
31966
+lt_simple_link_test_code='int main(){return(0);}'
31969
+# Save the default compiler, since it gets overwritten when the other
31970
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
31971
+compiler_DEFAULT=$CC
31973
+# save warnings/boilerplate of simple test code
31974
+_LT_COMPILER_BOILERPLATE
31975
+_LT_LINKER_BOILERPLATE
31978
+## There is no encapsulation within the following macros, do not change
31979
+## the running order or otherwise move them around unless you know exactly
31980
+## what you are doing...
31981
+if test -n "$compiler"; then
31982
+ _LT_COMPILER_NO_RTTI($1)
31983
+ _LT_COMPILER_PIC($1)
31984
+ _LT_COMPILER_C_O($1)
31985
+ _LT_COMPILER_FILE_LOCKS($1)
31986
+ _LT_LINKER_SHLIBS($1)
31987
+ _LT_SYS_DYNAMIC_LINKER($1)
31988
+ _LT_LINKER_HARDCODE_LIBPATH($1)
31989
+ LT_SYS_DLOPEN_SELF
31992
+ # Report which library types will actually be built
31993
+ AC_MSG_CHECKING([if libtool supports shared libraries])
31994
+ AC_MSG_RESULT([$can_build_shared])
31996
+ AC_MSG_CHECKING([whether to build shared libraries])
31997
+ test "$can_build_shared" = "no" && enable_shared=no
31999
+ # On AIX, shared libraries and static libraries use the same namespace, and
32000
+ # are all built from PIC.
32003
+ test "$enable_shared" = yes && enable_static=no
32004
+ if test -n "$RANLIB"; then
32005
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
32006
+ postinstall_cmds='$RANLIB $lib'
32011
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
32012
+ test "$enable_shared" = yes && enable_static=no
32016
+ AC_MSG_RESULT([$enable_shared])
32018
+ AC_MSG_CHECKING([whether to build static libraries])
32019
+ # Make sure either enable_shared or enable_static is yes.
32020
+ test "$enable_shared" = yes || enable_static=yes
32021
+ AC_MSG_RESULT([$enable_static])
32027
+])# _LT_LANG_C_CONFIG
32032
+# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
32033
+# compiler, we have our own version here.
32034
+m4_defun([_LT_PROG_CXX],
32036
+pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
32038
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
32039
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
32040
+ (test "X$CXX" != "Xg++"))) ; then
32043
+ _lt_caught_CXX_error=yes
32045
+popdef([AC_MSG_ERROR])
32048
+dnl aclocal-1.4 backwards compatibility:
32049
+dnl AC_DEFUN([_LT_PROG_CXX], [])
32052
+# _LT_LANG_CXX_CONFIG([TAG])
32053
+# --------------------------
32054
+# Ensure that the configuration variables for a C++ compiler are suitably
32055
+# defined. These variables are subsequently used by _LT_CONFIG to write
32056
+# the compiler configuration to `libtool'.
32057
+m4_defun([_LT_LANG_CXX_CONFIG],
32058
+[AC_REQUIRE([_LT_PROG_CXX])dnl
32059
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
32060
+m4_require([_LT_DECL_EGREP])dnl
32063
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
32064
+_LT_TAGVAR(allow_undefined_flag, $1)=
32065
+_LT_TAGVAR(always_export_symbols, $1)=no
32066
+_LT_TAGVAR(archive_expsym_cmds, $1)=
32067
+_LT_TAGVAR(compiler_needs_object, $1)=no
32068
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
32069
+_LT_TAGVAR(hardcode_direct, $1)=no
32070
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
32071
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
32072
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
32073
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
32074
+_LT_TAGVAR(hardcode_minus_L, $1)=no
32075
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
32076
+_LT_TAGVAR(hardcode_automatic, $1)=no
32077
+_LT_TAGVAR(inherit_rpath, $1)=no
32078
+_LT_TAGVAR(module_cmds, $1)=
32079
+_LT_TAGVAR(module_expsym_cmds, $1)=
32080
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
32081
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
32082
+_LT_TAGVAR(no_undefined_flag, $1)=
32083
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
32084
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
32086
+# Source file extension for C++ test sources.
32089
+# Object file extension for compiled C++ test sources.
32091
+_LT_TAGVAR(objext, $1)=$objext
32093
+# No sense in running all these tests if we already determined that
32094
+# the CXX compiler isn't working. Some variables (like enable_shared)
32095
+# are currently assumed to apply to all compilers on this platform,
32096
+# and will be corrupted by setting them based on a non-working compiler.
32097
+if test "$_lt_caught_CXX_error" != yes; then
32098
+ # Code to be used in simple compile tests
32099
+ lt_simple_compile_test_code="int some_variable = 0;"
32101
+ # Code to be used in simple link tests
32102
+ lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
32104
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
32107
+ # save warnings/boilerplate of simple test code
32108
+ _LT_COMPILER_BOILERPLATE
32109
+ _LT_LINKER_BOILERPLATE
32111
+ # Allow CC to be a program name with arguments.
32116
+ lt_save_with_gnu_ld=$with_gnu_ld
32117
+ lt_save_path_LD=$lt_cv_path_LD
32118
+ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
32119
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
32121
+ $as_unset lt_cv_prog_gnu_ld
32123
+ if test -n "${lt_cv_path_LDCXX+set}"; then
32124
+ lt_cv_path_LD=$lt_cv_path_LDCXX
32126
+ $as_unset lt_cv_path_LD
32128
+ test -z "${LDCXX+set}" || LD=$LDCXX
32131
+ _LT_TAGVAR(compiler, $1)=$CC
32132
+ _LT_CC_BASENAME([$compiler])
32134
+ if test -n "$compiler"; then
32135
+ # We don't want -fno-exception when compiling C++ code, so set the
32136
+ # no_builtin_flag separately
32137
+ if test "$GXX" = yes; then
32138
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
32140
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
32143
+ if test "$GXX" = yes; then
32144
+ # Set up default GNU C++ configuration
32148
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
32149
+ # archiving commands below assume that GNU ld is being used.
32150
+ if test "$with_gnu_ld" = yes; then
32151
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
32152
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
32154
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
32155
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
32157
+ # If archive_cmds runs LD, not CC, wlarc should be empty
32158
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
32159
+ # investigate it a little bit more. (MM)
32162
+ # ancient GNU ld didn't support --whole-archive et. al.
32163
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" |
32164
+ $GREP 'no-whole-archive' > /dev/null; then
32165
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
32167
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
32173
+ # A generic and very simple default shared library creation
32174
+ # command for GNU C++ for the case where it uses the native
32175
+ # linker, instead of GNU ld. If possible, this setting should
32176
+ # overridden to take advantage of the native linker features on
32177
+ # the platform it is being used on.
32178
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
32181
+ # Commands to make compiler produce verbose output that lists
32182
+ # what "hidden" libraries, object files and flags are used when
32183
+ # linking a shared library.
32184
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
32192
+ # PORTME: fill in a description of your system's C++ link characteristics
32193
+ AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
32194
+ _LT_TAGVAR(ld_shlibs, $1)=yes
32197
+ # FIXME: insert proper C++ library support
32198
+ _LT_TAGVAR(ld_shlibs, $1)=no
32201
+ if test "$host_cpu" = ia64; then
32202
+ # On IA64, the linker does run time linking by default, so we don't
32203
+ # have to do anything special.
32204
+ aix_use_runtimelinking=no
32205
+ exp_sym_flag='-Bexport'
32208
+ aix_use_runtimelinking=no
32210
+ # Test if we are trying to use run time linking or normal
32211
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
32212
+ # need to do runtime linking.
32213
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
32214
+ for ld_flag in $LDFLAGS; do
32217
+ aix_use_runtimelinking=yes
32225
+ exp_sym_flag='-bexport'
32226
+ no_entry_flag='-bnoentry'
32229
+ # When large executables or shared objects are built, AIX ld can
32230
+ # have problems creating the table of contents. If linking a library
32231
+ # or program results in "error TOC overflow" add -mminimal-toc to
32232
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
32233
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
32235
+ _LT_TAGVAR(archive_cmds, $1)=''
32236
+ _LT_TAGVAR(hardcode_direct, $1)=yes
32237
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
32238
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
32239
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
32240
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
32242
+ if test "$GXX" = yes; then
32243
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
32244
+ # We only want to do this on AIX 4.2 and lower, the check
32245
+ # below for broken collect2 doesn't work under 4.3+
32246
+ collect2name=`${CC} -print-prog-name=collect2`
32247
+ if test -f "$collect2name" &&
32248
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
32250
+ # We have reworked collect2
32253
+ # We have old collect2
32254
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
32255
+ # It fails to find uninstalled libraries when the uninstalled
32256
+ # path is not listed in the libpath. Setting hardcode_minus_L
32257
+ # to unsupported forces relinking
32258
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
32259
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
32260
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
32263
+ shared_flag='-shared'
32264
+ if test "$aix_use_runtimelinking" = yes; then
32265
+ shared_flag="$shared_flag "'${wl}-G'
32269
+ if test "$host_cpu" = ia64; then
32270
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
32271
+ # chokes on -Wl,-G. The following line is correct:
32274
+ if test "$aix_use_runtimelinking" = yes; then
32275
+ shared_flag='${wl}-G'
32277
+ shared_flag='${wl}-bM:SRE'
32282
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
32283
+ # It seems that -bexpall does not export symbols beginning with
32284
+ # underscore (_), so it is better to generate a list of symbols to
32286
+ _LT_TAGVAR(always_export_symbols, $1)=yes
32287
+ if test "$aix_use_runtimelinking" = yes; then
32288
+ # Warning - without using the other runtime loading flags (-brtl),
32289
+ # -berok will link without error, but may produce a broken library.
32290
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
32291
+ # Determine the default libpath from the value encoded in an empty
32293
+ _LT_SYS_MODULE_PATH_AIX
32294
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
32296
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
32298
+ if test "$host_cpu" = ia64; then
32299
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
32300
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
32301
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
32303
+ # Determine the default libpath from the value encoded in an
32304
+ # empty executable.
32305
+ _LT_SYS_MODULE_PATH_AIX
32306
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
32307
+ # Warning - without using the other run time loading flags,
32308
+ # -berok will link without error, but may produce a broken library.
32309
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
32310
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
32311
+ # Exported symbols can be pulled into shared objects from archives
32312
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
32313
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
32314
+ # This is similar to how AIX traditionally builds its shared
32316
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
32322
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
32323
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
32324
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
32325
+ # support --undefined. This deserves some investigation. FIXME
32326
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
32328
+ _LT_TAGVAR(ld_shlibs, $1)=no
32333
+ case $cc_basename in
32335
+ # FIXME: insert proper C++ library support
32336
+ _LT_TAGVAR(ld_shlibs, $1)=no
32341
+ cygwin* | mingw* | pw32* | cegcc*)
32342
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
32343
+ # as there is no search path for DLLs.
32344
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
32345
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
32346
+ _LT_TAGVAR(always_export_symbols, $1)=no
32347
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
32349
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
32350
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
32351
+ # If the export-symbols file already is a .def file (1st line
32352
+ # is EXPORTS), use it as is; otherwise, prepend...
32353
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
32354
+ cp $export_symbols $output_objdir/$soname.def;
32356
+ echo EXPORTS > $output_objdir/$soname.def;
32357
+ cat $export_symbols >> $output_objdir/$soname.def;
32359
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
32361
+ _LT_TAGVAR(ld_shlibs, $1)=no
32364
+ darwin* | rhapsody*)
32365
+ _LT_DARWIN_LINKER_FEATURES($1)
32369
+ case $cc_basename in
32371
+ # FIXME: insert proper C++ library support
32372
+ _LT_TAGVAR(ld_shlibs, $1)=no
32375
+ # Green Hills C++ Compiler
32376
+ # FIXME: insert proper C++ library support
32377
+ _LT_TAGVAR(ld_shlibs, $1)=no
32380
+ # FIXME: insert proper C++ library support
32381
+ _LT_TAGVAR(ld_shlibs, $1)=no
32387
+ # C++ shared libraries reported to be fairly broken before
32389
+ _LT_TAGVAR(ld_shlibs, $1)=no
32393
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
32396
+ freebsd* | dragonfly*)
32397
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
32399
+ _LT_TAGVAR(ld_shlibs, $1)=yes
32406
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
32407
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32408
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
32409
+ _LT_TAGVAR(hardcode_direct, $1)=yes
32410
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
32411
+ # but as the default
32412
+ # location of the library.
32414
+ case $cc_basename in
32416
+ # FIXME: insert proper C++ library support
32417
+ _LT_TAGVAR(ld_shlibs, $1)=no
32420
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
32421
+ # Commands to make compiler produce verbose output that lists
32422
+ # what "hidden" libraries, object files and flags are used when
32423
+ # linking a shared library.
32425
+ # There doesn't appear to be a way to prevent this compiler from
32426
+ # explicitly linking system object files so we need to strip them
32427
+ # from the output so that they don't get included in the library
32429
+ 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 "X$list" | $Xsed'
32432
+ if test "$GXX" = yes; then
32433
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
32435
+ # FIXME: insert proper C++ library support
32436
+ _LT_TAGVAR(ld_shlibs, $1)=no
32443
+ if test $with_gnu_ld = no; then
32444
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
32445
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32447
+ case $host_cpu in
32451
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
32455
+ case $host_cpu in
32457
+ _LT_TAGVAR(hardcode_direct, $1)=no
32458
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32461
+ _LT_TAGVAR(hardcode_direct, $1)=yes
32462
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
32463
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
32464
+ # but as the default
32465
+ # location of the library.
32469
+ case $cc_basename in
32471
+ # FIXME: insert proper C++ library support
32472
+ _LT_TAGVAR(ld_shlibs, $1)=no
32475
+ case $host_cpu in
32477
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32480
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32483
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32486
+ # Commands to make compiler produce verbose output that lists
32487
+ # what "hidden" libraries, object files and flags are used when
32488
+ # linking a shared library.
32490
+ # There doesn't appear to be a way to prevent this compiler from
32491
+ # explicitly linking system object files so we need to strip them
32492
+ # from the output so that they don't get included in the library
32494
+ 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 "X$list" | $Xsed'
32497
+ if test "$GXX" = yes; then
32498
+ if test $with_gnu_ld = no; then
32499
+ case $host_cpu in
32501
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32504
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32507
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32512
+ # FIXME: insert proper C++ library support
32513
+ _LT_TAGVAR(ld_shlibs, $1)=no
32520
+ _LT_TAGVAR(hardcode_direct, $1)=no
32521
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32522
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
32523
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
32524
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
32525
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
32526
+ # default) and relocated if they conflict, which is a slow very memory
32527
+ # consuming and fragmenting process. To avoid this, we pick a random,
32528
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
32529
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
32530
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
32531
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
32534
+ case $cc_basename in
32537
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
32539
+ # Archives containing C++ object files must be created using
32540
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
32541
+ # necessary to make sure instantiated templates are included
32542
+ # in the archive.
32543
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
32546
+ if test "$GXX" = yes; then
32547
+ if test "$with_gnu_ld" = no; then
32548
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
32550
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
32553
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
32556
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
32557
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32558
+ _LT_TAGVAR(inherit_rpath, $1)=yes
32561
+ linux* | k*bsd*-gnu)
32562
+ case $cc_basename in
32564
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
32566
+ # KCC will only create a shared library if the output file
32567
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
32568
+ # to its proper name (with version) after linking.
32569
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
32570
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
32571
+ # Commands to make compiler produce verbose output that lists
32572
+ # what "hidden" libraries, object files and flags are used when
32573
+ # linking a shared library.
32575
+ # There doesn't appear to be a way to prevent this compiler from
32576
+ # explicitly linking system object files so we need to strip them
32577
+ # from the output so that they don't get included in the library
32579
+ 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 "X$list" | $Xsed'
32581
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
32582
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
32584
+ # Archives containing C++ object files must be created using
32585
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
32586
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
32591
+ # version 8.0 and above of icpc choke on multiply defined symbols
32592
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
32593
+ # earlier do not add the objects themselves.
32594
+ case `$CC -V 2>&1` in
32596
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
32597
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
32599
+ *) # Version 8.0 or newer
32601
+ case $host_cpu in
32602
+ ia64*) tmp_idyn=' -i_dynamic';;
32604
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
32605
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
32608
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
32609
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
32610
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
32611
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
32614
+ # Portland Group C++ compiler
32616
+ *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
32617
+ _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
32619
+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
32620
+ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
32621
+ _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
32623
+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
32624
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
32626
+ _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
32628
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
32629
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
32630
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
32632
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
32633
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
32635
+ *) # Version 6 will use weak symbols
32636
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
32637
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
32641
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
32642
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
32643
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
32647
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
32648
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
32650
+ runpath_var=LD_RUN_PATH
32651
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
32652
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32654
+ # Commands to make compiler produce verbose output that lists
32655
+ # what "hidden" libraries, object files and flags are used when
32656
+ # linking a shared library.
32658
+ # There doesn't appear to be a way to prevent this compiler from
32659
+ # explicitly linking system object files so we need to strip them
32660
+ # from the output so that they don't get included in the library
32662
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
32665
+ # IBM XL 8.0 on PPC, with GNU ld
32666
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
32667
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
32668
+ _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
32669
+ if test "x$supports_anon_versioning" = xyes; then
32670
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
32671
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
32672
+ echo "local: *; };" >> $output_objdir/$libname.ver~
32673
+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
32677
+ case `$CC -V 2>&1 | sed 5q` in
32680
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
32681
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32682
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
32683
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
32684
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
32685
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
32687
+ # Not sure whether something based on
32688
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
32689
+ # would be better.
32690
+ output_verbose_link_cmd='echo'
32692
+ # Archives containing C++ object files must be created using
32693
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
32694
+ # necessary to make sure instantiated templates are included
32695
+ # in the archive.
32696
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
32704
+ # FIXME: insert proper C++ library support
32705
+ _LT_TAGVAR(ld_shlibs, $1)=no
32709
+ # FIXME: insert proper C++ library support
32710
+ _LT_TAGVAR(ld_shlibs, $1)=no
32714
+ case $cc_basename in
32716
+ # FIXME: insert proper C++ library support
32717
+ _LT_TAGVAR(ld_shlibs, $1)=no
32720
+ # FIXME: insert proper C++ library support
32721
+ _LT_TAGVAR(ld_shlibs, $1)=no
32727
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
32728
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
32730
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
32731
+ _LT_TAGVAR(hardcode_direct, $1)=yes
32732
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32734
+ # Workaround some broken pre-1.5 toolchains
32735
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
32739
+ _LT_TAGVAR(ld_shlibs, $1)=yes
32743
+ # C++ shared libraries are fairly broken
32744
+ _LT_TAGVAR(ld_shlibs, $1)=no
32748
+ if test -f /usr/libexec/ld.so; then
32749
+ _LT_TAGVAR(hardcode_direct, $1)=yes
32750
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32751
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
32752
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
32753
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
32754
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32755
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
32756
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
32757
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
32759
+ output_verbose_link_cmd=echo
32761
+ _LT_TAGVAR(ld_shlibs, $1)=no
32765
+ osf3* | osf4* | osf5*)
32766
+ case $cc_basename in
32768
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
32770
+ # KCC will only create a shared library if the output file
32771
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
32772
+ # to its proper name (with version) after linking.
32773
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
32775
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
32776
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32778
+ # Archives containing C++ object files must be created using
32779
+ # the KAI C++ compiler.
32781
+ osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
32782
+ *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
32786
+ # Rational C++ 2.4.1
32787
+ # FIXME: insert proper C++ library support
32788
+ _LT_TAGVAR(ld_shlibs, $1)=no
32793
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
32794
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
32795
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
32798
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
32799
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
32800
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
32801
+ echo "-hidden">> $lib.exp~
32802
+ $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
32804
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
32808
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32810
+ # Commands to make compiler produce verbose output that lists
32811
+ # what "hidden" libraries, object files and flags are used when
32812
+ # linking a shared library.
32814
+ # There doesn't appear to be a way to prevent this compiler from
32815
+ # explicitly linking system object files so we need to strip them
32816
+ # from the output so that they don't get included in the library
32818
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
32821
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
32822
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
32825
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
32828
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
32832
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
32833
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
32835
+ # Commands to make compiler produce verbose output that lists
32836
+ # what "hidden" libraries, object files and flags are used when
32837
+ # linking a shared library.
32838
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
32841
+ # FIXME: insert proper C++ library support
32842
+ _LT_TAGVAR(ld_shlibs, $1)=no
32849
+ # FIXME: insert proper C++ library support
32850
+ _LT_TAGVAR(ld_shlibs, $1)=no
32854
+ case $cc_basename in
32857
+ # FIXME: insert proper C++ library support
32858
+ _LT_TAGVAR(ld_shlibs, $1)=no
32862
+ # FIXME: insert proper C++ library support
32863
+ _LT_TAGVAR(ld_shlibs, $1)=no
32866
+ # FIXME: insert proper C++ library support
32867
+ _LT_TAGVAR(ld_shlibs, $1)=no
32873
+ case $cc_basename in
32875
+ # Sun C++ 4.2, 5.x and Centerline C++
32876
+ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
32877
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
32878
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
32879
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
32880
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
32882
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
32883
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32885
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
32887
+ # The compiler driver will combine and reorder linker options,
32888
+ # but understands `-z linker_flag'.
32889
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
32890
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
32893
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
32895
+ output_verbose_link_cmd='echo'
32897
+ # Archives containing C++ object files must be created using
32898
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
32899
+ # necessary to make sure instantiated templates are included
32900
+ # in the archive.
32901
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
32904
+ # Green Hills C++ Compiler
32905
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
32907
+ # The C++ compiler must be used to create the archive.
32908
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
32911
+ # GNU C++ compiler with Solaris linker
32912
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
32913
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
32914
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
32915
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
32916
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
32917
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
32919
+ # Commands to make compiler produce verbose output that lists
32920
+ # what "hidden" libraries, object files and flags are used when
32921
+ # linking a shared library.
32922
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
32924
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
32926
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
32927
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
32928
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
32930
+ # Commands to make compiler produce verbose output that lists
32931
+ # what "hidden" libraries, object files and flags are used when
32932
+ # linking a shared library.
32933
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
32936
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
32938
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
32940
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
32948
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
32949
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
32950
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
32951
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32952
+ runpath_var='LD_RUN_PATH'
32954
+ case $cc_basename in
32956
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32957
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32960
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32961
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32966
+ sysv5* | sco3.2v5* | sco5v6*)
32967
+ # Note: We can NOT use -z defs as we might desire, because we do not
32968
+ # link with -lc, and that would cause any symbols used from libc to
32969
+ # always be unresolved, which means just about no library would
32970
+ # ever link correctly. If we're not using GNU ld we use -z text
32971
+ # though, which does catch some bad symbols but isn't as heavy-handed
32973
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
32974
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
32975
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
32976
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
32977
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
32978
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
32979
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
32980
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
32981
+ runpath_var='LD_RUN_PATH'
32983
+ case $cc_basename in
32985
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32986
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32989
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32990
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
32996
+ case $cc_basename in
32998
+ # NonStop-UX NCC 3.20
32999
+ # FIXME: insert proper C++ library support
33000
+ _LT_TAGVAR(ld_shlibs, $1)=no
33003
+ # FIXME: insert proper C++ library support
33004
+ _LT_TAGVAR(ld_shlibs, $1)=no
33010
+ # FIXME: insert proper C++ library support
33011
+ _LT_TAGVAR(ld_shlibs, $1)=no
33015
+ # FIXME: insert proper C++ library support
33016
+ _LT_TAGVAR(ld_shlibs, $1)=no
33020
+ AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
33021
+ test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
33023
+ _LT_TAGVAR(GCC, $1)="$GXX"
33024
+ _LT_TAGVAR(LD, $1)="$LD"
33026
+ ## CAVEAT EMPTOR:
33027
+ ## There is no encapsulation within the following macros, do not change
33028
+ ## the running order or otherwise move them around unless you know exactly
33029
+ ## what you are doing...
33030
+ _LT_SYS_HIDDEN_LIBDEPS($1)
33031
+ _LT_COMPILER_PIC($1)
33032
+ _LT_COMPILER_C_O($1)
33033
+ _LT_COMPILER_FILE_LOCKS($1)
33034
+ _LT_LINKER_SHLIBS($1)
33035
+ _LT_SYS_DYNAMIC_LINKER($1)
33036
+ _LT_LINKER_HARDCODE_LIBPATH($1)
33039
+ fi # test -n "$compiler"
33045
+ with_gnu_ld=$lt_save_with_gnu_ld
33046
+ lt_cv_path_LDCXX=$lt_cv_path_LD
33047
+ lt_cv_path_LD=$lt_save_path_LD
33048
+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
33049
+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
33050
+fi # test "$_lt_caught_CXX_error" != yes
33053
+])# _LT_LANG_CXX_CONFIG
33056
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
33057
+# ---------------------------------
33058
+# Figure out "hidden" library dependencies from verbose
33059
+# compiler output when linking a shared library.
33060
+# Parse the compiler output and extract the necessary
33061
+# objects, libraries and library flags.
33062
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
33063
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
33064
+# Dependencies to place before and after the object being linked:
33065
+_LT_TAGVAR(predep_objects, $1)=
33066
+_LT_TAGVAR(postdep_objects, $1)=
33067
+_LT_TAGVAR(predeps, $1)=
33068
+_LT_TAGVAR(postdeps, $1)=
33069
+_LT_TAGVAR(compiler_lib_search_path, $1)=
33071
+dnl we can't use the lt_simple_compile_test_code here,
33072
+dnl because it contains code intended for an executable,
33073
+dnl not a library. It's possible we should let each
33074
+dnl tag define a new lt_????_link_test_code variable,
33075
+dnl but it's only used here...
33076
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
33078
+void foo (void) { a = 0; }
33080
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
33084
+ Foo (void) { a = 0; }
33089
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
33097
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
33105
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
33106
+public class foo {
33108
+ public void bar (void) {
33114
+dnl Parse the compiler output and extract the necessary
33115
+dnl objects, libraries and library flags.
33116
+if AC_TRY_EVAL(ac_compile); then
33117
+ # Parse the compiler output and extract the necessary
33118
+ # objects, libraries and library flags.
33120
+ # Sentinel used to keep track of whether or not we are before
33121
+ # the conftest object file.
33122
+ pre_test_object_deps_done=no
33124
+ for p in `eval "$output_verbose_link_cmd"`; do
33128
+ # Some compilers place space between "-{L,R}" and the path.
33129
+ # Remove the space.
33130
+ if test $p = "-L" ||
33131
+ test $p = "-R"; then
33138
+ if test "$pre_test_object_deps_done" = no; then
33141
+ # Internal compiler library paths should come after those
33142
+ # provided the user. The postdeps already come after the
33143
+ # user supplied libs so there is no need to process them.
33144
+ if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
33145
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
33147
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
33150
+ # The "-l" case would never come before the object being
33151
+ # linked, so don't bother handling this case.
33154
+ if test -z "$_LT_TAGVAR(postdeps, $1)"; then
33155
+ _LT_TAGVAR(postdeps, $1)="${prev}${p}"
33157
+ _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
33163
+ # This assumes that the test object file only shows up
33164
+ # once in the compiler output.
33165
+ if test "$p" = "conftest.$objext"; then
33166
+ pre_test_object_deps_done=yes
33170
+ if test "$pre_test_object_deps_done" = no; then
33171
+ if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
33172
+ _LT_TAGVAR(predep_objects, $1)="$p"
33174
+ _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
33177
+ if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
33178
+ _LT_TAGVAR(postdep_objects, $1)="$p"
33180
+ _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
33185
+ *) ;; # Ignore the rest.
33191
+ rm -f a.out a.exe
33193
+ echo "libtool.m4: error: problem compiling $1 test program"
33196
+$RM -f confest.$objext
33198
+# PORTME: override above test on systems where it is broken
33199
+m4_if([$1], [CXX],
33202
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
33203
+ # hack all around it, let's just trust "g++" to DTRT.
33204
+ _LT_TAGVAR(predep_objects,$1)=
33205
+ _LT_TAGVAR(postdep_objects,$1)=
33206
+ _LT_TAGVAR(postdeps,$1)=
33210
+ case `$CC -V 2>&1 | sed 5q` in
33214
+ # The more standards-conforming stlport4 library is
33215
+ # incompatible with the Cstd library. Avoid specifying
33216
+ # it if it's in CXXFLAGS. Ignore libCrun as
33217
+ # -library=stlport4 depends on it.
33218
+ case " $CXX $CXXFLAGS " in
33219
+ *" -library=stlport4 "*)
33220
+ solaris_use_stlport4=yes
33224
+ if test "$solaris_use_stlport4" != yes; then
33225
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
33232
+ case $cc_basename in
33234
+ # The more standards-conforming stlport4 library is
33235
+ # incompatible with the Cstd library. Avoid specifying
33236
+ # it if it's in CXXFLAGS. Ignore libCrun as
33237
+ # -library=stlport4 depends on it.
33238
+ case " $CXX $CXXFLAGS " in
33239
+ *" -library=stlport4 "*)
33240
+ solaris_use_stlport4=yes
33244
+ # Adding this requires a known-good setup of shared libraries for
33245
+ # Sun compiler versions before 5.6, else PIC objects from an old
33246
+ # archive will be linked into the output, leading to subtle bugs.
33247
+ if test "$solaris_use_stlport4" != yes; then
33248
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
33256
+case " $_LT_TAGVAR(postdeps, $1) " in
33257
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
33259
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
33260
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
33261
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
33263
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
33264
+ [The directories searched by this compiler when creating a shared library])
33265
+_LT_TAGDECL([], [predep_objects], [1],
33266
+ [Dependencies to place before and after the objects being linked to
33267
+ create a shared library])
33268
+_LT_TAGDECL([], [postdep_objects], [1])
33269
+_LT_TAGDECL([], [predeps], [1])
33270
+_LT_TAGDECL([], [postdeps], [1])
33271
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
33272
+ [The library search path used internally by the compiler when linking
33273
+ a shared library])
33274
+])# _LT_SYS_HIDDEN_LIBDEPS
33279
+# Since AC_PROG_F77 is broken, in that it returns the empty string
33280
+# if there is no fortran compiler, we have our own version here.
33281
+m4_defun([_LT_PROG_F77],
33283
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
33285
+if test -z "$F77" || test "X$F77" = "Xno"; then
33286
+ _lt_disable_F77=yes
33288
+popdef([AC_MSG_ERROR])
33291
+dnl aclocal-1.4 backwards compatibility:
33292
+dnl AC_DEFUN([_LT_PROG_F77], [])
33295
+# _LT_LANG_F77_CONFIG([TAG])
33296
+# --------------------------
33297
+# Ensure that the configuration variables for a Fortran 77 compiler are
33298
+# suitably defined. These variables are subsequently used by _LT_CONFIG
33299
+# to write the compiler configuration to `libtool'.
33300
+m4_defun([_LT_LANG_F77_CONFIG],
33301
+[AC_REQUIRE([_LT_PROG_F77])dnl
33302
+AC_LANG_PUSH(Fortran 77)
33304
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
33305
+_LT_TAGVAR(allow_undefined_flag, $1)=
33306
+_LT_TAGVAR(always_export_symbols, $1)=no
33307
+_LT_TAGVAR(archive_expsym_cmds, $1)=
33308
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
33309
+_LT_TAGVAR(hardcode_direct, $1)=no
33310
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
33311
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
33312
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
33313
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
33314
+_LT_TAGVAR(hardcode_minus_L, $1)=no
33315
+_LT_TAGVAR(hardcode_automatic, $1)=no
33316
+_LT_TAGVAR(inherit_rpath, $1)=no
33317
+_LT_TAGVAR(module_cmds, $1)=
33318
+_LT_TAGVAR(module_expsym_cmds, $1)=
33319
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
33320
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
33321
+_LT_TAGVAR(no_undefined_flag, $1)=
33322
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
33323
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
33325
+# Source file extension for f77 test sources.
33328
+# Object file extension for compiled f77 test sources.
33330
+_LT_TAGVAR(objext, $1)=$objext
33332
+# No sense in running all these tests if we already determined that
33333
+# the F77 compiler isn't working. Some variables (like enable_shared)
33334
+# are currently assumed to apply to all compilers on this platform,
33335
+# and will be corrupted by setting them based on a non-working compiler.
33336
+if test "$_lt_disable_F77" != yes; then
33337
+ # Code to be used in simple compile tests
33338
+ lt_simple_compile_test_code="\
33344
+ # Code to be used in simple link tests
33345
+ lt_simple_link_test_code="\
33350
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
33353
+ # save warnings/boilerplate of simple test code
33354
+ _LT_COMPILER_BOILERPLATE
33355
+ _LT_LINKER_BOILERPLATE
33357
+ # Allow CC to be a program name with arguments.
33362
+ _LT_TAGVAR(compiler, $1)=$CC
33363
+ _LT_CC_BASENAME([$compiler])
33365
+ if test -n "$compiler"; then
33366
+ AC_MSG_CHECKING([if libtool supports shared libraries])
33367
+ AC_MSG_RESULT([$can_build_shared])
33369
+ AC_MSG_CHECKING([whether to build shared libraries])
33370
+ test "$can_build_shared" = "no" && enable_shared=no
33372
+ # On AIX, shared libraries and static libraries use the same namespace, and
33373
+ # are all built from PIC.
33376
+ test "$enable_shared" = yes && enable_static=no
33377
+ if test -n "$RANLIB"; then
33378
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
33379
+ postinstall_cmds='$RANLIB $lib'
33383
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
33384
+ test "$enable_shared" = yes && enable_static=no
33388
+ AC_MSG_RESULT([$enable_shared])
33390
+ AC_MSG_CHECKING([whether to build static libraries])
33391
+ # Make sure either enable_shared or enable_static is yes.
33392
+ test "$enable_shared" = yes || enable_static=yes
33393
+ AC_MSG_RESULT([$enable_static])
33395
+ _LT_TAGVAR(GCC, $1)="$G77"
33396
+ _LT_TAGVAR(LD, $1)="$LD"
33398
+ ## CAVEAT EMPTOR:
33399
+ ## There is no encapsulation within the following macros, do not change
33400
+ ## the running order or otherwise move them around unless you know exactly
33401
+ ## what you are doing...
33402
+ _LT_COMPILER_PIC($1)
33403
+ _LT_COMPILER_C_O($1)
33404
+ _LT_COMPILER_FILE_LOCKS($1)
33405
+ _LT_LINKER_SHLIBS($1)
33406
+ _LT_SYS_DYNAMIC_LINKER($1)
33407
+ _LT_LINKER_HARDCODE_LIBPATH($1)
33410
+ fi # test -n "$compiler"
33414
+fi # test "$_lt_disable_F77" != yes
33417
+])# _LT_LANG_F77_CONFIG
33422
+# Since AC_PROG_FC is broken, in that it returns the empty string
33423
+# if there is no fortran compiler, we have our own version here.
33424
+m4_defun([_LT_PROG_FC],
33426
+pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
33428
+if test -z "$FC" || test "X$FC" = "Xno"; then
33429
+ _lt_disable_FC=yes
33431
+popdef([AC_MSG_ERROR])
33434
+dnl aclocal-1.4 backwards compatibility:
33435
+dnl AC_DEFUN([_LT_PROG_FC], [])
33438
+# _LT_LANG_FC_CONFIG([TAG])
33439
+# -------------------------
33440
+# Ensure that the configuration variables for a Fortran compiler are
33441
+# suitably defined. These variables are subsequently used by _LT_CONFIG
33442
+# to write the compiler configuration to `libtool'.
33443
+m4_defun([_LT_LANG_FC_CONFIG],
33444
+[AC_REQUIRE([_LT_PROG_FC])dnl
33445
+AC_LANG_PUSH(Fortran)
33447
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
33448
+_LT_TAGVAR(allow_undefined_flag, $1)=
33449
+_LT_TAGVAR(always_export_symbols, $1)=no
33450
+_LT_TAGVAR(archive_expsym_cmds, $1)=
33451
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
33452
+_LT_TAGVAR(hardcode_direct, $1)=no
33453
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
33454
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
33455
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
33456
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
33457
+_LT_TAGVAR(hardcode_minus_L, $1)=no
33458
+_LT_TAGVAR(hardcode_automatic, $1)=no
33459
+_LT_TAGVAR(inherit_rpath, $1)=no
33460
+_LT_TAGVAR(module_cmds, $1)=
33461
+_LT_TAGVAR(module_expsym_cmds, $1)=
33462
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
33463
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
33464
+_LT_TAGVAR(no_undefined_flag, $1)=
33465
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
33466
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
33468
+# Source file extension for fc test sources.
33469
+ac_ext=${ac_fc_srcext-f}
33471
+# Object file extension for compiled fc test sources.
33473
+_LT_TAGVAR(objext, $1)=$objext
33475
+# No sense in running all these tests if we already determined that
33476
+# the FC compiler isn't working. Some variables (like enable_shared)
33477
+# are currently assumed to apply to all compilers on this platform,
33478
+# and will be corrupted by setting them based on a non-working compiler.
33479
+if test "$_lt_disable_FC" != yes; then
33480
+ # Code to be used in simple compile tests
33481
+ lt_simple_compile_test_code="\
33487
+ # Code to be used in simple link tests
33488
+ lt_simple_link_test_code="\
33493
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
33496
+ # save warnings/boilerplate of simple test code
33497
+ _LT_COMPILER_BOILERPLATE
33498
+ _LT_LINKER_BOILERPLATE
33500
+ # Allow CC to be a program name with arguments.
33505
+ GCC=$ac_cv_fc_compiler_gnu
33507
+ _LT_TAGVAR(compiler, $1)=$CC
33508
+ _LT_CC_BASENAME([$compiler])
33510
+ if test -n "$compiler"; then
33511
+ AC_MSG_CHECKING([if libtool supports shared libraries])
33512
+ AC_MSG_RESULT([$can_build_shared])
33514
+ AC_MSG_CHECKING([whether to build shared libraries])
33515
+ test "$can_build_shared" = "no" && enable_shared=no
33517
+ # On AIX, shared libraries and static libraries use the same namespace, and
33518
+ # are all built from PIC.
33521
+ test "$enable_shared" = yes && enable_static=no
33522
+ if test -n "$RANLIB"; then
33523
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
33524
+ postinstall_cmds='$RANLIB $lib'
33528
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
33529
+ test "$enable_shared" = yes && enable_static=no
33533
+ AC_MSG_RESULT([$enable_shared])
33535
+ AC_MSG_CHECKING([whether to build static libraries])
33536
+ # Make sure either enable_shared or enable_static is yes.
33537
+ test "$enable_shared" = yes || enable_static=yes
33538
+ AC_MSG_RESULT([$enable_static])
33540
+ _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
33541
+ _LT_TAGVAR(LD, $1)="$LD"
33543
+ ## CAVEAT EMPTOR:
33544
+ ## There is no encapsulation within the following macros, do not change
33545
+ ## the running order or otherwise move them around unless you know exactly
33546
+ ## what you are doing...
33547
+ _LT_SYS_HIDDEN_LIBDEPS($1)
33548
+ _LT_COMPILER_PIC($1)
33549
+ _LT_COMPILER_C_O($1)
33550
+ _LT_COMPILER_FILE_LOCKS($1)
33551
+ _LT_LINKER_SHLIBS($1)
33552
+ _LT_SYS_DYNAMIC_LINKER($1)
33553
+ _LT_LINKER_HARDCODE_LIBPATH($1)
33556
+ fi # test -n "$compiler"
33560
+fi # test "$_lt_disable_FC" != yes
33563
+])# _LT_LANG_FC_CONFIG
33566
+# _LT_LANG_GCJ_CONFIG([TAG])
33567
+# --------------------------
33568
+# Ensure that the configuration variables for the GNU Java Compiler compiler
33569
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
33570
+# to write the compiler configuration to `libtool'.
33571
+m4_defun([_LT_LANG_GCJ_CONFIG],
33572
+[AC_REQUIRE([LT_PROG_GCJ])dnl
33575
+# Source file extension for Java test sources.
33578
+# Object file extension for compiled Java test sources.
33580
+_LT_TAGVAR(objext, $1)=$objext
33582
+# Code to be used in simple compile tests
33583
+lt_simple_compile_test_code="class foo {}"
33585
+# Code to be used in simple link tests
33586
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
33588
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
33591
+# save warnings/boilerplate of simple test code
33592
+_LT_COMPILER_BOILERPLATE
33593
+_LT_LINKER_BOILERPLATE
33595
+# Allow CC to be a program name with arguments.
33601
+_LT_TAGVAR(compiler, $1)=$CC
33602
+_LT_TAGVAR(LD, $1)="$LD"
33603
+_LT_CC_BASENAME([$compiler])
33605
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
33606
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
33608
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
33611
+## There is no encapsulation within the following macros, do not change
33612
+## the running order or otherwise move them around unless you know exactly
33613
+## what you are doing...
33614
+if test -n "$compiler"; then
33615
+ _LT_COMPILER_NO_RTTI($1)
33616
+ _LT_COMPILER_PIC($1)
33617
+ _LT_COMPILER_C_O($1)
33618
+ _LT_COMPILER_FILE_LOCKS($1)
33619
+ _LT_LINKER_SHLIBS($1)
33620
+ _LT_LINKER_HARDCODE_LIBPATH($1)
33629
+])# _LT_LANG_GCJ_CONFIG
33632
+# _LT_LANG_RC_CONFIG([TAG])
33633
+# -------------------------
33634
+# Ensure that the configuration variables for the Windows resource compiler
33635
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
33636
+# to write the compiler configuration to `libtool'.
33637
+m4_defun([_LT_LANG_RC_CONFIG],
33638
+[AC_REQUIRE([LT_PROG_RC])dnl
33641
+# Source file extension for RC test sources.
33644
+# Object file extension for compiled RC test sources.
33646
+_LT_TAGVAR(objext, $1)=$objext
33648
+# Code to be used in simple compile tests
33649
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
33651
+# Code to be used in simple link tests
33652
+lt_simple_link_test_code="$lt_simple_compile_test_code"
33654
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
33657
+# save warnings/boilerplate of simple test code
33658
+_LT_COMPILER_BOILERPLATE
33659
+_LT_LINKER_BOILERPLATE
33661
+# Allow CC to be a program name with arguments.
33665
+CC=${RC-"windres"}
33667
+_LT_TAGVAR(compiler, $1)=$CC
33668
+_LT_CC_BASENAME([$compiler])
33669
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
33671
+if test -n "$compiler"; then
33679
+])# _LT_LANG_RC_CONFIG
33684
+AC_DEFUN([LT_PROG_GCJ],
33685
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
33686
+ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
33687
+ [AC_CHECK_TOOL(GCJ, gcj,)
33688
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
33689
+ AC_SUBST(GCJFLAGS)])])[]dnl
33693
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
33694
+dnl aclocal-1.4 backwards compatibility:
33695
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
33700
+AC_DEFUN([LT_PROG_RC],
33701
+[AC_CHECK_TOOL(RC, windres,)
33705
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
33706
+dnl aclocal-1.4 backwards compatibility:
33707
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
33712
+# If we don't have a new enough Autoconf to choose the best grep
33713
+# available, choose the one first in the user's PATH.
33714
+m4_defun([_LT_DECL_EGREP],
33715
+[AC_REQUIRE([AC_PROG_EGREP])dnl
33716
+AC_REQUIRE([AC_PROG_FGREP])dnl
33717
+test -z "$GREP" && GREP=grep
33718
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
33719
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
33720
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
33721
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
33726
+# _LT_DECL_OBJDUMP
33728
+# If we don't have a new enough Autoconf to choose the best objdump
33729
+# available, choose the one first in the user's PATH.
33730
+m4_defun([_LT_DECL_OBJDUMP],
33731
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
33732
+test -z "$OBJDUMP" && OBJDUMP=objdump
33733
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
33734
+AC_SUBST([OBJDUMP])
33740
+# Check for a fully-functional sed program, that truncates
33741
+# as few characters as possible. Prefer GNU sed if found.
33742
+m4_defun([_LT_DECL_SED],
33744
+test -z "$SED" && SED=sed
33745
+Xsed="$SED -e 1s/^X//"
33746
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
33747
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
33748
+ [Sed that helps us avoid accidentally triggering echo(1) options like -n])
33751
+m4_ifndef([AC_PROG_SED], [
33752
+############################################################
33753
+# NOTE: This macro has been submitted for inclusion into #
33754
+# GNU Autoconf as AC_PROG_SED. When it is available in #
33755
+# a released version of Autoconf we should remove this #
33756
+# macro and use it instead. #
33757
+############################################################
33759
+m4_defun([AC_PROG_SED],
33760
+[AC_MSG_CHECKING([for a sed that does not truncate output])
33761
+AC_CACHE_VAL(lt_cv_path_SED,
33762
+[# Loop through the user's path and test for sed and gsed.
33763
+# Then use that list of sed's as ones to test for truncation.
33764
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33765
+for as_dir in $PATH
33768
+ test -z "$as_dir" && as_dir=.
33769
+ for lt_ac_prog in sed gsed; do
33770
+ for ac_exec_ext in '' $ac_executable_extensions; do
33771
+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
33772
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
33780
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
33781
+# along with /bin/sed that truncates output.
33782
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
33783
+ test ! -f $lt_ac_sed && continue
33784
+ cat /dev/null > conftest.in
33786
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
33787
+ # Check for GNU sed and select it if it is found.
33788
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
33789
+ lt_cv_path_SED=$lt_ac_sed
33793
+ cat conftest.in conftest.in >conftest.tmp
33794
+ mv conftest.tmp conftest.in
33795
+ cp conftest.in conftest.nl
33796
+ echo >>conftest.nl
33797
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
33798
+ cmp -s conftest.out conftest.nl || break
33799
+ # 10000 chars as input seems more than enough
33800
+ test $lt_ac_count -gt 10 && break
33801
+ lt_ac_count=`expr $lt_ac_count + 1`
33802
+ if test $lt_ac_count -gt $lt_ac_max; then
33803
+ lt_ac_max=$lt_ac_count
33804
+ lt_cv_path_SED=$lt_ac_sed
33809
+SED=$lt_cv_path_SED
33811
+AC_MSG_RESULT([$SED])
33816
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
33817
+dnl aclocal-1.4 backwards compatibility:
33818
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
33821
+# _LT_CHECK_SHELL_FEATURES
33822
+# ------------------------
33823
+# Find out whether the shell is Bourne or XSI compatible,
33824
+# or has some other useful features.
33825
+m4_defun([_LT_CHECK_SHELL_FEATURES],
33826
+[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
33827
+# Try some XSI features
33829
+( _lt_dummy="a/b/c"
33830
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
33832
+ && eval 'test $(( 1 + 1 )) -eq 2 \
33833
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
33835
+AC_MSG_RESULT([$xsi_shell])
33836
+_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
33838
+AC_MSG_CHECKING([whether the shell understands "+="])
33839
+lt_shell_append=no
33840
+( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
33841
+ >/dev/null 2>&1 \
33842
+ && lt_shell_append=yes
33843
+AC_MSG_RESULT([$lt_shell_append])
33844
+_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
33846
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33851
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
33853
+# test EBCDIC or ASCII
33854
+case `echo X|tr X '\101'` in
33855
+ A) # ASCII based system
33856
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
33857
+ lt_SP2NL='tr \040 \012'
33858
+ lt_NL2SP='tr \015\012 \040\040'
33860
+ *) # EBCDIC based system
33861
+ lt_SP2NL='tr \100 \n'
33862
+ lt_NL2SP='tr \r\n \100\100'
33865
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
33866
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
33867
+])# _LT_CHECK_SHELL_FEATURES
33870
+# _LT_PROG_XSI_SHELLFNS
33871
+# ---------------------
33872
+# Bourne and XSI compatible variants of some useful shell functions.
33873
+m4_defun([_LT_PROG_XSI_SHELLFNS],
33874
+[case $xsi_shell in
33876
+ cat << \_LT_EOF >> "$cfgfile"
33878
+# func_dirname file append nondir_replacement
33879
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33880
+# otherwise set result to NONDIR_REPLACEMENT.
33884
+ */*) func_dirname_result="${1%/*}${2}" ;;
33885
+ * ) func_dirname_result="${3}" ;;
33889
+# func_basename file
33892
+ func_basename_result="${1##*/}"
33895
+# func_dirname_and_basename file append nondir_replacement
33896
+# perform func_basename and func_dirname in a single function
33898
+# dirname: Compute the dirname of FILE. If nonempty,
33899
+# add APPEND to the result, otherwise set result
33900
+# to NONDIR_REPLACEMENT.
33901
+# value returned in "$func_dirname_result"
33902
+# basename: Compute filename of FILE.
33903
+# value retuned in "$func_basename_result"
33904
+# Implementation must be kept synchronized with func_dirname
33905
+# and func_basename. For efficiency, we do not delegate to
33906
+# those functions but instead duplicate the functionality here.
33907
+func_dirname_and_basename ()
33910
+ */*) func_dirname_result="${1%/*}${2}" ;;
33911
+ * ) func_dirname_result="${3}" ;;
33913
+ func_basename_result="${1##*/}"
33916
+# func_stripname prefix suffix name
33917
+# strip PREFIX and SUFFIX off of NAME.
33918
+# PREFIX and SUFFIX must not contain globbing or regex special
33919
+# characters, hashes, percent signs, but SUFFIX may contain a leading
33920
+# dot (in which case that matches only a dot).
33923
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33924
+ # positional parameters, so assign one to ordinary parameter first.
33925
+ func_stripname_result=${3}
33926
+ func_stripname_result=${func_stripname_result#"${1}"}
33927
+ func_stripname_result=${func_stripname_result%"${2}"}
33933
+ func_opt_split_opt=${1%%=*}
33934
+ func_opt_split_arg=${1#*=}
33937
+# func_lo2o object
33941
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33942
+ *) func_lo2o_result=${1} ;;
33946
+# func_xform libobj-or-source
33949
+ func_xform_result=${1%.*}.lo
33952
+# func_arith arithmetic-term...
33955
+ func_arith_result=$(( $[*] ))
33959
+# STRING may not start with a hyphen.
33962
+ func_len_result=${#1}
33967
+ *) # Bourne compatible functions.
33968
+ cat << \_LT_EOF >> "$cfgfile"
33970
+# func_dirname file append nondir_replacement
33971
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33972
+# otherwise set result to NONDIR_REPLACEMENT.
33975
+ # Extract subdirectory from the argument.
33976
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33977
+ if test "X$func_dirname_result" = "X${1}"; then
33978
+ func_dirname_result="${3}"
33980
+ func_dirname_result="$func_dirname_result${2}"
33984
+# func_basename file
33987
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33990
+dnl func_dirname_and_basename
33991
+dnl A portable version of this function is already defined in general.m4sh
33992
+dnl so there is no need for it here.
33994
+# func_stripname prefix suffix name
33995
+# strip PREFIX and SUFFIX off of NAME.
33996
+# PREFIX and SUFFIX must not contain globbing or regex special
33997
+# characters, hashes, percent signs, but SUFFIX may contain a leading
33998
+# dot (in which case that matches only a dot).
33999
+# func_strip_suffix prefix name
34003
+ .*) func_stripname_result=`$ECHO "X${3}" \
34004
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34005
+ *) func_stripname_result=`$ECHO "X${3}" \
34006
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
34011
+my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
34012
+my_sed_long_arg='1s/^-[[^=]]*=//'
34017
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34018
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
34021
+# func_lo2o object
34024
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
34027
+# func_xform libobj-or-source
34030
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
34033
+# func_arith arithmetic-term...
34036
+ func_arith_result=`expr "$[@]"`
34040
+# STRING may not start with a hyphen.
34043
+ func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
34049
+case $lt_shell_append in
34051
+ cat << \_LT_EOF >> "$cfgfile"
34053
+# func_append var value
34054
+# Append VALUE to the end of shell variable VAR.
34057
+ eval "$[1]+=\$[2]"
34062
+ cat << \_LT_EOF >> "$cfgfile"
34064
+# func_append var value
34065
+# Append VALUE to the end of shell variable VAR.
34068
+ eval "$[1]=\$$[1]\$[2]"
34075
Index: sid/m4/ltoptions.m4
34076
===================================================================
34078
+++ sid/m4/ltoptions.m4
34080
+# Helper functions for option handling. -*- Autoconf -*-
34082
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
34083
+# Written by Gary V. Vaughan, 2004
34085
+# This file is free software; the Free Software Foundation gives
34086
+# unlimited permission to copy and/or distribute it, with or without
34087
+# modifications, as long as this notice is preserved.
34089
+# serial 6 ltoptions.m4
34091
+# This is to help aclocal find these macros, as it can't see m4_define.
34092
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
34095
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
34096
+# ------------------------------------------
34097
+m4_define([_LT_MANGLE_OPTION],
34098
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
34101
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
34102
+# ---------------------------------------
34103
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
34104
+# matching handler defined, dispatch to it. Other OPTION-NAMEs are
34105
+# saved as a flag.
34106
+m4_define([_LT_SET_OPTION],
34107
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
34108
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
34109
+ _LT_MANGLE_DEFUN([$1], [$2]),
34110
+ [m4_warning([Unknown $1 option `$2'])])[]dnl
34114
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
34115
+# ------------------------------------------------------------
34116
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
34117
+m4_define([_LT_IF_OPTION],
34118
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
34121
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
34122
+# -------------------------------------------------------
34123
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
34125
+m4_define([_LT_UNLESS_OPTIONS],
34126
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
34127
+ [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
34128
+ [m4_define([$0_found])])])[]dnl
34129
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
34134
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
34135
+# ----------------------------------------
34136
+# OPTION-LIST is a space-separated list of Libtool options associated
34137
+# with MACRO-NAME. If any OPTION has a matching handler declared with
34138
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
34139
+# the unknown option and exit.
34140
+m4_defun([_LT_SET_OPTIONS],
34142
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
34143
+ [_LT_SET_OPTION([$1], _LT_Option)])
34145
+m4_if([$1],[LT_INIT],[
34147
+ dnl Simply set some default values (i.e off) if boolean options were not
34149
+ _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
34151
+ _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
34154
+ dnl If no reference was made to various pairs of opposing options, then
34155
+ dnl we run the default mode handler for the pair. For example, if neither
34156
+ dnl `shared' nor `disable-shared' was passed, we enable building of shared
34157
+ dnl archives by default:
34158
+ _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
34159
+ _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
34160
+ _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
34161
+ _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
34162
+ [_LT_ENABLE_FAST_INSTALL])
34164
+])# _LT_SET_OPTIONS
34167
+## --------------------------------- ##
34168
+## Macros to handle LT_INIT options. ##
34169
+## --------------------------------- ##
34171
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
34172
+# -----------------------------------------
34173
+m4_define([_LT_MANGLE_DEFUN],
34174
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
34177
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
34178
+# -----------------------------------------------
34179
+m4_define([LT_OPTION_DEFINE],
34180
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
34181
+])# LT_OPTION_DEFINE
34186
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
34189
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
34190
+[_LT_SET_OPTION([LT_INIT], [dlopen])
34191
+AC_DIAGNOSE([obsolete],
34192
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
34193
+put the `dlopen' option into LT_INIT's first parameter.])
34196
+dnl aclocal-1.4 backwards compatibility:
34197
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
34202
+# Declare package support for building win32 dll's.
34203
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
34204
+[enable_win32_dll=yes
34207
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
34208
+ AC_CHECK_TOOL(AS, as, false)
34209
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
34210
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
34214
+test -z "$AS" && AS=as
34215
+_LT_DECL([], [AS], [0], [Assembler program])dnl
34217
+test -z "$DLLTOOL" && DLLTOOL=dlltool
34218
+_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
34220
+test -z "$OBJDUMP" && OBJDUMP=objdump
34221
+_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
34224
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
34225
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
34226
+_LT_SET_OPTION([LT_INIT], [win32-dll])
34227
+AC_DIAGNOSE([obsolete],
34228
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
34229
+put the `win32-dll' option into LT_INIT's first parameter.])
34232
+dnl aclocal-1.4 backwards compatibility:
34233
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
34236
+# _LT_ENABLE_SHARED([DEFAULT])
34237
+# ----------------------------
34238
+# implement the --enable-shared flag, and supports the `shared' and
34239
+# `disable-shared' LT_INIT options.
34240
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
34241
+m4_define([_LT_ENABLE_SHARED],
34242
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
34243
+AC_ARG_ENABLE([shared],
34244
+ [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
34245
+ [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
34246
+ [p=${PACKAGE-default}
34247
+ case $enableval in
34248
+ yes) enable_shared=yes ;;
34249
+ no) enable_shared=no ;;
34252
+ # Look at the argument we got. We use all the common list separators.
34253
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34254
+ for pkg in $enableval; do
34255
+ IFS="$lt_save_ifs"
34256
+ if test "X$pkg" = "X$p"; then
34257
+ enable_shared=yes
34260
+ IFS="$lt_save_ifs"
34263
+ [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
34265
+ _LT_DECL([build_libtool_libs], [enable_shared], [0],
34266
+ [Whether or not to build shared libraries])
34267
+])# _LT_ENABLE_SHARED
34269
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
34270
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
34273
+AC_DEFUN([AC_ENABLE_SHARED],
34274
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
34277
+AC_DEFUN([AC_DISABLE_SHARED],
34278
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
34281
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
34282
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
34284
+dnl aclocal-1.4 backwards compatibility:
34285
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
34286
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
34290
+# _LT_ENABLE_STATIC([DEFAULT])
34291
+# ----------------------------
34292
+# implement the --enable-static flag, and support the `static' and
34293
+# `disable-static' LT_INIT options.
34294
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
34295
+m4_define([_LT_ENABLE_STATIC],
34296
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
34297
+AC_ARG_ENABLE([static],
34298
+ [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
34299
+ [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
34300
+ [p=${PACKAGE-default}
34301
+ case $enableval in
34302
+ yes) enable_static=yes ;;
34303
+ no) enable_static=no ;;
34306
+ # Look at the argument we got. We use all the common list separators.
34307
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34308
+ for pkg in $enableval; do
34309
+ IFS="$lt_save_ifs"
34310
+ if test "X$pkg" = "X$p"; then
34311
+ enable_static=yes
34314
+ IFS="$lt_save_ifs"
34317
+ [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
34319
+ _LT_DECL([build_old_libs], [enable_static], [0],
34320
+ [Whether or not to build static libraries])
34321
+])# _LT_ENABLE_STATIC
34323
+LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
34324
+LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
34327
+AC_DEFUN([AC_ENABLE_STATIC],
34328
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
34331
+AC_DEFUN([AC_DISABLE_STATIC],
34332
+[_LT_SET_OPTION([LT_INIT], [disable-static])
34335
+AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
34336
+AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
34338
+dnl aclocal-1.4 backwards compatibility:
34339
+dnl AC_DEFUN([AM_ENABLE_STATIC], [])
34340
+dnl AC_DEFUN([AM_DISABLE_STATIC], [])
34344
+# _LT_ENABLE_FAST_INSTALL([DEFAULT])
34345
+# ----------------------------------
34346
+# implement the --enable-fast-install flag, and support the `fast-install'
34347
+# and `disable-fast-install' LT_INIT options.
34348
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
34349
+m4_define([_LT_ENABLE_FAST_INSTALL],
34350
+[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
34351
+AC_ARG_ENABLE([fast-install],
34352
+ [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
34353
+ [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
34354
+ [p=${PACKAGE-default}
34355
+ case $enableval in
34356
+ yes) enable_fast_install=yes ;;
34357
+ no) enable_fast_install=no ;;
34359
+ enable_fast_install=no
34360
+ # Look at the argument we got. We use all the common list separators.
34361
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34362
+ for pkg in $enableval; do
34363
+ IFS="$lt_save_ifs"
34364
+ if test "X$pkg" = "X$p"; then
34365
+ enable_fast_install=yes
34368
+ IFS="$lt_save_ifs"
34371
+ [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
34373
+_LT_DECL([fast_install], [enable_fast_install], [0],
34374
+ [Whether or not to optimize for fast installation])dnl
34375
+])# _LT_ENABLE_FAST_INSTALL
34377
+LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
34378
+LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
34381
+AU_DEFUN([AC_ENABLE_FAST_INSTALL],
34382
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
34383
+AC_DIAGNOSE([obsolete],
34384
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
34385
+the `fast-install' option into LT_INIT's first parameter.])
34388
+AU_DEFUN([AC_DISABLE_FAST_INSTALL],
34389
+[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
34390
+AC_DIAGNOSE([obsolete],
34391
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
34392
+the `disable-fast-install' option into LT_INIT's first parameter.])
34395
+dnl aclocal-1.4 backwards compatibility:
34396
+dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
34397
+dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
34400
+# _LT_WITH_PIC([MODE])
34401
+# --------------------
34402
+# implement the --with-pic flag, and support the `pic-only' and `no-pic'
34403
+# LT_INIT options.
34404
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
34405
+m4_define([_LT_WITH_PIC],
34406
+[AC_ARG_WITH([pic],
34407
+ [AS_HELP_STRING([--with-pic],
34408
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
34409
+ [pic_mode="$withval"],
34410
+ [pic_mode=default])
34412
+test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
34414
+_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
34417
+LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
34418
+LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
34421
+AU_DEFUN([AC_LIBTOOL_PICMODE],
34422
+[_LT_SET_OPTION([LT_INIT], [pic-only])
34423
+AC_DIAGNOSE([obsolete],
34424
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
34425
+put the `pic-only' option into LT_INIT's first parameter.])
34428
+dnl aclocal-1.4 backwards compatibility:
34429
+dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
34431
+## ----------------- ##
34432
+## LTDL_INIT Options ##
34433
+## ----------------- ##
34435
+m4_define([_LTDL_MODE], [])
34436
+LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
34437
+ [m4_define([_LTDL_MODE], [nonrecursive])])
34438
+LT_OPTION_DEFINE([LTDL_INIT], [recursive],
34439
+ [m4_define([_LTDL_MODE], [recursive])])
34440
+LT_OPTION_DEFINE([LTDL_INIT], [subproject],
34441
+ [m4_define([_LTDL_MODE], [subproject])])
34443
+m4_define([_LTDL_TYPE], [])
34444
+LT_OPTION_DEFINE([LTDL_INIT], [installable],
34445
+ [m4_define([_LTDL_TYPE], [installable])])
34446
+LT_OPTION_DEFINE([LTDL_INIT], [convenience],
34447
+ [m4_define([_LTDL_TYPE], [convenience])])
34448
Index: sid/m4/ltsugar.m4
34449
===================================================================
34451
+++ sid/m4/ltsugar.m4
34453
+# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
34455
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
34456
+# Written by Gary V. Vaughan, 2004
34458
+# This file is free software; the Free Software Foundation gives
34459
+# unlimited permission to copy and/or distribute it, with or without
34460
+# modifications, as long as this notice is preserved.
34462
+# serial 6 ltsugar.m4
34464
+# This is to help aclocal find these macros, as it can't see m4_define.
34465
+AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
34468
+# lt_join(SEP, ARG1, [ARG2...])
34469
+# -----------------------------
34470
+# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
34471
+# associated separator.
34472
+# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
34473
+# versions in m4sugar had bugs.
34474
+m4_define([lt_join],
34475
+[m4_if([$#], [1], [],
34476
+ [$#], [2], [[$2]],
34477
+ [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
34478
+m4_define([_lt_join],
34479
+[m4_if([$#$2], [2], [],
34480
+ [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
34486
+# Manipulate m4 lists.
34487
+# These macros are necessary as long as will still need to support
34488
+# Autoconf-2.59 which quotes differently.
34489
+m4_define([lt_car], [[$1]])
34490
+m4_define([lt_cdr],
34491
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
34493
+ [m4_dquote(m4_shift($@))])])
34494
+m4_define([lt_unquote], $1)
34497
+# lt_append(MACRO-NAME, STRING, [SEPARATOR])
34498
+# ------------------------------------------
34499
+# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
34500
+# Note that neither SEPARATOR nor STRING are expanded; they are appended
34501
+# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
34502
+# No SEPARATOR is output if MACRO-NAME was previously undefined (different
34503
+# than defined and empty).
34505
+# This macro is needed until we can rely on Autoconf 2.62, since earlier
34506
+# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
34507
+m4_define([lt_append],
34509
+ m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
34513
+# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
34514
+# ----------------------------------------------------------
34515
+# Produce a SEP delimited list of all paired combinations of elements of
34516
+# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
34517
+# has the form PREFIXmINFIXSUFFIXn.
34518
+# Needed until we can rely on m4_combine added in Autoconf 2.62.
34519
+m4_define([lt_combine],
34520
+[m4_if(m4_eval([$# > 3]), [1],
34521
+ [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
34522
+[[m4_foreach([_Lt_prefix], [$2],
34523
+ [m4_foreach([_Lt_suffix],
34524
+ ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
34525
+ [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
34528
+# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
34529
+# -----------------------------------------------------------------------
34530
+# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
34531
+# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
34532
+m4_define([lt_if_append_uniq],
34534
+ [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
34535
+ [lt_append([$1], [$2], [$3])$4],
34537
+ [lt_append([$1], [$2], [$3])$4])])
34540
+# lt_dict_add(DICT, KEY, VALUE)
34541
+# -----------------------------
34542
+m4_define([lt_dict_add],
34543
+[m4_define([$1($2)], [$3])])
34546
+# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
34547
+# --------------------------------------------
34548
+m4_define([lt_dict_add_subkey],
34549
+[m4_define([$1($2:$3)], [$4])])
34552
+# lt_dict_fetch(DICT, KEY, [SUBKEY])
34553
+# ----------------------------------
34554
+m4_define([lt_dict_fetch],
34556
+ m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
34557
+ m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
34560
+# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
34561
+# -----------------------------------------------------------------
34562
+m4_define([lt_if_dict_fetch],
34563
+[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
34568
+# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
34569
+# --------------------------------------------------------------
34570
+m4_define([lt_dict_filter],
34571
+[m4_if([$5], [], [],
34572
+ [lt_join(m4_quote(m4_default([$4], [[, ]])),
34573
+ lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
34574
+ [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
34576
Index: sid/m4/ltversion.m4
34577
===================================================================
34579
+++ sid/m4/ltversion.m4
34581
+# ltversion.m4 -- version numbers -*- Autoconf -*-
34583
+# Copyright (C) 2004 Free Software Foundation, Inc.
34584
+# Written by Scott James Remnant, 2004
34586
+# This file is free software; the Free Software Foundation gives
34587
+# unlimited permission to copy and/or distribute it, with or without
34588
+# modifications, as long as this notice is preserved.
34590
+# Generated from ltversion.in.
34592
+# serial 3012 ltversion.m4
34593
+# This file is part of GNU Libtool
34595
+m4_define([LT_PACKAGE_VERSION], [2.2.6])
34596
+m4_define([LT_PACKAGE_REVISION], [1.3012])
34598
+AC_DEFUN([LTVERSION_VERSION],
34599
+[macro_version='2.2.6'
34600
+macro_revision='1.3012'
34601
+_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
34602
+_LT_DECL(, macro_revision, 0)
34604
Index: sid/m4/lt~obsolete.m4
34605
===================================================================
34607
+++ sid/m4/lt~obsolete.m4
34609
+# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
34611
+# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
34612
+# Written by Scott James Remnant, 2004.
34614
+# This file is free software; the Free Software Foundation gives
34615
+# unlimited permission to copy and/or distribute it, with or without
34616
+# modifications, as long as this notice is preserved.
34618
+# serial 4 lt~obsolete.m4
34620
+# These exist entirely to fool aclocal when bootstrapping libtool.
34622
+# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
34623
+# which have later been changed to m4_define as they aren't part of the
34624
+# exported API, or moved to Autoconf or Automake where they belong.
34626
+# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
34627
+# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
34628
+# using a macro with the same name in our local m4/libtool.m4 it'll
34629
+# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
34630
+# and doesn't know about Autoconf macros at all.)
34632
+# So we provide this file, which has a silly filename so it's always
34633
+# included after everything else. This provides aclocal with the
34634
+# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
34635
+# because those macros already exist, or will be overwritten later.
34636
+# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
34638
+# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
34639
+# Yes, that means every name once taken will need to remain here until
34640
+# we give up compatibility with versions before 1.7, at which point
34641
+# we need to keep only those names which we still refer to.
34643
+# This is to help aclocal find these macros, as it can't see m4_define.
34644
+AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
34646
+m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
34647
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
34648
+m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
34649
+m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
34650
+m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
34651
+m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
34652
+m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
34653
+m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
34654
+m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
34655
+m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
34656
+m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
34657
+m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
34658
+m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
34659
+m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
34660
+m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
34661
+m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
34662
+m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
34663
+m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
34664
+m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
34665
+m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
34666
+m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
34667
+m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
34668
+m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
34669
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
34670
+m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
34671
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
34672
+m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
34673
+m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
34674
+m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
34675
+m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
34676
+m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
34677
+m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
34678
+m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
34679
+m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
34680
+m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
34681
+m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
34682
+m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
34683
+m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
34684
+m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
34685
+m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
34686
+m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
34687
+m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
34688
+m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
34689
+m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
34690
+m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
34691
+m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
34692
+m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
34693
+m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
34694
+m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
34695
+m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
34696
+m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
34697
+m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
34698
+m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
34699
+m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
34700
+m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
20589
34701
Index: sid/oop/Makefile.in
20590
34702
===================================================================
20591
34703
--- sid.orig/oop/Makefile.in
20592
34704
+++ sid/oop/Makefile.in
20594
-# Makefile.in generated by automake 1.10 from Makefile.am.
20595
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20596
# @configure_input@
20598
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20599
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20600
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20601
# This Makefile.in is free software; the Free Software Foundation
20602
# gives unlimited permission to copy and/or distribute it,
20603
# with or without modifications, as long as this notice is preserved.
20604
@@ -413,8 +413,8 @@
20605
unique=`for i in $$list; do \
20606
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20608
- $(AWK) ' { files[$$0] = 1; } \
20609
- END { for (i in files) print i; }'`; \
20610
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20611
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20615
@@ -439,8 +439,8 @@
20616
unique=`for i in $$list; do \
20617
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20619
- $(AWK) ' { files[$$0] = 1; } \
20620
- END { for (i in files) print i; }'`; \
20621
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20622
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20623
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20624
test -n "$$unique" || unique=$$empty_fix; \
20625
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20626
@@ -450,13 +450,12 @@
20627
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20628
$(TAGS_FILES) $(LISP)
20631
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20632
unique=`for i in $$list; do \
20633
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20635
- $(AWK) ' { files[$$0] = 1; } \
20636
- END { for (i in files) print i; }'`; \
20637
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20638
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20639
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20640
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
34706
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
34707
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
34708
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
34709
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
34710
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
34711
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
34712
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
34713
+ $(top_srcdir)/configure.in
34714
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
34716
mkinstalldirs = $(install_sh) -d
20642
34717
Index: sid/oop/goops/Makefile.in
20643
34718
===================================================================
20644
34719
--- sid.orig/oop/goops/Makefile.in
20645
34720
+++ sid/oop/goops/Makefile.in
20647
-# Makefile.in generated by automake 1.10 from Makefile.am.
20648
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20649
# @configure_input@
20651
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20652
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20653
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20654
# This Makefile.in is free software; the Free Software Foundation
20655
# gives unlimited permission to copy and/or distribute it,
20656
# with or without modifications, as long as this notice is preserved.
34722
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
34723
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
34724
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
34725
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
34726
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
34727
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
34728
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
34729
+ $(top_srcdir)/configure.in
34730
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
34732
mkinstalldirs = $(install_sh) -d
20657
34733
Index: sid/scripts/Makefile.in
20658
34734
===================================================================
20659
34735
--- sid.orig/scripts/Makefile.in
20660
34736
+++ sid/scripts/Makefile.in
20662
-# Makefile.in generated by automake 1.10 from Makefile.am.
20663
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20664
# @configure_input@
20666
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20667
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20668
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20669
# This Makefile.in is free software; the Free Software Foundation
20670
# gives unlimited permission to copy and/or distribute it,
20671
# with or without modifications, as long as this notice is preserved.
34739
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
34740
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
34741
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
34742
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
34743
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
34744
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
34745
+ $(top_srcdir)/configure.in
34746
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
34748
mkinstalldirs = $(install_sh) -d
20672
34749
Index: sid/srfi/Makefile.in
20673
34750
===================================================================
20674
34751
--- sid.orig/srfi/Makefile.in
20675
34752
+++ sid/srfi/Makefile.in
20677
-# Makefile.in generated by automake 1.10 from Makefile.am.
20678
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20679
# @configure_input@
20681
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20682
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20683
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20684
# This Makefile.in is free software; the Free Software Foundation
20685
# gives unlimited permission to copy and/or distribute it,
20686
# with or without modifications, as long as this notice is preserved.
20688
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
20689
$(libguile_srfi_srfi_60_v_@LIBGUILE_SRFI_SRFI_60_MAJOR@_la_LDFLAGS) \
20691
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
20692
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
20693
depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
20694
am__depfiles_maybe = depfiles
20695
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
20696
@@ -425,8 +425,8 @@
20697
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
20698
if test -f $$p; then \
20699
f=$(am__strip_dir) \
20700
- echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
20701
- $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
20702
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
20703
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
20707
@@ -434,8 +434,8 @@
20708
@$(NORMAL_UNINSTALL)
20709
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
20710
p=$(am__strip_dir) \
20711
- echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
20712
- $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
20713
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
20714
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
20717
clean-libLTLIBRARIES:
20718
@@ -533,8 +533,8 @@
20719
unique=`for i in $$list; do \
20720
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20722
- $(AWK) ' { files[$$0] = 1; } \
20723
- END { for (i in files) print i; }'`; \
20724
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20725
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20729
@@ -546,8 +546,8 @@
20730
unique=`for i in $$list; do \
20731
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20733
- $(AWK) ' { files[$$0] = 1; } \
20734
- END { for (i in files) print i; }'`; \
20735
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20736
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20737
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20738
test -n "$$unique" || unique=$$empty_fix; \
20739
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20740
@@ -557,13 +557,12 @@
20741
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20742
$(TAGS_FILES) $(LISP)
20745
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20746
unique=`for i in $$list; do \
20747
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20749
- $(AWK) ' { files[$$0] = 1; } \
20750
- END { for (i in files) print i; }'`; \
20751
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20752
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20753
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20754
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
34754
$(srfiinclude_HEADERS)
34755
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
34756
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
34757
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
34758
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
34759
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
34760
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
34761
+ $(top_srcdir)/configure.in
34762
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
34764
mkinstalldirs = $(install_sh) -d
20756
34765
Index: sid/test-suite/Makefile.in
20757
34766
===================================================================
20758
34767
--- sid.orig/test-suite/Makefile.in
20759
34768
+++ sid/test-suite/Makefile.in
20761
-# Makefile.in generated by automake 1.10 from Makefile.am.
20762
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20763
# @configure_input@
20765
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20766
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20767
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20768
# This Makefile.in is free software; the Free Software Foundation
20769
# gives unlimited permission to copy and/or distribute it,
20770
# with or without modifications, as long as this notice is preserved.
20771
@@ -456,8 +456,8 @@
20772
unique=`for i in $$list; do \
20773
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20775
- $(AWK) ' { files[$$0] = 1; } \
20776
- END { for (i in files) print i; }'`; \
20777
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20778
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20782
@@ -482,8 +482,8 @@
20783
unique=`for i in $$list; do \
20784
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20786
- $(AWK) ' { files[$$0] = 1; } \
20787
- END { for (i in files) print i; }'`; \
20788
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20789
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20790
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20791
test -n "$$unique" || unique=$$empty_fix; \
20792
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20793
@@ -493,13 +493,12 @@
20794
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20795
$(TAGS_FILES) $(LISP)
20798
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20799
unique=`for i in $$list; do \
20800
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20802
- $(AWK) ' { files[$$0] = 1; } \
20803
- END { for (i in files) print i; }'`; \
20804
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20805
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20806
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20807
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
34770
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
34771
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
34772
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
34773
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
34774
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
34775
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
34776
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
34777
+ $(top_srcdir)/configure.in
34778
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
34780
mkinstalldirs = $(install_sh) -d
20809
34781
Index: sid/test-suite/standalone/Makefile.in
20810
34782
===================================================================
20811
34783
--- sid.orig/test-suite/standalone/Makefile.in
20812
34784
+++ sid/test-suite/standalone/Makefile.in
20814
-# Makefile.in generated by automake 1.10 from Makefile.am.
20815
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
20816
# @configure_input@
20818
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
20819
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
20820
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
20821
# This Makefile.in is free software; the Free Software Foundation
20822
# gives unlimited permission to copy and/or distribute it,
20823
# with or without modifications, as long as this notice is preserved.
20824
@@ -110,7 +110,7 @@
20825
$(LIBTOOLFLAGS) --mode=link $(CCLD) \
20826
$(test_with_guile_module_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
20828
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
20829
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
20830
depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
20831
am__depfiles_maybe = depfiles
20832
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
20833
@@ -624,8 +624,8 @@
20834
unique=`for i in $$list; do \
20835
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20837
- $(AWK) ' { files[$$0] = 1; } \
20838
- END { for (i in files) print i; }'`; \
20839
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
20840
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20844
@@ -637,8 +637,8 @@
20845
unique=`for i in $$list; do \
20846
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20848
- $(AWK) ' { files[$$0] = 1; } \
20849
- END { for (i in files) print i; }'`; \
20850
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20851
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20852
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
20853
test -n "$$unique" || unique=$$empty_fix; \
20854
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
20855
@@ -648,13 +648,12 @@
20856
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
20857
$(TAGS_FILES) $(LISP)
20860
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
20861
unique=`for i in $$list; do \
20862
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20864
- $(AWK) ' { files[$$0] = 1; } \
20865
- END { for (i in files) print i; }'`; \
20866
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
20867
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
20868
test -z "$(CTAGS_ARGS)$$tags$$unique" \
20869
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
34786
$(srcdir)/test-use-srfi.in
34787
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
34788
am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
34789
- $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
34790
+ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
34791
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
34792
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
34793
+ $(top_srcdir)/configure.in
34794
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
34796
mkinstalldirs = $(install_sh) -d