1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
25
# This file is free software, distributed under the terms of the GNU
26
# General Public License. As a special exception to the GNU General
27
# Public License, this file may be distributed as part of a program
28
# that contains a configuration script generated by Autoconf, under
29
# the same distribution terms as the rest of that program.
31
# This file can be copied and used freely without restrictions. It can
32
# be used in projects which are not available under the GNU Public License
33
# but which still want to provide support for the GNU gettext functionality.
35
# Macro to add for using GNU gettext.
36
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
38
# Modified to never use included libintl.
39
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
41
# Major rework to remove unused code
42
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
44
# Added better handling of ALL_LINGUAS from GNU gettext version
45
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
47
# Modified to require ngettext
48
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
50
# We need this here as well, since someone might use autoconf-2.5x
51
# to configure GLib then an older version to configure a package
52
# using AM_GLIB_GNU_GETTEXT
56
dnl We go to great lengths to make sure that aclocal won't
57
dnl try to pull in the installed version of these macros
58
dnl when running aclocal in the glib directory.
60
m4_copy([AC_DEFUN],[glib_DEFUN])
61
m4_copy([AC_REQUIRE],[glib_REQUIRE])
63
dnl At the end, if we're not within glib, we'll define the public
64
dnl definitions in terms of our private definitions.
69
glib_DEFUN([GLIB_LC_MESSAGES],
70
[AC_CHECK_HEADERS([locale.h])
71
if test $ac_cv_header_locale_h = yes; then
72
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75
if test $am_cv_val_LC_MESSAGES = yes; then
76
AC_DEFINE(HAVE_LC_MESSAGES, 1,
77
[Define if your <locale.h> file defines LC_MESSAGES.])
81
# GLIB_PATH_PROG_WITH_TEST
82
#----------------------------
83
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86
[# Extract the first word of "$2", so it can be a program name with args.
87
set dummy $2; ac_word=[$]2
88
AC_MSG_CHECKING([for $ac_word])
89
AC_CACHE_VAL(ac_cv_path_$1,
92
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
95
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96
for ac_dir in ifelse([$5], , $PATH, [$5]); do
97
test -z "$ac_dir" && ac_dir=.
98
if test -f $ac_dir/$ac_word; then
100
ac_cv_path_$1="$ac_dir/$ac_word"
106
dnl If no 4th arg is given, leave the cache variable unset,
107
dnl so AC_PATH_PROGS will keep looking.
108
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
113
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
123
glib_DEFUN([GLIB_WITH_NLS],
124
dnl NLS is obligatory
128
gt_cv_have_gettext=no
134
AC_CHECK_HEADER(libintl.h,
135
[gt_cv_func_dgettext_libintl="no"
136
libintl_extra_libs=""
139
# First check in libc
141
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
145
[return !ngettext ("","", 1)],
146
gt_cv_func_ngettext_libc=yes,
147
gt_cv_func_ngettext_libc=no)
150
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
155
[return !dgettext ("","")],
156
gt_cv_func_dgettext_libc=yes,
157
gt_cv_func_dgettext_libc=no)
161
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162
AC_CHECK_FUNCS(bind_textdomain_codeset)
166
# If we don't have everything we want, check in libintl
168
if test "$gt_cv_func_dgettext_libc" != "yes" \
169
|| test "$gt_cv_func_ngettext_libc" != "yes" \
170
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
172
AC_CHECK_LIB(intl, bindtextdomain,
173
[AC_CHECK_LIB(intl, ngettext,
174
[AC_CHECK_LIB(intl, dgettext,
175
gt_cv_func_dgettext_libintl=yes)])])
177
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178
AC_MSG_CHECKING([if -liconv is needed to use gettext])
180
AC_CHECK_LIB(intl, ngettext,
181
[AC_CHECK_LIB(intl, dcgettext,
182
[gt_cv_func_dgettext_libintl=yes
183
libintl_extra_libs=-liconv],
189
# If we found libintl, then check in it for bind_textdomain_codeset();
190
# we'll prefer libc if neither have bind_textdomain_codeset(),
191
# and both have dgettext and ngettext
193
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194
glib_save_LIBS="$LIBS"
195
LIBS="$LIBS -lintl $libintl_extra_libs"
196
unset ac_cv_func_bind_textdomain_codeset
197
AC_CHECK_FUNCS(bind_textdomain_codeset)
198
LIBS="$glib_save_LIBS"
200
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201
gt_cv_func_dgettext_libc=no
203
if test "$gt_cv_func_dgettext_libc" = "yes" \
204
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
205
gt_cv_func_dgettext_libintl=no
211
if test "$gt_cv_func_dgettext_libc" = "yes" \
212
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
213
gt_cv_have_gettext=yes
216
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217
INTLLIBS="-lintl $libintl_extra_libs"
220
if test "$gt_cv_have_gettext" = "yes"; then
221
AC_DEFINE(HAVE_GETTEXT,1,
222
[Define if the GNU gettext() function is already present or preinstalled.])
223
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225
if test "$MSGFMT" != "no"; then
226
glib_save_LIBS="$LIBS"
227
LIBS="$LIBS $INTLLIBS"
228
AC_CHECK_FUNCS(dcgettext)
230
AC_MSG_CHECKING([if msgfmt accepts -c])
231
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
234
"Content-Type: text/plain; charset=UTF-8\n"
235
"Project-Id-Version: test 1.0\n"
236
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237
"Last-Translator: test <foo@bar.xx>\n"
238
"Language-Team: C <LL@li.org>\n"
239
"MIME-Version: 1.0\n"
240
"Content-Transfer-Encoding: 8bit\n"
241
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242
AC_SUBST(MSGFMT_OPTS)
243
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247
return _nl_msg_cat_cntr],
252
dnl On Solaris, if bind_textdomain_codeset is in libc,
253
dnl GNU format message catalog is always supported,
254
dnl since both are added to the libc all together.
255
dnl Hence, we'd like to go with DATADIRNAME=share and
256
dnl and CATOBJEXT=.gmo in this case.
257
AC_CHECK_FUNC(bind_textdomain_codeset,
268
LIBS="$glib_save_LIBS"
271
gt_cv_have_gettext=no
276
if test "$gt_cv_have_gettext" = "yes" ; then
277
AC_DEFINE(ENABLE_NLS, 1,
278
[always defined to indicate that i18n is enabled])
281
dnl Test whether we really found GNU xgettext.
282
if test "$XGETTEXT" != ":"; then
283
dnl If it is not GNU xgettext we define it as : so that the
284
dnl Makefiles still can work.
285
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
289
[found xgettext program is not GNU xgettext; ignore it])
294
# We need to process the po/ directory.
298
[case "$CONFIG_FILES" in *po/Makefile.in*)
299
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
302
dnl These rules are solely for the distribution goal. While doing this
303
dnl we only have to keep exactly one list of the available catalogs
305
for lang in $ALL_LINGUAS; do
306
GMOFILES="$GMOFILES $lang.gmo"
307
POFILES="$POFILES $lang.po"
310
dnl Make all variables we use known to autoconf.
313
AC_SUBST(DATADIRNAME)
317
AC_SUBST(PO_IN_DATADIR_TRUE)
318
AC_SUBST(PO_IN_DATADIR_FALSE)
323
# AM_GLIB_GNU_GETTEXT
324
# -------------------
325
# Do checks necessary for use of gettext. If a suitable implementation
326
# of gettext is found in either in libintl or in the C library,
327
# it will set INTLLIBS to the libraries needed for use of gettext
328
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330
# on various variables needed by the Makefile.in.in installed by
333
glib_DEFUN([GLIB_GNU_GETTEXT],
334
[AC_REQUIRE([AC_PROG_CC])dnl
335
AC_REQUIRE([AC_HEADER_STDC])dnl
340
if test "$gt_cv_have_gettext" = "yes"; then
341
if test "x$ALL_LINGUAS" = "x"; then
344
AC_MSG_CHECKING(for catalogs to be installed)
346
for presentlang in $ALL_LINGUAS; do
348
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349
desiredlanguages="$LINGUAS"
351
desiredlanguages="$ALL_LINGUAS"
353
for desiredlang in $desiredlanguages; do
354
# Use the presentlang catalog if desiredlang is
355
# a. equal to presentlang, or
356
# b. a variant of presentlang (because in this case,
357
# presentlang can be used as a fallback for messages
358
# which are not translated in the desiredlang catalog).
359
case "$desiredlang" in
360
"$presentlang"*) useit=yes;;
363
if test $useit = yes; then
364
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
368
AC_MSG_RESULT($LINGUAS)
371
dnl Construct list of names of catalog files to be constructed.
372
if test -n "$LINGUAS"; then
373
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
377
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379
dnl Try to locate is.
381
if test -n "$ac_aux_dir"; then
382
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
384
if test -z "$MKINSTALLDIRS"; then
385
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
387
AC_SUBST(MKINSTALLDIRS)
389
dnl Generate list of files to be processed by xgettext which will
390
dnl be included in po/Makefile.
391
test -d po || mkdir po
392
if test "x$srcdir" != "x."; then
393
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394
posrcprefix="$srcdir/"
396
posrcprefix="../$srcdir/"
402
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403
< $srcdir/po/POTFILES.in > po/POTFILES
406
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407
# -------------------------------
408
# Define VARIABLE to the location where catalog files will
409
# be installed by po/Makefile.
410
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412
glib_save_prefix="$prefix"
413
glib_save_exec_prefix="$exec_prefix"
414
glib_save_datarootdir="$datarootdir"
415
test "x$prefix" = xNONE && prefix=$ac_default_prefix
416
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417
datarootdir=`eval echo "${datarootdir}"`
418
if test "x$CATOBJEXT" = "x.mo" ; then
419
localedir=`eval echo "${libdir}/locale"`
421
localedir=`eval echo "${datadir}/locale"`
423
prefix="$glib_save_prefix"
424
exec_prefix="$glib_save_exec_prefix"
425
datarootdir="$glib_save_datarootdir"
426
AC_DEFINE_UNQUOTED($1, "$localedir",
427
[Define the location where the catalogs will be installed])
431
dnl Now the definitions that aclocal will find
433
ifdef(glib_configure_in,[],[
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
438
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
440
# Create a temporary file with TEST-FILE as its contents and pass the
441
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
442
# 0 and perform ACTION-IF-FAIL for any other exit status.
443
AC_DEFUN([GLIB_RUN_PROG],
444
[cat >conftest.foo <<_ACEOF
447
if AC_RUN_LOG([$1 conftest.foo]); then
448
m4_ifval([$3], [$3], [:])
449
m4_ifvaln([$4], [else $4])dnl
450
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
456
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
457
# serial 36 IT_PROG_INTLTOOL
458
AC_DEFUN([IT_PROG_INTLTOOL],
459
[AC_PREREQ([2.50])dnl
461
case "$am__api_version" in
463
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
469
if test -n "$1"; then
470
AC_MSG_CHECKING([for intltool >= $1])
472
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
473
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
474
[INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
476
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
477
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
478
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
481
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
482
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
483
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
484
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
485
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
486
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
487
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
488
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
489
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
490
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
491
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
492
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
493
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
494
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
495
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
496
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
497
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
498
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
499
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
501
AC_SUBST(INTLTOOL_DESKTOP_RULE)
502
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
503
AC_SUBST(INTLTOOL_KEYS_RULE)
504
AC_SUBST(INTLTOOL_PROP_RULE)
505
AC_SUBST(INTLTOOL_OAF_RULE)
506
AC_SUBST(INTLTOOL_PONG_RULE)
507
AC_SUBST(INTLTOOL_SERVER_RULE)
508
AC_SUBST(INTLTOOL_SHEET_RULE)
509
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
510
AC_SUBST(INTLTOOL_UI_RULE)
511
AC_SUBST(INTLTOOL_XAM_RULE)
512
AC_SUBST(INTLTOOL_KBD_RULE)
513
AC_SUBST(INTLTOOL_XML_RULE)
514
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
515
AC_SUBST(INTLTOOL_CAVES_RULE)
516
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
517
AC_SUBST(INTLTOOL_THEME_RULE)
518
AC_SUBST(INTLTOOL_SERVICE_RULE)
519
AC_SUBST(INTLTOOL_POLICY_RULE)
521
# Check the gettext tools to make sure they are GNU
522
AC_PATH_PROG(XGETTEXT, xgettext)
523
AC_PATH_PROG(MSGMERGE, msgmerge)
524
AC_PATH_PROG(MSGFMT, msgfmt)
525
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
526
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
528
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
529
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
530
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
531
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
532
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
535
# Use the tools built into the package, not the ones that are installed.
536
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
537
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
538
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
540
AC_PATH_PROG(INTLTOOL_PERL, perl)
541
if test -z "$INTLTOOL_PERL"; then
542
AC_MSG_ERROR([perl not found; required for intltool])
544
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
545
AC_MSG_ERROR([perl 5.x required for intltool])
547
if test "x$2" != "xno-xml"; then
548
AC_MSG_CHECKING([for XML::Parser])
549
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
552
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
556
# Substitute ALL_LINGUAS so we can use it in po/Makefile
557
AC_SUBST(ALL_LINGUAS)
559
# Set DATADIRNAME correctly if it is not set yet
560
# (copied from glib-gettext.m4)
561
if test -z "$DATADIRNAME"; then
563
[AC_LANG_PROGRAM([[]],
564
[[extern int _nl_msg_cat_cntr;
565
return _nl_msg_cat_cntr]])],
569
dnl On Solaris, if bind_textdomain_codeset is in libc,
570
dnl GNU format message catalog is always supported,
571
dnl since both are added to the libc all together.
572
dnl Hence, we'd like to go with DATADIRNAME=share
574
AC_CHECK_FUNC(bind_textdomain_codeset,
575
[DATADIRNAME=share], [DATADIRNAME=lib])
582
AC_SUBST(DATADIRNAME)
586
dnl The following is very similar to
588
dnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
590
dnl with the following slight differences:
591
dnl - the *.in files are in ac_aux_dir,
592
dnl - if the file haven't changed upon reconfigure, it's not touched,
593
dnl - the evaluation of the third parameter enables a hack which computes
594
dnl the actual value of $libdir,
595
dnl - the user sees "executing intltool commands", instead of
596
dnl "creating intltool-extract" and such.
598
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
601
AC_CONFIG_COMMANDS([intltool], [
603
for file in intltool-extract intltool-merge intltool-update; do
604
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
605
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
606
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
607
< ${ac_aux_dir}/${file}.in > ${file}.out
608
if cmp -s ${file} ${file}.out 2>/dev/null; then
611
mv -f ${file}.out ${file}
618
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
619
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
620
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
625
# IT_PO_SUBDIR(DIRNAME)
626
# ---------------------
627
# All po subdirs have to be declared with this macro; the subdir "po" is
628
# declared by IT_PROG_INTLTOOL.
630
AC_DEFUN([IT_PO_SUBDIR],
631
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
633
dnl The following CONFIG_COMMANDS should be exetuted at the very end
634
dnl of config.status.
635
AC_CONFIG_COMMANDS_PRE([
636
AC_CONFIG_COMMANDS([$1/stamp-it], [
637
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
642
'"s|^| $ac_top_srcdir/|" \
643
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
645
if test ! -f "$1/Makefile"; then
646
AC_MSG_ERROR([$1/Makefile is not ready.])
648
mv "$1/Makefile" "$1/Makefile.tmp"
649
[sed '/^POTFILES =/,/[^\\]$/ {
653
' "$1/Makefile.tmp" >"$1/Makefile"]
654
rm -f "$1/Makefile.tmp"
655
mv "$1/stamp-it.tmp" "$1/stamp-it"
662
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
663
# A hint is needed for aclocal from Automake <= 1.9.4:
664
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
667
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
669
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
672
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
673
# -----------------------------------------------------------
674
# If this macro is not defined by Autoconf, define it here.
675
m4_ifdef([AC_PROVIDE_IFELSE],
677
[m4_define([AC_PROVIDE_IFELSE],
678
[m4_ifdef([AC_PROVIDE_$1],
684
AC_DEFUN([AC_PROG_LIBTOOL],
685
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
686
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
687
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
688
AC_PROVIDE_IFELSE([AC_PROG_CXX],
690
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
692
dnl And a similar setup for Fortran 77 support
693
AC_PROVIDE_IFELSE([AC_PROG_F77],
695
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
698
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
699
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
700
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
701
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
703
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
705
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
707
[ifdef([AC_PROG_GCJ],
708
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
709
ifdef([A][M_PROG_GCJ],
710
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
711
ifdef([LT_AC_PROG_GCJ],
712
[define([LT_AC_PROG_GCJ],
713
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
714
])])# AC_PROG_LIBTOOL
719
AC_DEFUN([_AC_PROG_LIBTOOL],
720
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
721
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
722
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
723
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
725
# This can be used to rebuild libtool when needed
726
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
728
# Always use our own libtool.
729
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
732
# Prevent multiple expansion
733
define([AC_PROG_LIBTOOL], [])
739
AC_DEFUN([AC_LIBTOOL_SETUP],
741
AC_REQUIRE([AC_ENABLE_SHARED])dnl
742
AC_REQUIRE([AC_ENABLE_STATIC])dnl
743
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
744
AC_REQUIRE([AC_CANONICAL_HOST])dnl
745
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
746
AC_REQUIRE([AC_PROG_CC])dnl
747
AC_REQUIRE([AC_PROG_LD])dnl
748
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
749
AC_REQUIRE([AC_PROG_NM])dnl
751
AC_REQUIRE([AC_PROG_LN_S])dnl
752
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
753
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
754
AC_REQUIRE([AC_OBJEXT])dnl
755
AC_REQUIRE([AC_EXEEXT])dnl
757
AC_LIBTOOL_SYS_MAX_CMD_LEN
758
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
761
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
762
_LT_AC_PROG_ECHO_BACKSLASH
766
# AIX sometimes has problems with the GCC collect2 program. For some
767
# reason, if we set the COLLECT_NAMES environment variable, the problems
768
# vanish in a puff of smoke.
769
if test "X${COLLECT_NAMES+set}" != Xset; then
776
# Sed substitution that helps us do robust quoting. It backslashifies
777
# metacharacters that are still active within double-quoted strings.
778
Xsed='sed -e 1s/^X//'
779
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
781
# Same as above, but do not quote variable references.
782
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
784
# Sed substitution to delay expansion of an escaped shell variable in a
785
# double_quote_subst'ed string.
786
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
788
# Sed substitution to avoid accidental globbing in evaled expressions
789
no_glob_subst='s/\*/\\\*/g'
795
default_ofile=libtool
798
# All known linkers require a `.a' archive for static linking (except MSVC,
799
# which needs '.lib').
801
ltmain="$ac_aux_dir/ltmain.sh"
802
ofile="$default_ofile"
803
with_gnu_ld="$lt_cv_prog_gnu_ld"
805
AC_CHECK_TOOL(AR, ar, false)
806
AC_CHECK_TOOL(RANLIB, ranlib, :)
807
AC_CHECK_TOOL(STRIP, strip, :)
812
# Set sane defaults for various variables
813
test -z "$AR" && AR=ar
814
test -z "$AR_FLAGS" && AR_FLAGS=cru
815
test -z "$AS" && AS=as
816
test -z "$CC" && CC=cc
817
test -z "$LTCC" && LTCC=$CC
818
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
819
test -z "$DLLTOOL" && DLLTOOL=dlltool
820
test -z "$LD" && LD=ld
821
test -z "$LN_S" && LN_S="ln -s"
822
test -z "$MAGIC_CMD" && MAGIC_CMD=file
823
test -z "$NM" && NM=nm
824
test -z "$SED" && SED=sed
825
test -z "$OBJDUMP" && OBJDUMP=objdump
826
test -z "$RANLIB" && RANLIB=:
827
test -z "$STRIP" && STRIP=:
828
test -z "$ac_objext" && ac_objext=o
830
# Determine commands to create old-style static archives.
831
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
832
old_postinstall_cmds='chmod 644 $oldlib'
833
old_postuninstall_cmds=
835
if test -n "$RANLIB"; then
838
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
841
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
844
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
847
_LT_CC_BASENAME([$compiler])
849
# Only perform the check for file, if the check method requires it
850
case $deplibs_check_method in
852
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
858
_LT_REQUIRED_DARWIN_CHECKS
860
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
861
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
862
enable_win32_dll=yes, enable_win32_dll=no)
864
AC_ARG_ENABLE([libtool-lock],
865
[AC_HELP_STRING([--disable-libtool-lock],
866
[avoid locking (might break parallel builds)])])
867
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
870
[AC_HELP_STRING([--with-pic],
871
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
872
[pic_mode="$withval"],
874
test -z "$pic_mode" && pic_mode=default
876
# Use C for the default configuration in the libtool script
878
AC_LIBTOOL_LANG_C_CONFIG
883
# _LT_AC_SYS_COMPILER
884
# -------------------
885
AC_DEFUN([_LT_AC_SYS_COMPILER],
886
[AC_REQUIRE([AC_PROG_CC])dnl
888
# If no C compiler was specified, use CC.
891
# If no C compiler flags were specified, use CFLAGS.
892
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
894
# Allow CC to be a program name with arguments.
896
])# _LT_AC_SYS_COMPILER
899
# _LT_CC_BASENAME(CC)
900
# -------------------
901
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
902
AC_DEFUN([_LT_CC_BASENAME],
903
[for cc_temp in $1""; do
905
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
906
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
911
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
915
# _LT_COMPILER_BOILERPLATE
916
# ------------------------
917
# Check for compiler boilerplate output or warnings with
918
# the simple compiler test code.
919
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
920
[AC_REQUIRE([LT_AC_PROG_SED])dnl
921
ac_outfile=conftest.$ac_objext
922
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
923
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
924
_lt_compiler_boilerplate=`cat conftest.err`
926
])# _LT_COMPILER_BOILERPLATE
929
# _LT_LINKER_BOILERPLATE
930
# ----------------------
931
# Check for linker boilerplate output or warnings with
932
# the simple link test code.
933
AC_DEFUN([_LT_LINKER_BOILERPLATE],
934
[AC_REQUIRE([LT_AC_PROG_SED])dnl
935
ac_outfile=conftest.$ac_objext
936
echo "$lt_simple_link_test_code" >conftest.$ac_ext
937
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
938
_lt_linker_boilerplate=`cat conftest.err`
940
])# _LT_LINKER_BOILERPLATE
942
# _LT_REQUIRED_DARWIN_CHECKS
943
# --------------------------
944
# Check for some things on darwin
945
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
948
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
949
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
951
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
952
[lt_cv_apple_cc_single_mod=no
953
if test -z "${LT_MULTI_MODULE}"; then
954
# By default we will add the -single_module flag. You can override
955
# by either setting the environment variable LT_MULTI_MODULE
956
# non-empty at configure time, or by adding -multi_module to the
958
echo "int foo(void){return 1;}" > conftest.c
959
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
960
-dynamiclib ${wl}-single_module conftest.c
961
if test -f libconftest.dylib; then
962
lt_cv_apple_cc_single_mod=yes
963
rm -rf libconftest.dylib*
967
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
968
[lt_cv_ld_exported_symbols_list],
969
[lt_cv_ld_exported_symbols_list=no
970
save_LDFLAGS=$LDFLAGS
971
echo "_main" > conftest.sym
972
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
973
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
974
[lt_cv_ld_exported_symbols_list=yes],
975
[lt_cv_ld_exported_symbols_list=no])
976
LDFLAGS="$save_LDFLAGS"
979
rhapsody* | darwin1.[[0123]])
980
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
982
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
984
# if running on 10.5 or later, the deployment target defaults
985
# to the OS version, if on x86, and 10.4, the deployment
986
# target defaults to 10.4. Don't you love it?
987
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
988
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
989
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
991
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
993
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
997
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
998
_lt_dar_single_mod='$single_module'
1000
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1001
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1003
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1005
if test "$DSYMUTIL" != ":"; then
1006
_lt_dsymutil="~$DSYMUTIL \$lib || :"
1014
# _LT_AC_SYS_LIBPATH_AIX
1015
# ----------------------
1016
# Links a minimal program and checks the executable
1017
# for the system default hardcoded library path. In most cases,
1018
# this is /usr/lib:/lib, but when the MPI compilers are used
1019
# the location of the communication and MPI libs are included too.
1020
# If we don't find anything, use the default library path according
1021
# to the aix ld manual.
1022
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1023
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1024
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1025
lt_aix_libpath_sed='
1026
/Import File Strings/,/^$/ {
1032
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1033
# Check for a 64-bit object if we didn't find anything.
1034
if test -z "$aix_libpath"; then
1035
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1038
])# _LT_AC_SYS_LIBPATH_AIX
1041
# _LT_AC_SHELL_INIT(ARG)
1042
# ----------------------
1043
AC_DEFUN([_LT_AC_SHELL_INIT],
1044
[ifdef([AC_DIVERSION_NOTICE],
1045
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1046
[AC_DIVERT_PUSH(NOTICE)])
1049
])# _LT_AC_SHELL_INIT
1052
# _LT_AC_PROG_ECHO_BACKSLASH
1053
# --------------------------
1054
# Add some code to the start of the generated configure script which
1055
# will find an echo command which doesn't interpret backslashes.
1056
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1057
[_LT_AC_SHELL_INIT([
1058
# Check that we are running under the correct shell.
1059
SHELL=${CONFIG_SHELL-/bin/sh}
1063
# Remove one level of quotation (which was required for Make).
1064
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1069
if test "X[$]1" = X--no-reexec; then
1070
# Discard the --no-reexec flag, and continue.
1072
elif test "X[$]1" = X--fallback-echo; then
1073
# Avoid inline document here, it may be left over
1075
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1076
# Yippee, $echo works!
1079
# Restart under the correct shell.
1080
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1083
if test "X[$]1" = X--fallback-echo; then
1084
# used as fallback echo
1092
# The HP-UX ksh and POSIX shell print the target directory to stdout
1094
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1096
if test -z "$ECHO"; then
1097
if test "X${echo_test_string+set}" != Xset; then
1098
# find a string as large as possible, as long as the shell can cope with it
1099
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1100
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1101
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1102
echo_test_string=`eval $cmd` &&
1103
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1110
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1111
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1112
test "X$echo_testing_string" = "X$echo_test_string"; then
1115
# The Solaris, AIX, and Digital Unix default echo programs unquote
1116
# backslashes. This makes it impossible to quote backslashes using
1117
# echo "$something" | sed 's/\\/\\\\/g'
1119
# So, first we look for a working echo in the user's PATH.
1121
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1122
for dir in $PATH /usr/ucb; do
1124
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1125
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1126
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1127
test "X$echo_testing_string" = "X$echo_test_string"; then
1134
if test "X$echo" = Xecho; then
1135
# We didn't find a better echo, so look for alternatives.
1136
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1137
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1138
test "X$echo_testing_string" = "X$echo_test_string"; then
1139
# This shell has a builtin print -r that does the trick.
1141
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1142
test "X$CONFIG_SHELL" != X/bin/ksh; then
1143
# If we have ksh, try running configure again with it.
1144
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1145
export ORIGINAL_CONFIG_SHELL
1146
CONFIG_SHELL=/bin/ksh
1148
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1152
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1153
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1154
test "X$echo_testing_string" = "X$echo_test_string"; then
1155
# Cool, printf works
1157
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1158
test "X$echo_testing_string" = 'X\t' &&
1159
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1160
test "X$echo_testing_string" = "X$echo_test_string"; then
1161
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1163
SHELL="$CONFIG_SHELL"
1165
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1166
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1167
test "X$echo_testing_string" = 'X\t' &&
1168
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1169
test "X$echo_testing_string" = "X$echo_test_string"; then
1170
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1172
# maybe with a smaller string...
1175
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1176
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1183
if test "$prev" != 'sed 50q "[$]0"'; then
1184
echo_test_string=`eval $prev`
1185
export echo_test_string
1186
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1188
# Oops. We lost completely, so just stick with echo.
1197
# Copy echo and quote the copy suitably for passing to libtool from
1198
# the Makefile, instead of quoting the original, which is used later.
1200
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1201
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1205
])])# _LT_AC_PROG_ECHO_BACKSLASH
1210
AC_DEFUN([_LT_AC_LOCK],
1211
[AC_ARG_ENABLE([libtool-lock],
1212
[AC_HELP_STRING([--disable-libtool-lock],
1213
[avoid locking (might break parallel builds)])])
1214
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1216
# Some flags need to be propagated to the compiler or linker for good
1220
# Find out which ABI we are using.
1221
echo 'int i;' > conftest.$ac_ext
1222
if AC_TRY_EVAL(ac_compile); then
1223
case `/usr/bin/file conftest.$ac_objext` in
1235
# Find out which ABI we are using.
1236
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1237
if AC_TRY_EVAL(ac_compile); then
1238
if test "$lt_cv_prog_gnu_ld" = yes; then
1239
case `/usr/bin/file conftest.$ac_objext` in
1241
LD="${LD-ld} -melf32bsmip"
1244
LD="${LD-ld} -melf32bmipn32"
1247
LD="${LD-ld} -melf64bmip"
1251
case `/usr/bin/file conftest.$ac_objext` in
1267
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1268
s390*-*linux*|sparc*-*linux*)
1269
# Find out which ABI we are using.
1270
echo 'int i;' > conftest.$ac_ext
1271
if AC_TRY_EVAL(ac_compile); then
1272
case `/usr/bin/file conftest.o` in
1275
x86_64-*kfreebsd*-gnu)
1276
LD="${LD-ld} -m elf_i386_fbsd"
1279
LD="${LD-ld} -m elf_i386"
1281
ppc64-*linux*|powerpc64-*linux*)
1282
LD="${LD-ld} -m elf32ppclinux"
1285
LD="${LD-ld} -m elf_s390"
1288
LD="${LD-ld} -m elf32_sparc"
1294
x86_64-*kfreebsd*-gnu)
1295
LD="${LD-ld} -m elf_x86_64_fbsd"
1298
LD="${LD-ld} -m elf_x86_64"
1300
ppc*-*linux*|powerpc*-*linux*)
1301
LD="${LD-ld} -m elf64ppc"
1304
LD="${LD-ld} -m elf64_s390"
1307
LD="${LD-ld} -m elf64_sparc"
1317
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1318
SAVE_CFLAGS="$CFLAGS"
1319
CFLAGS="$CFLAGS -belf"
1320
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1322
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1324
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1325
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1326
CFLAGS="$SAVE_CFLAGS"
1330
# Find out which ABI we are using.
1331
echo 'int i;' > conftest.$ac_ext
1332
if AC_TRY_EVAL(ac_compile); then
1333
case `/usr/bin/file conftest.o` in
1335
case $lt_cv_prog_gnu_ld in
1336
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1338
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1349
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1350
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1351
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1352
AC_CHECK_TOOL(AS, as, false)
1353
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1358
need_locks="$enable_libtool_lock"
1363
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1364
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1365
# ----------------------------------------------------------------
1366
# Check whether the given compiler option works
1367
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1368
[AC_REQUIRE([LT_AC_PROG_SED])
1369
AC_CACHE_CHECK([$1], [$2],
1371
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1372
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1373
lt_compiler_flag="$3"
1374
# Insert the option either (1) after the last *FLAGS variable, or
1375
# (2) before a word containing "conftest.", or (3) at the end.
1376
# Note that $ac_compile itself does not contain backslashes and begins
1377
# with a dollar sign (not a hyphen), so the echo should work correctly.
1378
# The option is referenced via a variable to avoid confusing sed.
1379
lt_compile=`echo "$ac_compile" | $SED \
1380
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1381
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1382
-e 's:$: $lt_compiler_flag:'`
1383
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1384
(eval "$lt_compile" 2>conftest.err)
1386
cat conftest.err >&AS_MESSAGE_LOG_FD
1387
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1388
if (exit $ac_status) && test -s "$ac_outfile"; then
1389
# The compiler can only warn and ignore the option if not recognized
1390
# So say no if there are warnings other than the usual output.
1391
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1392
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1393
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1400
if test x"[$]$2" = xyes; then
1401
ifelse([$5], , :, [$5])
1403
ifelse([$6], , :, [$6])
1405
])# AC_LIBTOOL_COMPILER_OPTION
1408
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1409
# [ACTION-SUCCESS], [ACTION-FAILURE])
1410
# ------------------------------------------------------------
1411
# Check whether the given compiler option works
1412
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1413
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1414
AC_CACHE_CHECK([$1], [$2],
1416
save_LDFLAGS="$LDFLAGS"
1417
LDFLAGS="$LDFLAGS $3"
1418
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1419
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1420
# The linker can only warn and ignore the option if not recognized
1421
# So say no if there are warnings
1422
if test -s conftest.err; then
1423
# Append any errors to the config.log.
1424
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1425
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1426
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1427
if diff conftest.exp conftest.er2 >/dev/null; then
1435
LDFLAGS="$save_LDFLAGS"
1438
if test x"[$]$2" = xyes; then
1439
ifelse([$4], , :, [$4])
1441
ifelse([$5], , :, [$5])
1443
])# AC_LIBTOOL_LINKER_OPTION
1446
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1447
# --------------------------
1448
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1449
[# find the maximum length of command line arguments
1450
AC_MSG_CHECKING([the maximum length of command line arguments])
1451
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1457
# On DJGPP, this test can blow up pretty badly due to problems in libc
1458
# (any single argument exceeding 2000 bytes causes a buffer overrun
1459
# during glob expansion). Even if it were fixed, the result of this
1460
# check would be larger than it should be.
1461
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1465
# Under GNU Hurd, this test is not required because there is
1466
# no limit to the length of command line arguments.
1467
# Libtool will interpret -1 as no limit whatsoever
1468
lt_cv_sys_max_cmd_len=-1;
1472
# On Win9x/ME, this test blows up -- it succeeds, but takes
1473
# about 5 minutes as the teststring grows exponentially.
1474
# Worse, since 9x/ME are not pre-emptively multitasking,
1475
# you end up with a "frozen" computer, even though with patience
1476
# the test eventually succeeds (with a max line length of 256k).
1477
# Instead, let's just punt: use the minimum linelength reported by
1478
# all of the supported platforms: 8192 (on NT/2K/XP).
1479
lt_cv_sys_max_cmd_len=8192;
1483
# On AmigaOS with pdksh, this test takes hours, literally.
1484
# So we just punt and use a minimum line length of 8192.
1485
lt_cv_sys_max_cmd_len=8192;
1488
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1489
# This has been around since 386BSD, at least. Likely further.
1490
if test -x /sbin/sysctl; then
1491
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1492
elif test -x /usr/sbin/sysctl; then
1493
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1495
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1497
# And add a safety zone
1498
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1499
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1503
# We know the value 262144 and hardcode it with a safety zone (like BSD)
1504
lt_cv_sys_max_cmd_len=196608
1508
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1509
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1510
# nice to cause kernel panics so lets avoid the loop below.
1511
# First set a reasonable default.
1512
lt_cv_sys_max_cmd_len=16384
1514
if test -x /sbin/sysconfig; then
1515
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1516
*1*) lt_cv_sys_max_cmd_len=-1 ;;
1521
lt_cv_sys_max_cmd_len=102400
1523
sysv5* | sco5v6* | sysv4.2uw2*)
1524
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1525
if test -n "$kargmax"; then
1526
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1528
lt_cv_sys_max_cmd_len=32768
1532
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1533
if test -n "$lt_cv_sys_max_cmd_len"; then
1534
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1535
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1537
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1538
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1539
= "XX$teststring") >/dev/null 2>&1 &&
1540
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1541
lt_cv_sys_max_cmd_len=$new_result &&
1542
test $i != 17 # 1/2 MB should be enough
1545
teststring=$teststring$teststring
1548
# Add a significant safety factor because C++ compilers can tack on massive
1549
# amounts of additional arguments before passing them to the linker.
1550
# It appears as though 1/2 is a usable value.
1551
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1556
if test -n $lt_cv_sys_max_cmd_len ; then
1557
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1561
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1564
# _LT_AC_CHECK_DLFCN
1565
# ------------------
1566
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1567
[AC_CHECK_HEADERS(dlfcn.h)dnl
1568
])# _LT_AC_CHECK_DLFCN
1571
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1572
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1573
# ---------------------------------------------------------------------
1574
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1575
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1576
if test "$cross_compiling" = yes; then :
1579
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1580
lt_status=$lt_dlunknown
1581
cat > conftest.$ac_ext <<EOF
1582
[#line __oline__ "configure"
1583
#include "confdefs.h"
1592
# define LT_DLGLOBAL RTLD_GLOBAL
1595
# define LT_DLGLOBAL DL_GLOBAL
1597
# define LT_DLGLOBAL 0
1601
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1602
find out it does not work in some platform. */
1603
#ifndef LT_DLLAZY_OR_NOW
1605
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1608
# define LT_DLLAZY_OR_NOW DL_LAZY
1611
# define LT_DLLAZY_OR_NOW RTLD_NOW
1614
# define LT_DLLAZY_OR_NOW DL_NOW
1616
# define LT_DLLAZY_OR_NOW 0
1624
extern "C" void exit (int);
1627
void fnord() { int i=42;}
1630
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1631
int status = $lt_dlunknown;
1635
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1636
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1637
/* dlclose (self); */
1645
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1646
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1649
x$lt_dlno_uscore) $1 ;;
1650
x$lt_dlneed_uscore) $2 ;;
1651
x$lt_dlunknown|x*) $3 ;;
1654
# compilation failed
1659
])# _LT_AC_TRY_DLOPEN_SELF
1662
# AC_LIBTOOL_DLOPEN_SELF
1663
# ----------------------
1664
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1665
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1666
if test "x$enable_dlopen" != xyes; then
1667
enable_dlopen=unknown
1668
enable_dlopen_self=unknown
1669
enable_dlopen_self_static=unknown
1676
lt_cv_dlopen="load_add_on"
1678
lt_cv_dlopen_self=yes
1682
lt_cv_dlopen="LoadLibrary"
1687
lt_cv_dlopen="dlopen"
1692
# if libdl is installed we need to link against it
1693
AC_CHECK_LIB([dl], [dlopen],
1694
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1697
lt_cv_dlopen_self=yes
1702
AC_CHECK_FUNC([shl_load],
1703
[lt_cv_dlopen="shl_load"],
1704
[AC_CHECK_LIB([dld], [shl_load],
1705
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1706
[AC_CHECK_FUNC([dlopen],
1707
[lt_cv_dlopen="dlopen"],
1708
[AC_CHECK_LIB([dl], [dlopen],
1709
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1710
[AC_CHECK_LIB([svld], [dlopen],
1711
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1712
[AC_CHECK_LIB([dld], [dld_link],
1713
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1722
if test "x$lt_cv_dlopen" != xno; then
1728
case $lt_cv_dlopen in
1730
save_CPPFLAGS="$CPPFLAGS"
1731
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1733
save_LDFLAGS="$LDFLAGS"
1734
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1737
LIBS="$lt_cv_dlopen_libs $LIBS"
1739
AC_CACHE_CHECK([whether a program can dlopen itself],
1740
lt_cv_dlopen_self, [dnl
1741
_LT_AC_TRY_DLOPEN_SELF(
1742
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1743
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1746
if test "x$lt_cv_dlopen_self" = xyes; then
1747
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1748
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1749
lt_cv_dlopen_self_static, [dnl
1750
_LT_AC_TRY_DLOPEN_SELF(
1751
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1752
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1756
CPPFLAGS="$save_CPPFLAGS"
1757
LDFLAGS="$save_LDFLAGS"
1762
case $lt_cv_dlopen_self in
1763
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1764
*) enable_dlopen_self=unknown ;;
1767
case $lt_cv_dlopen_self_static in
1768
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1769
*) enable_dlopen_self_static=unknown ;;
1772
])# AC_LIBTOOL_DLOPEN_SELF
1775
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1776
# ---------------------------------
1777
# Check to see if options -c and -o are simultaneously supported by compiler
1778
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1779
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1780
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1781
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1782
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1783
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1784
$rm -r conftest 2>/dev/null
1788
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1790
lt_compiler_flag="-o out/conftest2.$ac_objext"
1791
# Insert the option either (1) after the last *FLAGS variable, or
1792
# (2) before a word containing "conftest.", or (3) at the end.
1793
# Note that $ac_compile itself does not contain backslashes and begins
1794
# with a dollar sign (not a hyphen), so the echo should work correctly.
1795
lt_compile=`echo "$ac_compile" | $SED \
1796
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1797
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1798
-e 's:$: $lt_compiler_flag:'`
1799
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1800
(eval "$lt_compile" 2>out/conftest.err)
1802
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1803
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1804
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1806
# The compiler can only warn and ignore the option if not recognized
1807
# So say no if there are warnings
1808
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1809
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1810
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1811
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1814
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1816
# SGI C++ compiler will create directory out/ii_files/ for
1817
# template instantiation
1818
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1819
$rm out/* && rmdir out
1824
])# AC_LIBTOOL_PROG_CC_C_O
1827
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1828
# -----------------------------------------
1829
# Check to see if we can do hard links to lock some files if needed
1830
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1831
[AC_REQUIRE([_LT_AC_LOCK])dnl
1833
hard_links="nottested"
1834
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1835
# do not overwrite the value of need_locks provided by the user
1836
AC_MSG_CHECKING([if we can lock with hard links])
1839
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1841
ln conftest.a conftest.b 2>&5 || hard_links=no
1842
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1843
AC_MSG_RESULT([$hard_links])
1844
if test "$hard_links" = no; then
1845
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1851
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1856
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1857
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1858
[rm -f .libs 2>/dev/null
1859
mkdir .libs 2>/dev/null
1860
if test -d .libs; then
1863
# MS-DOS does not allow filenames that begin with a dot.
1866
rmdir .libs 2>/dev/null])
1867
objdir=$lt_cv_objdir
1868
])# AC_LIBTOOL_OBJDIR
1871
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1872
# ----------------------------------------------
1873
# Check hardcoding attributes.
1874
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1875
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1876
_LT_AC_TAGVAR(hardcode_action, $1)=
1877
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1878
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1879
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1881
# We can hardcode non-existant directories.
1882
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1883
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1884
# have to relink, otherwise we might link with an installed library
1885
# when we should be linking with a yet-to-be-installed one
1886
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1887
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1888
# Linking always hardcodes the temporary library directory.
1889
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1891
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1892
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1895
# We cannot hardcode anything, or else we can only hardcode existing
1897
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1899
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1901
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1902
# Fast installation is not supported
1903
enable_fast_install=no
1904
elif test "$shlibpath_overrides_runpath" = yes ||
1905
test "$enable_shared" = no; then
1906
# Fast installation is not necessary
1907
enable_fast_install=needless
1909
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1912
# AC_LIBTOOL_SYS_LIB_STRIP
1913
# ------------------------
1914
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1917
AC_MSG_CHECKING([whether stripping libraries is possible])
1918
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1919
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1920
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1921
AC_MSG_RESULT([yes])
1923
# FIXME - insert some real tests, host_os isn't really good enough
1926
if test -n "$STRIP" ; then
1927
striplib="$STRIP -x"
1928
old_striplib="$STRIP -S"
1929
AC_MSG_RESULT([yes])
1939
])# AC_LIBTOOL_SYS_LIB_STRIP
1942
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1943
# -----------------------------
1944
# PORTME Fill in your ld.so characteristics
1945
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1946
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1947
AC_MSG_CHECKING([dynamic linker characteristics])
1949
libname_spec='lib$name'
1957
shlibpath_overrides_runpath=unknown
1959
dynamic_linker="$host_os ld.so"
1960
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1962
if test "$GCC" = yes; then
1964
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1965
*) lt_awk_arg="/^libraries:/" ;;
1967
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1968
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1969
# if the path contains ";" then we assume it to be the separator
1970
# otherwise default to the standard path separator (i.e. ":") - it is
1971
# assumed that no part of a normal pathname contains ";" but that should
1972
# okay in the real world where ";" in dirpaths is itself problematic.
1973
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1975
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1977
# Ok, now we have the path, separated by spaces, we can step through it
1978
# and add multilib dir if necessary.
1979
lt_tmp_lt_search_path_spec=
1980
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1981
for lt_sys_path in $lt_search_path_spec; do
1982
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1983
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1985
test -d "$lt_sys_path" && \
1986
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1989
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1990
BEGIN {RS=" "; FS="/|\n";} {
1993
for (lt_i = NF; lt_i > 0; lt_i--) {
1994
if ($lt_i != "" && $lt_i != ".") {
1995
if ($lt_i == "..") {
1998
if (lt_count == 0) {
1999
lt_foo="/" $lt_i lt_foo;
2006
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2007
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2009
sys_lib_search_path_spec=`echo $lt_search_path_spec`
2011
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2013
need_lib_prefix=unknown
2014
hardcode_into_libs=no
2016
# when you set need_version to no, make sure it does not cause -set_version
2017
# flags to be left without arguments
2018
need_version=unknown
2023
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2024
shlibpath_var=LIBPATH
2026
# AIX 3 has no versioning support, so we append a major version to the name.
2027
soname_spec='${libname}${release}${shared_ext}$major'
2034
hardcode_into_libs=yes
2035
if test "$host_cpu" = ia64; then
2036
# AIX 5 supports IA64
2037
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2038
shlibpath_var=LD_LIBRARY_PATH
2040
# With GCC up to 2.95.x, collect2 would create an import file
2041
# for dependence libraries. The import file would start with
2042
# the line `#! .'. This would cause the generated library to
2043
# depend on `.', always an invalid library. This was fixed in
2044
# development snapshots of GCC prior to 3.0.
2046
aix4 | aix4.[[01]] | aix4.[[01]].*)
2047
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2049
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2056
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2057
# soname into executable. Probably we can add versioning support to
2058
# collect2, so additional links can be useful in future.
2059
if test "$aix_use_runtimelinking" = yes; then
2060
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2061
# instead of lib<name>.a to let people know that these are not
2062
# typical AIX shared libraries.
2063
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2065
# We preserve .a as extension for shared libraries through AIX4.2
2066
# and later when we are not doing run time linking.
2067
library_names_spec='${libname}${release}.a $libname.a'
2068
soname_spec='${libname}${release}${shared_ext}$major'
2070
shlibpath_var=LIBPATH
2075
library_names_spec='$libname.ixlibrary $libname.a'
2076
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2077
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'
2081
library_names_spec='${libname}${shared_ext}'
2082
dynamic_linker="$host_os ld.so"
2083
shlibpath_var=LIBRARY_PATH
2089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2090
soname_spec='${libname}${release}${shared_ext}$major'
2091
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2092
shlibpath_var=LD_LIBRARY_PATH
2093
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2094
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2095
# the default ld.so.conf also contains /usr/contrib/lib and
2096
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2097
# libtool to hard-code these into programs
2100
cygwin* | mingw* | pw32*)
2101
version_type=windows
2106
case $GCC,$host_os in
2107
yes,cygwin* | yes,mingw* | yes,pw32*)
2108
library_names_spec='$libname.dll.a'
2109
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2110
postinstall_cmds='base_file=`basename \${file}`~
2111
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2112
dldir=$destdir/`dirname \$dlpath`~
2113
test -d \$dldir || mkdir -p \$dldir~
2114
$install_prog $dir/$dlname \$dldir/$dlname~
2115
chmod a+x \$dldir/$dlname'
2116
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2117
dlpath=$dir/\$dldll~
2119
shlibpath_overrides_runpath=yes
2123
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2124
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2125
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2128
# MinGW DLLs use traditional 'lib' prefix
2129
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2130
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2131
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2132
# It is most probably a Windows format PATH printed by
2133
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2134
# path with ; separators, and with drive letters. We can handle the
2135
# drive letters (cygwin fileutils understands them), so leave them,
2136
# especially as we might pass files found there to a mingw objdump,
2137
# which wouldn't understand a cygwinified path. Ahh.
2138
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2140
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2144
# pw32 DLLs use 'pw' prefix rather than 'lib'
2145
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2151
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2154
dynamic_linker='Win32 ld.exe'
2155
# FIXME: first we should search . and the directory the executable is in
2159
darwin* | rhapsody*)
2160
dynamic_linker="$host_os dyld"
2164
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2165
soname_spec='${libname}${release}${major}$shared_ext'
2166
shlibpath_overrides_runpath=yes
2167
shlibpath_var=DYLD_LIBRARY_PATH
2168
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2170
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2171
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2179
soname_spec='${libname}${release}${shared_ext}$major'
2180
shlibpath_var=LD_LIBRARY_PATH
2187
freebsd* | dragonfly*)
2188
# DragonFly does not have aout. When/if they implement a new
2189
# versioning mechanism, adjust this.
2190
if test -x /usr/bin/objformat; then
2191
objformat=`/usr/bin/objformat`
2194
freebsd[[123]]*) objformat=aout ;;
2198
version_type=freebsd-$objformat
2199
case $version_type in
2201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2206
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2210
shlibpath_var=LD_LIBRARY_PATH
2213
shlibpath_overrides_runpath=yes
2215
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2216
shlibpath_overrides_runpath=yes
2217
hardcode_into_libs=yes
2219
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2220
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2221
shlibpath_overrides_runpath=no
2222
hardcode_into_libs=yes
2224
*) # from 4.6 on, and DragonFly
2225
shlibpath_overrides_runpath=yes
2226
hardcode_into_libs=yes
2235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2236
soname_spec='${libname}${release}${shared_ext}$major'
2237
shlibpath_var=LD_LIBRARY_PATH
2238
hardcode_into_libs=yes
2241
hpux9* | hpux10* | hpux11*)
2242
# Give a soname corresponding to the major version so that dld.sl refuses to
2243
# link against other versions.
2250
hardcode_into_libs=yes
2251
dynamic_linker="$host_os dld.so"
2252
shlibpath_var=LD_LIBRARY_PATH
2253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2255
soname_spec='${libname}${release}${shared_ext}$major'
2256
if test "X$HPUX_IA64_MODE" = X32; then
2257
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2259
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2261
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2265
hardcode_into_libs=yes
2266
dynamic_linker="$host_os dld.sl"
2267
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2268
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2270
soname_spec='${libname}${release}${shared_ext}$major'
2271
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2272
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2276
dynamic_linker="$host_os dld.sl"
2277
shlibpath_var=SHLIB_PATH
2278
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2280
soname_spec='${libname}${release}${shared_ext}$major'
2283
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2284
postinstall_cmds='chmod 555 $lib'
2291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2292
soname_spec='${libname}${release}${shared_ext}$major'
2293
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2294
shlibpath_var=LD_LIBRARY_PATH
2295
shlibpath_overrides_runpath=no
2296
hardcode_into_libs=yes
2299
irix5* | irix6* | nonstopux*)
2301
nonstopux*) version_type=nonstopux ;;
2303
if test "$lt_cv_prog_gnu_ld" = yes; then
2311
soname_spec='${libname}${release}${shared_ext}$major'
2312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2314
irix5* | nonstopux*)
2318
case $LD in # libtool.m4 will add one of these switches to LD
2319
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2320
libsuff= shlibsuff= libmagic=32-bit;;
2321
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2322
libsuff=32 shlibsuff=N32 libmagic=N32;;
2323
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2324
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2325
*) libsuff= shlibsuff= libmagic=never-match;;
2329
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2330
shlibpath_overrides_runpath=no
2331
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2332
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2333
hardcode_into_libs=yes
2336
# No shared lib support for Linux oldld, aout, or coff.
2337
linux*oldld* | linux*aout* | linux*coff*)
2341
# This must be Linux ELF.
2342
linux* | k*bsd*-gnu)
2346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2347
soname_spec='${libname}${release}${shared_ext}$major'
2348
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2349
shlibpath_var=LD_LIBRARY_PATH
2350
shlibpath_overrides_runpath=no
2351
# This implies no fast_install, which is unacceptable.
2352
# Some rework will be needed to allow for fast_install
2353
# before this can be enabled.
2354
hardcode_into_libs=yes
2356
# Append ld.so.conf contents to the search path
2357
if test -f /etc/ld.so.conf; then
2358
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2359
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2362
# We used to test for /lib/ld.so.1 and disable shared libraries on
2363
# powerpc, because MkLinux only supported shared libraries with the
2364
# GNU dynamic linker. Since this was broken with cross compilers,
2365
# most powerpc-linux boxes support dynamic linking these days and
2366
# people can always --disable-shared, the test was removed, and we
2367
# assume the GNU/Linux dynamic linker is in use.
2368
dynamic_linker='GNU/Linux ld.so'
2375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2376
soname_spec='${libname}${release}${shared_ext}$major'
2377
shlibpath_var=LD_LIBRARY_PATH
2378
shlibpath_overrides_runpath=no
2379
hardcode_into_libs=yes
2380
dynamic_linker='NetBSD ld.elf_so'
2387
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2389
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2390
dynamic_linker='NetBSD (a.out) ld.so'
2392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2393
soname_spec='${libname}${release}${shared_ext}$major'
2394
dynamic_linker='NetBSD ld.elf_so'
2396
shlibpath_var=LD_LIBRARY_PATH
2397
shlibpath_overrides_runpath=yes
2398
hardcode_into_libs=yes
2403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2404
shlibpath_var=LD_LIBRARY_PATH
2405
shlibpath_overrides_runpath=yes
2412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2413
soname_spec='${libname}${release}${shared_ext}$major'
2414
shlibpath_var=LD_LIBRARY_PATH
2415
shlibpath_overrides_runpath=yes
2420
sys_lib_dlsearch_path_spec="/usr/lib"
2422
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2424
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2425
*) need_version=no ;;
2427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2428
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2429
shlibpath_var=LD_LIBRARY_PATH
2430
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2432
openbsd2.[[89]] | openbsd2.[[89]].*)
2433
shlibpath_overrides_runpath=no
2436
shlibpath_overrides_runpath=yes
2440
shlibpath_overrides_runpath=yes
2445
libname_spec='$name'
2448
library_names_spec='$libname${shared_ext} $libname.a'
2449
dynamic_linker='OS/2 ld.exe'
2450
shlibpath_var=LIBPATH
2453
osf3* | osf4* | osf5*)
2457
soname_spec='${libname}${release}${shared_ext}$major'
2458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2459
shlibpath_var=LD_LIBRARY_PATH
2460
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2461
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2473
soname_spec='${libname}${release}${shared_ext}$major'
2474
shlibpath_var=LD_LIBRARY_PATH
2475
shlibpath_overrides_runpath=yes
2476
hardcode_into_libs=yes
2477
# ldd complains unless libraries are executable
2478
postinstall_cmds='chmod +x $lib'
2483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2484
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2485
shlibpath_var=LD_LIBRARY_PATH
2486
shlibpath_overrides_runpath=yes
2487
if test "$with_gnu_ld" = yes; then
2495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2496
soname_spec='${libname}${release}${shared_ext}$major'
2497
shlibpath_var=LD_LIBRARY_PATH
2498
case $host_vendor in
2500
shlibpath_overrides_runpath=no
2502
export_dynamic_flag_spec='${wl}-Blargedynsym'
2503
runpath_var=LD_RUN_PATH
2511
shlibpath_overrides_runpath=no
2512
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2518
if test -d /usr/nec ;then
2520
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2521
soname_spec='$libname${shared_ext}.$major'
2522
shlibpath_var=LD_LIBRARY_PATH
2526
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2527
version_type=freebsd-elf
2530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2531
soname_spec='${libname}${release}${shared_ext}$major'
2532
shlibpath_var=LD_LIBRARY_PATH
2533
hardcode_into_libs=yes
2534
if test "$with_gnu_ld" = yes; then
2535
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2536
shlibpath_overrides_runpath=no
2538
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2539
shlibpath_overrides_runpath=yes
2542
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2546
sys_lib_dlsearch_path_spec='/usr/lib'
2551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2552
soname_spec='${libname}${release}${shared_ext}$major'
2553
shlibpath_var=LD_LIBRARY_PATH
2560
AC_MSG_RESULT([$dynamic_linker])
2561
test "$dynamic_linker" = no && can_build_shared=no
2563
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2564
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2565
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2566
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2567
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2568
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2570
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2571
if test "$GCC" = yes; then
2572
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2574
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2579
AC_DEFUN([_LT_AC_TAGCONFIG],
2580
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2582
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2583
[include additional configurations @<:@automatic@:>@])],
2584
[tagnames="$withval"])
2586
if test -f "$ltmain" && test -n "$tagnames"; then
2587
if test ! -f "${ofile}"; then
2588
AC_MSG_WARN([output file `$ofile' does not exist])
2591
if test -z "$LTCC"; then
2592
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2593
if test -z "$LTCC"; then
2594
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2596
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2599
if test -z "$LTCFLAGS"; then
2600
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2603
# Extract list of available tagged configurations in $ofile.
2604
# Note that this assumes the entire list is on one line.
2605
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2607
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2608
for tagname in $tagnames; do
2610
# Check whether tagname contains only valid characters
2611
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2613
*) AC_MSG_ERROR([invalid tag name: $tagname])
2617
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2619
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2622
# Update the list of available tags.
2623
if test -n "$tagname"; then
2624
echo appending configuration tag \"$tagname\" to $ofile
2628
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2629
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2630
(test "X$CXX" != "Xg++"))) ; then
2631
AC_LIBTOOL_LANG_CXX_CONFIG
2638
if test -n "$F77" && test "X$F77" != "Xno"; then
2639
AC_LIBTOOL_LANG_F77_CONFIG
2646
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2647
AC_LIBTOOL_LANG_GCJ_CONFIG
2654
AC_LIBTOOL_LANG_RC_CONFIG
2658
AC_MSG_ERROR([Unsupported tag name: $tagname])
2662
# Append the new tag name to the list of available tags.
2663
if test -n "$tagname" ; then
2664
available_tags="$available_tags $tagname"
2670
# Now substitute the updated list of available tags.
2671
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2672
mv "${ofile}T" "$ofile"
2676
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2679
])# _LT_AC_TAGCONFIG
2684
# enable checks for dlopen support
2685
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2686
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2687
])# AC_LIBTOOL_DLOPEN
2690
# AC_LIBTOOL_WIN32_DLL
2691
# --------------------
2692
# declare package support for building win32 DLLs
2693
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2694
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2695
])# AC_LIBTOOL_WIN32_DLL
2698
# AC_ENABLE_SHARED([DEFAULT])
2699
# ---------------------------
2700
# implement the --enable-shared flag
2701
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2702
AC_DEFUN([AC_ENABLE_SHARED],
2703
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2704
AC_ARG_ENABLE([shared],
2705
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2706
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2707
[p=${PACKAGE-default}
2709
yes) enable_shared=yes ;;
2710
no) enable_shared=no ;;
2713
# Look at the argument we got. We use all the common list separators.
2714
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2715
for pkg in $enableval; do
2717
if test "X$pkg" = "X$p"; then
2724
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2725
])# AC_ENABLE_SHARED
2730
# set the default shared flag to --disable-shared
2731
AC_DEFUN([AC_DISABLE_SHARED],
2732
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2733
AC_ENABLE_SHARED(no)
2734
])# AC_DISABLE_SHARED
2737
# AC_ENABLE_STATIC([DEFAULT])
2738
# ---------------------------
2739
# implement the --enable-static flag
2740
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2741
AC_DEFUN([AC_ENABLE_STATIC],
2742
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2743
AC_ARG_ENABLE([static],
2744
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2745
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2746
[p=${PACKAGE-default}
2748
yes) enable_static=yes ;;
2749
no) enable_static=no ;;
2752
# Look at the argument we got. We use all the common list separators.
2753
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2754
for pkg in $enableval; do
2756
if test "X$pkg" = "X$p"; then
2763
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2764
])# AC_ENABLE_STATIC
2769
# set the default static flag to --disable-static
2770
AC_DEFUN([AC_DISABLE_STATIC],
2771
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2772
AC_ENABLE_STATIC(no)
2773
])# AC_DISABLE_STATIC
2776
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2777
# ---------------------------------
2778
# implement the --enable-fast-install flag
2779
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2780
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2781
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2782
AC_ARG_ENABLE([fast-install],
2783
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2784
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2785
[p=${PACKAGE-default}
2787
yes) enable_fast_install=yes ;;
2788
no) enable_fast_install=no ;;
2790
enable_fast_install=no
2791
# Look at the argument we got. We use all the common list separators.
2792
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2793
for pkg in $enableval; do
2795
if test "X$pkg" = "X$p"; then
2796
enable_fast_install=yes
2802
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2803
])# AC_ENABLE_FAST_INSTALL
2806
# AC_DISABLE_FAST_INSTALL
2807
# -----------------------
2808
# set the default to --disable-fast-install
2809
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2810
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2811
AC_ENABLE_FAST_INSTALL(no)
2812
])# AC_DISABLE_FAST_INSTALL
2815
# AC_LIBTOOL_PICMODE([MODE])
2816
# --------------------------
2817
# implement the --with-pic flag
2818
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2819
AC_DEFUN([AC_LIBTOOL_PICMODE],
2820
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2821
pic_mode=ifelse($#,1,$1,default)
2822
])# AC_LIBTOOL_PICMODE
2827
# This is predefined starting with Autoconf 2.54, so this conditional
2828
# definition can be removed once we require Autoconf 2.54 or later.
2829
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2830
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2831
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2832
then ac_cv_prog_egrep='grep -E'
2833
else ac_cv_prog_egrep='egrep'
2835
EGREP=$ac_cv_prog_egrep
2840
# AC_PATH_TOOL_PREFIX
2841
# -------------------
2842
# find a file program which can recognize shared library
2843
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2844
[AC_REQUIRE([AC_PROG_EGREP])dnl
2845
AC_MSG_CHECKING([for $1])
2846
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2848
[[\\/*] | ?:[\\/]*])
2849
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2852
lt_save_MAGIC_CMD="$MAGIC_CMD"
2853
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2854
dnl $ac_dummy forces splitting on constant user-supplied paths.
2855
dnl POSIX.2 word splitting is done only on the output of word expansions,
2856
dnl not every word. This closes a longstanding sh security hole.
2857
ac_dummy="ifelse([$2], , $PATH, [$2])"
2858
for ac_dir in $ac_dummy; do
2860
test -z "$ac_dir" && ac_dir=.
2861
if test -f $ac_dir/$1; then
2862
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2863
if test -n "$file_magic_test_file"; then
2864
case $deplibs_check_method in
2866
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2867
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2868
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2869
$EGREP "$file_magic_regex" > /dev/null; then
2874
*** Warning: the command libtool uses to detect shared libraries,
2875
*** $file_magic_cmd, produces output that libtool cannot recognize.
2876
*** The result is that libtool may fail to recognize shared libraries
2877
*** as such. This will affect the creation of libtool libraries that
2878
*** depend on shared libraries, but programs linked with such libtool
2879
*** libraries will work regardless of this problem. Nevertheless, you
2880
*** may want to report the problem to your system manager and/or to
2881
*** bug-libtool@gnu.org
2891
MAGIC_CMD="$lt_save_MAGIC_CMD"
2894
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2895
if test -n "$MAGIC_CMD"; then
2896
AC_MSG_RESULT($MAGIC_CMD)
2900
])# AC_PATH_TOOL_PREFIX
2905
# find a file program which can recognize a shared library
2906
AC_DEFUN([AC_PATH_MAGIC],
2907
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2908
if test -z "$lt_cv_path_MAGIC_CMD"; then
2909
if test -n "$ac_tool_prefix"; then
2910
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2920
# find the pathname to the GNU or non-GNU linker
2921
AC_DEFUN([AC_PROG_LD],
2922
[AC_ARG_WITH([gnu-ld],
2923
[AC_HELP_STRING([--with-gnu-ld],
2924
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2925
[test "$withval" = no || with_gnu_ld=yes],
2927
AC_REQUIRE([LT_AC_PROG_SED])dnl
2928
AC_REQUIRE([AC_PROG_CC])dnl
2929
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2930
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2932
if test "$GCC" = yes; then
2933
# Check if gcc -print-prog-name=ld gives a path.
2934
AC_MSG_CHECKING([for ld used by $CC])
2937
# gcc leaves a trailing carriage return which upsets mingw
2938
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2940
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2943
# Accept absolute paths.
2944
[[\\/]]* | ?:[[\\/]]*)
2945
re_direlt='/[[^/]][[^/]]*/\.\./'
2946
# Canonicalize the pathname of ld
2947
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2948
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2949
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2951
test -z "$LD" && LD="$ac_prog"
2954
# If it fails, then pretend we aren't using GCC.
2958
# If it is relative, then search for the first ld in PATH.
2962
elif test "$with_gnu_ld" = yes; then
2963
AC_MSG_CHECKING([for GNU ld])
2965
AC_MSG_CHECKING([for non-GNU ld])
2967
AC_CACHE_VAL(lt_cv_path_LD,
2968
[if test -z "$LD"; then
2969
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2970
for ac_dir in $PATH; do
2972
test -z "$ac_dir" && ac_dir=.
2973
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2974
lt_cv_path_LD="$ac_dir/$ac_prog"
2975
# Check to see if the program is GNU ld. I'd rather use --version,
2976
# but apparently some variants of GNU ld only accept -v.
2977
# Break only if it was the GNU/non-GNU ld that we prefer.
2978
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2979
*GNU* | *'with BFD'*)
2980
test "$with_gnu_ld" != no && break
2983
test "$with_gnu_ld" != yes && break
2990
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2993
if test -n "$LD"; then
2998
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3005
AC_DEFUN([AC_PROG_LD_GNU],
3006
[AC_REQUIRE([AC_PROG_EGREP])dnl
3007
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3008
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3009
case `$LD -v 2>&1 </dev/null` in
3010
*GNU* | *'with BFD'*)
3011
lt_cv_prog_gnu_ld=yes
3014
lt_cv_prog_gnu_ld=no
3017
with_gnu_ld=$lt_cv_prog_gnu_ld
3021
# AC_PROG_LD_RELOAD_FLAG
3022
# ----------------------
3023
# find reload flag for linker
3024
# -- PORTME Some linkers may need a different reload flag.
3025
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3026
[AC_CACHE_CHECK([for $LD option to reload object files],
3027
lt_cv_ld_reload_flag,
3028
[lt_cv_ld_reload_flag='-r'])
3029
reload_flag=$lt_cv_ld_reload_flag
3030
case $reload_flag in
3032
*) reload_flag=" $reload_flag" ;;
3034
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3037
if test "$GCC" = yes; then
3038
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3040
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3044
])# AC_PROG_LD_RELOAD_FLAG
3047
# AC_DEPLIBS_CHECK_METHOD
3048
# -----------------------
3049
# how to check for library dependencies
3050
# -- PORTME fill in with the dynamic library characteristics
3051
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3052
[AC_CACHE_CHECK([how to recognize dependent libraries],
3053
lt_cv_deplibs_check_method,
3054
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3055
lt_cv_file_magic_test_file=
3056
lt_cv_deplibs_check_method='unknown'
3057
# Need to set the preceding variable on all platforms that support
3058
# interlibrary dependencies.
3059
# 'none' -- dependencies not supported.
3060
# `unknown' -- same as none, but documents that we really don't know.
3061
# 'pass_all' -- all dependencies passed with no checks.
3062
# 'test_compile' -- check by making test program.
3063
# 'file_magic [[regex]]' -- check by looking for files in library path
3064
# which responds to the $file_magic_cmd with a given extended regex.
3065
# If you have `file' or equivalent on your system and you're not sure
3066
# whether `pass_all' will *always* work, you probably want this one.
3070
lt_cv_deplibs_check_method=pass_all
3074
lt_cv_deplibs_check_method=pass_all
3078
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3079
lt_cv_file_magic_cmd='/usr/bin/file -L'
3080
lt_cv_file_magic_test_file=/shlib/libc.so
3084
# func_win32_libid is a shell function defined in ltmain.sh
3085
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3086
lt_cv_file_magic_cmd='func_win32_libid'
3090
# Base MSYS/MinGW do not provide the 'file' command needed by
3091
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3092
# unless we find 'file', for example because we are cross-compiling.
3093
if ( file / ) >/dev/null 2>&1; then
3094
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3095
lt_cv_file_magic_cmd='func_win32_libid'
3097
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3098
lt_cv_file_magic_cmd='$OBJDUMP -f'
3102
darwin* | rhapsody*)
3103
lt_cv_deplibs_check_method=pass_all
3106
freebsd* | dragonfly*)
3107
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3110
# Not sure whether the presence of OpenBSD here was a mistake.
3111
# Let's accept both of them until this is cleared up.
3112
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3113
lt_cv_file_magic_cmd=/usr/bin/file
3114
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3118
lt_cv_deplibs_check_method=pass_all
3123
lt_cv_deplibs_check_method=pass_all
3126
hpux10.20* | hpux11*)
3127
lt_cv_file_magic_cmd=/usr/bin/file
3130
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3131
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3134
[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]']
3135
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3138
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3139
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3145
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3146
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3149
irix5* | irix6* | nonstopux*)
3151
*-32|*"-32 ") libmagic=32-bit;;
3152
*-n32|*"-n32 ") libmagic=N32;;
3153
*-64|*"-64 ") libmagic=64-bit;;
3154
*) libmagic=never-match;;
3156
lt_cv_deplibs_check_method=pass_all
3159
# This must be Linux ELF.
3160
linux* | k*bsd*-gnu)
3161
lt_cv_deplibs_check_method=pass_all
3164
netbsd* | netbsdelf*-gnu)
3165
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3166
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3168
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3173
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3174
lt_cv_file_magic_cmd=/usr/bin/file
3175
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3179
lt_cv_deplibs_check_method=unknown
3183
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3184
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3186
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3190
osf3* | osf4* | osf5*)
3191
lt_cv_deplibs_check_method=pass_all
3195
lt_cv_deplibs_check_method=pass_all
3199
lt_cv_deplibs_check_method=pass_all
3203
case $host_vendor in
3205
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]]'
3206
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3209
lt_cv_deplibs_check_method=pass_all
3212
lt_cv_file_magic_cmd='/bin/file'
3213
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3216
lt_cv_file_magic_cmd='/bin/file'
3217
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3218
lt_cv_file_magic_test_file=/lib/libc.so
3221
lt_cv_deplibs_check_method=pass_all
3224
lt_cv_deplibs_check_method=pass_all
3229
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3230
lt_cv_deplibs_check_method=pass_all
3234
file_magic_cmd=$lt_cv_file_magic_cmd
3235
deplibs_check_method=$lt_cv_deplibs_check_method
3236
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3237
])# AC_DEPLIBS_CHECK_METHOD
3242
# find the pathname to a BSD-compatible name lister
3243
AC_DEFUN([AC_PROG_NM],
3244
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3245
[if test -n "$NM"; then
3246
# Let the user override the test.
3249
lt_nm_to_check="${ac_tool_prefix}nm"
3250
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3251
lt_nm_to_check="$lt_nm_to_check nm"
3253
for lt_tmp_nm in $lt_nm_to_check; do
3254
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3255
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3257
test -z "$ac_dir" && ac_dir=.
3258
tmp_nm="$ac_dir/$lt_tmp_nm"
3259
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3260
# Check to see if the nm accepts a BSD-compat flag.
3261
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3262
# nm: unknown option "B" ignored
3263
# Tru64's nm complains that /dev/null is an invalid object file
3264
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3265
*/dev/null* | *'Invalid file or object type'*)
3266
lt_cv_path_NM="$tmp_nm -B"
3270
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3272
lt_cv_path_NM="$tmp_nm -p"
3276
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3277
continue # so that we can try to find one that supports BSD flags
3286
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3294
# check for math library
3295
AC_DEFUN([AC_CHECK_LIBM],
3296
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3299
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3300
# These system don't have libm, or don't need it
3303
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3304
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3307
AC_CHECK_LIB(m, cos, LIBM="-lm")
3313
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3314
# -----------------------------------
3315
# sets LIBLTDL to the link flags for the libltdl convenience library and
3316
# LTDLINCL to the include flags for the libltdl header and adds
3317
# --enable-ltdl-convenience to the configure arguments. Note that
3318
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3319
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3320
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3321
# (note the single quotes!). If your package is not flat and you're not
3322
# using automake, define top_builddir and top_srcdir appropriately in
3324
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3325
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3326
case $enable_ltdl_convenience in
3327
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3328
"") enable_ltdl_convenience=yes
3329
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3331
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3332
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3333
# For backwards non-gettext consistent compatibility...
3335
])# AC_LIBLTDL_CONVENIENCE
3338
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3339
# -----------------------------------
3340
# sets LIBLTDL to the link flags for the libltdl installable library and
3341
# LTDLINCL to the include flags for the libltdl header and adds
3342
# --enable-ltdl-install to the configure arguments. Note that
3343
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3344
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3345
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3346
# '${top_srcdir}/' (note the single quotes!). If your package is not
3347
# flat and you're not using automake, define top_builddir and top_srcdir
3348
# appropriately in the Makefiles.
3349
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3350
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3351
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3352
AC_CHECK_LIB(ltdl, lt_dlinit,
3353
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3354
[if test x"$enable_ltdl_install" = xno; then
3355
AC_MSG_WARN([libltdl not installed, but installation disabled])
3357
enable_ltdl_install=yes
3360
if test x"$enable_ltdl_install" = x"yes"; then
3361
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3362
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3363
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3365
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3369
# For backwards non-gettext consistent compatibility...
3371
])# AC_LIBLTDL_INSTALLABLE
3376
# enable support for C++ libraries
3377
AC_DEFUN([AC_LIBTOOL_CXX],
3378
[AC_REQUIRE([_LT_AC_LANG_CXX])
3384
AC_DEFUN([_LT_AC_LANG_CXX],
3385
[AC_REQUIRE([AC_PROG_CXX])
3386
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3387
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3390
# _LT_AC_PROG_CXXCPP
3391
# ------------------
3392
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3394
AC_REQUIRE([AC_PROG_CXX])
3395
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3396
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3397
(test "X$CXX" != "Xg++"))) ; then
3400
])# _LT_AC_PROG_CXXCPP
3404
# enable support for Fortran 77 libraries
3405
AC_DEFUN([AC_LIBTOOL_F77],
3406
[AC_REQUIRE([_LT_AC_LANG_F77])
3412
AC_DEFUN([_LT_AC_LANG_F77],
3413
[AC_REQUIRE([AC_PROG_F77])
3414
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3420
# enable support for GCJ libraries
3421
AC_DEFUN([AC_LIBTOOL_GCJ],
3422
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3428
AC_DEFUN([_LT_AC_LANG_GCJ],
3429
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3430
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3431
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3432
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3433
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3434
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3435
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3441
# enable support for Windows resource files
3442
AC_DEFUN([AC_LIBTOOL_RC],
3443
[AC_REQUIRE([LT_AC_PROG_RC])
3444
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3448
# AC_LIBTOOL_LANG_C_CONFIG
3449
# ------------------------
3450
# Ensure that the configuration vars for the C compiler are
3451
# suitably defined. Those variables are subsequently used by
3452
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3453
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3454
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3458
# Source file extension for C test sources.
3461
# Object file extension for compiled C test sources.
3463
_LT_AC_TAGVAR(objext, $1)=$objext
3465
# Code to be used in simple compile tests
3466
lt_simple_compile_test_code="int some_variable = 0;"
3468
# Code to be used in simple link tests
3469
lt_simple_link_test_code='int main(){return(0);}'
3473
# save warnings/boilerplate of simple test code
3474
_LT_COMPILER_BOILERPLATE
3475
_LT_LINKER_BOILERPLATE
3477
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3478
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3479
AC_LIBTOOL_PROG_CC_C_O($1)
3480
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3481
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3482
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3483
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3484
AC_LIBTOOL_SYS_LIB_STRIP
3485
AC_LIBTOOL_DLOPEN_SELF
3487
# Report which library types will actually be built
3488
AC_MSG_CHECKING([if libtool supports shared libraries])
3489
AC_MSG_RESULT([$can_build_shared])
3491
AC_MSG_CHECKING([whether to build shared libraries])
3492
test "$can_build_shared" = "no" && enable_shared=no
3494
# On AIX, shared libraries and static libraries use the same namespace, and
3495
# are all built from PIC.
3498
test "$enable_shared" = yes && enable_static=no
3499
if test -n "$RANLIB"; then
3500
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3501
postinstall_cmds='$RANLIB $lib'
3506
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3507
test "$enable_shared" = yes && enable_static=no
3511
AC_MSG_RESULT([$enable_shared])
3513
AC_MSG_CHECKING([whether to build static libraries])
3514
# Make sure either enable_shared or enable_static is yes.
3515
test "$enable_shared" = yes || enable_static=yes
3516
AC_MSG_RESULT([$enable_static])
3518
AC_LIBTOOL_CONFIG($1)
3522
])# AC_LIBTOOL_LANG_C_CONFIG
3525
# AC_LIBTOOL_LANG_CXX_CONFIG
3526
# --------------------------
3527
# Ensure that the configuration vars for the C compiler are
3528
# suitably defined. Those variables are subsequently used by
3529
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3530
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3531
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3533
AC_REQUIRE([AC_PROG_CXX])
3534
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3536
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3537
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3538
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3539
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3540
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3541
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3542
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3543
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3544
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3545
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3546
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3547
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3548
_LT_AC_TAGVAR(module_cmds, $1)=
3549
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3550
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3551
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3552
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3553
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3554
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3556
# Dependencies to place before and after the object being linked:
3557
_LT_AC_TAGVAR(predep_objects, $1)=
3558
_LT_AC_TAGVAR(postdep_objects, $1)=
3559
_LT_AC_TAGVAR(predeps, $1)=
3560
_LT_AC_TAGVAR(postdeps, $1)=
3561
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3562
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3564
# Source file extension for C++ test sources.
3567
# Object file extension for compiled C++ test sources.
3569
_LT_AC_TAGVAR(objext, $1)=$objext
3571
# Code to be used in simple compile tests
3572
lt_simple_compile_test_code="int some_variable = 0;"
3574
# Code to be used in simple link tests
3575
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3577
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3580
# save warnings/boilerplate of simple test code
3581
_LT_COMPILER_BOILERPLATE
3582
_LT_LINKER_BOILERPLATE
3584
# Allow CC to be a program name with arguments.
3589
lt_save_with_gnu_ld=$with_gnu_ld
3590
lt_save_path_LD=$lt_cv_path_LD
3591
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3592
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3594
$as_unset lt_cv_prog_gnu_ld
3596
if test -n "${lt_cv_path_LDCXX+set}"; then
3597
lt_cv_path_LD=$lt_cv_path_LDCXX
3599
$as_unset lt_cv_path_LD
3601
test -z "${LDCXX+set}" || LD=$LDCXX
3604
_LT_AC_TAGVAR(compiler, $1)=$CC
3605
_LT_CC_BASENAME([$compiler])
3607
# We don't want -fno-exception wen compiling C++ code, so set the
3608
# no_builtin_flag separately
3609
if test "$GXX" = yes; then
3610
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3612
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3615
if test "$GXX" = yes; then
3616
# Set up default GNU C++ configuration
3620
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3621
# archiving commands below assume that GNU ld is being used.
3622
if test "$with_gnu_ld" = yes; then
3623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3624
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3626
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3627
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3629
# If archive_cmds runs LD, not CC, wlarc should be empty
3630
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3631
# investigate it a little bit more. (MM)
3634
# ancient GNU ld didn't support --whole-archive et. al.
3635
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3636
grep 'no-whole-archive' > /dev/null; then
3637
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3639
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3645
# A generic and very simple default shared library creation
3646
# command for GNU C++ for the case where it uses the native
3647
# linker, instead of GNU ld. If possible, this setting should
3648
# overridden to take advantage of the native linker features on
3649
# the platform it is being used on.
3650
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3653
# Commands to make compiler produce verbose output that lists
3654
# what "hidden" libraries, object files and flags are used when
3655
# linking a shared library.
3656
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3664
# PORTME: fill in a description of your system's C++ link characteristics
3665
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3666
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3669
# FIXME: insert proper C++ library support
3670
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3673
if test "$host_cpu" = ia64; then
3674
# On IA64, the linker does run time linking by default, so we don't
3675
# have to do anything special.
3676
aix_use_runtimelinking=no
3677
exp_sym_flag='-Bexport'
3680
aix_use_runtimelinking=no
3682
# Test if we are trying to use run time linking or normal
3683
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3684
# need to do runtime linking.
3685
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3686
for ld_flag in $LDFLAGS; do
3689
aix_use_runtimelinking=yes
3697
exp_sym_flag='-bexport'
3698
no_entry_flag='-bnoentry'
3701
# When large executables or shared objects are built, AIX ld can
3702
# have problems creating the table of contents. If linking a library
3703
# or program results in "error TOC overflow" add -mminimal-toc to
3704
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3705
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3707
_LT_AC_TAGVAR(archive_cmds, $1)=''
3708
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3709
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3710
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3712
if test "$GXX" = yes; then
3713
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3714
# We only want to do this on AIX 4.2 and lower, the check
3715
# below for broken collect2 doesn't work under 4.3+
3716
collect2name=`${CC} -print-prog-name=collect2`
3717
if test -f "$collect2name" && \
3718
strings "$collect2name" | grep resolve_lib_name >/dev/null
3720
# We have reworked collect2
3723
# We have old collect2
3724
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3725
# It fails to find uninstalled libraries when the uninstalled
3726
# path is not listed in the libpath. Setting hardcode_minus_L
3727
# to unsupported forces relinking
3728
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3729
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3730
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3734
shared_flag='-shared'
3735
if test "$aix_use_runtimelinking" = yes; then
3736
shared_flag="$shared_flag "'${wl}-G'
3740
if test "$host_cpu" = ia64; then
3741
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3742
# chokes on -Wl,-G. The following line is correct:
3745
if test "$aix_use_runtimelinking" = yes; then
3746
shared_flag='${wl}-G'
3748
shared_flag='${wl}-bM:SRE'
3753
# It seems that -bexpall does not export symbols beginning with
3754
# underscore (_), so it is better to generate a list of symbols to export.
3755
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3756
if test "$aix_use_runtimelinking" = yes; then
3757
# Warning - without using the other runtime loading flags (-brtl),
3758
# -berok will link without error, but may produce a broken library.
3759
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3760
# Determine the default libpath from the value encoded in an empty executable.
3761
_LT_AC_SYS_LIBPATH_AIX
3762
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3764
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3766
if test "$host_cpu" = ia64; then
3767
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3768
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3769
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3771
# Determine the default libpath from the value encoded in an empty executable.
3772
_LT_AC_SYS_LIBPATH_AIX
3773
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3774
# Warning - without using the other run time loading flags,
3775
# -berok will link without error, but may produce a broken library.
3776
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3777
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3778
# Exported symbols can be pulled into shared objects from archives
3779
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3780
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3781
# This is similar to how AIX traditionally builds its shared libraries.
3782
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3788
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3789
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3790
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3791
# support --undefined. This deserves some investigation. FIXME
3792
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3794
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3799
case $cc_basename in
3801
# FIXME: insert proper C++ library support
3802
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3807
cygwin* | mingw* | pw32*)
3808
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3809
# as there is no search path for DLLs.
3810
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3811
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3812
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3813
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3815
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3816
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3817
# If the export-symbols file already is a .def file (1st line
3818
# is EXPORTS), use it as is; otherwise, prepend...
3819
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3820
cp $export_symbols $output_objdir/$soname.def;
3822
echo EXPORTS > $output_objdir/$soname.def;
3823
cat $export_symbols >> $output_objdir/$soname.def;
3825
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3827
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3830
darwin* | rhapsody*)
3831
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3832
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3833
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3834
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3835
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3836
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3837
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3838
if test "$GXX" = yes ; then
3839
output_verbose_link_cmd='echo'
3840
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3841
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3842
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3843
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3844
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3845
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3846
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3849
case $cc_basename in
3851
output_verbose_link_cmd='echo'
3852
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3853
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3854
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3855
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3856
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3859
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3866
case $cc_basename in
3868
# FIXME: insert proper C++ library support
3869
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3872
# Green Hills C++ Compiler
3873
# FIXME: insert proper C++ library support
3874
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3877
# FIXME: insert proper C++ library support
3878
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3883
# C++ shared libraries reported to be fairly broken before switch to ELF
3884
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3887
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3889
freebsd* | dragonfly*)
3890
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3892
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3897
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3898
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3899
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3900
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3901
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3902
# but as the default
3903
# location of the library.
3905
case $cc_basename in
3907
# FIXME: insert proper C++ library support
3908
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3911
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3912
# Commands to make compiler produce verbose output that lists
3913
# what "hidden" libraries, object files and flags are used when
3914
# linking a shared library.
3916
# There doesn't appear to be a way to prevent this compiler from
3917
# explicitly linking system object files so we need to strip them
3918
# from the output so that they don't get included in the library
3920
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'
3923
if test "$GXX" = yes; then
3924
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3926
# FIXME: insert proper C++ library support
3927
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3933
if test $with_gnu_ld = no; then
3934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3935
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3940
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3946
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3947
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3950
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3951
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3952
# but as the default
3953
# location of the library.
3957
case $cc_basename in
3959
# FIXME: insert proper C++ library support
3960
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3965
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3968
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3971
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3974
# Commands to make compiler produce verbose output that lists
3975
# what "hidden" libraries, object files and flags are used when
3976
# linking a shared library.
3978
# There doesn't appear to be a way to prevent this compiler from
3979
# explicitly linking system object files so we need to strip them
3980
# from the output so that they don't get included in the library
3982
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'
3985
if test "$GXX" = yes; then
3986
if test $with_gnu_ld = no; then
3989
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3992
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3995
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4000
# FIXME: insert proper C++ library support
4001
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4007
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4008
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4009
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4010
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4011
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4012
# Instead, shared libraries are loaded at an image base (0x10000000 by
4013
# default) and relocated if they conflict, which is a slow very memory
4014
# consuming and fragmenting process. To avoid this, we pick a random,
4015
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4016
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4017
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4018
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4021
case $cc_basename in
4024
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4026
# Archives containing C++ object files must be created using
4027
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4028
# necessary to make sure instantiated templates are included
4030
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4033
if test "$GXX" = yes; then
4034
if test "$with_gnu_ld" = no; then
4035
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4037
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4040
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4043
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4044
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4046
linux* | k*bsd*-gnu)
4047
case $cc_basename in
4049
# Kuck and Associates, Inc. (KAI) C++ Compiler
4051
# KCC will only create a shared library if the output file
4052
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4053
# to its proper name (with version) after linking.
4054
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4055
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4056
# Commands to make compiler produce verbose output that lists
4057
# what "hidden" libraries, object files and flags are used when
4058
# linking a shared library.
4060
# There doesn't appear to be a way to prevent this compiler from
4061
# explicitly linking system object files so we need to strip them
4062
# from the output so that they don't get included in the library
4064
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'
4066
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4067
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4069
# Archives containing C++ object files must be created using
4070
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4071
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4076
# version 8.0 and above of icpc choke on multiply defined symbols
4077
# if we add $predep_objects and $postdep_objects, however 7.1 and
4078
# earlier do not add the objects themselves.
4079
case `$CC -V 2>&1` in
4081
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4082
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4084
*) # Version 8.0 or newer
4087
ia64*) tmp_idyn=' -i_dynamic';;
4089
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4090
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4093
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4094
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4095
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4096
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4099
# Portland Group C++ compiler
4100
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4101
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4104
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4105
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4109
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4110
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4112
runpath_var=LD_RUN_PATH
4113
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4114
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4116
# Commands to make compiler produce verbose output that lists
4117
# what "hidden" libraries, object files and flags are used when
4118
# linking a shared library.
4120
# There doesn't appear to be a way to prevent this compiler from
4121
# explicitly linking system object files so we need to strip them
4122
# from the output so that they don't get included in the library
4124
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'
4127
case `$CC -V 2>&1 | sed 5q` in
4130
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4131
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4132
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4133
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4134
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4136
# Not sure whether something based on
4137
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4139
output_verbose_link_cmd='echo'
4141
# Archives containing C++ object files must be created using
4142
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4143
# necessary to make sure instantiated templates are included
4145
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4152
# FIXME: insert proper C++ library support
4153
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4156
# FIXME: insert proper C++ library support
4157
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4160
case $cc_basename in
4162
# FIXME: insert proper C++ library support
4163
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4166
# FIXME: insert proper C++ library support
4167
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4171
netbsd* | netbsdelf*-gnu)
4172
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4173
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4175
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4176
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4177
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4179
# Workaround some broken pre-1.5 toolchains
4180
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4183
# C++ shared libraries are fairly broken
4184
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4187
if test -f /usr/libexec/ld.so; then
4188
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4189
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4191
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4192
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4193
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4194
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4195
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4197
output_verbose_link_cmd='echo'
4199
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4203
case $cc_basename in
4205
# Kuck and Associates, Inc. (KAI) C++ Compiler
4207
# KCC will only create a shared library if the output file
4208
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4209
# to its proper name (with version) after linking.
4210
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4212
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4213
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4215
# Archives containing C++ object files must be created using
4216
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4217
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4221
# Rational C++ 2.4.1
4222
# FIXME: insert proper C++ library support
4223
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4226
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4227
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4229
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4230
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4232
# Commands to make compiler produce verbose output that lists
4233
# what "hidden" libraries, object files and flags are used when
4234
# linking a shared library.
4236
# There doesn't appear to be a way to prevent this compiler from
4237
# explicitly linking system object files so we need to strip them
4238
# from the output so that they don't get included in the library
4240
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'
4243
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4244
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4245
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4247
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4248
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4250
# Commands to make compiler produce verbose output that lists
4251
# what "hidden" libraries, object files and flags are used when
4252
# linking a shared library.
4253
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4256
# FIXME: insert proper C++ library support
4257
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4263
case $cc_basename in
4265
# Kuck and Associates, Inc. (KAI) C++ Compiler
4267
# KCC will only create a shared library if the output file
4268
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4269
# to its proper name (with version) after linking.
4270
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4272
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4273
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4275
# Archives containing C++ object files must be created using
4276
# the KAI C++ compiler.
4277
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4280
# Rational C++ 2.4.1
4281
# FIXME: insert proper C++ library support
4282
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4285
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4286
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4287
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4288
echo "-hidden">> $lib.exp~
4289
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4292
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4293
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4295
# Commands to make compiler produce verbose output that lists
4296
# what "hidden" libraries, object files and flags are used when
4297
# linking a shared library.
4299
# There doesn't appear to be a way to prevent this compiler from
4300
# explicitly linking system object files so we need to strip them
4301
# from the output so that they don't get included in the library
4303
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'
4306
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4307
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4308
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4310
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4311
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4313
# Commands to make compiler produce verbose output that lists
4314
# what "hidden" libraries, object files and flags are used when
4315
# linking a shared library.
4316
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4319
# FIXME: insert proper C++ library support
4320
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4326
# FIXME: insert proper C++ library support
4327
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4330
case $cc_basename in
4333
# FIXME: insert proper C++ library support
4334
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4338
# FIXME: insert proper C++ library support
4339
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4342
# FIXME: insert proper C++ library support
4343
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4348
case $cc_basename in
4350
# Sun C++ 4.2, 5.x and Centerline C++
4351
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4352
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4353
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4354
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4355
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4357
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4358
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4360
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4362
# The compiler driver will combine and reorder linker options,
4363
# but understands `-z linker_flag'.
4364
# Supported since Solaris 2.6 (maybe 2.5.1?)
4365
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4368
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4370
output_verbose_link_cmd='echo'
4372
# Archives containing C++ object files must be created using
4373
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4374
# necessary to make sure instantiated templates are included
4376
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4379
# Green Hills C++ Compiler
4380
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4382
# The C++ compiler must be used to create the archive.
4383
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4386
# GNU C++ compiler with Solaris linker
4387
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4388
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4389
if $CC --version | grep -v '^2\.7' > /dev/null; then
4390
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4391
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4392
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4394
# Commands to make compiler produce verbose output that lists
4395
# what "hidden" libraries, object files and flags are used when
4396
# linking a shared library.
4397
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4399
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4401
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4402
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4403
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4405
# Commands to make compiler produce verbose output that lists
4406
# what "hidden" libraries, object files and flags are used when
4407
# linking a shared library.
4408
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4411
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4413
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4415
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4422
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4423
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4424
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4425
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4426
runpath_var='LD_RUN_PATH'
4428
case $cc_basename in
4430
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4431
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4434
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4435
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4439
sysv5* | sco3.2v5* | sco5v6*)
4440
# Note: We can NOT use -z defs as we might desire, because we do not
4441
# link with -lc, and that would cause any symbols used from libc to
4442
# always be unresolved, which means just about no library would
4443
# ever link correctly. If we're not using GNU ld we use -z text
4444
# though, which does catch some bad symbols but isn't as heavy-handed
4446
# For security reasons, it is highly recommended that you always
4447
# use absolute paths for naming shared libraries, and exclude the
4448
# DT_RUNPATH tag from executables and libraries. But doing so
4449
# requires that you compile everything twice, which is a pain.
4450
# So that behaviour is only enabled if SCOABSPATH is set to a
4451
# non-empty value in the environment. Most likely only useful for
4452
# creating official distributions of packages.
4453
# This is a hack until libtool officially supports absolute path
4454
# names for shared libraries.
4455
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4456
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4457
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4458
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4459
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4460
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4461
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4462
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4463
runpath_var='LD_RUN_PATH'
4465
case $cc_basename in
4467
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4468
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4471
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4472
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4477
case $cc_basename in
4479
# NonStop-UX NCC 3.20
4480
# FIXME: insert proper C++ library support
4481
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4484
# FIXME: insert proper C++ library support
4485
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4490
# FIXME: insert proper C++ library support
4491
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4494
# FIXME: insert proper C++ library support
4495
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4498
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4499
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4501
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4502
_LT_AC_TAGVAR(LD, $1)="$LD"
4504
AC_LIBTOOL_POSTDEP_PREDEP($1)
4505
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4506
AC_LIBTOOL_PROG_CC_C_O($1)
4507
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4508
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4509
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4510
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4512
AC_LIBTOOL_CONFIG($1)
4519
with_gnu_ldcxx=$with_gnu_ld
4520
with_gnu_ld=$lt_save_with_gnu_ld
4521
lt_cv_path_LDCXX=$lt_cv_path_LD
4522
lt_cv_path_LD=$lt_save_path_LD
4523
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4524
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4525
])# AC_LIBTOOL_LANG_CXX_CONFIG
4527
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4528
# ------------------------------------
4529
# Figure out "hidden" library dependencies from verbose
4530
# compiler output when linking a shared library.
4531
# Parse the compiler output and extract the necessary
4532
# objects, libraries and library flags.
4533
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4534
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4535
dnl we can't use the lt_simple_compile_test_code here,
4536
dnl because it contains code intended for an executable,
4537
dnl not a library. It's possible we should let each
4538
dnl tag define a new lt_????_link_test_code variable,
4539
dnl but it's only used here...
4540
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4542
void foo (void) { a = 0; }
4544
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4548
Foo (void) { a = 0; }
4553
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4561
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4564
public void bar (void) {
4570
dnl Parse the compiler output and extract the necessary
4571
dnl objects, libraries and library flags.
4572
if AC_TRY_EVAL(ac_compile); then
4573
# Parse the compiler output and extract the necessary
4574
# objects, libraries and library flags.
4576
# Sentinel used to keep track of whether or not we are before
4577
# the conftest object file.
4578
pre_test_object_deps_done=no
4580
# The `*' in the case matches for architectures that use `case' in
4581
# $output_verbose_cmd can trigger glob expansion during the loop
4582
# eval without this substitution.
4583
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4585
for p in `eval $output_verbose_link_cmd`; do
4589
# Some compilers place space between "-{L,R}" and the path.
4592
|| test $p = "-R"; then
4599
if test "$pre_test_object_deps_done" = no; then
4602
# Internal compiler library paths should come after those
4603
# provided the user. The postdeps already come after the
4604
# user supplied libs so there is no need to process them.
4605
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4606
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4608
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4611
# The "-l" case would never come before the object being
4612
# linked, so don't bother handling this case.
4615
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4616
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4618
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4624
# This assumes that the test object file only shows up
4625
# once in the compiler output.
4626
if test "$p" = "conftest.$objext"; then
4627
pre_test_object_deps_done=yes
4631
if test "$pre_test_object_deps_done" = no; then
4632
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4633
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4635
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4638
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4639
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4641
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4646
*) ;; # Ignore the rest.
4654
echo "libtool.m4: error: problem compiling $1 test program"
4657
$rm -f confest.$objext
4659
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4660
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4661
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4664
# PORTME: override above test on systems where it is broken
4668
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4669
# hack all around it, let's just trust "g++" to DTRT.
4670
_LT_AC_TAGVAR(predep_objects,$1)=
4671
_LT_AC_TAGVAR(postdep_objects,$1)=
4672
_LT_AC_TAGVAR(postdeps,$1)=
4676
case `$CC -V 2>&1 | sed 5q` in
4680
# The more standards-conforming stlport4 library is
4681
# incompatible with the Cstd library. Avoid specifying
4682
# it if it's in CXXFLAGS. Ignore libCrun as
4683
# -library=stlport4 depends on it.
4684
case " $CXX $CXXFLAGS " in
4685
*" -library=stlport4 "*)
4686
solaris_use_stlport4=yes
4689
if test "$solaris_use_stlport4" != yes; then
4690
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4697
case $cc_basename in
4699
# The more standards-conforming stlport4 library is
4700
# incompatible with the Cstd library. Avoid specifying
4701
# it if it's in CXXFLAGS. Ignore libCrun as
4702
# -library=stlport4 depends on it.
4703
case " $CXX $CXXFLAGS " in
4704
*" -library=stlport4 "*)
4705
solaris_use_stlport4=yes
4709
# Adding this requires a known-good setup of shared libraries for
4710
# Sun compiler versions before 5.6, else PIC objects from an old
4711
# archive will be linked into the output, leading to subtle bugs.
4712
if test "$solaris_use_stlport4" != yes; then
4713
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4720
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4721
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4723
])# AC_LIBTOOL_POSTDEP_PREDEP
4725
# AC_LIBTOOL_LANG_F77_CONFIG
4726
# --------------------------
4727
# Ensure that the configuration vars for the C compiler are
4728
# suitably defined. Those variables are subsequently used by
4729
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4730
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4731
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4732
[AC_REQUIRE([AC_PROG_F77])
4733
AC_LANG_PUSH(Fortran 77)
4735
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4736
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4737
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4738
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4739
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4740
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4741
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4742
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4743
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4744
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4745
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4746
_LT_AC_TAGVAR(module_cmds, $1)=
4747
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4748
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4749
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4750
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4751
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4752
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4754
# Source file extension for f77 test sources.
4757
# Object file extension for compiled f77 test sources.
4759
_LT_AC_TAGVAR(objext, $1)=$objext
4761
# Code to be used in simple compile tests
4762
lt_simple_compile_test_code="\
4768
# Code to be used in simple link tests
4769
lt_simple_link_test_code="\
4774
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4777
# save warnings/boilerplate of simple test code
4778
_LT_COMPILER_BOILERPLATE
4779
_LT_LINKER_BOILERPLATE
4781
# Allow CC to be a program name with arguments.
4785
_LT_AC_TAGVAR(compiler, $1)=$CC
4786
_LT_CC_BASENAME([$compiler])
4788
AC_MSG_CHECKING([if libtool supports shared libraries])
4789
AC_MSG_RESULT([$can_build_shared])
4791
AC_MSG_CHECKING([whether to build shared libraries])
4792
test "$can_build_shared" = "no" && enable_shared=no
4794
# On AIX, shared libraries and static libraries use the same namespace, and
4795
# are all built from PIC.
4798
test "$enable_shared" = yes && enable_static=no
4799
if test -n "$RANLIB"; then
4800
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4801
postinstall_cmds='$RANLIB $lib'
4805
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4806
test "$enable_shared" = yes && enable_static=no
4810
AC_MSG_RESULT([$enable_shared])
4812
AC_MSG_CHECKING([whether to build static libraries])
4813
# Make sure either enable_shared or enable_static is yes.
4814
test "$enable_shared" = yes || enable_static=yes
4815
AC_MSG_RESULT([$enable_static])
4817
_LT_AC_TAGVAR(GCC, $1)="$G77"
4818
_LT_AC_TAGVAR(LD, $1)="$LD"
4820
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4821
AC_LIBTOOL_PROG_CC_C_O($1)
4822
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4823
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4824
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4825
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4827
AC_LIBTOOL_CONFIG($1)
4831
])# AC_LIBTOOL_LANG_F77_CONFIG
4834
# AC_LIBTOOL_LANG_GCJ_CONFIG
4835
# --------------------------
4836
# Ensure that the configuration vars for the C compiler are
4837
# suitably defined. Those variables are subsequently used by
4838
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4839
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4840
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4843
# Source file extension for Java test sources.
4846
# Object file extension for compiled Java test sources.
4848
_LT_AC_TAGVAR(objext, $1)=$objext
4850
# Code to be used in simple compile tests
4851
lt_simple_compile_test_code="class foo {}"
4853
# Code to be used in simple link tests
4854
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4856
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4859
# save warnings/boilerplate of simple test code
4860
_LT_COMPILER_BOILERPLATE
4861
_LT_LINKER_BOILERPLATE
4863
# Allow CC to be a program name with arguments.
4867
_LT_AC_TAGVAR(compiler, $1)=$CC
4868
_LT_CC_BASENAME([$compiler])
4870
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4871
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4873
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4875
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4876
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4877
AC_LIBTOOL_PROG_CC_C_O($1)
4878
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4879
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4880
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4881
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4883
AC_LIBTOOL_CONFIG($1)
4887
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4890
# AC_LIBTOOL_LANG_RC_CONFIG
4891
# -------------------------
4892
# Ensure that the configuration vars for the Windows resource compiler are
4893
# suitably defined. Those variables are subsequently used by
4894
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4895
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4896
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4899
# Source file extension for RC test sources.
4902
# Object file extension for compiled RC test sources.
4904
_LT_AC_TAGVAR(objext, $1)=$objext
4906
# Code to be used in simple compile tests
4907
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4909
# Code to be used in simple link tests
4910
lt_simple_link_test_code="$lt_simple_compile_test_code"
4912
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4915
# save warnings/boilerplate of simple test code
4916
_LT_COMPILER_BOILERPLATE
4917
_LT_LINKER_BOILERPLATE
4919
# Allow CC to be a program name with arguments.
4923
_LT_AC_TAGVAR(compiler, $1)=$CC
4924
_LT_CC_BASENAME([$compiler])
4925
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4927
AC_LIBTOOL_CONFIG($1)
4931
])# AC_LIBTOOL_LANG_RC_CONFIG
4934
# AC_LIBTOOL_CONFIG([TAGNAME])
4935
# ----------------------------
4936
# If TAGNAME is not passed, then create an initial libtool script
4937
# with a default configuration from the untagged config vars. Otherwise
4938
# add code to config.status for appending the configuration named by
4939
# TAGNAME from the matching tagged config vars.
4940
AC_DEFUN([AC_LIBTOOL_CONFIG],
4941
[# The else clause should only fire when bootstrapping the
4942
# libtool distribution, otherwise you forgot to ship ltmain.sh
4943
# with your package, and you will get complaints that there are
4944
# no rules to generate ltmain.sh.
4945
if test -f "$ltmain"; then
4946
# See if we are running on zsh, and set the options which allow our commands through
4947
# without removal of \ escapes.
4948
if test -n "${ZSH_VERSION+set}" ; then
4949
setopt NO_GLOB_SUBST
4951
# Now quote all the things that may contain metacharacters while being
4952
# careful not to overquote the AC_SUBSTed values. We take copies of the
4953
# variables and quote the copies for generation of the libtool script.
4954
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4956
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4957
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4958
deplibs_check_method reload_flag reload_cmds need_locks \
4959
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4960
lt_cv_sys_global_symbol_to_c_name_address \
4961
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4962
old_postinstall_cmds old_postuninstall_cmds \
4963
_LT_AC_TAGVAR(compiler, $1) \
4964
_LT_AC_TAGVAR(CC, $1) \
4965
_LT_AC_TAGVAR(LD, $1) \
4966
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4967
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4968
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4969
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4970
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4971
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4972
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4973
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4974
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4975
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4976
_LT_AC_TAGVAR(predep_objects, $1) \
4977
_LT_AC_TAGVAR(postdep_objects, $1) \
4978
_LT_AC_TAGVAR(predeps, $1) \
4979
_LT_AC_TAGVAR(postdeps, $1) \
4980
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4981
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4982
_LT_AC_TAGVAR(archive_cmds, $1) \
4983
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4984
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4985
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4986
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4987
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4988
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4989
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4990
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4991
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4992
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4993
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4994
_LT_AC_TAGVAR(module_cmds, $1) \
4995
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4996
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4997
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4998
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4999
_LT_AC_TAGVAR(include_expsyms, $1); do
5002
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5003
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5004
_LT_AC_TAGVAR(archive_cmds, $1) | \
5005
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5006
_LT_AC_TAGVAR(module_cmds, $1) | \
5007
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5008
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5009
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5010
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5011
postinstall_cmds | postuninstall_cmds | \
5012
old_postinstall_cmds | old_postuninstall_cmds | \
5013
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5014
# Double-quote double-evaled strings.
5015
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5018
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5024
*'\[$]0 --fallback-echo"')
5025
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5030
[cfgfile="${ofile}T"
5031
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5033
AC_MSG_NOTICE([creating $ofile])],
5036
cat <<__EOF__ >> "$cfgfile"
5040
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5041
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5042
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5044
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5045
# Free Software Foundation, Inc.
5047
# This file is part of GNU Libtool:
5048
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5050
# This program is free software; you can redistribute it and/or modify
5051
# it under the terms of the GNU General Public License as published by
5052
# the Free Software Foundation; either version 2 of the License, or
5053
# (at your option) any later version.
5055
# This program is distributed in the hope that it will be useful, but
5056
# WITHOUT ANY WARRANTY; without even the implied warranty of
5057
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5058
# General Public License for more details.
5060
# You should have received a copy of the GNU General Public License
5061
# along with this program; if not, write to the Free Software
5062
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5064
# As a special exception to the GNU General Public License, if you
5065
# distribute this file as part of a program that contains a
5066
# configuration script generated by Autoconf, you may include it under
5067
# the same distribution terms that you use for the rest of that program.
5069
# A sed program that does not truncate output.
5072
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5073
Xsed="$SED -e 1s/^X//"
5075
# The HP-UX ksh and POSIX shell print the target directory to stdout
5077
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5079
# The names of the tagged configurations supported by this script.
5082
# ### BEGIN LIBTOOL CONFIG],
5083
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5085
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5087
# Shell to use when invoking shell scripts.
5090
# Whether or not to build shared libraries.
5091
build_libtool_libs=$enable_shared
5093
# Whether or not to build static libraries.
5094
build_old_libs=$enable_static
5096
# Whether or not to add -lc for building shared libraries.
5097
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5099
# Whether or not to disallow shared libs when runtime libs are static
5100
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5102
# Whether or not to optimize for fast installation.
5103
fast_install=$enable_fast_install
5106
host_alias=$host_alias
5111
build_alias=$build_alias
5115
# An echo program that does not interpret backslashes.
5120
AR_FLAGS=$lt_AR_FLAGS
5125
# LTCC compiler flags.
5126
LTCFLAGS=$lt_LTCFLAGS
5128
# A language-specific compiler.
5129
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5131
# Is the compiler the GNU C compiler?
5132
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5137
# The linker used to build libraries.
5138
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5140
# Whether we need hard or soft links.
5143
# A BSD-compatible nm program.
5146
# A symbol stripping program
5149
# Used to examine libraries when file_magic_cmd begins "file"
5150
MAGIC_CMD=$MAGIC_CMD
5152
# Used on cygwin: DLL creation program.
5155
# Used on cygwin: object dumper.
5158
# Used on cygwin: assembler.
5161
# The name of the directory that contains temporary libtool files.
5164
# How to create reloadable object files.
5165
reload_flag=$lt_reload_flag
5166
reload_cmds=$lt_reload_cmds
5168
# How to pass a linker flag through the compiler.
5169
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5171
# Object file suffix (normally "o").
5174
# Old archive suffix (normally "a").
5177
# Shared library suffix (normally ".so").
5178
shrext_cmds='$shrext_cmds'
5180
# Executable file suffix (normally "").
5183
# Additional compiler flags for building library objects.
5184
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5187
# What is the maximum length of a command?
5188
max_cmd_len=$lt_cv_sys_max_cmd_len
5190
# Does compiler simultaneously support -c and -o options?
5191
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5193
# Must we lock files when doing compilation?
5194
need_locks=$lt_need_locks
5196
# Do we need the lib prefix for modules?
5197
need_lib_prefix=$need_lib_prefix
5199
# Do we need a version for libraries?
5200
need_version=$need_version
5202
# Whether dlopen is supported.
5203
dlopen_support=$enable_dlopen
5205
# Whether dlopen of programs is supported.
5206
dlopen_self=$enable_dlopen_self
5208
# Whether dlopen of statically linked programs is supported.
5209
dlopen_self_static=$enable_dlopen_self_static
5211
# Compiler flag to prevent dynamic linking.
5212
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5214
# Compiler flag to turn off builtin functions.
5215
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5217
# Compiler flag to allow reflexive dlopens.
5218
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5220
# Compiler flag to generate shared objects directly from archives.
5221
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5223
# Compiler flag to generate thread-safe objects.
5224
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5226
# Library versioning type.
5227
version_type=$version_type
5229
# Format of library name prefix.
5230
libname_spec=$lt_libname_spec
5232
# List of archive names. First name is the real one, the rest are links.
5233
# The last name is the one that the linker finds with -lNAME.
5234
library_names_spec=$lt_library_names_spec
5236
# The coded name of the library, if different from the real name.
5237
soname_spec=$lt_soname_spec
5239
# Commands used to build and install an old-style archive.
5241
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5242
old_postinstall_cmds=$lt_old_postinstall_cmds
5243
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5245
# Create an old-style archive from a shared archive.
5246
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5248
# Create a temporary old-style archive to link instead of a shared archive.
5249
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5251
# Commands used to build and install a shared archive.
5252
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5253
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5254
postinstall_cmds=$lt_postinstall_cmds
5255
postuninstall_cmds=$lt_postuninstall_cmds
5257
# Commands used to build a loadable module (assumed same as above if empty)
5258
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5259
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5261
# Commands to strip libraries.
5262
old_striplib=$lt_old_striplib
5263
striplib=$lt_striplib
5265
# Dependencies to place before the objects being linked to create a
5267
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5269
# Dependencies to place after the objects being linked to create a
5271
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5273
# Dependencies to place before the objects being linked to create a
5275
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5277
# Dependencies to place after the objects being linked to create a
5279
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5281
# The directories searched by this compiler when creating a shared
5283
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5285
# The library search path used internally by the compiler when linking
5287
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5289
# Method to check whether dependent libraries are shared objects.
5290
deplibs_check_method=$lt_deplibs_check_method
5292
# Command to use when deplibs_check_method == file_magic.
5293
file_magic_cmd=$lt_file_magic_cmd
5295
# Flag that allows shared libraries with undefined symbols to be built.
5296
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5298
# Flag that forces no undefined symbols.
5299
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5301
# Commands used to finish a libtool library installation in a directory.
5302
finish_cmds=$lt_finish_cmds
5304
# Same as above, but a single script fragment to be evaled but not shown.
5305
finish_eval=$lt_finish_eval
5307
# Take the output of nm and produce a listing of raw symbols and C names.
5308
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5310
# Transform the output of nm in a proper C declaration
5311
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5313
# Transform the output of nm in a C name address pair
5314
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5316
# This is the shared library runtime path variable.
5317
runpath_var=$runpath_var
5319
# This is the shared library path variable.
5320
shlibpath_var=$shlibpath_var
5322
# Is shlibpath searched before the hard-coded library search path?
5323
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5325
# How to hardcode a shared library path into an executable.
5326
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5328
# Whether we should hardcode library paths into libraries.
5329
hardcode_into_libs=$hardcode_into_libs
5331
# Flag to hardcode \$libdir into a binary during linking.
5332
# This must work even if \$libdir does not exist.
5333
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5335
# If ld is used when linking, flag to hardcode \$libdir into
5336
# a binary during linking. This must work even if \$libdir does
5338
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5340
# Whether we need a single -rpath flag with a separated argument.
5341
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5343
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5345
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5347
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5349
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5351
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5352
# the resulting binary.
5353
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5355
# Set to yes if building a shared library automatically hardcodes DIR into the library
5356
# and all subsequent libraries and executables linked against it.
5357
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5359
# Variables whose values should be saved in libtool wrapper scripts and
5360
# restored at relink time.
5361
variables_saved_for_relink="$variables_saved_for_relink"
5363
# Whether libtool must link a program against all its dependency libraries.
5364
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5366
# Compile-time system search path for libraries
5367
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5369
# Run-time system search path for libraries
5370
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5372
# Fix the shell variable \$srcfile for the compiler.
5373
fix_srcfile_path=$lt_fix_srcfile_path
5375
# Set to yes if exported symbols are required.
5376
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5378
# The commands to list exported symbols.
5379
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5381
# The commands to extract the exported symbol list from a shared archive.
5382
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5384
# Symbols that should not be listed in the preloaded symbols.
5385
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5387
# Symbols that must always be exported.
5388
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5391
[# ### END LIBTOOL CONFIG],
5392
[# ### END LIBTOOL TAG CONFIG: $tagname])
5399
cat <<\EOF >> "$cfgfile"
5401
# AIX sometimes has problems with the GCC collect2 program. For some
5402
# reason, if we set the COLLECT_NAMES environment variable, the problems
5403
# vanish in a puff of smoke.
5404
if test "X${COLLECT_NAMES+set}" != Xset; then
5406
export COLLECT_NAMES
5412
# We use sed instead of cat because bash on DJGPP gets confused if
5413
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5414
# text mode, it properly converts lines to CR/LF. This bash problem
5415
# is reportedly fixed, but why not run on old versions too?
5416
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5418
mv -f "$cfgfile" "$ofile" || \
5419
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5423
# If there is no Makefile yet, we rely on a make rule to execute
5424
# `config.status --recheck' to rerun these tests and create the
5425
# libtool script then.
5426
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5427
if test -f "$ltmain_in"; then
5428
test -f Makefile && make "$ltmain"
5431
])# AC_LIBTOOL_CONFIG
5434
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5435
# -------------------------------------------
5436
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5437
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5439
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5441
if test "$GCC" = yes; then
5442
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5444
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5445
lt_cv_prog_compiler_rtti_exceptions,
5446
[-fno-rtti -fno-exceptions], [],
5447
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5449
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5452
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5453
# ---------------------------------
5454
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5455
[AC_REQUIRE([AC_CANONICAL_HOST])
5456
AC_REQUIRE([LT_AC_PROG_SED])
5457
AC_REQUIRE([AC_PROG_NM])
5458
AC_REQUIRE([AC_OBJEXT])
5459
# Check for command to grab the raw symbol name followed by C symbol from nm.
5460
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5461
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5463
# These are sane defaults that work on at least a few old systems.
5464
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5466
# Character class describing NM global symbol codes.
5467
symcode='[[BCDEGRST]]'
5469
# Regexp to match symbols that can be accessed directly from C.
5470
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5472
# Transform an extracted symbol line into a proper C declaration
5473
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5475
# Transform an extracted symbol line into symbol name and symbol address
5476
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'"
5478
# Define system-specific variables.
5483
cygwin* | mingw* | pw32*)
5484
symcode='[[ABCDGISTW]]'
5486
hpux*) # Its linker distinguishes data from code symbols
5487
if test "$host_cpu" = ia64; then
5488
symcode='[[ABCDEGRST]]'
5490
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5491
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'"
5493
linux* | k*bsd*-gnu)
5494
if test "$host_cpu" = ia64; then
5495
symcode='[[ABCDGIRSTW]]'
5496
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5497
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'"
5501
symcode='[[BCDEGRST]]'
5504
symcode='[[BCDEGQRST]]'
5515
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5519
symcode='[[DFNSTU]]'
5523
# Handle CRLF in mingw tool chain
5527
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5531
# If we're using GNU nm, then use its standard symbol codes.
5532
case `$NM -V 2>&1` in
5533
*GNU* | *'with BFD'*)
5534
symcode='[[ABCDGIRSTW]]' ;;
5537
# Try without a prefix undercore, then with it.
5538
for ac_symprfx in "" "_"; do
5540
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5541
symxfrm="\\1 $ac_symprfx\\2 \\2"
5543
# Write the raw and C identifiers.
5544
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5546
# Check to see that the pipe works correctly.
5550
cat > conftest.$ac_ext <<EOF
5555
void nm_test_func(){}
5559
int main(){nm_test_var='a';nm_test_func();return(0);}
5562
if AC_TRY_EVAL(ac_compile); then
5563
# Now try to grab the symbols.
5565
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5566
# Try sorting and uniquifying the output.
5567
if sort "$nlist" | uniq > "$nlist"T; then
5568
mv -f "$nlist"T "$nlist"
5573
# Make sure that we snagged all the symbols we need.
5574
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5575
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5576
cat <<EOF > conftest.$ac_ext
5582
# Now generate the symbol file.
5583
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5585
cat <<EOF >> conftest.$ac_ext
5586
#if defined (__STDC__) && __STDC__
5587
# define lt_ptr_t void *
5589
# define lt_ptr_t char *
5593
/* The mapping between symbol names and symbols. */
5598
lt_preloaded_symbols[[]] =
5601
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5602
cat <<\EOF >> conftest.$ac_ext
5610
# Now try linking the two files.
5611
mv conftest.$ac_objext conftstm.$ac_objext
5612
lt_save_LIBS="$LIBS"
5613
lt_save_CFLAGS="$CFLAGS"
5614
LIBS="conftstm.$ac_objext"
5615
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5616
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5619
LIBS="$lt_save_LIBS"
5620
CFLAGS="$lt_save_CFLAGS"
5622
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5625
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5628
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5631
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5632
cat conftest.$ac_ext >&5
5634
rm -rf conftest* conftst*
5636
# Do not use the global_symbol_pipe unless it works.
5637
if test "$pipe_works" = yes; then
5640
lt_cv_sys_global_symbol_pipe=
5644
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5645
lt_cv_sys_global_symbol_to_cdecl=
5647
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5648
AC_MSG_RESULT(failed)
5652
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5655
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5656
# ---------------------------------------
5657
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5658
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5659
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5660
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5662
AC_MSG_CHECKING([for $compiler option to produce PIC])
5664
# C++ specific cases for pic, static, wl, etc.
5665
if test "$GXX" = yes; then
5666
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5667
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5671
# All AIX code is PIC.
5672
if test "$host_cpu" = ia64; then
5673
# AIX 5 now supports IA64 processor
5674
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5678
# FIXME: we need at least 68020 code to build shared libraries, but
5679
# adding the `-m68020' flag to GCC prevents building anything better,
5681
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5683
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5684
# PIC is the default for these OSes.
5686
mingw* | cygwin* | os2* | pw32*)
5687
# This hack is so that the source file can tell whether it is being
5688
# built for inclusion in a dll (and should export symbols for example).
5689
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5690
# (--disable-auto-import) libraries
5691
m4_if([$1], [GCJ], [],
5692
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5694
darwin* | rhapsody*)
5695
# PIC is the default on this platform
5696
# Common symbols not allowed in MH_DYLIB files
5697
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5700
# DJGPP does not support shared libraries at all
5701
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5704
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5705
# Instead, we relocate shared libraries at runtime.
5708
if test -d /usr/nec; then
5709
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5713
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5719
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5724
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5730
# All AIX code is PIC.
5731
if test "$host_cpu" = ia64; then
5732
# AIX 5 now supports IA64 processor
5733
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5735
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5739
case $cc_basename in
5741
# Green Hills C++ Compiler
5742
# _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"
5747
# PIC is the default on this platform
5748
# Common symbols not allowed in MH_DYLIB files
5749
case $cc_basename in
5751
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5752
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5757
case $cc_basename in
5759
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5762
# Green Hills C++ Compiler
5763
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5769
freebsd* | dragonfly*)
5770
# FreeBSD uses GNU C++
5772
hpux9* | hpux10* | hpux11*)
5773
case $cc_basename in
5775
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5776
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5777
if test "$host_cpu" != ia64; then
5778
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5782
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5783
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5789
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5798
# This is c89, which is MS Visual C++ (no shared libs)
5799
# Anyone wants to do a port?
5801
irix5* | irix6* | nonstopux*)
5802
case $cc_basename in
5804
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5805
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5806
# CC pic flag -KPIC is the default.
5812
linux* | k*bsd*-gnu)
5813
case $cc_basename in
5816
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5817
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5821
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5822
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5823
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5826
# Portland Group C++ compiler.
5827
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5828
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5829
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5833
# Make sure the PIC flag is empty. It appears that all Alpha
5834
# Linux and Compaq Tru64 Unix objects are PIC.
5835
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5836
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5839
case `$CC -V 2>&1 | sed 5q` in
5842
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5843
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5844
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5855
case $cc_basename in
5857
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5863
netbsd* | netbsdelf*-gnu)
5865
osf3* | osf4* | osf5*)
5866
case $cc_basename in
5868
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5871
# Rational C++ 2.4.1
5872
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5875
# Digital/Compaq C++
5876
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5877
# Make sure the PIC flag is empty. It appears that all Alpha
5878
# Linux and Compaq Tru64 Unix objects are PIC.
5879
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5880
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5889
case $cc_basename in
5891
# Sun C++ 4.2, 5.x and Centerline C++
5892
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5893
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5894
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5897
# Green Hills C++ Compiler
5898
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5905
case $cc_basename in
5908
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5909
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5913
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5920
case $cc_basename in
5922
# NonStop-UX NCC 3.20
5923
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5929
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5930
case $cc_basename in
5932
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5933
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5934
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5941
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5947
if test "$GCC" = yes; then
5948
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5949
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5953
# All AIX code is PIC.
5954
if test "$host_cpu" = ia64; then
5955
# AIX 5 now supports IA64 processor
5956
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5961
# FIXME: we need at least 68020 code to build shared libraries, but
5962
# adding the `-m68020' flag to GCC prevents building anything better,
5964
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5967
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5968
# PIC is the default for these OSes.
5971
mingw* | cygwin* | pw32* | os2*)
5972
# This hack is so that the source file can tell whether it is being
5973
# built for inclusion in a dll (and should export symbols for example).
5974
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5975
# (--disable-auto-import) libraries
5976
m4_if([$1], [GCJ], [],
5977
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5980
darwin* | rhapsody*)
5981
# PIC is the default on this platform
5982
# Common symbols not allowed in MH_DYLIB files
5983
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5987
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5988
# Instead, we relocate shared libraries at runtime.
5992
# Just because we use GCC doesn't mean we suddenly get shared libraries
5993
# on systems that don't support them.
5994
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5999
if test -d /usr/nec; then
6000
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6005
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6012
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6018
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6022
# PORTME Check for flag to pass linker flags through the system compiler.
6025
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6026
if test "$host_cpu" = ia64; then
6027
# AIX 5 now supports IA64 processor
6028
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6030
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6034
# PIC is the default on this platform
6035
# Common symbols not allowed in MH_DYLIB files
6036
case $cc_basename in
6038
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6039
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6044
mingw* | cygwin* | pw32* | os2*)
6045
# This hack is so that the source file can tell whether it is being
6046
# built for inclusion in a dll (and should export symbols for example).
6047
m4_if([$1], [GCJ], [],
6048
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6051
hpux9* | hpux10* | hpux11*)
6052
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6053
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6060
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6063
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6064
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6067
irix5* | irix6* | nonstopux*)
6068
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6069
# PIC (with -KPIC) is the default.
6070
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6074
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6075
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6078
linux* | k*bsd*-gnu)
6079
case $cc_basename in
6081
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6082
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6083
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6085
pgcc* | pgf77* | pgf90* | pgf95*)
6086
# Portland Group compilers (*not* the Pentium gcc compiler,
6087
# which looks to be a dead project)
6088
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6089
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6090
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6093
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6094
# All Alpha code is PIC.
6095
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6098
case `$CC -V 2>&1 | sed 5q` in
6101
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6102
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6103
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6106
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6107
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6108
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6109
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6116
osf3* | osf4* | osf5*)
6117
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6118
# All OSF/1 code is PIC.
6119
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6123
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6127
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6128
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6129
case $cc_basename in
6131
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6133
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6138
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6139
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6140
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6143
sysv4 | sysv4.2uw2* | sysv4.3*)
6144
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6145
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6146
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6150
if test -d /usr/nec ;then
6151
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6152
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6156
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6157
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6158
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6159
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6163
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6164
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6168
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6169
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6173
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6178
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6181
# Check to make sure the PIC flag actually works.
6183
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6184
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6185
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6186
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6187
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6189
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6191
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6192
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6195
# For platforms which do not support PIC, -DPIC is meaningless:
6197
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6200
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6205
# Check to make sure the static flag actually works.
6207
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6208
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6209
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6210
$lt_tmp_static_flag,
6212
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6216
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6217
# ------------------------------------
6218
# See if the linker supports building shared libraries.
6219
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6220
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6221
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6223
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6226
# If we're using GNU nm, then we don't want the "-C" option.
6227
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6228
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6229
_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'
6231
_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'
6235
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6238
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6240
linux* | k*bsd*-gnu)
6241
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6244
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6247
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6250
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6251
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6252
_LT_AC_TAGVAR(archive_cmds, $1)=
6253
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6254
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6255
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6256
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6257
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6258
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6259
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6260
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6261
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6262
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6263
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6264
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6265
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6266
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6267
_LT_AC_TAGVAR(module_cmds, $1)=
6268
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6269
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6270
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6271
# include_expsyms should be a list of space-separated symbols to be *always*
6272
# included in the symbol list
6273
_LT_AC_TAGVAR(include_expsyms, $1)=
6274
# exclude_expsyms can be an extended regexp of symbols to exclude
6275
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6276
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6277
# as well as any symbol that contains `d'.
6278
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6279
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6280
# platforms (ab)use it in PIC code, but their linkers get confused if
6281
# the symbol is explicitly referenced. Since portable code cannot
6282
# rely on this symbol name, it's probably fine to never include it in
6283
# preloaded symbol tables.
6284
# Exclude shared library initialization/finalization symbols.
6285
dnl Note also adjust exclude_expsyms for C++ above.
6286
extract_expsyms_cmds=
6287
# Just being paranoid about ensuring that cc_basename is set.
6288
_LT_CC_BASENAME([$compiler])
6290
cygwin* | mingw* | pw32*)
6291
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6292
# When not using gcc, we currently assume that we are using
6293
# Microsoft Visual C++.
6294
if test "$GCC" != yes; then
6299
# we just hope/assume this is gcc and not c89 (= MSVC++)
6307
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6308
if test "$with_gnu_ld" = yes; then
6309
# If archive_cmds runs LD, not CC, wlarc should be empty
6312
# Set some defaults for GNU ld with shared library support. These
6313
# are reset later if shared libraries are not supported. Putting them
6314
# here allows them to be overridden if necessary.
6315
runpath_var=LD_RUN_PATH
6316
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6317
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6318
# ancient GNU ld didn't support --whole-archive et. al.
6319
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6320
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6322
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6324
supports_anon_versioning=no
6325
case `$LD -v 2>/dev/null` in
6326
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6327
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6328
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6329
*\ 2.11.*) ;; # other 2.11 versions
6330
*) supports_anon_versioning=yes ;;
6333
# See if GNU ld supports shared libraries.
6336
# On AIX/PPC, the GNU linker is very broken
6337
if test "$host_cpu" != ia64; then
6338
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6341
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6342
*** to be unable to reliably create shared libraries on AIX.
6343
*** Therefore, libtool is disabling shared libraries support. If you
6344
*** really care for shared libraries, you may want to modify your PATH
6345
*** so that a non-GNU linker is found, and then restart.
6352
_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)'
6353
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6354
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6356
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6357
# that the semantics of dynamic libraries on AmigaOS, at least up
6358
# to version 4, is to share data among multiple programs linked
6359
# with the same dynamic library. Since this doesn't match the
6360
# behavior of shared libraries on other platforms, we can't use
6362
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6366
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6367
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6368
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6369
# support --undefined. This deserves some investigation. FIXME
6370
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6372
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6376
cygwin* | mingw* | pw32*)
6377
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6378
# as there is no search path for DLLs.
6379
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6380
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6381
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6382
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6383
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6385
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6386
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6387
# If the export-symbols file already is a .def file (1st line
6388
# is EXPORTS), use it as is; otherwise, prepend...
6389
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6390
cp $export_symbols $output_objdir/$soname.def;
6392
echo EXPORTS > $output_objdir/$soname.def;
6393
cat $export_symbols >> $output_objdir/$soname.def;
6395
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6397
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6402
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6403
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6405
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6406
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6407
# Instead, shared libraries are loaded at an image base (0x10000000 by
6408
# default) and relocated if they conflict, which is a slow very memory
6409
# consuming and fragmenting process. To avoid this, we pick a random,
6410
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6411
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6412
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6413
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6416
gnu* | linux* | k*bsd*-gnu)
6417
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6419
case $cc_basename,$host_cpu in
6420
pgcc*) # Portland Group C compiler
6421
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6422
tmp_addflag=' $pic_flag'
6424
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6425
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6426
tmp_addflag=' $pic_flag -Mnomain' ;;
6427
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6428
tmp_addflag=' -i_dynamic' ;;
6429
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6430
tmp_addflag=' -i_dynamic -nofor_main' ;;
6431
ifc* | ifort*) # Intel Fortran compiler
6432
tmp_addflag=' -nofor_main' ;;
6434
case `$CC -V 2>&1 | sed 5q` in
6435
*Sun\ C*) # Sun C 5.9
6436
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6437
tmp_sharedflag='-G' ;;
6438
*Sun\ F*) # Sun Fortran 8.3
6439
tmp_sharedflag='-G' ;;
6441
tmp_sharedflag='-shared' ;;
6443
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6445
if test $supports_anon_versioning = yes; then
6446
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6447
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6448
$echo "local: *; };" >> $output_objdir/$libname.ver~
6449
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6451
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6453
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6457
netbsd* | netbsdelf*-gnu)
6458
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6459
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6462
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6463
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6468
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6469
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6472
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6473
*** create shared libraries on Solaris systems. Therefore, libtool
6474
*** is disabling shared libraries support. We urge you to upgrade GNU
6475
*** binutils to release 2.9.1 or newer. Another option is to modify
6476
*** your PATH or compiler configuration so that the native linker is
6477
*** used, and then restart.
6480
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6481
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6482
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6484
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6488
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6489
case `$LD -v 2>&1` in
6490
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6491
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6494
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6495
*** reliably create shared libraries on SCO systems. Therefore, libtool
6496
*** is disabling shared libraries support. We urge you to upgrade GNU
6497
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6498
*** your PATH or compiler configuration so that the native linker is
6499
*** used, and then restart.
6504
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6505
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6506
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6507
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6509
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6516
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6518
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6519
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6523
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6524
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6525
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6527
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6532
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6534
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6535
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6536
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6539
# PORTME fill in a description of your system's linker (not GNU ld)
6542
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6543
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6544
_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'
6545
# Note: this linker hardcodes the directories in LIBPATH if there
6546
# are no directories specified by -L.
6547
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6548
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6549
# Neither direct hardcoding nor static linking is supported with a
6551
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6556
if test "$host_cpu" = ia64; then
6557
# On IA64, the linker does run time linking by default, so we don't
6558
# have to do anything special.
6559
aix_use_runtimelinking=no
6560
exp_sym_flag='-Bexport'
6563
# If we're using GNU nm, then we don't want the "-C" option.
6564
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6565
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6566
_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'
6568
_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'
6570
aix_use_runtimelinking=no
6572
# Test if we are trying to use run time linking or normal
6573
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6574
# need to do runtime linking.
6575
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6576
for ld_flag in $LDFLAGS; do
6577
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6578
aix_use_runtimelinking=yes
6585
exp_sym_flag='-bexport'
6586
no_entry_flag='-bnoentry'
6589
# When large executables or shared objects are built, AIX ld can
6590
# have problems creating the table of contents. If linking a library
6591
# or program results in "error TOC overflow" add -mminimal-toc to
6592
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6593
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6595
_LT_AC_TAGVAR(archive_cmds, $1)=''
6596
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6597
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6598
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6600
if test "$GCC" = yes; then
6601
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6602
# We only want to do this on AIX 4.2 and lower, the check
6603
# below for broken collect2 doesn't work under 4.3+
6604
collect2name=`${CC} -print-prog-name=collect2`
6605
if test -f "$collect2name" && \
6606
strings "$collect2name" | grep resolve_lib_name >/dev/null
6608
# We have reworked collect2
6611
# We have old collect2
6612
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6613
# It fails to find uninstalled libraries when the uninstalled
6614
# path is not listed in the libpath. Setting hardcode_minus_L
6615
# to unsupported forces relinking
6616
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6617
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6618
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6622
shared_flag='-shared'
6623
if test "$aix_use_runtimelinking" = yes; then
6624
shared_flag="$shared_flag "'${wl}-G'
6628
if test "$host_cpu" = ia64; then
6629
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6630
# chokes on -Wl,-G. The following line is correct:
6633
if test "$aix_use_runtimelinking" = yes; then
6634
shared_flag='${wl}-G'
6636
shared_flag='${wl}-bM:SRE'
6641
# It seems that -bexpall does not export symbols beginning with
6642
# underscore (_), so it is better to generate a list of symbols to export.
6643
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6644
if test "$aix_use_runtimelinking" = yes; then
6645
# Warning - without using the other runtime loading flags (-brtl),
6646
# -berok will link without error, but may produce a broken library.
6647
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6648
# Determine the default libpath from the value encoded in an empty executable.
6649
_LT_AC_SYS_LIBPATH_AIX
6650
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6651
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6653
if test "$host_cpu" = ia64; then
6654
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6655
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6656
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6658
# Determine the default libpath from the value encoded in an empty executable.
6659
_LT_AC_SYS_LIBPATH_AIX
6660
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6661
# Warning - without using the other run time loading flags,
6662
# -berok will link without error, but may produce a broken library.
6663
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6664
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6665
# Exported symbols can be pulled into shared objects from archives
6666
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6667
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6668
# This is similar to how AIX traditionally builds its shared libraries.
6669
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6675
_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)'
6676
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6677
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6678
# see comment about different semantics on the GNU ld section
6679
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6683
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6686
cygwin* | mingw* | pw32*)
6687
# When not using gcc, we currently assume that we are using
6688
# Microsoft Visual C++.
6689
# hardcode_libdir_flag_spec is actually meaningless, as there is
6690
# no search path for DLLs.
6691
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6692
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6693
# Tell ltmain to make .lib files, not .a files.
6695
# Tell ltmain to make .dll files, not .so files.
6697
# FIXME: Setting linknames here is a bad hack.
6698
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6699
# The linker will automatically build a .lib file if we build a DLL.
6700
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6701
# FIXME: Should let the user specify the lib program.
6702
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6703
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6704
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6707
darwin* | rhapsody*)
6709
rhapsody* | darwin1.[[012]])
6710
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6713
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6714
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6716
case ${MACOSX_DEPLOYMENT_TARGET} in
6718
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6721
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6727
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6728
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6729
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6730
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6731
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6732
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6733
if test "$GCC" = yes ; then
6734
output_verbose_link_cmd='echo'
6735
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6736
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6737
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6738
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6740
case $cc_basename in
6742
output_verbose_link_cmd='echo'
6743
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6744
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6745
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6746
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6747
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6750
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6757
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6758
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6759
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6763
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6766
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6767
# support. Future versions do this automatically, but an explicit c++rt0.o
6768
# does not break anything, and helps significantly (at the cost of a little
6771
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6772
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6773
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6774
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6777
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6779
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6780
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6781
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6782
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6785
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6786
freebsd* | dragonfly*)
6787
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6788
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6789
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6790
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6794
if test "$GCC" = yes; then
6795
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6797
_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'
6799
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6800
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6801
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6803
# hardcode_minus_L: Not really in the search PATH,
6804
# but as the default location of the library.
6805
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6806
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6810
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6811
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6813
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6815
if test "$with_gnu_ld" = no; then
6816
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6817
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6819
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6820
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6822
# hardcode_minus_L: Not really in the search PATH,
6823
# but as the default location of the library.
6824
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6829
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6832
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6835
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6838
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6844
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6847
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6850
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6854
if test "$with_gnu_ld" = no; then
6855
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6856
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6860
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6861
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6862
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6865
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6866
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6868
# hardcode_minus_L: Not really in the search PATH,
6869
# but as the default location of the library.
6870
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6876
irix5* | irix6* | nonstopux*)
6877
if test "$GCC" = yes; then
6878
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6880
_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'
6881
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6883
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6884
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6885
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6888
netbsd* | netbsdelf*-gnu)
6889
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6890
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6892
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6894
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6895
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6896
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6900
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6901
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6902
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6903
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6904
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6908
if test -f /usr/libexec/ld.so; then
6909
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6910
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6911
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6912
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6913
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6914
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6915
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6918
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6919
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6920
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6923
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6929
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6935
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6936
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6937
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6938
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6942
if test "$GCC" = yes; then
6943
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6944
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6946
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6947
_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'
6949
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6950
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6953
osf4* | osf5*) # as osf3* with the addition of -msym flag
6954
if test "$GCC" = yes; then
6955
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6956
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6957
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6959
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6960
_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'
6961
_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~
6962
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6964
# Both c and cxx compiler support -rpath directly
6965
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6967
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6971
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6972
if test "$GCC" = yes; then
6974
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6975
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6976
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6979
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6981
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6983
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6984
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6986
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6988
# The compiler driver will combine and reorder linker options,
6989
# but understands `-z linker_flag'. GCC discards it without `$wl',
6990
# but is careful enough not to reorder.
6991
# Supported since Solaris 2.6 (maybe 2.5.1?)
6992
if test "$GCC" = yes; then
6993
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6995
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6999
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7003
if test "x$host_vendor" = xsequent; then
7004
# Use $CC to link under sequent, because it throws in some extra .o
7005
# files that make .init and .fini sections work.
7006
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7008
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7010
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7011
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7012
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7013
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7017
case $host_vendor in
7019
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7023
## LD is ld it makes a PLAMLIB
7024
## CC just makes a GrossModule.
7025
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7026
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7027
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7030
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7034
runpath_var='LD_RUN_PATH'
7035
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7039
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7040
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7041
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7045
if test -d /usr/nec; then
7046
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7047
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7048
runpath_var=LD_RUN_PATH
7049
hardcode_runpath_var=yes
7050
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7054
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7055
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7056
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7057
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7058
runpath_var='LD_RUN_PATH'
7060
if test "$GCC" = yes; then
7061
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7062
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7064
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7065
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7069
sysv5* | sco3.2v5* | sco5v6*)
7070
# Note: We can NOT use -z defs as we might desire, because we do not
7071
# link with -lc, and that would cause any symbols used from libc to
7072
# always be unresolved, which means just about no library would
7073
# ever link correctly. If we're not using GNU ld we use -z text
7074
# though, which does catch some bad symbols but isn't as heavy-handed
7076
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7077
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7078
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7079
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7080
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7081
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7082
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7083
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7084
runpath_var='LD_RUN_PATH'
7086
if test "$GCC" = yes; then
7087
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7088
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7090
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7091
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7096
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7097
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7098
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7102
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7107
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7108
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7111
# Do we need to explicitly link libc?
7113
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7115
# Assume -lc should be added
7116
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7118
if test "$enable_shared" = yes && test "$GCC" = yes; then
7119
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7121
# FIXME: we may have to deal with multi-command sequences.
7124
# Test whether the compiler implicitly links with -lc since on some
7125
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7126
# to ld, don't add -lc before -lgcc.
7127
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7129
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7131
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7134
libobjs=conftest.$ac_objext
7136
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7137
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7143
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7144
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7145
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7147
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7149
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7151
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7153
cat conftest.err 1>&5
7156
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7162
])# AC_LIBTOOL_PROG_LD_SHLIBS
7165
# _LT_AC_FILE_LTDLL_C
7166
# -------------------
7167
# Be careful that the start marker always follows a newline.
7168
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7169
# /* ltdll.c starts here */
7170
# #define WIN32_LEAN_AND_MEAN
7171
# #include <windows.h>
7172
# #undef WIN32_LEAN_AND_MEAN
7173
# #include <stdio.h>
7175
# #ifndef __CYGWIN__
7176
# # ifdef __CYGWIN32__
7177
# # define __CYGWIN__ __CYGWIN32__
7181
# #ifdef __cplusplus
7184
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7185
# #ifdef __cplusplus
7190
# #include <cygwin/cygwin_dll.h>
7191
# DECLARE_CYGWIN_DLL( DllMain );
7193
# HINSTANCE __hDllInstance_base;
7196
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7198
# __hDllInstance_base = hInst;
7201
# /* ltdll.c ends here */
7202
])# _LT_AC_FILE_LTDLL_C
7205
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7206
# ---------------------------------
7207
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7211
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7212
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7213
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7214
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7215
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7216
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7217
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7219
# This is just to silence aclocal about the macro not being used
7220
ifelse([AC_DISABLE_FAST_INSTALL])
7222
AC_DEFUN([LT_AC_PROG_GCJ],
7223
[AC_CHECK_TOOL(GCJ, gcj, no)
7224
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7228
AC_DEFUN([LT_AC_PROG_RC],
7229
[AC_CHECK_TOOL(RC, windres, no)
7233
# Cheap backport of AS_EXECUTABLE_P and required macros
7234
# from Autoconf 2.59; we should not use $as_executable_p directly.
7238
m4_ifndef([_AS_TEST_PREPARE],
7239
[m4_defun([_AS_TEST_PREPARE],
7240
[if test -x / >/dev/null 2>&1; then
7241
as_executable_p='test -x'
7243
as_executable_p='test -f'
7245
])])# _AS_TEST_PREPARE
7249
# Check whether a file is executable.
7250
m4_ifndef([AS_EXECUTABLE_P],
7251
[m4_defun([AS_EXECUTABLE_P],
7252
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7253
$as_executable_p $1[]dnl
7254
])])# AS_EXECUTABLE_P
7256
# NOTE: This macro has been submitted for inclusion into #
7257
# GNU Autoconf as AC_PROG_SED. When it is available in #
7258
# a released version of Autoconf we should remove this #
7259
# macro and use it instead. #
7262
# Check for a fully-functional sed program, that truncates
7263
# as few characters as possible. Prefer GNU sed if found.
7264
AC_DEFUN([LT_AC_PROG_SED],
7265
[AC_MSG_CHECKING([for a sed that does not truncate output])
7266
AC_CACHE_VAL(lt_cv_path_SED,
7267
[# Loop through the user's path and test for sed and gsed.
7268
# Then use that list of sed's as ones to test for truncation.
7269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273
test -z "$as_dir" && as_dir=.
7274
for lt_ac_prog in sed gsed; do
7275
for ac_exec_ext in '' $ac_executable_extensions; do
7276
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7277
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7285
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7286
# along with /bin/sed that truncates output.
7287
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7288
test ! -f $lt_ac_sed && continue
7289
cat /dev/null > conftest.in
7291
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7292
# Check for GNU sed and select it if it is found.
7293
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7294
lt_cv_path_SED=$lt_ac_sed
7298
cat conftest.in conftest.in >conftest.tmp
7299
mv conftest.tmp conftest.in
7300
cp conftest.in conftest.nl
7302
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7303
cmp -s conftest.out conftest.nl || break
7304
# 10000 chars as input seems more than enough
7305
test $lt_ac_count -gt 10 && break
7306
lt_ac_count=`expr $lt_ac_count + 1`
7307
if test $lt_ac_count -gt $lt_ac_max; then
7308
lt_ac_max=$lt_ac_count
7309
lt_cv_path_SED=$lt_ac_sed
7316
AC_MSG_RESULT([$SED])
7319
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7321
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7323
# This program is free software; you can redistribute it and/or modify
7324
# it under the terms of the GNU General Public License as published by
7325
# the Free Software Foundation; either version 2 of the License, or
7326
# (at your option) any later version.
7328
# This program is distributed in the hope that it will be useful, but
7329
# WITHOUT ANY WARRANTY; without even the implied warranty of
7330
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7331
# General Public License for more details.
7333
# You should have received a copy of the GNU General Public License
7334
# along with this program; if not, write to the Free Software
7335
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7337
# As a special exception to the GNU General Public License, if you
7338
# distribute this file as part of a program that contains a
7339
# configuration script generated by Autoconf, you may include it under
7340
# the same distribution terms that you use for the rest of that program.
7342
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7343
# ----------------------------------
7344
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7345
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7346
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7347
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7348
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7349
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7351
if test -n "$PKG_CONFIG"; then
7352
_pkg_min_version=m4_default([$1], [0.9.0])
7353
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7354
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7355
AC_MSG_RESULT([yes])
7362
])# PKG_PROG_PKG_CONFIG
7364
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7366
# Check to see whether a particular set of modules exists. Similar
7367
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7370
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7371
# this or PKG_CHECK_MODULES is called, or make sure to call
7372
# PKG_CHECK_EXISTS manually
7373
# --------------------------------------------------------------
7374
AC_DEFUN([PKG_CHECK_EXISTS],
7375
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7376
if test -n "$PKG_CONFIG" && \
7377
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7378
m4_ifval([$2], [$2], [:])
7379
m4_ifvaln([$3], [else
7384
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7385
# ---------------------------------------------
7386
m4_define([_PKG_CONFIG],
7387
[if test -n "$PKG_CONFIG"; then
7388
if test -n "$$1"; then
7391
PKG_CHECK_EXISTS([$3],
7392
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7400
# _PKG_SHORT_ERRORS_SUPPORTED
7401
# -----------------------------
7402
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7403
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7404
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7405
_pkg_short_errors_supported=yes
7407
_pkg_short_errors_supported=no
7409
])# _PKG_SHORT_ERRORS_SUPPORTED
7412
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7413
# [ACTION-IF-NOT-FOUND])
7416
# Note that if there is a possibility the first call to
7417
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7418
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7421
# --------------------------------------------------------------
7422
AC_DEFUN([PKG_CHECK_MODULES],
7423
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7424
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7425
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7428
AC_MSG_CHECKING([for $1])
7430
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7431
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7433
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7434
and $1[]_LIBS to avoid the need to call pkg-config.
7435
See the pkg-config man page for more details.])
7437
if test $pkg_failed = yes; then
7438
_PKG_SHORT_ERRORS_SUPPORTED
7439
if test $_pkg_short_errors_supported = yes; then
7440
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
7442
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7444
# Put the nasty error message in config.log where it belongs
7445
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7447
ifelse([$4], , [AC_MSG_ERROR(dnl
7448
[Package requirements ($2) were not met:
7452
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7453
installed software in a non-standard prefix.
7457
[AC_MSG_RESULT([no])
7459
elif test $pkg_failed = untried; then
7460
ifelse([$4], , [AC_MSG_FAILURE(dnl
7461
[The pkg-config script could not be found or is too old. Make sure it
7462
is in your PATH or set the PKG_CONFIG environment variable to the full
7467
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7470
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7471
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7472
AC_MSG_RESULT([yes])
7473
ifelse([$3], , :, [$3])
7475
])# PKG_CHECK_MODULES
7477
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
7479
# This file is free software; the Free Software Foundation
7480
# gives unlimited permission to copy and/or distribute it,
7481
# with or without modifications, as long as this notice is preserved.
7483
# AM_AUTOMAKE_VERSION(VERSION)
7484
# ----------------------------
7485
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7486
# generated from the m4 files accompanying Automake X.Y.
7487
# (This private macro should not be called outside this file.)
7488
AC_DEFUN([AM_AUTOMAKE_VERSION],
7489
[am__api_version='1.10'
7490
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7491
dnl require some minimum version. Point them to the right macro.
7492
m4_if([$1], [1.10.1], [],
7493
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7496
# _AM_AUTOCONF_VERSION(VERSION)
7497
# -----------------------------
7498
# aclocal traces this macro to find the Autoconf version.
7499
# This is a private macro too. Using m4_define simplifies
7500
# the logic in aclocal, which can simply ignore this definition.
7501
m4_define([_AM_AUTOCONF_VERSION], [])
7503
# AM_SET_CURRENT_AUTOMAKE_VERSION
7504
# -------------------------------
7505
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7506
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7507
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7508
[AM_AUTOMAKE_VERSION([1.10.1])dnl
7509
m4_ifndef([AC_AUTOCONF_VERSION],
7510
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7511
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
7513
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7515
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7517
# This file is free software; the Free Software Foundation
7518
# gives unlimited permission to copy and/or distribute it,
7519
# with or without modifications, as long as this notice is preserved.
7521
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7522
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
7523
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7525
# Of course, Automake must honor this variable whenever it calls a
7526
# tool from the auxiliary directory. The problem is that $srcdir (and
7527
# therefore $ac_aux_dir as well) can be either absolute or relative,
7528
# depending on how configure is run. This is pretty annoying, since
7529
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7530
# source directory, any form will work fine, but in subdirectories a
7531
# relative path needs to be adjusted first.
7533
# $ac_aux_dir/missing
7534
# fails when called from a subdirectory if $ac_aux_dir is relative
7535
# $top_srcdir/$ac_aux_dir/missing
7536
# fails if $ac_aux_dir is absolute,
7537
# fails when called from a subdirectory in a VPATH build with
7538
# a relative $ac_aux_dir
7540
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7541
# are both prefixed by $srcdir. In an in-source build this is usually
7542
# harmless because $srcdir is `.', but things will broke when you
7543
# start a VPATH build or use an absolute $srcdir.
7545
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7546
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
7547
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7548
# and then we would define $MISSING as
7549
# MISSING="\${SHELL} $am_aux_dir/missing"
7550
# This will work as long as MISSING is not called from configure, because
7551
# unfortunately $(top_srcdir) has no meaning in configure.
7552
# However there are other variables, like CC, which are often used in
7553
# configure, and could therefore not use this "fixed" $ac_aux_dir.
7555
# Another solution, used here, is to always expand $ac_aux_dir to an
7556
# absolute PATH. The drawback is that using absolute paths prevent a
7557
# configured tree to be moved without reconfiguration.
7559
AC_DEFUN([AM_AUX_DIR_EXPAND],
7560
[dnl Rely on autoconf to set up CDPATH properly.
7561
AC_PREREQ([2.50])dnl
7562
# expand $ac_aux_dir to an absolute path
7563
am_aux_dir=`cd $ac_aux_dir && pwd`
7566
# AM_CONDITIONAL -*- Autoconf -*-
7568
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7569
# Free Software Foundation, Inc.
7571
# This file is free software; the Free Software Foundation
7572
# gives unlimited permission to copy and/or distribute it,
7573
# with or without modifications, as long as this notice is preserved.
7577
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7578
# -------------------------------------
7579
# Define a conditional.
7580
AC_DEFUN([AM_CONDITIONAL],
7582
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
7583
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7584
AC_SUBST([$1_TRUE])dnl
7585
AC_SUBST([$1_FALSE])dnl
7586
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7587
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7595
AC_CONFIG_COMMANDS_PRE(
7596
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7597
AC_MSG_ERROR([[conditional "$1" was never defined.
7598
Usually this means the macro was only invoked conditionally.]])
7601
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7602
# Free Software Foundation, Inc.
7604
# This file is free software; the Free Software Foundation
7605
# gives unlimited permission to copy and/or distribute it,
7606
# with or without modifications, as long as this notice is preserved.
7610
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7611
# written in clear, in which case automake, when reading aclocal.m4,
7612
# will think it sees a *use*, and therefore will trigger all it's
7613
# C support machinery. Also note that it means that autoscan, seeing
7614
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7617
# _AM_DEPENDENCIES(NAME)
7618
# ----------------------
7619
# See how the compiler implements dependency checking.
7620
# NAME is "CC", "CXX", "GCJ", or "OBJC".
7621
# We try a few techniques and use that to set a single cache variable.
7623
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7624
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7625
# dependency, and given that the user is not expected to run this macro,
7626
# just rely on AC_PROG_CC.
7627
AC_DEFUN([_AM_DEPENDENCIES],
7628
[AC_REQUIRE([AM_SET_DEPDIR])dnl
7629
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7630
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7631
AC_REQUIRE([AM_DEP_TRACK])dnl
7633
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7634
[$1], CXX, [depcc="$CXX" am_compiler_list=],
7635
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7636
[$1], UPC, [depcc="$UPC" am_compiler_list=],
7637
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7638
[depcc="$$1" am_compiler_list=])
7640
AC_CACHE_CHECK([dependency style of $depcc],
7641
[am_cv_$1_dependencies_compiler_type],
7642
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7643
# We make a subdir and do the tests there. Otherwise we can end up
7644
# making bogus files that we don't know about and never remove. For
7645
# instance it was reported that on HP-UX the gcc test will end up
7646
# making a dummy file named `D' -- because `-MD' means `put the output
7649
# Copy depcomp to subdir because otherwise we won't find it if we're
7650
# using a relative directory.
7651
cp "$am_depcomp" conftest.dir
7653
# We will build objects and dependencies in a subdirectory because
7654
# it helps to detect inapplicable dependency modes. For instance
7655
# both Tru64's cc and ICC support -MD to output dependencies as a
7656
# side effect of compilation, but ICC will put the dependencies in
7657
# the current directory while Tru64 will put them in the object
7661
am_cv_$1_dependencies_compiler_type=none
7662
if test "$am_compiler_list" = ""; then
7663
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7665
for depmode in $am_compiler_list; do
7666
# Setup a source with many dependencies, because some compilers
7667
# like to wrap large dependency lists on column 80 (with \), and
7668
# we should not choose a depcomp mode which is confused by this.
7670
# We need to recreate these files for each test, as the compiler may
7671
# overwrite some of them when testing with obscure command lines.
7672
# This happens at least with the AIX C compiler.
7674
for i in 1 2 3 4 5 6; do
7675
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7676
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7677
# Solaris 8's {/usr,}/bin/sh.
7678
touch sub/conftst$i.h
7680
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7684
# after this tag, mechanisms are not by side-effect, so they'll
7685
# only be used when explicitly requested
7686
if test "x$enable_dependency_tracking" = xyes; then
7694
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7695
# mode. It turns out that the SunPro C++ compiler does not properly
7696
# handle `-M -o', and we need to detect this.
7697
if depmode=$depmode \
7698
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7699
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7700
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7701
>/dev/null 2>conftest.err &&
7702
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7703
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7704
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7705
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7706
# icc doesn't choke on unknown options, it will just issue warnings
7707
# or remarks (even with -Werror). So we grep stderr for any message
7708
# that says an option was ignored or not supported.
7709
# When given -MP, icc 7.0 and 7.1 complain thusly:
7710
# icc: Command line warning: ignoring option '-M'; no argument required
7711
# The diagnosis changed in icc 8.0:
7712
# icc: Command line remark: option '-MP' not supported
7713
if (grep 'ignoring option' conftest.err ||
7714
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7715
am_cv_$1_dependencies_compiler_type=$depmode
7724
am_cv_$1_dependencies_compiler_type=none
7727
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7728
AM_CONDITIONAL([am__fastdep$1], [
7729
test "x$enable_dependency_tracking" != xno \
7730
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7736
# Choose a directory name for dependency files.
7737
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
7738
AC_DEFUN([AM_SET_DEPDIR],
7739
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7740
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7746
AC_DEFUN([AM_DEP_TRACK],
7747
[AC_ARG_ENABLE(dependency-tracking,
7748
[ --disable-dependency-tracking speeds up one-time build
7749
--enable-dependency-tracking do not reject slow dependency extractors])
7750
if test "x$enable_dependency_tracking" != xno; then
7751
am_depcomp="$ac_aux_dir/depcomp"
7754
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7755
AC_SUBST([AMDEPBACKSLASH])dnl
7756
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7759
# Generate code to set up dependency tracking. -*- Autoconf -*-
7761
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7762
# Free Software Foundation, Inc.
7764
# This file is free software; the Free Software Foundation
7765
# gives unlimited permission to copy and/or distribute it,
7766
# with or without modifications, as long as this notice is preserved.
7770
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7771
# ------------------------------
7772
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7773
[for mf in $CONFIG_FILES; do
7774
# Strip MF so we end up with the name of the file.
7775
mf=`echo "$mf" | sed -e 's/:.*$//'`
7776
# Check whether this is an Automake generated Makefile or not.
7777
# We used to match only the files named `Makefile.in', but
7778
# some people rename them; so instead we look at the file content.
7779
# Grep'ing the first line is not enough: some people post-process
7780
# each Makefile.in and add a new line on top of each file to say so.
7781
# Grep'ing the whole file is not good either: AIX grep has a line
7782
# limit of 2048, but all sed's we know have understand at least 4000.
7783
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7784
dirpart=`AS_DIRNAME("$mf")`
7788
# Extract the definition of DEPDIR, am__include, and am__quote
7789
# from the Makefile without running `make'.
7790
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7791
test -z "$DEPDIR" && continue
7792
am__include=`sed -n 's/^am__include = //p' < "$mf"`
7793
test -z "am__include" && continue
7794
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7795
# When using ansi2knr, U may be empty or an underscore; expand it
7796
U=`sed -n 's/^U = //p' < "$mf"`
7797
# Find all dependency output files, they are included files with
7798
# $(DEPDIR) in their names. We invoke sed twice because it is the
7799
# simplest approach to changing $(DEPDIR) to its actual value in the
7801
for file in `sed -n "
7802
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7803
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7804
# Make sure the directory exists.
7805
test -f "$dirpart/$file" && continue
7806
fdir=`AS_DIRNAME(["$file"])`
7807
AS_MKDIR_P([$dirpart/$fdir])
7808
# echo "creating $dirpart/$file"
7809
echo '# dummy' > "$dirpart/$file"
7812
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7815
# AM_OUTPUT_DEPENDENCY_COMMANDS
7816
# -----------------------------
7817
# This macro should only be invoked once -- use via AC_REQUIRE.
7819
# This code is only required when automatic dependency tracking
7820
# is enabled. FIXME. This creates each `.P' file that we will
7821
# need in order to bootstrap the dependency handling code.
7822
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7823
[AC_CONFIG_COMMANDS([depfiles],
7824
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7825
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7828
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7829
# Free Software Foundation, Inc.
7831
# This file is free software; the Free Software Foundation
7832
# gives unlimited permission to copy and/or distribute it,
7833
# with or without modifications, as long as this notice is preserved.
7837
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7838
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7840
# Do all the work for Automake. -*- Autoconf -*-
7842
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7843
# 2005, 2006, 2008 Free Software Foundation, Inc.
7845
# This file is free software; the Free Software Foundation
7846
# gives unlimited permission to copy and/or distribute it,
7847
# with or without modifications, as long as this notice is preserved.
7851
# This macro actually does too much. Some checks are only needed if
7852
# your package does certain things. But this isn't really a big deal.
7854
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7855
# AM_INIT_AUTOMAKE([OPTIONS])
7856
# -----------------------------------------------
7857
# The call with PACKAGE and VERSION arguments is the old style
7858
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7859
# and VERSION should now be passed to AC_INIT and removed from
7860
# the call to AM_INIT_AUTOMAKE.
7861
# We support both call styles for the transition. After
7862
# the next Automake release, Autoconf can make the AC_INIT
7863
# arguments mandatory, and then we can depend on a new Autoconf
7864
# release and drop the old call support.
7865
AC_DEFUN([AM_INIT_AUTOMAKE],
7866
[AC_PREREQ([2.60])dnl
7867
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7868
dnl the ones we care about.
7869
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7870
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7871
AC_REQUIRE([AC_PROG_INSTALL])dnl
7872
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7873
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7874
# is not polluted with repeated "-I."
7875
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7876
# test to see if srcdir already configured
7877
if test -f $srcdir/config.status; then
7878
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7882
# test whether we have cygpath
7883
if test -z "$CYGPATH_W"; then
7884
if (cygpath --version) >/dev/null 2>/dev/null; then
7885
CYGPATH_W='cygpath -w'
7890
AC_SUBST([CYGPATH_W])
7892
# Define the identity of the package.
7893
dnl Distinguish between old-style and new-style calls.
7895
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7896
AC_SUBST([PACKAGE], [$1])dnl
7897
AC_SUBST([VERSION], [$2])],
7898
[_AM_SET_OPTIONS([$1])dnl
7899
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7900
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7901
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7902
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7903
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7905
_AM_IF_OPTION([no-define],,
7906
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7907
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7909
# Some tools Automake needs.
7910
AC_REQUIRE([AM_SANITY_CHECK])dnl
7911
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7912
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7913
AM_MISSING_PROG(AUTOCONF, autoconf)
7914
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7915
AM_MISSING_PROG(AUTOHEADER, autoheader)
7916
AM_MISSING_PROG(MAKEINFO, makeinfo)
7918
AM_PROG_INSTALL_STRIP
7919
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7920
# We need awk for the "check" target. The system "awk" is bad on
7922
AC_REQUIRE([AC_PROG_AWK])dnl
7923
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7924
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7925
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7926
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7927
[_AM_PROG_TAR([v7])])])
7928
_AM_IF_OPTION([no-dependencies],,
7929
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7930
[_AM_DEPENDENCIES(CC)],
7931
[define([AC_PROG_CC],
7932
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7933
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7934
[_AM_DEPENDENCIES(CXX)],
7935
[define([AC_PROG_CXX],
7936
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7937
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7938
[_AM_DEPENDENCIES(OBJC)],
7939
[define([AC_PROG_OBJC],
7940
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7945
# When config.status generates a header, we must update the stamp-h file.
7946
# This file resides in the same directory as the config header
7947
# that is generated. The stamp files are numbered to have different names.
7949
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7950
# loop where config.status creates the headers, so we can generate
7951
# our stamp files there.
7952
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7953
[# Compute $1's index in $config_headers.
7956
for _am_header in $config_headers :; do
7958
$_am_arg | $_am_arg:* )
7961
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7964
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7966
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7968
# This file is free software; the Free Software Foundation
7969
# gives unlimited permission to copy and/or distribute it,
7970
# with or without modifications, as long as this notice is preserved.
7972
# AM_PROG_INSTALL_SH
7973
# ------------------
7974
# Define $install_sh.
7975
AC_DEFUN([AM_PROG_INSTALL_SH],
7976
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7977
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7978
AC_SUBST(install_sh)])
7980
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7982
# This file is free software; the Free Software Foundation
7983
# gives unlimited permission to copy and/or distribute it,
7984
# with or without modifications, as long as this notice is preserved.
7988
# Check whether the underlying file-system supports filenames
7989
# with a leading dot. For instance MS-DOS doesn't.
7990
AC_DEFUN([AM_SET_LEADING_DOT],
7991
[rm -rf .tst 2>/dev/null
7992
mkdir .tst 2>/dev/null
7993
if test -d .tst; then
7998
rmdir .tst 2>/dev/null
7999
AC_SUBST([am__leading_dot])])
8001
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
8004
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
8005
# Free Software Foundation, Inc.
8007
# This file is free software; the Free Software Foundation
8008
# gives unlimited permission to copy and/or distribute it,
8009
# with or without modifications, as long as this notice is preserved.
8013
AC_DEFUN([AM_MAINTAINER_MODE],
8014
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8015
dnl maintainer-mode is disabled by default
8016
AC_ARG_ENABLE(maintainer-mode,
8017
[ --enable-maintainer-mode enable make rules and dependencies not useful
8018
(and sometimes confusing) to the casual installer],
8019
USE_MAINTAINER_MODE=$enableval,
8020
USE_MAINTAINER_MODE=no)
8021
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8022
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8023
MAINT=$MAINTAINER_MODE_TRUE
8028
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8030
# Check to see how 'make' treats includes. -*- Autoconf -*-
8032
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8034
# This file is free software; the Free Software Foundation
8035
# gives unlimited permission to copy and/or distribute it,
8036
# with or without modifications, as long as this notice is preserved.
8042
# Check to see how make treats includes.
8043
AC_DEFUN([AM_MAKE_INCLUDE],
8044
[am_make=${MAKE-make}
8045
cat > confinc << 'END'
8050
# If we don't find an include directive, just comment out the code.
8051
AC_MSG_CHECKING([for style of include used by $am_make])
8055
# First try GNU make style include.
8056
echo "include confinc" > confmf
8057
# We grep out `Entering directory' and `Leaving directory'
8058
# messages which can occur if `w' ends up in MAKEFLAGS.
8059
# In particular we don't look at `^make:' because GNU make might
8060
# be invoked under some other name (usually "gmake"), in which
8061
# case it prints its new name instead of `make'.
8062
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8067
# Now try BSD make style include.
8068
if test "$am__include" = "#"; then
8069
echo '.include "confinc"' > confmf
8070
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8071
am__include=.include
8076
AC_SUBST([am__include])
8077
AC_SUBST([am__quote])
8078
AC_MSG_RESULT([$_am_result])
8079
rm -f confinc confmf
8082
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
8083
# Free Software Foundation, Inc.
8085
# This file is free software; the Free Software Foundation
8086
# gives unlimited permission to copy and/or distribute it,
8087
# with or without modifications, as long as this notice is preserved.
8093
# Like AC_PROG_CC_C_O, but changed for automake.
8094
AC_DEFUN([AM_PROG_CC_C_O],
8095
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
8096
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8097
AC_REQUIRE_AUX_FILE([compile])dnl
8098
# FIXME: we rely on the cache variable name because
8099
# there is no other way.
8101
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
8102
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
8103
# Losing compiler, so override with the script.
8104
# FIXME: It is wrong to rewrite CC.
8105
# But if we don't then we get into trouble of one sort or another.
8106
# A longer-term fix would be to have automake use am__CC in this case,
8107
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8108
CC="$am_aux_dir/compile $CC"
8110
dnl Make sure AC_PROG_CC is never called again, or it will override our
8112
m4_define([AC_PROG_CC],
8113
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
8116
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8118
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8119
# Free Software Foundation, Inc.
8121
# This file is free software; the Free Software Foundation
8122
# gives unlimited permission to copy and/or distribute it,
8123
# with or without modifications, as long as this notice is preserved.
8127
# AM_MISSING_PROG(NAME, PROGRAM)
8128
# ------------------------------
8129
AC_DEFUN([AM_MISSING_PROG],
8130
[AC_REQUIRE([AM_MISSING_HAS_RUN])
8131
$1=${$1-"${am_missing_run}$2"}
8135
# AM_MISSING_HAS_RUN
8136
# ------------------
8137
# Define MISSING if not defined so far and test if it supports --run.
8138
# If it does, set am_missing_run to use it, otherwise, to nothing.
8139
AC_DEFUN([AM_MISSING_HAS_RUN],
8140
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8141
AC_REQUIRE_AUX_FILE([missing])dnl
8142
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8143
# Use eval to expand $SHELL
8144
if eval "$MISSING --run true"; then
8145
am_missing_run="$MISSING --run "
8148
AC_MSG_WARN([`missing' script is too old or missing])
8152
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8154
# This file is free software; the Free Software Foundation
8155
# gives unlimited permission to copy and/or distribute it,
8156
# with or without modifications, as long as this notice is preserved.
8160
# Check for `mkdir -p'.
8161
AC_DEFUN([AM_PROG_MKDIR_P],
8162
[AC_PREREQ([2.60])dnl
8163
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8164
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8165
dnl while keeping a definition of mkdir_p for backward compatibility.
8166
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8167
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8168
dnl Makefile.ins that do not define MKDIR_P, so we do our own
8169
dnl adjustment using top_builddir (which is defined more often than
8171
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8173
[[\\/$]]* | ?:[[\\/]]*) ;;
8174
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8178
# Helper functions for option handling. -*- Autoconf -*-
8180
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8182
# This file is free software; the Free Software Foundation
8183
# gives unlimited permission to copy and/or distribute it,
8184
# with or without modifications, as long as this notice is preserved.
8188
# _AM_MANGLE_OPTION(NAME)
8189
# -----------------------
8190
AC_DEFUN([_AM_MANGLE_OPTION],
8191
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8193
# _AM_SET_OPTION(NAME)
8194
# ------------------------------
8195
# Set option NAME. Presently that only means defining a flag for this option.
8196
AC_DEFUN([_AM_SET_OPTION],
8197
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8199
# _AM_SET_OPTIONS(OPTIONS)
8200
# ----------------------------------
8201
# OPTIONS is a space-separated list of Automake options.
8202
AC_DEFUN([_AM_SET_OPTIONS],
8203
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8205
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8206
# -------------------------------------------
8207
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8208
AC_DEFUN([_AM_IF_OPTION],
8209
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8211
# Check to make sure that the build environment is sane. -*- Autoconf -*-
8213
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8214
# Free Software Foundation, Inc.
8216
# This file is free software; the Free Software Foundation
8217
# gives unlimited permission to copy and/or distribute it,
8218
# with or without modifications, as long as this notice is preserved.
8224
AC_DEFUN([AM_SANITY_CHECK],
8225
[AC_MSG_CHECKING([whether build environment is sane])
8228
echo timestamp > conftest.file
8229
# Do `set' in a subshell so we don't clobber the current shell's
8230
# arguments. Must try -L first in case configure is actually a
8231
# symlink; some systems play weird games with the mod time of symlinks
8232
# (eg FreeBSD returns the mod time of the symlink's containing
8235
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8236
if test "$[*]" = "X"; then
8238
set X `ls -t $srcdir/configure conftest.file`
8241
if test "$[*]" != "X $srcdir/configure conftest.file" \
8242
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
8244
# If neither matched, then we have a broken ls. This can happen
8245
# if, for instance, CONFIG_SHELL is bash and it inherits a
8246
# broken ls alias from the environment. This has actually
8247
# happened. Such a system could not be considered "sane".
8248
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8249
alias in your environment])
8252
test "$[2]" = conftest.file
8258
AC_MSG_ERROR([newly created file is older than distributed files!
8259
Check your system clock])
8261
AC_MSG_RESULT(yes)])
8263
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8265
# This file is free software; the Free Software Foundation
8266
# gives unlimited permission to copy and/or distribute it,
8267
# with or without modifications, as long as this notice is preserved.
8269
# AM_PROG_INSTALL_STRIP
8270
# ---------------------
8271
# One issue with vendor `install' (even GNU) is that you can't
8272
# specify the program used to strip binaries. This is especially
8273
# annoying in cross-compiling environments, where the build's strip
8274
# is unlikely to handle the host's binaries.
8275
# Fortunately install-sh will honor a STRIPPROG variable, so we
8276
# always use install-sh in `make install-strip', and initialize
8277
# STRIPPROG with the value of the STRIP variable (set by the user).
8278
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8279
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8280
# Installed binaries are usually stripped using `strip' when the user
8281
# run `make install-strip'. However `strip' might not be the right
8282
# tool to use in cross-compilation environments, therefore Automake
8283
# will honor the `STRIP' environment variable to overrule this program.
8284
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8285
if test "$cross_compiling" != no; then
8286
AC_CHECK_TOOL([STRIP], [strip], :)
8288
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8289
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8291
# Copyright (C) 2006 Free Software Foundation, Inc.
8293
# This file is free software; the Free Software Foundation
8294
# gives unlimited permission to copy and/or distribute it,
8295
# with or without modifications, as long as this notice is preserved.
8297
# _AM_SUBST_NOTMAKE(VARIABLE)
8298
# ---------------------------
8299
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8300
# This macro is traced by Automake.
8301
AC_DEFUN([_AM_SUBST_NOTMAKE])
8303
# Check how to create a tarball. -*- Autoconf -*-
8305
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8307
# This file is free software; the Free Software Foundation
8308
# gives unlimited permission to copy and/or distribute it,
8309
# with or without modifications, as long as this notice is preserved.
8313
# _AM_PROG_TAR(FORMAT)
8314
# --------------------
8315
# Check how to create a tarball in format FORMAT.
8316
# FORMAT should be one of `v7', `ustar', or `pax'.
8318
# Substitute a variable $(am__tar) that is a command
8319
# writing to stdout a FORMAT-tarball containing the directory
8321
# tardir=directory && $(am__tar) > result.tar
8323
# Substitute a variable $(am__untar) that extract such
8324
# a tarball read from stdin.
8325
# $(am__untar) < result.tar
8326
AC_DEFUN([_AM_PROG_TAR],
8327
[# Always define AMTAR for backward compatibility.
8328
AM_MISSING_PROG([AMTAR], [tar])
8330
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8331
[m4_case([$1], [ustar],, [pax],,
8332
[m4_fatal([Unknown tar format])])
8333
AC_MSG_CHECKING([how to create a $1 tar archive])
8334
# Loop over all known methods to create a tar archive until one works.
8335
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8336
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8337
# Do not fold the above two line into one, because Tru64 sh and
8338
# Solaris sh will not grok spaces in the rhs of `-'.
8339
for _am_tool in $_am_tools
8343
for _am_tar in tar gnutar gtar;
8345
AM_RUN_LOG([$_am_tar --version]) && break
8347
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8348
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8349
am__untar="$_am_tar -xf -"
8352
# Must skip GNU tar: if it does not support --format= it doesn't create
8353
# ustar tarball either.
8354
(tar --version) >/dev/null 2>&1 && continue
8355
am__tar='tar chf - "$$tardir"'
8356
am__tar_='tar chf - "$tardir"'
8357
am__untar='tar xf -'
8360
am__tar='pax -L -x $1 -w "$$tardir"'
8361
am__tar_='pax -L -x $1 -w "$tardir"'
8365
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8366
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8367
am__untar='cpio -i -H $1 -d'
8376
# If the value was cached, stop now. We just wanted to have am__tar
8377
# and am__untar set.
8378
test -n "${am_cv_prog_tar_$1}" && break
8380
# tar/untar a dummy directory, and stop if the command works
8383
echo GrepMe > conftest.dir/file
8384
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8386
if test -s conftest.tar; then
8387
AM_RUN_LOG([$am__untar <conftest.tar])
8388
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8393
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8394
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8396
AC_SUBST([am__untar])