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