]> jfr.im git - irc/evilnet/mod.chanfix.git/blame - aclocal.m4
Fixed missing include, corebug fix was already applied here.
[irc/evilnet/mod.chanfix.git] / aclocal.m4
CommitLineData
921e3f29 1# aclocal.m4 generated automatically by aclocal 1.6.1 -*- Autoconf -*-
d7cb1a97 2
921e3f29 3# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4# Free Software Foundation, Inc.
d7cb1a97 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
921e3f29 14# Do all the work for Automake. -*- Autoconf -*-
d7cb1a97 15
921e3f29 16# This macro actually does too much some checks are only needed if
17# your package does certain things. But this isn't really a big deal.
d7cb1a97 18
921e3f29 19# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
20# Free Software Foundation, Inc.
d7cb1a97 21
921e3f29 22# This program is free software; you can redistribute it and/or modify
23# it under the terms of the GNU General Public License as published by
24# the Free Software Foundation; either version 2, or (at your option)
25# any later version.
d7cb1a97 26
921e3f29 27# This program is distributed in the hope that it will be useful,
28# but WITHOUT ANY WARRANTY; without even the implied warranty of
29# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30# GNU General Public License for more details.
d7cb1a97 31
921e3f29 32# You should have received a copy of the GNU General Public License
33# along with this program; if not, write to the Free Software
34# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35# 02111-1307, USA.
d7cb1a97 36
921e3f29 37# serial 8
d7cb1a97 38
921e3f29 39# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
40# written in clear, in which case automake, when reading aclocal.m4,
41# will think it sees a *use*, and therefore will trigger all it's
42# C support machinery. Also note that it means that autoscan, seeing
43# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
d7cb1a97 44
d7cb1a97 45
921e3f29 46AC_PREREQ([2.52])
d7cb1a97 47
921e3f29 48# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
49# the ones we care about.
50m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
d7cb1a97 51
921e3f29 52# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
53# AM_INIT_AUTOMAKE([OPTIONS])
54# -----------------------------------------------
55# The call with PACKAGE and VERSION arguments is the old style
56# call (pre autoconf-2.50), which is being phased out. PACKAGE
57# and VERSION should now be passed to AC_INIT and removed from
58# the call to AM_INIT_AUTOMAKE.
59# We support both call styles for the transition. After
60# the next Automake release, Autoconf can make the AC_INIT
61# arguments mandatory, and then we can depend on a new Autoconf
62# release and drop the old call support.
63AC_DEFUN([AM_INIT_AUTOMAKE],
64[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
65 AC_REQUIRE([AC_PROG_INSTALL])dnl
66# test to see if srcdir already configured
67if test "`cd $srcdir && pwd`" != "`pwd`" &&
68 test -f $srcdir/config.status; then
69 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
70fi
d7cb1a97 71
921e3f29 72# Define the identity of the package.
73dnl Distinguish between old-style and new-style calls.
74m4_ifval([$2],
75[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
76 AC_SUBST([PACKAGE], [$1])dnl
77 AC_SUBST([VERSION], [$2])],
78[_AM_SET_OPTIONS([$1])dnl
79 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
80 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
d7cb1a97 81
921e3f29 82_AM_IF_OPTION([no-define],,
83[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
84 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
d7cb1a97 85
921e3f29 86# Some tools Automake needs.
87AC_REQUIRE([AM_SANITY_CHECK])dnl
88AC_REQUIRE([AC_ARG_PROGRAM])dnl
89AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
90AM_MISSING_PROG(AUTOCONF, autoconf)
91AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
92AM_MISSING_PROG(AUTOHEADER, autoheader)
93AM_MISSING_PROG(MAKEINFO, makeinfo)
94AM_MISSING_PROG(AMTAR, tar)
95AM_PROG_INSTALL_SH
96AM_PROG_INSTALL_STRIP
97# We need awk for the "check" target. The system "awk" is bad on
98# some platforms.
99AC_REQUIRE([AC_PROG_AWK])dnl
100AC_REQUIRE([AC_PROG_MAKE_SET])dnl
d7cb1a97 101
921e3f29 102_AM_IF_OPTION([no-dependencies],,
103[AC_PROVIDE_IFELSE([AC_PROG_][CC],
104 [_AM_DEPENDENCIES(CC)],
105 [define([AC_PROG_][CC],
106 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
107AC_PROVIDE_IFELSE([AC_PROG_][CXX],
108 [_AM_DEPENDENCIES(CXX)],
109 [define([AC_PROG_][CXX],
110 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
111])
112])
d7cb1a97 113
921e3f29 114# Copyright 2002 Free Software Foundation, Inc.
d7cb1a97 115
921e3f29 116# This program is free software; you can redistribute it and/or modify
117# it under the terms of the GNU General Public License as published by
118# the Free Software Foundation; either version 2, or (at your option)
119# any later version.
d7cb1a97 120
921e3f29 121# This program is distributed in the hope that it will be useful,
122# but WITHOUT ANY WARRANTY; without even the implied warranty of
123# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
124# GNU General Public License for more details.
d7cb1a97 125
921e3f29 126# You should have received a copy of the GNU General Public License
127# along with this program; if not, write to the Free Software
128# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
d7cb1a97 129
921e3f29 130# AM_AUTOMAKE_VERSION(VERSION)
131# ----------------------------
132# Automake X.Y traces this macro to ensure aclocal.m4 has been
133# generated from the m4 files accompanying Automake X.Y.
134AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
d7cb1a97 135
921e3f29 136# AM_SET_CURRENT_AUTOMAKE_VERSION
137# -------------------------------
138# Call AM_AUTOMAKE_VERSION so it can be traced.
139# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
140AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
141 [AM_AUTOMAKE_VERSION([1.6.1])])
d7cb1a97 142
921e3f29 143# Helper functions for option handling. -*- Autoconf -*-
d7cb1a97 144
921e3f29 145# Copyright 2001, 2002 Free Software Foundation, Inc.
d7cb1a97 146
921e3f29 147# This program is free software; you can redistribute it and/or modify
148# it under the terms of the GNU General Public License as published by
149# the Free Software Foundation; either version 2, or (at your option)
150# any later version.
d7cb1a97 151
921e3f29 152# This program is distributed in the hope that it will be useful,
153# but WITHOUT ANY WARRANTY; without even the implied warranty of
154# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
155# GNU General Public License for more details.
d7cb1a97 156
921e3f29 157# You should have received a copy of the GNU General Public License
158# along with this program; if not, write to the Free Software
159# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
160# 02111-1307, USA.
d7cb1a97 161
921e3f29 162# serial 2
d7cb1a97 163
921e3f29 164# _AM_MANGLE_OPTION(NAME)
165# -----------------------
166AC_DEFUN([_AM_MANGLE_OPTION],
167[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
d7cb1a97 168
921e3f29 169# _AM_SET_OPTION(NAME)
170# ------------------------------
171# Set option NAME. Presently that only means defining a flag for this option.
172AC_DEFUN([_AM_SET_OPTION],
173[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
e0282ee9 174
921e3f29 175# _AM_SET_OPTIONS(OPTIONS)
176# ----------------------------------
177# OPTIONS is a space-separated list of Automake options.
178AC_DEFUN([_AM_SET_OPTIONS],
179[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
d7cb1a97 180
921e3f29 181# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
182# -------------------------------------------
183# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
184AC_DEFUN([_AM_IF_OPTION],
185[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
d7cb1a97 186
921e3f29 187#
188# Check to make sure that the build environment is sane.
189#
d7cb1a97 190
921e3f29 191# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
d7cb1a97 192
921e3f29 193# This program is free software; you can redistribute it and/or modify
194# it under the terms of the GNU General Public License as published by
195# the Free Software Foundation; either version 2, or (at your option)
196# any later version.
d7cb1a97 197
921e3f29 198# This program is distributed in the hope that it will be useful,
199# but WITHOUT ANY WARRANTY; without even the implied warranty of
200# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
201# GNU General Public License for more details.
e0282ee9 202
921e3f29 203# You should have received a copy of the GNU General Public License
204# along with this program; if not, write to the Free Software
205# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
206# 02111-1307, USA.
d7cb1a97 207
921e3f29 208# serial 3
d7cb1a97 209
921e3f29 210# AM_SANITY_CHECK
211# ---------------
212AC_DEFUN([AM_SANITY_CHECK],
213[AC_MSG_CHECKING([whether build environment is sane])
214# Just in case
215sleep 1
216echo timestamp > conftest.file
217# Do `set' in a subshell so we don't clobber the current shell's
218# arguments. Must try -L first in case configure is actually a
219# symlink; some systems play weird games with the mod time of symlinks
220# (eg FreeBSD returns the mod time of the symlink's containing
221# directory).
222if (
223 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
224 if test "$[*]" = "X"; then
225 # -L didn't work.
226 set X `ls -t $srcdir/configure conftest.file`
227 fi
228 rm -f conftest.file
229 if test "$[*]" != "X $srcdir/configure conftest.file" \
230 && test "$[*]" != "X conftest.file $srcdir/configure"; then
e0282ee9 231
921e3f29 232 # If neither matched, then we have a broken ls. This can happen
233 # if, for instance, CONFIG_SHELL is bash and it inherits a
234 # broken ls alias from the environment. This has actually
235 # happened. Such a system could not be considered "sane".
236 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
237alias in your environment])
238 fi
e0282ee9 239
921e3f29 240 test "$[2]" = conftest.file
241 )
242then
243 # Ok.
244 :
245else
246 AC_MSG_ERROR([newly created file is older than distributed files!
247Check your system clock])
248fi
249AC_MSG_RESULT(yes)])
e0282ee9 250
921e3f29 251# -*- Autoconf -*-
e0282ee9 252
e0282ee9 253
921e3f29 254# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
e0282ee9 255
921e3f29 256# This program is free software; you can redistribute it and/or modify
257# it under the terms of the GNU General Public License as published by
258# the Free Software Foundation; either version 2, or (at your option)
259# any later version.
d7cb1a97 260
921e3f29 261# This program is distributed in the hope that it will be useful,
262# but WITHOUT ANY WARRANTY; without even the implied warranty of
263# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
264# GNU General Public License for more details.
d7cb1a97 265
921e3f29 266# You should have received a copy of the GNU General Public License
267# along with this program; if not, write to the Free Software
268# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
269# 02111-1307, USA.
d7cb1a97 270
921e3f29 271# serial 3
d7cb1a97 272
921e3f29 273# AM_MISSING_PROG(NAME, PROGRAM)
274# ------------------------------
275AC_DEFUN([AM_MISSING_PROG],
276[AC_REQUIRE([AM_MISSING_HAS_RUN])
277$1=${$1-"${am_missing_run}$2"}
278AC_SUBST($1)])
d7cb1a97 279
d7cb1a97 280
921e3f29 281# AM_MISSING_HAS_RUN
282# ------------------
283# Define MISSING if not defined so far and test if it supports --run.
284# If it does, set am_missing_run to use it, otherwise, to nothing.
285AC_DEFUN([AM_MISSING_HAS_RUN],
286[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
287test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
288# Use eval to expand $SHELL
289if eval "$MISSING --run true"; then
290 am_missing_run="$MISSING --run "
d7cb1a97 291else
921e3f29 292 am_missing_run=
293 AC_MSG_WARN([`missing' script is too old or missing])
d7cb1a97 294fi
921e3f29 295])
d7cb1a97 296
921e3f29 297# AM_AUX_DIR_EXPAND
d7cb1a97 298
921e3f29 299# Copyright 2001 Free Software Foundation, Inc.
d7cb1a97 300
921e3f29 301# This program is free software; you can redistribute it and/or modify
302# it under the terms of the GNU General Public License as published by
303# the Free Software Foundation; either version 2, or (at your option)
304# any later version.
d7cb1a97 305
921e3f29 306# This program is distributed in the hope that it will be useful,
307# but WITHOUT ANY WARRANTY; without even the implied warranty of
308# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
309# GNU General Public License for more details.
d7cb1a97 310
921e3f29 311# You should have received a copy of the GNU General Public License
312# along with this program; if not, write to the Free Software
313# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
314# 02111-1307, USA.
d7cb1a97 315
921e3f29 316# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
317# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
318# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
319#
320# Of course, Automake must honor this variable whenever it calls a
321# tool from the auxiliary directory. The problem is that $srcdir (and
322# therefore $ac_aux_dir as well) can be either absolute or relative,
323# depending on how configure is run. This is pretty annoying, since
324# it makes $ac_aux_dir quite unusable in subdirectories: in the top
325# source directory, any form will work fine, but in subdirectories a
326# relative path needs to be adjusted first.
327#
328# $ac_aux_dir/missing
329# fails when called from a subdirectory if $ac_aux_dir is relative
330# $top_srcdir/$ac_aux_dir/missing
331# fails if $ac_aux_dir is absolute,
332# fails when called from a subdirectory in a VPATH build with
333# a relative $ac_aux_dir
334#
335# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
336# are both prefixed by $srcdir. In an in-source build this is usually
337# harmless because $srcdir is `.', but things will broke when you
338# start a VPATH build or use an absolute $srcdir.
339#
340# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
341# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
342# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
343# and then we would define $MISSING as
344# MISSING="\${SHELL} $am_aux_dir/missing"
345# This will work as long as MISSING is not called from configure, because
346# unfortunately $(top_srcdir) has no meaning in configure.
347# However there are other variables, like CC, which are often used in
348# configure, and could therefore not use this "fixed" $ac_aux_dir.
349#
350# Another solution, used here, is to always expand $ac_aux_dir to an
351# absolute PATH. The drawback is that using absolute paths prevent a
352# configured tree to be moved without reconfiguration.
d7cb1a97 353
921e3f29 354# Rely on autoconf to set up CDPATH properly.
355AC_PREREQ([2.50])
d7cb1a97 356
921e3f29 357AC_DEFUN([AM_AUX_DIR_EXPAND], [
358# expand $ac_aux_dir to an absolute path
359am_aux_dir=`cd $ac_aux_dir && pwd`
360])
d7cb1a97 361
921e3f29 362# AM_PROG_INSTALL_SH
363# ------------------
364# Define $install_sh.
d7cb1a97 365
921e3f29 366# Copyright 2001 Free Software Foundation, Inc.
d7cb1a97 367
921e3f29 368# This program is free software; you can redistribute it and/or modify
369# it under the terms of the GNU General Public License as published by
370# the Free Software Foundation; either version 2, or (at your option)
371# any later version.
d7cb1a97 372
921e3f29 373# This program is distributed in the hope that it will be useful,
374# but WITHOUT ANY WARRANTY; without even the implied warranty of
375# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376# GNU General Public License for more details.
d7cb1a97 377
921e3f29 378# You should have received a copy of the GNU General Public License
379# along with this program; if not, write to the Free Software
380# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
381# 02111-1307, USA.
d7cb1a97 382
921e3f29 383AC_DEFUN([AM_PROG_INSTALL_SH],
384[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
385install_sh=${install_sh-"$am_aux_dir/install-sh"}
386AC_SUBST(install_sh)])
d7cb1a97 387
921e3f29 388# AM_PROG_INSTALL_STRIP
e0282ee9 389
921e3f29 390# Copyright 2001 Free Software Foundation, Inc.
d7cb1a97 391
921e3f29 392# This program is free software; you can redistribute it and/or modify
393# it under the terms of the GNU General Public License as published by
394# the Free Software Foundation; either version 2, or (at your option)
395# any later version.
d7cb1a97 396
921e3f29 397# This program is distributed in the hope that it will be useful,
398# but WITHOUT ANY WARRANTY; without even the implied warranty of
399# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
400# GNU General Public License for more details.
d7cb1a97 401
921e3f29 402# You should have received a copy of the GNU General Public License
403# along with this program; if not, write to the Free Software
404# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
405# 02111-1307, USA.
d7cb1a97 406
921e3f29 407# One issue with vendor `install' (even GNU) is that you can't
408# specify the program used to strip binaries. This is especially
409# annoying in cross-compiling environments, where the build's strip
410# is unlikely to handle the host's binaries.
411# Fortunately install-sh will honor a STRIPPROG variable, so we
412# always use install-sh in `make install-strip', and initialize
413# STRIPPROG with the value of the STRIP variable (set by the user).
414AC_DEFUN([AM_PROG_INSTALL_STRIP],
415[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
416# Installed binaries are usually stripped using `strip' when the user
417# run `make install-strip'. However `strip' might not be the right
418# tool to use in cross-compilation environments, therefore Automake
419# will honor the `STRIP' environment variable to overrule this program.
420dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
421if test "$cross_compiling" != no; then
422 AC_CHECK_TOOL([STRIP], [strip], :)
d7cb1a97 423fi
921e3f29 424INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
425AC_SUBST([INSTALL_STRIP_PROGRAM])])
d7cb1a97 426
921e3f29 427# serial 4 -*- Autoconf -*-
d7cb1a97 428
921e3f29 429# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
430
431# This program is free software; you can redistribute it and/or modify
432# it under the terms of the GNU General Public License as published by
433# the Free Software Foundation; either version 2, or (at your option)
434# any later version.
435
436# This program is distributed in the hope that it will be useful,
437# but WITHOUT ANY WARRANTY; without even the implied warranty of
438# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
439# GNU General Public License for more details.
440
441# You should have received a copy of the GNU General Public License
442# along with this program; if not, write to the Free Software
443# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
444# 02111-1307, USA.
445
446
447# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
448# written in clear, in which case automake, when reading aclocal.m4,
449# will think it sees a *use*, and therefore will trigger all it's
450# C support machinery. Also note that it means that autoscan, seeing
451# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
452
453
454
455# _AM_DEPENDENCIES(NAME)
456# ----------------------
457# See how the compiler implements dependency checking.
458# NAME is "CC", "CXX", "GCJ", or "OBJC".
459# We try a few techniques and use that to set a single cache variable.
460#
461# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
462# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
463# dependency, and given that the user is not expected to run this macro,
464# just rely on AC_PROG_CC.
465AC_DEFUN([_AM_DEPENDENCIES],
466[AC_REQUIRE([AM_SET_DEPDIR])dnl
467AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
468AC_REQUIRE([AM_MAKE_INCLUDE])dnl
469AC_REQUIRE([AM_DEP_TRACK])dnl
470
471ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
472 [$1], CXX, [depcc="$CXX" am_compiler_list=],
473 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
474 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
475 [depcc="$$1" am_compiler_list=])
476
477AC_CACHE_CHECK([dependency style of $depcc],
478 [am_cv_$1_dependencies_compiler_type],
479[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
480 # We make a subdir and do the tests there. Otherwise we can end up
481 # making bogus files that we don't know about and never remove. For
482 # instance it was reported that on HP-UX the gcc test will end up
483 # making a dummy file named `D' -- because `-MD' means `put the output
484 # in D'.
485 mkdir conftest.dir
486 # Copy depcomp to subdir because otherwise we won't find it if we're
487 # using a relative directory.
488 cp "$am_depcomp" conftest.dir
489 cd conftest.dir
490
491 am_cv_$1_dependencies_compiler_type=none
492 if test "$am_compiler_list" = ""; then
493 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
494 fi
495 for depmode in $am_compiler_list; do
496 # We need to recreate these files for each test, as the compiler may
497 # overwrite some of them when testing with obscure command lines.
498 # This happens at least with the AIX C compiler.
499 echo '#include "conftest.h"' > conftest.c
500 echo 'int i;' > conftest.h
501 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
502
503 case $depmode in
504 nosideeffect)
505 # after this tag, mechanisms are not by side-effect, so they'll
506 # only be used when explicitly requested
507 if test "x$enable_dependency_tracking" = xyes; then
508 continue
509 else
510 break
511 fi
512 ;;
513 none) break ;;
514 esac
515 # We check with `-c' and `-o' for the sake of the "dashmstdout"
516 # mode. It turns out that the SunPro C++ compiler does not properly
517 # handle `-M -o', and we need to detect this.
518 if depmode=$depmode \
519 source=conftest.c object=conftest.o \
520 depfile=conftest.Po tmpdepfile=conftest.TPo \
521 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
522 grep conftest.h conftest.Po > /dev/null 2>&1 &&
523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
524 am_cv_$1_dependencies_compiler_type=$depmode
525 break
526 fi
527 done
528
529 cd ..
530 rm -rf conftest.dir
531else
532 am_cv_$1_dependencies_compiler_type=none
533fi
534])
535AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
d7cb1a97 536])
537
921e3f29 538
539# AM_SET_DEPDIR
540# -------------
541# Choose a directory name for dependency files.
542# This macro is AC_REQUIREd in _AM_DEPENDENCIES
543AC_DEFUN([AM_SET_DEPDIR],
544[rm -f .deps 2>/dev/null
545mkdir .deps 2>/dev/null
546if test -d .deps; then
547 DEPDIR=.deps
d7cb1a97 548else
921e3f29 549 # MS-DOS does not allow filenames that begin with a dot.
550 DEPDIR=_deps
d7cb1a97 551fi
921e3f29 552rmdir .deps 2>/dev/null
553AC_SUBST([DEPDIR])
554])
d7cb1a97 555
556
921e3f29 557# AM_DEP_TRACK
558# ------------
559AC_DEFUN([AM_DEP_TRACK],
560[AC_ARG_ENABLE(dependency-tracking,
561[ --disable-dependency-tracking Speeds up one-time builds
562 --enable-dependency-tracking Do not reject slow dependency extractors])
563if test "x$enable_dependency_tracking" != xno; then
564 am_depcomp="$ac_aux_dir/depcomp"
565 AMDEPBACKSLASH='\'
566fi
567AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
568AC_SUBST([AMDEPBACKSLASH])
569])
d7cb1a97 570
921e3f29 571# Generate code to set up dependency tracking. -*- Autoconf -*-
d7cb1a97 572
921e3f29 573# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
d7cb1a97 574
921e3f29 575# This program is free software; you can redistribute it and/or modify
576# it under the terms of the GNU General Public License as published by
577# the Free Software Foundation; either version 2, or (at your option)
578# any later version.
d7cb1a97 579
921e3f29 580# This program is distributed in the hope that it will be useful,
581# but WITHOUT ANY WARRANTY; without even the implied warranty of
582# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
583# GNU General Public License for more details.
d7cb1a97 584
921e3f29 585# You should have received a copy of the GNU General Public License
586# along with this program; if not, write to the Free Software
587# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
588# 02111-1307, USA.
e0282ee9 589
921e3f29 590#serial 2
e0282ee9 591
921e3f29 592# _AM_OUTPUT_DEPENDENCY_COMMANDS
593# ------------------------------
594AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
595[for mf in $CONFIG_FILES; do
596 # Strip MF so we end up with the name of the file.
597 mf=`echo "$mf" | sed -e 's/:.*$//'`
598 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
599 dirpart=`AS_DIRNAME("$mf")`
600 else
601 continue
602 fi
603 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
604 # Extract the definition of DEP_FILES from the Makefile without
605 # running `make'.
606 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
607 test -z "$DEPDIR" && continue
608 # When using ansi2knr, U may be empty or an underscore; expand it
609 U=`sed -n -e '/^U = / s///p' < "$mf"`
610 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
611 # We invoke sed twice because it is the simplest approach to
612 # changing $(DEPDIR) to its actual value in the expansion.
613 for file in `sed -n -e '
614 /^DEP_FILES = .*\\\\$/ {
615 s/^DEP_FILES = //
616 :loop
617 s/\\\\$//
618 p
619 n
620 /\\\\$/ b loop
621 p
622 }
623 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
625 # Make sure the directory exists.
626 test -f "$dirpart/$file" && continue
627 fdir=`AS_DIRNAME(["$file"])`
628 AS_MKDIR_P([$dirpart/$fdir])
629 # echo "creating $dirpart/$file"
630 echo '# dummy' > "$dirpart/$file"
631 done
632done
633])# _AM_OUTPUT_DEPENDENCY_COMMANDS
634
635
636# AM_OUTPUT_DEPENDENCY_COMMANDS
637# -----------------------------
638# This macro should only be invoked once -- use via AC_REQUIRE.
639#
640# This code is only required when automatic dependency tracking
641# is enabled. FIXME. This creates each `.P' file that we will
642# need in order to bootstrap the dependency handling code.
643AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
644[AC_CONFIG_COMMANDS([depfiles],
645 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
646 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
d7cb1a97 647])
d7cb1a97 648
921e3f29 649# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
d7cb1a97 650
921e3f29 651# This program is free software; you can redistribute it and/or modify
652# it under the terms of the GNU General Public License as published by
653# the Free Software Foundation; either version 2, or (at your option)
654# any later version.
d7cb1a97 655
921e3f29 656# This program is distributed in the hope that it will be useful,
657# but WITHOUT ANY WARRANTY; without even the implied warranty of
658# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
659# GNU General Public License for more details.
d7cb1a97 660
921e3f29 661# You should have received a copy of the GNU General Public License
662# along with this program; if not, write to the Free Software
663# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
664# 02111-1307, USA.
d7cb1a97 665
921e3f29 666# serial 2
d7cb1a97 667
921e3f29 668# AM_MAKE_INCLUDE()
669# -----------------
670# Check to see how make treats includes.
671AC_DEFUN([AM_MAKE_INCLUDE],
672[am_make=${MAKE-make}
673cat > confinc << 'END'
674doit:
675 @echo done
676END
677# If we don't find an include directive, just comment out the code.
678AC_MSG_CHECKING([for style of include used by $am_make])
679am__include="#"
680am__quote=
681_am_result=none
682# First try GNU make style include.
683echo "include confinc" > confmf
684# We grep out `Entering directory' and `Leaving directory'
685# messages which can occur if `w' ends up in MAKEFLAGS.
686# In particular we don't look at `^make:' because GNU make might
687# be invoked under some other name (usually "gmake"), in which
688# case it prints its new name instead of `make'.
689if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
690 am__include=include
691 am__quote=
692 _am_result=GNU
693fi
694# Now try BSD make style include.
695if test "$am__include" = "#"; then
696 echo '.include "confinc"' > confmf
697 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
698 am__include=.include
699 am__quote="\""
700 _am_result=BSD
701 fi
702fi
703AC_SUBST(am__include)
704AC_SUBST(am__quote)
705AC_MSG_RESULT($_am_result)
706rm -f confinc confmf
707])
d7cb1a97 708
921e3f29 709# AM_CONDITIONAL -*- Autoconf -*-
d7cb1a97 710
921e3f29 711# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
d7cb1a97 712
921e3f29 713# This program is free software; you can redistribute it and/or modify
714# it under the terms of the GNU General Public License as published by
715# the Free Software Foundation; either version 2, or (at your option)
716# any later version.
d7cb1a97 717
921e3f29 718# This program is distributed in the hope that it will be useful,
719# but WITHOUT ANY WARRANTY; without even the implied warranty of
720# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
721# GNU General Public License for more details.
d7cb1a97 722
921e3f29 723# You should have received a copy of the GNU General Public License
724# along with this program; if not, write to the Free Software
725# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
726# 02111-1307, USA.
d7cb1a97 727
921e3f29 728# serial 5
d7cb1a97 729
921e3f29 730AC_PREREQ(2.52)
d7cb1a97 731
921e3f29 732# AM_CONDITIONAL(NAME, SHELL-CONDITION)
733# -------------------------------------
734# Define a conditional.
735AC_DEFUN([AM_CONDITIONAL],
736[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
737 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
738AC_SUBST([$1_TRUE])
739AC_SUBST([$1_FALSE])
740if $2; then
741 $1_TRUE=
742 $1_FALSE='#'
d7cb1a97 743else
921e3f29 744 $1_TRUE='#'
745 $1_FALSE=
746fi
747AC_CONFIG_COMMANDS_PRE(
748[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
749 AC_MSG_ERROR([conditional \"$1\" was never defined.
750Usually this means the macro was only invoked conditionally.])
751fi])])
d7cb1a97 752
921e3f29 753# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
d7cb1a97 754
921e3f29 755# serial 48 AC_PROG_LIBTOOL
d7cb1a97 756
d7cb1a97 757
921e3f29 758# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
759# -----------------------------------------------------------
760# If this macro is not defined by Autoconf, define it here.
761m4_ifdef([AC_PROVIDE_IFELSE],
762 [],
763 [m4_define([AC_PROVIDE_IFELSE],
764 [m4_ifdef([AC_PROVIDE_$1],
765 [$2], [$3])])])
d7cb1a97 766
d7cb1a97 767
921e3f29 768# AC_PROG_LIBTOOL
769# ---------------
770AC_DEFUN([AC_PROG_LIBTOOL],
771[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
772dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
773dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
774 AC_PROVIDE_IFELSE([AC_PROG_CXX],
775 [AC_LIBTOOL_CXX],
776 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
777 ])])
778dnl And a similar setup for Fortran 77 support
779 AC_PROVIDE_IFELSE([AC_PROG_F77],
780 [AC_LIBTOOL_F77],
781 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
782])])
d7cb1a97 783
921e3f29 784dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
785dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
786dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
787 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
788 [AC_LIBTOOL_GCJ],
789 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
790 [AC_LIBTOOL_GCJ],
791 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
792 [AC_LIBTOOL_GCJ],
793 [ifdef([AC_PROG_GCJ],
794 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
795 ifdef([A][M_PROG_GCJ],
796 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
797 ifdef([LT_AC_PROG_GCJ],
798 [define([LT_AC_PROG_GCJ],
799 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
800])])# AC_PROG_LIBTOOL
d7cb1a97 801
d7cb1a97 802
921e3f29 803# _AC_PROG_LIBTOOL
804# ----------------
805AC_DEFUN([_AC_PROG_LIBTOOL],
806[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
807AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
808AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
809AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
d7cb1a97 810
921e3f29 811# This can be used to rebuild libtool when needed
812LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
d7cb1a97 813
921e3f29 814# Always use our own libtool.
815LIBTOOL='$(SHELL) $(top_builddir)/libtool'
816AC_SUBST(LIBTOOL)dnl
d7cb1a97 817
921e3f29 818# Prevent multiple expansion
819define([AC_PROG_LIBTOOL], [])
820])# _AC_PROG_LIBTOOL
d7cb1a97 821
d7cb1a97 822
921e3f29 823# AC_LIBTOOL_SETUP
824# ----------------
825AC_DEFUN([AC_LIBTOOL_SETUP],
826[AC_PREREQ(2.50)dnl
827AC_REQUIRE([AC_ENABLE_SHARED])dnl
828AC_REQUIRE([AC_ENABLE_STATIC])dnl
829AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
830AC_REQUIRE([AC_CANONICAL_HOST])dnl
831AC_REQUIRE([AC_CANONICAL_BUILD])dnl
832AC_REQUIRE([AC_PROG_CC])dnl
833AC_REQUIRE([AC_PROG_LD])dnl
834AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
835AC_REQUIRE([AC_PROG_NM])dnl
d7cb1a97 836
921e3f29 837AC_REQUIRE([AC_PROG_LN_S])dnl
838AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
839# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
840AC_REQUIRE([AC_OBJEXT])dnl
841AC_REQUIRE([AC_EXEEXT])dnl
842dnl
d7cb1a97 843
921e3f29 844AC_LIBTOOL_SYS_MAX_CMD_LEN
845AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
846AC_LIBTOOL_OBJDIR
d7cb1a97 847
921e3f29 848AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
849_LT_AC_PROG_ECHO_BACKSLASH
d7cb1a97 850
921e3f29 851case $host_os in
852aix3*)
853 # AIX sometimes has problems with the GCC collect2 program. For some
854 # reason, if we set the COLLECT_NAMES environment variable, the problems
855 # vanish in a puff of smoke.
856 if test "X${COLLECT_NAMES+set}" != Xset; then
857 COLLECT_NAMES=
858 export COLLECT_NAMES
859 fi
860 ;;
861esac
d7cb1a97 862
921e3f29 863# Sed substitution that helps us do robust quoting. It backslashifies
864# metacharacters that are still active within double-quoted strings.
865Xsed='sed -e 1s/^X//'
866[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
d7cb1a97 867
921e3f29 868# Same as above, but do not quote variable references.
869[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
d7cb1a97 870
921e3f29 871# Sed substitution to delay expansion of an escaped shell variable in a
872# double_quote_subst'ed string.
873delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7cb1a97 874
921e3f29 875# Sed substitution to avoid accidental globbing in evaled expressions
876no_glob_subst='s/\*/\\\*/g'
d7cb1a97 877
921e3f29 878# Constants:
879rm="rm -f"
d7cb1a97 880
921e3f29 881# Global variables:
882default_ofile=libtool
883can_build_shared=yes
d7cb1a97 884
921e3f29 885# All known linkers require a `.a' archive for static linking (except MSVC,
886# which needs '.lib').
887libext=a
888ltmain="$ac_aux_dir/ltmain.sh"
889ofile="$default_ofile"
890with_gnu_ld="$lt_cv_prog_gnu_ld"
d7cb1a97 891
921e3f29 892AC_CHECK_TOOL(AR, ar, false)
893AC_CHECK_TOOL(RANLIB, ranlib, :)
894AC_CHECK_TOOL(STRIP, strip, :)
d7cb1a97 895
921e3f29 896old_CC="$CC"
897old_CFLAGS="$CFLAGS"
d7cb1a97 898
921e3f29 899# Set sane defaults for various variables
900test -z "$AR" && AR=ar
901test -z "$AR_FLAGS" && AR_FLAGS=cru
902test -z "$AS" && AS=as
903test -z "$CC" && CC=cc
904test -z "$LTCC" && LTCC=$CC
905test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
906test -z "$DLLTOOL" && DLLTOOL=dlltool
907test -z "$LD" && LD=ld
908test -z "$LN_S" && LN_S="ln -s"
909test -z "$MAGIC_CMD" && MAGIC_CMD=file
910test -z "$NM" && NM=nm
911test -z "$SED" && SED=sed
912test -z "$OBJDUMP" && OBJDUMP=objdump
913test -z "$RANLIB" && RANLIB=:
914test -z "$STRIP" && STRIP=:
915test -z "$ac_objext" && ac_objext=o
916
917# Determine commands to create old-style static archives.
918old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
919old_postinstall_cmds='chmod 644 $oldlib'
920old_postuninstall_cmds=
921
922if test -n "$RANLIB"; then
d7cb1a97 923 case $host_os in
921e3f29 924 openbsd*)
925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
926 ;;
927 *)
928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d7cb1a97 929 ;;
930 esac
921e3f29 931 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7cb1a97 932fi
d7cb1a97 933
921e3f29 934_LT_CC_BASENAME([$compiler])
d7cb1a97 935
921e3f29 936# Only perform the check for file, if the check method requires it
937case $deplibs_check_method in
938file_magic*)
939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
940 AC_PATH_MAGIC
d7cb1a97 941 fi
921e3f29 942 ;;
943esac
d7cb1a97 944
921e3f29 945AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
946AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
947enable_win32_dll=yes, enable_win32_dll=no)
d7cb1a97 948
921e3f29 949AC_ARG_ENABLE([libtool-lock],
950 [AC_HELP_STRING([--disable-libtool-lock],
951 [avoid locking (might break parallel builds)])])
952test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7cb1a97 953
921e3f29 954AC_ARG_WITH([pic],
955 [AC_HELP_STRING([--with-pic],
956 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
957 [pic_mode="$withval"],
958 [pic_mode=default])
959test -z "$pic_mode" && pic_mode=default
d7cb1a97 960
921e3f29 961# Use C for the default configuration in the libtool script
962tagname=
963AC_LIBTOOL_LANG_C_CONFIG
964_LT_AC_TAGCONFIG
965])# AC_LIBTOOL_SETUP
d7cb1a97 966
d7cb1a97 967
921e3f29 968# _LT_AC_SYS_COMPILER
969# -------------------
970AC_DEFUN([_LT_AC_SYS_COMPILER],
971[AC_REQUIRE([AC_PROG_CC])dnl
d7cb1a97 972
921e3f29 973# If no C compiler was specified, use CC.
974LTCC=${LTCC-"$CC"}
d7cb1a97 975
921e3f29 976# If no C compiler flags were specified, use CFLAGS.
977LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7cb1a97 978
921e3f29 979# Allow CC to be a program name with arguments.
980compiler=$CC
981])# _LT_AC_SYS_COMPILER
d7cb1a97 982
d7cb1a97 983
921e3f29 984# _LT_CC_BASENAME(CC)
985# -------------------
986# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
987AC_DEFUN([_LT_CC_BASENAME],
988[for cc_temp in $1""; do
989 case $cc_temp in
990 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
991 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
992 \-*) ;;
993 *) break;;
d7cb1a97 994 esac
921e3f29 995done
996cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
997])
d7cb1a97 998
d7cb1a97 999
921e3f29 1000# _LT_COMPILER_BOILERPLATE
1001# ------------------------
1002# Check for compiler boilerplate output or warnings with
1003# the simple compiler test code.
1004AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1005[ac_outfile=conftest.$ac_objext
1006printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1007eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1008_lt_compiler_boilerplate=`cat conftest.err`
1009$rm conftest*
1010])# _LT_COMPILER_BOILERPLATE
d7cb1a97 1011
d7cb1a97 1012
921e3f29 1013# _LT_LINKER_BOILERPLATE
1014# ----------------------
1015# Check for linker boilerplate output or warnings with
1016# the simple link test code.
1017AC_DEFUN([_LT_LINKER_BOILERPLATE],
1018[ac_outfile=conftest.$ac_objext
1019printf "$lt_simple_link_test_code" >conftest.$ac_ext
1020eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1021_lt_linker_boilerplate=`cat conftest.err`
1022$rm conftest*
1023])# _LT_LINKER_BOILERPLATE
d7cb1a97 1024
d7cb1a97 1025
921e3f29 1026# _LT_AC_SYS_LIBPATH_AIX
1027# ----------------------
1028# Links a minimal program and checks the executable
1029# for the system default hardcoded library path. In most cases,
1030# this is /usr/lib:/lib, but when the MPI compilers are used
1031# the location of the communication and MPI libs are included too.
1032# If we don't find anything, use the default library path according
1033# to the aix ld manual.
1034AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1035[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1037}'`
1038# Check for a 64-bit object if we didn't find anything.
1039if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1040}'`; fi],[])
1041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1042])# _LT_AC_SYS_LIBPATH_AIX
d7cb1a97 1043
d7cb1a97 1044
921e3f29 1045# _LT_AC_SHELL_INIT(ARG)
1046# ----------------------
1047AC_DEFUN([_LT_AC_SHELL_INIT],
1048[ifdef([AC_DIVERSION_NOTICE],
1049 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1050 [AC_DIVERT_PUSH(NOTICE)])
1051$1
1052AC_DIVERT_POP
1053])# _LT_AC_SHELL_INIT
e0282ee9 1054
d7cb1a97 1055
921e3f29 1056# _LT_AC_PROG_ECHO_BACKSLASH
1057# --------------------------
1058# Add some code to the start of the generated configure script which
1059# will find an echo command which doesn't interpret backslashes.
1060AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1061[_LT_AC_SHELL_INIT([
1062# Check that we are running under the correct shell.
1063SHELL=${CONFIG_SHELL-/bin/sh}
1064
1065case X$ECHO in
1066X*--fallback-echo)
1067 # Remove one level of quotation (which was required for Make).
1068 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
d7cb1a97 1069 ;;
921e3f29 1070esac
d7cb1a97 1071
921e3f29 1072echo=${ECHO-echo}
1073if test "X[$]1" = X--no-reexec; then
1074 # Discard the --no-reexec flag, and continue.
1075 shift
1076elif test "X[$]1" = X--fallback-echo; then
1077 # Avoid inline document here, it may be left over
1078 :
1079elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1080 # Yippee, $echo works!
1081 :
1082else
1083 # Restart under the correct shell.
1084 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1085fi
d7cb1a97 1086
921e3f29 1087if test "X[$]1" = X--fallback-echo; then
1088 # used as fallback echo
1089 shift
1090 cat <<EOF
1091[$]*
1092EOF
1093 exit 0
1094fi
d7cb1a97 1095
921e3f29 1096# The HP-UX ksh and POSIX shell print the target directory to stdout
1097# if CDPATH is set.
1098(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d7cb1a97 1099
921e3f29 1100if test -z "$ECHO"; then
1101if test "X${echo_test_string+set}" != Xset; then
1102# find a string as large as possible, as long as the shell can cope with it
1103 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1104 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1105 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1106 echo_test_string=`eval $cmd` &&
1107 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1108 then
1109 break
1110 fi
1111 done
1112fi
d8674157 1113
921e3f29 1114if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1116 test "X$echo_testing_string" = "X$echo_test_string"; then
1117 :
1118else
1119 # The Solaris, AIX, and Digital Unix default echo programs unquote
1120 # backslashes. This makes it impossible to quote backslashes using
1121 # echo "$something" | sed 's/\\/\\\\/g'
1122 #
1123 # So, first we look for a working echo in the user's PATH.
d7cb1a97 1124
921e3f29 1125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1126 for dir in $PATH /usr/ucb; do
1127 IFS="$lt_save_ifs"
1128 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1129 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1130 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1131 test "X$echo_testing_string" = "X$echo_test_string"; then
1132 echo="$dir/echo"
1133 break
1134 fi
1135 done
1136 IFS="$lt_save_ifs"
d7cb1a97 1137
921e3f29 1138 if test "X$echo" = Xecho; then
1139 # We didn't find a better echo, so look for alternatives.
1140 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1141 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1142 test "X$echo_testing_string" = "X$echo_test_string"; then
1143 # This shell has a builtin print -r that does the trick.
1144 echo='print -r'
1145 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1146 test "X$CONFIG_SHELL" != X/bin/ksh; then
1147 # If we have ksh, try running configure again with it.
1148 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1149 export ORIGINAL_CONFIG_SHELL
1150 CONFIG_SHELL=/bin/ksh
1151 export CONFIG_SHELL
1152 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1153 else
1154 # Try using printf.
1155 echo='printf %s\n'
1156 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1157 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1158 test "X$echo_testing_string" = "X$echo_test_string"; then
1159 # Cool, printf works
1160 :
1161 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1162 test "X$echo_testing_string" = 'X\t' &&
1163 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1164 test "X$echo_testing_string" = "X$echo_test_string"; then
1165 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1166 export CONFIG_SHELL
1167 SHELL="$CONFIG_SHELL"
1168 export SHELL
1169 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1170 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1175 else
1176 # maybe with a smaller string...
1177 prev=:
d7cb1a97 1178
921e3f29 1179 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1180 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1181 then
1182 break
1183 fi
1184 prev="$cmd"
1185 done
d7cb1a97 1186
921e3f29 1187 if test "$prev" != 'sed 50q "[$]0"'; then
1188 echo_test_string=`eval $prev`
1189 export echo_test_string
1190 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1191 else
1192 # Oops. We lost completely, so just stick with echo.
1193 echo=echo
1194 fi
1195 fi
1196 fi
d7cb1a97 1197 fi
921e3f29 1198fi
1199fi
d7cb1a97 1200
921e3f29 1201# Copy echo and quote the copy suitably for passing to libtool from
1202# the Makefile, instead of quoting the original, which is used later.
1203ECHO=$echo
1204if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1205 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1206fi
d7cb1a97 1207
921e3f29 1208AC_SUBST(ECHO)
1209])])# _LT_AC_PROG_ECHO_BACKSLASH
d7cb1a97 1210
d7cb1a97 1211
921e3f29 1212# _LT_AC_LOCK
1213# -----------
1214AC_DEFUN([_LT_AC_LOCK],
1215[AC_ARG_ENABLE([libtool-lock],
1216 [AC_HELP_STRING([--disable-libtool-lock],
1217 [avoid locking (might break parallel builds)])])
1218test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1219
1220# Some flags need to be propagated to the compiler or linker for good
1221# libtool support.
1222case $host in
1223ia64-*-hpux*)
1224 # Find out which ABI we are using.
1225 echo 'int i;' > conftest.$ac_ext
1226 if AC_TRY_EVAL(ac_compile); then
1227 case `/usr/bin/file conftest.$ac_objext` in
1228 *ELF-32*)
1229 HPUX_IA64_MODE="32"
1230 ;;
1231 *ELF-64*)
1232 HPUX_IA64_MODE="64"
1233 ;;
1234 esac
d7cb1a97 1235 fi
921e3f29 1236 rm -rf conftest*
d7cb1a97 1237 ;;
921e3f29 1238*-*-irix6*)
1239 # Find out which ABI we are using.
1240 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1241 if AC_TRY_EVAL(ac_compile); then
1242 if test "$lt_cv_prog_gnu_ld" = yes; then
1243 case `/usr/bin/file conftest.$ac_objext` in
1244 *32-bit*)
1245 LD="${LD-ld} -melf32bsmip"
d7cb1a97 1246 ;;
921e3f29 1247 *N32*)
1248 LD="${LD-ld} -melf32bmipn32"
d7cb1a97 1249 ;;
921e3f29 1250 *64-bit*)
1251 LD="${LD-ld} -melf64bmip"
d7cb1a97 1252 ;;
921e3f29 1253 esac
1254 else
1255 case `/usr/bin/file conftest.$ac_objext` in
1256 *32-bit*)
1257 LD="${LD-ld} -32"
1258 ;;
1259 *N32*)
1260 LD="${LD-ld} -n32"
1261 ;;
1262 *64-bit*)
1263 LD="${LD-ld} -64"
1264 ;;
1265 esac
1266 fi
d7cb1a97 1267 fi
921e3f29 1268 rm -rf conftest*
d7cb1a97 1269 ;;
1270
921e3f29 1271x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1272 # Find out which ABI we are using.
1273 echo 'int i;' > conftest.$ac_ext
1274 if AC_TRY_EVAL(ac_compile); then
1275 case `/usr/bin/file conftest.o` in
1276 *32-bit*)
1277 case $host in
1278 x86_64-*linux*)
1279 LD="${LD-ld} -m elf_i386"
1280 ;;
1281 ppc64-*linux*|powerpc64-*linux*)
1282 LD="${LD-ld} -m elf32ppclinux"
1283 ;;
1284 s390x-*linux*)
1285 LD="${LD-ld} -m elf_s390"
1286 ;;
1287 sparc64-*linux*)
1288 LD="${LD-ld} -m elf32_sparc"
1289 ;;
1290 esac
1291 ;;
1292 *64-bit*)
1293 case $host in
1294 x86_64-*linux*)
1295 LD="${LD-ld} -m elf_x86_64"
1296 ;;
1297 ppc*-*linux*|powerpc*-*linux*)
1298 LD="${LD-ld} -m elf64ppc"
1299 ;;
1300 s390*-*linux*)
1301 LD="${LD-ld} -m elf64_s390"
1302 ;;
1303 sparc*-*linux*)
1304 LD="${LD-ld} -m elf64_sparc"
1305 ;;
1306 esac
1307 ;;
e0282ee9 1308 esac
1309 fi
921e3f29 1310 rm -rf conftest*
e0282ee9 1311 ;;
1312
921e3f29 1313*-*-sco3.2v5*)
1314 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1315 SAVE_CFLAGS="$CFLAGS"
1316 CFLAGS="$CFLAGS -belf"
1317 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1318 [AC_LANG_PUSH(C)
1319 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1320 AC_LANG_POP])
1321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1323 CFLAGS="$SAVE_CFLAGS"
1324 fi
1325 ;;
1326sparc*-*solaris*)
1327 # Find out which ABI we are using.
1328 echo 'int i;' > conftest.$ac_ext
1329 if AC_TRY_EVAL(ac_compile); then
1330 case `/usr/bin/file conftest.o` in
1331 *64-bit*)
1332 case $lt_cv_prog_gnu_ld in
1333 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1334 *) LD="${LD-ld} -64" ;;
1335 esac
1336 ;;
1337 esac
1338 fi
1339 rm -rf conftest*
d7cb1a97 1340 ;;
1341
921e3f29 1342AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1343[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1344 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1345 AC_CHECK_TOOL(AS, as, false)
1346 AC_CHECK_TOOL(OBJDUMP, objdump, false)
d7cb1a97 1347 ;;
921e3f29 1348 ])
d7cb1a97 1349esac
e0282ee9 1350
921e3f29 1351need_locks="$enable_libtool_lock"
d7cb1a97 1352
921e3f29 1353])# _LT_AC_LOCK
d7cb1a97 1354
d7cb1a97 1355
921e3f29 1356# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1357# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1358# ----------------------------------------------------------------
1359# Check whether the given compiler option works
1360AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1361[AC_REQUIRE([LT_AC_PROG_SED])
1362AC_CACHE_CHECK([$1], [$2],
1363 [$2=no
1364 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1366 lt_compiler_flag="$3"
1367 # Insert the option either (1) after the last *FLAGS variable, or
1368 # (2) before a word containing "conftest.", or (3) at the end.
1369 # Note that $ac_compile itself does not contain backslashes and begins
1370 # with a dollar sign (not a hyphen), so the echo should work correctly.
1371 # The option is referenced via a variable to avoid confusing sed.
1372 lt_compile=`echo "$ac_compile" | $SED \
1373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1374 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1375 -e 's:$: $lt_compiler_flag:'`
1376 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1377 (eval "$lt_compile" 2>conftest.err)
1378 ac_status=$?
1379 cat conftest.err >&AS_MESSAGE_LOG_FD
1380 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1381 if (exit $ac_status) && test -s "$ac_outfile"; then
1382 # The compiler can only warn and ignore the option if not recognized
1383 # So say no if there are warnings other than the usual output.
1384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1387 $2=yes
1388 fi
1389 fi
1390 $rm conftest*
1391])
d7cb1a97 1392
921e3f29 1393if test x"[$]$2" = xyes; then
1394 ifelse([$5], , :, [$5])
1395else
1396 ifelse([$6], , :, [$6])
1397fi
1398])# AC_LIBTOOL_COMPILER_OPTION
d7cb1a97 1399
d7cb1a97 1400
921e3f29 1401# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1402# [ACTION-SUCCESS], [ACTION-FAILURE])
1403# ------------------------------------------------------------
1404# Check whether the given compiler option works
1405AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1406[AC_CACHE_CHECK([$1], [$2],
1407 [$2=no
1408 save_LDFLAGS="$LDFLAGS"
1409 LDFLAGS="$LDFLAGS $3"
1410 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1412 # The linker can only warn and ignore the option if not recognized
1413 # So say no if there are warnings
1414 if test -s conftest.err; then
1415 # Append any errors to the config.log.
1416 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1417 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1419 if diff conftest.exp conftest.er2 >/dev/null; then
1420 $2=yes
1421 fi
1422 else
1423 $2=yes
1424 fi
1425 fi
1426 $rm conftest*
1427 LDFLAGS="$save_LDFLAGS"
1428])
d7cb1a97 1429
921e3f29 1430if test x"[$]$2" = xyes; then
1431 ifelse([$4], , :, [$4])
1432else
1433 ifelse([$5], , :, [$5])
1434fi
1435])# AC_LIBTOOL_LINKER_OPTION
d7cb1a97 1436
d7cb1a97 1437
921e3f29 1438# AC_LIBTOOL_SYS_MAX_CMD_LEN
1439# --------------------------
1440AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1441[# find the maximum length of command line arguments
1442AC_MSG_CHECKING([the maximum length of command line arguments])
1443AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1444 i=0
1445 teststring="ABCD"
d7cb1a97 1446
921e3f29 1447 case $build_os in
1448 msdosdjgpp*)
1449 # On DJGPP, this test can blow up pretty badly due to problems in libc
1450 # (any single argument exceeding 2000 bytes causes a buffer overrun
1451 # during glob expansion). Even if it were fixed, the result of this
1452 # check would be larger than it should be.
1453 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1454 ;;
d7cb1a97 1455
921e3f29 1456 gnu*)
1457 # Under GNU Hurd, this test is not required because there is
1458 # no limit to the length of command line arguments.
1459 # Libtool will interpret -1 as no limit whatsoever
1460 lt_cv_sys_max_cmd_len=-1;
1461 ;;
d7cb1a97 1462
921e3f29 1463 cygwin* | mingw*)
1464 # On Win9x/ME, this test blows up -- it succeeds, but takes
1465 # about 5 minutes as the teststring grows exponentially.
1466 # Worse, since 9x/ME are not pre-emptively multitasking,
1467 # you end up with a "frozen" computer, even though with patience
1468 # the test eventually succeeds (with a max line length of 256k).
1469 # Instead, let's just punt: use the minimum linelength reported by
1470 # all of the supported platforms: 8192 (on NT/2K/XP).
1471 lt_cv_sys_max_cmd_len=8192;
1472 ;;
d7cb1a97 1473
921e3f29 1474 amigaos*)
1475 # On AmigaOS with pdksh, this test takes hours, literally.
1476 # So we just punt and use a minimum line length of 8192.
1477 lt_cv_sys_max_cmd_len=8192;
1478 ;;
d7cb1a97 1479
921e3f29 1480 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1481 # This has been around since 386BSD, at least. Likely further.
1482 if test -x /sbin/sysctl; then
1483 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1484 elif test -x /usr/sbin/sysctl; then
1485 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1486 else
1487 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d7cb1a97 1488 fi
921e3f29 1489 # And add a safety zone
1490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1492 ;;
d7cb1a97 1493
921e3f29 1494 interix*)
1495 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1496 lt_cv_sys_max_cmd_len=196608
1497 ;;
d7cb1a97 1498
921e3f29 1499 osf*)
1500 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1501 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1502 # nice to cause kernel panics so lets avoid the loop below.
1503 # First set a reasonable default.
1504 lt_cv_sys_max_cmd_len=16384
1505 #
1506 if test -x /sbin/sysconfig; then
1507 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1508 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1509 esac
1510 fi
1511 ;;
1512 sco3.2v5*)
1513 lt_cv_sys_max_cmd_len=102400
1514 ;;
1515 sysv5* | sco5v6* | sysv4.2uw2*)
1516 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1517 if test -n "$kargmax"; then
1518 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1519 else
1520 lt_cv_sys_max_cmd_len=32768
1521 fi
1522 ;;
1523 *)
1524 # If test is not a shell built-in, we'll probably end up computing a
1525 # maximum length that is only half of the actual maximum length, but
1526 # we can't tell.
1527 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1528 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1529 = "XX$teststring") >/dev/null 2>&1 &&
1530 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1531 lt_cv_sys_max_cmd_len=$new_result &&
1532 test $i != 17 # 1/2 MB should be enough
1533 do
1534 i=`expr $i + 1`
1535 teststring=$teststring$teststring
1536 done
1537 teststring=
1538 # Add a significant safety factor because C++ compilers can tack on massive
1539 # amounts of additional arguments before passing them to the linker.
1540 # It appears as though 1/2 is a usable value.
1541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1542 ;;
1543 esac
1544])
1545if test -n $lt_cv_sys_max_cmd_len ; then
1546 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1547else
1548 AC_MSG_RESULT(none)
1549fi
1550])# AC_LIBTOOL_SYS_MAX_CMD_LEN
d7cb1a97 1551
1552
921e3f29 1553# _LT_AC_CHECK_DLFCN
1554# ------------------
1555AC_DEFUN([_LT_AC_CHECK_DLFCN],
1556[AC_CHECK_HEADERS(dlfcn.h)dnl
1557])# _LT_AC_CHECK_DLFCN
d7cb1a97 1558
1559
921e3f29 1560# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1561# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1562# ---------------------------------------------------------------------
1563AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1564[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1565if test "$cross_compiling" = yes; then :
1566 [$4]
1567else
1568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1569 lt_status=$lt_dlunknown
1570 cat > conftest.$ac_ext <<EOF
1571[#line __oline__ "configure"
1572#include "confdefs.h"
d7cb1a97 1573
921e3f29 1574#if HAVE_DLFCN_H
1575#include <dlfcn.h>
1576#endif
d7cb1a97 1577
921e3f29 1578#include <stdio.h>
d7cb1a97 1579
921e3f29 1580#ifdef RTLD_GLOBAL
1581# define LT_DLGLOBAL RTLD_GLOBAL
1582#else
1583# ifdef DL_GLOBAL
1584# define LT_DLGLOBAL DL_GLOBAL
1585# else
1586# define LT_DLGLOBAL 0
1587# endif
1588#endif
d7cb1a97 1589
921e3f29 1590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1591 find out it does not work in some platform. */
1592#ifndef LT_DLLAZY_OR_NOW
1593# ifdef RTLD_LAZY
1594# define LT_DLLAZY_OR_NOW RTLD_LAZY
1595# else
1596# ifdef DL_LAZY
1597# define LT_DLLAZY_OR_NOW DL_LAZY
1598# else
1599# ifdef RTLD_NOW
1600# define LT_DLLAZY_OR_NOW RTLD_NOW
1601# else
1602# ifdef DL_NOW
1603# define LT_DLLAZY_OR_NOW DL_NOW
1604# else
1605# define LT_DLLAZY_OR_NOW 0
1606# endif
1607# endif
1608# endif
1609# endif
1610#endif
d7cb1a97 1611
921e3f29 1612#ifdef __cplusplus
1613extern "C" void exit (int);
1614#endif
d7cb1a97 1615
921e3f29 1616void fnord() { int i=42;}
1617int main ()
1618{
1619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1620 int status = $lt_dlunknown;
d7cb1a97 1621
921e3f29 1622 if (self)
1623 {
1624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1625 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1626 /* dlclose (self); */
1627 }
1628 else
1629 puts (dlerror ());
d7cb1a97 1630
921e3f29 1631 exit (status);
1632}]
1633EOF
1634 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1635 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1636 lt_status=$?
1637 case x$lt_status in
1638 x$lt_dlno_uscore) $1 ;;
1639 x$lt_dlneed_uscore) $2 ;;
1640 x$lt_dlunknown|x*) $3 ;;
1641 esac
1642 else :
1643 # compilation failed
1644 $3
1645 fi
1646fi
1647rm -fr conftest*
1648])# _LT_AC_TRY_DLOPEN_SELF
d7cb1a97 1649
1650
921e3f29 1651# AC_LIBTOOL_DLOPEN_SELF
1652# ----------------------
1653AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1654[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1655if test "x$enable_dlopen" != xyes; then
1656 enable_dlopen=unknown
1657 enable_dlopen_self=unknown
1658 enable_dlopen_self_static=unknown
d7cb1a97 1659else
921e3f29 1660 lt_cv_dlopen=no
1661 lt_cv_dlopen_libs=
d7cb1a97 1662
921e3f29 1663 case $host_os in
1664 beos*)
1665 lt_cv_dlopen="load_add_on"
1666 lt_cv_dlopen_libs=
1667 lt_cv_dlopen_self=yes
1668 ;;
d7cb1a97 1669
921e3f29 1670 mingw* | pw32*)
1671 lt_cv_dlopen="LoadLibrary"
1672 lt_cv_dlopen_libs=
1673 ;;
d7cb1a97 1674
921e3f29 1675 cygwin*)
1676 lt_cv_dlopen="dlopen"
1677 lt_cv_dlopen_libs=
1678 ;;
1679
1680 darwin*)
1681 # if libdl is installed we need to link against it
1682 AC_CHECK_LIB([dl], [dlopen],
1683 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1684 lt_cv_dlopen="dyld"
1685 lt_cv_dlopen_libs=
1686 lt_cv_dlopen_self=yes
1687 ])
1688 ;;
d7cb1a97 1689
d7cb1a97 1690 *)
921e3f29 1691 AC_CHECK_FUNC([shl_load],
1692 [lt_cv_dlopen="shl_load"],
1693 [AC_CHECK_LIB([dld], [shl_load],
1694 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1695 [AC_CHECK_FUNC([dlopen],
1696 [lt_cv_dlopen="dlopen"],
1697 [AC_CHECK_LIB([dl], [dlopen],
1698 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1699 [AC_CHECK_LIB([svld], [dlopen],
1700 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1701 [AC_CHECK_LIB([dld], [dld_link],
1702 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1703 ])
1704 ])
1705 ])
1706 ])
1707 ])
d7cb1a97 1708 ;;
1709 esac
d7cb1a97 1710
921e3f29 1711 if test "x$lt_cv_dlopen" != xno; then
1712 enable_dlopen=yes
1713 else
1714 enable_dlopen=no
1715 fi
d7cb1a97 1716
921e3f29 1717 case $lt_cv_dlopen in
1718 dlopen)
1719 save_CPPFLAGS="$CPPFLAGS"
1720 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d7cb1a97 1721
921e3f29 1722 save_LDFLAGS="$LDFLAGS"
1723 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d7cb1a97 1724
921e3f29 1725 save_LIBS="$LIBS"
1726 LIBS="$lt_cv_dlopen_libs $LIBS"
d7cb1a97 1727
921e3f29 1728 AC_CACHE_CHECK([whether a program can dlopen itself],
1729 lt_cv_dlopen_self, [dnl
1730 _LT_AC_TRY_DLOPEN_SELF(
1731 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1732 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1733 ])
d7cb1a97 1734
921e3f29 1735 if test "x$lt_cv_dlopen_self" = xyes; then
1736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1737 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1738 lt_cv_dlopen_self_static, [dnl
1739 _LT_AC_TRY_DLOPEN_SELF(
1740 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1741 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1742 ])
1743 fi
d7cb1a97 1744
921e3f29 1745 CPPFLAGS="$save_CPPFLAGS"
1746 LDFLAGS="$save_LDFLAGS"
1747 LIBS="$save_LIBS"
1748 ;;
1749 esac
d7cb1a97 1750
921e3f29 1751 case $lt_cv_dlopen_self in
1752 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1753 *) enable_dlopen_self=unknown ;;
1754 esac
d7cb1a97 1755
921e3f29 1756 case $lt_cv_dlopen_self_static in
1757 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1758 *) enable_dlopen_self_static=unknown ;;
1759 esac
1760fi
1761])# AC_LIBTOOL_DLOPEN_SELF
d7cb1a97 1762
d7cb1a97 1763
921e3f29 1764# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1765# ---------------------------------
1766# Check to see if options -c and -o are simultaneously supported by compiler
1767AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1768[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1769AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1770 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1771 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1772 $rm -r conftest 2>/dev/null
1773 mkdir conftest
1774 cd conftest
1775 mkdir out
1776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
d7cb1a97 1777
921e3f29 1778 lt_compiler_flag="-o out/conftest2.$ac_objext"
1779 # Insert the option either (1) after the last *FLAGS variable, or
1780 # (2) before a word containing "conftest.", or (3) at the end.
1781 # Note that $ac_compile itself does not contain backslashes and begins
1782 # with a dollar sign (not a hyphen), so the echo should work correctly.
1783 lt_compile=`echo "$ac_compile" | $SED \
1784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1785 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1786 -e 's:$: $lt_compiler_flag:'`
1787 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1788 (eval "$lt_compile" 2>out/conftest.err)
1789 ac_status=$?
1790 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1791 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1793 then
1794 # The compiler can only warn and ignore the option if not recognized
1795 # So say no if there are warnings
1796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1799 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1800 fi
1801 fi
1802 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1803 $rm conftest*
1804 # SGI C++ compiler will create directory out/ii_files/ for
1805 # template instantiation
1806 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1807 $rm out/* && rmdir out
1808 cd ..
1809 rmdir conftest
1810 $rm conftest*
1811])
1812])# AC_LIBTOOL_PROG_CC_C_O
d7cb1a97 1813
d7cb1a97 1814
921e3f29 1815# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1816# -----------------------------------------
1817# Check to see if we can do hard links to lock some files if needed
1818AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1819[AC_REQUIRE([_LT_AC_LOCK])dnl
e0282ee9 1820
921e3f29 1821hard_links="nottested"
1822if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1823 # do not overwrite the value of need_locks provided by the user
1824 AC_MSG_CHECKING([if we can lock with hard links])
1825 hard_links=yes
1826 $rm conftest*
1827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1828 touch conftest.a
1829 ln conftest.a conftest.b 2>&5 || hard_links=no
1830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1831 AC_MSG_RESULT([$hard_links])
1832 if test "$hard_links" = no; then
1833 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1834 need_locks=warn
1835 fi
1836else
1837 need_locks=no
1838fi
1839])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
d7cb1a97 1840
d7cb1a97 1841
921e3f29 1842# AC_LIBTOOL_OBJDIR
1843# -----------------
1844AC_DEFUN([AC_LIBTOOL_OBJDIR],
1845[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1846[rm -f .libs 2>/dev/null
1847mkdir .libs 2>/dev/null
1848if test -d .libs; then
1849 lt_cv_objdir=.libs
1850else
1851 # MS-DOS does not allow filenames that begin with a dot.
1852 lt_cv_objdir=_libs
1853fi
1854rmdir .libs 2>/dev/null])
1855objdir=$lt_cv_objdir
1856])# AC_LIBTOOL_OBJDIR
d7cb1a97 1857
d7cb1a97 1858
921e3f29 1859# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1860# ----------------------------------------------
1861# Check hardcoding attributes.
1862AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1863[AC_MSG_CHECKING([how to hardcode library paths into programs])
1864_LT_AC_TAGVAR(hardcode_action, $1)=
1865if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1866 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1867 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
d7cb1a97 1868
921e3f29 1869 # We can hardcode non-existant directories.
1870 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1872 # have to relink, otherwise we might link with an installed library
1873 # when we should be linking with a yet-to-be-installed one
1874 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1875 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1876 # Linking always hardcodes the temporary library directory.
1877 _LT_AC_TAGVAR(hardcode_action, $1)=relink
d7cb1a97 1878 else
921e3f29 1879 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1880 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
d7cb1a97 1881 fi
921e3f29 1882else
1883 # We cannot hardcode anything, or else we can only hardcode existing
1884 # directories.
1885 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1886fi
1887AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
d7cb1a97 1888
921e3f29 1889if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1890 # Fast installation is not supported
1891 enable_fast_install=no
1892elif test "$shlibpath_overrides_runpath" = yes ||
1893 test "$enable_shared" = no; then
1894 # Fast installation is not necessary
1895 enable_fast_install=needless
1896fi
1897])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
d7cb1a97 1898
d7cb1a97 1899
921e3f29 1900# AC_LIBTOOL_SYS_LIB_STRIP
1901# ------------------------
1902AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1903[striplib=
1904old_striplib=
1905AC_MSG_CHECKING([whether stripping libraries is possible])
1906if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1909 AC_MSG_RESULT([yes])
1910else
1911# FIXME - insert some real tests, host_os isn't really good enough
1912 case $host_os in
1913 darwin*)
1914 if test -n "$STRIP" ; then
1915 striplib="$STRIP -x"
1916 AC_MSG_RESULT([yes])
1917 else
1918 AC_MSG_RESULT([no])
1919fi
1920 ;;
1921 *)
1922 AC_MSG_RESULT([no])
e0282ee9 1923 ;;
d7cb1a97 1924 esac
921e3f29 1925fi
1926])# AC_LIBTOOL_SYS_LIB_STRIP
d7cb1a97 1927
1928
921e3f29 1929# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1930# -----------------------------
1931# PORTME Fill in your ld.so characteristics
1932AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1933[AC_MSG_CHECKING([dynamic linker characteristics])
1934library_names_spec=
1935libname_spec='lib$name'
1936soname_spec=
1937shrext_cmds=".so"
1938postinstall_cmds=
1939postuninstall_cmds=
1940finish_cmds=
1941finish_eval=
1942shlibpath_var=
1943shlibpath_overrides_runpath=unknown
1944version_type=none
1945dynamic_linker="$host_os ld.so"
1946sys_lib_dlsearch_path_spec="/lib /usr/lib"
1947if test "$GCC" = yes; then
1948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1949 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1950 # if the path contains ";" then we assume it to be the separator
1951 # otherwise default to the standard path separator (i.e. ":") - it is
1952 # assumed that no part of a normal pathname contains ";" but that should
1953 # okay in the real world where ";" in dirpaths is itself problematic.
1954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1955 else
1956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
e0282ee9 1957 fi
921e3f29 1958else
1959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1960fi
1961need_lib_prefix=unknown
1962hardcode_into_libs=no
d7cb1a97 1963
921e3f29 1964# when you set need_version to no, make sure it does not cause -set_version
1965# flags to be left without arguments
1966need_version=unknown
d7cb1a97 1967
921e3f29 1968case $host_os in
1969aix3*)
1970 version_type=linux
1971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1972 shlibpath_var=LIBPATH
1973
1974 # AIX 3 has no versioning support, so we append a major version to the name.
1975 soname_spec='${libname}${release}${shared_ext}$major'
d7cb1a97 1976 ;;
921e3f29 1977
1978aix4* | aix5*)
1979 version_type=linux
1980 need_lib_prefix=no
1981 need_version=no
1982 hardcode_into_libs=yes
1983 if test "$host_cpu" = ia64; then
1984 # AIX 5 supports IA64
1985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1986 shlibpath_var=LD_LIBRARY_PATH
1987 else
1988 # With GCC up to 2.95.x, collect2 would create an import file
1989 # for dependence libraries. The import file would start with
1990 # the line `#! .'. This would cause the generated library to
1991 # depend on `.', always an invalid library. This was fixed in
1992 # development snapshots of GCC prior to 3.0.
1993 case $host_os in
1994 aix4 | aix4.[[01]] | aix4.[[01]].*)
1995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1996 echo ' yes '
1997 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1998 :
1999 else
2000 can_build_shared=no
2001 fi
2002 ;;
2003 esac
2004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2005 # soname into executable. Probably we can add versioning support to
2006 # collect2, so additional links can be useful in future.
2007 if test "$aix_use_runtimelinking" = yes; then
2008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2009 # instead of lib<name>.a to let people know that these are not
2010 # typical AIX shared libraries.
2011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2012 else
2013 # We preserve .a as extension for shared libraries through AIX4.2
2014 # and later when we are not doing run time linking.
2015 library_names_spec='${libname}${release}.a $libname.a'
2016 soname_spec='${libname}${release}${shared_ext}$major'
2017 fi
2018 shlibpath_var=LIBPATH
2019 fi
d7cb1a97 2020 ;;
921e3f29 2021
2022amigaos*)
2023 library_names_spec='$libname.ixlibrary $libname.a'
2024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2025 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d7cb1a97 2026 ;;
d7cb1a97 2027
921e3f29 2028beos*)
2029 library_names_spec='${libname}${shared_ext}'
2030 dynamic_linker="$host_os ld.so"
2031 shlibpath_var=LIBRARY_PATH
2032 ;;
d7cb1a97 2033
921e3f29 2034bsdi[[45]]*)
2035 version_type=linux
2036 need_version=no
2037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2038 soname_spec='${libname}${release}${shared_ext}$major'
2039 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2040 shlibpath_var=LD_LIBRARY_PATH
2041 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2042 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2043 # the default ld.so.conf also contains /usr/contrib/lib and
2044 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2045 # libtool to hard-code these into programs
2046 ;;
d7cb1a97 2047
921e3f29 2048cygwin* | mingw* | pw32*)
2049 version_type=windows
2050 shrext_cmds=".dll"
2051 need_version=no
2052 need_lib_prefix=no
d7cb1a97 2053
921e3f29 2054 case $GCC,$host_os in
2055 yes,cygwin* | yes,mingw* | yes,pw32*)
2056 library_names_spec='$libname.dll.a'
2057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2058 postinstall_cmds='base_file=`basename \${file}`~
2059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2060 dldir=$destdir/`dirname \$dlpath`~
2061 test -d \$dldir || mkdir -p \$dldir~
2062 $install_prog $dir/$dlname \$dldir/$dlname~
2063 chmod a+x \$dldir/$dlname'
2064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2065 dlpath=$dir/\$dldll~
2066 $rm \$dlpath'
2067 shlibpath_overrides_runpath=yes
d7cb1a97 2068
921e3f29 2069 case $host_os in
2070 cygwin*)
2071 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2073 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2074 ;;
2075 mingw*)
2076 # MinGW DLLs use traditional 'lib' prefix
2077 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2078 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2079 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2080 # It is most probably a Windows format PATH printed by
2081 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2082 # path with ; separators, and with drive letters. We can handle the
2083 # drive letters (cygwin fileutils understands them), so leave them,
2084 # especially as we might pass files found there to a mingw objdump,
2085 # which wouldn't understand a cygwinified path. Ahh.
2086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2087 else
2088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2089 fi
2090 ;;
2091 pw32*)
2092 # pw32 DLLs use 'pw' prefix rather than 'lib'
2093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2094 ;;
2095 esac
2096 ;;
d7cb1a97 2097
921e3f29 2098 *)
2099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2100 ;;
2101 esac
2102 dynamic_linker='Win32 ld.exe'
2103 # FIXME: first we should search . and the directory the executable is in
2104 shlibpath_var=PATH
2105 ;;
d7cb1a97 2106
921e3f29 2107darwin* | rhapsody*)
2108 dynamic_linker="$host_os dyld"
2109 version_type=darwin
2110 need_lib_prefix=no
2111 need_version=no
2112 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2113 soname_spec='${libname}${release}${major}$shared_ext'
2114 shlibpath_overrides_runpath=yes
2115 shlibpath_var=DYLD_LIBRARY_PATH
2116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2117 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2118 if test "$GCC" = yes; then
2119 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2120 else
2121 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2122 fi
2123 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2124 ;;
d7cb1a97 2125
921e3f29 2126dgux*)
2127 version_type=linux
2128 need_lib_prefix=no
2129 need_version=no
2130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2131 soname_spec='${libname}${release}${shared_ext}$major'
2132 shlibpath_var=LD_LIBRARY_PATH
2133 ;;
d7cb1a97 2134
921e3f29 2135freebsd1*)
2136 dynamic_linker=no
2137 ;;
d7cb1a97 2138
921e3f29 2139kfreebsd*-gnu)
2140 version_type=linux
2141 need_lib_prefix=no
2142 need_version=no
2143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2144 soname_spec='${libname}${release}${shared_ext}$major'
2145 shlibpath_var=LD_LIBRARY_PATH
2146 shlibpath_overrides_runpath=no
2147 hardcode_into_libs=yes
2148 dynamic_linker='GNU ld.so'
2149 ;;
d7cb1a97 2150
921e3f29 2151freebsd* | dragonfly*)
2152 # DragonFly does not have aout. When/if they implement a new
2153 # versioning mechanism, adjust this.
2154 if test -x /usr/bin/objformat; then
2155 objformat=`/usr/bin/objformat`
2156 else
2157 case $host_os in
2158 freebsd[[123]]*) objformat=aout ;;
2159 *) objformat=elf ;;
2160 esac
2161 fi
2162 version_type=freebsd-$objformat
2163 case $version_type in
2164 freebsd-elf*)
2165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2166 need_version=no
2167 need_lib_prefix=no
2168 ;;
2169 freebsd-*)
2170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2171 need_version=yes
2172 ;;
2173 esac
2174 shlibpath_var=LD_LIBRARY_PATH
2175 case $host_os in
2176 freebsd2*)
2177 shlibpath_overrides_runpath=yes
2178 ;;
2179 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2180 shlibpath_overrides_runpath=yes
2181 hardcode_into_libs=yes
2182 ;;
2183 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2184 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2185 shlibpath_overrides_runpath=no
2186 hardcode_into_libs=yes
2187 ;;
2188 freebsd*) # from 4.6 on
2189 shlibpath_overrides_runpath=yes
2190 hardcode_into_libs=yes
2191 ;;
2192 esac
2193 ;;
d7cb1a97 2194
921e3f29 2195gnu*)
2196 version_type=linux
2197 need_lib_prefix=no
2198 need_version=no
2199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2200 soname_spec='${libname}${release}${shared_ext}$major'
2201 shlibpath_var=LD_LIBRARY_PATH
2202 hardcode_into_libs=yes
2203 ;;
d7cb1a97 2204
921e3f29 2205hpux9* | hpux10* | hpux11*)
2206 # Give a soname corresponding to the major version so that dld.sl refuses to
2207 # link against other versions.
2208 version_type=sunos
2209 need_lib_prefix=no
2210 need_version=no
2211 case $host_cpu in
2212 ia64*)
2213 shrext_cmds='.so'
2214 hardcode_into_libs=yes
2215 dynamic_linker="$host_os dld.so"
2216 shlibpath_var=LD_LIBRARY_PATH
2217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2219 soname_spec='${libname}${release}${shared_ext}$major'
2220 if test "X$HPUX_IA64_MODE" = X32; then
2221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2222 else
2223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2224 fi
2225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2226 ;;
2227 hppa*64*)
2228 shrext_cmds='.sl'
2229 hardcode_into_libs=yes
2230 dynamic_linker="$host_os dld.sl"
2231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2234 soname_spec='${libname}${release}${shared_ext}$major'
2235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2237 ;;
2238 *)
2239 shrext_cmds='.sl'
2240 dynamic_linker="$host_os dld.sl"
2241 shlibpath_var=SHLIB_PATH
2242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2244 soname_spec='${libname}${release}${shared_ext}$major'
2245 ;;
2246 esac
2247 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2248 postinstall_cmds='chmod 555 $lib'
2249 ;;
d7cb1a97 2250
921e3f29 2251interix3*)
2252 version_type=linux
2253 need_lib_prefix=no
2254 need_version=no
2255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2256 soname_spec='${libname}${release}${shared_ext}$major'
2257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2258 shlibpath_var=LD_LIBRARY_PATH
2259 shlibpath_overrides_runpath=no
2260 hardcode_into_libs=yes
2261 ;;
d7cb1a97 2262
921e3f29 2263irix5* | irix6* | nonstopux*)
2264 case $host_os in
2265 nonstopux*) version_type=nonstopux ;;
2266 *)
2267 if test "$lt_cv_prog_gnu_ld" = yes; then
2268 version_type=linux
2269 else
2270 version_type=irix
2271 fi ;;
2272 esac
2273 need_lib_prefix=no
2274 need_version=no
2275 soname_spec='${libname}${release}${shared_ext}$major'
2276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2277 case $host_os in
2278 irix5* | nonstopux*)
2279 libsuff= shlibsuff=
2280 ;;
2281 *)
2282 case $LD in # libtool.m4 will add one of these switches to LD
2283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2284 libsuff= shlibsuff= libmagic=32-bit;;
2285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2286 libsuff=32 shlibsuff=N32 libmagic=N32;;
2287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2288 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2289 *) libsuff= shlibsuff= libmagic=never-match;;
2290 esac
2291 ;;
2292 esac
2293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2294 shlibpath_overrides_runpath=no
2295 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2296 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2297 hardcode_into_libs=yes
2298 ;;
d7cb1a97 2299
921e3f29 2300# No shared lib support for Linux oldld, aout, or coff.
2301linux*oldld* | linux*aout* | linux*coff*)
2302 dynamic_linker=no
2303 ;;
d7cb1a97 2304
921e3f29 2305# This must be Linux ELF.
2306linux*)
2307 version_type=linux
2308 need_lib_prefix=no
2309 need_version=no
2310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2311 soname_spec='${libname}${release}${shared_ext}$major'
2312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2313 shlibpath_var=LD_LIBRARY_PATH
2314 shlibpath_overrides_runpath=no
2315 # This implies no fast_install, which is unacceptable.
2316 # Some rework will be needed to allow for fast_install
2317 # before this can be enabled.
2318 hardcode_into_libs=yes
d7cb1a97 2319
921e3f29 2320 # Append ld.so.conf contents to the search path
2321 if test -f /etc/ld.so.conf; then
2322 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2323 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2324 fi
d7cb1a97 2325
921e3f29 2326 # We used to test for /lib/ld.so.1 and disable shared libraries on
2327 # powerpc, because MkLinux only supported shared libraries with the
2328 # GNU dynamic linker. Since this was broken with cross compilers,
2329 # most powerpc-linux boxes support dynamic linking these days and
2330 # people can always --disable-shared, the test was removed, and we
2331 # assume the GNU/Linux dynamic linker is in use.
2332 dynamic_linker='GNU/Linux ld.so'
2333 ;;
d7cb1a97 2334
921e3f29 2335knetbsd*-gnu)
2336 version_type=linux
2337 need_lib_prefix=no
2338 need_version=no
2339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2340 soname_spec='${libname}${release}${shared_ext}$major'
2341 shlibpath_var=LD_LIBRARY_PATH
2342 shlibpath_overrides_runpath=no
2343 hardcode_into_libs=yes
2344 dynamic_linker='GNU ld.so'
2345 ;;
d7cb1a97 2346
921e3f29 2347netbsd*)
2348 version_type=sunos
2349 need_lib_prefix=no
2350 need_version=no
2351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2354 dynamic_linker='NetBSD (a.out) ld.so'
2355 else
2356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2357 soname_spec='${libname}${release}${shared_ext}$major'
2358 dynamic_linker='NetBSD ld.elf_so'
2359 fi
2360 shlibpath_var=LD_LIBRARY_PATH
2361 shlibpath_overrides_runpath=yes
2362 hardcode_into_libs=yes
2363 ;;
d7cb1a97 2364
921e3f29 2365newsos6)
2366 version_type=linux
2367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2368 shlibpath_var=LD_LIBRARY_PATH
2369 shlibpath_overrides_runpath=yes
2370 ;;
d7cb1a97 2371
921e3f29 2372nto-qnx*)
2373 version_type=linux
2374 need_lib_prefix=no
2375 need_version=no
2376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2377 soname_spec='${libname}${release}${shared_ext}$major'
2378 shlibpath_var=LD_LIBRARY_PATH
2379 shlibpath_overrides_runpath=yes
2380 ;;
d7cb1a97 2381
921e3f29 2382openbsd*)
2383 version_type=sunos
2384 sys_lib_dlsearch_path_spec="/usr/lib"
2385 need_lib_prefix=no
2386 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2387 case $host_os in
2388 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2389 *) need_version=no ;;
2390 esac
2391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2393 shlibpath_var=LD_LIBRARY_PATH
2394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2395 case $host_os in
2396 openbsd2.[[89]] | openbsd2.[[89]].*)
2397 shlibpath_overrides_runpath=no
2398 ;;
2399 *)
2400 shlibpath_overrides_runpath=yes
2401 ;;
2402 esac
2403 else
2404 shlibpath_overrides_runpath=yes
d7cb1a97 2405 fi
2406 ;;
2407
921e3f29 2408os2*)
2409 libname_spec='$name'
2410 shrext_cmds=".dll"
2411 need_lib_prefix=no
2412 library_names_spec='$libname${shared_ext} $libname.a'
2413 dynamic_linker='OS/2 ld.exe'
2414 shlibpath_var=LIBPATH
2415 ;;
d7cb1a97 2416
921e3f29 2417osf3* | osf4* | osf5*)
2418 version_type=osf
2419 need_lib_prefix=no
2420 need_version=no
2421 soname_spec='${libname}${release}${shared_ext}$major'
2422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2423 shlibpath_var=LD_LIBRARY_PATH
2424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2426 ;;
d7cb1a97 2427
921e3f29 2428solaris*)
2429 version_type=linux
2430 need_lib_prefix=no
2431 need_version=no
2432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2433 soname_spec='${libname}${release}${shared_ext}$major'
2434 shlibpath_var=LD_LIBRARY_PATH
2435 shlibpath_overrides_runpath=yes
2436 hardcode_into_libs=yes
2437 # ldd complains unless libraries are executable
2438 postinstall_cmds='chmod +x $lib'
2439 ;;
d7cb1a97 2440
921e3f29 2441sunos4*)
2442 version_type=sunos
2443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2445 shlibpath_var=LD_LIBRARY_PATH
2446 shlibpath_overrides_runpath=yes
2447 if test "$with_gnu_ld" = yes; then
2448 need_lib_prefix=no
2449 fi
2450 need_version=yes
2451 ;;
d7cb1a97 2452
921e3f29 2453sysv4 | sysv4.3*)
2454 version_type=linux
2455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2456 soname_spec='${libname}${release}${shared_ext}$major'
2457 shlibpath_var=LD_LIBRARY_PATH
2458 case $host_vendor in
2459 sni)
2460 shlibpath_overrides_runpath=no
2461 need_lib_prefix=no
2462 export_dynamic_flag_spec='${wl}-Blargedynsym'
2463 runpath_var=LD_RUN_PATH
2464 ;;
2465 siemens)
2466 need_lib_prefix=no
2467 ;;
2468 motorola)
2469 need_lib_prefix=no
2470 need_version=no
2471 shlibpath_overrides_runpath=no
2472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2473 ;;
2474 esac
2475 ;;
d7cb1a97 2476
921e3f29 2477sysv4*MP*)
2478 if test -d /usr/nec ;then
2479 version_type=linux
2480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2481 soname_spec='$libname${shared_ext}.$major'
2482 shlibpath_var=LD_LIBRARY_PATH
2483 fi
2484 ;;
d7cb1a97 2485
921e3f29 2486sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2487 version_type=freebsd-elf
2488 need_lib_prefix=no
2489 need_version=no
2490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2491 soname_spec='${libname}${release}${shared_ext}$major'
2492 shlibpath_var=LD_LIBRARY_PATH
2493 hardcode_into_libs=yes
2494 if test "$with_gnu_ld" = yes; then
2495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2496 shlibpath_overrides_runpath=no
2497 else
2498 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2499 shlibpath_overrides_runpath=yes
2500 case $host_os in
2501 sco3.2v5*)
2502 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2503 ;;
2504 esac
2505 fi
2506 sys_lib_dlsearch_path_spec='/usr/lib'
2507 ;;
d7cb1a97 2508
921e3f29 2509uts4*)
2510 version_type=linux
2511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2512 soname_spec='${libname}${release}${shared_ext}$major'
2513 shlibpath_var=LD_LIBRARY_PATH
2514 ;;
d7cb1a97 2515
921e3f29 2516*)
2517 dynamic_linker=no
2518 ;;
2519esac
2520AC_MSG_RESULT([$dynamic_linker])
2521test "$dynamic_linker" = no && can_build_shared=no
d7cb1a97 2522
921e3f29 2523variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2524if test "$GCC" = yes; then
2525 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2526fi
2527])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
d7cb1a97 2528
d7cb1a97 2529
921e3f29 2530# _LT_AC_TAGCONFIG
2531# ----------------
2532AC_DEFUN([_LT_AC_TAGCONFIG],
2533[AC_ARG_WITH([tags],
2534 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2535 [include additional configurations @<:@automatic@:>@])],
2536 [tagnames="$withval"])
d7cb1a97 2537
921e3f29 2538if test -f "$ltmain" && test -n "$tagnames"; then
2539 if test ! -f "${ofile}"; then
2540 AC_MSG_WARN([output file `$ofile' does not exist])
2541 fi
d7cb1a97 2542
921e3f29 2543 if test -z "$LTCC"; then
2544 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2545 if test -z "$LTCC"; then
2546 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2547 else
2548 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2549 fi
2550 fi
2551 if test -z "$LTCFLAGS"; then
2552 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2553 fi
e0282ee9 2554
921e3f29 2555 # Extract list of available tagged configurations in $ofile.
2556 # Note that this assumes the entire list is on one line.
2557 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
d7cb1a97 2558
921e3f29 2559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2560 for tagname in $tagnames; do
2561 IFS="$lt_save_ifs"
2562 # Check whether tagname contains only valid characters
2563 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2564 "") ;;
2565 *) AC_MSG_ERROR([invalid tag name: $tagname])
2566 ;;
2567 esac
d7cb1a97 2568
921e3f29 2569 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2570 then
2571 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2572 fi
d7cb1a97 2573
921e3f29 2574 # Update the list of available tags.
2575 if test -n "$tagname"; then
2576 echo appending configuration tag \"$tagname\" to $ofile
d7cb1a97 2577
921e3f29 2578 case $tagname in
2579 CXX)
2580 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2581 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2582 (test "X$CXX" != "Xg++"))) ; then
2583 AC_LIBTOOL_LANG_CXX_CONFIG
2584 else
2585 tagname=""
2586 fi
2587 ;;
d7cb1a97 2588
921e3f29 2589 F77)
2590 if test -n "$F77" && test "X$F77" != "Xno"; then
2591 AC_LIBTOOL_LANG_F77_CONFIG
2592 else
2593 tagname=""
2594 fi
2595 ;;
d7cb1a97 2596
921e3f29 2597 GCJ)
2598 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2599 AC_LIBTOOL_LANG_GCJ_CONFIG
2600 else
2601 tagname=""
2602 fi
2603 ;;
d7cb1a97 2604
921e3f29 2605 RC)
2606 AC_LIBTOOL_LANG_RC_CONFIG
2607 ;;
d7cb1a97 2608
921e3f29 2609 *)
2610 AC_MSG_ERROR([Unsupported tag name: $tagname])
2611 ;;
2612 esac
d7cb1a97 2613
921e3f29 2614 # Append the new tag name to the list of available tags.
2615 if test -n "$tagname" ; then
2616 available_tags="$available_tags $tagname"
2617 fi
2618 fi
2619 done
2620 IFS="$lt_save_ifs"
d7cb1a97 2621
921e3f29 2622 # Now substitute the updated list of available tags.
2623 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2624 mv "${ofile}T" "$ofile"
2625 chmod +x "$ofile"
2626 else
2627 rm -f "${ofile}T"
2628 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2629 fi
d7cb1a97 2630fi
921e3f29 2631])# _LT_AC_TAGCONFIG
d7cb1a97 2632
d7cb1a97 2633
921e3f29 2634# AC_LIBTOOL_DLOPEN
2635# -----------------
2636# enable checks for dlopen support
2637AC_DEFUN([AC_LIBTOOL_DLOPEN],
2638 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2639])# AC_LIBTOOL_DLOPEN
d7cb1a97 2640
d7cb1a97 2641
921e3f29 2642# AC_LIBTOOL_WIN32_DLL
2643# --------------------
2644# declare package support for building win32 DLLs
2645AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2646[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2647])# AC_LIBTOOL_WIN32_DLL
d7cb1a97 2648
d7cb1a97 2649
921e3f29 2650# AC_ENABLE_SHARED([DEFAULT])
2651# ---------------------------
2652# implement the --enable-shared flag
2653# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2654AC_DEFUN([AC_ENABLE_SHARED],
2655[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2656AC_ARG_ENABLE([shared],
2657 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2658 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2659 [p=${PACKAGE-default}
2660 case $enableval in
2661 yes) enable_shared=yes ;;
2662 no) enable_shared=no ;;
2663 *)
2664 enable_shared=no
2665 # Look at the argument we got. We use all the common list separators.
2666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2667 for pkg in $enableval; do
2668 IFS="$lt_save_ifs"
2669 if test "X$pkg" = "X$p"; then
2670 enable_shared=yes
d7cb1a97 2671 fi
921e3f29 2672 done
2673 IFS="$lt_save_ifs"
2674 ;;
2675 esac],
2676 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2677])# AC_ENABLE_SHARED
e0282ee9 2678
e0282ee9 2679
921e3f29 2680# AC_DISABLE_SHARED
2681# -----------------
2682# set the default shared flag to --disable-shared
2683AC_DEFUN([AC_DISABLE_SHARED],
2684[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2685AC_ENABLE_SHARED(no)
2686])# AC_DISABLE_SHARED
d7cb1a97 2687
d7cb1a97 2688
921e3f29 2689# AC_ENABLE_STATIC([DEFAULT])
2690# ---------------------------
2691# implement the --enable-static flag
2692# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2693AC_DEFUN([AC_ENABLE_STATIC],
2694[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2695AC_ARG_ENABLE([static],
2696 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2697 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2698 [p=${PACKAGE-default}
2699 case $enableval in
2700 yes) enable_static=yes ;;
2701 no) enable_static=no ;;
2702 *)
2703 enable_static=no
2704 # Look at the argument we got. We use all the common list separators.
2705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2706 for pkg in $enableval; do
2707 IFS="$lt_save_ifs"
2708 if test "X$pkg" = "X$p"; then
2709 enable_static=yes
2710 fi
2711 done
2712 IFS="$lt_save_ifs"
2713 ;;
2714 esac],
2715 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2716])# AC_ENABLE_STATIC
d7cb1a97 2717
d7cb1a97 2718
921e3f29 2719# AC_DISABLE_STATIC
2720# -----------------
2721# set the default static flag to --disable-static
2722AC_DEFUN([AC_DISABLE_STATIC],
2723[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2724AC_ENABLE_STATIC(no)
2725])# AC_DISABLE_STATIC
d7cb1a97 2726
e0282ee9 2727
921e3f29 2728# AC_ENABLE_FAST_INSTALL([DEFAULT])
2729# ---------------------------------
2730# implement the --enable-fast-install flag
2731# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2732AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2733[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2734AC_ARG_ENABLE([fast-install],
2735 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2736 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2737 [p=${PACKAGE-default}
2738 case $enableval in
2739 yes) enable_fast_install=yes ;;
2740 no) enable_fast_install=no ;;
d7cb1a97 2741 *)
921e3f29 2742 enable_fast_install=no
2743 # Look at the argument we got. We use all the common list separators.
2744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2745 for pkg in $enableval; do
2746 IFS="$lt_save_ifs"
2747 if test "X$pkg" = "X$p"; then
2748 enable_fast_install=yes
2749 fi
2750 done
2751 IFS="$lt_save_ifs"
d7cb1a97 2752 ;;
921e3f29 2753 esac],
2754 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2755])# AC_ENABLE_FAST_INSTALL
d7cb1a97 2756
d7cb1a97 2757
921e3f29 2758# AC_DISABLE_FAST_INSTALL
2759# -----------------------
2760# set the default to --disable-fast-install
2761AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2762[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2763AC_ENABLE_FAST_INSTALL(no)
2764])# AC_DISABLE_FAST_INSTALL
d7cb1a97 2765
e0282ee9 2766
921e3f29 2767# AC_LIBTOOL_PICMODE([MODE])
2768# --------------------------
2769# implement the --with-pic flag
2770# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2771AC_DEFUN([AC_LIBTOOL_PICMODE],
2772[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2773pic_mode=ifelse($#,1,$1,default)
2774])# AC_LIBTOOL_PICMODE
d7cb1a97 2775
d7cb1a97 2776
921e3f29 2777# AC_PROG_EGREP
2778# -------------
2779# This is predefined starting with Autoconf 2.54, so this conditional
2780# definition can be removed once we require Autoconf 2.54 or later.
2781m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2782[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2783 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2784 then ac_cv_prog_egrep='grep -E'
2785 else ac_cv_prog_egrep='egrep'
2786 fi])
2787 EGREP=$ac_cv_prog_egrep
2788 AC_SUBST([EGREP])
2789])])
e0282ee9 2790
d7cb1a97 2791
921e3f29 2792# AC_PATH_TOOL_PREFIX
2793# -------------------
2794# find a file program which can recognise shared library
2795AC_DEFUN([AC_PATH_TOOL_PREFIX],
2796[AC_REQUIRE([AC_PROG_EGREP])dnl
2797AC_MSG_CHECKING([for $1])
2798AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2799[case $MAGIC_CMD in
2800[[\\/*] | ?:[\\/]*])
2801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2802 ;;
2803*)
2804 lt_save_MAGIC_CMD="$MAGIC_CMD"
2805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2806dnl $ac_dummy forces splitting on constant user-supplied paths.
2807dnl POSIX.2 word splitting is done only on the output of word expansions,
2808dnl not every word. This closes a longstanding sh security hole.
2809 ac_dummy="ifelse([$2], , $PATH, [$2])"
2810 for ac_dir in $ac_dummy; do
2811 IFS="$lt_save_ifs"
2812 test -z "$ac_dir" && ac_dir=.
2813 if test -f $ac_dir/$1; then
2814 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2815 if test -n "$file_magic_test_file"; then
2816 case $deplibs_check_method in
2817 "file_magic "*)
2818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2821 $EGREP "$file_magic_regex" > /dev/null; then
2822 :
2823 else
2824 cat <<EOF 1>&2
d7cb1a97 2825
921e3f29 2826*** Warning: the command libtool uses to detect shared libraries,
2827*** $file_magic_cmd, produces output that libtool cannot recognize.
2828*** The result is that libtool may fail to recognize shared libraries
2829*** as such. This will affect the creation of libtool libraries that
2830*** depend on shared libraries, but programs linked with such libtool
2831*** libraries will work regardless of this problem. Nevertheless, you
2832*** may want to report the problem to your system manager and/or to
2833*** bug-libtool@gnu.org
d7cb1a97 2834
921e3f29 2835EOF
2836 fi ;;
2837 esac
2838 fi
2839 break
2840 fi
2841 done
2842 IFS="$lt_save_ifs"
2843 MAGIC_CMD="$lt_save_MAGIC_CMD"
2844 ;;
2845esac])
2846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2847if test -n "$MAGIC_CMD"; then
2848 AC_MSG_RESULT($MAGIC_CMD)
2849else
2850 AC_MSG_RESULT(no)
2851fi
2852])# AC_PATH_TOOL_PREFIX
d7cb1a97 2853
d7cb1a97 2854
921e3f29 2855# AC_PATH_MAGIC
2856# -------------
2857# find a file program which can recognise a shared library
2858AC_DEFUN([AC_PATH_MAGIC],
2859[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2860if test -z "$lt_cv_path_MAGIC_CMD"; then
2861 if test -n "$ac_tool_prefix"; then
2862 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2863 else
2864 MAGIC_CMD=:
2865 fi
2866fi
2867])# AC_PATH_MAGIC
2868
2869
2870# AC_PROG_LD
2871# ----------
2872# find the pathname to the GNU or non-GNU linker
2873AC_DEFUN([AC_PROG_LD],
2874[AC_ARG_WITH([gnu-ld],
2875 [AC_HELP_STRING([--with-gnu-ld],
2876 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2877 [test "$withval" = no || with_gnu_ld=yes],
2878 [with_gnu_ld=no])
2879AC_REQUIRE([LT_AC_PROG_SED])dnl
2880AC_REQUIRE([AC_PROG_CC])dnl
2881AC_REQUIRE([AC_CANONICAL_HOST])dnl
2882AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2883ac_prog=ld
2884if test "$GCC" = yes; then
2885 # Check if gcc -print-prog-name=ld gives a path.
2886 AC_MSG_CHECKING([for ld used by $CC])
2887 case $host in
2888 *-*-mingw*)
2889 # gcc leaves a trailing carriage return which upsets mingw
2890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2891 *)
2892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2893 esac
2894 case $ac_prog in
2895 # Accept absolute paths.
2896 [[\\/]]* | ?:[[\\/]]*)
2897 re_direlt='/[[^/]][[^/]]*/\.\./'
2898 # Canonicalize the pathname of ld
2899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2902 done
2903 test -z "$LD" && LD="$ac_prog"
2904 ;;
2905 "")
2906 # If it fails, then pretend we aren't using GCC.
2907 ac_prog=ld
2908 ;;
2909 *)
2910 # If it is relative, then search for the first ld in PATH.
2911 with_gnu_ld=unknown
2912 ;;
2913 esac
2914elif test "$with_gnu_ld" = yes; then
2915 AC_MSG_CHECKING([for GNU ld])
2916else
2917 AC_MSG_CHECKING([for non-GNU ld])
2918fi
2919AC_CACHE_VAL(lt_cv_path_LD,
2920[if test -z "$LD"; then
2921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2922 for ac_dir in $PATH; do
2923 IFS="$lt_save_ifs"
2924 test -z "$ac_dir" && ac_dir=.
2925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2926 lt_cv_path_LD="$ac_dir/$ac_prog"
2927 # Check to see if the program is GNU ld. I'd rather use --version,
2928 # but apparently some variants of GNU ld only accept -v.
2929 # Break only if it was the GNU/non-GNU ld that we prefer.
2930 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2931 *GNU* | *'with BFD'*)
2932 test "$with_gnu_ld" != no && break
d7cb1a97 2933 ;;
2934 *)
921e3f29 2935 test "$with_gnu_ld" != yes && break
2936 ;;
2937 esac
2938 fi
2939 done
2940 IFS="$lt_save_ifs"
2941else
2942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2943fi])
2944LD="$lt_cv_path_LD"
2945if test -n "$LD"; then
2946 AC_MSG_RESULT($LD)
2947else
2948 AC_MSG_RESULT(no)
2949fi
2950test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2951AC_PROG_LD_GNU
2952])# AC_PROG_LD
d7cb1a97 2953
d7cb1a97 2954
921e3f29 2955# AC_PROG_LD_GNU
2956# --------------
2957AC_DEFUN([AC_PROG_LD_GNU],
2958[AC_REQUIRE([AC_PROG_EGREP])dnl
2959AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2960[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2961case `$LD -v 2>&1 </dev/null` in
2962*GNU* | *'with BFD'*)
2963 lt_cv_prog_gnu_ld=yes
2964 ;;
2965*)
2966 lt_cv_prog_gnu_ld=no
2967 ;;
2968esac])
2969with_gnu_ld=$lt_cv_prog_gnu_ld
2970])# AC_PROG_LD_GNU
d7cb1a97 2971
921e3f29 2972
2973# AC_PROG_LD_RELOAD_FLAG
2974# ----------------------
2975# find reload flag for linker
2976# -- PORTME Some linkers may need a different reload flag.
2977AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2978[AC_CACHE_CHECK([for $LD option to reload object files],
2979 lt_cv_ld_reload_flag,
2980 [lt_cv_ld_reload_flag='-r'])
2981reload_flag=$lt_cv_ld_reload_flag
2982case $reload_flag in
2983"" | " "*) ;;
2984*) reload_flag=" $reload_flag" ;;
2985esac
2986reload_cmds='$LD$reload_flag -o $output$reload_objs'
2987case $host_os in
2988 darwin*)
2989 if test "$GCC" = yes; then
2990 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2991 else
2992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2993 fi
d7cb1a97 2994 ;;
921e3f29 2995esac
2996])# AC_PROG_LD_RELOAD_FLAG
d7cb1a97 2997
d7cb1a97 2998
921e3f29 2999# AC_DEPLIBS_CHECK_METHOD
3000# -----------------------
3001# how to check for library dependencies
3002# -- PORTME fill in with the dynamic library characteristics
3003AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3004[AC_CACHE_CHECK([how to recognise dependent libraries],
3005lt_cv_deplibs_check_method,
3006[lt_cv_file_magic_cmd='$MAGIC_CMD'
3007lt_cv_file_magic_test_file=
3008lt_cv_deplibs_check_method='unknown'
3009# Need to set the preceding variable on all platforms that support
3010# interlibrary dependencies.
3011# 'none' -- dependencies not supported.
3012# `unknown' -- same as none, but documents that we really don't know.
3013# 'pass_all' -- all dependencies passed with no checks.
3014# 'test_compile' -- check by making test program.
3015# 'file_magic [[regex]]' -- check by looking for files in library path
3016# which responds to the $file_magic_cmd with a given extended regex.
3017# If you have `file' or equivalent on your system and you're not sure
3018# whether `pass_all' will *always* work, you probably want this one.
d7cb1a97 3019
921e3f29 3020case $host_os in
3021aix4* | aix5*)
3022 lt_cv_deplibs_check_method=pass_all
3023 ;;
d7cb1a97 3024
921e3f29 3025beos*)
3026 lt_cv_deplibs_check_method=pass_all
3027 ;;
d7cb1a97 3028
921e3f29 3029bsdi[[45]]*)
3030 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3031 lt_cv_file_magic_cmd='/usr/bin/file -L'
3032 lt_cv_file_magic_test_file=/shlib/libc.so
3033 ;;
d7cb1a97 3034
921e3f29 3035cygwin*)
3036 # func_win32_libid is a shell function defined in ltmain.sh
3037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3038 lt_cv_file_magic_cmd='func_win32_libid'
3039 ;;
d7cb1a97 3040
921e3f29 3041mingw* | pw32*)
3042 # Base MSYS/MinGW do not provide the 'file' command needed by
3043 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3044 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3045 lt_cv_file_magic_cmd='$OBJDUMP -f'
3046 ;;
d7cb1a97 3047
921e3f29 3048darwin* | rhapsody*)
3049 lt_cv_deplibs_check_method=pass_all
3050 ;;
3051
3052freebsd* | kfreebsd*-gnu | dragonfly*)
3053 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3054 case $host_cpu in
3055 i*86 )
3056 # Not sure whether the presence of OpenBSD here was a mistake.
3057 # Let's accept both of them until this is cleared up.
3058 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3059 lt_cv_file_magic_cmd=/usr/bin/file
3060 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3061 ;;
d7cb1a97 3062 esac
921e3f29 3063 else
3064 lt_cv_deplibs_check_method=pass_all
3065 fi
3066 ;;
3067
3068gnu*)
3069 lt_cv_deplibs_check_method=pass_all
3070 ;;
3071
3072hpux10.20* | hpux11*)
3073 lt_cv_file_magic_cmd=/usr/bin/file
3074 case $host_cpu in
3075 ia64*)
3076 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3077 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
d7cb1a97 3078 ;;
921e3f29 3079 hppa*64*)
3080 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3081 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d7cb1a97 3082 ;;
921e3f29 3083 *)
3084 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3085 lt_cv_file_magic_test_file=/usr/lib/libc.sl
d7cb1a97 3086 ;;
921e3f29 3087 esac
3088 ;;
d7cb1a97 3089
921e3f29 3090interix3*)
3091 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3092 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3093 ;;
d7cb1a97 3094
921e3f29 3095irix5* | irix6* | nonstopux*)
3096 case $LD in
3097 *-32|*"-32 ") libmagic=32-bit;;
3098 *-n32|*"-n32 ") libmagic=N32;;
3099 *-64|*"-64 ") libmagic=64-bit;;
3100 *) libmagic=never-match;;
3101 esac
3102 lt_cv_deplibs_check_method=pass_all
3103 ;;
d7cb1a97 3104
921e3f29 3105# This must be Linux ELF.
3106linux*)
3107 lt_cv_deplibs_check_method=pass_all
3108 ;;
d7cb1a97 3109
921e3f29 3110netbsd*)
3111 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3112 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3113 else
3114 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3115 fi
3116 ;;
d7cb1a97 3117
921e3f29 3118newos6*)
3119 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3120 lt_cv_file_magic_cmd=/usr/bin/file
3121 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3122 ;;
d7cb1a97 3123
921e3f29 3124nto-qnx*)
3125 lt_cv_deplibs_check_method=unknown
3126 ;;
d7cb1a97 3127
921e3f29 3128openbsd*)
3129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3130 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3131 else
3132 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3133 fi
3134 ;;
e0282ee9 3135
921e3f29 3136osf3* | osf4* | osf5*)
3137 lt_cv_deplibs_check_method=pass_all
3138 ;;
e0282ee9 3139
921e3f29 3140solaris*)
3141 lt_cv_deplibs_check_method=pass_all
3142 ;;
3143
3144sysv4 | sysv4.3*)
3145 case $host_vendor in
3146 motorola)
3147 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
d7cb1a97 3149 ;;
921e3f29 3150 ncr)
3151 lt_cv_deplibs_check_method=pass_all
d7cb1a97 3152 ;;
921e3f29 3153 sequent)
3154 lt_cv_file_magic_cmd='/bin/file'
3155 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
d7cb1a97 3156 ;;
921e3f29 3157 sni)
3158 lt_cv_file_magic_cmd='/bin/file'
3159 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3160 lt_cv_file_magic_test_file=/lib/libc.so
d7cb1a97 3161 ;;
921e3f29 3162 siemens)
3163 lt_cv_deplibs_check_method=pass_all
3164 ;;
3165 pc)
3166 lt_cv_deplibs_check_method=pass_all
3167 ;;
3168 esac
3169 ;;
3170
3171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3172 lt_cv_deplibs_check_method=pass_all
3173 ;;
d7cb1a97 3174esac
921e3f29 3175])
3176file_magic_cmd=$lt_cv_file_magic_cmd
3177deplibs_check_method=$lt_cv_deplibs_check_method
3178test -z "$deplibs_check_method" && deplibs_check_method=unknown
3179])# AC_DEPLIBS_CHECK_METHOD
d7cb1a97 3180
d7cb1a97 3181
921e3f29 3182# AC_PROG_NM
3183# ----------
3184# find the pathname to a BSD-compatible name lister
3185AC_DEFUN([AC_PROG_NM],
3186[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3187[if test -n "$NM"; then
3188 # Let the user override the test.
3189 lt_cv_path_NM="$NM"
3190else
3191 lt_nm_to_check="${ac_tool_prefix}nm"
3192 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3193 lt_nm_to_check="$lt_nm_to_check nm"
3194 fi
3195 for lt_tmp_nm in $lt_nm_to_check; do
3196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3197 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3198 IFS="$lt_save_ifs"
3199 test -z "$ac_dir" && ac_dir=.
3200 tmp_nm="$ac_dir/$lt_tmp_nm"
3201 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3202 # Check to see if the nm accepts a BSD-compat flag.
3203 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3204 # nm: unknown option "B" ignored
3205 # Tru64's nm complains that /dev/null is an invalid object file
3206 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3207 */dev/null* | *'Invalid file or object type'*)
3208 lt_cv_path_NM="$tmp_nm -B"
3209 break
3210 ;;
3211 *)
3212 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3213 */dev/null*)
3214 lt_cv_path_NM="$tmp_nm -p"
3215 break
3216 ;;
3217 *)
3218 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3219 continue # so that we can try to find one that supports BSD flags
3220 ;;
3221 esac
3222 ;;
3223 esac
3224 fi
3225 done
3226 IFS="$lt_save_ifs"
3227 done
3228 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3229fi])
3230NM="$lt_cv_path_NM"
3231])# AC_PROG_NM
d7cb1a97 3232
d7cb1a97 3233
921e3f29 3234# AC_CHECK_LIBM
3235# -------------
3236# check for math library
3237AC_DEFUN([AC_CHECK_LIBM],
3238[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3239LIBM=
3240case $host in
3241*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3242 # These system don't have libm, or don't need it
3243 ;;
3244*-ncr-sysv4.3*)
3245 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3246 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3247 ;;
3248*)
3249 AC_CHECK_LIB(m, cos, LIBM="-lm")
3250 ;;
3251esac
3252])# AC_CHECK_LIBM
d7cb1a97 3253
d7cb1a97 3254
921e3f29 3255# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3256# -----------------------------------
3257# sets LIBLTDL to the link flags for the libltdl convenience library and
3258# LTDLINCL to the include flags for the libltdl header and adds
3259# --enable-ltdl-convenience to the configure arguments. Note that
3260# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3261# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3262# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3263# (note the single quotes!). If your package is not flat and you're not
3264# using automake, define top_builddir and top_srcdir appropriately in
3265# the Makefiles.
3266AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3267[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3268 case $enable_ltdl_convenience in
3269 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3270 "") enable_ltdl_convenience=yes
3271 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3272 esac
3273 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3274 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3275 # For backwards non-gettext consistent compatibility...
3276 INCLTDL="$LTDLINCL"
3277])# AC_LIBLTDL_CONVENIENCE
d7cb1a97 3278
d7cb1a97 3279
921e3f29 3280# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3281# -----------------------------------
3282# sets LIBLTDL to the link flags for the libltdl installable library and
3283# LTDLINCL to the include flags for the libltdl header and adds
3284# --enable-ltdl-install to the configure arguments. Note that
3285# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3286# and an installed libltdl is not found, it is assumed to be `libltdl'.
3287# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3288# '${top_srcdir}/' (note the single quotes!). If your package is not
3289# flat and you're not using automake, define top_builddir and top_srcdir
3290# appropriately in the Makefiles.
3291# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3292AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3293[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3294 AC_CHECK_LIB(ltdl, lt_dlinit,
3295 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3296 [if test x"$enable_ltdl_install" = xno; then
3297 AC_MSG_WARN([libltdl not installed, but installation disabled])
3298 else
3299 enable_ltdl_install=yes
3300 fi
3301 ])
3302 if test x"$enable_ltdl_install" = x"yes"; then
3303 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3304 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3305 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3306 else
3307 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3308 LIBLTDL="-lltdl"
3309 LTDLINCL=
3310 fi
3311 # For backwards non-gettext consistent compatibility...
3312 INCLTDL="$LTDLINCL"
3313])# AC_LIBLTDL_INSTALLABLE
d7cb1a97 3314
d7cb1a97 3315
921e3f29 3316# AC_LIBTOOL_CXX
3317# --------------
3318# enable support for C++ libraries
3319AC_DEFUN([AC_LIBTOOL_CXX],
3320[AC_REQUIRE([_LT_AC_LANG_CXX])
3321])# AC_LIBTOOL_CXX
d7cb1a97 3322
d7cb1a97 3323
921e3f29 3324# _LT_AC_LANG_CXX
3325# ---------------
3326AC_DEFUN([_LT_AC_LANG_CXX],
3327[AC_REQUIRE([AC_PROG_CXX])
3328AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3329_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3330])# _LT_AC_LANG_CXX
d7cb1a97 3331
921e3f29 3332# _LT_AC_PROG_CXXCPP
3333# ------------------
3334AC_DEFUN([_LT_AC_PROG_CXXCPP],
3335[
3336AC_REQUIRE([AC_PROG_CXX])
3337if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3338 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3339 (test "X$CXX" != "Xg++"))) ; then
3340 AC_PROG_CXXCPP
3341fi
3342])# _LT_AC_PROG_CXXCPP
d7cb1a97 3343
921e3f29 3344# AC_LIBTOOL_F77
3345# --------------
3346# enable support for Fortran 77 libraries
3347AC_DEFUN([AC_LIBTOOL_F77],
3348[AC_REQUIRE([_LT_AC_LANG_F77])
3349])# AC_LIBTOOL_F77
d7cb1a97 3350
d7cb1a97 3351
921e3f29 3352# _LT_AC_LANG_F77
3353# ---------------
3354AC_DEFUN([_LT_AC_LANG_F77],
3355[AC_REQUIRE([AC_PROG_F77])
3356_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3357])# _LT_AC_LANG_F77
d7cb1a97 3358
e0282ee9 3359
921e3f29 3360# AC_LIBTOOL_GCJ
3361# --------------
3362# enable support for GCJ libraries
3363AC_DEFUN([AC_LIBTOOL_GCJ],
3364[AC_REQUIRE([_LT_AC_LANG_GCJ])
3365])# AC_LIBTOOL_GCJ
e0282ee9 3366
d7cb1a97 3367
921e3f29 3368# _LT_AC_LANG_GCJ
3369# ---------------
3370AC_DEFUN([_LT_AC_LANG_GCJ],
3371[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3372 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3373 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3374 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3375 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3376 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3377_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3378])# _LT_AC_LANG_GCJ
3379
3380
3381# AC_LIBTOOL_RC
3382# -------------
3383# enable support for Windows resource files
3384AC_DEFUN([AC_LIBTOOL_RC],
3385[AC_REQUIRE([LT_AC_PROG_RC])
3386_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3387])# AC_LIBTOOL_RC
3388
3389
3390# AC_LIBTOOL_LANG_C_CONFIG
3391# ------------------------
d7cb1a97 3392# Ensure that the configuration vars for the C compiler are
3393# suitably defined. Those variables are subsequently used by
3394# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
921e3f29 3395AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3396AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3397[lt_save_CC="$CC"
3398AC_LANG_PUSH(C)
d7cb1a97 3399
921e3f29 3400# Source file extension for C test sources.
3401ac_ext=c
d7cb1a97 3402
921e3f29 3403# Object file extension for compiled C test sources.
d7cb1a97 3404objext=o
3405_LT_AC_TAGVAR(objext, $1)=$objext
3406
3407# Code to be used in simple compile tests
921e3f29 3408lt_simple_compile_test_code="int some_variable = 0;\n"
d7cb1a97 3409
3410# Code to be used in simple link tests
921e3f29 3411lt_simple_link_test_code='int main(){return(0);}\n'
d7cb1a97 3412
d7cb1a97 3413_LT_AC_SYS_COMPILER
3414
e0282ee9 3415# save warnings/boilerplate of simple test code
3416_LT_COMPILER_BOILERPLATE
3417_LT_LINKER_BOILERPLATE
3418
921e3f29 3419AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3420AC_LIBTOOL_PROG_COMPILER_PIC($1)
3421AC_LIBTOOL_PROG_CC_C_O($1)
3422AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3423AC_LIBTOOL_PROG_LD_SHLIBS($1)
3424AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3425AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3426AC_LIBTOOL_SYS_LIB_STRIP
3427AC_LIBTOOL_DLOPEN_SELF
d7cb1a97 3428
921e3f29 3429# Report which library types will actually be built
d7cb1a97 3430AC_MSG_CHECKING([if libtool supports shared libraries])
3431AC_MSG_RESULT([$can_build_shared])
3432
3433AC_MSG_CHECKING([whether to build shared libraries])
3434test "$can_build_shared" = "no" && enable_shared=no
3435
3436# On AIX, shared libraries and static libraries use the same namespace, and
3437# are all built from PIC.
e0282ee9 3438case $host_os in
d7cb1a97 3439aix3*)
3440 test "$enable_shared" = yes && enable_static=no
3441 if test -n "$RANLIB"; then
3442 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3443 postinstall_cmds='$RANLIB $lib'
3444 fi
3445 ;;
921e3f29 3446
d7cb1a97 3447aix4* | aix5*)
e0282ee9 3448 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3449 test "$enable_shared" = yes && enable_static=no
3450 fi
921e3f29 3451 ;;
d7cb1a97 3452esac
3453AC_MSG_RESULT([$enable_shared])
3454
3455AC_MSG_CHECKING([whether to build static libraries])
3456# Make sure either enable_shared or enable_static is yes.
3457test "$enable_shared" = yes || enable_static=yes
3458AC_MSG_RESULT([$enable_static])
3459
d7cb1a97 3460AC_LIBTOOL_CONFIG($1)
3461
3462AC_LANG_POP
3463CC="$lt_save_CC"
921e3f29 3464])# AC_LIBTOOL_LANG_C_CONFIG
d7cb1a97 3465
3466
921e3f29 3467# AC_LIBTOOL_LANG_CXX_CONFIG
d7cb1a97 3468# --------------------------
3469# Ensure that the configuration vars for the C compiler are
3470# suitably defined. Those variables are subsequently used by
3471# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
921e3f29 3472AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3473AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3474[AC_LANG_PUSH(C++)
3475AC_REQUIRE([AC_PROG_CXX])
3476AC_REQUIRE([_LT_AC_PROG_CXXCPP])
d7cb1a97 3477
d7cb1a97 3478_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
921e3f29 3479_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3480_LT_AC_TAGVAR(always_export_symbols, $1)=no
3481_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3482_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3483_LT_AC_TAGVAR(hardcode_direct, $1)=no
3484_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3485_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3486_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3487_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3488_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3489_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3490_LT_AC_TAGVAR(module_cmds, $1)=
3491_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3492_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
e0282ee9 3493_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
921e3f29 3494_LT_AC_TAGVAR(no_undefined_flag, $1)=
3495_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3496_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
e0282ee9 3497
921e3f29 3498# Dependencies to place before and after the object being linked:
3499_LT_AC_TAGVAR(predep_objects, $1)=
3500_LT_AC_TAGVAR(postdep_objects, $1)=
3501_LT_AC_TAGVAR(predeps, $1)=
3502_LT_AC_TAGVAR(postdeps, $1)=
3503_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
d7cb1a97 3504
921e3f29 3505# Source file extension for C++ test sources.
3506ac_ext=cpp
d7cb1a97 3507
921e3f29 3508# Object file extension for compiled C++ test sources.
d7cb1a97 3509objext=o
3510_LT_AC_TAGVAR(objext, $1)=$objext
3511
3512# Code to be used in simple compile tests
921e3f29 3513lt_simple_compile_test_code="int some_variable = 0;\n"
d7cb1a97 3514
3515# Code to be used in simple link tests
921e3f29 3516lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
d7cb1a97 3517
3518# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3519_LT_AC_SYS_COMPILER
3520
e0282ee9 3521# save warnings/boilerplate of simple test code
3522_LT_COMPILER_BOILERPLATE
3523_LT_LINKER_BOILERPLATE
3524
d7cb1a97 3525# Allow CC to be a program name with arguments.
921e3f29 3526lt_save_CC=$CC
3527lt_save_LD=$LD
3528lt_save_GCC=$GCC
3529GCC=$GXX
3530lt_save_with_gnu_ld=$with_gnu_ld
3531lt_save_path_LD=$lt_cv_path_LD
3532if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3533 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3534else
3535 $as_unset lt_cv_prog_gnu_ld
3536fi
3537if test -n "${lt_cv_path_LDCXX+set}"; then
3538 lt_cv_path_LD=$lt_cv_path_LDCXX
3539else
3540 $as_unset lt_cv_path_LD
3541fi
3542test -z "${LDCXX+set}" || LD=$LDCXX
3543CC=${CXX-"c++"}
d7cb1a97 3544compiler=$CC
3545_LT_AC_TAGVAR(compiler, $1)=$CC
e0282ee9 3546_LT_CC_BASENAME([$compiler])
d7cb1a97 3547
921e3f29 3548# We don't want -fno-exception wen compiling C++ code, so set the
3549# no_builtin_flag separately
3550if test "$GXX" = yes; then
3551 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3552else
3553 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3554fi
d7cb1a97 3555
921e3f29 3556if test "$GXX" = yes; then
3557 # Set up default GNU C++ configuration
d7cb1a97 3558
921e3f29 3559 AC_PROG_LD
d7cb1a97 3560
921e3f29 3561 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3562 # archiving commands below assume that GNU ld is being used.
3563 if test "$with_gnu_ld" = yes; then
3564 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3565 _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'
d7cb1a97 3566
921e3f29 3567 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3568 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
d7cb1a97 3569
921e3f29 3570 # If archive_cmds runs LD, not CC, wlarc should be empty
3571 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3572 # investigate it a little bit more. (MM)
3573 wlarc='${wl}'
d7cb1a97 3574
921e3f29 3575 # ancient GNU ld didn't support --whole-archive et. al.
3576 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3577 grep 'no-whole-archive' > /dev/null; then
3578 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3579 else
3580 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3581 fi
3582 else
3583 with_gnu_ld=no
3584 wlarc=
d7cb1a97 3585
921e3f29 3586 # A generic and very simple default shared library creation
3587 # command for GNU C++ for the case where it uses the native
3588 # linker, instead of GNU ld. If possible, this setting should
3589 # overridden to take advantage of the native linker features on
3590 # the platform it is being used on.
3591 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3592 fi
d7cb1a97 3593
921e3f29 3594 # Commands to make compiler produce verbose output that lists
3595 # what "hidden" libraries, object files and flags are used when
3596 # linking a shared library.
3597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
d7cb1a97 3598
921e3f29 3599else
3600 GXX=no
3601 with_gnu_ld=no
3602 wlarc=
3603fi
d7cb1a97 3604
921e3f29 3605# PORTME: fill in a description of your system's C++ link characteristics
3606AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3607_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3608case $host_os in
3609 aix3*)
3610 # FIXME: insert proper C++ library support
3611 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3612 ;;
3613 aix4* | aix5*)
3614 if test "$host_cpu" = ia64; then
3615 # On IA64, the linker does run time linking by default, so we don't
3616 # have to do anything special.
3617 aix_use_runtimelinking=no
3618 exp_sym_flag='-Bexport'
3619 no_entry_flag=""
3620 else
3621 aix_use_runtimelinking=no
d7cb1a97 3622
921e3f29 3623 # Test if we are trying to use run time linking or normal
3624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3625 # need to do runtime linking.
3626 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3627 for ld_flag in $LDFLAGS; do
3628 case $ld_flag in
3629 *-brtl*)
3630 aix_use_runtimelinking=yes
3631 break
3632 ;;
3633 esac
3634 done
3635 ;;
3636 esac
d7cb1a97 3637
921e3f29 3638 exp_sym_flag='-bexport'
3639 no_entry_flag='-bnoentry'
3640 fi
d7cb1a97 3641
921e3f29 3642 # When large executables or shared objects are built, AIX ld can
3643 # have problems creating the table of contents. If linking a library
3644 # or program results in "error TOC overflow" add -mminimal-toc to
3645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7cb1a97 3647
921e3f29 3648 _LT_AC_TAGVAR(archive_cmds, $1)=''
3649 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3650 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3651 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
d7cb1a97 3652
921e3f29 3653 if test "$GXX" = yes; then
3654 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3655 # We only want to do this on AIX 4.2 and lower, the check
3656 # below for broken collect2 doesn't work under 4.3+
3657 collect2name=`${CC} -print-prog-name=collect2`
3658 if test -f "$collect2name" && \
3659 strings "$collect2name" | grep resolve_lib_name >/dev/null
3660 then
3661 # We have reworked collect2
3662 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3663 else
3664 # We have old collect2
3665 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3666 # It fails to find uninstalled libraries when the uninstalled
3667 # path is not listed in the libpath. Setting hardcode_minus_L
3668 # to unsupported forces relinking
3669 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3670 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3671 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3672 fi
3673 ;;
3674 esac
3675 shared_flag='-shared'
3676 if test "$aix_use_runtimelinking" = yes; then
3677 shared_flag="$shared_flag "'${wl}-G'
3678 fi
3679 else
3680 # not using gcc
3681 if test "$host_cpu" = ia64; then
3682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3683 # chokes on -Wl,-G. The following line is correct:
3684 shared_flag='-G'
3685 else
3686 if test "$aix_use_runtimelinking" = yes; then
3687 shared_flag='${wl}-G'
3688 else
3689 shared_flag='${wl}-bM:SRE'
3690 fi
3691 fi
3692 fi
d7cb1a97 3693
921e3f29 3694 # It seems that -bexpall does not export symbols beginning with
3695 # underscore (_), so it is better to generate a list of symbols to export.
3696 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3697 if test "$aix_use_runtimelinking" = yes; then
3698 # Warning - without using the other runtime loading flags (-brtl),
3699 # -berok will link without error, but may produce a broken library.
3700 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3701 # Determine the default libpath from the value encoded in an empty executable.
3702 _LT_AC_SYS_LIBPATH_AIX
3703 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
d7cb1a97 3704
921e3f29 3705 _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"
3706 else
3707 if test "$host_cpu" = ia64; then
3708 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3709 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3710 _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"
3711 else
3712 # Determine the default libpath from the value encoded in an empty executable.
3713 _LT_AC_SYS_LIBPATH_AIX
3714 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3715 # Warning - without using the other run time loading flags,
3716 # -berok will link without error, but may produce a broken library.
3717 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3718 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3719 # Exported symbols can be pulled into shared objects from archives
3720 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3721 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3722 # This is similar to how AIX traditionally builds its shared libraries.
3723 _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'
3724 fi
3725 fi
3726 ;;
d7cb1a97 3727
921e3f29 3728 beos*)
3729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3730 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3732 # support --undefined. This deserves some investigation. FIXME
3733 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3734 else
3735 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3736 fi
3737 ;;
d7cb1a97 3738
921e3f29 3739 chorus*)
3740 case $cc_basename in
3741 *)
3742 # FIXME: insert proper C++ library support
3743 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3744 ;;
3745 esac
3746 ;;
e0282ee9 3747
921e3f29 3748 cygwin* | mingw* | pw32*)
3749 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3750 # as there is no search path for DLLs.
3751 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3752 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3753 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3754 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
d7cb1a97 3755
921e3f29 3756 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3757 _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'
3758 # If the export-symbols file already is a .def file (1st line
3759 # is EXPORTS), use it as is; otherwise, prepend...
3760 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3761 cp $export_symbols $output_objdir/$soname.def;
3762 else
3763 echo EXPORTS > $output_objdir/$soname.def;
3764 cat $export_symbols >> $output_objdir/$soname.def;
3765 fi~
3766 $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'
3767 else
3768 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3769 fi
3770 ;;
3771 darwin* | rhapsody*)
3772 case $host_os in
3773 rhapsody* | darwin1.[[012]])
3774 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3775 ;;
3776 *) # Darwin 1.3 on
3777 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3778 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3779 else
3780 case ${MACOSX_DEPLOYMENT_TARGET} in
3781 10.[[012]])
3782 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3783 ;;
3784 10.*)
3785 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3786 ;;
3787 esac
3788 fi
3789 ;;
3790 esac
3791 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3792 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3793 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3794 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3795 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3796 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
d7cb1a97 3797
921e3f29 3798 if test "$GXX" = yes ; then
3799 lt_int_apple_cc_single_mod=no
3800 output_verbose_link_cmd='echo'
3801 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3802 lt_int_apple_cc_single_mod=yes
3803 fi
3804 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3805 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3806 else
3807 _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'
3808 fi
3809 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3810 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3811 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3812 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3813 else
3814 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3815 fi
3816 _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}'
3817 else
3818 case $cc_basename in
3819 xlc*)
3820 output_verbose_link_cmd='echo'
3821 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3822 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3823 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3824 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3825 _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}'
3826 ;;
3827 *)
3828 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3829 ;;
3830 esac
3831 fi
3832 ;;
d7cb1a97 3833
921e3f29 3834 dgux*)
3835 case $cc_basename in
3836 ec++*)
3837 # FIXME: insert proper C++ library support
3838 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3839 ;;
3840 ghcx*)
3841 # Green Hills C++ Compiler
3842 # FIXME: insert proper C++ library support
3843 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3844 ;;
3845 *)
3846 # FIXME: insert proper C++ library support
3847 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3848 ;;
3849 esac
3850 ;;
3851 freebsd[[12]]*)
3852 # C++ shared libraries reported to be fairly broken before switch to ELF
3853 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3854 ;;
3855 freebsd-elf*)
3856 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3857 ;;
3858 freebsd* | kfreebsd*-gnu | dragonfly*)
3859 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3860 # conventions
3861 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3862 ;;
3863 gnu*)
3864 ;;
3865 hpux9*)
3866 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3867 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3868 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3869 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3870 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3871 # but as the default
3872 # location of the library.
d7cb1a97 3873
921e3f29 3874 case $cc_basename in
3875 CC*)
3876 # FIXME: insert proper C++ library support
3877 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3878 ;;
3879 aCC*)
3880 _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'
3881 # Commands to make compiler produce verbose output that lists
3882 # what "hidden" libraries, object files and flags are used when
3883 # linking a shared library.
3884 #
3885 # There doesn't appear to be a way to prevent this compiler from
3886 # explicitly linking system object files so we need to strip them
3887 # from the output so that they don't get included in the library
3888 # dependencies.
3889 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'
3890 ;;
3891 *)
3892 if test "$GXX" = yes; then
3893 _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'
3894 else
3895 # FIXME: insert proper C++ library support
3896 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3897 fi
3898 ;;
3899 esac
3900 ;;
3901 hpux10*|hpux11*)
3902 if test $with_gnu_ld = no; then
3903 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3904 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
e0282ee9 3905
921e3f29 3906 case $host_cpu in
3907 hppa*64*|ia64*)
3908 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3909 ;;
3910 *)
3911 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3912 ;;
3913 esac
3914 fi
3915 case $host_cpu in
3916 hppa*64*|ia64*)
3917 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3918 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3919 ;;
3920 *)
3921 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3922 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3923 # but as the default
3924 # location of the library.
3925 ;;
3926 esac
d7cb1a97 3927
921e3f29 3928 case $cc_basename in
3929 CC*)
3930 # FIXME: insert proper C++ library support
3931 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3932 ;;
3933 aCC*)
3934 case $host_cpu in
3935 hppa*64*)
3936 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3937 ;;
3938 ia64*)
3939 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3940 ;;
3941 *)
3942 _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'
3943 ;;
3944 esac
3945 # Commands to make compiler produce verbose output that lists
3946 # what "hidden" libraries, object files and flags are used when
3947 # linking a shared library.
3948 #
3949 # There doesn't appear to be a way to prevent this compiler from
3950 # explicitly linking system object files so we need to strip them
3951 # from the output so that they don't get included in the library
3952 # dependencies.
3953 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'
3954 ;;
3955 *)
3956 if test "$GXX" = yes; then
3957 if test $with_gnu_ld = no; then
3958 case $host_cpu in
3959 hppa*64*)
3960 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3961 ;;
3962 ia64*)
3963 _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'
3964 ;;
3965 *)
3966 _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'
3967 ;;
3968 esac
3969 fi
3970 else
3971 # FIXME: insert proper C++ library support
3972 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3973 fi
3974 ;;
3975 esac
3976 ;;
3977 interix3*)
3978 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3979 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3981 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3983 # Instead, shared libraries are loaded at an image base (0x10000000 by
3984 # default) and relocated if they conflict, which is a slow very memory
3985 # consuming and fragmenting process. To avoid this, we pick a random,
3986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3988 _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'
3989 _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'
3990 ;;
3991 irix5* | irix6*)
3992 case $cc_basename in
3993 CC*)
3994 # SGI C++
3995 _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'
d7cb1a97 3996
921e3f29 3997 # Archives containing C++ object files must be created using
3998 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3999 # necessary to make sure instantiated templates are included
4000 # in the archive.
4001 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4002 ;;
4003 *)
4004 if test "$GXX" = yes; then
4005 if test "$with_gnu_ld" = no; then
4006 _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'
4007 else
4008 _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'
4009 fi
4010 fi
4011 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4012 ;;
4013 esac
4014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4015 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4016 ;;
4017 linux*)
4018 case $cc_basename in
4019 KCC*)
4020 # Kuck and Associates, Inc. (KAI) C++ Compiler
d7cb1a97 4021
921e3f29 4022 # KCC will only create a shared library if the output file
4023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4024 # to its proper name (with version) after linking.
4025 _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'
4026 _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'
4027 # Commands to make compiler produce verbose output that lists
4028 # what "hidden" libraries, object files and flags are used when
4029 # linking a shared library.
4030 #
4031 # There doesn't appear to be a way to prevent this compiler from
4032 # explicitly linking system object files so we need to strip them
4033 # from the output so that they don't get included in the library
4034 # dependencies.
4035 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'
d7cb1a97 4036
921e3f29 4037 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4038 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
d7cb1a97 4039
921e3f29 4040 # Archives containing C++ object files must be created using
4041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4042 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4043 ;;
4044 icpc*)
4045 # Intel C++
4046 with_gnu_ld=yes
4047 # version 8.0 and above of icpc choke on multiply defined symbols
4048 # if we add $predep_objects and $postdep_objects, however 7.1 and
4049 # earlier do not add the objects themselves.
4050 case `$CC -V 2>&1` in
4051 *"Version 7."*)
4052 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4053 _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'
4054 ;;
4055 *) # Version 8.0 or newer
4056 tmp_idyn=
4057 case $host_cpu in
4058 ia64*) tmp_idyn=' -i_dynamic';;
4059 esac
4060 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4061 _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'
4062 ;;
4063 esac
4064 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4066 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4067 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4068 ;;
4069 pgCC*)
4070 # Portland Group C++ compiler
4071 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4072 _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'
d7cb1a97 4073
921e3f29 4074 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4075 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4076 _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'
4077 ;;
4078 cxx*)
4079 # Compaq C++
4080 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4081 _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'
d7cb1a97 4082
921e3f29 4083 runpath_var=LD_RUN_PATH
4084 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4085 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4086
921e3f29 4087 # Commands to make compiler produce verbose output that lists
4088 # what "hidden" libraries, object files and flags are used when
4089 # linking a shared library.
4090 #
4091 # There doesn't appear to be a way to prevent this compiler from
4092 # explicitly linking system object files so we need to strip them
4093 # from the output so that they don't get included in the library
4094 # dependencies.
4095 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'
4096 ;;
4097 esac
4098 ;;
4099 lynxos*)
4100 # FIXME: insert proper C++ library support
4101 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4102 ;;
4103 m88k*)
4104 # FIXME: insert proper C++ library support
4105 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4106 ;;
4107 mvs*)
4108 case $cc_basename in
4109 cxx*)
4110 # FIXME: insert proper C++ library support
4111 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4112 ;;
4113 *)
4114 # FIXME: insert proper C++ library support
4115 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4116 ;;
4117 esac
4118 ;;
4119 netbsd*)
4120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4121 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4122 wlarc=
4123 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4124 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4125 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4126 fi
4127 # Workaround some broken pre-1.5 toolchains
4128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4129 ;;
4130 openbsd2*)
4131 # C++ shared libraries are fairly broken
4132 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4133 ;;
4134 openbsd*)
4135 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4136 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4137 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4138 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4140 _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'
4141 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4142 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4143 fi
4144 output_verbose_link_cmd='echo'
4145 ;;
4146 osf3*)
4147 case $cc_basename in
4148 KCC*)
4149 # Kuck and Associates, Inc. (KAI) C++ Compiler
d7cb1a97 4150
921e3f29 4151 # KCC will only create a shared library if the output file
4152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4153 # to its proper name (with version) after linking.
4154 _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'
d7cb1a97 4155
921e3f29 4156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4157 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4158
921e3f29 4159 # Archives containing C++ object files must be created using
4160 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4161 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
d7cb1a97 4162
921e3f29 4163 ;;
4164 RCC*)
4165 # Rational C++ 2.4.1
4166 # FIXME: insert proper C++ library support
4167 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4168 ;;
4169 cxx*)
4170 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4171 _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'
d7cb1a97 4172
921e3f29 4173 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4174 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4175
921e3f29 4176 # Commands to make compiler produce verbose output that lists
4177 # what "hidden" libraries, object files and flags are used when
4178 # linking a shared library.
4179 #
4180 # There doesn't appear to be a way to prevent this compiler from
4181 # explicitly linking system object files so we need to strip them
4182 # from the output so that they don't get included in the library
4183 # dependencies.
4184 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'
4185 ;;
4186 *)
4187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4188 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4189 _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'
d7cb1a97 4190
921e3f29 4191 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4192 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4193
921e3f29 4194 # Commands to make compiler produce verbose output that lists
4195 # what "hidden" libraries, object files and flags are used when
4196 # linking a shared library.
4197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
d7cb1a97 4198
921e3f29 4199 else
4200 # FIXME: insert proper C++ library support
4201 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4202 fi
4203 ;;
4204 esac
4205 ;;
4206 osf4* | osf5*)
4207 case $cc_basename in
4208 KCC*)
4209 # Kuck and Associates, Inc. (KAI) C++ Compiler
d7cb1a97 4210
921e3f29 4211 # KCC will only create a shared library if the output file
4212 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4213 # to its proper name (with version) after linking.
4214 _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'
d7cb1a97 4215
921e3f29 4216 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4217 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4218
921e3f29 4219 # Archives containing C++ object files must be created using
4220 # the KAI C++ compiler.
4221 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4222 ;;
4223 RCC*)
4224 # Rational C++ 2.4.1
4225 # FIXME: insert proper C++ library support
4226 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4227 ;;
4228 cxx*)
4229 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4230 _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'
4231 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4232 echo "-hidden">> $lib.exp~
4233 $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~
4234 $rm $lib.exp'
d7cb1a97 4235
921e3f29 4236 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4237 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4238
921e3f29 4239 # Commands to make compiler produce verbose output that lists
4240 # what "hidden" libraries, object files and flags are used when
4241 # linking a shared library.
4242 #
4243 # There doesn't appear to be a way to prevent this compiler from
4244 # explicitly linking system object files so we need to strip them
4245 # from the output so that they don't get included in the library
4246 # dependencies.
4247 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'
4248 ;;
4249 *)
4250 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4251 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4252 _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'
d7cb1a97 4253
921e3f29 4254 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4255 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 4256
921e3f29 4257 # Commands to make compiler produce verbose output that lists
4258 # what "hidden" libraries, object files and flags are used when
4259 # linking a shared library.
4260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
d7cb1a97 4261
921e3f29 4262 else
4263 # FIXME: insert proper C++ library support
4264 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4265 fi
4266 ;;
4267 esac
4268 ;;
4269 psos*)
4270 # FIXME: insert proper C++ library support
4271 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4272 ;;
4273 sunos4*)
4274 case $cc_basename in
4275 CC*)
4276 # Sun C++ 4.x
4277 # FIXME: insert proper C++ library support
4278 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4279 ;;
4280 lcc*)
4281 # Lucid
4282 # FIXME: insert proper C++ library support
4283 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4284 ;;
4285 *)
4286 # FIXME: insert proper C++ library support
4287 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4288 ;;
4289 esac
4290 ;;
4291 solaris*)
4292 case $cc_basename in
4293 CC*)
4294 # Sun C++ 4.2, 5.x and Centerline C++
4295 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4296 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4297 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4298 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4299 $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'
d7cb1a97 4300
921e3f29 4301 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4302 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4303 case $host_os in
4304 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4305 *)
4306 # The C++ compiler is used as linker so we must use $wl
4307 # flag to pass the commands to the underlying system
4308 # linker. We must also pass each convience library through
4309 # to the system linker between allextract/defaultextract.
4310 # The C++ compiler will combine linker options so we
4311 # cannot just pass the convience library names through
4312 # without $wl.
4313 # Supported since Solaris 2.6 (maybe 2.5.1?)
4314 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4315 ;;
4316 esac
4317 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
d7cb1a97 4318
921e3f29 4319 output_verbose_link_cmd='echo'
d7cb1a97 4320
921e3f29 4321 # Archives containing C++ object files must be created using
4322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4323 # necessary to make sure instantiated templates are included
4324 # in the archive.
4325 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4326 ;;
4327 gcx*)
4328 # Green Hills C++ Compiler
4329 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
d7cb1a97 4330
921e3f29 4331 # The C++ compiler must be used to create the archive.
4332 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4333 ;;
4334 *)
4335 # GNU C++ compiler with Solaris linker
4336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4337 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4338 if $CC --version | grep -v '^2\.7' > /dev/null; then
4339 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4340 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4341 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
d7cb1a97 4342
921e3f29 4343 # Commands to make compiler produce verbose output that lists
4344 # what "hidden" libraries, object files and flags are used when
4345 # linking a shared library.
4346 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4347 else
4348 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4349 # platform.
4350 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4351 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4352 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
d7cb1a97 4353
921e3f29 4354 # Commands to make compiler produce verbose output that lists
4355 # what "hidden" libraries, object files and flags are used when
4356 # linking a shared library.
4357 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4358 fi
d7cb1a97 4359
921e3f29 4360 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4361 fi
4362 ;;
4363 esac
4364 ;;
4365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4366 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4367 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4368 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4369 runpath_var='LD_RUN_PATH'
d7cb1a97 4370
921e3f29 4371 case $cc_basename in
4372 CC*)
4373 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4374 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4375 ;;
4376 *)
4377 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4378 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4379 ;;
4380 esac
4381 ;;
4382 sysv5* | sco3.2v5* | sco5v6*)
4383 # Note: We can NOT use -z defs as we might desire, because we do not
4384 # link with -lc, and that would cause any symbols used from libc to
4385 # always be unresolved, which means just about no library would
4386 # ever link correctly. If we're not using GNU ld we use -z text
4387 # though, which does catch some bad symbols but isn't as heavy-handed
4388 # as -z defs.
4389 # For security reasons, it is highly recommended that you always
4390 # use absolute paths for naming shared libraries, and exclude the
4391 # DT_RUNPATH tag from executables and libraries. But doing so
4392 # requires that you compile everything twice, which is a pain.
4393 # So that behaviour is only enabled if SCOABSPATH is set to a
4394 # non-empty value in the environment. Most likely only useful for
4395 # creating official distributions of packages.
4396 # This is a hack until libtool officially supports absolute path
4397 # names for shared libraries.
4398 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4399 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4400 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4401 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4402 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4403 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4404 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4405 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4406 runpath_var='LD_RUN_PATH'
d7cb1a97 4407
921e3f29 4408 case $cc_basename in
4409 CC*)
4410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4411 _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'
4412 ;;
4413 *)
4414 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4415 _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'
4416 ;;
4417 esac
4418 ;;
4419 tandem*)
4420 case $cc_basename in
4421 NCC*)
4422 # NonStop-UX NCC 3.20
4423 # FIXME: insert proper C++ library support
4424 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4425 ;;
4426 *)
4427 # FIXME: insert proper C++ library support
4428 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4429 ;;
4430 esac
4431 ;;
4432 vxworks*)
4433 # FIXME: insert proper C++ library support
4434 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4435 ;;
4436 *)
4437 # FIXME: insert proper C++ library support
4438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4439 ;;
4440esac
4441AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4442test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
d7cb1a97 4443
921e3f29 4444_LT_AC_TAGVAR(GCC, $1)="$GXX"
4445_LT_AC_TAGVAR(LD, $1)="$LD"
d7cb1a97 4446
921e3f29 4447AC_LIBTOOL_POSTDEP_PREDEP($1)
4448AC_LIBTOOL_PROG_COMPILER_PIC($1)
4449AC_LIBTOOL_PROG_CC_C_O($1)
4450AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4451AC_LIBTOOL_PROG_LD_SHLIBS($1)
4452AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4453AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
d7cb1a97 4454
921e3f29 4455AC_LIBTOOL_CONFIG($1)
d7cb1a97 4456
921e3f29 4457AC_LANG_POP
4458CC=$lt_save_CC
4459LDCXX=$LD
4460LD=$lt_save_LD
4461GCC=$lt_save_GCC
4462with_gnu_ldcxx=$with_gnu_ld
4463with_gnu_ld=$lt_save_with_gnu_ld
4464lt_cv_path_LDCXX=$lt_cv_path_LD
4465lt_cv_path_LD=$lt_save_path_LD
4466lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4467lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4468])# AC_LIBTOOL_LANG_CXX_CONFIG
d7cb1a97 4469
921e3f29 4470# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4471# ------------------------------------
4472# Figure out "hidden" library dependencies from verbose
4473# compiler output when linking a shared library.
4474# Parse the compiler output and extract the necessary
4475# objects, libraries and library flags.
4476AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4477dnl we can't use the lt_simple_compile_test_code here,
4478dnl because it contains code intended for an executable,
4479dnl not a library. It's possible we should let each
4480dnl tag define a new lt_????_link_test_code variable,
4481dnl but it's only used here...
4482ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4483int a;
4484void foo (void) { a = 0; }
4485EOF
4486],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4487class Foo
4488{
4489public:
4490 Foo (void) { a = 0; }
4491private:
4492 int a;
4493};
4494EOF
4495],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4496 subroutine foo
4497 implicit none
4498 integer*4 a
4499 a=0
4500 return
4501 end
4502EOF
4503],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4504public class foo {
4505 private int a;
4506 public void bar (void) {
4507 a = 0;
4508 }
4509};
4510EOF
4511])
4512dnl Parse the compiler output and extract the necessary
4513dnl objects, libraries and library flags.
4514if AC_TRY_EVAL(ac_compile); then
4515 # Parse the compiler output and extract the necessary
4516 # objects, libraries and library flags.
d7cb1a97 4517
921e3f29 4518 # Sentinel used to keep track of whether or not we are before
4519 # the conftest object file.
4520 pre_test_object_deps_done=no
d7cb1a97 4521
921e3f29 4522 # The `*' in the case matches for architectures that use `case' in
4523 # $output_verbose_cmd can trigger glob expansion during the loop
4524 # eval without this substitution.
4525 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
d7cb1a97 4526
921e3f29 4527 for p in `eval $output_verbose_link_cmd`; do
4528 case $p in
d7cb1a97 4529
921e3f29 4530 -L* | -R* | -l*)
4531 # Some compilers place space between "-{L,R}" and the path.
4532 # Remove the space.
4533 if test $p = "-L" \
4534 || test $p = "-R"; then
4535 prev=$p
4536 continue
4537 else
4538 prev=
4539 fi
d7cb1a97 4540
921e3f29 4541 if test "$pre_test_object_deps_done" = no; then
4542 case $p in
4543 -L* | -R*)
4544 # Internal compiler library paths should come after those
4545 # provided the user. The postdeps already come after the
4546 # user supplied libs so there is no need to process them.
4547 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4548 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4549 else
4550 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4551 fi
4552 ;;
4553 # The "-l" case would never come before the object being
4554 # linked, so don't bother handling this case.
4555 esac
4556 else
4557 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4558 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4559 else
4560 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4561 fi
4562 fi
4563 ;;
d7cb1a97 4564
921e3f29 4565 *.$objext)
4566 # This assumes that the test object file only shows up
4567 # once in the compiler output.
4568 if test "$p" = "conftest.$objext"; then
4569 pre_test_object_deps_done=yes
4570 continue
4571 fi
d7cb1a97 4572
921e3f29 4573 if test "$pre_test_object_deps_done" = no; then
4574 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4575 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4576 else
4577 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4578 fi
4579 else
4580 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4581 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4582 else
4583 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4584 fi
4585 fi
4586 ;;
d7cb1a97 4587
921e3f29 4588 *) ;; # Ignore the rest.
d7cb1a97 4589
921e3f29 4590 esac
4591 done
d7cb1a97 4592
921e3f29 4593 # Clean up.
4594 rm -f a.out a.exe
4595else
4596 echo "libtool.m4: error: problem compiling $1 test program"
4597fi
d7cb1a97 4598
921e3f29 4599$rm -f confest.$objext
d7cb1a97 4600
921e3f29 4601# PORTME: override above test on systems where it is broken
4602ifelse([$1],[CXX],
4603[case $host_os in
4604interix3*)
4605 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4606 # hack all around it, let's just trust "g++" to DTRT.
4607 _LT_AC_TAGVAR(predep_objects,$1)=
4608 _LT_AC_TAGVAR(postdep_objects,$1)=
4609 _LT_AC_TAGVAR(postdeps,$1)=
4610 ;;
d7cb1a97 4611
921e3f29 4612solaris*)
4613 case $cc_basename in
4614 CC*)
4615 # Adding this requires a known-good setup of shared libraries for
4616 # Sun compiler versions before 5.6, else PIC objects from an old
4617 # archive will be linked into the output, leading to subtle bugs.
4618 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4619 ;;
4620 esac
4621 ;;
4622esac
4623])
d7cb1a97 4624
921e3f29 4625case " $_LT_AC_TAGVAR(postdeps, $1) " in
4626*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4627esac
4628])# AC_LIBTOOL_POSTDEP_PREDEP
d7cb1a97 4629
921e3f29 4630# AC_LIBTOOL_LANG_F77_CONFIG
4631# --------------------------
4632# Ensure that the configuration vars for the C compiler are
4633# suitably defined. Those variables are subsequently used by
4634# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4635AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4636AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4637[AC_REQUIRE([AC_PROG_F77])
4638AC_LANG_PUSH(Fortran 77)
d7cb1a97 4639
921e3f29 4640_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4641_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4642_LT_AC_TAGVAR(always_export_symbols, $1)=no
4643_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4644_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4645_LT_AC_TAGVAR(hardcode_direct, $1)=no
4646_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4647_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4648_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4649_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4650_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4651_LT_AC_TAGVAR(module_cmds, $1)=
4652_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4653_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4654_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4655_LT_AC_TAGVAR(no_undefined_flag, $1)=
4656_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4657_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
d7cb1a97 4658
921e3f29 4659# Source file extension for f77 test sources.
4660ac_ext=f
d7cb1a97 4661
921e3f29 4662# Object file extension for compiled f77 test sources.
4663objext=o
4664_LT_AC_TAGVAR(objext, $1)=$objext
d7cb1a97 4665
921e3f29 4666# Code to be used in simple compile tests
4667lt_simple_compile_test_code=" subroutine t\n return\n end\n"
d7cb1a97 4668
921e3f29 4669# Code to be used in simple link tests
4670lt_simple_link_test_code=" program t\n end\n"
d7cb1a97 4671
921e3f29 4672# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4673_LT_AC_SYS_COMPILER
d7cb1a97 4674
921e3f29 4675# save warnings/boilerplate of simple test code
4676_LT_COMPILER_BOILERPLATE
4677_LT_LINKER_BOILERPLATE
d7cb1a97 4678
921e3f29 4679# Allow CC to be a program name with arguments.
4680lt_save_CC="$CC"
4681CC=${F77-"f77"}
4682compiler=$CC
4683_LT_AC_TAGVAR(compiler, $1)=$CC
4684_LT_CC_BASENAME([$compiler])
d7cb1a97 4685
921e3f29 4686AC_MSG_CHECKING([if libtool supports shared libraries])
4687AC_MSG_RESULT([$can_build_shared])
d7cb1a97 4688
921e3f29 4689AC_MSG_CHECKING([whether to build shared libraries])
4690test "$can_build_shared" = "no" && enable_shared=no
d7cb1a97 4691
921e3f29 4692# On AIX, shared libraries and static libraries use the same namespace, and
4693# are all built from PIC.
4694case $host_os in
4695aix3*)
4696 test "$enable_shared" = yes && enable_static=no
4697 if test -n "$RANLIB"; then
4698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4699 postinstall_cmds='$RANLIB $lib'
4700 fi
4701 ;;
4702aix4* | aix5*)
4703 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4704 test "$enable_shared" = yes && enable_static=no
4705 fi
4706 ;;
4707esac
4708AC_MSG_RESULT([$enable_shared])
d7cb1a97 4709
921e3f29 4710AC_MSG_CHECKING([whether to build static libraries])
4711# Make sure either enable_shared or enable_static is yes.
4712test "$enable_shared" = yes || enable_static=yes
4713AC_MSG_RESULT([$enable_static])
d7cb1a97 4714
921e3f29 4715_LT_AC_TAGVAR(GCC, $1)="$G77"
4716_LT_AC_TAGVAR(LD, $1)="$LD"
d7cb1a97 4717
921e3f29 4718AC_LIBTOOL_PROG_COMPILER_PIC($1)
4719AC_LIBTOOL_PROG_CC_C_O($1)
4720AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4721AC_LIBTOOL_PROG_LD_SHLIBS($1)
4722AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4723AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
d7cb1a97 4724
921e3f29 4725AC_LIBTOOL_CONFIG($1)
d7cb1a97 4726
921e3f29 4727AC_LANG_POP
4728CC="$lt_save_CC"
4729])# AC_LIBTOOL_LANG_F77_CONFIG
d7cb1a97 4730
d7cb1a97 4731
921e3f29 4732# AC_LIBTOOL_LANG_GCJ_CONFIG
4733# --------------------------
4734# Ensure that the configuration vars for the C compiler are
4735# suitably defined. Those variables are subsequently used by
4736# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4737AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4738AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4739[AC_LANG_SAVE
d7cb1a97 4740
921e3f29 4741# Source file extension for Java test sources.
4742ac_ext=java
d7cb1a97 4743
921e3f29 4744# Object file extension for compiled Java test sources.
4745objext=o
4746_LT_AC_TAGVAR(objext, $1)=$objext
d7cb1a97 4747
921e3f29 4748# Code to be used in simple compile tests
4749lt_simple_compile_test_code="class foo {}\n"
d7cb1a97 4750
921e3f29 4751# Code to be used in simple link tests
4752lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
d7cb1a97 4753
921e3f29 4754# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4755_LT_AC_SYS_COMPILER
d7cb1a97 4756
921e3f29 4757# save warnings/boilerplate of simple test code
4758_LT_COMPILER_BOILERPLATE
4759_LT_LINKER_BOILERPLATE
d7cb1a97 4760
921e3f29 4761# Allow CC to be a program name with arguments.
4762lt_save_CC="$CC"
4763CC=${GCJ-"gcj"}
4764compiler=$CC
4765_LT_AC_TAGVAR(compiler, $1)=$CC
4766_LT_CC_BASENAME([$compiler])
d7cb1a97 4767
921e3f29 4768# GCJ did not exist at the time GCC didn't implicitly link libc in.
4769_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
d7cb1a97 4770
921e3f29 4771_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
d7cb1a97 4772
921e3f29 4773AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4774AC_LIBTOOL_PROG_COMPILER_PIC($1)
4775AC_LIBTOOL_PROG_CC_C_O($1)
4776AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4777AC_LIBTOOL_PROG_LD_SHLIBS($1)
4778AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4779AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
d7cb1a97 4780
921e3f29 4781AC_LIBTOOL_CONFIG($1)
d7cb1a97 4782
921e3f29 4783AC_LANG_RESTORE
4784CC="$lt_save_CC"
4785])# AC_LIBTOOL_LANG_GCJ_CONFIG
d7cb1a97 4786
d7cb1a97 4787
921e3f29 4788# AC_LIBTOOL_LANG_RC_CONFIG
4789# -------------------------
4790# Ensure that the configuration vars for the Windows resource compiler are
4791# suitably defined. Those variables are subsequently used by
4792# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4793AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4794AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4795[AC_LANG_SAVE
d7cb1a97 4796
921e3f29 4797# Source file extension for RC test sources.
4798ac_ext=rc
d7cb1a97 4799
921e3f29 4800# Object file extension for compiled RC test sources.
4801objext=o
4802_LT_AC_TAGVAR(objext, $1)=$objext
e0282ee9 4803
921e3f29 4804# Code to be used in simple compile tests
4805lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
d7cb1a97 4806
921e3f29 4807# Code to be used in simple link tests
4808lt_simple_link_test_code="$lt_simple_compile_test_code"
d7cb1a97 4809
921e3f29 4810# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4811_LT_AC_SYS_COMPILER
d7cb1a97 4812
921e3f29 4813# save warnings/boilerplate of simple test code
4814_LT_COMPILER_BOILERPLATE
4815_LT_LINKER_BOILERPLATE
d7cb1a97 4816
921e3f29 4817# Allow CC to be a program name with arguments.
4818lt_save_CC="$CC"
4819CC=${RC-"windres"}
4820compiler=$CC
4821_LT_AC_TAGVAR(compiler, $1)=$CC
4822_LT_CC_BASENAME([$compiler])
4823_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
d7cb1a97 4824
921e3f29 4825AC_LIBTOOL_CONFIG($1)
d7cb1a97 4826
921e3f29 4827AC_LANG_RESTORE
4828CC="$lt_save_CC"
4829])# AC_LIBTOOL_LANG_RC_CONFIG
d7cb1a97 4830
d7cb1a97 4831
921e3f29 4832# AC_LIBTOOL_CONFIG([TAGNAME])
4833# ----------------------------
4834# If TAGNAME is not passed, then create an initial libtool script
4835# with a default configuration from the untagged config vars. Otherwise
4836# add code to config.status for appending the configuration named by
4837# TAGNAME from the matching tagged config vars.
4838AC_DEFUN([AC_LIBTOOL_CONFIG],
4839[# The else clause should only fire when bootstrapping the
4840# libtool distribution, otherwise you forgot to ship ltmain.sh
4841# with your package, and you will get complaints that there are
4842# no rules to generate ltmain.sh.
4843if test -f "$ltmain"; then
4844 # See if we are running on zsh, and set the options which allow our commands through
4845 # without removal of \ escapes.
4846 if test -n "${ZSH_VERSION+set}" ; then
4847 setopt NO_GLOB_SUBST
d7cb1a97 4848 fi
921e3f29 4849 # Now quote all the things that may contain metacharacters while being
4850 # careful not to overquote the AC_SUBSTed values. We take copies of the
4851 # variables and quote the copies for generation of the libtool script.
4852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4853 SED SHELL STRIP \
4854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4856 deplibs_check_method reload_flag reload_cmds need_locks \
4857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4858 lt_cv_sys_global_symbol_to_c_name_address \
4859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4860 old_postinstall_cmds old_postuninstall_cmds \
4861 _LT_AC_TAGVAR(compiler, $1) \
4862 _LT_AC_TAGVAR(CC, $1) \
4863 _LT_AC_TAGVAR(LD, $1) \
4864 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4865 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4866 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4867 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4868 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4869 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4870 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4871 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4872 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4873 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4874 _LT_AC_TAGVAR(predep_objects, $1) \
4875 _LT_AC_TAGVAR(postdep_objects, $1) \
4876 _LT_AC_TAGVAR(predeps, $1) \
4877 _LT_AC_TAGVAR(postdeps, $1) \
4878 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4879 _LT_AC_TAGVAR(archive_cmds, $1) \
4880 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4881 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4882 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4883 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4884 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4885 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4886 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4888 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4889 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4890 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4891 _LT_AC_TAGVAR(module_cmds, $1) \
4892 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4893 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4894 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4895 _LT_AC_TAGVAR(include_expsyms, $1); do
d7cb1a97 4896
921e3f29 4897 case $var in
4898 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4899 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4900 _LT_AC_TAGVAR(archive_cmds, $1) | \
4901 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4902 _LT_AC_TAGVAR(module_cmds, $1) | \
4903 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4904 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4905 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4907 postinstall_cmds | postuninstall_cmds | \
4908 old_postinstall_cmds | old_postuninstall_cmds | \
4909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4910 # Double-quote double-evaled strings.
4911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
d7cb1a97 4912 ;;
4913 *)
921e3f29 4914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
d7cb1a97 4915 ;;
4916 esac
921e3f29 4917 done
d7cb1a97 4918
921e3f29 4919 case $lt_echo in
4920 *'\[$]0 --fallback-echo"')
4921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4922 ;;
4923 esac
d7cb1a97 4924
921e3f29 4925ifelse([$1], [],
4926 [cfgfile="${ofile}T"
4927 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4928 $rm -f "$cfgfile"
4929 AC_MSG_NOTICE([creating $ofile])],
4930 [cfgfile="$ofile"])
d7cb1a97 4931
921e3f29 4932 cat <<__EOF__ >> "$cfgfile"
4933ifelse([$1], [],
4934[#! $SHELL
d7cb1a97 4935
921e3f29 4936# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4937# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4938# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4939#
4940# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4941# Free Software Foundation, Inc.
4942#
4943# This file is part of GNU Libtool:
4944# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4945#
4946# This program is free software; you can redistribute it and/or modify
4947# it under the terms of the GNU General Public License as published by
4948# the Free Software Foundation; either version 2 of the License, or
4949# (at your option) any later version.
4950#
4951# This program is distributed in the hope that it will be useful, but
4952# WITHOUT ANY WARRANTY; without even the implied warranty of
4953# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4954# General Public License for more details.
4955#
4956# You should have received a copy of the GNU General Public License
4957# along with this program; if not, write to the Free Software
4958# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4959#
4960# As a special exception to the GNU General Public License, if you
4961# distribute this file as part of a program that contains a
4962# configuration script generated by Autoconf, you may include it under
4963# the same distribution terms that you use for the rest of that program.
d7cb1a97 4964
921e3f29 4965# A sed program that does not truncate output.
4966SED=$lt_SED
d7cb1a97 4967
921e3f29 4968# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4969Xsed="$SED -e 1s/^X//"
e0282ee9 4970
921e3f29 4971# The HP-UX ksh and POSIX shell print the target directory to stdout
4972# if CDPATH is set.
4973(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d7cb1a97 4974
921e3f29 4975# The names of the tagged configurations supported by this script.
4976available_tags=
d7cb1a97 4977
921e3f29 4978# ### BEGIN LIBTOOL CONFIG],
4979[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
d7cb1a97 4980
921e3f29 4981# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d7cb1a97 4982
921e3f29 4983# Shell to use when invoking shell scripts.
4984SHELL=$lt_SHELL
d7cb1a97 4985
921e3f29 4986# Whether or not to build shared libraries.
4987build_libtool_libs=$enable_shared
d7cb1a97 4988
921e3f29 4989# Whether or not to build static libraries.
4990build_old_libs=$enable_static
d7cb1a97 4991
921e3f29 4992# Whether or not to add -lc for building shared libraries.
4993build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
d7cb1a97 4994
921e3f29 4995# Whether or not to disallow shared libs when runtime libs are static
4996allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
d7cb1a97 4997
921e3f29 4998# Whether or not to optimize for fast installation.
4999fast_install=$enable_fast_install
d7cb1a97 5000
921e3f29 5001# The host system.
5002host_alias=$host_alias
5003host=$host
5004host_os=$host_os
d7cb1a97 5005
921e3f29 5006# The build system.
5007build_alias=$build_alias
5008build=$build
5009build_os=$build_os
d7cb1a97 5010
921e3f29 5011# An echo program that does not interpret backslashes.
5012echo=$lt_echo
d7cb1a97 5013
921e3f29 5014# The archiver.
5015AR=$lt_AR
5016AR_FLAGS=$lt_AR_FLAGS
d7cb1a97 5017
921e3f29 5018# A C compiler.
5019LTCC=$lt_LTCC
e0282ee9 5020
921e3f29 5021# LTCC compiler flags.
5022LTCFLAGS=$lt_LTCFLAGS
e0282ee9 5023
921e3f29 5024# A language-specific compiler.
5025CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
d7cb1a97 5026
921e3f29 5027# Is the compiler the GNU C compiler?
5028with_gcc=$_LT_AC_TAGVAR(GCC, $1)
d7cb1a97 5029
921e3f29 5030# An ERE matcher.
5031EGREP=$lt_EGREP
e0282ee9 5032
921e3f29 5033# The linker used to build libraries.
5034LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
d7cb1a97 5035
921e3f29 5036# Whether we need hard or soft links.
5037LN_S=$lt_LN_S
d7cb1a97 5038
921e3f29 5039# A BSD-compatible nm program.
5040NM=$lt_NM
d7cb1a97 5041
921e3f29 5042# A symbol stripping program
5043STRIP=$lt_STRIP
d7cb1a97 5044
921e3f29 5045# Used to examine libraries when file_magic_cmd begins "file"
5046MAGIC_CMD=$MAGIC_CMD
e0282ee9 5047
921e3f29 5048# Used on cygwin: DLL creation program.
5049DLLTOOL="$DLLTOOL"
d7cb1a97 5050
921e3f29 5051# Used on cygwin: object dumper.
5052OBJDUMP="$OBJDUMP"
d7cb1a97 5053
921e3f29 5054# Used on cygwin: assembler.
5055AS="$AS"
d7cb1a97 5056
921e3f29 5057# The name of the directory that contains temporary libtool files.
5058objdir=$objdir
d7cb1a97 5059
921e3f29 5060# How to create reloadable object files.
5061reload_flag=$lt_reload_flag
5062reload_cmds=$lt_reload_cmds
d7cb1a97 5063
921e3f29 5064# How to pass a linker flag through the compiler.
5065wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
d7cb1a97 5066
921e3f29 5067# Object file suffix (normally "o").
5068objext="$ac_objext"
d7cb1a97 5069
921e3f29 5070# Old archive suffix (normally "a").
5071libext="$libext"
e0282ee9 5072
921e3f29 5073# Shared library suffix (normally ".so").
5074shrext_cmds='$shrext_cmds'
e0282ee9 5075
921e3f29 5076# Executable file suffix (normally "").
5077exeext="$exeext"
e0282ee9 5078
921e3f29 5079# Additional compiler flags for building library objects.
5080pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5081pic_mode=$pic_mode
d7cb1a97 5082
921e3f29 5083# What is the maximum length of a command?
5084max_cmd_len=$lt_cv_sys_max_cmd_len
d7cb1a97 5085
921e3f29 5086# Does compiler simultaneously support -c and -o options?
5087compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
d7cb1a97 5088
921e3f29 5089# Must we lock files when doing compilation?
5090need_locks=$lt_need_locks
d7cb1a97 5091
921e3f29 5092# Do we need the lib prefix for modules?
5093need_lib_prefix=$need_lib_prefix
d7cb1a97 5094
921e3f29 5095# Do we need a version for libraries?
5096need_version=$need_version
e0282ee9 5097
921e3f29 5098# Whether dlopen is supported.
5099dlopen_support=$enable_dlopen
e0282ee9 5100
921e3f29 5101# Whether dlopen of programs is supported.
5102dlopen_self=$enable_dlopen_self
e0282ee9 5103
921e3f29 5104# Whether dlopen of statically linked programs is supported.
5105dlopen_self_static=$enable_dlopen_self_static
d7cb1a97 5106
921e3f29 5107# Compiler flag to prevent dynamic linking.
5108link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
d7cb1a97 5109
921e3f29 5110# Compiler flag to turn off builtin functions.
5111no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
d7cb1a97 5112
921e3f29 5113# Compiler flag to allow reflexive dlopens.
5114export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
d7cb1a97 5115
921e3f29 5116# Compiler flag to generate shared objects directly from archives.
5117whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
d7cb1a97 5118
921e3f29 5119# Compiler flag to generate thread-safe objects.
5120thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
d7cb1a97 5121
921e3f29 5122# Library versioning type.
5123version_type=$version_type
d7cb1a97 5124
921e3f29 5125# Format of library name prefix.
5126libname_spec=$lt_libname_spec
d7cb1a97 5127
921e3f29 5128# List of archive names. First name is the real one, the rest are links.
5129# The last name is the one that the linker finds with -lNAME.
5130library_names_spec=$lt_library_names_spec
d7cb1a97 5131
921e3f29 5132# The coded name of the library, if different from the real name.
5133soname_spec=$lt_soname_spec
d7cb1a97 5134
921e3f29 5135# Commands used to build and install an old-style archive.
5136RANLIB=$lt_RANLIB
5137old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5138old_postinstall_cmds=$lt_old_postinstall_cmds
5139old_postuninstall_cmds=$lt_old_postuninstall_cmds
d7cb1a97 5140
921e3f29 5141# Create an old-style archive from a shared archive.
5142old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
d7cb1a97 5143
921e3f29 5144# Create a temporary old-style archive to link instead of a shared archive.
5145old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
d7cb1a97 5146
921e3f29 5147# Commands used to build and install a shared archive.
5148archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5149archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5150postinstall_cmds=$lt_postinstall_cmds
5151postuninstall_cmds=$lt_postuninstall_cmds
d7cb1a97 5152
921e3f29 5153# Commands used to build a loadable module (assumed same as above if empty)
5154module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5155module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
d7cb1a97 5156
921e3f29 5157# Commands to strip libraries.
5158old_striplib=$lt_old_striplib
5159striplib=$lt_striplib
d7cb1a97 5160
921e3f29 5161# Dependencies to place before the objects being linked to create a
5162# shared library.
5163predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
d7cb1a97 5164
921e3f29 5165# Dependencies to place after the objects being linked to create a
5166# shared library.
5167postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
d7cb1a97 5168
921e3f29 5169# Dependencies to place before the objects being linked to create a
5170# shared library.
5171predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
d7cb1a97 5172
921e3f29 5173# Dependencies to place after the objects being linked to create a
5174# shared library.
5175postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
d7cb1a97 5176
921e3f29 5177# The library search path used internally by the compiler when linking
5178# a shared library.
5179compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
d7cb1a97 5180
921e3f29 5181# Method to check whether dependent libraries are shared objects.
5182deplibs_check_method=$lt_deplibs_check_method
e0282ee9 5183
921e3f29 5184# Command to use when deplibs_check_method == file_magic.
5185file_magic_cmd=$lt_file_magic_cmd
e0282ee9 5186
921e3f29 5187# Flag that allows shared libraries with undefined symbols to be built.
5188allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
e0282ee9 5189
921e3f29 5190# Flag that forces no undefined symbols.
5191no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
e0282ee9 5192
921e3f29 5193# Commands used to finish a libtool library installation in a directory.
5194finish_cmds=$lt_finish_cmds
d7cb1a97 5195
921e3f29 5196# Same as above, but a single script fragment to be evaled but not shown.
5197finish_eval=$lt_finish_eval
5198
5199# Take the output of nm and produce a listing of raw symbols and C names.
5200global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5201
5202# Transform the output of nm in a proper C declaration
5203global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5204
5205# Transform the output of nm in a C name address pair
5206global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5207
5208# This is the shared library runtime path variable.
5209runpath_var=$runpath_var
5210
5211# This is the shared library path variable.
5212shlibpath_var=$shlibpath_var
5213
5214# Is shlibpath searched before the hard-coded library search path?
5215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5216
5217# How to hardcode a shared library path into an executable.
5218hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5219
5220# Whether we should hardcode library paths into libraries.
5221hardcode_into_libs=$hardcode_into_libs
5222
5223# Flag to hardcode \$libdir into a binary during linking.
5224# This must work even if \$libdir does not exist.
5225hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5226
5227# If ld is used when linking, flag to hardcode \$libdir into
5228# a binary during linking. This must work even if \$libdir does
5229# not exist.
5230hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5231
5232# Whether we need a single -rpath flag with a separated argument.
5233hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5234
5235# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5236# resulting binary.
5237hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5238
5239# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5240# resulting binary.
5241hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5242
5243# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5244# the resulting binary.
5245hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5246
5247# Set to yes if building a shared library automatically hardcodes DIR into the library
5248# and all subsequent libraries and executables linked against it.
5249hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5250
5251# Variables whose values should be saved in libtool wrapper scripts and
5252# restored at relink time.
5253variables_saved_for_relink="$variables_saved_for_relink"
5254
5255# Whether libtool must link a program against all its dependency libraries.
5256link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5257
5258# Compile-time system search path for libraries
5259sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5260
5261# Run-time system search path for libraries
5262sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5263
5264# Fix the shell variable \$srcfile for the compiler.
5265fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5266
5267# Set to yes if exported symbols are required.
5268always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5269
5270# The commands to list exported symbols.
5271export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5272
5273# The commands to extract the exported symbol list from a shared archive.
5274extract_expsyms_cmds=$lt_extract_expsyms_cmds
5275
5276# Symbols that should not be listed in the preloaded symbols.
5277exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5278
5279# Symbols that must always be exported.
5280include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5281
5282ifelse([$1],[],
5283[# ### END LIBTOOL CONFIG],
5284[# ### END LIBTOOL TAG CONFIG: $tagname])
5285
5286__EOF__
5287
5288ifelse([$1],[], [
5289 case $host_os in
5290 aix3*)
5291 cat <<\EOF >> "$cfgfile"
5292
5293# AIX sometimes has problems with the GCC collect2 program. For some
5294# reason, if we set the COLLECT_NAMES environment variable, the problems
5295# vanish in a puff of smoke.
5296if test "X${COLLECT_NAMES+set}" != Xset; then
5297 COLLECT_NAMES=
5298 export COLLECT_NAMES
5299fi
5300EOF
5301 ;;
5302 esac
5303
5304 # We use sed instead of cat because bash on DJGPP gets confused if
5305 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5306 # text mode, it properly converts lines to CR/LF. This bash problem
5307 # is reportedly fixed, but why not run on old versions too?
5308 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5309
5310 mv -f "$cfgfile" "$ofile" || \
5311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5312 chmod +x "$ofile"
5313])
5314else
5315 # If there is no Makefile yet, we rely on a make rule to execute
5316 # `config.status --recheck' to rerun these tests and create the
5317 # libtool script then.
5318 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5319 if test -f "$ltmain_in"; then
5320 test -f Makefile && make "$ltmain"
5321 fi
5322fi
5323])# AC_LIBTOOL_CONFIG
5324
5325
5326# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5327# -------------------------------------------
5328AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5329[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5330
5331_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5332
5333if test "$GCC" = yes; then
5334 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5335
5336 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5337 lt_cv_prog_compiler_rtti_exceptions,
5338 [-fno-rtti -fno-exceptions], [],
5339 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5340fi
5341])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5342
5343
5344# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5345# ---------------------------------
5346AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5347[AC_REQUIRE([AC_CANONICAL_HOST])
5348AC_REQUIRE([AC_PROG_NM])
5349AC_REQUIRE([AC_OBJEXT])
5350# Check for command to grab the raw symbol name followed by C symbol from nm.
5351AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5352AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5353[
5354# These are sane defaults that work on at least a few old systems.
5355# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5356
5357# Character class describing NM global symbol codes.
5358symcode='[[BCDEGRST]]'
5359
5360# Regexp to match symbols that can be accessed directly from C.
5361sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5362
5363# Transform an extracted symbol line into a proper C declaration
5364lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5365
5366# Transform an extracted symbol line into symbol name and symbol address
5367lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5368
5369# Define system-specific variables.
5370case $host_os in
5371aix*)
5372 symcode='[[BCDT]]'
5373 ;;
5374cygwin* | mingw* | pw32*)
5375 symcode='[[ABCDGISTW]]'
5376 ;;
5377hpux*) # Its linker distinguishes data from code symbols
5378 if test "$host_cpu" = ia64; then
5379 symcode='[[ABCDEGRST]]'
5380 fi
5381 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5383 ;;
5384linux*)
5385 if test "$host_cpu" = ia64; then
5386 symcode='[[ABCDGIRSTW]]'
5387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5388 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5389 fi
5390 ;;
5391irix* | nonstopux*)
5392 symcode='[[BCDEGRST]]'
5393 ;;
5394osf*)
5395 symcode='[[BCDEGQRST]]'
5396 ;;
5397solaris*)
5398 symcode='[[BDRT]]'
5399 ;;
5400sco3.2v5*)
5401 symcode='[[DT]]'
5402 ;;
5403sysv4.2uw2*)
5404 symcode='[[DT]]'
5405 ;;
5406sysv5* | sco5v6* | unixware* | OpenUNIX*)
5407 symcode='[[ABDT]]'
5408 ;;
5409sysv4)
5410 symcode='[[DFNSTU]]'
5411 ;;
5412esac
5413
5414# Handle CRLF in mingw tool chain
5415opt_cr=
5416case $build_os in
5417mingw*)
5418 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5419 ;;
5420esac
5421
5422# If we're using GNU nm, then use its standard symbol codes.
5423case `$NM -V 2>&1` in
5424*GNU* | *'with BFD'*)
5425 symcode='[[ABCDGIRSTW]]' ;;
5426esac
5427
5428# Try without a prefix undercore, then with it.
5429for ac_symprfx in "" "_"; do
5430
5431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5432 symxfrm="\\1 $ac_symprfx\\2 \\2"
5433
5434 # Write the raw and C identifiers.
5435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5436
5437 # Check to see that the pipe works correctly.
5438 pipe_works=no
5439
5440 rm -f conftest*
5441 cat > conftest.$ac_ext <<EOF
5442#ifdef __cplusplus
5443extern "C" {
5444#endif
5445char nm_test_var;
5446void nm_test_func(){}
5447#ifdef __cplusplus
5448}
5449#endif
5450int main(){nm_test_var='a';nm_test_func();return(0);}
5451EOF
5452
5453 if AC_TRY_EVAL(ac_compile); then
5454 # Now try to grab the symbols.
5455 nlist=conftest.nm
5456 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5457 # Try sorting and uniquifying the output.
5458 if sort "$nlist" | uniq > "$nlist"T; then
5459 mv -f "$nlist"T "$nlist"
5460 else
5461 rm -f "$nlist"T
5462 fi
5463
5464 # Make sure that we snagged all the symbols we need.
5465 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5466 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5467 cat <<EOF > conftest.$ac_ext
5468#ifdef __cplusplus
5469extern "C" {
5470#endif
5471
5472EOF
5473 # Now generate the symbol file.
5474 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5475
5476 cat <<EOF >> conftest.$ac_ext
5477#if defined (__STDC__) && __STDC__
5478# define lt_ptr_t void *
5479#else
5480# define lt_ptr_t char *
5481# define const
5482#endif
5483
5484/* The mapping between symbol names and symbols. */
5485const struct {
5486 const char *name;
5487 lt_ptr_t address;
5488}
5489lt_preloaded_symbols[[]] =
5490{
5491EOF
5492 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5493 cat <<\EOF >> conftest.$ac_ext
5494 {0, (lt_ptr_t) 0}
5495};
5496
5497#ifdef __cplusplus
5498}
5499#endif
5500EOF
5501 # Now try linking the two files.
5502 mv conftest.$ac_objext conftstm.$ac_objext
5503 lt_save_LIBS="$LIBS"
5504 lt_save_CFLAGS="$CFLAGS"
5505 LIBS="conftstm.$ac_objext"
5506 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5507 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5508 pipe_works=yes
5509 fi
5510 LIBS="$lt_save_LIBS"
5511 CFLAGS="$lt_save_CFLAGS"
5512 else
5513 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5514 fi
5515 else
5516 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5517 fi
5518 else
5519 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5520 fi
5521 else
5522 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5523 cat conftest.$ac_ext >&5
5524 fi
5525 rm -f conftest* conftst*
5526
5527 # Do not use the global_symbol_pipe unless it works.
5528 if test "$pipe_works" = yes; then
5529 break
5530 else
5531 lt_cv_sys_global_symbol_pipe=
5532 fi
5533done
5534])
5535if test -z "$lt_cv_sys_global_symbol_pipe"; then
5536 lt_cv_sys_global_symbol_to_cdecl=
5537fi
5538if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5539 AC_MSG_RESULT(failed)
5540else
5541 AC_MSG_RESULT(ok)
5542fi
5543]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5544
5545
5546# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5547# ---------------------------------------
5548AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5549[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5550_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5551_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5552
5553AC_MSG_CHECKING([for $compiler option to produce PIC])
5554 ifelse([$1],[CXX],[
5555 # C++ specific cases for pic, static, wl, etc.
5556 if test "$GXX" = yes; then
5557 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5558 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5559
5560 case $host_os in
5561 aix*)
5562 # All AIX code is PIC.
5563 if test "$host_cpu" = ia64; then
5564 # AIX 5 now supports IA64 processor
5565 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5566 fi
5567 ;;
5568 amigaos*)
5569 # FIXME: we need at least 68020 code to build shared libraries, but
5570 # adding the `-m68020' flag to GCC prevents building anything better,
5571 # like `-m68040'.
5572 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5573 ;;
5574 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5575 # PIC is the default for these OSes.
5576 ;;
5577 mingw* | os2* | pw32*)
5578 # This hack is so that the source file can tell whether it is being
5579 # built for inclusion in a dll (and should export symbols for example).
5580 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5581 ;;
5582 darwin* | rhapsody*)
5583 # PIC is the default on this platform
5584 # Common symbols not allowed in MH_DYLIB files
5585 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5586 ;;
5587 *djgpp*)
5588 # DJGPP does not support shared libraries at all
5589 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5590 ;;
5591 interix3*)
5592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5593 # Instead, we relocate shared libraries at runtime.
5594 ;;
5595 sysv4*MP*)
5596 if test -d /usr/nec; then
5597 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5598 fi
5599 ;;
5600 hpux*)
5601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5602 # not for PA HP-UX.
5603 case $host_cpu in
5604 hppa*64*|ia64*)
5605 ;;
5606 *)
5607 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5608 ;;
5609 esac
5610 ;;
5611 *)
5612 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5613 ;;
5614 esac
5615 else
5616 case $host_os in
5617 aix4* | aix5*)
5618 # All AIX code is PIC.
5619 if test "$host_cpu" = ia64; then
5620 # AIX 5 now supports IA64 processor
5621 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5622 else
5623 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5624 fi
5625 ;;
5626 chorus*)
5627 case $cc_basename in
5628 cxch68*)
5629 # Green Hills C++ Compiler
5630 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5631 ;;
5632 esac
5633 ;;
5634 darwin*)
5635 # PIC is the default on this platform
5636 # Common symbols not allowed in MH_DYLIB files
5637 case $cc_basename in
5638 xlc*)
5639 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5640 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5641 ;;
5642 esac
5643 ;;
5644 dgux*)
5645 case $cc_basename in
5646 ec++*)
5647 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5648 ;;
5649 ghcx*)
5650 # Green Hills C++ Compiler
5651 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5652 ;;
5653 *)
5654 ;;
5655 esac
5656 ;;
5657 freebsd* | kfreebsd*-gnu | dragonfly*)
5658 # FreeBSD uses GNU C++
5659 ;;
5660 hpux9* | hpux10* | hpux11*)
5661 case $cc_basename in
5662 CC*)
5663 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5664 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5665 if test "$host_cpu" != ia64; then
5666 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5667 fi
5668 ;;
5669 aCC*)
5670 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5671 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5672 case $host_cpu in
5673 hppa*64*|ia64*)
5674 # +Z the default
5675 ;;
5676 *)
5677 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5678 ;;
5679 esac
5680 ;;
5681 *)
5682 ;;
5683 esac
5684 ;;
5685 interix*)
5686 # This is c89, which is MS Visual C++ (no shared libs)
5687 # Anyone wants to do a port?
5688 ;;
5689 irix5* | irix6* | nonstopux*)
5690 case $cc_basename in
5691 CC*)
5692 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5693 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5694 # CC pic flag -KPIC is the default.
5695 ;;
5696 *)
5697 ;;
5698 esac
5699 ;;
5700 linux*)
5701 case $cc_basename in
5702 KCC*)
5703 # KAI C++ Compiler
5704 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5705 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5706 ;;
5707 icpc* | ecpc*)
5708 # Intel C++
5709 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5710 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5711 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5712 ;;
5713 pgCC*)
5714 # Portland Group C++ compiler.
5715 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5716 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5717 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5718 ;;
5719 cxx*)
5720 # Compaq C++
5721 # Make sure the PIC flag is empty. It appears that all Alpha
5722 # Linux and Compaq Tru64 Unix objects are PIC.
5723 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5724 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5725 ;;
5726 *)
5727 ;;
5728 esac
5729 ;;
5730 lynxos*)
5731 ;;
5732 m88k*)
5733 ;;
5734 mvs*)
5735 case $cc_basename in
5736 cxx*)
5737 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5738 ;;
5739 *)
5740 ;;
5741 esac
5742 ;;
5743 netbsd*)
5744 ;;
5745 osf3* | osf4* | osf5*)
5746 case $cc_basename in
5747 KCC*)
5748 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5749 ;;
5750 RCC*)
5751 # Rational C++ 2.4.1
5752 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5753 ;;
5754 cxx*)
5755 # Digital/Compaq C++
5756 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5757 # Make sure the PIC flag is empty. It appears that all Alpha
5758 # Linux and Compaq Tru64 Unix objects are PIC.
5759 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5760 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5761 ;;
5762 *)
5763 ;;
5764 esac
5765 ;;
5766 psos*)
5767 ;;
5768 solaris*)
5769 case $cc_basename in
5770 CC*)
5771 # Sun C++ 4.2, 5.x and Centerline C++
5772 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5773 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5774 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5775 ;;
5776 gcx*)
5777 # Green Hills C++ Compiler
5778 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5779 ;;
5780 *)
5781 ;;
5782 esac
5783 ;;
5784 sunos4*)
5785 case $cc_basename in
5786 CC*)
5787 # Sun C++ 4.x
5788 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5789 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5790 ;;
5791 lcc*)
5792 # Lucid
5793 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5794 ;;
5795 *)
5796 ;;
5797 esac
5798 ;;
5799 tandem*)
5800 case $cc_basename in
5801 NCC*)
5802 # NonStop-UX NCC 3.20
5803 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5804 ;;
5805 *)
5806 ;;
d7cb1a97 5807 esac
921e3f29 5808 ;;
5809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5810 case $cc_basename in
5811 CC*)
5812 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5813 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5814 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5815 ;;
5816 esac
5817 ;;
5818 vxworks*)
5819 ;;
5820 *)
5821 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5822 ;;
5823 esac
5824 fi
5825],
5826[
5827 if test "$GCC" = yes; then
5828 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5829 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
d7cb1a97 5830
921e3f29 5831 case $host_os in
5832 aix*)
5833 # All AIX code is PIC.
5834 if test "$host_cpu" = ia64; then
5835 # AIX 5 now supports IA64 processor
5836 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
d7cb1a97 5837 fi
d7cb1a97 5838 ;;
5839
921e3f29 5840 amigaos*)
5841 # FIXME: we need at least 68020 code to build shared libraries, but
5842 # adding the `-m68020' flag to GCC prevents building anything better,
5843 # like `-m68040'.
5844 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
d7cb1a97 5845 ;;
5846
921e3f29 5847 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5848 # PIC is the default for these OSes.
d7cb1a97 5849 ;;
5850
921e3f29 5851 mingw* | pw32* | os2*)
5852 # This hack is so that the source file can tell whether it is being
5853 # built for inclusion in a dll (and should export symbols for example).
5854 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
d7cb1a97 5855 ;;
5856
921e3f29 5857 darwin* | rhapsody*)
5858 # PIC is the default on this platform
5859 # Common symbols not allowed in MH_DYLIB files
5860 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
d7cb1a97 5861 ;;
5862
921e3f29 5863 interix3*)
5864 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5865 # Instead, we relocate shared libraries at runtime.
d7cb1a97 5866 ;;
5867
921e3f29 5868 msdosdjgpp*)
5869 # Just because we use GCC doesn't mean we suddenly get shared libraries
5870 # on systems that don't support them.
5871 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5872 enable_shared=no
5873 ;;
d7cb1a97 5874
921e3f29 5875 sysv4*MP*)
5876 if test -d /usr/nec; then
5877 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
d7cb1a97 5878 fi
d7cb1a97 5879 ;;
5880
921e3f29 5881 hpux*)
5882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5883 # not for PA HP-UX.
5884 case $host_cpu in
5885 hppa*64*|ia64*)
5886 # +Z the default
5887 ;;
e0282ee9 5888 *)
921e3f29 5889 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5890 ;;
d7cb1a97 5891 esac
d7cb1a97 5892 ;;
5893
921e3f29 5894 *)
5895 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5896 ;;
5897 esac
5898 else
5899 # PORTME Check for flag to pass linker flags through the system compiler.
5900 case $host_os in
5901 aix*)
5902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5903 if test "$host_cpu" = ia64; then
5904 # AIX 5 now supports IA64 processor
5905 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
d7cb1a97 5906 else
921e3f29 5907 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
d7cb1a97 5908 fi
d7cb1a97 5909 ;;
921e3f29 5910 darwin*)
5911 # PIC is the default on this platform
5912 # Common symbols not allowed in MH_DYLIB files
5913 case $cc_basename in
5914 xlc*)
5915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5916 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5917 ;;
5918 esac
5919 ;;
d7cb1a97 5920
921e3f29 5921 mingw* | pw32* | os2*)
5922 # This hack is so that the source file can tell whether it is being
5923 # built for inclusion in a dll (and should export symbols for example).
5924 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5925 ;;
5926
5927 hpux9* | hpux10* | hpux11*)
5928 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5929 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5930 # not for PA HP-UX.
5931 case $host_cpu in
5932 hppa*64*|ia64*)
5933 # +Z the default
d7cb1a97 5934 ;;
921e3f29 5935 *)
5936 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5937 ;;
5938 esac
5939 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5940 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5941 ;;
5942
5943 irix5* | irix6* | nonstopux*)
5944 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5945 # PIC (with -KPIC) is the default.
5946 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5947 ;;
5948
5949 newsos6)
5950 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5951 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5952 ;;
5953
5954 linux*)
5955 case $cc_basename in
5956 icc* | ecc*)
5957 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5958 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5959 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5960 ;;
5961 pgcc* | pgf77* | pgf90* | pgf95*)
5962 # Portland Group compilers (*not* the Pentium gcc compiler,
5963 # which looks to be a dead project)
5964 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5966 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5967 ;;
5968 ccc*)
5969 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5970 # All Alpha code is PIC.
5971 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
d7cb1a97 5972 ;;
d7cb1a97 5973 esac
d7cb1a97 5974 ;;
5975
921e3f29 5976 osf3* | osf4* | osf5*)
5977 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5978 # All OSF/1 code is PIC.
5979 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
d7cb1a97 5980 ;;
5981
921e3f29 5982 solaris*)
5983 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5984 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5985 case $cc_basename in
5986 f77* | f90* | f95*)
5987 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5988 *)
5989 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5990 esac
d7cb1a97 5991 ;;
5992
921e3f29 5993 sunos4*)
5994 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5995 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5996 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5997 ;;
d7cb1a97 5998
921e3f29 5999 sysv4 | sysv4.2uw2* | sysv4.3*)
6000 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6001 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6002 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6003 ;;
6004
6005 sysv4*MP*)
6006 if test -d /usr/nec ;then
6007 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6008 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
d7cb1a97 6009 fi
d7cb1a97 6010 ;;
6011
921e3f29 6012 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6013 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6014 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6015 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6016 ;;
e0282ee9 6017
921e3f29 6018 unicos*)
6019 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6020 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
d7cb1a97 6021 ;;
6022
6023 uts4*)
921e3f29 6024 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6025 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
d7cb1a97 6026 ;;
6027
6028 *)
921e3f29 6029 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
d7cb1a97 6030 ;;
6031 esac
6032 fi
6033])
921e3f29 6034AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
d7cb1a97 6035
d7cb1a97 6036#
921e3f29 6037# Check to make sure the PIC flag actually works.
d7cb1a97 6038#
921e3f29 6039if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6040 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6041 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6042 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6043 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6044 "" | " "*) ;;
6045 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6046 esac],
6047 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6048 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6049fi
6050case $host_os in
6051 # For platforms which do not support PIC, -DPIC is meaningless:
6052 *djgpp*)
6053 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6054 ;;
6055 *)
6056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6057 ;;
d7cb1a97 6058esac
d7cb1a97 6059
d7cb1a97 6060#
921e3f29 6061# Check to make sure the static flag actually works.
d7cb1a97 6062#
921e3f29 6063wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6064AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6065 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6066 $lt_tmp_static_flag,
6067 [],
6068 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6069])
6070
6071
6072# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6073# ------------------------------------
6074# See if the linker supports building shared libraries.
6075AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6076[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6077ifelse([$1],[CXX],[
6078 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6079 case $host_os in
6080 aix4* | aix5*)
6081 # If we're using GNU nm, then we don't want the "-C" option.
6082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6083 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6084 _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'
6085 else
6086 _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'
6087 fi
6088 ;;
6089 pw32*)
6090 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6091 ;;
6092 cygwin* | mingw*)
6093 _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'
6094 ;;
6095 *)
6096 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6097 ;;
6098 esac
6099],[
6100 runpath_var=
6101 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6102 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6103 _LT_AC_TAGVAR(archive_cmds, $1)=
6104 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6105 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6106 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6107 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6108 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6109 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6111 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6112 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6113 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6114 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6115 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6116 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6117 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6118 _LT_AC_TAGVAR(module_cmds, $1)=
6119 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6120 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6121 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6122 # include_expsyms should be a list of space-separated symbols to be *always*
6123 # included in the symbol list
6124 _LT_AC_TAGVAR(include_expsyms, $1)=
6125 # exclude_expsyms can be an extended regexp of symbols to exclude
6126 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6127 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6128 # as well as any symbol that contains `d'.
6129 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6131 # platforms (ab)use it in PIC code, but their linkers get confused if
6132 # the symbol is explicitly referenced. Since portable code cannot
6133 # rely on this symbol name, it's probably fine to never include it in
6134 # preloaded symbol tables.
6135 extract_expsyms_cmds=
6136 # Just being paranoid about ensuring that cc_basename is set.
6137 _LT_CC_BASENAME([$compiler])
6138 case $host_os in
6139 cygwin* | mingw* | pw32*)
6140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6141 # When not using gcc, we currently assume that we are using
6142 # Microsoft Visual C++.
6143 if test "$GCC" != yes; then
6144 with_gnu_ld=no
6145 fi
6146 ;;
6147 interix*)
6148 # we just hope/assume this is gcc and not c89 (= MSVC++)
6149 with_gnu_ld=yes
6150 ;;
6151 openbsd*)
6152 with_gnu_ld=no
6153 ;;
6154 esac
d7cb1a97 6155
921e3f29 6156 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6157 if test "$with_gnu_ld" = yes; then
6158 # If archive_cmds runs LD, not CC, wlarc should be empty
6159 wlarc='${wl}'
d7cb1a97 6160
921e3f29 6161 # Set some defaults for GNU ld with shared library support. These
6162 # are reset later if shared libraries are not supported. Putting them
6163 # here allows them to be overridden if necessary.
6164 runpath_var=LD_RUN_PATH
6165 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6166 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6167 # ancient GNU ld didn't support --whole-archive et. al.
6168 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6169 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6170 else
6171 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6172 fi
6173 supports_anon_versioning=no
6174 case `$LD -v 2>/dev/null` in
6175 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6178 *\ 2.11.*) ;; # other 2.11 versions
6179 *) supports_anon_versioning=yes ;;
6180 esac
d7cb1a97 6181
921e3f29 6182 # See if GNU ld supports shared libraries.
6183 case $host_os in
6184 aix3* | aix4* | aix5*)
6185 # On AIX/PPC, the GNU linker is very broken
6186 if test "$host_cpu" != ia64; then
6187 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6188 cat <<EOF 1>&2
d7cb1a97 6189
921e3f29 6190*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6191*** to be unable to reliably create shared libraries on AIX.
6192*** Therefore, libtool is disabling shared libraries support. If you
6193*** really care for shared libraries, you may want to modify your PATH
6194*** so that a non-GNU linker is found, and then restart.
d7cb1a97 6195
921e3f29 6196EOF
6197 fi
6198 ;;
d7cb1a97 6199
921e3f29 6200 amigaos*)
6201 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6202 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6203 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
d7cb1a97 6204
921e3f29 6205 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6206 # that the semantics of dynamic libraries on AmigaOS, at least up
6207 # to version 4, is to share data among multiple programs linked
6208 # with the same dynamic library. Since this doesn't match the
6209 # behavior of shared libraries on other platforms, we can't use
6210 # them.
6211 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6212 ;;
d7cb1a97 6213
921e3f29 6214 beos*)
6215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6216 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6217 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6218 # support --undefined. This deserves some investigation. FIXME
6219 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6220 else
6221 _LT_AC_TAGVAR(ld_shlibs, $1)=no
d7cb1a97 6222 fi
921e3f29 6223 ;;
d7cb1a97 6224
921e3f29 6225 cygwin* | mingw* | pw32*)
6226 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6227 # as there is no search path for DLLs.
6228 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6229 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6230 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6231 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6232 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
d7cb1a97 6233
921e3f29 6234 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6235 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6236 # If the export-symbols file already is a .def file (1st line
6237 # is EXPORTS), use it as is; otherwise, prepend...
6238 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6239 cp $export_symbols $output_objdir/$soname.def;
6240 else
6241 echo EXPORTS > $output_objdir/$soname.def;
6242 cat $export_symbols >> $output_objdir/$soname.def;
6243 fi~
6244 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6245 else
6246 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6247 fi
6248 ;;
d7cb1a97 6249
921e3f29 6250 interix3*)
6251 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6252 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6253 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6254 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6256 # Instead, shared libraries are loaded at an image base (0x10000000 by
6257 # default) and relocated if they conflict, which is a slow very memory
6258 # consuming and fragmenting process. To avoid this, we pick a random,
6259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6261 _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'
6262 _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'
6263 ;;
d7cb1a97 6264
921e3f29 6265 linux*)
6266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6267 tmp_addflag=
6268 case $cc_basename,$host_cpu in
6269 pgcc*) # Portland Group C compiler
6270 _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'
6271 tmp_addflag=' $pic_flag'
6272 ;;
6273 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6274 _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'
6275 tmp_addflag=' $pic_flag -Mnomain' ;;
6276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6277 tmp_addflag=' -i_dynamic' ;;
6278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6279 tmp_addflag=' -i_dynamic -nofor_main' ;;
6280 ifc* | ifort*) # Intel Fortran compiler
6281 tmp_addflag=' -nofor_main' ;;
6282 esac
6283 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7cb1a97 6284
921e3f29 6285 if test $supports_anon_versioning = yes; then
6286 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6288 $echo "local: *; };" >> $output_objdir/$libname.ver~
6289 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6290 fi
6291 else
6292 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6293 fi
6294 ;;
d7cb1a97 6295
921e3f29 6296 netbsd*)
6297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6298 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6299 wlarc=
6300 else
6301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6302 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6303 fi
6304 ;;
d7cb1a97 6305
921e3f29 6306 solaris*)
6307 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6308 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6309 cat <<EOF 1>&2
d7cb1a97 6310
921e3f29 6311*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6312*** create shared libraries on Solaris systems. Therefore, libtool
6313*** is disabling shared libraries support. We urge you to upgrade GNU
6314*** binutils to release 2.9.1 or newer. Another option is to modify
6315*** your PATH or compiler configuration so that the native linker is
6316*** used, and then restart.
d7cb1a97 6317
921e3f29 6318EOF
6319 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6321 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6322 else
6323 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6324 fi
6325 ;;
d7cb1a97 6326
921e3f29 6327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6328 case `$LD -v 2>&1` in
6329 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6330 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6331 cat <<_LT_EOF 1>&2
d7cb1a97 6332
921e3f29 6333*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6334*** reliably create shared libraries on SCO systems. Therefore, libtool
6335*** is disabling shared libraries support. We urge you to upgrade GNU
6336*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6337*** your PATH or compiler configuration so that the native linker is
6338*** used, and then restart.
d7cb1a97 6339
921e3f29 6340_LT_EOF
6341 ;;
6342 *)
6343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6344 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6345 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6346 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6347 else
6348 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6349 fi
6350 ;;
6351 esac
6352 ;;
d7cb1a97 6353
921e3f29 6354 sunos4*)
6355 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6356 wlarc=
6357 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6358 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6359 ;;
d7cb1a97 6360
921e3f29 6361 *)
6362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6363 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6364 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6365 else
6366 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6367 fi
6368 ;;
6369 esac
d7cb1a97 6370
921e3f29 6371 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6372 runpath_var=
6373 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6374 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6375 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6376 fi
6377 else
6378 # PORTME fill in a description of your system's linker (not GNU ld)
6379 case $host_os in
6380 aix3*)
6381 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6382 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6383 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6384 # Note: this linker hardcodes the directories in LIBPATH if there
6385 # are no directories specified by -L.
6386 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6388 # Neither direct hardcoding nor static linking is supported with a
6389 # broken collect2.
6390 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6391 fi
6392 ;;
d7cb1a97 6393
921e3f29 6394 aix4* | aix5*)
6395 if test "$host_cpu" = ia64; then
6396 # On IA64, the linker does run time linking by default, so we don't
6397 # have to do anything special.
6398 aix_use_runtimelinking=no
6399 exp_sym_flag='-Bexport'
6400 no_entry_flag=""
6401 else
6402 # If we're using GNU nm, then we don't want the "-C" option.
6403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6405 _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'
6406 else
6407 _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'
6408 fi
6409 aix_use_runtimelinking=no
d7cb1a97 6410
921e3f29 6411 # Test if we are trying to use run time linking or normal
6412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6413 # need to do runtime linking.
6414 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6415 for ld_flag in $LDFLAGS; do
6416 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6417 aix_use_runtimelinking=yes
6418 break
6419 fi
6420 done
6421 ;;
6422 esac
d7cb1a97 6423
921e3f29 6424 exp_sym_flag='-bexport'
6425 no_entry_flag='-bnoentry'
6426 fi
d7cb1a97 6427
921e3f29 6428 # When large executables or shared objects are built, AIX ld can
6429 # have problems creating the table of contents. If linking a library
6430 # or program results in "error TOC overflow" add -mminimal-toc to
6431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7cb1a97 6433
921e3f29 6434 _LT_AC_TAGVAR(archive_cmds, $1)=''
6435 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6436 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6437 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6438
6439 if test "$GCC" = yes; then
6440 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6441 # We only want to do this on AIX 4.2 and lower, the check
6442 # below for broken collect2 doesn't work under 4.3+
6443 collect2name=`${CC} -print-prog-name=collect2`
6444 if test -f "$collect2name" && \
6445 strings "$collect2name" | grep resolve_lib_name >/dev/null
6446 then
6447 # We have reworked collect2
6448 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6449 else
6450 # We have old collect2
6451 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6452 # It fails to find uninstalled libraries when the uninstalled
6453 # path is not listed in the libpath. Setting hardcode_minus_L
6454 # to unsupported forces relinking
6455 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6456 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6457 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6458 fi
6459 ;;
6460 esac
6461 shared_flag='-shared'
6462 if test "$aix_use_runtimelinking" = yes; then
6463 shared_flag="$shared_flag "'${wl}-G'
6464 fi
d7cb1a97 6465 else
921e3f29 6466 # not using gcc
6467 if test "$host_cpu" = ia64; then
6468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6469 # chokes on -Wl,-G. The following line is correct:
6470 shared_flag='-G'
6471 else
6472 if test "$aix_use_runtimelinking" = yes; then
6473 shared_flag='${wl}-G'
6474 else
6475 shared_flag='${wl}-bM:SRE'
6476 fi
6477 fi
d7cb1a97 6478 fi
921e3f29 6479
6480 # It seems that -bexpall does not export symbols beginning with
6481 # underscore (_), so it is better to generate a list of symbols to export.
6482 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6483 if test "$aix_use_runtimelinking" = yes; then
6484 # Warning - without using the other runtime loading flags (-brtl),
6485 # -berok will link without error, but may produce a broken library.
6486 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6487 # Determine the default libpath from the value encoded in an empty executable.
6488 _LT_AC_SYS_LIBPATH_AIX
6489 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6490 _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"
6491 else
6492 if test "$host_cpu" = ia64; then
6493 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6494 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6495 _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"
6496 else
6497 # Determine the default libpath from the value encoded in an empty executable.
6498 _LT_AC_SYS_LIBPATH_AIX
6499 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6500 # Warning - without using the other run time loading flags,
6501 # -berok will link without error, but may produce a broken library.
6502 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6503 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6504 # Exported symbols can be pulled into shared objects from archives
6505 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6506 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6507 # This is similar to how AIX traditionally builds its shared libraries.
6508 _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'
6509 fi
d7cb1a97 6510 fi
921e3f29 6511 ;;
d7cb1a97 6512
921e3f29 6513 amigaos*)
6514 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6515 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6516 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6517 # see comment about different semantics on the GNU ld section
6518 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6519 ;;
d7cb1a97 6520
921e3f29 6521 bsdi[[45]]*)
6522 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6523 ;;
d7cb1a97 6524
921e3f29 6525 cygwin* | mingw* | pw32*)
6526 # When not using gcc, we currently assume that we are using
6527 # Microsoft Visual C++.
6528 # hardcode_libdir_flag_spec is actually meaningless, as there is
6529 # no search path for DLLs.
6530 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6531 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6532 # Tell ltmain to make .lib files, not .a files.
6533 libext=lib
6534 # Tell ltmain to make .dll files, not .so files.
6535 shrext_cmds=".dll"
6536 # FIXME: Setting linknames here is a bad hack.
6537 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6538 # The linker will automatically build a .lib file if we build a DLL.
6539 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6540 # FIXME: Should let the user specify the lib program.
6541 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6542 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6543 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6544 ;;
d7cb1a97 6545
921e3f29 6546 darwin* | rhapsody*)
6547 case $host_os in
6548 rhapsody* | darwin1.[[012]])
6549 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6550 ;;
6551 *) # Darwin 1.3 on
6552 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6553 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6554 else
6555 case ${MACOSX_DEPLOYMENT_TARGET} in
6556 10.[[012]])
6557 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6558 ;;
6559 10.*)
6560 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6561 ;;
6562 esac
6563 fi
6564 ;;
6565 esac
6566 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6567 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6568 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6569 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6570 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6571 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6572 if test "$GCC" = yes ; then
6573 output_verbose_link_cmd='echo'
6574 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6575 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6576 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6577 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6578 _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}'
6579 else
6580 case $cc_basename in
6581 xlc*)
6582 output_verbose_link_cmd='echo'
6583 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6584 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6587 _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}'
6588 ;;
6589 *)
6590 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6591 ;;
6592 esac
6593 fi
6594 ;;
d7cb1a97 6595
921e3f29 6596 dgux*)
6597 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6598 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6599 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6600 ;;
d7cb1a97 6601
921e3f29 6602 freebsd1*)
6603 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6604 ;;
d7cb1a97 6605
921e3f29 6606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6607 # support. Future versions do this automatically, but an explicit c++rt0.o
6608 # does not break anything, and helps significantly (at the cost of a little
6609 # extra space).
6610 freebsd2.2*)
6611 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6612 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6613 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6614 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6615 ;;
d7cb1a97 6616
921e3f29 6617 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6618 freebsd2*)
6619 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6620 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6621 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6622 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6623 ;;
d7cb1a97 6624
921e3f29 6625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6626 freebsd* | kfreebsd*-gnu | dragonfly*)
6627 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6628 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6629 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6630 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6631 ;;
d7cb1a97 6632
921e3f29 6633 hpux9*)
6634 if test "$GCC" = yes; then
6635 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6636 else
6637 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6638 fi
6639 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6640 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6641 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
d7cb1a97 6642
921e3f29 6643 # hardcode_minus_L: Not really in the search PATH,
6644 # but as the default location of the library.
6645 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6646 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6647 ;;
d7cb1a97 6648
921e3f29 6649 hpux10*)
6650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6651 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6652 else
6653 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6654 fi
6655 if test "$with_gnu_ld" = no; then
6656 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6657 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 6658
921e3f29 6659 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6660 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
d7cb1a97 6661
921e3f29 6662 # hardcode_minus_L: Not really in the search PATH,
6663 # but as the default location of the library.
6664 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6665 fi
6666 ;;
d7cb1a97 6667
921e3f29 6668 hpux11*)
6669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6670 case $host_cpu in
6671 hppa*64*)
6672 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6673 ;;
6674 ia64*)
6675 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6676 ;;
6677 *)
6678 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6679 ;;
6680 esac
6681 else
6682 case $host_cpu in
6683 hppa*64*)
6684 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6685 ;;
6686 ia64*)
6687 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6688 ;;
6689 *)
6690 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6691 ;;
6692 esac
6693 fi
6694 if test "$with_gnu_ld" = no; then
6695 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6696 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
d7cb1a97 6697
921e3f29 6698 case $host_cpu in
6699 hppa*64*|ia64*)
6700 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6701 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6702 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6703 ;;
6704 *)
6705 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6706 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
d7cb1a97 6707
921e3f29 6708 # hardcode_minus_L: Not really in the search PATH,
6709 # but as the default location of the library.
6710 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6711 ;;
6712 esac
6713 fi
6714 ;;
d7cb1a97 6715
921e3f29 6716 irix5* | irix6* | nonstopux*)
6717 if test "$GCC" = yes; then
6718 _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'
6719 else
6720 _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'
6721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6722 fi
6723 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6724 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6725 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6726 ;;
d7cb1a97 6727
921e3f29 6728 netbsd*)
6729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6730 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6731 else
6732 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6733 fi
6734 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6735 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6736 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6737 ;;
d7cb1a97 6738
921e3f29 6739 newsos6)
6740 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6741 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6742 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6743 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6744 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6745 ;;
d7cb1a97 6746
921e3f29 6747 openbsd*)
6748 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6749 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6751 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6752 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6753 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6754 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6755 else
6756 case $host_os in
6757 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6758 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6759 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6760 ;;
6761 *)
6762 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6763 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6764 ;;
6765 esac
6766 fi
6767 ;;
d7cb1a97 6768
921e3f29 6769 os2*)
6770 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6771 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6772 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6773 _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'
6774 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6775 ;;
d7cb1a97 6776
921e3f29 6777 osf3*)
6778 if test "$GCC" = yes; then
6779 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6780 _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'
6781 else
6782 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6783 _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'
6784 fi
6785 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6786 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6787 ;;
d7cb1a97 6788
921e3f29 6789 osf4* | osf5*) # as osf3* with the addition of -msym flag
6790 if test "$GCC" = yes; then
6791 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6792 _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'
6793 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6794 else
6795 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6796 _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'
6797 _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~
6798 $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'
d7cb1a97 6799
921e3f29 6800 # Both c and cxx compiler support -rpath directly
6801 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6802 fi
6803 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6804 ;;
d7cb1a97 6805
921e3f29 6806 solaris*)
6807 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6808 if test "$GCC" = yes; then
6809 wlarc='${wl}'
6810 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6811 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6813 else
6814 wlarc=''
6815 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6816 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6818 fi
6819 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6820 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6821 case $host_os in
6822 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6823 *)
6824 # The compiler driver will combine linker options so we
6825 # cannot just pass the convience library names through
6826 # without $wl, iff we do not link with $LD.
6827 # Luckily, gcc supports the same syntax we need for Sun Studio.
6828 # Supported since Solaris 2.6 (maybe 2.5.1?)
6829 case $wlarc in
6830 '')
6831 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6832 *)
6833 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6834 esac ;;
6835 esac
6836 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6837 ;;
d7cb1a97 6838
921e3f29 6839 sunos4*)
6840 if test "x$host_vendor" = xsequent; then
6841 # Use $CC to link under sequent, because it throws in some extra .o
6842 # files that make .init and .fini sections work.
6843 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6844 else
6845 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6846 fi
6847 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6848 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6849 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6850 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6851 ;;
d7cb1a97 6852
921e3f29 6853 sysv4)
6854 case $host_vendor in
6855 sni)
6856 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6857 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6858 ;;
6859 siemens)
6860 ## LD is ld it makes a PLAMLIB
6861 ## CC just makes a GrossModule.
6862 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6863 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6864 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6865 ;;
6866 motorola)
6867 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6868 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6869 ;;
6870 esac
6871 runpath_var='LD_RUN_PATH'
6872 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6873 ;;
d7cb1a97 6874
921e3f29 6875 sysv4.3*)
6876 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6877 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6878 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6879 ;;
d7cb1a97 6880
921e3f29 6881 sysv4*MP*)
6882 if test -d /usr/nec; then
6883 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6884 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6885 runpath_var=LD_RUN_PATH
6886 hardcode_runpath_var=yes
6887 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6888 fi
6889 ;;
d7cb1a97 6890
921e3f29 6891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6892 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6893 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6894 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6895 runpath_var='LD_RUN_PATH'
d7cb1a97 6896
921e3f29 6897 if test "$GCC" = yes; then
6898 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6899 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6900 else
6901 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6902 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6903 fi
6904 ;;
d7cb1a97 6905
921e3f29 6906 sysv5* | sco3.2v5* | sco5v6*)
6907 # Note: We can NOT use -z defs as we might desire, because we do not
6908 # link with -lc, and that would cause any symbols used from libc to
6909 # always be unresolved, which means just about no library would
6910 # ever link correctly. If we're not using GNU ld we use -z text
6911 # though, which does catch some bad symbols but isn't as heavy-handed
6912 # as -z defs.
6913 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6914 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6915 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6916 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6917 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6918 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6919 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6920 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6921 runpath_var='LD_RUN_PATH'
d7cb1a97 6922
921e3f29 6923 if test "$GCC" = yes; then
6924 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6925 _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'
6926 else
6927 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6928 _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'
6929 fi
6930 ;;
d7cb1a97 6931
921e3f29 6932 uts4*)
6933 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6934 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6935 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6936 ;;
d7cb1a97 6937
921e3f29 6938 *)
6939 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6940 ;;
6941 esac
6942 fi
d7cb1a97 6943])
921e3f29 6944AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6945test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
d7cb1a97 6946
d7cb1a97 6947#
921e3f29 6948# Do we need to explicitly link libc?
6949#
6950case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6951x|xyes)
6952 # Assume -lc should be added
6953 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
d7cb1a97 6954
921e3f29 6955 if test "$enable_shared" = yes && test "$GCC" = yes; then
6956 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6957 *'~'*)
6958 # FIXME: we may have to deal with multi-command sequences.
6959 ;;
6960 '$CC '*)
6961 # Test whether the compiler implicitly links with -lc since on some
6962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6963 # to ld, don't add -lc before -lgcc.
6964 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6965 $rm conftest*
6966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
d7cb1a97 6967
921e3f29 6968 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6969 soname=conftest
6970 lib=conftest
6971 libobjs=conftest.$ac_objext
6972 deplibs=
6973 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6974 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6975 compiler_flags=-v
6976 linker_flags=-v
6977 verstring=
6978 output_objdir=.
6979 libname=conftest
6980 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6981 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6982 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6983 then
6984 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6985 else
6986 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6987 fi
6988 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6989 else
6990 cat conftest.err 1>&5
6991 fi
6992 $rm conftest*
6993 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6994 ;;
6995 esac
6996 fi
6997 ;;
6998esac
6999])# AC_LIBTOOL_PROG_LD_SHLIBS
d7cb1a97 7000
d7cb1a97 7001
921e3f29 7002# _LT_AC_FILE_LTDLL_C
7003# -------------------
7004# Be careful that the start marker always follows a newline.
7005AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7006# /* ltdll.c starts here */
7007# #define WIN32_LEAN_AND_MEAN
7008# #include <windows.h>
7009# #undef WIN32_LEAN_AND_MEAN
7010# #include <stdio.h>
d7cb1a97 7011#
921e3f29 7012# #ifndef __CYGWIN__
7013# # ifdef __CYGWIN32__
7014# # define __CYGWIN__ __CYGWIN32__
7015# # endif
7016# #endif
d7cb1a97 7017#
921e3f29 7018# #ifdef __cplusplus
7019# extern "C" {
7020# #endif
7021# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7022# #ifdef __cplusplus
7023# }
7024# #endif
d7cb1a97 7025#
921e3f29 7026# #ifdef __CYGWIN__
7027# #include <cygwin/cygwin_dll.h>
7028# DECLARE_CYGWIN_DLL( DllMain );
7029# #endif
7030# HINSTANCE __hDllInstance_base;
d7cb1a97 7031#
921e3f29 7032# BOOL APIENTRY
7033# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7034# {
7035# __hDllInstance_base = hInst;
7036# return TRUE;
7037# }
7038# /* ltdll.c ends here */
7039])# _LT_AC_FILE_LTDLL_C
d7cb1a97 7040
d7cb1a97 7041
921e3f29 7042# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7043# ---------------------------------
7044AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
d7cb1a97 7045
d7cb1a97 7046
921e3f29 7047# old names
7048AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7049AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7050AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7051AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7052AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7053AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7054AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
d7cb1a97 7055
921e3f29 7056# This is just to silence aclocal about the macro not being used
7057ifelse([AC_DISABLE_FAST_INSTALL])
d7cb1a97 7058
921e3f29 7059AC_DEFUN([LT_AC_PROG_GCJ],
7060[AC_CHECK_TOOL(GCJ, gcj, no)
7061 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7062 AC_SUBST(GCJFLAGS)
7063])
d7cb1a97 7064
921e3f29 7065AC_DEFUN([LT_AC_PROG_RC],
7066[AC_CHECK_TOOL(RC, windres, no)
7067])
d7cb1a97 7068
921e3f29 7069# NOTE: This macro has been submitted for inclusion into #
7070# GNU Autoconf as AC_PROG_SED. When it is available in #
7071# a released version of Autoconf we should remove this #
7072# macro and use it instead. #
7073# LT_AC_PROG_SED
7074# --------------
7075# Check for a fully-functional sed program, that truncates
7076# as few characters as possible. Prefer GNU sed if found.
7077AC_DEFUN([LT_AC_PROG_SED],
7078[AC_MSG_CHECKING([for a sed that does not truncate output])
7079AC_CACHE_VAL(lt_cv_path_SED,
7080[# Loop through the user's path and test for sed and gsed.
7081# Then use that list of sed's as ones to test for truncation.
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for lt_ac_prog in sed gsed; do
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7090 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7091 fi
7092 done
7093 done
7094done
7095lt_ac_max=0
7096lt_ac_count=0
7097# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7098# along with /bin/sed that truncates output.
7099for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7100 test ! -f $lt_ac_sed && continue
7101 cat /dev/null > conftest.in
7102 lt_ac_count=0
7103 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7104 # Check for GNU sed and select it if it is found.
7105 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7106 lt_cv_path_SED=$lt_ac_sed
7107 break
7108 fi
7109 while true; do
7110 cat conftest.in conftest.in >conftest.tmp
7111 mv conftest.tmp conftest.in
7112 cp conftest.in conftest.nl
7113 echo >>conftest.nl
7114 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7115 cmp -s conftest.out conftest.nl || break
7116 # 10000 chars as input seems more than enough
7117 test $lt_ac_count -gt 10 && break
7118 lt_ac_count=`expr $lt_ac_count + 1`
7119 if test $lt_ac_count -gt $lt_ac_max; then
7120 lt_ac_max=$lt_ac_count
7121 lt_cv_path_SED=$lt_ac_sed
7122 fi
7123 done
7124done
7125])
7126SED=$lt_cv_path_SED
7127AC_MSG_RESULT([$SED])
7128])
d7cb1a97 7129
921e3f29 7130# Add --enable-maintainer-mode option to configure.
7131# From Jim Meyering
d7cb1a97 7132
921e3f29 7133# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
d7cb1a97 7134
921e3f29 7135# This program is free software; you can redistribute it and/or modify
7136# it under the terms of the GNU General Public License as published by
7137# the Free Software Foundation; either version 2, or (at your option)
7138# any later version.
d7cb1a97 7139
921e3f29 7140# This program is distributed in the hope that it will be useful,
7141# but WITHOUT ANY WARRANTY; without even the implied warranty of
7142# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7143# GNU General Public License for more details.
d7cb1a97 7144
921e3f29 7145# You should have received a copy of the GNU General Public License
7146# along with this program; if not, write to the Free Software
7147# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7148# 02111-1307, USA.
d7cb1a97 7149
921e3f29 7150# serial 1
d7cb1a97 7151
921e3f29 7152AC_DEFUN([AM_MAINTAINER_MODE],
7153[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7154 dnl maintainer-mode is disabled by default
7155 AC_ARG_ENABLE(maintainer-mode,
7156[ --enable-maintainer-mode enable make rules and dependencies not useful
7157 (and sometimes confusing) to the casual installer],
7158 USE_MAINTAINER_MODE=$enableval,
7159 USE_MAINTAINER_MODE=no)
7160 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7161 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7162 MAINT=$MAINTAINER_MODE_TRUE
7163 AC_SUBST(MAINT)dnl
7164]
7165)
d7cb1a97 7166
921e3f29 7167# isc-posix.m4 serial 2 (gettext-0.11.2)
7168dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
7169dnl This file is free software; the Free Software Foundation
7170dnl gives unlimited permission to copy and/or distribute it,
7171dnl with or without modifications, as long as this notice is preserved.
7172
7173# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
7174
7175# This test replaces the one in autoconf.
7176# Currently this macro should have the same name as the autoconf macro
7177# because gettext's gettext.m4 (distributed in the automake package)
7178# still uses it. Otherwise, the use in gettext.m4 makes autoheader
7179# give these diagnostics:
7180# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
7181# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
7182
7183undefine([AC_ISC_POSIX])
7184
7185AC_DEFUN([AC_ISC_POSIX],
7186 [
7187 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
7188 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
7189 ]
7190)
d7cb1a97 7191