1 # generated automatically by aclocal 1.10 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 m4_if(m4_PACKAGE_VERSION, [2.61],,
15 [m4_fatal([this file was generated for autoconf 2.61.
16 You have another version of autoconf. If you want to use that,
17 you should regenerate the build system entirely.], [63])])
19 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
21 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
23 # This program is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU General Public License as published by
25 # the Free Software Foundation; either version 2 of the License, or
26 # (at your option) any later version.
28 # This program is distributed in the hope that it will be useful, but
29 # WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 # General Public License for more details.
33 # You should have received a copy of the GNU General Public License
34 # along with this program; if not, write to the Free Software
35 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
37 # As a special exception to the GNU General Public License, if you
38 # distribute this file as part of a program that contains a
39 # configuration script generated by Autoconf, you may include it under
40 # the same distribution terms that you use for the rest of that program.
42 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
43 # ----------------------------------
44 AC_DEFUN([PKG_PROG_PKG_CONFIG],
45 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
46 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
47 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
48 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
49 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
51 if test -n "$PKG_CONFIG"; then
52 _pkg_min_version=m4_default([$1], [0.9.0])
53 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
54 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
62 ])# PKG_PROG_PKG_CONFIG
64 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
66 # Check to see whether a particular set of modules exists. Similar
67 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
70 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
71 # this or PKG_CHECK_MODULES is called, or make sure to call
72 # PKG_CHECK_EXISTS manually
73 # --------------------------------------------------------------
74 AC_DEFUN([PKG_CHECK_EXISTS],
75 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
76 if test -n "$PKG_CONFIG" && \
77 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
78 m4_ifval([$2], [$2], [:])
84 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
85 # ---------------------------------------------
86 m4_define([_PKG_CONFIG],
87 [if test -n "$PKG_CONFIG"; then
88 if test -n "$$1"; then
91 PKG_CHECK_EXISTS([$3],
92 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
100 # _PKG_SHORT_ERRORS_SUPPORTED
101 # -----------------------------
102 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
103 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
105 _pkg_short_errors_supported=yes
107 _pkg_short_errors_supported=no
109 ])# _PKG_SHORT_ERRORS_SUPPORTED
112 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
113 # [ACTION-IF-NOT-FOUND])
116 # Note that if there is a possibility the first call to
117 # PKG_CHECK_MODULES might not happen, you should be sure to include an
118 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
121 # --------------------------------------------------------------
122 AC_DEFUN([PKG_CHECK_MODULES],
123 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
124 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
125 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
128 AC_MSG_CHECKING([for $1])
130 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
131 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
133 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
134 and $1[]_LIBS to avoid the need to call pkg-config.
135 See the pkg-config man page for more details.])
137 if test $pkg_failed = yes; then
138 _PKG_SHORT_ERRORS_SUPPORTED
139 if test $_pkg_short_errors_supported = yes; then
140 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
142 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
144 # Put the nasty error message in config.log where it belongs
145 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
147 ifelse([$4], , [AC_MSG_ERROR(dnl
148 [Package requirements ($2) were not met:
152 Consider adjusting the PKG_CONFIG_PATH environment variable if you
153 installed software in a non-standard prefix.
159 elif test $pkg_failed = untried; then
160 ifelse([$4], , [AC_MSG_FAILURE(dnl
161 [The pkg-config script could not be found or is too old. Make sure it
162 is in your PATH or set the PKG_CONFIG environment variable to the full
167 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
170 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
171 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
173 ifelse([$3], , :, [$3])
175 ])# PKG_CHECK_MODULES
178 dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
180 dnl Permission is hereby granted, free of charge, to any person obtaining a
181 dnl copy of this software and associated documentation files (the
182 dnl "Software"), to deal in the Software without restriction, including
183 dnl without limitation the rights to use, copy, modify, merge, publish,
184 dnl distribute, and/or sell copies of the Software, and to permit persons
185 dnl to whom the Software is furnished to do so, provided that the above
186 dnl copyright notice(s) and this permission notice appear in all copies of
187 dnl the Software and that both the above copyright notice(s) and this
188 dnl permission notice appear in supporting documentation.
190 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
191 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
192 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
193 dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
194 dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
195 dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
196 dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
197 dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
198 dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
200 dnl Except as contained in this notice, the name of a copyright holder
201 dnl shall not be used in advertising or otherwise to promote the sale, use
202 dnl or other dealings in this Software without prior written authorization
203 dnl of the copyright holder.
205 # XORG_MACROS_VERSION(required-version)
206 # -------------------------------------
207 # Minimum version: 1.1.0
209 # If you're using a macro added in Version 1.1 or newer, include this in
210 # your configure.ac with the minimum required version, such as:
211 # XORG_MACROS_VERSION(1.1)
213 # To force at least a version with this macro defined, also add:
214 # m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
217 # See the "minimum version" comment for each macro you use to see what
218 # version you require.
219 AC_DEFUN([XORG_MACROS_VERSION],[
220 [XORG_MACROS_needed_version=$1
221 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
222 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
223 AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
224 [XORG_MACROS_version=1.1.5
225 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
226 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
227 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
228 AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
230 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
231 AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
233 AC_MSG_RESULT([yes, $XORG_MACROS_version])
234 ]) # XORG_MACROS_VERSION
238 # Minimum version: 1.0.0
240 # Find cpp program and necessary flags for use in pre-processing text files
241 # such as man pages and config files
242 AC_DEFUN([XORG_PROG_RAWCPP],[
243 AC_REQUIRE([AC_PROG_CPP])
244 AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
245 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
247 # Check for flag to avoid builtin definitions - assumes unix is predefined,
248 # which is not the best choice for supporting other OS'es, but covers most
249 # of the ones we need for now.
250 AC_MSG_CHECKING([if $RAWCPP requires -undef])
251 AC_LANG_CONFTEST([Does cpp redefine unix ?])
252 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
255 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
259 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
262 rm -f conftest.$ac_ext
264 AC_MSG_CHECKING([if $RAWCPP requires -traditional])
265 AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
266 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
269 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
270 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
273 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
276 rm -f conftest.$ac_ext
277 AC_SUBST(RAWCPPFLAGS)
278 ]) # XORG_PROG_RAWCPP
280 # XORG_MANPAGE_SECTIONS()
281 # -----------------------
282 # Minimum version: 1.0.0
284 # Determine which sections man pages go in for the different man page types
285 # on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
286 # Not sure if there's any better way than just hardcoding by OS name.
287 # Override default settings by setting environment variables
289 AC_DEFUN([XORG_MANPAGE_SECTIONS],[
290 AC_REQUIRE([AC_CANONICAL_HOST])
292 if test x$APP_MAN_SUFFIX = x ; then
295 if test x$APP_MAN_DIR = x ; then
296 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
299 if test x$LIB_MAN_SUFFIX = x ; then
302 if test x$LIB_MAN_DIR = x ; then
303 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
306 if test x$FILE_MAN_SUFFIX = x ; then
308 solaris*) FILE_MAN_SUFFIX=4 ;;
309 *) FILE_MAN_SUFFIX=5 ;;
312 if test x$FILE_MAN_DIR = x ; then
313 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
316 if test x$MISC_MAN_SUFFIX = x ; then
318 solaris*) MISC_MAN_SUFFIX=5 ;;
319 *) MISC_MAN_SUFFIX=7 ;;
322 if test x$MISC_MAN_DIR = x ; then
323 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
326 if test x$DRIVER_MAN_SUFFIX = x ; then
328 solaris*) DRIVER_MAN_SUFFIX=7 ;;
329 *) DRIVER_MAN_SUFFIX=4 ;;
332 if test x$DRIVER_MAN_DIR = x ; then
333 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
336 if test x$ADMIN_MAN_SUFFIX = x ; then
338 solaris*) ADMIN_MAN_SUFFIX=1m ;;
339 *) ADMIN_MAN_SUFFIX=8 ;;
342 if test x$ADMIN_MAN_DIR = x ; then
343 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
347 AC_SUBST([APP_MAN_SUFFIX])
348 AC_SUBST([LIB_MAN_SUFFIX])
349 AC_SUBST([FILE_MAN_SUFFIX])
350 AC_SUBST([MISC_MAN_SUFFIX])
351 AC_SUBST([DRIVER_MAN_SUFFIX])
352 AC_SUBST([ADMIN_MAN_SUFFIX])
353 AC_SUBST([APP_MAN_DIR])
354 AC_SUBST([LIB_MAN_DIR])
355 AC_SUBST([FILE_MAN_DIR])
356 AC_SUBST([MISC_MAN_DIR])
357 AC_SUBST([DRIVER_MAN_DIR])
358 AC_SUBST([ADMIN_MAN_DIR])
359 ]) # XORG_MANPAGE_SECTIONS
361 # XORG_CHECK_LINUXDOC
362 # -------------------
363 # Minimum version: 1.0.0
365 # Defines the variable MAKE_TEXT if the necessary tools and
366 # files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
367 # Whether or not the necessary tools and files are found can be checked
368 # with the AM_CONDITIONAL "BUILD_LINUXDOC"
369 AC_DEFUN([XORG_CHECK_LINUXDOC],[
370 XORG_SGML_PATH=$prefix/share/sgml
373 AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
375 AC_PATH_PROG(LINUXDOC, linuxdoc)
376 AC_PATH_PROG(PS2PDF, ps2pdf)
378 AC_MSG_CHECKING([Whether to build documentation])
380 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
386 AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
388 AC_MSG_RESULT([$BUILDDOC])
390 AC_MSG_CHECKING([Whether to build pdf documentation])
392 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
398 AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
400 AC_MSG_RESULT([$BUILDPDFDOC])
402 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
403 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
405 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
411 ]) # XORG_CHECK_LINUXDOC
414 # -------------------
415 # Minimum version: 1.0.0
417 # Checks for the ability to build output formats from SGML DocBook source.
418 # For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
419 # indicates whether the necessary tools and files are found and, if set,
420 # $(MAKE_XXX) blah.sgml will produce blah.xxx.
421 AC_DEFUN([XORG_CHECK_DOCBOOK],[
422 XORG_SGML_PATH=$prefix/share/sgml
429 AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
431 AC_PATH_PROG(DOCBOOKPS, docbook2ps)
432 AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
433 AC_PATH_PROG(DOCBOOKHTML, docbook2html)
434 AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
436 AC_MSG_CHECKING([Whether to build text documentation])
437 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
438 test x$BUILD_TXTDOC != xno; then
441 AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
442 AC_MSG_RESULT([$BUILDTXTDOC])
444 AC_MSG_CHECKING([Whether to build PDF documentation])
445 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
446 test x$BUILD_PDFDOC != xno; then
449 AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
450 AC_MSG_RESULT([$BUILDPDFDOC])
452 AC_MSG_CHECKING([Whether to build PostScript documentation])
453 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
454 test x$BUILD_PSDOC != xno; then
457 AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
458 AC_MSG_RESULT([$BUILDPSDOC])
460 AC_MSG_CHECKING([Whether to build HTML documentation])
461 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
462 test x$BUILD_HTMLDOC != xno; then
465 AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
466 AC_MSG_RESULT([$BUILDHTMLDOC])
468 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
469 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
470 MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
471 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
477 ]) # XORG_CHECK_DOCBOOK
479 # XORG_CHECK_MALLOC_ZERO
480 # ----------------------
481 # Minimum version: 1.0.0
483 # Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
484 # malloc(0) returns NULL. Packages should add one of these cflags to
485 # their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
486 AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
487 AC_ARG_ENABLE(malloc0returnsnull,
488 AC_HELP_STRING([--enable-malloc0returnsnull],
489 [malloc(0) returns NULL (default: auto)]),
490 [MALLOC_ZERO_RETURNS_NULL=$enableval],
491 [MALLOC_ZERO_RETURNS_NULL=auto])
493 AC_MSG_CHECKING([whether malloc(0) returns NULL])
494 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
500 char *m0, *r0, *c0, *p;
505 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
507 [MALLOC_ZERO_RETURNS_NULL=yes],
508 [MALLOC_ZERO_RETURNS_NULL=no])
510 AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
512 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
513 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
514 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
515 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
517 MALLOC_ZERO_CFLAGS=""
518 XMALLOC_ZERO_CFLAGS=""
519 XTMALLOC_ZERO_CFLAGS=""
522 AC_SUBST([MALLOC_ZERO_CFLAGS])
523 AC_SUBST([XMALLOC_ZERO_CFLAGS])
524 AC_SUBST([XTMALLOC_ZERO_CFLAGS])
525 ]) # XORG_CHECK_MALLOC_ZERO
529 # Minimum version: 1.1.0
531 # Sets up flags for source checkers such as lint and sparse if --with-lint
532 # is specified. (Use --with-lint=sparse for sparse.)
533 # Sets $LINT to name of source checker passed with --with-lint (default: lint)
534 # Sets $LINT_FLAGS to flags to pass to source checker
535 # Sets LINT automake conditional if enabled (default: disabled)
537 AC_DEFUN([XORG_WITH_LINT],[
539 # Allow checking code with lint, sparse, etc.
540 AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
541 [Use a lint-style source code checker (default: disabled)])],
542 [use_lint=$withval], [use_lint=no])
543 if test "x$use_lint" = "xyes" ; then
548 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
553 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
562 AM_CONDITIONAL(LINT, [test x$LINT != xno])
566 # XORG_LINT_LIBRARY(LIBNAME)
567 # --------------------------
568 # Minimum version: 1.1.0
570 # Sets up flags for building lint libraries for checking programs that call
571 # functions in the library.
572 # Disabled by default, enable with --enable-lint-library
574 # @LINTLIB@ - name of lint library file to make
575 # MAKE_LINT_LIB - automake conditional
578 AC_DEFUN([XORG_LINT_LIBRARY],[
579 AC_REQUIRE([XORG_WITH_LINT])
580 # Build lint "library" for more indepth checks of programs calling this library
581 AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
582 [Create lint library (default: disabled)])],
583 [make_lint_lib=$enableval], [make_lint_lib=no])
584 if test "x$make_lint_lib" != "xno" ; then
585 if test "x$LINT" = "xno" ; then
586 AC_MSG_ERROR([Cannot make lint library without --with-lint])
588 if test "x$make_lint_lib" = "xyes" ; then
591 LINTLIB=$make_lint_lib
595 AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
597 ]) # XORG_LINT_LIBRARY
599 dnl Copyright 2005 Red Hat, Inc
601 dnl Permission to use, copy, modify, distribute, and sell this software and its
602 dnl documentation for any purpose is hereby granted without fee, provided that
603 dnl the above copyright notice appear in all copies and that both that
604 dnl copyright notice and this permission notice appear in supporting
607 dnl The above copyright notice and this permission notice shall be included
608 dnl in all copies or substantial portions of the Software.
610 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
611 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
612 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
613 dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
614 dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
615 dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
616 dnl OTHER DEALINGS IN THE SOFTWARE.
618 dnl Except as contained in this notice, the name of the copyright holders shall
619 dnl not be used in advertising or otherwise to promote the sale, use or
620 dnl other dealings in this Software without prior written authorization
621 dnl from the copyright holders.
624 # XORG_RELEASE_VERSION
625 # --------------------
626 # Adds --with/without-release-string and changes the PACKAGE and
627 # PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
628 # no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
629 # defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
631 AC_DEFUN([XORG_RELEASE_VERSION],[
632 AC_ARG_WITH(release-version,
633 AC_HELP_STRING([--with-release-version=STRING],
634 [Use release version string in package name]),
635 [RELEASE_VERSION="$withval"],
636 [RELEASE_VERSION=""])
637 if test "x$RELEASE_VERSION" != "x"; then
638 PACKAGE="$PACKAGE-$RELEASE_VERSION"
639 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
640 AC_MSG_NOTICE([Building with package name set to $PACKAGE])
642 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
643 [`echo $PACKAGE_VERSION | cut -d . -f 1`],
644 [Major version of this package])
645 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
646 if test "x$PVM" = "x"; then
649 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
651 [Minor version of this package])
652 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
653 if test "x$PVP" = "x"; then
656 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
658 [Patch version of this package])
661 dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $
663 dnl Copyright 2005 Sun Microsystems, Inc. All rights reserved.
665 dnl Permission to use, copy, modify, distribute, and sell this software and its
666 dnl documentation for any purpose is hereby granted without fee, provided that
667 dnl the above copyright notice appear in all copies and that both that
668 dnl copyright notice and this permission notice appear in supporting
671 dnl The above copyright notice and this permission notice shall be included
672 dnl in all copies or substantial portions of the Software.
674 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
675 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
676 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
677 dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
678 dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
679 dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
680 dnl OTHER DEALINGS IN THE SOFTWARE.
682 dnl Except as contained in this notice, the name of the copyright holders shall
683 dnl not be used in advertising or otherwise to promote the sale, use or
684 dnl other dealings in this Software without prior written authorization
685 dnl from the copyright holders.
690 # Find needed libraries for TCP sockets, and check for IPv6 support
691 AC_DEFUN([XTRANS_TCP_FLAGS],[
692 # SVR4 hides these in libraries other than libc
693 AC_SEARCH_LIBS(socket, [socket])
694 AC_SEARCH_LIBS(gethostbyname, [nsl])
696 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
698 AC_HELP_STRING([--enable-IPv6],[Enable IPv6 support]),
699 [IPV6CONN=$enableval],
700 [AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])])
701 AC_MSG_CHECKING([if IPv6 support should be built])
702 if test "$IPV6CONN" = "yes"; then
703 AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
705 AC_MSG_RESULT($IPV6CONN)
707 # 4.3BSD-Reno added a new member to struct sockaddr_in
708 AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
709 AC_DEFINE([BSD44SOCKETS],1,
710 [Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [
711 #include <sys/types.h>
712 #include <sys/socket.h>
713 #include <netinet/in.h>
715 ]) # XTRANS_TCP_FLAGS
717 # XTRANS_CONNECTION_FLAGS()
718 # -------------------------
719 # Standard checks for which Xtrans transports to use by the Xorg packages
720 # that use Xtrans functions
721 AC_DEFUN([XTRANS_CONNECTION_FLAGS],[
722 AC_REQUIRE([AC_CANONICAL_HOST])
723 AC_REQUIRE([AC_TYPE_SIGNAL])
724 AC_ARG_ENABLE(unix-transport,
725 AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]),
726 [UNIXCONN=$enableval], [UNIXCONN=yes])
727 AC_ARG_ENABLE(tcp-transport,
728 AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]),
729 [TCPCONN=$enableval], [TCPCONN=yes])
730 AC_MSG_CHECKING([if Xtrans should support UNIX socket connections])
731 if test "$UNIXCONN" = "yes"; then
732 AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections])
734 AC_MSG_RESULT($UNIXCONN)
735 AC_MSG_CHECKING([if Xtrans should support TCP socket connections])
736 AC_MSG_RESULT($TCPCONN)
737 if test "$TCPCONN" = "yes"; then
738 AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
742 solaris*|sco*|sysv4*) localdef="yes" ;;
745 AC_ARG_ENABLE(local-transport,
746 AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]),
747 [LOCALCONN=$enableval], [LOCALCONN=$localdef])
748 AC_MSG_CHECKING([if Xtrans should support os-specific local connections])
749 AC_MSG_RESULT($LOCALCONN)
750 if test "$LOCALCONN" = "yes"; then
751 AC_DEFINE(LOCALCONN,1,[Support os-specific local connections])
754 ]) # XTRANS_CONNECTION_FLAGS
757 # XTRANS_SECURE_RPC_FLAGS()
758 # -------------------------
759 # Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS
760 # so that any necessary networking libraries are already found
761 AC_DEFUN([XTRANS_SECURE_RPC_FLAGS],
762 [AC_REQUIRE([XTRANS_TCP_FLAGS])
763 AC_ARG_ENABLE(secure-rpc,
764 AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]),
765 [SECURE_RPC=$enableval], [SECURE_RPC="try"])
767 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
768 FOUND_SECURE_RPC="no"
769 AC_CHECK_FUNCS([authdes_seccreate authdes_create],
770 [FOUND_SECURE_RPC="yes"])
771 if test "x$FOUND_SECURE_RPC" = "xno" ; then
772 if test "x$SECURE_RPC" = "xyes" ; then
773 AC_MSG_ERROR([Secure RPC requested, but required functions not found])
777 dnl FreeBSD keeps getsecretkey in librpcsvc
778 AC_SEARCH_LIBS(getsecretkey, [rpcsvc])
782 AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported])
783 if test "x$SECURE_RPC" = "xyes" ; then
784 AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients])
786 AC_MSG_RESULT($SECURE_RPC)
787 ]) # XTRANS_SECURE_RPC_FLAGS
790 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
792 # This file is free software; the Free Software Foundation
793 # gives unlimited permission to copy and/or distribute it,
794 # with or without modifications, as long as this notice is preserved.
796 # AM_AUTOMAKE_VERSION(VERSION)
797 # ----------------------------
798 # Automake X.Y traces this macro to ensure aclocal.m4 has been
799 # generated from the m4 files accompanying Automake X.Y.
800 # (This private macro should not be called outside this file.)
801 AC_DEFUN([AM_AUTOMAKE_VERSION],
802 [am__api_version='1.10'
803 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
804 dnl require some minimum version. Point them to the right macro.
805 m4_if([$1], [1.10], [],
806 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
809 # _AM_AUTOCONF_VERSION(VERSION)
810 # -----------------------------
811 # aclocal traces this macro to find the Autoconf version.
812 # This is a private macro too. Using m4_define simplifies
813 # the logic in aclocal, which can simply ignore this definition.
814 m4_define([_AM_AUTOCONF_VERSION], [])
816 # AM_SET_CURRENT_AUTOMAKE_VERSION
817 # -------------------------------
818 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
819 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
820 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
821 [AM_AUTOMAKE_VERSION([1.10])dnl
822 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
824 # Figure out how to run the assembler. -*- Autoconf -*-
826 # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
828 # This file is free software; the Free Software Foundation
829 # gives unlimited permission to copy and/or distribute it,
830 # with or without modifications, as long as this notice is preserved.
836 AC_DEFUN([AM_PROG_AS],
837 [# By default we simply use the C compiler to build assembly code.
838 AC_REQUIRE([AC_PROG_CC])
839 test "${CCAS+set}" = set || CCAS=$CC
840 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
841 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
842 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
843 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
846 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
848 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
854 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
855 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
856 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
858 # Of course, Automake must honor this variable whenever it calls a
859 # tool from the auxiliary directory. The problem is that $srcdir (and
860 # therefore $ac_aux_dir as well) can be either absolute or relative,
861 # depending on how configure is run. This is pretty annoying, since
862 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
863 # source directory, any form will work fine, but in subdirectories a
864 # relative path needs to be adjusted first.
866 # $ac_aux_dir/missing
867 # fails when called from a subdirectory if $ac_aux_dir is relative
868 # $top_srcdir/$ac_aux_dir/missing
869 # fails if $ac_aux_dir is absolute,
870 # fails when called from a subdirectory in a VPATH build with
871 # a relative $ac_aux_dir
873 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
874 # are both prefixed by $srcdir. In an in-source build this is usually
875 # harmless because $srcdir is `.', but things will broke when you
876 # start a VPATH build or use an absolute $srcdir.
878 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
879 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
880 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
881 # and then we would define $MISSING as
882 # MISSING="\${SHELL} $am_aux_dir/missing"
883 # This will work as long as MISSING is not called from configure, because
884 # unfortunately $(top_srcdir) has no meaning in configure.
885 # However there are other variables, like CC, which are often used in
886 # configure, and could therefore not use this "fixed" $ac_aux_dir.
888 # Another solution, used here, is to always expand $ac_aux_dir to an
889 # absolute PATH. The drawback is that using absolute paths prevent a
890 # configured tree to be moved without reconfiguration.
892 AC_DEFUN([AM_AUX_DIR_EXPAND],
893 [dnl Rely on autoconf to set up CDPATH properly.
895 # expand $ac_aux_dir to an absolute path
896 am_aux_dir=`cd $ac_aux_dir && pwd`
899 # AM_CONDITIONAL -*- Autoconf -*-
901 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
902 # Free Software Foundation, Inc.
904 # This file is free software; the Free Software Foundation
905 # gives unlimited permission to copy and/or distribute it,
906 # with or without modifications, as long as this notice is preserved.
910 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
911 # -------------------------------------
912 # Define a conditional.
913 AC_DEFUN([AM_CONDITIONAL],
915 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
916 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
917 AC_SUBST([$1_TRUE])dnl
918 AC_SUBST([$1_FALSE])dnl
919 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
920 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
928 AC_CONFIG_COMMANDS_PRE(
929 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
930 AC_MSG_ERROR([[conditional "$1" was never defined.
931 Usually this means the macro was only invoked conditionally.]])
934 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
935 # Free Software Foundation, Inc.
937 # This file is free software; the Free Software Foundation
938 # gives unlimited permission to copy and/or distribute it,
939 # with or without modifications, as long as this notice is preserved.
943 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
944 # written in clear, in which case automake, when reading aclocal.m4,
945 # will think it sees a *use*, and therefore will trigger all it's
946 # C support machinery. Also note that it means that autoscan, seeing
947 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
950 # _AM_DEPENDENCIES(NAME)
951 # ----------------------
952 # See how the compiler implements dependency checking.
953 # NAME is "CC", "CXX", "GCJ", or "OBJC".
954 # We try a few techniques and use that to set a single cache variable.
956 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
957 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
958 # dependency, and given that the user is not expected to run this macro,
959 # just rely on AC_PROG_CC.
960 AC_DEFUN([_AM_DEPENDENCIES],
961 [AC_REQUIRE([AM_SET_DEPDIR])dnl
962 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
963 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
964 AC_REQUIRE([AM_DEP_TRACK])dnl
966 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
967 [$1], CXX, [depcc="$CXX" am_compiler_list=],
968 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
969 [$1], UPC, [depcc="$UPC" am_compiler_list=],
970 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
971 [depcc="$$1" am_compiler_list=])
973 AC_CACHE_CHECK([dependency style of $depcc],
974 [am_cv_$1_dependencies_compiler_type],
975 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
976 # We make a subdir and do the tests there. Otherwise we can end up
977 # making bogus files that we don't know about and never remove. For
978 # instance it was reported that on HP-UX the gcc test will end up
979 # making a dummy file named `D' -- because `-MD' means `put the output
982 # Copy depcomp to subdir because otherwise we won't find it if we're
983 # using a relative directory.
984 cp "$am_depcomp" conftest.dir
986 # We will build objects and dependencies in a subdirectory because
987 # it helps to detect inapplicable dependency modes. For instance
988 # both Tru64's cc and ICC support -MD to output dependencies as a
989 # side effect of compilation, but ICC will put the dependencies in
990 # the current directory while Tru64 will put them in the object
994 am_cv_$1_dependencies_compiler_type=none
995 if test "$am_compiler_list" = ""; then
996 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
998 for depmode in $am_compiler_list; do
999 # Setup a source with many dependencies, because some compilers
1000 # like to wrap large dependency lists on column 80 (with \), and
1001 # we should not choose a depcomp mode which is confused by this.
1003 # We need to recreate these files for each test, as the compiler may
1004 # overwrite some of them when testing with obscure command lines.
1005 # This happens at least with the AIX C compiler.
1007 for i in 1 2 3 4 5 6; do
1008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
1009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1010 # Solaris 8's {/usr,}/bin/sh.
1011 touch sub/conftst$i.h
1013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1017 # after this tag, mechanisms are not by side-effect, so they'll
1018 # only be used when explicitly requested
1019 if test "x$enable_dependency_tracking" = xyes; then
1027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1028 # mode. It turns out that the SunPro C++ compiler does not properly
1029 # handle `-M -o', and we need to detect this.
1030 if depmode=$depmode \
1031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1034 >/dev/null 2>conftest.err &&
1035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1037 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1039 # icc doesn't choke on unknown options, it will just issue warnings
1040 # or remarks (even with -Werror). So we grep stderr for any message
1041 # that says an option was ignored or not supported.
1042 # When given -MP, icc 7.0 and 7.1 complain thusly:
1043 # icc: Command line warning: ignoring option '-M'; no argument required
1044 # The diagnosis changed in icc 8.0:
1045 # icc: Command line remark: option '-MP' not supported
1046 if (grep 'ignoring option' conftest.err ||
1047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1048 am_cv_$1_dependencies_compiler_type=$depmode
1057 am_cv_$1_dependencies_compiler_type=none
1060 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1061 AM_CONDITIONAL([am__fastdep$1], [
1062 test "x$enable_dependency_tracking" != xno \
1063 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1069 # Choose a directory name for dependency files.
1070 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1071 AC_DEFUN([AM_SET_DEPDIR],
1072 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1073 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1079 AC_DEFUN([AM_DEP_TRACK],
1080 [AC_ARG_ENABLE(dependency-tracking,
1081 [ --disable-dependency-tracking speeds up one-time build
1082 --enable-dependency-tracking do not reject slow dependency extractors])
1083 if test "x$enable_dependency_tracking" != xno; then
1084 am_depcomp="$ac_aux_dir/depcomp"
1087 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1088 AC_SUBST([AMDEPBACKSLASH])dnl
1089 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1092 # Generate code to set up dependency tracking. -*- Autoconf -*-
1094 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1095 # Free Software Foundation, Inc.
1097 # This file is free software; the Free Software Foundation
1098 # gives unlimited permission to copy and/or distribute it,
1099 # with or without modifications, as long as this notice is preserved.
1103 # _AM_OUTPUT_DEPENDENCY_COMMANDS
1104 # ------------------------------
1105 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1106 [for mf in $CONFIG_FILES; do
1107 # Strip MF so we end up with the name of the file.
1108 mf=`echo "$mf" | sed -e 's/:.*$//'`
1109 # Check whether this is an Automake generated Makefile or not.
1110 # We used to match only the files named `Makefile.in', but
1111 # some people rename them; so instead we look at the file content.
1112 # Grep'ing the first line is not enough: some people post-process
1113 # each Makefile.in and add a new line on top of each file to say so.
1114 # Grep'ing the whole file is not good either: AIX grep has a line
1115 # limit of 2048, but all sed's we know have understand at least 4000.
1116 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1117 dirpart=`AS_DIRNAME("$mf")`
1121 # Extract the definition of DEPDIR, am__include, and am__quote
1122 # from the Makefile without running `make'.
1123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1124 test -z "$DEPDIR" && continue
1125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1126 test -z "am__include" && continue
1127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1128 # When using ansi2knr, U may be empty or an underscore; expand it
1129 U=`sed -n 's/^U = //p' < "$mf"`
1130 # Find all dependency output files, they are included files with
1131 # $(DEPDIR) in their names. We invoke sed twice because it is the
1132 # simplest approach to changing $(DEPDIR) to its actual value in the
1134 for file in `sed -n "
1135 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1136 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1137 # Make sure the directory exists.
1138 test -f "$dirpart/$file" && continue
1139 fdir=`AS_DIRNAME(["$file"])`
1140 AS_MKDIR_P([$dirpart/$fdir])
1141 # echo "creating $dirpart/$file"
1142 echo '# dummy' > "$dirpart/$file"
1145 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1148 # AM_OUTPUT_DEPENDENCY_COMMANDS
1149 # -----------------------------
1150 # This macro should only be invoked once -- use via AC_REQUIRE.
1152 # This code is only required when automatic dependency tracking
1153 # is enabled. FIXME. This creates each `.P' file that we will
1154 # need in order to bootstrap the dependency handling code.
1155 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1156 [AC_CONFIG_COMMANDS([depfiles],
1157 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1158 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1161 # Do all the work for Automake. -*- Autoconf -*-
1163 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1164 # 2005, 2006 Free Software Foundation, Inc.
1166 # This file is free software; the Free Software Foundation
1167 # gives unlimited permission to copy and/or distribute it,
1168 # with or without modifications, as long as this notice is preserved.
1172 # This macro actually does too much. Some checks are only needed if
1173 # your package does certain things. But this isn't really a big deal.
1175 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1176 # AM_INIT_AUTOMAKE([OPTIONS])
1177 # -----------------------------------------------
1178 # The call with PACKAGE and VERSION arguments is the old style
1179 # call (pre autoconf-2.50), which is being phased out. PACKAGE
1180 # and VERSION should now be passed to AC_INIT and removed from
1181 # the call to AM_INIT_AUTOMAKE.
1182 # We support both call styles for the transition. After
1183 # the next Automake release, Autoconf can make the AC_INIT
1184 # arguments mandatory, and then we can depend on a new Autoconf
1185 # release and drop the old call support.
1186 AC_DEFUN([AM_INIT_AUTOMAKE],
1187 [AC_PREREQ([2.60])dnl
1188 dnl Autoconf wants to disallow AM_ names. We explicitly allow
1189 dnl the ones we care about.
1190 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1191 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1192 AC_REQUIRE([AC_PROG_INSTALL])dnl
1193 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1194 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1195 # is not polluted with repeated "-I."
1196 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1197 # test to see if srcdir already configured
1198 if test -f $srcdir/config.status; then
1199 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1203 # test whether we have cygpath
1204 if test -z "$CYGPATH_W"; then
1205 if (cygpath --version) >/dev/null 2>/dev/null; then
1206 CYGPATH_W='cygpath -w'
1211 AC_SUBST([CYGPATH_W])
1213 # Define the identity of the package.
1214 dnl Distinguish between old-style and new-style calls.
1216 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1217 AC_SUBST([PACKAGE], [$1])dnl
1218 AC_SUBST([VERSION], [$2])],
1219 [_AM_SET_OPTIONS([$1])dnl
1220 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1221 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1222 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1223 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1224 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1226 _AM_IF_OPTION([no-define],,
1227 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1228 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1230 # Some tools Automake needs.
1231 AC_REQUIRE([AM_SANITY_CHECK])dnl
1232 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1233 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1234 AM_MISSING_PROG(AUTOCONF, autoconf)
1235 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1236 AM_MISSING_PROG(AUTOHEADER, autoheader)
1237 AM_MISSING_PROG(MAKEINFO, makeinfo)
1239 AM_PROG_INSTALL_STRIP
1240 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1241 # We need awk for the "check" target. The system "awk" is bad on
1243 AC_REQUIRE([AC_PROG_AWK])dnl
1244 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1245 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1246 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1247 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1248 [_AM_PROG_TAR([v7])])])
1249 _AM_IF_OPTION([no-dependencies],,
1250 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1251 [_AM_DEPENDENCIES(CC)],
1252 [define([AC_PROG_CC],
1253 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1254 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1255 [_AM_DEPENDENCIES(CXX)],
1256 [define([AC_PROG_CXX],
1257 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1258 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1259 [_AM_DEPENDENCIES(OBJC)],
1260 [define([AC_PROG_OBJC],
1261 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1266 # When config.status generates a header, we must update the stamp-h file.
1267 # This file resides in the same directory as the config header
1268 # that is generated. The stamp files are numbered to have different names.
1270 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1271 # loop where config.status creates the headers, so we can generate
1272 # our stamp files there.
1273 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1274 [# Compute $1's index in $config_headers.
1276 for _am_header in $config_headers :; do
1281 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1284 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1286 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1288 # This file is free software; the Free Software Foundation
1289 # gives unlimited permission to copy and/or distribute it,
1290 # with or without modifications, as long as this notice is preserved.
1292 # AM_PROG_INSTALL_SH
1293 # ------------------
1294 # Define $install_sh.
1295 AC_DEFUN([AM_PROG_INSTALL_SH],
1296 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1297 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1298 AC_SUBST(install_sh)])
1300 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1302 # This file is free software; the Free Software Foundation
1303 # gives unlimited permission to copy and/or distribute it,
1304 # with or without modifications, as long as this notice is preserved.
1308 # Check whether the underlying file-system supports filenames
1309 # with a leading dot. For instance MS-DOS doesn't.
1310 AC_DEFUN([AM_SET_LEADING_DOT],
1311 [rm -rf .tst 2>/dev/null
1312 mkdir .tst 2>/dev/null
1313 if test -d .tst; then
1318 rmdir .tst 2>/dev/null
1319 AC_SUBST([am__leading_dot])])
1321 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1323 # serial 48 AC_PROG_LIBTOOL
1326 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1327 # -----------------------------------------------------------
1328 # If this macro is not defined by Autoconf, define it here.
1329 m4_ifdef([AC_PROVIDE_IFELSE],
1331 [m4_define([AC_PROVIDE_IFELSE],
1332 [m4_ifdef([AC_PROVIDE_$1],
1338 AC_DEFUN([AC_PROG_LIBTOOL],
1339 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1340 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1341 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1342 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1344 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1346 dnl And a similar setup for Fortran 77 support
1347 AC_PROVIDE_IFELSE([AC_PROG_F77],
1349 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1352 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1353 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1354 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1355 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1357 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1359 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1361 [ifdef([AC_PROG_GCJ],
1362 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1363 ifdef([A][M_PROG_GCJ],
1364 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1365 ifdef([LT_AC_PROG_GCJ],
1366 [define([LT_AC_PROG_GCJ],
1367 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1368 ])])# AC_PROG_LIBTOOL
1373 AC_DEFUN([_AC_PROG_LIBTOOL],
1374 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1375 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1376 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1377 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1379 # This can be used to rebuild libtool when needed
1380 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1382 # Always use our own libtool.
1383 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1384 AC_SUBST(LIBTOOL)dnl
1386 # Prevent multiple expansion
1387 define([AC_PROG_LIBTOOL], [])
1388 ])# _AC_PROG_LIBTOOL
1393 AC_DEFUN([AC_LIBTOOL_SETUP],
1395 AC_REQUIRE([AC_ENABLE_SHARED])dnl
1396 AC_REQUIRE([AC_ENABLE_STATIC])dnl
1397 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1398 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1399 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1400 AC_REQUIRE([AC_PROG_CC])dnl
1401 AC_REQUIRE([AC_PROG_LD])dnl
1402 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1403 AC_REQUIRE([AC_PROG_NM])dnl
1405 AC_REQUIRE([AC_PROG_LN_S])dnl
1406 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1407 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1408 AC_REQUIRE([AC_OBJEXT])dnl
1409 AC_REQUIRE([AC_EXEEXT])dnl
1412 AC_LIBTOOL_SYS_MAX_CMD_LEN
1413 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1416 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1417 _LT_AC_PROG_ECHO_BACKSLASH
1421 # AIX sometimes has problems with the GCC collect2 program. For some
1422 # reason, if we set the COLLECT_NAMES environment variable, the problems
1423 # vanish in a puff of smoke.
1424 if test "X${COLLECT_NAMES+set}" != Xset; then
1426 export COLLECT_NAMES
1431 # Sed substitution that helps us do robust quoting. It backslashifies
1432 # metacharacters that are still active within double-quoted strings.
1433 Xsed='sed -e 1s/^X//'
1434 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1436 # Same as above, but do not quote variable references.
1437 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1439 # Sed substitution to delay expansion of an escaped shell variable in a
1440 # double_quote_subst'ed string.
1441 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1443 # Sed substitution to avoid accidental globbing in evaled expressions
1444 no_glob_subst='s/\*/\\\*/g'
1450 default_ofile=libtool
1451 can_build_shared=yes
1453 # All known linkers require a `.a' archive for static linking (except MSVC,
1454 # which needs '.lib').
1456 ltmain="$ac_aux_dir/ltmain.sh"
1457 ofile="$default_ofile"
1458 with_gnu_ld="$lt_cv_prog_gnu_ld"
1460 AC_CHECK_TOOL(AR, ar, false)
1461 AC_CHECK_TOOL(RANLIB, ranlib, :)
1462 AC_CHECK_TOOL(STRIP, strip, :)
1465 old_CFLAGS="$CFLAGS"
1467 # Set sane defaults for various variables
1468 test -z "$AR" && AR=ar
1469 test -z "$AR_FLAGS" && AR_FLAGS=cru
1470 test -z "$AS" && AS=as
1471 test -z "$CC" && CC=cc
1472 test -z "$LTCC" && LTCC=$CC
1473 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1474 test -z "$DLLTOOL" && DLLTOOL=dlltool
1475 test -z "$LD" && LD=ld
1476 test -z "$LN_S" && LN_S="ln -s"
1477 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1478 test -z "$NM" && NM=nm
1479 test -z "$SED" && SED=sed
1480 test -z "$OBJDUMP" && OBJDUMP=objdump
1481 test -z "$RANLIB" && RANLIB=:
1482 test -z "$STRIP" && STRIP=:
1483 test -z "$ac_objext" && ac_objext=o
1485 # Determine commands to create old-style static archives.
1486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1487 old_postinstall_cmds='chmod 644 $oldlib'
1488 old_postuninstall_cmds=
1490 if test -n "$RANLIB"; then
1493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1502 _LT_CC_BASENAME([$compiler])
1504 # Only perform the check for file, if the check method requires it
1505 case $deplibs_check_method in
1507 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1513 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1514 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1515 enable_win32_dll=yes, enable_win32_dll=no)
1517 AC_ARG_ENABLE([libtool-lock],
1518 [AC_HELP_STRING([--disable-libtool-lock],
1519 [avoid locking (might break parallel builds)])])
1520 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1523 [AC_HELP_STRING([--with-pic],
1524 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1525 [pic_mode="$withval"],
1527 test -z "$pic_mode" && pic_mode=default
1529 # Use C for the default configuration in the libtool script
1531 AC_LIBTOOL_LANG_C_CONFIG
1533 ])# AC_LIBTOOL_SETUP
1536 # _LT_AC_SYS_COMPILER
1537 # -------------------
1538 AC_DEFUN([_LT_AC_SYS_COMPILER],
1539 [AC_REQUIRE([AC_PROG_CC])dnl
1541 # If no C compiler was specified, use CC.
1544 # If no C compiler flags were specified, use CFLAGS.
1545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1547 # Allow CC to be a program name with arguments.
1549 ])# _LT_AC_SYS_COMPILER
1552 # _LT_CC_BASENAME(CC)
1553 # -------------------
1554 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1555 AC_DEFUN([_LT_CC_BASENAME],
1556 [for cc_temp in $1""; do
1558 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1559 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1564 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1568 # _LT_COMPILER_BOILERPLATE
1569 # ------------------------
1570 # Check for compiler boilerplate output or warnings with
1571 # the simple compiler test code.
1572 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1573 [ac_outfile=conftest.$ac_objext
1574 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1576 _lt_compiler_boilerplate=`cat conftest.err`
1578 ])# _LT_COMPILER_BOILERPLATE
1581 # _LT_LINKER_BOILERPLATE
1582 # ----------------------
1583 # Check for linker boilerplate output or warnings with
1584 # the simple link test code.
1585 AC_DEFUN([_LT_LINKER_BOILERPLATE],
1586 [ac_outfile=conftest.$ac_objext
1587 printf "$lt_simple_link_test_code" >conftest.$ac_ext
1588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1589 _lt_linker_boilerplate=`cat conftest.err`
1591 ])# _LT_LINKER_BOILERPLATE
1594 # _LT_AC_SYS_LIBPATH_AIX
1595 # ----------------------
1596 # Links a minimal program and checks the executable
1597 # for the system default hardcoded library path. In most cases,
1598 # this is /usr/lib:/lib, but when the MPI compilers are used
1599 # the location of the communication and MPI libs are included too.
1600 # If we don't find anything, use the default library path according
1601 # to the aix ld manual.
1602 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1603 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1606 # Check for a 64-bit object if we didn't find anything.
1607 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1610 ])# _LT_AC_SYS_LIBPATH_AIX
1613 # _LT_AC_SHELL_INIT(ARG)
1614 # ----------------------
1615 AC_DEFUN([_LT_AC_SHELL_INIT],
1616 [ifdef([AC_DIVERSION_NOTICE],
1617 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1618 [AC_DIVERT_PUSH(NOTICE)])
1621 ])# _LT_AC_SHELL_INIT
1624 # _LT_AC_PROG_ECHO_BACKSLASH
1625 # --------------------------
1626 # Add some code to the start of the generated configure script which
1627 # will find an echo command which doesn't interpret backslashes.
1628 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1629 [_LT_AC_SHELL_INIT([
1630 # Check that we are running under the correct shell.
1631 SHELL=${CONFIG_SHELL-/bin/sh}
1635 # Remove one level of quotation (which was required for Make).
1636 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1641 if test "X[$]1" = X--no-reexec; then
1642 # Discard the --no-reexec flag, and continue.
1644 elif test "X[$]1" = X--fallback-echo; then
1645 # Avoid inline document here, it may be left over
1647 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1648 # Yippee, $echo works!
1651 # Restart under the correct shell.
1652 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1655 if test "X[$]1" = X--fallback-echo; then
1656 # used as fallback echo
1664 # The HP-UX ksh and POSIX shell print the target directory to stdout
1666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1668 if test -z "$ECHO"; then
1669 if test "X${echo_test_string+set}" != Xset; then
1670 # find a string as large as possible, as long as the shell can cope with it
1671 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1672 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1673 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1674 echo_test_string=`eval $cmd` &&
1675 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1682 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1683 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1684 test "X$echo_testing_string" = "X$echo_test_string"; then
1687 # The Solaris, AIX, and Digital Unix default echo programs unquote
1688 # backslashes. This makes it impossible to quote backslashes using
1689 # echo "$something" | sed 's/\\/\\\\/g'
1691 # So, first we look for a working echo in the user's PATH.
1693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1694 for dir in $PATH /usr/ucb; do
1696 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1697 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1698 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1699 test "X$echo_testing_string" = "X$echo_test_string"; then
1706 if test "X$echo" = Xecho; then
1707 # We didn't find a better echo, so look for alternatives.
1708 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1709 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1710 test "X$echo_testing_string" = "X$echo_test_string"; then
1711 # This shell has a builtin print -r that does the trick.
1713 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1714 test "X$CONFIG_SHELL" != X/bin/ksh; then
1715 # If we have ksh, try running configure again with it.
1716 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1717 export ORIGINAL_CONFIG_SHELL
1718 CONFIG_SHELL=/bin/ksh
1720 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1724 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1725 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1726 test "X$echo_testing_string" = "X$echo_test_string"; then
1727 # Cool, printf works
1729 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1730 test "X$echo_testing_string" = 'X\t' &&
1731 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1732 test "X$echo_testing_string" = "X$echo_test_string"; then
1733 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1735 SHELL="$CONFIG_SHELL"
1737 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1738 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1739 test "X$echo_testing_string" = 'X\t' &&
1740 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1741 test "X$echo_testing_string" = "X$echo_test_string"; then
1742 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1744 # maybe with a smaller string...
1747 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1748 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1755 if test "$prev" != 'sed 50q "[$]0"'; then
1756 echo_test_string=`eval $prev`
1757 export echo_test_string
1758 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1760 # Oops. We lost completely, so just stick with echo.
1769 # Copy echo and quote the copy suitably for passing to libtool from
1770 # the Makefile, instead of quoting the original, which is used later.
1772 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1773 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1777 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1782 AC_DEFUN([_LT_AC_LOCK],
1783 [AC_ARG_ENABLE([libtool-lock],
1784 [AC_HELP_STRING([--disable-libtool-lock],
1785 [avoid locking (might break parallel builds)])])
1786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1788 # Some flags need to be propagated to the compiler or linker for good
1792 # Find out which ABI we are using.
1793 echo 'int i;' > conftest.$ac_ext
1794 if AC_TRY_EVAL(ac_compile); then
1795 case `/usr/bin/file conftest.$ac_objext` in
1807 # Find out which ABI we are using.
1808 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1809 if AC_TRY_EVAL(ac_compile); then
1810 if test "$lt_cv_prog_gnu_ld" = yes; then
1811 case `/usr/bin/file conftest.$ac_objext` in
1813 LD="${LD-ld} -melf32bsmip"
1816 LD="${LD-ld} -melf32bmipn32"
1819 LD="${LD-ld} -melf64bmip"
1823 case `/usr/bin/file conftest.$ac_objext` in
1839 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1840 # Find out which ABI we are using.
1841 echo 'int i;' > conftest.$ac_ext
1842 if AC_TRY_EVAL(ac_compile); then
1843 case `/usr/bin/file conftest.o` in
1847 LD="${LD-ld} -m elf_i386"
1849 ppc64-*linux*|powerpc64-*linux*)
1850 LD="${LD-ld} -m elf32ppclinux"
1853 LD="${LD-ld} -m elf_s390"
1856 LD="${LD-ld} -m elf32_sparc"
1863 LD="${LD-ld} -m elf_x86_64"
1865 ppc*-*linux*|powerpc*-*linux*)
1866 LD="${LD-ld} -m elf64ppc"
1869 LD="${LD-ld} -m elf64_s390"
1872 LD="${LD-ld} -m elf64_sparc"
1882 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1883 SAVE_CFLAGS="$CFLAGS"
1884 CFLAGS="$CFLAGS -belf"
1885 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1887 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1891 CFLAGS="$SAVE_CFLAGS"
1895 # Find out which ABI we are using.
1896 echo 'int i;' > conftest.$ac_ext
1897 if AC_TRY_EVAL(ac_compile); then
1898 case `/usr/bin/file conftest.o` in
1900 case $lt_cv_prog_gnu_ld in
1901 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1902 *) LD="${LD-ld} -64" ;;
1910 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1911 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1912 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1913 AC_CHECK_TOOL(AS, as, false)
1914 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1919 need_locks="$enable_libtool_lock"
1924 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1925 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1926 # ----------------------------------------------------------------
1927 # Check whether the given compiler option works
1928 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1929 [AC_REQUIRE([LT_AC_PROG_SED])
1930 AC_CACHE_CHECK([$1], [$2],
1932 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1934 lt_compiler_flag="$3"
1935 # Insert the option either (1) after the last *FLAGS variable, or
1936 # (2) before a word containing "conftest.", or (3) at the end.
1937 # Note that $ac_compile itself does not contain backslashes and begins
1938 # with a dollar sign (not a hyphen), so the echo should work correctly.
1939 # The option is referenced via a variable to avoid confusing sed.
1940 lt_compile=`echo "$ac_compile" | $SED \
1941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1942 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1943 -e 's:$: $lt_compiler_flag:'`
1944 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1945 (eval "$lt_compile" 2>conftest.err)
1947 cat conftest.err >&AS_MESSAGE_LOG_FD
1948 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1949 if (exit $ac_status) && test -s "$ac_outfile"; then
1950 # The compiler can only warn and ignore the option if not recognized
1951 # So say no if there are warnings other than the usual output.
1952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1961 if test x"[$]$2" = xyes; then
1962 ifelse([$5], , :, [$5])
1964 ifelse([$6], , :, [$6])
1966 ])# AC_LIBTOOL_COMPILER_OPTION
1969 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1970 # [ACTION-SUCCESS], [ACTION-FAILURE])
1971 # ------------------------------------------------------------
1972 # Check whether the given compiler option works
1973 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1974 [AC_CACHE_CHECK([$1], [$2],
1976 save_LDFLAGS="$LDFLAGS"
1977 LDFLAGS="$LDFLAGS $3"
1978 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1980 # The linker can only warn and ignore the option if not recognized
1981 # So say no if there are warnings
1982 if test -s conftest.err; then
1983 # Append any errors to the config.log.
1984 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1985 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1987 if diff conftest.exp conftest.er2 >/dev/null; then
1995 LDFLAGS="$save_LDFLAGS"
1998 if test x"[$]$2" = xyes; then
1999 ifelse([$4], , :, [$4])
2001 ifelse([$5], , :, [$5])
2003 ])# AC_LIBTOOL_LINKER_OPTION
2006 # AC_LIBTOOL_SYS_MAX_CMD_LEN
2007 # --------------------------
2008 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2009 [# find the maximum length of command line arguments
2010 AC_MSG_CHECKING([the maximum length of command line arguments])
2011 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2017 # On DJGPP, this test can blow up pretty badly due to problems in libc
2018 # (any single argument exceeding 2000 bytes causes a buffer overrun
2019 # during glob expansion). Even if it were fixed, the result of this
2020 # check would be larger than it should be.
2021 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2025 # Under GNU Hurd, this test is not required because there is
2026 # no limit to the length of command line arguments.
2027 # Libtool will interpret -1 as no limit whatsoever
2028 lt_cv_sys_max_cmd_len=-1;
2032 # On Win9x/ME, this test blows up -- it succeeds, but takes
2033 # about 5 minutes as the teststring grows exponentially.
2034 # Worse, since 9x/ME are not pre-emptively multitasking,
2035 # you end up with a "frozen" computer, even though with patience
2036 # the test eventually succeeds (with a max line length of 256k).
2037 # Instead, let's just punt: use the minimum linelength reported by
2038 # all of the supported platforms: 8192 (on NT/2K/XP).
2039 lt_cv_sys_max_cmd_len=8192;
2043 # On AmigaOS with pdksh, this test takes hours, literally.
2044 # So we just punt and use a minimum line length of 8192.
2045 lt_cv_sys_max_cmd_len=8192;
2048 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2049 # This has been around since 386BSD, at least. Likely further.
2050 if test -x /sbin/sysctl; then
2051 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2052 elif test -x /usr/sbin/sysctl; then
2053 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2055 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2057 # And add a safety zone
2058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2063 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2064 lt_cv_sys_max_cmd_len=196608
2068 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2069 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2070 # nice to cause kernel panics so lets avoid the loop below.
2071 # First set a reasonable default.
2072 lt_cv_sys_max_cmd_len=16384
2074 if test -x /sbin/sysconfig; then
2075 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2076 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2081 lt_cv_sys_max_cmd_len=102400
2083 sysv5* | sco5v6* | sysv4.2uw2*)
2084 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2085 if test -n "$kargmax"; then
2086 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2088 lt_cv_sys_max_cmd_len=32768
2092 # If test is not a shell built-in, we'll probably end up computing a
2093 # maximum length that is only half of the actual maximum length, but
2095 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2096 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2097 = "XX$teststring") >/dev/null 2>&1 &&
2098 new_result=`expr "X$teststring" : ".*" 2>&1` &&
2099 lt_cv_sys_max_cmd_len=$new_result &&
2100 test $i != 17 # 1/2 MB should be enough
2103 teststring=$teststring$teststring
2106 # Add a significant safety factor because C++ compilers can tack on massive
2107 # amounts of additional arguments before passing them to the linker.
2108 # It appears as though 1/2 is a usable value.
2109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2113 if test -n $lt_cv_sys_max_cmd_len ; then
2114 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2118 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2121 # _LT_AC_CHECK_DLFCN
2122 # ------------------
2123 AC_DEFUN([_LT_AC_CHECK_DLFCN],
2124 [AC_CHECK_HEADERS(dlfcn.h)dnl
2125 ])# _LT_AC_CHECK_DLFCN
2128 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2129 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2130 # ---------------------------------------------------------------------
2131 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2132 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2133 if test "$cross_compiling" = yes; then :
2136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2137 lt_status=$lt_dlunknown
2138 cat > conftest.$ac_ext <<EOF
2139 [#line __oline__ "configure"
2140 #include "confdefs.h"
2149 # define LT_DLGLOBAL RTLD_GLOBAL
2152 # define LT_DLGLOBAL DL_GLOBAL
2154 # define LT_DLGLOBAL 0
2158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2159 find out it does not work in some platform. */
2160 #ifndef LT_DLLAZY_OR_NOW
2162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2165 # define LT_DLLAZY_OR_NOW DL_LAZY
2168 # define LT_DLLAZY_OR_NOW RTLD_NOW
2171 # define LT_DLLAZY_OR_NOW DL_NOW
2173 # define LT_DLLAZY_OR_NOW 0
2181 extern "C" void exit (int);
2184 void fnord() { int i=42;}
2187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2188 int status = $lt_dlunknown;
2192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2194 /* dlclose (self); */
2202 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2203 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2206 x$lt_dlno_uscore) $1 ;;
2207 x$lt_dlneed_uscore) $2 ;;
2208 x$lt_dlunknown|x*) $3 ;;
2211 # compilation failed
2216 ])# _LT_AC_TRY_DLOPEN_SELF
2219 # AC_LIBTOOL_DLOPEN_SELF
2220 # ----------------------
2221 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2222 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2223 if test "x$enable_dlopen" != xyes; then
2224 enable_dlopen=unknown
2225 enable_dlopen_self=unknown
2226 enable_dlopen_self_static=unknown
2233 lt_cv_dlopen="load_add_on"
2235 lt_cv_dlopen_self=yes
2239 lt_cv_dlopen="LoadLibrary"
2244 lt_cv_dlopen="dlopen"
2249 # if libdl is installed we need to link against it
2250 AC_CHECK_LIB([dl], [dlopen],
2251 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2254 lt_cv_dlopen_self=yes
2259 AC_CHECK_FUNC([shl_load],
2260 [lt_cv_dlopen="shl_load"],
2261 [AC_CHECK_LIB([dld], [shl_load],
2262 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2263 [AC_CHECK_FUNC([dlopen],
2264 [lt_cv_dlopen="dlopen"],
2265 [AC_CHECK_LIB([dl], [dlopen],
2266 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2267 [AC_CHECK_LIB([svld], [dlopen],
2268 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2269 [AC_CHECK_LIB([dld], [dld_link],
2270 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2279 if test "x$lt_cv_dlopen" != xno; then
2285 case $lt_cv_dlopen in
2287 save_CPPFLAGS="$CPPFLAGS"
2288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2290 save_LDFLAGS="$LDFLAGS"
2291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2294 LIBS="$lt_cv_dlopen_libs $LIBS"
2296 AC_CACHE_CHECK([whether a program can dlopen itself],
2297 lt_cv_dlopen_self, [dnl
2298 _LT_AC_TRY_DLOPEN_SELF(
2299 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2300 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2303 if test "x$lt_cv_dlopen_self" = xyes; then
2304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2305 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2306 lt_cv_dlopen_self_static, [dnl
2307 _LT_AC_TRY_DLOPEN_SELF(
2308 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2309 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2313 CPPFLAGS="$save_CPPFLAGS"
2314 LDFLAGS="$save_LDFLAGS"
2319 case $lt_cv_dlopen_self in
2320 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2321 *) enable_dlopen_self=unknown ;;
2324 case $lt_cv_dlopen_self_static in
2325 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2326 *) enable_dlopen_self_static=unknown ;;
2329 ])# AC_LIBTOOL_DLOPEN_SELF
2332 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2333 # ---------------------------------
2334 # Check to see if options -c and -o are simultaneously supported by compiler
2335 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2336 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2337 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2338 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2339 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2340 $rm -r conftest 2>/dev/null
2344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2346 lt_compiler_flag="-o out/conftest2.$ac_objext"
2347 # Insert the option either (1) after the last *FLAGS variable, or
2348 # (2) before a word containing "conftest.", or (3) at the end.
2349 # Note that $ac_compile itself does not contain backslashes and begins
2350 # with a dollar sign (not a hyphen), so the echo should work correctly.
2351 lt_compile=`echo "$ac_compile" | $SED \
2352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2353 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2354 -e 's:$: $lt_compiler_flag:'`
2355 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2356 (eval "$lt_compile" 2>out/conftest.err)
2358 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2359 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2362 # The compiler can only warn and ignore the option if not recognized
2363 # So say no if there are warnings
2364 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2367 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2370 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2372 # SGI C++ compiler will create directory out/ii_files/ for
2373 # template instantiation
2374 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2375 $rm out/* && rmdir out
2380 ])# AC_LIBTOOL_PROG_CC_C_O
2383 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2384 # -----------------------------------------
2385 # Check to see if we can do hard links to lock some files if needed
2386 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2387 [AC_REQUIRE([_LT_AC_LOCK])dnl
2389 hard_links="nottested"
2390 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2391 # do not overwrite the value of need_locks provided by the user
2392 AC_MSG_CHECKING([if we can lock with hard links])
2395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2397 ln conftest.a conftest.b 2>&5 || hard_links=no
2398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2399 AC_MSG_RESULT([$hard_links])
2400 if test "$hard_links" = no; then
2401 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2407 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2412 AC_DEFUN([AC_LIBTOOL_OBJDIR],
2413 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2414 [rm -f .libs 2>/dev/null
2415 mkdir .libs 2>/dev/null
2416 if test -d .libs; then
2419 # MS-DOS does not allow filenames that begin with a dot.
2422 rmdir .libs 2>/dev/null])
2423 objdir=$lt_cv_objdir
2424 ])# AC_LIBTOOL_OBJDIR
2427 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2428 # ----------------------------------------------
2429 # Check hardcoding attributes.
2430 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2431 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2432 _LT_AC_TAGVAR(hardcode_action, $1)=
2433 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2434 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2435 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2437 # We can hardcode non-existant directories.
2438 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2439 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2440 # have to relink, otherwise we might link with an installed library
2441 # when we should be linking with a yet-to-be-installed one
2442 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2443 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2444 # Linking always hardcodes the temporary library directory.
2445 _LT_AC_TAGVAR(hardcode_action, $1)=relink
2447 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2448 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2451 # We cannot hardcode anything, or else we can only hardcode existing
2453 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2455 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2457 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2458 # Fast installation is not supported
2459 enable_fast_install=no
2460 elif test "$shlibpath_overrides_runpath" = yes ||
2461 test "$enable_shared" = no; then
2462 # Fast installation is not necessary
2463 enable_fast_install=needless
2465 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2468 # AC_LIBTOOL_SYS_LIB_STRIP
2469 # ------------------------
2470 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2473 AC_MSG_CHECKING([whether stripping libraries is possible])
2474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2475 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2476 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2477 AC_MSG_RESULT([yes])
2479 # FIXME - insert some real tests, host_os isn't really good enough
2482 if test -n "$STRIP" ; then
2483 striplib="$STRIP -x"
2484 AC_MSG_RESULT([yes])
2494 ])# AC_LIBTOOL_SYS_LIB_STRIP
2497 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2498 # -----------------------------
2499 # PORTME Fill in your ld.so characteristics
2500 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2501 [AC_MSG_CHECKING([dynamic linker characteristics])
2503 libname_spec='lib$name'
2511 shlibpath_overrides_runpath=unknown
2513 dynamic_linker="$host_os ld.so"
2514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2515 if test "$GCC" = yes; then
2516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2518 # if the path contains ";" then we assume it to be the separator
2519 # otherwise default to the standard path separator (i.e. ":") - it is
2520 # assumed that no part of a normal pathname contains ";" but that should
2521 # okay in the real world where ";" in dirpaths is itself problematic.
2522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2529 need_lib_prefix=unknown
2530 hardcode_into_libs=no
2532 # when you set need_version to no, make sure it does not cause -set_version
2533 # flags to be left without arguments
2534 need_version=unknown
2539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2540 shlibpath_var=LIBPATH
2542 # AIX 3 has no versioning support, so we append a major version to the name.
2543 soname_spec='${libname}${release}${shared_ext}$major'
2550 hardcode_into_libs=yes
2551 if test "$host_cpu" = ia64; then
2552 # AIX 5 supports IA64
2553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2554 shlibpath_var=LD_LIBRARY_PATH
2556 # With GCC up to 2.95.x, collect2 would create an import file
2557 # for dependence libraries. The import file would start with
2558 # the line `#! .'. This would cause the generated library to
2559 # depend on `.', always an invalid library. This was fixed in
2560 # development snapshots of GCC prior to 3.0.
2562 aix4 | aix4.[[01]] | aix4.[[01]].*)
2563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2573 # soname into executable. Probably we can add versioning support to
2574 # collect2, so additional links can be useful in future.
2575 if test "$aix_use_runtimelinking" = yes; then
2576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2577 # instead of lib<name>.a to let people know that these are not
2578 # typical AIX shared libraries.
2579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2581 # We preserve .a as extension for shared libraries through AIX4.2
2582 # and later when we are not doing run time linking.
2583 library_names_spec='${libname}${release}.a $libname.a'
2584 soname_spec='${libname}${release}${shared_ext}$major'
2586 shlibpath_var=LIBPATH
2591 library_names_spec='$libname.ixlibrary $libname.a'
2592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2593 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'
2597 library_names_spec='${libname}${shared_ext}'
2598 dynamic_linker="$host_os ld.so"
2599 shlibpath_var=LIBRARY_PATH
2605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2606 soname_spec='${libname}${release}${shared_ext}$major'
2607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2608 shlibpath_var=LD_LIBRARY_PATH
2609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2611 # the default ld.so.conf also contains /usr/contrib/lib and
2612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2613 # libtool to hard-code these into programs
2616 cygwin* | mingw* | pw32*)
2617 version_type=windows
2622 case $GCC,$host_os in
2623 yes,cygwin* | yes,mingw* | yes,pw32*)
2624 library_names_spec='$libname.dll.a'
2625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2626 postinstall_cmds='base_file=`basename \${file}`~
2627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2628 dldir=$destdir/`dirname \$dlpath`~
2629 test -d \$dldir || mkdir -p \$dldir~
2630 $install_prog $dir/$dlname \$dldir/$dlname~
2631 chmod a+x \$dldir/$dlname'
2632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2633 dlpath=$dir/\$dldll~
2635 shlibpath_overrides_runpath=yes
2639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2644 # MinGW DLLs use traditional 'lib' prefix
2645 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2647 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2648 # It is most probably a Windows format PATH printed by
2649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2650 # path with ; separators, and with drive letters. We can handle the
2651 # drive letters (cygwin fileutils understands them), so leave them,
2652 # especially as we might pass files found there to a mingw objdump,
2653 # which wouldn't understand a cygwinified path. Ahh.
2654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2660 # pw32 DLLs use 'pw' prefix rather than 'lib'
2661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2670 dynamic_linker='Win32 ld.exe'
2671 # FIXME: first we should search . and the directory the executable is in
2675 darwin* | rhapsody*)
2676 dynamic_linker="$host_os dyld"
2680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2681 soname_spec='${libname}${release}${major}$shared_ext'
2682 shlibpath_overrides_runpath=yes
2683 shlibpath_var=DYLD_LIBRARY_PATH
2684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2686 if test "$GCC" = yes; then
2687 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"`
2689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2699 soname_spec='${libname}${release}${shared_ext}$major'
2700 shlibpath_var=LD_LIBRARY_PATH
2711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2712 soname_spec='${libname}${release}${shared_ext}$major'
2713 shlibpath_var=LD_LIBRARY_PATH
2714 shlibpath_overrides_runpath=no
2715 hardcode_into_libs=yes
2716 dynamic_linker='GNU ld.so'
2719 freebsd* | dragonfly*)
2720 # DragonFly does not have aout. When/if they implement a new
2721 # versioning mechanism, adjust this.
2722 if test -x /usr/bin/objformat; then
2723 objformat=`/usr/bin/objformat`
2726 freebsd[[123]]*) objformat=aout ;;
2730 version_type=freebsd-$objformat
2731 case $version_type in
2733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2742 shlibpath_var=LD_LIBRARY_PATH
2745 shlibpath_overrides_runpath=yes
2747 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2748 shlibpath_overrides_runpath=yes
2749 hardcode_into_libs=yes
2751 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2752 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2753 shlibpath_overrides_runpath=no
2754 hardcode_into_libs=yes
2756 freebsd*) # from 4.6 on
2757 shlibpath_overrides_runpath=yes
2758 hardcode_into_libs=yes
2767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2768 soname_spec='${libname}${release}${shared_ext}$major'
2769 shlibpath_var=LD_LIBRARY_PATH
2770 hardcode_into_libs=yes
2773 hpux9* | hpux10* | hpux11*)
2774 # Give a soname corresponding to the major version so that dld.sl refuses to
2775 # link against other versions.
2782 hardcode_into_libs=yes
2783 dynamic_linker="$host_os dld.so"
2784 shlibpath_var=LD_LIBRARY_PATH
2785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2787 soname_spec='${libname}${release}${shared_ext}$major'
2788 if test "X$HPUX_IA64_MODE" = X32; then
2789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2797 hardcode_into_libs=yes
2798 dynamic_linker="$host_os dld.sl"
2799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2802 soname_spec='${libname}${release}${shared_ext}$major'
2803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2808 dynamic_linker="$host_os dld.sl"
2809 shlibpath_var=SHLIB_PATH
2810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2812 soname_spec='${libname}${release}${shared_ext}$major'
2815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2816 postinstall_cmds='chmod 555 $lib'
2823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2824 soname_spec='${libname}${release}${shared_ext}$major'
2825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2826 shlibpath_var=LD_LIBRARY_PATH
2827 shlibpath_overrides_runpath=no
2828 hardcode_into_libs=yes
2831 irix5* | irix6* | nonstopux*)
2833 nonstopux*) version_type=nonstopux ;;
2835 if test "$lt_cv_prog_gnu_ld" = yes; then
2843 soname_spec='${libname}${release}${shared_ext}$major'
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2846 irix5* | nonstopux*)
2850 case $LD in # libtool.m4 will add one of these switches to LD
2851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2852 libsuff= shlibsuff= libmagic=32-bit;;
2853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2854 libsuff=32 shlibsuff=N32 libmagic=N32;;
2855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2857 *) libsuff= shlibsuff= libmagic=never-match;;
2861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2862 shlibpath_overrides_runpath=no
2863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2865 hardcode_into_libs=yes
2868 # No shared lib support for Linux oldld, aout, or coff.
2869 linux*oldld* | linux*aout* | linux*coff*)
2873 # This must be Linux ELF.
2878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2879 soname_spec='${libname}${release}${shared_ext}$major'
2880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2881 shlibpath_var=LD_LIBRARY_PATH
2882 shlibpath_overrides_runpath=no
2883 # This implies no fast_install, which is unacceptable.
2884 # Some rework will be needed to allow for fast_install
2885 # before this can be enabled.
2886 hardcode_into_libs=yes
2888 # Append ld.so.conf contents to the search path
2889 if test -f /etc/ld.so.conf; then
2890 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' ' '`
2891 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2894 # We used to test for /lib/ld.so.1 and disable shared libraries on
2895 # powerpc, because MkLinux only supported shared libraries with the
2896 # GNU dynamic linker. Since this was broken with cross compilers,
2897 # most powerpc-linux boxes support dynamic linking these days and
2898 # people can always --disable-shared, the test was removed, and we
2899 # assume the GNU/Linux dynamic linker is in use.
2900 dynamic_linker='GNU/Linux ld.so'
2907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2908 soname_spec='${libname}${release}${shared_ext}$major'
2909 shlibpath_var=LD_LIBRARY_PATH
2910 shlibpath_overrides_runpath=no
2911 hardcode_into_libs=yes
2912 dynamic_linker='GNU ld.so'
2919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2922 dynamic_linker='NetBSD (a.out) ld.so'
2924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2925 soname_spec='${libname}${release}${shared_ext}$major'
2926 dynamic_linker='NetBSD ld.elf_so'
2928 shlibpath_var=LD_LIBRARY_PATH
2929 shlibpath_overrides_runpath=yes
2930 hardcode_into_libs=yes
2935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2936 shlibpath_var=LD_LIBRARY_PATH
2937 shlibpath_overrides_runpath=yes
2944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2945 soname_spec='${libname}${release}${shared_ext}$major'
2946 shlibpath_var=LD_LIBRARY_PATH
2947 shlibpath_overrides_runpath=yes
2952 sys_lib_dlsearch_path_spec="/usr/lib"
2954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2957 *) need_version=no ;;
2959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2961 shlibpath_var=LD_LIBRARY_PATH
2962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2964 openbsd2.[[89]] | openbsd2.[[89]].*)
2965 shlibpath_overrides_runpath=no
2968 shlibpath_overrides_runpath=yes
2972 shlibpath_overrides_runpath=yes
2977 libname_spec='$name'
2980 library_names_spec='$libname${shared_ext} $libname.a'
2981 dynamic_linker='OS/2 ld.exe'
2982 shlibpath_var=LIBPATH
2985 osf3* | osf4* | osf5*)
2989 soname_spec='${libname}${release}${shared_ext}$major'
2990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2991 shlibpath_var=LD_LIBRARY_PATH
2992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3001 soname_spec='${libname}${release}${shared_ext}$major'
3002 shlibpath_var=LD_LIBRARY_PATH
3003 shlibpath_overrides_runpath=yes
3004 hardcode_into_libs=yes
3005 # ldd complains unless libraries are executable
3006 postinstall_cmds='chmod +x $lib'
3011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3013 shlibpath_var=LD_LIBRARY_PATH
3014 shlibpath_overrides_runpath=yes
3015 if test "$with_gnu_ld" = yes; then
3023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3024 soname_spec='${libname}${release}${shared_ext}$major'
3025 shlibpath_var=LD_LIBRARY_PATH
3026 case $host_vendor in
3028 shlibpath_overrides_runpath=no
3030 export_dynamic_flag_spec='${wl}-Blargedynsym'
3031 runpath_var=LD_RUN_PATH
3039 shlibpath_overrides_runpath=no
3040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3046 if test -d /usr/nec ;then
3048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3049 soname_spec='$libname${shared_ext}.$major'
3050 shlibpath_var=LD_LIBRARY_PATH
3054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3055 version_type=freebsd-elf
3058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3059 soname_spec='${libname}${release}${shared_ext}$major'
3060 shlibpath_var=LD_LIBRARY_PATH
3061 hardcode_into_libs=yes
3062 if test "$with_gnu_ld" = yes; then
3063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3064 shlibpath_overrides_runpath=no
3066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3067 shlibpath_overrides_runpath=yes
3070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3074 sys_lib_dlsearch_path_spec='/usr/lib'
3079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3080 soname_spec='${libname}${release}${shared_ext}$major'
3081 shlibpath_var=LD_LIBRARY_PATH
3088 AC_MSG_RESULT([$dynamic_linker])
3089 test "$dynamic_linker" = no && can_build_shared=no
3091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3092 if test "$GCC" = yes; then
3093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3095 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3100 AC_DEFUN([_LT_AC_TAGCONFIG],
3101 [AC_ARG_WITH([tags],
3102 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3103 [include additional configurations @<:@automatic@:>@])],
3104 [tagnames="$withval"])
3106 if test -f "$ltmain" && test -n "$tagnames"; then
3107 if test ! -f "${ofile}"; then
3108 AC_MSG_WARN([output file `$ofile' does not exist])
3111 if test -z "$LTCC"; then
3112 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3113 if test -z "$LTCC"; then
3114 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3116 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3119 if test -z "$LTCFLAGS"; then
3120 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3123 # Extract list of available tagged configurations in $ofile.
3124 # Note that this assumes the entire list is on one line.
3125 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128 for tagname in $tagnames; do
3130 # Check whether tagname contains only valid characters
3131 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3133 *) AC_MSG_ERROR([invalid tag name: $tagname])
3137 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3139 AC_MSG_ERROR([tag name \"$tagname\" already exists])
3142 # Update the list of available tags.
3143 if test -n "$tagname"; then
3144 echo appending configuration tag \"$tagname\" to $ofile
3148 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3149 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3150 (test "X$CXX" != "Xg++"))) ; then
3151 AC_LIBTOOL_LANG_CXX_CONFIG
3158 if test -n "$F77" && test "X$F77" != "Xno"; then
3159 AC_LIBTOOL_LANG_F77_CONFIG
3166 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3167 AC_LIBTOOL_LANG_GCJ_CONFIG
3174 AC_LIBTOOL_LANG_RC_CONFIG
3178 AC_MSG_ERROR([Unsupported tag name: $tagname])
3182 # Append the new tag name to the list of available tags.
3183 if test -n "$tagname" ; then
3184 available_tags="$available_tags $tagname"
3190 # Now substitute the updated list of available tags.
3191 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3192 mv "${ofile}T" "$ofile"
3196 AC_MSG_ERROR([unable to update list of available tagged configurations.])
3199 ])# _LT_AC_TAGCONFIG
3204 # enable checks for dlopen support
3205 AC_DEFUN([AC_LIBTOOL_DLOPEN],
3206 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3207 ])# AC_LIBTOOL_DLOPEN
3210 # AC_LIBTOOL_WIN32_DLL
3211 # --------------------
3212 # declare package support for building win32 DLLs
3213 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3214 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3215 ])# AC_LIBTOOL_WIN32_DLL
3218 # AC_ENABLE_SHARED([DEFAULT])
3219 # ---------------------------
3220 # implement the --enable-shared flag
3221 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3222 AC_DEFUN([AC_ENABLE_SHARED],
3223 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3224 AC_ARG_ENABLE([shared],
3225 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3226 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3227 [p=${PACKAGE-default}
3229 yes) enable_shared=yes ;;
3230 no) enable_shared=no ;;
3233 # Look at the argument we got. We use all the common list separators.
3234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3235 for pkg in $enableval; do
3237 if test "X$pkg" = "X$p"; then
3244 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3245 ])# AC_ENABLE_SHARED
3250 # set the default shared flag to --disable-shared
3251 AC_DEFUN([AC_DISABLE_SHARED],
3252 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3253 AC_ENABLE_SHARED(no)
3254 ])# AC_DISABLE_SHARED
3257 # AC_ENABLE_STATIC([DEFAULT])
3258 # ---------------------------
3259 # implement the --enable-static flag
3260 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3261 AC_DEFUN([AC_ENABLE_STATIC],
3262 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3263 AC_ARG_ENABLE([static],
3264 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3265 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3266 [p=${PACKAGE-default}
3268 yes) enable_static=yes ;;
3269 no) enable_static=no ;;
3272 # Look at the argument we got. We use all the common list separators.
3273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3274 for pkg in $enableval; do
3276 if test "X$pkg" = "X$p"; then
3283 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3284 ])# AC_ENABLE_STATIC
3289 # set the default static flag to --disable-static
3290 AC_DEFUN([AC_DISABLE_STATIC],
3291 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3292 AC_ENABLE_STATIC(no)
3293 ])# AC_DISABLE_STATIC
3296 # AC_ENABLE_FAST_INSTALL([DEFAULT])
3297 # ---------------------------------
3298 # implement the --enable-fast-install flag
3299 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3300 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3301 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3302 AC_ARG_ENABLE([fast-install],
3303 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3304 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3305 [p=${PACKAGE-default}
3307 yes) enable_fast_install=yes ;;
3308 no) enable_fast_install=no ;;
3310 enable_fast_install=no
3311 # Look at the argument we got. We use all the common list separators.
3312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3313 for pkg in $enableval; do
3315 if test "X$pkg" = "X$p"; then
3316 enable_fast_install=yes
3322 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3323 ])# AC_ENABLE_FAST_INSTALL
3326 # AC_DISABLE_FAST_INSTALL
3327 # -----------------------
3328 # set the default to --disable-fast-install
3329 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3330 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3331 AC_ENABLE_FAST_INSTALL(no)
3332 ])# AC_DISABLE_FAST_INSTALL
3335 # AC_LIBTOOL_PICMODE([MODE])
3336 # --------------------------
3337 # implement the --with-pic flag
3338 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3339 AC_DEFUN([AC_LIBTOOL_PICMODE],
3340 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3341 pic_mode=ifelse($#,1,$1,default)
3342 ])# AC_LIBTOOL_PICMODE
3347 # This is predefined starting with Autoconf 2.54, so this conditional
3348 # definition can be removed once we require Autoconf 2.54 or later.
3349 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3350 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3351 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3352 then ac_cv_prog_egrep='grep -E'
3353 else ac_cv_prog_egrep='egrep'
3355 EGREP=$ac_cv_prog_egrep
3360 # AC_PATH_TOOL_PREFIX
3361 # -------------------
3362 # find a file program which can recognise shared library
3363 AC_DEFUN([AC_PATH_TOOL_PREFIX],
3364 [AC_REQUIRE([AC_PROG_EGREP])dnl
3365 AC_MSG_CHECKING([for $1])
3366 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3368 [[\\/*] | ?:[\\/]*])
3369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3372 lt_save_MAGIC_CMD="$MAGIC_CMD"
3373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3374 dnl $ac_dummy forces splitting on constant user-supplied paths.
3375 dnl POSIX.2 word splitting is done only on the output of word expansions,
3376 dnl not every word. This closes a longstanding sh security hole.
3377 ac_dummy="ifelse([$2], , $PATH, [$2])"
3378 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$1; then
3382 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3383 if test -n "$file_magic_test_file"; then
3384 case $deplibs_check_method in
3386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3389 $EGREP "$file_magic_regex" > /dev/null; then
3394 *** Warning: the command libtool uses to detect shared libraries,
3395 *** $file_magic_cmd, produces output that libtool cannot recognize.
3396 *** The result is that libtool may fail to recognize shared libraries
3397 *** as such. This will affect the creation of libtool libraries that
3398 *** depend on shared libraries, but programs linked with such libtool
3399 *** libraries will work regardless of this problem. Nevertheless, you
3400 *** may want to report the problem to your system manager and/or to
3401 *** bug-libtool@gnu.org
3411 MAGIC_CMD="$lt_save_MAGIC_CMD"
3414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3415 if test -n "$MAGIC_CMD"; then
3416 AC_MSG_RESULT($MAGIC_CMD)
3420 ])# AC_PATH_TOOL_PREFIX
3425 # find a file program which can recognise a shared library
3426 AC_DEFUN([AC_PATH_MAGIC],
3427 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3428 if test -z "$lt_cv_path_MAGIC_CMD"; then
3429 if test -n "$ac_tool_prefix"; then
3430 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3440 # find the pathname to the GNU or non-GNU linker
3441 AC_DEFUN([AC_PROG_LD],
3442 [AC_ARG_WITH([gnu-ld],
3443 [AC_HELP_STRING([--with-gnu-ld],
3444 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3445 [test "$withval" = no || with_gnu_ld=yes],
3447 AC_REQUIRE([LT_AC_PROG_SED])dnl
3448 AC_REQUIRE([AC_PROG_CC])dnl
3449 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3450 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3452 if test "$GCC" = yes; then
3453 # Check if gcc -print-prog-name=ld gives a path.
3454 AC_MSG_CHECKING([for ld used by $CC])
3457 # gcc leaves a trailing carriage return which upsets mingw
3458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3463 # Accept absolute paths.
3464 [[\\/]]* | ?:[[\\/]]*)
3465 re_direlt='/[[^/]][[^/]]*/\.\./'
3466 # Canonicalize the pathname of ld
3467 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3468 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3469 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3471 test -z "$LD" && LD="$ac_prog"
3474 # If it fails, then pretend we aren't using GCC.
3478 # If it is relative, then search for the first ld in PATH.
3482 elif test "$with_gnu_ld" = yes; then
3483 AC_MSG_CHECKING([for GNU ld])
3485 AC_MSG_CHECKING([for non-GNU ld])
3487 AC_CACHE_VAL(lt_cv_path_LD,
3488 [if test -z "$LD"; then
3489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3490 for ac_dir in $PATH; do
3492 test -z "$ac_dir" && ac_dir=.
3493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3494 lt_cv_path_LD="$ac_dir/$ac_prog"
3495 # Check to see if the program is GNU ld. I'd rather use --version,
3496 # but apparently some variants of GNU ld only accept -v.
3497 # Break only if it was the GNU/non-GNU ld that we prefer.
3498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3499 *GNU* | *'with BFD'*)
3500 test "$with_gnu_ld" != no && break
3503 test "$with_gnu_ld" != yes && break
3510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3513 if test -n "$LD"; then
3518 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3525 AC_DEFUN([AC_PROG_LD_GNU],
3526 [AC_REQUIRE([AC_PROG_EGREP])dnl
3527 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3528 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3529 case `$LD -v 2>&1 </dev/null` in
3530 *GNU* | *'with BFD'*)
3531 lt_cv_prog_gnu_ld=yes
3534 lt_cv_prog_gnu_ld=no
3537 with_gnu_ld=$lt_cv_prog_gnu_ld
3541 # AC_PROG_LD_RELOAD_FLAG
3542 # ----------------------
3543 # find reload flag for linker
3544 # -- PORTME Some linkers may need a different reload flag.
3545 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3546 [AC_CACHE_CHECK([for $LD option to reload object files],
3547 lt_cv_ld_reload_flag,
3548 [lt_cv_ld_reload_flag='-r'])
3549 reload_flag=$lt_cv_ld_reload_flag
3550 case $reload_flag in
3552 *) reload_flag=" $reload_flag" ;;
3554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3557 if test "$GCC" = yes; then
3558 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3564 ])# AC_PROG_LD_RELOAD_FLAG
3567 # AC_DEPLIBS_CHECK_METHOD
3568 # -----------------------
3569 # how to check for library dependencies
3570 # -- PORTME fill in with the dynamic library characteristics
3571 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3572 [AC_CACHE_CHECK([how to recognise dependent libraries],
3573 lt_cv_deplibs_check_method,
3574 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3575 lt_cv_file_magic_test_file=
3576 lt_cv_deplibs_check_method='unknown'
3577 # Need to set the preceding variable on all platforms that support
3578 # interlibrary dependencies.
3579 # 'none' -- dependencies not supported.
3580 # `unknown' -- same as none, but documents that we really don't know.
3581 # 'pass_all' -- all dependencies passed with no checks.
3582 # 'test_compile' -- check by making test program.
3583 # 'file_magic [[regex]]' -- check by looking for files in library path
3584 # which responds to the $file_magic_cmd with a given extended regex.
3585 # If you have `file' or equivalent on your system and you're not sure
3586 # whether `pass_all' will *always* work, you probably want this one.
3590 lt_cv_deplibs_check_method=pass_all
3594 lt_cv_deplibs_check_method=pass_all
3598 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3599 lt_cv_file_magic_cmd='/usr/bin/file -L'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3604 # func_win32_libid is a shell function defined in ltmain.sh
3605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3606 lt_cv_file_magic_cmd='func_win32_libid'
3610 # Base MSYS/MinGW do not provide the 'file' command needed by
3611 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3613 lt_cv_file_magic_cmd='$OBJDUMP -f'
3616 darwin* | rhapsody*)
3617 lt_cv_deplibs_check_method=pass_all
3620 freebsd* | kfreebsd*-gnu | dragonfly*)
3621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3624 # Not sure whether the presence of OpenBSD here was a mistake.
3625 # Let's accept both of them until this is cleared up.
3626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3627 lt_cv_file_magic_cmd=/usr/bin/file
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3632 lt_cv_deplibs_check_method=pass_all
3637 lt_cv_deplibs_check_method=pass_all
3640 hpux10.20* | hpux11*)
3641 lt_cv_file_magic_cmd=/usr/bin/file
3644 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3648 [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]']
3649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3652 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3660 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3663 irix5* | irix6* | nonstopux*)
3665 *-32|*"-32 ") libmagic=32-bit;;
3666 *-n32|*"-n32 ") libmagic=N32;;
3667 *-64|*"-64 ") libmagic=64-bit;;
3668 *) libmagic=never-match;;
3670 lt_cv_deplibs_check_method=pass_all
3673 # This must be Linux ELF.
3675 lt_cv_deplibs_check_method=pass_all
3679 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3680 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3682 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3687 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3688 lt_cv_file_magic_cmd=/usr/bin/file
3689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3693 lt_cv_deplibs_check_method=unknown
3697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3698 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3700 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3704 osf3* | osf4* | osf5*)
3705 lt_cv_deplibs_check_method=pass_all
3709 lt_cv_deplibs_check_method=pass_all
3713 case $host_vendor in
3715 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]]'
3716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3719 lt_cv_deplibs_check_method=pass_all
3722 lt_cv_file_magic_cmd='/bin/file'
3723 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3726 lt_cv_file_magic_cmd='/bin/file'
3727 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3728 lt_cv_file_magic_test_file=/lib/libc.so
3731 lt_cv_deplibs_check_method=pass_all
3734 lt_cv_deplibs_check_method=pass_all
3739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3740 lt_cv_deplibs_check_method=pass_all
3744 file_magic_cmd=$lt_cv_file_magic_cmd
3745 deplibs_check_method=$lt_cv_deplibs_check_method
3746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3747 ])# AC_DEPLIBS_CHECK_METHOD
3752 # find the pathname to a BSD-compatible name lister
3753 AC_DEFUN([AC_PROG_NM],
3754 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3755 [if test -n "$NM"; then
3756 # Let the user override the test.
3759 lt_nm_to_check="${ac_tool_prefix}nm"
3760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3761 lt_nm_to_check="$lt_nm_to_check nm"
3763 for lt_tmp_nm in $lt_nm_to_check; do
3764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3765 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3767 test -z "$ac_dir" && ac_dir=.
3768 tmp_nm="$ac_dir/$lt_tmp_nm"
3769 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3770 # Check to see if the nm accepts a BSD-compat flag.
3771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3772 # nm: unknown option "B" ignored
3773 # Tru64's nm complains that /dev/null is an invalid object file
3774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3775 */dev/null* | *'Invalid file or object type'*)
3776 lt_cv_path_NM="$tmp_nm -B"
3780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3782 lt_cv_path_NM="$tmp_nm -p"
3786 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3787 continue # so that we can try to find one that supports BSD flags
3796 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3804 # check for math library
3805 AC_DEFUN([AC_CHECK_LIBM],
3806 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3809 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3810 # These system don't have libm, or don't need it
3813 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3814 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3817 AC_CHECK_LIB(m, cos, LIBM="-lm")
3823 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3824 # -----------------------------------
3825 # sets LIBLTDL to the link flags for the libltdl convenience library and
3826 # LTDLINCL to the include flags for the libltdl header and adds
3827 # --enable-ltdl-convenience to the configure arguments. Note that
3828 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3829 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3830 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3831 # (note the single quotes!). If your package is not flat and you're not
3832 # using automake, define top_builddir and top_srcdir appropriately in
3834 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3835 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3836 case $enable_ltdl_convenience in
3837 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3838 "") enable_ltdl_convenience=yes
3839 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3841 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3842 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3843 # For backwards non-gettext consistent compatibility...
3845 ])# AC_LIBLTDL_CONVENIENCE
3848 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3849 # -----------------------------------
3850 # sets LIBLTDL to the link flags for the libltdl installable library and
3851 # LTDLINCL to the include flags for the libltdl header and adds
3852 # --enable-ltdl-install to the configure arguments. Note that
3853 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3854 # and an installed libltdl is not found, it is assumed to be `libltdl'.
3855 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3856 # '${top_srcdir}/' (note the single quotes!). If your package is not
3857 # flat and you're not using automake, define top_builddir and top_srcdir
3858 # appropriately in the Makefiles.
3859 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3860 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3861 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3862 AC_CHECK_LIB(ltdl, lt_dlinit,
3863 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3864 [if test x"$enable_ltdl_install" = xno; then
3865 AC_MSG_WARN([libltdl not installed, but installation disabled])
3867 enable_ltdl_install=yes
3870 if test x"$enable_ltdl_install" = x"yes"; then
3871 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3872 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3873 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3875 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3879 # For backwards non-gettext consistent compatibility...
3881 ])# AC_LIBLTDL_INSTALLABLE
3886 # enable support for C++ libraries
3887 AC_DEFUN([AC_LIBTOOL_CXX],
3888 [AC_REQUIRE([_LT_AC_LANG_CXX])
3894 AC_DEFUN([_LT_AC_LANG_CXX],
3895 [AC_REQUIRE([AC_PROG_CXX])
3896 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3897 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3900 # _LT_AC_PROG_CXXCPP
3901 # ------------------
3902 AC_DEFUN([_LT_AC_PROG_CXXCPP],
3904 AC_REQUIRE([AC_PROG_CXX])
3905 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3906 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3907 (test "X$CXX" != "Xg++"))) ; then
3910 ])# _LT_AC_PROG_CXXCPP
3914 # enable support for Fortran 77 libraries
3915 AC_DEFUN([AC_LIBTOOL_F77],
3916 [AC_REQUIRE([_LT_AC_LANG_F77])
3922 AC_DEFUN([_LT_AC_LANG_F77],
3923 [AC_REQUIRE([AC_PROG_F77])
3924 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3930 # enable support for GCJ libraries
3931 AC_DEFUN([AC_LIBTOOL_GCJ],
3932 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3938 AC_DEFUN([_LT_AC_LANG_GCJ],
3939 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3940 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3941 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3942 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3943 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3944 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3945 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3951 # enable support for Windows resource files
3952 AC_DEFUN([AC_LIBTOOL_RC],
3953 [AC_REQUIRE([LT_AC_PROG_RC])
3954 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3958 # AC_LIBTOOL_LANG_C_CONFIG
3959 # ------------------------
3960 # Ensure that the configuration vars for the C compiler are
3961 # suitably defined. Those variables are subsequently used by
3962 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3963 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3964 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3968 # Source file extension for C test sources.
3971 # Object file extension for compiled C test sources.
3973 _LT_AC_TAGVAR(objext, $1)=$objext
3975 # Code to be used in simple compile tests
3976 lt_simple_compile_test_code="int some_variable = 0;\n"
3978 # Code to be used in simple link tests
3979 lt_simple_link_test_code='int main(){return(0);}\n'
3983 # save warnings/boilerplate of simple test code
3984 _LT_COMPILER_BOILERPLATE
3985 _LT_LINKER_BOILERPLATE
3987 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3988 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3989 AC_LIBTOOL_PROG_CC_C_O($1)
3990 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3991 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3992 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3993 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3994 AC_LIBTOOL_SYS_LIB_STRIP
3995 AC_LIBTOOL_DLOPEN_SELF
3997 # Report which library types will actually be built
3998 AC_MSG_CHECKING([if libtool supports shared libraries])
3999 AC_MSG_RESULT([$can_build_shared])
4001 AC_MSG_CHECKING([whether to build shared libraries])
4002 test "$can_build_shared" = "no" && enable_shared=no
4004 # On AIX, shared libraries and static libraries use the same namespace, and
4005 # are all built from PIC.
4008 test "$enable_shared" = yes && enable_static=no
4009 if test -n "$RANLIB"; then
4010 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4011 postinstall_cmds='$RANLIB $lib'
4016 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4017 test "$enable_shared" = yes && enable_static=no
4021 AC_MSG_RESULT([$enable_shared])
4023 AC_MSG_CHECKING([whether to build static libraries])
4024 # Make sure either enable_shared or enable_static is yes.
4025 test "$enable_shared" = yes || enable_static=yes
4026 AC_MSG_RESULT([$enable_static])
4028 AC_LIBTOOL_CONFIG($1)
4032 ])# AC_LIBTOOL_LANG_C_CONFIG
4035 # AC_LIBTOOL_LANG_CXX_CONFIG
4036 # --------------------------
4037 # Ensure that the configuration vars for the C compiler are
4038 # suitably defined. Those variables are subsequently used by
4039 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4040 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4041 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4043 AC_REQUIRE([AC_PROG_CXX])
4044 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4046 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4047 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4048 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4049 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4050 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4051 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4052 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4053 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4054 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4055 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4056 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4057 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4058 _LT_AC_TAGVAR(module_cmds, $1)=
4059 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4060 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4061 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4062 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4063 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4064 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4066 # Dependencies to place before and after the object being linked:
4067 _LT_AC_TAGVAR(predep_objects, $1)=
4068 _LT_AC_TAGVAR(postdep_objects, $1)=
4069 _LT_AC_TAGVAR(predeps, $1)=
4070 _LT_AC_TAGVAR(postdeps, $1)=
4071 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4073 # Source file extension for C++ test sources.
4076 # Object file extension for compiled C++ test sources.
4078 _LT_AC_TAGVAR(objext, $1)=$objext
4080 # Code to be used in simple compile tests
4081 lt_simple_compile_test_code="int some_variable = 0;\n"
4083 # Code to be used in simple link tests
4084 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
4086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4089 # save warnings/boilerplate of simple test code
4090 _LT_COMPILER_BOILERPLATE
4091 _LT_LINKER_BOILERPLATE
4093 # Allow CC to be a program name with arguments.
4098 lt_save_with_gnu_ld=$with_gnu_ld
4099 lt_save_path_LD=$lt_cv_path_LD
4100 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4101 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4103 $as_unset lt_cv_prog_gnu_ld
4105 if test -n "${lt_cv_path_LDCXX+set}"; then
4106 lt_cv_path_LD=$lt_cv_path_LDCXX
4108 $as_unset lt_cv_path_LD
4110 test -z "${LDCXX+set}" || LD=$LDCXX
4113 _LT_AC_TAGVAR(compiler, $1)=$CC
4114 _LT_CC_BASENAME([$compiler])
4116 # We don't want -fno-exception wen compiling C++ code, so set the
4117 # no_builtin_flag separately
4118 if test "$GXX" = yes; then
4119 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4121 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4124 if test "$GXX" = yes; then
4125 # Set up default GNU C++ configuration
4129 # Check if GNU C++ uses GNU ld as the underlying linker, since the
4130 # archiving commands below assume that GNU ld is being used.
4131 if test "$with_gnu_ld" = yes; then
4132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4133 _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'
4135 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4136 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4138 # If archive_cmds runs LD, not CC, wlarc should be empty
4139 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4140 # investigate it a little bit more. (MM)
4143 # ancient GNU ld didn't support --whole-archive et. al.
4144 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4145 grep 'no-whole-archive' > /dev/null; then
4146 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4148 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4154 # A generic and very simple default shared library creation
4155 # command for GNU C++ for the case where it uses the native
4156 # linker, instead of GNU ld. If possible, this setting should
4157 # overridden to take advantage of the native linker features on
4158 # the platform it is being used on.
4159 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4162 # Commands to make compiler produce verbose output that lists
4163 # what "hidden" libraries, object files and flags are used when
4164 # linking a shared library.
4165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4173 # PORTME: fill in a description of your system's C++ link characteristics
4174 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4175 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4178 # FIXME: insert proper C++ library support
4179 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4182 if test "$host_cpu" = ia64; then
4183 # On IA64, the linker does run time linking by default, so we don't
4184 # have to do anything special.
4185 aix_use_runtimelinking=no
4186 exp_sym_flag='-Bexport'
4189 aix_use_runtimelinking=no
4191 # Test if we are trying to use run time linking or normal
4192 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4193 # need to do runtime linking.
4194 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4195 for ld_flag in $LDFLAGS; do
4198 aix_use_runtimelinking=yes
4206 exp_sym_flag='-bexport'
4207 no_entry_flag='-bnoentry'
4210 # When large executables or shared objects are built, AIX ld can
4211 # have problems creating the table of contents. If linking a library
4212 # or program results in "error TOC overflow" add -mminimal-toc to
4213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4216 _LT_AC_TAGVAR(archive_cmds, $1)=''
4217 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4218 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4219 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4221 if test "$GXX" = yes; then
4222 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4223 # We only want to do this on AIX 4.2 and lower, the check
4224 # below for broken collect2 doesn't work under 4.3+
4225 collect2name=`${CC} -print-prog-name=collect2`
4226 if test -f "$collect2name" && \
4227 strings "$collect2name" | grep resolve_lib_name >/dev/null
4229 # We have reworked collect2
4230 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4232 # We have old collect2
4233 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4234 # It fails to find uninstalled libraries when the uninstalled
4235 # path is not listed in the libpath. Setting hardcode_minus_L
4236 # to unsupported forces relinking
4237 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4239 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4243 shared_flag='-shared'
4244 if test "$aix_use_runtimelinking" = yes; then
4245 shared_flag="$shared_flag "'${wl}-G'
4249 if test "$host_cpu" = ia64; then
4250 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4251 # chokes on -Wl,-G. The following line is correct:
4254 if test "$aix_use_runtimelinking" = yes; then
4255 shared_flag='${wl}-G'
4257 shared_flag='${wl}-bM:SRE'
4262 # It seems that -bexpall does not export symbols beginning with
4263 # underscore (_), so it is better to generate a list of symbols to export.
4264 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4265 if test "$aix_use_runtimelinking" = yes; then
4266 # Warning - without using the other runtime loading flags (-brtl),
4267 # -berok will link without error, but may produce a broken library.
4268 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4269 # Determine the default libpath from the value encoded in an empty executable.
4270 _LT_AC_SYS_LIBPATH_AIX
4271 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4273 _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"
4275 if test "$host_cpu" = ia64; then
4276 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4277 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4278 _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"
4280 # Determine the default libpath from the value encoded in an empty executable.
4281 _LT_AC_SYS_LIBPATH_AIX
4282 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4283 # Warning - without using the other run time loading flags,
4284 # -berok will link without error, but may produce a broken library.
4285 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4286 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4287 # Exported symbols can be pulled into shared objects from archives
4288 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4289 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4290 # This is similar to how AIX traditionally builds its shared libraries.
4291 _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'
4297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4298 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4299 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4300 # support --undefined. This deserves some investigation. FIXME
4301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4303 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4308 case $cc_basename in
4310 # FIXME: insert proper C++ library support
4311 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4316 cygwin* | mingw* | pw32*)
4317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4318 # as there is no search path for DLLs.
4319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4320 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4321 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4322 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4325 _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'
4326 # If the export-symbols file already is a .def file (1st line
4327 # is EXPORTS), use it as is; otherwise, prepend...
4328 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4329 cp $export_symbols $output_objdir/$soname.def;
4331 echo EXPORTS > $output_objdir/$soname.def;
4332 cat $export_symbols >> $output_objdir/$soname.def;
4334 $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'
4336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4339 darwin* | rhapsody*)
4341 rhapsody* | darwin1.[[012]])
4342 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4346 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4348 case ${MACOSX_DEPLOYMENT_TARGET} in
4350 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4353 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4359 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4360 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4361 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4362 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4363 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4364 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4366 if test "$GXX" = yes ; then
4367 lt_int_apple_cc_single_mod=no
4368 output_verbose_link_cmd='echo'
4369 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4370 lt_int_apple_cc_single_mod=yes
4372 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4373 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4375 _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'
4377 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4379 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4380 _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}'
4382 _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}'
4384 _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}'
4386 case $cc_basename in
4388 output_verbose_link_cmd='echo'
4389 _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'
4390 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4391 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4392 _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}'
4393 _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}'
4396 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4403 case $cc_basename in
4405 # FIXME: insert proper C++ library support
4406 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4409 # Green Hills C++ Compiler
4410 # FIXME: insert proper C++ library support
4411 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4414 # FIXME: insert proper C++ library support
4415 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4420 # C++ shared libraries reported to be fairly broken before switch to ELF
4421 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4424 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4426 freebsd* | kfreebsd*-gnu | dragonfly*)
4427 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4429 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4434 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4435 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4436 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4437 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4438 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4439 # but as the default
4440 # location of the library.
4442 case $cc_basename in
4444 # FIXME: insert proper C++ library support
4445 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4448 _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'
4449 # Commands to make compiler produce verbose output that lists
4450 # what "hidden" libraries, object files and flags are used when
4451 # linking a shared library.
4453 # There doesn't appear to be a way to prevent this compiler from
4454 # explicitly linking system object files so we need to strip them
4455 # from the output so that they don't get included in the library
4457 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'
4460 if test "$GXX" = yes; then
4461 _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'
4463 # FIXME: insert proper C++ library support
4464 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4470 if test $with_gnu_ld = no; then
4471 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4472 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4476 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4479 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4485 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4486 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4489 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4490 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4491 # but as the default
4492 # location of the library.
4496 case $cc_basename in
4498 # FIXME: insert proper C++ library support
4499 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4504 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4507 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4510 _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'
4513 # Commands to make compiler produce verbose output that lists
4514 # what "hidden" libraries, object files and flags are used when
4515 # linking a shared library.
4517 # There doesn't appear to be a way to prevent this compiler from
4518 # explicitly linking system object files so we need to strip them
4519 # from the output so that they don't get included in the library
4521 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'
4524 if test "$GXX" = yes; then
4525 if test $with_gnu_ld = no; then
4528 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4531 _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'
4534 _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'
4539 # FIXME: insert proper C++ library support
4540 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4546 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4547 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4548 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4549 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4551 # Instead, shared libraries are loaded at an image base (0x10000000 by
4552 # default) and relocated if they conflict, which is a slow very memory
4553 # consuming and fragmenting process. To avoid this, we pick a random,
4554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4556 _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'
4557 _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'
4560 case $cc_basename in
4563 _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'
4565 # Archives containing C++ object files must be created using
4566 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4567 # necessary to make sure instantiated templates are included
4569 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4572 if test "$GXX" = yes; then
4573 if test "$with_gnu_ld" = no; then
4574 _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'
4576 _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'
4579 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4582 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4583 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4586 case $cc_basename in
4588 # Kuck and Associates, Inc. (KAI) C++ Compiler
4590 # KCC will only create a shared library if the output file
4591 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4592 # to its proper name (with version) after linking.
4593 _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'
4594 _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'
4595 # Commands to make compiler produce verbose output that lists
4596 # what "hidden" libraries, object files and flags are used when
4597 # linking a shared library.
4599 # There doesn't appear to be a way to prevent this compiler from
4600 # explicitly linking system object files so we need to strip them
4601 # from the output so that they don't get included in the library
4603 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'
4605 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4606 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4608 # Archives containing C++ object files must be created using
4609 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4610 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4615 # version 8.0 and above of icpc choke on multiply defined symbols
4616 # if we add $predep_objects and $postdep_objects, however 7.1 and
4617 # earlier do not add the objects themselves.
4618 case `$CC -V 2>&1` in
4620 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4621 _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'
4623 *) # Version 8.0 or newer
4626 ia64*) tmp_idyn=' -i_dynamic';;
4628 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4629 _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'
4632 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4633 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4634 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4635 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4638 # Portland Group C++ compiler
4639 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4640 _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'
4642 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4643 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4644 _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'
4648 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4649 _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'
4651 runpath_var=LD_RUN_PATH
4652 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4653 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4655 # Commands to make compiler produce verbose output that lists
4656 # what "hidden" libraries, object files and flags are used when
4657 # linking a shared library.
4659 # There doesn't appear to be a way to prevent this compiler from
4660 # explicitly linking system object files so we need to strip them
4661 # from the output so that they don't get included in the library
4663 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'
4668 # FIXME: insert proper C++ library support
4669 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4672 # FIXME: insert proper C++ library support
4673 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4676 case $cc_basename in
4678 # FIXME: insert proper C++ library support
4679 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4682 # FIXME: insert proper C++ library support
4683 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4689 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4691 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4692 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4693 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4695 # Workaround some broken pre-1.5 toolchains
4696 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4699 # C++ shared libraries are fairly broken
4700 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4703 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4704 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4705 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4706 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4708 _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'
4709 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4710 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4712 output_verbose_link_cmd='echo'
4715 case $cc_basename in
4717 # Kuck and Associates, Inc. (KAI) C++ Compiler
4719 # KCC will only create a shared library if the output file
4720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4721 # to its proper name (with version) after linking.
4722 _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'
4724 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4725 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4727 # Archives containing C++ object files must be created using
4728 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4729 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4733 # Rational C++ 2.4.1
4734 # FIXME: insert proper C++ library support
4735 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4738 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4739 _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'
4741 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4742 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4744 # Commands to make compiler produce verbose output that lists
4745 # what "hidden" libraries, object files and flags are used when
4746 # linking a shared library.
4748 # There doesn't appear to be a way to prevent this compiler from
4749 # explicitly linking system object files so we need to strip them
4750 # from the output so that they don't get included in the library
4752 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'
4755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4756 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4757 _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'
4759 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4760 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4762 # Commands to make compiler produce verbose output that lists
4763 # what "hidden" libraries, object files and flags are used when
4764 # linking a shared library.
4765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4768 # FIXME: insert proper C++ library support
4769 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4775 case $cc_basename in
4777 # Kuck and Associates, Inc. (KAI) C++ Compiler
4779 # KCC will only create a shared library if the output file
4780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4781 # to its proper name (with version) after linking.
4782 _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'
4784 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4785 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4787 # Archives containing C++ object files must be created using
4788 # the KAI C++ compiler.
4789 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4792 # Rational C++ 2.4.1
4793 # FIXME: insert proper C++ library support
4794 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4797 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4798 _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'
4799 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4800 echo "-hidden">> $lib.exp~
4801 $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~
4804 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4805 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4807 # Commands to make compiler produce verbose output that lists
4808 # what "hidden" libraries, object files and flags are used when
4809 # linking a shared library.
4811 # There doesn't appear to be a way to prevent this compiler from
4812 # explicitly linking system object files so we need to strip them
4813 # from the output so that they don't get included in the library
4815 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'
4818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4819 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4820 _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'
4822 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4823 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4825 # Commands to make compiler produce verbose output that lists
4826 # what "hidden" libraries, object files and flags are used when
4827 # linking a shared library.
4828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4831 # FIXME: insert proper C++ library support
4832 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4838 # FIXME: insert proper C++ library support
4839 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4842 case $cc_basename in
4845 # FIXME: insert proper C++ library support
4846 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4850 # FIXME: insert proper C++ library support
4851 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4854 # FIXME: insert proper C++ library support
4855 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4860 case $cc_basename in
4862 # Sun C++ 4.2, 5.x and Centerline C++
4863 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4864 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4865 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4866 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4867 $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'
4869 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4870 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4872 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4874 # The C++ compiler is used as linker so we must use $wl
4875 # flag to pass the commands to the underlying system
4876 # linker. We must also pass each convience library through
4877 # to the system linker between allextract/defaultextract.
4878 # The C++ compiler will combine linker options so we
4879 # cannot just pass the convience library names through
4881 # Supported since Solaris 2.6 (maybe 2.5.1?)
4882 _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'
4885 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4887 output_verbose_link_cmd='echo'
4889 # Archives containing C++ object files must be created using
4890 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4891 # necessary to make sure instantiated templates are included
4893 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4896 # Green Hills C++ Compiler
4897 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4899 # The C++ compiler must be used to create the archive.
4900 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4903 # GNU C++ compiler with Solaris linker
4904 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4905 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4906 if $CC --version | grep -v '^2\.7' > /dev/null; then
4907 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4908 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4909 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4911 # Commands to make compiler produce verbose output that lists
4912 # what "hidden" libraries, object files and flags are used when
4913 # linking a shared library.
4914 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4916 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4918 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4919 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4920 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4922 # Commands to make compiler produce verbose output that lists
4923 # what "hidden" libraries, object files and flags are used when
4924 # linking a shared library.
4925 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4928 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4934 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4935 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4936 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4937 runpath_var='LD_RUN_PATH'
4939 case $cc_basename in
4941 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4942 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4945 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4946 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4950 sysv5* | sco3.2v5* | sco5v6*)
4951 # Note: We can NOT use -z defs as we might desire, because we do not
4952 # link with -lc, and that would cause any symbols used from libc to
4953 # always be unresolved, which means just about no library would
4954 # ever link correctly. If we're not using GNU ld we use -z text
4955 # though, which does catch some bad symbols but isn't as heavy-handed
4957 # For security reasons, it is highly recommended that you always
4958 # use absolute paths for naming shared libraries, and exclude the
4959 # DT_RUNPATH tag from executables and libraries. But doing so
4960 # requires that you compile everything twice, which is a pain.
4961 # So that behaviour is only enabled if SCOABSPATH is set to a
4962 # non-empty value in the environment. Most likely only useful for
4963 # creating official distributions of packages.
4964 # This is a hack until libtool officially supports absolute path
4965 # names for shared libraries.
4966 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4967 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4968 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4969 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4970 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4971 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4972 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4973 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4974 runpath_var='LD_RUN_PATH'
4976 case $cc_basename in
4978 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4979 _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'
4982 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4983 _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'
4988 case $cc_basename in
4990 # NonStop-UX NCC 3.20
4991 # FIXME: insert proper C++ library support
4992 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4995 # FIXME: insert proper C++ library support
4996 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5001 # FIXME: insert proper C++ library support
5002 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5005 # FIXME: insert proper C++ library support
5006 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5009 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5010 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5012 _LT_AC_TAGVAR(GCC, $1)="$GXX"
5013 _LT_AC_TAGVAR(LD, $1)="$LD"
5015 AC_LIBTOOL_POSTDEP_PREDEP($1)
5016 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5017 AC_LIBTOOL_PROG_CC_C_O($1)
5018 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5019 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5020 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5021 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5023 AC_LIBTOOL_CONFIG($1)
5030 with_gnu_ldcxx=$with_gnu_ld
5031 with_gnu_ld=$lt_save_with_gnu_ld
5032 lt_cv_path_LDCXX=$lt_cv_path_LD
5033 lt_cv_path_LD=$lt_save_path_LD
5034 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5035 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5036 ])# AC_LIBTOOL_LANG_CXX_CONFIG
5038 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5039 # ------------------------------------
5040 # Figure out "hidden" library dependencies from verbose
5041 # compiler output when linking a shared library.
5042 # Parse the compiler output and extract the necessary
5043 # objects, libraries and library flags.
5044 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5045 dnl we can't use the lt_simple_compile_test_code here,
5046 dnl because it contains code intended for an executable,
5047 dnl not a library. It's possible we should let each
5048 dnl tag define a new lt_????_link_test_code variable,
5049 dnl but it's only used here...
5050 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5052 void foo (void) { a = 0; }
5054 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5058 Foo (void) { a = 0; }
5063 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5071 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5074 public void bar (void) {
5080 dnl Parse the compiler output and extract the necessary
5081 dnl objects, libraries and library flags.
5082 if AC_TRY_EVAL(ac_compile); then
5083 # Parse the compiler output and extract the necessary
5084 # objects, libraries and library flags.
5086 # Sentinel used to keep track of whether or not we are before
5087 # the conftest object file.
5088 pre_test_object_deps_done=no
5090 # The `*' in the case matches for architectures that use `case' in
5091 # $output_verbose_cmd can trigger glob expansion during the loop
5092 # eval without this substitution.
5093 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5095 for p in `eval $output_verbose_link_cmd`; do
5099 # Some compilers place space between "-{L,R}" and the path.
5102 || test $p = "-R"; then
5109 if test "$pre_test_object_deps_done" = no; then
5112 # Internal compiler library paths should come after those
5113 # provided the user. The postdeps already come after the
5114 # user supplied libs so there is no need to process them.
5115 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5116 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5118 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5121 # The "-l" case would never come before the object being
5122 # linked, so don't bother handling this case.
5125 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5126 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5128 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5134 # This assumes that the test object file only shows up
5135 # once in the compiler output.
5136 if test "$p" = "conftest.$objext"; then
5137 pre_test_object_deps_done=yes
5141 if test "$pre_test_object_deps_done" = no; then
5142 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5143 _LT_AC_TAGVAR(predep_objects, $1)="$p"
5145 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5148 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5149 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5151 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5156 *) ;; # Ignore the rest.
5164 echo "libtool.m4: error: problem compiling $1 test program"
5167 $rm -f confest.$objext
5169 # PORTME: override above test on systems where it is broken
5173 # Interix 3.5 installs completely hosed .la files for C++, so rather than
5174 # hack all around it, let's just trust "g++" to DTRT.
5175 _LT_AC_TAGVAR(predep_objects,$1)=
5176 _LT_AC_TAGVAR(postdep_objects,$1)=
5177 _LT_AC_TAGVAR(postdeps,$1)=
5181 case $cc_basename in
5183 # Adding this requires a known-good setup of shared libraries for
5184 # Sun compiler versions before 5.6, else PIC objects from an old
5185 # archive will be linked into the output, leading to subtle bugs.
5186 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5193 case " $_LT_AC_TAGVAR(postdeps, $1) " in
5194 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5196 ])# AC_LIBTOOL_POSTDEP_PREDEP
5198 # AC_LIBTOOL_LANG_F77_CONFIG
5199 # --------------------------
5200 # Ensure that the configuration vars for the C compiler are
5201 # suitably defined. Those variables are subsequently used by
5202 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5203 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5204 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5205 [AC_REQUIRE([AC_PROG_F77])
5206 AC_LANG_PUSH(Fortran 77)
5208 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5209 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5210 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5211 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5212 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5213 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5214 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5215 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5216 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5217 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5218 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5219 _LT_AC_TAGVAR(module_cmds, $1)=
5220 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5221 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5222 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5223 _LT_AC_TAGVAR(no_undefined_flag, $1)=
5224 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5225 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5227 # Source file extension for f77 test sources.
5230 # Object file extension for compiled f77 test sources.
5232 _LT_AC_TAGVAR(objext, $1)=$objext
5234 # Code to be used in simple compile tests
5235 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5237 # Code to be used in simple link tests
5238 lt_simple_link_test_code=" program t\n end\n"
5240 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5243 # save warnings/boilerplate of simple test code
5244 _LT_COMPILER_BOILERPLATE
5245 _LT_LINKER_BOILERPLATE
5247 # Allow CC to be a program name with arguments.
5251 _LT_AC_TAGVAR(compiler, $1)=$CC
5252 _LT_CC_BASENAME([$compiler])
5254 AC_MSG_CHECKING([if libtool supports shared libraries])
5255 AC_MSG_RESULT([$can_build_shared])
5257 AC_MSG_CHECKING([whether to build shared libraries])
5258 test "$can_build_shared" = "no" && enable_shared=no
5260 # On AIX, shared libraries and static libraries use the same namespace, and
5261 # are all built from PIC.
5264 test "$enable_shared" = yes && enable_static=no
5265 if test -n "$RANLIB"; then
5266 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5267 postinstall_cmds='$RANLIB $lib'
5271 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5272 test "$enable_shared" = yes && enable_static=no
5276 AC_MSG_RESULT([$enable_shared])
5278 AC_MSG_CHECKING([whether to build static libraries])
5279 # Make sure either enable_shared or enable_static is yes.
5280 test "$enable_shared" = yes || enable_static=yes
5281 AC_MSG_RESULT([$enable_static])
5283 _LT_AC_TAGVAR(GCC, $1)="$G77"
5284 _LT_AC_TAGVAR(LD, $1)="$LD"
5286 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5287 AC_LIBTOOL_PROG_CC_C_O($1)
5288 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5289 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5290 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5291 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5293 AC_LIBTOOL_CONFIG($1)
5297 ])# AC_LIBTOOL_LANG_F77_CONFIG
5300 # AC_LIBTOOL_LANG_GCJ_CONFIG
5301 # --------------------------
5302 # Ensure that the configuration vars for the C compiler are
5303 # suitably defined. Those variables are subsequently used by
5304 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5305 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5306 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5309 # Source file extension for Java test sources.
5312 # Object file extension for compiled Java test sources.
5314 _LT_AC_TAGVAR(objext, $1)=$objext
5316 # Code to be used in simple compile tests
5317 lt_simple_compile_test_code="class foo {}\n"
5319 # Code to be used in simple link tests
5320 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5322 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5325 # save warnings/boilerplate of simple test code
5326 _LT_COMPILER_BOILERPLATE
5327 _LT_LINKER_BOILERPLATE
5329 # Allow CC to be a program name with arguments.
5333 _LT_AC_TAGVAR(compiler, $1)=$CC
5334 _LT_CC_BASENAME([$compiler])
5336 # GCJ did not exist at the time GCC didn't implicitly link libc in.
5337 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5339 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5341 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5342 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5343 AC_LIBTOOL_PROG_CC_C_O($1)
5344 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5345 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5346 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5347 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5349 AC_LIBTOOL_CONFIG($1)
5353 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
5356 # AC_LIBTOOL_LANG_RC_CONFIG
5357 # -------------------------
5358 # Ensure that the configuration vars for the Windows resource compiler are
5359 # suitably defined. Those variables are subsequently used by
5360 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5361 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5362 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5365 # Source file extension for RC test sources.
5368 # Object file extension for compiled RC test sources.
5370 _LT_AC_TAGVAR(objext, $1)=$objext
5372 # Code to be used in simple compile tests
5373 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5375 # Code to be used in simple link tests
5376 lt_simple_link_test_code="$lt_simple_compile_test_code"
5378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5381 # save warnings/boilerplate of simple test code
5382 _LT_COMPILER_BOILERPLATE
5383 _LT_LINKER_BOILERPLATE
5385 # Allow CC to be a program name with arguments.
5389 _LT_AC_TAGVAR(compiler, $1)=$CC
5390 _LT_CC_BASENAME([$compiler])
5391 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5393 AC_LIBTOOL_CONFIG($1)
5397 ])# AC_LIBTOOL_LANG_RC_CONFIG
5400 # AC_LIBTOOL_CONFIG([TAGNAME])
5401 # ----------------------------
5402 # If TAGNAME is not passed, then create an initial libtool script
5403 # with a default configuration from the untagged config vars. Otherwise
5404 # add code to config.status for appending the configuration named by
5405 # TAGNAME from the matching tagged config vars.
5406 AC_DEFUN([AC_LIBTOOL_CONFIG],
5407 [# The else clause should only fire when bootstrapping the
5408 # libtool distribution, otherwise you forgot to ship ltmain.sh
5409 # with your package, and you will get complaints that there are
5410 # no rules to generate ltmain.sh.
5411 if test -f "$ltmain"; then
5412 # See if we are running on zsh, and set the options which allow our commands through
5413 # without removal of \ escapes.
5414 if test -n "${ZSH_VERSION+set}" ; then
5415 setopt NO_GLOB_SUBST
5417 # Now quote all the things that may contain metacharacters while being
5418 # careful not to overquote the AC_SUBSTed values. We take copies of the
5419 # variables and quote the copies for generation of the libtool script.
5420 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5422 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5423 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5424 deplibs_check_method reload_flag reload_cmds need_locks \
5425 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5426 lt_cv_sys_global_symbol_to_c_name_address \
5427 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5428 old_postinstall_cmds old_postuninstall_cmds \
5429 _LT_AC_TAGVAR(compiler, $1) \
5430 _LT_AC_TAGVAR(CC, $1) \
5431 _LT_AC_TAGVAR(LD, $1) \
5432 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5433 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5434 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5435 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5436 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5437 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5438 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5439 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5440 _LT_AC_TAGVAR(old_archive_cmds, $1) \
5441 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5442 _LT_AC_TAGVAR(predep_objects, $1) \
5443 _LT_AC_TAGVAR(postdep_objects, $1) \
5444 _LT_AC_TAGVAR(predeps, $1) \
5445 _LT_AC_TAGVAR(postdeps, $1) \
5446 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5447 _LT_AC_TAGVAR(archive_cmds, $1) \
5448 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5449 _LT_AC_TAGVAR(postinstall_cmds, $1) \
5450 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5451 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5452 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5453 _LT_AC_TAGVAR(no_undefined_flag, $1) \
5454 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5455 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5456 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5457 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5458 _LT_AC_TAGVAR(hardcode_automatic, $1) \
5459 _LT_AC_TAGVAR(module_cmds, $1) \
5460 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5461 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5462 _LT_AC_TAGVAR(exclude_expsyms, $1) \
5463 _LT_AC_TAGVAR(include_expsyms, $1); do
5466 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5467 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5468 _LT_AC_TAGVAR(archive_cmds, $1) | \
5469 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5470 _LT_AC_TAGVAR(module_cmds, $1) | \
5471 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5472 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5473 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5474 extract_expsyms_cmds | reload_cmds | finish_cmds | \
5475 postinstall_cmds | postuninstall_cmds | \
5476 old_postinstall_cmds | old_postuninstall_cmds | \
5477 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5478 # Double-quote double-evaled strings.
5479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5482 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5488 *'\[$]0 --fallback-echo"')
5489 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5494 [cfgfile="${ofile}T"
5495 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5497 AC_MSG_NOTICE([creating $ofile])],
5500 cat <<__EOF__ >> "$cfgfile"
5504 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5505 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5506 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5508 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5509 # Free Software Foundation, Inc.
5511 # This file is part of GNU Libtool:
5512 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5514 # This program is free software; you can redistribute it and/or modify
5515 # it under the terms of the GNU General Public License as published by
5516 # the Free Software Foundation; either version 2 of the License, or
5517 # (at your option) any later version.
5519 # This program is distributed in the hope that it will be useful, but
5520 # WITHOUT ANY WARRANTY; without even the implied warranty of
5521 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5522 # General Public License for more details.
5524 # You should have received a copy of the GNU General Public License
5525 # along with this program; if not, write to the Free Software
5526 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5528 # As a special exception to the GNU General Public License, if you
5529 # distribute this file as part of a program that contains a
5530 # configuration script generated by Autoconf, you may include it under
5531 # the same distribution terms that you use for the rest of that program.
5533 # A sed program that does not truncate output.
5536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5537 Xsed="$SED -e 1s/^X//"
5539 # The HP-UX ksh and POSIX shell print the target directory to stdout
5541 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5543 # The names of the tagged configurations supported by this script.
5546 # ### BEGIN LIBTOOL CONFIG],
5547 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5551 # Shell to use when invoking shell scripts.
5554 # Whether or not to build shared libraries.
5555 build_libtool_libs=$enable_shared
5557 # Whether or not to build static libraries.
5558 build_old_libs=$enable_static
5560 # Whether or not to add -lc for building shared libraries.
5561 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5563 # Whether or not to disallow shared libs when runtime libs are static
5564 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5566 # Whether or not to optimize for fast installation.
5567 fast_install=$enable_fast_install
5570 host_alias=$host_alias
5575 build_alias=$build_alias
5579 # An echo program that does not interpret backslashes.
5584 AR_FLAGS=$lt_AR_FLAGS
5589 # LTCC compiler flags.
5590 LTCFLAGS=$lt_LTCFLAGS
5592 # A language-specific compiler.
5593 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5595 # Is the compiler the GNU C compiler?
5596 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5601 # The linker used to build libraries.
5602 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5604 # Whether we need hard or soft links.
5607 # A BSD-compatible nm program.
5610 # A symbol stripping program
5613 # Used to examine libraries when file_magic_cmd begins "file"
5614 MAGIC_CMD=$MAGIC_CMD
5616 # Used on cygwin: DLL creation program.
5619 # Used on cygwin: object dumper.
5622 # Used on cygwin: assembler.
5625 # The name of the directory that contains temporary libtool files.
5628 # How to create reloadable object files.
5629 reload_flag=$lt_reload_flag
5630 reload_cmds=$lt_reload_cmds
5632 # How to pass a linker flag through the compiler.
5633 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5635 # Object file suffix (normally "o").
5638 # Old archive suffix (normally "a").
5641 # Shared library suffix (normally ".so").
5642 shrext_cmds='$shrext_cmds'
5644 # Executable file suffix (normally "").
5647 # Additional compiler flags for building library objects.
5648 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5651 # What is the maximum length of a command?
5652 max_cmd_len=$lt_cv_sys_max_cmd_len
5654 # Does compiler simultaneously support -c and -o options?
5655 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5657 # Must we lock files when doing compilation?
5658 need_locks=$lt_need_locks
5660 # Do we need the lib prefix for modules?
5661 need_lib_prefix=$need_lib_prefix
5663 # Do we need a version for libraries?
5664 need_version=$need_version
5666 # Whether dlopen is supported.
5667 dlopen_support=$enable_dlopen
5669 # Whether dlopen of programs is supported.
5670 dlopen_self=$enable_dlopen_self
5672 # Whether dlopen of statically linked programs is supported.
5673 dlopen_self_static=$enable_dlopen_self_static
5675 # Compiler flag to prevent dynamic linking.
5676 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5678 # Compiler flag to turn off builtin functions.
5679 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5681 # Compiler flag to allow reflexive dlopens.
5682 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5684 # Compiler flag to generate shared objects directly from archives.
5685 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5687 # Compiler flag to generate thread-safe objects.
5688 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5690 # Library versioning type.
5691 version_type=$version_type
5693 # Format of library name prefix.
5694 libname_spec=$lt_libname_spec
5696 # List of archive names. First name is the real one, the rest are links.
5697 # The last name is the one that the linker finds with -lNAME.
5698 library_names_spec=$lt_library_names_spec
5700 # The coded name of the library, if different from the real name.
5701 soname_spec=$lt_soname_spec
5703 # Commands used to build and install an old-style archive.
5705 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5706 old_postinstall_cmds=$lt_old_postinstall_cmds
5707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5709 # Create an old-style archive from a shared archive.
5710 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5712 # Create a temporary old-style archive to link instead of a shared archive.
5713 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5715 # Commands used to build and install a shared archive.
5716 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5717 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5718 postinstall_cmds=$lt_postinstall_cmds
5719 postuninstall_cmds=$lt_postuninstall_cmds
5721 # Commands used to build a loadable module (assumed same as above if empty)
5722 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5723 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5725 # Commands to strip libraries.
5726 old_striplib=$lt_old_striplib
5727 striplib=$lt_striplib
5729 # Dependencies to place before the objects being linked to create a
5731 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5733 # Dependencies to place after the objects being linked to create a
5735 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5737 # Dependencies to place before the objects being linked to create a
5739 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5741 # Dependencies to place after the objects being linked to create a
5743 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5745 # The library search path used internally by the compiler when linking
5747 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5749 # Method to check whether dependent libraries are shared objects.
5750 deplibs_check_method=$lt_deplibs_check_method
5752 # Command to use when deplibs_check_method == file_magic.
5753 file_magic_cmd=$lt_file_magic_cmd
5755 # Flag that allows shared libraries with undefined symbols to be built.
5756 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5758 # Flag that forces no undefined symbols.
5759 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5761 # Commands used to finish a libtool library installation in a directory.
5762 finish_cmds=$lt_finish_cmds
5764 # Same as above, but a single script fragment to be evaled but not shown.
5765 finish_eval=$lt_finish_eval
5767 # Take the output of nm and produce a listing of raw symbols and C names.
5768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5770 # Transform the output of nm in a proper C declaration
5771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5773 # Transform the output of nm in a C name address pair
5774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5776 # This is the shared library runtime path variable.
5777 runpath_var=$runpath_var
5779 # This is the shared library path variable.
5780 shlibpath_var=$shlibpath_var
5782 # Is shlibpath searched before the hard-coded library search path?
5783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5785 # How to hardcode a shared library path into an executable.
5786 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5788 # Whether we should hardcode library paths into libraries.
5789 hardcode_into_libs=$hardcode_into_libs
5791 # Flag to hardcode \$libdir into a binary during linking.
5792 # This must work even if \$libdir does not exist.
5793 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5795 # If ld is used when linking, flag to hardcode \$libdir into
5796 # a binary during linking. This must work even if \$libdir does
5798 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5800 # Whether we need a single -rpath flag with a separated argument.
5801 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5803 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5805 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5807 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5809 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5811 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5812 # the resulting binary.
5813 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5815 # Set to yes if building a shared library automatically hardcodes DIR into the library
5816 # and all subsequent libraries and executables linked against it.
5817 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5819 # Variables whose values should be saved in libtool wrapper scripts and
5820 # restored at relink time.
5821 variables_saved_for_relink="$variables_saved_for_relink"
5823 # Whether libtool must link a program against all its dependency libraries.
5824 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5826 # Compile-time system search path for libraries
5827 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5829 # Run-time system search path for libraries
5830 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5832 # Fix the shell variable \$srcfile for the compiler.
5833 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5835 # Set to yes if exported symbols are required.
5836 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5838 # The commands to list exported symbols.
5839 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5841 # The commands to extract the exported symbol list from a shared archive.
5842 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5844 # Symbols that should not be listed in the preloaded symbols.
5845 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5847 # Symbols that must always be exported.
5848 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5851 [# ### END LIBTOOL CONFIG],
5852 [# ### END LIBTOOL TAG CONFIG: $tagname])
5859 cat <<\EOF >> "$cfgfile"
5861 # AIX sometimes has problems with the GCC collect2 program. For some
5862 # reason, if we set the COLLECT_NAMES environment variable, the problems
5863 # vanish in a puff of smoke.
5864 if test "X${COLLECT_NAMES+set}" != Xset; then
5866 export COLLECT_NAMES
5872 # We use sed instead of cat because bash on DJGPP gets confused if
5873 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5874 # text mode, it properly converts lines to CR/LF. This bash problem
5875 # is reportedly fixed, but why not run on old versions too?
5876 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5878 mv -f "$cfgfile" "$ofile" || \
5879 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5883 # If there is no Makefile yet, we rely on a make rule to execute
5884 # `config.status --recheck' to rerun these tests and create the
5885 # libtool script then.
5886 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5887 if test -f "$ltmain_in"; then
5888 test -f Makefile && make "$ltmain"
5891 ])# AC_LIBTOOL_CONFIG
5894 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5895 # -------------------------------------------
5896 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5897 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5899 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5901 if test "$GCC" = yes; then
5902 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5904 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5905 lt_cv_prog_compiler_rtti_exceptions,
5906 [-fno-rtti -fno-exceptions], [],
5907 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5909 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5912 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5913 # ---------------------------------
5914 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5915 [AC_REQUIRE([AC_CANONICAL_HOST])
5916 AC_REQUIRE([AC_PROG_NM])
5917 AC_REQUIRE([AC_OBJEXT])
5918 # Check for command to grab the raw symbol name followed by C symbol from nm.
5919 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5920 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5922 # These are sane defaults that work on at least a few old systems.
5923 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5925 # Character class describing NM global symbol codes.
5926 symcode='[[BCDEGRST]]'
5928 # Regexp to match symbols that can be accessed directly from C.
5929 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5931 # Transform an extracted symbol line into a proper C declaration
5932 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5934 # Transform an extracted symbol line into symbol name and symbol address
5935 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'"
5937 # Define system-specific variables.
5942 cygwin* | mingw* | pw32*)
5943 symcode='[[ABCDGISTW]]'
5945 hpux*) # Its linker distinguishes data from code symbols
5946 if test "$host_cpu" = ia64; then
5947 symcode='[[ABCDEGRST]]'
5949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5950 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'"
5953 if test "$host_cpu" = ia64; then
5954 symcode='[[ABCDGIRSTW]]'
5955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5956 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'"
5960 symcode='[[BCDEGRST]]'
5963 symcode='[[BCDEGQRST]]'
5974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5978 symcode='[[DFNSTU]]'
5982 # Handle CRLF in mingw tool chain
5986 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5990 # If we're using GNU nm, then use its standard symbol codes.
5991 case `$NM -V 2>&1` in
5992 *GNU* | *'with BFD'*)
5993 symcode='[[ABCDGIRSTW]]' ;;
5996 # Try without a prefix undercore, then with it.
5997 for ac_symprfx in "" "_"; do
5999 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6000 symxfrm="\\1 $ac_symprfx\\2 \\2"
6002 # Write the raw and C identifiers.
6003 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6005 # Check to see that the pipe works correctly.
6009 cat > conftest.$ac_ext <<EOF
6014 void nm_test_func(){}
6018 int main(){nm_test_var='a';nm_test_func();return(0);}
6021 if AC_TRY_EVAL(ac_compile); then
6022 # Now try to grab the symbols.
6024 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6025 # Try sorting and uniquifying the output.
6026 if sort "$nlist" | uniq > "$nlist"T; then
6027 mv -f "$nlist"T "$nlist"
6032 # Make sure that we snagged all the symbols we need.
6033 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6034 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6035 cat <<EOF > conftest.$ac_ext
6041 # Now generate the symbol file.
6042 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6044 cat <<EOF >> conftest.$ac_ext
6045 #if defined (__STDC__) && __STDC__
6046 # define lt_ptr_t void *
6048 # define lt_ptr_t char *
6052 /* The mapping between symbol names and symbols. */
6057 lt_preloaded_symbols[[]] =
6060 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6061 cat <<\EOF >> conftest.$ac_ext
6069 # Now try linking the two files.
6070 mv conftest.$ac_objext conftstm.$ac_objext
6071 lt_save_LIBS="$LIBS"
6072 lt_save_CFLAGS="$CFLAGS"
6073 LIBS="conftstm.$ac_objext"
6074 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6075 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6078 LIBS="$lt_save_LIBS"
6079 CFLAGS="$lt_save_CFLAGS"
6081 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6084 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6087 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6090 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6091 cat conftest.$ac_ext >&5
6093 rm -f conftest* conftst*
6095 # Do not use the global_symbol_pipe unless it works.
6096 if test "$pipe_works" = yes; then
6099 lt_cv_sys_global_symbol_pipe=
6103 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6104 lt_cv_sys_global_symbol_to_cdecl=
6106 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6107 AC_MSG_RESULT(failed)
6111 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6114 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6115 # ---------------------------------------
6116 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6117 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6119 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6121 AC_MSG_CHECKING([for $compiler option to produce PIC])
6123 # C++ specific cases for pic, static, wl, etc.
6124 if test "$GXX" = yes; then
6125 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6126 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6130 # All AIX code is PIC.
6131 if test "$host_cpu" = ia64; then
6132 # AIX 5 now supports IA64 processor
6133 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6137 # FIXME: we need at least 68020 code to build shared libraries, but
6138 # adding the `-m68020' flag to GCC prevents building anything better,
6140 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6142 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6143 # PIC is the default for these OSes.
6145 mingw* | os2* | pw32*)
6146 # This hack is so that the source file can tell whether it is being
6147 # built for inclusion in a dll (and should export symbols for example).
6148 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6150 darwin* | rhapsody*)
6151 # PIC is the default on this platform
6152 # Common symbols not allowed in MH_DYLIB files
6153 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6156 # DJGPP does not support shared libraries at all
6157 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6160 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6161 # Instead, we relocate shared libraries at runtime.
6164 if test -d /usr/nec; then
6165 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6175 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6180 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6186 # All AIX code is PIC.
6187 if test "$host_cpu" = ia64; then
6188 # AIX 5 now supports IA64 processor
6189 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6191 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6195 case $cc_basename in
6197 # Green Hills C++ Compiler
6198 # _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"
6203 # PIC is the default on this platform
6204 # Common symbols not allowed in MH_DYLIB files
6205 case $cc_basename in
6207 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6208 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6213 case $cc_basename in
6215 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6218 # Green Hills C++ Compiler
6219 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6225 freebsd* | kfreebsd*-gnu | dragonfly*)
6226 # FreeBSD uses GNU C++
6228 hpux9* | hpux10* | hpux11*)
6229 case $cc_basename in
6231 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6232 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6233 if test "$host_cpu" != ia64; then
6234 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6238 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6239 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6245 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6254 # This is c89, which is MS Visual C++ (no shared libs)
6255 # Anyone wants to do a port?
6257 irix5* | irix6* | nonstopux*)
6258 case $cc_basename in
6260 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6261 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6262 # CC pic flag -KPIC is the default.
6269 case $cc_basename in
6272 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6273 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6277 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6278 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6279 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6282 # Portland Group C++ compiler.
6283 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6284 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6285 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6289 # Make sure the PIC flag is empty. It appears that all Alpha
6290 # Linux and Compaq Tru64 Unix objects are PIC.
6291 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6292 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6303 case $cc_basename in
6305 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6313 osf3* | osf4* | osf5*)
6314 case $cc_basename in
6316 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6319 # Rational C++ 2.4.1
6320 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6323 # Digital/Compaq C++
6324 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6325 # Make sure the PIC flag is empty. It appears that all Alpha
6326 # Linux and Compaq Tru64 Unix objects are PIC.
6327 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6328 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6337 case $cc_basename in
6339 # Sun C++ 4.2, 5.x and Centerline C++
6340 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6341 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6342 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6345 # Green Hills C++ Compiler
6346 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6353 case $cc_basename in
6356 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6357 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6361 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6368 case $cc_basename in
6370 # NonStop-UX NCC 3.20
6371 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6378 case $cc_basename in
6380 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6381 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6382 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6389 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6395 if test "$GCC" = yes; then
6396 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6397 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6401 # All AIX code is PIC.
6402 if test "$host_cpu" = ia64; then
6403 # AIX 5 now supports IA64 processor
6404 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6409 # FIXME: we need at least 68020 code to build shared libraries, but
6410 # adding the `-m68020' flag to GCC prevents building anything better,
6412 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6415 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6416 # PIC is the default for these OSes.
6419 mingw* | pw32* | os2*)
6420 # This hack is so that the source file can tell whether it is being
6421 # built for inclusion in a dll (and should export symbols for example).
6422 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6425 darwin* | rhapsody*)
6426 # PIC is the default on this platform
6427 # Common symbols not allowed in MH_DYLIB files
6428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6433 # Instead, we relocate shared libraries at runtime.
6437 # Just because we use GCC doesn't mean we suddenly get shared libraries
6438 # on systems that don't support them.
6439 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6444 if test -d /usr/nec; then
6445 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6457 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6463 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6467 # PORTME Check for flag to pass linker flags through the system compiler.
6470 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6471 if test "$host_cpu" = ia64; then
6472 # AIX 5 now supports IA64 processor
6473 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6475 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6479 # PIC is the default on this platform
6480 # Common symbols not allowed in MH_DYLIB files
6481 case $cc_basename in
6483 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6484 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6489 mingw* | pw32* | os2*)
6490 # This hack is so that the source file can tell whether it is being
6491 # built for inclusion in a dll (and should export symbols for example).
6492 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6495 hpux9* | hpux10* | hpux11*)
6496 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6504 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6507 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6508 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6511 irix5* | irix6* | nonstopux*)
6512 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6513 # PIC (with -KPIC) is the default.
6514 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6518 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6519 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6523 case $cc_basename in
6525 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6526 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6527 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6529 pgcc* | pgf77* | pgf90* | pgf95*)
6530 # Portland Group compilers (*not* the Pentium gcc compiler,
6531 # which looks to be a dead project)
6532 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6533 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6534 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6537 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6538 # All Alpha code is PIC.
6539 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6544 osf3* | osf4* | osf5*)
6545 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6546 # All OSF/1 code is PIC.
6547 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6552 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6553 case $cc_basename in
6555 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6557 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6562 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6563 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6564 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6567 sysv4 | sysv4.2uw2* | sysv4.3*)
6568 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6569 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6570 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6574 if test -d /usr/nec ;then
6575 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6576 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6581 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6582 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6583 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6587 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6588 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6592 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6593 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6597 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6602 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6605 # Check to make sure the PIC flag actually works.
6607 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6608 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6609 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6610 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6611 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6613 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6615 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6616 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6619 # For platforms which do not support PIC, -DPIC is meaningless:
6621 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6624 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6629 # Check to make sure the static flag actually works.
6631 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6632 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6633 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6634 $lt_tmp_static_flag,
6636 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6640 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6641 # ------------------------------------
6642 # See if the linker supports building shared libraries.
6643 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6644 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6646 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6649 # If we're using GNU nm, then we don't want the "-C" option.
6650 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6651 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6652 _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'
6654 _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'
6658 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6661 _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'
6664 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6669 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6670 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6671 _LT_AC_TAGVAR(archive_cmds, $1)=
6672 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6673 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6674 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6675 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6676 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6677 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6678 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6679 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6680 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6681 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6682 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6683 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6684 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6685 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6686 _LT_AC_TAGVAR(module_cmds, $1)=
6687 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6688 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6689 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6690 # include_expsyms should be a list of space-separated symbols to be *always*
6691 # included in the symbol list
6692 _LT_AC_TAGVAR(include_expsyms, $1)=
6693 # exclude_expsyms can be an extended regexp of symbols to exclude
6694 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6695 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6696 # as well as any symbol that contains `d'.
6697 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6698 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6699 # platforms (ab)use it in PIC code, but their linkers get confused if
6700 # the symbol is explicitly referenced. Since portable code cannot
6701 # rely on this symbol name, it's probably fine to never include it in
6702 # preloaded symbol tables.
6703 extract_expsyms_cmds=
6704 # Just being paranoid about ensuring that cc_basename is set.
6705 _LT_CC_BASENAME([$compiler])
6707 cygwin* | mingw* | pw32*)
6708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6709 # When not using gcc, we currently assume that we are using
6710 # Microsoft Visual C++.
6711 if test "$GCC" != yes; then
6716 # we just hope/assume this is gcc and not c89 (= MSVC++)
6724 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6725 if test "$with_gnu_ld" = yes; then
6726 # If archive_cmds runs LD, not CC, wlarc should be empty
6729 # Set some defaults for GNU ld with shared library support. These
6730 # are reset later if shared libraries are not supported. Putting them
6731 # here allows them to be overridden if necessary.
6732 runpath_var=LD_RUN_PATH
6733 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6734 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6735 # ancient GNU ld didn't support --whole-archive et. al.
6736 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6737 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6739 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6741 supports_anon_versioning=no
6742 case `$LD -v 2>/dev/null` in
6743 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6746 *\ 2.11.*) ;; # other 2.11 versions
6747 *) supports_anon_versioning=yes ;;
6750 # See if GNU ld supports shared libraries.
6752 aix3* | aix4* | aix5*)
6753 # On AIX/PPC, the GNU linker is very broken
6754 if test "$host_cpu" != ia64; then
6755 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6758 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6759 *** to be unable to reliably create shared libraries on AIX.
6760 *** Therefore, libtool is disabling shared libraries support. If you
6761 *** really care for shared libraries, you may want to modify your PATH
6762 *** so that a non-GNU linker is found, and then restart.
6769 _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)'
6770 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6771 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6773 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6774 # that the semantics of dynamic libraries on AmigaOS, at least up
6775 # to version 4, is to share data among multiple programs linked
6776 # with the same dynamic library. Since this doesn't match the
6777 # behavior of shared libraries on other platforms, we can't use
6779 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6784 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6785 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6786 # support --undefined. This deserves some investigation. FIXME
6787 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6793 cygwin* | mingw* | pw32*)
6794 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6795 # as there is no search path for DLLs.
6796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6797 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6798 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6799 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6800 _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'
6802 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6803 _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'
6804 # If the export-symbols file already is a .def file (1st line
6805 # is EXPORTS), use it as is; otherwise, prepend...
6806 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6807 cp $export_symbols $output_objdir/$soname.def;
6809 echo EXPORTS > $output_objdir/$soname.def;
6810 cat $export_symbols >> $output_objdir/$soname.def;
6812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6814 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6819 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6820 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6821 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6822 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6824 # Instead, shared libraries are loaded at an image base (0x10000000 by
6825 # default) and relocated if they conflict, which is a slow very memory
6826 # consuming and fragmenting process. To avoid this, we pick a random,
6827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6828 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6829 _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'
6830 _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'
6834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6836 case $cc_basename,$host_cpu in
6837 pgcc*) # Portland Group C compiler
6838 _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'
6839 tmp_addflag=' $pic_flag'
6841 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6842 _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'
6843 tmp_addflag=' $pic_flag -Mnomain' ;;
6844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6845 tmp_addflag=' -i_dynamic' ;;
6846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6847 tmp_addflag=' -i_dynamic -nofor_main' ;;
6848 ifc* | ifort*) # Intel Fortran compiler
6849 tmp_addflag=' -nofor_main' ;;
6851 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6853 if test $supports_anon_versioning = yes; then
6854 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6856 $echo "local: *; };" >> $output_objdir/$libname.ver~
6857 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6860 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6866 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6869 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6870 _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'
6875 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6876 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6880 *** create shared libraries on Solaris systems. Therefore, libtool
6881 *** is disabling shared libraries support. We urge you to upgrade GNU
6882 *** binutils to release 2.9.1 or newer. Another option is to modify
6883 *** your PATH or compiler configuration so that the native linker is
6884 *** used, and then restart.
6887 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6888 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6889 _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'
6891 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6896 case `$LD -v 2>&1` in
6897 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6898 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6901 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6902 *** reliably create shared libraries on SCO systems. Therefore, libtool
6903 *** is disabling shared libraries support. We urge you to upgrade GNU
6904 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6905 *** your PATH or compiler configuration so that the native linker is
6906 *** used, and then restart.
6911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6912 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6913 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6914 _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'
6916 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6923 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6925 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6926 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6931 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6932 _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'
6934 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6939 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6941 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6942 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6943 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6946 # PORTME fill in a description of your system's linker (not GNU ld)
6949 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6950 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6951 _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'
6952 # Note: this linker hardcodes the directories in LIBPATH if there
6953 # are no directories specified by -L.
6954 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6955 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6956 # Neither direct hardcoding nor static linking is supported with a
6958 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6963 if test "$host_cpu" = ia64; then
6964 # On IA64, the linker does run time linking by default, so we don't
6965 # have to do anything special.
6966 aix_use_runtimelinking=no
6967 exp_sym_flag='-Bexport'
6970 # If we're using GNU nm, then we don't want the "-C" option.
6971 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6972 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6973 _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'
6975 _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'
6977 aix_use_runtimelinking=no
6979 # Test if we are trying to use run time linking or normal
6980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6981 # need to do runtime linking.
6982 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6983 for ld_flag in $LDFLAGS; do
6984 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6985 aix_use_runtimelinking=yes
6992 exp_sym_flag='-bexport'
6993 no_entry_flag='-bnoentry'
6996 # When large executables or shared objects are built, AIX ld can
6997 # have problems creating the table of contents. If linking a library
6998 # or program results in "error TOC overflow" add -mminimal-toc to
6999 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7000 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7002 _LT_AC_TAGVAR(archive_cmds, $1)=''
7003 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7004 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7005 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7007 if test "$GCC" = yes; then
7008 case $host_os in aix4.[[012]]|aix4.[[012]].*)
7009 # We only want to do this on AIX 4.2 and lower, the check
7010 # below for broken collect2 doesn't work under 4.3+
7011 collect2name=`${CC} -print-prog-name=collect2`
7012 if test -f "$collect2name" && \
7013 strings "$collect2name" | grep resolve_lib_name >/dev/null
7015 # We have reworked collect2
7016 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7018 # We have old collect2
7019 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7020 # It fails to find uninstalled libraries when the uninstalled
7021 # path is not listed in the libpath. Setting hardcode_minus_L
7022 # to unsupported forces relinking
7023 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7024 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7025 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7029 shared_flag='-shared'
7030 if test "$aix_use_runtimelinking" = yes; then
7031 shared_flag="$shared_flag "'${wl}-G'
7035 if test "$host_cpu" = ia64; then
7036 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7037 # chokes on -Wl,-G. The following line is correct:
7040 if test "$aix_use_runtimelinking" = yes; then
7041 shared_flag='${wl}-G'
7043 shared_flag='${wl}-bM:SRE'
7048 # It seems that -bexpall does not export symbols beginning with
7049 # underscore (_), so it is better to generate a list of symbols to export.
7050 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7051 if test "$aix_use_runtimelinking" = yes; then
7052 # Warning - without using the other runtime loading flags (-brtl),
7053 # -berok will link without error, but may produce a broken library.
7054 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7055 # Determine the default libpath from the value encoded in an empty executable.
7056 _LT_AC_SYS_LIBPATH_AIX
7057 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7058 _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"
7060 if test "$host_cpu" = ia64; then
7061 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7062 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7063 _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"
7065 # Determine the default libpath from the value encoded in an empty executable.
7066 _LT_AC_SYS_LIBPATH_AIX
7067 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7068 # Warning - without using the other run time loading flags,
7069 # -berok will link without error, but may produce a broken library.
7070 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7071 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7072 # Exported symbols can be pulled into shared objects from archives
7073 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7074 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7075 # This is similar to how AIX traditionally builds its shared libraries.
7076 _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'
7082 _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)'
7083 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7084 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7085 # see comment about different semantics on the GNU ld section
7086 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7090 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7093 cygwin* | mingw* | pw32*)
7094 # When not using gcc, we currently assume that we are using
7095 # Microsoft Visual C++.
7096 # hardcode_libdir_flag_spec is actually meaningless, as there is
7097 # no search path for DLLs.
7098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7099 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7100 # Tell ltmain to make .lib files, not .a files.
7102 # Tell ltmain to make .dll files, not .so files.
7104 # FIXME: Setting linknames here is a bad hack.
7105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7106 # The linker will automatically build a .lib file if we build a DLL.
7107 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7108 # FIXME: Should let the user specify the lib program.
7109 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7110 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7111 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7114 darwin* | rhapsody*)
7116 rhapsody* | darwin1.[[012]])
7117 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7120 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7121 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7123 case ${MACOSX_DEPLOYMENT_TARGET} in
7125 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7128 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7134 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7135 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7136 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7137 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7138 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7139 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7140 if test "$GCC" = yes ; then
7141 output_verbose_link_cmd='echo'
7142 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7143 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7145 _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}'
7146 _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}'
7148 case $cc_basename in
7150 output_verbose_link_cmd='echo'
7151 _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'
7152 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7154 _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}'
7155 _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}'
7158 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7165 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7167 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7171 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7175 # support. Future versions do this automatically, but an explicit c++rt0.o
7176 # does not break anything, and helps significantly (at the cost of a little
7179 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7180 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7181 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7182 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7187 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7188 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7189 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7190 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7194 freebsd* | kfreebsd*-gnu | dragonfly*)
7195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7197 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7198 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7202 if test "$GCC" = yes; then
7203 _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'
7205 _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'
7207 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7208 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7209 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7211 # hardcode_minus_L: Not really in the search PATH,
7212 # but as the default location of the library.
7213 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7214 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7219 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7221 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7223 if test "$with_gnu_ld" = no; then
7224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7225 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7227 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7228 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7230 # hardcode_minus_L: Not really in the search PATH,
7231 # but as the default location of the library.
7232 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7240 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7243 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7246 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7252 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7258 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7262 if test "$with_gnu_ld" = no; then
7263 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7264 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7268 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7269 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7270 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7273 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7274 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7276 # hardcode_minus_L: Not really in the search PATH,
7277 # but as the default location of the library.
7278 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7284 irix5* | irix6* | nonstopux*)
7285 if test "$GCC" = yes; then
7286 _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'
7288 _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'
7289 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7291 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7292 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7293 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7298 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7300 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7302 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7303 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7304 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7308 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7310 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7311 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7312 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7316 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7317 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7319 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7320 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7321 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7322 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7325 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7326 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7327 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7330 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7331 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7338 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7339 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7340 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7341 _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'
7342 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7346 if test "$GCC" = yes; then
7347 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7348 _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'
7350 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7351 _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'
7353 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7354 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7357 osf4* | osf5*) # as osf3* with the addition of -msym flag
7358 if test "$GCC" = yes; then
7359 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7360 _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'
7361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7363 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7364 _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'
7365 _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~
7366 $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'
7368 # Both c and cxx compiler support -rpath directly
7369 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7371 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7375 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7376 if test "$GCC" = yes; then
7378 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7379 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7383 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7387 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7388 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7390 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7392 # The compiler driver will combine linker options so we
7393 # cannot just pass the convience library names through
7394 # without $wl, iff we do not link with $LD.
7395 # Luckily, gcc supports the same syntax we need for Sun Studio.
7396 # Supported since Solaris 2.6 (maybe 2.5.1?)
7399 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7401 _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' ;;
7404 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7408 if test "x$host_vendor" = xsequent; then
7409 # Use $CC to link under sequent, because it throws in some extra .o
7410 # files that make .init and .fini sections work.
7411 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7413 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7415 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7416 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7417 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7418 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7422 case $host_vendor in
7424 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7428 ## LD is ld it makes a PLAMLIB
7429 ## CC just makes a GrossModule.
7430 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7431 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7432 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7435 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7436 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7439 runpath_var='LD_RUN_PATH'
7440 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7444 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7445 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7446 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7450 if test -d /usr/nec; then
7451 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7453 runpath_var=LD_RUN_PATH
7454 hardcode_runpath_var=yes
7455 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7460 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7461 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7462 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7463 runpath_var='LD_RUN_PATH'
7465 if test "$GCC" = yes; then
7466 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7467 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7469 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7470 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7474 sysv5* | sco3.2v5* | sco5v6*)
7475 # Note: We can NOT use -z defs as we might desire, because we do not
7476 # link with -lc, and that would cause any symbols used from libc to
7477 # always be unresolved, which means just about no library would
7478 # ever link correctly. If we're not using GNU ld we use -z text
7479 # though, which does catch some bad symbols but isn't as heavy-handed
7481 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7482 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7483 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7484 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7485 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7486 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7487 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7488 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7489 runpath_var='LD_RUN_PATH'
7491 if test "$GCC" = yes; then
7492 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7493 _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'
7495 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7496 _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'
7501 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7503 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7507 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7512 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7513 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7516 # Do we need to explicitly link libc?
7518 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7520 # Assume -lc should be added
7521 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7523 if test "$enable_shared" = yes && test "$GCC" = yes; then
7524 case $_LT_AC_TAGVAR(archive_cmds, $1) in
7526 # FIXME: we may have to deal with multi-command sequences.
7529 # Test whether the compiler implicitly links with -lc since on some
7530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7531 # to ld, don't add -lc before -lgcc.
7532 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7539 libobjs=conftest.$ac_objext
7541 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7542 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7548 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7549 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7550 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7552 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7554 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7556 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7558 cat conftest.err 1>&5
7561 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7567 ])# AC_LIBTOOL_PROG_LD_SHLIBS
7570 # _LT_AC_FILE_LTDLL_C
7571 # -------------------
7572 # Be careful that the start marker always follows a newline.
7573 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7574 # /* ltdll.c starts here */
7575 # #define WIN32_LEAN_AND_MEAN
7576 # #include <windows.h>
7577 # #undef WIN32_LEAN_AND_MEAN
7578 # #include <stdio.h>
7580 # #ifndef __CYGWIN__
7581 # # ifdef __CYGWIN32__
7582 # # define __CYGWIN__ __CYGWIN32__
7586 # #ifdef __cplusplus
7589 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7590 # #ifdef __cplusplus
7595 # #include <cygwin/cygwin_dll.h>
7596 # DECLARE_CYGWIN_DLL( DllMain );
7598 # HINSTANCE __hDllInstance_base;
7601 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7603 # __hDllInstance_base = hInst;
7606 # /* ltdll.c ends here */
7607 ])# _LT_AC_FILE_LTDLL_C
7610 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7611 # ---------------------------------
7612 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7616 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7617 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7618 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7619 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7620 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7621 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7622 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7624 # This is just to silence aclocal about the macro not being used
7625 ifelse([AC_DISABLE_FAST_INSTALL])
7627 AC_DEFUN([LT_AC_PROG_GCJ],
7628 [AC_CHECK_TOOL(GCJ, gcj, no)
7629 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7633 AC_DEFUN([LT_AC_PROG_RC],
7634 [AC_CHECK_TOOL(RC, windres, no)
7637 # NOTE: This macro has been submitted for inclusion into #
7638 # GNU Autoconf as AC_PROG_SED. When it is available in #
7639 # a released version of Autoconf we should remove this #
7640 # macro and use it instead. #
7643 # Check for a fully-functional sed program, that truncates
7644 # as few characters as possible. Prefer GNU sed if found.
7645 AC_DEFUN([LT_AC_PROG_SED],
7646 [AC_MSG_CHECKING([for a sed that does not truncate output])
7647 AC_CACHE_VAL(lt_cv_path_SED,
7648 [# Loop through the user's path and test for sed and gsed.
7649 # Then use that list of sed's as ones to test for truncation.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for lt_ac_prog in sed gsed; do
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7658 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7665 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7666 # along with /bin/sed that truncates output.
7667 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7668 test ! -f $lt_ac_sed && continue
7669 cat /dev/null > conftest.in
7671 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7672 # Check for GNU sed and select it if it is found.
7673 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7674 lt_cv_path_SED=$lt_ac_sed
7678 cat conftest.in conftest.in >conftest.tmp
7679 mv conftest.tmp conftest.in
7680 cp conftest.in conftest.nl
7682 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7683 cmp -s conftest.out conftest.nl || break
7684 # 10000 chars as input seems more than enough
7685 test $lt_ac_count -gt 10 && break
7686 lt_ac_count=`expr $lt_ac_count + 1`
7687 if test $lt_ac_count -gt $lt_ac_max; then
7688 lt_ac_max=$lt_ac_count
7689 lt_cv_path_SED=$lt_ac_sed
7695 AC_MSG_RESULT([$SED])
7698 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7701 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7702 # Free Software Foundation, Inc.
7704 # This file is free software; the Free Software Foundation
7705 # gives unlimited permission to copy and/or distribute it,
7706 # with or without modifications, as long as this notice is preserved.
7710 AC_DEFUN([AM_MAINTAINER_MODE],
7711 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7712 dnl maintainer-mode is disabled by default
7713 AC_ARG_ENABLE(maintainer-mode,
7714 [ --enable-maintainer-mode enable make rules and dependencies not useful
7715 (and sometimes confusing) to the casual installer],
7716 USE_MAINTAINER_MODE=$enableval,
7717 USE_MAINTAINER_MODE=no)
7718 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7719 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7720 MAINT=$MAINTAINER_MODE_TRUE
7725 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7727 # Check to see how 'make' treats includes. -*- Autoconf -*-
7729 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7731 # This file is free software; the Free Software Foundation
7732 # gives unlimited permission to copy and/or distribute it,
7733 # with or without modifications, as long as this notice is preserved.
7739 # Check to see how make treats includes.
7740 AC_DEFUN([AM_MAKE_INCLUDE],
7741 [am_make=${MAKE-make}
7742 cat > confinc << 'END'
7747 # If we don't find an include directive, just comment out the code.
7748 AC_MSG_CHECKING([for style of include used by $am_make])
7752 # First try GNU make style include.
7753 echo "include confinc" > confmf
7754 # We grep out `Entering directory' and `Leaving directory'
7755 # messages which can occur if `w' ends up in MAKEFLAGS.
7756 # In particular we don't look at `^make:' because GNU make might
7757 # be invoked under some other name (usually "gmake"), in which
7758 # case it prints its new name instead of `make'.
7759 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7764 # Now try BSD make style include.
7765 if test "$am__include" = "#"; then
7766 echo '.include "confinc"' > confmf
7767 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7768 am__include=.include
7773 AC_SUBST([am__include])
7774 AC_SUBST([am__quote])
7775 AC_MSG_RESULT([$_am_result])
7776 rm -f confinc confmf
7779 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7781 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7782 # Free Software Foundation, Inc.
7784 # This file is free software; the Free Software Foundation
7785 # gives unlimited permission to copy and/or distribute it,
7786 # with or without modifications, as long as this notice is preserved.
7790 # AM_MISSING_PROG(NAME, PROGRAM)
7791 # ------------------------------
7792 AC_DEFUN([AM_MISSING_PROG],
7793 [AC_REQUIRE([AM_MISSING_HAS_RUN])
7794 $1=${$1-"${am_missing_run}$2"}
7798 # AM_MISSING_HAS_RUN
7799 # ------------------
7800 # Define MISSING if not defined so far and test if it supports --run.
7801 # If it does, set am_missing_run to use it, otherwise, to nothing.
7802 AC_DEFUN([AM_MISSING_HAS_RUN],
7803 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7804 AC_REQUIRE_AUX_FILE([missing])dnl
7805 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7806 # Use eval to expand $SHELL
7807 if eval "$MISSING --run true"; then
7808 am_missing_run="$MISSING --run "
7811 AC_MSG_WARN([`missing' script is too old or missing])
7815 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7817 # This file is free software; the Free Software Foundation
7818 # gives unlimited permission to copy and/or distribute it,
7819 # with or without modifications, as long as this notice is preserved.
7823 # Check for `mkdir -p'.
7824 AC_DEFUN([AM_PROG_MKDIR_P],
7825 [AC_PREREQ([2.60])dnl
7826 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7827 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7828 dnl while keeping a definition of mkdir_p for backward compatibility.
7829 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7830 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7831 dnl Makefile.ins that do not define MKDIR_P, so we do our own
7832 dnl adjustment using top_builddir (which is defined more often than
7834 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7836 [[\\/$]]* | ?:[[\\/]]*) ;;
7837 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7841 # Helper functions for option handling. -*- Autoconf -*-
7843 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7845 # This file is free software; the Free Software Foundation
7846 # gives unlimited permission to copy and/or distribute it,
7847 # with or without modifications, as long as this notice is preserved.
7851 # _AM_MANGLE_OPTION(NAME)
7852 # -----------------------
7853 AC_DEFUN([_AM_MANGLE_OPTION],
7854 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7856 # _AM_SET_OPTION(NAME)
7857 # ------------------------------
7858 # Set option NAME. Presently that only means defining a flag for this option.
7859 AC_DEFUN([_AM_SET_OPTION],
7860 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7862 # _AM_SET_OPTIONS(OPTIONS)
7863 # ----------------------------------
7864 # OPTIONS is a space-separated list of Automake options.
7865 AC_DEFUN([_AM_SET_OPTIONS],
7866 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7868 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7869 # -------------------------------------------
7870 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7871 AC_DEFUN([_AM_IF_OPTION],
7872 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7874 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7876 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7877 # Free Software Foundation, Inc.
7879 # This file is free software; the Free Software Foundation
7880 # gives unlimited permission to copy and/or distribute it,
7881 # with or without modifications, as long as this notice is preserved.
7887 AC_DEFUN([AM_SANITY_CHECK],
7888 [AC_MSG_CHECKING([whether build environment is sane])
7891 echo timestamp > conftest.file
7892 # Do `set' in a subshell so we don't clobber the current shell's
7893 # arguments. Must try -L first in case configure is actually a
7894 # symlink; some systems play weird games with the mod time of symlinks
7895 # (eg FreeBSD returns the mod time of the symlink's containing
7898 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7899 if test "$[*]" = "X"; then
7901 set X `ls -t $srcdir/configure conftest.file`
7904 if test "$[*]" != "X $srcdir/configure conftest.file" \
7905 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7907 # If neither matched, then we have a broken ls. This can happen
7908 # if, for instance, CONFIG_SHELL is bash and it inherits a
7909 # broken ls alias from the environment. This has actually
7910 # happened. Such a system could not be considered "sane".
7911 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7912 alias in your environment])
7915 test "$[2]" = conftest.file
7921 AC_MSG_ERROR([newly created file is older than distributed files!
7922 Check your system clock])
7924 AC_MSG_RESULT(yes)])
7926 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7928 # This file is free software; the Free Software Foundation
7929 # gives unlimited permission to copy and/or distribute it,
7930 # with or without modifications, as long as this notice is preserved.
7932 # AM_PROG_INSTALL_STRIP
7933 # ---------------------
7934 # One issue with vendor `install' (even GNU) is that you can't
7935 # specify the program used to strip binaries. This is especially
7936 # annoying in cross-compiling environments, where the build's strip
7937 # is unlikely to handle the host's binaries.
7938 # Fortunately install-sh will honor a STRIPPROG variable, so we
7939 # always use install-sh in `make install-strip', and initialize
7940 # STRIPPROG with the value of the STRIP variable (set by the user).
7941 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7942 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7943 # Installed binaries are usually stripped using `strip' when the user
7944 # run `make install-strip'. However `strip' might not be the right
7945 # tool to use in cross-compilation environments, therefore Automake
7946 # will honor the `STRIP' environment variable to overrule this program.
7947 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7948 if test "$cross_compiling" != no; then
7949 AC_CHECK_TOOL([STRIP], [strip], :)
7951 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7952 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7954 # Copyright (C) 2006 Free Software Foundation, Inc.
7956 # This file is free software; the Free Software Foundation
7957 # gives unlimited permission to copy and/or distribute it,
7958 # with or without modifications, as long as this notice is preserved.
7960 # _AM_SUBST_NOTMAKE(VARIABLE)
7961 # ---------------------------
7962 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7963 # This macro is traced by Automake.
7964 AC_DEFUN([_AM_SUBST_NOTMAKE])
7966 # Check how to create a tarball. -*- Autoconf -*-
7968 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7970 # This file is free software; the Free Software Foundation
7971 # gives unlimited permission to copy and/or distribute it,
7972 # with or without modifications, as long as this notice is preserved.
7976 # _AM_PROG_TAR(FORMAT)
7977 # --------------------
7978 # Check how to create a tarball in format FORMAT.
7979 # FORMAT should be one of `v7', `ustar', or `pax'.
7981 # Substitute a variable $(am__tar) that is a command
7982 # writing to stdout a FORMAT-tarball containing the directory
7984 # tardir=directory && $(am__tar) > result.tar
7986 # Substitute a variable $(am__untar) that extract such
7987 # a tarball read from stdin.
7988 # $(am__untar) < result.tar
7989 AC_DEFUN([_AM_PROG_TAR],
7990 [# Always define AMTAR for backward compatibility.
7991 AM_MISSING_PROG([AMTAR], [tar])
7993 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7994 [m4_case([$1], [ustar],, [pax],,
7995 [m4_fatal([Unknown tar format])])
7996 AC_MSG_CHECKING([how to create a $1 tar archive])
7997 # Loop over all known methods to create a tar archive until one works.
7998 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7999 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
8000 # Do not fold the above two line into one, because Tru64 sh and
8001 # Solaris sh will not grok spaces in the rhs of `-'.
8002 for _am_tool in $_am_tools
8006 for _am_tar in tar gnutar gtar;
8008 AM_RUN_LOG([$_am_tar --version]) && break
8010 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8011 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8012 am__untar="$_am_tar -xf -"
8015 # Must skip GNU tar: if it does not support --format= it doesn't create
8016 # ustar tarball either.
8017 (tar --version) >/dev/null 2>&1 && continue
8018 am__tar='tar chf - "$$tardir"'
8019 am__tar_='tar chf - "$tardir"'
8020 am__untar='tar xf -'
8023 am__tar='pax -L -x $1 -w "$$tardir"'
8024 am__tar_='pax -L -x $1 -w "$tardir"'
8028 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8029 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8030 am__untar='cpio -i -H $1 -d'
8039 # If the value was cached, stop now. We just wanted to have am__tar
8040 # and am__untar set.
8041 test -n "${am_cv_prog_tar_$1}" && break
8043 # tar/untar a dummy directory, and stop if the command works
8046 echo GrepMe > conftest.dir/file
8047 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8049 if test -s conftest.tar; then
8050 AM_RUN_LOG([$am__untar <conftest.tar])
8051 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8056 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8057 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8059 AC_SUBST([am__untar])
8062 m4_include([acinclude.m4])