summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/taglib
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-09-14 01:22:26 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-14 09:50:31 +0100
commit0d67446b35b944507f67392b2726b988e58511d9 (patch)
tree25493cbe410aae4665bd9961f570dba7678a975d /meta/recipes-support/taglib
parent97bb9c5b6776a8cf04125d9293e22d85d78ccc3b (diff)
downloadpoky-0d67446b35b944507f67392b2726b988e58511d9.tar.gz
taglib: Update to v1.8
Patches not needed anymore - they switched to cmake. LGPL license was replaced with the actual LGPL 2.1 file. License section in audioproperties.h file was modified as it includes the new address of Free Software Foundation. libtag static library is not built by default anymore and if cmake is instructed to build static library than shared library is deactivated. So actually this is a switch now. (From OE-Core rev: 312efe73dad8a9baf32578bd11a1654219d759df) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/taglib')
-rw-r--r--meta/recipes-support/taglib/taglib-1.6.3/configuretweak.patch73
-rw-r--r--meta/recipes-support/taglib/taglib-1.6.3/nolibtool.patch5916
-rw-r--r--meta/recipes-support/taglib/taglib_1.8.bb (renamed from meta/recipes-support/taglib/taglib_1.6.3.bb)17
3 files changed, 8 insertions, 5998 deletions
diff --git a/meta/recipes-support/taglib/taglib-1.6.3/configuretweak.patch b/meta/recipes-support/taglib/taglib-1.6.3/configuretweak.patch
deleted file mode 100644
index 8b81fc7429..0000000000
--- a/meta/recipes-support/taglib/taglib-1.6.3/configuretweak.patch
+++ /dev/null
@@ -1,73 +0,0 @@
1New autoconf gets upset if AC_PROC_CC and friends aren't called at
2the top level (see http://www.gnu.org/software/hello/manual/autoconf/Expanded-Before-Required.html)
3
4Fix macros accordingly fixing build failures
5
6RP 2/2/10
7
8Upstream-Status: Inappropriate [configuration]
9
10Index: taglib-1.6.1/acinclude.m4
11===================================================================
12--- taglib-1.6.1.orig/acinclude.m4 2010-02-01 23:57:16.857788731 +0000
13+++ taglib-1.6.1/acinclude.m4 2010-02-01 23:58:08.239039503 +0000
14@@ -3141,12 +3141,7 @@
15 [kde_use_profiling="no"]
16 )
17
18- dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
19- CFLAGS=" $CFLAGS"
20
21- AC_PROG_CC
22-
23- AC_PROG_CPP
24
25 if test "$GCC" = "yes"; then
26 if test "$kde_use_debug_code" != "no"; then
27@@ -3174,9 +3169,6 @@
28 LDFLAGS=""
29 fi
30
31- CXXFLAGS=" $CXXFLAGS"
32-
33- AC_PROG_CXX
34
35 KDE_CHECK_FOR_BAD_COMPILER
36
37Index: taglib-1.6.1/configure.in
38===================================================================
39--- taglib-1.6.1.orig/configure.in 2010-02-01 23:46:47.389039146 +0000
40+++ taglib-1.6.1/configure.in 2010-02-01 23:58:14.317819479 +0000
41@@ -36,6 +36,21 @@
42 dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
43 unset CDPATH
44
45+dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
46+CFLAGS=" $CFLAGS"
47+
48+AC_PROG_CC
49+
50+AC_PROG_CPP
51+
52+CXXFLAGS=" $CXXFLAGS"
53+
54+AC_PROG_CXX
55+
56+dnl checks for programs.
57+dnl first check for c/c++ compilers
58+AC_CHECK_COMPILERS
59+
60 dnl Checking host/target/build systems, for make, install etc.
61 AC_CANONICAL_SYSTEM
62 dnl Perform program name transformation
63@@ -62,9 +77,7 @@
64 AM_CONFIG_HEADER(config.h)
65 AM_CONFIG_HEADER(taglib/taglib_config.h)
66
67-dnl checks for programs.
68-dnl first check for c/c++ compilers
69-AC_CHECK_COMPILERS
70+
71
72 dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
73 dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
diff --git a/meta/recipes-support/taglib/taglib-1.6.3/nolibtool.patch b/meta/recipes-support/taglib/taglib-1.6.3/nolibtool.patch
deleted file mode 100644
index 73b0988470..0000000000
--- a/meta/recipes-support/taglib/taglib-1.6.3/nolibtool.patch
+++ /dev/null
@@ -1,5916 +0,0 @@
1Upstream-Status: Inappropriate [configuration]
2
3Index: taglib-1.6.3/acinclude.m4
4===================================================================
5--- taglib-1.6.3.orig/acinclude.m4 2012-03-23 18:27:53.641984582 +0000
6+++ taglib-1.6.3/acinclude.m4 2012-03-23 18:28:05.601985381 +0000
7@@ -5989,5894 +5989,3 @@
8 KDE_USE_PIE="-pie"
9 fi
10 ])
11-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
12-## Copyright 1996, 1997, 1998, 1999, 2000, 2001
13-## Free Software Foundation, Inc.
14-## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15-##
16-## This program is free software; you can redistribute it and/or modify
17-## it under the terms of the GNU General Public License as published by
18-## the Free Software Foundation; either version 2 of the License, or
19-## (at your option) any later version.
20-##
21-## This program is distributed in the hope that it will be useful, but
22-## WITHOUT ANY WARRANTY; without even the implied warranty of
23-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24-## General Public License for more details.
25-##
26-## You should have received a copy of the GNU General Public License
27-## along with this program; if not, write to the Free Software
28-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29-##
30-## As a special exception to the GNU General Public License, if you
31-## distribute this file as part of a program that contains a
32-## configuration script generated by Autoconf, you may include it under
33-## the same distribution terms that you use for the rest of that program.
34-
35-# serial 47 AC_PROG_LIBTOOL
36-
37-
38-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
39-# -----------------------------------------------------------
40-# If this macro is not defined by Autoconf, define it here.
41-m4_ifdef([AC_PROVIDE_IFELSE],
42- [],
43- [m4_define([AC_PROVIDE_IFELSE],
44- [m4_ifdef([AC_PROVIDE_$1],
45- [$2], [$3])])])
46-
47-
48-# AC_PROG_LIBTOOL
49-# ---------------
50-AC_DEFUN([AC_PROG_LIBTOOL],
51-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
52-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
53-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
54- AC_PROVIDE_IFELSE([AC_PROG_CXX],
55- [AC_LIBTOOL_CXX],
56- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
57- ])])
58-dnl And a similar setup for Fortran 77 support
59- AC_PROVIDE_IFELSE([AC_PROG_F77],
60- [AC_LIBTOOL_F77],
61- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
62-])])
63-
64-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
65-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
66-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
67- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
68- [AC_LIBTOOL_GCJ],
69- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
70- [AC_LIBTOOL_GCJ],
71- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
72- [AC_LIBTOOL_GCJ],
73- [ifdef([AC_PROG_GCJ],
74- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
75- ifdef([A][M_PROG_GCJ],
76- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
77- ifdef([LT_AC_PROG_GCJ],
78- [define([LT_AC_PROG_GCJ],
79- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
80-])])# AC_PROG_LIBTOOL
81-
82-
83-# _AC_PROG_LIBTOOL
84-# ----------------
85-AC_DEFUN([_AC_PROG_LIBTOOL],
86-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
87-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
88-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
89-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
90-
91-# This can be used to rebuild libtool when needed
92-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
93-
94-# Always use our own libtool.
95-LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
96-AC_SUBST(LIBTOOL)dnl
97-
98-# Prevent multiple expansion
99-define([AC_PROG_LIBTOOL], [])
100-])# _AC_PROG_LIBTOOL
101-
102-
103-# AC_LIBTOOL_SETUP
104-# ----------------
105-AC_DEFUN([AC_LIBTOOL_SETUP],
106-[AC_PREREQ(2.50)dnl
107-AC_REQUIRE([AC_ENABLE_SHARED])dnl
108-AC_REQUIRE([AC_ENABLE_STATIC])dnl
109-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
110-AC_REQUIRE([AC_CANONICAL_HOST])dnl
111-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
112-AC_REQUIRE([AC_PROG_CC])dnl
113-AC_REQUIRE([AC_PROG_LD])dnl
114-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
115-AC_REQUIRE([AC_PROG_NM])dnl
116-
117-AC_REQUIRE([AC_PROG_LN_S])dnl
118-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
119-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
120-AC_REQUIRE([AC_OBJEXT])dnl
121-AC_REQUIRE([AC_EXEEXT])dnl
122-dnl
123-
124-AC_LIBTOOL_SYS_MAX_CMD_LEN
125-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
126-AC_LIBTOOL_OBJDIR
127-
128-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
129-_LT_AC_PROG_ECHO_BACKSLASH
130-
131-case $host_os in
132-aix3*)
133- # AIX sometimes has problems with the GCC collect2 program. For some
134- # reason, if we set the COLLECT_NAMES environment variable, the problems
135- # vanish in a puff of smoke.
136- if test "X${COLLECT_NAMES+set}" != Xset; then
137- COLLECT_NAMES=
138- export COLLECT_NAMES
139- fi
140- ;;
141-esac
142-
143-# Sed substitution that helps us do robust quoting. It backslashifies
144-# metacharacters that are still active within double-quoted strings.
145-Xsed='sed -e s/^X//'
146-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
147-
148-# Same as above, but do not quote variable references.
149-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
150-
151-# Sed substitution to delay expansion of an escaped shell variable in a
152-# double_quote_subst'ed string.
153-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
154-
155-# Sed substitution to avoid accidental globbing in evaled expressions
156-no_glob_subst='s/\*/\\\*/g'
157-
158-# Constants:
159-rm="rm -f"
160-
161-# Global variables:
162-default_ofile=libtool
163-can_build_shared=yes
164-
165-# All known linkers require a `.a' archive for static linking (except M$VC,
166-# which needs '.lib').
167-libext=a
168-ltmain="$ac_aux_dir/ltmain.sh"
169-ofile="$default_ofile"
170-with_gnu_ld="$lt_cv_prog_gnu_ld"
171-
172-AC_CHECK_TOOL(AR, ar, false)
173-AC_CHECK_TOOL(RANLIB, ranlib, :)
174-AC_CHECK_TOOL(STRIP, strip, :)
175-
176-old_CC="$CC"
177-old_CFLAGS="$CFLAGS"
178-
179-# Set sane defaults for various variables
180-test -z "$AR" && AR=ar
181-test -z "$AR_FLAGS" && AR_FLAGS=cru
182-test -z "$AS" && AS=as
183-test -z "$CC" && CC=cc
184-test -z "$LTCC" && LTCC=$CC
185-test -z "$DLLTOOL" && DLLTOOL=dlltool
186-test -z "$LD" && LD=ld
187-test -z "$LN_S" && LN_S="ln -s"
188-test -z "$MAGIC_CMD" && MAGIC_CMD=file
189-test -z "$NM" && NM=nm
190-test -z "$SED" && SED=sed
191-test -z "$OBJDUMP" && OBJDUMP=objdump
192-test -z "$RANLIB" && RANLIB=:
193-test -z "$STRIP" && STRIP=:
194-test -z "$ac_objext" && ac_objext=o
195-
196-# Determine commands to create old-style static archives.
197-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
198-old_postinstall_cmds='chmod 644 $oldlib'
199-old_postuninstall_cmds=
200-
201-if test -n "$RANLIB"; then
202- case $host_os in
203- openbsd*)
204- old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
205- ;;
206- *)
207- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
208- ;;
209- esac
210- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
211-fi
212-
213-# Only perform the check for file, if the check method requires it
214-case $deplibs_check_method in
215-file_magic*)
216- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
217- AC_PATH_MAGIC
218- fi
219- ;;
220-esac
221-
222-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
223-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
224-enable_win32_dll=yes, enable_win32_dll=no)
225-
226-AC_ARG_ENABLE([libtool-lock],
227- [AC_HELP_STRING([--disable-libtool-lock],
228- [avoid locking (might break parallel builds)])])
229-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
230-
231-AC_ARG_WITH([pic],
232- [AC_HELP_STRING([--with-pic],
233- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
234- [pic_mode="$withval"],
235- [pic_mode=default])
236-test -z "$pic_mode" && pic_mode=default
237-
238-# Use C for the default configuration in the libtool script
239-tagname=
240-AC_LIBTOOL_LANG_C_CONFIG
241-_LT_AC_TAGCONFIG
242-])# AC_LIBTOOL_SETUP
243-
244-
245-# _LT_AC_SYS_COMPILER
246-# -------------------
247-AC_DEFUN([_LT_AC_SYS_COMPILER],
248-[AC_REQUIRE([AC_PROG_CC])dnl
249-
250-# If no C compiler was specified, use CC.
251-LTCC=${LTCC-"$CC"}
252-
253-# Allow CC to be a program name with arguments.
254-compiler=$CC
255-])# _LT_AC_SYS_COMPILER
256-
257-
258-# _LT_AC_SYS_LIBPATH_AIX
259-# ----------------------
260-# Links a minimal program and checks the executable
261-# for the system default hardcoded library path. In most cases,
262-# this is /usr/lib:/lib, but when the MPI compilers are used
263-# the location of the communication and MPI libs are included too.
264-# If we don't find anything, use the default library path according
265-# to the aix ld manual.
266-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
267-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
268-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
269-}'`
270-# Check for a 64-bit object if we didn't find anything.
271-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; }
272-}'`; fi],[])
273-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
274-])# _LT_AC_SYS_LIBPATH_AIX
275-
276-
277-# _LT_AC_SHELL_INIT(ARG)
278-# ----------------------
279-AC_DEFUN([_LT_AC_SHELL_INIT],
280-[ifdef([AC_DIVERSION_NOTICE],
281- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
282- [AC_DIVERT_PUSH(NOTICE)])
283-$1
284-AC_DIVERT_POP
285-])# _LT_AC_SHELL_INIT
286-
287-
288-# _LT_AC_PROG_ECHO_BACKSLASH
289-# --------------------------
290-# Add some code to the start of the generated configure script which
291-# will find an echo command which doesn't interpret backslashes.
292-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
293-[_LT_AC_SHELL_INIT([
294-# Check that we are running under the correct shell.
295-SHELL=${CONFIG_SHELL-/bin/sh}
296-
297-case X$ECHO in
298-X*--fallback-echo)
299- # Remove one level of quotation (which was required for Make).
300- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
301- ;;
302-esac
303-
304-echo=${ECHO-echo}
305-if test "X[$]1" = X--no-reexec; then
306- # Discard the --no-reexec flag, and continue.
307- shift
308-elif test "X[$]1" = X--fallback-echo; then
309- # Avoid inline document here, it may be left over
310- :
311-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
312- # Yippee, $echo works!
313- :
314-else
315- # Restart under the correct shell.
316- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
317-fi
318-
319-if test "X[$]1" = X--fallback-echo; then
320- # used as fallback echo
321- shift
322- cat <<EOF
323-[$]*
324-EOF
325- exit 0
326-fi
327-
328-# The HP-UX ksh and POSIX shell print the target directory to stdout
329-# if CDPATH is set.
330-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
331-
332-if test -z "$ECHO"; then
333-if test "X${echo_test_string+set}" != Xset; then
334-# find a string as large as possible, as long as the shell can cope with it
335- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
336- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
337- if (echo_test_string="`eval $cmd`") 2>/dev/null &&
338- echo_test_string="`eval $cmd`" &&
339- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
340- then
341- break
342- fi
343- done
344-fi
345-
346-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
347- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
348- test "X$echo_testing_string" = "X$echo_test_string"; then
349- :
350-else
351- # The Solaris, AIX, and Digital Unix default echo programs unquote
352- # backslashes. This makes it impossible to quote backslashes using
353- # echo "$something" | sed 's/\\/\\\\/g'
354- #
355- # So, first we look for a working echo in the user's PATH.
356-
357- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
358- for dir in $PATH /usr/ucb; do
359- IFS="$lt_save_ifs"
360- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
361- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
362- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
363- test "X$echo_testing_string" = "X$echo_test_string"; then
364- echo="$dir/echo"
365- break
366- fi
367- done
368- IFS="$lt_save_ifs"
369-
370- if test "X$echo" = Xecho; then
371- # We didn't find a better echo, so look for alternatives.
372- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
373- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
374- test "X$echo_testing_string" = "X$echo_test_string"; then
375- # This shell has a builtin print -r that does the trick.
376- echo='print -r'
377- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
378- test "X$CONFIG_SHELL" != X/bin/ksh; then
379- # If we have ksh, try running configure again with it.
380- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
381- export ORIGINAL_CONFIG_SHELL
382- CONFIG_SHELL=/bin/ksh
383- export CONFIG_SHELL
384- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
385- else
386- # Try using printf.
387- echo='printf %s\n'
388- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
389- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
390- test "X$echo_testing_string" = "X$echo_test_string"; then
391- # Cool, printf works
392- :
393- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
394- test "X$echo_testing_string" = 'X\t' &&
395- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
396- test "X$echo_testing_string" = "X$echo_test_string"; then
397- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
398- export CONFIG_SHELL
399- SHELL="$CONFIG_SHELL"
400- export SHELL
401- echo="$CONFIG_SHELL [$]0 --fallback-echo"
402- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
403- test "X$echo_testing_string" = 'X\t' &&
404- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
405- test "X$echo_testing_string" = "X$echo_test_string"; then
406- echo="$CONFIG_SHELL [$]0 --fallback-echo"
407- else
408- # maybe with a smaller string...
409- prev=:
410-
411- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
412- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
413- then
414- break
415- fi
416- prev="$cmd"
417- done
418-
419- if test "$prev" != 'sed 50q "[$]0"'; then
420- echo_test_string=`eval $prev`
421- export echo_test_string
422- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
423- else
424- # Oops. We lost completely, so just stick with echo.
425- echo=echo
426- fi
427- fi
428- fi
429- fi
430-fi
431-fi
432-
433-# Copy echo and quote the copy suitably for passing to libtool from
434-# the Makefile, instead of quoting the original, which is used later.
435-ECHO=$echo
436-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
437- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
438-fi
439-
440-AC_SUBST(ECHO)
441-])])# _LT_AC_PROG_ECHO_BACKSLASH
442-
443-
444-# _LT_AC_LOCK
445-# -----------
446-AC_DEFUN([_LT_AC_LOCK],
447-[AC_ARG_ENABLE([libtool-lock],
448- [AC_HELP_STRING([--disable-libtool-lock],
449- [avoid locking (might break parallel builds)])])
450-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
451-
452-# Some flags need to be propagated to the compiler or linker for good
453-# libtool support.
454-case $host in
455-ia64-*-hpux*)
456- # Find out which ABI we are using.
457- echo 'int i;' > conftest.$ac_ext
458- if AC_TRY_EVAL(ac_compile); then
459- case `/usr/bin/file conftest.$ac_objext` in
460- *ELF-32*)
461- HPUX_IA64_MODE="32"
462- ;;
463- *ELF-64*)
464- HPUX_IA64_MODE="64"
465- ;;
466- esac
467- fi
468- rm -rf conftest*
469- ;;
470-*-*-irix6*)
471- # Find out which ABI we are using.
472- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
473- if AC_TRY_EVAL(ac_compile); then
474- if test "$lt_cv_prog_gnu_ld" = yes; then
475- case `/usr/bin/file conftest.$ac_objext` in
476- *32-bit*)
477- LD="${LD-ld} -melf32bsmip"
478- ;;
479- *N32*)
480- LD="${LD-ld} -melf32bmipn32"
481- ;;
482- *64-bit*)
483- LD="${LD-ld} -melf64bmip"
484- ;;
485- esac
486- else
487- case `/usr/bin/file conftest.$ac_objext` in
488- *32-bit*)
489- LD="${LD-ld} -32"
490- ;;
491- *N32*)
492- LD="${LD-ld} -n32"
493- ;;
494- *64-bit*)
495- LD="${LD-ld} -64"
496- ;;
497- esac
498- fi
499- fi
500- rm -rf conftest*
501- ;;
502-
503-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
504- # Find out which ABI we are using.
505- echo 'int i;' > conftest.$ac_ext
506- if AC_TRY_EVAL(ac_compile); then
507- case "`/usr/bin/file conftest.o`" in
508- *32-bit*)
509- LINUX_64_MODE="32"
510- case $host in
511- x86_64-*linux*)
512- LD="${LD-ld} -m elf_i386"
513- ;;
514- ppc64-*linux*)
515- LD="${LD-ld} -m elf32ppclinux"
516- ;;
517- s390x-*linux*)
518- LD="${LD-ld} -m elf_s390"
519- ;;
520- sparc64-*linux*)
521- LD="${LD-ld} -m elf32_sparc"
522- ;;
523- esac
524- ;;
525- *64-bit*)
526- LINUX_64_MODE="64"
527- case $host in
528- x86_64-*linux*)
529- LD="${LD-ld} -m elf_x86_64"
530- ;;
531- ppc*-*linux*|powerpc*-*linux*)
532- LD="${LD-ld} -m elf64ppc"
533- ;;
534- s390*-*linux*)
535- LD="${LD-ld} -m elf64_s390"
536- ;;
537- sparc*-*linux*)
538- LD="${LD-ld} -m elf64_sparc"
539- ;;
540- esac
541- ;;
542- esac
543- fi
544- rm -rf conftest*
545- ;;
546-
547-*-*-sco3.2v5*)
548- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
549- SAVE_CFLAGS="$CFLAGS"
550- CFLAGS="$CFLAGS -belf"
551- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
552- [AC_LANG_PUSH(C)
553- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
554- AC_LANG_POP])
555- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
556- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
557- CFLAGS="$SAVE_CFLAGS"
558- fi
559- ;;
560-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
561-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
562- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
563- AC_CHECK_TOOL(AS, as, false)
564- AC_CHECK_TOOL(OBJDUMP, objdump, false)
565- ;;
566- ])
567-esac
568-
569-need_locks="$enable_libtool_lock"
570-
571-])# _LT_AC_LOCK
572-
573-
574-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
575-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
576-# ----------------------------------------------------------------
577-# Check whether the given compiler option works
578-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
579-[AC_REQUIRE([LT_AC_PROG_SED])
580-AC_CACHE_CHECK([$1], [$2],
581- [$2=no
582- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
583- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
584- lt_compiler_flag="$3"
585- # Insert the option either (1) after the last *FLAGS variable, or
586- # (2) before a word containing "conftest.", or (3) at the end.
587- # Note that $ac_compile itself does not contain backslashes and begins
588- # with a dollar sign (not a hyphen), so the echo should work correctly.
589- # The option is referenced via a variable to avoid confusing sed.
590- lt_compile=`echo "$ac_compile" | $SED \
591- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
592- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
593- -e 's:$: $lt_compiler_flag:'`
594- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
595- (eval "$lt_compile" 2>conftest.err)
596- ac_status=$?
597- cat conftest.err >&AS_MESSAGE_LOG_FD
598- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
599- if (exit $ac_status) && test -s "$ac_outfile"; then
600- # The compiler can only warn and ignore the option if not recognized
601- # So say no if there are warnings
602- if test ! -s conftest.err; then
603- $2=yes
604- fi
605- fi
606- $rm conftest*
607-])
608-
609-if test x"[$]$2" = xyes; then
610- ifelse([$5], , :, [$5])
611-else
612- ifelse([$6], , :, [$6])
613-fi
614-])# AC_LIBTOOL_COMPILER_OPTION
615-
616-
617-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
618-# [ACTION-SUCCESS], [ACTION-FAILURE])
619-# ------------------------------------------------------------
620-# Check whether the given compiler option works
621-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
622-[AC_CACHE_CHECK([$1], [$2],
623- [$2=no
624- save_LDFLAGS="$LDFLAGS"
625- LDFLAGS="$LDFLAGS $3"
626- printf "$lt_simple_link_test_code" > conftest.$ac_ext
627- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
628- # The compiler can only warn and ignore the option if not recognized
629- # So say no if there are warnings
630- if test -s conftest.err; then
631- # Append any errors to the config.log.
632- cat conftest.err 1>&AS_MESSAGE_LOG_FD
633- else
634- $2=yes
635- fi
636- fi
637- $rm conftest*
638- LDFLAGS="$save_LDFLAGS"
639-])
640-
641-if test x"[$]$2" = xyes; then
642- ifelse([$4], , :, [$4])
643-else
644- ifelse([$5], , :, [$5])
645-fi
646-])# AC_LIBTOOL_LINKER_OPTION
647-
648-
649-# AC_LIBTOOL_SYS_MAX_CMD_LEN
650-# --------------------------
651-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
652-[# find the maximum length of command line arguments
653-AC_MSG_CHECKING([the maximum length of command line arguments])
654-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
655- i=0
656- testring="ABCD"
657-
658- case $build_os in
659- msdosdjgpp*)
660- # On DJGPP, this test can blow up pretty badly due to problems in libc
661- # (any single argument exceeding 2000 bytes causes a buffer overrun
662- # during glob expansion). Even if it were fixed, the result of this
663- # check would be larger than it should be.
664- lt_cv_sys_max_cmd_len=12288; # 12K is about right
665- ;;
666-
667- gnu*)
668- # Under GNU Hurd, this test is not required because there is
669- # no limit to the length of command line arguments.
670- # Libtool will interpret -1 as no limit whatsoever
671- lt_cv_sys_max_cmd_len=-1;
672- ;;
673-
674- cygwin* | mingw*)
675- # On Win9x/ME, this test blows up -- it succeeds, but takes
676- # about 5 minutes as the teststring grows exponentially.
677- # Worse, since 9x/ME are not pre-emptively multitasking,
678- # you end up with a "frozen" computer, even though with patience
679- # the test eventually succeeds (with a max line length of 256k).
680- # Instead, let's just punt: use the minimum linelength reported by
681- # all of the supported platforms: 8192 (on NT/2K/XP).
682- lt_cv_sys_max_cmd_len=8192;
683- ;;
684-
685- *)
686- # If test is not a shell built-in, we'll probably end up computing a
687- # maximum length that is only half of the actual maximum length, but
688- # we can't tell.
689- while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
690- = "XX$testring") >/dev/null 2>&1 &&
691- new_result=`expr "X$testring" : ".*" 2>&1` &&
692- lt_cv_sys_max_cmd_len=$new_result &&
693- test $i != 17 # 1/2 MB should be enough
694- do
695- i=`expr $i + 1`
696- testring=$testring$testring
697- done
698- testring=
699- # Add a significant safety factor because C++ compilers can tack on massive
700- # amounts of additional arguments before passing them to the linker.
701- # It appears as though 1/2 is a usable value.
702- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
703- ;;
704- esac
705-])
706-if test -n $lt_cv_sys_max_cmd_len ; then
707- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
708-else
709- AC_MSG_RESULT(none)
710-fi
711-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
712-
713-
714-# _LT_AC_CHECK_DLFCN
715-# --------------------
716-AC_DEFUN([_LT_AC_CHECK_DLFCN],
717-[AC_CHECK_HEADERS(dlfcn.h)dnl
718-])# _LT_AC_CHECK_DLFCN
719-
720-
721-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
722-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
723-# ------------------------------------------------------------------
724-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
725-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
726-if test "$cross_compiling" = yes; then :
727- [$4]
728-else
729- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
730- lt_status=$lt_dlunknown
731- cat > conftest.$ac_ext <<EOF
732-[#line __oline__ "configure"
733-#include "confdefs.h"
734-
735-#if HAVE_DLFCN_H
736-#include <dlfcn.h>
737-#endif
738-
739-#include <stdio.h>
740-
741-#ifdef RTLD_GLOBAL
742-# define LT_DLGLOBAL RTLD_GLOBAL
743-#else
744-# ifdef DL_GLOBAL
745-# define LT_DLGLOBAL DL_GLOBAL
746-# else
747-# define LT_DLGLOBAL 0
748-# endif
749-#endif
750-
751-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
752- find out it does not work in some platform. */
753-#ifndef LT_DLLAZY_OR_NOW
754-# ifdef RTLD_LAZY
755-# define LT_DLLAZY_OR_NOW RTLD_LAZY
756-# else
757-# ifdef DL_LAZY
758-# define LT_DLLAZY_OR_NOW DL_LAZY
759-# else
760-# ifdef RTLD_NOW
761-# define LT_DLLAZY_OR_NOW RTLD_NOW
762-# else
763-# ifdef DL_NOW
764-# define LT_DLLAZY_OR_NOW DL_NOW
765-# else
766-# define LT_DLLAZY_OR_NOW 0
767-# endif
768-# endif
769-# endif
770-# endif
771-#endif
772-
773-#ifdef __cplusplus
774-extern "C" void exit (int);
775-#endif
776-
777-void fnord() { int i=42;}
778-int main ()
779-{
780- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
781- int status = $lt_dlunknown;
782-
783- if (self)
784- {
785- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
786- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
787- /* dlclose (self); */
788- }
789-
790- exit (status);
791-}]
792-EOF
793- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
794- (./conftest; exit; ) 2>/dev/null
795- lt_status=$?
796- case x$lt_status in
797- x$lt_dlno_uscore) $1 ;;
798- x$lt_dlneed_uscore) $2 ;;
799- x$lt_unknown|x*) $3 ;;
800- esac
801- else :
802- # compilation failed
803- $3
804- fi
805-fi
806-rm -fr conftest*
807-])# _LT_AC_TRY_DLOPEN_SELF
808-
809-
810-# AC_LIBTOOL_DLOPEN_SELF
811-# -------------------
812-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
813-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
814-if test "x$enable_dlopen" != xyes; then
815- enable_dlopen=unknown
816- enable_dlopen_self=unknown
817- enable_dlopen_self_static=unknown
818-else
819- lt_cv_dlopen=no
820- lt_cv_dlopen_libs=
821-
822- case $host_os in
823- beos*)
824- lt_cv_dlopen="load_add_on"
825- lt_cv_dlopen_libs=
826- lt_cv_dlopen_self=yes
827- ;;
828-
829- mingw* | pw32*)
830- lt_cv_dlopen="LoadLibrary"
831- lt_cv_dlopen_libs=
832- ;;
833-
834- cygwin*)
835- lt_cv_dlopen="dlopen"
836- lt_cv_dlopen_libs=
837- ;;
838-
839- darwin*)
840- # if libdl is installed we need to link against it
841- AC_CHECK_LIB([dl], [dlopen],
842- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
843- lt_cv_dlopen="dyld"
844- lt_cv_dlopen_libs=
845- lt_cv_dlopen_self=yes
846- ])
847- ;;
848-
849- *)
850- AC_CHECK_FUNC([shl_load],
851- [lt_cv_dlopen="shl_load"],
852- [AC_CHECK_LIB([dld], [shl_load],
853- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
854- [AC_CHECK_FUNC([dlopen],
855- [lt_cv_dlopen="dlopen"],
856- [AC_CHECK_LIB([dl], [dlopen],
857- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
858- [AC_CHECK_LIB([svld], [dlopen],
859- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
860- [AC_CHECK_LIB([dld], [dld_link],
861- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
862- ])
863- ])
864- ])
865- ])
866- ])
867- ;;
868- esac
869-
870- if test "x$lt_cv_dlopen" != xno; then
871- enable_dlopen=yes
872- else
873- enable_dlopen=no
874- fi
875-
876- case $lt_cv_dlopen in
877- dlopen)
878- save_CPPFLAGS="$CPPFLAGS"
879- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
880-
881- save_LDFLAGS="$LDFLAGS"
882- eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
883-
884- save_LIBS="$LIBS"
885- LIBS="$lt_cv_dlopen_libs $LIBS"
886-
887- AC_CACHE_CHECK([whether a program can dlopen itself],
888- lt_cv_dlopen_self, [dnl
889- _LT_AC_TRY_DLOPEN_SELF(
890- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
891- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
892- ])
893-
894- if test "x$lt_cv_dlopen_self" = xyes; then
895- LDFLAGS="$LDFLAGS $link_static_flag"
896- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
897- lt_cv_dlopen_self_static, [dnl
898- _LT_AC_TRY_DLOPEN_SELF(
899- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
900- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
901- ])
902- fi
903-
904- CPPFLAGS="$save_CPPFLAGS"
905- LDFLAGS="$save_LDFLAGS"
906- LIBS="$save_LIBS"
907- ;;
908- esac
909-
910- case $lt_cv_dlopen_self in
911- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
912- *) enable_dlopen_self=unknown ;;
913- esac
914-
915- case $lt_cv_dlopen_self_static in
916- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
917- *) enable_dlopen_self_static=unknown ;;
918- esac
919-fi
920-])# AC_LIBTOOL_DLOPEN_SELF
921-
922-
923-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
924-# ---------------------------------
925-# Check to see if options -c and -o are simultaneously supported by compiler
926-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
927-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
928-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
929- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
930- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
931- $rm -r conftest 2>/dev/null
932- mkdir conftest
933- cd conftest
934- mkdir out
935- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
936-
937- # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
938- # that will create temporary files in the current directory regardless of
939- # the output directory. Thus, making CWD read-only will cause this test
940- # to fail, enabling locking or at least warning the user not to do parallel
941- # builds.
942- chmod -w .
943-
944- lt_compiler_flag="-o out/conftest2.$ac_objext"
945- # Insert the option either (1) after the last *FLAGS variable, or
946- # (2) before a word containing "conftest.", or (3) at the end.
947- # Note that $ac_compile itself does not contain backslashes and begins
948- # with a dollar sign (not a hyphen), so the echo should work correctly.
949- lt_compile=`echo "$ac_compile" | $SED \
950- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
951- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
952- -e 's:$: $lt_compiler_flag:'`
953- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
954- (eval "$lt_compile" 2>out/conftest.err)
955- ac_status=$?
956- cat out/conftest.err >&AS_MESSAGE_LOG_FD
957- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
958- if (exit $ac_status) && test -s out/conftest2.$ac_objext
959- then
960- # The compiler can only warn and ignore the option if not recognized
961- # So say no if there are warnings
962- if test ! -s out/conftest.err; then
963- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
964- fi
965- fi
966- chmod u+w .
967- $rm conftest* out/*
968- rmdir out
969- cd ..
970- rmdir conftest
971- $rm conftest*
972-])
973-])# AC_LIBTOOL_PROG_CC_C_O
974-
975-
976-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
977-# -----------------------------------------
978-# Check to see if we can do hard links to lock some files if needed
979-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
980-[AC_REQUIRE([_LT_AC_LOCK])dnl
981-
982-hard_links="nottested"
983-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
984- # do not overwrite the value of need_locks provided by the user
985- AC_MSG_CHECKING([if we can lock with hard links])
986- hard_links=yes
987- $rm conftest*
988- ln conftest.a conftest.b 2>/dev/null && hard_links=no
989- touch conftest.a
990- ln conftest.a conftest.b 2>&5 || hard_links=no
991- ln conftest.a conftest.b 2>/dev/null && hard_links=no
992- AC_MSG_RESULT([$hard_links])
993- if test "$hard_links" = no; then
994- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
995- need_locks=warn
996- fi
997-else
998- need_locks=no
999-fi
1000-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1001-
1002-
1003-# AC_LIBTOOL_OBJDIR
1004-# -----------------
1005-AC_DEFUN([AC_LIBTOOL_OBJDIR],
1006-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1007-[rm -f .libs 2>/dev/null
1008-mkdir .libs 2>/dev/null
1009-if test -d .libs; then
1010- lt_cv_objdir=.libs
1011-else
1012- # MS-DOS does not allow filenames that begin with a dot.
1013- lt_cv_objdir=_libs
1014-fi
1015-rmdir .libs 2>/dev/null])
1016-objdir=$lt_cv_objdir
1017-])# AC_LIBTOOL_OBJDIR
1018-
1019-
1020-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1021-# ----------------------------------------------
1022-# Check hardcoding attributes.
1023-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1024-[AC_MSG_CHECKING([how to hardcode library paths into programs])
1025-_LT_AC_TAGVAR(hardcode_action, $1)=
1026-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1027- test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1028- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1029-
1030- # We can hardcode non-existant directories.
1031- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1032- # If the only mechanism to avoid hardcoding is shlibpath_var, we
1033- # have to relink, otherwise we might link with an installed library
1034- # when we should be linking with a yet-to-be-installed one
1035- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1036- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1037- # Linking always hardcodes the temporary library directory.
1038- _LT_AC_TAGVAR(hardcode_action, $1)=relink
1039- else
1040- # We can link without hardcoding, and we can hardcode nonexisting dirs.
1041- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1042- fi
1043-else
1044- # We cannot hardcode anything, or else we can only hardcode existing
1045- # directories.
1046- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1047-fi
1048-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1049-
1050-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1051- # Fast installation is not supported
1052- enable_fast_install=no
1053-elif test "$shlibpath_overrides_runpath" = yes ||
1054- test "$enable_shared" = no; then
1055- # Fast installation is not necessary
1056- enable_fast_install=needless
1057-fi
1058-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1059-
1060-
1061-# AC_LIBTOOL_SYS_LIB_STRIP
1062-# ------------------------
1063-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1064-[striplib=
1065-old_striplib=
1066-AC_MSG_CHECKING([whether stripping libraries is possible])
1067-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1068- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1069- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1070- AC_MSG_RESULT([yes])
1071-else
1072-# FIXME - insert some real tests, host_os isn't really good enough
1073- case $host_os in
1074- darwin*)
1075- if test -n "$STRIP" ; then
1076- striplib="$STRIP -x"
1077- AC_MSG_RESULT([yes])
1078- else
1079- AC_MSG_RESULT([no])
1080-fi
1081- ;;
1082- *)
1083- AC_MSG_RESULT([no])
1084- ;;
1085- esac
1086-fi
1087-])# AC_LIBTOOL_SYS_LIB_STRIP
1088-
1089-
1090-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1091-# -----------------------------
1092-# PORTME Fill in your ld.so characteristics
1093-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1094-[AC_MSG_CHECKING([dynamic linker characteristics])
1095-library_names_spec=
1096-libname_spec='lib$name'
1097-soname_spec=
1098-shrext=".so"
1099-postinstall_cmds=
1100-postuninstall_cmds=
1101-finish_cmds=
1102-finish_eval=
1103-shlibpath_var=
1104-shlibpath_overrides_runpath=unknown
1105-version_type=none
1106-dynamic_linker="$host_os ld.so"
1107-sys_lib_dlsearch_path_spec="/lib /usr/lib"
1108-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1109-need_lib_prefix=unknown
1110-hardcode_into_libs=no
1111-
1112-# when you set need_version to no, make sure it does not cause -set_version
1113-# flags to be left without arguments
1114-need_version=unknown
1115-
1116-case $host_os in
1117-aix3*)
1118- version_type=linux
1119- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1120- shlibpath_var=LIBPATH
1121-
1122- # AIX 3 has no versioning support, so we append a major version to the name.
1123- soname_spec='${libname}${release}${shared_ext}$major'
1124- ;;
1125-
1126-aix4* | aix5*)
1127- version_type=linux
1128- need_lib_prefix=no
1129- need_version=no
1130- hardcode_into_libs=yes
1131- if test "$host_cpu" = ia64; then
1132- # AIX 5 supports IA64
1133- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1134- shlibpath_var=LD_LIBRARY_PATH
1135- else
1136- # With GCC up to 2.95.x, collect2 would create an import file
1137- # for dependence libraries. The import file would start with
1138- # the line `#! .'. This would cause the generated library to
1139- # depend on `.', always an invalid library. This was fixed in
1140- # development snapshots of GCC prior to 3.0.
1141- case $host_os in
1142- aix4 | aix4.[[01]] | aix4.[[01]].*)
1143- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1144- echo ' yes '
1145- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1146- :
1147- else
1148- can_build_shared=no
1149- fi
1150- ;;
1151- esac
1152- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1153- # soname into executable. Probably we can add versioning support to
1154- # collect2, so additional links can be useful in future.
1155- if test "$aix_use_runtimelinking" = yes; then
1156- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1157- # instead of lib<name>.a to let people know that these are not
1158- # typical AIX shared libraries.
1159- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1160- else
1161- # We preserve .a as extension for shared libraries through AIX4.2
1162- # and later when we are not doing run time linking.
1163- library_names_spec='${libname}${release}.a $libname.a'
1164- soname_spec='${libname}${release}${shared_ext}$major'
1165- fi
1166- shlibpath_var=LIBPATH
1167- fi
1168- ;;
1169-
1170-amigaos*)
1171- library_names_spec='$libname.ixlibrary $libname.a'
1172- # Create ${libname}_ixlibrary.a entries in /sys/libs.
1173- 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'
1174- ;;
1175-
1176-beos*)
1177- library_names_spec='${libname}${shared_ext}'
1178- dynamic_linker="$host_os ld.so"
1179- shlibpath_var=LIBRARY_PATH
1180- ;;
1181-
1182-bsdi4*)
1183- version_type=linux
1184- need_version=no
1185- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1186- soname_spec='${libname}${release}${shared_ext}$major'
1187- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1188- shlibpath_var=LD_LIBRARY_PATH
1189- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1190- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1191- # the default ld.so.conf also contains /usr/contrib/lib and
1192- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1193- # libtool to hard-code these into programs
1194- ;;
1195-
1196-cygwin* | mingw* | pw32*)
1197- version_type=windows
1198- shrext=".dll"
1199- need_version=no
1200- need_lib_prefix=no
1201-
1202- case $GCC,$host_os in
1203- yes,cygwin* | yes,mingw* | yes,pw32*)
1204- library_names_spec='$libname.dll.a'
1205- # DLL is installed to $(libdir)/../bin by postinstall_cmds
1206- postinstall_cmds='base_file=`basename \${file}`~
1207- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1208- dldir=$destdir/`dirname \$dlpath`~
1209- test -d \$dldir || mkdir -p \$dldir~
1210- $install_prog $dir/$dlname \$dldir/$dlname'
1211- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1212- dlpath=$dir/\$dldll~
1213- $rm \$dlpath'
1214- shlibpath_overrides_runpath=yes
1215-
1216- case $host_os in
1217- cygwin*)
1218- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1219- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1220- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1221- ;;
1222- mingw*)
1223- # MinGW DLLs use traditional 'lib' prefix
1224- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1225- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1226- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1227- # It is most probably a Windows format PATH printed by
1228- # mingw gcc, but we are running on Cygwin. Gcc prints its search
1229- # path with ; separators, and with drive letters. We can handle the
1230- # drive letters (cygwin fileutils understands them), so leave them,
1231- # especially as we might pass files found there to a mingw objdump,
1232- # which wouldn't understand a cygwinified path. Ahh.
1233- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1234- else
1235- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1236- fi
1237- ;;
1238- pw32*)
1239- # pw32 DLLs use 'pw' prefix rather than 'lib'
1240- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1241- ;;
1242- esac
1243- ;;
1244-
1245- *)
1246- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1247- ;;
1248- esac
1249- dynamic_linker='Win32 ld.exe'
1250- # FIXME: first we should search . and the directory the executable is in
1251- shlibpath_var=PATH
1252- ;;
1253-
1254-darwin* | rhapsody*)
1255- dynamic_linker="$host_os dyld"
1256- version_type=darwin
1257- need_lib_prefix=no
1258- need_version=no
1259- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1260- soname_spec='${libname}${release}${major}$shared_ext'
1261- shlibpath_overrides_runpath=yes
1262- shlibpath_var=DYLD_LIBRARY_PATH
1263- shrext='$(test .$module = .yes && echo .so || echo .dylib)'
1264- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1265- if test "$GCC" = yes; then
1266- 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"`
1267- else
1268- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1269- fi
1270- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1271- ;;
1272-
1273-dgux*)
1274- version_type=linux
1275- need_lib_prefix=no
1276- need_version=no
1277- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1278- soname_spec='${libname}${release}${shared_ext}$major'
1279- shlibpath_var=LD_LIBRARY_PATH
1280- ;;
1281-
1282-freebsd1*)
1283- dynamic_linker=no
1284- ;;
1285-
1286-kfreebsd*-gnu*)
1287- version_type=linux
1288- need_lib_prefix=no
1289- need_version=no
1290- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1291- soname_spec='${libname}${release}${shared_ext}$major'
1292- shlibpath_var=LD_LIBRARY_PATH
1293- shlibpath_overrides_runpath=no
1294- hardcode_into_libs=yes
1295- dynamic_linker='GNU ld.so'
1296- ;;
1297-
1298-freebsd*)
1299- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1300- version_type=freebsd-$objformat
1301- case $version_type in
1302- freebsd-elf*)
1303- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1304- need_version=no
1305- need_lib_prefix=no
1306- ;;
1307- freebsd-*)
1308- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1309- need_version=yes
1310- ;;
1311- esac
1312- shlibpath_var=LD_LIBRARY_PATH
1313- case $host_os in
1314- freebsd2*)
1315- shlibpath_overrides_runpath=yes
1316- ;;
1317- freebsd3.[01]* | freebsdelf3.[01]*)
1318- shlibpath_overrides_runpath=yes
1319- hardcode_into_libs=yes
1320- ;;
1321- *) # from 3.2 on
1322- shlibpath_overrides_runpath=no
1323- hardcode_into_libs=yes
1324- ;;
1325- esac
1326- ;;
1327-
1328-gnu*)
1329- version_type=linux
1330- need_lib_prefix=no
1331- need_version=no
1332- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1333- soname_spec='${libname}${release}${shared_ext}$major'
1334- shlibpath_var=LD_LIBRARY_PATH
1335- hardcode_into_libs=yes
1336- ;;
1337-
1338-hpux9* | hpux10* | hpux11*)
1339- # Give a soname corresponding to the major version so that dld.sl refuses to
1340- # link against other versions.
1341- version_type=sunos
1342- need_lib_prefix=no
1343- need_version=no
1344- case "$host_cpu" in
1345- ia64*)
1346- shrext='.so'
1347- hardcode_into_libs=yes
1348- dynamic_linker="$host_os dld.so"
1349- shlibpath_var=LD_LIBRARY_PATH
1350- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1351- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1352- soname_spec='${libname}${release}${shared_ext}$major'
1353- if test "X$HPUX_IA64_MODE" = X32; then
1354- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1355- else
1356- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1357- fi
1358- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1359- ;;
1360- hppa*64*)
1361- shrext='.sl'
1362- hardcode_into_libs=yes
1363- dynamic_linker="$host_os dld.sl"
1364- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1365- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1366- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1367- soname_spec='${libname}${release}${shared_ext}$major'
1368- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1369- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1370- ;;
1371- *)
1372- shrext='.sl'
1373- dynamic_linker="$host_os dld.sl"
1374- shlibpath_var=SHLIB_PATH
1375- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1376- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1377- soname_spec='${libname}${release}${shared_ext}$major'
1378- ;;
1379- esac
1380- # HP-UX runs *really* slowly unless shared libraries are mode 555.
1381- postinstall_cmds='chmod 555 $lib'
1382- ;;
1383-
1384-irix5* | irix6* | nonstopux*)
1385- case $host_os in
1386- nonstopux*) version_type=nonstopux ;;
1387- *)
1388- if test "$lt_cv_prog_gnu_ld" = yes; then
1389- version_type=linux
1390- else
1391- version_type=irix
1392- fi ;;
1393- esac
1394- need_lib_prefix=no
1395- need_version=no
1396- soname_spec='${libname}${release}${shared_ext}$major'
1397- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1398- case $host_os in
1399- irix5* | nonstopux*)
1400- libsuff= shlibsuff=
1401- ;;
1402- *)
1403- case $LD in # libtool.m4 will add one of these switches to LD
1404- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1405- libsuff= shlibsuff= libmagic=32-bit;;
1406- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1407- libsuff=32 shlibsuff=N32 libmagic=N32;;
1408- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1409- libsuff=64 shlibsuff=64 libmagic=64-bit;;
1410- *) libsuff= shlibsuff= libmagic=never-match;;
1411- esac
1412- ;;
1413- esac
1414- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1415- shlibpath_overrides_runpath=no
1416- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1417- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1418- hardcode_into_libs=yes
1419- ;;
1420-
1421-# No shared lib support for Linux oldld, aout, or coff.
1422-linux*oldld* | linux*aout* | linux*coff*)
1423- dynamic_linker=no
1424- ;;
1425-
1426-# This must be Linux ELF.
1427-linux*)
1428- version_type=linux
1429- need_lib_prefix=no
1430- need_version=no
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- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1434- libsuff=
1435- if test "x$LINUX_64_MODE" = x64; then
1436- # Some platforms are per default 64-bit, so there's no /lib64
1437- if test -d /lib64 -a ! -h /lib64; then
1438- libsuff=64
1439- fi
1440- fi
1441- shlibpath_var=LD_LIBRARY_PATH
1442- shlibpath_overrides_runpath=no
1443- sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
1444- sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1445- # This implies no fast_install, which is unacceptable.
1446- # Some rework will be needed to allow for fast_install
1447- # before this can be enabled.
1448- hardcode_into_libs=yes
1449-
1450- # We used to test for /lib/ld.so.1 and disable shared libraries on
1451- # powerpc, because MkLinux only supported shared libraries with the
1452- # GNU dynamic linker. Since this was broken with cross compilers,
1453- # most powerpc-linux boxes support dynamic linking these days and
1454- # people can always --disable-shared, the test was removed, and we
1455- # assume the GNU/Linux dynamic linker is in use.
1456- dynamic_linker='GNU/Linux ld.so'
1457- ;;
1458-
1459-netbsd*)
1460- version_type=sunos
1461- need_lib_prefix=no
1462- need_version=no
1463- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1464- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1465- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1466- dynamic_linker='NetBSD (a.out) ld.so'
1467- else
1468- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
1469- soname_spec='${libname}${release}${shared_ext}$major'
1470- dynamic_linker='NetBSD ld.elf_so'
1471- fi
1472- shlibpath_var=LD_LIBRARY_PATH
1473- shlibpath_overrides_runpath=yes
1474- hardcode_into_libs=yes
1475- ;;
1476-
1477-newsos6)
1478- version_type=linux
1479- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1480- shlibpath_var=LD_LIBRARY_PATH
1481- shlibpath_overrides_runpath=yes
1482- ;;
1483-
1484-nto-qnx*)
1485- version_type=linux
1486- need_lib_prefix=no
1487- need_version=no
1488- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1489- soname_spec='${libname}${release}${shared_ext}$major'
1490- shlibpath_var=LD_LIBRARY_PATH
1491- shlibpath_overrides_runpath=yes
1492- ;;
1493-
1494-openbsd*)
1495- version_type=sunos
1496- need_lib_prefix=no
1497- need_version=no
1498- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1499- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1500- shlibpath_var=LD_LIBRARY_PATH
1501- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1502- case $host_os in
1503- openbsd2.[[89]] | openbsd2.[[89]].*)
1504- shlibpath_overrides_runpath=no
1505- ;;
1506- *)
1507- shlibpath_overrides_runpath=yes
1508- ;;
1509- esac
1510- else
1511- shlibpath_overrides_runpath=yes
1512- fi
1513- ;;
1514-
1515-os2*)
1516- libname_spec='$name'
1517- shrext=".dll"
1518- need_lib_prefix=no
1519- library_names_spec='$libname${shared_ext} $libname.a'
1520- dynamic_linker='OS/2 ld.exe'
1521- shlibpath_var=LIBPATH
1522- ;;
1523-
1524-osf3* | osf4* | osf5*)
1525- version_type=osf
1526- need_lib_prefix=no
1527- need_version=no
1528- soname_spec='${libname}${release}${shared_ext}$major'
1529- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1530- shlibpath_var=LD_LIBRARY_PATH
1531- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1532- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1533- ;;
1534-
1535-sco3.2v5*)
1536- version_type=osf
1537- soname_spec='${libname}${release}${shared_ext}$major'
1538- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1539- shlibpath_var=LD_LIBRARY_PATH
1540- ;;
1541-
1542-solaris*)
1543- version_type=linux
1544- need_lib_prefix=no
1545- need_version=no
1546- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1547- soname_spec='${libname}${release}${shared_ext}$major'
1548- shlibpath_var=LD_LIBRARY_PATH
1549- shlibpath_overrides_runpath=yes
1550- hardcode_into_libs=yes
1551- # ldd complains unless libraries are executable
1552- postinstall_cmds='chmod +x $lib'
1553- ;;
1554-
1555-sunos4*)
1556- version_type=sunos
1557- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1558- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1559- shlibpath_var=LD_LIBRARY_PATH
1560- shlibpath_overrides_runpath=yes
1561- if test "$with_gnu_ld" = yes; then
1562- need_lib_prefix=no
1563- fi
1564- need_version=yes
1565- ;;
1566-
1567-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1568- version_type=linux
1569- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1570- soname_spec='${libname}${release}${shared_ext}$major'
1571- shlibpath_var=LD_LIBRARY_PATH
1572- case $host_vendor in
1573- sni)
1574- shlibpath_overrides_runpath=no
1575- need_lib_prefix=no
1576- export_dynamic_flag_spec='${wl}-Blargedynsym'
1577- runpath_var=LD_RUN_PATH
1578- ;;
1579- siemens)
1580- need_lib_prefix=no
1581- ;;
1582- motorola)
1583- need_lib_prefix=no
1584- need_version=no
1585- shlibpath_overrides_runpath=no
1586- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1587- ;;
1588- esac
1589- ;;
1590-
1591-sysv4*MP*)
1592- if test -d /usr/nec ;then
1593- version_type=linux
1594- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1595- soname_spec='$libname${shared_ext}.$major'
1596- shlibpath_var=LD_LIBRARY_PATH
1597- fi
1598- ;;
1599-
1600-uts4*)
1601- version_type=linux
1602- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1603- soname_spec='${libname}${release}${shared_ext}$major'
1604- shlibpath_var=LD_LIBRARY_PATH
1605- ;;
1606-
1607-*)
1608- dynamic_linker=no
1609- ;;
1610-esac
1611-AC_MSG_RESULT([$dynamic_linker])
1612-test "$dynamic_linker" = no && can_build_shared=no
1613-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1614-
1615-
1616-# _LT_AC_TAGCONFIG
1617-# ----------------
1618-AC_DEFUN([_LT_AC_TAGCONFIG],
1619-[AC_ARG_WITH([tags],
1620- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1621- [include additional configurations @<:@automatic@:>@])],
1622- [tagnames="$withval"])
1623-
1624-if test -f "$ltmain" && test -n "$tagnames"; then
1625- if test ! -f "${ofile}"; then
1626- AC_MSG_WARN([output file `$ofile' does not exist])
1627- fi
1628-
1629- if test -z "$LTCC"; then
1630- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1631- if test -z "$LTCC"; then
1632- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1633- else
1634- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1635- fi
1636- fi
1637-
1638- # Extract list of available tagged configurations in $ofile.
1639- # Note that this assumes the entire list is on one line.
1640- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1641-
1642- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1643- for tagname in $tagnames; do
1644- IFS="$lt_save_ifs"
1645- # Check whether tagname contains only valid characters
1646- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1647- "") ;;
1648- *) AC_MSG_ERROR([invalid tag name: $tagname])
1649- ;;
1650- esac
1651-
1652- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1653- then
1654- AC_MSG_ERROR([tag name \"$tagname\" already exists])
1655- fi
1656-
1657- # Update the list of available tags.
1658- if test -n "$tagname"; then
1659- echo appending configuration tag \"$tagname\" to $ofile
1660-
1661- case $tagname in
1662- CXX)
1663- if test -n "$CXX" && test "X$CXX" != "Xno"; then
1664- AC_LIBTOOL_LANG_CXX_CONFIG
1665- else
1666- tagname=""
1667- fi
1668- ;;
1669-
1670- F77)
1671- if test -n "$F77" && test "X$F77" != "Xno"; then
1672- AC_LIBTOOL_LANG_F77_CONFIG
1673- else
1674- tagname=""
1675- fi
1676- ;;
1677-
1678- GCJ)
1679- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1680- AC_LIBTOOL_LANG_GCJ_CONFIG
1681- else
1682- tagname=""
1683- fi
1684- ;;
1685-
1686- RC)
1687- AC_LIBTOOL_LANG_RC_CONFIG
1688- ;;
1689-
1690- *)
1691- AC_MSG_ERROR([Unsupported tag name: $tagname])
1692- ;;
1693- esac
1694-
1695- # Append the new tag name to the list of available tags.
1696- if test -n "$tagname" ; then
1697- available_tags="$available_tags $tagname"
1698- fi
1699- fi
1700- done
1701- IFS="$lt_save_ifs"
1702-
1703- # Now substitute the updated list of available tags.
1704- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1705- mv "${ofile}T" "$ofile"
1706- chmod +x "$ofile"
1707- else
1708- rm -f "${ofile}T"
1709- AC_MSG_ERROR([unable to update list of available tagged configurations.])
1710- fi
1711-fi
1712-])# _LT_AC_TAGCONFIG
1713-
1714-
1715-# AC_LIBTOOL_DLOPEN
1716-# -----------------
1717-# enable checks for dlopen support
1718-AC_DEFUN([AC_LIBTOOL_DLOPEN],
1719- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1720-])# AC_LIBTOOL_DLOPEN
1721-
1722-
1723-# AC_LIBTOOL_WIN32_DLL
1724-# --------------------
1725-# declare package support for building win32 dll's
1726-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1727-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1728-])# AC_LIBTOOL_WIN32_DLL
1729-
1730-
1731-# AC_ENABLE_SHARED([DEFAULT])
1732-# ---------------------------
1733-# implement the --enable-shared flag
1734-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1735-AC_DEFUN([AC_ENABLE_SHARED],
1736-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1737-AC_ARG_ENABLE([shared],
1738- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1739- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1740- [p=${PACKAGE-default}
1741- case $enableval in
1742- yes) enable_shared=yes ;;
1743- no) enable_shared=no ;;
1744- *)
1745- enable_shared=no
1746- # Look at the argument we got. We use all the common list separators.
1747- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1748- for pkg in $enableval; do
1749- IFS="$lt_save_ifs"
1750- if test "X$pkg" = "X$p"; then
1751- enable_shared=yes
1752- fi
1753- done
1754- IFS="$lt_save_ifs"
1755- ;;
1756- esac],
1757- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1758-])# AC_ENABLE_SHARED
1759-
1760-
1761-# AC_DISABLE_SHARED
1762-# -----------------
1763-#- set the default shared flag to --disable-shared
1764-AC_DEFUN([AC_DISABLE_SHARED],
1765-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1766-AC_ENABLE_SHARED(no)
1767-])# AC_DISABLE_SHARED
1768-
1769-
1770-# AC_ENABLE_STATIC([DEFAULT])
1771-# ---------------------------
1772-# implement the --enable-static flag
1773-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1774-AC_DEFUN([AC_ENABLE_STATIC],
1775-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1776-AC_ARG_ENABLE([static],
1777- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1778- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1779- [p=${PACKAGE-default}
1780- case $enableval in
1781- yes) enable_static=yes ;;
1782- no) enable_static=no ;;
1783- *)
1784- enable_static=no
1785- # Look at the argument we got. We use all the common list separators.
1786- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1787- for pkg in $enableval; do
1788- IFS="$lt_save_ifs"
1789- if test "X$pkg" = "X$p"; then
1790- enable_static=yes
1791- fi
1792- done
1793- IFS="$lt_save_ifs"
1794- ;;
1795- esac],
1796- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1797-])# AC_ENABLE_STATIC
1798-
1799-
1800-# AC_DISABLE_STATIC
1801-# -----------------
1802-# set the default static flag to --disable-static
1803-AC_DEFUN([AC_DISABLE_STATIC],
1804-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1805-AC_ENABLE_STATIC(no)
1806-])# AC_DISABLE_STATIC
1807-
1808-
1809-# AC_ENABLE_FAST_INSTALL([DEFAULT])
1810-# ---------------------------------
1811-# implement the --enable-fast-install flag
1812-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1813-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1814-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1815-AC_ARG_ENABLE([fast-install],
1816- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1817- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1818- [p=${PACKAGE-default}
1819- case $enableval in
1820- yes) enable_fast_install=yes ;;
1821- no) enable_fast_install=no ;;
1822- *)
1823- enable_fast_install=no
1824- # Look at the argument we got. We use all the common list separators.
1825- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1826- for pkg in $enableval; do
1827- IFS="$lt_save_ifs"
1828- if test "X$pkg" = "X$p"; then
1829- enable_fast_install=yes
1830- fi
1831- done
1832- IFS="$lt_save_ifs"
1833- ;;
1834- esac],
1835- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1836-])# AC_ENABLE_FAST_INSTALL
1837-
1838-
1839-# AC_DISABLE_FAST_INSTALL
1840-# -----------------------
1841-# set the default to --disable-fast-install
1842-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1843-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1844-AC_ENABLE_FAST_INSTALL(no)
1845-])# AC_DISABLE_FAST_INSTALL
1846-
1847-
1848-# AC_LIBTOOL_PICMODE([MODE])
1849-# --------------------------
1850-# implement the --with-pic flag
1851-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1852-AC_DEFUN([AC_LIBTOOL_PICMODE],
1853-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1854-pic_mode=ifelse($#,1,$1,default)
1855-])# AC_LIBTOOL_PICMODE
1856-
1857-
1858-# AC_PROG_EGREP
1859-# -------------
1860-# This is predefined starting with Autoconf 2.54, so this conditional
1861-# definition can be removed once we require Autoconf 2.54 or later.
1862-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1863-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1864- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1865- then ac_cv_prog_egrep='grep -E'
1866- else ac_cv_prog_egrep='egrep'
1867- fi])
1868- EGREP=$ac_cv_prog_egrep
1869- AC_SUBST([EGREP])
1870-])])
1871-
1872-
1873-# AC_PATH_TOOL_PREFIX
1874-# -------------------
1875-# find a file program which can recognise shared library
1876-AC_DEFUN([AC_PATH_TOOL_PREFIX],
1877-[AC_REQUIRE([AC_PROG_EGREP])dnl
1878-AC_MSG_CHECKING([for $1])
1879-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1880-[case $MAGIC_CMD in
1881-[[\\/*] | ?:[\\/]*])
1882- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1883- ;;
1884-*)
1885- lt_save_MAGIC_CMD="$MAGIC_CMD"
1886- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1887-dnl $ac_dummy forces splitting on constant user-supplied paths.
1888-dnl POSIX.2 word splitting is done only on the output of word expansions,
1889-dnl not every word. This closes a longstanding sh security hole.
1890- ac_dummy="ifelse([$2], , $PATH, [$2])"
1891- for ac_dir in $ac_dummy; do
1892- IFS="$lt_save_ifs"
1893- test -z "$ac_dir" && ac_dir=.
1894- if test -f $ac_dir/$1; then
1895- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
1896- if test -n "$file_magic_test_file"; then
1897- case $deplibs_check_method in
1898- "file_magic "*)
1899- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1900- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1901- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1902- $EGREP "$file_magic_regex" > /dev/null; then
1903- :
1904- else
1905- cat <<EOF 1>&2
1906-
1907-*** Warning: the command libtool uses to detect shared libraries,
1908-*** $file_magic_cmd, produces output that libtool cannot recognize.
1909-*** The result is that libtool may fail to recognize shared libraries
1910-*** as such. This will affect the creation of libtool libraries that
1911-*** depend on shared libraries, but programs linked with such libtool
1912-*** libraries will work regardless of this problem. Nevertheless, you
1913-*** may want to report the problem to your system manager and/or to
1914-*** bug-libtool@gnu.org
1915-
1916-EOF
1917- fi ;;
1918- esac
1919- fi
1920- break
1921- fi
1922- done
1923- IFS="$lt_save_ifs"
1924- MAGIC_CMD="$lt_save_MAGIC_CMD"
1925- ;;
1926-esac])
1927-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1928-if test -n "$MAGIC_CMD"; then
1929- AC_MSG_RESULT($MAGIC_CMD)
1930-else
1931- AC_MSG_RESULT(no)
1932-fi
1933-])# AC_PATH_TOOL_PREFIX
1934-
1935-
1936-# AC_PATH_MAGIC
1937-# -------------
1938-# find a file program which can recognise a shared library
1939-AC_DEFUN([AC_PATH_MAGIC],
1940-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1941-if test -z "$lt_cv_path_MAGIC_CMD"; then
1942- if test -n "$ac_tool_prefix"; then
1943- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1944- else
1945- MAGIC_CMD=:
1946- fi
1947-fi
1948-])# AC_PATH_MAGIC
1949-
1950-
1951-# AC_PROG_LD
1952-# ----------
1953-# find the pathname to the GNU or non-GNU linker
1954-AC_DEFUN([AC_PROG_LD],
1955-[AC_ARG_WITH([gnu-ld],
1956- [AC_HELP_STRING([--with-gnu-ld],
1957- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
1958- [test "$withval" = no || with_gnu_ld=yes],
1959- [with_gnu_ld=no])
1960-AC_REQUIRE([LT_AC_PROG_SED])dnl
1961-AC_REQUIRE([AC_PROG_CC])dnl
1962-AC_REQUIRE([AC_CANONICAL_HOST])dnl
1963-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1964-ac_prog=ld
1965-if test "$GCC" = yes; then
1966- # Check if gcc -print-prog-name=ld gives a path.
1967- AC_MSG_CHECKING([for ld used by $CC])
1968- case $host in
1969- *-*-mingw*)
1970- # gcc leaves a trailing carriage return which upsets mingw
1971- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1972- *)
1973- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1974- esac
1975- case $ac_prog in
1976- # Accept absolute paths.
1977- [[\\/]]* | ?:[[\\/]]*)
1978- re_direlt='/[[^/]][[^/]]*/\.\./'
1979- # Canonicalize the pathname of ld
1980- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1981- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1982- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1983- done
1984- test -z "$LD" && LD="$ac_prog"
1985- ;;
1986- "")
1987- # If it fails, then pretend we aren't using GCC.
1988- ac_prog=ld
1989- ;;
1990- *)
1991- # If it is relative, then search for the first ld in PATH.
1992- with_gnu_ld=unknown
1993- ;;
1994- esac
1995-elif test "$with_gnu_ld" = yes; then
1996- AC_MSG_CHECKING([for GNU ld])
1997-else
1998- AC_MSG_CHECKING([for non-GNU ld])
1999-fi
2000-AC_CACHE_VAL(lt_cv_path_LD,
2001-[if test -z "$LD"; then
2002- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2003- for ac_dir in $PATH; do
2004- IFS="$lt_save_ifs"
2005- test -z "$ac_dir" && ac_dir=.
2006- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2007- lt_cv_path_LD="$ac_dir/$ac_prog"
2008- # Check to see if the program is GNU ld. I'd rather use --version,
2009- # but apparently some GNU ld's only accept -v.
2010- # Break only if it was the GNU/non-GNU ld that we prefer.
2011- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2012- *GNU* | *'with BFD'*)
2013- test "$with_gnu_ld" != no && break
2014- ;;
2015- *)
2016- test "$with_gnu_ld" != yes && break
2017- ;;
2018- esac
2019- fi
2020- done
2021- IFS="$lt_save_ifs"
2022-else
2023- lt_cv_path_LD="$LD" # Let the user override the test with a path.
2024-fi])
2025-LD="$lt_cv_path_LD"
2026-if test -n "$LD"; then
2027- AC_MSG_RESULT($LD)
2028-else
2029- AC_MSG_RESULT(no)
2030-fi
2031-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2032-AC_PROG_LD_GNU
2033-])# AC_PROG_LD
2034-
2035-
2036-# AC_PROG_LD_GNU
2037-# --------------
2038-AC_DEFUN([AC_PROG_LD_GNU],
2039-[AC_REQUIRE([AC_PROG_EGREP])dnl
2040-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2041-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2042-case `$LD -v 2>&1 </dev/null` in
2043-*GNU* | *'with BFD'*)
2044- lt_cv_prog_gnu_ld=yes
2045- ;;
2046-*)
2047- lt_cv_prog_gnu_ld=no
2048- ;;
2049-esac])
2050-with_gnu_ld=$lt_cv_prog_gnu_ld
2051-])# AC_PROG_LD_GNU
2052-
2053-
2054-# AC_PROG_LD_RELOAD_FLAG
2055-# ----------------------
2056-# find reload flag for linker
2057-# -- PORTME Some linkers may need a different reload flag.
2058-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2059-[AC_CACHE_CHECK([for $LD option to reload object files],
2060- lt_cv_ld_reload_flag,
2061- [lt_cv_ld_reload_flag='-r'])
2062-reload_flag=$lt_cv_ld_reload_flag
2063-case $reload_flag in
2064-"" | " "*) ;;
2065-*) reload_flag=" $reload_flag" ;;
2066-esac
2067-reload_cmds='$LD$reload_flag -o $output$reload_objs'
2068-])# AC_PROG_LD_RELOAD_FLAG
2069-
2070-
2071-# AC_DEPLIBS_CHECK_METHOD
2072-# -----------------------
2073-# how to check for library dependencies
2074-# -- PORTME fill in with the dynamic library characteristics
2075-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2076-[AC_CACHE_CHECK([how to recognise dependent libraries],
2077-lt_cv_deplibs_check_method,
2078-[lt_cv_file_magic_cmd='$MAGIC_CMD'
2079-lt_cv_file_magic_test_file=
2080-lt_cv_deplibs_check_method='unknown'
2081-# Need to set the preceding variable on all platforms that support
2082-# interlibrary dependencies.
2083-# 'none' -- dependencies not supported.
2084-# `unknown' -- same as none, but documents that we really don't know.
2085-# 'pass_all' -- all dependencies passed with no checks.
2086-# 'test_compile' -- check by making test program.
2087-# 'file_magic [[regex]]' -- check by looking for files in library path
2088-# which responds to the $file_magic_cmd with a given extended regex.
2089-# If you have `file' or equivalent on your system and you're not sure
2090-# whether `pass_all' will *always* work, you probably want this one.
2091-
2092-case $host_os in
2093-aix4* | aix5*)
2094- lt_cv_deplibs_check_method=pass_all
2095- ;;
2096-
2097-beos*)
2098- lt_cv_deplibs_check_method=pass_all
2099- ;;
2100-
2101-bsdi4*)
2102- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2103- lt_cv_file_magic_cmd='/usr/bin/file -L'
2104- lt_cv_file_magic_test_file=/shlib/libc.so
2105- ;;
2106-
2107-cygwin*)
2108- lt_cv_deplibs_check_method=pass_all
2109- ;;
2110-
2111-mingw* | pw32*)
2112- # win32_libid is a shell function defined in ltmain.sh
2113- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2114- lt_cv_file_magic_cmd='win32_libid'
2115- ;;
2116-
2117-darwin* | rhapsody*)
2118- # this will be overwritten by pass_all, but leave it in just in case
2119- lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2120- lt_cv_file_magic_cmd='/usr/bin/file -L'
2121- case "$host_os" in
2122- rhapsody* | darwin1.[[012]])
2123- lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2124- ;;
2125- *) # Darwin 1.3 on
2126- lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2127- ;;
2128- esac
2129- lt_cv_deplibs_check_method=pass_all
2130- ;;
2131-
2132-freebsd* | kfreebsd*-gnu)
2133- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2134- case $host_cpu in
2135- i*86 )
2136- # Not sure whether the presence of OpenBSD here was a mistake.
2137- # Let's accept both of them until this is cleared up.
2138- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2139- lt_cv_file_magic_cmd=/usr/bin/file
2140- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2141- ;;
2142- esac
2143- else
2144- lt_cv_deplibs_check_method=pass_all
2145- fi
2146- ;;
2147-
2148-gnu*)
2149- lt_cv_deplibs_check_method=pass_all
2150- ;;
2151-
2152-hpux10.20* | hpux11*)
2153- lt_cv_file_magic_cmd=/usr/bin/file
2154- case "$host_cpu" in
2155- ia64*)
2156- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2157- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2158- ;;
2159- hppa*64*)
2160- [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]']
2161- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2162- ;;
2163- *)
2164- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2165- lt_cv_file_magic_test_file=/usr/lib/libc.sl
2166- ;;
2167- esac
2168- ;;
2169-
2170-irix5* | irix6* | nonstopux*)
2171- case $host_os in
2172- irix5* | nonstopux*)
2173- # this will be overridden with pass_all, but let us keep it just in case
2174- lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2175- ;;
2176- *)
2177- case $LD in
2178- *-32|*"-32 ") libmagic=32-bit;;
2179- *-n32|*"-n32 ") libmagic=N32;;
2180- *-64|*"-64 ") libmagic=64-bit;;
2181- *) libmagic=never-match;;
2182- esac
2183- # this will be overridden with pass_all, but let us keep it just in case
2184- lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
2185- ;;
2186- esac
2187- lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2188- lt_cv_deplibs_check_method=pass_all
2189- ;;
2190-
2191-# This must be Linux ELF.
2192-linux*)
2193- case $host_cpu in
2194- alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
2195- lt_cv_deplibs_check_method=pass_all ;;
2196- # the debian people say, arm and glibc 2.3.1 works for them with pass_all
2197- arm* )
2198- lt_cv_deplibs_check_method=pass_all ;;
2199- *)
2200- # glibc up to 2.1.1 does not perform some relocations on ARM
2201- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
2202- esac
2203- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2204- ;;
2205-
2206-netbsd*)
2207- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2208- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2209- else
2210- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2211- fi
2212- ;;
2213-
2214-newos6*)
2215- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2216- lt_cv_file_magic_cmd=/usr/bin/file
2217- lt_cv_file_magic_test_file=/usr/lib/libnls.so
2218- ;;
2219-
2220-nto-qnx*)
2221- lt_cv_deplibs_check_method=unknown
2222- ;;
2223-
2224-openbsd*)
2225- lt_cv_file_magic_cmd=/usr/bin/file
2226- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2227- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2228- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
2229- else
2230- lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2231- fi
2232- ;;
2233-
2234-osf3* | osf4* | osf5*)
2235- # this will be overridden with pass_all, but let us keep it just in case
2236- lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2237- lt_cv_file_magic_test_file=/shlib/libc.so
2238- lt_cv_deplibs_check_method=pass_all
2239- ;;
2240-
2241-sco3.2v5*)
2242- lt_cv_deplibs_check_method=pass_all
2243- ;;
2244-
2245-solaris*)
2246- lt_cv_deplibs_check_method=pass_all
2247- lt_cv_file_magic_test_file=/lib/libc.so
2248- ;;
2249-
2250-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2251- case $host_vendor in
2252- motorola)
2253- 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]]'
2254- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2255- ;;
2256- ncr)
2257- lt_cv_deplibs_check_method=pass_all
2258- ;;
2259- sequent)
2260- lt_cv_file_magic_cmd='/bin/file'
2261- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2262- ;;
2263- sni)
2264- lt_cv_file_magic_cmd='/bin/file'
2265- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2266- lt_cv_file_magic_test_file=/lib/libc.so
2267- ;;
2268- siemens)
2269- lt_cv_deplibs_check_method=pass_all
2270- ;;
2271- esac
2272- ;;
2273-
2274-sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2275- lt_cv_deplibs_check_method=pass_all
2276- ;;
2277-esac
2278-])
2279-file_magic_cmd=$lt_cv_file_magic_cmd
2280-deplibs_check_method=$lt_cv_deplibs_check_method
2281-test -z "$deplibs_check_method" && deplibs_check_method=unknown
2282-])# AC_DEPLIBS_CHECK_METHOD
2283-
2284-
2285-# AC_PROG_NM
2286-# ----------
2287-# find the pathname to a BSD-compatible name lister
2288-AC_DEFUN([AC_PROG_NM],
2289-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2290-[if test -n "$NM"; then
2291- # Let the user override the test.
2292- lt_cv_path_NM="$NM"
2293-else
2294- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2295- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2296- IFS="$lt_save_ifs"
2297- test -z "$ac_dir" && ac_dir=.
2298- tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2299- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2300- # Check to see if the nm accepts a BSD-compat flag.
2301- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2302- # nm: unknown option "B" ignored
2303- # Tru64's nm complains that /dev/null is an invalid object file
2304- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2305- */dev/null* | *'Invalid file or object type'*)
2306- lt_cv_path_NM="$tmp_nm -B"
2307- break
2308- ;;
2309- *)
2310- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2311- */dev/null*)
2312- lt_cv_path_NM="$tmp_nm -p"
2313- break
2314- ;;
2315- *)
2316- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2317- continue # so that we can try to find one that supports BSD flags
2318- ;;
2319- esac
2320- esac
2321- fi
2322- done
2323- IFS="$lt_save_ifs"
2324- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2325-fi])
2326-NM="$lt_cv_path_NM"
2327-])# AC_PROG_NM
2328-
2329-
2330-# AC_CHECK_LIBM
2331-# -------------
2332-# check for math library
2333-AC_DEFUN([AC_CHECK_LIBM],
2334-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2335-LIBM=
2336-case $host in
2337-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2338- # These system don't have libm, or don't need it
2339- ;;
2340-*-ncr-sysv4.3*)
2341- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2342- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2343- ;;
2344-*)
2345- AC_CHECK_LIB(m, cos, LIBM="-lm")
2346- ;;
2347-esac
2348-])# AC_CHECK_LIBM
2349-
2350-
2351-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2352-# -----------------------------------
2353-# sets LIBLTDL to the link flags for the libltdl convenience library and
2354-# LTDLINCL to the include flags for the libltdl header and adds
2355-# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2356-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2357-# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2358-# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2359-# '${top_srcdir}/' (note the single quotes!). If your package is not
2360-# flat and you're not using automake, define top_builddir and
2361-# top_srcdir appropriately in the Makefiles.
2362-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2363-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2364- case $enable_ltdl_convenience in
2365- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2366- "") enable_ltdl_convenience=yes
2367- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2368- esac
2369- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2370- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2371- # For backwards non-gettext consistent compatibility...
2372- INCLTDL="$LTDLINCL"
2373-])# AC_LIBLTDL_CONVENIENCE
2374-
2375-
2376-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2377-# -----------------------------------
2378-# sets LIBLTDL to the link flags for the libltdl installable library and
2379-# LTDLINCL to the include flags for the libltdl header and adds
2380-# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2381-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2382-# DIRECTORY is not provided and an installed libltdl is not found, it is
2383-# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2384-# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2385-# quotes!). If your package is not flat and you're not using automake,
2386-# define top_builddir and top_srcdir appropriately in the Makefiles.
2387-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2388-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2389-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2390- AC_CHECK_LIB(ltdl, lt_dlinit,
2391- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2392- [if test x"$enable_ltdl_install" = xno; then
2393- AC_MSG_WARN([libltdl not installed, but installation disabled])
2394- else
2395- enable_ltdl_install=yes
2396- fi
2397- ])
2398- if test x"$enable_ltdl_install" = x"yes"; then
2399- ac_configure_args="$ac_configure_args --enable-ltdl-install"
2400- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2401- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2402- else
2403- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2404- LIBLTDL="-lltdl"
2405- LTDLINCL=
2406- fi
2407- # For backwards non-gettext consistent compatibility...
2408- INCLTDL="$LTDLINCL"
2409-])# AC_LIBLTDL_INSTALLABLE
2410-
2411-
2412-# AC_LIBTOOL_CXX
2413-# --------------
2414-# enable support for C++ libraries
2415-AC_DEFUN([AC_LIBTOOL_CXX],
2416-[AC_REQUIRE([_LT_AC_LANG_CXX])
2417-])# AC_LIBTOOL_CXX
2418-
2419-
2420-# _LT_AC_LANG_CXX
2421-# ---------------
2422-AC_DEFUN([_LT_AC_LANG_CXX],
2423-[AC_REQUIRE([AC_PROG_CXX])
2424-AC_REQUIRE([AC_PROG_CXXCPP])
2425-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2426-])# _LT_AC_LANG_CXX
2427-
2428-
2429-# AC_LIBTOOL_F77
2430-# --------------
2431-# enable support for Fortran 77 libraries
2432-AC_DEFUN([AC_LIBTOOL_F77],
2433-[AC_REQUIRE([_LT_AC_LANG_F77])
2434-])# AC_LIBTOOL_F77
2435-
2436-
2437-# _LT_AC_LANG_F77
2438-# ---------------
2439-AC_DEFUN([_LT_AC_LANG_F77],
2440-[AC_REQUIRE([AC_PROG_F77])
2441-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2442-])# _LT_AC_LANG_F77
2443-
2444-
2445-# AC_LIBTOOL_GCJ
2446-# --------------
2447-# enable support for GCJ libraries
2448-AC_DEFUN([AC_LIBTOOL_GCJ],
2449-[AC_REQUIRE([_LT_AC_LANG_GCJ])
2450-])# AC_LIBTOOL_GCJ
2451-
2452-
2453-# _LT_AC_LANG_GCJ
2454-# ---------------
2455-AC_DEFUN([_LT_AC_LANG_GCJ],
2456-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2457- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2458- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2459- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2460- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2461- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2462-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2463-])# _LT_AC_LANG_GCJ
2464-
2465-
2466-# AC_LIBTOOL_RC
2467-# --------------
2468-# enable support for Windows resource files
2469-AC_DEFUN([AC_LIBTOOL_RC],
2470-[AC_REQUIRE([LT_AC_PROG_RC])
2471-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2472-])# AC_LIBTOOL_RC
2473-
2474-
2475-# AC_LIBTOOL_LANG_C_CONFIG
2476-# ------------------------
2477-# Ensure that the configuration vars for the C compiler are
2478-# suitably defined. Those variables are subsequently used by
2479-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2480-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2481-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2482-[lt_save_CC="$CC"
2483-AC_LANG_PUSH(C)
2484-
2485-# Source file extension for C test sources.
2486-ac_ext=c
2487-
2488-# Object file extension for compiled C test sources.
2489-objext=o
2490-_LT_AC_TAGVAR(objext, $1)=$objext
2491-
2492-# Code to be used in simple compile tests
2493-lt_simple_compile_test_code="int some_variable = 0;\n"
2494-
2495-# Code to be used in simple link tests
2496-lt_simple_link_test_code='int main(){return(0);}\n'
2497-
2498-_LT_AC_SYS_COMPILER
2499-
2500-#
2501-# Check for any special shared library compilation flags.
2502-#
2503-_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2504-if test "$GCC" = no; then
2505- case $host_os in
2506- sco3.2v5*)
2507- _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2508- ;;
2509- esac
2510-fi
2511-if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2512- AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2513- if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :
2514- else
2515- AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2516- _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2517- fi
2518-fi
2519-
2520-
2521-#
2522-# Check to make sure the static flag actually works.
2523-#
2524-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2525- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2526- $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2527- [],
2528- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2529-
2530-
2531-## CAVEAT EMPTOR:
2532-## There is no encapsulation within the following macros, do not change
2533-## the running order or otherwise move them around unless you know exactly
2534-## what you are doing...
2535-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2536-AC_LIBTOOL_PROG_COMPILER_PIC($1)
2537-AC_LIBTOOL_PROG_CC_C_O($1)
2538-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2539-AC_LIBTOOL_PROG_LD_SHLIBS($1)
2540-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2541-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2542-AC_LIBTOOL_SYS_LIB_STRIP
2543-AC_LIBTOOL_DLOPEN_SELF($1)
2544-
2545-# Report which librarie types wil actually be built
2546-AC_MSG_CHECKING([if libtool supports shared libraries])
2547-AC_MSG_RESULT([$can_build_shared])
2548-
2549-AC_MSG_CHECKING([whether to build shared libraries])
2550-test "$can_build_shared" = "no" && enable_shared=no
2551-
2552-# On AIX, shared libraries and static libraries use the same namespace, and
2553-# are all built from PIC.
2554-case "$host_os" in
2555-aix3*)
2556- test "$enable_shared" = yes && enable_static=no
2557- if test -n "$RANLIB"; then
2558- archive_cmds="$archive_cmds~\$RANLIB \$lib"
2559- postinstall_cmds='$RANLIB $lib'
2560- fi
2561- ;;
2562-
2563-aix4*)
2564- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2565- test "$enable_shared" = yes && enable_static=no
2566- fi
2567- ;;
2568- darwin* | rhapsody*)
2569- if test "$GCC" = yes; then
2570- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2571- case "$host_os" in
2572- rhapsody* | darwin1.[[012]])
2573- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
2574- ;;
2575- *) # Darwin 1.3 on
2576- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2577- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
2578- else
2579- case ${MACOSX_DEPLOYMENT_TARGET} in
2580- 10.[012])
2581- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
2582- ;;
2583- 10.*)
2584- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
2585- ;;
2586- esac
2587- fi
2588- ;;
2589- esac
2590- output_verbose_link_cmd='echo'
2591- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
2592- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
2593- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2594- _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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2595- _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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2596- _LT_AC_TAGVAR(hardcode_direct, $1)=no
2597- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2598- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2599- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2600- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2601- else
2602- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2603- fi
2604- ;;
2605-esac
2606-AC_MSG_RESULT([$enable_shared])
2607-
2608-AC_MSG_CHECKING([whether to build static libraries])
2609-# Make sure either enable_shared or enable_static is yes.
2610-test "$enable_shared" = yes || enable_static=yes
2611-AC_MSG_RESULT([$enable_static])
2612-
2613-AC_LIBTOOL_CONFIG($1)
2614-
2615-AC_LANG_POP
2616-CC="$lt_save_CC"
2617-])# AC_LIBTOOL_LANG_C_CONFIG
2618-
2619-
2620-# AC_LIBTOOL_LANG_CXX_CONFIG
2621-# --------------------------
2622-# Ensure that the configuration vars for the C compiler are
2623-# suitably defined. Those variables are subsequently used by
2624-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2625-AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2626-AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2627-[AC_LANG_PUSH(C++)
2628-AC_REQUIRE([AC_PROG_CXX])
2629-AC_REQUIRE([AC_PROG_CXXCPP])
2630-
2631-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2632-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2633-_LT_AC_TAGVAR(always_export_symbols, $1)=no
2634-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2635-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2636-_LT_AC_TAGVAR(hardcode_direct, $1)=no
2637-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2638-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2639-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2640-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2641-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2642-_LT_AC_TAGVAR(module_cmds, $1)=
2643-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2644-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2645-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2646-_LT_AC_TAGVAR(no_undefined_flag, $1)=
2647-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2648-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2649-
2650-# Dependencies to place before and after the object being linked:
2651-_LT_AC_TAGVAR(predep_objects, $1)=
2652-_LT_AC_TAGVAR(postdep_objects, $1)=
2653-_LT_AC_TAGVAR(predeps, $1)=
2654-_LT_AC_TAGVAR(postdeps, $1)=
2655-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2656-
2657-# Source file extension for C++ test sources.
2658-ac_ext=cc
2659-
2660-# Object file extension for compiled C++ test sources.
2661-objext=o
2662-_LT_AC_TAGVAR(objext, $1)=$objext
2663-
2664-# Code to be used in simple compile tests
2665-lt_simple_compile_test_code="int some_variable = 0;\n"
2666-
2667-# Code to be used in simple link tests
2668-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2669-
2670-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2671-_LT_AC_SYS_COMPILER
2672-
2673-# Allow CC to be a program name with arguments.
2674-lt_save_CC=$CC
2675-lt_save_LD=$LD
2676-lt_save_GCC=$GCC
2677-GCC=$GXX
2678-lt_save_with_gnu_ld=$with_gnu_ld
2679-lt_save_path_LD=$lt_cv_path_LD
2680-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2681- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2682-else
2683- unset lt_cv_prog_gnu_ld
2684-fi
2685-if test -n "${lt_cv_path_LDCXX+set}"; then
2686- lt_cv_path_LD=$lt_cv_path_LDCXX
2687-else
2688- unset lt_cv_path_LD
2689-fi
2690-test -z "${LDCXX+set}" || LD=$LDCXX
2691-CC=${CXX-"c++"}
2692-compiler=$CC
2693-_LT_AC_TAGVAR(compiler, $1)=$CC
2694-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2695-
2696-# We don't want -fno-exception wen compiling C++ code, so set the
2697-# no_builtin_flag separately
2698-if test "$GXX" = yes; then
2699- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2700-else
2701- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2702-fi
2703-
2704-if test "$GXX" = yes; then
2705- # Set up default GNU C++ configuration
2706-
2707- AC_PROG_LD
2708-
2709- # Check if GNU C++ uses GNU ld as the underlying linker, since the
2710- # archiving commands below assume that GNU ld is being used.
2711- if test "$with_gnu_ld" = yes; then
2712- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
2713- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2714-
2715- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2716- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2717-
2718- # If archive_cmds runs LD, not CC, wlarc should be empty
2719- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2720- # investigate it a little bit more. (MM)
2721- wlarc='${wl}'
2722-
2723- # ancient GNU ld didn't support --whole-archive et. al.
2724- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2725- grep 'no-whole-archive' > /dev/null; then
2726- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2727- else
2728- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2729- fi
2730- else
2731- with_gnu_ld=no
2732- wlarc=
2733-
2734- # A generic and very simple default shared library creation
2735- # command for GNU C++ for the case where it uses the native
2736- # linker, instead of GNU ld. If possible, this setting should
2737- # overridden to take advantage of the native linker features on
2738- # the platform it is being used on.
2739- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
2740- fi
2741-
2742- # Commands to make compiler produce verbose output that lists
2743- # what "hidden" libraries, object files and flags are used when
2744- # linking a shared library.
2745- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2746-
2747-else
2748- GXX=no
2749- with_gnu_ld=no
2750- wlarc=
2751-fi
2752-
2753-# PORTME: fill in a description of your system's C++ link characteristics
2754-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2755-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2756-case $host_os in
2757- aix3*)
2758- # FIXME: insert proper C++ library support
2759- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2760- ;;
2761- aix4* | aix5*)
2762- if test "$host_cpu" = ia64; then
2763- # On IA64, the linker does run time linking by default, so we don't
2764- # have to do anything special.
2765- aix_use_runtimelinking=no
2766- exp_sym_flag='-Bexport'
2767- no_entry_flag=""
2768- else
2769- # KDE requires run time linking. Make it the default.
2770- aix_use_runtimelinking=yes
2771- exp_sym_flag='-bexport'
2772- no_entry_flag='-bnoentry'
2773- fi
2774-
2775- # When large executables or shared objects are built, AIX ld can
2776- # have problems creating the table of contents. If linking a library
2777- # or program results in "error TOC overflow" add -mminimal-toc to
2778- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2779- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2780-
2781- _LT_AC_TAGVAR(archive_cmds, $1)=''
2782- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2783- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2784- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2785-
2786- if test "$GXX" = yes; then
2787- case $host_os in aix4.[012]|aix4.[012].*)
2788- # We only want to do this on AIX 4.2 and lower, the check
2789- # below for broken collect2 doesn't work under 4.3+
2790- collect2name=`${CC} -print-prog-name=collect2`
2791- if test -f "$collect2name" && \
2792- strings "$collect2name" | grep resolve_lib_name >/dev/null
2793- then
2794- # We have reworked collect2
2795- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2796- else
2797- # We have old collect2
2798- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2799- # It fails to find uninstalled libraries when the uninstalled
2800- # path is not listed in the libpath. Setting hardcode_minus_L
2801- # to unsupported forces relinking
2802- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2803- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2804- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2805- fi
2806- esac
2807- shared_flag='-shared'
2808- else
2809- # not using gcc
2810- if test "$host_cpu" = ia64; then
2811- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2812- # chokes on -Wl,-G. The following line is correct:
2813- shared_flag='-G'
2814- else
2815- if test "$aix_use_runtimelinking" = yes; then
2816- shared_flag='-qmkshrobj ${wl}-G'
2817- else
2818- shared_flag='-qmkshrobj'
2819- fi
2820- fi
2821- fi
2822-
2823- # Let the compiler handle the export list.
2824- _LT_AC_TAGVAR(always_export_symbols, $1)=no
2825- if test "$aix_use_runtimelinking" = yes; then
2826- # Warning - without using the other runtime loading flags (-brtl),
2827- # -berok will link without error, but may produce a broken library.
2828- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2829- # Determine the default libpath from the value encoded in an empty executable.
2830- _LT_AC_SYS_LIBPATH_AIX
2831- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2832-
2833- _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
2834- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2835- else
2836- if test "$host_cpu" = ia64; then
2837- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2838- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2839- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2840- else
2841- # Determine the default libpath from the value encoded in an empty executable.
2842- _LT_AC_SYS_LIBPATH_AIX
2843- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2844- # Warning - without using the other run time loading flags,
2845- # -berok will link without error, but may produce a broken library.
2846- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2847- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2848- # -bexpall does not export symbols beginning with underscore (_)
2849- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2850- # Exported symbols can be pulled into shared objects from archives
2851- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2852- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2853- # This is similar to how AIX traditionally builds it's shared libraries.
2854- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2855- fi
2856- fi
2857- ;;
2858- chorus*)
2859- case $cc_basename in
2860- *)
2861- # FIXME: insert proper C++ library support
2862- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2863- ;;
2864- esac
2865- ;;
2866-
2867- cygwin* | mingw* | pw32*)
2868- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2869- # as there is no search path for DLLs.
2870- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2871- _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
2872- _LT_AC_TAGVAR(always_export_symbols, $1)=no
2873- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2874-
2875- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2876- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2877- # If the export-symbols file already is a .def file (1st line
2878- # is EXPORTS), use it as is; otherwise, prepend...
2879- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2880- cp $export_symbols $output_objdir/$soname.def;
2881- else
2882- echo EXPORTS > $output_objdir/$soname.def;
2883- cat $export_symbols >> $output_objdir/$soname.def;
2884- fi~
2885- $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2886- else
2887- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2888- fi
2889- ;;
2890-
2891- darwin* | rhapsody*)
2892- if test "$GXX" = yes; then
2893- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2894- case "$host_os" in
2895- rhapsody* | darwin1.[[012]])
2896- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
2897- ;;
2898- *) # Darwin 1.3 on
2899- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2900- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
2901- else
2902- case ${MACOSX_DEPLOYMENT_TARGET} in
2903- 10.[012])
2904- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
2905- ;;
2906- 10.*)
2907- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
2908- ;;
2909- esac
2910- fi
2911- ;;
2912- esac
2913- lt_int_apple_cc_single_mod=no
2914- output_verbose_link_cmd='echo'
2915- if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2916- lt_int_apple_cc_single_mod=yes
2917- fi
2918- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2919- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
2920- else
2921- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
2922- fi
2923- _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
2924-
2925- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2926- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2927- _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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2928- else
2929- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2930- fi
2931- _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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2932- _LT_AC_TAGVAR(hardcode_direct, $1)=no
2933- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2934- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2935- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2936- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2937- else
2938- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2939- fi
2940- ;;
2941-
2942- dgux*)
2943- case $cc_basename in
2944- ec++)
2945- # FIXME: insert proper C++ library support
2946- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2947- ;;
2948- ghcx)
2949- # Green Hills C++ Compiler
2950- # FIXME: insert proper C++ library support
2951- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2952- ;;
2953- *)
2954- # FIXME: insert proper C++ library support
2955- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2956- ;;
2957- esac
2958- ;;
2959- freebsd[12]*)
2960- # C++ shared libraries reported to be fairly broken before switch to ELF
2961- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2962- ;;
2963- freebsd-elf*)
2964- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2965- ;;
2966- freebsd* | kfreebsd*-gnu)
2967- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2968- # conventions
2969- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2970- ;;
2971- gnu*)
2972- ;;
2973- hpux9*)
2974- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2975- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2976- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2977- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2978- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2979- # but as the default
2980- # location of the library.
2981-
2982- case $cc_basename in
2983- CC)
2984- # FIXME: insert proper C++ library support
2985- _LT_AC_TAGVAR(ld_shlibs, $1)=no
2986- ;;
2987- aCC)
2988- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2989- # Commands to make compiler produce verbose output that lists
2990- # what "hidden" libraries, object files and flags are used when
2991- # linking a shared library.
2992- #
2993- # There doesn't appear to be a way to prevent this compiler from
2994- # explicitly linking system object files so we need to strip them
2995- # from the output so that they don't get included in the library
2996- # dependencies.
2997- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2998- ;;
2999- *)
3000- if test "$GXX" = yes; then
3001- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3002- else
3003- # FIXME: insert proper C++ library support
3004- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3005- fi
3006- ;;
3007- esac
3008- ;;
3009- hpux10*|hpux11*)
3010- if test $with_gnu_ld = no; then
3011- case "$host_cpu" in
3012- hppa*64*)
3013- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3014- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3015- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3016- ;;
3017- ia64*)
3018- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3019- ;;
3020- *)
3021- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3022- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3023- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3024- ;;
3025- esac
3026- fi
3027- case "$host_cpu" in
3028- hppa*64*)
3029- _LT_AC_TAGVAR(hardcode_direct, $1)=no
3030- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3031- ;;
3032- ia64*)
3033- _LT_AC_TAGVAR(hardcode_direct, $1)=no
3034- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3035- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3036- # but as the default
3037- # location of the library.
3038- ;;
3039- *)
3040- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3041- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3042- # but as the default
3043- # location of the library.
3044- ;;
3045- esac
3046-
3047- case $cc_basename in
3048- CC)
3049- # FIXME: insert proper C++ library support
3050- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3051- ;;
3052- aCC)
3053- case "$host_cpu" in
3054- hppa*64*|ia64*)
3055- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3056- ;;
3057- *)
3058- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
3059- ;;
3060- esac
3061- # Commands to make compiler produce verbose output that lists
3062- # what "hidden" libraries, object files and flags are used when
3063- # linking a shared library.
3064- #
3065- # There doesn't appear to be a way to prevent this compiler from
3066- # explicitly linking system object files so we need to strip them
3067- # from the output so that they don't get included in the library
3068- # dependencies.
3069- 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'
3070- ;;
3071- *)
3072- if test "$GXX" = yes; then
3073- if test $with_gnu_ld = no; then
3074- case "$host_cpu" in
3075- ia64*|hppa*64*)
3076- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3077- ;;
3078- *)
3079- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
3080- ;;
3081- esac
3082- fi
3083- else
3084- # FIXME: insert proper C++ library support
3085- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3086- fi
3087- ;;
3088- esac
3089- ;;
3090- irix5* | irix6*)
3091- case $cc_basename in
3092- CC)
3093- # SGI C++
3094- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3095-
3096- # Archives containing C++ object files must be created using
3097- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3098- # necessary to make sure instantiated templates are included
3099- # in the archive.
3100- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3101- ;;
3102- *)
3103- if test "$GXX" = yes; then
3104- if test "$with_gnu_ld" = no; then
3105- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3106- else
3107- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3108- fi
3109- fi
3110- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3111- ;;
3112- esac
3113- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3114- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3115- ;;
3116- linux*)
3117- case $cc_basename in
3118- KCC)
3119- # Kuck and Associates, Inc. (KAI) C++ Compiler
3120-
3121- # KCC will only create a shared library if the output file
3122- # ends with ".so" (or ".sl" for HP-UX), so rename the library
3123- # to its proper name (with version) after linking.
3124- _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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
3125- _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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3126- # Commands to make compiler produce verbose output that lists
3127- # what "hidden" libraries, object files and flags are used when
3128- # linking a shared library.
3129- #
3130- # There doesn't appear to be a way to prevent this compiler from
3131- # explicitly linking system object files so we need to strip them
3132- # from the output so that they don't get included in the library
3133- # dependencies.
3134- 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'
3135-
3136- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3137- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3138-
3139- # Archives containing C++ object files must be created using
3140- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3141- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3142- ;;
3143- icpc)
3144- # Intel C++
3145- with_gnu_ld=yes
3146- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3147- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
3148- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3149- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3150- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3151- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3152- ;;
3153- cxx)
3154- # Compaq C++
3155- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
3156- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3157-
3158- runpath_var=LD_RUN_PATH
3159- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3160- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3161-
3162- # Commands to make compiler produce verbose output that lists
3163- # what "hidden" libraries, object files and flags are used when
3164- # linking a shared library.
3165- #
3166- # There doesn't appear to be a way to prevent this compiler from
3167- # explicitly linking system object files so we need to strip them
3168- # from the output so that they don't get included in the library
3169- # dependencies.
3170- 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'
3171- ;;
3172- esac
3173- ;;
3174- lynxos*)
3175- # FIXME: insert proper C++ library support
3176- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3177- ;;
3178- m88k*)
3179- # FIXME: insert proper C++ library support
3180- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3181- ;;
3182- mvs*)
3183- case $cc_basename in
3184- cxx)
3185- # FIXME: insert proper C++ library support
3186- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3187- ;;
3188- *)
3189- # FIXME: insert proper C++ library support
3190- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3191- ;;
3192- esac
3193- ;;
3194- netbsd*)
3195- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3196- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3197- wlarc=
3198- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3199- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3200- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3201- fi
3202- # Workaround some broken pre-1.5 toolchains
3203- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3204- ;;
3205- osf3*)
3206- case $cc_basename in
3207- KCC)
3208- # Kuck and Associates, Inc. (KAI) C++ Compiler
3209-
3210- # KCC will only create a shared library if the output file
3211- # ends with ".so" (or ".sl" for HP-UX), so rename the library
3212- # to its proper name (with version) after linking.
3213- _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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
3214-
3215- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3216- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3217-
3218- # Archives containing C++ object files must be created using
3219- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3220- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3221-
3222- ;;
3223- RCC)
3224- # Rational C++ 2.4.1
3225- # FIXME: insert proper C++ library support
3226- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3227- ;;
3228- cxx)
3229- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3230- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3231-
3232- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3233- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3234-
3235- # Commands to make compiler produce verbose output that lists
3236- # what "hidden" libraries, object files and flags are used when
3237- # linking a shared library.
3238- #
3239- # There doesn't appear to be a way to prevent this compiler from
3240- # explicitly linking system object files so we need to strip them
3241- # from the output so that they don't get included in the library
3242- # dependencies.
3243- 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'
3244- ;;
3245- *)
3246- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3247- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3248- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3249-
3250- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3251- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3252-
3253- # Commands to make compiler produce verbose output that lists
3254- # what "hidden" libraries, object files and flags are used when
3255- # linking a shared library.
3256- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3257-
3258- else
3259- # FIXME: insert proper C++ library support
3260- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3261- fi
3262- ;;
3263- esac
3264- ;;
3265- osf4* | osf5*)
3266- case $cc_basename in
3267- KCC)
3268- # Kuck and Associates, Inc. (KAI) C++ Compiler
3269-
3270- # KCC will only create a shared library if the output file
3271- # ends with ".so" (or ".sl" for HP-UX), so rename the library
3272- # to its proper name (with version) after linking.
3273- _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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
3274-
3275- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3276- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3277-
3278- # Archives containing C++ object files must be created using
3279- # the KAI C++ compiler.
3280- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3281- ;;
3282- RCC)
3283- # Rational C++ 2.4.1
3284- # FIXME: insert proper C++ library support
3285- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3286- ;;
3287- cxx)
3288- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3289- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3290- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3291- echo "-hidden">> $lib.exp~
3292- $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
3293- $rm $lib.exp'
3294-
3295- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3296- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3297-
3298- # Commands to make compiler produce verbose output that lists
3299- # what "hidden" libraries, object files and flags are used when
3300- # linking a shared library.
3301- #
3302- # There doesn't appear to be a way to prevent this compiler from
3303- # explicitly linking system object files so we need to strip them
3304- # from the output so that they don't get included in the library
3305- # dependencies.
3306- 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'
3307- ;;
3308- *)
3309- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3310- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3311- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3312-
3313- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3314- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3315-
3316- # Commands to make compiler produce verbose output that lists
3317- # what "hidden" libraries, object files and flags are used when
3318- # linking a shared library.
3319- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3320-
3321- else
3322- # FIXME: insert proper C++ library support
3323- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3324- fi
3325- ;;
3326- esac
3327- ;;
3328- psos*)
3329- # FIXME: insert proper C++ library support
3330- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331- ;;
3332- sco*)
3333- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3334- case $cc_basename in
3335- CC)
3336- # FIXME: insert proper C++ library support
3337- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3338- ;;
3339- *)
3340- # FIXME: insert proper C++ library support
3341- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3342- ;;
3343- esac
3344- ;;
3345- sunos4*)
3346- case $cc_basename in
3347- CC)
3348- # Sun C++ 4.x
3349- # FIXME: insert proper C++ library support
3350- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3351- ;;
3352- lcc)
3353- # Lucid
3354- # FIXME: insert proper C++ library support
3355- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3356- ;;
3357- *)
3358- # FIXME: insert proper C++ library support
3359- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3360- ;;
3361- esac
3362- ;;
3363- solaris*)
3364- case $cc_basename in
3365- CC)
3366- # Sun C++ 4.2, 5.x and Centerline C++
3367- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3368- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
3369- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3370- $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
3371-
3372- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3373- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3374- case $host_os in
3375- solaris2.[0-5] | solaris2.[0-5].*) ;;
3376- *)
3377- # The C++ compiler is used as linker so we must use $wl
3378- # flag to pass the commands to the underlying system
3379- # linker.
3380- # Supported since Solaris 2.6 (maybe 2.5.1?)
3381- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3382- ;;
3383- esac
3384- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3385-
3386- # Commands to make compiler produce verbose output that lists
3387- # what "hidden" libraries, object files and flags are used when
3388- # linking a shared library.
3389- #
3390- # There doesn't appear to be a way to prevent this compiler from
3391- # explicitly linking system object files so we need to strip them
3392- # from the output so that they don't get included in the library
3393- # dependencies.
3394- output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3395-
3396- # Archives containing C++ object files must be created using
3397- # "CC -xar", where "CC" is the Sun C++ compiler. This is
3398- # necessary to make sure instantiated templates are included
3399- # in the archive.
3400- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3401- ;;
3402- gcx)
3403- # Green Hills C++ Compiler
3404- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
3405-
3406- # The C++ compiler must be used to create the archive.
3407- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3408- ;;
3409- *)
3410- # GNU C++ compiler with Solaris linker
3411- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3412- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3413- if $CC --version | grep -v '^2\.7' > /dev/null; then
3414- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
3415- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3416- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
3417-
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.
3421- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3422- else
3423- # g++ 2.7 appears to require `-G' NOT `-shared' on this
3424- # platform.
3425- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
3426- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3427- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
3428-
3429- # Commands to make compiler produce verbose output that lists
3430- # what "hidden" libraries, object files and flags are used when
3431- # linking a shared library.
3432- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3433- fi
3434-
3435- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3436- fi
3437- ;;
3438- esac
3439- ;;
3440- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3441- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3442- ;;
3443- tandem*)
3444- case $cc_basename in
3445- NCC)
3446- # NonStop-UX NCC 3.20
3447- # FIXME: insert proper C++ library support
3448- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3449- ;;
3450- *)
3451- # FIXME: insert proper C++ library support
3452- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3453- ;;
3454- esac
3455- ;;
3456- vxworks*)
3457- # FIXME: insert proper C++ library support
3458- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3459- ;;
3460- *)
3461- # FIXME: insert proper C++ library support
3462- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3463- ;;
3464-esac
3465-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3466-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3467-
3468-_LT_AC_TAGVAR(GCC, $1)="$GXX"
3469-_LT_AC_TAGVAR(LD, $1)="$LD"
3470-
3471-## CAVEAT EMPTOR:
3472-## There is no encapsulation within the following macros, do not change
3473-## the running order or otherwise move them around unless you know exactly
3474-## what you are doing...
3475-AC_LIBTOOL_POSTDEP_PREDEP($1)
3476-AC_LIBTOOL_PROG_COMPILER_PIC($1)
3477-AC_LIBTOOL_PROG_CC_C_O($1)
3478-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3479-AC_LIBTOOL_PROG_LD_SHLIBS($1)
3480-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3481-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3482-AC_LIBTOOL_SYS_LIB_STRIP
3483-AC_LIBTOOL_DLOPEN_SELF($1)
3484-
3485-AC_LIBTOOL_CONFIG($1)
3486-
3487-AC_LANG_POP
3488-CC=$lt_save_CC
3489-LDCXX=$LD
3490-LD=$lt_save_LD
3491-GCC=$lt_save_GCC
3492-with_gnu_ldcxx=$with_gnu_ld
3493-with_gnu_ld=$lt_save_with_gnu_ld
3494-lt_cv_path_LDCXX=$lt_cv_path_LD
3495-lt_cv_path_LD=$lt_save_path_LD
3496-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3497-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3498-])# AC_LIBTOOL_LANG_CXX_CONFIG
3499-
3500-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3501-# ------------------------
3502-# Figure out "hidden" library dependencies from verbose
3503-# compiler output when linking a shared library.
3504-# Parse the compiler output and extract the necessary
3505-# objects, libraries and library flags.
3506-AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3507-dnl we can't use the lt_simple_compile_test_code here,
3508-dnl because it contains code intended for an executable,
3509-dnl not a library. It's possible we should let each
3510-dnl tag define a new lt_????_link_test_code variable,
3511-dnl but it's only used here...
3512-ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3513-int a;
3514-void foo (void) { a = 0; }
3515-EOF
3516-],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3517-class Foo
3518-{
3519-public:
3520- Foo (void) { a = 0; }
3521-private:
3522- int a;
3523-};
3524-EOF
3525-],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3526- subroutine foo
3527- implicit none
3528- integer*4 a
3529- a=0
3530- return
3531- end
3532-EOF
3533-],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3534-public class foo {
3535- private int a;
3536- public void bar (void) {
3537- a = 0;
3538- }
3539-};
3540-EOF
3541-])
3542-dnl Parse the compiler output and extract the necessary
3543-dnl objects, libraries and library flags.
3544-if AC_TRY_EVAL(ac_compile); then
3545- # Parse the compiler output and extract the necessary
3546- # objects, libraries and library flags.
3547-
3548- # Sentinel used to keep track of whether or not we are before
3549- # the conftest object file.
3550- pre_test_object_deps_done=no
3551-
3552- # The `*' in the case matches for architectures that use `case' in
3553- # $output_verbose_cmd can trigger glob expansion during the loop
3554- # eval without this substitution.
3555- output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
3556-
3557- for p in `eval $output_verbose_link_cmd`; do
3558- case $p in
3559-
3560- -L* | -R* | -l*)
3561- # Some compilers place space between "-{L,R}" and the path.
3562- # Remove the space.
3563- if test $p = "-L" \
3564- || test $p = "-R"; then
3565- prev=$p
3566- continue
3567- else
3568- prev=
3569- fi
3570-
3571- if test "$pre_test_object_deps_done" = no; then
3572- case $p in
3573- -L* | -R*)
3574- # Internal compiler library paths should come after those
3575- # provided the user. The postdeps already come after the
3576- # user supplied libs so there is no need to process them.
3577- if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3578- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3579- else
3580- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3581- fi
3582- ;;
3583- # The "-l" case would never come before the object being
3584- # linked, so don't bother handling this case.
3585- esac
3586- else
3587- if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3588- _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3589- else
3590- _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3591- fi
3592- fi
3593- ;;
3594-
3595- *.$objext|*.$libext)
3596- # This assumes that the test object file only shows up
3597- # once in the compiler output.
3598- if test "$p" = "conftest.$objext"; then
3599- pre_test_object_deps_done=yes
3600- continue
3601- fi
3602-
3603- if test "$pre_test_object_deps_done" = no; then
3604- if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3605- _LT_AC_TAGVAR(predep_objects, $1)="$p"
3606- else
3607- _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3608- fi
3609- else
3610- if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3611- _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3612- else
3613- _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3614- fi
3615- fi
3616- ;;
3617-
3618- *) ;; # Ignore the rest.
3619-
3620- esac
3621- done
3622-
3623- # Clean up.
3624- rm -f a.out a.exe
3625-else
3626- echo "libtool.m4: error: problem compiling $1 test program"
3627-fi
3628-
3629-$rm -f confest.$objext
3630-
3631-case " $_LT_AC_TAGVAR(postdeps, $1) " in
3632-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3633-esac
3634-])# AC_LIBTOOL_POSTDEP_PREDEP
3635-
3636-# AC_LIBTOOL_LANG_F77_CONFIG
3637-# ------------------------
3638-# Ensure that the configuration vars for the C compiler are
3639-# suitably defined. Those variables are subsequently used by
3640-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3641-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3642-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3643-[AC_REQUIRE([AC_PROG_F77])
3644-AC_LANG_PUSH(Fortran 77)
3645-
3646-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3647-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3648-_LT_AC_TAGVAR(always_export_symbols, $1)=no
3649-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3650-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3651-_LT_AC_TAGVAR(hardcode_direct, $1)=no
3652-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3653-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3654-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3655-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3656-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3657-_LT_AC_TAGVAR(module_cmds, $1)=
3658-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3659-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3660-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3661-_LT_AC_TAGVAR(no_undefined_flag, $1)=
3662-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3663-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3664-
3665-# Source file extension for f77 test sources.
3666-ac_ext=f
3667-
3668-# Object file extension for compiled f77 test sources.
3669-objext=o
3670-_LT_AC_TAGVAR(objext, $1)=$objext
3671-
3672-# Code to be used in simple compile tests
3673-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3674-
3675-# Code to be used in simple link tests
3676-lt_simple_link_test_code=" program t\n end\n"
3677-
3678-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3679-_LT_AC_SYS_COMPILER
3680-
3681-# Allow CC to be a program name with arguments.
3682-lt_save_CC="$CC"
3683-CC=${F77-"f77"}
3684-compiler=$CC
3685-_LT_AC_TAGVAR(compiler, $1)=$CC
3686-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3687-
3688-AC_MSG_CHECKING([if libtool supports shared libraries])
3689-AC_MSG_RESULT([$can_build_shared])
3690-
3691-AC_MSG_CHECKING([whether to build shared libraries])
3692-test "$can_build_shared" = "no" && enable_shared=no
3693-
3694-# On AIX, shared libraries and static libraries use the same namespace, and
3695-# are all built from PIC.
3696-case "$host_os" in
3697-aix3*)
3698- test "$enable_shared" = yes && enable_static=no
3699- if test -n "$RANLIB"; then
3700- archive_cmds="$archive_cmds~\$RANLIB \$lib"
3701- postinstall_cmds='$RANLIB $lib'
3702- fi
3703- ;;
3704-aix4*)
3705- test "$enable_shared" = yes && enable_static=no
3706- ;;
3707-esac
3708-AC_MSG_RESULT([$enable_shared])
3709-
3710-AC_MSG_CHECKING([whether to build static libraries])
3711-# Make sure either enable_shared or enable_static is yes.
3712-test "$enable_shared" = yes || enable_static=yes
3713-AC_MSG_RESULT([$enable_static])
3714-
3715-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3716-
3717-_LT_AC_TAGVAR(GCC, $1)="$G77"
3718-_LT_AC_TAGVAR(LD, $1)="$LD"
3719-
3720-AC_LIBTOOL_PROG_COMPILER_PIC($1)
3721-AC_LIBTOOL_PROG_CC_C_O($1)
3722-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3723-AC_LIBTOOL_PROG_LD_SHLIBS($1)
3724-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3725-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3726-AC_LIBTOOL_SYS_LIB_STRIP
3727-
3728-
3729-AC_LIBTOOL_CONFIG($1)
3730-
3731-AC_LANG_POP
3732-CC="$lt_save_CC"
3733-])# AC_LIBTOOL_LANG_F77_CONFIG
3734-
3735-
3736-# AC_LIBTOOL_LANG_GCJ_CONFIG
3737-# --------------------------
3738-# Ensure that the configuration vars for the C compiler are
3739-# suitably defined. Those variables are subsequently used by
3740-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3741-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3742-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3743-[AC_LANG_SAVE
3744-
3745-# Source file extension for Java test sources.
3746-ac_ext=java
3747-
3748-# Object file extension for compiled Java test sources.
3749-objext=o
3750-_LT_AC_TAGVAR(objext, $1)=$objext
3751-
3752-# Code to be used in simple compile tests
3753-lt_simple_compile_test_code="class foo {}\n"
3754-
3755-# Code to be used in simple link tests
3756-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
3757-
3758-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3759-_LT_AC_SYS_COMPILER
3760-
3761-# Allow CC to be a program name with arguments.
3762-lt_save_CC="$CC"
3763-CC=${GCJ-"gcj"}
3764-compiler=$CC
3765-_LT_AC_TAGVAR(compiler, $1)=$CC
3766-
3767-# GCJ did not exist at the time GCC didn't implicitly link libc in.
3768-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3769-
3770-## CAVEAT EMPTOR:
3771-## There is no encapsulation within the following macros, do not change
3772-## the running order or otherwise move them around unless you know exactly
3773-## what you are doing...
3774-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3775-AC_LIBTOOL_PROG_COMPILER_PIC($1)
3776-AC_LIBTOOL_PROG_CC_C_O($1)
3777-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3778-AC_LIBTOOL_PROG_LD_SHLIBS($1)
3779-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3780-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3781-AC_LIBTOOL_SYS_LIB_STRIP
3782-AC_LIBTOOL_DLOPEN_SELF($1)
3783-
3784-AC_LIBTOOL_CONFIG($1)
3785-
3786-AC_LANG_RESTORE
3787-CC="$lt_save_CC"
3788-])# AC_LIBTOOL_LANG_GCJ_CONFIG
3789-
3790-
3791-# AC_LIBTOOL_LANG_RC_CONFIG
3792-# --------------------------
3793-# Ensure that the configuration vars for the Windows resource compiler are
3794-# suitably defined. Those variables are subsequently used by
3795-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3796-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3797-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3798-[AC_LANG_SAVE
3799-
3800-# Source file extension for RC test sources.
3801-ac_ext=rc
3802-
3803-# Object file extension for compiled RC test sources.
3804-objext=o
3805-_LT_AC_TAGVAR(objext, $1)=$objext
3806-
3807-# Code to be used in simple compile tests
3808-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3809-
3810-# Code to be used in simple link tests
3811-lt_simple_link_test_code="$lt_simple_compile_test_code"
3812-
3813-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3814-_LT_AC_SYS_COMPILER
3815-
3816-# Allow CC to be a program name with arguments.
3817-lt_save_CC="$CC"
3818-CC=${RC-"windres"}
3819-compiler=$CC
3820-_LT_AC_TAGVAR(compiler, $1)=$CC
3821-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3822-
3823-AC_LIBTOOL_CONFIG($1)
3824-
3825-AC_LANG_RESTORE
3826-CC="$lt_save_CC"
3827-])# AC_LIBTOOL_LANG_RC_CONFIG
3828-
3829-
3830-# AC_LIBTOOL_CONFIG([TAGNAME])
3831-# ----------------------------
3832-# If TAGNAME is not passed, then create an initial libtool script
3833-# with a default configuration from the untagged config vars. Otherwise
3834-# add code to config.status for appending the configuration named by
3835-# TAGNAME from the matching tagged config vars.
3836-AC_DEFUN([AC_LIBTOOL_CONFIG],
3837-[# The else clause should only fire when bootstrapping the
3838-# libtool distribution, otherwise you forgot to ship ltmain.sh
3839-# with your package, and you will get complaints that there are
3840-# no rules to generate ltmain.sh.
3841-if test -f "$ltmain"; then
3842- # See if we are running on zsh, and set the options which allow our commands through
3843- # without removal of \ escapes.
3844- if test -n "${ZSH_VERSION+set}" ; then
3845- setopt NO_GLOB_SUBST
3846- fi
3847- # Now quote all the things that may contain metacharacters while being
3848- # careful not to overquote the AC_SUBSTed values. We take copies of the
3849- # variables and quote the copies for generation of the libtool script.
3850- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
3851- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3852- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3853- deplibs_check_method reload_flag reload_cmds need_locks \
3854- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
3855- lt_cv_sys_global_symbol_to_c_name_address \
3856- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3857- old_postinstall_cmds old_postuninstall_cmds \
3858- _LT_AC_TAGVAR(compiler, $1) \
3859- _LT_AC_TAGVAR(CC, $1) \
3860- _LT_AC_TAGVAR(LD, $1) \
3861- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
3862- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
3863- _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
3864- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
3865- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
3866- _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
3867- _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
3868- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
3869- _LT_AC_TAGVAR(old_archive_cmds, $1) \
3870- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
3871- _LT_AC_TAGVAR(predep_objects, $1) \
3872- _LT_AC_TAGVAR(postdep_objects, $1) \
3873- _LT_AC_TAGVAR(predeps, $1) \
3874- _LT_AC_TAGVAR(postdeps, $1) \
3875- _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
3876- _LT_AC_TAGVAR(archive_cmds, $1) \
3877- _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
3878- _LT_AC_TAGVAR(postinstall_cmds, $1) \
3879- _LT_AC_TAGVAR(postuninstall_cmds, $1) \
3880- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
3881- _LT_AC_TAGVAR(allow_undefined_flag, $1) \
3882- _LT_AC_TAGVAR(no_undefined_flag, $1) \
3883- _LT_AC_TAGVAR(export_symbols_cmds, $1) \
3884- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
3885- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
3886- _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
3887- _LT_AC_TAGVAR(hardcode_automatic, $1) \
3888- _LT_AC_TAGVAR(module_cmds, $1) \
3889- _LT_AC_TAGVAR(module_expsym_cmds, $1) \
3890- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
3891- _LT_AC_TAGVAR(exclude_expsyms, $1) \
3892- _LT_AC_TAGVAR(include_expsyms, $1); do
3893-
3894- case $var in
3895- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
3896- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
3897- _LT_AC_TAGVAR(archive_cmds, $1) | \
3898- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
3899- _LT_AC_TAGVAR(module_cmds, $1) | \
3900- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
3901- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
3902- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
3903- extract_expsyms_cmds | reload_cmds | finish_cmds | \
3904- postinstall_cmds | postuninstall_cmds | \
3905- old_postinstall_cmds | old_postuninstall_cmds | \
3906- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3907- # Double-quote double-evaled strings.
3908- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3909- ;;
3910- *)
3911- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
3912- ;;
3913- esac
3914- done
3915-
3916- case $lt_echo in
3917- *'\[$]0 --fallback-echo"')
3918- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
3919- ;;
3920- esac
3921-
3922-ifelse([$1], [],
3923- [cfgfile="${ofile}T"
3924- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3925- $rm -f "$cfgfile"
3926- AC_MSG_NOTICE([creating $ofile])],
3927- [cfgfile="$ofile"])
3928-
3929- cat <<__EOF__ >> "$cfgfile"
3930-ifelse([$1], [],
3931-[#! $SHELL
3932-
3933-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3934-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3935-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3936-#
3937-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3938-# Free Software Foundation, Inc.
3939-#
3940-# This file is part of GNU Libtool:
3941-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3942-#
3943-# This program is free software; you can redistribute it and/or modify
3944-# it under the terms of the GNU General Public License as published by
3945-# the Free Software Foundation; either version 2 of the License, or
3946-# (at your option) any later version.
3947-#
3948-# This program is distributed in the hope that it will be useful, but
3949-# WITHOUT ANY WARRANTY; without even the implied warranty of
3950-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3951-# General Public License for more details.
3952-#
3953-# You should have received a copy of the GNU General Public License
3954-# along with this program; if not, write to the Free Software
3955-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3956-#
3957-# As a special exception to the GNU General Public License, if you
3958-# distribute this file as part of a program that contains a
3959-# configuration script generated by Autoconf, you may include it under
3960-# the same distribution terms that you use for the rest of that program.
3961-
3962-# A sed program that does not truncate output.
3963-SED=$lt_SED
3964-
3965-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3966-Xsed="$SED -e s/^X//"
3967-
3968-# The HP-UX ksh and POSIX shell print the target directory to stdout
3969-# if CDPATH is set.
3970-if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3971-
3972-# The names of the tagged configurations supported by this script.
3973-available_tags=
3974-
3975-# ### BEGIN LIBTOOL CONFIG],
3976-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
3977-
3978-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3979-
3980-# Shell to use when invoking shell scripts.
3981-SHELL=$lt_SHELL
3982-
3983-# Whether or not to build shared libraries.
3984-build_libtool_libs=$enable_shared
3985-
3986-# Whether or not to build static libraries.
3987-build_old_libs=$enable_static
3988-
3989-# Whether or not to add -lc for building shared libraries.
3990-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3991-
3992-# Whether or not to disallow shared libs when runtime libs are static
3993-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
3994-
3995-# Whether or not to optimize for fast installation.
3996-fast_install=$enable_fast_install
3997-
3998-# The host system.
3999-host_alias=$host_alias
4000-host=$host
4001-
4002-# An echo program that does not interpret backslashes.
4003-echo=$lt_echo
4004-
4005-# The archiver.
4006-AR=$lt_AR
4007-AR_FLAGS=$lt_AR_FLAGS
4008-
4009-# A C compiler.
4010-LTCC=$lt_LTCC
4011-
4012-# A language-specific compiler.
4013-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4014-
4015-# Is the compiler the GNU C compiler?
4016-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4017-
4018-# An ERE matcher.
4019-EGREP=$lt_EGREP
4020-
4021-# The linker used to build libraries.
4022-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4023-
4024-# Whether we need hard or soft links.
4025-LN_S=$lt_LN_S
4026-
4027-# A BSD-compatible nm program.
4028-NM=$lt_NM
4029-
4030-# A symbol stripping program
4031-STRIP=$STRIP
4032-
4033-# Used to examine libraries when file_magic_cmd begins "file"
4034-MAGIC_CMD=$MAGIC_CMD
4035-
4036-# Used on cygwin: DLL creation program.
4037-DLLTOOL="$DLLTOOL"
4038-
4039-# Used on cygwin: object dumper.
4040-OBJDUMP="$OBJDUMP"
4041-
4042-# Used on cygwin: assembler.
4043-AS="$AS"
4044-
4045-# The name of the directory that contains temporary libtool files.
4046-objdir=$objdir
4047-
4048-# How to create reloadable object files.
4049-reload_flag=$lt_reload_flag
4050-reload_cmds=$lt_reload_cmds
4051-
4052-# How to pass a linker flag through the compiler.
4053-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4054-
4055-# Object file suffix (normally "o").
4056-objext="$ac_objext"
4057-
4058-# Old archive suffix (normally "a").
4059-libext="$libext"
4060-
4061-# Shared library suffix (normally ".so").
4062-shrext='$shrext'
4063-
4064-# Executable file suffix (normally "").
4065-exeext="$exeext"
4066-
4067-# Additional compiler flags for building library objects.
4068-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4069-pic_mode=$pic_mode
4070-
4071-# What is the maximum length of a command?
4072-max_cmd_len=$lt_cv_sys_max_cmd_len
4073-
4074-# Does compiler simultaneously support -c and -o options?
4075-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4076-
4077-# Must we lock files when doing compilation ?
4078-need_locks=$lt_need_locks
4079-
4080-# Do we need the lib prefix for modules?
4081-need_lib_prefix=$need_lib_prefix
4082-
4083-# Do we need a version for libraries?
4084-need_version=$need_version
4085-
4086-# Whether dlopen is supported.
4087-dlopen_support=$enable_dlopen
4088-
4089-# Whether dlopen of programs is supported.
4090-dlopen_self=$enable_dlopen_self
4091-
4092-# Whether dlopen of statically linked programs is supported.
4093-dlopen_self_static=$enable_dlopen_self_static
4094-
4095-# Compiler flag to prevent dynamic linking.
4096-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4097-
4098-# Compiler flag to turn off builtin functions.
4099-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4100-
4101-# Compiler flag to allow reflexive dlopens.
4102-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4103-
4104-# Compiler flag to generate shared objects directly from archives.
4105-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4106-
4107-# Compiler flag to generate thread-safe objects.
4108-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4109-
4110-# Library versioning type.
4111-version_type=$version_type
4112-
4113-# Format of library name prefix.
4114-libname_spec=$lt_libname_spec
4115-
4116-# List of archive names. First name is the real one, the rest are links.
4117-# The last name is the one that the linker finds with -lNAME.
4118-library_names_spec=$lt_library_names_spec
4119-
4120-# The coded name of the library, if different from the real name.
4121-soname_spec=$lt_soname_spec
4122-
4123-# Commands used to build and install an old-style archive.
4124-RANLIB=$lt_RANLIB
4125-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4126-old_postinstall_cmds=$lt_old_postinstall_cmds
4127-old_postuninstall_cmds=$lt_old_postuninstall_cmds
4128-
4129-# Create an old-style archive from a shared archive.
4130-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4131-
4132-# Create a temporary old-style archive to link instead of a shared archive.
4133-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4134-
4135-# Commands used to build and install a shared archive.
4136-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4137-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4138-postinstall_cmds=$lt_postinstall_cmds
4139-postuninstall_cmds=$lt_postuninstall_cmds
4140-
4141-# Commands used to build a loadable module (assumed same as above if empty)
4142-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4143-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4144-
4145-# Commands to strip libraries.
4146-old_striplib=$lt_old_striplib
4147-striplib=$lt_striplib
4148-
4149-# Dependencies to place before the objects being linked to create a
4150-# shared library.
4151-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4152-
4153-# Dependencies to place after the objects being linked to create a
4154-# shared library.
4155-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4156-
4157-# Dependencies to place before the objects being linked to create a
4158-# shared library.
4159-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4160-
4161-# Dependencies to place after the objects being linked to create a
4162-# shared library.
4163-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4164-
4165-# The library search path used internally by the compiler when linking
4166-# a shared library.
4167-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4168-
4169-# Method to check whether dependent libraries are shared objects.
4170-deplibs_check_method=$lt_deplibs_check_method
4171-
4172-# Command to use when deplibs_check_method == file_magic.
4173-file_magic_cmd=$lt_file_magic_cmd
4174-
4175-# Flag that allows shared libraries with undefined symbols to be built.
4176-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4177-
4178-# Flag that forces no undefined symbols.
4179-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4180-
4181-# Commands used to finish a libtool library installation in a directory.
4182-finish_cmds=$lt_finish_cmds
4183-
4184-# Same as above, but a single script fragment to be evaled but not shown.
4185-finish_eval=$lt_finish_eval
4186-
4187-# Take the output of nm and produce a listing of raw symbols and C names.
4188-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4189-
4190-# Transform the output of nm in a proper C declaration
4191-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4192-
4193-# Transform the output of nm in a C name address pair
4194-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4195-
4196-# This is the shared library runtime path variable.
4197-runpath_var=$runpath_var
4198-
4199-# This is the shared library path variable.
4200-shlibpath_var=$shlibpath_var
4201-
4202-# Is shlibpath searched before the hard-coded library search path?
4203-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4204-
4205-# How to hardcode a shared library path into an executable.
4206-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4207-
4208-# Whether we should hardcode library paths into libraries.
4209-hardcode_into_libs=$hardcode_into_libs
4210-
4211-# Flag to hardcode \$libdir into a binary during linking.
4212-# This must work even if \$libdir does not exist.
4213-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4214-
4215-# If ld is used when linking, flag to hardcode \$libdir into
4216-# a binary during linking. This must work even if \$libdir does
4217-# not exist.
4218-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4219-
4220-# Whether we need a single -rpath flag with a separated argument.
4221-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4222-
4223-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4224-# resulting binary.
4225-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4226-
4227-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4228-# resulting binary.
4229-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4230-
4231-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4232-# the resulting binary.
4233-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4234-
4235-# Set to yes if building a shared library automatically hardcodes DIR into the library
4236-# and all subsequent libraries and executables linked against it.
4237-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4238-
4239-# Variables whose values should be saved in libtool wrapper scripts and
4240-# restored at relink time.
4241-variables_saved_for_relink="$variables_saved_for_relink"
4242-
4243-# Whether libtool must link a program against all its dependency libraries.
4244-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4245-
4246-# Compile-time system search path for libraries
4247-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4248-
4249-# Run-time system search path for libraries
4250-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4251-
4252-# Fix the shell variable \$srcfile for the compiler.
4253-fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4254-
4255-# Set to yes if exported symbols are required.
4256-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4257-
4258-# The commands to list exported symbols.
4259-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4260-
4261-# The commands to extract the exported symbol list from a shared archive.
4262-extract_expsyms_cmds=$lt_extract_expsyms_cmds
4263-
4264-# Symbols that should not be listed in the preloaded symbols.
4265-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4266-
4267-# Symbols that must always be exported.
4268-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4269-
4270-ifelse([$1],[],
4271-[# ### END LIBTOOL CONFIG],
4272-[# ### END LIBTOOL TAG CONFIG: $tagname])
4273-
4274-__EOF__
4275-
4276-ifelse([$1],[], [
4277- case $host_os in
4278- aix3*)
4279- cat <<\EOF >> "$cfgfile"
4280-
4281-# AIX sometimes has problems with the GCC collect2 program. For some
4282-# reason, if we set the COLLECT_NAMES environment variable, the problems
4283-# vanish in a puff of smoke.
4284-if test "X${COLLECT_NAMES+set}" != Xset; then
4285- COLLECT_NAMES=
4286- export COLLECT_NAMES
4287-fi
4288-EOF
4289- ;;
4290- esac
4291-
4292- # We use sed instead of cat because bash on DJGPP gets confused if
4293- # if finds mixed CR/LF and LF-only lines. Since sed operates in
4294- # text mode, it properly converts lines to CR/LF. This bash problem
4295- # is reportedly fixed, but why not run on old versions too?
4296- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4297-
4298- mv -f "$cfgfile" "$ofile" || \
4299- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4300- chmod +x "$ofile"
4301-])
4302-else
4303- # If there is no Makefile yet, we rely on a make rule to execute
4304- # `config.status --recheck' to rerun these tests and create the
4305- # libtool script then.
4306- test -f Makefile && make "$ltmain"
4307-fi
4308-])# AC_LIBTOOL_CONFIG
4309-
4310-
4311-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4312-# -------------------------------------------
4313-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4314-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4315-
4316-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4317-
4318-if test "$GCC" = yes; then
4319- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4320-
4321- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4322- lt_cv_prog_compiler_rtti_exceptions,
4323- [-fno-rtti -fno-exceptions], [],
4324- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4325-fi
4326-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4327-
4328-
4329-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4330-# ---------------------------------
4331-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4332-[AC_REQUIRE([AC_CANONICAL_HOST])
4333-AC_REQUIRE([AC_PROG_NM])
4334-AC_REQUIRE([AC_OBJEXT])
4335-# Check for command to grab the raw symbol name followed by C symbol from nm.
4336-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4337-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4338-[
4339-# These are sane defaults that work on at least a few old systems.
4340-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4341-
4342-# Character class describing NM global symbol codes.
4343-symcode='[[BCDEGRST]]'
4344-
4345-# Regexp to match symbols that can be accessed directly from C.
4346-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4347-
4348-# Transform the above into a raw symbol and a C symbol.
4349-symxfrm='\1 \2\3 \3'
4350-
4351-# Transform an extracted symbol line into a proper C declaration
4352-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4353-
4354-# Transform an extracted symbol line into symbol name and symbol address
4355-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'"
4356-
4357-# Define system-specific variables.
4358-case $host_os in
4359-aix*)
4360- symcode='[[BCDT]]'
4361- ;;
4362-cygwin* | mingw* | pw32*)
4363- symcode='[[ABCDGISTW]]'
4364- ;;
4365-hpux*) # Its linker distinguishes data from code symbols
4366- if test "$host_cpu" = ia64; then
4367- symcode='[[ABCDEGRST]]'
4368- fi
4369- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4370- 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'"
4371- ;;
4372-irix* | nonstopux*)
4373- symcode='[[BCDEGRST]]'
4374- ;;
4375-osf*)
4376- symcode='[[BCDEGQRST]]'
4377- ;;
4378-solaris* | sysv5*)
4379- symcode='[[BDT]]'
4380- ;;
4381-sysv4)
4382- symcode='[[DFNSTU]]'
4383- ;;
4384-esac
4385-
4386-# Handle CRLF in mingw tool chain
4387-opt_cr=
4388-case $build_os in
4389-mingw*)
4390- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4391- ;;
4392-esac
4393-
4394-# If we're using GNU nm, then use its standard symbol codes.
4395-case `$NM -V 2>&1` in
4396-*GNU* | *'with BFD'*)
4397- symcode='[[ABCDGISTW]]' ;;
4398-esac
4399-
4400-# Try without a prefix undercore, then with it.
4401-for ac_symprfx in "" "_"; do
4402-
4403- # Write the raw and C identifiers.
4404- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4405-
4406- # Check to see that the pipe works correctly.
4407- pipe_works=no
4408-
4409- rm -f conftest*
4410- cat > conftest.$ac_ext <<EOF
4411-#ifdef __cplusplus
4412-extern "C" {
4413-#endif
4414-char nm_test_var;
4415-void nm_test_func(){}
4416-#ifdef __cplusplus
4417-}
4418-#endif
4419-int main(){nm_test_var='a';nm_test_func();return(0);}
4420-EOF
4421-
4422- if AC_TRY_EVAL(ac_compile); then
4423- # Now try to grab the symbols.
4424- nlist=conftest.nm
4425- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4426- # Try sorting and uniquifying the output.
4427- if sort "$nlist" | uniq > "$nlist"T; then
4428- mv -f "$nlist"T "$nlist"
4429- else
4430- rm -f "$nlist"T
4431- fi
4432-
4433- # Make sure that we snagged all the symbols we need.
4434- if grep ' nm_test_var$' "$nlist" >/dev/null; then
4435- if grep ' nm_test_func$' "$nlist" >/dev/null; then
4436- cat <<EOF > conftest.$ac_ext
4437-#ifdef __cplusplus
4438-extern "C" {
4439-#endif
4440-
4441-EOF
4442- # Now generate the symbol file.
4443- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4444-
4445- cat <<EOF >> conftest.$ac_ext
4446-#if defined (__STDC__) && __STDC__
4447-# define lt_ptr_t void *
4448-#else
4449-# define lt_ptr_t char *
4450-# define const
4451-#endif
4452-
4453-/* The mapping between symbol names and symbols. */
4454-const struct {
4455- const char *name;
4456- lt_ptr_t address;
4457-}
4458-lt_preloaded_symbols[[]] =
4459-{
4460-EOF
4461- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4462- cat <<\EOF >> conftest.$ac_ext
4463- {0, (lt_ptr_t) 0}
4464-};
4465-
4466-#ifdef __cplusplus
4467-}
4468-#endif
4469-EOF
4470- # Now try linking the two files.
4471- mv conftest.$ac_objext conftstm.$ac_objext
4472- lt_save_LIBS="$LIBS"
4473- lt_save_CFLAGS="$CFLAGS"
4474- LIBS="conftstm.$ac_objext"
4475- CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4476- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4477- pipe_works=yes
4478- fi
4479- LIBS="$lt_save_LIBS"
4480- CFLAGS="$lt_save_CFLAGS"
4481- else
4482- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4483- fi
4484- else
4485- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4486- fi
4487- else
4488- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4489- fi
4490- else
4491- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4492- cat conftest.$ac_ext >&5
4493- fi
4494- rm -f conftest* conftst*
4495-
4496- # Do not use the global_symbol_pipe unless it works.
4497- if test "$pipe_works" = yes; then
4498- break
4499- else
4500- lt_cv_sys_global_symbol_pipe=
4501- fi
4502-done
4503-])
4504-if test -z "$lt_cv_sys_global_symbol_pipe"; then
4505- lt_cv_sys_global_symbol_to_cdecl=
4506-fi
4507-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4508- AC_MSG_RESULT(failed)
4509-else
4510- AC_MSG_RESULT(ok)
4511-fi
4512-]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4513-
4514-
4515-# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4516-# ---------------------------------------
4517-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4518-[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4519-_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4520-_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4521-
4522-AC_MSG_CHECKING([for $compiler option to produce PIC])
4523- ifelse([$1],[CXX],[
4524- # C++ specific cases for pic, static, wl, etc.
4525- if test "$GXX" = yes; then
4526- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4527- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4528-
4529- case $host_os in
4530- aix*)
4531- # All AIX code is PIC.
4532- if test "$host_cpu" = ia64; then
4533- # AIX 5 now supports IA64 processor
4534- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4535- fi
4536- ;;
4537- amigaos*)
4538- # FIXME: we need at least 68020 code to build shared libraries, but
4539- # adding the `-m68020' flag to GCC prevents building anything better,
4540- # like `-m68040'.
4541- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4542- ;;
4543- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4544- # PIC is the default for these OSes.
4545- ;;
4546- mingw* | os2* | pw32*)
4547- # This hack is so that the source file can tell whether it is being
4548- # built for inclusion in a dll (and should export symbols for example).
4549- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4550- ;;
4551- darwin* | rhapsody*)
4552- # PIC is the default on this platform
4553- # Common symbols not allowed in MH_DYLIB files
4554- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4555- ;;
4556- *djgpp*)
4557- # DJGPP does not support shared libraries at all
4558- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4559- ;;
4560- sysv4*MP*)
4561- if test -d /usr/nec; then
4562- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4563- fi
4564- ;;
4565- hpux*)
4566- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4567- # not for PA HP-UX.
4568- case "$host_cpu" in
4569- hppa*64*|ia64*)
4570- ;;
4571- *)
4572- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4573- ;;
4574- esac
4575- ;;
4576- *)
4577- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4578- ;;
4579- esac
4580- else
4581- case $host_os in
4582- aix4* | aix5*)
4583- # All AIX code is PIC.
4584- if test "$host_cpu" = ia64; then
4585- # AIX 5 now supports IA64 processor
4586- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4587- else
4588- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4589- fi
4590- ;;
4591- chorus*)
4592- case $cc_basename in
4593- cxch68)
4594- # Green Hills C++ Compiler
4595- # _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"
4596- ;;
4597- esac
4598- ;;
4599- dgux*)
4600- case $cc_basename in
4601- ec++)
4602- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4603- ;;
4604- ghcx)
4605- # Green Hills C++ Compiler
4606- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4607- ;;
4608- *)
4609- ;;
4610- esac
4611- ;;
4612- freebsd* | kfreebsd*-gnu)
4613- # FreeBSD uses GNU C++
4614- ;;
4615- hpux9* | hpux10* | hpux11*)
4616- case $cc_basename in
4617- CC)
4618- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4619- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4620- if test "$host_cpu" != ia64; then
4621- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4622- fi
4623- ;;
4624- aCC)
4625- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4626- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4627- case "$host_cpu" in
4628- hppa*64*|ia64*)
4629- # +Z the default
4630- ;;
4631- *)
4632- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4633- ;;
4634- esac
4635- ;;
4636- *)
4637- ;;
4638- esac
4639- ;;
4640- irix5* | irix6* | nonstopux*)
4641- case $cc_basename in
4642- CC)
4643- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4644- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4645- # CC pic flag -KPIC is the default.
4646- ;;
4647- *)
4648- ;;
4649- esac
4650- ;;
4651- linux*)
4652- case $cc_basename in
4653- KCC)
4654- # KAI C++ Compiler
4655- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4656- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4657- ;;
4658- icpc)
4659- # Intel C++
4660- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4662- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4663- ;;
4664- cxx)
4665- # Compaq C++
4666- # Make sure the PIC flag is empty. It appears that all Alpha
4667- # Linux and Compaq Tru64 Unix objects are PIC.
4668- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4669- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4670- ;;
4671- *)
4672- ;;
4673- esac
4674- ;;
4675- lynxos*)
4676- ;;
4677- m88k*)
4678- ;;
4679- mvs*)
4680- case $cc_basename in
4681- cxx)
4682- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4683- ;;
4684- *)
4685- ;;
4686- esac
4687- ;;
4688- netbsd*)
4689- ;;
4690- osf3* | osf4* | osf5*)
4691- case $cc_basename in
4692- KCC)
4693- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4694- ;;
4695- RCC)
4696- # Rational C++ 2.4.1
4697- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4698- ;;
4699- cxx)
4700- # Digital/Compaq C++
4701- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4702- # Make sure the PIC flag is empty. It appears that all Alpha
4703- # Linux and Compaq Tru64 Unix objects are PIC.
4704- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4705- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4706- ;;
4707- *)
4708- ;;
4709- esac
4710- ;;
4711- psos*)
4712- ;;
4713- sco*)
4714- case $cc_basename in
4715- CC)
4716- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4717- ;;
4718- *)
4719- ;;
4720- esac
4721- ;;
4722- solaris*)
4723- case $cc_basename in
4724- CC)
4725- # Sun C++ 4.2, 5.x and Centerline C++
4726- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4727- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4728- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4729- ;;
4730- gcx)
4731- # Green Hills C++ Compiler
4732- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4733- ;;
4734- *)
4735- ;;
4736- esac
4737- ;;
4738- sunos4*)
4739- case $cc_basename in
4740- CC)
4741- # Sun C++ 4.x
4742- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4743- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4744- ;;
4745- lcc)
4746- # Lucid
4747- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4748- ;;
4749- *)
4750- ;;
4751- esac
4752- ;;
4753- tandem*)
4754- case $cc_basename in
4755- NCC)
4756- # NonStop-UX NCC 3.20
4757- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4758- ;;
4759- *)
4760- ;;
4761- esac
4762- ;;
4763- unixware*)
4764- ;;
4765- vxworks*)
4766- ;;
4767- *)
4768- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4769- ;;
4770- esac
4771- fi
4772-],
4773-[
4774- if test "$GCC" = yes; then
4775- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4776- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4777-
4778- case $host_os in
4779- aix*)
4780- # All AIX code is PIC.
4781- if test "$host_cpu" = ia64; then
4782- # AIX 5 now supports IA64 processor
4783- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4784- fi
4785- ;;
4786-
4787- amigaos*)
4788- # FIXME: we need at least 68020 code to build shared libraries, but
4789- # adding the `-m68020' flag to GCC prevents building anything better,
4790- # like `-m68040'.
4791- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4792- ;;
4793-
4794- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4795- # PIC is the default for these OSes.
4796- ;;
4797-
4798- mingw* | pw32* | os2*)
4799- # This hack is so that the source file can tell whether it is being
4800- # built for inclusion in a dll (and should export symbols for example).
4801- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4802- ;;
4803-
4804- darwin* | rhapsody*)
4805- # PIC is the default on this platform
4806- # Common symbols not allowed in MH_DYLIB files
4807- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4808- ;;
4809-
4810- msdosdjgpp*)
4811- # Just because we use GCC doesn't mean we suddenly get shared libraries
4812- # on systems that don't support them.
4813- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4814- enable_shared=no
4815- ;;
4816-
4817- sysv4*MP*)
4818- if test -d /usr/nec; then
4819- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4820- fi
4821- ;;
4822-
4823- hpux*)
4824- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4825- # not for PA HP-UX.
4826- case "$host_cpu" in
4827- hppa*64*|ia64*)
4828- # +Z the default
4829- ;;
4830- *)
4831- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4832- ;;
4833- esac
4834- ;;
4835-
4836- *)
4837- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4838- ;;
4839- esac
4840- else
4841- # PORTME Check for flag to pass linker flags through the system compiler.
4842- case $host_os in
4843- aix*)
4844- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4845- if test "$host_cpu" = ia64; then
4846- # AIX 5 now supports IA64 processor
4847- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4848- else
4849- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4850- fi
4851- ;;
4852-
4853- mingw* | pw32* | os2*)
4854- # This hack is so that the source file can tell whether it is being
4855- # built for inclusion in a dll (and should export symbols for example).
4856- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4857- ;;
4858-
4859- hpux9* | hpux10* | hpux11*)
4860- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4861- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4862- # not for PA HP-UX.
4863- case "$host_cpu" in
4864- hppa*64*|ia64*)
4865- # +Z the default
4866- ;;
4867- *)
4868- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4869- ;;
4870- esac
4871- # Is there a better lt_prog_compiler_static that works with the bundled CC?
4872- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4873- ;;
4874-
4875- irix5* | irix6* | nonstopux*)
4876- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4877- # PIC (with -KPIC) is the default.
4878- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4879- ;;
4880-
4881- newsos6)
4882- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4883- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4884- ;;
4885-
4886- linux*)
4887- case $CC in
4888- icc* | ecc*)
4889- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4890- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4891- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4892- ;;
4893- ccc*)
4894- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4895- # All Alpha code is PIC.
4896- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4897- ;;
4898- esac
4899- ;;
4900-
4901- osf3* | osf4* | osf5*)
4902- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903- # All OSF/1 code is PIC.
4904- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4905- ;;
4906-
4907- sco3.2v5*)
4908- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4909- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4910- ;;
4911-
4912- solaris*)
4913- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4914- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4915- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4916- ;;
4917-
4918- sunos4*)
4919- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4920- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4921- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4922- ;;
4923-
4924- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4925- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4926- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4927- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4928- ;;
4929-
4930- sysv4*MP*)
4931- if test -d /usr/nec ;then
4932- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4933- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4934- fi
4935- ;;
4936-
4937- uts4*)
4938- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4939- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4940- ;;
4941-
4942- *)
4943- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4944- ;;
4945- esac
4946- fi
4947-])
4948-AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4949-
4950-#
4951-# Check to make sure the PIC flag actually works.
4952-#
4953-if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
4954- AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
4955- _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
4956- [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
4957- [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4958- "" | " "*) ;;
4959- *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4960- esac],
4961- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4962- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4963-fi
4964-case "$host_os" in
4965- # For platforms which do not support PIC, -DPIC is meaningless:
4966- *djgpp*)
4967- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4968- ;;
4969- *)
4970- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4971- ;;
4972-esac
4973-])
4974-
4975-
4976-# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
4977-# ------------------------------------
4978-# See if the linker supports building shared libraries.
4979-AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
4980-[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4981-ifelse([$1],[CXX],[
4982- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4983- case $host_os in
4984- aix4* | aix5*)
4985- # If we're using GNU nm, then we don't want the "-C" option.
4986- # -C means demangle to AIX nm, but means don't demangle with GNU nm
4987- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4988- _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'
4989- else
4990- _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'
4991- fi
4992- ;;
4993- pw32*)
4994- _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4995- ;;
4996- cygwin* | mingw*)
4997- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4998- ;;
4999- *)
5000- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5001- ;;
5002- esac
5003-],[
5004- runpath_var=
5005- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5006- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5007- _LT_AC_TAGVAR(archive_cmds, $1)=
5008- _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5009- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5010- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5011- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5012- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5013- _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5014- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5015- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5016- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5017- _LT_AC_TAGVAR(hardcode_direct, $1)=no
5018- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5019- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5020- _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5021- _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5022- _LT_AC_TAGVAR(module_cmds, $1)=
5023- _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5024- _LT_AC_TAGVAR(always_export_symbols, $1)=no
5025- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5026- # include_expsyms should be a list of space-separated symbols to be *always*
5027- # included in the symbol list
5028- _LT_AC_TAGVAR(include_expsyms, $1)=
5029- # exclude_expsyms can be an extended regexp of symbols to exclude
5030- # it will be wrapped by ` (' and `)$', so one must not match beginning or
5031- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5032- # as well as any symbol that contains `d'.
5033- _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5034- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5035- # platforms (ab)use it in PIC code, but their linkers get confused if
5036- # the symbol is explicitly referenced. Since portable code cannot
5037- # rely on this symbol name, it's probably fine to never include it in
5038- # preloaded symbol tables.
5039- extract_expsyms_cmds=
5040-
5041- case $host_os in
5042- cygwin* | mingw* | pw32*)
5043- # FIXME: the MSVC++ port hasn't been tested in a loooong time
5044- # When not using gcc, we currently assume that we are using
5045- # Microsoft Visual C++.
5046- if test "$GCC" != yes; then
5047- with_gnu_ld=no
5048- fi
5049- ;;
5050- openbsd*)
5051- with_gnu_ld=no
5052- ;;
5053- esac
5054-
5055- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5056- if test "$with_gnu_ld" = yes; then
5057- # If archive_cmds runs LD, not CC, wlarc should be empty
5058- wlarc='${wl}'
5059-
5060- # See if GNU ld supports shared libraries.
5061- case $host_os in
5062- aix3* | aix4* | aix5*)
5063- # On AIX/PPC, the GNU linker is very broken
5064- if test "$host_cpu" != ia64; then
5065- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5066- cat <<EOF 1>&2
5067-
5068-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5069-*** to be unable to reliably create shared libraries on AIX.
5070-*** Therefore, libtool is disabling shared libraries support. If you
5071-*** really care for shared libraries, you may want to modify your PATH
5072-*** so that a non-GNU linker is found, and then restart.
5073-
5074-EOF
5075- fi
5076- ;;
5077-
5078- amigaos*)
5079- _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)'
5080- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5081- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5082-
5083- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5084- # that the semantics of dynamic libraries on AmigaOS, at least up
5085- # to version 4, is to share data among multiple programs linked
5086- # with the same dynamic library. Since this doesn't match the
5087- # behavior of shared libraries on other platforms, we can't use
5088- # them.
5089- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5090- ;;
5091-
5092- beos*)
5093- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5094- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5095- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5096- # support --undefined. This deserves some investigation. FIXME
5097- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
5098- else
5099- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5100- fi
5101- ;;
5102-
5103- cygwin* | mingw* | pw32*)
5104- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5105- # as there is no search path for DLLs.
5106- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5107- _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
5108- _LT_AC_TAGVAR(always_export_symbols, $1)=no
5109- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5110- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5111-
5112- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5113- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5114- # If the export-symbols file already is a .def file (1st line
5115- # is EXPORTS), use it as is; otherwise, prepend...
5116- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5117- cp $export_symbols $output_objdir/$soname.def;
5118- else
5119- echo EXPORTS > $output_objdir/$soname.def;
5120- cat $export_symbols >> $output_objdir/$soname.def;
5121- fi~
5122- $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5123- else
5124- ld_shlibs=no
5125- fi
5126- ;;
5127-
5128- netbsd*)
5129- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5130- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5131- wlarc=
5132- else
5133- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
5134- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5135- fi
5136- ;;
5137-
5138- solaris* | sysv5*)
5139- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5140- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5141- cat <<EOF 1>&2
5142-
5143-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5144-*** create shared libraries on Solaris systems. Therefore, libtool
5145-*** is disabling shared libraries support. We urge you to upgrade GNU
5146-*** binutils to release 2.9.1 or newer. Another option is to modify
5147-*** your PATH or compiler configuration so that the native linker is
5148-*** used, and then restart.
5149-
5150-EOF
5151- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5152- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
5153- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5154- else
5155- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5156- fi
5157- ;;
5158-
5159- sunos4*)
5160- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5161- wlarc=
5162- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5163- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5164- ;;
5165-
5166- *)
5167- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5168- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
5169- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5170- else
5171- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5172- fi
5173- ;;
5174- esac
5175-
5176- if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5177- runpath_var=LD_RUN_PATH
5178- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5179- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5180- # ancient GNU ld didn't support --whole-archive et. al.
5181- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5182- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5183- else
5184- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5185- fi
5186- fi
5187- else
5188- # PORTME fill in a description of your system's linker (not GNU ld)
5189- case $host_os in
5190- aix3*)
5191- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5192- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5193- _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'
5194- # Note: this linker hardcodes the directories in LIBPATH if there
5195- # are no directories specified by -L.
5196- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5197- if test "$GCC" = yes && test -z "$link_static_flag"; then
5198- # Neither direct hardcoding nor static linking is supported with a
5199- # broken collect2.
5200- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5201- fi
5202- ;;
5203-
5204- aix4* | aix5*)
5205- if test "$host_cpu" = ia64; then
5206- # On IA64, the linker does run time linking by default, so we don't
5207- # have to do anything special.
5208- aix_use_runtimelinking=no
5209- exp_sym_flag='-Bexport'
5210- no_entry_flag=""
5211- else
5212- # If we're using GNU nm, then we don't want the "-C" option.
5213- # -C means demangle to AIX nm, but means don't demangle with GNU nm
5214- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5215- _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'
5216- else
5217- _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'
5218- fi
5219-
5220- # KDE requires run time linking. Make it the default.
5221- aix_use_runtimelinking=yes
5222- exp_sym_flag='-bexport'
5223- no_entry_flag='-bnoentry'
5224- fi
5225-
5226- # When large executables or shared objects are built, AIX ld can
5227- # have problems creating the table of contents. If linking a library
5228- # or program results in "error TOC overflow" add -mminimal-toc to
5229- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5230- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5231-
5232- _LT_AC_TAGVAR(archive_cmds, $1)=''
5233- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5234- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5235- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5236-
5237- if test "$GCC" = yes; then
5238- case $host_os in aix4.[012]|aix4.[012].*)
5239- # We only want to do this on AIX 4.2 and lower, the check
5240- # below for broken collect2 doesn't work under 4.3+
5241- collect2name=`${CC} -print-prog-name=collect2`
5242- if test -f "$collect2name" && \
5243- strings "$collect2name" | grep resolve_lib_name >/dev/null
5244- then
5245- # We have reworked collect2
5246- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5247- else
5248- # We have old collect2
5249- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5250- # It fails to find uninstalled libraries when the uninstalled
5251- # path is not listed in the libpath. Setting hardcode_minus_L
5252- # to unsupported forces relinking
5253- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5254- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5255- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5256- fi
5257- esac
5258- shared_flag='-shared'
5259- else
5260- # not using gcc
5261- if test "$host_cpu" = ia64; then
5262- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5263- # chokes on -Wl,-G. The following line is correct:
5264- shared_flag='-G'
5265- else
5266- if test "$aix_use_runtimelinking" = yes; then
5267- shared_flag='-qmkshrobj ${wl}-G'
5268- else
5269- shared_flag='-qmkshrobj'
5270- fi
5271- fi
5272- fi
5273-
5274- # Let the compiler handle the export list.
5275- _LT_AC_TAGVAR(always_export_symbols, $1)=no
5276- if test "$aix_use_runtimelinking" = yes; then
5277- # Warning - without using the other runtime loading flags (-brtl),
5278- # -berok will link without error, but may produce a broken library.
5279- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5280- # Determine the default libpath from the value encoded in an empty executable.
5281- _LT_AC_SYS_LIBPATH_AIX
5282- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5283- _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
5284- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5285- else
5286- if test "$host_cpu" = ia64; then
5287- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5288- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5289- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5290- else
5291- # Determine the default libpath from the value encoded in an empty executable.
5292- _LT_AC_SYS_LIBPATH_AIX
5293- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5294- # Warning - without using the other run time loading flags,
5295- # -berok will link without error, but may produce a broken library.
5296- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5297- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5298- # -bexpall does not export symbols beginning with underscore (_)
5299- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5300- # Exported symbols can be pulled into shared objects from archives
5301- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5302- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5303- # This is similar to how AIX traditionally builds it's shared libraries.
5304- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5305- fi
5306- fi
5307- ;;
5308-
5309- amigaos*)
5310- _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)'
5311- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5312- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5313- # see comment about different semantics on the GNU ld section
5314- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5315- ;;
5316-
5317- bsdi4*)
5318- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5319- ;;
5320-
5321- cygwin* | mingw* | pw32*)
5322- # When not using gcc, we currently assume that we are using
5323- # Microsoft Visual C++.
5324- # hardcode_libdir_flag_spec is actually meaningless, as there is
5325- # no search path for DLLs.
5326- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5327- _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
5328- # Tell ltmain to make .lib files, not .a files.
5329- libext=lib
5330- # Tell ltmain to make .dll files, not .so files.
5331- shrext=".dll"
5332- # FIXME: Setting linknames here is a bad hack.
5333- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5334- # The linker will automatically build a .lib file if we build a DLL.
5335- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5336- # FIXME: Should let the user specify the lib program.
5337- _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5338- fix_srcfile_path='`cygpath -w "$srcfile"`'
5339- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5340- ;;
5341-
5342- darwin* | rhapsody*)
5343- if test "$GXX" = yes ; then
5344- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5345- case "$host_os" in
5346- rhapsody* | darwin1.[[012]])
5347- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
5348- ;;
5349- *) # Darwin 1.3 on
5350- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5351- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
5352- else
5353- case ${MACOSX_DEPLOYMENT_TARGET} in
5354- 10.[012])
5355- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
5356- ;;
5357- 10.*)
5358- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
5359- ;;
5360- esac
5361- fi
5362- ;;
5363- esac
5364- lt_int_apple_cc_single_mod=no
5365- output_verbose_link_cmd='echo'
5366- if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5367- lt_int_apple_cc_single_mod=yes
5368- fi
5369- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5370- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
5371- else
5372- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
5373- fi
5374- _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
5375- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5376- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5377- _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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5378- else
5379- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5380- fi
5381- _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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5382- _LT_AC_TAGVAR(hardcode_direct, $1)=no
5383- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5384- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5385- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5386- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5387- else
5388- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5389- fi
5390- ;;
5391-
5392- dgux*)
5393- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5394- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5395- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5396- ;;
5397-
5398- freebsd1*)
5399- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5400- ;;
5401-
5402- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5403- # support. Future versions do this automatically, but an explicit c++rt0.o
5404- # does not break anything, and helps significantly (at the cost of a little
5405- # extra space).
5406- freebsd2.2*)
5407- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5408- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5409- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5410- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5411- ;;
5412-
5413- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5414- freebsd2*)
5415- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5416- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5417- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5418- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5419- ;;
5420-
5421- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5422- freebsd* | kfreebsd*-gnu)
5423- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
5424- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5425- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5426- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5427- ;;
5428-
5429- hpux9*)
5430- if test "$GCC" = yes; then
5431- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5432- else
5433- _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'
5434- fi
5435- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5436- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5437- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5438-
5439- # hardcode_minus_L: Not really in the search PATH,
5440- # but as the default location of the library.
5441- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5442- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5443- ;;
5444-
5445- hpux10* | hpux11*)
5446- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5447- case "$host_cpu" in
5448- hppa*64*|ia64*)
5449- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
5450- ;;
5451- *)
5452- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
5453- ;;
5454- esac
5455- else
5456- case "$host_cpu" in
5457- hppa*64*|ia64*)
5458- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5459- ;;
5460- *)
5461- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5462- ;;
5463- esac
5464- fi
5465- if test "$with_gnu_ld" = no; then
5466- case "$host_cpu" in
5467- hppa*64*)
5468- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5469- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5470- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5471- _LT_AC_TAGVAR(hardcode_direct, $1)=no
5472- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5473- ;;
5474- ia64*)
5475- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5476- _LT_AC_TAGVAR(hardcode_direct, $1)=no
5477- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5478-
5479- # hardcode_minus_L: Not really in the search PATH,
5480- # but as the default location of the library.
5481- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5482- ;;
5483- *)
5484- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5485- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5486- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5487- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5488-
5489- # hardcode_minus_L: Not really in the search PATH,
5490- # but as the default location of the library.
5491- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5492- ;;
5493- esac
5494- fi
5495- ;;
5496-
5497- irix5* | irix6* | nonstopux*)
5498- if test "$GCC" = yes; then
5499- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5500- else
5501- _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'
5502- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5503- fi
5504- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5505- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5506- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5507- ;;
5508-
5509- netbsd*)
5510- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5511- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5512- else
5513- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5514- fi
5515- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5516- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5517- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5518- ;;
5519-
5520- newsos6)
5521- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5522- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5523- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5524- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5525- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5526- ;;
5527-
5528- openbsd*)
5529- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5530- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5531- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5532- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
5533- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5534- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5535- else
5536- case $host_os in
5537- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5538- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5539- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5540- ;;
5541- *)
5542- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
5543- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5544- ;;
5545- esac
5546- fi
5547- ;;
5548-
5549- os2*)
5550- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5551- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5552- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5553- _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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
5554- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5555- ;;
5556-
5557- osf3*)
5558- if test "$GCC" = yes; then
5559- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5560- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5561- else
5562- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5563- _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'
5564- fi
5565- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5566- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5567- ;;
5568-
5569- osf4* | osf5*) # as osf3* with the addition of -msym flag
5570- if test "$GCC" = yes; then
5571- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5572- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
5573- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5574- else
5575- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5576- _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'
5577- _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~
5578- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5579-
5580- # Both c and cxx compiler support -rpath directly
5581- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5582- fi
5583- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5584- ;;
5585-
5586- sco3.2v5*)
5587- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5588- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5589- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5590- runpath_var=LD_RUN_PATH
5591- hardcode_runpath_var=yes
5592- ;;
5593-
5594- solaris*)
5595- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5596- if test "$GCC" = yes; then
5597- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
5598- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5599- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
5600- else
5601- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5602- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5603- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5604- fi
5605- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5606- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5607- case $host_os in
5608- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5609- *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5610- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5611- esac
5612- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5613- ;;
5614-
5615- sunos4*)
5616- if test "x$host_vendor" = xsequent; then
5617- # Use $CC to link under sequent, because it throws in some extra .o
5618- # files that make .init and .fini sections work.
5619- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
5620- else
5621- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5622- fi
5623- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5624- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5625- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5626- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5627- ;;
5628-
5629- sysv4)
5630- case $host_vendor in
5631- sni)
5632- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5633- _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5634- ;;
5635- siemens)
5636- ## LD is ld it makes a PLAMLIB
5637- ## CC just makes a GrossModule.
5638- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5639- _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5640- _LT_AC_TAGVAR(hardcode_direct, $1)=no
5641- ;;
5642- motorola)
5643- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5644- _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5645- ;;
5646- esac
5647- runpath_var='LD_RUN_PATH'
5648- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5649- ;;
5650-
5651- sysv4.3*)
5652- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5653- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5654- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5655- ;;
5656-
5657- sysv4*MP*)
5658- if test -d /usr/nec; then
5659- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5660- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5661- runpath_var=LD_RUN_PATH
5662- hardcode_runpath_var=yes
5663- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5664- fi
5665- ;;
5666-
5667- sysv4.2uw2*)
5668- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5669- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5670- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5671- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5672- hardcode_runpath_var=yes
5673- runpath_var=LD_RUN_PATH
5674- ;;
5675-
5676- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5677- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5678- if test "$GCC" = yes; then
5679- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
5680- else
5681- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
5682- fi
5683- runpath_var='LD_RUN_PATH'
5684- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5685- ;;
5686-
5687- sysv5*)
5688- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5689- # $CC -shared without GNU ld will not create a library from C++
5690- # object files and a static libstdc++, better avoid it by now
5691- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5692- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5693- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5694- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5695- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5696- runpath_var='LD_RUN_PATH'
5697- ;;
5698-
5699- uts4*)
5700- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5701- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5702- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5703- ;;
5704-
5705- *)
5706- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5707- ;;
5708- esac
5709- fi
5710-])
5711-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5712-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5713-
5714-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5715-if test "$GCC" = yes; then
5716- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5717-fi
5718-
5719-#
5720-# Do we need to explicitly link libc?
5721-#
5722-case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5723-x|xyes)
5724- # Assume -lc should be added
5725- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5726-
5727- if test "$enable_shared" = yes && test "$GCC" = yes; then
5728- case $_LT_AC_TAGVAR(archive_cmds, $1) in
5729- *'~'*)
5730- # FIXME: we may have to deal with multi-command sequences.
5731- ;;
5732- '$CC '*)
5733- # Test whether the compiler implicitly links with -lc since on some
5734- # systems, -lgcc has to come before -lc. If gcc already passes -lc
5735- # to ld, don't add -lc before -lgcc.
5736- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5737- $rm conftest*
5738- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5739-
5740- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5741- soname=conftest
5742- lib=conftest
5743- libobjs=conftest.$ac_objext
5744- deplibs=
5745- wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5746- compiler_flags=-v
5747- linker_flags=-v
5748- verstring=
5749- output_objdir=.
5750- libname=conftest
5751- lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
5752- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5753- if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5754- then
5755- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5756- else
5757- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5758- fi
5759- _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5760- else
5761- cat conftest.err 1>&5
5762- fi
5763- $rm conftest*
5764- AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5765- ;;
5766- esac
5767- fi
5768- ;;
5769-esac
5770-])# AC_LIBTOOL_PROG_LD_SHLIBS
5771-
5772-
5773-# _LT_AC_FILE_LTDLL_C
5774-# -------------------
5775-# Be careful that the start marker always follows a newline.
5776-AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
5777-# /* ltdll.c starts here */
5778-# #define WIN32_LEAN_AND_MEAN
5779-# #include <windows.h>
5780-# #undef WIN32_LEAN_AND_MEAN
5781-# #include <stdio.h>
5782-#
5783-# #ifndef __CYGWIN__
5784-# # ifdef __CYGWIN32__
5785-# # define __CYGWIN__ __CYGWIN32__
5786-# # endif
5787-# #endif
5788-#
5789-# #ifdef __cplusplus
5790-# extern "C" {
5791-# #endif
5792-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5793-# #ifdef __cplusplus
5794-# }
5795-# #endif
5796-#
5797-# #ifdef __CYGWIN__
5798-# #include <cygwin/cygwin_dll.h>
5799-# DECLARE_CYGWIN_DLL( DllMain );
5800-# #endif
5801-# HINSTANCE __hDllInstance_base;
5802-#
5803-# BOOL APIENTRY
5804-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5805-# {
5806-# __hDllInstance_base = hInst;
5807-# return TRUE;
5808-# }
5809-# /* ltdll.c ends here */
5810-])# _LT_AC_FILE_LTDLL_C
5811-
5812-
5813-# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5814-# ---------------------------------
5815-AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
5816-
5817-
5818-# old names
5819-AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
5820-AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
5821-AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
5822-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
5823-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
5824-AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
5825-AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
5826-
5827-# This is just to silence aclocal about the macro not being used
5828-ifelse([AC_DISABLE_FAST_INSTALL])
5829-
5830-AC_DEFUN([LT_AC_PROG_GCJ],
5831-[AC_CHECK_TOOL(GCJ, gcj, no)
5832- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5833- AC_SUBST(GCJFLAGS)
5834-])
5835-
5836-AC_DEFUN([LT_AC_PROG_RC],
5837-[AC_CHECK_TOOL(RC, windres, no)
5838-])
5839-
5840-############################################################
5841-# NOTE: This macro has been submitted for inclusion into #
5842-# GNU Autoconf as AC_PROG_SED. When it is available in #
5843-# a released version of Autoconf we should remove this #
5844-# macro and use it instead. #
5845-############################################################
5846-# LT_AC_PROG_SED
5847-# --------------
5848-# Check for a fully-functional sed program, that truncates
5849-# as few characters as possible. Prefer GNU sed if found.
5850-AC_DEFUN([LT_AC_PROG_SED],
5851-[AC_MSG_CHECKING([for a sed that does not truncate output])
5852-AC_CACHE_VAL(lt_cv_path_SED,
5853-[# Loop through the user's path and test for sed and gsed.
5854-# Then use that list of sed's as ones to test for truncation.
5855-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856-for as_dir in $PATH
5857-do
5858- IFS=$as_save_IFS
5859- test -z "$as_dir" && as_dir=.
5860- for lt_ac_prog in sed gsed; do
5861- for ac_exec_ext in '' $ac_executable_extensions; do
5862- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5863- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5864- fi
5865- done
5866- done
5867-done
5868-lt_ac_max=0
5869-lt_ac_count=0
5870-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5871-# along with /bin/sed that truncates output.
5872-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5873- test ! -f $lt_ac_sed && break
5874- cat /dev/null > conftest.in
5875- lt_ac_count=0
5876- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5877- # Check for GNU sed and select it if it is found.
5878- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5879- lt_cv_path_SED=$lt_ac_sed
5880- break
5881- fi
5882- while true; do
5883- cat conftest.in conftest.in >conftest.tmp
5884- mv conftest.tmp conftest.in
5885- cp conftest.in conftest.nl
5886- echo >>conftest.nl
5887- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5888- cmp -s conftest.out conftest.nl || break
5889- # 10000 chars as input seems more than enough
5890- test $lt_ac_count -gt 10 && break
5891- lt_ac_count=`expr $lt_ac_count + 1`
5892- if test $lt_ac_count -gt $lt_ac_max; then
5893- lt_ac_max=$lt_ac_count
5894- lt_cv_path_SED=$lt_ac_sed
5895- fi
5896- done
5897-done
5898-])
5899-SED=$lt_cv_path_SED
5900-AC_MSG_RESULT([$SED])
5901-])
5902Index: taglib-1.6.3/Makefile.am
5903===================================================================
5904--- taglib-1.6.3.orig/Makefile.am 2010-04-12 17:43:03.000000000 +0000
5905+++ taglib-1.6.3/Makefile.am 2012-03-23 18:27:45.665984775 +0000
5906@@ -8,8 +8,8 @@
5907 $(top_srcdir)/subdirs:
5908 cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
5909
5910-$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
5911- @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
5912+$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in
5913+ @cd $(top_srcdir) && cat admin/acinclude.m4.in > acinclude.m4
5914
5915 MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
5916
diff --git a/meta/recipes-support/taglib/taglib_1.6.3.bb b/meta/recipes-support/taglib/taglib_1.8.bb
index bda7d027ae..c713e438a8 100644
--- a/meta/recipes-support/taglib/taglib_1.6.3.bb
+++ b/meta/recipes-support/taglib/taglib_1.8.bb
@@ -2,22 +2,21 @@ DESCRIPTION = "TagLib is a library for reading and editing the meta-data of seve
2SECTION = "libs/multimedia" 2SECTION = "libs/multimedia"
3HOMEPAGE = "http://developer.kde.org/~wheeler/taglib.html" 3HOMEPAGE = "http://developer.kde.org/~wheeler/taglib.html"
4LICENSE = "LGPLv2.1 | MPL-1" 4LICENSE = "LGPLv2.1 | MPL-1"
5LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=db979804f025cf55aabec7129cb671ed \ 5LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \
6 file://COPYING.MPL;md5=bfe1f75d606912a4111c90743d6c7325 \ 6 file://COPYING.MPL;md5=bfe1f75d606912a4111c90743d6c7325 \
7 file://taglib/audioproperties.h;beginline=1;endline=24;md5=39dcdd772f378a0f8c9a41bc929eccce" 7 file://taglib/audioproperties.h;beginline=1;endline=24;md5=9df2c7399519b7310568a7c55042ecee"
8 8
9PR = "r2" 9PR = "r0"
10# http://developer.kde.org/~wheeler/files/src/taglib-${PV}.tar.gz 10# http://developer.kde.org/~wheeler/files/src/taglib-${PV}.tar.gz
11SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.gz \ 11SRC_URI = "https://github.com/downloads/taglib/taglib/taglib-1.8.tar.gz \
12 file://configuretweak.patch \ 12 "
13 file://nolibtool.patch"
14 13
15SRC_URI[md5sum] = "ddf02f4e1d2dc30f76734df806e613eb" 14SRC_URI[md5sum] = "dcb8bd1b756f2843e18b1fdf3aaeee15"
16SRC_URI[sha256sum] = "a9ba089cc2c6d26d266bad492de31cadaeb878dea858e22ae3196091718f284b" 15SRC_URI[sha256sum] = "66d33481703c90236a0a9d1c38fd81b584ca7109ded049225f5463dcaffc209a"
17 16
18S = "${WORKDIR}/taglib-${PV}" 17S = "${WORKDIR}/taglib-${PV}"
19 18
20inherit autotools pkgconfig binconfig 19inherit cmake pkgconfig binconfig
21 20
22PACKAGES =+ "${PN}-c" 21PACKAGES =+ "${PN}-c"
23FILES_${PN}-c = "${libdir}/libtag_c.so.*" 22FILES_${PN}-c = "${libdir}/libtag_c.so.*"