1
dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh
2
dnl edits here will be lost
3
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
4
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5
## Free Software Foundation, Inc.
6
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8
## This file is free software; the Free Software Foundation gives
9
## unlimited permission to copy and/or distribute it, with or without
10
## modifications, as long as this notice is preserved.
12
# serial 47 AC_PROG_LIBTOOL
15
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
16
# -----------------------------------------------------------
17
# If this macro is not defined by Autoconf, define it here.
18
m4_ifdef([AC_PROVIDE_IFELSE],
20
[m4_define([AC_PROVIDE_IFELSE],
21
[m4_ifdef([AC_PROVIDE_$1],
27
AC_DEFUN([AC_PROG_LIBTOOL],
28
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
29
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
30
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
31
AC_PROVIDE_IFELSE([AC_PROG_CXX],
33
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
35
dnl And a similar setup for Fortran 77 support
36
AC_PROVIDE_IFELSE([AC_PROG_F77],
38
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
41
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
42
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
43
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
44
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
46
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
48
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
51
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
52
ifdef([A][M_PROG_GCJ],
53
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
54
ifdef([LT_AC_PROG_GCJ],
55
[define([LT_AC_PROG_GCJ],
56
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
62
AC_DEFUN([_AC_PROG_LIBTOOL],
63
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
64
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
65
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
66
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
68
# This can be used to rebuild libtool when needed
69
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
71
# Always use our own libtool.
72
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
75
# Prevent multiple expansion
76
define([AC_PROG_LIBTOOL], [])
82
AC_DEFUN([AC_LIBTOOL_SETUP],
84
AC_REQUIRE([AC_ENABLE_SHARED])dnl
85
AC_REQUIRE([AC_ENABLE_STATIC])dnl
86
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
87
AC_REQUIRE([AC_CANONICAL_HOST])dnl
88
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
89
AC_REQUIRE([AC_PROG_CC])dnl
90
AC_REQUIRE([AC_PROG_LD])dnl
91
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
92
AC_REQUIRE([AC_PROG_NM])dnl
94
AC_REQUIRE([AC_PROG_LN_S])dnl
95
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
96
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
97
AC_REQUIRE([AC_OBJEXT])dnl
98
AC_REQUIRE([AC_EXEEXT])dnl
101
AC_LIBTOOL_SYS_MAX_CMD_LEN
102
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
105
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
106
_LT_AC_PROG_ECHO_BACKSLASH
110
# AIX sometimes has problems with the GCC collect2 program. For some
111
# reason, if we set the COLLECT_NAMES environment variable, the problems
112
# vanish in a puff of smoke.
113
if test "X${COLLECT_NAMES+set}" != Xset; then
120
# Sed substitution that helps us do robust quoting. It backslashifies
121
# metacharacters that are still active within double-quoted strings.
122
Xsed='sed -e 1s/^X//'
123
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
125
# Same as above, but do not quote variable references.
126
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
128
# Sed substitution to delay expansion of an escaped shell variable in a
129
# double_quote_subst'ed string.
130
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
132
# Sed substitution to avoid accidental globbing in evaled expressions
133
no_glob_subst='s/\*/\\\*/g'
139
default_ofile=libtool
142
# All known linkers require a `.a' archive for static linking (except MSVC,
143
# which needs '.lib').
145
ltmain="$ac_aux_dir/ltmain.sh"
146
ofile="$default_ofile"
147
with_gnu_ld="$lt_cv_prog_gnu_ld"
149
AC_CHECK_TOOL(AR, ar, false)
150
AC_CHECK_TOOL(RANLIB, ranlib, :)
151
AC_CHECK_TOOL(STRIP, strip, :)
156
# Set sane defaults for various variables
157
test -z "$AR" && AR=ar
158
test -z "$AR_FLAGS" && AR_FLAGS=cru
159
test -z "$AS" && AS=as
160
test -z "$CC" && CC=cc
161
test -z "$LTCC" && LTCC=$CC
162
test -z "$DLLTOOL" && DLLTOOL=dlltool
163
test -z "$LD" && LD=ld
164
test -z "$LN_S" && LN_S="ln -s"
165
test -z "$MAGIC_CMD" && MAGIC_CMD=file
166
test -z "$NM" && NM=nm
167
test -z "$SED" && SED=sed
168
test -z "$OBJDUMP" && OBJDUMP=objdump
169
test -z "$RANLIB" && RANLIB=:
170
test -z "$STRIP" && STRIP=:
171
test -z "$ac_objext" && ac_objext=o
173
# Determine commands to create old-style static archives.
174
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
175
old_postinstall_cmds='chmod 644 $oldlib'
176
old_postuninstall_cmds=
178
if test -n "$RANLIB"; then
181
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
184
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
187
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
190
_LT_CC_BASENAME([$compiler])
192
# Only perform the check for file, if the check method requires it
193
case $deplibs_check_method in
195
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
201
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
202
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
203
enable_win32_dll=yes, enable_win32_dll=no)
205
AC_ARG_ENABLE([libtool-lock],
206
[AC_HELP_STRING([--disable-libtool-lock],
207
[avoid locking (might break parallel builds)])])
208
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
211
[AC_HELP_STRING([--with-pic],
212
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
213
[pic_mode="$withval"],
215
test -z "$pic_mode" && pic_mode=default
217
# Use C for the default configuration in the libtool script
219
AC_LIBTOOL_LANG_C_CONFIG
224
# _LT_AC_SYS_COMPILER
225
# -------------------
226
AC_DEFUN([_LT_AC_SYS_COMPILER],
227
[AC_REQUIRE([AC_PROG_CC])dnl
229
# If no C compiler was specified, use CC.
232
# Allow CC to be a program name with arguments.
234
])# _LT_AC_SYS_COMPILER
237
# _LT_CC_BASENAME(CC)
238
# -------------------
239
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
240
AC_DEFUN([_LT_CC_BASENAME],
241
[for cc_temp in $1""; do
243
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
244
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
249
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
253
# _LT_COMPILER_BOILERPLATE
254
# ------------------------
255
# Check for compiler boilerplate output or warnings with
256
# the simple compiler test code.
257
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
258
[ac_outfile=conftest.$ac_objext
259
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
260
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
261
_lt_compiler_boilerplate=`cat conftest.err`
263
])# _LT_COMPILER_BOILERPLATE
266
# _LT_LINKER_BOILERPLATE
267
# ----------------------
268
# Check for linker boilerplate output or warnings with
269
# the simple link test code.
270
AC_DEFUN([_LT_LINKER_BOILERPLATE],
271
[ac_outfile=conftest.$ac_objext
272
printf "$lt_simple_link_test_code" >conftest.$ac_ext
273
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
274
_lt_linker_boilerplate=`cat conftest.err`
276
])# _LT_LINKER_BOILERPLATE
279
# _LT_AC_SYS_LIBPATH_AIX
280
# ----------------------
281
# Links a minimal program and checks the executable
282
# for the system default hardcoded library path. In most cases,
283
# this is /usr/lib:/lib, but when the MPI compilers are used
284
# the location of the communication and MPI libs are included too.
285
# If we don't find anything, use the default library path according
286
# to the aix ld manual.
287
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
288
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
291
# Check for a 64-bit object if we didn't find anything.
292
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
294
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
295
])# _LT_AC_SYS_LIBPATH_AIX
298
# _LT_AC_SHELL_INIT(ARG)
299
# ----------------------
300
AC_DEFUN([_LT_AC_SHELL_INIT],
301
[ifdef([AC_DIVERSION_NOTICE],
302
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
303
[AC_DIVERT_PUSH(NOTICE)])
306
])# _LT_AC_SHELL_INIT
309
# _LT_AC_PROG_ECHO_BACKSLASH
310
# --------------------------
311
# Add some code to the start of the generated configure script which
312
# will find an echo command which doesn't interpret backslashes.
313
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
315
# Check that we are running under the correct shell.
316
SHELL=${CONFIG_SHELL-/bin/sh}
320
# Remove one level of quotation (which was required for Make).
321
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
326
if test "X[$]1" = X--no-reexec; then
327
# Discard the --no-reexec flag, and continue.
329
elif test "X[$]1" = X--fallback-echo; then
330
# Avoid inline document here, it may be left over
332
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
333
# Yippee, $echo works!
336
# Restart under the correct shell.
337
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
340
if test "X[$]1" = X--fallback-echo; then
341
# used as fallback echo
349
# The HP-UX ksh and POSIX shell print the target directory to stdout
351
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
353
if test -z "$ECHO"; then
354
if test "X${echo_test_string+set}" != Xset; then
355
# find a string as large as possible, as long as the shell can cope with it
356
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
357
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
358
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
359
echo_test_string=`eval $cmd` &&
360
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
367
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
368
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
369
test "X$echo_testing_string" = "X$echo_test_string"; then
372
# The Solaris, AIX, and Digital Unix default echo programs unquote
373
# backslashes. This makes it impossible to quote backslashes using
374
# echo "$something" | sed 's/\\/\\\\/g'
376
# So, first we look for a working echo in the user's PATH.
378
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
379
for dir in $PATH /usr/ucb; do
381
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
382
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
383
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
384
test "X$echo_testing_string" = "X$echo_test_string"; then
391
if test "X$echo" = Xecho; then
392
# We didn't find a better echo, so look for alternatives.
393
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
394
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
395
test "X$echo_testing_string" = "X$echo_test_string"; then
396
# This shell has a builtin print -r that does the trick.
398
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
399
test "X$CONFIG_SHELL" != X/bin/ksh; then
400
# If we have ksh, try running configure again with it.
401
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
402
export ORIGINAL_CONFIG_SHELL
403
CONFIG_SHELL=/bin/ksh
405
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
409
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
410
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
411
test "X$echo_testing_string" = "X$echo_test_string"; then
414
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
415
test "X$echo_testing_string" = 'X\t' &&
416
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
417
test "X$echo_testing_string" = "X$echo_test_string"; then
418
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
420
SHELL="$CONFIG_SHELL"
422
echo="$CONFIG_SHELL [$]0 --fallback-echo"
423
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
424
test "X$echo_testing_string" = 'X\t' &&
425
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
426
test "X$echo_testing_string" = "X$echo_test_string"; then
427
echo="$CONFIG_SHELL [$]0 --fallback-echo"
429
# maybe with a smaller string...
432
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
433
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
440
if test "$prev" != 'sed 50q "[$]0"'; then
441
echo_test_string=`eval $prev`
442
export echo_test_string
443
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
445
# Oops. We lost completely, so just stick with echo.
454
# Copy echo and quote the copy suitably for passing to libtool from
455
# the Makefile, instead of quoting the original, which is used later.
457
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
458
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
462
])])# _LT_AC_PROG_ECHO_BACKSLASH
467
AC_DEFUN([_LT_AC_LOCK],
468
[AC_ARG_ENABLE([libtool-lock],
469
[AC_HELP_STRING([--disable-libtool-lock],
470
[avoid locking (might break parallel builds)])])
471
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
473
# Some flags need to be propagated to the compiler or linker for good
477
# Find out which ABI we are using.
478
echo 'int i;' > conftest.$ac_ext
479
if AC_TRY_EVAL(ac_compile); then
480
case `/usr/bin/file conftest.$ac_objext` in
492
# Find out which ABI we are using.
493
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
494
if AC_TRY_EVAL(ac_compile); then
495
if test "$lt_cv_prog_gnu_ld" = yes; then
496
case `/usr/bin/file conftest.$ac_objext` in
498
LD="${LD-ld} -melf32bsmip"
501
LD="${LD-ld} -melf32bmipn32"
504
LD="${LD-ld} -melf64bmip"
508
case `/usr/bin/file conftest.$ac_objext` in
524
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
525
# Find out which ABI we are using.
526
echo 'int i;' > conftest.$ac_ext
527
if AC_TRY_EVAL(ac_compile); then
528
case `/usr/bin/file conftest.o` in
532
LD="${LD-ld} -m elf_i386"
534
ppc64-*linux*|powerpc64-*linux*)
535
LD="${LD-ld} -m elf32ppclinux"
538
LD="${LD-ld} -m elf_s390"
541
LD="${LD-ld} -m elf32_sparc"
548
LD="${LD-ld} -m elf_x86_64"
550
ppc*-*linux*|powerpc*-*linux*)
551
LD="${LD-ld} -m elf64ppc"
554
LD="${LD-ld} -m elf64_s390"
557
LD="${LD-ld} -m elf64_sparc"
567
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
568
SAVE_CFLAGS="$CFLAGS"
569
CFLAGS="$CFLAGS -belf"
570
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
572
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
574
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
575
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
576
CFLAGS="$SAVE_CFLAGS"
579
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
580
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
581
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
582
AC_CHECK_TOOL(AS, as, false)
583
AC_CHECK_TOOL(OBJDUMP, objdump, false)
588
need_locks="$enable_libtool_lock"
593
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
594
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
595
# ----------------------------------------------------------------
596
# Check whether the given compiler option works
597
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
598
[AC_REQUIRE([LT_AC_PROG_SED])
599
AC_CACHE_CHECK([$1], [$2],
601
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
602
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
603
lt_compiler_flag="$3"
604
# Insert the option either (1) after the last *FLAGS variable, or
605
# (2) before a word containing "conftest.", or (3) at the end.
606
# Note that $ac_compile itself does not contain backslashes and begins
607
# with a dollar sign (not a hyphen), so the echo should work correctly.
608
# The option is referenced via a variable to avoid confusing sed.
609
lt_compile=`echo "$ac_compile" | $SED \
610
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
611
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
612
-e 's:$: $lt_compiler_flag:'`
613
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
614
(eval "$lt_compile" 2>conftest.err)
616
cat conftest.err >&AS_MESSAGE_LOG_FD
617
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
618
if (exit $ac_status) && test -s "$ac_outfile"; then
619
# The compiler can only warn and ignore the option if not recognized
620
# So say no if there are warnings other than the usual output.
621
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
622
$SED '/^$/d' conftest.err >conftest.er2
623
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
630
if test x"[$]$2" = xyes; then
631
ifelse([$5], , :, [$5])
633
ifelse([$6], , :, [$6])
635
])# AC_LIBTOOL_COMPILER_OPTION
638
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
639
# [ACTION-SUCCESS], [ACTION-FAILURE])
640
# ------------------------------------------------------------
641
# Check whether the given compiler option works
642
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
643
[AC_CACHE_CHECK([$1], [$2],
645
save_LDFLAGS="$LDFLAGS"
646
LDFLAGS="$LDFLAGS $3"
647
printf "$lt_simple_link_test_code" > conftest.$ac_ext
648
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
649
# The linker can only warn and ignore the option if not recognized
650
# So say no if there are warnings
651
if test -s conftest.err; then
652
# Append any errors to the config.log.
653
cat conftest.err 1>&AS_MESSAGE_LOG_FD
654
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
655
$SED '/^$/d' conftest.err >conftest.er2
656
if diff conftest.exp conftest.er2 >/dev/null; then
664
LDFLAGS="$save_LDFLAGS"
667
if test x"[$]$2" = xyes; then
668
ifelse([$4], , :, [$4])
670
ifelse([$5], , :, [$5])
672
])# AC_LIBTOOL_LINKER_OPTION
675
# AC_LIBTOOL_SYS_MAX_CMD_LEN
676
# --------------------------
677
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
678
[# find the maximum length of command line arguments
679
AC_MSG_CHECKING([the maximum length of command line arguments])
680
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
686
# On DJGPP, this test can blow up pretty badly due to problems in libc
687
# (any single argument exceeding 2000 bytes causes a buffer overrun
688
# during glob expansion). Even if it were fixed, the result of this
689
# check would be larger than it should be.
690
lt_cv_sys_max_cmd_len=12288; # 12K is about right
694
# Under GNU Hurd, this test is not required because there is
695
# no limit to the length of command line arguments.
696
# Libtool will interpret -1 as no limit whatsoever
697
lt_cv_sys_max_cmd_len=-1;
701
# On Win9x/ME, this test blows up -- it succeeds, but takes
702
# about 5 minutes as the teststring grows exponentially.
703
# Worse, since 9x/ME are not pre-emptively multitasking,
704
# you end up with a "frozen" computer, even though with patience
705
# the test eventually succeeds (with a max line length of 256k).
706
# Instead, let's just punt: use the minimum linelength reported by
707
# all of the supported platforms: 8192 (on NT/2K/XP).
708
lt_cv_sys_max_cmd_len=8192;
712
# On AmigaOS with pdksh, this test takes hours, literally.
713
# So we just punt and use a minimum line length of 8192.
714
lt_cv_sys_max_cmd_len=8192;
717
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
718
# This has been around since 386BSD, at least. Likely further.
719
if test -x /sbin/sysctl; then
720
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
721
elif test -x /usr/sbin/sysctl; then
722
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
724
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
726
# And add a safety zone
727
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
728
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
731
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
732
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
733
# nice to cause kernel panics so lets avoid the loop below.
734
# First set a reasonable default.
735
lt_cv_sys_max_cmd_len=16384
737
if test -x /sbin/sysconfig; then
738
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
739
*1*) lt_cv_sys_max_cmd_len=-1 ;;
744
# If test is not a shell built-in, we'll probably end up computing a
745
# maximum length that is only half of the actual maximum length, but
747
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
748
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
749
= "XX$teststring") >/dev/null 2>&1 &&
750
new_result=`expr "X$teststring" : ".*" 2>&1` &&
751
lt_cv_sys_max_cmd_len=$new_result &&
752
test $i != 17 # 1/2 MB should be enough
755
teststring=$teststring$teststring
758
# Add a significant safety factor because C++ compilers can tack on massive
759
# amounts of additional arguments before passing them to the linker.
760
# It appears as though 1/2 is a usable value.
761
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
765
if test -n $lt_cv_sys_max_cmd_len ; then
766
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
770
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
774
# --------------------
775
AC_DEFUN([_LT_AC_CHECK_DLFCN],
776
[AC_CHECK_HEADERS(dlfcn.h)dnl
777
])# _LT_AC_CHECK_DLFCN
780
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
781
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
782
# ------------------------------------------------------------------
783
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
784
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
785
if test "$cross_compiling" = yes; then :
788
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
789
lt_status=$lt_dlunknown
790
cat > conftest.$ac_ext <<EOF
791
[#line __oline__ "configure"
792
#include "confdefs.h"
801
# define LT_DLGLOBAL RTLD_GLOBAL
804
# define LT_DLGLOBAL DL_GLOBAL
806
# define LT_DLGLOBAL 0
810
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
811
find out it does not work in some platform. */
812
#ifndef LT_DLLAZY_OR_NOW
814
# define LT_DLLAZY_OR_NOW RTLD_LAZY
817
# define LT_DLLAZY_OR_NOW DL_LAZY
820
# define LT_DLLAZY_OR_NOW RTLD_NOW
823
# define LT_DLLAZY_OR_NOW DL_NOW
825
# define LT_DLLAZY_OR_NOW 0
833
extern "C" void exit (int);
836
void fnord() { int i=42;}
839
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
840
int status = $lt_dlunknown;
844
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
845
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
846
/* dlclose (self); */
852
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
853
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
856
x$lt_dlno_uscore) $1 ;;
857
x$lt_dlneed_uscore) $2 ;;
858
x$lt_unknown|x*) $3 ;;
866
])# _LT_AC_TRY_DLOPEN_SELF
869
# AC_LIBTOOL_DLOPEN_SELF
870
# -------------------
871
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
872
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
873
if test "x$enable_dlopen" != xyes; then
874
enable_dlopen=unknown
875
enable_dlopen_self=unknown
876
enable_dlopen_self_static=unknown
883
lt_cv_dlopen="load_add_on"
885
lt_cv_dlopen_self=yes
889
lt_cv_dlopen="LoadLibrary"
894
lt_cv_dlopen="dlopen"
899
# if libdl is installed we need to link against it
900
AC_CHECK_LIB([dl], [dlopen],
901
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
904
lt_cv_dlopen_self=yes
909
AC_CHECK_FUNC([shl_load],
910
[lt_cv_dlopen="shl_load"],
911
[AC_CHECK_LIB([dld], [shl_load],
912
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
913
[AC_CHECK_FUNC([dlopen],
914
[lt_cv_dlopen="dlopen"],
915
[AC_CHECK_LIB([dl], [dlopen],
916
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
917
[AC_CHECK_LIB([svld], [dlopen],
918
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
919
[AC_CHECK_LIB([dld], [dld_link],
920
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
929
if test "x$lt_cv_dlopen" != xno; then
935
case $lt_cv_dlopen in
937
save_CPPFLAGS="$CPPFLAGS"
938
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
940
save_LDFLAGS="$LDFLAGS"
941
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
944
LIBS="$lt_cv_dlopen_libs $LIBS"
946
AC_CACHE_CHECK([whether a program can dlopen itself],
947
lt_cv_dlopen_self, [dnl
948
_LT_AC_TRY_DLOPEN_SELF(
949
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
950
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
953
if test "x$lt_cv_dlopen_self" = xyes; then
954
LDFLAGS="$LDFLAGS $link_static_flag"
955
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
956
lt_cv_dlopen_self_static, [dnl
957
_LT_AC_TRY_DLOPEN_SELF(
958
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
959
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
963
CPPFLAGS="$save_CPPFLAGS"
964
LDFLAGS="$save_LDFLAGS"
969
case $lt_cv_dlopen_self in
970
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
971
*) enable_dlopen_self=unknown ;;
974
case $lt_cv_dlopen_self_static in
975
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
976
*) enable_dlopen_self_static=unknown ;;
979
])# AC_LIBTOOL_DLOPEN_SELF
982
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
983
# ---------------------------------
984
# Check to see if options -c and -o are simultaneously supported by compiler
985
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
986
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
987
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
988
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
989
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
990
$rm -r conftest 2>/dev/null
994
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
996
lt_compiler_flag="-o out/conftest2.$ac_objext"
997
# Insert the option either (1) after the last *FLAGS variable, or
998
# (2) before a word containing "conftest.", or (3) at the end.
999
# Note that $ac_compile itself does not contain backslashes and begins
1000
# with a dollar sign (not a hyphen), so the echo should work correctly.
1001
lt_compile=`echo "$ac_compile" | $SED \
1002
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1003
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1004
-e 's:$: $lt_compiler_flag:'`
1005
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1006
(eval "$lt_compile" 2>out/conftest.err)
1008
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1009
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1010
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1012
# The compiler can only warn and ignore the option if not recognized
1013
# So say no if there are warnings
1014
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1015
$SED '/^$/d' out/conftest.err >out/conftest.er2
1016
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1017
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1020
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1022
# SGI C++ compiler will create directory out/ii_files/ for
1023
# template instantiation
1024
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1025
$rm out/* && rmdir out
1030
])# AC_LIBTOOL_PROG_CC_C_O
1033
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1034
# -----------------------------------------
1035
# Check to see if we can do hard links to lock some files if needed
1036
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1037
[AC_REQUIRE([_LT_AC_LOCK])dnl
1039
hard_links="nottested"
1040
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1041
# do not overwrite the value of need_locks provided by the user
1042
AC_MSG_CHECKING([if we can lock with hard links])
1045
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1047
ln conftest.a conftest.b 2>&5 || hard_links=no
1048
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1049
AC_MSG_RESULT([$hard_links])
1050
if test "$hard_links" = no; then
1051
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1057
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1062
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1063
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1064
[rm -f .libs 2>/dev/null
1065
mkdir .libs 2>/dev/null
1066
if test -d .libs; then
1069
# MS-DOS does not allow filenames that begin with a dot.
1072
rmdir .libs 2>/dev/null])
1073
objdir=$lt_cv_objdir
1074
])# AC_LIBTOOL_OBJDIR
1077
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1078
# ----------------------------------------------
1079
# Check hardcoding attributes.
1080
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1081
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1082
_LT_AC_TAGVAR(hardcode_action, $1)=
1083
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1084
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1085
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1087
# We can hardcode non-existant directories.
1088
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1089
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1090
# have to relink, otherwise we might link with an installed library
1091
# when we should be linking with a yet-to-be-installed one
1092
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1093
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1094
# Linking always hardcodes the temporary library directory.
1095
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1097
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1098
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1101
# We cannot hardcode anything, or else we can only hardcode existing
1103
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1105
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1107
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1108
# Fast installation is not supported
1109
enable_fast_install=no
1110
elif test "$shlibpath_overrides_runpath" = yes ||
1111
test "$enable_shared" = no; then
1112
# Fast installation is not necessary
1113
enable_fast_install=needless
1115
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1118
# AC_LIBTOOL_SYS_LIB_STRIP
1119
# ------------------------
1120
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1123
AC_MSG_CHECKING([whether stripping libraries is possible])
1124
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1125
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1126
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1127
AC_MSG_RESULT([yes])
1129
# FIXME - insert some real tests, host_os isn't really good enough
1132
if test -n "$STRIP" ; then
1133
striplib="$STRIP -x"
1134
AC_MSG_RESULT([yes])
1144
])# AC_LIBTOOL_SYS_LIB_STRIP
1147
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1148
# -----------------------------
1149
# PORTME Fill in your ld.so characteristics
1150
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1151
[AC_MSG_CHECKING([dynamic linker characteristics])
1153
libname_spec='lib$name'
1161
shlibpath_overrides_runpath=unknown
1163
dynamic_linker="$host_os ld.so"
1164
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1165
if test "$GCC" = yes; then
1166
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1167
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1168
# if the path contains ";" then we assume it to be the separator
1169
# otherwise default to the standard path separator (i.e. ":") - it is
1170
# assumed that no part of a normal pathname contains ";" but that should
1171
# okay in the real world where ";" in dirpaths is itself problematic.
1172
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1174
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1177
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1179
need_lib_prefix=unknown
1180
hardcode_into_libs=no
1182
# when you set need_version to no, make sure it does not cause -set_version
1183
# flags to be left without arguments
1184
need_version=unknown
1189
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1190
shlibpath_var=LIBPATH
1192
# AIX 3 has no versioning support, so we append a major version to the name.
1193
soname_spec='${libname}${release}${shared_ext}$major'
1200
hardcode_into_libs=yes
1201
if test "$host_cpu" = ia64; then
1202
# AIX 5 supports IA64
1203
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1204
shlibpath_var=LD_LIBRARY_PATH
1206
# With GCC up to 2.95.x, collect2 would create an import file
1207
# for dependence libraries. The import file would start with
1208
# the line `#! .'. This would cause the generated library to
1209
# depend on `.', always an invalid library. This was fixed in
1210
# development snapshots of GCC prior to 3.0.
1212
aix4 | aix4.[[01]] | aix4.[[01]].*)
1213
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1215
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1222
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1223
# soname into executable. Probably we can add versioning support to
1224
# collect2, so additional links can be useful in future.
1225
if test "$aix_use_runtimelinking" = yes; then
1226
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
1227
# instead of lib<name>.a to let people know that these are not
1228
# typical AIX shared libraries.
1229
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1231
# We preserve .a as extension for shared libraries through AIX4.2
1232
# and later when we are not doing run time linking.
1233
library_names_spec='${libname}${release}.a $libname.a'
1234
soname_spec='${libname}${release}${shared_ext}$major'
1236
shlibpath_var=LIBPATH
1241
library_names_spec='$libname.ixlibrary $libname.a'
1242
# Create ${libname}_ixlibrary.a entries in /sys/libs.
1243
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'
1247
library_names_spec='${libname}${shared_ext}'
1248
dynamic_linker="$host_os ld.so"
1249
shlibpath_var=LIBRARY_PATH
1255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1256
soname_spec='${libname}${release}${shared_ext}$major'
1257
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1258
shlibpath_var=LD_LIBRARY_PATH
1259
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1260
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1261
# the default ld.so.conf also contains /usr/contrib/lib and
1262
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1263
# libtool to hard-code these into programs
1266
cygwin* | mingw* | pw32*)
1267
version_type=windows
1272
case $GCC,$host_os in
1273
yes,cygwin* | yes,mingw* | yes,pw32*)
1274
library_names_spec='$libname.dll.a'
1275
# DLL is installed to $(libdir)/../bin by postinstall_cmds
1276
postinstall_cmds='base_file=`basename \${file}`~
1277
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1278
dldir=$destdir/`dirname \$dlpath`~
1279
test -d \$dldir || mkdir -p \$dldir~
1280
$install_prog $dir/$dlname \$dldir/$dlname~
1281
chmod a+x \$dldir/$dlname'
1282
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1283
dlpath=$dir/\$dldll~
1285
shlibpath_overrides_runpath=yes
1289
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
1290
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1291
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1294
# MinGW DLLs use traditional 'lib' prefix
1295
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1296
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1297
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1298
# It is most probably a Windows format PATH printed by
1299
# mingw gcc, but we are running on Cygwin. Gcc prints its search
1300
# path with ; separators, and with drive letters. We can handle the
1301
# drive letters (cygwin fileutils understands them), so leave them,
1302
# especially as we might pass files found there to a mingw objdump,
1303
# which wouldn't understand a cygwinified path. Ahh.
1304
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1306
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1310
# pw32 DLLs use 'pw' prefix rather than 'lib'
1311
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1317
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1320
dynamic_linker='Win32 ld.exe'
1321
# FIXME: first we should search . and the directory the executable is in
1325
darwin* | rhapsody*)
1326
dynamic_linker="$host_os dyld"
1330
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1331
soname_spec='${libname}${release}${major}$shared_ext'
1332
shlibpath_overrides_runpath=yes
1333
shlibpath_var=DYLD_LIBRARY_PATH
1334
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1335
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1336
if test "$GCC" = yes; then
1337
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1339
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1341
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1349
soname_spec='${libname}${release}${shared_ext}$major'
1350
shlibpath_var=LD_LIBRARY_PATH
1361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1362
soname_spec='${libname}${release}${shared_ext}$major'
1363
shlibpath_var=LD_LIBRARY_PATH
1364
shlibpath_overrides_runpath=no
1365
hardcode_into_libs=yes
1366
dynamic_linker='GNU ld.so'
1369
freebsd* | dragonfly*)
1370
# DragonFly does not have aout. When/if they implement a new
1371
# versioning mechanism, adjust this.
1372
if test -x /usr/bin/objformat; then
1373
objformat=`/usr/bin/objformat`
1376
freebsd[[123]]*) objformat=aout ;;
1380
version_type=freebsd-$objformat
1381
case $version_type in
1383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1388
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1392
shlibpath_var=LD_LIBRARY_PATH
1395
shlibpath_overrides_runpath=yes
1397
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1398
shlibpath_overrides_runpath=yes
1399
hardcode_into_libs=yes
1402
shlibpath_overrides_runpath=no
1403
hardcode_into_libs=yes
1412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1413
soname_spec='${libname}${release}${shared_ext}$major'
1414
shlibpath_var=LD_LIBRARY_PATH
1415
hardcode_into_libs=yes
1418
hpux9* | hpux10* | hpux11*)
1419
# Give a soname corresponding to the major version so that dld.sl refuses to
1420
# link against other versions.
1427
hardcode_into_libs=yes
1428
dynamic_linker="$host_os dld.so"
1429
shlibpath_var=LD_LIBRARY_PATH
1430
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1432
soname_spec='${libname}${release}${shared_ext}$major'
1433
if test "X$HPUX_IA64_MODE" = X32; then
1434
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1436
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1438
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1442
hardcode_into_libs=yes
1443
dynamic_linker="$host_os dld.sl"
1444
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1445
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1447
soname_spec='${libname}${release}${shared_ext}$major'
1448
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1449
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1453
dynamic_linker="$host_os dld.sl"
1454
shlibpath_var=SHLIB_PATH
1455
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1457
soname_spec='${libname}${release}${shared_ext}$major'
1460
# HP-UX runs *really* slowly unless shared libraries are mode 555.
1461
postinstall_cmds='chmod 555 $lib'
1464
irix5* | irix6* | nonstopux*)
1466
nonstopux*) version_type=nonstopux ;;
1468
if test "$lt_cv_prog_gnu_ld" = yes; then
1476
soname_spec='${libname}${release}${shared_ext}$major'
1477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1479
irix5* | nonstopux*)
1483
case $LD in # libtool.m4 will add one of these switches to LD
1484
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1485
libsuff= shlibsuff= libmagic=32-bit;;
1486
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1487
libsuff=32 shlibsuff=N32 libmagic=N32;;
1488
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1489
libsuff=64 shlibsuff=64 libmagic=64-bit;;
1490
*) libsuff= shlibsuff= libmagic=never-match;;
1494
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1495
shlibpath_overrides_runpath=no
1496
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1497
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1498
hardcode_into_libs=yes
1501
# No shared lib support for Linux oldld, aout, or coff.
1502
linux*oldld* | linux*aout* | linux*coff*)
1506
# This must be Linux ELF.
1511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1512
soname_spec='${libname}${release}${shared_ext}$major'
1513
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1514
shlibpath_var=LD_LIBRARY_PATH
1515
shlibpath_overrides_runpath=no
1516
# This implies no fast_install, which is unacceptable.
1517
# Some rework will be needed to allow for fast_install
1518
# before this can be enabled.
1519
hardcode_into_libs=yes
1521
# Append ld.so.conf contents to the search path
1522
if test -f /etc/ld.so.conf; then
1523
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1524
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1527
# We used to test for /lib/ld.so.1 and disable shared libraries on
1528
# powerpc, because MkLinux only supported shared libraries with the
1529
# GNU dynamic linker. Since this was broken with cross compilers,
1530
# most powerpc-linux boxes support dynamic linking these days and
1531
# people can always --disable-shared, the test was removed, and we
1532
# assume the GNU/Linux dynamic linker is in use.
1533
dynamic_linker='GNU/Linux ld.so'
1540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1541
soname_spec='${libname}${release}${shared_ext}$major'
1542
shlibpath_var=LD_LIBRARY_PATH
1543
shlibpath_overrides_runpath=no
1544
hardcode_into_libs=yes
1545
dynamic_linker='GNU ld.so'
1552
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1554
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1555
dynamic_linker='NetBSD (a.out) ld.so'
1557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1558
soname_spec='${libname}${release}${shared_ext}$major'
1559
dynamic_linker='NetBSD ld.elf_so'
1561
shlibpath_var=LD_LIBRARY_PATH
1562
shlibpath_overrides_runpath=yes
1563
hardcode_into_libs=yes
1568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1569
shlibpath_var=LD_LIBRARY_PATH
1570
shlibpath_overrides_runpath=yes
1577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1578
soname_spec='${libname}${release}${shared_ext}$major'
1579
shlibpath_var=LD_LIBRARY_PATH
1580
shlibpath_overrides_runpath=yes
1586
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1588
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1589
*) need_version=no ;;
1591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1592
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1593
shlibpath_var=LD_LIBRARY_PATH
1594
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1596
openbsd2.[[89]] | openbsd2.[[89]].*)
1597
shlibpath_overrides_runpath=no
1600
shlibpath_overrides_runpath=yes
1604
shlibpath_overrides_runpath=yes
1609
libname_spec='$name'
1612
library_names_spec='$libname${shared_ext} $libname.a'
1613
dynamic_linker='OS/2 ld.exe'
1614
shlibpath_var=LIBPATH
1617
osf3* | osf4* | osf5*)
1621
soname_spec='${libname}${release}${shared_ext}$major'
1622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1623
shlibpath_var=LD_LIBRARY_PATH
1624
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1625
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1630
soname_spec='${libname}${release}${shared_ext}$major'
1631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1632
shlibpath_var=LD_LIBRARY_PATH
1639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1640
soname_spec='${libname}${release}${shared_ext}$major'
1641
shlibpath_var=LD_LIBRARY_PATH
1642
shlibpath_overrides_runpath=yes
1643
hardcode_into_libs=yes
1644
# ldd complains unless libraries are executable
1645
postinstall_cmds='chmod +x $lib'
1650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1651
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1652
shlibpath_var=LD_LIBRARY_PATH
1653
shlibpath_overrides_runpath=yes
1654
if test "$with_gnu_ld" = yes; then
1660
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1663
soname_spec='${libname}${release}${shared_ext}$major'
1664
shlibpath_var=LD_LIBRARY_PATH
1665
case $host_vendor in
1667
shlibpath_overrides_runpath=no
1669
export_dynamic_flag_spec='${wl}-Blargedynsym'
1670
runpath_var=LD_RUN_PATH
1678
shlibpath_overrides_runpath=no
1679
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1685
if test -d /usr/nec ;then
1687
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1688
soname_spec='$libname${shared_ext}.$major'
1689
shlibpath_var=LD_LIBRARY_PATH
1695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1696
soname_spec='${libname}${release}${shared_ext}$major'
1697
shlibpath_var=LD_LIBRARY_PATH
1704
AC_MSG_RESULT([$dynamic_linker])
1705
test "$dynamic_linker" = no && can_build_shared=no
1706
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1711
AC_DEFUN([_LT_AC_TAGCONFIG],
1712
[AC_ARG_WITH([tags],
1713
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1714
[include additional configurations @<:@automatic@:>@])],
1715
[tagnames="$withval"])
1717
if test -f "$ltmain" && test -n "$tagnames"; then
1718
if test ! -f "${ofile}"; then
1719
AC_MSG_WARN([output file `$ofile' does not exist])
1722
if test -z "$LTCC"; then
1723
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1724
if test -z "$LTCC"; then
1725
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1727
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1731
# Extract list of available tagged configurations in $ofile.
1732
# Note that this assumes the entire list is on one line.
1733
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1735
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1736
for tagname in $tagnames; do
1738
# Check whether tagname contains only valid characters
1739
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1741
*) AC_MSG_ERROR([invalid tag name: $tagname])
1745
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1747
AC_MSG_ERROR([tag name \"$tagname\" already exists])
1750
# Update the list of available tags.
1751
if test -n "$tagname"; then
1752
echo appending configuration tag \"$tagname\" to $ofile
1756
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1757
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1758
(test "X$CXX" != "Xg++"))) ; then
1759
AC_LIBTOOL_LANG_CXX_CONFIG
1766
if test -n "$F77" && test "X$F77" != "Xno"; then
1767
AC_LIBTOOL_LANG_F77_CONFIG
1774
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1775
AC_LIBTOOL_LANG_GCJ_CONFIG
1782
AC_LIBTOOL_LANG_RC_CONFIG
1786
AC_MSG_ERROR([Unsupported tag name: $tagname])
1790
# Append the new tag name to the list of available tags.
1791
if test -n "$tagname" ; then
1792
available_tags="$available_tags $tagname"
1798
# Now substitute the updated list of available tags.
1799
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1800
mv "${ofile}T" "$ofile"
1804
AC_MSG_ERROR([unable to update list of available tagged configurations.])
1807
])# _LT_AC_TAGCONFIG
1812
# enable checks for dlopen support
1813
AC_DEFUN([AC_LIBTOOL_DLOPEN],
1814
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1815
])# AC_LIBTOOL_DLOPEN
1818
# AC_LIBTOOL_WIN32_DLL
1819
# --------------------
1820
# declare package support for building win32 DLLs
1821
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1822
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1823
])# AC_LIBTOOL_WIN32_DLL
1826
# AC_ENABLE_SHARED([DEFAULT])
1827
# ---------------------------
1828
# implement the --enable-shared flag
1829
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1830
AC_DEFUN([AC_ENABLE_SHARED],
1831
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1832
AC_ARG_ENABLE([shared],
1833
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1834
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1835
[p=${PACKAGE-default}
1837
yes) enable_shared=yes ;;
1838
no) enable_shared=no ;;
1841
# Look at the argument we got. We use all the common list separators.
1842
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1843
for pkg in $enableval; do
1845
if test "X$pkg" = "X$p"; then
1852
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1853
])# AC_ENABLE_SHARED
1858
#- set the default shared flag to --disable-shared
1859
AC_DEFUN([AC_DISABLE_SHARED],
1860
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1861
AC_ENABLE_SHARED(no)
1862
])# AC_DISABLE_SHARED
1865
# AC_ENABLE_STATIC([DEFAULT])
1866
# ---------------------------
1867
# implement the --enable-static flag
1868
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1869
AC_DEFUN([AC_ENABLE_STATIC],
1870
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1871
AC_ARG_ENABLE([static],
1872
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1873
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1874
[p=${PACKAGE-default}
1876
yes) enable_static=yes ;;
1877
no) enable_static=no ;;
1880
# Look at the argument we got. We use all the common list separators.
1881
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1882
for pkg in $enableval; do
1884
if test "X$pkg" = "X$p"; then
1891
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
1892
])# AC_ENABLE_STATIC
1897
# set the default static flag to --disable-static
1898
AC_DEFUN([AC_DISABLE_STATIC],
1899
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1900
AC_ENABLE_STATIC(no)
1901
])# AC_DISABLE_STATIC
1904
# AC_ENABLE_FAST_INSTALL([DEFAULT])
1905
# ---------------------------------
1906
# implement the --enable-fast-install flag
1907
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1908
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1909
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1910
AC_ARG_ENABLE([fast-install],
1911
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1912
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1913
[p=${PACKAGE-default}
1915
yes) enable_fast_install=yes ;;
1916
no) enable_fast_install=no ;;
1918
enable_fast_install=no
1919
# Look at the argument we got. We use all the common list separators.
1920
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1921
for pkg in $enableval; do
1923
if test "X$pkg" = "X$p"; then
1924
enable_fast_install=yes
1930
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1931
])# AC_ENABLE_FAST_INSTALL
1934
# AC_DISABLE_FAST_INSTALL
1935
# -----------------------
1936
# set the default to --disable-fast-install
1937
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1938
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1939
AC_ENABLE_FAST_INSTALL(no)
1940
])# AC_DISABLE_FAST_INSTALL
1943
# AC_LIBTOOL_PICMODE([MODE])
1944
# --------------------------
1945
# implement the --with-pic flag
1946
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1947
AC_DEFUN([AC_LIBTOOL_PICMODE],
1948
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1949
pic_mode=ifelse($#,1,$1,default)
1950
])# AC_LIBTOOL_PICMODE
1955
# This is predefined starting with Autoconf 2.54, so this conditional
1956
# definition can be removed once we require Autoconf 2.54 or later.
1957
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1958
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1959
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1960
then ac_cv_prog_egrep='grep -E'
1961
else ac_cv_prog_egrep='egrep'
1963
EGREP=$ac_cv_prog_egrep
1968
# AC_PATH_TOOL_PREFIX
1969
# -------------------
1970
# find a file program which can recognise shared library
1971
AC_DEFUN([AC_PATH_TOOL_PREFIX],
1972
[AC_REQUIRE([AC_PROG_EGREP])dnl
1973
AC_MSG_CHECKING([for $1])
1974
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1976
[[\\/*] | ?:[\\/]*])
1977
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1980
lt_save_MAGIC_CMD="$MAGIC_CMD"
1981
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1982
dnl $ac_dummy forces splitting on constant user-supplied paths.
1983
dnl POSIX.2 word splitting is done only on the output of word expansions,
1984
dnl not every word. This closes a longstanding sh security hole.
1985
ac_dummy="ifelse([$2], , $PATH, [$2])"
1986
for ac_dir in $ac_dummy; do
1988
test -z "$ac_dir" && ac_dir=.
1989
if test -f $ac_dir/$1; then
1990
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
1991
if test -n "$file_magic_test_file"; then
1992
case $deplibs_check_method in
1994
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1995
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1996
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1997
$EGREP "$file_magic_regex" > /dev/null; then
2002
*** Warning: the command libtool uses to detect shared libraries,
2003
*** $file_magic_cmd, produces output that libtool cannot recognize.
2004
*** The result is that libtool may fail to recognize shared libraries
2005
*** as such. This will affect the creation of libtool libraries that
2006
*** depend on shared libraries, but programs linked with such libtool
2007
*** libraries will work regardless of this problem. Nevertheless, you
2008
*** may want to report the problem to your system manager and/or to
2009
*** bug-libtool@gnu.org
2019
MAGIC_CMD="$lt_save_MAGIC_CMD"
2022
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2023
if test -n "$MAGIC_CMD"; then
2024
AC_MSG_RESULT($MAGIC_CMD)
2028
])# AC_PATH_TOOL_PREFIX
2033
# find a file program which can recognise a shared library
2034
AC_DEFUN([AC_PATH_MAGIC],
2035
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2036
if test -z "$lt_cv_path_MAGIC_CMD"; then
2037
if test -n "$ac_tool_prefix"; then
2038
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2048
# find the pathname to the GNU or non-GNU linker
2049
AC_DEFUN([AC_PROG_LD],
2050
[AC_ARG_WITH([gnu-ld],
2051
[AC_HELP_STRING([--with-gnu-ld],
2052
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2053
[test "$withval" = no || with_gnu_ld=yes],
2055
AC_REQUIRE([LT_AC_PROG_SED])dnl
2056
AC_REQUIRE([AC_PROG_CC])dnl
2057
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2058
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2060
if test "$GCC" = yes; then
2061
# Check if gcc -print-prog-name=ld gives a path.
2062
AC_MSG_CHECKING([for ld used by $CC])
2065
# gcc leaves a trailing carriage return which upsets mingw
2066
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2068
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2071
# Accept absolute paths.
2072
[[\\/]]* | ?:[[\\/]]*)
2073
re_direlt='/[[^/]][[^/]]*/\.\./'
2074
# Canonicalize the pathname of ld
2075
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2076
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2077
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2079
test -z "$LD" && LD="$ac_prog"
2082
# If it fails, then pretend we aren't using GCC.
2086
# If it is relative, then search for the first ld in PATH.
2090
elif test "$with_gnu_ld" = yes; then
2091
AC_MSG_CHECKING([for GNU ld])
2093
AC_MSG_CHECKING([for non-GNU ld])
2095
AC_CACHE_VAL(lt_cv_path_LD,
2096
[if test -z "$LD"; then
2097
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2098
for ac_dir in $PATH; do
2100
test -z "$ac_dir" && ac_dir=.
2101
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2102
lt_cv_path_LD="$ac_dir/$ac_prog"
2103
# Check to see if the program is GNU ld. I'd rather use --version,
2104
# but apparently some variants of GNU ld only accept -v.
2105
# Break only if it was the GNU/non-GNU ld that we prefer.
2106
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2107
*GNU* | *'with BFD'*)
2108
test "$with_gnu_ld" != no && break
2111
test "$with_gnu_ld" != yes && break
2118
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2121
if test -n "$LD"; then
2126
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2133
AC_DEFUN([AC_PROG_LD_GNU],
2134
[AC_REQUIRE([AC_PROG_EGREP])dnl
2135
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2136
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2137
case `$LD -v 2>&1 </dev/null` in
2138
*GNU* | *'with BFD'*)
2139
lt_cv_prog_gnu_ld=yes
2142
lt_cv_prog_gnu_ld=no
2145
with_gnu_ld=$lt_cv_prog_gnu_ld
2149
# AC_PROG_LD_RELOAD_FLAG
2150
# ----------------------
2151
# find reload flag for linker
2152
# -- PORTME Some linkers may need a different reload flag.
2153
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2154
[AC_CACHE_CHECK([for $LD option to reload object files],
2155
lt_cv_ld_reload_flag,
2156
[lt_cv_ld_reload_flag='-r'])
2157
reload_flag=$lt_cv_ld_reload_flag
2158
case $reload_flag in
2160
*) reload_flag=" $reload_flag" ;;
2162
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2165
if test "$GCC" = yes; then
2166
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2168
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2172
])# AC_PROG_LD_RELOAD_FLAG
2175
# AC_DEPLIBS_CHECK_METHOD
2176
# -----------------------
2177
# how to check for library dependencies
2178
# -- PORTME fill in with the dynamic library characteristics
2179
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2180
[AC_CACHE_CHECK([how to recognise dependent libraries],
2181
lt_cv_deplibs_check_method,
2182
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2183
lt_cv_file_magic_test_file=
2184
lt_cv_deplibs_check_method='unknown'
2185
# Need to set the preceding variable on all platforms that support
2186
# interlibrary dependencies.
2187
# 'none' -- dependencies not supported.
2188
# `unknown' -- same as none, but documents that we really don't know.
2189
# 'pass_all' -- all dependencies passed with no checks.
2190
# 'test_compile' -- check by making test program.
2191
# 'file_magic [[regex]]' -- check by looking for files in library path
2192
# which responds to the $file_magic_cmd with a given extended regex.
2193
# If you have `file' or equivalent on your system and you're not sure
2194
# whether `pass_all' will *always* work, you probably want this one.
2198
lt_cv_deplibs_check_method=pass_all
2202
lt_cv_deplibs_check_method=pass_all
2206
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2207
lt_cv_file_magic_cmd='/usr/bin/file -L'
2208
lt_cv_file_magic_test_file=/shlib/libc.so
2212
# func_win32_libid is a shell function defined in ltmain.sh
2213
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2214
lt_cv_file_magic_cmd='func_win32_libid'
2218
# Base MSYS/MinGW do not provide the 'file' command needed by
2219
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2220
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2221
lt_cv_file_magic_cmd='$OBJDUMP -f'
2224
darwin* | rhapsody*)
2225
lt_cv_deplibs_check_method=pass_all
2228
freebsd* | kfreebsd*-gnu | dragonfly*)
2229
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2232
# Not sure whether the presence of OpenBSD here was a mistake.
2233
# Let's accept both of them until this is cleared up.
2234
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2235
lt_cv_file_magic_cmd=/usr/bin/file
2236
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2240
lt_cv_deplibs_check_method=pass_all
2245
lt_cv_deplibs_check_method=pass_all
2248
hpux10.20* | hpux11*)
2249
lt_cv_file_magic_cmd=/usr/bin/file
2252
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2253
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2256
[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]']
2257
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2260
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2261
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2266
irix5* | irix6* | nonstopux*)
2268
*-32|*"-32 ") libmagic=32-bit;;
2269
*-n32|*"-n32 ") libmagic=N32;;
2270
*-64|*"-64 ") libmagic=64-bit;;
2271
*) libmagic=never-match;;
2273
lt_cv_deplibs_check_method=pass_all
2276
# This must be Linux ELF.
2278
lt_cv_deplibs_check_method=pass_all
2282
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2283
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2285
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2290
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2291
lt_cv_file_magic_cmd=/usr/bin/file
2292
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2296
lt_cv_deplibs_check_method=unknown
2300
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2301
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2303
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2307
osf3* | osf4* | osf5*)
2308
lt_cv_deplibs_check_method=pass_all
2312
lt_cv_deplibs_check_method=pass_all
2316
lt_cv_deplibs_check_method=pass_all
2319
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2320
case $host_vendor in
2322
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]]'
2323
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2326
lt_cv_deplibs_check_method=pass_all
2329
lt_cv_file_magic_cmd='/bin/file'
2330
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2333
lt_cv_file_magic_cmd='/bin/file'
2334
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2335
lt_cv_file_magic_test_file=/lib/libc.so
2338
lt_cv_deplibs_check_method=pass_all
2343
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2344
lt_cv_deplibs_check_method=pass_all
2348
file_magic_cmd=$lt_cv_file_magic_cmd
2349
deplibs_check_method=$lt_cv_deplibs_check_method
2350
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2351
])# AC_DEPLIBS_CHECK_METHOD
2356
# find the pathname to a BSD-compatible name lister
2357
AC_DEFUN([AC_PROG_NM],
2358
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2359
[if test -n "$NM"; then
2360
# Let the user override the test.
2363
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2364
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2366
test -z "$ac_dir" && ac_dir=.
2367
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2368
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2369
# Check to see if the nm accepts a BSD-compat flag.
2370
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2371
# nm: unknown option "B" ignored
2372
# Tru64's nm complains that /dev/null is an invalid object file
2373
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2374
*/dev/null* | *'Invalid file or object type'*)
2375
lt_cv_path_NM="$tmp_nm -B"
2379
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2381
lt_cv_path_NM="$tmp_nm -p"
2385
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2386
continue # so that we can try to find one that supports BSD flags
2393
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2401
# check for math library
2402
AC_DEFUN([AC_CHECK_LIBM],
2403
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2406
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2407
# These system don't have libm, or don't need it
2410
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2411
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2414
AC_CHECK_LIB(m, cos, LIBM="-lm")
2420
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2421
# -----------------------------------
2422
# sets LIBLTDL to the link flags for the libltdl convenience library and
2423
# LTDLINCL to the include flags for the libltdl header and adds
2424
# --enable-ltdl-convenience to the configure arguments. Note that
2425
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2426
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2427
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2428
# (note the single quotes!). If your package is not flat and you're not
2429
# using automake, define top_builddir and top_srcdir appropriately in
2431
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2432
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2433
case $enable_ltdl_convenience in
2434
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2435
"") enable_ltdl_convenience=yes
2436
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2438
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2439
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2440
# For backwards non-gettext consistent compatibility...
2442
])# AC_LIBLTDL_CONVENIENCE
2445
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2446
# -----------------------------------
2447
# sets LIBLTDL to the link flags for the libltdl installable library and
2448
# LTDLINCL to the include flags for the libltdl header and adds
2449
# --enable-ltdl-install to the configure arguments. Note that
2450
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2451
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2452
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2453
# '${top_srcdir}/' (note the single quotes!). If your package is not
2454
# flat and you're not using automake, define top_builddir and top_srcdir
2455
# appropriately in the Makefiles.
2456
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2457
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2458
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2459
AC_CHECK_LIB(ltdl, lt_dlinit,
2460
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2461
[if test x"$enable_ltdl_install" = xno; then
2462
AC_MSG_WARN([libltdl not installed, but installation disabled])
2464
enable_ltdl_install=yes
2467
if test x"$enable_ltdl_install" = x"yes"; then
2468
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2469
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2470
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2472
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2476
# For backwards non-gettext consistent compatibility...
2478
])# AC_LIBLTDL_INSTALLABLE
2483
# enable support for C++ libraries
2484
AC_DEFUN([AC_LIBTOOL_CXX],
2485
[AC_REQUIRE([_LT_AC_LANG_CXX])
2491
AC_DEFUN([_LT_AC_LANG_CXX],
2492
[AC_REQUIRE([AC_PROG_CXX])
2493
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2494
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2497
# _LT_AC_PROG_CXXCPP
2499
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2501
AC_REQUIRE([AC_PROG_CXX])
2502
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2503
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2504
(test "X$CXX" != "Xg++"))) ; then
2507
])# _LT_AC_PROG_CXXCPP
2511
# enable support for Fortran 77 libraries
2512
AC_DEFUN([AC_LIBTOOL_F77],
2513
[AC_REQUIRE([_LT_AC_LANG_F77])
2519
AC_DEFUN([_LT_AC_LANG_F77],
2520
[AC_REQUIRE([AC_PROG_F77])
2521
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2527
# enable support for GCJ libraries
2528
AC_DEFUN([AC_LIBTOOL_GCJ],
2529
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2535
AC_DEFUN([_LT_AC_LANG_GCJ],
2536
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2537
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2538
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2539
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2540
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2541
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2542
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2548
# enable support for Windows resource files
2549
AC_DEFUN([AC_LIBTOOL_RC],
2550
[AC_REQUIRE([LT_AC_PROG_RC])
2551
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2555
# AC_LIBTOOL_LANG_C_CONFIG
2556
# ------------------------
2557
# Ensure that the configuration vars for the C compiler are
2558
# suitably defined. Those variables are subsequently used by
2559
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2560
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2561
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2565
# Source file extension for C test sources.
2568
# Object file extension for compiled C test sources.
2570
_LT_AC_TAGVAR(objext, $1)=$objext
2572
# Code to be used in simple compile tests
2573
lt_simple_compile_test_code="int some_variable = 0;\n"
2575
# Code to be used in simple link tests
2576
lt_simple_link_test_code='int main(){return(0);}\n'
2580
# save warnings/boilerplate of simple test code
2581
_LT_COMPILER_BOILERPLATE
2582
_LT_LINKER_BOILERPLATE
2585
# Check for any special shared library compilation flags.
2587
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2588
if test "$GCC" = no; then
2591
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2595
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2596
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2597
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2599
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2600
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2606
# Check to make sure the static flag actually works.
2608
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2609
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2610
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2612
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2616
## There is no encapsulation within the following macros, do not change
2617
## the running order or otherwise move them around unless you know exactly
2618
## what you are doing...
2619
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2620
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2621
AC_LIBTOOL_PROG_CC_C_O($1)
2622
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2623
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2624
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2625
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2626
AC_LIBTOOL_SYS_LIB_STRIP
2627
AC_LIBTOOL_DLOPEN_SELF($1)
2629
# Report which librarie types wil actually be built
2630
AC_MSG_CHECKING([if libtool supports shared libraries])
2631
AC_MSG_RESULT([$can_build_shared])
2633
AC_MSG_CHECKING([whether to build shared libraries])
2634
test "$can_build_shared" = "no" && enable_shared=no
2636
# On AIX, shared libraries and static libraries use the same namespace, and
2637
# are all built from PIC.
2640
test "$enable_shared" = yes && enable_static=no
2641
if test -n "$RANLIB"; then
2642
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2643
postinstall_cmds='$RANLIB $lib'
2648
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2649
test "$enable_shared" = yes && enable_static=no
2653
AC_MSG_RESULT([$enable_shared])
2655
AC_MSG_CHECKING([whether to build static libraries])
2656
# Make sure either enable_shared or enable_static is yes.
2657
test "$enable_shared" = yes || enable_static=yes
2658
AC_MSG_RESULT([$enable_static])
2660
AC_LIBTOOL_CONFIG($1)
2664
])# AC_LIBTOOL_LANG_C_CONFIG
2667
# AC_LIBTOOL_LANG_CXX_CONFIG
2668
# --------------------------
2669
# Ensure that the configuration vars for the C compiler are
2670
# suitably defined. Those variables are subsequently used by
2671
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2672
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2673
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2675
AC_REQUIRE([AC_PROG_CXX])
2676
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2678
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2679
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2680
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2681
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2682
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2683
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2684
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2685
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2686
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2687
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2688
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2689
_LT_AC_TAGVAR(module_cmds, $1)=
2690
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2691
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2692
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2693
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2694
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2695
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2697
# Dependencies to place before and after the object being linked:
2698
_LT_AC_TAGVAR(predep_objects, $1)=
2699
_LT_AC_TAGVAR(postdep_objects, $1)=
2700
_LT_AC_TAGVAR(predeps, $1)=
2701
_LT_AC_TAGVAR(postdeps, $1)=
2702
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2704
# Source file extension for C++ test sources.
2707
# Object file extension for compiled C++ test sources.
2709
_LT_AC_TAGVAR(objext, $1)=$objext
2711
# Code to be used in simple compile tests
2712
lt_simple_compile_test_code="int some_variable = 0;\n"
2714
# Code to be used in simple link tests
2715
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2717
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2720
# save warnings/boilerplate of simple test code
2721
_LT_COMPILER_BOILERPLATE
2722
_LT_LINKER_BOILERPLATE
2724
# Allow CC to be a program name with arguments.
2729
lt_save_with_gnu_ld=$with_gnu_ld
2730
lt_save_path_LD=$lt_cv_path_LD
2731
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2732
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2734
unset lt_cv_prog_gnu_ld
2736
if test -n "${lt_cv_path_LDCXX+set}"; then
2737
lt_cv_path_LD=$lt_cv_path_LDCXX
2741
test -z "${LDCXX+set}" || LD=$LDCXX
2744
_LT_AC_TAGVAR(compiler, $1)=$CC
2745
_LT_CC_BASENAME([$compiler])
2747
# We don't want -fno-exception wen compiling C++ code, so set the
2748
# no_builtin_flag separately
2749
if test "$GXX" = yes; then
2750
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2752
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2755
if test "$GXX" = yes; then
2756
# Set up default GNU C++ configuration
2760
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2761
# archiving commands below assume that GNU ld is being used.
2762
if test "$with_gnu_ld" = yes; then
2763
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2764
_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'
2766
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2767
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2769
# If archive_cmds runs LD, not CC, wlarc should be empty
2770
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2771
# investigate it a little bit more. (MM)
2774
# ancient GNU ld didn't support --whole-archive et. al.
2775
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2776
grep 'no-whole-archive' > /dev/null; then
2777
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2779
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2785
# A generic and very simple default shared library creation
2786
# command for GNU C++ for the case where it uses the native
2787
# linker, instead of GNU ld. If possible, this setting should
2788
# overridden to take advantage of the native linker features on
2789
# the platform it is being used on.
2790
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2793
# Commands to make compiler produce verbose output that lists
2794
# what "hidden" libraries, object files and flags are used when
2795
# linking a shared library.
2796
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2804
# PORTME: fill in a description of your system's C++ link characteristics
2805
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2806
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2809
# FIXME: insert proper C++ library support
2810
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2813
if test "$host_cpu" = ia64; then
2814
# On IA64, the linker does run time linking by default, so we don't
2815
# have to do anything special.
2816
aix_use_runtimelinking=no
2817
exp_sym_flag='-Bexport'
2820
aix_use_runtimelinking=no
2822
# Test if we are trying to use run time linking or normal
2823
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
2824
# need to do runtime linking.
2825
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2826
for ld_flag in $LDFLAGS; do
2829
aix_use_runtimelinking=yes
2836
exp_sym_flag='-bexport'
2837
no_entry_flag='-bnoentry'
2840
# When large executables or shared objects are built, AIX ld can
2841
# have problems creating the table of contents. If linking a library
2842
# or program results in "error TOC overflow" add -mminimal-toc to
2843
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2844
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2846
_LT_AC_TAGVAR(archive_cmds, $1)=''
2847
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2848
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2849
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2851
if test "$GXX" = yes; then
2852
case $host_os in aix4.[[012]]|aix4.[[012]].*)
2853
# We only want to do this on AIX 4.2 and lower, the check
2854
# below for broken collect2 doesn't work under 4.3+
2855
collect2name=`${CC} -print-prog-name=collect2`
2856
if test -f "$collect2name" && \
2857
strings "$collect2name" | grep resolve_lib_name >/dev/null
2859
# We have reworked collect2
2860
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2862
# We have old collect2
2863
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2864
# It fails to find uninstalled libraries when the uninstalled
2865
# path is not listed in the libpath. Setting hardcode_minus_L
2866
# to unsupported forces relinking
2867
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2868
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2869
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2872
shared_flag='-shared'
2873
if test "$aix_use_runtimelinking" = yes; then
2874
shared_flag="$shared_flag "'${wl}-G'
2878
if test "$host_cpu" = ia64; then
2879
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2880
# chokes on -Wl,-G. The following line is correct:
2883
if test "$aix_use_runtimelinking" = yes; then
2884
shared_flag='${wl}-G'
2886
shared_flag='${wl}-bM:SRE'
2891
# It seems that -bexpall does not export symbols beginning with
2892
# underscore (_), so it is better to generate a list of symbols to export.
2893
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2894
if test "$aix_use_runtimelinking" = yes; then
2895
# Warning - without using the other runtime loading flags (-brtl),
2896
# -berok will link without error, but may produce a broken library.
2897
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2898
# Determine the default libpath from the value encoded in an empty executable.
2899
_LT_AC_SYS_LIBPATH_AIX
2900
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2902
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2904
if test "$host_cpu" = ia64; then
2905
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2906
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2907
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2909
# Determine the default libpath from the value encoded in an empty executable.
2910
_LT_AC_SYS_LIBPATH_AIX
2911
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2912
# Warning - without using the other run time loading flags,
2913
# -berok will link without error, but may produce a broken library.
2914
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2915
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2916
# -bexpall does not export symbols beginning with underscore (_)
2917
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2918
# Exported symbols can be pulled into shared objects from archives
2919
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2920
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2921
# This is similar to how AIX traditionally builds its shared libraries.
2922
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2927
case $cc_basename in
2929
# FIXME: insert proper C++ library support
2930
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2936
cygwin* | mingw* | pw32*)
2937
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2938
# as there is no search path for DLLs.
2939
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2940
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2941
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2942
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2944
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2945
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2946
# If the export-symbols file already is a .def file (1st line
2947
# is EXPORTS), use it as is; otherwise, prepend...
2948
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2949
cp $export_symbols $output_objdir/$soname.def;
2951
echo EXPORTS > $output_objdir/$soname.def;
2952
cat $export_symbols >> $output_objdir/$soname.def;
2954
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2956
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2959
darwin* | rhapsody*)
2961
rhapsody* | darwin1.[[012]])
2962
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2965
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2966
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2968
case ${MACOSX_DEPLOYMENT_TARGET} in
2970
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2973
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2979
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2980
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2981
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2982
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2983
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2984
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2986
if test "$GXX" = yes ; then
2987
lt_int_apple_cc_single_mod=no
2988
output_verbose_link_cmd='echo'
2989
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2990
lt_int_apple_cc_single_mod=yes
2992
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2993
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2995
_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'
2997
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2998
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2999
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3000
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3002
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3004
_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}'
3006
case $cc_basename in
3008
output_verbose_link_cmd='echo'
3009
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3010
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3011
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3012
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3013
_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}'
3016
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3023
case $cc_basename in
3025
# FIXME: insert proper C++ library support
3026
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3029
# Green Hills C++ Compiler
3030
# FIXME: insert proper C++ library support
3031
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3034
# FIXME: insert proper C++ library support
3035
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3040
# C++ shared libraries reported to be fairly broken before switch to ELF
3041
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3044
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3046
freebsd* | kfreebsd*-gnu | dragonfly*)
3047
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3049
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3054
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3055
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3056
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3057
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3058
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3059
# but as the default
3060
# location of the library.
3062
case $cc_basename in
3064
# FIXME: insert proper C++ library support
3065
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3068
_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'
3069
# Commands to make compiler produce verbose output that lists
3070
# what "hidden" libraries, object files and flags are used when
3071
# linking a shared library.
3073
# There doesn't appear to be a way to prevent this compiler from
3074
# explicitly linking system object files so we need to strip them
3075
# from the output so that they don't get included in the library
3077
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'
3080
if test "$GXX" = yes; then
3081
_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'
3083
# FIXME: insert proper C++ library support
3084
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3090
if test $with_gnu_ld = no; then
3093
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3094
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3095
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3101
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3102
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3103
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3109
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3110
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3113
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3115
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3116
# but as the default
3117
# location of the library.
3120
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3121
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3122
# but as the default
3123
# location of the library.
3127
case $cc_basename in
3129
# FIXME: insert proper C++ library support
3130
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3135
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3138
_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'
3141
# Commands to make compiler produce verbose output that lists
3142
# what "hidden" libraries, object files and flags are used when
3143
# linking a shared library.
3145
# There doesn't appear to be a way to prevent this compiler from
3146
# explicitly linking system object files so we need to strip them
3147
# from the output so that they don't get included in the library
3149
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'
3152
if test "$GXX" = yes; then
3153
if test $with_gnu_ld = no; then
3156
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3159
_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'
3164
# FIXME: insert proper C++ library support
3165
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3171
case $cc_basename in
3174
_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'
3176
# Archives containing C++ object files must be created using
3177
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3178
# necessary to make sure instantiated templates are included
3180
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3183
if test "$GXX" = yes; then
3184
if test "$with_gnu_ld" = no; then
3185
_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'
3187
_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'
3190
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3193
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3194
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3197
case $cc_basename in
3199
# Kuck and Associates, Inc. (KAI) C++ Compiler
3201
# KCC will only create a shared library if the output file
3202
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3203
# to its proper name (with version) after linking.
3204
_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'
3205
_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'
3206
# Commands to make compiler produce verbose output that lists
3207
# what "hidden" libraries, object files and flags are used when
3208
# linking a shared library.
3210
# There doesn't appear to be a way to prevent this compiler from
3211
# explicitly linking system object files so we need to strip them
3212
# from the output so that they don't get included in the library
3214
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'
3216
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3217
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3219
# Archives containing C++ object files must be created using
3220
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3221
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3226
# version 8.0 and above of icpc choke on multiply defined symbols
3227
# if we add $predep_objects and $postdep_objects, however 7.1 and
3228
# earlier do not add the objects themselves.
3229
case `$CC -V 2>&1` in
3231
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3232
_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'
3234
*) # Version 8.0 or newer
3237
ia64*) tmp_idyn=' -i_dynamic';;
3239
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3240
_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'
3243
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3244
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3245
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3246
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3249
# Portland Group C++ compiler
3250
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3251
_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'
3253
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3254
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3255
_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'
3259
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3260
_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'
3262
runpath_var=LD_RUN_PATH
3263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3264
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3266
# Commands to make compiler produce verbose output that lists
3267
# what "hidden" libraries, object files and flags are used when
3268
# linking a shared library.
3270
# There doesn't appear to be a way to prevent this compiler from
3271
# explicitly linking system object files so we need to strip them
3272
# from the output so that they don't get included in the library
3274
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'
3279
# FIXME: insert proper C++ library support
3280
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3283
# FIXME: insert proper C++ library support
3284
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3287
case $cc_basename in
3289
# FIXME: insert proper C++ library support
3290
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3293
# FIXME: insert proper C++ library support
3294
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3299
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3300
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3302
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3303
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3304
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3306
# Workaround some broken pre-1.5 toolchains
3307
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3310
# C++ shared libraries are fairly broken
3311
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3314
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3315
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3316
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3317
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3318
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3319
_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'
3320
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3321
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3323
output_verbose_link_cmd='echo'
3326
case $cc_basename in
3328
# Kuck and Associates, Inc. (KAI) C++ Compiler
3330
# KCC will only create a shared library if the output file
3331
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3332
# to its proper name (with version) after linking.
3333
_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'
3335
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3336
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3338
# Archives containing C++ object files must be created using
3339
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3340
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3344
# Rational C++ 2.4.1
3345
# FIXME: insert proper C++ library support
3346
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3349
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3350
_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'
3352
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3353
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3355
# Commands to make compiler produce verbose output that lists
3356
# what "hidden" libraries, object files and flags are used when
3357
# linking a shared library.
3359
# There doesn't appear to be a way to prevent this compiler from
3360
# explicitly linking system object files so we need to strip them
3361
# from the output so that they don't get included in the library
3363
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'
3366
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3367
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3368
_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'
3370
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3371
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3373
# Commands to make compiler produce verbose output that lists
3374
# what "hidden" libraries, object files and flags are used when
3375
# linking a shared library.
3376
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3379
# FIXME: insert proper C++ library support
3380
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3386
case $cc_basename in
3388
# Kuck and Associates, Inc. (KAI) C++ Compiler
3390
# KCC will only create a shared library if the output file
3391
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3392
# to its proper name (with version) after linking.
3393
_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'
3395
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3396
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3398
# Archives containing C++ object files must be created using
3399
# the KAI C++ compiler.
3400
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3403
# Rational C++ 2.4.1
3404
# FIXME: insert proper C++ library support
3405
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3408
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3409
_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'
3410
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3411
echo "-hidden">> $lib.exp~
3412
$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~
3415
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3416
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3418
# Commands to make compiler produce verbose output that lists
3419
# what "hidden" libraries, object files and flags are used when
3420
# linking a shared library.
3422
# There doesn't appear to be a way to prevent this compiler from
3423
# explicitly linking system object files so we need to strip them
3424
# from the output so that they don't get included in the library
3426
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'
3429
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3430
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3431
_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'
3433
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3434
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3436
# Commands to make compiler produce verbose output that lists
3437
# what "hidden" libraries, object files and flags are used when
3438
# linking a shared library.
3439
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3442
# FIXME: insert proper C++ library support
3443
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3449
# FIXME: insert proper C++ library support
3450
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3453
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3454
case $cc_basename in
3456
# FIXME: insert proper C++ library support
3457
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3460
# FIXME: insert proper C++ library support
3461
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3466
case $cc_basename in
3469
# FIXME: insert proper C++ library support
3470
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3474
# FIXME: insert proper C++ library support
3475
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3478
# FIXME: insert proper C++ library support
3479
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3484
case $cc_basename in
3486
# Sun C++ 4.2, 5.x and Centerline C++
3487
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3488
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3489
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3490
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3491
$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'
3493
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3494
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3496
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3498
# The C++ compiler is used as linker so we must use $wl
3499
# flag to pass the commands to the underlying system
3500
# linker. We must also pass each convience library through
3501
# to the system linker between allextract/defaultextract.
3502
# The C++ compiler will combine linker options so we
3503
# cannot just pass the convience library names through
3505
# Supported since Solaris 2.6 (maybe 2.5.1?)
3506
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3509
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3511
output_verbose_link_cmd='echo'
3513
# Archives containing C++ object files must be created using
3514
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3515
# necessary to make sure instantiated templates are included
3517
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3520
# Green Hills C++ Compiler
3521
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3523
# The C++ compiler must be used to create the archive.
3524
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3527
# GNU C++ compiler with Solaris linker
3528
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3529
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3530
if $CC --version | grep -v '^2\.7' > /dev/null; then
3531
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3532
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3533
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3535
# Commands to make compiler produce verbose output that lists
3536
# what "hidden" libraries, object files and flags are used when
3537
# linking a shared library.
3538
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3540
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3542
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3543
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3544
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3546
# Commands to make compiler produce verbose output that lists
3547
# what "hidden" libraries, object files and flags are used when
3548
# linking a shared library.
3549
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3552
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3557
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3558
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3561
case $cc_basename in
3563
# NonStop-UX NCC 3.20
3564
# FIXME: insert proper C++ library support
3565
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3568
# FIXME: insert proper C++ library support
3569
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3574
# FIXME: insert proper C++ library support
3575
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3578
# FIXME: insert proper C++ library support
3579
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3582
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3583
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3585
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3586
_LT_AC_TAGVAR(LD, $1)="$LD"
3589
## There is no encapsulation within the following macros, do not change
3590
## the running order or otherwise move them around unless you know exactly
3591
## what you are doing...
3592
AC_LIBTOOL_POSTDEP_PREDEP($1)
3593
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3594
AC_LIBTOOL_PROG_CC_C_O($1)
3595
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3596
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3597
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3598
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3599
AC_LIBTOOL_SYS_LIB_STRIP
3600
AC_LIBTOOL_DLOPEN_SELF($1)
3602
AC_LIBTOOL_CONFIG($1)
3609
with_gnu_ldcxx=$with_gnu_ld
3610
with_gnu_ld=$lt_save_with_gnu_ld
3611
lt_cv_path_LDCXX=$lt_cv_path_LD
3612
lt_cv_path_LD=$lt_save_path_LD
3613
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3614
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3615
])# AC_LIBTOOL_LANG_CXX_CONFIG
3617
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3618
# ------------------------
3619
# Figure out "hidden" library dependencies from verbose
3620
# compiler output when linking a shared library.
3621
# Parse the compiler output and extract the necessary
3622
# objects, libraries and library flags.
3623
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3624
dnl we can't use the lt_simple_compile_test_code here,
3625
dnl because it contains code intended for an executable,
3626
dnl not a library. It's possible we should let each
3627
dnl tag define a new lt_????_link_test_code variable,
3628
dnl but it's only used here...
3629
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3631
void foo (void) { a = 0; }
3633
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3637
Foo (void) { a = 0; }
3642
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3650
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3653
public void bar (void) {
3659
dnl Parse the compiler output and extract the necessary
3660
dnl objects, libraries and library flags.
3661
if AC_TRY_EVAL(ac_compile); then
3662
# Parse the compiler output and extract the necessary
3663
# objects, libraries and library flags.
3665
# Sentinel used to keep track of whether or not we are before
3666
# the conftest object file.
3667
pre_test_object_deps_done=no
3669
# The `*' in the case matches for architectures that use `case' in
3670
# $output_verbose_cmd can trigger glob expansion during the loop
3671
# eval without this substitution.
3672
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3674
for p in `eval $output_verbose_link_cmd`; do
3678
# Some compilers place space between "-{L,R}" and the path.
3681
|| test $p = "-R"; then
3688
if test "$pre_test_object_deps_done" = no; then
3691
# Internal compiler library paths should come after those
3692
# provided the user. The postdeps already come after the
3693
# user supplied libs so there is no need to process them.
3694
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3695
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3697
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3700
# The "-l" case would never come before the object being
3701
# linked, so don't bother handling this case.
3704
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3705
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3707
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3713
# This assumes that the test object file only shows up
3714
# once in the compiler output.
3715
if test "$p" = "conftest.$objext"; then
3716
pre_test_object_deps_done=yes
3720
if test "$pre_test_object_deps_done" = no; then
3721
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3722
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3724
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3727
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3728
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3730
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3735
*) ;; # Ignore the rest.
3743
echo "libtool.m4: error: problem compiling $1 test program"
3746
$rm -f confest.$objext
3748
# PORTME: override above test on systems where it is broken
3752
case $cc_basename in
3754
# Adding this requires a known-good setup of shared libraries for
3755
# Sun compiler versions before 5.6, else PIC objects from an old
3756
# archive will be linked into the output, leading to subtle bugs.
3757
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3763
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3764
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3766
])# AC_LIBTOOL_POSTDEP_PREDEP
3768
# AC_LIBTOOL_LANG_F77_CONFIG
3769
# ------------------------
3770
# Ensure that the configuration vars for the C compiler are
3771
# suitably defined. Those variables are subsequently used by
3772
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3773
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3774
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3775
[AC_REQUIRE([AC_PROG_F77])
3776
AC_LANG_PUSH(Fortran 77)
3778
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3779
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3780
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3781
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3782
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3783
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3784
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3785
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3786
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3787
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3788
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3789
_LT_AC_TAGVAR(module_cmds, $1)=
3790
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3791
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3792
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3793
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3794
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3795
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3797
# Source file extension for f77 test sources.
3800
# Object file extension for compiled f77 test sources.
3802
_LT_AC_TAGVAR(objext, $1)=$objext
3804
# Code to be used in simple compile tests
3805
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3807
# Code to be used in simple link tests
3808
lt_simple_link_test_code=" program t\n end\n"
3810
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3813
# save warnings/boilerplate of simple test code
3814
_LT_COMPILER_BOILERPLATE
3815
_LT_LINKER_BOILERPLATE
3817
# Allow CC to be a program name with arguments.
3821
_LT_AC_TAGVAR(compiler, $1)=$CC
3822
_LT_CC_BASENAME([$compiler])
3824
AC_MSG_CHECKING([if libtool supports shared libraries])
3825
AC_MSG_RESULT([$can_build_shared])
3827
AC_MSG_CHECKING([whether to build shared libraries])
3828
test "$can_build_shared" = "no" && enable_shared=no
3830
# On AIX, shared libraries and static libraries use the same namespace, and
3831
# are all built from PIC.
3834
test "$enable_shared" = yes && enable_static=no
3835
if test -n "$RANLIB"; then
3836
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3837
postinstall_cmds='$RANLIB $lib'
3841
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3842
test "$enable_shared" = yes && enable_static=no
3846
AC_MSG_RESULT([$enable_shared])
3848
AC_MSG_CHECKING([whether to build static libraries])
3849
# Make sure either enable_shared or enable_static is yes.
3850
test "$enable_shared" = yes || enable_static=yes
3851
AC_MSG_RESULT([$enable_static])
3853
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3855
_LT_AC_TAGVAR(GCC, $1)="$G77"
3856
_LT_AC_TAGVAR(LD, $1)="$LD"
3858
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3859
AC_LIBTOOL_PROG_CC_C_O($1)
3860
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3861
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3862
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3863
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3864
AC_LIBTOOL_SYS_LIB_STRIP
3867
AC_LIBTOOL_CONFIG($1)
3871
])# AC_LIBTOOL_LANG_F77_CONFIG
3874
# AC_LIBTOOL_LANG_GCJ_CONFIG
3875
# --------------------------
3876
# Ensure that the configuration vars for the C compiler are
3877
# suitably defined. Those variables are subsequently used by
3878
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3879
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3880
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3883
# Source file extension for Java test sources.
3886
# Object file extension for compiled Java test sources.
3888
_LT_AC_TAGVAR(objext, $1)=$objext
3890
# Code to be used in simple compile tests
3891
lt_simple_compile_test_code="class foo {}\n"
3893
# Code to be used in simple link tests
3894
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3896
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3899
# save warnings/boilerplate of simple test code
3900
_LT_COMPILER_BOILERPLATE
3901
_LT_LINKER_BOILERPLATE
3903
# Allow CC to be a program name with arguments.
3907
_LT_AC_TAGVAR(compiler, $1)=$CC
3908
_LT_CC_BASENAME([$compiler])
3910
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3911
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3913
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3916
## There is no encapsulation within the following macros, do not change
3917
## the running order or otherwise move them around unless you know exactly
3918
## what you are doing...
3919
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3920
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3921
AC_LIBTOOL_PROG_CC_C_O($1)
3922
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3923
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3924
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3925
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3926
AC_LIBTOOL_SYS_LIB_STRIP
3927
AC_LIBTOOL_DLOPEN_SELF($1)
3929
AC_LIBTOOL_CONFIG($1)
3933
])# AC_LIBTOOL_LANG_GCJ_CONFIG
3936
# AC_LIBTOOL_LANG_RC_CONFIG
3937
# --------------------------
3938
# Ensure that the configuration vars for the Windows resource compiler are
3939
# suitably defined. Those variables are subsequently used by
3940
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3941
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3942
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3945
# Source file extension for RC test sources.
3948
# Object file extension for compiled RC test sources.
3950
_LT_AC_TAGVAR(objext, $1)=$objext
3952
# Code to be used in simple compile tests
3953
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3955
# Code to be used in simple link tests
3956
lt_simple_link_test_code="$lt_simple_compile_test_code"
3958
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3961
# save warnings/boilerplate of simple test code
3962
_LT_COMPILER_BOILERPLATE
3963
_LT_LINKER_BOILERPLATE
3965
# Allow CC to be a program name with arguments.
3969
_LT_AC_TAGVAR(compiler, $1)=$CC
3970
_LT_CC_BASENAME([$compiler])
3971
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3973
AC_LIBTOOL_CONFIG($1)
3977
])# AC_LIBTOOL_LANG_RC_CONFIG
3980
# AC_LIBTOOL_CONFIG([TAGNAME])
3981
# ----------------------------
3982
# If TAGNAME is not passed, then create an initial libtool script
3983
# with a default configuration from the untagged config vars. Otherwise
3984
# add code to config.status for appending the configuration named by
3985
# TAGNAME from the matching tagged config vars.
3986
AC_DEFUN([AC_LIBTOOL_CONFIG],
3987
[# The else clause should only fire when bootstrapping the
3988
# libtool distribution, otherwise you forgot to ship ltmain.sh
3989
# with your package, and you will get complaints that there are
3990
# no rules to generate ltmain.sh.
3991
if test -f "$ltmain"; then
3992
# See if we are running on zsh, and set the options which allow our commands through
3993
# without removal of \ escapes.
3994
if test -n "${ZSH_VERSION+set}" ; then
3995
setopt NO_GLOB_SUBST
3997
# Now quote all the things that may contain metacharacters while being
3998
# careful not to overquote the AC_SUBSTed values. We take copies of the
3999
# variables and quote the copies for generation of the libtool script.
4000
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4002
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4003
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4004
deplibs_check_method reload_flag reload_cmds need_locks \
4005
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4006
lt_cv_sys_global_symbol_to_c_name_address \
4007
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4008
old_postinstall_cmds old_postuninstall_cmds \
4009
_LT_AC_TAGVAR(compiler, $1) \
4010
_LT_AC_TAGVAR(CC, $1) \
4011
_LT_AC_TAGVAR(LD, $1) \
4012
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4013
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4014
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4015
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4016
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4017
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4018
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4019
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4020
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4021
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4022
_LT_AC_TAGVAR(predep_objects, $1) \
4023
_LT_AC_TAGVAR(postdep_objects, $1) \
4024
_LT_AC_TAGVAR(predeps, $1) \
4025
_LT_AC_TAGVAR(postdeps, $1) \
4026
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4027
_LT_AC_TAGVAR(archive_cmds, $1) \
4028
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4029
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4030
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4031
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4032
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4033
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4034
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4035
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4036
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4037
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4038
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4039
_LT_AC_TAGVAR(module_cmds, $1) \
4040
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4041
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4042
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4043
_LT_AC_TAGVAR(include_expsyms, $1); do
4046
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4047
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4048
_LT_AC_TAGVAR(archive_cmds, $1) | \
4049
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4050
_LT_AC_TAGVAR(module_cmds, $1) | \
4051
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4052
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4053
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4054
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4055
postinstall_cmds | postuninstall_cmds | \
4056
old_postinstall_cmds | old_postuninstall_cmds | \
4057
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4058
# Double-quote double-evaled strings.
4059
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4062
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4068
*'\[$]0 --fallback-echo"')
4069
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4074
[cfgfile="${ofile}T"
4075
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4077
AC_MSG_NOTICE([creating $ofile])],
4080
cat <<__EOF__ >> "$cfgfile"
4084
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4085
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4086
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4088
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4089
# Free Software Foundation, Inc.
4091
# This file is part of GNU Libtool:
4092
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4094
# This program is free software; you can redistribute it and/or modify
4095
# it under the terms of the GNU General Public License as published by
4096
# the Free Software Foundation; either version 2 of the License, or
4097
# (at your option) any later version.
4099
# This program is distributed in the hope that it will be useful, but
4100
# WITHOUT ANY WARRANTY; without even the implied warranty of
4101
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4102
# General Public License for more details.
4104
# You should have received a copy of the GNU General Public License
4105
# along with this program; if not, write to the Free Software
4106
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4108
# As a special exception to the GNU General Public License, if you
4109
# distribute this file as part of a program that contains a
4110
# configuration script generated by Autoconf, you may include it under
4111
# the same distribution terms that you use for the rest of that program.
4113
# A sed program that does not truncate output.
4116
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4117
Xsed="$SED -e 1s/^X//"
4119
# The HP-UX ksh and POSIX shell print the target directory to stdout
4121
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4123
# The names of the tagged configurations supported by this script.
4126
# ### BEGIN LIBTOOL CONFIG],
4127
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4129
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4131
# Shell to use when invoking shell scripts.
4134
# Whether or not to build shared libraries.
4135
build_libtool_libs=$enable_shared
4137
# Whether or not to build static libraries.
4138
build_old_libs=$enable_static
4140
# Whether or not to add -lc for building shared libraries.
4141
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4143
# Whether or not to disallow shared libs when runtime libs are static
4144
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4146
# Whether or not to optimize for fast installation.
4147
fast_install=$enable_fast_install
4150
host_alias=$host_alias
4155
build_alias=$build_alias
4159
# An echo program that does not interpret backslashes.
4164
AR_FLAGS=$lt_AR_FLAGS
4169
# A language-specific compiler.
4170
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4172
# Is the compiler the GNU C compiler?
4173
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4178
# The linker used to build libraries.
4179
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4181
# Whether we need hard or soft links.
4184
# A BSD-compatible nm program.
4187
# A symbol stripping program
4190
# Used to examine libraries when file_magic_cmd begins "file"
4191
MAGIC_CMD=$MAGIC_CMD
4193
# Used on cygwin: DLL creation program.
4196
# Used on cygwin: object dumper.
4199
# Used on cygwin: assembler.
4202
# The name of the directory that contains temporary libtool files.
4205
# How to create reloadable object files.
4206
reload_flag=$lt_reload_flag
4207
reload_cmds=$lt_reload_cmds
4209
# How to pass a linker flag through the compiler.
4210
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4212
# Object file suffix (normally "o").
4215
# Old archive suffix (normally "a").
4218
# Shared library suffix (normally ".so").
4219
shrext_cmds='$shrext_cmds'
4221
# Executable file suffix (normally "").
4224
# Additional compiler flags for building library objects.
4225
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4228
# What is the maximum length of a command?
4229
max_cmd_len=$lt_cv_sys_max_cmd_len
4231
# Does compiler simultaneously support -c and -o options?
4232
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4234
# Must we lock files when doing compilation?
4235
need_locks=$lt_need_locks
4237
# Do we need the lib prefix for modules?
4238
need_lib_prefix=$need_lib_prefix
4240
# Do we need a version for libraries?
4241
need_version=$need_version
4243
# Whether dlopen is supported.
4244
dlopen_support=$enable_dlopen
4246
# Whether dlopen of programs is supported.
4247
dlopen_self=$enable_dlopen_self
4249
# Whether dlopen of statically linked programs is supported.
4250
dlopen_self_static=$enable_dlopen_self_static
4252
# Compiler flag to prevent dynamic linking.
4253
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4255
# Compiler flag to turn off builtin functions.
4256
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4258
# Compiler flag to allow reflexive dlopens.
4259
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4261
# Compiler flag to generate shared objects directly from archives.
4262
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4264
# Compiler flag to generate thread-safe objects.
4265
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4267
# Library versioning type.
4268
version_type=$version_type
4270
# Format of library name prefix.
4271
libname_spec=$lt_libname_spec
4273
# List of archive names. First name is the real one, the rest are links.
4274
# The last name is the one that the linker finds with -lNAME.
4275
library_names_spec=$lt_library_names_spec
4277
# The coded name of the library, if different from the real name.
4278
soname_spec=$lt_soname_spec
4280
# Commands used to build and install an old-style archive.
4282
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4283
old_postinstall_cmds=$lt_old_postinstall_cmds
4284
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4286
# Create an old-style archive from a shared archive.
4287
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4289
# Create a temporary old-style archive to link instead of a shared archive.
4290
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4292
# Commands used to build and install a shared archive.
4293
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4294
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4295
postinstall_cmds=$lt_postinstall_cmds
4296
postuninstall_cmds=$lt_postuninstall_cmds
4298
# Commands used to build a loadable module (assumed same as above if empty)
4299
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4300
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4302
# Commands to strip libraries.
4303
old_striplib=$lt_old_striplib
4304
striplib=$lt_striplib
4306
# Dependencies to place before the objects being linked to create a
4308
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4310
# Dependencies to place after the objects being linked to create a
4312
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4314
# Dependencies to place before the objects being linked to create a
4316
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4318
# Dependencies to place after the objects being linked to create a
4320
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4322
# The library search path used internally by the compiler when linking
4324
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4326
# Method to check whether dependent libraries are shared objects.
4327
deplibs_check_method=$lt_deplibs_check_method
4329
# Command to use when deplibs_check_method == file_magic.
4330
file_magic_cmd=$lt_file_magic_cmd
4332
# Flag that allows shared libraries with undefined symbols to be built.
4333
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4335
# Flag that forces no undefined symbols.
4336
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4338
# Commands used to finish a libtool library installation in a directory.
4339
finish_cmds=$lt_finish_cmds
4341
# Same as above, but a single script fragment to be evaled but not shown.
4342
finish_eval=$lt_finish_eval
4344
# Take the output of nm and produce a listing of raw symbols and C names.
4345
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4347
# Transform the output of nm in a proper C declaration
4348
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4350
# Transform the output of nm in a C name address pair
4351
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4353
# This is the shared library runtime path variable.
4354
runpath_var=$runpath_var
4356
# This is the shared library path variable.
4357
shlibpath_var=$shlibpath_var
4359
# Is shlibpath searched before the hard-coded library search path?
4360
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4362
# How to hardcode a shared library path into an executable.
4363
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4365
# Whether we should hardcode library paths into libraries.
4366
hardcode_into_libs=$hardcode_into_libs
4368
# Flag to hardcode \$libdir into a binary during linking.
4369
# This must work even if \$libdir does not exist.
4370
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4372
# If ld is used when linking, flag to hardcode \$libdir into
4373
# a binary during linking. This must work even if \$libdir does
4375
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4377
# Whether we need a single -rpath flag with a separated argument.
4378
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4380
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4382
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4384
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4386
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4388
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4389
# the resulting binary.
4390
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4392
# Set to yes if building a shared library automatically hardcodes DIR into the library
4393
# and all subsequent libraries and executables linked against it.
4394
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4396
# Variables whose values should be saved in libtool wrapper scripts and
4397
# restored at relink time.
4398
variables_saved_for_relink="$variables_saved_for_relink"
4400
# Whether libtool must link a program against all its dependency libraries.
4401
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4403
# Compile-time system search path for libraries
4404
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4406
# Run-time system search path for libraries
4407
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4409
# Fix the shell variable \$srcfile for the compiler.
4410
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4412
# Set to yes if exported symbols are required.
4413
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4415
# The commands to list exported symbols.
4416
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4418
# The commands to extract the exported symbol list from a shared archive.
4419
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4421
# Symbols that should not be listed in the preloaded symbols.
4422
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4424
# Symbols that must always be exported.
4425
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4428
[# ### END LIBTOOL CONFIG],
4429
[# ### END LIBTOOL TAG CONFIG: $tagname])
4436
cat <<\EOF >> "$cfgfile"
4438
# AIX sometimes has problems with the GCC collect2 program. For some
4439
# reason, if we set the COLLECT_NAMES environment variable, the problems
4440
# vanish in a puff of smoke.
4441
if test "X${COLLECT_NAMES+set}" != Xset; then
4443
export COLLECT_NAMES
4449
# We use sed instead of cat because bash on DJGPP gets confused if
4450
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4451
# text mode, it properly converts lines to CR/LF. This bash problem
4452
# is reportedly fixed, but why not run on old versions too?
4453
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4455
mv -f "$cfgfile" "$ofile" || \
4456
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4460
# If there is no Makefile yet, we rely on a make rule to execute
4461
# `config.status --recheck' to rerun these tests and create the
4462
# libtool script then.
4463
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4464
if test -f "$ltmain_in"; then
4465
test -f Makefile && make "$ltmain"
4468
])# AC_LIBTOOL_CONFIG
4471
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4472
# -------------------------------------------
4473
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4474
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4476
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4478
if test "$GCC" = yes; then
4479
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4481
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4482
lt_cv_prog_compiler_rtti_exceptions,
4483
[-fno-rtti -fno-exceptions], [],
4484
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4486
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4489
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4490
# ---------------------------------
4491
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4492
[AC_REQUIRE([AC_CANONICAL_HOST])
4493
AC_REQUIRE([AC_PROG_NM])
4494
AC_REQUIRE([AC_OBJEXT])
4495
# Check for command to grab the raw symbol name followed by C symbol from nm.
4496
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4497
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4499
# These are sane defaults that work on at least a few old systems.
4500
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4502
# Character class describing NM global symbol codes.
4503
symcode='[[BCDEGRST]]'
4505
# Regexp to match symbols that can be accessed directly from C.
4506
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4508
# Transform an extracted symbol line into a proper C declaration
4509
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4511
# Transform an extracted symbol line into symbol name and symbol address
4512
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'"
4514
# Define system-specific variables.
4519
cygwin* | mingw* | pw32*)
4520
symcode='[[ABCDGISTW]]'
4522
hpux*) # Its linker distinguishes data from code symbols
4523
if test "$host_cpu" = ia64; then
4524
symcode='[[ABCDEGRST]]'
4526
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4527
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'"
4530
if test "$host_cpu" = ia64; then
4531
symcode='[[ABCDGIRSTW]]'
4532
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4533
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'"
4537
symcode='[[BCDEGRST]]'
4540
symcode='[[BCDEGQRST]]'
4546
symcode='[[DFNSTU]]'
4550
# Handle CRLF in mingw tool chain
4554
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4558
# If we're using GNU nm, then use its standard symbol codes.
4559
case `$NM -V 2>&1` in
4560
*GNU* | *'with BFD'*)
4561
symcode='[[ABCDGIRSTW]]' ;;
4564
# Try without a prefix undercore, then with it.
4565
for ac_symprfx in "" "_"; do
4567
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4568
symxfrm="\\1 $ac_symprfx\\2 \\2"
4570
# Write the raw and C identifiers.
4571
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4573
# Check to see that the pipe works correctly.
4577
cat > conftest.$ac_ext <<EOF
4582
void nm_test_func(){}
4586
int main(){nm_test_var='a';nm_test_func();return(0);}
4589
if AC_TRY_EVAL(ac_compile); then
4590
# Now try to grab the symbols.
4592
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4593
# Try sorting and uniquifying the output.
4594
if sort "$nlist" | uniq > "$nlist"T; then
4595
mv -f "$nlist"T "$nlist"
4600
# Make sure that we snagged all the symbols we need.
4601
if grep ' nm_test_var$' "$nlist" >/dev/null; then
4602
if grep ' nm_test_func$' "$nlist" >/dev/null; then
4603
cat <<EOF > conftest.$ac_ext
4609
# Now generate the symbol file.
4610
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4612
cat <<EOF >> conftest.$ac_ext
4613
#if defined (__STDC__) && __STDC__
4614
# define lt_ptr_t void *
4616
# define lt_ptr_t char *
4620
/* The mapping between symbol names and symbols. */
4625
lt_preloaded_symbols[[]] =
4628
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4629
cat <<\EOF >> conftest.$ac_ext
4637
# Now try linking the two files.
4638
mv conftest.$ac_objext conftstm.$ac_objext
4639
lt_save_LIBS="$LIBS"
4640
lt_save_CFLAGS="$CFLAGS"
4641
LIBS="conftstm.$ac_objext"
4642
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4643
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4646
LIBS="$lt_save_LIBS"
4647
CFLAGS="$lt_save_CFLAGS"
4649
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4652
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4655
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4658
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4659
cat conftest.$ac_ext >&5
4661
rm -f conftest* conftst*
4663
# Do not use the global_symbol_pipe unless it works.
4664
if test "$pipe_works" = yes; then
4667
lt_cv_sys_global_symbol_pipe=
4671
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4672
lt_cv_sys_global_symbol_to_cdecl=
4674
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4675
AC_MSG_RESULT(failed)
4679
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4682
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4683
# ---------------------------------------
4684
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4685
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4686
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4687
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4689
AC_MSG_CHECKING([for $compiler option to produce PIC])
4691
# C++ specific cases for pic, static, wl, etc.
4692
if test "$GXX" = yes; then
4693
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4694
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4698
# All AIX code is PIC.
4699
if test "$host_cpu" = ia64; then
4700
# AIX 5 now supports IA64 processor
4701
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4705
# FIXME: we need at least 68020 code to build shared libraries, but
4706
# adding the `-m68020' flag to GCC prevents building anything better,
4708
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4710
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4711
# PIC is the default for these OSes.
4713
mingw* | os2* | pw32*)
4714
# This hack is so that the source file can tell whether it is being
4715
# built for inclusion in a dll (and should export symbols for example).
4716
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4718
darwin* | rhapsody*)
4719
# PIC is the default on this platform
4720
# Common symbols not allowed in MH_DYLIB files
4721
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4724
# DJGPP does not support shared libraries at all
4725
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4728
if test -d /usr/nec; then
4729
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4733
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4739
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4744
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4750
# All AIX code is PIC.
4751
if test "$host_cpu" = ia64; then
4752
# AIX 5 now supports IA64 processor
4753
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4755
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4759
case $cc_basename in
4761
# Green Hills C++ Compiler
4762
# _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"
4767
# PIC is the default on this platform
4768
# Common symbols not allowed in MH_DYLIB files
4769
case $cc_basename in
4771
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4772
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4777
case $cc_basename in
4779
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4782
# Green Hills C++ Compiler
4783
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4789
freebsd* | kfreebsd*-gnu | dragonfly*)
4790
# FreeBSD uses GNU C++
4792
hpux9* | hpux10* | hpux11*)
4793
case $cc_basename in
4795
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4797
if test "$host_cpu" != ia64; then
4798
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4802
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4803
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4809
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4817
irix5* | irix6* | nonstopux*)
4818
case $cc_basename in
4820
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4821
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4822
# CC pic flag -KPIC is the default.
4829
case $cc_basename in
4832
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4833
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4837
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4838
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4839
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4842
# Portland Group C++ compiler.
4843
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4844
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4845
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4849
# Make sure the PIC flag is empty. It appears that all Alpha
4850
# Linux and Compaq Tru64 Unix objects are PIC.
4851
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4852
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4863
case $cc_basename in
4865
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4873
osf3* | osf4* | osf5*)
4874
case $cc_basename in
4876
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4879
# Rational C++ 2.4.1
4880
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4883
# Digital/Compaq C++
4884
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4885
# Make sure the PIC flag is empty. It appears that all Alpha
4886
# Linux and Compaq Tru64 Unix objects are PIC.
4887
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4888
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4897
case $cc_basename in
4899
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4906
case $cc_basename in
4908
# Sun C++ 4.2, 5.x and Centerline C++
4909
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4910
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4914
# Green Hills C++ Compiler
4915
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4922
case $cc_basename in
4925
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4926
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4930
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4937
case $cc_basename in
4939
# NonStop-UX NCC 3.20
4940
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4951
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4957
if test "$GCC" = yes; then
4958
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4959
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4963
# All AIX code is PIC.
4964
if test "$host_cpu" = ia64; then
4965
# AIX 5 now supports IA64 processor
4966
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4971
# FIXME: we need at least 68020 code to build shared libraries, but
4972
# adding the `-m68020' flag to GCC prevents building anything better,
4974
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4977
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4978
# PIC is the default for these OSes.
4981
mingw* | pw32* | os2*)
4982
# This hack is so that the source file can tell whether it is being
4983
# built for inclusion in a dll (and should export symbols for example).
4984
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4987
darwin* | rhapsody*)
4988
# PIC is the default on this platform
4989
# Common symbols not allowed in MH_DYLIB files
4990
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4994
# Just because we use GCC doesn't mean we suddenly get shared libraries
4995
# on systems that don't support them.
4996
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5001
if test -d /usr/nec; then
5002
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5007
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5014
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5020
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5024
# PORTME Check for flag to pass linker flags through the system compiler.
5027
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5028
if test "$host_cpu" = ia64; then
5029
# AIX 5 now supports IA64 processor
5030
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5032
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5036
# PIC is the default on this platform
5037
# Common symbols not allowed in MH_DYLIB files
5038
case $cc_basename in
5040
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5041
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5046
mingw* | pw32* | os2*)
5047
# This hack is so that the source file can tell whether it is being
5048
# built for inclusion in a dll (and should export symbols for example).
5049
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5052
hpux9* | hpux10* | hpux11*)
5053
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5054
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5061
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5064
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5065
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5068
irix5* | irix6* | nonstopux*)
5069
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5070
# PIC (with -KPIC) is the default.
5071
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5075
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5076
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5080
case $cc_basename in
5082
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5083
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5084
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5086
pgcc* | pgf77* | pgf90* | pgf95*)
5087
# Portland Group compilers (*not* the Pentium gcc compiler,
5088
# which looks to be a dead project)
5089
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5090
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5091
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5094
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5095
# All Alpha code is PIC.
5096
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5101
osf3* | osf4* | osf5*)
5102
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5103
# All OSF/1 code is PIC.
5104
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5108
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5109
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5113
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5114
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5115
case $cc_basename in
5117
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5119
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5124
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5125
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5126
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5129
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5130
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5131
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5132
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5136
if test -d /usr/nec ;then
5137
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5138
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5143
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5144
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5148
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5149
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5153
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5158
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5161
# Check to make sure the PIC flag actually works.
5163
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5164
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5165
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5166
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5167
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5169
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5171
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5172
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5175
# For platforms which do not support PIC, -DPIC is meaningless:
5177
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5180
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5186
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5187
# ------------------------------------
5188
# See if the linker supports building shared libraries.
5189
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5190
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5192
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5195
# If we're using GNU nm, then we don't want the "-C" option.
5196
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5197
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5198
_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'
5200
_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'
5204
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5207
_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'
5210
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5215
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5216
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5217
_LT_AC_TAGVAR(archive_cmds, $1)=
5218
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5219
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5220
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5221
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5222
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5223
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5224
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5225
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5226
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5227
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5228
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5229
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5230
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5231
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5232
_LT_AC_TAGVAR(module_cmds, $1)=
5233
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5234
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5235
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5236
# include_expsyms should be a list of space-separated symbols to be *always*
5237
# included in the symbol list
5238
_LT_AC_TAGVAR(include_expsyms, $1)=
5239
# exclude_expsyms can be an extended regexp of symbols to exclude
5240
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5241
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5242
# as well as any symbol that contains `d'.
5243
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5244
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5245
# platforms (ab)use it in PIC code, but their linkers get confused if
5246
# the symbol is explicitly referenced. Since portable code cannot
5247
# rely on this symbol name, it's probably fine to never include it in
5248
# preloaded symbol tables.
5249
extract_expsyms_cmds=
5250
# Just being paranoid about ensuring that cc_basename is set.
5251
_LT_CC_BASENAME([$compiler])
5253
cygwin* | mingw* | pw32*)
5254
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5255
# When not using gcc, we currently assume that we are using
5256
# Microsoft Visual C++.
5257
if test "$GCC" != yes; then
5266
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5267
if test "$with_gnu_ld" = yes; then
5268
# If archive_cmds runs LD, not CC, wlarc should be empty
5271
# Set some defaults for GNU ld with shared library support. These
5272
# are reset later if shared libraries are not supported. Putting them
5273
# here allows them to be overridden if necessary.
5274
runpath_var=LD_RUN_PATH
5275
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5276
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5277
# ancient GNU ld didn't support --whole-archive et. al.
5278
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5279
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5281
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5283
supports_anon_versioning=no
5284
case `$LD -v 2>/dev/null` in
5285
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5286
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5287
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5288
*\ 2.11.*) ;; # other 2.11 versions
5289
*) supports_anon_versioning=yes ;;
5292
# See if GNU ld supports shared libraries.
5294
aix3* | aix4* | aix5*)
5295
# On AIX/PPC, the GNU linker is very broken
5296
if test "$host_cpu" != ia64; then
5297
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5300
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5301
*** to be unable to reliably create shared libraries on AIX.
5302
*** Therefore, libtool is disabling shared libraries support. If you
5303
*** really care for shared libraries, you may want to modify your PATH
5304
*** so that a non-GNU linker is found, and then restart.
5311
_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)'
5312
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5313
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5315
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5316
# that the semantics of dynamic libraries on AmigaOS, at least up
5317
# to version 4, is to share data among multiple programs linked
5318
# with the same dynamic library. Since this doesn't match the
5319
# behavior of shared libraries on other platforms, we can't use
5321
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5325
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5326
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5327
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5328
# support --undefined. This deserves some investigation. FIXME
5329
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5331
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5335
cygwin* | mingw* | pw32*)
5336
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5337
# as there is no search path for DLLs.
5338
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5339
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5340
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5341
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5342
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5344
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5345
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5346
# If the export-symbols file already is a .def file (1st line
5347
# is EXPORTS), use it as is; otherwise, prepend...
5348
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5349
cp $export_symbols $output_objdir/$soname.def;
5351
echo EXPORTS > $output_objdir/$soname.def;
5352
cat $export_symbols >> $output_objdir/$soname.def;
5354
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5356
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5361
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5363
case $cc_basename,$host_cpu in
5364
pgcc*) # Portland Group C compiler
5365
_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'
5366
tmp_addflag=' $pic_flag'
5368
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5369
_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'
5370
tmp_addflag=' $pic_flag -Mnomain' ;;
5371
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5372
tmp_addflag=' -i_dynamic' ;;
5373
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5374
tmp_addflag=' -i_dynamic -nofor_main' ;;
5375
ifc* | ifort*) # Intel Fortran compiler
5376
tmp_addflag=' -nofor_main' ;;
5378
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5380
if test $supports_anon_versioning = yes; then
5381
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5382
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5383
$echo "local: *; };" >> $output_objdir/$libname.ver~
5384
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5387
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5392
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5393
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5396
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5397
_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'
5402
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5403
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5406
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5407
*** create shared libraries on Solaris systems. Therefore, libtool
5408
*** is disabling shared libraries support. We urge you to upgrade GNU
5409
*** binutils to release 2.9.1 or newer. Another option is to modify
5410
*** your PATH or compiler configuration so that the native linker is
5411
*** used, and then restart.
5414
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5415
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5416
_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'
5418
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5423
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5425
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5426
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5430
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5431
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5432
_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'
5434
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5439
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5441
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5442
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5443
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5446
# PORTME fill in a description of your system's linker (not GNU ld)
5449
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5450
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5451
_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'
5452
# Note: this linker hardcodes the directories in LIBPATH if there
5453
# are no directories specified by -L.
5454
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5455
if test "$GCC" = yes && test -z "$link_static_flag"; then
5456
# Neither direct hardcoding nor static linking is supported with a
5458
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5463
if test "$host_cpu" = ia64; then
5464
# On IA64, the linker does run time linking by default, so we don't
5465
# have to do anything special.
5466
aix_use_runtimelinking=no
5467
exp_sym_flag='-Bexport'
5470
# If we're using GNU nm, then we don't want the "-C" option.
5471
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5472
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5473
_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'
5475
_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'
5477
aix_use_runtimelinking=no
5479
# Test if we are trying to use run time linking or normal
5480
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5481
# need to do runtime linking.
5482
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5483
for ld_flag in $LDFLAGS; do
5484
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5485
aix_use_runtimelinking=yes
5491
exp_sym_flag='-bexport'
5492
no_entry_flag='-bnoentry'
5495
# When large executables or shared objects are built, AIX ld can
5496
# have problems creating the table of contents. If linking a library
5497
# or program results in "error TOC overflow" add -mminimal-toc to
5498
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5499
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5501
_LT_AC_TAGVAR(archive_cmds, $1)=''
5502
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5503
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5504
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5506
if test "$GCC" = yes; then
5507
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5508
# We only want to do this on AIX 4.2 and lower, the check
5509
# below for broken collect2 doesn't work under 4.3+
5510
collect2name=`${CC} -print-prog-name=collect2`
5511
if test -f "$collect2name" && \
5512
strings "$collect2name" | grep resolve_lib_name >/dev/null
5514
# We have reworked collect2
5515
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5517
# We have old collect2
5518
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5519
# It fails to find uninstalled libraries when the uninstalled
5520
# path is not listed in the libpath. Setting hardcode_minus_L
5521
# to unsupported forces relinking
5522
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5523
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5524
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5527
shared_flag='-shared'
5528
if test "$aix_use_runtimelinking" = yes; then
5529
shared_flag="$shared_flag "'${wl}-G'
5533
if test "$host_cpu" = ia64; then
5534
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5535
# chokes on -Wl,-G. The following line is correct:
5538
if test "$aix_use_runtimelinking" = yes; then
5539
shared_flag='${wl}-G'
5541
shared_flag='${wl}-bM:SRE'
5546
# It seems that -bexpall does not export symbols beginning with
5547
# underscore (_), so it is better to generate a list of symbols to export.
5548
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5549
if test "$aix_use_runtimelinking" = yes; then
5550
# Warning - without using the other runtime loading flags (-brtl),
5551
# -berok will link without error, but may produce a broken library.
5552
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5553
# Determine the default libpath from the value encoded in an empty executable.
5554
_LT_AC_SYS_LIBPATH_AIX
5555
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5556
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5558
if test "$host_cpu" = ia64; then
5559
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5560
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5561
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5563
# Determine the default libpath from the value encoded in an empty executable.
5564
_LT_AC_SYS_LIBPATH_AIX
5565
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5566
# Warning - without using the other run time loading flags,
5567
# -berok will link without error, but may produce a broken library.
5568
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5569
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5570
# -bexpall does not export symbols beginning with underscore (_)
5571
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5572
# Exported symbols can be pulled into shared objects from archives
5573
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5574
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5575
# This is similar to how AIX traditionally builds its shared libraries.
5576
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5582
_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)'
5583
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5584
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5585
# see comment about different semantics on the GNU ld section
5586
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5590
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5593
cygwin* | mingw* | pw32*)
5594
# When not using gcc, we currently assume that we are using
5595
# Microsoft Visual C++.
5596
# hardcode_libdir_flag_spec is actually meaningless, as there is
5597
# no search path for DLLs.
5598
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5599
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5600
# Tell ltmain to make .lib files, not .a files.
5602
# Tell ltmain to make .dll files, not .so files.
5604
# FIXME: Setting linknames here is a bad hack.
5605
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5606
# The linker will automatically build a .lib file if we build a DLL.
5607
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5608
# FIXME: Should let the user specify the lib program.
5609
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5610
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5611
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5614
darwin* | rhapsody*)
5616
rhapsody* | darwin1.[[012]])
5617
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5620
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5621
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5623
case ${MACOSX_DEPLOYMENT_TARGET} in
5625
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5628
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5634
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5635
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5636
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5637
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5638
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5639
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5640
if test "$GCC" = yes ; then
5641
output_verbose_link_cmd='echo'
5642
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5643
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5644
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5645
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5646
_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}'
5648
case $cc_basename in
5650
output_verbose_link_cmd='echo'
5651
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5652
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5653
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5654
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5655
_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}'
5658
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5665
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5666
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5667
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5671
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5674
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5675
# support. Future versions do this automatically, but an explicit c++rt0.o
5676
# does not break anything, and helps significantly (at the cost of a little
5679
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5680
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5681
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5682
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5685
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5687
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5688
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5689
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5690
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5693
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5694
freebsd* | kfreebsd*-gnu | dragonfly*)
5695
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5696
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5697
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5698
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5702
if test "$GCC" = yes; then
5703
_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'
5705
_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'
5707
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5708
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5709
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5711
# hardcode_minus_L: Not really in the search PATH,
5712
# but as the default location of the library.
5713
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5714
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5718
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5721
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5724
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5730
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5733
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5737
if test "$with_gnu_ld" = no; then
5740
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5741
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5742
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5743
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5744
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5747
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5748
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5749
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5751
# hardcode_minus_L: Not really in the search PATH,
5752
# but as the default location of the library.
5753
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5757
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5758
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5759
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761
# hardcode_minus_L: Not really in the search PATH,
5762
# but as the default location of the library.
5763
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5769
irix5* | irix6* | nonstopux*)
5770
if test "$GCC" = yes; then
5771
_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'
5773
_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'
5774
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5776
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5777
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5778
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5782
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5783
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5785
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5787
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5788
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5789
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5793
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5794
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5795
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5796
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5797
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5801
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5802
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5803
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5804
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5805
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5806
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5807
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5810
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5811
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5812
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5815
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5816
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5823
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5824
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5825
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5826
_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'
5827
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5831
if test "$GCC" = yes; then
5832
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5833
_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'
5835
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5836
_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'
5838
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5839
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5842
osf4* | osf5*) # as osf3* with the addition of -msym flag
5843
if test "$GCC" = yes; then
5844
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5845
_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'
5846
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5848
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5849
_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'
5850
_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~
5851
$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'
5853
# Both c and cxx compiler support -rpath directly
5854
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5856
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5860
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5861
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5862
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5863
runpath_var=LD_RUN_PATH
5864
hardcode_runpath_var=yes
5868
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5869
if test "$GCC" = yes; then
5871
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5872
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5873
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5876
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5877
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5878
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5880
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5881
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5883
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5885
# The compiler driver will combine linker options so we
5886
# cannot just pass the convience library names through
5887
# without $wl, iff we do not link with $LD.
5888
# Luckily, gcc supports the same syntax we need for Sun Studio.
5889
# Supported since Solaris 2.6 (maybe 2.5.1?)
5892
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5894
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5897
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5901
if test "x$host_vendor" = xsequent; then
5902
# Use $CC to link under sequent, because it throws in some extra .o
5903
# files that make .init and .fini sections work.
5904
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5906
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5908
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5909
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5910
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5911
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5915
case $host_vendor in
5917
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5918
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5921
## LD is ld it makes a PLAMLIB
5922
## CC just makes a GrossModule.
5923
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5924
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5925
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5928
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5929
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5932
runpath_var='LD_RUN_PATH'
5933
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5937
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5938
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5939
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5943
if test -d /usr/nec; then
5944
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5945
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5946
runpath_var=LD_RUN_PATH
5947
hardcode_runpath_var=yes
5948
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5953
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5954
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5955
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5956
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5957
hardcode_runpath_var=yes
5958
runpath_var=LD_RUN_PATH
5961
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5962
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5963
if test "$GCC" = yes; then
5964
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5966
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5968
runpath_var='LD_RUN_PATH'
5969
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5973
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5974
# $CC -shared without GNU ld will not create a library from C++
5975
# object files and a static libstdc++, better avoid it by now
5976
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5978
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5979
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5980
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
runpath_var='LD_RUN_PATH'
5985
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5987
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5991
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5996
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5997
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5999
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6000
if test "$GCC" = yes; then
6001
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6005
# Do we need to explicitly link libc?
6007
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6009
# Assume -lc should be added
6010
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6012
if test "$enable_shared" = yes && test "$GCC" = yes; then
6013
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6015
# FIXME: we may have to deal with multi-command sequences.
6018
# Test whether the compiler implicitly links with -lc since on some
6019
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6020
# to ld, don't add -lc before -lgcc.
6021
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6023
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6025
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6028
libobjs=conftest.$ac_objext
6030
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6036
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6037
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6038
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6040
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6042
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6044
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6046
cat conftest.err 1>&5
6049
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6055
])# AC_LIBTOOL_PROG_LD_SHLIBS
6058
# _LT_AC_FILE_LTDLL_C
6059
# -------------------
6060
# Be careful that the start marker always follows a newline.
6061
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6062
# /* ltdll.c starts here */
6063
# #define WIN32_LEAN_AND_MEAN
6064
# #include <windows.h>
6065
# #undef WIN32_LEAN_AND_MEAN
6066
# #include <stdio.h>
6068
# #ifndef __CYGWIN__
6069
# # ifdef __CYGWIN32__
6070
# # define __CYGWIN__ __CYGWIN32__
6074
# #ifdef __cplusplus
6077
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6078
# #ifdef __cplusplus
6083
# #include <cygwin/cygwin_dll.h>
6084
# DECLARE_CYGWIN_DLL( DllMain );
6086
# HINSTANCE __hDllInstance_base;
6089
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6091
# __hDllInstance_base = hInst;
6094
# /* ltdll.c ends here */
6095
])# _LT_AC_FILE_LTDLL_C
6098
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6099
# ---------------------------------
6100
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6104
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6105
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6106
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6107
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6108
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6109
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6110
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6112
# This is just to silence aclocal about the macro not being used
6113
ifelse([AC_DISABLE_FAST_INSTALL])
6115
AC_DEFUN([LT_AC_PROG_GCJ],
6116
[AC_CHECK_TOOL(GCJ, gcj, no)
6117
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6121
AC_DEFUN([LT_AC_PROG_RC],
6122
[AC_CHECK_TOOL(RC, windres, no)
6125
############################################################
6126
# NOTE: This macro has been submitted for inclusion into #
6127
# GNU Autoconf as AC_PROG_SED. When it is available in #
6128
# a released version of Autoconf we should remove this #
6129
# macro and use it instead. #
6130
############################################################
6133
# Check for a fully-functional sed program, that truncates
6134
# as few characters as possible. Prefer GNU sed if found.
6135
AC_DEFUN([LT_AC_PROG_SED],
6136
[AC_MSG_CHECKING([for a sed that does not truncate output])
6137
AC_CACHE_VAL(lt_cv_path_SED,
6138
[# Loop through the user's path and test for sed and gsed.
6139
# Then use that list of sed's as ones to test for truncation.
6140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144
test -z "$as_dir" && as_dir=.
6145
for lt_ac_prog in sed gsed; do
6146
for ac_exec_ext in '' $ac_executable_extensions; do
6147
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6148
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6155
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6156
# along with /bin/sed that truncates output.
6157
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6158
test ! -f $lt_ac_sed && continue
6159
cat /dev/null > conftest.in
6161
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6162
# Check for GNU sed and select it if it is found.
6163
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6164
lt_cv_path_SED=$lt_ac_sed
6168
cat conftest.in conftest.in >conftest.tmp
6169
mv conftest.tmp conftest.in
6170
cp conftest.in conftest.nl
6172
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6173
cmp -s conftest.out conftest.nl || break
6174
# 10000 chars as input seems more than enough
6175
test $lt_ac_count -gt 10 && break
6176
lt_ac_count=`expr $lt_ac_count + 1`
6177
if test $lt_ac_count -gt $lt_ac_max; then
6178
lt_ac_max=$lt_ac_count
6179
lt_cv_path_SED=$lt_ac_sed
6185
AC_MSG_RESULT([$SED])