19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
24
# This file is free software; the Free Software Foundation
25
# gives unlimited permission to copy and/or distribute it,
26
# with or without modifications, as long as this notice is preserved.
28
# AM_AUTOMAKE_VERSION(VERSION)
29
# ----------------------------
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
# generated from the m4 files accompanying Automake X.Y.
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.11'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.11], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
49
# -------------------------------
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
[AM_AUTOMAKE_VERSION([1.11])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
62
# This file is free software; the Free Software Foundation
63
# gives unlimited permission to copy and/or distribute it,
64
# with or without modifications, as long as this notice is preserved.
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
70
# Of course, Automake must honor this variable whenever it calls a
71
# tool from the auxiliary directory. The problem is that $srcdir (and
72
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
# depending on how configure is run. This is pretty annoying, since
74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
# source directory, any form will work fine, but in subdirectories a
76
# relative path needs to be adjusted first.
79
# fails when called from a subdirectory if $ac_aux_dir is relative
80
# $top_srcdir/$ac_aux_dir/missing
81
# fails if $ac_aux_dir is absolute,
82
# fails when called from a subdirectory in a VPATH build with
83
# a relative $ac_aux_dir
85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
# are both prefixed by $srcdir. In an in-source build this is usually
87
# harmless because $srcdir is `.', but things will broke when you
88
# start a VPATH build or use an absolute $srcdir.
90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
# and then we would define $MISSING as
94
# MISSING="\${SHELL} $am_aux_dir/missing"
95
# This will work as long as MISSING is not called from configure, because
96
# unfortunately $(top_srcdir) has no meaning in configure.
97
# However there are other variables, like CC, which are often used in
98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
100
# Another solution, used here, is to always expand $ac_aux_dir to an
101
# absolute PATH. The drawback is that using absolute paths prevent a
102
# configured tree to be moved without reconfiguration.
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
[dnl Rely on autoconf to set up CDPATH properly.
107
# expand $ac_aux_dir to an absolute path
108
am_aux_dir=`cd $ac_aux_dir && pwd`
111
# AM_CONDITIONAL -*- Autoconf -*-
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
# Free Software Foundation, Inc.
116
# This file is free software; the Free Software Foundation
117
# gives unlimited permission to copy and/or distribute it,
118
# with or without modifications, as long as this notice is preserved.
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
# -------------------------------------
124
# Define a conditional.
125
AC_DEFUN([AM_CONDITIONAL],
127
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
AC_SUBST([$1_TRUE])dnl
130
AC_SUBST([$1_FALSE])dnl
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
141
AC_CONFIG_COMMANDS_PRE(
142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143
AC_MSG_ERROR([[conditional "$1" was never defined.
144
Usually this means the macro was only invoked conditionally.]])
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
# Free Software Foundation, Inc.
150
# This file is free software; the Free Software Foundation
151
# gives unlimited permission to copy and/or distribute it,
152
# with or without modifications, as long as this notice is preserved.
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
# written in clear, in which case automake, when reading aclocal.m4,
158
# will think it sees a *use*, and therefore will trigger all it's
159
# C support machinery. Also note that it means that autoscan, seeing
160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
163
# _AM_DEPENDENCIES(NAME)
164
# ----------------------
165
# See how the compiler implements dependency checking.
166
# NAME is "CC", "CXX", "GCJ", or "OBJC".
167
# We try a few techniques and use that to set a single cache variable.
169
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171
# dependency, and given that the user is not expected to run this macro,
172
# just rely on AC_PROG_CC.
173
AC_DEFUN([_AM_DEPENDENCIES],
174
[AC_REQUIRE([AM_SET_DEPDIR])dnl
175
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
AC_REQUIRE([AM_DEP_TRACK])dnl
179
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
180
[$1], CXX, [depcc="$CXX" am_compiler_list=],
181
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
[$1], UPC, [depcc="$UPC" am_compiler_list=],
183
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
184
[depcc="$$1" am_compiler_list=])
186
AC_CACHE_CHECK([dependency style of $depcc],
187
[am_cv_$1_dependencies_compiler_type],
188
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189
# We make a subdir and do the tests there. Otherwise we can end up
190
# making bogus files that we don't know about and never remove. For
191
# instance it was reported that on HP-UX the gcc test will end up
192
# making a dummy file named `D' -- because `-MD' means `put the output
195
# Copy depcomp to subdir because otherwise we won't find it if we're
196
# using a relative directory.
197
cp "$am_depcomp" conftest.dir
199
# We will build objects and dependencies in a subdirectory because
200
# it helps to detect inapplicable dependency modes. For instance
201
# both Tru64's cc and ICC support -MD to output dependencies as a
202
# side effect of compilation, but ICC will put the dependencies in
203
# the current directory while Tru64 will put them in the object
207
am_cv_$1_dependencies_compiler_type=none
208
if test "$am_compiler_list" = ""; then
209
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
213
[case " $depcc " in #(
214
*\ -arch\ *\ -arch\ *) am__universal=true ;;
217
[case " $depcc " in #(
218
*\ -arch\ *\ -arch\ *) am__universal=true ;;
221
for depmode in $am_compiler_list; do
222
# Setup a source with many dependencies, because some compilers
223
# like to wrap large dependency lists on column 80 (with \), and
224
# we should not choose a depcomp mode which is confused by this.
226
# We need to recreate these files for each test, as the compiler may
227
# overwrite some of them when testing with obscure command lines.
228
# This happens at least with the AIX C compiler.
230
for i in 1 2 3 4 5 6; do
231
echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
# Solaris 8's {/usr,}/bin/sh.
234
touch sub/conftst$i.h
236
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
238
# We check with `-c' and `-o' for the sake of the "dashmstdout"
239
# mode. It turns out that the SunPro C++ compiler does not properly
240
# handle `-M -o', and we need to detect this. Also, some Intel
241
# versions had trouble with output in subdirs
242
am__obj=sub/conftest.${OBJEXT-o}
243
am__minus_obj="-o $am__obj"
246
# This depmode causes a compiler race in universal mode.
247
test "$am__universal" = false || continue
250
# after this tag, mechanisms are not by side-effect, so they'll
251
# only be used when explicitly requested
252
if test "x$enable_dependency_tracking" = xyes; then
258
msvisualcpp | msvcmsys)
259
# This compiler won't grok `-c -o', but also, the minuso test has
260
# not run yet. These depmodes are late enough in the game, and
261
# so weak that their functioning should not be impacted.
262
am__obj=conftest.${OBJEXT-o}
267
if depmode=$depmode \
268
source=sub/conftest.c object=$am__obj \
269
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271
>/dev/null 2>conftest.err &&
272
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276
# icc doesn't choke on unknown options, it will just issue warnings
277
# or remarks (even with -Werror). So we grep stderr for any message
278
# that says an option was ignored or not supported.
279
# When given -MP, icc 7.0 and 7.1 complain thusly:
280
# icc: Command line warning: ignoring option '-M'; no argument required
281
# The diagnosis changed in icc 8.0:
282
# icc: Command line remark: option '-MP' not supported
283
if (grep 'ignoring option' conftest.err ||
284
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285
am_cv_$1_dependencies_compiler_type=$depmode
294
am_cv_$1_dependencies_compiler_type=none
297
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298
AM_CONDITIONAL([am__fastdep$1], [
299
test "x$enable_dependency_tracking" != xno \
300
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
306
# Choose a directory name for dependency files.
307
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
308
AC_DEFUN([AM_SET_DEPDIR],
309
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
316
AC_DEFUN([AM_DEP_TRACK],
317
[AC_ARG_ENABLE(dependency-tracking,
318
[ --disable-dependency-tracking speeds up one-time build
319
--enable-dependency-tracking do not reject slow dependency extractors])
320
if test "x$enable_dependency_tracking" != xno; then
321
am_depcomp="$ac_aux_dir/depcomp"
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
AC_SUBST([AMDEPBACKSLASH])dnl
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329
# Generate code to set up dependency tracking. -*- Autoconf -*-
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
# Free Software Foundation, Inc.
334
# This file is free software; the Free Software Foundation
335
# gives unlimited permission to copy and/or distribute it,
336
# with or without modifications, as long as this notice is preserved.
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
# ------------------------------
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344
# Autoconf 2.62 quotes --file arguments for eval, but not when files
345
# are listed without --file. Let's play safe and only enable the eval
346
# if we detect the quoting.
347
case $CONFIG_FILES in
348
*\'*) eval set x "$CONFIG_FILES" ;;
349
*) set x $CONFIG_FILES ;;
354
# Strip MF so we end up with the name of the file.
355
mf=`echo "$mf" | sed -e 's/:.*$//'`
356
# Check whether this is an Automake generated Makefile or not.
357
# We used to match only the files named `Makefile.in', but
358
# some people rename them; so instead we look at the file content.
359
# Grep'ing the first line is not enough: some people post-process
360
# each Makefile.in and add a new line on top of each file to say so.
361
# Grep'ing the whole file is not good either: AIX grep has a line
362
# limit of 2048, but all sed's we know have understand at least 4000.
363
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364
dirpart=`AS_DIRNAME("$mf")`
368
# Extract the definition of DEPDIR, am__include, and am__quote
369
# from the Makefile without running `make'.
370
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
test -z "$DEPDIR" && continue
372
am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
test -z "am__include" && continue
374
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
# When using ansi2knr, U may be empty or an underscore; expand it
376
U=`sed -n 's/^U = //p' < "$mf"`
377
# Find all dependency output files, they are included files with
378
# $(DEPDIR) in their names. We invoke sed twice because it is the
379
# simplest approach to changing $(DEPDIR) to its actual value in the
381
for file in `sed -n "
382
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
# Make sure the directory exists.
385
test -f "$dirpart/$file" && continue
386
fdir=`AS_DIRNAME(["$file"])`
387
AS_MKDIR_P([$dirpart/$fdir])
388
# echo "creating $dirpart/$file"
389
echo '# dummy' > "$dirpart/$file"
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
396
# AM_OUTPUT_DEPENDENCY_COMMANDS
397
# -----------------------------
398
# This macro should only be invoked once -- use via AC_REQUIRE.
400
# This code is only required when automatic dependency tracking
401
# is enabled. FIXME. This creates each `.P' file that we will
402
# need in order to bootstrap the dependency handling code.
403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
[AC_CONFIG_COMMANDS([depfiles],
405
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
409
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
410
# Free Software Foundation, Inc.
412
# This file is free software; the Free Software Foundation
413
# gives unlimited permission to copy and/or distribute it,
414
# with or without modifications, as long as this notice is preserved.
418
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
419
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
421
# Do all the work for Automake. -*- Autoconf -*-
423
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
424
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
426
# This file is free software; the Free Software Foundation
427
# gives unlimited permission to copy and/or distribute it,
428
# with or without modifications, as long as this notice is preserved.
432
# This macro actually does too much. Some checks are only needed if
433
# your package does certain things. But this isn't really a big deal.
435
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
436
# AM_INIT_AUTOMAKE([OPTIONS])
437
# -----------------------------------------------
438
# The call with PACKAGE and VERSION arguments is the old style
439
# call (pre autoconf-2.50), which is being phased out. PACKAGE
440
# and VERSION should now be passed to AC_INIT and removed from
441
# the call to AM_INIT_AUTOMAKE.
442
# We support both call styles for the transition. After
443
# the next Automake release, Autoconf can make the AC_INIT
444
# arguments mandatory, and then we can depend on a new Autoconf
445
# release and drop the old call support.
446
AC_DEFUN([AM_INIT_AUTOMAKE],
447
[AC_PREREQ([2.62])dnl
448
dnl Autoconf wants to disallow AM_ names. We explicitly allow
449
dnl the ones we care about.
450
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
451
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
452
AC_REQUIRE([AC_PROG_INSTALL])dnl
453
if test "`cd $srcdir && pwd`" != "`pwd`"; then
454
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
455
# is not polluted with repeated "-I."
456
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
457
# test to see if srcdir already configured
458
if test -f $srcdir/config.status; then
459
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
463
# test whether we have cygpath
464
if test -z "$CYGPATH_W"; then
465
if (cygpath --version) >/dev/null 2>/dev/null; then
466
CYGPATH_W='cygpath -w'
471
AC_SUBST([CYGPATH_W])
473
# Define the identity of the package.
474
dnl Distinguish between old-style and new-style calls.
476
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
477
AC_SUBST([PACKAGE], [$1])dnl
478
AC_SUBST([VERSION], [$2])],
479
[_AM_SET_OPTIONS([$1])dnl
480
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
481
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
482
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
483
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
484
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
486
_AM_IF_OPTION([no-define],,
487
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
488
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
490
# Some tools Automake needs.
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
493
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
494
AM_MISSING_PROG(AUTOCONF, autoconf)
495
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
496
AM_MISSING_PROG(AUTOHEADER, autoheader)
497
AM_MISSING_PROG(MAKEINFO, makeinfo)
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
500
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
501
# We need awk for the "check" target. The system "awk" is bad on
503
AC_REQUIRE([AC_PROG_AWK])dnl
504
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
505
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
506
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
507
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
508
[_AM_PROG_TAR([v7])])])
509
_AM_IF_OPTION([no-dependencies],,
510
[AC_PROVIDE_IFELSE([AC_PROG_CC],
511
[_AM_DEPENDENCIES(CC)],
512
[define([AC_PROG_CC],
513
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
514
AC_PROVIDE_IFELSE([AC_PROG_CXX],
515
[_AM_DEPENDENCIES(CXX)],
516
[define([AC_PROG_CXX],
517
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
518
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
519
[_AM_DEPENDENCIES(OBJC)],
520
[define([AC_PROG_OBJC],
521
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
523
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
524
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
525
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
526
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
527
AC_CONFIG_COMMANDS_PRE(dnl
528
[m4_provide_if([_AM_COMPILER_EXEEXT],
529
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
532
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
533
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
534
dnl mangled by Autoconf and run in a shell conditional statement.
535
m4_define([_AC_COMPILER_EXEEXT],
536
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
539
# When config.status generates a header, we must update the stamp-h file.
540
# This file resides in the same directory as the config header
541
# that is generated. The stamp files are numbered to have different names.
543
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
544
# loop where config.status creates the headers, so we can generate
545
# our stamp files there.
546
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
547
[# Compute $1's index in $config_headers.
550
for _am_header in $config_headers :; do
552
$_am_arg | $_am_arg:* )
555
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
558
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
560
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
562
# This file is free software; the Free Software Foundation
563
# gives unlimited permission to copy and/or distribute it,
564
# with or without modifications, as long as this notice is preserved.
568
# Define $install_sh.
569
AC_DEFUN([AM_PROG_INSTALL_SH],
570
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571
if test x"${install_sh}" != xset; then
574
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
576
install_sh="\${SHELL} $am_aux_dir/install-sh"
579
AC_SUBST(install_sh)])
581
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
583
# This file is free software; the Free Software Foundation
584
# gives unlimited permission to copy and/or distribute it,
585
# with or without modifications, as long as this notice is preserved.
589
# Check whether the underlying file-system supports filenames
590
# with a leading dot. For instance MS-DOS doesn't.
591
AC_DEFUN([AM_SET_LEADING_DOT],
592
[rm -rf .tst 2>/dev/null
593
mkdir .tst 2>/dev/null
594
if test -d .tst; then
599
rmdir .tst 2>/dev/null
600
AC_SUBST([am__leading_dot])])
602
# Check to see how 'make' treats includes. -*- Autoconf -*-
604
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
606
# This file is free software; the Free Software Foundation
607
# gives unlimited permission to copy and/or distribute it,
608
# with or without modifications, as long as this notice is preserved.
614
# Check to see how make treats includes.
615
AC_DEFUN([AM_MAKE_INCLUDE],
616
[am_make=${MAKE-make}
617
cat > confinc << 'END'
619
@echo this is the am__doit target
622
# If we don't find an include directive, just comment out the code.
623
AC_MSG_CHECKING([for style of include used by $am_make])
627
# First try GNU make style include.
628
echo "include confinc" > confmf
629
# Ignore all kinds of additional output from `make'.
630
case `$am_make -s -f confmf 2> /dev/null` in #(
631
*the\ am__doit\ target*)
637
# Now try BSD make style include.
638
if test "$am__include" = "#"; then
639
echo '.include "confinc"' > confmf
640
case `$am_make -s -f confmf 2> /dev/null` in #(
641
*the\ am__doit\ target*)
648
AC_SUBST([am__include])
649
AC_SUBST([am__quote])
650
AC_MSG_RESULT([$_am_result])
654
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
656
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
657
# Free Software Foundation, Inc.
659
# This file is free software; the Free Software Foundation
660
# gives unlimited permission to copy and/or distribute it,
661
# with or without modifications, as long as this notice is preserved.
665
# AM_MISSING_PROG(NAME, PROGRAM)
666
# ------------------------------
667
AC_DEFUN([AM_MISSING_PROG],
668
[AC_REQUIRE([AM_MISSING_HAS_RUN])
669
$1=${$1-"${am_missing_run}$2"}
675
# Define MISSING if not defined so far and test if it supports --run.
676
# If it does, set am_missing_run to use it, otherwise, to nothing.
677
AC_DEFUN([AM_MISSING_HAS_RUN],
678
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
679
AC_REQUIRE_AUX_FILE([missing])dnl
680
if test x"${MISSING+set}" != xset; then
683
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
685
MISSING="\${SHELL} $am_aux_dir/missing" ;;
688
# Use eval to expand $SHELL
689
if eval "$MISSING --run true"; then
690
am_missing_run="$MISSING --run "
693
AC_MSG_WARN([`missing' script is too old or missing])
697
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
699
# This file is free software; the Free Software Foundation
700
# gives unlimited permission to copy and/or distribute it,
701
# with or without modifications, as long as this notice is preserved.
705
# Check for `mkdir -p'.
706
AC_DEFUN([AM_PROG_MKDIR_P],
707
[AC_PREREQ([2.60])dnl
708
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
709
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
710
dnl while keeping a definition of mkdir_p for backward compatibility.
711
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
712
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
713
dnl Makefile.ins that do not define MKDIR_P, so we do our own
714
dnl adjustment using top_builddir (which is defined more often than
716
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
718
[[\\/$]]* | ?:[[\\/]]*) ;;
719
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
723
# Helper functions for option handling. -*- Autoconf -*-
725
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
727
# This file is free software; the Free Software Foundation
728
# gives unlimited permission to copy and/or distribute it,
729
# with or without modifications, as long as this notice is preserved.
733
# _AM_MANGLE_OPTION(NAME)
734
# -----------------------
735
AC_DEFUN([_AM_MANGLE_OPTION],
736
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
738
# _AM_SET_OPTION(NAME)
739
# ------------------------------
740
# Set option NAME. Presently that only means defining a flag for this option.
741
AC_DEFUN([_AM_SET_OPTION],
742
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
744
# _AM_SET_OPTIONS(OPTIONS)
745
# ----------------------------------
746
# OPTIONS is a space-separated list of Automake options.
747
AC_DEFUN([_AM_SET_OPTIONS],
748
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
750
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
751
# -------------------------------------------
752
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
753
AC_DEFUN([_AM_IF_OPTION],
754
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
756
# Check to make sure that the build environment is sane. -*- Autoconf -*-
758
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
759
# Free Software Foundation, Inc.
761
# This file is free software; the Free Software Foundation
762
# gives unlimited permission to copy and/or distribute it,
763
# with or without modifications, as long as this notice is preserved.
769
AC_DEFUN([AM_SANITY_CHECK],
770
[AC_MSG_CHECKING([whether build environment is sane])
773
echo timestamp > conftest.file
774
# Reject unsafe characters in $srcdir or the absolute working directory
775
# name. Accept space and tab only in the latter.
779
*[[\\\"\#\$\&\'\`$am_lf]]*)
780
AC_MSG_ERROR([unsafe absolute working directory name]);;
783
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
784
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
787
# Do `set' in a subshell so we don't clobber the current shell's
788
# arguments. Must try -L first in case configure is actually a
789
# symlink; some systems play weird games with the mod time of symlinks
790
# (eg FreeBSD returns the mod time of the symlink's containing
793
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
794
if test "$[*]" = "X"; then
796
set X `ls -t "$srcdir/configure" conftest.file`
799
if test "$[*]" != "X $srcdir/configure conftest.file" \
800
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
802
# If neither matched, then we have a broken ls. This can happen
803
# if, for instance, CONFIG_SHELL is bash and it inherits a
804
# broken ls alias from the environment. This has actually
805
# happened. Such a system could not be considered "sane".
806
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
807
alias in your environment])
810
test "$[2]" = conftest.file
816
AC_MSG_ERROR([newly created file is older than distributed files!
817
Check your system clock])
821
# Copyright (C) 2009 Free Software Foundation, Inc.
823
# This file is free software; the Free Software Foundation
824
# gives unlimited permission to copy and/or distribute it,
825
# with or without modifications, as long as this notice is preserved.
829
# AM_SILENT_RULES([DEFAULT])
830
# --------------------------
831
# Enable less verbose build rules; with the default set to DEFAULT
832
# (`yes' being less verbose, `no' or empty being verbose).
833
AC_DEFUN([AM_SILENT_RULES],
834
[AC_ARG_ENABLE([silent-rules],
835
[ --enable-silent-rules less verbose build output (undo: `make V=1')
836
--disable-silent-rules verbose build output (undo: `make V=0')])
837
case $enable_silent_rules in
838
yes) AM_DEFAULT_VERBOSITY=0;;
839
no) AM_DEFAULT_VERBOSITY=1;;
840
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
842
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
844
AC_SUBST([AM_BACKSLASH])dnl
845
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
848
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
850
# This file is free software; the Free Software Foundation
851
# gives unlimited permission to copy and/or distribute it,
852
# with or without modifications, as long as this notice is preserved.
854
# AM_PROG_INSTALL_STRIP
855
# ---------------------
856
# One issue with vendor `install' (even GNU) is that you can't
857
# specify the program used to strip binaries. This is especially
858
# annoying in cross-compiling environments, where the build's strip
859
# is unlikely to handle the host's binaries.
860
# Fortunately install-sh will honor a STRIPPROG variable, so we
861
# always use install-sh in `make install-strip', and initialize
862
# STRIPPROG with the value of the STRIP variable (set by the user).
863
AC_DEFUN([AM_PROG_INSTALL_STRIP],
864
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
865
# Installed binaries are usually stripped using `strip' when the user
866
# run `make install-strip'. However `strip' might not be the right
867
# tool to use in cross-compilation environments, therefore Automake
868
# will honor the `STRIP' environment variable to overrule this program.
869
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
870
if test "$cross_compiling" != no; then
871
AC_CHECK_TOOL([STRIP], [strip], :)
873
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
874
AC_SUBST([INSTALL_STRIP_PROGRAM])])
876
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
878
# This file is free software; the Free Software Foundation
879
# gives unlimited permission to copy and/or distribute it,
880
# with or without modifications, as long as this notice is preserved.
884
# _AM_SUBST_NOTMAKE(VARIABLE)
885
# ---------------------------
886
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
887
# This macro is traced by Automake.
888
AC_DEFUN([_AM_SUBST_NOTMAKE])
890
# AM_SUBST_NOTMAKE(VARIABLE)
891
# ---------------------------
892
# Public sister of _AM_SUBST_NOTMAKE.
893
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
895
# Check how to create a tarball. -*- Autoconf -*-
897
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
899
# This file is free software; the Free Software Foundation
900
# gives unlimited permission to copy and/or distribute it,
901
# with or without modifications, as long as this notice is preserved.
905
# _AM_PROG_TAR(FORMAT)
906
# --------------------
907
# Check how to create a tarball in format FORMAT.
908
# FORMAT should be one of `v7', `ustar', or `pax'.
910
# Substitute a variable $(am__tar) that is a command
911
# writing to stdout a FORMAT-tarball containing the directory
913
# tardir=directory && $(am__tar) > result.tar
915
# Substitute a variable $(am__untar) that extract such
916
# a tarball read from stdin.
917
# $(am__untar) < result.tar
918
AC_DEFUN([_AM_PROG_TAR],
919
[# Always define AMTAR for backward compatibility.
920
AM_MISSING_PROG([AMTAR], [tar])
922
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
923
[m4_case([$1], [ustar],, [pax],,
924
[m4_fatal([Unknown tar format])])
925
AC_MSG_CHECKING([how to create a $1 tar archive])
926
# Loop over all known methods to create a tar archive until one works.
927
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
928
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
929
# Do not fold the above two line into one, because Tru64 sh and
930
# Solaris sh will not grok spaces in the rhs of `-'.
931
for _am_tool in $_am_tools
935
for _am_tar in tar gnutar gtar;
937
AM_RUN_LOG([$_am_tar --version]) && break
939
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
940
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
941
am__untar="$_am_tar -xf -"
944
# Must skip GNU tar: if it does not support --format= it doesn't create
945
# ustar tarball either.
946
(tar --version) >/dev/null 2>&1 && continue
947
am__tar='tar chf - "$$tardir"'
948
am__tar_='tar chf - "$tardir"'
952
am__tar='pax -L -x $1 -w "$$tardir"'
953
am__tar_='pax -L -x $1 -w "$tardir"'
957
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
958
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
959
am__untar='cpio -i -H $1 -d'
968
# If the value was cached, stop now. We just wanted to have am__tar
970
test -n "${am_cv_prog_tar_$1}" && break
972
# tar/untar a dummy directory, and stop if the command works
975
echo GrepMe > conftest.dir/file
976
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
978
if test -s conftest.tar; then
979
AM_RUN_LOG([$am__untar <conftest.tar])
980
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
985
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
986
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
988
AC_SUBST([am__untar])
991
dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
993
dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
995
dnl Permission is hereby granted, free of charge, to any person obtaining a
996
dnl copy of this software and associated documentation files (the
997
dnl "Software"), to deal in the Software without restriction, including
998
dnl without limitation the rights to use, copy, modify, merge, publish,
999
dnl distribute, and/or sell copies of the Software, and to permit persons
1000
dnl to whom the Software is furnished to do so, provided that the above
1001
dnl copyright notice(s) and this permission notice appear in all copies of
1002
dnl the Software and that both the above copyright notice(s) and this
1003
dnl permission notice appear in supporting documentation.
1005
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1006
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1007
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
1008
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
1009
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
1010
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
1011
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1012
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1013
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1015
dnl Except as contained in this notice, the name of a copyright holder
1016
dnl shall not be used in advertising or otherwise to promote the sale, use
1017
dnl or other dealings in this Software without prior written authorization
1018
dnl of the copyright holder.
1020
# XORG_MACROS_VERSION(required-version)
1021
# -------------------------------------
1022
# Minimum version: 1.1.0
1024
# If you're using a macro added in Version 1.1 or newer, include this in
1025
# your configure.ac with the minimum required version, such as:
1026
# XORG_MACROS_VERSION(1.1)
1028
# To ensure that this macro is defined, also add:
1029
# m4_ifndef([XORG_MACROS_VERSION],
1030
# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
1033
# See the "minimum version" comment for each macro you use to see what
1034
# version you require.
1035
m4_defun([XORG_MACROS_VERSION],[
1036
m4_define([vers_have], [1.3.0])
1037
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
1038
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
1039
m4_if(m4_cmp(maj_have, maj_needed), 0,,
1040
[m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
1041
m4_if(m4_version_compare(vers_have, [$1]), -1,
1042
[m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
1043
m4_undefine([vers_have])
1044
m4_undefine([maj_have])
1045
m4_undefine([maj_needed])
1046
]) # XORG_MACROS_VERSION
1048
# XORG_PROG_RAWCPP()
1049
# ------------------
1050
# Minimum version: 1.0.0
1052
# Find cpp program and necessary flags for use in pre-processing text files
1053
# such as man pages and config files
1054
AC_DEFUN([XORG_PROG_RAWCPP],[
1055
AC_REQUIRE([AC_PROG_CPP])
1056
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
1057
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
1059
# Check for flag to avoid builtin definitions - assumes unix is predefined,
1060
# which is not the best choice for supporting other OS'es, but covers most
1061
# of the ones we need for now.
1062
AC_MSG_CHECKING([if $RAWCPP requires -undef])
1063
AC_LANG_CONFTEST([Does cpp redefine unix ?])
1064
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1067
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1069
AC_MSG_RESULT([yes])
1070
# under Cygwin unix is still defined even with -undef
1071
elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1072
RAWCPPFLAGS="-undef -ansi"
1073
AC_MSG_RESULT([yes, with -ansi])
1075
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
1078
rm -f conftest.$ac_ext
1080
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
1081
AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
1082
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
1085
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
1086
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
1087
AC_MSG_RESULT([yes])
1089
AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
1092
rm -f conftest.$ac_ext
1093
AC_SUBST(RAWCPPFLAGS)
1094
]) # XORG_PROG_RAWCPP
1096
# XORG_MANPAGE_SECTIONS()
1097
# -----------------------
1098
# Minimum version: 1.0.0
1100
# Determine which sections man pages go in for the different man page types
1101
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
1102
# Not sure if there's any better way than just hardcoding by OS name.
1103
# Override default settings by setting environment variables
1105
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
1106
AC_REQUIRE([AC_CANONICAL_HOST])
1108
if test x$APP_MAN_SUFFIX = x ; then
1111
if test x$APP_MAN_DIR = x ; then
1112
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1115
if test x$LIB_MAN_SUFFIX = x ; then
1118
if test x$LIB_MAN_DIR = x ; then
1119
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1122
if test x$FILE_MAN_SUFFIX = x ; then
1124
solaris*) FILE_MAN_SUFFIX=4 ;;
1125
*) FILE_MAN_SUFFIX=5 ;;
1128
if test x$FILE_MAN_DIR = x ; then
1129
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1132
if test x$MISC_MAN_SUFFIX = x ; then
1134
solaris*) MISC_MAN_SUFFIX=5 ;;
1135
*) MISC_MAN_SUFFIX=7 ;;
1138
if test x$MISC_MAN_DIR = x ; then
1139
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1142
if test x$DRIVER_MAN_SUFFIX = x ; then
1144
solaris*) DRIVER_MAN_SUFFIX=7 ;;
1145
*) DRIVER_MAN_SUFFIX=4 ;;
1148
if test x$DRIVER_MAN_DIR = x ; then
1149
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1152
if test x$ADMIN_MAN_SUFFIX = x ; then
1154
solaris*) ADMIN_MAN_SUFFIX=1m ;;
1155
*) ADMIN_MAN_SUFFIX=8 ;;
1158
if test x$ADMIN_MAN_DIR = x ; then
1159
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1163
AC_SUBST([APP_MAN_SUFFIX])
1164
AC_SUBST([LIB_MAN_SUFFIX])
1165
AC_SUBST([FILE_MAN_SUFFIX])
1166
AC_SUBST([MISC_MAN_SUFFIX])
1167
AC_SUBST([DRIVER_MAN_SUFFIX])
1168
AC_SUBST([ADMIN_MAN_SUFFIX])
1169
AC_SUBST([APP_MAN_DIR])
1170
AC_SUBST([LIB_MAN_DIR])
1171
AC_SUBST([FILE_MAN_DIR])
1172
AC_SUBST([MISC_MAN_DIR])
1173
AC_SUBST([DRIVER_MAN_DIR])
1174
AC_SUBST([ADMIN_MAN_DIR])
1175
]) # XORG_MANPAGE_SECTIONS
1177
# XORG_CHECK_LINUXDOC
1178
# -------------------
1179
# Minimum version: 1.0.0
1181
# Defines the variable MAKE_TEXT if the necessary tools and
1182
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
1183
# Whether or not the necessary tools and files are found can be checked
1184
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
1185
AC_DEFUN([XORG_CHECK_LINUXDOC],[
1186
if test x$XORG_SGML_PATH = x ; then
1187
XORG_SGML_PATH=$prefix/share/sgml
1191
if test x"$cross_compiling" = x"yes" ; then
1194
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
1197
AC_PATH_PROG(LINUXDOC, linuxdoc)
1198
AC_PATH_PROG(PS2PDF, ps2pdf)
1200
AC_MSG_CHECKING([Whether to build documentation])
1202
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
1208
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
1210
AC_MSG_RESULT([$BUILDDOC])
1212
AC_MSG_CHECKING([Whether to build pdf documentation])
1214
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
1220
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
1222
AC_MSG_RESULT([$BUILDPDFDOC])
1224
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
1225
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
1227
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
1233
]) # XORG_CHECK_LINUXDOC
1235
# XORG_CHECK_DOCBOOK
1236
# -------------------
1237
# Minimum version: 1.0.0
1239
# Checks for the ability to build output formats from SGML DocBook source.
1240
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
1241
# indicates whether the necessary tools and files are found and, if set,
1242
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
1243
AC_DEFUN([XORG_CHECK_DOCBOOK],[
1244
if test x$XORG_SGML_PATH = x ; then
1245
XORG_SGML_PATH=$prefix/share/sgml
1253
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
1255
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
1256
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
1257
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
1258
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
1260
AC_MSG_CHECKING([Whether to build text documentation])
1261
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
1262
test x$BUILD_TXTDOC != xno; then
1265
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
1266
AC_MSG_RESULT([$BUILDTXTDOC])
1268
AC_MSG_CHECKING([Whether to build PDF documentation])
1269
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
1270
test x$BUILD_PDFDOC != xno; then
1273
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
1274
AC_MSG_RESULT([$BUILDPDFDOC])
1276
AC_MSG_CHECKING([Whether to build PostScript documentation])
1277
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
1278
test x$BUILD_PSDOC != xno; then
1281
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
1282
AC_MSG_RESULT([$BUILDPSDOC])
1284
AC_MSG_CHECKING([Whether to build HTML documentation])
1285
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
1286
test x$BUILD_HTMLDOC != xno; then
1289
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
1290
AC_MSG_RESULT([$BUILDHTMLDOC])
1292
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
1293
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
1294
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
1295
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
1301
]) # XORG_CHECK_DOCBOOK
1303
# XORG_CHECK_MALLOC_ZERO
1304
# ----------------------
1305
# Minimum version: 1.0.0
1307
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
1308
# malloc(0) returns NULL. Packages should add one of these cflags to
1309
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
1310
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
1311
AC_ARG_ENABLE(malloc0returnsnull,
1312
AS_HELP_STRING([--enable-malloc0returnsnull],
1313
[malloc(0) returns NULL (default: auto)]),
1314
[MALLOC_ZERO_RETURNS_NULL=$enableval],
1315
[MALLOC_ZERO_RETURNS_NULL=auto])
1317
AC_MSG_CHECKING([whether malloc(0) returns NULL])
1318
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
1324
char *m0, *r0, *c0, *p;
1329
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
1331
[MALLOC_ZERO_RETURNS_NULL=yes],
1332
[MALLOC_ZERO_RETURNS_NULL=no])
1334
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
1336
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
1337
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
1338
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
1339
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
1341
MALLOC_ZERO_CFLAGS=""
1342
XMALLOC_ZERO_CFLAGS=""
1343
XTMALLOC_ZERO_CFLAGS=""
1346
AC_SUBST([MALLOC_ZERO_CFLAGS])
1347
AC_SUBST([XMALLOC_ZERO_CFLAGS])
1348
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
1349
]) # XORG_CHECK_MALLOC_ZERO
1353
# Minimum version: 1.1.0
1355
# Sets up flags for source checkers such as lint and sparse if --with-lint
1356
# is specified. (Use --with-lint=sparse for sparse.)
1357
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
1358
# Sets $LINT_FLAGS to flags to pass to source checker
1359
# Sets LINT automake conditional if enabled (default: disabled)
1361
AC_DEFUN([XORG_WITH_LINT],[
1363
# Allow checking code with lint, sparse, etc.
1364
AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
1365
[Use a lint-style source code checker (default: disabled)])],
1366
[use_lint=$withval], [use_lint=no])
1367
if test "x$use_lint" = "xyes" ; then
1372
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
1377
LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
1385
AC_SUBST(LINT_FLAGS)
1386
AM_CONDITIONAL(LINT, [test x$LINT != xno])
1390
# XORG_LINT_LIBRARY(LIBNAME)
1391
# --------------------------
1392
# Minimum version: 1.1.0
1394
# Sets up flags for building lint libraries for checking programs that call
1395
# functions in the library.
1396
# Disabled by default, enable with --enable-lint-library
1398
# @LINTLIB@ - name of lint library file to make
1399
# MAKE_LINT_LIB - automake conditional
1402
AC_DEFUN([XORG_LINT_LIBRARY],[
1403
AC_REQUIRE([XORG_WITH_LINT])
1404
# Build lint "library" for more indepth checks of programs calling this library
1405
AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
1406
[Create lint library (default: disabled)])],
1407
[make_lint_lib=$enableval], [make_lint_lib=no])
1408
if test "x$make_lint_lib" != "xno" ; then
1409
if test "x$LINT" = "xno" ; then
1410
AC_MSG_ERROR([Cannot make lint library without --with-lint])
1412
if test "x$make_lint_lib" = "xyes" ; then
1415
LINTLIB=$make_lint_lib
1419
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
1421
]) # XORG_LINT_LIBRARY
1425
# Minimum version: 1.2.0
1427
# Defines CWARNFLAGS to enable C compiler warnings.
1429
AC_DEFUN([XORG_CWARNFLAGS], [
1430
AC_REQUIRE([AC_PROG_CC])
1431
if test "x$GCC" = xyes ; then
1432
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
1433
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
1434
-Wbad-function-cast"
1435
case `$CC -dumpversion` in
1437
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
1441
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
1442
if test "x$SUNCC" = "xyes"; then
1446
AC_SUBST(CWARNFLAGS)
1447
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
1448
]) # XORG_CWARNFLAGS
1450
# XORG_STRICT_OPTION
1451
# -----------------------
1452
# Minimum version: 1.3.0
1454
# Add configure option to enable strict compilation
1455
AC_DEFUN([XORG_STRICT_OPTION], [
1456
AC_REQUIRE([AC_PROG_CC])
1457
AC_REQUIRE([AC_PROG_CC_C99])
1458
AC_REQUIRE([XORG_CWARNFLAGS])
1460
AC_ARG_ENABLE(strict-compilation,
1461
AS_HELP_STRING([--enable-strict-compilation],
1462
[Enable all warnings from compiler and make them errors (default: disabled)]),
1463
[STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
1464
if test "x$STRICT_COMPILE" = "xyes"; then
1465
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
1466
AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
1467
if test "x$GCC" = xyes ; then
1468
STRICT_CFLAGS="-pedantic -Werror"
1469
elif test "x$SUNCC" = "xyes"; then
1470
STRICT_CFLAGS="-errwarn"
1471
elif test "x$INTELCC" = "xyes"; then
1472
STRICT_CFLAGS="-Werror"
1475
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1476
AC_SUBST([CWARNFLAGS])
1477
]) # XORG_STRICT_OPTION
1479
# XORG_DEFAULT_OPTIONS
1480
# --------------------
1481
# Minimum version: 1.3.0
1483
# Defines default options for X.Org modules.
1485
AC_DEFUN([XORG_DEFAULT_OPTIONS], [
1488
XORG_RELEASE_VERSION
1490
XORG_MANPAGE_SECTIONS
1491
]) # XORG_DEFAULT_OPTIONS
1492
dnl Copyright 2005 Red Hat, Inc
1494
dnl Permission to use, copy, modify, distribute, and sell this software and its
1495
dnl documentation for any purpose is hereby granted without fee, provided that
1496
dnl the above copyright notice appear in all copies and that both that
1497
dnl copyright notice and this permission notice appear in supporting
1500
dnl The above copyright notice and this permission notice shall be included
1501
dnl in all copies or substantial portions of the Software.
1503
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1504
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1505
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1506
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1507
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1508
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1509
dnl OTHER DEALINGS IN THE SOFTWARE.
1511
dnl Except as contained in this notice, the name of the copyright holders shall
1512
dnl not be used in advertising or otherwise to promote the sale, use or
1513
dnl other dealings in this Software without prior written authorization
1514
dnl from the copyright holders.
1517
# XORG_RELEASE_VERSION
1518
# --------------------
1519
# Adds --with/without-release-string and changes the PACKAGE and
1520
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
1521
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
1522
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
1524
AC_DEFUN([XORG_RELEASE_VERSION],[
1525
AC_ARG_WITH(release-version,
1526
AS_HELP_STRING([--with-release-version=STRING],
1527
[Use release version string in package name]),
1528
[RELEASE_VERSION="$withval"],
1529
[RELEASE_VERSION=""])
1530
if test "x$RELEASE_VERSION" != "x"; then
1531
PACKAGE="$PACKAGE-$RELEASE_VERSION"
1532
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
1533
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
1535
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
1536
[`echo $PACKAGE_VERSION | cut -d . -f 1`],
1537
[Major version of this package])
1538
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1539
if test "x$PVM" = "x"; then
1542
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
1544
[Minor version of this package])
1545
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1546
if test "x$PVP" = "x"; then
1549
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
1551
[Patch version of this package])
1556
# Minimum version: 1.2.0
1558
# Defines the variable CHANGELOG_CMD as the command to generate
1559
# ChangeLog from git.
1561
# Arrange that distcleancheck ignores ChangeLog left over by distclean.
1563
AC_DEFUN([XORG_CHANGELOG], [
1564
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
1565
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
1566
echo 'git directory not found: installing possibly empty changelog.' >&2)"
1567
AC_SUBST([CHANGELOG_CMD])
1568
AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
1571
dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $
1573
dnl Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1575
dnl Permission to use, copy, modify, distribute, and sell this software and its
1576
dnl documentation for any purpose is hereby granted without fee, provided that
1577
dnl the above copyright notice appear in all copies and that both that
1578
dnl copyright notice and this permission notice appear in supporting
1581
dnl The above copyright notice and this permission notice shall be included
1582
dnl in all copies or substantial portions of the Software.
1584
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1585
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1586
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1587
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1588
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1589
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1590
dnl OTHER DEALINGS IN THE SOFTWARE.
1592
dnl Except as contained in this notice, the name of the copyright holders shall
1593
dnl not be used in advertising or otherwise to promote the sale, use or
1594
dnl other dealings in this Software without prior written authorization
1595
dnl from the copyright holders.
1598
# XTRANS_TCP_FLAGS()
1599
# ------------------
1600
# Find needed libraries for TCP sockets, and check for IPv6 support
1601
AC_DEFUN([XTRANS_TCP_FLAGS],[
1602
# SVR4 hides these in libraries other than libc
1603
AC_SEARCH_LIBS(socket, [socket])
1604
AC_SEARCH_LIBS(gethostbyname, [nsl])
1605
AC_HAVE_LIBRARY([ws2_32])
1607
# Needs to come after above checks for libsocket & libnsl for SVR4 systems
1609
AC_HELP_STRING([--enable-ipv6],[Enable IPv6 support]),
1610
[IPV6CONN=$enableval],
1611
[AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])])
1612
AC_MSG_CHECKING([if IPv6 support should be built])
1613
if test "$IPV6CONN" = "yes"; then
1614
AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
1616
AC_MSG_RESULT($IPV6CONN)
1618
# 4.3BSD-Reno added a new member to struct sockaddr_in
1619
AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
1620
AC_DEFINE([BSD44SOCKETS],1,
1621
[Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [
1622
#include <sys/types.h>
1623
#include <sys/socket.h>
1624
#include <netinet/in.h>
1627
# POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
1628
AC_CHECK_TYPES([socklen_t], [], [], [
1630
#include <sys/socket.h>])
1632
]) # XTRANS_TCP_FLAGS
1634
# XTRANS_CONNECTION_FLAGS()
1635
# -------------------------
1636
# Standard checks for which Xtrans transports to use by the Xorg packages
1637
# that use Xtrans functions
1638
AC_DEFUN([XTRANS_CONNECTION_FLAGS],[
1639
AC_REQUIRE([AC_CANONICAL_HOST])
1640
AC_REQUIRE([AC_TYPE_SIGNAL])
1642
mingw*) unixdef="no" ;;
1645
AC_ARG_ENABLE(unix-transport,
1646
AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]),
1647
[UNIXCONN=$enableval], [UNIXCONN=$unixdef])
1648
AC_MSG_CHECKING([if Xtrans should support UNIX socket connections])
1649
if test "$UNIXCONN" = "yes"; then
1650
AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections])
1652
AC_MSG_RESULT($UNIXCONN)
1653
AC_ARG_ENABLE(tcp-transport,
1654
AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]),
1655
[TCPCONN=$enableval], [TCPCONN=yes])
1656
AC_MSG_CHECKING([if Xtrans should support TCP socket connections])
1657
AC_MSG_RESULT($TCPCONN)
1658
if test "$TCPCONN" = "yes"; then
1659
AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
1663
solaris*|sco*|sysv4*) localdef="yes" ;;
1666
AC_ARG_ENABLE(local-transport,
1667
AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]),
1668
[LOCALCONN=$enableval], [LOCALCONN=$localdef])
1669
AC_MSG_CHECKING([if Xtrans should support os-specific local connections])
1670
AC_MSG_RESULT($LOCALCONN)
1671
if test "$LOCALCONN" = "yes"; then
1672
AC_DEFINE(LOCALCONN,1,[Support os-specific local connections])
1675
]) # XTRANS_CONNECTION_FLAGS
1678
# XTRANS_SECURE_RPC_FLAGS()
1679
# -------------------------
1680
# Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS
1681
# so that any necessary networking libraries are already found
1682
AC_DEFUN([XTRANS_SECURE_RPC_FLAGS],
1683
[AC_REQUIRE([XTRANS_TCP_FLAGS])
1684
AC_ARG_ENABLE(secure-rpc,
1685
AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]),
1686
[SECURE_RPC=$enableval], [SECURE_RPC="try"])
1688
if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
1689
FOUND_SECURE_RPC="no"
1690
AC_CHECK_FUNCS([authdes_seccreate authdes_create],
1691
[FOUND_SECURE_RPC="yes"])
1692
if test "x$FOUND_SECURE_RPC" = "xno" ; then
1693
if test "x$SECURE_RPC" = "xyes" ; then
1694
AC_MSG_ERROR([Secure RPC requested, but required functions not found])
1698
dnl FreeBSD keeps getsecretkey in librpcsvc
1699
AC_SEARCH_LIBS(getsecretkey, [rpcsvc])
1703
AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported])
1704
if test "x$SECURE_RPC" = "xyes" ; then
1705
AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients])
1707
AC_MSG_RESULT($SECURE_RPC)
1708
]) # XTRANS_SECURE_RPC_FLAGS
22
1711
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
# 2006, 2007, 2008 Free Software Foundation, Inc.
26
# Written by Gordon Matzigkeit, 1996
28
# This file is free software; the Free Software Foundation gives
29
# unlimited permission to copy and/or distribute it, with or without
30
# modifications, as long as this notice is preserved.
32
m4_define([_LT_COPYING], [dnl
33
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34
# 2006, 2007, 2008 Free Software Foundation, Inc.
35
# Written by Gordon Matzigkeit, 1996
37
# This file is part of GNU Libtool.
39
# GNU Libtool is free software; you can redistribute it and/or
40
# modify it under the terms of the GNU General Public License as
41
# published by the Free Software Foundation; either version 2 of
42
# the License, or (at your option) any later version.
44
# As a special exception to the GNU General Public License,
45
# if you distribute this file as part of a program or library that
46
# is built using GNU Libtool, you may include this file under the
47
# same distribution terms that you use for the rest of that program.
49
# GNU Libtool is distributed in the hope that it will be useful,
50
# but WITHOUT ANY WARRANTY; without even the implied warranty of
51
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52
# GNU General Public License for more details.
54
# You should have received a copy of the GNU General Public License
55
# along with GNU Libtool; see the file COPYING. If not, a copy
56
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
57
# obtained by writing to the Free Software Foundation, Inc.,
58
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
66
# Complain and exit if this libtool version is less that VERSION.
68
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
70
[m4_fatal([Libtool version $1 or higher is required],
77
# Complain if the absolute build directory name contains unusual characters
78
m4_defun([_LT_CHECK_BUILDDIR],
81
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
89
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
90
AC_BEFORE([$0], [LT_LANG])dnl
91
AC_BEFORE([$0], [LT_OUTPUT])dnl
92
AC_BEFORE([$0], [LTDL_INIT])dnl
93
m4_require([_LT_CHECK_BUILDDIR])dnl
95
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
96
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
97
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
98
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
99
dnl unless we require an AC_DEFUNed macro:
100
AC_REQUIRE([LTOPTIONS_VERSION])dnl
101
AC_REQUIRE([LTSUGAR_VERSION])dnl
102
AC_REQUIRE([LTVERSION_VERSION])dnl
103
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104
m4_require([_LT_PROG_LTMAIN])dnl
107
_LT_SET_OPTIONS([$0], [$1])
1713
# serial 52 AC_PROG_LIBTOOL
1716
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1717
# -----------------------------------------------------------
1718
# If this macro is not defined by Autoconf, define it here.
1719
m4_ifdef([AC_PROVIDE_IFELSE],
1721
[m4_define([AC_PROVIDE_IFELSE],
1722
[m4_ifdef([AC_PROVIDE_$1],
1728
AC_DEFUN([AC_PROG_LIBTOOL],
1729
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1730
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1731
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1732
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1734
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1736
dnl And a similar setup for Fortran 77 support
1737
AC_PROVIDE_IFELSE([AC_PROG_F77],
1739
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1742
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1743
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1744
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1745
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1747
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1749
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1751
[ifdef([AC_PROG_GCJ],
1752
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1753
ifdef([A][M_PROG_GCJ],
1754
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1755
ifdef([LT_AC_PROG_GCJ],
1756
[define([LT_AC_PROG_GCJ],
1757
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1758
])])# AC_PROG_LIBTOOL
1763
AC_DEFUN([_AC_PROG_LIBTOOL],
1764
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1765
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1766
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1767
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
109
1769
# This can be used to rebuild libtool when needed
110
LIBTOOL_DEPS="$ltmain"
1770
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
112
1772
# Always use our own libtool.
113
1773
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
114
1774
AC_SUBST(LIBTOOL)dnl
123
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
124
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
125
dnl aclocal-1.4 backwards compatibility:
126
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
127
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
130
# _LT_CC_BASENAME(CC)
131
# -------------------
132
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
133
m4_defun([_LT_CC_BASENAME],
134
[for cc_temp in $1""; do
136
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
137
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
142
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
146
# _LT_FILEUTILS_DEFAULTS
147
# ----------------------
148
# It is okay to use these file commands and assume they have been set
149
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
150
m4_defun([_LT_FILEUTILS_DEFAULTS],
154
])# _LT_FILEUTILS_DEFAULTS
159
m4_defun([_LT_SETUP],
160
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1776
# Prevent multiple expansion
1777
define([AC_PROG_LIBTOOL], [])
1778
])# _AC_PROG_LIBTOOL
1783
AC_DEFUN([AC_LIBTOOL_SETUP],
1785
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1786
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1787
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1788
AC_REQUIRE([AC_CANONICAL_HOST])dnl
161
1789
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
162
_LT_DECL([], [host_alias], [0], [The host system])dnl
163
_LT_DECL([], [host], [0])dnl
164
_LT_DECL([], [host_os], [0])dnl
166
_LT_DECL([], [build_alias], [0], [The build system])dnl
167
_LT_DECL([], [build], [0])dnl
168
_LT_DECL([], [build_os], [0])dnl
170
1790
AC_REQUIRE([AC_PROG_CC])dnl
171
AC_REQUIRE([LT_PATH_LD])dnl
172
AC_REQUIRE([LT_PATH_NM])dnl
1791
AC_REQUIRE([AC_PROG_LD])dnl
1792
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1793
AC_REQUIRE([AC_PROG_NM])dnl
174
1795
AC_REQUIRE([AC_PROG_LN_S])dnl
175
test -z "$LN_S" && LN_S="ln -s"
176
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
178
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
179
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
180
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
182
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
184
m4_require([_LT_CMD_RELOAD])dnl
185
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
186
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
189
_LT_CONFIG_LIBTOOL_INIT([
190
# See if we are running on zsh, and set the options which allow our
191
# commands through without removal of \ escapes INIT.
192
if test -n "\${ZSH_VERSION+set}" ; then
196
if test -n "${ZSH_VERSION+set}" ; then
202
m4_require([_LT_TAG_COMPILER])dnl
203
_LT_PROG_ECHO_BACKSLASH
1796
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1797
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1798
AC_REQUIRE([AC_OBJEXT])dnl
1799
AC_REQUIRE([AC_EXEEXT])dnl
1801
AC_LIBTOOL_SYS_MAX_CMD_LEN
1802
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1805
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1806
_LT_AC_PROG_ECHO_BACKSLASH
205
1808
case $host_os in
217
1820
# Sed substitution that helps us do robust quoting. It backslashifies
218
1821
# metacharacters that are still active within double-quoted strings.
219
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1822
Xsed='sed -e 1s/^X//'
1823
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
221
1825
# Same as above, but do not quote variable references.
222
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1826
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
224
1828
# Sed substitution to delay expansion of an escaped shell variable in a
225
1829
# double_quote_subst'ed string.
226
1830
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
228
# Sed substitution to delay expansion of an escaped single quote.
229
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
231
1832
# Sed substitution to avoid accidental globbing in evaled expressions
232
1833
no_glob_subst='s/\*/\\\*/g'
234
1838
# Global variables:
1839
default_ofile=libtool
236
1840
can_build_shared=yes
238
1842
# All known linkers require a `.a' archive for static linking (except MSVC,
239
1843
# which needs '.lib').
1845
ltmain="$ac_aux_dir/ltmain.sh"
1846
ofile="$default_ofile"
242
1847
with_gnu_ld="$lt_cv_prog_gnu_ld"
1849
AC_CHECK_TOOL(AR, ar, false)
1850
AC_CHECK_TOOL(RANLIB, ranlib, :)
1851
AC_CHECK_TOOL(STRIP, strip, :)
245
1854
old_CFLAGS="$CFLAGS"
247
1856
# Set sane defaults for various variables
1857
test -z "$AR" && AR=ar
1858
test -z "$AR_FLAGS" && AR_FLAGS=cru
1859
test -z "$AS" && AS=as
248
1860
test -z "$CC" && CC=cc
249
1861
test -z "$LTCC" && LTCC=$CC
250
1862
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1863
test -z "$DLLTOOL" && DLLTOOL=dlltool
251
1864
test -z "$LD" && LD=ld
1865
test -z "$LN_S" && LN_S="ln -s"
1866
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1867
test -z "$NM" && NM=nm
1868
test -z "$SED" && SED=sed
1869
test -z "$OBJDUMP" && OBJDUMP=objdump
1870
test -z "$RANLIB" && RANLIB=:
1871
test -z "$STRIP" && STRIP=:
252
1872
test -z "$ac_objext" && ac_objext=o
1874
# Determine commands to create old-style static archives.
1875
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1876
old_postinstall_cmds='chmod 644 $oldlib'
1877
old_postuninstall_cmds=
1879
if test -n "$RANLIB"; then
1882
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1885
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1888
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
254
1891
_LT_CC_BASENAME([$compiler])
256
1893
# Only perform the check for file, if the check method requires it
257
test -z "$MAGIC_CMD" && MAGIC_CMD=file
258
1894
case $deplibs_check_method in
260
1896
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1902
_LT_REQUIRED_DARWIN_CHECKS
1904
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1905
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1906
enable_win32_dll=yes, enable_win32_dll=no)
1908
AC_ARG_ENABLE([libtool-lock],
1909
[AC_HELP_STRING([--disable-libtool-lock],
1910
[avoid locking (might break parallel builds)])])
1911
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1914
[AC_HELP_STRING([--with-pic],
1915
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1916
[pic_mode="$withval"],
1918
test -z "$pic_mode" && pic_mode=default
266
1920
# Use C for the default configuration in the libtool script
267
LT_SUPPORTED_TAG([CC])
269
_LT_LANG_DEFAULT_CONFIG
276
# Note that this code is called both from `configure', and `config.status'
277
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
278
# `config.status' has no value for ac_aux_dir unless we are using Automake,
279
# so we pass a copy along to make sure it has a sensible value anyway.
280
m4_defun([_LT_PROG_LTMAIN],
281
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
282
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
283
ltmain="$ac_aux_dir/ltmain.sh"
288
# So that we can recreate a full libtool script including additional
289
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
290
# in macros and then make a single call at the end using the `libtool'
294
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
295
# ----------------------------------------
296
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
297
m4_define([_LT_CONFIG_LIBTOOL_INIT],
299
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
304
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
307
# _LT_CONFIG_LIBTOOL([COMMANDS])
308
# ------------------------------
309
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
310
m4_define([_LT_CONFIG_LIBTOOL],
312
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
317
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
320
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
321
# -----------------------------------------------------
322
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
323
[_LT_CONFIG_LIBTOOL([$1])
324
_LT_CONFIG_LIBTOOL_INIT([$2])
328
# _LT_FORMAT_COMMENT([COMMENT])
329
# -----------------------------
330
# Add leading comment marks to the start of each line, and a trailing
331
# full-stop to the whole comment if one is not present already.
332
m4_define([_LT_FORMAT_COMMENT],
334
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
335
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
342
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
343
# -------------------------------------------------------------------
344
# CONFIGNAME is the name given to the value in the libtool script.
345
# VARNAME is the (base) name used in the configure script.
346
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
347
# VARNAME. Any other value will be used directly.
348
m4_define([_LT_DECL],
349
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
350
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
351
[m4_ifval([$1], [$1], [$2])])
352
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
355
lt_dict_add_subkey([lt_decl_dict], [$2],
356
[tagged?], [m4_ifval([$5], [yes], [no])])])
360
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
361
# --------------------------------------------------------
362
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
365
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
366
# ------------------------------------------------
367
m4_define([lt_decl_tag_varnames],
368
[_lt_decl_filter([tagged?], [yes], $@)])
371
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
372
# ---------------------------------------------------------
373
m4_define([_lt_decl_filter],
375
[0], [m4_fatal([$0: too few arguments: $#])],
376
[1], [m4_fatal([$0: too few arguments: $#: $1])],
377
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
378
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
379
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
383
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
384
# --------------------------------------------------
385
m4_define([lt_decl_quote_varnames],
386
[_lt_decl_filter([value], [1], $@)])
389
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
390
# ---------------------------------------------------
391
m4_define([lt_decl_dquote_varnames],
392
[_lt_decl_filter([value], [2], $@)])
395
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
396
# ---------------------------------------------------
397
m4_define([lt_decl_varnames_tagged],
398
[m4_assert([$# <= 2])dnl
399
_$0(m4_quote(m4_default([$1], [[, ]])),
400
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
401
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
402
m4_define([_lt_decl_varnames_tagged],
403
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
406
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
407
# ------------------------------------------------
408
m4_define([lt_decl_all_varnames],
409
[_$0(m4_quote(m4_default([$1], [[, ]])),
411
m4_quote(lt_decl_varnames),
412
m4_quote(m4_shift($@))))[]dnl
414
m4_define([_lt_decl_all_varnames],
415
[lt_join($@, lt_decl_varnames_tagged([$1],
416
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
420
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
421
# ------------------------------------
422
# Quote a variable value, and forward it to `config.status' so that its
423
# declaration there will have the same value as in `configure'. VARNAME
424
# must have a single quote delimited value for this to work.
425
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
429
# _LT_CONFIG_STATUS_DECLARATIONS
430
# ------------------------------
431
# We delimit libtool config variables with single quotes, so when
432
# we write them to config.status, we have to be sure to quote all
433
# embedded single quotes properly. In configure, this macro expands
434
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
437
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
444
# Output comment and list of tags supported by the script
445
m4_defun([_LT_LIBTOOL_TAGS],
446
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
447
available_tags="_LT_TAGS"dnl
451
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
452
# -----------------------------------
453
# Extract the dictionary values for VARNAME (optionally with TAG) and
454
# expand to a commented shell variable setting:
456
# # Some comment about what VAR is for.
457
# visible_name=$lt_internal_name
458
m4_define([_LT_LIBTOOL_DECLARE],
459
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
460
[description])))[]dnl
461
m4_pushdef([_libtool_name],
462
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
463
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
464
[0], [_libtool_name=[$]$1],
465
[1], [_libtool_name=$lt_[]$1],
466
[2], [_libtool_name=$lt_[]$1],
467
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
468
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
472
# _LT_LIBTOOL_CONFIG_VARS
473
# -----------------------
474
# Produce commented declarations of non-tagged libtool config variables
475
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
476
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
477
# section) are produced by _LT_LIBTOOL_TAG_VARS.
478
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
479
[m4_foreach([_lt_var],
480
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
481
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
484
# _LT_LIBTOOL_TAG_VARS(TAG)
485
# -------------------------
486
m4_define([_LT_LIBTOOL_TAG_VARS],
487
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
488
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
491
# _LT_TAGVAR(VARNAME, [TAGNAME])
492
# ------------------------------
493
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
496
# _LT_CONFIG_COMMANDS
1922
AC_LIBTOOL_LANG_C_CONFIG
1924
])# AC_LIBTOOL_SETUP
1927
# _LT_AC_SYS_COMPILER
497
1928
# -------------------
498
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
499
# variables for single and double quote escaping we saved from calls
500
# to _LT_DECL, we can put quote escaped variables declarations
501
# into `config.status', and then the shell code to quote escape them in
502
# for loops in `config.status'. Finally, any additional code accumulated
503
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
504
m4_defun([_LT_CONFIG_COMMANDS],
505
[AC_PROVIDE_IFELSE([LT_OUTPUT],
506
dnl If the libtool generation code has been placed in $CONFIG_LT,
507
dnl instead of duplicating it all over again into config.status,
508
dnl then we will have config.status run $CONFIG_LT later, so it
509
dnl needs to know what name is stored there:
510
[AC_CONFIG_COMMANDS([libtool],
511
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
512
dnl If the libtool generation code is destined for config.status,
513
dnl expand the accumulated commands and init code now:
514
[AC_CONFIG_COMMANDS([libtool],
515
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
516
])#_LT_CONFIG_COMMANDS
520
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
523
# The HP-UX ksh and POSIX shell print the target directory to stdout
525
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
sed_quote_subst='$sed_quote_subst'
528
double_quote_subst='$double_quote_subst'
529
delay_variable_subst='$delay_variable_subst'
530
_LT_CONFIG_STATUS_DECLARATIONS
533
compiler='$compiler_DEFAULT'
535
# Quote evaled strings.
536
for var in lt_decl_all_varnames([[ \
537
]], lt_decl_quote_varnames); do
538
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
539
*[[\\\\\\\`\\"\\\$]]*)
540
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
543
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548
# Double-quote double-evaled strings.
549
for var in lt_decl_all_varnames([[ \
550
]], lt_decl_dquote_varnames); do
551
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
552
*[[\\\\\\\`\\"\\\$]]*)
553
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
556
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
561
# Fix-up fallback echo if it was mangled by the above quoting rules.
563
*'\\\[$]0 --fallback-echo"')dnl "
564
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
568
_LT_OUTPUT_LIBTOOL_INIT
574
# This macro allows early generation of the libtool script (before
575
# AC_OUTPUT is called), incase it is used in configure for compilation
577
AC_DEFUN([LT_OUTPUT],
578
[: ${CONFIG_LT=./config.lt}
579
AC_MSG_NOTICE([creating $CONFIG_LT])
580
cat >"$CONFIG_LT" <<_LTEOF
582
# Generated by $as_me.
583
# Run this file to recreate a libtool stub with the current configuration.
586
SHELL=\${CONFIG_SHELL-$SHELL}
589
cat >>"$CONFIG_LT" <<\_LTEOF
593
exec AS_MESSAGE_FD>&1
594
exec AS_MESSAGE_LOG_FD>>config.log
597
AS_BOX([Running $as_me.])
598
} >&AS_MESSAGE_LOG_FD
601
\`$as_me' creates a local libtool stub from the current configuration,
602
for use in further configure time tests before the real libtool is
605
Usage: $[0] [[OPTIONS]]
607
-h, --help print this help, then exit
608
-V, --version print version number, then exit
609
-q, --quiet do not print progress messages
610
-d, --debug don't remove temporary files
612
Report bugs to <bug-libtool@gnu.org>."
615
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
616
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
configured by $[0], generated by m4_PACKAGE_STRING.
619
Copyright (C) 2008 Free Software Foundation, Inc.
620
This config.lt script is free software; the Free Software Foundation
621
gives unlimited permision to copy, distribute and modify it."
626
--version | --v* | -V )
627
echo "$lt_cl_version"; exit 0 ;;
629
echo "$lt_cl_help"; exit 0 ;;
630
--debug | --d* | -d )
632
--quiet | --q* | --silent | --s* | -q )
635
-*) AC_MSG_ERROR([unrecognized option: $[1]
636
Try \`$[0] --help' for more information.]) ;;
638
*) AC_MSG_ERROR([unrecognized argument: $[1]
639
Try \`$[0] --help' for more information.]) ;;
644
if $lt_cl_silent; then
645
exec AS_MESSAGE_FD>/dev/null
649
cat >>"$CONFIG_LT" <<_LTEOF
650
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
653
cat >>"$CONFIG_LT" <<\_LTEOF
654
AC_MSG_NOTICE([creating $ofile])
655
_LT_OUTPUT_LIBTOOL_COMMANDS
658
chmod +x "$CONFIG_LT"
660
# configure is writing to config.log, but config.lt does its own redirection,
661
# appending to config.log, which fails on DOS, as config.log is still kept
662
# open by configure. Here we exec the FD to /dev/null, effectively closing
663
# config.log, so it can be properly (re)opened and appended to by config.lt.
664
if test "$no_create" != yes; then
666
test "$silent" = yes &&
667
lt_config_lt_args="$lt_config_lt_args --quiet"
668
exec AS_MESSAGE_LOG_FD>/dev/null
669
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
670
exec AS_MESSAGE_LOG_FD>>config.log
671
$lt_cl_success || AS_EXIT(1)
678
# If TAG is the built-in tag, create an initial libtool script with a
679
# default configuration from the untagged config vars. Otherwise add code
680
# to config.status for appending the configuration named by TAG from the
681
# matching tagged config vars.
682
m4_defun([_LT_CONFIG],
683
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
684
_LT_CONFIG_SAVE_COMMANDS([
685
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
686
m4_if(_LT_TAG, [C], [
687
# See if we are running on zsh, and set the options which allow our
688
# commands through without removal of \ escapes.
689
if test -n "${ZSH_VERSION+set}" ; then
694
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
697
cat <<_LT_EOF >> "$cfgfile"
700
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
701
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
702
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
703
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
708
# ### BEGIN LIBTOOL CONFIG
709
_LT_LIBTOOL_CONFIG_VARS
711
# ### END LIBTOOL CONFIG
717
cat <<\_LT_EOF >> "$cfgfile"
718
# AIX sometimes has problems with the GCC collect2 program. For some
719
# reason, if we set the COLLECT_NAMES environment variable, the problems
720
# vanish in a puff of smoke.
721
if test "X${COLLECT_NAMES+set}" != Xset; then
731
# We use sed instead of cat because bash on DJGPP gets confused if
732
# if finds mixed CR/LF and LF-only lines. Since sed operates in
733
# text mode, it properly converts lines to CR/LF. This bash problem
734
# is reportedly fixed, but why not run on old versions too?
735
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
736
|| (rm -f "$cfgfile"; exit 1)
738
_LT_PROG_XSI_SHELLFNS
740
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
741
|| (rm -f "$cfgfile"; exit 1)
743
mv -f "$cfgfile" "$ofile" ||
744
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
747
[cat <<_LT_EOF >> "$ofile"
749
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
750
dnl in a comment (ie after a #).
751
# ### BEGIN LIBTOOL TAG CONFIG: $1
752
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
753
# ### END LIBTOOL TAG CONFIG: $1
760
TIMESTAMP='$TIMESTAMP'
763
])dnl /_LT_CONFIG_SAVE_COMMANDS
767
# LT_SUPPORTED_TAG(TAG)
768
# ---------------------
769
# Trace this macro to discover what tags are supported by the libtool
770
# --tag option, using:
771
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
772
AC_DEFUN([LT_SUPPORTED_TAG], [])
775
# C support is built-in for now
776
m4_define([_LT_LANG_C_enabled], [])
777
m4_define([_LT_TAGS], [])
782
# Enable libtool support for the given language if not already enabled.
784
[AC_BEFORE([$0], [LT_OUTPUT])dnl
787
[C++], [_LT_LANG(CXX)],
788
[Java], [_LT_LANG(GCJ)],
789
[Fortran 77], [_LT_LANG(F77)],
790
[Fortran], [_LT_LANG(FC)],
791
[Windows Resource], [_LT_LANG(RC)],
792
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
794
[m4_fatal([$0: unsupported language: "$1"])])])dnl
801
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
802
[LT_SUPPORTED_TAG([$1])dnl
803
m4_append([_LT_TAGS], [$1 ])dnl
804
m4_define([_LT_LANG_]$1[_enabled], [])dnl
805
_LT_LANG_$1_CONFIG($1)])dnl
809
# _LT_LANG_DEFAULT_CONFIG
810
# -----------------------
811
m4_defun([_LT_LANG_DEFAULT_CONFIG],
812
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
814
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
816
AC_PROVIDE_IFELSE([AC_PROG_F77],
818
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
820
AC_PROVIDE_IFELSE([AC_PROG_FC],
822
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
824
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
825
dnl pulling things in needlessly.
826
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
828
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
830
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
832
[m4_ifdef([AC_PROG_GCJ],
833
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
834
m4_ifdef([A][M_PROG_GCJ],
835
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
836
m4_ifdef([LT_PROG_GCJ],
837
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
839
AC_PROVIDE_IFELSE([LT_PROG_RC],
841
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
842
])# _LT_LANG_DEFAULT_CONFIG
845
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
846
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
849
dnl aclocal-1.4 backwards compatibility:
850
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
858
m4_defun([_LT_TAG_COMPILER],
1929
AC_DEFUN([_LT_AC_SYS_COMPILER],
859
1930
[AC_REQUIRE([AC_PROG_CC])dnl
861
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
862
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
863
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
864
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
866
1932
# If no C compiler was specified, use CC.
867
1933
LTCC=${LTCC-"$CC"}
3282
4339
AC_CHECK_LIB(m, cos, LIBM="-lm")
3289
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3290
dnl aclocal-1.4 backwards compatibility:
3291
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3294
# _LT_COMPILER_NO_RTTI([TAGNAME])
3295
# -------------------------------
3296
m4_defun([_LT_COMPILER_NO_RTTI],
3297
[m4_require([_LT_TAG_COMPILER])dnl
3299
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4345
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4346
# -----------------------------------
4347
# sets LIBLTDL to the link flags for the libltdl convenience library and
4348
# LTDLINCL to the include flags for the libltdl header and adds
4349
# --enable-ltdl-convenience to the configure arguments. Note that
4350
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4351
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4352
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4353
# (note the single quotes!). If your package is not flat and you're not
4354
# using automake, define top_builddir and top_srcdir appropriately in
4356
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4357
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4358
case $enable_ltdl_convenience in
4359
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4360
"") enable_ltdl_convenience=yes
4361
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4363
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4364
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4365
# For backwards non-gettext consistent compatibility...
4367
])# AC_LIBLTDL_CONVENIENCE
4370
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4371
# -----------------------------------
4372
# sets LIBLTDL to the link flags for the libltdl installable library and
4373
# LTDLINCL to the include flags for the libltdl header and adds
4374
# --enable-ltdl-install to the configure arguments. Note that
4375
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4376
# and an installed libltdl is not found, it is assumed to be `libltdl'.
4377
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4378
# '${top_srcdir}/' (note the single quotes!). If your package is not
4379
# flat and you're not using automake, define top_builddir and top_srcdir
4380
# appropriately in the Makefiles.
4381
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4382
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4383
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4384
AC_CHECK_LIB(ltdl, lt_dlinit,
4385
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4386
[if test x"$enable_ltdl_install" = xno; then
4387
AC_MSG_WARN([libltdl not installed, but installation disabled])
4389
enable_ltdl_install=yes
4392
if test x"$enable_ltdl_install" = x"yes"; then
4393
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4394
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4395
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4397
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4401
# For backwards non-gettext consistent compatibility...
4403
])# AC_LIBLTDL_INSTALLABLE
4408
# enable support for C++ libraries
4409
AC_DEFUN([AC_LIBTOOL_CXX],
4410
[AC_REQUIRE([_LT_AC_LANG_CXX])
4416
AC_DEFUN([_LT_AC_LANG_CXX],
4417
[AC_REQUIRE([AC_PROG_CXX])
4418
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4419
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4422
# _LT_AC_PROG_CXXCPP
4423
# ------------------
4424
AC_DEFUN([_LT_AC_PROG_CXXCPP],
4426
AC_REQUIRE([AC_PROG_CXX])
4427
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4428
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4429
(test "X$CXX" != "Xg++"))) ; then
4432
])# _LT_AC_PROG_CXXCPP
4436
# enable support for Fortran 77 libraries
4437
AC_DEFUN([AC_LIBTOOL_F77],
4438
[AC_REQUIRE([_LT_AC_LANG_F77])
4444
AC_DEFUN([_LT_AC_LANG_F77],
4445
[AC_REQUIRE([AC_PROG_F77])
4446
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4452
# enable support for GCJ libraries
4453
AC_DEFUN([AC_LIBTOOL_GCJ],
4454
[AC_REQUIRE([_LT_AC_LANG_GCJ])
4460
AC_DEFUN([_LT_AC_LANG_GCJ],
4461
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4462
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4463
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4464
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4465
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4466
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4467
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4473
# enable support for Windows resource files
4474
AC_DEFUN([AC_LIBTOOL_RC],
4475
[AC_REQUIRE([LT_AC_PROG_RC])
4476
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4480
# AC_LIBTOOL_LANG_C_CONFIG
4481
# ------------------------
4482
# Ensure that the configuration vars for the C compiler are
4483
# suitably defined. Those variables are subsequently used by
4484
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4485
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4486
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4490
# Source file extension for C test sources.
4493
# Object file extension for compiled C test sources.
4495
_LT_AC_TAGVAR(objext, $1)=$objext
4497
# Code to be used in simple compile tests
4498
lt_simple_compile_test_code="int some_variable = 0;"
4500
# Code to be used in simple link tests
4501
lt_simple_link_test_code='int main(){return(0);}'
4505
# save warnings/boilerplate of simple test code
4506
_LT_COMPILER_BOILERPLATE
4507
_LT_LINKER_BOILERPLATE
4509
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4510
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4511
AC_LIBTOOL_PROG_CC_C_O($1)
4512
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4513
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4514
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4515
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4516
AC_LIBTOOL_SYS_LIB_STRIP
4517
AC_LIBTOOL_DLOPEN_SELF
4519
# Report which library types will actually be built
4520
AC_MSG_CHECKING([if libtool supports shared libraries])
4521
AC_MSG_RESULT([$can_build_shared])
4523
AC_MSG_CHECKING([whether to build shared libraries])
4524
test "$can_build_shared" = "no" && enable_shared=no
4526
# On AIX, shared libraries and static libraries use the same namespace, and
4527
# are all built from PIC.
4530
test "$enable_shared" = yes && enable_static=no
4531
if test -n "$RANLIB"; then
4532
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4533
postinstall_cmds='$RANLIB $lib'
4538
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4539
test "$enable_shared" = yes && enable_static=no
4543
AC_MSG_RESULT([$enable_shared])
4545
AC_MSG_CHECKING([whether to build static libraries])
4546
# Make sure either enable_shared or enable_static is yes.
4547
test "$enable_shared" = yes || enable_static=yes
4548
AC_MSG_RESULT([$enable_static])
4550
AC_LIBTOOL_CONFIG($1)
4554
])# AC_LIBTOOL_LANG_C_CONFIG
4557
# AC_LIBTOOL_LANG_CXX_CONFIG
4558
# --------------------------
4559
# Ensure that the configuration vars for the C compiler are
4560
# suitably defined. Those variables are subsequently used by
4561
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4562
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4563
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4565
AC_REQUIRE([AC_PROG_CXX])
4566
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4568
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4569
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4570
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4571
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4572
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4573
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4574
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4575
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4576
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4577
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4578
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4579
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4580
_LT_AC_TAGVAR(module_cmds, $1)=
4581
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4582
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4583
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4584
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4585
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4586
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4588
# Dependencies to place before and after the object being linked:
4589
_LT_AC_TAGVAR(predep_objects, $1)=
4590
_LT_AC_TAGVAR(postdep_objects, $1)=
4591
_LT_AC_TAGVAR(predeps, $1)=
4592
_LT_AC_TAGVAR(postdeps, $1)=
4593
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4594
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4596
# Source file extension for C++ test sources.
4599
# Object file extension for compiled C++ test sources.
4601
_LT_AC_TAGVAR(objext, $1)=$objext
4603
# Code to be used in simple compile tests
4604
lt_simple_compile_test_code="int some_variable = 0;"
4606
# Code to be used in simple link tests
4607
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
4609
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4612
# save warnings/boilerplate of simple test code
4613
_LT_COMPILER_BOILERPLATE
4614
_LT_LINKER_BOILERPLATE
4616
# Allow CC to be a program name with arguments.
4621
lt_save_with_gnu_ld=$with_gnu_ld
4622
lt_save_path_LD=$lt_cv_path_LD
4623
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4624
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4626
$as_unset lt_cv_prog_gnu_ld
4628
if test -n "${lt_cv_path_LDCXX+set}"; then
4629
lt_cv_path_LD=$lt_cv_path_LDCXX
4631
$as_unset lt_cv_path_LD
4633
test -z "${LDCXX+set}" || LD=$LDCXX
4636
_LT_AC_TAGVAR(compiler, $1)=$CC
4637
_LT_CC_BASENAME([$compiler])
4639
# We don't want -fno-exception wen compiling C++ code, so set the
4640
# no_builtin_flag separately
4641
if test "$GXX" = yes; then
4642
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4644
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4647
if test "$GXX" = yes; then
4648
# Set up default GNU C++ configuration
4652
# Check if GNU C++ uses GNU ld as the underlying linker, since the
4653
# archiving commands below assume that GNU ld is being used.
4654
if test "$with_gnu_ld" = yes; then
4655
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4656
_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'
4658
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4659
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4661
# If archive_cmds runs LD, not CC, wlarc should be empty
4662
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4663
# investigate it a little bit more. (MM)
4666
# ancient GNU ld didn't support --whole-archive et. al.
4667
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4668
grep 'no-whole-archive' > /dev/null; then
4669
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4671
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4677
# A generic and very simple default shared library creation
4678
# command for GNU C++ for the case where it uses the native
4679
# linker, instead of GNU ld. If possible, this setting should
4680
# overridden to take advantage of the native linker features on
4681
# the platform it is being used on.
4682
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4685
# Commands to make compiler produce verbose output that lists
4686
# what "hidden" libraries, object files and flags are used when
4687
# linking a shared library.
4688
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4696
# PORTME: fill in a description of your system's C++ link characteristics
4697
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4698
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4701
# FIXME: insert proper C++ library support
4702
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4705
if test "$host_cpu" = ia64; then
4706
# On IA64, the linker does run time linking by default, so we don't
4707
# have to do anything special.
4708
aix_use_runtimelinking=no
4709
exp_sym_flag='-Bexport'
4712
aix_use_runtimelinking=no
4714
# Test if we are trying to use run time linking or normal
4715
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4716
# need to do runtime linking.
4717
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4718
for ld_flag in $LDFLAGS; do
4721
aix_use_runtimelinking=yes
4729
exp_sym_flag='-bexport'
4730
no_entry_flag='-bnoentry'
4733
# When large executables or shared objects are built, AIX ld can
4734
# have problems creating the table of contents. If linking a library
4735
# or program results in "error TOC overflow" add -mminimal-toc to
4736
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4737
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4739
_LT_AC_TAGVAR(archive_cmds, $1)=''
4740
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4741
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4742
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4744
if test "$GXX" = yes; then
4745
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4746
# We only want to do this on AIX 4.2 and lower, the check
4747
# below for broken collect2 doesn't work under 4.3+
4748
collect2name=`${CC} -print-prog-name=collect2`
4749
if test -f "$collect2name" && \
4750
strings "$collect2name" | grep resolve_lib_name >/dev/null
4752
# We have reworked collect2
4755
# We have old collect2
4756
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4757
# It fails to find uninstalled libraries when the uninstalled
4758
# path is not listed in the libpath. Setting hardcode_minus_L
4759
# to unsupported forces relinking
4760
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4761
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4762
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4766
shared_flag='-shared'
4767
if test "$aix_use_runtimelinking" = yes; then
4768
shared_flag="$shared_flag "'${wl}-G'
4772
if test "$host_cpu" = ia64; then
4773
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4774
# chokes on -Wl,-G. The following line is correct:
4777
if test "$aix_use_runtimelinking" = yes; then
4778
shared_flag='${wl}-G'
4780
shared_flag='${wl}-bM:SRE'
4785
# It seems that -bexpall does not export symbols beginning with
4786
# underscore (_), so it is better to generate a list of symbols to export.
4787
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4788
if test "$aix_use_runtimelinking" = yes; then
4789
# Warning - without using the other runtime loading flags (-brtl),
4790
# -berok will link without error, but may produce a broken library.
4791
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4792
# Determine the default libpath from the value encoded in an empty executable.
4793
_LT_AC_SYS_LIBPATH_AIX
4794
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4796
_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"
4798
if test "$host_cpu" = ia64; then
4799
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4800
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4801
_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"
4803
# Determine the default libpath from the value encoded in an empty executable.
4804
_LT_AC_SYS_LIBPATH_AIX
4805
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4806
# Warning - without using the other run time loading flags,
4807
# -berok will link without error, but may produce a broken library.
4808
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4809
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4810
# Exported symbols can be pulled into shared objects from archives
4811
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4812
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4813
# This is similar to how AIX traditionally builds its shared libraries.
4814
_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'
4820
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4821
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4822
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4823
# support --undefined. This deserves some investigation. FIXME
4824
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4826
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4831
case $cc_basename in
4833
# FIXME: insert proper C++ library support
4834
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4839
cygwin* | mingw* | pw32*)
4840
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4841
# as there is no search path for DLLs.
4842
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4843
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4844
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4845
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4847
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4848
_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'
4849
# If the export-symbols file already is a .def file (1st line
4850
# is EXPORTS), use it as is; otherwise, prepend...
4851
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4852
cp $export_symbols $output_objdir/$soname.def;
4854
echo EXPORTS > $output_objdir/$soname.def;
4855
cat $export_symbols >> $output_objdir/$soname.def;
4857
$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'
4859
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4862
darwin* | rhapsody*)
4863
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4864
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4865
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4866
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4867
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4868
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4869
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4870
if test "$GXX" = yes ; then
4871
output_verbose_link_cmd='echo'
4872
_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}"
4873
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4874
_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}"
4875
_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}"
4876
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4877
_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}"
4878
_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}"
4881
case $cc_basename in
4883
output_verbose_link_cmd='echo'
4884
_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'
4885
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4886
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4887
_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}'
4888
_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}'
4891
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4898
case $cc_basename in
4900
# FIXME: insert proper C++ library support
4901
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4904
# Green Hills C++ Compiler
4905
# FIXME: insert proper C++ library support
4906
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4909
# FIXME: insert proper C++ library support
4910
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4915
# C++ shared libraries reported to be fairly broken before switch to ELF
4916
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4919
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4921
freebsd* | dragonfly*)
4922
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4924
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4929
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4930
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4931
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4932
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4933
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4934
# but as the default
4935
# location of the library.
4937
case $cc_basename in
4939
# FIXME: insert proper C++ library support
4940
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4943
_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'
4944
# Commands to make compiler produce verbose output that lists
4945
# what "hidden" libraries, object files and flags are used when
4946
# linking a shared library.
4948
# There doesn't appear to be a way to prevent this compiler from
4949
# explicitly linking system object files so we need to strip them
4950
# from the output so that they don't get included in the library
4952
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'
4955
if test "$GXX" = yes; then
4956
_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'
4958
# FIXME: insert proper C++ library support
4959
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4965
if test $with_gnu_ld = no; then
4966
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4967
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4972
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4978
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4979
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4982
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4983
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4984
# but as the default
4985
# location of the library.
4989
case $cc_basename in
4991
# FIXME: insert proper C++ library support
4992
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4997
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5000
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5003
_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'
5006
# Commands to make compiler produce verbose output that lists
5007
# what "hidden" libraries, object files and flags are used when
5008
# linking a shared library.
5010
# There doesn't appear to be a way to prevent this compiler from
5011
# explicitly linking system object files so we need to strip them
5012
# from the output so that they don't get included in the library
5014
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'
5017
if test "$GXX" = yes; then
5018
if test $with_gnu_ld = no; then
5021
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5024
_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'
5027
_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'
5032
# FIXME: insert proper C++ library support
5033
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5039
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5040
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5041
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5042
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5043
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5044
# Instead, shared libraries are loaded at an image base (0x10000000 by
5045
# default) and relocated if they conflict, which is a slow very memory
5046
# consuming and fragmenting process. To avoid this, we pick a random,
5047
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5048
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5049
_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'
5050
_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'
5053
case $cc_basename in
5056
_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'
5058
# Archives containing C++ object files must be created using
5059
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5060
# necessary to make sure instantiated templates are included
5062
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5065
if test "$GXX" = yes; then
5066
if test "$with_gnu_ld" = no; then
5067
_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'
5069
_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'
5072
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5075
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5076
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5078
linux* | k*bsd*-gnu)
5079
case $cc_basename in
5081
# Kuck and Associates, Inc. (KAI) C++ Compiler
5083
# KCC will only create a shared library if the output file
5084
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5085
# to its proper name (with version) after linking.
5086
_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'
5087
_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'
5088
# Commands to make compiler produce verbose output that lists
5089
# what "hidden" libraries, object files and flags are used when
5090
# linking a shared library.
5092
# There doesn't appear to be a way to prevent this compiler from
5093
# explicitly linking system object files so we need to strip them
5094
# from the output so that they don't get included in the library
5096
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'
5098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5099
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5101
# Archives containing C++ object files must be created using
5102
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5103
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5108
# version 8.0 and above of icpc choke on multiply defined symbols
5109
# if we add $predep_objects and $postdep_objects, however 7.1 and
5110
# earlier do not add the objects themselves.
5111
case `$CC -V 2>&1` in
5113
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5114
_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'
5116
*) # Version 8.0 or newer
5119
ia64*) tmp_idyn=' -i_dynamic';;
5121
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5122
_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'
5125
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5126
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5127
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5128
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5131
# Portland Group C++ compiler
5132
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5133
_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'
5135
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5136
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5137
_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'
5141
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5142
_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'
5144
runpath_var=LD_RUN_PATH
5145
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5146
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5148
# Commands to make compiler produce verbose output that lists
5149
# what "hidden" libraries, object files and flags are used when
5150
# linking a shared library.
5152
# There doesn't appear to be a way to prevent this compiler from
5153
# explicitly linking system object files so we need to strip them
5154
# from the output so that they don't get included in the library
5156
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'
5159
case `$CC -V 2>&1 | sed 5q` in
5162
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5163
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5164
_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'
5165
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5166
_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'
5168
# Not sure whether something based on
5169
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5171
output_verbose_link_cmd='echo'
5173
# Archives containing C++ object files must be created using
5174
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5175
# necessary to make sure instantiated templates are included
5177
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5184
# FIXME: insert proper C++ library support
5185
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5188
# FIXME: insert proper C++ library support
5189
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5192
case $cc_basename in
5194
# FIXME: insert proper C++ library support
5195
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5198
# FIXME: insert proper C++ library support
5199
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5204
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5205
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5207
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5208
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5209
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5211
# Workaround some broken pre-1.5 toolchains
5212
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5215
# C++ shared libraries are fairly broken
5216
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5219
if test -f /usr/libexec/ld.so; then
5220
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5221
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5222
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5223
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5224
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5225
_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'
5226
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5227
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5229
output_verbose_link_cmd='echo'
5231
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5235
case $cc_basename in
5237
# Kuck and Associates, Inc. (KAI) C++ Compiler
5239
# KCC will only create a shared library if the output file
5240
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5241
# to its proper name (with version) after linking.
5242
_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'
5244
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5245
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5247
# Archives containing C++ object files must be created using
5248
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5249
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5253
# Rational C++ 2.4.1
5254
# FIXME: insert proper C++ library support
5255
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5258
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5259
_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'
5261
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5262
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5264
# Commands to make compiler produce verbose output that lists
5265
# what "hidden" libraries, object files and flags are used when
5266
# linking a shared library.
5268
# There doesn't appear to be a way to prevent this compiler from
5269
# explicitly linking system object files so we need to strip them
5270
# from the output so that they don't get included in the library
5272
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'
5275
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5276
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5277
_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'
5279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5280
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5282
# Commands to make compiler produce verbose output that lists
5283
# what "hidden" libraries, object files and flags are used when
5284
# linking a shared library.
5285
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5288
# FIXME: insert proper C++ library support
5289
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5295
case $cc_basename in
5297
# Kuck and Associates, Inc. (KAI) C++ Compiler
5299
# KCC will only create a shared library if the output file
5300
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5301
# to its proper name (with version) after linking.
5302
_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'
5304
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5305
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5307
# Archives containing C++ object files must be created using
5308
# the KAI C++ compiler.
5309
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5312
# Rational C++ 2.4.1
5313
# FIXME: insert proper C++ library support
5314
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5317
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5318
_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'
5319
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5320
echo "-hidden">> $lib.exp~
5321
$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~
5324
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5325
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5327
# Commands to make compiler produce verbose output that lists
5328
# what "hidden" libraries, object files and flags are used when
5329
# linking a shared library.
5331
# There doesn't appear to be a way to prevent this compiler from
5332
# explicitly linking system object files so we need to strip them
5333
# from the output so that they don't get included in the library
5335
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'
5338
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5339
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5340
_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'
5342
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5343
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5345
# Commands to make compiler produce verbose output that lists
5346
# what "hidden" libraries, object files and flags are used when
5347
# linking a shared library.
5348
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5351
# FIXME: insert proper C++ library support
5352
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5358
# FIXME: insert proper C++ library support
5359
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5362
case $cc_basename in
5365
# FIXME: insert proper C++ library support
5366
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5370
# FIXME: insert proper C++ library support
5371
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5374
# FIXME: insert proper C++ library support
5375
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5380
case $cc_basename in
5382
# Sun C++ 4.2, 5.x and Centerline C++
5383
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
5384
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5385
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5386
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5387
$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'
5389
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5390
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5392
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5394
# The compiler driver will combine and reorder linker options,
5395
# but understands `-z linker_flag'.
5396
# Supported since Solaris 2.6 (maybe 2.5.1?)
5397
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5400
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5402
output_verbose_link_cmd='echo'
5404
# Archives containing C++ object files must be created using
5405
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5406
# necessary to make sure instantiated templates are included
5408
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5411
# Green Hills C++ Compiler
5412
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5414
# The C++ compiler must be used to create the archive.
5415
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5418
# GNU C++ compiler with Solaris linker
5419
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5420
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5421
if $CC --version | grep -v '^2\.7' > /dev/null; then
5422
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5423
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5424
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5426
# Commands to make compiler produce verbose output that lists
5427
# what "hidden" libraries, object files and flags are used when
5428
# linking a shared library.
5429
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5431
# g++ 2.7 appears to require `-G' NOT `-shared' on this
5433
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5434
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5435
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5437
# Commands to make compiler produce verbose output that lists
5438
# what "hidden" libraries, object files and flags are used when
5439
# linking a shared library.
5440
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5443
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5445
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5447
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5454
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5455
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5456
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5457
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5458
runpath_var='LD_RUN_PATH'
5460
case $cc_basename in
5462
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5463
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5466
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5467
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5471
sysv5* | sco3.2v5* | sco5v6*)
5472
# Note: We can NOT use -z defs as we might desire, because we do not
5473
# link with -lc, and that would cause any symbols used from libc to
5474
# always be unresolved, which means just about no library would
5475
# ever link correctly. If we're not using GNU ld we use -z text
5476
# though, which does catch some bad symbols but isn't as heavy-handed
5478
# For security reasons, it is highly recommended that you always
5479
# use absolute paths for naming shared libraries, and exclude the
5480
# DT_RUNPATH tag from executables and libraries. But doing so
5481
# requires that you compile everything twice, which is a pain.
5482
# So that behaviour is only enabled if SCOABSPATH is set to a
5483
# non-empty value in the environment. Most likely only useful for
5484
# creating official distributions of packages.
5485
# This is a hack until libtool officially supports absolute path
5486
# names for shared libraries.
5487
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5488
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5489
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5490
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5491
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5492
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5493
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5494
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5495
runpath_var='LD_RUN_PATH'
5497
case $cc_basename in
5499
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5500
_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'
5503
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5504
_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'
5509
case $cc_basename in
5511
# NonStop-UX NCC 3.20
5512
# FIXME: insert proper C++ library support
5513
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5516
# FIXME: insert proper C++ library support
5517
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5522
# FIXME: insert proper C++ library support
5523
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5526
# FIXME: insert proper C++ library support
5527
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5530
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5531
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5533
_LT_AC_TAGVAR(GCC, $1)="$GXX"
5534
_LT_AC_TAGVAR(LD, $1)="$LD"
5536
AC_LIBTOOL_POSTDEP_PREDEP($1)
5537
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5538
AC_LIBTOOL_PROG_CC_C_O($1)
5539
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5540
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5541
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5542
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5544
AC_LIBTOOL_CONFIG($1)
5551
with_gnu_ldcxx=$with_gnu_ld
5552
with_gnu_ld=$lt_save_with_gnu_ld
5553
lt_cv_path_LDCXX=$lt_cv_path_LD
5554
lt_cv_path_LD=$lt_save_path_LD
5555
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5556
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5557
])# AC_LIBTOOL_LANG_CXX_CONFIG
5559
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5560
# ------------------------------------
5561
# Figure out "hidden" library dependencies from verbose
5562
# compiler output when linking a shared library.
5563
# Parse the compiler output and extract the necessary
5564
# objects, libraries and library flags.
5565
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
5566
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5567
dnl we can't use the lt_simple_compile_test_code here,
5568
dnl because it contains code intended for an executable,
5569
dnl not a library. It's possible we should let each
5570
dnl tag define a new lt_????_link_test_code variable,
5571
dnl but it's only used here...
5572
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5574
void foo (void) { a = 0; }
5576
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5580
Foo (void) { a = 0; }
5585
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5593
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5596
public void bar (void) {
5602
dnl Parse the compiler output and extract the necessary
5603
dnl objects, libraries and library flags.
5604
if AC_TRY_EVAL(ac_compile); then
5605
# Parse the compiler output and extract the necessary
5606
# objects, libraries and library flags.
5608
# Sentinel used to keep track of whether or not we are before
5609
# the conftest object file.
5610
pre_test_object_deps_done=no
5612
# The `*' in the case matches for architectures that use `case' in
5613
# $output_verbose_cmd can trigger glob expansion during the loop
5614
# eval without this substitution.
5615
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5617
for p in `eval $output_verbose_link_cmd`; do
5621
# Some compilers place space between "-{L,R}" and the path.
5624
|| test $p = "-R"; then
5631
if test "$pre_test_object_deps_done" = no; then
5634
# Internal compiler library paths should come after those
5635
# provided the user. The postdeps already come after the
5636
# user supplied libs so there is no need to process them.
5637
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5638
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5640
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5643
# The "-l" case would never come before the object being
5644
# linked, so don't bother handling this case.
5647
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5648
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5650
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5656
# This assumes that the test object file only shows up
5657
# once in the compiler output.
5658
if test "$p" = "conftest.$objext"; then
5659
pre_test_object_deps_done=yes
5663
if test "$pre_test_object_deps_done" = no; then
5664
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5665
_LT_AC_TAGVAR(predep_objects, $1)="$p"
5667
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5670
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5671
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
5673
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5678
*) ;; # Ignore the rest.
5686
echo "libtool.m4: error: problem compiling $1 test program"
5689
$rm -f confest.$objext
5691
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5692
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5693
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
5696
# PORTME: override above test on systems where it is broken
5700
# Interix 3.5 installs completely hosed .la files for C++, so rather than
5701
# hack all around it, let's just trust "g++" to DTRT.
5702
_LT_AC_TAGVAR(predep_objects,$1)=
5703
_LT_AC_TAGVAR(postdep_objects,$1)=
5704
_LT_AC_TAGVAR(postdeps,$1)=
5708
case `$CC -V 2>&1 | sed 5q` in
5712
# The more standards-conforming stlport4 library is
5713
# incompatible with the Cstd library. Avoid specifying
5714
# it if it's in CXXFLAGS. Ignore libCrun as
5715
# -library=stlport4 depends on it.
5716
case " $CXX $CXXFLAGS " in
5717
*" -library=stlport4 "*)
5718
solaris_use_stlport4=yes
5721
if test "$solaris_use_stlport4" != yes; then
5722
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5729
case $cc_basename in
5731
# The more standards-conforming stlport4 library is
5732
# incompatible with the Cstd library. Avoid specifying
5733
# it if it's in CXXFLAGS. Ignore libCrun as
5734
# -library=stlport4 depends on it.
5735
case " $CXX $CXXFLAGS " in
5736
*" -library=stlport4 "*)
5737
solaris_use_stlport4=yes
5741
# Adding this requires a known-good setup of shared libraries for
5742
# Sun compiler versions before 5.6, else PIC objects from an old
5743
# archive will be linked into the output, leading to subtle bugs.
5744
if test "$solaris_use_stlport4" != yes; then
5745
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5752
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5753
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5755
])# AC_LIBTOOL_POSTDEP_PREDEP
5757
# AC_LIBTOOL_LANG_F77_CONFIG
5758
# --------------------------
5759
# Ensure that the configuration vars for the C compiler are
5760
# suitably defined. Those variables are subsequently used by
5761
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5762
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5763
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5764
[AC_REQUIRE([AC_PROG_F77])
5765
AC_LANG_PUSH(Fortran 77)
5767
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5768
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5769
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5770
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5771
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5772
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5773
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5774
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5775
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5776
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5777
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5778
_LT_AC_TAGVAR(module_cmds, $1)=
5779
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5780
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5781
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5782
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5783
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5784
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5786
# Source file extension for f77 test sources.
5789
# Object file extension for compiled f77 test sources.
5791
_LT_AC_TAGVAR(objext, $1)=$objext
5793
# Code to be used in simple compile tests
5794
lt_simple_compile_test_code="\
5800
# Code to be used in simple link tests
5801
lt_simple_link_test_code="\
5806
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5809
# save warnings/boilerplate of simple test code
5810
_LT_COMPILER_BOILERPLATE
5811
_LT_LINKER_BOILERPLATE
5813
# Allow CC to be a program name with arguments.
5817
_LT_AC_TAGVAR(compiler, $1)=$CC
5818
_LT_CC_BASENAME([$compiler])
5820
AC_MSG_CHECKING([if libtool supports shared libraries])
5821
AC_MSG_RESULT([$can_build_shared])
5823
AC_MSG_CHECKING([whether to build shared libraries])
5824
test "$can_build_shared" = "no" && enable_shared=no
5826
# On AIX, shared libraries and static libraries use the same namespace, and
5827
# are all built from PIC.
5830
test "$enable_shared" = yes && enable_static=no
5831
if test -n "$RANLIB"; then
5832
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5833
postinstall_cmds='$RANLIB $lib'
5837
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5838
test "$enable_shared" = yes && enable_static=no
5842
AC_MSG_RESULT([$enable_shared])
5844
AC_MSG_CHECKING([whether to build static libraries])
5845
# Make sure either enable_shared or enable_static is yes.
5846
test "$enable_shared" = yes || enable_static=yes
5847
AC_MSG_RESULT([$enable_static])
5849
_LT_AC_TAGVAR(GCC, $1)="$G77"
5850
_LT_AC_TAGVAR(LD, $1)="$LD"
5852
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5853
AC_LIBTOOL_PROG_CC_C_O($1)
5854
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5855
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5856
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5857
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5859
AC_LIBTOOL_CONFIG($1)
5863
])# AC_LIBTOOL_LANG_F77_CONFIG
5866
# AC_LIBTOOL_LANG_GCJ_CONFIG
5867
# --------------------------
5868
# Ensure that the configuration vars for the C compiler are
5869
# suitably defined. Those variables are subsequently used by
5870
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5871
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5872
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5875
# Source file extension for Java test sources.
5878
# Object file extension for compiled Java test sources.
5880
_LT_AC_TAGVAR(objext, $1)=$objext
5882
# Code to be used in simple compile tests
5883
lt_simple_compile_test_code="class foo {}"
5885
# Code to be used in simple link tests
5886
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5888
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5891
# save warnings/boilerplate of simple test code
5892
_LT_COMPILER_BOILERPLATE
5893
_LT_LINKER_BOILERPLATE
5895
# Allow CC to be a program name with arguments.
5899
_LT_AC_TAGVAR(compiler, $1)=$CC
5900
_LT_CC_BASENAME([$compiler])
5902
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5903
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5905
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5907
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5908
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5909
AC_LIBTOOL_PROG_CC_C_O($1)
5910
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5911
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5912
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5913
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5915
AC_LIBTOOL_CONFIG($1)
5919
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5922
# AC_LIBTOOL_LANG_RC_CONFIG
5923
# -------------------------
5924
# Ensure that the configuration vars for the Windows resource compiler are
5925
# suitably defined. Those variables are subsequently used by
5926
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5927
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5928
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5931
# Source file extension for RC test sources.
5934
# Object file extension for compiled RC test sources.
5936
_LT_AC_TAGVAR(objext, $1)=$objext
5938
# Code to be used in simple compile tests
5939
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5941
# Code to be used in simple link tests
5942
lt_simple_link_test_code="$lt_simple_compile_test_code"
5944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5947
# save warnings/boilerplate of simple test code
5948
_LT_COMPILER_BOILERPLATE
5949
_LT_LINKER_BOILERPLATE
5951
# Allow CC to be a program name with arguments.
5955
_LT_AC_TAGVAR(compiler, $1)=$CC
5956
_LT_CC_BASENAME([$compiler])
5957
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5959
AC_LIBTOOL_CONFIG($1)
5963
])# AC_LIBTOOL_LANG_RC_CONFIG
5966
# AC_LIBTOOL_CONFIG([TAGNAME])
5967
# ----------------------------
5968
# If TAGNAME is not passed, then create an initial libtool script
5969
# with a default configuration from the untagged config vars. Otherwise
5970
# add code to config.status for appending the configuration named by
5971
# TAGNAME from the matching tagged config vars.
5972
AC_DEFUN([AC_LIBTOOL_CONFIG],
5973
[# The else clause should only fire when bootstrapping the
5974
# libtool distribution, otherwise you forgot to ship ltmain.sh
5975
# with your package, and you will get complaints that there are
5976
# no rules to generate ltmain.sh.
5977
if test -f "$ltmain"; then
5978
# See if we are running on zsh, and set the options which allow our commands through
5979
# without removal of \ escapes.
5980
if test -n "${ZSH_VERSION+set}" ; then
5981
setopt NO_GLOB_SUBST
5983
# Now quote all the things that may contain metacharacters while being
5984
# careful not to overquote the AC_SUBSTed values. We take copies of the
5985
# variables and quote the copies for generation of the libtool script.
5986
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5988
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5989
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5990
deplibs_check_method reload_flag reload_cmds need_locks \
5991
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5992
lt_cv_sys_global_symbol_to_c_name_address \
5993
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5994
old_postinstall_cmds old_postuninstall_cmds \
5995
_LT_AC_TAGVAR(compiler, $1) \
5996
_LT_AC_TAGVAR(CC, $1) \
5997
_LT_AC_TAGVAR(LD, $1) \
5998
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5999
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6000
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6001
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6002
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6003
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6004
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6005
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6006
_LT_AC_TAGVAR(old_archive_cmds, $1) \
6007
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6008
_LT_AC_TAGVAR(predep_objects, $1) \
6009
_LT_AC_TAGVAR(postdep_objects, $1) \
6010
_LT_AC_TAGVAR(predeps, $1) \
6011
_LT_AC_TAGVAR(postdeps, $1) \
6012
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6013
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
6014
_LT_AC_TAGVAR(archive_cmds, $1) \
6015
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6016
_LT_AC_TAGVAR(postinstall_cmds, $1) \
6017
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
6018
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6019
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
6020
_LT_AC_TAGVAR(no_undefined_flag, $1) \
6021
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
6022
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6023
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6024
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6025
_LT_AC_TAGVAR(hardcode_automatic, $1) \
6026
_LT_AC_TAGVAR(module_cmds, $1) \
6027
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
6028
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6029
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
6030
_LT_AC_TAGVAR(exclude_expsyms, $1) \
6031
_LT_AC_TAGVAR(include_expsyms, $1); do
6034
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
6035
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6036
_LT_AC_TAGVAR(archive_cmds, $1) | \
6037
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6038
_LT_AC_TAGVAR(module_cmds, $1) | \
6039
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6040
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6041
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6042
extract_expsyms_cmds | reload_cmds | finish_cmds | \
6043
postinstall_cmds | postuninstall_cmds | \
6044
old_postinstall_cmds | old_postuninstall_cmds | \
6045
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6046
# Double-quote double-evaled strings.
6047
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6050
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6056
*'\[$]0 --fallback-echo"')
6057
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6062
[cfgfile="${ofile}T"
6063
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6065
AC_MSG_NOTICE([creating $ofile])],
6068
cat <<__EOF__ >> "$cfgfile"
6072
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6073
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6074
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6076
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6077
# Free Software Foundation, Inc.
6079
# This file is part of GNU Libtool:
6080
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6082
# This program is free software; you can redistribute it and/or modify
6083
# it under the terms of the GNU General Public License as published by
6084
# the Free Software Foundation; either version 2 of the License, or
6085
# (at your option) any later version.
6087
# This program is distributed in the hope that it will be useful, but
6088
# WITHOUT ANY WARRANTY; without even the implied warranty of
6089
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6090
# General Public License for more details.
6092
# You should have received a copy of the GNU General Public License
6093
# along with this program; if not, write to the Free Software
6094
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6096
# As a special exception to the GNU General Public License, if you
6097
# distribute this file as part of a program that contains a
6098
# configuration script generated by Autoconf, you may include it under
6099
# the same distribution terms that you use for the rest of that program.
6101
# A sed program that does not truncate output.
6104
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6105
Xsed="$SED -e 1s/^X//"
6107
# The HP-UX ksh and POSIX shell print the target directory to stdout
6109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6111
# The names of the tagged configurations supported by this script.
6114
# ### BEGIN LIBTOOL CONFIG],
6115
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6117
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6119
# Shell to use when invoking shell scripts.
6122
# Whether or not to build shared libraries.
6123
build_libtool_libs=$enable_shared
6125
# Whether or not to build static libraries.
6126
build_old_libs=$enable_static
6128
# Whether or not to add -lc for building shared libraries.
6129
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6131
# Whether or not to disallow shared libs when runtime libs are static
6132
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6134
# Whether or not to optimize for fast installation.
6135
fast_install=$enable_fast_install
6138
host_alias=$host_alias
6143
build_alias=$build_alias
6147
# An echo program that does not interpret backslashes.
6152
AR_FLAGS=$lt_AR_FLAGS
6157
# LTCC compiler flags.
6158
LTCFLAGS=$lt_LTCFLAGS
6160
# A language-specific compiler.
6161
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6163
# Is the compiler the GNU C compiler?
6164
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6169
# The linker used to build libraries.
6170
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6172
# Whether we need hard or soft links.
6175
# A BSD-compatible nm program.
6178
# A symbol stripping program
6181
# Used to examine libraries when file_magic_cmd begins "file"
6182
MAGIC_CMD=$MAGIC_CMD
6184
# Used on cygwin: DLL creation program.
6187
# Used on cygwin: object dumper.
6190
# Used on cygwin: assembler.
6193
# The name of the directory that contains temporary libtool files.
6196
# How to create reloadable object files.
6197
reload_flag=$lt_reload_flag
6198
reload_cmds=$lt_reload_cmds
6200
# How to pass a linker flag through the compiler.
6201
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6203
# Object file suffix (normally "o").
6206
# Old archive suffix (normally "a").
6209
# Shared library suffix (normally ".so").
6210
shrext_cmds='$shrext_cmds'
6212
# Executable file suffix (normally "").
6215
# Additional compiler flags for building library objects.
6216
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6219
# What is the maximum length of a command?
6220
max_cmd_len=$lt_cv_sys_max_cmd_len
6222
# Does compiler simultaneously support -c and -o options?
6223
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6225
# Must we lock files when doing compilation?
6226
need_locks=$lt_need_locks
6228
# Do we need the lib prefix for modules?
6229
need_lib_prefix=$need_lib_prefix
6231
# Do we need a version for libraries?
6232
need_version=$need_version
6234
# Whether dlopen is supported.
6235
dlopen_support=$enable_dlopen
6237
# Whether dlopen of programs is supported.
6238
dlopen_self=$enable_dlopen_self
6240
# Whether dlopen of statically linked programs is supported.
6241
dlopen_self_static=$enable_dlopen_self_static
6243
# Compiler flag to prevent dynamic linking.
6244
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6246
# Compiler flag to turn off builtin functions.
6247
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6249
# Compiler flag to allow reflexive dlopens.
6250
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6252
# Compiler flag to generate shared objects directly from archives.
6253
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6255
# Compiler flag to generate thread-safe objects.
6256
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6258
# Library versioning type.
6259
version_type=$version_type
6261
# Format of library name prefix.
6262
libname_spec=$lt_libname_spec
6264
# List of archive names. First name is the real one, the rest are links.
6265
# The last name is the one that the linker finds with -lNAME.
6266
library_names_spec=$lt_library_names_spec
6268
# The coded name of the library, if different from the real name.
6269
soname_spec=$lt_soname_spec
6271
# Commands used to build and install an old-style archive.
6273
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6274
old_postinstall_cmds=$lt_old_postinstall_cmds
6275
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6277
# Create an old-style archive from a shared archive.
6278
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6280
# Create a temporary old-style archive to link instead of a shared archive.
6281
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6283
# Commands used to build and install a shared archive.
6284
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6285
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6286
postinstall_cmds=$lt_postinstall_cmds
6287
postuninstall_cmds=$lt_postuninstall_cmds
6289
# Commands used to build a loadable module (assumed same as above if empty)
6290
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6291
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6293
# Commands to strip libraries.
6294
old_striplib=$lt_old_striplib
6295
striplib=$lt_striplib
6297
# Dependencies to place before the objects being linked to create a
6299
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6301
# Dependencies to place after the objects being linked to create a
6303
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6305
# Dependencies to place before the objects being linked to create a
6307
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6309
# Dependencies to place after the objects being linked to create a
6311
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6313
# The directories searched by this compiler when creating a shared
6315
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
6317
# The library search path used internally by the compiler when linking
6319
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6321
# Method to check whether dependent libraries are shared objects.
6322
deplibs_check_method=$lt_deplibs_check_method
6324
# Command to use when deplibs_check_method == file_magic.
6325
file_magic_cmd=$lt_file_magic_cmd
6327
# Flag that allows shared libraries with undefined symbols to be built.
6328
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6330
# Flag that forces no undefined symbols.
6331
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6333
# Commands used to finish a libtool library installation in a directory.
6334
finish_cmds=$lt_finish_cmds
6336
# Same as above, but a single script fragment to be evaled but not shown.
6337
finish_eval=$lt_finish_eval
6339
# Take the output of nm and produce a listing of raw symbols and C names.
6340
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6342
# Transform the output of nm in a proper C declaration
6343
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6345
# Transform the output of nm in a C name address pair
6346
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6348
# This is the shared library runtime path variable.
6349
runpath_var=$runpath_var
6351
# This is the shared library path variable.
6352
shlibpath_var=$shlibpath_var
6354
# Is shlibpath searched before the hard-coded library search path?
6355
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6357
# How to hardcode a shared library path into an executable.
6358
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6360
# Whether we should hardcode library paths into libraries.
6361
hardcode_into_libs=$hardcode_into_libs
6363
# Flag to hardcode \$libdir into a binary during linking.
6364
# This must work even if \$libdir does not exist.
6365
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6367
# If ld is used when linking, flag to hardcode \$libdir into
6368
# a binary during linking. This must work even if \$libdir does
6370
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6372
# Whether we need a single -rpath flag with a separated argument.
6373
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6375
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6377
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6379
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6381
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6383
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6384
# the resulting binary.
6385
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6387
# Set to yes if building a shared library automatically hardcodes DIR into the library
6388
# and all subsequent libraries and executables linked against it.
6389
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6391
# Variables whose values should be saved in libtool wrapper scripts and
6392
# restored at relink time.
6393
variables_saved_for_relink="$variables_saved_for_relink"
6395
# Whether libtool must link a program against all its dependency libraries.
6396
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6398
# Compile-time system search path for libraries
6399
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6401
# Run-time system search path for libraries
6402
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6404
# Fix the shell variable \$srcfile for the compiler.
6405
fix_srcfile_path=$lt_fix_srcfile_path
6407
# Set to yes if exported symbols are required.
6408
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6410
# The commands to list exported symbols.
6411
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6413
# The commands to extract the exported symbol list from a shared archive.
6414
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6416
# Symbols that should not be listed in the preloaded symbols.
6417
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6419
# Symbols that must always be exported.
6420
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6423
[# ### END LIBTOOL CONFIG],
6424
[# ### END LIBTOOL TAG CONFIG: $tagname])
6431
cat <<\EOF >> "$cfgfile"
6433
# AIX sometimes has problems with the GCC collect2 program. For some
6434
# reason, if we set the COLLECT_NAMES environment variable, the problems
6435
# vanish in a puff of smoke.
6436
if test "X${COLLECT_NAMES+set}" != Xset; then
6438
export COLLECT_NAMES
6444
# We use sed instead of cat because bash on DJGPP gets confused if
6445
# if finds mixed CR/LF and LF-only lines. Since sed operates in
6446
# text mode, it properly converts lines to CR/LF. This bash problem
6447
# is reportedly fixed, but why not run on old versions too?
6448
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6450
mv -f "$cfgfile" "$ofile" || \
6451
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6455
# If there is no Makefile yet, we rely on a make rule to execute
6456
# `config.status --recheck' to rerun these tests and create the
6457
# libtool script then.
6458
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6459
if test -f "$ltmain_in"; then
6460
test -f Makefile && make "$ltmain"
6463
])# AC_LIBTOOL_CONFIG
6466
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6467
# -------------------------------------------
6468
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6469
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6471
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3301
6473
if test "$GCC" = yes; then
3302
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6474
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3304
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6476
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3305
6477
lt_cv_prog_compiler_rtti_exceptions,
3306
6478
[-fno-rtti -fno-exceptions], [],
3307
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6479
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3309
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3310
[Compiler flag to turn off builtin functions])
3311
])# _LT_COMPILER_NO_RTTI
3314
# _LT_CMD_GLOBAL_SYMBOLS
3315
# ----------------------
3316
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3317
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3318
AC_REQUIRE([AC_PROG_CC])dnl
3319
AC_REQUIRE([LT_PATH_NM])dnl
3320
AC_REQUIRE([LT_PATH_LD])dnl
3321
m4_require([_LT_DECL_SED])dnl
3322
m4_require([_LT_DECL_EGREP])dnl
3323
m4_require([_LT_TAG_COMPILER])dnl
6481
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6484
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6485
# ---------------------------------
6486
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6487
[AC_REQUIRE([AC_CANONICAL_HOST])
6488
AC_REQUIRE([LT_AC_PROG_SED])
6489
AC_REQUIRE([AC_PROG_NM])
6490
AC_REQUIRE([AC_OBJEXT])
3325
6491
# Check for command to grab the raw symbol name followed by C symbol from nm.
3326
6492
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3327
6493
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3979
7089
# +Z the default
3982
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7092
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3985
7095
# Is there a better lt_prog_compiler_static that works with the bundled CC?
3986
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7096
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3989
7099
irix5* | irix6* | nonstopux*)
3990
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7100
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3991
7101
# PIC (with -KPIC) is the default.
3992
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7102
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7106
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7107
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3995
7110
linux* | k*bsd*-gnu)
3996
7111
case $cc_basename in
3997
# old Intel for x86_64 which still supported -KPIC.
3999
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4000
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4001
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4003
# icc used to be incompatible with GCC.
4004
# ICC 10 doesn't accept -KPIC any more.
4006
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4007
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4008
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4010
# Lahey Fortran 8.1.
4012
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4014
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
7113
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7114
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7115
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4016
7117
pgcc* | pgf77* | pgf90* | pgf95*)
4017
7118
# Portland Group compilers (*not* the Pentium gcc compiler,
4018
7119
# which looks to be a dead project)
4019
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4020
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4021
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7120
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7121
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7122
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4024
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7125
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025
7126
# All Alpha code is PIC.
4026
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7127
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4029
# IBM XL C 8.0/Fortran 10.1 on PPC
4030
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4031
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4032
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4035
case `$CC -V 2>&1 | sed 5q` in
7130
case `$CC -V 2>&1 | sed 5q` in
4038
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4039
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4040
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7133
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7134
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7135
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043
7138
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4044
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4045
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4046
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7139
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7140
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7141
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4054
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4055
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4059
# QNX uses GNU C++, but need to define -shared option too, otherwise
4061
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4064
7148
osf3* | osf4* | osf5*)
4065
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7149
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4066
7150
# All OSF/1 code is PIC.
4067
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7151
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4071
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7155
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4075
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4076
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7159
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7160
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4077
7161
case $cc_basename in
4078
7162
f77* | f90* | f95*)
4079
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7163
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4081
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7165
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4086
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4087
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4088
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7170
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7171
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7172
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4091
7175
sysv4 | sysv4.2uw2* | sysv4.3*)
4092
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4093
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4094
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7176
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7177
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7178
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4098
7182
if test -d /usr/nec ;then
4099
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4100
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7183
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7184
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4104
7188
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4105
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4106
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4107
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7189
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7190
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7191
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4111
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4112
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7195
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7196
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4116
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4117
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7200
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7201
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4121
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7205
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7210
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7213
# Check to make sure the PIC flag actually works.
7215
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7216
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7217
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
7218
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7219
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7221
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7223
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7224
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4126
7226
case $host_os in
4127
7227
# For platforms which do not support PIC, -DPIC is meaningless:
4129
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7229
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4132
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
7232
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4135
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4136
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4137
[How to pass a linker flag through the compiler])
4140
# Check to make sure the PIC flag actually works.
4142
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4143
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4144
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4145
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4146
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4148
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4150
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4151
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4153
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4154
[Additional compiler flags for building library objects])
4157
7237
# Check to make sure the static flag actually works.
4159
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4160
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4161
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7239
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7240
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7241
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4162
7242
$lt_tmp_static_flag,
4164
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4165
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4166
[Compiler flag to prevent dynamic linking])
4167
])# _LT_COMPILER_PIC
4170
# _LT_LINKER_SHLIBS([TAGNAME])
4171
# ----------------------------
7244
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7248
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7249
# ------------------------------------
4172
7250
# See if the linker supports building shared libraries.
4173
m4_defun([_LT_LINKER_SHLIBS],
4174
[AC_REQUIRE([LT_PATH_LD])dnl
4175
AC_REQUIRE([LT_PATH_NM])dnl
4176
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4177
m4_require([_LT_DECL_EGREP])dnl
4178
m4_require([_LT_DECL_SED])dnl
4179
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4180
m4_require([_LT_TAG_COMPILER])dnl
7251
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7252
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4181
7253
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4182
m4_if([$1], [CXX], [
4183
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7255
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4184
7256
case $host_os in
4186
7258
# If we're using GNU nm, then we don't want the "-C" option.
4187
7259
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4188
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4189
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7260
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7261
_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'
4191
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7263
_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'
4195
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7267
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4197
cygwin* | mingw* | cegcc*)
4198
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
7270
_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'
4201
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7273
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4204
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7276
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4207
_LT_TAGVAR(allow_undefined_flag, $1)=
4208
_LT_TAGVAR(always_export_symbols, $1)=no
4209
_LT_TAGVAR(archive_cmds, $1)=
4210
_LT_TAGVAR(archive_expsym_cmds, $1)=
4211
_LT_TAGVAR(compiler_needs_object, $1)=no
4212
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4213
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4214
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4215
_LT_TAGVAR(hardcode_automatic, $1)=no
4216
_LT_TAGVAR(hardcode_direct, $1)=no
4217
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4218
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4219
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4220
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4221
_LT_TAGVAR(hardcode_minus_L, $1)=no
4222
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4223
_LT_TAGVAR(inherit_rpath, $1)=no
4224
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4225
_LT_TAGVAR(module_cmds, $1)=
4226
_LT_TAGVAR(module_expsym_cmds, $1)=
4227
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4228
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4229
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4230
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7279
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7280
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7281
_LT_AC_TAGVAR(archive_cmds, $1)=
7282
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7283
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7284
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7285
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7286
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7287
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7288
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7289
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7290
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7291
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7292
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7293
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7294
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7295
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7296
_LT_AC_TAGVAR(module_cmds, $1)=
7297
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7298
_LT_AC_TAGVAR(always_export_symbols, $1)=no
7299
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4231
7300
# include_expsyms should be a list of space-separated symbols to be *always*
4232
7301
# included in the symbol list
4233
_LT_TAGVAR(include_expsyms, $1)=
7302
_LT_AC_TAGVAR(include_expsyms, $1)=
4234
7303
# exclude_expsyms can be an extended regexp of symbols to exclude
4235
7304
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4236
7305
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4237
7306
# as well as any symbol that contains `d'.
4238
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7307
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4239
7308
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4240
7309
# platforms (ab)use it in PIC code, but their linkers get confused if
4241
7310
# the symbol is explicitly referenced. Since portable code cannot
4836
7904
irix5* | irix6* | nonstopux*)
4837
7905
if test "$GCC" = yes; then
4838
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4839
# Try to use the -exported_symbol ld option, if it does not
4840
# work, assume that -exports_file does not work either and
4841
# implicitly export all symbols.
4842
save_LDFLAGS="$LDFLAGS"
4843
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4844
AC_LINK_IFELSE(int foo(void) {},
4845
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4847
LDFLAGS="$save_LDFLAGS"
7906
_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'
4849
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4850
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7908
_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'
7909
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4852
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4854
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4855
_LT_TAGVAR(inherit_rpath, $1)=yes
4856
_LT_TAGVAR(link_all_deplibs, $1)=yes
7911
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7912
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7913
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4860
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4861
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7917
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7918
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4863
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7920
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4865
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4866
_LT_TAGVAR(hardcode_direct, $1)=yes
4867
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7922
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7923
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7924
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4871
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4872
_LT_TAGVAR(hardcode_direct, $1)=yes
4873
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4874
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4875
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7928
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7929
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7930
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7931
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7932
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4882
7936
if test -f /usr/libexec/ld.so; then
4883
_LT_TAGVAR(hardcode_direct, $1)=yes
4884
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4885
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4886
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4887
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4888
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4889
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4890
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7937
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7938
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7939
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7940
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7941
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7942
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7943
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4892
7945
case $host_os in
4893
7946
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4894
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4895
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7947
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7948
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7951
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7952
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4904
_LT_TAGVAR(ld_shlibs, $1)=no
7957
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4909
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4910
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4911
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4912
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4913
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7962
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7963
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7964
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7965
_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'
7966
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4917
7970
if test "$GCC" = yes; then
4918
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4919
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7971
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7972
_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'
4921
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4922
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7974
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7975
_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'
4924
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4925
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7977
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7978
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4929
7981
osf4* | osf5*) # as osf3* with the addition of -msym flag
4930
7982
if test "$GCC" = yes; then
4931
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4932
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4933
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7983
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7984
_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'
7985
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4935
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4936
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4937
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4938
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7987
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7988
_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'
7989
_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~
7990
$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'
4940
7992
# Both c and cxx compiler support -rpath directly
4941
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7993
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4943
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4944
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7995
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4948
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7999
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4949
8000
if test "$GCC" = yes; then
4951
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4952
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4953
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8002
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8004
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4955
case `$CC -V 2>&1` in
4958
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4959
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4960
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4964
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4965
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4966
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8007
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8009
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4970
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4971
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8011
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8012
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4972
8013
case $host_os in
4973
8014
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4975
8016
# The compiler driver will combine and reorder linker options,
4976
8017
# but understands `-z linker_flag'. GCC discards it without `$wl',
4977
8018
# but is careful enough not to reorder.
4978
# Supported since Solaris 2.6 (maybe 2.5.1?)
8019
# Supported since Solaris 2.6 (maybe 2.5.1?)
4979
8020
if test "$GCC" = yes; then
4980
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8021
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4982
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8023
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4986
_LT_TAGVAR(link_all_deplibs, $1)=yes
8027
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4990
8031
if test "x$host_vendor" = xsequent; then
4991
8032
# Use $CC to link under sequent, because it throws in some extra .o
4992
8033
# files that make .init and .fini sections work.
4993
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8034
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4995
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8036
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4997
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4998
_LT_TAGVAR(hardcode_direct, $1)=yes
4999
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5000
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8038
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8039
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8040
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8041
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5004
8045
case $host_vendor in
5006
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5007
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8047
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5010
8051
## LD is ld it makes a PLAMLIB
5011
8052
## CC just makes a GrossModule.
5012
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5013
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5014
_LT_TAGVAR(hardcode_direct, $1)=no
8053
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8054
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8055
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5017
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5018
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8058
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5021
8062
runpath_var='LD_RUN_PATH'
5022
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8063
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5026
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5027
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5028
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8067
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8068
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8069
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5032
8073
if test -d /usr/nec; then
5033
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5034
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8074
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5035
8076
runpath_var=LD_RUN_PATH
5036
8077
hardcode_runpath_var=yes
5037
_LT_TAGVAR(ld_shlibs, $1)=yes
8078
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5041
8082
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5042
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5043
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5044
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8083
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8084
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8085
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5045
8086
runpath_var='LD_RUN_PATH'
5047
8088
if test "$GCC" = yes; then
5048
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5049
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8089
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8090
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5051
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5052
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8092
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8093
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5136
8162
libobjs=conftest.$ac_objext
5138
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5139
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8164
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8165
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5140
8166
compiler_flags=-v
5141
8167
linker_flags=-v
5143
8169
output_objdir=.
5144
8170
libname=conftest
5145
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5146
_LT_TAGVAR(allow_undefined_flag, $1)=
5147
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8171
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8172
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8173
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5149
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8175
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5151
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8177
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5153
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8179
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5155
8181
cat conftest.err 1>&5
5158
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8184
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5165
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5166
[Whether or not to add -lc for building shared libraries])
5167
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5168
[enable_shared_with_static_runtimes], [0],
5169
[Whether or not to disallow shared libs when runtime libs are static])
5170
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5171
[Compiler flag to allow reflexive dlopens])
5172
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5173
[Compiler flag to generate shared objects directly from archives])
5174
_LT_TAGDECL([], [compiler_needs_object], [1],
5175
[Whether the compiler copes with passing no objects directly])
5176
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5177
[Create an old-style archive from a shared archive])
5178
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5179
[Create a temporary old-style archive to link instead of a shared archive])
5180
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5181
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5182
_LT_TAGDECL([], [module_cmds], [2],
5183
[Commands used to build a loadable module if different from building
5185
_LT_TAGDECL([], [module_expsym_cmds], [2])
5186
_LT_TAGDECL([], [with_gnu_ld], [1],
5187
[Whether we are building with GNU ld or not])
5188
_LT_TAGDECL([], [allow_undefined_flag], [1],
5189
[Flag that allows shared libraries with undefined symbols to be built])
5190
_LT_TAGDECL([], [no_undefined_flag], [1],
5191
[Flag that enforces no undefined symbols])
5192
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5193
[Flag to hardcode $libdir into a binary during linking.
5194
This must work even if $libdir does not exist])
5195
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5196
[[If ld is used when linking, flag to hardcode $libdir into a binary
5197
during linking. This must work even if $libdir does not exist]])
5198
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5199
[Whether we need a single "-rpath" flag with a separated argument])
5200
_LT_TAGDECL([], [hardcode_direct], [0],
5201
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5202
DIR into the resulting binary])
5203
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5204
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5205
DIR into the resulting binary and the resulting library dependency is
5206
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5207
library is relocated])
5208
_LT_TAGDECL([], [hardcode_minus_L], [0],
5209
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5210
into the resulting binary])
5211
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5212
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5213
into the resulting binary])
5214
_LT_TAGDECL([], [hardcode_automatic], [0],
5215
[Set to "yes" if building a shared library automatically hardcodes DIR
5216
into the library and all subsequent libraries and executables linked
5218
_LT_TAGDECL([], [inherit_rpath], [0],
5219
[Set to yes if linker adds runtime paths of dependent libraries
5220
to runtime path list])
5221
_LT_TAGDECL([], [link_all_deplibs], [0],
5222
[Whether libtool must link a program against all its dependency libraries])
5223
_LT_TAGDECL([], [fix_srcfile_path], [1],
5224
[Fix the shell variable $srcfile for the compiler])
5225
_LT_TAGDECL([], [always_export_symbols], [0],
5226
[Set to "yes" if exported symbols are required])
5227
_LT_TAGDECL([], [export_symbols_cmds], [2],
5228
[The commands to list exported symbols])
5229
_LT_TAGDECL([], [exclude_expsyms], [1],
5230
[Symbols that should not be listed in the preloaded symbols])
5231
_LT_TAGDECL([], [include_expsyms], [1],
5232
[Symbols that must always be exported])
5233
_LT_TAGDECL([], [prelink_cmds], [2],
5234
[Commands necessary for linking programs (against libraries) with templates])
5235
_LT_TAGDECL([], [file_list_spec], [1],
5236
[Specify filename containing input files])
5237
dnl FIXME: Not yet implemented
5238
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5239
dnl [Compiler flag to generate thread safe objects])
5240
])# _LT_LINKER_SHLIBS
5243
# _LT_LANG_C_CONFIG([TAG])
5244
# ------------------------
5245
# Ensure that the configuration variables for a C compiler are suitably
5246
# defined. These variables are subsequently used by _LT_CONFIG to write
5247
# the compiler configuration to `libtool'.
5248
m4_defun([_LT_LANG_C_CONFIG],
5249
[m4_require([_LT_DECL_EGREP])dnl
5253
# Source file extension for C test sources.
5256
# Object file extension for compiled C test sources.
5258
_LT_TAGVAR(objext, $1)=$objext
5260
# Code to be used in simple compile tests
5261
lt_simple_compile_test_code="int some_variable = 0;"
5263
# Code to be used in simple link tests
5264
lt_simple_link_test_code='int main(){return(0);}'
5267
# Save the default compiler, since it gets overwritten when the other
5268
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5269
compiler_DEFAULT=$CC
5271
# save warnings/boilerplate of simple test code
5272
_LT_COMPILER_BOILERPLATE
5273
_LT_LINKER_BOILERPLATE
5275
if test -n "$compiler"; then
5276
_LT_COMPILER_NO_RTTI($1)
5277
_LT_COMPILER_PIC($1)
5278
_LT_COMPILER_C_O($1)
5279
_LT_COMPILER_FILE_LOCKS($1)
5280
_LT_LINKER_SHLIBS($1)
5281
_LT_SYS_DYNAMIC_LINKER($1)
5282
_LT_LINKER_HARDCODE_LIBPATH($1)
5286
# Report which library types will actually be built
5287
AC_MSG_CHECKING([if libtool supports shared libraries])
5288
AC_MSG_RESULT([$can_build_shared])
5290
AC_MSG_CHECKING([whether to build shared libraries])
5291
test "$can_build_shared" = "no" && enable_shared=no
5293
# On AIX, shared libraries and static libraries use the same namespace, and
5294
# are all built from PIC.
5297
test "$enable_shared" = yes && enable_static=no
5298
if test -n "$RANLIB"; then
5299
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5300
postinstall_cmds='$RANLIB $lib'
5305
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5306
test "$enable_shared" = yes && enable_static=no
5310
AC_MSG_RESULT([$enable_shared])
5312
AC_MSG_CHECKING([whether to build static libraries])
5313
# Make sure either enable_shared or enable_static is yes.
5314
test "$enable_shared" = yes || enable_static=yes
5315
AC_MSG_RESULT([$enable_static])
5321
])# _LT_LANG_C_CONFIG
5326
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5327
# compiler, we have our own version here.
5328
m4_defun([_LT_PROG_CXX],
5330
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5332
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5333
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5334
(test "X$CXX" != "Xg++"))) ; then
5337
_lt_caught_CXX_error=yes
5339
popdef([AC_MSG_ERROR])
5342
dnl aclocal-1.4 backwards compatibility:
5343
dnl AC_DEFUN([_LT_PROG_CXX], [])
5346
# _LT_LANG_CXX_CONFIG([TAG])
5347
# --------------------------
5348
# Ensure that the configuration variables for a C++ compiler are suitably
5349
# defined. These variables are subsequently used by _LT_CONFIG to write
5350
# the compiler configuration to `libtool'.
5351
m4_defun([_LT_LANG_CXX_CONFIG],
5352
[AC_REQUIRE([_LT_PROG_CXX])dnl
5353
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5354
m4_require([_LT_DECL_EGREP])dnl
5357
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5358
_LT_TAGVAR(allow_undefined_flag, $1)=
5359
_LT_TAGVAR(always_export_symbols, $1)=no
5360
_LT_TAGVAR(archive_expsym_cmds, $1)=
5361
_LT_TAGVAR(compiler_needs_object, $1)=no
5362
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5363
_LT_TAGVAR(hardcode_direct, $1)=no
5364
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5365
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5366
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5367
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5368
_LT_TAGVAR(hardcode_minus_L, $1)=no
5369
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5370
_LT_TAGVAR(hardcode_automatic, $1)=no
5371
_LT_TAGVAR(inherit_rpath, $1)=no
5372
_LT_TAGVAR(module_cmds, $1)=
5373
_LT_TAGVAR(module_expsym_cmds, $1)=
5374
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5375
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5376
_LT_TAGVAR(no_undefined_flag, $1)=
5377
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5378
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5380
# Source file extension for C++ test sources.
5383
# Object file extension for compiled C++ test sources.
5385
_LT_TAGVAR(objext, $1)=$objext
5387
# No sense in running all these tests if we already determined that
5388
# the CXX compiler isn't working. Some variables (like enable_shared)
5389
# are currently assumed to apply to all compilers on this platform,
5390
# and will be corrupted by setting them based on a non-working compiler.
5391
if test "$_lt_caught_CXX_error" != yes; then
5392
# Code to be used in simple compile tests
5393
lt_simple_compile_test_code="int some_variable = 0;"
5395
# Code to be used in simple link tests
5396
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5398
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5401
# save warnings/boilerplate of simple test code
5402
_LT_COMPILER_BOILERPLATE
5403
_LT_LINKER_BOILERPLATE
5405
# Allow CC to be a program name with arguments.
5410
lt_save_with_gnu_ld=$with_gnu_ld
5411
lt_save_path_LD=$lt_cv_path_LD
5412
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5413
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5415
$as_unset lt_cv_prog_gnu_ld
5417
if test -n "${lt_cv_path_LDCXX+set}"; then
5418
lt_cv_path_LD=$lt_cv_path_LDCXX
5420
$as_unset lt_cv_path_LD
5422
test -z "${LDCXX+set}" || LD=$LDCXX
5425
_LT_TAGVAR(compiler, $1)=$CC
5426
_LT_CC_BASENAME([$compiler])
5428
if test -n "$compiler"; then
5429
# We don't want -fno-exception when compiling C++ code, so set the
5430
# no_builtin_flag separately
5431
if test "$GXX" = yes; then
5432
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5434
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5437
if test "$GXX" = yes; then
5438
# Set up default GNU C++ configuration
5442
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5443
# archiving commands below assume that GNU ld is being used.
5444
if test "$with_gnu_ld" = yes; then
5445
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5446
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5448
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5449
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5451
# If archive_cmds runs LD, not CC, wlarc should be empty
5452
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5453
# investigate it a little bit more. (MM)
5456
# ancient GNU ld didn't support --whole-archive et. al.
5457
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5458
$GREP 'no-whole-archive' > /dev/null; then
5459
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5461
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5467
# A generic and very simple default shared library creation
5468
# command for GNU C++ for the case where it uses the native
5469
# linker, instead of GNU ld. If possible, this setting should
5470
# overridden to take advantage of the native linker features on
5471
# the platform it is being used on.
5472
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5475
# Commands to make compiler produce verbose output that lists
5476
# what "hidden" libraries, object files and flags are used when
5477
# linking a shared library.
5478
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5486
# PORTME: fill in a description of your system's C++ link characteristics
5487
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5488
_LT_TAGVAR(ld_shlibs, $1)=yes
5491
# FIXME: insert proper C++ library support
5492
_LT_TAGVAR(ld_shlibs, $1)=no
5495
if test "$host_cpu" = ia64; then
5496
# On IA64, the linker does run time linking by default, so we don't
5497
# have to do anything special.
5498
aix_use_runtimelinking=no
5499
exp_sym_flag='-Bexport'
5502
aix_use_runtimelinking=no
5504
# Test if we are trying to use run time linking or normal
5505
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5506
# need to do runtime linking.
5507
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5508
for ld_flag in $LDFLAGS; do
5511
aix_use_runtimelinking=yes
5519
exp_sym_flag='-bexport'
5520
no_entry_flag='-bnoentry'
5523
# When large executables or shared objects are built, AIX ld can
5524
# have problems creating the table of contents. If linking a library
5525
# or program results in "error TOC overflow" add -mminimal-toc to
5526
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5527
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5529
_LT_TAGVAR(archive_cmds, $1)=''
5530
_LT_TAGVAR(hardcode_direct, $1)=yes
5531
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5532
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5533
_LT_TAGVAR(link_all_deplibs, $1)=yes
5534
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5536
if test "$GXX" = yes; then
5537
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5538
# We only want to do this on AIX 4.2 and lower, the check
5539
# below for broken collect2 doesn't work under 4.3+
5540
collect2name=`${CC} -print-prog-name=collect2`
5541
if test -f "$collect2name" &&
5542
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5544
# We have reworked collect2
5547
# We have old collect2
5548
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5549
# It fails to find uninstalled libraries when the uninstalled
5550
# path is not listed in the libpath. Setting hardcode_minus_L
5551
# to unsupported forces relinking
5552
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5553
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5554
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5557
shared_flag='-shared'
5558
if test "$aix_use_runtimelinking" = yes; then
5559
shared_flag="$shared_flag "'${wl}-G'
5563
if test "$host_cpu" = ia64; then
5564
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5565
# chokes on -Wl,-G. The following line is correct:
5568
if test "$aix_use_runtimelinking" = yes; then
5569
shared_flag='${wl}-G'
5571
shared_flag='${wl}-bM:SRE'
5576
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5577
# It seems that -bexpall does not export symbols beginning with
5578
# underscore (_), so it is better to generate a list of symbols to
5580
_LT_TAGVAR(always_export_symbols, $1)=yes
5581
if test "$aix_use_runtimelinking" = yes; then
5582
# Warning - without using the other runtime loading flags (-brtl),
5583
# -berok will link without error, but may produce a broken library.
5584
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5585
# Determine the default libpath from the value encoded in an empty
5587
_LT_SYS_MODULE_PATH_AIX
5588
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5590
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5592
if test "$host_cpu" = ia64; then
5593
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5594
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5595
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5597
# Determine the default libpath from the value encoded in an
5599
_LT_SYS_MODULE_PATH_AIX
5600
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5601
# Warning - without using the other run time loading flags,
5602
# -berok will link without error, but may produce a broken library.
5603
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5604
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5605
# Exported symbols can be pulled into shared objects from archives
5606
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5607
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5608
# This is similar to how AIX traditionally builds its shared
5610
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5616
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5617
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5618
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5619
# support --undefined. This deserves some investigation. FIXME
5620
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5622
_LT_TAGVAR(ld_shlibs, $1)=no
5627
case $cc_basename in
5629
# FIXME: insert proper C++ library support
5630
_LT_TAGVAR(ld_shlibs, $1)=no
5635
cygwin* | mingw* | pw32* | cegcc*)
5636
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5637
# as there is no search path for DLLs.
5638
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5639
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5640
_LT_TAGVAR(always_export_symbols, $1)=no
5641
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5643
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5644
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5645
# If the export-symbols file already is a .def file (1st line
5646
# is EXPORTS), use it as is; otherwise, prepend...
5647
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5648
cp $export_symbols $output_objdir/$soname.def;
5650
echo EXPORTS > $output_objdir/$soname.def;
5651
cat $export_symbols >> $output_objdir/$soname.def;
5653
$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'
5655
_LT_TAGVAR(ld_shlibs, $1)=no
5658
darwin* | rhapsody*)
5659
_LT_DARWIN_LINKER_FEATURES($1)
5663
case $cc_basename in
5665
# FIXME: insert proper C++ library support
5666
_LT_TAGVAR(ld_shlibs, $1)=no
5669
# Green Hills C++ Compiler
5670
# FIXME: insert proper C++ library support
5671
_LT_TAGVAR(ld_shlibs, $1)=no
5674
# FIXME: insert proper C++ library support
5675
_LT_TAGVAR(ld_shlibs, $1)=no
5681
# C++ shared libraries reported to be fairly broken before
5683
_LT_TAGVAR(ld_shlibs, $1)=no
5687
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5690
freebsd* | dragonfly*)
5691
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5693
_LT_TAGVAR(ld_shlibs, $1)=yes
5700
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5701
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5702
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5703
_LT_TAGVAR(hardcode_direct, $1)=yes
5704
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5705
# but as the default
5706
# location of the library.
5708
case $cc_basename in
5710
# FIXME: insert proper C++ library support
5711
_LT_TAGVAR(ld_shlibs, $1)=no
5714
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5715
# Commands to make compiler produce verbose output that lists
5716
# what "hidden" libraries, object files and flags are used when
5717
# linking a shared library.
5719
# There doesn't appear to be a way to prevent this compiler from
5720
# explicitly linking system object files so we need to strip them
5721
# from the output so that they don't get included in the library
5723
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5726
if test "$GXX" = yes; then
5727
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5729
# FIXME: insert proper C++ library support
5730
_LT_TAGVAR(ld_shlibs, $1)=no
5737
if test $with_gnu_ld = no; then
5738
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5739
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5745
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5751
_LT_TAGVAR(hardcode_direct, $1)=no
5752
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5755
_LT_TAGVAR(hardcode_direct, $1)=yes
5756
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5757
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5758
# but as the default
5759
# location of the library.
5763
case $cc_basename in
5765
# FIXME: insert proper C++ library support
5766
_LT_TAGVAR(ld_shlibs, $1)=no
5771
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5774
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5777
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5780
# Commands to make compiler produce verbose output that lists
5781
# what "hidden" libraries, object files and flags are used when
5782
# linking a shared library.
5784
# There doesn't appear to be a way to prevent this compiler from
5785
# explicitly linking system object files so we need to strip them
5786
# from the output so that they don't get included in the library
5788
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5791
if test "$GXX" = yes; then
5792
if test $with_gnu_ld = no; then
5795
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5798
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5801
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5806
# FIXME: insert proper C++ library support
5807
_LT_TAGVAR(ld_shlibs, $1)=no
5814
_LT_TAGVAR(hardcode_direct, $1)=no
5815
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5816
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5817
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5818
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5819
# Instead, shared libraries are loaded at an image base (0x10000000 by
5820
# default) and relocated if they conflict, which is a slow very memory
5821
# consuming and fragmenting process. To avoid this, we pick a random,
5822
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5823
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5824
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5825
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5828
case $cc_basename in
5831
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5833
# Archives containing C++ object files must be created using
5834
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5835
# necessary to make sure instantiated templates are included
5837
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5840
if test "$GXX" = yes; then
5841
if test "$with_gnu_ld" = no; then
5842
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5844
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5847
_LT_TAGVAR(link_all_deplibs, $1)=yes
5850
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5851
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5852
_LT_TAGVAR(inherit_rpath, $1)=yes
5855
linux* | k*bsd*-gnu)
5856
case $cc_basename in
5858
# Kuck and Associates, Inc. (KAI) C++ Compiler
5860
# KCC will only create a shared library if the output file
5861
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5862
# to its proper name (with version) after linking.
5863
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5864
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5865
# Commands to make compiler produce verbose output that lists
5866
# what "hidden" libraries, object files and flags are used when
5867
# linking a shared library.
5869
# There doesn't appear to be a way to prevent this compiler from
5870
# explicitly linking system object files so we need to strip them
5871
# from the output so that they don't get included in the library
5873
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5875
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5876
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5878
# Archives containing C++ object files must be created using
5879
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5880
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5885
# version 8.0 and above of icpc choke on multiply defined symbols
5886
# if we add $predep_objects and $postdep_objects, however 7.1 and
5887
# earlier do not add the objects themselves.
5888
case `$CC -V 2>&1` in
5890
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5891
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5893
*) # Version 8.0 or newer
5896
ia64*) tmp_idyn=' -i_dynamic';;
5898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5899
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5902
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5903
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5904
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5905
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5908
# Portland Group C++ compiler
5910
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5911
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5913
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5914
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5915
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5917
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5918
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5920
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5922
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5923
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5924
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5926
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5927
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5929
*) # Version 6 will use weak symbols
5930
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5931
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5935
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5936
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5937
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5941
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5942
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5944
runpath_var=LD_RUN_PATH
5945
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5946
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5948
# Commands to make compiler produce verbose output that lists
5949
# what "hidden" libraries, object files and flags are used when
5950
# linking a shared library.
5952
# There doesn't appear to be a way to prevent this compiler from
5953
# explicitly linking system object files so we need to strip them
5954
# from the output so that they don't get included in the library
5956
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5959
# IBM XL 8.0 on PPC, with GNU ld
5960
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5961
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5962
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5963
if test "x$supports_anon_versioning" = xyes; then
5964
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5965
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5966
echo "local: *; };" >> $output_objdir/$libname.ver~
5967
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5971
case `$CC -V 2>&1 | sed 5q` in
5974
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5975
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5976
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5977
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5978
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5979
_LT_TAGVAR(compiler_needs_object, $1)=yes
5981
# Not sure whether something based on
5982
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5984
output_verbose_link_cmd='echo'
5986
# Archives containing C++ object files must be created using
5987
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5988
# necessary to make sure instantiated templates are included
5990
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5998
# FIXME: insert proper C++ library support
5999
_LT_TAGVAR(ld_shlibs, $1)=no
6003
# FIXME: insert proper C++ library support
6004
_LT_TAGVAR(ld_shlibs, $1)=no
6008
case $cc_basename in
6010
# FIXME: insert proper C++ library support
6011
_LT_TAGVAR(ld_shlibs, $1)=no
6014
# FIXME: insert proper C++ library support
6015
_LT_TAGVAR(ld_shlibs, $1)=no
6021
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6022
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6024
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6025
_LT_TAGVAR(hardcode_direct, $1)=yes
6026
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6028
# Workaround some broken pre-1.5 toolchains
6029
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6033
_LT_TAGVAR(ld_shlibs, $1)=yes
6037
# C++ shared libraries are fairly broken
6038
_LT_TAGVAR(ld_shlibs, $1)=no
6042
if test -f /usr/libexec/ld.so; then
6043
_LT_TAGVAR(hardcode_direct, $1)=yes
6044
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6045
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6046
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6047
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6048
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6049
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6050
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6051
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6053
output_verbose_link_cmd=echo
6055
_LT_TAGVAR(ld_shlibs, $1)=no
6059
osf3* | osf4* | osf5*)
6060
case $cc_basename in
6062
# Kuck and Associates, Inc. (KAI) C++ Compiler
6064
# KCC will only create a shared library if the output file
6065
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6066
# to its proper name (with version) after linking.
6067
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6069
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6070
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6072
# Archives containing C++ object files must be created using
6073
# the KAI C++ compiler.
6075
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6076
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6080
# Rational C++ 2.4.1
6081
# FIXME: insert proper C++ library support
6082
_LT_TAGVAR(ld_shlibs, $1)=no
6087
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6088
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6089
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6092
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6093
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6094
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6095
echo "-hidden">> $lib.exp~
6096
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6098
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6102
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6104
# Commands to make compiler produce verbose output that lists
6105
# what "hidden" libraries, object files and flags are used when
6106
# linking a shared library.
6108
# There doesn't appear to be a way to prevent this compiler from
6109
# explicitly linking system object files so we need to strip them
6110
# from the output so that they don't get included in the library
6112
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6115
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6116
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6119
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6122
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6126
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6127
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6129
# Commands to make compiler produce verbose output that lists
6130
# what "hidden" libraries, object files and flags are used when
6131
# linking a shared library.
6132
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6135
# FIXME: insert proper C++ library support
6136
_LT_TAGVAR(ld_shlibs, $1)=no
6143
# FIXME: insert proper C++ library support
6144
_LT_TAGVAR(ld_shlibs, $1)=no
6148
case $cc_basename in
6151
# FIXME: insert proper C++ library support
6152
_LT_TAGVAR(ld_shlibs, $1)=no
6156
# FIXME: insert proper C++ library support
6157
_LT_TAGVAR(ld_shlibs, $1)=no
6160
# FIXME: insert proper C++ library support
6161
_LT_TAGVAR(ld_shlibs, $1)=no
6167
case $cc_basename in
6169
# Sun C++ 4.2, 5.x and Centerline C++
6170
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6171
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6172
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6173
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6174
$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'
6176
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6177
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6179
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6181
# The compiler driver will combine and reorder linker options,
6182
# but understands `-z linker_flag'.
6183
# Supported since Solaris 2.6 (maybe 2.5.1?)
6184
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6187
_LT_TAGVAR(link_all_deplibs, $1)=yes
6189
output_verbose_link_cmd='echo'
6191
# Archives containing C++ object files must be created using
6192
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6193
# necessary to make sure instantiated templates are included
6195
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6198
# Green Hills C++ Compiler
6199
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6201
# The C++ compiler must be used to create the archive.
6202
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6205
# GNU C++ compiler with Solaris linker
6206
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6207
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6208
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6209
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6210
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6211
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6213
# Commands to make compiler produce verbose output that lists
6214
# what "hidden" libraries, object files and flags are used when
6215
# linking a shared library.
6216
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6218
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6220
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6221
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6222
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6224
# Commands to make compiler produce verbose output that lists
6225
# what "hidden" libraries, object files and flags are used when
6226
# linking a shared library.
6227
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6230
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6232
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6234
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6242
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6243
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6244
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6245
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6246
runpath_var='LD_RUN_PATH'
6248
case $cc_basename in
6250
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6251
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6254
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6255
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6260
sysv5* | sco3.2v5* | sco5v6*)
6261
# Note: We can NOT use -z defs as we might desire, because we do not
6262
# link with -lc, and that would cause any symbols used from libc to
6263
# always be unresolved, which means just about no library would
6264
# ever link correctly. If we're not using GNU ld we use -z text
6265
# though, which does catch some bad symbols but isn't as heavy-handed
6267
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6268
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6269
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6270
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6271
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6272
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6273
_LT_TAGVAR(link_all_deplibs, $1)=yes
6274
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6275
runpath_var='LD_RUN_PATH'
6277
case $cc_basename in
6279
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6280
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6283
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6284
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6290
case $cc_basename in
6292
# NonStop-UX NCC 3.20
6293
# FIXME: insert proper C++ library support
6294
_LT_TAGVAR(ld_shlibs, $1)=no
6297
# FIXME: insert proper C++ library support
6298
_LT_TAGVAR(ld_shlibs, $1)=no
6304
# FIXME: insert proper C++ library support
6305
_LT_TAGVAR(ld_shlibs, $1)=no
6309
# FIXME: insert proper C++ library support
6310
_LT_TAGVAR(ld_shlibs, $1)=no
6314
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6315
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6317
_LT_TAGVAR(GCC, $1)="$GXX"
6318
_LT_TAGVAR(LD, $1)="$LD"
6321
## There is no encapsulation within the following macros, do not change
6322
## the running order or otherwise move them around unless you know exactly
6323
## what you are doing...
6324
_LT_SYS_HIDDEN_LIBDEPS($1)
6325
_LT_COMPILER_PIC($1)
6326
_LT_COMPILER_C_O($1)
6327
_LT_COMPILER_FILE_LOCKS($1)
6328
_LT_LINKER_SHLIBS($1)
6329
_LT_SYS_DYNAMIC_LINKER($1)
6330
_LT_LINKER_HARDCODE_LIBPATH($1)
6333
fi # test -n "$compiler"
6339
with_gnu_ld=$lt_save_with_gnu_ld
6340
lt_cv_path_LDCXX=$lt_cv_path_LD
6341
lt_cv_path_LD=$lt_save_path_LD
6342
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6343
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6344
fi # test "$_lt_caught_CXX_error" != yes
6347
])# _LT_LANG_CXX_CONFIG
6350
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8190
])# AC_LIBTOOL_PROG_LD_SHLIBS
8193
# _LT_AC_FILE_LTDLL_C
8194
# -------------------
8195
# Be careful that the start marker always follows a newline.
8196
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8197
# /* ltdll.c starts here */
8198
# #define WIN32_LEAN_AND_MEAN
8199
# #include <windows.h>
8200
# #undef WIN32_LEAN_AND_MEAN
8201
# #include <stdio.h>
8203
# #ifndef __CYGWIN__
8204
# # ifdef __CYGWIN32__
8205
# # define __CYGWIN__ __CYGWIN32__
8209
# #ifdef __cplusplus
8212
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8213
# #ifdef __cplusplus
8218
# #include <cygwin/cygwin_dll.h>
8219
# DECLARE_CYGWIN_DLL( DllMain );
8221
# HINSTANCE __hDllInstance_base;
8224
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8226
# __hDllInstance_base = hInst;
8229
# /* ltdll.c ends here */
8230
])# _LT_AC_FILE_LTDLL_C
8233
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6351
8234
# ---------------------------------
6352
# Figure out "hidden" library dependencies from verbose
6353
# compiler output when linking a shared library.
6354
# Parse the compiler output and extract the necessary
6355
# objects, libraries and library flags.
6356
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6357
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6358
# Dependencies to place before and after the object being linked:
6359
_LT_TAGVAR(predep_objects, $1)=
6360
_LT_TAGVAR(postdep_objects, $1)=
6361
_LT_TAGVAR(predeps, $1)=
6362
_LT_TAGVAR(postdeps, $1)=
6363
_LT_TAGVAR(compiler_lib_search_path, $1)=
6365
dnl we can't use the lt_simple_compile_test_code here,
6366
dnl because it contains code intended for an executable,
6367
dnl not a library. It's possible we should let each
6368
dnl tag define a new lt_????_link_test_code variable,
6369
dnl but it's only used here...
6370
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6372
void foo (void) { a = 0; }
6374
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6378
Foo (void) { a = 0; }
6383
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6391
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6399
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6402
public void bar (void) {
6408
dnl Parse the compiler output and extract the necessary
6409
dnl objects, libraries and library flags.
6410
if AC_TRY_EVAL(ac_compile); then
6411
# Parse the compiler output and extract the necessary
6412
# objects, libraries and library flags.
6414
# Sentinel used to keep track of whether or not we are before
6415
# the conftest object file.
6416
pre_test_object_deps_done=no
6418
for p in `eval "$output_verbose_link_cmd"`; do
6422
# Some compilers place space between "-{L,R}" and the path.
6424
if test $p = "-L" ||
6425
test $p = "-R"; then
6432
if test "$pre_test_object_deps_done" = no; then
6435
# Internal compiler library paths should come after those
6436
# provided the user. The postdeps already come after the
6437
# user supplied libs so there is no need to process them.
6438
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6439
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6441
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6444
# The "-l" case would never come before the object being
6445
# linked, so don't bother handling this case.
6448
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6449
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
6451
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6457
# This assumes that the test object file only shows up
6458
# once in the compiler output.
6459
if test "$p" = "conftest.$objext"; then
6460
pre_test_object_deps_done=yes
6464
if test "$pre_test_object_deps_done" = no; then
6465
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6466
_LT_TAGVAR(predep_objects, $1)="$p"
6468
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6471
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6472
_LT_TAGVAR(postdep_objects, $1)="$p"
6474
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6479
*) ;; # Ignore the rest.
8235
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8239
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8240
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8241
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8242
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8243
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8244
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
8245
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
8247
# This is just to silence aclocal about the macro not being used
8248
ifelse([AC_DISABLE_FAST_INSTALL])
8250
AC_DEFUN([LT_AC_PROG_GCJ],
8251
[AC_CHECK_TOOL(GCJ, gcj, no)
8252
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8256
AC_DEFUN([LT_AC_PROG_RC],
8257
[AC_CHECK_TOOL(RC, windres, no)
8261
# Cheap backport of AS_EXECUTABLE_P and required macros
8262
# from Autoconf 2.59; we should not use $as_executable_p directly.
8266
m4_ifndef([_AS_TEST_PREPARE],
8267
[m4_defun([_AS_TEST_PREPARE],
8268
[if test -x / >/dev/null 2>&1; then
8269
as_executable_p='test -x'
6487
echo "libtool.m4: error: problem compiling $1 test program"
6490
$RM -f confest.$objext
6492
# PORTME: override above test on systems where it is broken
6496
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6497
# hack all around it, let's just trust "g++" to DTRT.
6498
_LT_TAGVAR(predep_objects,$1)=
6499
_LT_TAGVAR(postdep_objects,$1)=
6500
_LT_TAGVAR(postdeps,$1)=
6504
case `$CC -V 2>&1 | sed 5q` in
6508
# The more standards-conforming stlport4 library is
6509
# incompatible with the Cstd library. Avoid specifying
6510
# it if it's in CXXFLAGS. Ignore libCrun as
6511
# -library=stlport4 depends on it.
6512
case " $CXX $CXXFLAGS " in
6513
*" -library=stlport4 "*)
6514
solaris_use_stlport4=yes
6518
if test "$solaris_use_stlport4" != yes; then
6519
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6526
case $cc_basename in
6528
# The more standards-conforming stlport4 library is
6529
# incompatible with the Cstd library. Avoid specifying
6530
# it if it's in CXXFLAGS. Ignore libCrun as
6531
# -library=stlport4 depends on it.
6532
case " $CXX $CXXFLAGS " in
6533
*" -library=stlport4 "*)
6534
solaris_use_stlport4=yes
6538
# Adding this requires a known-good setup of shared libraries for
6539
# Sun compiler versions before 5.6, else PIC objects from an old
6540
# archive will be linked into the output, leading to subtle bugs.
6541
if test "$solaris_use_stlport4" != yes; then
6542
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6550
case " $_LT_TAGVAR(postdeps, $1) " in
6551
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6553
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
6554
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6555
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6557
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6558
[The directories searched by this compiler when creating a shared library])
6559
_LT_TAGDECL([], [predep_objects], [1],
6560
[Dependencies to place before and after the objects being linked to
6561
create a shared library])
6562
_LT_TAGDECL([], [postdep_objects], [1])
6563
_LT_TAGDECL([], [predeps], [1])
6564
_LT_TAGDECL([], [postdeps], [1])
6565
_LT_TAGDECL([], [compiler_lib_search_path], [1],
6566
[The library search path used internally by the compiler when linking
6568
])# _LT_SYS_HIDDEN_LIBDEPS
6573
# Since AC_PROG_F77 is broken, in that it returns the empty string
6574
# if there is no fortran compiler, we have our own version here.
6575
m4_defun([_LT_PROG_F77],
6577
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6579
if test -z "$F77" || test "X$F77" = "Xno"; then
6582
popdef([AC_MSG_ERROR])
6585
dnl aclocal-1.4 backwards compatibility:
6586
dnl AC_DEFUN([_LT_PROG_F77], [])
6589
# _LT_LANG_F77_CONFIG([TAG])
6590
# --------------------------
6591
# Ensure that the configuration variables for a Fortran 77 compiler are
6592
# suitably defined. These variables are subsequently used by _LT_CONFIG
6593
# to write the compiler configuration to `libtool'.
6594
m4_defun([_LT_LANG_F77_CONFIG],
6595
[AC_REQUIRE([_LT_PROG_F77])dnl
6596
AC_LANG_PUSH(Fortran 77)
6598
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6599
_LT_TAGVAR(allow_undefined_flag, $1)=
6600
_LT_TAGVAR(always_export_symbols, $1)=no
6601
_LT_TAGVAR(archive_expsym_cmds, $1)=
6602
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6603
_LT_TAGVAR(hardcode_direct, $1)=no
6604
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6605
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6606
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6607
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6608
_LT_TAGVAR(hardcode_minus_L, $1)=no
6609
_LT_TAGVAR(hardcode_automatic, $1)=no
6610
_LT_TAGVAR(inherit_rpath, $1)=no
6611
_LT_TAGVAR(module_cmds, $1)=
6612
_LT_TAGVAR(module_expsym_cmds, $1)=
6613
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6614
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6615
_LT_TAGVAR(no_undefined_flag, $1)=
6616
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6617
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6619
# Source file extension for f77 test sources.
6622
# Object file extension for compiled f77 test sources.
6624
_LT_TAGVAR(objext, $1)=$objext
6626
# No sense in running all these tests if we already determined that
6627
# the F77 compiler isn't working. Some variables (like enable_shared)
6628
# are currently assumed to apply to all compilers on this platform,
6629
# and will be corrupted by setting them based on a non-working compiler.
6630
if test "$_lt_disable_F77" != yes; then
6631
# Code to be used in simple compile tests
6632
lt_simple_compile_test_code="\
6638
# Code to be used in simple link tests
6639
lt_simple_link_test_code="\
6644
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6647
# save warnings/boilerplate of simple test code
6648
_LT_COMPILER_BOILERPLATE
6649
_LT_LINKER_BOILERPLATE
6651
# Allow CC to be a program name with arguments.
6656
_LT_TAGVAR(compiler, $1)=$CC
6657
_LT_CC_BASENAME([$compiler])
6659
if test -n "$compiler"; then
6660
AC_MSG_CHECKING([if libtool supports shared libraries])
6661
AC_MSG_RESULT([$can_build_shared])
6663
AC_MSG_CHECKING([whether to build shared libraries])
6664
test "$can_build_shared" = "no" && enable_shared=no
6666
# On AIX, shared libraries and static libraries use the same namespace, and
6667
# are all built from PIC.
6670
test "$enable_shared" = yes && enable_static=no
6671
if test -n "$RANLIB"; then
6672
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6673
postinstall_cmds='$RANLIB $lib'
6677
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6678
test "$enable_shared" = yes && enable_static=no
6682
AC_MSG_RESULT([$enable_shared])
6684
AC_MSG_CHECKING([whether to build static libraries])
6685
# Make sure either enable_shared or enable_static is yes.
6686
test "$enable_shared" = yes || enable_static=yes
6687
AC_MSG_RESULT([$enable_static])
6689
_LT_TAGVAR(GCC, $1)="$G77"
6690
_LT_TAGVAR(LD, $1)="$LD"
6693
## There is no encapsulation within the following macros, do not change
6694
## the running order or otherwise move them around unless you know exactly
6695
## what you are doing...
6696
_LT_COMPILER_PIC($1)
6697
_LT_COMPILER_C_O($1)
6698
_LT_COMPILER_FILE_LOCKS($1)
6699
_LT_LINKER_SHLIBS($1)
6700
_LT_SYS_DYNAMIC_LINKER($1)
6701
_LT_LINKER_HARDCODE_LIBPATH($1)
6704
fi # test -n "$compiler"
6708
fi # test "$_lt_disable_F77" != yes
6711
])# _LT_LANG_F77_CONFIG
6716
# Since AC_PROG_FC is broken, in that it returns the empty string
6717
# if there is no fortran compiler, we have our own version here.
6718
m4_defun([_LT_PROG_FC],
6720
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6722
if test -z "$FC" || test "X$FC" = "Xno"; then
6725
popdef([AC_MSG_ERROR])
6728
dnl aclocal-1.4 backwards compatibility:
6729
dnl AC_DEFUN([_LT_PROG_FC], [])
6732
# _LT_LANG_FC_CONFIG([TAG])
6733
# -------------------------
6734
# Ensure that the configuration variables for a Fortran compiler are
6735
# suitably defined. These variables are subsequently used by _LT_CONFIG
6736
# to write the compiler configuration to `libtool'.
6737
m4_defun([_LT_LANG_FC_CONFIG],
6738
[AC_REQUIRE([_LT_PROG_FC])dnl
6739
AC_LANG_PUSH(Fortran)
6741
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6742
_LT_TAGVAR(allow_undefined_flag, $1)=
6743
_LT_TAGVAR(always_export_symbols, $1)=no
6744
_LT_TAGVAR(archive_expsym_cmds, $1)=
6745
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6746
_LT_TAGVAR(hardcode_direct, $1)=no
6747
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6748
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6749
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6750
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6751
_LT_TAGVAR(hardcode_minus_L, $1)=no
6752
_LT_TAGVAR(hardcode_automatic, $1)=no
6753
_LT_TAGVAR(inherit_rpath, $1)=no
6754
_LT_TAGVAR(module_cmds, $1)=
6755
_LT_TAGVAR(module_expsym_cmds, $1)=
6756
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6757
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6758
_LT_TAGVAR(no_undefined_flag, $1)=
6759
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6760
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6762
# Source file extension for fc test sources.
6763
ac_ext=${ac_fc_srcext-f}
6765
# Object file extension for compiled fc test sources.
6767
_LT_TAGVAR(objext, $1)=$objext
6769
# No sense in running all these tests if we already determined that
6770
# the FC compiler isn't working. Some variables (like enable_shared)
6771
# are currently assumed to apply to all compilers on this platform,
6772
# and will be corrupted by setting them based on a non-working compiler.
6773
if test "$_lt_disable_FC" != yes; then
6774
# Code to be used in simple compile tests
6775
lt_simple_compile_test_code="\
6781
# Code to be used in simple link tests
6782
lt_simple_link_test_code="\
6787
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6790
# save warnings/boilerplate of simple test code
6791
_LT_COMPILER_BOILERPLATE
6792
_LT_LINKER_BOILERPLATE
6794
# Allow CC to be a program name with arguments.
6799
GCC=$ac_cv_fc_compiler_gnu
6801
_LT_TAGVAR(compiler, $1)=$CC
6802
_LT_CC_BASENAME([$compiler])
6804
if test -n "$compiler"; then
6805
AC_MSG_CHECKING([if libtool supports shared libraries])
6806
AC_MSG_RESULT([$can_build_shared])
6808
AC_MSG_CHECKING([whether to build shared libraries])
6809
test "$can_build_shared" = "no" && enable_shared=no
6811
# On AIX, shared libraries and static libraries use the same namespace, and
6812
# are all built from PIC.
6815
test "$enable_shared" = yes && enable_static=no
6816
if test -n "$RANLIB"; then
6817
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6818
postinstall_cmds='$RANLIB $lib'
6822
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6823
test "$enable_shared" = yes && enable_static=no
6827
AC_MSG_RESULT([$enable_shared])
6829
AC_MSG_CHECKING([whether to build static libraries])
6830
# Make sure either enable_shared or enable_static is yes.
6831
test "$enable_shared" = yes || enable_static=yes
6832
AC_MSG_RESULT([$enable_static])
6834
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6835
_LT_TAGVAR(LD, $1)="$LD"
6838
## There is no encapsulation within the following macros, do not change
6839
## the running order or otherwise move them around unless you know exactly
6840
## what you are doing...
6841
_LT_SYS_HIDDEN_LIBDEPS($1)
6842
_LT_COMPILER_PIC($1)
6843
_LT_COMPILER_C_O($1)
6844
_LT_COMPILER_FILE_LOCKS($1)
6845
_LT_LINKER_SHLIBS($1)
6846
_LT_SYS_DYNAMIC_LINKER($1)
6847
_LT_LINKER_HARDCODE_LIBPATH($1)
6850
fi # test -n "$compiler"
6854
fi # test "$_lt_disable_FC" != yes
6857
])# _LT_LANG_FC_CONFIG
6860
# _LT_LANG_GCJ_CONFIG([TAG])
6861
# --------------------------
6862
# Ensure that the configuration variables for the GNU Java Compiler compiler
6863
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6864
# to write the compiler configuration to `libtool'.
6865
m4_defun([_LT_LANG_GCJ_CONFIG],
6866
[AC_REQUIRE([LT_PROG_GCJ])dnl
6869
# Source file extension for Java test sources.
6872
# Object file extension for compiled Java test sources.
6874
_LT_TAGVAR(objext, $1)=$objext
6876
# Code to be used in simple compile tests
6877
lt_simple_compile_test_code="class foo {}"
6879
# Code to be used in simple link tests
6880
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6882
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6885
# save warnings/boilerplate of simple test code
6886
_LT_COMPILER_BOILERPLATE
6887
_LT_LINKER_BOILERPLATE
6889
# Allow CC to be a program name with arguments.
6895
_LT_TAGVAR(compiler, $1)=$CC
6896
_LT_TAGVAR(LD, $1)="$LD"
6897
_LT_CC_BASENAME([$compiler])
6899
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6900
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6902
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6904
if test -n "$compiler"; then
6905
_LT_COMPILER_NO_RTTI($1)
6906
_LT_COMPILER_PIC($1)
6907
_LT_COMPILER_C_O($1)
6908
_LT_COMPILER_FILE_LOCKS($1)
6909
_LT_LINKER_SHLIBS($1)
6910
_LT_LINKER_HARDCODE_LIBPATH($1)
6919
])# _LT_LANG_GCJ_CONFIG
6922
# _LT_LANG_RC_CONFIG([TAG])
6923
# -------------------------
6924
# Ensure that the configuration variables for the Windows resource compiler
6925
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6926
# to write the compiler configuration to `libtool'.
6927
m4_defun([_LT_LANG_RC_CONFIG],
6928
[AC_REQUIRE([LT_PROG_RC])dnl
6931
# Source file extension for RC test sources.
6934
# Object file extension for compiled RC test sources.
6936
_LT_TAGVAR(objext, $1)=$objext
6938
# Code to be used in simple compile tests
6939
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6941
# Code to be used in simple link tests
6942
lt_simple_link_test_code="$lt_simple_compile_test_code"
6944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6947
# save warnings/boilerplate of simple test code
6948
_LT_COMPILER_BOILERPLATE
6949
_LT_LINKER_BOILERPLATE
6951
# Allow CC to be a program name with arguments.
6957
_LT_TAGVAR(compiler, $1)=$CC
6958
_LT_CC_BASENAME([$compiler])
6959
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6961
if test -n "$compiler"; then
6969
])# _LT_LANG_RC_CONFIG
6974
AC_DEFUN([LT_PROG_GCJ],
6975
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6976
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6977
[AC_CHECK_TOOL(GCJ, gcj,)
6978
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6979
AC_SUBST(GCJFLAGS)])])[]dnl
6983
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6984
dnl aclocal-1.4 backwards compatibility:
6985
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6990
AC_DEFUN([LT_PROG_RC],
6991
[AC_CHECK_TOOL(RC, windres,)
6995
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6996
dnl aclocal-1.4 backwards compatibility:
6997
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7002
# If we don't have a new enough Autoconf to choose the best grep
7003
# available, choose the one first in the user's PATH.
7004
m4_defun([_LT_DECL_EGREP],
7005
[AC_REQUIRE([AC_PROG_EGREP])dnl
7006
AC_REQUIRE([AC_PROG_FGREP])dnl
7007
test -z "$GREP" && GREP=grep
7008
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7009
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7010
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7011
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7018
# If we don't have a new enough Autoconf to choose the best objdump
7019
# available, choose the one first in the user's PATH.
7020
m4_defun([_LT_DECL_OBJDUMP],
7021
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7022
test -z "$OBJDUMP" && OBJDUMP=objdump
7023
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7030
# Check for a fully-functional sed program, that truncates
7031
# as few characters as possible. Prefer GNU sed if found.
7032
m4_defun([_LT_DECL_SED],
7034
test -z "$SED" && SED=sed
7035
Xsed="$SED -e 1s/^X//"
7036
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7037
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7038
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7041
m4_ifndef([AC_PROG_SED], [
8271
as_executable_p='test -f'
8273
])])# _AS_TEST_PREPARE
8277
# Check whether a file is executable.
8278
m4_ifndef([AS_EXECUTABLE_P],
8279
[m4_defun([AS_EXECUTABLE_P],
8280
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
8281
$as_executable_p $1[]dnl
8282
])])# AS_EXECUTABLE_P
7042
8284
# NOTE: This macro has been submitted for inclusion into #
7043
8285
# GNU Autoconf as AC_PROG_SED. When it is available in #
7044
8286
# a released version of Autoconf we should remove this #
7045
8287
# macro and use it instead. #
7047
m4_defun([AC_PROG_SED],
8290
# Check for a fully-functional sed program, that truncates
8291
# as few characters as possible. Prefer GNU sed if found.
8292
AC_DEFUN([LT_AC_PROG_SED],
7048
8293
[AC_MSG_CHECKING([for a sed that does not truncate output])
7049
8294
AC_CACHE_VAL(lt_cv_path_SED,
7050
8295
[# Loop through the user's path and test for sed and gsed.
7097
8342
SED=$lt_cv_path_SED
7098
8343
AC_SUBST([SED])
7099
8344
AC_MSG_RESULT([$SED])
7104
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7105
dnl aclocal-1.4 backwards compatibility:
7106
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7109
# _LT_CHECK_SHELL_FEATURES
7110
# ------------------------
7111
# Find out whether the shell is Bourne or XSI compatible,
7112
# or has some other useful features.
7113
m4_defun([_LT_CHECK_SHELL_FEATURES],
7114
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7115
# Try some XSI features
7118
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7120
&& eval 'test $(( 1 + 1 )) -eq 2 \
7121
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7123
AC_MSG_RESULT([$xsi_shell])
7124
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7126
AC_MSG_CHECKING([whether the shell understands "+="])
7128
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7130
&& lt_shell_append=yes
7131
AC_MSG_RESULT([$lt_shell_append])
7132
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7134
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7139
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7141
# test EBCDIC or ASCII
7142
case `echo X|tr X '\101'` in
7143
A) # ASCII based system
7144
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7145
lt_SP2NL='tr \040 \012'
7146
lt_NL2SP='tr \015\012 \040\040'
7148
*) # EBCDIC based system
7149
lt_SP2NL='tr \100 \n'
7150
lt_NL2SP='tr \r\n \100\100'
7153
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7154
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7155
])# _LT_CHECK_SHELL_FEATURES
7158
# _LT_PROG_XSI_SHELLFNS
7159
# ---------------------
7160
# Bourne and XSI compatible variants of some useful shell functions.
7161
m4_defun([_LT_PROG_XSI_SHELLFNS],
7164
cat << \_LT_EOF >> "$cfgfile"
7166
# func_dirname file append nondir_replacement
7167
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7168
# otherwise set result to NONDIR_REPLACEMENT.
7172
*/*) func_dirname_result="${1%/*}${2}" ;;
7173
* ) func_dirname_result="${3}" ;;
7177
# func_basename file
7180
func_basename_result="${1##*/}"
7183
# func_dirname_and_basename file append nondir_replacement
7184
# perform func_basename and func_dirname in a single function
7186
# dirname: Compute the dirname of FILE. If nonempty,
7187
# add APPEND to the result, otherwise set result
7188
# to NONDIR_REPLACEMENT.
7189
# value returned in "$func_dirname_result"
7190
# basename: Compute filename of FILE.
7191
# value retuned in "$func_basename_result"
7192
# Implementation must be kept synchronized with func_dirname
7193
# and func_basename. For efficiency, we do not delegate to
7194
# those functions but instead duplicate the functionality here.
7195
func_dirname_and_basename ()
7198
*/*) func_dirname_result="${1%/*}${2}" ;;
7199
* ) func_dirname_result="${3}" ;;
7201
func_basename_result="${1##*/}"
7204
# func_stripname prefix suffix name
7205
# strip PREFIX and SUFFIX off of NAME.
7206
# PREFIX and SUFFIX must not contain globbing or regex special
7207
# characters, hashes, percent signs, but SUFFIX may contain a leading
7208
# dot (in which case that matches only a dot).
7211
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7212
# positional parameters, so assign one to ordinary parameter first.
7213
func_stripname_result=${3}
7214
func_stripname_result=${func_stripname_result#"${1}"}
7215
func_stripname_result=${func_stripname_result%"${2}"}
7221
func_opt_split_opt=${1%%=*}
7222
func_opt_split_arg=${1#*=}
7229
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7230
*) func_lo2o_result=${1} ;;
7234
# func_xform libobj-or-source
7237
func_xform_result=${1%.*}.lo
7240
# func_arith arithmetic-term...
7243
func_arith_result=$(( $[*] ))
7247
# STRING may not start with a hyphen.
7250
func_len_result=${#1}
7255
*) # Bourne compatible functions.
7256
cat << \_LT_EOF >> "$cfgfile"
7258
# func_dirname file append nondir_replacement
7259
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7260
# otherwise set result to NONDIR_REPLACEMENT.
7263
# Extract subdirectory from the argument.
7264
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7265
if test "X$func_dirname_result" = "X${1}"; then
7266
func_dirname_result="${3}"
7268
func_dirname_result="$func_dirname_result${2}"
7272
# func_basename file
7275
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7278
dnl func_dirname_and_basename
7279
dnl A portable version of this function is already defined in general.m4sh
7280
dnl so there is no need for it here.
7282
# func_stripname prefix suffix name
7283
# strip PREFIX and SUFFIX off of NAME.
7284
# PREFIX and SUFFIX must not contain globbing or regex special
7285
# characters, hashes, percent signs, but SUFFIX may contain a leading
7286
# dot (in which case that matches only a dot).
7287
# func_strip_suffix prefix name
7291
.*) func_stripname_result=`$ECHO "X${3}" \
7292
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7293
*) func_stripname_result=`$ECHO "X${3}" \
7294
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7299
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7300
my_sed_long_arg='1s/^-[[^=]]*=//'
7305
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7306
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7312
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7315
# func_xform libobj-or-source
7318
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7321
# func_arith arithmetic-term...
7324
func_arith_result=`expr "$[@]"`
7328
# STRING may not start with a hyphen.
7331
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7337
case $lt_shell_append in
7339
cat << \_LT_EOF >> "$cfgfile"
7341
# func_append var value
7342
# Append VALUE to the end of shell variable VAR.
7350
cat << \_LT_EOF >> "$cfgfile"
7352
# func_append var value
7353
# Append VALUE to the end of shell variable VAR.
7356
eval "$[1]=\$$[1]\$[2]"
7364
# Helper functions for option handling. -*- Autoconf -*-
7366
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7367
# Written by Gary V. Vaughan, 2004
7369
# This file is free software; the Free Software Foundation gives
7370
# unlimited permission to copy and/or distribute it, with or without
7371
# modifications, as long as this notice is preserved.
7373
# serial 6 ltoptions.m4
7375
# This is to help aclocal find these macros, as it can't see m4_define.
7376
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7379
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7380
# ------------------------------------------
7381
m4_define([_LT_MANGLE_OPTION],
7382
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7385
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7386
# ---------------------------------------
7387
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7388
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
7390
m4_define([_LT_SET_OPTION],
7391
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7392
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7393
_LT_MANGLE_DEFUN([$1], [$2]),
7394
[m4_warning([Unknown $1 option `$2'])])[]dnl
7398
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7399
# ------------------------------------------------------------
7400
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7401
m4_define([_LT_IF_OPTION],
7402
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7405
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7406
# -------------------------------------------------------
7407
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7409
m4_define([_LT_UNLESS_OPTIONS],
7410
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7411
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7412
[m4_define([$0_found])])])[]dnl
7413
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7418
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7419
# ----------------------------------------
7420
# OPTION-LIST is a space-separated list of Libtool options associated
7421
# with MACRO-NAME. If any OPTION has a matching handler declared with
7422
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7423
# the unknown option and exit.
7424
m4_defun([_LT_SET_OPTIONS],
7426
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7427
[_LT_SET_OPTION([$1], _LT_Option)])
7429
m4_if([$1],[LT_INIT],[
7431
dnl Simply set some default values (i.e off) if boolean options were not
7433
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7435
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7438
dnl If no reference was made to various pairs of opposing options, then
7439
dnl we run the default mode handler for the pair. For example, if neither
7440
dnl `shared' nor `disable-shared' was passed, we enable building of shared
7441
dnl archives by default:
7442
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7443
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7444
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7445
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7446
[_LT_ENABLE_FAST_INSTALL])
7452
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7453
# -----------------------------------------
7454
m4_define([_LT_MANGLE_DEFUN],
7455
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7458
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7459
# -----------------------------------------------
7460
m4_define([LT_OPTION_DEFINE],
7461
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7462
])# LT_OPTION_DEFINE
7467
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7470
AU_DEFUN([AC_LIBTOOL_DLOPEN],
7471
[_LT_SET_OPTION([LT_INIT], [dlopen])
7472
AC_DIAGNOSE([obsolete],
7473
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7474
put the `dlopen' option into LT_INIT's first parameter.])
7477
dnl aclocal-1.4 backwards compatibility:
7478
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7483
# Declare package support for building win32 dll's.
7484
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7485
[enable_win32_dll=yes
7488
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7489
AC_CHECK_TOOL(AS, as, false)
7490
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7491
AC_CHECK_TOOL(OBJDUMP, objdump, false)
7495
test -z "$AS" && AS=as
7496
_LT_DECL([], [AS], [0], [Assembler program])dnl
7498
test -z "$DLLTOOL" && DLLTOOL=dlltool
7499
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7501
test -z "$OBJDUMP" && OBJDUMP=objdump
7502
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7505
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7506
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7507
_LT_SET_OPTION([LT_INIT], [win32-dll])
7508
AC_DIAGNOSE([obsolete],
7509
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7510
put the `win32-dll' option into LT_INIT's first parameter.])
7513
dnl aclocal-1.4 backwards compatibility:
7514
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7517
# _LT_ENABLE_SHARED([DEFAULT])
7518
# ----------------------------
7519
# implement the --enable-shared flag, and supports the `shared' and
7520
# `disable-shared' LT_INIT options.
7521
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7522
m4_define([_LT_ENABLE_SHARED],
7523
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7524
AC_ARG_ENABLE([shared],
7525
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7526
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7527
[p=${PACKAGE-default}
7529
yes) enable_shared=yes ;;
7530
no) enable_shared=no ;;
7533
# Look at the argument we got. We use all the common list separators.
7534
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535
for pkg in $enableval; do
7537
if test "X$pkg" = "X$p"; then
7544
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7546
_LT_DECL([build_libtool_libs], [enable_shared], [0],
7547
[Whether or not to build shared libraries])
7548
])# _LT_ENABLE_SHARED
7550
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7551
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7554
AC_DEFUN([AC_ENABLE_SHARED],
7555
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7558
AC_DEFUN([AC_DISABLE_SHARED],
7559
[_LT_SET_OPTION([LT_INIT], [disable-shared])
7562
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7563
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7565
dnl aclocal-1.4 backwards compatibility:
7566
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7567
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7571
# _LT_ENABLE_STATIC([DEFAULT])
7572
# ----------------------------
7573
# implement the --enable-static flag, and support the `static' and
7574
# `disable-static' LT_INIT options.
7575
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7576
m4_define([_LT_ENABLE_STATIC],
7577
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7578
AC_ARG_ENABLE([static],
7579
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7580
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7581
[p=${PACKAGE-default}
7583
yes) enable_static=yes ;;
7584
no) enable_static=no ;;
7587
# Look at the argument we got. We use all the common list separators.
7588
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7589
for pkg in $enableval; do
7591
if test "X$pkg" = "X$p"; then
7598
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7600
_LT_DECL([build_old_libs], [enable_static], [0],
7601
[Whether or not to build static libraries])
7602
])# _LT_ENABLE_STATIC
7604
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7605
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7608
AC_DEFUN([AC_ENABLE_STATIC],
7609
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7612
AC_DEFUN([AC_DISABLE_STATIC],
7613
[_LT_SET_OPTION([LT_INIT], [disable-static])
7616
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7617
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7619
dnl aclocal-1.4 backwards compatibility:
7620
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7621
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7625
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
7626
# ----------------------------------
7627
# implement the --enable-fast-install flag, and support the `fast-install'
7628
# and `disable-fast-install' LT_INIT options.
7629
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7630
m4_define([_LT_ENABLE_FAST_INSTALL],
7631
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7632
AC_ARG_ENABLE([fast-install],
7633
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7634
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7635
[p=${PACKAGE-default}
7637
yes) enable_fast_install=yes ;;
7638
no) enable_fast_install=no ;;
7640
enable_fast_install=no
7641
# Look at the argument we got. We use all the common list separators.
7642
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7643
for pkg in $enableval; do
7645
if test "X$pkg" = "X$p"; then
7646
enable_fast_install=yes
7652
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7654
_LT_DECL([fast_install], [enable_fast_install], [0],
7655
[Whether or not to optimize for fast installation])dnl
7656
])# _LT_ENABLE_FAST_INSTALL
7658
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7659
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7662
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7663
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7664
AC_DIAGNOSE([obsolete],
7665
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7666
the `fast-install' option into LT_INIT's first parameter.])
7669
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7670
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7671
AC_DIAGNOSE([obsolete],
7672
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7673
the `disable-fast-install' option into LT_INIT's first parameter.])
7676
dnl aclocal-1.4 backwards compatibility:
7677
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7678
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7681
# _LT_WITH_PIC([MODE])
7682
# --------------------
7683
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
7685
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7686
m4_define([_LT_WITH_PIC],
7688
[AS_HELP_STRING([--with-pic],
7689
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7690
[pic_mode="$withval"],
7693
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7695
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7698
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7699
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7702
AU_DEFUN([AC_LIBTOOL_PICMODE],
7703
[_LT_SET_OPTION([LT_INIT], [pic-only])
7704
AC_DIAGNOSE([obsolete],
7705
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7706
put the `pic-only' option into LT_INIT's first parameter.])
7709
dnl aclocal-1.4 backwards compatibility:
7710
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7713
m4_define([_LTDL_MODE], [])
7714
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7715
[m4_define([_LTDL_MODE], [nonrecursive])])
7716
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7717
[m4_define([_LTDL_MODE], [recursive])])
7718
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7719
[m4_define([_LTDL_MODE], [subproject])])
7721
m4_define([_LTDL_TYPE], [])
7722
LT_OPTION_DEFINE([LTDL_INIT], [installable],
7723
[m4_define([_LTDL_TYPE], [installable])])
7724
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7725
[m4_define([_LTDL_TYPE], [convenience])])
7727
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7729
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7730
# Written by Gary V. Vaughan, 2004
7732
# This file is free software; the Free Software Foundation gives
7733
# unlimited permission to copy and/or distribute it, with or without
7734
# modifications, as long as this notice is preserved.
7736
# serial 6 ltsugar.m4
7738
# This is to help aclocal find these macros, as it can't see m4_define.
7739
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7742
# lt_join(SEP, ARG1, [ARG2...])
7743
# -----------------------------
7744
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7745
# associated separator.
7746
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7747
# versions in m4sugar had bugs.
7748
m4_define([lt_join],
7749
[m4_if([$#], [1], [],
7751
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7752
m4_define([_lt_join],
7753
[m4_if([$#$2], [2], [],
7754
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7760
# Manipulate m4 lists.
7761
# These macros are necessary as long as will still need to support
7762
# Autoconf-2.59 which quotes differently.
7763
m4_define([lt_car], [[$1]])
7765
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7767
[m4_dquote(m4_shift($@))])])
7768
m4_define([lt_unquote], $1)
7771
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
7772
# ------------------------------------------
7773
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7774
# Note that neither SEPARATOR nor STRING are expanded; they are appended
7775
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7776
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
7777
# than defined and empty).
7779
# This macro is needed until we can rely on Autoconf 2.62, since earlier
7780
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7781
m4_define([lt_append],
7783
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7787
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7788
# ----------------------------------------------------------
7789
# Produce a SEP delimited list of all paired combinations of elements of
7790
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7791
# has the form PREFIXmINFIXSUFFIXn.
7792
# Needed until we can rely on m4_combine added in Autoconf 2.62.
7793
m4_define([lt_combine],
7794
[m4_if(m4_eval([$# > 3]), [1],
7795
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7796
[[m4_foreach([_Lt_prefix], [$2],
7797
[m4_foreach([_Lt_suffix],
7798
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7799
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7802
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7803
# -----------------------------------------------------------------------
7804
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7805
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7806
m4_define([lt_if_append_uniq],
7808
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7809
[lt_append([$1], [$2], [$3])$4],
7811
[lt_append([$1], [$2], [$3])$4])])
7814
# lt_dict_add(DICT, KEY, VALUE)
7815
# -----------------------------
7816
m4_define([lt_dict_add],
7817
[m4_define([$1($2)], [$3])])
7820
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7821
# --------------------------------------------
7822
m4_define([lt_dict_add_subkey],
7823
[m4_define([$1($2:$3)], [$4])])
7826
# lt_dict_fetch(DICT, KEY, [SUBKEY])
7827
# ----------------------------------
7828
m4_define([lt_dict_fetch],
7830
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7831
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7834
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7835
# -----------------------------------------------------------------
7836
m4_define([lt_if_dict_fetch],
7837
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7842
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7843
# --------------------------------------------------------------
7844
m4_define([lt_dict_filter],
7845
[m4_if([$5], [], [],
7846
[lt_join(m4_quote(m4_default([$4], [[, ]])),
7847
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7848
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7851
# ltversion.m4 -- version numbers -*- Autoconf -*-
7853
# Copyright (C) 2004 Free Software Foundation, Inc.
7854
# Written by Scott James Remnant, 2004
7856
# This file is free software; the Free Software Foundation gives
7857
# unlimited permission to copy and/or distribute it, with or without
7858
# modifications, as long as this notice is preserved.
7860
# Generated from ltversion.in.
7862
# serial 3012 ltversion.m4
7863
# This file is part of GNU Libtool
7865
m4_define([LT_PACKAGE_VERSION], [2.2.6])
7866
m4_define([LT_PACKAGE_REVISION], [1.3012])
7868
AC_DEFUN([LTVERSION_VERSION],
7869
[macro_version='2.2.6'
7870
macro_revision='1.3012'
7871
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7872
_LT_DECL(, macro_revision, 0)
7875
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7877
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7878
# Written by Scott James Remnant, 2004.
7880
# This file is free software; the Free Software Foundation gives
7881
# unlimited permission to copy and/or distribute it, with or without
7882
# modifications, as long as this notice is preserved.
7884
# serial 4 lt~obsolete.m4
7886
# These exist entirely to fool aclocal when bootstrapping libtool.
7888
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7889
# which have later been changed to m4_define as they aren't part of the
7890
# exported API, or moved to Autoconf or Automake where they belong.
7892
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7893
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7894
# using a macro with the same name in our local m4/libtool.m4 it'll
7895
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7896
# and doesn't know about Autoconf macros at all.)
7898
# So we provide this file, which has a silly filename so it's always
7899
# included after everything else. This provides aclocal with the
7900
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7901
# because those macros already exist, or will be overwritten later.
7902
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7904
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7905
# Yes, that means every name once taken will need to remain here until
7906
# we give up compatibility with versions before 1.7, at which point
7907
# we need to keep only those names which we still refer to.
7909
# This is to help aclocal find these macros, as it can't see m4_define.
7910
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7912
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7913
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7914
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7915
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7916
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7917
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7918
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7919
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7920
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7921
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7922
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7923
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7924
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7925
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7926
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7927
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7928
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7929
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7930
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7931
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7932
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7933
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7934
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7935
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7936
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7937
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7938
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7939
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7940
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7941
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7942
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7943
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7944
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7945
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7946
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7947
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7948
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7949
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7950
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7951
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7952
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7953
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7954
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7955
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7956
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7957
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7958
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7959
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7960
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7961
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7962
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7963
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7964
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7965
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7966
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7968
8347
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8122
8501
])# PKG_CHECK_MODULES
8124
dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
8126
dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
8128
dnl Permission is hereby granted, free of charge, to any person obtaining a
8129
dnl copy of this software and associated documentation files (the
8130
dnl "Software"), to deal in the Software without restriction, including
8131
dnl without limitation the rights to use, copy, modify, merge, publish,
8132
dnl distribute, and/or sell copies of the Software, and to permit persons
8133
dnl to whom the Software is furnished to do so, provided that the above
8134
dnl copyright notice(s) and this permission notice appear in all copies of
8135
dnl the Software and that both the above copyright notice(s) and this
8136
dnl permission notice appear in supporting documentation.
8138
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8139
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8140
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8141
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8142
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8143
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8144
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8145
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8146
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8148
dnl Except as contained in this notice, the name of a copyright holder
8149
dnl shall not be used in advertising or otherwise to promote the sale, use
8150
dnl or other dealings in this Software without prior written authorization
8151
dnl of the copyright holder.
8153
# XORG_MACROS_VERSION(required-version)
8154
# -------------------------------------
8155
# Minimum version: 1.1.0
8157
# If you're using a macro added in Version 1.1 or newer, include this in
8158
# your configure.ac with the minimum required version, such as:
8159
# XORG_MACROS_VERSION(1.1)
8161
# To force at least a version with this macro defined, also add:
8162
# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
8165
# See the "minimum version" comment for each macro you use to see what
8166
# version you require.
8167
AC_DEFUN([XORG_MACROS_VERSION],[
8168
[XORG_MACROS_needed_version=$1
8169
XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
8170
XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
8171
AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
8172
[XORG_MACROS_version=1.2.1
8173
XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
8174
XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
8175
if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
8176
AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
8178
if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
8179
AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
8181
AC_MSG_RESULT([yes, $XORG_MACROS_version])
8182
]) # XORG_MACROS_VERSION
8184
# XORG_PROG_RAWCPP()
8185
# ------------------
8186
# Minimum version: 1.0.0
8188
# Find cpp program and necessary flags for use in pre-processing text files
8189
# such as man pages and config files
8190
AC_DEFUN([XORG_PROG_RAWCPP],[
8191
AC_REQUIRE([AC_PROG_CPP])
8192
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
8193
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
8195
# Check for flag to avoid builtin definitions - assumes unix is predefined,
8196
# which is not the best choice for supporting other OS'es, but covers most
8197
# of the ones we need for now.
8198
AC_MSG_CHECKING([if $RAWCPP requires -undef])
8199
AC_LANG_CONFTEST([Does cpp redefine unix ?])
8200
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
8203
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
8205
AC_MSG_RESULT([yes])
8206
# under Cygwin unix is still defined even with -undef
8207
elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
8208
RAWCPPFLAGS="-undef -ansi"
8209
AC_MSG_RESULT([yes, with -ansi])
8211
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
8214
rm -f conftest.$ac_ext
8216
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
8217
AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
8218
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
8221
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
8222
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
8223
AC_MSG_RESULT([yes])
8225
AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
8228
rm -f conftest.$ac_ext
8229
AC_SUBST(RAWCPPFLAGS)
8230
]) # XORG_PROG_RAWCPP
8232
# XORG_MANPAGE_SECTIONS()
8233
# -----------------------
8234
# Minimum version: 1.0.0
8236
# Determine which sections man pages go in for the different man page types
8237
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
8238
# Not sure if there's any better way than just hardcoding by OS name.
8239
# Override default settings by setting environment variables
8241
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
8242
AC_REQUIRE([AC_CANONICAL_HOST])
8244
if test x$APP_MAN_SUFFIX = x ; then
8247
if test x$APP_MAN_DIR = x ; then
8248
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
8251
if test x$LIB_MAN_SUFFIX = x ; then
8254
if test x$LIB_MAN_DIR = x ; then
8255
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
8258
if test x$FILE_MAN_SUFFIX = x ; then
8260
solaris*) FILE_MAN_SUFFIX=4 ;;
8261
*) FILE_MAN_SUFFIX=5 ;;
8264
if test x$FILE_MAN_DIR = x ; then
8265
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
8268
if test x$MISC_MAN_SUFFIX = x ; then
8270
solaris*) MISC_MAN_SUFFIX=5 ;;
8271
*) MISC_MAN_SUFFIX=7 ;;
8274
if test x$MISC_MAN_DIR = x ; then
8275
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
8278
if test x$DRIVER_MAN_SUFFIX = x ; then
8280
solaris*) DRIVER_MAN_SUFFIX=7 ;;
8281
*) DRIVER_MAN_SUFFIX=4 ;;
8284
if test x$DRIVER_MAN_DIR = x ; then
8285
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
8288
if test x$ADMIN_MAN_SUFFIX = x ; then
8290
solaris*) ADMIN_MAN_SUFFIX=1m ;;
8291
*) ADMIN_MAN_SUFFIX=8 ;;
8294
if test x$ADMIN_MAN_DIR = x ; then
8295
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
8299
AC_SUBST([APP_MAN_SUFFIX])
8300
AC_SUBST([LIB_MAN_SUFFIX])
8301
AC_SUBST([FILE_MAN_SUFFIX])
8302
AC_SUBST([MISC_MAN_SUFFIX])
8303
AC_SUBST([DRIVER_MAN_SUFFIX])
8304
AC_SUBST([ADMIN_MAN_SUFFIX])
8305
AC_SUBST([APP_MAN_DIR])
8306
AC_SUBST([LIB_MAN_DIR])
8307
AC_SUBST([FILE_MAN_DIR])
8308
AC_SUBST([MISC_MAN_DIR])
8309
AC_SUBST([DRIVER_MAN_DIR])
8310
AC_SUBST([ADMIN_MAN_DIR])
8311
]) # XORG_MANPAGE_SECTIONS
8313
# XORG_CHECK_LINUXDOC
8314
# -------------------
8315
# Minimum version: 1.0.0
8317
# Defines the variable MAKE_TEXT if the necessary tools and
8318
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
8319
# Whether or not the necessary tools and files are found can be checked
8320
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
8321
AC_DEFUN([XORG_CHECK_LINUXDOC],[
8322
if test x$XORG_SGML_PATH = x ; then
8323
XORG_SGML_PATH=$prefix/share/sgml
8327
if test x"$cross_compiling" = x"yes" ; then
8330
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
8333
AC_PATH_PROG(LINUXDOC, linuxdoc)
8334
AC_PATH_PROG(PS2PDF, ps2pdf)
8336
AC_MSG_CHECKING([Whether to build documentation])
8338
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
8344
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
8346
AC_MSG_RESULT([$BUILDDOC])
8348
AC_MSG_CHECKING([Whether to build pdf documentation])
8350
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
8356
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
8358
AC_MSG_RESULT([$BUILDPDFDOC])
8360
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
8361
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
8363
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
8369
]) # XORG_CHECK_LINUXDOC
8371
# XORG_CHECK_DOCBOOK
8372
# -------------------
8373
# Minimum version: 1.0.0
8375
# Checks for the ability to build output formats from SGML DocBook source.
8376
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
8377
# indicates whether the necessary tools and files are found and, if set,
8378
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
8379
AC_DEFUN([XORG_CHECK_DOCBOOK],[
8380
if test x$XORG_SGML_PATH = x ; then
8381
XORG_SGML_PATH=$prefix/share/sgml
8389
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
8391
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
8392
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
8393
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
8394
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
8396
AC_MSG_CHECKING([Whether to build text documentation])
8397
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
8398
test x$BUILD_TXTDOC != xno; then
8401
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
8402
AC_MSG_RESULT([$BUILDTXTDOC])
8404
AC_MSG_CHECKING([Whether to build PDF documentation])
8405
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
8406
test x$BUILD_PDFDOC != xno; then
8409
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
8410
AC_MSG_RESULT([$BUILDPDFDOC])
8412
AC_MSG_CHECKING([Whether to build PostScript documentation])
8413
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
8414
test x$BUILD_PSDOC != xno; then
8417
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
8418
AC_MSG_RESULT([$BUILDPSDOC])
8420
AC_MSG_CHECKING([Whether to build HTML documentation])
8421
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
8422
test x$BUILD_HTMLDOC != xno; then
8425
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
8426
AC_MSG_RESULT([$BUILDHTMLDOC])
8428
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
8429
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
8430
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
8431
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
8437
]) # XORG_CHECK_DOCBOOK
8439
# XORG_CHECK_MALLOC_ZERO
8440
# ----------------------
8441
# Minimum version: 1.0.0
8443
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
8444
# malloc(0) returns NULL. Packages should add one of these cflags to
8445
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
8446
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
8447
AC_ARG_ENABLE(malloc0returnsnull,
8448
AC_HELP_STRING([--enable-malloc0returnsnull],
8449
[malloc(0) returns NULL (default: auto)]),
8450
[MALLOC_ZERO_RETURNS_NULL=$enableval],
8451
[MALLOC_ZERO_RETURNS_NULL=auto])
8453
AC_MSG_CHECKING([whether malloc(0) returns NULL])
8454
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
8460
char *m0, *r0, *c0, *p;
8465
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
8467
[MALLOC_ZERO_RETURNS_NULL=yes],
8468
[MALLOC_ZERO_RETURNS_NULL=no])
8470
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
8472
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
8473
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
8474
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
8475
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
8477
MALLOC_ZERO_CFLAGS=""
8478
XMALLOC_ZERO_CFLAGS=""
8479
XTMALLOC_ZERO_CFLAGS=""
8482
AC_SUBST([MALLOC_ZERO_CFLAGS])
8483
AC_SUBST([XMALLOC_ZERO_CFLAGS])
8484
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
8485
]) # XORG_CHECK_MALLOC_ZERO
8489
# Minimum version: 1.1.0
8491
# Sets up flags for source checkers such as lint and sparse if --with-lint
8492
# is specified. (Use --with-lint=sparse for sparse.)
8493
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
8494
# Sets $LINT_FLAGS to flags to pass to source checker
8495
# Sets LINT automake conditional if enabled (default: disabled)
8497
AC_DEFUN([XORG_WITH_LINT],[
8499
# Allow checking code with lint, sparse, etc.
8500
AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
8501
[Use a lint-style source code checker (default: disabled)])],
8502
[use_lint=$withval], [use_lint=no])
8503
if test "x$use_lint" = "xyes" ; then
8508
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
8513
LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
8521
AC_SUBST(LINT_FLAGS)
8522
AM_CONDITIONAL(LINT, [test x$LINT != xno])
8526
# XORG_LINT_LIBRARY(LIBNAME)
8527
# --------------------------
8528
# Minimum version: 1.1.0
8530
# Sets up flags for building lint libraries for checking programs that call
8531
# functions in the library.
8532
# Disabled by default, enable with --enable-lint-library
8534
# @LINTLIB@ - name of lint library file to make
8535
# MAKE_LINT_LIB - automake conditional
8538
AC_DEFUN([XORG_LINT_LIBRARY],[
8539
AC_REQUIRE([XORG_WITH_LINT])
8540
# Build lint "library" for more indepth checks of programs calling this library
8541
AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
8542
[Create lint library (default: disabled)])],
8543
[make_lint_lib=$enableval], [make_lint_lib=no])
8544
if test "x$make_lint_lib" != "xno" ; then
8545
if test "x$LINT" = "xno" ; then
8546
AC_MSG_ERROR([Cannot make lint library without --with-lint])
8548
if test "x$make_lint_lib" = "xyes" ; then
8551
LINTLIB=$make_lint_lib
8555
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
8557
]) # XORG_LINT_LIBRARY
8561
# Minimum version: 1.2.0
8563
# Defines CWARNFLAGS to enable C compiler warnings.
8565
AC_DEFUN([XORG_CWARNFLAGS], [
8566
AC_REQUIRE([AC_PROG_CC])
8567
if test "x$GCC" = xyes ; then
8568
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
8569
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
8570
-Wbad-function-cast"
8571
case `gcc -dumpversion` in
8573
CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
8577
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
8578
if test "x$SUNCC" = "xyes"; then
8582
AC_SUBST(CWARNFLAGS)
8583
]) # XORG_CWARNFLAGS
8584
dnl Copyright 2005 Red Hat, Inc
8586
dnl Permission to use, copy, modify, distribute, and sell this software and its
8587
dnl documentation for any purpose is hereby granted without fee, provided that
8588
dnl the above copyright notice appear in all copies and that both that
8589
dnl copyright notice and this permission notice appear in supporting
8592
dnl The above copyright notice and this permission notice shall be included
8593
dnl in all copies or substantial portions of the Software.
8595
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8596
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8597
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8598
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
8599
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
8600
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8601
dnl OTHER DEALINGS IN THE SOFTWARE.
8603
dnl Except as contained in this notice, the name of the copyright holders shall
8604
dnl not be used in advertising or otherwise to promote the sale, use or
8605
dnl other dealings in this Software without prior written authorization
8606
dnl from the copyright holders.
8609
# XORG_RELEASE_VERSION
8610
# --------------------
8611
# Adds --with/without-release-string and changes the PACKAGE and
8612
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
8613
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
8614
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
8616
AC_DEFUN([XORG_RELEASE_VERSION],[
8617
AC_ARG_WITH(release-version,
8618
AC_HELP_STRING([--with-release-version=STRING],
8619
[Use release version string in package name]),
8620
[RELEASE_VERSION="$withval"],
8621
[RELEASE_VERSION=""])
8622
if test "x$RELEASE_VERSION" != "x"; then
8623
PACKAGE="$PACKAGE-$RELEASE_VERSION"
8624
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
8625
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
8627
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
8628
[`echo $PACKAGE_VERSION | cut -d . -f 1`],
8629
[Major version of this package])
8630
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
8631
if test "x$PVM" = "x"; then
8634
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
8636
[Minor version of this package])
8637
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
8638
if test "x$PVP" = "x"; then
8641
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
8643
[Patch version of this package])
8648
# Minimum version: 1.2.0
8650
# Defines the variable CHANGELOG_CMD as the command to generate
8651
# ChangeLog from git.
8653
# Arrange that distcleancheck ignores ChangeLog left over by distclean.
8655
AC_DEFUN([XORG_CHANGELOG], [
8656
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
8657
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
8658
echo 'git directory not found: installing possibly empty changelog.' >&2)"
8659
AC_SUBST([CHANGELOG_CMD])
8660
AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
8663
dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $
8665
dnl Copyright 2005 Sun Microsystems, Inc. All rights reserved.
8667
dnl Permission to use, copy, modify, distribute, and sell this software and its
8668
dnl documentation for any purpose is hereby granted without fee, provided that
8669
dnl the above copyright notice appear in all copies and that both that
8670
dnl copyright notice and this permission notice appear in supporting
8673
dnl The above copyright notice and this permission notice shall be included
8674
dnl in all copies or substantial portions of the Software.
8676
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8677
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8678
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8679
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
8680
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
8681
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8682
dnl OTHER DEALINGS IN THE SOFTWARE.
8684
dnl Except as contained in this notice, the name of the copyright holders shall
8685
dnl not be used in advertising or otherwise to promote the sale, use or
8686
dnl other dealings in this Software without prior written authorization
8687
dnl from the copyright holders.
8690
# XTRANS_TCP_FLAGS()
8691
# ------------------
8692
# Find needed libraries for TCP sockets, and check for IPv6 support
8693
AC_DEFUN([XTRANS_TCP_FLAGS],[
8694
# SVR4 hides these in libraries other than libc
8695
AC_SEARCH_LIBS(socket, [socket])
8696
AC_SEARCH_LIBS(gethostbyname, [nsl])
8698
# Needs to come after above checks for libsocket & libnsl for SVR4 systems
8700
AC_HELP_STRING([--enable-IPv6],[Enable IPv6 support]),
8701
[IPV6CONN=$enableval],
8702
[AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])])
8703
AC_MSG_CHECKING([if IPv6 support should be built])
8704
if test "$IPV6CONN" = "yes"; then
8705
AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
8707
AC_MSG_RESULT($IPV6CONN)
8709
# 4.3BSD-Reno added a new member to struct sockaddr_in
8710
AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
8711
AC_DEFINE([BSD44SOCKETS],1,
8712
[Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [
8713
#include <sys/types.h>
8714
#include <sys/socket.h>
8715
#include <netinet/in.h>
8718
# POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
8719
AC_CHECK_TYPES([socklen_t], [], [], [
8721
#include <sys/socket.h>])
8723
]) # XTRANS_TCP_FLAGS
8725
# XTRANS_CONNECTION_FLAGS()
8726
# -------------------------
8727
# Standard checks for which Xtrans transports to use by the Xorg packages
8728
# that use Xtrans functions
8729
AC_DEFUN([XTRANS_CONNECTION_FLAGS],[
8730
AC_REQUIRE([AC_CANONICAL_HOST])
8731
AC_REQUIRE([AC_TYPE_SIGNAL])
8733
mingw*) unixdef="no" ;;
8736
AC_ARG_ENABLE(unix-transport,
8737
AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]),
8738
[UNIXCONN=$enableval], [UNIXCONN=$unixdef])
8739
AC_MSG_CHECKING([if Xtrans should support UNIX socket connections])
8740
if test "$UNIXCONN" = "yes"; then
8741
AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections])
8743
AC_MSG_RESULT($UNIXCONN)
8744
AC_ARG_ENABLE(tcp-transport,
8745
AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]),
8746
[TCPCONN=$enableval], [TCPCONN=yes])
8747
AC_MSG_CHECKING([if Xtrans should support TCP socket connections])
8748
AC_MSG_RESULT($TCPCONN)
8749
if test "$TCPCONN" = "yes"; then
8750
AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
8754
solaris*|sco*|sysv4*) localdef="yes" ;;
8757
AC_ARG_ENABLE(local-transport,
8758
AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]),
8759
[LOCALCONN=$enableval], [LOCALCONN=$localdef])
8760
AC_MSG_CHECKING([if Xtrans should support os-specific local connections])
8761
AC_MSG_RESULT($LOCALCONN)
8762
if test "$LOCALCONN" = "yes"; then
8763
AC_DEFINE(LOCALCONN,1,[Support os-specific local connections])
8766
]) # XTRANS_CONNECTION_FLAGS
8769
# XTRANS_SECURE_RPC_FLAGS()
8770
# -------------------------
8771
# Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS
8772
# so that any necessary networking libraries are already found
8773
AC_DEFUN([XTRANS_SECURE_RPC_FLAGS],
8774
[AC_REQUIRE([XTRANS_TCP_FLAGS])
8775
AC_ARG_ENABLE(secure-rpc,
8776
AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]),
8777
[SECURE_RPC=$enableval], [SECURE_RPC="try"])
8779
if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
8780
FOUND_SECURE_RPC="no"
8781
AC_CHECK_FUNCS([authdes_seccreate authdes_create],
8782
[FOUND_SECURE_RPC="yes"])
8783
if test "x$FOUND_SECURE_RPC" = "xno" ; then
8784
if test "x$SECURE_RPC" = "xyes" ; then
8785
AC_MSG_ERROR([Secure RPC requested, but required functions not found])
8789
dnl FreeBSD keeps getsecretkey in librpcsvc
8790
AC_SEARCH_LIBS(getsecretkey, [rpcsvc])
8794
AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported])
8795
if test "x$SECURE_RPC" = "xyes" ; then
8796
AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients])
8798
AC_MSG_RESULT($SECURE_RPC)
8799
]) # XTRANS_SECURE_RPC_FLAGS
8802
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8804
# This file is free software; the Free Software Foundation
8805
# gives unlimited permission to copy and/or distribute it,
8806
# with or without modifications, as long as this notice is preserved.
8808
# AM_AUTOMAKE_VERSION(VERSION)
8809
# ----------------------------
8810
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8811
# generated from the m4 files accompanying Automake X.Y.
8812
# (This private macro should not be called outside this file.)
8813
AC_DEFUN([AM_AUTOMAKE_VERSION],
8814
[am__api_version='1.10'
8815
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8816
dnl require some minimum version. Point them to the right macro.
8817
m4_if([$1], [1.10.2], [],
8818
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8821
# _AM_AUTOCONF_VERSION(VERSION)
8822
# -----------------------------
8823
# aclocal traces this macro to find the Autoconf version.
8824
# This is a private macro too. Using m4_define simplifies
8825
# the logic in aclocal, which can simply ignore this definition.
8826
m4_define([_AM_AUTOCONF_VERSION], [])
8828
# AM_SET_CURRENT_AUTOMAKE_VERSION
8829
# -------------------------------
8830
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8831
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8832
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8833
[AM_AUTOMAKE_VERSION([1.10.2])dnl
8834
m4_ifndef([AC_AUTOCONF_VERSION],
8835
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8836
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8838
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8840
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8842
# This file is free software; the Free Software Foundation
8843
# gives unlimited permission to copy and/or distribute it,
8844
# with or without modifications, as long as this notice is preserved.
8846
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8847
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8848
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8850
# Of course, Automake must honor this variable whenever it calls a
8851
# tool from the auxiliary directory. The problem is that $srcdir (and
8852
# therefore $ac_aux_dir as well) can be either absolute or relative,
8853
# depending on how configure is run. This is pretty annoying, since
8854
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8855
# source directory, any form will work fine, but in subdirectories a
8856
# relative path needs to be adjusted first.
8858
# $ac_aux_dir/missing
8859
# fails when called from a subdirectory if $ac_aux_dir is relative
8860
# $top_srcdir/$ac_aux_dir/missing
8861
# fails if $ac_aux_dir is absolute,
8862
# fails when called from a subdirectory in a VPATH build with
8863
# a relative $ac_aux_dir
8865
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8866
# are both prefixed by $srcdir. In an in-source build this is usually
8867
# harmless because $srcdir is `.', but things will broke when you
8868
# start a VPATH build or use an absolute $srcdir.
8870
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8871
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8872
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8873
# and then we would define $MISSING as
8874
# MISSING="\${SHELL} $am_aux_dir/missing"
8875
# This will work as long as MISSING is not called from configure, because
8876
# unfortunately $(top_srcdir) has no meaning in configure.
8877
# However there are other variables, like CC, which are often used in
8878
# configure, and could therefore not use this "fixed" $ac_aux_dir.
8880
# Another solution, used here, is to always expand $ac_aux_dir to an
8881
# absolute PATH. The drawback is that using absolute paths prevent a
8882
# configured tree to be moved without reconfiguration.
8884
AC_DEFUN([AM_AUX_DIR_EXPAND],
8885
[dnl Rely on autoconf to set up CDPATH properly.
8886
AC_PREREQ([2.50])dnl
8887
# expand $ac_aux_dir to an absolute path
8888
am_aux_dir=`cd $ac_aux_dir && pwd`
8891
# AM_CONDITIONAL -*- Autoconf -*-
8893
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
8894
# Free Software Foundation, Inc.
8896
# This file is free software; the Free Software Foundation
8897
# gives unlimited permission to copy and/or distribute it,
8898
# with or without modifications, as long as this notice is preserved.
8902
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8903
# -------------------------------------
8904
# Define a conditional.
8905
AC_DEFUN([AM_CONDITIONAL],
8907
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8908
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8909
AC_SUBST([$1_TRUE])dnl
8910
AC_SUBST([$1_FALSE])dnl
8911
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8912
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
8920
AC_CONFIG_COMMANDS_PRE(
8921
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8922
AC_MSG_ERROR([[conditional "$1" was never defined.
8923
Usually this means the macro was only invoked conditionally.]])
8926
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
8927
# Free Software Foundation, Inc.
8929
# This file is free software; the Free Software Foundation
8930
# gives unlimited permission to copy and/or distribute it,
8931
# with or without modifications, as long as this notice is preserved.
8935
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8936
# written in clear, in which case automake, when reading aclocal.m4,
8937
# will think it sees a *use*, and therefore will trigger all it's
8938
# C support machinery. Also note that it means that autoscan, seeing
8939
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8942
# _AM_DEPENDENCIES(NAME)
8943
# ----------------------
8944
# See how the compiler implements dependency checking.
8945
# NAME is "CC", "CXX", "GCJ", or "OBJC".
8946
# We try a few techniques and use that to set a single cache variable.
8948
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8949
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8950
# dependency, and given that the user is not expected to run this macro,
8951
# just rely on AC_PROG_CC.
8952
AC_DEFUN([_AM_DEPENDENCIES],
8953
[AC_REQUIRE([AM_SET_DEPDIR])dnl
8954
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8955
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8956
AC_REQUIRE([AM_DEP_TRACK])dnl
8958
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8959
[$1], CXX, [depcc="$CXX" am_compiler_list=],
8960
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8961
[$1], UPC, [depcc="$UPC" am_compiler_list=],
8962
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8963
[depcc="$$1" am_compiler_list=])
8965
AC_CACHE_CHECK([dependency style of $depcc],
8966
[am_cv_$1_dependencies_compiler_type],
8967
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8968
# We make a subdir and do the tests there. Otherwise we can end up
8969
# making bogus files that we don't know about and never remove. For
8970
# instance it was reported that on HP-UX the gcc test will end up
8971
# making a dummy file named `D' -- because `-MD' means `put the output
8974
# Copy depcomp to subdir because otherwise we won't find it if we're
8975
# using a relative directory.
8976
cp "$am_depcomp" conftest.dir
8978
# We will build objects and dependencies in a subdirectory because
8979
# it helps to detect inapplicable dependency modes. For instance
8980
# both Tru64's cc and ICC support -MD to output dependencies as a
8981
# side effect of compilation, but ICC will put the dependencies in
8982
# the current directory while Tru64 will put them in the object
8986
am_cv_$1_dependencies_compiler_type=none
8987
if test "$am_compiler_list" = ""; then
8988
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8990
for depmode in $am_compiler_list; do
8991
# Setup a source with many dependencies, because some compilers
8992
# like to wrap large dependency lists on column 80 (with \), and
8993
# we should not choose a depcomp mode which is confused by this.
8995
# We need to recreate these files for each test, as the compiler may
8996
# overwrite some of them when testing with obscure command lines.
8997
# This happens at least with the AIX C compiler.
8999
for i in 1 2 3 4 5 6; do
9000
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9001
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9002
# Solaris 8's {/usr,}/bin/sh.
9003
touch sub/conftst$i.h
9005
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9009
# after this tag, mechanisms are not by side-effect, so they'll
9010
# only be used when explicitly requested
9011
if test "x$enable_dependency_tracking" = xyes; then
9019
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9020
# mode. It turns out that the SunPro C++ compiler does not properly
9021
# handle `-M -o', and we need to detect this.
9022
if depmode=$depmode \
9023
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9024
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9025
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9026
>/dev/null 2>conftest.err &&
9027
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9028
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9029
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9030
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9031
# icc doesn't choke on unknown options, it will just issue warnings
9032
# or remarks (even with -Werror). So we grep stderr for any message
9033
# that says an option was ignored or not supported.
9034
# When given -MP, icc 7.0 and 7.1 complain thusly:
9035
# icc: Command line warning: ignoring option '-M'; no argument required
9036
# The diagnosis changed in icc 8.0:
9037
# icc: Command line remark: option '-MP' not supported
9038
if (grep 'ignoring option' conftest.err ||
9039
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9040
am_cv_$1_dependencies_compiler_type=$depmode
9049
am_cv_$1_dependencies_compiler_type=none
9052
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9053
AM_CONDITIONAL([am__fastdep$1], [
9054
test "x$enable_dependency_tracking" != xno \
9055
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9061
# Choose a directory name for dependency files.
9062
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9063
AC_DEFUN([AM_SET_DEPDIR],
9064
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9065
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9071
AC_DEFUN([AM_DEP_TRACK],
9072
[AC_ARG_ENABLE(dependency-tracking,
9073
[ --disable-dependency-tracking speeds up one-time build
9074
--enable-dependency-tracking do not reject slow dependency extractors])
9075
if test "x$enable_dependency_tracking" != xno; then
9076
am_depcomp="$ac_aux_dir/depcomp"
9079
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9080
AC_SUBST([AMDEPBACKSLASH])dnl
9081
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9084
# Generate code to set up dependency tracking. -*- Autoconf -*-
9086
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9087
# Free Software Foundation, Inc.
9089
# This file is free software; the Free Software Foundation
9090
# gives unlimited permission to copy and/or distribute it,
9091
# with or without modifications, as long as this notice is preserved.
9095
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9096
# ------------------------------
9097
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9098
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
9099
# are listed without --file. Let's play safe and only enable the eval
9100
# if we detect the quoting.
9101
case $CONFIG_FILES in
9102
*\'*) eval set x "$CONFIG_FILES" ;;
9103
*) set x $CONFIG_FILES ;;
9108
# Strip MF so we end up with the name of the file.
9109
mf=`echo "$mf" | sed -e 's/:.*$//'`
9110
# Check whether this is an Automake generated Makefile or not.
9111
# We used to match only the files named `Makefile.in', but
9112
# some people rename them; so instead we look at the file content.
9113
# Grep'ing the first line is not enough: some people post-process
9114
# each Makefile.in and add a new line on top of each file to say so.
9115
# Grep'ing the whole file is not good either: AIX grep has a line
9116
# limit of 2048, but all sed's we know have understand at least 4000.
9117
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9118
dirpart=`AS_DIRNAME("$mf")`
9122
# Extract the definition of DEPDIR, am__include, and am__quote
9123
# from the Makefile without running `make'.
9124
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9125
test -z "$DEPDIR" && continue
9126
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9127
test -z "am__include" && continue
9128
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9129
# When using ansi2knr, U may be empty or an underscore; expand it
9130
U=`sed -n 's/^U = //p' < "$mf"`
9131
# Find all dependency output files, they are included files with
9132
# $(DEPDIR) in their names. We invoke sed twice because it is the
9133
# simplest approach to changing $(DEPDIR) to its actual value in the
9135
for file in `sed -n "
9136
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9137
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9138
# Make sure the directory exists.
9139
test -f "$dirpart/$file" && continue
9140
fdir=`AS_DIRNAME(["$file"])`
9141
AS_MKDIR_P([$dirpart/$fdir])
9142
# echo "creating $dirpart/$file"
9143
echo '# dummy' > "$dirpart/$file"
9146
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9149
# AM_OUTPUT_DEPENDENCY_COMMANDS
9150
# -----------------------------
9151
# This macro should only be invoked once -- use via AC_REQUIRE.
9153
# This code is only required when automatic dependency tracking
9154
# is enabled. FIXME. This creates each `.P' file that we will
9155
# need in order to bootstrap the dependency handling code.
9156
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9157
[AC_CONFIG_COMMANDS([depfiles],
9158
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9159
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9162
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9163
# Free Software Foundation, Inc.
9165
# This file is free software; the Free Software Foundation
9166
# gives unlimited permission to copy and/or distribute it,
9167
# with or without modifications, as long as this notice is preserved.
9171
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9172
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9174
# Do all the work for Automake. -*- Autoconf -*-
9176
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9177
# 2005, 2006, 2008 Free Software Foundation, Inc.
9179
# This file is free software; the Free Software Foundation
9180
# gives unlimited permission to copy and/or distribute it,
9181
# with or without modifications, as long as this notice is preserved.
9185
# This macro actually does too much. Some checks are only needed if
9186
# your package does certain things. But this isn't really a big deal.
9188
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9189
# AM_INIT_AUTOMAKE([OPTIONS])
9190
# -----------------------------------------------
9191
# The call with PACKAGE and VERSION arguments is the old style
9192
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9193
# and VERSION should now be passed to AC_INIT and removed from
9194
# the call to AM_INIT_AUTOMAKE.
9195
# We support both call styles for the transition. After
9196
# the next Automake release, Autoconf can make the AC_INIT
9197
# arguments mandatory, and then we can depend on a new Autoconf
9198
# release and drop the old call support.
9199
AC_DEFUN([AM_INIT_AUTOMAKE],
9200
[AC_PREREQ([2.60])dnl
9201
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9202
dnl the ones we care about.
9203
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9204
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9205
AC_REQUIRE([AC_PROG_INSTALL])dnl
9206
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9207
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9208
# is not polluted with repeated "-I."
9209
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9210
# test to see if srcdir already configured
9211
if test -f $srcdir/config.status; then
9212
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9216
# test whether we have cygpath
9217
if test -z "$CYGPATH_W"; then
9218
if (cygpath --version) >/dev/null 2>/dev/null; then
9219
CYGPATH_W='cygpath -w'
9224
AC_SUBST([CYGPATH_W])
9226
# Define the identity of the package.
9227
dnl Distinguish between old-style and new-style calls.
9229
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9230
AC_SUBST([PACKAGE], [$1])dnl
9231
AC_SUBST([VERSION], [$2])],
9232
[_AM_SET_OPTIONS([$1])dnl
9233
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9234
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9235
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9236
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9237
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9239
_AM_IF_OPTION([no-define],,
9240
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9241
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9243
# Some tools Automake needs.
9244
AC_REQUIRE([AM_SANITY_CHECK])dnl
9245
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9246
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9247
AM_MISSING_PROG(AUTOCONF, autoconf)
9248
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9249
AM_MISSING_PROG(AUTOHEADER, autoheader)
9250
AM_MISSING_PROG(MAKEINFO, makeinfo)
9252
AM_PROG_INSTALL_STRIP
9253
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9254
# We need awk for the "check" target. The system "awk" is bad on
9256
AC_REQUIRE([AC_PROG_AWK])dnl
9257
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9258
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9259
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9260
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9261
[_AM_PROG_TAR([v7])])])
9262
_AM_IF_OPTION([no-dependencies],,
9263
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9264
[_AM_DEPENDENCIES(CC)],
9265
[define([AC_PROG_CC],
9266
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9267
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9268
[_AM_DEPENDENCIES(CXX)],
9269
[define([AC_PROG_CXX],
9270
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9271
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9272
[_AM_DEPENDENCIES(OBJC)],
9273
[define([AC_PROG_OBJC],
9274
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9279
# When config.status generates a header, we must update the stamp-h file.
9280
# This file resides in the same directory as the config header
9281
# that is generated. The stamp files are numbered to have different names.
9283
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9284
# loop where config.status creates the headers, so we can generate
9285
# our stamp files there.
9286
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9287
[# Compute $1's index in $config_headers.
9290
for _am_header in $config_headers :; do
9292
$_am_arg | $_am_arg:* )
9295
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9298
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9300
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9302
# This file is free software; the Free Software Foundation
9303
# gives unlimited permission to copy and/or distribute it,
9304
# with or without modifications, as long as this notice is preserved.
9306
# AM_PROG_INSTALL_SH
9307
# ------------------
9308
# Define $install_sh.
9309
AC_DEFUN([AM_PROG_INSTALL_SH],
9310
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9311
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
9312
AC_SUBST(install_sh)])
9314
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9316
# This file is free software; the Free Software Foundation
9317
# gives unlimited permission to copy and/or distribute it,
9318
# with or without modifications, as long as this notice is preserved.
9322
# Check whether the underlying file-system supports filenames
9323
# with a leading dot. For instance MS-DOS doesn't.
9324
AC_DEFUN([AM_SET_LEADING_DOT],
9325
[rm -rf .tst 2>/dev/null
9326
mkdir .tst 2>/dev/null
9327
if test -d .tst; then
9332
rmdir .tst 2>/dev/null
9333
AC_SUBST([am__leading_dot])])
9335
# Check to see how 'make' treats includes. -*- Autoconf -*-
9337
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
9339
# This file is free software; the Free Software Foundation
9340
# gives unlimited permission to copy and/or distribute it,
9341
# with or without modifications, as long as this notice is preserved.
9347
# Check to see how make treats includes.
9348
AC_DEFUN([AM_MAKE_INCLUDE],
9349
[am_make=${MAKE-make}
9350
cat > confinc << 'END'
9355
# If we don't find an include directive, just comment out the code.
9356
AC_MSG_CHECKING([for style of include used by $am_make])
9360
# First try GNU make style include.
9361
echo "include confinc" > confmf
9362
# We grep out `Entering directory' and `Leaving directory'
9363
# messages which can occur if `w' ends up in MAKEFLAGS.
9364
# In particular we don't look at `^make:' because GNU make might
9365
# be invoked under some other name (usually "gmake"), in which
9366
# case it prints its new name instead of `make'.
9367
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9372
# Now try BSD make style include.
9373
if test "$am__include" = "#"; then
9374
echo '.include "confinc"' > confmf
9375
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9376
am__include=.include
9381
AC_SUBST([am__include])
9382
AC_SUBST([am__quote])
9383
AC_MSG_RESULT([$_am_result])
9384
rm -f confinc confmf
9387
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9389
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
9390
# Free Software Foundation, Inc.
9392
# This file is free software; the Free Software Foundation
9393
# gives unlimited permission to copy and/or distribute it,
9394
# with or without modifications, as long as this notice is preserved.
9398
# AM_MISSING_PROG(NAME, PROGRAM)
9399
# ------------------------------
9400
AC_DEFUN([AM_MISSING_PROG],
9401
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9402
$1=${$1-"${am_missing_run}$2"}
9406
# AM_MISSING_HAS_RUN
9407
# ------------------
9408
# Define MISSING if not defined so far and test if it supports --run.
9409
# If it does, set am_missing_run to use it, otherwise, to nothing.
9410
AC_DEFUN([AM_MISSING_HAS_RUN],
9411
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9412
AC_REQUIRE_AUX_FILE([missing])dnl
9413
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9414
# Use eval to expand $SHELL
9415
if eval "$MISSING --run true"; then
9416
am_missing_run="$MISSING --run "
9419
AC_MSG_WARN([`missing' script is too old or missing])
9423
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9425
# This file is free software; the Free Software Foundation
9426
# gives unlimited permission to copy and/or distribute it,
9427
# with or without modifications, as long as this notice is preserved.
9431
# Check for `mkdir -p'.
9432
AC_DEFUN([AM_PROG_MKDIR_P],
9433
[AC_PREREQ([2.60])dnl
9434
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9435
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9436
dnl while keeping a definition of mkdir_p for backward compatibility.
9437
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9438
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9439
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9440
dnl adjustment using top_builddir (which is defined more often than
9442
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9444
[[\\/$]]* | ?:[[\\/]]*) ;;
9445
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9449
# Helper functions for option handling. -*- Autoconf -*-
9451
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9453
# This file is free software; the Free Software Foundation
9454
# gives unlimited permission to copy and/or distribute it,
9455
# with or without modifications, as long as this notice is preserved.
9459
# _AM_MANGLE_OPTION(NAME)
9460
# -----------------------
9461
AC_DEFUN([_AM_MANGLE_OPTION],
9462
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9464
# _AM_SET_OPTION(NAME)
9465
# ------------------------------
9466
# Set option NAME. Presently that only means defining a flag for this option.
9467
AC_DEFUN([_AM_SET_OPTION],
9468
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9470
# _AM_SET_OPTIONS(OPTIONS)
9471
# ----------------------------------
9472
# OPTIONS is a space-separated list of Automake options.
9473
AC_DEFUN([_AM_SET_OPTIONS],
9474
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9476
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9477
# -------------------------------------------
9478
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9479
AC_DEFUN([_AM_IF_OPTION],
9480
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9482
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9484
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9485
# Free Software Foundation, Inc.
9487
# This file is free software; the Free Software Foundation
9488
# gives unlimited permission to copy and/or distribute it,
9489
# with or without modifications, as long as this notice is preserved.
9495
AC_DEFUN([AM_SANITY_CHECK],
9496
[AC_MSG_CHECKING([whether build environment is sane])
9499
echo timestamp > conftest.file
9500
# Do `set' in a subshell so we don't clobber the current shell's
9501
# arguments. Must try -L first in case configure is actually a
9502
# symlink; some systems play weird games with the mod time of symlinks
9503
# (eg FreeBSD returns the mod time of the symlink's containing
9506
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
9507
if test "$[*]" = "X"; then
9509
set X `ls -t $srcdir/configure conftest.file`
9512
if test "$[*]" != "X $srcdir/configure conftest.file" \
9513
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
9515
# If neither matched, then we have a broken ls. This can happen
9516
# if, for instance, CONFIG_SHELL is bash and it inherits a
9517
# broken ls alias from the environment. This has actually
9518
# happened. Such a system could not be considered "sane".
9519
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9520
alias in your environment])
9523
test "$[2]" = conftest.file
9529
AC_MSG_ERROR([newly created file is older than distributed files!
9530
Check your system clock])
9532
AC_MSG_RESULT(yes)])
9534
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9536
# This file is free software; the Free Software Foundation
9537
# gives unlimited permission to copy and/or distribute it,
9538
# with or without modifications, as long as this notice is preserved.
9540
# AM_PROG_INSTALL_STRIP
9541
# ---------------------
9542
# One issue with vendor `install' (even GNU) is that you can't
9543
# specify the program used to strip binaries. This is especially
9544
# annoying in cross-compiling environments, where the build's strip
9545
# is unlikely to handle the host's binaries.
9546
# Fortunately install-sh will honor a STRIPPROG variable, so we
9547
# always use install-sh in `make install-strip', and initialize
9548
# STRIPPROG with the value of the STRIP variable (set by the user).
9549
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9550
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9551
# Installed binaries are usually stripped using `strip' when the user
9552
# run `make install-strip'. However `strip' might not be the right
9553
# tool to use in cross-compilation environments, therefore Automake
9554
# will honor the `STRIP' environment variable to overrule this program.
9555
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9556
if test "$cross_compiling" != no; then
9557
AC_CHECK_TOOL([STRIP], [strip], :)
9559
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9560
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9562
# Copyright (C) 2006 Free Software Foundation, Inc.
9564
# This file is free software; the Free Software Foundation
9565
# gives unlimited permission to copy and/or distribute it,
9566
# with or without modifications, as long as this notice is preserved.
9568
# _AM_SUBST_NOTMAKE(VARIABLE)
9569
# ---------------------------
9570
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9571
# This macro is traced by Automake.
9572
AC_DEFUN([_AM_SUBST_NOTMAKE])
9574
# Check how to create a tarball. -*- Autoconf -*-
9576
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9578
# This file is free software; the Free Software Foundation
9579
# gives unlimited permission to copy and/or distribute it,
9580
# with or without modifications, as long as this notice is preserved.
9584
# _AM_PROG_TAR(FORMAT)
9585
# --------------------
9586
# Check how to create a tarball in format FORMAT.
9587
# FORMAT should be one of `v7', `ustar', or `pax'.
9589
# Substitute a variable $(am__tar) that is a command
9590
# writing to stdout a FORMAT-tarball containing the directory
9592
# tardir=directory && $(am__tar) > result.tar
9594
# Substitute a variable $(am__untar) that extract such
9595
# a tarball read from stdin.
9596
# $(am__untar) < result.tar
9597
AC_DEFUN([_AM_PROG_TAR],
9598
[# Always define AMTAR for backward compatibility.
9599
AM_MISSING_PROG([AMTAR], [tar])
9601
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9602
[m4_case([$1], [ustar],, [pax],,
9603
[m4_fatal([Unknown tar format])])
9604
AC_MSG_CHECKING([how to create a $1 tar archive])
9605
# Loop over all known methods to create a tar archive until one works.
9606
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9607
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9608
# Do not fold the above two line into one, because Tru64 sh and
9609
# Solaris sh will not grok spaces in the rhs of `-'.
9610
for _am_tool in $_am_tools
9614
for _am_tar in tar gnutar gtar;
9616
AM_RUN_LOG([$_am_tar --version]) && break
9618
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9619
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9620
am__untar="$_am_tar -xf -"
9623
# Must skip GNU tar: if it does not support --format= it doesn't create
9624
# ustar tarball either.
9625
(tar --version) >/dev/null 2>&1 && continue
9626
am__tar='tar chf - "$$tardir"'
9627
am__tar_='tar chf - "$tardir"'
9628
am__untar='tar xf -'
9631
am__tar='pax -L -x $1 -w "$$tardir"'
9632
am__tar_='pax -L -x $1 -w "$tardir"'
9636
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9637
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9638
am__untar='cpio -i -H $1 -d'
9647
# If the value was cached, stop now. We just wanted to have am__tar
9648
# and am__untar set.
9649
test -n "${am_cv_prog_tar_$1}" && break
9651
# tar/untar a dummy directory, and stop if the command works
9654
echo GrepMe > conftest.dir/file
9655
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9657
if test -s conftest.tar; then
9658
AM_RUN_LOG([$am__untar <conftest.tar])
9659
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9664
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9665
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9667
AC_SUBST([am__untar])