532
544
AC_SUBST(DISABLE_DEPRECATED)
535
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
537
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
540
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
541
# -----------------------------------------------------------
542
# If this macro is not defined by Autoconf, define it here.
543
m4_ifdef([AC_PROVIDE_IFELSE],
545
[m4_define([AC_PROVIDE_IFELSE],
546
[m4_ifdef([AC_PROVIDE_$1],
552
AC_DEFUN([AC_PROG_LIBTOOL],
553
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
554
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
555
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
556
AC_PROVIDE_IFELSE([AC_PROG_CXX],
558
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
560
dnl And a similar setup for Fortran 77 support
561
AC_PROVIDE_IFELSE([AC_PROG_F77],
563
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
566
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
567
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
568
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
569
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
571
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
573
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
575
[ifdef([AC_PROG_GCJ],
576
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
577
ifdef([A][M_PROG_GCJ],
578
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
579
ifdef([LT_AC_PROG_GCJ],
580
[define([LT_AC_PROG_GCJ],
581
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
582
])])# AC_PROG_LIBTOOL
587
AC_DEFUN([_AC_PROG_LIBTOOL],
588
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
589
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
590
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
591
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
593
# This can be used to rebuild libtool when needed
594
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
596
# Always use our own libtool.
597
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
600
# Prevent multiple expansion
601
define([AC_PROG_LIBTOOL], [])
607
AC_DEFUN([AC_LIBTOOL_SETUP],
609
AC_REQUIRE([AC_ENABLE_SHARED])dnl
610
AC_REQUIRE([AC_ENABLE_STATIC])dnl
611
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
612
AC_REQUIRE([AC_CANONICAL_HOST])dnl
613
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
614
AC_REQUIRE([AC_PROG_CC])dnl
615
AC_REQUIRE([AC_PROG_LD])dnl
616
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
617
AC_REQUIRE([AC_PROG_NM])dnl
619
AC_REQUIRE([AC_PROG_LN_S])dnl
620
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
621
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
622
AC_REQUIRE([AC_OBJEXT])dnl
623
AC_REQUIRE([AC_EXEEXT])dnl
547
# nls.m4 serial 3 (gettext-0.15)
548
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
549
dnl This file is free software; the Free Software Foundation
550
dnl gives unlimited permission to copy and/or distribute it,
551
dnl with or without modifications, as long as this notice is preserved.
625
AC_LIBTOOL_SYS_MAX_CMD_LEN
626
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
629
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
630
_LT_AC_PROG_ECHO_BACKSLASH
634
# AIX sometimes has problems with the GCC collect2 program. For some
635
# reason, if we set the COLLECT_NAMES environment variable, the problems
636
# vanish in a puff of smoke.
637
if test "X${COLLECT_NAMES+set}" != Xset; then
644
# Sed substitution that helps us do robust quoting. It backslashifies
645
# metacharacters that are still active within double-quoted strings.
646
Xsed='sed -e 1s/^X//'
647
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
649
# Same as above, but do not quote variable references.
650
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
652
# Sed substitution to delay expansion of an escaped shell variable in a
653
# double_quote_subst'ed string.
654
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
656
# Sed substitution to avoid accidental globbing in evaled expressions
657
no_glob_subst='s/\*/\\\*/g'
663
default_ofile=libtool
666
# All known linkers require a `.a' archive for static linking (except MSVC,
667
# which needs '.lib').
669
ltmain="$ac_aux_dir/ltmain.sh"
670
ofile="$default_ofile"
671
with_gnu_ld="$lt_cv_prog_gnu_ld"
673
AC_CHECK_TOOL(AR, ar, false)
674
AC_CHECK_TOOL(RANLIB, ranlib, :)
675
AC_CHECK_TOOL(STRIP, strip, :)
680
# Set sane defaults for various variables
681
test -z "$AR" && AR=ar
682
test -z "$AR_FLAGS" && AR_FLAGS=cru
683
test -z "$AS" && AS=as
684
test -z "$CC" && CC=cc
685
test -z "$LTCC" && LTCC=$CC
686
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
687
test -z "$DLLTOOL" && DLLTOOL=dlltool
688
test -z "$LD" && LD=ld
689
test -z "$LN_S" && LN_S="ln -s"
690
test -z "$MAGIC_CMD" && MAGIC_CMD=file
691
test -z "$NM" && NM=nm
692
test -z "$SED" && SED=sed
693
test -z "$OBJDUMP" && OBJDUMP=objdump
694
test -z "$RANLIB" && RANLIB=:
695
test -z "$STRIP" && STRIP=:
696
test -z "$ac_objext" && ac_objext=o
698
# Determine commands to create old-style static archives.
699
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
700
old_postinstall_cmds='chmod 644 $oldlib'
701
old_postuninstall_cmds=
703
if test -n "$RANLIB"; then
706
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
709
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
712
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
715
_LT_CC_BASENAME([$compiler])
717
# Only perform the check for file, if the check method requires it
718
case $deplibs_check_method in
720
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
726
_LT_REQUIRED_DARWIN_CHECKS
728
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
729
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
730
enable_win32_dll=yes, enable_win32_dll=no)
732
AC_ARG_ENABLE([libtool-lock],
733
[AC_HELP_STRING([--disable-libtool-lock],
734
[avoid locking (might break parallel builds)])])
735
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
738
[AC_HELP_STRING([--with-pic],
739
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
740
[pic_mode="$withval"],
742
test -z "$pic_mode" && pic_mode=default
744
# Use C for the default configuration in the libtool script
746
AC_LIBTOOL_LANG_C_CONFIG
751
# _LT_AC_SYS_COMPILER
752
# -------------------
753
AC_DEFUN([_LT_AC_SYS_COMPILER],
754
[AC_REQUIRE([AC_PROG_CC])dnl
756
# If no C compiler was specified, use CC.
759
# If no C compiler flags were specified, use CFLAGS.
760
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
762
# Allow CC to be a program name with arguments.
764
])# _LT_AC_SYS_COMPILER
767
# _LT_CC_BASENAME(CC)
768
# -------------------
769
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
770
AC_DEFUN([_LT_CC_BASENAME],
771
[for cc_temp in $1""; do
773
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
774
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
779
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
783
# _LT_COMPILER_BOILERPLATE
784
# ------------------------
785
# Check for compiler boilerplate output or warnings with
786
# the simple compiler test code.
787
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
788
[AC_REQUIRE([LT_AC_PROG_SED])dnl
789
ac_outfile=conftest.$ac_objext
790
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
791
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
792
_lt_compiler_boilerplate=`cat conftest.err`
794
])# _LT_COMPILER_BOILERPLATE
797
# _LT_LINKER_BOILERPLATE
798
# ----------------------
799
# Check for linker boilerplate output or warnings with
800
# the simple link test code.
801
AC_DEFUN([_LT_LINKER_BOILERPLATE],
802
[AC_REQUIRE([LT_AC_PROG_SED])dnl
803
ac_outfile=conftest.$ac_objext
804
echo "$lt_simple_link_test_code" >conftest.$ac_ext
805
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
806
_lt_linker_boilerplate=`cat conftest.err`
808
])# _LT_LINKER_BOILERPLATE
810
# _LT_REQUIRED_DARWIN_CHECKS
811
# --------------------------
812
# Check for some things on darwin
813
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
816
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
817
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
819
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
820
[lt_cv_apple_cc_single_mod=no
821
if test -z "${LT_MULTI_MODULE}"; then
822
# By default we will add the -single_module flag. You can override
823
# by either setting the environment variable LT_MULTI_MODULE
824
# non-empty at configure time, or by adding -multi_module to the
826
echo "int foo(void){return 1;}" > conftest.c
827
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
828
-dynamiclib ${wl}-single_module conftest.c
829
if test -f libconftest.dylib; then
830
lt_cv_apple_cc_single_mod=yes
831
rm -rf libconftest.dylib*
835
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
836
[lt_cv_ld_exported_symbols_list],
837
[lt_cv_ld_exported_symbols_list=no
838
save_LDFLAGS=$LDFLAGS
839
echo "_main" > conftest.sym
840
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
841
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
842
[lt_cv_ld_exported_symbols_list=yes],
843
[lt_cv_ld_exported_symbols_list=no])
844
LDFLAGS="$save_LDFLAGS"
847
rhapsody* | darwin1.[[0123]])
848
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
850
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
852
# if running on 10.5 or later, the deployment target defaults
853
# to the OS version, if on x86, and 10.4, the deployment
854
# target defaults to 10.4. Don't you love it?
855
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
856
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
857
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
859
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
861
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
865
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
866
_lt_dar_single_mod='$single_module'
868
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
869
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
871
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
873
if test "$DSYMUTIL" != ":"; then
874
_lt_dsymutil="~$DSYMUTIL \$lib || :"
882
# _LT_AC_SYS_LIBPATH_AIX
883
# ----------------------
884
# Links a minimal program and checks the executable
885
# for the system default hardcoded library path. In most cases,
886
# this is /usr/lib:/lib, but when the MPI compilers are used
887
# the location of the communication and MPI libs are included too.
888
# If we don't find anything, use the default library path according
889
# to the aix ld manual.
890
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
891
[AC_REQUIRE([LT_AC_PROG_SED])dnl
892
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
894
/Import File Strings/,/^$/ {
900
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
901
# Check for a 64-bit object if we didn't find anything.
902
if test -z "$aix_libpath"; then
903
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
905
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
906
])# _LT_AC_SYS_LIBPATH_AIX
909
# _LT_AC_SHELL_INIT(ARG)
910
# ----------------------
911
AC_DEFUN([_LT_AC_SHELL_INIT],
912
[ifdef([AC_DIVERSION_NOTICE],
913
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
914
[AC_DIVERT_PUSH(NOTICE)])
917
])# _LT_AC_SHELL_INIT
920
# _LT_AC_PROG_ECHO_BACKSLASH
921
# --------------------------
922
# Add some code to the start of the generated configure script which
923
# will find an echo command which doesn't interpret backslashes.
924
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
926
# Check that we are running under the correct shell.
927
SHELL=${CONFIG_SHELL-/bin/sh}
931
# Remove one level of quotation (which was required for Make).
932
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
937
if test "X[$]1" = X--no-reexec; then
938
# Discard the --no-reexec flag, and continue.
940
elif test "X[$]1" = X--fallback-echo; then
941
# Avoid inline document here, it may be left over
943
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
944
# Yippee, $echo works!
947
# Restart under the correct shell.
948
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
951
if test "X[$]1" = X--fallback-echo; then
952
# used as fallback echo
960
# The HP-UX ksh and POSIX shell print the target directory to stdout
962
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
964
if test -z "$ECHO"; then
965
if test "X${echo_test_string+set}" != Xset; then
966
# find a string as large as possible, as long as the shell can cope with it
967
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
968
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
969
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
970
echo_test_string=`eval $cmd` &&
971
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
978
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
979
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
980
test "X$echo_testing_string" = "X$echo_test_string"; then
983
# The Solaris, AIX, and Digital Unix default echo programs unquote
984
# backslashes. This makes it impossible to quote backslashes using
985
# echo "$something" | sed 's/\\/\\\\/g'
987
# So, first we look for a working echo in the user's PATH.
989
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
990
for dir in $PATH /usr/ucb; do
992
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
993
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
994
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
995
test "X$echo_testing_string" = "X$echo_test_string"; then
1002
if test "X$echo" = Xecho; then
1003
# We didn't find a better echo, so look for alternatives.
1004
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1005
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1006
test "X$echo_testing_string" = "X$echo_test_string"; then
1007
# This shell has a builtin print -r that does the trick.
1009
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1010
test "X$CONFIG_SHELL" != X/bin/ksh; then
1011
# If we have ksh, try running configure again with it.
1012
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1013
export ORIGINAL_CONFIG_SHELL
1014
CONFIG_SHELL=/bin/ksh
1016
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1020
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1021
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1022
test "X$echo_testing_string" = "X$echo_test_string"; then
1023
# Cool, printf works
1025
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1026
test "X$echo_testing_string" = 'X\t' &&
1027
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1028
test "X$echo_testing_string" = "X$echo_test_string"; then
1029
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1031
SHELL="$CONFIG_SHELL"
1033
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1034
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1035
test "X$echo_testing_string" = 'X\t' &&
1036
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1037
test "X$echo_testing_string" = "X$echo_test_string"; then
1038
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1040
# maybe with a smaller string...
1043
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1044
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1051
if test "$prev" != 'sed 50q "[$]0"'; then
1052
echo_test_string=`eval $prev`
1053
export echo_test_string
1054
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1056
# Oops. We lost completely, so just stick with echo.
1065
# Copy echo and quote the copy suitably for passing to libtool from
1066
# the Makefile, instead of quoting the original, which is used later.
1068
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1069
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1073
])])# _LT_AC_PROG_ECHO_BACKSLASH
1078
AC_DEFUN([_LT_AC_LOCK],
1079
[AC_ARG_ENABLE([libtool-lock],
1080
[AC_HELP_STRING([--disable-libtool-lock],
1081
[avoid locking (might break parallel builds)])])
1082
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1084
# Some flags need to be propagated to the compiler or linker for good
1088
# Find out which ABI we are using.
1089
echo 'int i;' > conftest.$ac_ext
1090
if AC_TRY_EVAL(ac_compile); then
1091
case `/usr/bin/file conftest.$ac_objext` in
1103
# Find out which ABI we are using.
1104
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1105
if AC_TRY_EVAL(ac_compile); then
1106
if test "$lt_cv_prog_gnu_ld" = yes; then
1107
case `/usr/bin/file conftest.$ac_objext` in
1109
LD="${LD-ld} -melf32bsmip"
1112
LD="${LD-ld} -melf32bmipn32"
1115
LD="${LD-ld} -melf64bmip"
1119
case `/usr/bin/file conftest.$ac_objext` in
1135
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1136
s390*-*linux*|sparc*-*linux*)
1137
# Find out which ABI we are using.
1138
echo 'int i;' > conftest.$ac_ext
1139
if AC_TRY_EVAL(ac_compile); then
1140
case `/usr/bin/file conftest.o` in
1143
x86_64-*kfreebsd*-gnu)
1144
LD="${LD-ld} -m elf_i386_fbsd"
1147
LD="${LD-ld} -m elf_i386"
1149
ppc64-*linux*|powerpc64-*linux*)
1150
LD="${LD-ld} -m elf32ppclinux"
1153
LD="${LD-ld} -m elf_s390"
1156
LD="${LD-ld} -m elf32_sparc"
1162
x86_64-*kfreebsd*-gnu)
1163
LD="${LD-ld} -m elf_x86_64_fbsd"
1166
LD="${LD-ld} -m elf_x86_64"
1168
ppc*-*linux*|powerpc*-*linux*)
1169
LD="${LD-ld} -m elf64ppc"
1172
LD="${LD-ld} -m elf64_s390"
1175
LD="${LD-ld} -m elf64_sparc"
1185
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1186
SAVE_CFLAGS="$CFLAGS"
1187
CFLAGS="$CFLAGS -belf"
1188
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1190
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1192
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1193
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1194
CFLAGS="$SAVE_CFLAGS"
1198
# Find out which ABI we are using.
1199
echo 'int i;' > conftest.$ac_ext
1200
if AC_TRY_EVAL(ac_compile); then
1201
case `/usr/bin/file conftest.o` in
1203
case $lt_cv_prog_gnu_ld in
1204
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1206
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1217
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1218
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1219
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1220
AC_CHECK_TOOL(AS, as, false)
1221
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1226
need_locks="$enable_libtool_lock"
1231
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1232
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1233
# ----------------------------------------------------------------
1234
# Check whether the given compiler option works
1235
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1236
[AC_REQUIRE([LT_AC_PROG_SED])
1237
AC_CACHE_CHECK([$1], [$2],
1239
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1240
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1241
lt_compiler_flag="$3"
1242
# Insert the option either (1) after the last *FLAGS variable, or
1243
# (2) before a word containing "conftest.", or (3) at the end.
1244
# Note that $ac_compile itself does not contain backslashes and begins
1245
# with a dollar sign (not a hyphen), so the echo should work correctly.
1246
# The option is referenced via a variable to avoid confusing sed.
1247
lt_compile=`echo "$ac_compile" | $SED \
1248
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1249
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1250
-e 's:$: $lt_compiler_flag:'`
1251
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1252
(eval "$lt_compile" 2>conftest.err)
1254
cat conftest.err >&AS_MESSAGE_LOG_FD
1255
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1256
if (exit $ac_status) && test -s "$ac_outfile"; then
1257
# The compiler can only warn and ignore the option if not recognized
1258
# So say no if there are warnings other than the usual output.
1259
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1260
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1261
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1268
if test x"[$]$2" = xyes; then
1269
ifelse([$5], , :, [$5])
1271
ifelse([$6], , :, [$6])
1273
])# AC_LIBTOOL_COMPILER_OPTION
1276
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1277
# [ACTION-SUCCESS], [ACTION-FAILURE])
1278
# ------------------------------------------------------------
1279
# Check whether the given compiler option works
1280
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1281
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1282
AC_CACHE_CHECK([$1], [$2],
1284
save_LDFLAGS="$LDFLAGS"
1285
LDFLAGS="$LDFLAGS $3"
1286
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1287
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1288
# The linker can only warn and ignore the option if not recognized
1289
# So say no if there are warnings
1290
if test -s conftest.err; then
1291
# Append any errors to the config.log.
1292
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1293
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1294
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1295
if diff conftest.exp conftest.er2 >/dev/null; then
1303
LDFLAGS="$save_LDFLAGS"
1306
if test x"[$]$2" = xyes; then
1307
ifelse([$4], , :, [$4])
1309
ifelse([$5], , :, [$5])
1311
])# AC_LIBTOOL_LINKER_OPTION
1314
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1315
# --------------------------
1316
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1317
[# find the maximum length of command line arguments
1318
AC_MSG_CHECKING([the maximum length of command line arguments])
1319
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1325
# On DJGPP, this test can blow up pretty badly due to problems in libc
1326
# (any single argument exceeding 2000 bytes causes a buffer overrun
1327
# during glob expansion). Even if it were fixed, the result of this
1328
# check would be larger than it should be.
1329
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1333
# Under GNU Hurd, this test is not required because there is
1334
# no limit to the length of command line arguments.
1335
# Libtool will interpret -1 as no limit whatsoever
1336
lt_cv_sys_max_cmd_len=-1;
1340
# On Win9x/ME, this test blows up -- it succeeds, but takes
1341
# about 5 minutes as the teststring grows exponentially.
1342
# Worse, since 9x/ME are not pre-emptively multitasking,
1343
# you end up with a "frozen" computer, even though with patience
1344
# the test eventually succeeds (with a max line length of 256k).
1345
# Instead, let's just punt: use the minimum linelength reported by
1346
# all of the supported platforms: 8192 (on NT/2K/XP).
1347
lt_cv_sys_max_cmd_len=8192;
1351
# On AmigaOS with pdksh, this test takes hours, literally.
1352
# So we just punt and use a minimum line length of 8192.
1353
lt_cv_sys_max_cmd_len=8192;
1356
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1357
# This has been around since 386BSD, at least. Likely further.
1358
if test -x /sbin/sysctl; then
1359
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1360
elif test -x /usr/sbin/sysctl; then
1361
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1363
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1365
# And add a safety zone
1366
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1367
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1371
# We know the value 262144 and hardcode it with a safety zone (like BSD)
1372
lt_cv_sys_max_cmd_len=196608
1376
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1377
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1378
# nice to cause kernel panics so lets avoid the loop below.
1379
# First set a reasonable default.
1380
lt_cv_sys_max_cmd_len=16384
1382
if test -x /sbin/sysconfig; then
1383
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1384
*1*) lt_cv_sys_max_cmd_len=-1 ;;
1389
lt_cv_sys_max_cmd_len=102400
1391
sysv5* | sco5v6* | sysv4.2uw2*)
1392
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1393
if test -n "$kargmax"; then
1394
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1396
lt_cv_sys_max_cmd_len=32768
1400
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1401
if test -n "$lt_cv_sys_max_cmd_len"; then
1402
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1403
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1405
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1406
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1407
= "XX$teststring") >/dev/null 2>&1 &&
1408
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1409
lt_cv_sys_max_cmd_len=$new_result &&
1410
test $i != 17 # 1/2 MB should be enough
1413
teststring=$teststring$teststring
1416
# Add a significant safety factor because C++ compilers can tack on massive
1417
# amounts of additional arguments before passing them to the linker.
1418
# It appears as though 1/2 is a usable value.
1419
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1424
if test -n $lt_cv_sys_max_cmd_len ; then
1425
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1429
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1432
# _LT_AC_CHECK_DLFCN
1433
# ------------------
1434
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1435
[AC_CHECK_HEADERS(dlfcn.h)dnl
1436
])# _LT_AC_CHECK_DLFCN
1439
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1440
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1441
# ---------------------------------------------------------------------
1442
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1443
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1444
if test "$cross_compiling" = yes; then :
1447
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1448
lt_status=$lt_dlunknown
1449
cat > conftest.$ac_ext <<EOF
1450
[#line __oline__ "configure"
1451
#include "confdefs.h"
1460
# define LT_DLGLOBAL RTLD_GLOBAL
1463
# define LT_DLGLOBAL DL_GLOBAL
1465
# define LT_DLGLOBAL 0
1469
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1470
find out it does not work in some platform. */
1471
#ifndef LT_DLLAZY_OR_NOW
1473
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1476
# define LT_DLLAZY_OR_NOW DL_LAZY
1479
# define LT_DLLAZY_OR_NOW RTLD_NOW
1482
# define LT_DLLAZY_OR_NOW DL_NOW
1484
# define LT_DLLAZY_OR_NOW 0
1492
extern "C" void exit (int);
1495
void fnord() { int i=42;}
1498
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1499
int status = $lt_dlunknown;
1503
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1504
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1505
/* dlclose (self); */
1513
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1514
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1517
x$lt_dlno_uscore) $1 ;;
1518
x$lt_dlneed_uscore) $2 ;;
1519
x$lt_dlunknown|x*) $3 ;;
1522
# compilation failed
1527
])# _LT_AC_TRY_DLOPEN_SELF
1530
# AC_LIBTOOL_DLOPEN_SELF
1531
# ----------------------
1532
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1533
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1534
if test "x$enable_dlopen" != xyes; then
1535
enable_dlopen=unknown
1536
enable_dlopen_self=unknown
1537
enable_dlopen_self_static=unknown
1544
lt_cv_dlopen="load_add_on"
1546
lt_cv_dlopen_self=yes
1550
lt_cv_dlopen="LoadLibrary"
1555
lt_cv_dlopen="dlopen"
1560
# if libdl is installed we need to link against it
1561
AC_CHECK_LIB([dl], [dlopen],
1562
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1565
lt_cv_dlopen_self=yes
1570
AC_CHECK_FUNC([shl_load],
1571
[lt_cv_dlopen="shl_load"],
1572
[AC_CHECK_LIB([dld], [shl_load],
1573
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1574
[AC_CHECK_FUNC([dlopen],
1575
[lt_cv_dlopen="dlopen"],
1576
[AC_CHECK_LIB([dl], [dlopen],
1577
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1578
[AC_CHECK_LIB([svld], [dlopen],
1579
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1580
[AC_CHECK_LIB([dld], [dld_link],
1581
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1590
if test "x$lt_cv_dlopen" != xno; then
1596
case $lt_cv_dlopen in
1598
save_CPPFLAGS="$CPPFLAGS"
1599
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1601
save_LDFLAGS="$LDFLAGS"
1602
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1605
LIBS="$lt_cv_dlopen_libs $LIBS"
1607
AC_CACHE_CHECK([whether a program can dlopen itself],
1608
lt_cv_dlopen_self, [dnl
1609
_LT_AC_TRY_DLOPEN_SELF(
1610
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1611
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1614
if test "x$lt_cv_dlopen_self" = xyes; then
1615
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1616
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1617
lt_cv_dlopen_self_static, [dnl
1618
_LT_AC_TRY_DLOPEN_SELF(
1619
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1620
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1624
CPPFLAGS="$save_CPPFLAGS"
1625
LDFLAGS="$save_LDFLAGS"
1630
case $lt_cv_dlopen_self in
1631
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1632
*) enable_dlopen_self=unknown ;;
1635
case $lt_cv_dlopen_self_static in
1636
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1637
*) enable_dlopen_self_static=unknown ;;
1640
])# AC_LIBTOOL_DLOPEN_SELF
1643
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1644
# ---------------------------------
1645
# Check to see if options -c and -o are simultaneously supported by compiler
1646
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1647
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1648
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1649
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1650
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1651
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1652
$rm -r conftest 2>/dev/null
1656
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1658
lt_compiler_flag="-o out/conftest2.$ac_objext"
1659
# Insert the option either (1) after the last *FLAGS variable, or
1660
# (2) before a word containing "conftest.", or (3) at the end.
1661
# Note that $ac_compile itself does not contain backslashes and begins
1662
# with a dollar sign (not a hyphen), so the echo should work correctly.
1663
lt_compile=`echo "$ac_compile" | $SED \
1664
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1665
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1666
-e 's:$: $lt_compiler_flag:'`
1667
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1668
(eval "$lt_compile" 2>out/conftest.err)
1670
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1671
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1672
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1674
# The compiler can only warn and ignore the option if not recognized
1675
# So say no if there are warnings
1676
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1677
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1678
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1679
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1682
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1684
# SGI C++ compiler will create directory out/ii_files/ for
1685
# template instantiation
1686
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1687
$rm out/* && rmdir out
1692
])# AC_LIBTOOL_PROG_CC_C_O
1695
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1696
# -----------------------------------------
1697
# Check to see if we can do hard links to lock some files if needed
1698
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1699
[AC_REQUIRE([_LT_AC_LOCK])dnl
1701
hard_links="nottested"
1702
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1703
# do not overwrite the value of need_locks provided by the user
1704
AC_MSG_CHECKING([if we can lock with hard links])
1707
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1709
ln conftest.a conftest.b 2>&5 || hard_links=no
1710
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1711
AC_MSG_RESULT([$hard_links])
1712
if test "$hard_links" = no; then
1713
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1719
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1724
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1725
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1726
[rm -f .libs 2>/dev/null
1727
mkdir .libs 2>/dev/null
1728
if test -d .libs; then
1731
# MS-DOS does not allow filenames that begin with a dot.
1734
rmdir .libs 2>/dev/null])
1735
objdir=$lt_cv_objdir
1736
])# AC_LIBTOOL_OBJDIR
1739
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1740
# ----------------------------------------------
1741
# Check hardcoding attributes.
1742
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1743
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1744
_LT_AC_TAGVAR(hardcode_action, $1)=
1745
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1746
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1747
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1749
# We can hardcode non-existant directories.
1750
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1751
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1752
# have to relink, otherwise we might link with an installed library
1753
# when we should be linking with a yet-to-be-installed one
1754
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1755
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1756
# Linking always hardcodes the temporary library directory.
1757
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1759
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1760
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1763
# We cannot hardcode anything, or else we can only hardcode existing
1765
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1767
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1769
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1770
# Fast installation is not supported
1771
enable_fast_install=no
1772
elif test "$shlibpath_overrides_runpath" = yes ||
1773
test "$enable_shared" = no; then
1774
# Fast installation is not necessary
1775
enable_fast_install=needless
1777
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1780
# AC_LIBTOOL_SYS_LIB_STRIP
1781
# ------------------------
1782
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1785
AC_MSG_CHECKING([whether stripping libraries is possible])
1786
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1787
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1788
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1789
AC_MSG_RESULT([yes])
1791
# FIXME - insert some real tests, host_os isn't really good enough
1794
if test -n "$STRIP" ; then
1795
striplib="$STRIP -x"
1796
old_striplib="$STRIP -S"
1797
AC_MSG_RESULT([yes])
1807
])# AC_LIBTOOL_SYS_LIB_STRIP
1810
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1811
# -----------------------------
1812
# PORTME Fill in your ld.so characteristics
1813
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1814
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1815
AC_MSG_CHECKING([dynamic linker characteristics])
1817
libname_spec='lib$name'
1825
shlibpath_overrides_runpath=unknown
1827
dynamic_linker="$host_os ld.so"
1828
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1830
if test "$GCC" = yes; then
1832
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1833
*) lt_awk_arg="/^libraries:/" ;;
1835
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1836
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1837
# if the path contains ";" then we assume it to be the separator
1838
# otherwise default to the standard path separator (i.e. ":") - it is
1839
# assumed that no part of a normal pathname contains ";" but that should
1840
# okay in the real world where ";" in dirpaths is itself problematic.
1841
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1843
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1845
# Ok, now we have the path, separated by spaces, we can step through it
1846
# and add multilib dir if necessary.
1847
lt_tmp_lt_search_path_spec=
1848
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1849
for lt_sys_path in $lt_search_path_spec; do
1850
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1851
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1853
test -d "$lt_sys_path" && \
1854
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1857
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1858
BEGIN {RS=" "; FS="/|\n";} {
1861
for (lt_i = NF; lt_i > 0; lt_i--) {
1862
if ($lt_i != "" && $lt_i != ".") {
1863
if ($lt_i == "..") {
1866
if (lt_count == 0) {
1867
lt_foo="/" $lt_i lt_foo;
1874
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1875
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1877
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1879
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1881
need_lib_prefix=unknown
1882
hardcode_into_libs=no
1884
# when you set need_version to no, make sure it does not cause -set_version
1885
# flags to be left without arguments
1886
need_version=unknown
1891
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1892
shlibpath_var=LIBPATH
1894
# AIX 3 has no versioning support, so we append a major version to the name.
1895
soname_spec='${libname}${release}${shared_ext}$major'
1902
hardcode_into_libs=yes
1903
if test "$host_cpu" = ia64; then
1904
# AIX 5 supports IA64
1905
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1906
shlibpath_var=LD_LIBRARY_PATH
1908
# With GCC up to 2.95.x, collect2 would create an import file
1909
# for dependence libraries. The import file would start with
1910
# the line `#! .'. This would cause the generated library to
1911
# depend on `.', always an invalid library. This was fixed in
1912
# development snapshots of GCC prior to 3.0.
1914
aix4 | aix4.[[01]] | aix4.[[01]].*)
1915
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1917
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1924
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1925
# soname into executable. Probably we can add versioning support to
1926
# collect2, so additional links can be useful in future.
1927
if test "$aix_use_runtimelinking" = yes; then
1928
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
1929
# instead of lib<name>.a to let people know that these are not
1930
# typical AIX shared libraries.
1931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1933
# We preserve .a as extension for shared libraries through AIX4.2
1934
# and later when we are not doing run time linking.
1935
library_names_spec='${libname}${release}.a $libname.a'
1936
soname_spec='${libname}${release}${shared_ext}$major'
1938
shlibpath_var=LIBPATH
1943
library_names_spec='$libname.ixlibrary $libname.a'
1944
# Create ${libname}_ixlibrary.a entries in /sys/libs.
1945
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'
1949
library_names_spec='${libname}${shared_ext}'
1950
dynamic_linker="$host_os ld.so"
1951
shlibpath_var=LIBRARY_PATH
1957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1958
soname_spec='${libname}${release}${shared_ext}$major'
1959
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1960
shlibpath_var=LD_LIBRARY_PATH
1961
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1962
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1963
# the default ld.so.conf also contains /usr/contrib/lib and
1964
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1965
# libtool to hard-code these into programs
1968
cygwin* | mingw* | pw32*)
1969
version_type=windows
1974
case $GCC,$host_os in
1975
yes,cygwin* | yes,mingw* | yes,pw32*)
1976
library_names_spec='$libname.dll.a'
1977
# DLL is installed to $(libdir)/../bin by postinstall_cmds
1978
postinstall_cmds='base_file=`basename \${file}`~
1979
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1980
dldir=$destdir/`dirname \$dlpath`~
1981
test -d \$dldir || mkdir -p \$dldir~
1982
$install_prog $dir/$dlname \$dldir/$dlname~
1983
chmod a+x \$dldir/$dlname'
1984
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1985
dlpath=$dir/\$dldll~
1987
shlibpath_overrides_runpath=yes
1991
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
1992
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1993
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1996
# MinGW DLLs use traditional 'lib' prefix
1997
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1998
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1999
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2000
# It is most probably a Windows format PATH printed by
2001
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2002
# path with ; separators, and with drive letters. We can handle the
2003
# drive letters (cygwin fileutils understands them), so leave them,
2004
# especially as we might pass files found there to a mingw objdump,
2005
# which wouldn't understand a cygwinified path. Ahh.
2006
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2008
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2012
# pw32 DLLs use 'pw' prefix rather than 'lib'
2013
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2019
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2022
dynamic_linker='Win32 ld.exe'
2023
# FIXME: first we should search . and the directory the executable is in
2027
darwin* | rhapsody*)
2028
dynamic_linker="$host_os dyld"
2032
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2033
soname_spec='${libname}${release}${major}$shared_ext'
2034
shlibpath_overrides_runpath=yes
2035
shlibpath_var=DYLD_LIBRARY_PATH
2036
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2038
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2039
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2047
soname_spec='${libname}${release}${shared_ext}$major'
2048
shlibpath_var=LD_LIBRARY_PATH
2055
freebsd* | dragonfly*)
2056
# DragonFly does not have aout. When/if they implement a new
2057
# versioning mechanism, adjust this.
2058
if test -x /usr/bin/objformat; then
2059
objformat=`/usr/bin/objformat`
2062
freebsd[[123]]*) objformat=aout ;;
2066
version_type=freebsd-$objformat
2067
case $version_type in
2069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2074
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2078
shlibpath_var=LD_LIBRARY_PATH
2081
shlibpath_overrides_runpath=yes
2083
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2084
shlibpath_overrides_runpath=yes
2085
hardcode_into_libs=yes
2087
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2088
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2089
shlibpath_overrides_runpath=no
2090
hardcode_into_libs=yes
2092
*) # from 4.6 on, and DragonFly
2093
shlibpath_overrides_runpath=yes
2094
hardcode_into_libs=yes
2103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2104
soname_spec='${libname}${release}${shared_ext}$major'
2105
shlibpath_var=LD_LIBRARY_PATH
2106
hardcode_into_libs=yes
2109
hpux9* | hpux10* | hpux11*)
2110
# Give a soname corresponding to the major version so that dld.sl refuses to
2111
# link against other versions.
2118
hardcode_into_libs=yes
2119
dynamic_linker="$host_os dld.so"
2120
shlibpath_var=LD_LIBRARY_PATH
2121
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2123
soname_spec='${libname}${release}${shared_ext}$major'
2124
if test "X$HPUX_IA64_MODE" = X32; then
2125
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2127
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2129
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2133
hardcode_into_libs=yes
2134
dynamic_linker="$host_os dld.sl"
2135
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2136
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2138
soname_spec='${libname}${release}${shared_ext}$major'
2139
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2140
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2144
dynamic_linker="$host_os dld.sl"
2145
shlibpath_var=SHLIB_PATH
2146
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2148
soname_spec='${libname}${release}${shared_ext}$major'
2151
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2152
postinstall_cmds='chmod 555 $lib'
2159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2160
soname_spec='${libname}${release}${shared_ext}$major'
2161
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2162
shlibpath_var=LD_LIBRARY_PATH
2163
shlibpath_overrides_runpath=no
2164
hardcode_into_libs=yes
2167
irix5* | irix6* | nonstopux*)
2169
nonstopux*) version_type=nonstopux ;;
2171
if test "$lt_cv_prog_gnu_ld" = yes; then
2179
soname_spec='${libname}${release}${shared_ext}$major'
2180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2182
irix5* | nonstopux*)
2186
case $LD in # libtool.m4 will add one of these switches to LD
2187
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2188
libsuff= shlibsuff= libmagic=32-bit;;
2189
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2190
libsuff=32 shlibsuff=N32 libmagic=N32;;
2191
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2192
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2193
*) libsuff= shlibsuff= libmagic=never-match;;
2197
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2198
shlibpath_overrides_runpath=no
2199
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2200
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2201
hardcode_into_libs=yes
2204
# No shared lib support for Linux oldld, aout, or coff.
2205
linux*oldld* | linux*aout* | linux*coff*)
2209
# This must be Linux ELF.
2210
linux* | k*bsd*-gnu)
2214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2215
soname_spec='${libname}${release}${shared_ext}$major'
2216
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2217
shlibpath_var=LD_LIBRARY_PATH
2218
shlibpath_overrides_runpath=no
2219
# This implies no fast_install, which is unacceptable.
2220
# Some rework will be needed to allow for fast_install
2221
# before this can be enabled.
2222
hardcode_into_libs=yes
2224
# Append ld.so.conf contents to the search path
2225
if test -f /etc/ld.so.conf; then
2226
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' ' '`
2227
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2230
# We used to test for /lib/ld.so.1 and disable shared libraries on
2231
# powerpc, because MkLinux only supported shared libraries with the
2232
# GNU dynamic linker. Since this was broken with cross compilers,
2233
# most powerpc-linux boxes support dynamic linking these days and
2234
# people can always --disable-shared, the test was removed, and we
2235
# assume the GNU/Linux dynamic linker is in use.
2236
dynamic_linker='GNU/Linux ld.so'
2243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2244
soname_spec='${libname}${release}${shared_ext}$major'
2245
shlibpath_var=LD_LIBRARY_PATH
2246
shlibpath_overrides_runpath=no
2247
hardcode_into_libs=yes
2248
dynamic_linker='NetBSD ld.elf_so'
2255
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2257
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2258
dynamic_linker='NetBSD (a.out) ld.so'
2260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2261
soname_spec='${libname}${release}${shared_ext}$major'
2262
dynamic_linker='NetBSD ld.elf_so'
2264
shlibpath_var=LD_LIBRARY_PATH
2265
shlibpath_overrides_runpath=yes
2266
hardcode_into_libs=yes
2271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2272
shlibpath_var=LD_LIBRARY_PATH
2273
shlibpath_overrides_runpath=yes
2280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2281
soname_spec='${libname}${release}${shared_ext}$major'
2282
shlibpath_var=LD_LIBRARY_PATH
2283
shlibpath_overrides_runpath=yes
2288
sys_lib_dlsearch_path_spec="/usr/lib"
2290
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2292
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2293
*) need_version=no ;;
2295
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2296
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2297
shlibpath_var=LD_LIBRARY_PATH
2298
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2300
openbsd2.[[89]] | openbsd2.[[89]].*)
2301
shlibpath_overrides_runpath=no
2304
shlibpath_overrides_runpath=yes
2308
shlibpath_overrides_runpath=yes
2313
libname_spec='$name'
2316
library_names_spec='$libname${shared_ext} $libname.a'
2317
dynamic_linker='OS/2 ld.exe'
2318
shlibpath_var=LIBPATH
2321
osf3* | osf4* | osf5*)
2325
soname_spec='${libname}${release}${shared_ext}$major'
2326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2327
shlibpath_var=LD_LIBRARY_PATH
2328
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2329
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2341
soname_spec='${libname}${release}${shared_ext}$major'
2342
shlibpath_var=LD_LIBRARY_PATH
2343
shlibpath_overrides_runpath=yes
2344
hardcode_into_libs=yes
2345
# ldd complains unless libraries are executable
2346
postinstall_cmds='chmod +x $lib'
2351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2352
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2353
shlibpath_var=LD_LIBRARY_PATH
2354
shlibpath_overrides_runpath=yes
2355
if test "$with_gnu_ld" = yes; then
2363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2364
soname_spec='${libname}${release}${shared_ext}$major'
2365
shlibpath_var=LD_LIBRARY_PATH
2366
case $host_vendor in
2368
shlibpath_overrides_runpath=no
2370
export_dynamic_flag_spec='${wl}-Blargedynsym'
2371
runpath_var=LD_RUN_PATH
2379
shlibpath_overrides_runpath=no
2380
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2386
if test -d /usr/nec ;then
2388
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2389
soname_spec='$libname${shared_ext}.$major'
2390
shlibpath_var=LD_LIBRARY_PATH
2394
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2395
version_type=freebsd-elf
2398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2399
soname_spec='${libname}${release}${shared_ext}$major'
2400
shlibpath_var=LD_LIBRARY_PATH
2401
hardcode_into_libs=yes
2402
if test "$with_gnu_ld" = yes; then
2403
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2404
shlibpath_overrides_runpath=no
2406
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2407
shlibpath_overrides_runpath=yes
2410
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2414
sys_lib_dlsearch_path_spec='/usr/lib'
2419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2420
soname_spec='${libname}${release}${shared_ext}$major'
2421
shlibpath_var=LD_LIBRARY_PATH
2428
AC_MSG_RESULT([$dynamic_linker])
2429
test "$dynamic_linker" = no && can_build_shared=no
2431
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2432
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2433
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2434
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2435
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2436
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2438
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2439
if test "$GCC" = yes; then
2440
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2442
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2447
AC_DEFUN([_LT_AC_TAGCONFIG],
2448
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2450
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2451
[include additional configurations @<:@automatic@:>@])],
2452
[tagnames="$withval"])
2454
if test -f "$ltmain" && test -n "$tagnames"; then
2455
if test ! -f "${ofile}"; then
2456
AC_MSG_WARN([output file `$ofile' does not exist])
2459
if test -z "$LTCC"; then
2460
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2461
if test -z "$LTCC"; then
2462
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2464
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2467
if test -z "$LTCFLAGS"; then
2468
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2471
# Extract list of available tagged configurations in $ofile.
2472
# Note that this assumes the entire list is on one line.
2473
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2475
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2476
for tagname in $tagnames; do
2478
# Check whether tagname contains only valid characters
2479
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2481
*) AC_MSG_ERROR([invalid tag name: $tagname])
2485
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2487
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2490
# Update the list of available tags.
2491
if test -n "$tagname"; then
2492
echo appending configuration tag \"$tagname\" to $ofile
2496
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2497
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2498
(test "X$CXX" != "Xg++"))) ; then
2499
AC_LIBTOOL_LANG_CXX_CONFIG
2506
if test -n "$F77" && test "X$F77" != "Xno"; then
2507
AC_LIBTOOL_LANG_F77_CONFIG
2514
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2515
AC_LIBTOOL_LANG_GCJ_CONFIG
2522
AC_LIBTOOL_LANG_RC_CONFIG
2526
AC_MSG_ERROR([Unsupported tag name: $tagname])
2530
# Append the new tag name to the list of available tags.
2531
if test -n "$tagname" ; then
2532
available_tags="$available_tags $tagname"
2538
# Now substitute the updated list of available tags.
2539
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2540
mv "${ofile}T" "$ofile"
2544
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2547
])# _LT_AC_TAGCONFIG
2552
# enable checks for dlopen support
2553
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2554
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2555
])# AC_LIBTOOL_DLOPEN
2558
# AC_LIBTOOL_WIN32_DLL
2559
# --------------------
2560
# declare package support for building win32 DLLs
2561
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2562
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2563
])# AC_LIBTOOL_WIN32_DLL
2566
# AC_ENABLE_SHARED([DEFAULT])
2567
# ---------------------------
2568
# implement the --enable-shared flag
2569
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2570
AC_DEFUN([AC_ENABLE_SHARED],
2571
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2572
AC_ARG_ENABLE([shared],
2573
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2574
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2575
[p=${PACKAGE-default}
2577
yes) enable_shared=yes ;;
2578
no) enable_shared=no ;;
2581
# Look at the argument we got. We use all the common list separators.
2582
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2583
for pkg in $enableval; do
2585
if test "X$pkg" = "X$p"; then
2592
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2593
])# AC_ENABLE_SHARED
2598
# set the default shared flag to --disable-shared
2599
AC_DEFUN([AC_DISABLE_SHARED],
2600
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2601
AC_ENABLE_SHARED(no)
2602
])# AC_DISABLE_SHARED
2605
# AC_ENABLE_STATIC([DEFAULT])
2606
# ---------------------------
2607
# implement the --enable-static flag
2608
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2609
AC_DEFUN([AC_ENABLE_STATIC],
2610
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2611
AC_ARG_ENABLE([static],
2612
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2613
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2614
[p=${PACKAGE-default}
2616
yes) enable_static=yes ;;
2617
no) enable_static=no ;;
2620
# Look at the argument we got. We use all the common list separators.
2621
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2622
for pkg in $enableval; do
2624
if test "X$pkg" = "X$p"; then
2631
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2632
])# AC_ENABLE_STATIC
2637
# set the default static flag to --disable-static
2638
AC_DEFUN([AC_DISABLE_STATIC],
2639
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2640
AC_ENABLE_STATIC(no)
2641
])# AC_DISABLE_STATIC
2644
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2645
# ---------------------------------
2646
# implement the --enable-fast-install flag
2647
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2648
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2649
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2650
AC_ARG_ENABLE([fast-install],
2651
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2652
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2653
[p=${PACKAGE-default}
2655
yes) enable_fast_install=yes ;;
2656
no) enable_fast_install=no ;;
2658
enable_fast_install=no
2659
# Look at the argument we got. We use all the common list separators.
2660
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2661
for pkg in $enableval; do
2663
if test "X$pkg" = "X$p"; then
2664
enable_fast_install=yes
2670
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2671
])# AC_ENABLE_FAST_INSTALL
2674
# AC_DISABLE_FAST_INSTALL
2675
# -----------------------
2676
# set the default to --disable-fast-install
2677
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2678
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2679
AC_ENABLE_FAST_INSTALL(no)
2680
])# AC_DISABLE_FAST_INSTALL
2683
# AC_LIBTOOL_PICMODE([MODE])
2684
# --------------------------
2685
# implement the --with-pic flag
2686
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2687
AC_DEFUN([AC_LIBTOOL_PICMODE],
2688
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2689
pic_mode=ifelse($#,1,$1,default)
2690
])# AC_LIBTOOL_PICMODE
2695
# This is predefined starting with Autoconf 2.54, so this conditional
2696
# definition can be removed once we require Autoconf 2.54 or later.
2697
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2698
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2699
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2700
then ac_cv_prog_egrep='grep -E'
2701
else ac_cv_prog_egrep='egrep'
2703
EGREP=$ac_cv_prog_egrep
2708
# AC_PATH_TOOL_PREFIX
2709
# -------------------
2710
# find a file program which can recognize shared library
2711
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2712
[AC_REQUIRE([AC_PROG_EGREP])dnl
2713
AC_MSG_CHECKING([for $1])
2714
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2716
[[\\/*] | ?:[\\/]*])
2717
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2720
lt_save_MAGIC_CMD="$MAGIC_CMD"
2721
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2722
dnl $ac_dummy forces splitting on constant user-supplied paths.
2723
dnl POSIX.2 word splitting is done only on the output of word expansions,
2724
dnl not every word. This closes a longstanding sh security hole.
2725
ac_dummy="ifelse([$2], , $PATH, [$2])"
2726
for ac_dir in $ac_dummy; do
2728
test -z "$ac_dir" && ac_dir=.
2729
if test -f $ac_dir/$1; then
2730
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2731
if test -n "$file_magic_test_file"; then
2732
case $deplibs_check_method in
2734
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2735
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2736
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2737
$EGREP "$file_magic_regex" > /dev/null; then
2742
*** Warning: the command libtool uses to detect shared libraries,
2743
*** $file_magic_cmd, produces output that libtool cannot recognize.
2744
*** The result is that libtool may fail to recognize shared libraries
2745
*** as such. This will affect the creation of libtool libraries that
2746
*** depend on shared libraries, but programs linked with such libtool
2747
*** libraries will work regardless of this problem. Nevertheless, you
2748
*** may want to report the problem to your system manager and/or to
2749
*** bug-libtool@gnu.org
2759
MAGIC_CMD="$lt_save_MAGIC_CMD"
2762
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2763
if test -n "$MAGIC_CMD"; then
2764
AC_MSG_RESULT($MAGIC_CMD)
2768
])# AC_PATH_TOOL_PREFIX
2773
# find a file program which can recognize a shared library
2774
AC_DEFUN([AC_PATH_MAGIC],
2775
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2776
if test -z "$lt_cv_path_MAGIC_CMD"; then
2777
if test -n "$ac_tool_prefix"; then
2778
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2788
# find the pathname to the GNU or non-GNU linker
2789
AC_DEFUN([AC_PROG_LD],
2790
[AC_ARG_WITH([gnu-ld],
2791
[AC_HELP_STRING([--with-gnu-ld],
2792
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2793
[test "$withval" = no || with_gnu_ld=yes],
2795
AC_REQUIRE([LT_AC_PROG_SED])dnl
2796
AC_REQUIRE([AC_PROG_CC])dnl
2797
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2798
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2800
if test "$GCC" = yes; then
2801
# Check if gcc -print-prog-name=ld gives a path.
2802
AC_MSG_CHECKING([for ld used by $CC])
2805
# gcc leaves a trailing carriage return which upsets mingw
2806
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2808
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2811
# Accept absolute paths.
2812
[[\\/]]* | ?:[[\\/]]*)
2813
re_direlt='/[[^/]][[^/]]*/\.\./'
2814
# Canonicalize the pathname of ld
2815
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2816
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2817
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2819
test -z "$LD" && LD="$ac_prog"
2822
# If it fails, then pretend we aren't using GCC.
2826
# If it is relative, then search for the first ld in PATH.
2830
elif test "$with_gnu_ld" = yes; then
2831
AC_MSG_CHECKING([for GNU ld])
2833
AC_MSG_CHECKING([for non-GNU ld])
2835
AC_CACHE_VAL(lt_cv_path_LD,
2836
[if test -z "$LD"; then
2837
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2838
for ac_dir in $PATH; do
2840
test -z "$ac_dir" && ac_dir=.
2841
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2842
lt_cv_path_LD="$ac_dir/$ac_prog"
2843
# Check to see if the program is GNU ld. I'd rather use --version,
2844
# but apparently some variants of GNU ld only accept -v.
2845
# Break only if it was the GNU/non-GNU ld that we prefer.
2846
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2847
*GNU* | *'with BFD'*)
2848
test "$with_gnu_ld" != no && break
2851
test "$with_gnu_ld" != yes && break
2858
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2861
if test -n "$LD"; then
2866
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2873
AC_DEFUN([AC_PROG_LD_GNU],
2874
[AC_REQUIRE([AC_PROG_EGREP])dnl
2875
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2876
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2877
case `$LD -v 2>&1 </dev/null` in
2878
*GNU* | *'with BFD'*)
2879
lt_cv_prog_gnu_ld=yes
2882
lt_cv_prog_gnu_ld=no
2885
with_gnu_ld=$lt_cv_prog_gnu_ld
2889
# AC_PROG_LD_RELOAD_FLAG
2890
# ----------------------
2891
# find reload flag for linker
2892
# -- PORTME Some linkers may need a different reload flag.
2893
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2894
[AC_CACHE_CHECK([for $LD option to reload object files],
2895
lt_cv_ld_reload_flag,
2896
[lt_cv_ld_reload_flag='-r'])
2897
reload_flag=$lt_cv_ld_reload_flag
2898
case $reload_flag in
2900
*) reload_flag=" $reload_flag" ;;
2902
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2905
if test "$GCC" = yes; then
2906
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2908
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2912
])# AC_PROG_LD_RELOAD_FLAG
2915
# AC_DEPLIBS_CHECK_METHOD
2916
# -----------------------
2917
# how to check for library dependencies
2918
# -- PORTME fill in with the dynamic library characteristics
2919
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2920
[AC_CACHE_CHECK([how to recognize dependent libraries],
2921
lt_cv_deplibs_check_method,
2922
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2923
lt_cv_file_magic_test_file=
2924
lt_cv_deplibs_check_method='unknown'
2925
# Need to set the preceding variable on all platforms that support
2926
# interlibrary dependencies.
2927
# 'none' -- dependencies not supported.
2928
# `unknown' -- same as none, but documents that we really don't know.
2929
# 'pass_all' -- all dependencies passed with no checks.
2930
# 'test_compile' -- check by making test program.
2931
# 'file_magic [[regex]]' -- check by looking for files in library path
2932
# which responds to the $file_magic_cmd with a given extended regex.
2933
# If you have `file' or equivalent on your system and you're not sure
2934
# whether `pass_all' will *always* work, you probably want this one.
2938
lt_cv_deplibs_check_method=pass_all
2942
lt_cv_deplibs_check_method=pass_all
2946
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2947
lt_cv_file_magic_cmd='/usr/bin/file -L'
2948
lt_cv_file_magic_test_file=/shlib/libc.so
2952
# func_win32_libid is a shell function defined in ltmain.sh
2953
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2954
lt_cv_file_magic_cmd='func_win32_libid'
2958
# Base MSYS/MinGW do not provide the 'file' command needed by
2959
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2960
# unless we find 'file', for example because we are cross-compiling.
2961
if ( file / ) >/dev/null 2>&1; then
2962
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2963
lt_cv_file_magic_cmd='func_win32_libid'
2965
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2966
lt_cv_file_magic_cmd='$OBJDUMP -f'
2970
darwin* | rhapsody*)
2971
lt_cv_deplibs_check_method=pass_all
2974
freebsd* | dragonfly*)
2975
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2978
# Not sure whether the presence of OpenBSD here was a mistake.
2979
# Let's accept both of them until this is cleared up.
2980
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2981
lt_cv_file_magic_cmd=/usr/bin/file
2982
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2986
lt_cv_deplibs_check_method=pass_all
2991
lt_cv_deplibs_check_method=pass_all
2994
hpux10.20* | hpux11*)
2995
lt_cv_file_magic_cmd=/usr/bin/file
2998
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2999
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3002
[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]']
3003
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3006
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3007
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3013
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3014
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3017
irix5* | irix6* | nonstopux*)
3019
*-32|*"-32 ") libmagic=32-bit;;
3020
*-n32|*"-n32 ") libmagic=N32;;
3021
*-64|*"-64 ") libmagic=64-bit;;
3022
*) libmagic=never-match;;
3024
lt_cv_deplibs_check_method=pass_all
3027
# This must be Linux ELF.
3028
linux* | k*bsd*-gnu)
3029
lt_cv_deplibs_check_method=pass_all
3032
netbsd* | netbsdelf*-gnu)
3033
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3034
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3036
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3041
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3042
lt_cv_file_magic_cmd=/usr/bin/file
3043
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3047
lt_cv_deplibs_check_method=unknown
3051
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3052
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3054
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3058
osf3* | osf4* | osf5*)
3059
lt_cv_deplibs_check_method=pass_all
3063
lt_cv_deplibs_check_method=pass_all
3067
lt_cv_deplibs_check_method=pass_all
3071
case $host_vendor in
3073
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]]'
3074
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3077
lt_cv_deplibs_check_method=pass_all
3080
lt_cv_file_magic_cmd='/bin/file'
3081
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3084
lt_cv_file_magic_cmd='/bin/file'
3085
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3086
lt_cv_file_magic_test_file=/lib/libc.so
3089
lt_cv_deplibs_check_method=pass_all
3092
lt_cv_deplibs_check_method=pass_all
3097
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3098
lt_cv_deplibs_check_method=pass_all
3102
file_magic_cmd=$lt_cv_file_magic_cmd
3103
deplibs_check_method=$lt_cv_deplibs_check_method
3104
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3105
])# AC_DEPLIBS_CHECK_METHOD
3110
# find the pathname to a BSD-compatible name lister
3111
AC_DEFUN([AC_PROG_NM],
3112
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3113
[if test -n "$NM"; then
3114
# Let the user override the test.
3117
lt_nm_to_check="${ac_tool_prefix}nm"
3118
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3119
lt_nm_to_check="$lt_nm_to_check nm"
3121
for lt_tmp_nm in $lt_nm_to_check; do
3122
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3123
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3125
test -z "$ac_dir" && ac_dir=.
3126
tmp_nm="$ac_dir/$lt_tmp_nm"
3127
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3128
# Check to see if the nm accepts a BSD-compat flag.
3129
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3130
# nm: unknown option "B" ignored
3131
# Tru64's nm complains that /dev/null is an invalid object file
3132
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3133
*/dev/null* | *'Invalid file or object type'*)
3134
lt_cv_path_NM="$tmp_nm -B"
3138
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3140
lt_cv_path_NM="$tmp_nm -p"
3144
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3145
continue # so that we can try to find one that supports BSD flags
3154
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3162
# check for math library
3163
AC_DEFUN([AC_CHECK_LIBM],
3164
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3167
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3168
# These system don't have libm, or don't need it
3171
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3172
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3175
AC_CHECK_LIB(m, cos, LIBM="-lm")
3181
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3182
# -----------------------------------
3183
# sets LIBLTDL to the link flags for the libltdl convenience library and
3184
# LTDLINCL to the include flags for the libltdl header and adds
3185
# --enable-ltdl-convenience to the configure arguments. Note that
3186
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3187
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3188
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3189
# (note the single quotes!). If your package is not flat and you're not
3190
# using automake, define top_builddir and top_srcdir appropriately in
3192
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3193
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3194
case $enable_ltdl_convenience in
3195
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3196
"") enable_ltdl_convenience=yes
3197
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3199
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3200
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3201
# For backwards non-gettext consistent compatibility...
3203
])# AC_LIBLTDL_CONVENIENCE
3206
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3207
# -----------------------------------
3208
# sets LIBLTDL to the link flags for the libltdl installable library and
3209
# LTDLINCL to the include flags for the libltdl header and adds
3210
# --enable-ltdl-install to the configure arguments. Note that
3211
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3212
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3213
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3214
# '${top_srcdir}/' (note the single quotes!). If your package is not
3215
# flat and you're not using automake, define top_builddir and top_srcdir
3216
# appropriately in the Makefiles.
3217
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3218
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3219
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3220
AC_CHECK_LIB(ltdl, lt_dlinit,
3221
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3222
[if test x"$enable_ltdl_install" = xno; then
3223
AC_MSG_WARN([libltdl not installed, but installation disabled])
3225
enable_ltdl_install=yes
3228
if test x"$enable_ltdl_install" = x"yes"; then
3229
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3230
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3231
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3233
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3237
# For backwards non-gettext consistent compatibility...
3239
])# AC_LIBLTDL_INSTALLABLE
3244
# enable support for C++ libraries
3245
AC_DEFUN([AC_LIBTOOL_CXX],
3246
[AC_REQUIRE([_LT_AC_LANG_CXX])
3252
AC_DEFUN([_LT_AC_LANG_CXX],
3253
[AC_REQUIRE([AC_PROG_CXX])
3254
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3255
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3258
# _LT_AC_PROG_CXXCPP
3259
# ------------------
3260
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3262
AC_REQUIRE([AC_PROG_CXX])
3263
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3264
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3265
(test "X$CXX" != "Xg++"))) ; then
3268
])# _LT_AC_PROG_CXXCPP
3272
# enable support for Fortran 77 libraries
3273
AC_DEFUN([AC_LIBTOOL_F77],
3274
[AC_REQUIRE([_LT_AC_LANG_F77])
3280
AC_DEFUN([_LT_AC_LANG_F77],
3281
[AC_REQUIRE([AC_PROG_F77])
3282
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3288
# enable support for GCJ libraries
3289
AC_DEFUN([AC_LIBTOOL_GCJ],
3290
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3296
AC_DEFUN([_LT_AC_LANG_GCJ],
3297
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3298
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3299
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3300
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3301
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3302
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3303
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3309
# enable support for Windows resource files
3310
AC_DEFUN([AC_LIBTOOL_RC],
3311
[AC_REQUIRE([LT_AC_PROG_RC])
3312
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3316
# AC_LIBTOOL_LANG_C_CONFIG
3317
# ------------------------
3318
# Ensure that the configuration vars for the C compiler are
3319
# suitably defined. Those variables are subsequently used by
3320
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3321
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3322
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3326
# Source file extension for C test sources.
3329
# Object file extension for compiled C test sources.
3331
_LT_AC_TAGVAR(objext, $1)=$objext
3333
# Code to be used in simple compile tests
3334
lt_simple_compile_test_code="int some_variable = 0;"
3336
# Code to be used in simple link tests
3337
lt_simple_link_test_code='int main(){return(0);}'
3341
# save warnings/boilerplate of simple test code
3342
_LT_COMPILER_BOILERPLATE
3343
_LT_LINKER_BOILERPLATE
3345
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3346
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3347
AC_LIBTOOL_PROG_CC_C_O($1)
3348
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3349
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3350
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3351
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3352
AC_LIBTOOL_SYS_LIB_STRIP
3353
AC_LIBTOOL_DLOPEN_SELF
3355
# Report which library types will actually be built
3356
AC_MSG_CHECKING([if libtool supports shared libraries])
3357
AC_MSG_RESULT([$can_build_shared])
3359
AC_MSG_CHECKING([whether to build shared libraries])
3360
test "$can_build_shared" = "no" && enable_shared=no
3362
# On AIX, shared libraries and static libraries use the same namespace, and
3363
# are all built from PIC.
3366
test "$enable_shared" = yes && enable_static=no
3367
if test -n "$RANLIB"; then
3368
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3369
postinstall_cmds='$RANLIB $lib'
3374
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3375
test "$enable_shared" = yes && enable_static=no
3379
AC_MSG_RESULT([$enable_shared])
3381
AC_MSG_CHECKING([whether to build static libraries])
3382
# Make sure either enable_shared or enable_static is yes.
3383
test "$enable_shared" = yes || enable_static=yes
3384
AC_MSG_RESULT([$enable_static])
3386
AC_LIBTOOL_CONFIG($1)
3390
])# AC_LIBTOOL_LANG_C_CONFIG
3393
# AC_LIBTOOL_LANG_CXX_CONFIG
3394
# --------------------------
3395
# Ensure that the configuration vars for the C compiler are
3396
# suitably defined. Those variables are subsequently used by
3397
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3398
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3399
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3401
AC_REQUIRE([AC_PROG_CXX])
3402
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3404
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3405
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3406
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3407
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3408
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3409
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3410
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3411
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3412
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3413
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3414
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3415
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3416
_LT_AC_TAGVAR(module_cmds, $1)=
3417
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3418
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3419
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3420
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3421
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3422
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3424
# Dependencies to place before and after the object being linked:
3425
_LT_AC_TAGVAR(predep_objects, $1)=
3426
_LT_AC_TAGVAR(postdep_objects, $1)=
3427
_LT_AC_TAGVAR(predeps, $1)=
3428
_LT_AC_TAGVAR(postdeps, $1)=
3429
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3430
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3432
# Source file extension for C++ test sources.
3435
# Object file extension for compiled C++ test sources.
3437
_LT_AC_TAGVAR(objext, $1)=$objext
3439
# Code to be used in simple compile tests
3440
lt_simple_compile_test_code="int some_variable = 0;"
3442
# Code to be used in simple link tests
3443
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3445
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3448
# save warnings/boilerplate of simple test code
3449
_LT_COMPILER_BOILERPLATE
3450
_LT_LINKER_BOILERPLATE
3452
# Allow CC to be a program name with arguments.
3457
lt_save_with_gnu_ld=$with_gnu_ld
3458
lt_save_path_LD=$lt_cv_path_LD
3459
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3460
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3462
$as_unset lt_cv_prog_gnu_ld
3464
if test -n "${lt_cv_path_LDCXX+set}"; then
3465
lt_cv_path_LD=$lt_cv_path_LDCXX
3467
$as_unset lt_cv_path_LD
3469
test -z "${LDCXX+set}" || LD=$LDCXX
3472
_LT_AC_TAGVAR(compiler, $1)=$CC
3473
_LT_CC_BASENAME([$compiler])
3475
# We don't want -fno-exception wen compiling C++ code, so set the
3476
# no_builtin_flag separately
3477
if test "$GXX" = yes; then
3478
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3480
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3483
if test "$GXX" = yes; then
3484
# Set up default GNU C++ configuration
3488
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3489
# archiving commands below assume that GNU ld is being used.
3490
if test "$with_gnu_ld" = yes; then
3491
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3492
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3494
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3495
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3497
# If archive_cmds runs LD, not CC, wlarc should be empty
3498
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3499
# investigate it a little bit more. (MM)
3502
# ancient GNU ld didn't support --whole-archive et. al.
3503
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3504
grep 'no-whole-archive' > /dev/null; then
3505
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3507
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3513
# A generic and very simple default shared library creation
3514
# command for GNU C++ for the case where it uses the native
3515
# linker, instead of GNU ld. If possible, this setting should
3516
# overridden to take advantage of the native linker features on
3517
# the platform it is being used on.
3518
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3521
# Commands to make compiler produce verbose output that lists
3522
# what "hidden" libraries, object files and flags are used when
3523
# linking a shared library.
3524
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3532
# PORTME: fill in a description of your system's C++ link characteristics
3533
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3534
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3537
# FIXME: insert proper C++ library support
3538
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3541
if test "$host_cpu" = ia64; then
3542
# On IA64, the linker does run time linking by default, so we don't
3543
# have to do anything special.
3544
aix_use_runtimelinking=no
3545
exp_sym_flag='-Bexport'
3548
aix_use_runtimelinking=no
3550
# Test if we are trying to use run time linking or normal
3551
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3552
# need to do runtime linking.
3553
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3554
for ld_flag in $LDFLAGS; do
3557
aix_use_runtimelinking=yes
3565
exp_sym_flag='-bexport'
3566
no_entry_flag='-bnoentry'
3569
# When large executables or shared objects are built, AIX ld can
3570
# have problems creating the table of contents. If linking a library
3571
# or program results in "error TOC overflow" add -mminimal-toc to
3572
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3573
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3575
_LT_AC_TAGVAR(archive_cmds, $1)=''
3576
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3577
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3578
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3580
if test "$GXX" = yes; then
3581
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3582
# We only want to do this on AIX 4.2 and lower, the check
3583
# below for broken collect2 doesn't work under 4.3+
3584
collect2name=`${CC} -print-prog-name=collect2`
3585
if test -f "$collect2name" && \
3586
strings "$collect2name" | grep resolve_lib_name >/dev/null
3588
# We have reworked collect2
3591
# We have old collect2
3592
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3593
# It fails to find uninstalled libraries when the uninstalled
3594
# path is not listed in the libpath. Setting hardcode_minus_L
3595
# to unsupported forces relinking
3596
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3597
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3598
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3602
shared_flag='-shared'
3603
if test "$aix_use_runtimelinking" = yes; then
3604
shared_flag="$shared_flag "'${wl}-G'
3608
if test "$host_cpu" = ia64; then
3609
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3610
# chokes on -Wl,-G. The following line is correct:
3613
if test "$aix_use_runtimelinking" = yes; then
3614
shared_flag='${wl}-G'
3616
shared_flag='${wl}-bM:SRE'
3621
# It seems that -bexpall does not export symbols beginning with
3622
# underscore (_), so it is better to generate a list of symbols to export.
3623
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3624
if test "$aix_use_runtimelinking" = yes; then
3625
# Warning - without using the other runtime loading flags (-brtl),
3626
# -berok will link without error, but may produce a broken library.
3627
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3628
# Determine the default libpath from the value encoded in an empty executable.
3629
_LT_AC_SYS_LIBPATH_AIX
3630
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3632
_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"
3634
if test "$host_cpu" = ia64; then
3635
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3636
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3637
_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"
3639
# Determine the default libpath from the value encoded in an empty executable.
3640
_LT_AC_SYS_LIBPATH_AIX
3641
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3642
# Warning - without using the other run time loading flags,
3643
# -berok will link without error, but may produce a broken library.
3644
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3645
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3646
# Exported symbols can be pulled into shared objects from archives
3647
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3648
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3649
# This is similar to how AIX traditionally builds its shared libraries.
3650
_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'
3656
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3657
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3658
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3659
# support --undefined. This deserves some investigation. FIXME
3660
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3662
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3667
case $cc_basename in
3669
# FIXME: insert proper C++ library support
3670
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3675
cygwin* | mingw* | pw32*)
3676
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3677
# as there is no search path for DLLs.
3678
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3679
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3680
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3681
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3683
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3684
_LT_AC_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'
3685
# If the export-symbols file already is a .def file (1st line
3686
# is EXPORTS), use it as is; otherwise, prepend...
3687
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3688
cp $export_symbols $output_objdir/$soname.def;
3690
echo EXPORTS > $output_objdir/$soname.def;
3691
cat $export_symbols >> $output_objdir/$soname.def;
3693
$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'
3695
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3698
darwin* | rhapsody*)
3699
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3700
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3701
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3702
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3703
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3704
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3705
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3706
if test "$GXX" = yes ; then
3707
output_verbose_link_cmd='echo'
3708
_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}"
3709
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3710
_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}"
3711
_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}"
3712
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3713
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3714
_LT_AC_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}"
3717
case $cc_basename in
3719
output_verbose_link_cmd='echo'
3720
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3721
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3722
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3723
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3724
_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}'
3727
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3734
case $cc_basename in
3736
# FIXME: insert proper C++ library support
3737
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3740
# Green Hills C++ Compiler
3741
# FIXME: insert proper C++ library support
3742
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3745
# FIXME: insert proper C++ library support
3746
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3751
# C++ shared libraries reported to be fairly broken before switch to ELF
3752
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3755
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3757
freebsd* | dragonfly*)
3758
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3760
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3765
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3766
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3767
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3768
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3769
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3770
# but as the default
3771
# location of the library.
3773
case $cc_basename in
3775
# FIXME: insert proper C++ library support
3776
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3779
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3780
# Commands to make compiler produce verbose output that lists
3781
# what "hidden" libraries, object files and flags are used when
3782
# linking a shared library.
3784
# There doesn't appear to be a way to prevent this compiler from
3785
# explicitly linking system object files so we need to strip them
3786
# from the output so that they don't get included in the library
3788
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3791
if test "$GXX" = yes; then
3792
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3794
# FIXME: insert proper C++ library support
3795
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3801
if test $with_gnu_ld = no; then
3802
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3803
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3808
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3814
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3815
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3818
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3819
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3820
# but as the default
3821
# location of the library.
3825
case $cc_basename in
3827
# FIXME: insert proper C++ library support
3828
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3833
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3836
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3839
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3842
# Commands to make compiler produce verbose output that lists
3843
# what "hidden" libraries, object files and flags are used when
3844
# linking a shared library.
3846
# There doesn't appear to be a way to prevent this compiler from
3847
# explicitly linking system object files so we need to strip them
3848
# from the output so that they don't get included in the library
3850
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3853
if test "$GXX" = yes; then
3854
if test $with_gnu_ld = no; then
3857
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3860
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3863
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3868
# FIXME: insert proper C++ library support
3869
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3875
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3876
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3877
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3878
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3879
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3880
# Instead, shared libraries are loaded at an image base (0x10000000 by
3881
# default) and relocated if they conflict, which is a slow very memory
3882
# consuming and fragmenting process. To avoid this, we pick a random,
3883
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3884
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3885
_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'
3886
_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'
3889
case $cc_basename in
3892
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3894
# Archives containing C++ object files must be created using
3895
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3896
# necessary to make sure instantiated templates are included
3898
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3901
if test "$GXX" = yes; then
3902
if test "$with_gnu_ld" = no; then
3903
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3905
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3908
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3911
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3912
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3914
linux* | k*bsd*-gnu)
3915
case $cc_basename in
3917
# Kuck and Associates, Inc. (KAI) C++ Compiler
3919
# KCC will only create a shared library if the output file
3920
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3921
# to its proper name (with version) after linking.
3922
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3923
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3924
# Commands to make compiler produce verbose output that lists
3925
# what "hidden" libraries, object files and flags are used when
3926
# linking a shared library.
3928
# There doesn't appear to be a way to prevent this compiler from
3929
# explicitly linking system object files so we need to strip them
3930
# from the output so that they don't get included in the library
3932
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3935
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3937
# Archives containing C++ object files must be created using
3938
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3939
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3944
# version 8.0 and above of icpc choke on multiply defined symbols
3945
# if we add $predep_objects and $postdep_objects, however 7.1 and
3946
# earlier do not add the objects themselves.
3947
case `$CC -V 2>&1` in
3949
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3950
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3952
*) # Version 8.0 or newer
3955
ia64*) tmp_idyn=' -i_dynamic';;
3957
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3958
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3961
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3962
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3963
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3964
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3967
# Portland Group C++ compiler
3968
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3969
_LT_AC_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'
3971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3972
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3973
_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'
3977
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3978
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3980
runpath_var=LD_RUN_PATH
3981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3982
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3984
# Commands to make compiler produce verbose output that lists
3985
# what "hidden" libraries, object files and flags are used when
3986
# linking a shared library.
3988
# There doesn't appear to be a way to prevent this compiler from
3989
# explicitly linking system object files so we need to strip them
3990
# from the output so that they don't get included in the library
3992
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3995
case `$CC -V 2>&1 | sed 5q` in
3998
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3999
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4000
_LT_AC_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'
4001
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4002
_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'
4004
# Not sure whether something based on
4005
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4007
output_verbose_link_cmd='echo'
4009
# Archives containing C++ object files must be created using
4010
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4011
# necessary to make sure instantiated templates are included
4013
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4020
# FIXME: insert proper C++ library support
4021
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4024
# FIXME: insert proper C++ library support
4025
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4028
case $cc_basename in
4030
# FIXME: insert proper C++ library support
4031
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4034
# FIXME: insert proper C++ library support
4035
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4039
netbsd* | netbsdelf*-gnu)
4040
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4041
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4043
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4044
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4045
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4047
# Workaround some broken pre-1.5 toolchains
4048
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4051
# C++ shared libraries are fairly broken
4052
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4055
if test -f /usr/libexec/ld.so; then
4056
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4057
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4058
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4059
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4060
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4061
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4062
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4063
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4065
output_verbose_link_cmd='echo'
4067
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4071
case $cc_basename in
4073
# Kuck and Associates, Inc. (KAI) C++ Compiler
4075
# KCC will only create a shared library if the output file
4076
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4077
# to its proper name (with version) after linking.
4078
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4080
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4081
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4083
# Archives containing C++ object files must be created using
4084
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4085
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4089
# Rational C++ 2.4.1
4090
# FIXME: insert proper C++ library support
4091
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4094
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4095
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4097
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4098
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4100
# Commands to make compiler produce verbose output that lists
4101
# what "hidden" libraries, object files and flags are used when
4102
# linking a shared library.
4104
# There doesn't appear to be a way to prevent this compiler from
4105
# explicitly linking system object files so we need to strip them
4106
# from the output so that they don't get included in the library
4108
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4111
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4112
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4113
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4115
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4116
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4118
# Commands to make compiler produce verbose output that lists
4119
# what "hidden" libraries, object files and flags are used when
4120
# linking a shared library.
4121
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4124
# FIXME: insert proper C++ library support
4125
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4131
case $cc_basename in
4133
# Kuck and Associates, Inc. (KAI) C++ Compiler
4135
# KCC will only create a shared library if the output file
4136
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4137
# to its proper name (with version) after linking.
4138
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4140
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4141
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4143
# Archives containing C++ object files must be created using
4144
# the KAI C++ compiler.
4145
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4148
# Rational C++ 2.4.1
4149
# FIXME: insert proper C++ library support
4150
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4153
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4154
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4155
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4156
echo "-hidden">> $lib.exp~
4157
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4160
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4161
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4163
# Commands to make compiler produce verbose output that lists
4164
# what "hidden" libraries, object files and flags are used when
4165
# linking a shared library.
4167
# There doesn't appear to be a way to prevent this compiler from
4168
# explicitly linking system object files so we need to strip them
4169
# from the output so that they don't get included in the library
4171
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4174
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4175
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4176
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4178
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4179
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4181
# Commands to make compiler produce verbose output that lists
4182
# what "hidden" libraries, object files and flags are used when
4183
# linking a shared library.
4184
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4187
# FIXME: insert proper C++ library support
4188
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4194
# FIXME: insert proper C++ library support
4195
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4198
case $cc_basename in
4201
# FIXME: insert proper C++ library support
4202
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4206
# FIXME: insert proper C++ library support
4207
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4210
# FIXME: insert proper C++ library support
4211
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4216
case $cc_basename in
4218
# Sun C++ 4.2, 5.x and Centerline C++
4219
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4220
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4221
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4222
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4223
$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'
4225
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4226
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4228
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4230
# The compiler driver will combine and reorder linker options,
4231
# but understands `-z linker_flag'.
4232
# Supported since Solaris 2.6 (maybe 2.5.1?)
4233
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4236
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4238
output_verbose_link_cmd='echo'
4240
# Archives containing C++ object files must be created using
4241
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4242
# necessary to make sure instantiated templates are included
4244
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4247
# Green Hills C++ Compiler
4248
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4250
# The C++ compiler must be used to create the archive.
4251
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4254
# GNU C++ compiler with Solaris linker
4255
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4256
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4257
if $CC --version | grep -v '^2\.7' > /dev/null; then
4258
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4259
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4260
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4262
# Commands to make compiler produce verbose output that lists
4263
# what "hidden" libraries, object files and flags are used when
4264
# linking a shared library.
4265
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4267
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4269
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4270
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4271
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4273
# Commands to make compiler produce verbose output that lists
4274
# what "hidden" libraries, object files and flags are used when
4275
# linking a shared library.
4276
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4281
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4283
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4290
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4291
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4292
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4293
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4294
runpath_var='LD_RUN_PATH'
4296
case $cc_basename in
4298
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4299
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4302
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4303
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4307
sysv5* | sco3.2v5* | sco5v6*)
4308
# Note: We can NOT use -z defs as we might desire, because we do not
4309
# link with -lc, and that would cause any symbols used from libc to
4310
# always be unresolved, which means just about no library would
4311
# ever link correctly. If we're not using GNU ld we use -z text
4312
# though, which does catch some bad symbols but isn't as heavy-handed
4314
# For security reasons, it is highly recommended that you always
4315
# use absolute paths for naming shared libraries, and exclude the
4316
# DT_RUNPATH tag from executables and libraries. But doing so
4317
# requires that you compile everything twice, which is a pain.
4318
# So that behaviour is only enabled if SCOABSPATH is set to a
4319
# non-empty value in the environment. Most likely only useful for
4320
# creating official distributions of packages.
4321
# This is a hack until libtool officially supports absolute path
4322
# names for shared libraries.
4323
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4324
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4325
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4326
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4327
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4328
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4329
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4330
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4331
runpath_var='LD_RUN_PATH'
4333
case $cc_basename in
4335
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4336
_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'
4339
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4340
_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'
4345
case $cc_basename in
4347
# NonStop-UX NCC 3.20
4348
# FIXME: insert proper C++ library support
4349
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4352
# FIXME: insert proper C++ library support
4353
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4358
# FIXME: insert proper C++ library support
4359
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4362
# FIXME: insert proper C++ library support
4363
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4366
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4367
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4369
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4370
_LT_AC_TAGVAR(LD, $1)="$LD"
4372
AC_LIBTOOL_POSTDEP_PREDEP($1)
4373
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4374
AC_LIBTOOL_PROG_CC_C_O($1)
4375
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4376
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4377
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4378
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4380
AC_LIBTOOL_CONFIG($1)
4387
with_gnu_ldcxx=$with_gnu_ld
4388
with_gnu_ld=$lt_save_with_gnu_ld
4389
lt_cv_path_LDCXX=$lt_cv_path_LD
4390
lt_cv_path_LD=$lt_save_path_LD
4391
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4392
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4393
])# AC_LIBTOOL_LANG_CXX_CONFIG
4395
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4396
# ------------------------------------
4397
# Figure out "hidden" library dependencies from verbose
4398
# compiler output when linking a shared library.
4399
# Parse the compiler output and extract the necessary
4400
# objects, libraries and library flags.
4401
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4402
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4403
dnl we can't use the lt_simple_compile_test_code here,
4404
dnl because it contains code intended for an executable,
4405
dnl not a library. It's possible we should let each
4406
dnl tag define a new lt_????_link_test_code variable,
4407
dnl but it's only used here...
4408
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4410
void foo (void) { a = 0; }
4412
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4416
Foo (void) { a = 0; }
4421
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4429
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4432
public void bar (void) {
4438
dnl Parse the compiler output and extract the necessary
4439
dnl objects, libraries and library flags.
4440
if AC_TRY_EVAL(ac_compile); then
4441
# Parse the compiler output and extract the necessary
4442
# objects, libraries and library flags.
4444
# Sentinel used to keep track of whether or not we are before
4445
# the conftest object file.
4446
pre_test_object_deps_done=no
4448
# The `*' in the case matches for architectures that use `case' in
4449
# $output_verbose_cmd can trigger glob expansion during the loop
4450
# eval without this substitution.
4451
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4453
for p in `eval $output_verbose_link_cmd`; do
4457
# Some compilers place space between "-{L,R}" and the path.
4460
|| test $p = "-R"; then
4467
if test "$pre_test_object_deps_done" = no; then
4470
# Internal compiler library paths should come after those
4471
# provided the user. The postdeps already come after the
4472
# user supplied libs so there is no need to process them.
4473
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4474
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4476
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4479
# The "-l" case would never come before the object being
4480
# linked, so don't bother handling this case.
4483
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4484
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4486
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4492
# This assumes that the test object file only shows up
4493
# once in the compiler output.
4494
if test "$p" = "conftest.$objext"; then
4495
pre_test_object_deps_done=yes
4499
if test "$pre_test_object_deps_done" = no; then
4500
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4501
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4503
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4506
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4507
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4509
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4514
*) ;; # Ignore the rest.
4522
echo "libtool.m4: error: problem compiling $1 test program"
4525
$rm -f confest.$objext
4527
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4528
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4529
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4532
# PORTME: override above test on systems where it is broken
4536
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4537
# hack all around it, let's just trust "g++" to DTRT.
4538
_LT_AC_TAGVAR(predep_objects,$1)=
4539
_LT_AC_TAGVAR(postdep_objects,$1)=
4540
_LT_AC_TAGVAR(postdeps,$1)=
4544
case `$CC -V 2>&1 | sed 5q` in
4548
# The more standards-conforming stlport4 library is
4549
# incompatible with the Cstd library. Avoid specifying
4550
# it if it's in CXXFLAGS. Ignore libCrun as
4551
# -library=stlport4 depends on it.
4552
case " $CXX $CXXFLAGS " in
4553
*" -library=stlport4 "*)
4554
solaris_use_stlport4=yes
4557
if test "$solaris_use_stlport4" != yes; then
4558
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4565
case $cc_basename in
4567
# The more standards-conforming stlport4 library is
4568
# incompatible with the Cstd library. Avoid specifying
4569
# it if it's in CXXFLAGS. Ignore libCrun as
4570
# -library=stlport4 depends on it.
4571
case " $CXX $CXXFLAGS " in
4572
*" -library=stlport4 "*)
4573
solaris_use_stlport4=yes
4577
# Adding this requires a known-good setup of shared libraries for
4578
# Sun compiler versions before 5.6, else PIC objects from an old
4579
# archive will be linked into the output, leading to subtle bugs.
4580
if test "$solaris_use_stlport4" != yes; then
4581
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4588
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4589
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4591
])# AC_LIBTOOL_POSTDEP_PREDEP
4593
# AC_LIBTOOL_LANG_F77_CONFIG
4594
# --------------------------
4595
# Ensure that the configuration vars for the C compiler are
4596
# suitably defined. Those variables are subsequently used by
4597
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4598
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4599
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4600
[AC_REQUIRE([AC_PROG_F77])
4601
AC_LANG_PUSH(Fortran 77)
4603
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4604
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4605
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4606
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4607
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4608
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4609
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4610
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4611
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4612
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4613
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4614
_LT_AC_TAGVAR(module_cmds, $1)=
4615
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4616
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4617
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4618
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4619
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4620
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4622
# Source file extension for f77 test sources.
4625
# Object file extension for compiled f77 test sources.
4627
_LT_AC_TAGVAR(objext, $1)=$objext
4629
# Code to be used in simple compile tests
4630
lt_simple_compile_test_code="\
4636
# Code to be used in simple link tests
4637
lt_simple_link_test_code="\
4642
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4645
# save warnings/boilerplate of simple test code
4646
_LT_COMPILER_BOILERPLATE
4647
_LT_LINKER_BOILERPLATE
4649
# Allow CC to be a program name with arguments.
4653
_LT_AC_TAGVAR(compiler, $1)=$CC
4654
_LT_CC_BASENAME([$compiler])
4656
AC_MSG_CHECKING([if libtool supports shared libraries])
4657
AC_MSG_RESULT([$can_build_shared])
4659
AC_MSG_CHECKING([whether to build shared libraries])
4660
test "$can_build_shared" = "no" && enable_shared=no
4662
# On AIX, shared libraries and static libraries use the same namespace, and
4663
# are all built from PIC.
4666
test "$enable_shared" = yes && enable_static=no
4667
if test -n "$RANLIB"; then
4668
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4669
postinstall_cmds='$RANLIB $lib'
4673
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4674
test "$enable_shared" = yes && enable_static=no
4678
AC_MSG_RESULT([$enable_shared])
4680
AC_MSG_CHECKING([whether to build static libraries])
4681
# Make sure either enable_shared or enable_static is yes.
4682
test "$enable_shared" = yes || enable_static=yes
4683
AC_MSG_RESULT([$enable_static])
4685
_LT_AC_TAGVAR(GCC, $1)="$G77"
4686
_LT_AC_TAGVAR(LD, $1)="$LD"
4688
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4689
AC_LIBTOOL_PROG_CC_C_O($1)
4690
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4691
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4692
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4693
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4695
AC_LIBTOOL_CONFIG($1)
4699
])# AC_LIBTOOL_LANG_F77_CONFIG
4702
# AC_LIBTOOL_LANG_GCJ_CONFIG
4703
# --------------------------
4704
# Ensure that the configuration vars for the C compiler are
4705
# suitably defined. Those variables are subsequently used by
4706
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4707
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4708
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4711
# Source file extension for Java test sources.
4714
# Object file extension for compiled Java test sources.
4716
_LT_AC_TAGVAR(objext, $1)=$objext
4718
# Code to be used in simple compile tests
4719
lt_simple_compile_test_code="class foo {}"
4721
# Code to be used in simple link tests
4722
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4724
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4727
# save warnings/boilerplate of simple test code
4728
_LT_COMPILER_BOILERPLATE
4729
_LT_LINKER_BOILERPLATE
4731
# Allow CC to be a program name with arguments.
4735
_LT_AC_TAGVAR(compiler, $1)=$CC
4736
_LT_CC_BASENAME([$compiler])
4738
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4739
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4741
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4743
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4744
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4745
AC_LIBTOOL_PROG_CC_C_O($1)
4746
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4747
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4748
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4749
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4751
AC_LIBTOOL_CONFIG($1)
4755
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4758
# AC_LIBTOOL_LANG_RC_CONFIG
4759
# -------------------------
4760
# Ensure that the configuration vars for the Windows resource compiler are
4761
# suitably defined. Those variables are subsequently used by
4762
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4763
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4764
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4767
# Source file extension for RC test sources.
4770
# Object file extension for compiled RC test sources.
4772
_LT_AC_TAGVAR(objext, $1)=$objext
4774
# Code to be used in simple compile tests
4775
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4777
# Code to be used in simple link tests
4778
lt_simple_link_test_code="$lt_simple_compile_test_code"
4780
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4783
# save warnings/boilerplate of simple test code
4784
_LT_COMPILER_BOILERPLATE
4785
_LT_LINKER_BOILERPLATE
4787
# Allow CC to be a program name with arguments.
4791
_LT_AC_TAGVAR(compiler, $1)=$CC
4792
_LT_CC_BASENAME([$compiler])
4793
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4795
AC_LIBTOOL_CONFIG($1)
4799
])# AC_LIBTOOL_LANG_RC_CONFIG
4802
# AC_LIBTOOL_CONFIG([TAGNAME])
4803
# ----------------------------
4804
# If TAGNAME is not passed, then create an initial libtool script
4805
# with a default configuration from the untagged config vars. Otherwise
4806
# add code to config.status for appending the configuration named by
4807
# TAGNAME from the matching tagged config vars.
4808
AC_DEFUN([AC_LIBTOOL_CONFIG],
4809
[# The else clause should only fire when bootstrapping the
4810
# libtool distribution, otherwise you forgot to ship ltmain.sh
4811
# with your package, and you will get complaints that there are
4812
# no rules to generate ltmain.sh.
4813
if test -f "$ltmain"; then
4814
# See if we are running on zsh, and set the options which allow our commands through
4815
# without removal of \ escapes.
4816
if test -n "${ZSH_VERSION+set}" ; then
4817
setopt NO_GLOB_SUBST
4819
# Now quote all the things that may contain metacharacters while being
4820
# careful not to overquote the AC_SUBSTed values. We take copies of the
4821
# variables and quote the copies for generation of the libtool script.
4822
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4824
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4825
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4826
deplibs_check_method reload_flag reload_cmds need_locks \
4827
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4828
lt_cv_sys_global_symbol_to_c_name_address \
4829
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4830
old_postinstall_cmds old_postuninstall_cmds \
4831
_LT_AC_TAGVAR(compiler, $1) \
4832
_LT_AC_TAGVAR(CC, $1) \
4833
_LT_AC_TAGVAR(LD, $1) \
4834
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4835
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4836
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4837
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4838
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4839
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4840
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4841
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4842
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4843
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4844
_LT_AC_TAGVAR(predep_objects, $1) \
4845
_LT_AC_TAGVAR(postdep_objects, $1) \
4846
_LT_AC_TAGVAR(predeps, $1) \
4847
_LT_AC_TAGVAR(postdeps, $1) \
4848
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4849
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4850
_LT_AC_TAGVAR(archive_cmds, $1) \
4851
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4852
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4853
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4854
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4855
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4856
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4857
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4858
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4859
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4860
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4861
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4862
_LT_AC_TAGVAR(module_cmds, $1) \
4863
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4864
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4865
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4866
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4867
_LT_AC_TAGVAR(include_expsyms, $1); do
4870
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4871
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4872
_LT_AC_TAGVAR(archive_cmds, $1) | \
4873
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4874
_LT_AC_TAGVAR(module_cmds, $1) | \
4875
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4876
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4877
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4878
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4879
postinstall_cmds | postuninstall_cmds | \
4880
old_postinstall_cmds | old_postuninstall_cmds | \
4881
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4882
# Double-quote double-evaled strings.
4883
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4886
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4892
*'\[$]0 --fallback-echo"')
4893
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4898
[cfgfile="${ofile}T"
4899
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4901
AC_MSG_NOTICE([creating $ofile])],
4904
cat <<__EOF__ >> "$cfgfile"
4908
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4909
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4910
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4912
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4913
# Free Software Foundation, Inc.
4915
# This file is part of GNU Libtool:
4916
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4918
# This program is free software; you can redistribute it and/or modify
4919
# it under the terms of the GNU General Public License as published by
4920
# the Free Software Foundation; either version 2 of the License, or
4921
# (at your option) any later version.
4923
# This program is distributed in the hope that it will be useful, but
4924
# WITHOUT ANY WARRANTY; without even the implied warranty of
4925
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4926
# General Public License for more details.
4928
# You should have received a copy of the GNU General Public License
4929
# along with this program; if not, write to the Free Software
4930
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4932
# As a special exception to the GNU General Public License, if you
4933
# distribute this file as part of a program that contains a
4934
# configuration script generated by Autoconf, you may include it under
4935
# the same distribution terms that you use for the rest of that program.
4937
# A sed program that does not truncate output.
4940
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4941
Xsed="$SED -e 1s/^X//"
4943
# The HP-UX ksh and POSIX shell print the target directory to stdout
4945
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4947
# The names of the tagged configurations supported by this script.
4950
# ### BEGIN LIBTOOL CONFIG],
4951
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4953
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4955
# Shell to use when invoking shell scripts.
4958
# Whether or not to build shared libraries.
4959
build_libtool_libs=$enable_shared
4961
# Whether or not to build static libraries.
4962
build_old_libs=$enable_static
4964
# Whether or not to add -lc for building shared libraries.
4965
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4967
# Whether or not to disallow shared libs when runtime libs are static
4968
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4970
# Whether or not to optimize for fast installation.
4971
fast_install=$enable_fast_install
4974
host_alias=$host_alias
4979
build_alias=$build_alias
4983
# An echo program that does not interpret backslashes.
4988
AR_FLAGS=$lt_AR_FLAGS
4993
# LTCC compiler flags.
4994
LTCFLAGS=$lt_LTCFLAGS
4996
# A language-specific compiler.
4997
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4999
# Is the compiler the GNU C compiler?
5000
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5005
# The linker used to build libraries.
5006
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5008
# Whether we need hard or soft links.
5011
# A BSD-compatible nm program.
5014
# A symbol stripping program
5017
# Used to examine libraries when file_magic_cmd begins "file"
5018
MAGIC_CMD=$MAGIC_CMD
5020
# Used on cygwin: DLL creation program.
5023
# Used on cygwin: object dumper.
5026
# Used on cygwin: assembler.
5029
# The name of the directory that contains temporary libtool files.
5032
# How to create reloadable object files.
5033
reload_flag=$lt_reload_flag
5034
reload_cmds=$lt_reload_cmds
5036
# How to pass a linker flag through the compiler.
5037
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5039
# Object file suffix (normally "o").
5042
# Old archive suffix (normally "a").
5045
# Shared library suffix (normally ".so").
5046
shrext_cmds='$shrext_cmds'
5048
# Executable file suffix (normally "").
5051
# Additional compiler flags for building library objects.
5052
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5055
# What is the maximum length of a command?
5056
max_cmd_len=$lt_cv_sys_max_cmd_len
5058
# Does compiler simultaneously support -c and -o options?
5059
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5061
# Must we lock files when doing compilation?
5062
need_locks=$lt_need_locks
5064
# Do we need the lib prefix for modules?
5065
need_lib_prefix=$need_lib_prefix
5067
# Do we need a version for libraries?
5068
need_version=$need_version
5070
# Whether dlopen is supported.
5071
dlopen_support=$enable_dlopen
5073
# Whether dlopen of programs is supported.
5074
dlopen_self=$enable_dlopen_self
5076
# Whether dlopen of statically linked programs is supported.
5077
dlopen_self_static=$enable_dlopen_self_static
5079
# Compiler flag to prevent dynamic linking.
5080
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5082
# Compiler flag to turn off builtin functions.
5083
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5085
# Compiler flag to allow reflexive dlopens.
5086
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5088
# Compiler flag to generate shared objects directly from archives.
5089
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5091
# Compiler flag to generate thread-safe objects.
5092
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5094
# Library versioning type.
5095
version_type=$version_type
5097
# Format of library name prefix.
5098
libname_spec=$lt_libname_spec
5100
# List of archive names. First name is the real one, the rest are links.
5101
# The last name is the one that the linker finds with -lNAME.
5102
library_names_spec=$lt_library_names_spec
5104
# The coded name of the library, if different from the real name.
5105
soname_spec=$lt_soname_spec
5107
# Commands used to build and install an old-style archive.
5109
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5110
old_postinstall_cmds=$lt_old_postinstall_cmds
5111
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5113
# Create an old-style archive from a shared archive.
5114
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5116
# Create a temporary old-style archive to link instead of a shared archive.
5117
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5119
# Commands used to build and install a shared archive.
5120
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5121
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5122
postinstall_cmds=$lt_postinstall_cmds
5123
postuninstall_cmds=$lt_postuninstall_cmds
5125
# Commands used to build a loadable module (assumed same as above if empty)
5126
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5127
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5129
# Commands to strip libraries.
5130
old_striplib=$lt_old_striplib
5131
striplib=$lt_striplib
5133
# Dependencies to place before the objects being linked to create a
5135
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5137
# Dependencies to place after the objects being linked to create a
5139
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5141
# Dependencies to place before the objects being linked to create a
5143
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5145
# Dependencies to place after the objects being linked to create a
5147
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5149
# The directories searched by this compiler when creating a shared
5151
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5153
# The library search path used internally by the compiler when linking
5155
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5157
# Method to check whether dependent libraries are shared objects.
5158
deplibs_check_method=$lt_deplibs_check_method
5160
# Command to use when deplibs_check_method == file_magic.
5161
file_magic_cmd=$lt_file_magic_cmd
5163
# Flag that allows shared libraries with undefined symbols to be built.
5164
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5166
# Flag that forces no undefined symbols.
5167
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5169
# Commands used to finish a libtool library installation in a directory.
5170
finish_cmds=$lt_finish_cmds
5172
# Same as above, but a single script fragment to be evaled but not shown.
5173
finish_eval=$lt_finish_eval
5175
# Take the output of nm and produce a listing of raw symbols and C names.
5176
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5178
# Transform the output of nm in a proper C declaration
5179
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5181
# Transform the output of nm in a C name address pair
5182
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5184
# This is the shared library runtime path variable.
5185
runpath_var=$runpath_var
5187
# This is the shared library path variable.
5188
shlibpath_var=$shlibpath_var
5190
# Is shlibpath searched before the hard-coded library search path?
5191
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5193
# How to hardcode a shared library path into an executable.
5194
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5196
# Whether we should hardcode library paths into libraries.
5197
hardcode_into_libs=$hardcode_into_libs
5199
# Flag to hardcode \$libdir into a binary during linking.
5200
# This must work even if \$libdir does not exist.
5201
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5203
# If ld is used when linking, flag to hardcode \$libdir into
5204
# a binary during linking. This must work even if \$libdir does
5206
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5208
# Whether we need a single -rpath flag with a separated argument.
5209
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5211
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5213
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5215
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5217
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5219
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5220
# the resulting binary.
5221
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5223
# Set to yes if building a shared library automatically hardcodes DIR into the library
5224
# and all subsequent libraries and executables linked against it.
5225
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5227
# Variables whose values should be saved in libtool wrapper scripts and
5228
# restored at relink time.
5229
variables_saved_for_relink="$variables_saved_for_relink"
5231
# Whether libtool must link a program against all its dependency libraries.
5232
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5234
# Compile-time system search path for libraries
5235
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5237
# Run-time system search path for libraries
5238
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5240
# Fix the shell variable \$srcfile for the compiler.
5241
fix_srcfile_path=$lt_fix_srcfile_path
5243
# Set to yes if exported symbols are required.
5244
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5246
# The commands to list exported symbols.
5247
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5249
# The commands to extract the exported symbol list from a shared archive.
5250
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5252
# Symbols that should not be listed in the preloaded symbols.
5253
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5255
# Symbols that must always be exported.
5256
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5259
[# ### END LIBTOOL CONFIG],
5260
[# ### END LIBTOOL TAG CONFIG: $tagname])
5267
cat <<\EOF >> "$cfgfile"
5269
# AIX sometimes has problems with the GCC collect2 program. For some
5270
# reason, if we set the COLLECT_NAMES environment variable, the problems
5271
# vanish in a puff of smoke.
5272
if test "X${COLLECT_NAMES+set}" != Xset; then
5274
export COLLECT_NAMES
5280
# We use sed instead of cat because bash on DJGPP gets confused if
5281
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5282
# text mode, it properly converts lines to CR/LF. This bash problem
5283
# is reportedly fixed, but why not run on old versions too?
5284
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5286
mv -f "$cfgfile" "$ofile" || \
5287
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5291
# If there is no Makefile yet, we rely on a make rule to execute
5292
# `config.status --recheck' to rerun these tests and create the
5293
# libtool script then.
5294
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5295
if test -f "$ltmain_in"; then
5296
test -f Makefile && make "$ltmain"
5299
])# AC_LIBTOOL_CONFIG
5302
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5303
# -------------------------------------------
5304
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5305
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5307
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5309
if test "$GCC" = yes; then
5310
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5312
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5313
lt_cv_prog_compiler_rtti_exceptions,
5314
[-fno-rtti -fno-exceptions], [],
5315
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5317
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5320
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5321
# ---------------------------------
5322
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5323
[AC_REQUIRE([AC_CANONICAL_HOST])
5324
AC_REQUIRE([LT_AC_PROG_SED])
5325
AC_REQUIRE([AC_PROG_NM])
5326
AC_REQUIRE([AC_OBJEXT])
5327
# Check for command to grab the raw symbol name followed by C symbol from nm.
5328
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5329
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5331
# These are sane defaults that work on at least a few old systems.
5332
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5334
# Character class describing NM global symbol codes.
5335
symcode='[[BCDEGRST]]'
5337
# Regexp to match symbols that can be accessed directly from C.
5338
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5340
# Transform an extracted symbol line into a proper C declaration
5341
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5343
# Transform an extracted symbol line into symbol name and symbol address
5344
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'"
5346
# Define system-specific variables.
5351
cygwin* | mingw* | pw32*)
5352
symcode='[[ABCDGISTW]]'
5354
hpux*) # Its linker distinguishes data from code symbols
5355
if test "$host_cpu" = ia64; then
5356
symcode='[[ABCDEGRST]]'
5358
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5359
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'"
5361
linux* | k*bsd*-gnu)
5362
if test "$host_cpu" = ia64; then
5363
symcode='[[ABCDGIRSTW]]'
5364
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5365
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'"
5369
symcode='[[BCDEGRST]]'
5372
symcode='[[BCDEGQRST]]'
5383
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5387
symcode='[[DFNSTU]]'
5391
# Handle CRLF in mingw tool chain
5395
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5399
# If we're using GNU nm, then use its standard symbol codes.
5400
case `$NM -V 2>&1` in
5401
*GNU* | *'with BFD'*)
5402
symcode='[[ABCDGIRSTW]]' ;;
5405
# Try without a prefix undercore, then with it.
5406
for ac_symprfx in "" "_"; do
5408
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5409
symxfrm="\\1 $ac_symprfx\\2 \\2"
5411
# Write the raw and C identifiers.
5412
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5414
# Check to see that the pipe works correctly.
5418
cat > conftest.$ac_ext <<EOF
5423
void nm_test_func(){}
5427
int main(){nm_test_var='a';nm_test_func();return(0);}
5430
if AC_TRY_EVAL(ac_compile); then
5431
# Now try to grab the symbols.
5433
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5434
# Try sorting and uniquifying the output.
5435
if sort "$nlist" | uniq > "$nlist"T; then
5436
mv -f "$nlist"T "$nlist"
5441
# Make sure that we snagged all the symbols we need.
5442
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444
cat <<EOF > conftest.$ac_ext
5450
# Now generate the symbol file.
5451
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5453
cat <<EOF >> conftest.$ac_ext
5454
#if defined (__STDC__) && __STDC__
5455
# define lt_ptr_t void *
5457
# define lt_ptr_t char *
5461
/* The mapping between symbol names and symbols. */
5466
lt_preloaded_symbols[[]] =
5469
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470
cat <<\EOF >> conftest.$ac_ext
5478
# Now try linking the two files.
5479
mv conftest.$ac_objext conftstm.$ac_objext
5480
lt_save_LIBS="$LIBS"
5481
lt_save_CFLAGS="$CFLAGS"
5482
LIBS="conftstm.$ac_objext"
5483
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5484
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5487
LIBS="$lt_save_LIBS"
5488
CFLAGS="$lt_save_CFLAGS"
5490
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5493
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5496
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5499
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5500
cat conftest.$ac_ext >&5
5502
rm -rf conftest* conftst*
5504
# Do not use the global_symbol_pipe unless it works.
5505
if test "$pipe_works" = yes; then
5508
lt_cv_sys_global_symbol_pipe=
5512
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5513
lt_cv_sys_global_symbol_to_cdecl=
5515
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5516
AC_MSG_RESULT(failed)
5520
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5523
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5524
# ---------------------------------------
5525
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5526
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5527
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5528
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5530
AC_MSG_CHECKING([for $compiler option to produce PIC])
5532
# C++ specific cases for pic, static, wl, etc.
5533
if test "$GXX" = yes; then
5534
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5535
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5539
# All AIX code is PIC.
5540
if test "$host_cpu" = ia64; then
5541
# AIX 5 now supports IA64 processor
5542
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5546
# FIXME: we need at least 68020 code to build shared libraries, but
5547
# adding the `-m68020' flag to GCC prevents building anything better,
5549
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5551
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5552
# PIC is the default for these OSes.
5554
mingw* | cygwin* | os2* | pw32*)
5555
# This hack is so that the source file can tell whether it is being
5556
# built for inclusion in a dll (and should export symbols for example).
5557
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5558
# (--disable-auto-import) libraries
5559
m4_if([$1], [GCJ], [],
5560
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5562
darwin* | rhapsody*)
5563
# PIC is the default on this platform
5564
# Common symbols not allowed in MH_DYLIB files
5565
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5568
# DJGPP does not support shared libraries at all
5569
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5572
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5573
# Instead, we relocate shared libraries at runtime.
5576
if test -d /usr/nec; then
5577
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5581
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5587
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5592
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5598
# All AIX code is PIC.
5599
if test "$host_cpu" = ia64; then
5600
# AIX 5 now supports IA64 processor
5601
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5603
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5607
case $cc_basename in
5609
# Green Hills C++ Compiler
5610
# _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"
5615
# PIC is the default on this platform
5616
# Common symbols not allowed in MH_DYLIB files
5617
case $cc_basename in
5619
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5620
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5625
case $cc_basename in
5627
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5630
# Green Hills C++ Compiler
5631
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5637
freebsd* | dragonfly*)
5638
# FreeBSD uses GNU C++
5640
hpux9* | hpux10* | hpux11*)
5641
case $cc_basename in
5643
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5644
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5645
if test "$host_cpu" != ia64; then
5646
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5650
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5651
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5657
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5666
# This is c89, which is MS Visual C++ (no shared libs)
5667
# Anyone wants to do a port?
5669
irix5* | irix6* | nonstopux*)
5670
case $cc_basename in
5672
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5673
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5674
# CC pic flag -KPIC is the default.
5680
linux* | k*bsd*-gnu)
5681
case $cc_basename in
5684
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5685
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5689
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5690
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5691
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5694
# Portland Group C++ compiler.
5695
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5696
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5697
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5701
# Make sure the PIC flag is empty. It appears that all Alpha
5702
# Linux and Compaq Tru64 Unix objects are PIC.
5703
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5704
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5707
case `$CC -V 2>&1 | sed 5q` in
5710
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5711
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5712
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5723
case $cc_basename in
5725
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5731
netbsd* | netbsdelf*-gnu)
5733
osf3* | osf4* | osf5*)
5734
case $cc_basename in
5736
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5739
# Rational C++ 2.4.1
5740
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5743
# Digital/Compaq C++
5744
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5745
# Make sure the PIC flag is empty. It appears that all Alpha
5746
# Linux and Compaq Tru64 Unix objects are PIC.
5747
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5748
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5757
case $cc_basename in
5759
# Sun C++ 4.2, 5.x and Centerline C++
5760
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5761
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5762
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5765
# Green Hills C++ Compiler
5766
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5773
case $cc_basename in
5776
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5777
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5781
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5788
case $cc_basename in
5790
# NonStop-UX NCC 3.20
5791
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5797
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5798
case $cc_basename in
5800
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5801
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5802
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5809
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5815
if test "$GCC" = yes; then
5816
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5817
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5821
# All AIX code is PIC.
5822
if test "$host_cpu" = ia64; then
5823
# AIX 5 now supports IA64 processor
5824
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5829
# FIXME: we need at least 68020 code to build shared libraries, but
5830
# adding the `-m68020' flag to GCC prevents building anything better,
5832
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5835
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5836
# PIC is the default for these OSes.
5839
mingw* | cygwin* | pw32* | os2*)
5840
# This hack is so that the source file can tell whether it is being
5841
# built for inclusion in a dll (and should export symbols for example).
5842
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5843
# (--disable-auto-import) libraries
5844
m4_if([$1], [GCJ], [],
5845
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5848
darwin* | rhapsody*)
5849
# PIC is the default on this platform
5850
# Common symbols not allowed in MH_DYLIB files
5851
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5855
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5856
# Instead, we relocate shared libraries at runtime.
5860
# Just because we use GCC doesn't mean we suddenly get shared libraries
5861
# on systems that don't support them.
5862
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5867
if test -d /usr/nec; then
5868
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5873
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5880
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5886
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5890
# PORTME Check for flag to pass linker flags through the system compiler.
5893
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5894
if test "$host_cpu" = ia64; then
5895
# AIX 5 now supports IA64 processor
5896
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5898
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5902
# PIC is the default on this platform
5903
# Common symbols not allowed in MH_DYLIB files
5904
case $cc_basename in
5906
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5907
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5912
mingw* | cygwin* | pw32* | os2*)
5913
# This hack is so that the source file can tell whether it is being
5914
# built for inclusion in a dll (and should export symbols for example).
5915
m4_if([$1], [GCJ], [],
5916
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5919
hpux9* | hpux10* | hpux11*)
5920
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5921
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5928
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5931
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5932
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5935
irix5* | irix6* | nonstopux*)
5936
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5937
# PIC (with -KPIC) is the default.
5938
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5942
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5943
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5946
linux* | k*bsd*-gnu)
5947
case $cc_basename in
5949
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5950
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5951
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5953
pgcc* | pgf77* | pgf90* | pgf95*)
5954
# Portland Group compilers (*not* the Pentium gcc compiler,
5955
# which looks to be a dead project)
5956
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5957
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5958
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5961
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5962
# All Alpha code is PIC.
5963
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5966
case `$CC -V 2>&1 | sed 5q` in
5969
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5970
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5971
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5974
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5975
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5976
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5977
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5984
osf3* | osf4* | osf5*)
5985
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5986
# All OSF/1 code is PIC.
5987
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5991
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5995
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5996
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5997
case $cc_basename in
5999
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6001
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6006
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6007
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6008
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6011
sysv4 | sysv4.2uw2* | sysv4.3*)
6012
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6013
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6014
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6018
if test -d /usr/nec ;then
6019
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6020
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6024
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6025
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6026
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6027
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6031
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6032
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6036
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6037
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6041
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6046
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6049
# Check to make sure the PIC flag actually works.
6051
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6052
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6053
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6054
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6055
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6057
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6059
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6060
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6063
# For platforms which do not support PIC, -DPIC is meaningless:
6065
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6068
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6073
# Check to make sure the static flag actually works.
6075
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6076
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6077
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6078
$lt_tmp_static_flag,
6080
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6084
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6085
# ------------------------------------
6086
# See if the linker supports building shared libraries.
6087
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6088
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6089
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6091
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6094
# If we're using GNU nm, then we don't want the "-C" option.
6095
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6096
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6097
_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'
6099
_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'
6103
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6106
_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'
6108
linux* | k*bsd*-gnu)
6109
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6112
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6115
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6118
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6119
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6120
_LT_AC_TAGVAR(archive_cmds, $1)=
6121
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6122
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6123
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6124
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6125
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6126
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6127
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6128
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6129
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6130
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6131
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6132
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6133
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6134
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6135
_LT_AC_TAGVAR(module_cmds, $1)=
6136
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6137
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6138
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6139
# include_expsyms should be a list of space-separated symbols to be *always*
6140
# included in the symbol list
6141
_LT_AC_TAGVAR(include_expsyms, $1)=
6142
# exclude_expsyms can be an extended regexp of symbols to exclude
6143
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6144
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6145
# as well as any symbol that contains `d'.
6146
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6147
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6148
# platforms (ab)use it in PIC code, but their linkers get confused if
6149
# the symbol is explicitly referenced. Since portable code cannot
6150
# rely on this symbol name, it's probably fine to never include it in
6151
# preloaded symbol tables.
6152
# Exclude shared library initialization/finalization symbols.
6153
dnl Note also adjust exclude_expsyms for C++ above.
6154
extract_expsyms_cmds=
6155
# Just being paranoid about ensuring that cc_basename is set.
6156
_LT_CC_BASENAME([$compiler])
6158
cygwin* | mingw* | pw32*)
6159
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6160
# When not using gcc, we currently assume that we are using
6161
# Microsoft Visual C++.
6162
if test "$GCC" != yes; then
6167
# we just hope/assume this is gcc and not c89 (= MSVC++)
6175
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6176
if test "$with_gnu_ld" = yes; then
6177
# If archive_cmds runs LD, not CC, wlarc should be empty
6180
# Set some defaults for GNU ld with shared library support. These
6181
# are reset later if shared libraries are not supported. Putting them
6182
# here allows them to be overridden if necessary.
6183
runpath_var=LD_RUN_PATH
6184
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6185
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6186
# ancient GNU ld didn't support --whole-archive et. al.
6187
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6188
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6190
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6192
supports_anon_versioning=no
6193
case `$LD -v 2>/dev/null` in
6194
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6195
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6196
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6197
*\ 2.11.*) ;; # other 2.11 versions
6198
*) supports_anon_versioning=yes ;;
6201
# See if GNU ld supports shared libraries.
6204
# On AIX/PPC, the GNU linker is very broken
6205
if test "$host_cpu" != ia64; then
6206
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6209
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6210
*** to be unable to reliably create shared libraries on AIX.
6211
*** Therefore, libtool is disabling shared libraries support. If you
6212
*** really care for shared libraries, you may want to modify your PATH
6213
*** so that a non-GNU linker is found, and then restart.
6220
_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)'
6221
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6222
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6224
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6225
# that the semantics of dynamic libraries on AmigaOS, at least up
6226
# to version 4, is to share data among multiple programs linked
6227
# with the same dynamic library. Since this doesn't match the
6228
# behavior of shared libraries on other platforms, we can't use
6230
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6234
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6235
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6236
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6237
# support --undefined. This deserves some investigation. FIXME
6238
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6240
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6244
cygwin* | mingw* | pw32*)
6245
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6246
# as there is no search path for DLLs.
6247
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6248
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6249
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6250
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6251
_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'
6253
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6254
_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'
6255
# If the export-symbols file already is a .def file (1st line
6256
# is EXPORTS), use it as is; otherwise, prepend...
6257
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6258
cp $export_symbols $output_objdir/$soname.def;
6260
echo EXPORTS > $output_objdir/$soname.def;
6261
cat $export_symbols >> $output_objdir/$soname.def;
6263
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6265
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6270
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6271
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6272
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6273
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6274
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6275
# Instead, shared libraries are loaded at an image base (0x10000000 by
6276
# default) and relocated if they conflict, which is a slow very memory
6277
# consuming and fragmenting process. To avoid this, we pick a random,
6278
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6279
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6280
_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'
6281
_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'
6284
gnu* | linux* | k*bsd*-gnu)
6285
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6287
case $cc_basename,$host_cpu in
6288
pgcc*) # Portland Group C compiler
6289
_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'
6290
tmp_addflag=' $pic_flag'
6292
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6293
_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'
6294
tmp_addflag=' $pic_flag -Mnomain' ;;
6295
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6296
tmp_addflag=' -i_dynamic' ;;
6297
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6298
tmp_addflag=' -i_dynamic -nofor_main' ;;
6299
ifc* | ifort*) # Intel Fortran compiler
6300
tmp_addflag=' -nofor_main' ;;
6302
case `$CC -V 2>&1 | sed 5q` in
6303
*Sun\ C*) # Sun C 5.9
6304
_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'
6305
tmp_sharedflag='-G' ;;
6306
*Sun\ F*) # Sun Fortran 8.3
6307
tmp_sharedflag='-G' ;;
6309
tmp_sharedflag='-shared' ;;
6311
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6313
if test $supports_anon_versioning = yes; then
6314
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6315
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6316
$echo "local: *; };" >> $output_objdir/$libname.ver~
6317
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6319
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6321
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6325
netbsd* | netbsdelf*-gnu)
6326
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6327
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6330
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6331
_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'
6336
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6337
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6340
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6341
*** create shared libraries on Solaris systems. Therefore, libtool
6342
*** is disabling shared libraries support. We urge you to upgrade GNU
6343
*** binutils to release 2.9.1 or newer. Another option is to modify
6344
*** your PATH or compiler configuration so that the native linker is
6345
*** used, and then restart.
6348
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6349
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6350
_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'
6352
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6356
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6357
case `$LD -v 2>&1` in
6358
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6359
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6362
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6363
*** reliably create shared libraries on SCO systems. Therefore, libtool
6364
*** is disabling shared libraries support. We urge you to upgrade GNU
6365
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6366
*** your PATH or compiler configuration so that the native linker is
6367
*** used, and then restart.
6372
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6373
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6374
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6375
_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'
6377
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6384
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6386
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6387
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6391
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6392
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6393
_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'
6395
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6400
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6402
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6403
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6404
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6407
# PORTME fill in a description of your system's linker (not GNU ld)
6410
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6411
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6412
_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'
6413
# Note: this linker hardcodes the directories in LIBPATH if there
6414
# are no directories specified by -L.
6415
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6416
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6417
# Neither direct hardcoding nor static linking is supported with a
6419
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6424
if test "$host_cpu" = ia64; then
6425
# On IA64, the linker does run time linking by default, so we don't
6426
# have to do anything special.
6427
aix_use_runtimelinking=no
6428
exp_sym_flag='-Bexport'
6431
# If we're using GNU nm, then we don't want the "-C" option.
6432
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6433
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6434
_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'
6436
_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'
6438
aix_use_runtimelinking=no
6440
# Test if we are trying to use run time linking or normal
6441
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6442
# need to do runtime linking.
6443
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6444
for ld_flag in $LDFLAGS; do
6445
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6446
aix_use_runtimelinking=yes
6453
exp_sym_flag='-bexport'
6454
no_entry_flag='-bnoentry'
6457
# When large executables or shared objects are built, AIX ld can
6458
# have problems creating the table of contents. If linking a library
6459
# or program results in "error TOC overflow" add -mminimal-toc to
6460
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6461
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6463
_LT_AC_TAGVAR(archive_cmds, $1)=''
6464
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6465
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6466
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6468
if test "$GCC" = yes; then
6469
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6470
# We only want to do this on AIX 4.2 and lower, the check
6471
# below for broken collect2 doesn't work under 4.3+
6472
collect2name=`${CC} -print-prog-name=collect2`
6473
if test -f "$collect2name" && \
6474
strings "$collect2name" | grep resolve_lib_name >/dev/null
6476
# We have reworked collect2
6479
# We have old collect2
6480
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6481
# It fails to find uninstalled libraries when the uninstalled
6482
# path is not listed in the libpath. Setting hardcode_minus_L
6483
# to unsupported forces relinking
6484
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6485
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6486
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6490
shared_flag='-shared'
6491
if test "$aix_use_runtimelinking" = yes; then
6492
shared_flag="$shared_flag "'${wl}-G'
6496
if test "$host_cpu" = ia64; then
6497
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6498
# chokes on -Wl,-G. The following line is correct:
6501
if test "$aix_use_runtimelinking" = yes; then
6502
shared_flag='${wl}-G'
6504
shared_flag='${wl}-bM:SRE'
6509
# It seems that -bexpall does not export symbols beginning with
6510
# underscore (_), so it is better to generate a list of symbols to export.
6511
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6512
if test "$aix_use_runtimelinking" = yes; then
6513
# Warning - without using the other runtime loading flags (-brtl),
6514
# -berok will link without error, but may produce a broken library.
6515
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6516
# Determine the default libpath from the value encoded in an empty executable.
6517
_LT_AC_SYS_LIBPATH_AIX
6518
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6519
_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"
6521
if test "$host_cpu" = ia64; then
6522
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6523
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6524
_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"
6526
# Determine the default libpath from the value encoded in an empty executable.
6527
_LT_AC_SYS_LIBPATH_AIX
6528
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6529
# Warning - without using the other run time loading flags,
6530
# -berok will link without error, but may produce a broken library.
6531
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6532
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6533
# Exported symbols can be pulled into shared objects from archives
6534
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6535
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6536
# This is similar to how AIX traditionally builds its shared libraries.
6537
_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'
6543
_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)'
6544
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6545
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6546
# see comment about different semantics on the GNU ld section
6547
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6551
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6554
cygwin* | mingw* | pw32*)
6555
# When not using gcc, we currently assume that we are using
6556
# Microsoft Visual C++.
6557
# hardcode_libdir_flag_spec is actually meaningless, as there is
6558
# no search path for DLLs.
6559
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6560
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6561
# Tell ltmain to make .lib files, not .a files.
6563
# Tell ltmain to make .dll files, not .so files.
6565
# FIXME: Setting linknames here is a bad hack.
6566
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6567
# The linker will automatically build a .lib file if we build a DLL.
6568
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6569
# FIXME: Should let the user specify the lib program.
6570
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6571
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6572
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6575
darwin* | rhapsody*)
6577
rhapsody* | darwin1.[[012]])
6578
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6581
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6582
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6584
case ${MACOSX_DEPLOYMENT_TARGET} in
6586
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6589
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6595
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6596
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6597
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6598
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6599
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6600
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6601
if test "$GCC" = yes ; then
6602
output_verbose_link_cmd='echo'
6603
_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}"
6604
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6605
_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}"
6606
_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}"
6608
case $cc_basename in
6610
output_verbose_link_cmd='echo'
6611
_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'
6612
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6613
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6614
_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}'
6615
_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}'
6618
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6625
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6626
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6627
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6631
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6634
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6635
# support. Future versions do this automatically, but an explicit c++rt0.o
6636
# does not break anything, and helps significantly (at the cost of a little
6639
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6640
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6641
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6642
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6645
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6647
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6648
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6649
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6650
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6653
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6654
freebsd* | dragonfly*)
6655
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6656
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6657
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6658
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6662
if test "$GCC" = yes; then
6663
_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'
6665
_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'
6667
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6668
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6669
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6671
# hardcode_minus_L: Not really in the search PATH,
6672
# but as the default location of the library.
6673
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6674
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6678
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6679
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6681
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6683
if test "$with_gnu_ld" = no; then
6684
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6685
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6687
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6688
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6690
# hardcode_minus_L: Not really in the search PATH,
6691
# but as the default location of the library.
6692
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6697
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6700
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6703
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6706
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6712
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6715
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6718
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6722
if test "$with_gnu_ld" = no; then
6723
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6724
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6728
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6729
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6730
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6733
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6734
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6736
# hardcode_minus_L: Not really in the search PATH,
6737
# but as the default location of the library.
6738
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6744
irix5* | irix6* | nonstopux*)
6745
if test "$GCC" = yes; then
6746
_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'
6748
_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'
6749
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6751
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6752
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6753
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6756
netbsd* | netbsdelf*-gnu)
6757
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6758
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6760
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6762
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6763
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6764
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6768
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6769
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6770
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6771
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6772
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6776
if test -f /usr/libexec/ld.so; then
6777
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6778
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6779
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6780
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6781
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6782
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6783
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6786
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6787
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6791
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6792
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6797
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6802
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6803
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6804
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6805
_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'
6806
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6810
if test "$GCC" = yes; then
6811
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6812
_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'
6814
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6815
_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'
6817
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6818
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6821
osf4* | osf5*) # as osf3* with the addition of -msym flag
6822
if test "$GCC" = yes; then
6823
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6824
_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'
6825
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6827
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6828
_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'
6829
_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~
6830
$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'
6832
# Both c and cxx compiler support -rpath directly
6833
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6835
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6839
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6840
if test "$GCC" = yes; then
6842
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6843
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6844
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6847
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6849
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6851
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6852
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6854
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6856
# The compiler driver will combine and reorder linker options,
6857
# but understands `-z linker_flag'. GCC discards it without `$wl',
6858
# but is careful enough not to reorder.
6859
# Supported since Solaris 2.6 (maybe 2.5.1?)
6860
if test "$GCC" = yes; then
6861
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6863
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6867
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6871
if test "x$host_vendor" = xsequent; then
6872
# Use $CC to link under sequent, because it throws in some extra .o
6873
# files that make .init and .fini sections work.
6874
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6876
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6879
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6880
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6881
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6885
case $host_vendor in
6887
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6888
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6891
## LD is ld it makes a PLAMLIB
6892
## CC just makes a GrossModule.
6893
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6894
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6895
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6898
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6899
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6902
runpath_var='LD_RUN_PATH'
6903
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6907
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6908
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6909
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6913
if test -d /usr/nec; then
6914
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6915
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6916
runpath_var=LD_RUN_PATH
6917
hardcode_runpath_var=yes
6918
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6922
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6923
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6924
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6925
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6926
runpath_var='LD_RUN_PATH'
6928
if test "$GCC" = yes; then
6929
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6930
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6932
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6933
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6937
sysv5* | sco3.2v5* | sco5v6*)
6938
# Note: We can NOT use -z defs as we might desire, because we do not
6939
# link with -lc, and that would cause any symbols used from libc to
6940
# always be unresolved, which means just about no library would
6941
# ever link correctly. If we're not using GNU ld we use -z text
6942
# though, which does catch some bad symbols but isn't as heavy-handed
6944
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6945
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6946
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6947
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6948
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6949
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6950
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6951
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6952
runpath_var='LD_RUN_PATH'
6954
if test "$GCC" = yes; then
6955
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6956
_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'
6958
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6959
_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'
6964
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6965
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6966
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6970
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6975
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6976
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6979
# Do we need to explicitly link libc?
6981
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6983
# Assume -lc should be added
6984
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6986
if test "$enable_shared" = yes && test "$GCC" = yes; then
6987
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6989
# FIXME: we may have to deal with multi-command sequences.
6992
# Test whether the compiler implicitly links with -lc since on some
6993
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6994
# to ld, don't add -lc before -lgcc.
6995
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6997
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6999
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7002
libobjs=conftest.$ac_objext
7004
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7005
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7011
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7012
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7013
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7015
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7017
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7019
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7021
cat conftest.err 1>&5
7024
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7030
])# AC_LIBTOOL_PROG_LD_SHLIBS
7033
# _LT_AC_FILE_LTDLL_C
7034
# -------------------
7035
# Be careful that the start marker always follows a newline.
7036
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7037
# /* ltdll.c starts here */
7038
# #define WIN32_LEAN_AND_MEAN
7039
# #include <windows.h>
7040
# #undef WIN32_LEAN_AND_MEAN
7041
# #include <stdio.h>
7043
# #ifndef __CYGWIN__
7044
# # ifdef __CYGWIN32__
7045
# # define __CYGWIN__ __CYGWIN32__
7049
# #ifdef __cplusplus
7052
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7053
# #ifdef __cplusplus
7058
# #include <cygwin/cygwin_dll.h>
7059
# DECLARE_CYGWIN_DLL( DllMain );
7061
# HINSTANCE __hDllInstance_base;
7064
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7066
# __hDllInstance_base = hInst;
7069
# /* ltdll.c ends here */
7070
])# _LT_AC_FILE_LTDLL_C
7073
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7074
# ---------------------------------
7075
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7079
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7080
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7081
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7082
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7083
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7084
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7085
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7087
# This is just to silence aclocal about the macro not being used
7088
ifelse([AC_DISABLE_FAST_INSTALL])
7090
AC_DEFUN([LT_AC_PROG_GCJ],
7091
[AC_CHECK_TOOL(GCJ, gcj, no)
7092
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7096
AC_DEFUN([LT_AC_PROG_RC],
7097
[AC_CHECK_TOOL(RC, windres, no)
7101
# Cheap backport of AS_EXECUTABLE_P and required macros
7102
# from Autoconf 2.59; we should not use $as_executable_p directly.
7106
m4_ifndef([_AS_TEST_PREPARE],
7107
[m4_defun([_AS_TEST_PREPARE],
7108
[if test -x / >/dev/null 2>&1; then
7109
as_executable_p='test -x'
7111
as_executable_p='test -f'
7113
])])# _AS_TEST_PREPARE
7117
# Check whether a file is executable.
7118
m4_ifndef([AS_EXECUTABLE_P],
7119
[m4_defun([AS_EXECUTABLE_P],
7120
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7121
$as_executable_p $1[]dnl
7122
])])# AS_EXECUTABLE_P
7124
# NOTE: This macro has been submitted for inclusion into #
7125
# GNU Autoconf as AC_PROG_SED. When it is available in #
7126
# a released version of Autoconf we should remove this #
7127
# macro and use it instead. #
7130
# Check for a fully-functional sed program, that truncates
7131
# as few characters as possible. Prefer GNU sed if found.
7132
AC_DEFUN([LT_AC_PROG_SED],
7133
[AC_MSG_CHECKING([for a sed that does not truncate output])
7134
AC_CACHE_VAL(lt_cv_path_SED,
7135
[# Loop through the user's path and test for sed and gsed.
7136
# Then use that list of sed's as ones to test for truncation.
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141
test -z "$as_dir" && as_dir=.
7142
for lt_ac_prog in sed gsed; do
7143
for ac_exec_ext in '' $ac_executable_extensions; do
7144
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7145
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7153
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7154
# along with /bin/sed that truncates output.
7155
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7156
test ! -f $lt_ac_sed && continue
7157
cat /dev/null > conftest.in
7159
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7160
# Check for GNU sed and select it if it is found.
7161
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7162
lt_cv_path_SED=$lt_ac_sed
7166
cat conftest.in conftest.in >conftest.tmp
7167
mv conftest.tmp conftest.in
7168
cp conftest.in conftest.nl
7170
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7171
cmp -s conftest.out conftest.nl || break
7172
# 10000 chars as input seems more than enough
7173
test $lt_ac_count -gt 10 && break
7174
lt_ac_count=`expr $lt_ac_count + 1`
7175
if test $lt_ac_count -gt $lt_ac_max; then
7176
lt_ac_max=$lt_ac_count
7177
lt_cv_path_SED=$lt_ac_sed
7184
AC_MSG_RESULT([$SED])
553
dnl This file can can be used in projects which are not available under
554
dnl the GNU General Public License or the GNU Library General Public
555
dnl License but which still want to provide support for the GNU gettext
557
dnl Please note that the actual code of the GNU gettext library is covered
558
dnl by the GNU Library General Public License, and the rest of the GNU
559
dnl gettext package package is covered by the GNU General Public License.
560
dnl They are *not* in the public domain.
563
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
564
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
570
AC_MSG_CHECKING([whether NLS is requested])
571
dnl Default is enabled NLS
573
[ --disable-nls do not use Native Language Support],
574
USE_NLS=$enableval, USE_NLS=yes)
575
AC_MSG_RESULT($USE_NLS)
7187
579
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-