1# generated automatically by aclocal 1.10.2 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 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_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 17[m4_warning([this file was generated for autoconf 2.63. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# Copyright (C) 1995-2002 Free Software Foundation, Inc. 23# Copyright (C) 2001-2003,2004 Red Hat, Inc. 24# 25# This file is free software, distributed under the terms of the GNU 26# General Public License. As a special exception to the GNU General 27# Public License, this file may be distributed as part of a program 28# that contains a configuration script generated by Autoconf, under 29# the same distribution terms as the rest of that program. 30# 31# This file can be copied and used freely without restrictions. It can 32# be used in projects which are not available under the GNU Public License 33# but which still want to provide support for the GNU gettext functionality. 34# 35# Macro to add for using GNU gettext. 36# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 37# 38# Modified to never use included libintl. 39# Owen Taylor <otaylor@redhat.com>, 12/15/1998 40# 41# Major rework to remove unused code 42# Owen Taylor <otaylor@redhat.com>, 12/11/2002 43# 44# Added better handling of ALL_LINGUAS from GNU gettext version 45# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 46# 47# Modified to require ngettext 48# Matthias Clasen <mclasen@redhat.com> 08/06/2004 49# 50# We need this here as well, since someone might use autoconf-2.5x 51# to configure GLib then an older version to configure a package 52# using AM_GLIB_GNU_GETTEXT 53AC_PREREQ(2.53) 54 55dnl 56dnl We go to great lengths to make sure that aclocal won't 57dnl try to pull in the installed version of these macros 58dnl when running aclocal in the glib directory. 59dnl 60m4_copy([AC_DEFUN],[glib_DEFUN]) 61m4_copy([AC_REQUIRE],[glib_REQUIRE]) 62dnl 63dnl At the end, if we're not within glib, we'll define the public 64dnl definitions in terms of our private definitions. 65dnl 66 67# GLIB_LC_MESSAGES 68#-------------------- 69glib_DEFUN([GLIB_LC_MESSAGES], 70 [AC_CHECK_HEADERS([locale.h]) 71 if test $ac_cv_header_locale_h = yes; then 72 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 73 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 74 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 75 if test $am_cv_val_LC_MESSAGES = yes; then 76 AC_DEFINE(HAVE_LC_MESSAGES, 1, 77 [Define if your <locale.h> file defines LC_MESSAGES.]) 78 fi 79 fi]) 80 81# GLIB_PATH_PROG_WITH_TEST 82#---------------------------- 83dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 84dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 85glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 86[# Extract the first word of "$2", so it can be a program name with args. 87set dummy $2; ac_word=[$]2 88AC_MSG_CHECKING([for $ac_word]) 89AC_CACHE_VAL(ac_cv_path_$1, 90[case "[$]$1" in 91 /*) 92 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 93 ;; 94 *) 95 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 96 for ac_dir in ifelse([$5], , $PATH, [$5]); do 97 test -z "$ac_dir" && ac_dir=. 98 if test -f $ac_dir/$ac_word; then 99 if [$3]; then 100 ac_cv_path_$1="$ac_dir/$ac_word" 101 break 102 fi 103 fi 104 done 105 IFS="$ac_save_ifs" 106dnl If no 4th arg is given, leave the cache variable unset, 107dnl so AC_PATH_PROGS will keep looking. 108ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 109])dnl 110 ;; 111esac])dnl 112$1="$ac_cv_path_$1" 113if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 114 AC_MSG_RESULT([$]$1) 115else 116 AC_MSG_RESULT(no) 117fi 118AC_SUBST($1)dnl 119]) 120 121# GLIB_WITH_NLS 122#----------------- 123glib_DEFUN([GLIB_WITH_NLS], 124 dnl NLS is obligatory 125 [USE_NLS=yes 126 AC_SUBST(USE_NLS) 127 128 gt_cv_have_gettext=no 129 130 CATOBJEXT=NONE 131 XGETTEXT=: 132 INTLLIBS= 133 134 AC_CHECK_HEADER(libintl.h, 135 [gt_cv_func_dgettext_libintl="no" 136 libintl_extra_libs="" 137 138 # 139 # First check in libc 140 # 141 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 142 [AC_TRY_LINK([ 143#include <libintl.h> 144], 145 [return !ngettext ("","", 1)], 146 gt_cv_func_ngettext_libc=yes, 147 gt_cv_func_ngettext_libc=no) 148 ]) 149 150 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 151 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 152 [AC_TRY_LINK([ 153#include <libintl.h> 154], 155 [return !dgettext ("","")], 156 gt_cv_func_dgettext_libc=yes, 157 gt_cv_func_dgettext_libc=no) 158 ]) 159 fi 160 161 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 162 AC_CHECK_FUNCS(bind_textdomain_codeset) 163 fi 164 165 # 166 # If we don't have everything we want, check in libintl 167 # 168 if test "$gt_cv_func_dgettext_libc" != "yes" \ 169 || test "$gt_cv_func_ngettext_libc" != "yes" \ 170 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 171 172 AC_CHECK_LIB(intl, bindtextdomain, 173 [AC_CHECK_LIB(intl, ngettext, 174 [AC_CHECK_LIB(intl, dgettext, 175 gt_cv_func_dgettext_libintl=yes)])]) 176 177 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 178 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 179 AC_MSG_RESULT([]) 180 AC_CHECK_LIB(intl, ngettext, 181 [AC_CHECK_LIB(intl, dcgettext, 182 [gt_cv_func_dgettext_libintl=yes 183 libintl_extra_libs=-liconv], 184 :,-liconv)], 185 :,-liconv) 186 fi 187 188 # 189 # If we found libintl, then check in it for bind_textdomain_codeset(); 190 # we'll prefer libc if neither have bind_textdomain_codeset(), 191 # and both have dgettext and ngettext 192 # 193 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 194 glib_save_LIBS="$LIBS" 195 LIBS="$LIBS -lintl $libintl_extra_libs" 196 unset ac_cv_func_bind_textdomain_codeset 197 AC_CHECK_FUNCS(bind_textdomain_codeset) 198 LIBS="$glib_save_LIBS" 199 200 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 201 gt_cv_func_dgettext_libc=no 202 else 203 if test "$gt_cv_func_dgettext_libc" = "yes" \ 204 && test "$gt_cv_func_ngettext_libc" = "yes"; then 205 gt_cv_func_dgettext_libintl=no 206 fi 207 fi 208 fi 209 fi 210 211 if test "$gt_cv_func_dgettext_libc" = "yes" \ 212 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 213 gt_cv_have_gettext=yes 214 fi 215 216 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 217 INTLLIBS="-lintl $libintl_extra_libs" 218 fi 219 220 if test "$gt_cv_have_gettext" = "yes"; then 221 AC_DEFINE(HAVE_GETTEXT,1, 222 [Define if the GNU gettext() function is already present or preinstalled.]) 223 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 224 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 225 if test "$MSGFMT" != "no"; then 226 glib_save_LIBS="$LIBS" 227 LIBS="$LIBS $INTLLIBS" 228 AC_CHECK_FUNCS(dcgettext) 229 MSGFMT_OPTS= 230 AC_MSG_CHECKING([if msgfmt accepts -c]) 231 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ 232msgid "" 233msgstr "" 234"Content-Type: text/plain; charset=UTF-8\n" 235"Project-Id-Version: test 1.0\n" 236"PO-Revision-Date: 2007-02-15 12:01+0100\n" 237"Last-Translator: test <foo@bar.xx>\n" 238"Language-Team: C <LL@li.org>\n" 239"MIME-Version: 1.0\n" 240"Content-Transfer-Encoding: 8bit\n" 241], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) 242 AC_SUBST(MSGFMT_OPTS) 243 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 244 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 245 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 246 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 247 return _nl_msg_cat_cntr], 248 [CATOBJEXT=.gmo 249 DATADIRNAME=share], 250 [case $host in 251 *-*-solaris*) 252 dnl On Solaris, if bind_textdomain_codeset is in libc, 253 dnl GNU format message catalog is always supported, 254 dnl since both are added to the libc all together. 255 dnl Hence, we'd like to go with DATADIRNAME=share and 256 dnl and CATOBJEXT=.gmo in this case. 257 AC_CHECK_FUNC(bind_textdomain_codeset, 258 [CATOBJEXT=.gmo 259 DATADIRNAME=share], 260 [CATOBJEXT=.mo 261 DATADIRNAME=lib]) 262 ;; 263 *) 264 CATOBJEXT=.mo 265 DATADIRNAME=lib 266 ;; 267 esac]) 268 LIBS="$glib_save_LIBS" 269 INSTOBJEXT=.mo 270 else 271 gt_cv_have_gettext=no 272 fi 273 fi 274 ]) 275 276 if test "$gt_cv_have_gettext" = "yes" ; then 277 AC_DEFINE(ENABLE_NLS, 1, 278 [always defined to indicate that i18n is enabled]) 279 fi 280 281 dnl Test whether we really found GNU xgettext. 282 if test "$XGETTEXT" != ":"; then 283 dnl If it is not GNU xgettext we define it as : so that the 284 dnl Makefiles still can work. 285 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 286 : ; 287 else 288 AC_MSG_RESULT( 289 [found xgettext program is not GNU xgettext; ignore it]) 290 XGETTEXT=":" 291 fi 292 fi 293 294 # We need to process the po/ directory. 295 POSUB=po 296 297 AC_OUTPUT_COMMANDS( 298 [case "$CONFIG_FILES" in *po/Makefile.in*) 299 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 300 esac]) 301 302 dnl These rules are solely for the distribution goal. While doing this 303 dnl we only have to keep exactly one list of the available catalogs 304 dnl in configure.in. 305 for lang in $ALL_LINGUAS; do 306 GMOFILES="$GMOFILES $lang.gmo" 307 POFILES="$POFILES $lang.po" 308 done 309 310 dnl Make all variables we use known to autoconf. 311 AC_SUBST(CATALOGS) 312 AC_SUBST(CATOBJEXT) 313 AC_SUBST(DATADIRNAME) 314 AC_SUBST(GMOFILES) 315 AC_SUBST(INSTOBJEXT) 316 AC_SUBST(INTLLIBS) 317 AC_SUBST(PO_IN_DATADIR_TRUE) 318 AC_SUBST(PO_IN_DATADIR_FALSE) 319 AC_SUBST(POFILES) 320 AC_SUBST(POSUB) 321 ]) 322 323# AM_GLIB_GNU_GETTEXT 324# ------------------- 325# Do checks necessary for use of gettext. If a suitable implementation 326# of gettext is found in either in libintl or in the C library, 327# it will set INTLLIBS to the libraries needed for use of gettext 328# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 329# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 330# on various variables needed by the Makefile.in.in installed by 331# glib-gettextize. 332dnl 333glib_DEFUN([GLIB_GNU_GETTEXT], 334 [AC_REQUIRE([AC_PROG_CC])dnl 335 AC_REQUIRE([AC_HEADER_STDC])dnl 336 337 GLIB_LC_MESSAGES 338 GLIB_WITH_NLS 339 340 if test "$gt_cv_have_gettext" = "yes"; then 341 if test "x$ALL_LINGUAS" = "x"; then 342 LINGUAS= 343 else 344 AC_MSG_CHECKING(for catalogs to be installed) 345 NEW_LINGUAS= 346 for presentlang in $ALL_LINGUAS; do 347 useit=no 348 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 349 desiredlanguages="$LINGUAS" 350 else 351 desiredlanguages="$ALL_LINGUAS" 352 fi 353 for desiredlang in $desiredlanguages; do 354 # Use the presentlang catalog if desiredlang is 355 # a. equal to presentlang, or 356 # b. a variant of presentlang (because in this case, 357 # presentlang can be used as a fallback for messages 358 # which are not translated in the desiredlang catalog). 359 case "$desiredlang" in 360 "$presentlang"*) useit=yes;; 361 esac 362 done 363 if test $useit = yes; then 364 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 365 fi 366 done 367 LINGUAS=$NEW_LINGUAS 368 AC_MSG_RESULT($LINGUAS) 369 fi 370 371 dnl Construct list of names of catalog files to be constructed. 372 if test -n "$LINGUAS"; then 373 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 374 fi 375 fi 376 377 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 378 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 379 dnl Try to locate is. 380 MKINSTALLDIRS= 381 if test -n "$ac_aux_dir"; then 382 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 383 fi 384 if test -z "$MKINSTALLDIRS"; then 385 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 386 fi 387 AC_SUBST(MKINSTALLDIRS) 388 389 dnl Generate list of files to be processed by xgettext which will 390 dnl be included in po/Makefile. 391 test -d po || mkdir po 392 if test "x$srcdir" != "x."; then 393 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 394 posrcprefix="$srcdir/" 395 else 396 posrcprefix="../$srcdir/" 397 fi 398 else 399 posrcprefix="../" 400 fi 401 rm -f po/POTFILES 402 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 403 < $srcdir/po/POTFILES.in > po/POTFILES 404 ]) 405 406# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 407# ------------------------------- 408# Define VARIABLE to the location where catalog files will 409# be installed by po/Makefile. 410glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 411[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 412glib_save_prefix="$prefix" 413glib_save_exec_prefix="$exec_prefix" 414glib_save_datarootdir="$datarootdir" 415test "x$prefix" = xNONE && prefix=$ac_default_prefix 416test "x$exec_prefix" = xNONE && exec_prefix=$prefix 417datarootdir=`eval echo "${datarootdir}"` 418if test "x$CATOBJEXT" = "x.mo" ; then 419 localedir=`eval echo "${libdir}/locale"` 420else 421 localedir=`eval echo "${datadir}/locale"` 422fi 423prefix="$glib_save_prefix" 424exec_prefix="$glib_save_exec_prefix" 425datarootdir="$glib_save_datarootdir" 426AC_DEFINE_UNQUOTED($1, "$localedir", 427 [Define the location where the catalogs will be installed]) 428]) 429 430dnl 431dnl Now the definitions that aclocal will find 432dnl 433ifdef(glib_configure_in,[],[ 434AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 435AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 436])dnl 437 438# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 439# 440# Create a temporary file with TEST-FILE as its contents and pass the 441# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with 442# 0 and perform ACTION-IF-FAIL for any other exit status. 443AC_DEFUN([GLIB_RUN_PROG], 444[cat >conftest.foo <<_ACEOF 445$2 446_ACEOF 447if AC_RUN_LOG([$1 conftest.foo]); then 448 m4_ifval([$3], [$3], [:]) 449m4_ifvaln([$4], [else $4])dnl 450echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD 451sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 452fi]) 453 454 455dnl -*- mode: autoconf -*- 456 457# serial 1 458 459dnl Usage: 460dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) 461AC_DEFUN([GTK_DOC_CHECK], 462[ 463 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first 464 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first 465 dnl for overriding the documentation installation directory 466 AC_ARG_WITH([html-dir], 467 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, 468 [with_html_dir='${datadir}/gtk-doc/html']) 469 HTML_DIR="$with_html_dir" 470 AC_SUBST([HTML_DIR]) 471 472 dnl enable/disable documentation building 473 AC_ARG_ENABLE([gtk-doc], 474 AS_HELP_STRING([--enable-gtk-doc], 475 [use gtk-doc to build documentation [[default=no]]]),, 476 [enable_gtk_doc=no]) 477 478 if test x$enable_gtk_doc = xyes; then 479 ifelse([$1],[], 480 [PKG_CHECK_EXISTS([gtk-doc],, 481 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], 482 [PKG_CHECK_EXISTS([gtk-doc >= $1],, 483 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))]) 484 fi 485 486 AC_MSG_CHECKING([whether to build gtk-doc documentation]) 487 AC_MSG_RESULT($enable_gtk_doc) 488 489 AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,) 490 491 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) 492 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) 493]) 494 495 496dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 497# serial 40 IT_PROG_INTLTOOL 498AC_DEFUN([IT_PROG_INTLTOOL], [ 499AC_PREREQ([2.50])dnl 500AC_REQUIRE([AM_NLS])dnl 501 502case "$am__api_version" in 503 1.[01234]) 504 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) 505 ;; 506 *) 507 ;; 508esac 509 510if test -n "$1"; then 511 AC_MSG_CHECKING([for intltool >= $1]) 512 513 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 514 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 515 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 516 ] 517 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) 518 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 519 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) 520fi 521 522AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) 523AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) 524AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) 525if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 526 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) 527fi 528 529 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 530INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 531 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 532 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 533 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' 534 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 535 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 536 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 537INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 538 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 539 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 540 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 541 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 542 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 543 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 544 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 545 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 546 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 547 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 548 549_IT_SUBST(INTLTOOL_DESKTOP_RULE) 550_IT_SUBST(INTLTOOL_DIRECTORY_RULE) 551_IT_SUBST(INTLTOOL_KEYS_RULE) 552_IT_SUBST(INTLTOOL_PROP_RULE) 553_IT_SUBST(INTLTOOL_OAF_RULE) 554_IT_SUBST(INTLTOOL_PONG_RULE) 555_IT_SUBST(INTLTOOL_SERVER_RULE) 556_IT_SUBST(INTLTOOL_SHEET_RULE) 557_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) 558_IT_SUBST(INTLTOOL_UI_RULE) 559_IT_SUBST(INTLTOOL_XAM_RULE) 560_IT_SUBST(INTLTOOL_KBD_RULE) 561_IT_SUBST(INTLTOOL_XML_RULE) 562_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) 563_IT_SUBST(INTLTOOL_CAVES_RULE) 564_IT_SUBST(INTLTOOL_SCHEMAS_RULE) 565_IT_SUBST(INTLTOOL_THEME_RULE) 566_IT_SUBST(INTLTOOL_SERVICE_RULE) 567_IT_SUBST(INTLTOOL_POLICY_RULE) 568 569# Check the gettext tools to make sure they are GNU 570AC_PATH_PROG(XGETTEXT, xgettext) 571AC_PATH_PROG(MSGMERGE, msgmerge) 572AC_PATH_PROG(MSGFMT, msgfmt) 573AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 574if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 575 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 576fi 577xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 578mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 579mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 580if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 581 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 582fi 583 584AC_PATH_PROG(INTLTOOL_PERL, perl) 585if test -z "$INTLTOOL_PERL"; then 586 AC_MSG_ERROR([perl not found]) 587fi 588AC_MSG_CHECKING([for perl >= 5.8.1]) 589$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 590if test $? -ne 0; then 591 AC_MSG_ERROR([perl 5.8.1 is required for intltool]) 592else 593 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" 594 AC_MSG_RESULT([$IT_PERL_VERSION]) 595fi 596if test "x$2" != "xno-xml"; then 597 AC_MSG_CHECKING([for XML::Parser]) 598 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 599 AC_MSG_RESULT([ok]) 600 else 601 AC_MSG_ERROR([XML::Parser perl module is required for intltool]) 602 fi 603fi 604 605# Substitute ALL_LINGUAS so we can use it in po/Makefile 606AC_SUBST(ALL_LINGUAS) 607 608# Set DATADIRNAME correctly if it is not set yet 609# (copied from glib-gettext.m4) 610if test -z "$DATADIRNAME"; then 611 AC_LINK_IFELSE( 612 [AC_LANG_PROGRAM([[]], 613 [[extern int _nl_msg_cat_cntr; 614 return _nl_msg_cat_cntr]])], 615 [DATADIRNAME=share], 616 [case $host in 617 *-*-solaris*) 618 dnl On Solaris, if bind_textdomain_codeset is in libc, 619 dnl GNU format message catalog is always supported, 620 dnl since both are added to the libc all together. 621 dnl Hence, we'd like to go with DATADIRNAME=share 622 dnl in this case. 623 AC_CHECK_FUNC(bind_textdomain_codeset, 624 [DATADIRNAME=share], [DATADIRNAME=lib]) 625 ;; 626 *) 627 [DATADIRNAME=lib] 628 ;; 629 esac]) 630fi 631AC_SUBST(DATADIRNAME) 632 633IT_PO_SUBDIR([po]) 634 635]) 636 637 638# IT_PO_SUBDIR(DIRNAME) 639# --------------------- 640# All po subdirs have to be declared with this macro; the subdir "po" is 641# declared by IT_PROG_INTLTOOL. 642# 643AC_DEFUN([IT_PO_SUBDIR], 644[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. 645dnl 646dnl The following CONFIG_COMMANDS should be exetuted at the very end 647dnl of config.status. 648AC_CONFIG_COMMANDS_PRE([ 649 AC_CONFIG_COMMANDS([$1/stamp-it], [ 650 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then 651 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) 652 fi 653 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" 654 >"$1/stamp-it.tmp" 655 [sed '/^#/d 656 s/^[[].*] *// 657 /^[ ]*$/d 658 '"s|^| $ac_top_srcdir/|" \ 659 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" 660 ] 661 [sed '/^POTFILES =/,/[^\\]$/ { 662 /^POTFILES =/!d 663 r $1/POTFILES 664 } 665 ' "$1/Makefile.in" >"$1/Makefile"] 666 rm -f "$1/Makefile.tmp" 667 mv "$1/stamp-it.tmp" "$1/stamp-it" 668 ]) 669])dnl 670]) 671 672# _IT_SUBST(VARIABLE) 673# ------------------- 674# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST 675# 676AC_DEFUN([_IT_SUBST], 677[ 678AC_SUBST([$1]) 679m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) 680] 681) 682 683# deprecated macros 684AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) 685# A hint is needed for aclocal from Automake <= 1.9.4: 686# AC_DEFUN([AC_PROG_INTLTOOL], ...) 687 688 689# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 690# 691# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 692# 2006, 2007, 2008 Free Software Foundation, Inc. 693# Written by Gordon Matzigkeit, 1996 694# 695# This file is free software; the Free Software Foundation gives 696# unlimited permission to copy and/or distribute it, with or without 697# modifications, as long as this notice is preserved. 698 699m4_define([_LT_COPYING], [dnl 700# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 701# 2006, 2007, 2008 Free Software Foundation, Inc. 702# Written by Gordon Matzigkeit, 1996 703# 704# This file is part of GNU Libtool. 705# 706# GNU Libtool is free software; you can redistribute it and/or 707# modify it under the terms of the GNU General Public License as 708# published by the Free Software Foundation; either version 2 of 709# the License, or (at your option) any later version. 710# 711# As a special exception to the GNU General Public License, 712# if you distribute this file as part of a program or library that 713# is built using GNU Libtool, you may include this file under the 714# same distribution terms that you use for the rest of that program. 715# 716# GNU Libtool is distributed in the hope that it will be useful, 717# but WITHOUT ANY WARRANTY; without even the implied warranty of 718# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 719# GNU General Public License for more details. 720# 721# You should have received a copy of the GNU General Public License 722# along with GNU Libtool; see the file COPYING. If not, a copy 723# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 724# obtained by writing to the Free Software Foundation, Inc., 725# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 726]) 727 728# serial 56 LT_INIT 729 730 731# LT_PREREQ(VERSION) 732# ------------------ 733# Complain and exit if this libtool version is less that VERSION. 734m4_defun([LT_PREREQ], 735[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 736 [m4_default([$3], 737 [m4_fatal([Libtool version $1 or higher is required], 738 63)])], 739 [$2])]) 740 741 742# _LT_CHECK_BUILDDIR 743# ------------------ 744# Complain if the absolute build directory name contains unusual characters 745m4_defun([_LT_CHECK_BUILDDIR], 746[case `pwd` in 747 *\ * | *\ *) 748 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 749esac 750]) 751 752 753# LT_INIT([OPTIONS]) 754# ------------------ 755AC_DEFUN([LT_INIT], 756[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 757AC_BEFORE([$0], [LT_LANG])dnl 758AC_BEFORE([$0], [LT_OUTPUT])dnl 759AC_BEFORE([$0], [LTDL_INIT])dnl 760m4_require([_LT_CHECK_BUILDDIR])dnl 761 762dnl Autoconf doesn't catch unexpanded LT_ macros by default: 763m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 764m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 765dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 766dnl unless we require an AC_DEFUNed macro: 767AC_REQUIRE([LTOPTIONS_VERSION])dnl 768AC_REQUIRE([LTSUGAR_VERSION])dnl 769AC_REQUIRE([LTVERSION_VERSION])dnl 770AC_REQUIRE([LTOBSOLETE_VERSION])dnl 771m4_require([_LT_PROG_LTMAIN])dnl 772 773dnl Parse OPTIONS 774_LT_SET_OPTIONS([$0], [$1]) 775 776# This can be used to rebuild libtool when needed 777LIBTOOL_DEPS="$ltmain" 778 779# Always use our own libtool. 780LIBTOOL='$(SHELL) $(top_builddir)/libtool' 781AC_SUBST(LIBTOOL)dnl 782 783_LT_SETUP 784 785# Only expand once: 786m4_define([LT_INIT]) 787])# LT_INIT 788 789# Old names: 790AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 791AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 792dnl aclocal-1.4 backwards compatibility: 793dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 794dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 795 796 797# _LT_CC_BASENAME(CC) 798# ------------------- 799# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 800m4_defun([_LT_CC_BASENAME], 801[for cc_temp in $1""; do 802 case $cc_temp in 803 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 804 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 805 \-*) ;; 806 *) break;; 807 esac 808done 809cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 810]) 811 812 813# _LT_FILEUTILS_DEFAULTS 814# ---------------------- 815# It is okay to use these file commands and assume they have been set 816# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 817m4_defun([_LT_FILEUTILS_DEFAULTS], 818[: ${CP="cp -f"} 819: ${MV="mv -f"} 820: ${RM="rm -f"} 821])# _LT_FILEUTILS_DEFAULTS 822 823 824# _LT_SETUP 825# --------- 826m4_defun([_LT_SETUP], 827[AC_REQUIRE([AC_CANONICAL_HOST])dnl 828AC_REQUIRE([AC_CANONICAL_BUILD])dnl 829_LT_DECL([], [host_alias], [0], [The host system])dnl 830_LT_DECL([], [host], [0])dnl 831_LT_DECL([], [host_os], [0])dnl 832dnl 833_LT_DECL([], [build_alias], [0], [The build system])dnl 834_LT_DECL([], [build], [0])dnl 835_LT_DECL([], [build_os], [0])dnl 836dnl 837AC_REQUIRE([AC_PROG_CC])dnl 838AC_REQUIRE([LT_PATH_LD])dnl 839AC_REQUIRE([LT_PATH_NM])dnl 840dnl 841AC_REQUIRE([AC_PROG_LN_S])dnl 842test -z "$LN_S" && LN_S="ln -s" 843_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 844dnl 845AC_REQUIRE([LT_CMD_MAX_LEN])dnl 846_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 847_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 848dnl 849m4_require([_LT_FILEUTILS_DEFAULTS])dnl 850m4_require([_LT_CHECK_SHELL_FEATURES])dnl 851m4_require([_LT_CMD_RELOAD])dnl 852m4_require([_LT_CHECK_MAGIC_METHOD])dnl 853m4_require([_LT_CMD_OLD_ARCHIVE])dnl 854m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 855 856_LT_CONFIG_LIBTOOL_INIT([ 857# See if we are running on zsh, and set the options which allow our 858# commands through without removal of \ escapes INIT. 859if test -n "\${ZSH_VERSION+set}" ; then 860 setopt NO_GLOB_SUBST 861fi 862]) 863if test -n "${ZSH_VERSION+set}" ; then 864 setopt NO_GLOB_SUBST 865fi 866 867_LT_CHECK_OBJDIR 868 869m4_require([_LT_TAG_COMPILER])dnl 870_LT_PROG_ECHO_BACKSLASH 871 872case $host_os in 873aix3*) 874 # AIX sometimes has problems with the GCC collect2 program. For some 875 # reason, if we set the COLLECT_NAMES environment variable, the problems 876 # vanish in a puff of smoke. 877 if test "X${COLLECT_NAMES+set}" != Xset; then 878 COLLECT_NAMES= 879 export COLLECT_NAMES 880 fi 881 ;; 882esac 883 884# Sed substitution that helps us do robust quoting. It backslashifies 885# metacharacters that are still active within double-quoted strings. 886sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 887 888# Same as above, but do not quote variable references. 889double_quote_subst='s/\([["`\\]]\)/\\\1/g' 890 891# Sed substitution to delay expansion of an escaped shell variable in a 892# double_quote_subst'ed string. 893delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 894 895# Sed substitution to delay expansion of an escaped single quote. 896delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 897 898# Sed substitution to avoid accidental globbing in evaled expressions 899no_glob_subst='s/\*/\\\*/g' 900 901# Global variables: 902ofile=libtool 903can_build_shared=yes 904 905# All known linkers require a `.a' archive for static linking (except MSVC, 906# which needs '.lib'). 907libext=a 908 909with_gnu_ld="$lt_cv_prog_gnu_ld" 910 911old_CC="$CC" 912old_CFLAGS="$CFLAGS" 913 914# Set sane defaults for various variables 915test -z "$CC" && CC=cc 916test -z "$LTCC" && LTCC=$CC 917test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 918test -z "$LD" && LD=ld 919test -z "$ac_objext" && ac_objext=o 920 921_LT_CC_BASENAME([$compiler]) 922 923# Only perform the check for file, if the check method requires it 924test -z "$MAGIC_CMD" && MAGIC_CMD=file 925case $deplibs_check_method in 926file_magic*) 927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 928 _LT_PATH_MAGIC 929 fi 930 ;; 931esac 932 933# Use C for the default configuration in the libtool script 934LT_SUPPORTED_TAG([CC]) 935_LT_LANG_C_CONFIG 936_LT_LANG_DEFAULT_CONFIG 937_LT_CONFIG_COMMANDS 938])# _LT_SETUP 939 940 941# _LT_PROG_LTMAIN 942# --------------- 943# Note that this code is called both from `configure', and `config.status' 944# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 945# `config.status' has no value for ac_aux_dir unless we are using Automake, 946# so we pass a copy along to make sure it has a sensible value anyway. 947m4_defun([_LT_PROG_LTMAIN], 948[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 949_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 950ltmain="$ac_aux_dir/ltmain.sh" 951])# _LT_PROG_LTMAIN 952 953 954 955# So that we can recreate a full libtool script including additional 956# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 957# in macros and then make a single call at the end using the `libtool' 958# label. 959 960 961# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 962# ---------------------------------------- 963# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 964m4_define([_LT_CONFIG_LIBTOOL_INIT], 965[m4_ifval([$1], 966 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 967 [$1 968])])]) 969 970# Initialize. 971m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 972 973 974# _LT_CONFIG_LIBTOOL([COMMANDS]) 975# ------------------------------ 976# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 977m4_define([_LT_CONFIG_LIBTOOL], 978[m4_ifval([$1], 979 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 980 [$1 981])])]) 982 983# Initialize. 984m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 985 986 987# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 988# ----------------------------------------------------- 989m4_defun([_LT_CONFIG_SAVE_COMMANDS], 990[_LT_CONFIG_LIBTOOL([$1]) 991_LT_CONFIG_LIBTOOL_INIT([$2]) 992]) 993 994 995# _LT_FORMAT_COMMENT([COMMENT]) 996# ----------------------------- 997# Add leading comment marks to the start of each line, and a trailing 998# full-stop to the whole comment if one is not present already. 999m4_define([_LT_FORMAT_COMMENT], 1000[m4_ifval([$1], [ 1001m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 1002 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 1003)]) 1004 1005 1006 1007 1008 1009# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 1010# ------------------------------------------------------------------- 1011# CONFIGNAME is the name given to the value in the libtool script. 1012# VARNAME is the (base) name used in the configure script. 1013# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 1014# VARNAME. Any other value will be used directly. 1015m4_define([_LT_DECL], 1016[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 1017 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 1018 [m4_ifval([$1], [$1], [$2])]) 1019 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 1020 m4_ifval([$4], 1021 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 1022 lt_dict_add_subkey([lt_decl_dict], [$2], 1023 [tagged?], [m4_ifval([$5], [yes], [no])])]) 1024]) 1025 1026 1027# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 1028# -------------------------------------------------------- 1029m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 1030 1031 1032# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 1033# ------------------------------------------------ 1034m4_define([lt_decl_tag_varnames], 1035[_lt_decl_filter([tagged?], [yes], $@)]) 1036 1037 1038# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 1039# --------------------------------------------------------- 1040m4_define([_lt_decl_filter], 1041[m4_case([$#], 1042 [0], [m4_fatal([$0: too few arguments: $#])], 1043 [1], [m4_fatal([$0: too few arguments: $#: $1])], 1044 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 1045 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 1046 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 1047]) 1048 1049 1050# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 1051# -------------------------------------------------- 1052m4_define([lt_decl_quote_varnames], 1053[_lt_decl_filter([value], [1], $@)]) 1054 1055 1056# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 1057# --------------------------------------------------- 1058m4_define([lt_decl_dquote_varnames], 1059[_lt_decl_filter([value], [2], $@)]) 1060 1061 1062# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 1063# --------------------------------------------------- 1064m4_define([lt_decl_varnames_tagged], 1065[m4_assert([$# <= 2])dnl 1066_$0(m4_quote(m4_default([$1], [[, ]])), 1067 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 1068 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 1069m4_define([_lt_decl_varnames_tagged], 1070[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 1071 1072 1073# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 1074# ------------------------------------------------ 1075m4_define([lt_decl_all_varnames], 1076[_$0(m4_quote(m4_default([$1], [[, ]])), 1077 m4_if([$2], [], 1078 m4_quote(lt_decl_varnames), 1079 m4_quote(m4_shift($@))))[]dnl 1080]) 1081m4_define([_lt_decl_all_varnames], 1082[lt_join($@, lt_decl_varnames_tagged([$1], 1083 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 1084]) 1085 1086 1087# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 1088# ------------------------------------ 1089# Quote a variable value, and forward it to `config.status' so that its 1090# declaration there will have the same value as in `configure'. VARNAME 1091# must have a single quote delimited value for this to work. 1092m4_define([_LT_CONFIG_STATUS_DECLARE], 1093[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 1094 1095 1096# _LT_CONFIG_STATUS_DECLARATIONS 1097# ------------------------------ 1098# We delimit libtool config variables with single quotes, so when 1099# we write them to config.status, we have to be sure to quote all 1100# embedded single quotes properly. In configure, this macro expands 1101# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 1102# 1103# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 1104m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 1105[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 1106 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 1107 1108 1109# _LT_LIBTOOL_TAGS 1110# ---------------- 1111# Output comment and list of tags supported by the script 1112m4_defun([_LT_LIBTOOL_TAGS], 1113[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 1114available_tags="_LT_TAGS"dnl 1115]) 1116 1117 1118# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 1119# ----------------------------------- 1120# Extract the dictionary values for VARNAME (optionally with TAG) and 1121# expand to a commented shell variable setting: 1122# 1123# # Some comment about what VAR is for. 1124# visible_name=$lt_internal_name 1125m4_define([_LT_LIBTOOL_DECLARE], 1126[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 1127 [description])))[]dnl 1128m4_pushdef([_libtool_name], 1129 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 1130m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 1131 [0], [_libtool_name=[$]$1], 1132 [1], [_libtool_name=$lt_[]$1], 1133 [2], [_libtool_name=$lt_[]$1], 1134 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 1135m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 1136]) 1137 1138 1139# _LT_LIBTOOL_CONFIG_VARS 1140# ----------------------- 1141# Produce commented declarations of non-tagged libtool config variables 1142# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 1143# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 1144# section) are produced by _LT_LIBTOOL_TAG_VARS. 1145m4_defun([_LT_LIBTOOL_CONFIG_VARS], 1146[m4_foreach([_lt_var], 1147 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 1148 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 1149 1150 1151# _LT_LIBTOOL_TAG_VARS(TAG) 1152# ------------------------- 1153m4_define([_LT_LIBTOOL_TAG_VARS], 1154[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 1155 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 1156 1157 1158# _LT_TAGVAR(VARNAME, [TAGNAME]) 1159# ------------------------------ 1160m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 1161 1162 1163# _LT_CONFIG_COMMANDS 1164# ------------------- 1165# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 1166# variables for single and double quote escaping we saved from calls 1167# to _LT_DECL, we can put quote escaped variables declarations 1168# into `config.status', and then the shell code to quote escape them in 1169# for loops in `config.status'. Finally, any additional code accumulated 1170# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 1171m4_defun([_LT_CONFIG_COMMANDS], 1172[AC_PROVIDE_IFELSE([LT_OUTPUT], 1173 dnl If the libtool generation code has been placed in $CONFIG_LT, 1174 dnl instead of duplicating it all over again into config.status, 1175 dnl then we will have config.status run $CONFIG_LT later, so it 1176 dnl needs to know what name is stored there: 1177 [AC_CONFIG_COMMANDS([libtool], 1178 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 1179 dnl If the libtool generation code is destined for config.status, 1180 dnl expand the accumulated commands and init code now: 1181 [AC_CONFIG_COMMANDS([libtool], 1182 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 1183])#_LT_CONFIG_COMMANDS 1184 1185 1186# Initialize. 1187m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 1188[ 1189 1190# The HP-UX ksh and POSIX shell print the target directory to stdout 1191# if CDPATH is set. 1192(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1193 1194sed_quote_subst='$sed_quote_subst' 1195double_quote_subst='$double_quote_subst' 1196delay_variable_subst='$delay_variable_subst' 1197_LT_CONFIG_STATUS_DECLARATIONS 1198LTCC='$LTCC' 1199LTCFLAGS='$LTCFLAGS' 1200compiler='$compiler_DEFAULT' 1201 1202# Quote evaled strings. 1203for var in lt_decl_all_varnames([[ \ 1204]], lt_decl_quote_varnames); do 1205 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 1206 *[[\\\\\\\`\\"\\\$]]*) 1207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 1208 ;; 1209 *) 1210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1211 ;; 1212 esac 1213done 1214 1215# Double-quote double-evaled strings. 1216for var in lt_decl_all_varnames([[ \ 1217]], lt_decl_dquote_varnames); do 1218 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 1219 *[[\\\\\\\`\\"\\\$]]*) 1220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 1221 ;; 1222 *) 1223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1224 ;; 1225 esac 1226done 1227 1228# Fix-up fallback echo if it was mangled by the above quoting rules. 1229case \$lt_ECHO in 1230*'\\\[$]0 --fallback-echo"')dnl " 1231 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 1232 ;; 1233esac 1234 1235_LT_OUTPUT_LIBTOOL_INIT 1236]) 1237 1238 1239# LT_OUTPUT 1240# --------- 1241# This macro allows early generation of the libtool script (before 1242# AC_OUTPUT is called), incase it is used in configure for compilation 1243# tests. 1244AC_DEFUN([LT_OUTPUT], 1245[: ${CONFIG_LT=./config.lt} 1246AC_MSG_NOTICE([creating $CONFIG_LT]) 1247cat >"$CONFIG_LT" <<_LTEOF 1248#! $SHELL 1249# Generated by $as_me. 1250# Run this file to recreate a libtool stub with the current configuration. 1251 1252lt_cl_silent=false 1253SHELL=\${CONFIG_SHELL-$SHELL} 1254_LTEOF 1255 1256cat >>"$CONFIG_LT" <<\_LTEOF 1257AS_SHELL_SANITIZE 1258_AS_PREPARE 1259 1260exec AS_MESSAGE_FD>&1 1261exec AS_MESSAGE_LOG_FD>>config.log 1262{ 1263 echo 1264 AS_BOX([Running $as_me.]) 1265} >&AS_MESSAGE_LOG_FD 1266 1267lt_cl_help="\ 1268\`$as_me' creates a local libtool stub from the current configuration, 1269for use in further configure time tests before the real libtool is 1270generated. 1271 1272Usage: $[0] [[OPTIONS]] 1273 1274 -h, --help print this help, then exit 1275 -V, --version print version number, then exit 1276 -q, --quiet do not print progress messages 1277 -d, --debug don't remove temporary files 1278 1279Report bugs to <bug-libtool@gnu.org>." 1280 1281lt_cl_version="\ 1282m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 1283m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 1284configured by $[0], generated by m4_PACKAGE_STRING. 1285 1286Copyright (C) 2008 Free Software Foundation, Inc. 1287This config.lt script is free software; the Free Software Foundation 1288gives unlimited permision to copy, distribute and modify it." 1289 1290while test $[#] != 0 1291do 1292 case $[1] in 1293 --version | --v* | -V ) 1294 echo "$lt_cl_version"; exit 0 ;; 1295 --help | --h* | -h ) 1296 echo "$lt_cl_help"; exit 0 ;; 1297 --debug | --d* | -d ) 1298 debug=: ;; 1299 --quiet | --q* | --silent | --s* | -q ) 1300 lt_cl_silent=: ;; 1301 1302 -*) AC_MSG_ERROR([unrecognized option: $[1] 1303Try \`$[0] --help' for more information.]) ;; 1304 1305 *) AC_MSG_ERROR([unrecognized argument: $[1] 1306Try \`$[0] --help' for more information.]) ;; 1307 esac 1308 shift 1309done 1310 1311if $lt_cl_silent; then 1312 exec AS_MESSAGE_FD>/dev/null 1313fi 1314_LTEOF 1315 1316cat >>"$CONFIG_LT" <<_LTEOF 1317_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 1318_LTEOF 1319 1320cat >>"$CONFIG_LT" <<\_LTEOF 1321AC_MSG_NOTICE([creating $ofile]) 1322_LT_OUTPUT_LIBTOOL_COMMANDS 1323AS_EXIT(0) 1324_LTEOF 1325chmod +x "$CONFIG_LT" 1326 1327# configure is writing to config.log, but config.lt does its own redirection, 1328# appending to config.log, which fails on DOS, as config.log is still kept 1329# open by configure. Here we exec the FD to /dev/null, effectively closing 1330# config.log, so it can be properly (re)opened and appended to by config.lt. 1331if test "$no_create" != yes; then 1332 lt_cl_success=: 1333 test "$silent" = yes && 1334 lt_config_lt_args="$lt_config_lt_args --quiet" 1335 exec AS_MESSAGE_LOG_FD>/dev/null 1336 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 1337 exec AS_MESSAGE_LOG_FD>>config.log 1338 $lt_cl_success || AS_EXIT(1) 1339fi 1340])# LT_OUTPUT 1341 1342 1343# _LT_CONFIG(TAG) 1344# --------------- 1345# If TAG is the built-in tag, create an initial libtool script with a 1346# default configuration from the untagged config vars. Otherwise add code 1347# to config.status for appending the configuration named by TAG from the 1348# matching tagged config vars. 1349m4_defun([_LT_CONFIG], 1350[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1351_LT_CONFIG_SAVE_COMMANDS([ 1352 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 1353 m4_if(_LT_TAG, [C], [ 1354 # See if we are running on zsh, and set the options which allow our 1355 # commands through without removal of \ escapes. 1356 if test -n "${ZSH_VERSION+set}" ; then 1357 setopt NO_GLOB_SUBST 1358 fi 1359 1360 cfgfile="${ofile}T" 1361 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 1362 $RM "$cfgfile" 1363 1364 cat <<_LT_EOF >> "$cfgfile" 1365#! $SHELL 1366 1367# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 1368# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 1369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1370# NOTE: Changes made to this file will be lost: look at ltmain.sh. 1371# 1372_LT_COPYING 1373_LT_LIBTOOL_TAGS 1374 1375# ### BEGIN LIBTOOL CONFIG 1376_LT_LIBTOOL_CONFIG_VARS 1377_LT_LIBTOOL_TAG_VARS 1378# ### END LIBTOOL CONFIG 1379 1380_LT_EOF 1381 1382 case $host_os in 1383 aix3*) 1384 cat <<\_LT_EOF >> "$cfgfile" 1385# AIX sometimes has problems with the GCC collect2 program. For some 1386# reason, if we set the COLLECT_NAMES environment variable, the problems 1387# vanish in a puff of smoke. 1388if test "X${COLLECT_NAMES+set}" != Xset; then 1389 COLLECT_NAMES= 1390 export COLLECT_NAMES 1391fi 1392_LT_EOF 1393 ;; 1394 esac 1395 1396 _LT_PROG_LTMAIN 1397 1398 # We use sed instead of cat because bash on DJGPP gets confused if 1399 # if finds mixed CR/LF and LF-only lines. Since sed operates in 1400 # text mode, it properly converts lines to CR/LF. This bash problem 1401 # is reportedly fixed, but why not run on old versions too? 1402 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 1403 || (rm -f "$cfgfile"; exit 1) 1404 1405 _LT_PROG_XSI_SHELLFNS 1406 1407 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 1408 || (rm -f "$cfgfile"; exit 1) 1409 1410 mv -f "$cfgfile" "$ofile" || 1411 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 1412 chmod +x "$ofile" 1413], 1414[cat <<_LT_EOF >> "$ofile" 1415 1416dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 1417dnl in a comment (ie after a #). 1418# ### BEGIN LIBTOOL TAG CONFIG: $1 1419_LT_LIBTOOL_TAG_VARS(_LT_TAG) 1420# ### END LIBTOOL TAG CONFIG: $1 1421_LT_EOF 1422])dnl /m4_if 1423], 1424[m4_if([$1], [], [ 1425 PACKAGE='$PACKAGE' 1426 VERSION='$VERSION' 1427 TIMESTAMP='$TIMESTAMP' 1428 RM='$RM' 1429 ofile='$ofile'], []) 1430])dnl /_LT_CONFIG_SAVE_COMMANDS 1431])# _LT_CONFIG 1432 1433 1434# LT_SUPPORTED_TAG(TAG) 1435# --------------------- 1436# Trace this macro to discover what tags are supported by the libtool 1437# --tag option, using: 1438# autoconf --trace 'LT_SUPPORTED_TAG:$1' 1439AC_DEFUN([LT_SUPPORTED_TAG], []) 1440 1441 1442# C support is built-in for now 1443m4_define([_LT_LANG_C_enabled], []) 1444m4_define([_LT_TAGS], []) 1445 1446 1447# LT_LANG(LANG) 1448# ------------- 1449# Enable libtool support for the given language if not already enabled. 1450AC_DEFUN([LT_LANG], 1451[AC_BEFORE([$0], [LT_OUTPUT])dnl 1452m4_case([$1], 1453 [C], [_LT_LANG(C)], 1454 [C++], [_LT_LANG(CXX)], 1455 [Java], [_LT_LANG(GCJ)], 1456 [Fortran 77], [_LT_LANG(F77)], 1457 [Fortran], [_LT_LANG(FC)], 1458 [Windows Resource], [_LT_LANG(RC)], 1459 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 1460 [_LT_LANG($1)], 1461 [m4_fatal([$0: unsupported language: "$1"])])])dnl 1462])# LT_LANG 1463 1464 1465# _LT_LANG(LANGNAME) 1466# ------------------ 1467m4_defun([_LT_LANG], 1468[m4_ifdef([_LT_LANG_]$1[_enabled], [], 1469 [LT_SUPPORTED_TAG([$1])dnl 1470 m4_append([_LT_TAGS], [$1 ])dnl 1471 m4_define([_LT_LANG_]$1[_enabled], [])dnl 1472 _LT_LANG_$1_CONFIG($1)])dnl 1473])# _LT_LANG 1474 1475 1476# _LT_LANG_DEFAULT_CONFIG 1477# ----------------------- 1478m4_defun([_LT_LANG_DEFAULT_CONFIG], 1479[AC_PROVIDE_IFELSE([AC_PROG_CXX], 1480 [LT_LANG(CXX)], 1481 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 1482 1483AC_PROVIDE_IFELSE([AC_PROG_F77], 1484 [LT_LANG(F77)], 1485 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 1486 1487AC_PROVIDE_IFELSE([AC_PROG_FC], 1488 [LT_LANG(FC)], 1489 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 1490 1491dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 1492dnl pulling things in needlessly. 1493AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1494 [LT_LANG(GCJ)], 1495 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1496 [LT_LANG(GCJ)], 1497 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 1498 [LT_LANG(GCJ)], 1499 [m4_ifdef([AC_PROG_GCJ], 1500 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 1501 m4_ifdef([A][M_PROG_GCJ], 1502 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 1503 m4_ifdef([LT_PROG_GCJ], 1504 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 1505 1506AC_PROVIDE_IFELSE([LT_PROG_RC], 1507 [LT_LANG(RC)], 1508 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 1509])# _LT_LANG_DEFAULT_CONFIG 1510 1511# Obsolete macros: 1512AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 1513AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 1514AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 1515AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 1516dnl aclocal-1.4 backwards compatibility: 1517dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 1518dnl AC_DEFUN([AC_LIBTOOL_F77], []) 1519dnl AC_DEFUN([AC_LIBTOOL_FC], []) 1520dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 1521 1522 1523# _LT_TAG_COMPILER 1524# ---------------- 1525m4_defun([_LT_TAG_COMPILER], 1526[AC_REQUIRE([AC_PROG_CC])dnl 1527 1528_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1529_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1530_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1531_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1532 1533# If no C compiler was specified, use CC. 1534LTCC=${LTCC-"$CC"} 1535 1536# If no C compiler flags were specified, use CFLAGS. 1537LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1538 1539# Allow CC to be a program name with arguments. 1540compiler=$CC 1541])# _LT_TAG_COMPILER 1542 1543 1544# _LT_COMPILER_BOILERPLATE 1545# ------------------------ 1546# Check for compiler boilerplate output or warnings with 1547# the simple compiler test code. 1548m4_defun([_LT_COMPILER_BOILERPLATE], 1549[m4_require([_LT_DECL_SED])dnl 1550ac_outfile=conftest.$ac_objext 1551echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1553_lt_compiler_boilerplate=`cat conftest.err` 1554$RM conftest* 1555])# _LT_COMPILER_BOILERPLATE 1556 1557 1558# _LT_LINKER_BOILERPLATE 1559# ---------------------- 1560# Check for linker boilerplate output or warnings with 1561# the simple link test code. 1562m4_defun([_LT_LINKER_BOILERPLATE], 1563[m4_require([_LT_DECL_SED])dnl 1564ac_outfile=conftest.$ac_objext 1565echo "$lt_simple_link_test_code" >conftest.$ac_ext 1566eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1567_lt_linker_boilerplate=`cat conftest.err` 1568$RM -r conftest* 1569])# _LT_LINKER_BOILERPLATE 1570 1571# _LT_REQUIRED_DARWIN_CHECKS 1572# ------------------------- 1573m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1574 case $host_os in 1575 rhapsody* | darwin*) 1576 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1577 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1578 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1579 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1580 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1581 _LT_DECL([], [DSYMUTIL], [1], 1582 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1583 _LT_DECL([], [NMEDIT], [1], 1584 [Tool to change global to local symbols on Mac OS X]) 1585 _LT_DECL([], [LIPO], [1], 1586 [Tool to manipulate fat objects and archives on Mac OS X]) 1587 _LT_DECL([], [OTOOL], [1], 1588 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1589 _LT_DECL([], [OTOOL64], [1], 1590 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1591 1592 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1593 [lt_cv_apple_cc_single_mod=no 1594 if test -z "${LT_MULTI_MODULE}"; then 1595 # By default we will add the -single_module flag. You can override 1596 # by either setting the environment variable LT_MULTI_MODULE 1597 # non-empty at configure time, or by adding -multi_module to the 1598 # link flags. 1599 rm -rf libconftest.dylib* 1600 echo "int foo(void){return 1;}" > conftest.c 1601 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1602-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1603 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1604 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1605 _lt_result=$? 1606 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 1607 lt_cv_apple_cc_single_mod=yes 1608 else 1609 cat conftest.err >&AS_MESSAGE_LOG_FD 1610 fi 1611 rm -rf libconftest.dylib* 1612 rm -f conftest.* 1613 fi]) 1614 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1615 [lt_cv_ld_exported_symbols_list], 1616 [lt_cv_ld_exported_symbols_list=no 1617 save_LDFLAGS=$LDFLAGS 1618 echo "_main" > conftest.sym 1619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1620 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1621 [lt_cv_ld_exported_symbols_list=yes], 1622 [lt_cv_ld_exported_symbols_list=no]) 1623 LDFLAGS="$save_LDFLAGS" 1624 ]) 1625 case $host_os in 1626 rhapsody* | darwin1.[[012]]) 1627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 1628 darwin1.*) 1629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1630 darwin*) # darwin 5.x on 1631 # if running on 10.5 or later, the deployment target defaults 1632 # to the OS version, if on x86, and 10.4, the deployment 1633 # target defaults to 10.4. Don't you love it? 1634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1635 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1637 10.[[012]]*) 1638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1639 10.*) 1640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1641 esac 1642 ;; 1643 esac 1644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 1645 _lt_dar_single_mod='$single_module' 1646 fi 1647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 1648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 1649 else 1650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 1651 fi 1652 if test "$DSYMUTIL" != ":"; then 1653 _lt_dsymutil='~$DSYMUTIL $lib || :' 1654 else 1655 _lt_dsymutil= 1656 fi 1657 ;; 1658 esac 1659]) 1660 1661 1662# _LT_DARWIN_LINKER_FEATURES 1663# -------------------------- 1664# Checks for linker and compiler features on darwin 1665m4_defun([_LT_DARWIN_LINKER_FEATURES], 1666[ 1667 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1668 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1669 _LT_TAGVAR(hardcode_direct, $1)=no 1670 _LT_TAGVAR(hardcode_automatic, $1)=yes 1671 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1672 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1673 _LT_TAGVAR(link_all_deplibs, $1)=yes 1674 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 1675 case $cc_basename in 1676 ifort*) _lt_dar_can_shared=yes ;; 1677 *) _lt_dar_can_shared=$GCC ;; 1678 esac 1679 if test "$_lt_dar_can_shared" = "yes"; then 1680 output_verbose_link_cmd=echo 1681 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 1682 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1683 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 1684 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 1685 m4_if([$1], [CXX], 1686[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1687 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 1688 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 1689 fi 1690],[]) 1691 else 1692 _LT_TAGVAR(ld_shlibs, $1)=no 1693 fi 1694]) 1695 1696# _LT_SYS_MODULE_PATH_AIX 1697# ----------------------- 1698# Links a minimal program and checks the executable 1699# for the system default hardcoded library path. In most cases, 1700# this is /usr/lib:/lib, but when the MPI compilers are used 1701# the location of the communication and MPI libs are included too. 1702# If we don't find anything, use the default library path according 1703# to the aix ld manual. 1704m4_defun([_LT_SYS_MODULE_PATH_AIX], 1705[m4_require([_LT_DECL_SED])dnl 1706AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1707lt_aix_libpath_sed=' 1708 /Import File Strings/,/^$/ { 1709 /^0/ { 1710 s/^0 *\(.*\)$/\1/ 1711 p 1712 } 1713 }' 1714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1715# Check for a 64-bit object if we didn't find anything. 1716if test -z "$aix_libpath"; then 1717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1718fi],[]) 1719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1720])# _LT_SYS_MODULE_PATH_AIX 1721 1722 1723# _LT_SHELL_INIT(ARG) 1724# ------------------- 1725m4_define([_LT_SHELL_INIT], 1726[ifdef([AC_DIVERSION_NOTICE], 1727 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1728 [AC_DIVERT_PUSH(NOTICE)]) 1729$1 1730AC_DIVERT_POP 1731])# _LT_SHELL_INIT 1732 1733 1734# _LT_PROG_ECHO_BACKSLASH 1735# ----------------------- 1736# Add some code to the start of the generated configure script which 1737# will find an echo command which doesn't interpret backslashes. 1738m4_defun([_LT_PROG_ECHO_BACKSLASH], 1739[_LT_SHELL_INIT([ 1740# Check that we are running under the correct shell. 1741SHELL=${CONFIG_SHELL-/bin/sh} 1742 1743case X$lt_ECHO in 1744X*--fallback-echo) 1745 # Remove one level of quotation (which was required for Make). 1746 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1747 ;; 1748esac 1749 1750ECHO=${lt_ECHO-echo} 1751if test "X[$]1" = X--no-reexec; then 1752 # Discard the --no-reexec flag, and continue. 1753 shift 1754elif test "X[$]1" = X--fallback-echo; then 1755 # Avoid inline document here, it may be left over 1756 : 1757elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 1758 # Yippee, $ECHO works! 1759 : 1760else 1761 # Restart under the correct shell. 1762 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1763fi 1764 1765if test "X[$]1" = X--fallback-echo; then 1766 # used as fallback echo 1767 shift 1768 cat <<_LT_EOF 1769[$]* 1770_LT_EOF 1771 exit 0 1772fi 1773 1774# The HP-UX ksh and POSIX shell print the target directory to stdout 1775# if CDPATH is set. 1776(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1777 1778if test -z "$lt_ECHO"; then 1779 if test "X${echo_test_string+set}" != Xset; then 1780 # find a string as large as possible, as long as the shell can cope with it 1781 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1782 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1783 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 1784 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 1785 then 1786 break 1787 fi 1788 done 1789 fi 1790 1791 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1792 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1793 test "X$echo_testing_string" = "X$echo_test_string"; then 1794 : 1795 else 1796 # The Solaris, AIX, and Digital Unix default echo programs unquote 1797 # backslashes. This makes it impossible to quote backslashes using 1798 # echo "$something" | sed 's/\\/\\\\/g' 1799 # 1800 # So, first we look for a working echo in the user's PATH. 1801 1802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1803 for dir in $PATH /usr/ucb; do 1804 IFS="$lt_save_ifs" 1805 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1806 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1807 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1808 test "X$echo_testing_string" = "X$echo_test_string"; then 1809 ECHO="$dir/echo" 1810 break 1811 fi 1812 done 1813 IFS="$lt_save_ifs" 1814 1815 if test "X$ECHO" = Xecho; then 1816 # We didn't find a better echo, so look for alternatives. 1817 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 1818 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 1819 test "X$echo_testing_string" = "X$echo_test_string"; then 1820 # This shell has a builtin print -r that does the trick. 1821 ECHO='print -r' 1822 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 1823 test "X$CONFIG_SHELL" != X/bin/ksh; then 1824 # If we have ksh, try running configure again with it. 1825 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1826 export ORIGINAL_CONFIG_SHELL 1827 CONFIG_SHELL=/bin/ksh 1828 export CONFIG_SHELL 1829 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1830 else 1831 # Try using printf. 1832 ECHO='printf %s\n' 1833 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1834 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1835 test "X$echo_testing_string" = "X$echo_test_string"; then 1836 # Cool, printf works 1837 : 1838 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1839 test "X$echo_testing_string" = 'X\t' && 1840 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1841 test "X$echo_testing_string" = "X$echo_test_string"; then 1842 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1843 export CONFIG_SHELL 1844 SHELL="$CONFIG_SHELL" 1845 export SHELL 1846 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1847 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1848 test "X$echo_testing_string" = 'X\t' && 1849 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1850 test "X$echo_testing_string" = "X$echo_test_string"; then 1851 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1852 else 1853 # maybe with a smaller string... 1854 prev=: 1855 1856 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1857 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 1858 then 1859 break 1860 fi 1861 prev="$cmd" 1862 done 1863 1864 if test "$prev" != 'sed 50q "[$]0"'; then 1865 echo_test_string=`eval $prev` 1866 export echo_test_string 1867 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1868 else 1869 # Oops. We lost completely, so just stick with echo. 1870 ECHO=echo 1871 fi 1872 fi 1873 fi 1874 fi 1875 fi 1876fi 1877 1878# Copy echo and quote the copy suitably for passing to libtool from 1879# the Makefile, instead of quoting the original, which is used later. 1880lt_ECHO=$ECHO 1881if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1882 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1883fi 1884 1885AC_SUBST(lt_ECHO) 1886]) 1887_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1888_LT_DECL([], [ECHO], [1], 1889 [An echo program that does not interpret backslashes]) 1890])# _LT_PROG_ECHO_BACKSLASH 1891 1892 1893# _LT_ENABLE_LOCK 1894# --------------- 1895m4_defun([_LT_ENABLE_LOCK], 1896[AC_ARG_ENABLE([libtool-lock], 1897 [AS_HELP_STRING([--disable-libtool-lock], 1898 [avoid locking (might break parallel builds)])]) 1899test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1900 1901# Some flags need to be propagated to the compiler or linker for good 1902# libtool support. 1903case $host in 1904ia64-*-hpux*) 1905 # Find out which ABI we are using. 1906 echo 'int i;' > conftest.$ac_ext 1907 if AC_TRY_EVAL(ac_compile); then 1908 case `/usr/bin/file conftest.$ac_objext` in 1909 *ELF-32*) 1910 HPUX_IA64_MODE="32" 1911 ;; 1912 *ELF-64*) 1913 HPUX_IA64_MODE="64" 1914 ;; 1915 esac 1916 fi 1917 rm -rf conftest* 1918 ;; 1919*-*-irix6*) 1920 # Find out which ABI we are using. 1921 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1922 if AC_TRY_EVAL(ac_compile); then 1923 if test "$lt_cv_prog_gnu_ld" = yes; then 1924 case `/usr/bin/file conftest.$ac_objext` in 1925 *32-bit*) 1926 LD="${LD-ld} -melf32bsmip" 1927 ;; 1928 *N32*) 1929 LD="${LD-ld} -melf32bmipn32" 1930 ;; 1931 *64-bit*) 1932 LD="${LD-ld} -melf64bmip" 1933 ;; 1934 esac 1935 else 1936 case `/usr/bin/file conftest.$ac_objext` in 1937 *32-bit*) 1938 LD="${LD-ld} -32" 1939 ;; 1940 *N32*) 1941 LD="${LD-ld} -n32" 1942 ;; 1943 *64-bit*) 1944 LD="${LD-ld} -64" 1945 ;; 1946 esac 1947 fi 1948 fi 1949 rm -rf conftest* 1950 ;; 1951 1952x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1953s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1954 # Find out which ABI we are using. 1955 echo 'int i;' > conftest.$ac_ext 1956 if AC_TRY_EVAL(ac_compile); then 1957 case `/usr/bin/file conftest.o` in 1958 *32-bit*) 1959 case $host in 1960 x86_64-*kfreebsd*-gnu) 1961 LD="${LD-ld} -m elf_i386_fbsd" 1962 ;; 1963 x86_64-*linux*) 1964 LD="${LD-ld} -m elf_i386" 1965 ;; 1966 ppc64-*linux*|powerpc64-*linux*) 1967 LD="${LD-ld} -m elf32ppclinux" 1968 ;; 1969 s390x-*linux*) 1970 LD="${LD-ld} -m elf_s390" 1971 ;; 1972 sparc64-*linux*) 1973 LD="${LD-ld} -m elf32_sparc" 1974 ;; 1975 esac 1976 ;; 1977 *64-bit*) 1978 case $host in 1979 x86_64-*kfreebsd*-gnu) 1980 LD="${LD-ld} -m elf_x86_64_fbsd" 1981 ;; 1982 x86_64-*linux*) 1983 LD="${LD-ld} -m elf_x86_64" 1984 ;; 1985 ppc*-*linux*|powerpc*-*linux*) 1986 LD="${LD-ld} -m elf64ppc" 1987 ;; 1988 s390*-*linux*|s390*-*tpf*) 1989 LD="${LD-ld} -m elf64_s390" 1990 ;; 1991 sparc*-*linux*) 1992 LD="${LD-ld} -m elf64_sparc" 1993 ;; 1994 esac 1995 ;; 1996 esac 1997 fi 1998 rm -rf conftest* 1999 ;; 2000 2001*-*-sco3.2v5*) 2002 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2003 SAVE_CFLAGS="$CFLAGS" 2004 CFLAGS="$CFLAGS -belf" 2005 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2006 [AC_LANG_PUSH(C) 2007 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2008 AC_LANG_POP]) 2009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2011 CFLAGS="$SAVE_CFLAGS" 2012 fi 2013 ;; 2014sparc*-*solaris*) 2015 # Find out which ABI we are using. 2016 echo 'int i;' > conftest.$ac_ext 2017 if AC_TRY_EVAL(ac_compile); then 2018 case `/usr/bin/file conftest.o` in 2019 *64-bit*) 2020 case $lt_cv_prog_gnu_ld in 2021 yes*) LD="${LD-ld} -m elf64_sparc" ;; 2022 *) 2023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 2024 LD="${LD-ld} -64" 2025 fi 2026 ;; 2027 esac 2028 ;; 2029 esac 2030 fi 2031 rm -rf conftest* 2032 ;; 2033esac 2034 2035need_locks="$enable_libtool_lock" 2036])# _LT_ENABLE_LOCK 2037 2038 2039# _LT_CMD_OLD_ARCHIVE 2040# ------------------- 2041m4_defun([_LT_CMD_OLD_ARCHIVE], 2042[AC_CHECK_TOOL(AR, ar, false) 2043test -z "$AR" && AR=ar 2044test -z "$AR_FLAGS" && AR_FLAGS=cru 2045_LT_DECL([], [AR], [1], [The archiver]) 2046_LT_DECL([], [AR_FLAGS], [1]) 2047 2048AC_CHECK_TOOL(STRIP, strip, :) 2049test -z "$STRIP" && STRIP=: 2050_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 2051 2052AC_CHECK_TOOL(RANLIB, ranlib, :) 2053test -z "$RANLIB" && RANLIB=: 2054_LT_DECL([], [RANLIB], [1], 2055 [Commands used to install an old-style archive]) 2056 2057# Determine commands to create old-style static archives. 2058old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 2059old_postinstall_cmds='chmod 644 $oldlib' 2060old_postuninstall_cmds= 2061 2062if test -n "$RANLIB"; then 2063 case $host_os in 2064 openbsd*) 2065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 2066 ;; 2067 *) 2068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 2069 ;; 2070 esac 2071 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 2072fi 2073_LT_DECL([], [old_postinstall_cmds], [2]) 2074_LT_DECL([], [old_postuninstall_cmds], [2]) 2075_LT_TAGDECL([], [old_archive_cmds], [2], 2076 [Commands used to build an old-style archive]) 2077])# _LT_CMD_OLD_ARCHIVE 2078 2079 2080# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2081# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2082# ---------------------------------------------------------------- 2083# Check whether the given compiler option works 2084AC_DEFUN([_LT_COMPILER_OPTION], 2085[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2086m4_require([_LT_DECL_SED])dnl 2087AC_CACHE_CHECK([$1], [$2], 2088 [$2=no 2089 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2091 lt_compiler_flag="$3" 2092 # Insert the option either (1) after the last *FLAGS variable, or 2093 # (2) before a word containing "conftest.", or (3) at the end. 2094 # Note that $ac_compile itself does not contain backslashes and begins 2095 # with a dollar sign (not a hyphen), so the echo should work correctly. 2096 # The option is referenced via a variable to avoid confusing sed. 2097 lt_compile=`echo "$ac_compile" | $SED \ 2098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2099 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2100 -e 's:$: $lt_compiler_flag:'` 2101 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2102 (eval "$lt_compile" 2>conftest.err) 2103 ac_status=$? 2104 cat conftest.err >&AS_MESSAGE_LOG_FD 2105 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2106 if (exit $ac_status) && test -s "$ac_outfile"; then 2107 # The compiler can only warn and ignore the option if not recognized 2108 # So say no if there are warnings other than the usual output. 2109 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 2110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2112 $2=yes 2113 fi 2114 fi 2115 $RM conftest* 2116]) 2117 2118if test x"[$]$2" = xyes; then 2119 m4_if([$5], , :, [$5]) 2120else 2121 m4_if([$6], , :, [$6]) 2122fi 2123])# _LT_COMPILER_OPTION 2124 2125# Old name: 2126AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 2127dnl aclocal-1.4 backwards compatibility: 2128dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 2129 2130 2131# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2132# [ACTION-SUCCESS], [ACTION-FAILURE]) 2133# ---------------------------------------------------- 2134# Check whether the given linker option works 2135AC_DEFUN([_LT_LINKER_OPTION], 2136[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2137m4_require([_LT_DECL_SED])dnl 2138AC_CACHE_CHECK([$1], [$2], 2139 [$2=no 2140 save_LDFLAGS="$LDFLAGS" 2141 LDFLAGS="$LDFLAGS $3" 2142 echo "$lt_simple_link_test_code" > conftest.$ac_ext 2143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2144 # The linker can only warn and ignore the option if not recognized 2145 # So say no if there are warnings 2146 if test -s conftest.err; then 2147 # Append any errors to the config.log. 2148 cat conftest.err 1>&AS_MESSAGE_LOG_FD 2149 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 2150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2151 if diff conftest.exp conftest.er2 >/dev/null; then 2152 $2=yes 2153 fi 2154 else 2155 $2=yes 2156 fi 2157 fi 2158 $RM -r conftest* 2159 LDFLAGS="$save_LDFLAGS" 2160]) 2161 2162if test x"[$]$2" = xyes; then 2163 m4_if([$4], , :, [$4]) 2164else 2165 m4_if([$5], , :, [$5]) 2166fi 2167])# _LT_LINKER_OPTION 2168 2169# Old name: 2170AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 2171dnl aclocal-1.4 backwards compatibility: 2172dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 2173 2174 2175# LT_CMD_MAX_LEN 2176#--------------- 2177AC_DEFUN([LT_CMD_MAX_LEN], 2178[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2179# find the maximum length of command line arguments 2180AC_MSG_CHECKING([the maximum length of command line arguments]) 2181AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2182 i=0 2183 teststring="ABCD" 2184 2185 case $build_os in 2186 msdosdjgpp*) 2187 # On DJGPP, this test can blow up pretty badly due to problems in libc 2188 # (any single argument exceeding 2000 bytes causes a buffer overrun 2189 # during glob expansion). Even if it were fixed, the result of this 2190 # check would be larger than it should be. 2191 lt_cv_sys_max_cmd_len=12288; # 12K is about right 2192 ;; 2193 2194 gnu*) 2195 # Under GNU Hurd, this test is not required because there is 2196 # no limit to the length of command line arguments. 2197 # Libtool will interpret -1 as no limit whatsoever 2198 lt_cv_sys_max_cmd_len=-1; 2199 ;; 2200 2201 cygwin* | mingw* | cegcc*) 2202 # On Win9x/ME, this test blows up -- it succeeds, but takes 2203 # about 5 minutes as the teststring grows exponentially. 2204 # Worse, since 9x/ME are not pre-emptively multitasking, 2205 # you end up with a "frozen" computer, even though with patience 2206 # the test eventually succeeds (with a max line length of 256k). 2207 # Instead, let's just punt: use the minimum linelength reported by 2208 # all of the supported platforms: 8192 (on NT/2K/XP). 2209 lt_cv_sys_max_cmd_len=8192; 2210 ;; 2211 2212 amigaos*) 2213 # On AmigaOS with pdksh, this test takes hours, literally. 2214 # So we just punt and use a minimum line length of 8192. 2215 lt_cv_sys_max_cmd_len=8192; 2216 ;; 2217 2218 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 2219 # This has been around since 386BSD, at least. Likely further. 2220 if test -x /sbin/sysctl; then 2221 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 2222 elif test -x /usr/sbin/sysctl; then 2223 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 2224 else 2225 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2226 fi 2227 # And add a safety zone 2228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2230 ;; 2231 2232 interix*) 2233 # We know the value 262144 and hardcode it with a safety zone (like BSD) 2234 lt_cv_sys_max_cmd_len=196608 2235 ;; 2236 2237 osf*) 2238 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 2239 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 2240 # nice to cause kernel panics so lets avoid the loop below. 2241 # First set a reasonable default. 2242 lt_cv_sys_max_cmd_len=16384 2243 # 2244 if test -x /sbin/sysconfig; then 2245 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 2246 *1*) lt_cv_sys_max_cmd_len=-1 ;; 2247 esac 2248 fi 2249 ;; 2250 sco3.2v5*) 2251 lt_cv_sys_max_cmd_len=102400 2252 ;; 2253 sysv5* | sco5v6* | sysv4.2uw2*) 2254 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 2255 if test -n "$kargmax"; then 2256 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 2257 else 2258 lt_cv_sys_max_cmd_len=32768 2259 fi 2260 ;; 2261 *) 2262 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2263 if test -n "$lt_cv_sys_max_cmd_len"; then 2264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2266 else 2267 # Make teststring a little bigger before we do anything with it. 2268 # a 1K string should be a reasonable start. 2269 for i in 1 2 3 4 5 6 7 8 ; do 2270 teststring=$teststring$teststring 2271 done 2272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 2273 # If test is not a shell built-in, we'll probably end up computing a 2274 # maximum length that is only half of the actual maximum length, but 2275 # we can't tell. 2276 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 2277 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 2278 test $i != 17 # 1/2 MB should be enough 2279 do 2280 i=`expr $i + 1` 2281 teststring=$teststring$teststring 2282 done 2283 # Only check the string length outside the loop. 2284 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 2285 teststring= 2286 # Add a significant safety factor because C++ compilers can tack on 2287 # massive amounts of additional arguments before passing them to the 2288 # linker. It appears as though 1/2 is a usable value. 2289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2290 fi 2291 ;; 2292 esac 2293]) 2294if test -n $lt_cv_sys_max_cmd_len ; then 2295 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2296else 2297 AC_MSG_RESULT(none) 2298fi 2299max_cmd_len=$lt_cv_sys_max_cmd_len 2300_LT_DECL([], [max_cmd_len], [0], 2301 [What is the maximum length of a command?]) 2302])# LT_CMD_MAX_LEN 2303 2304# Old name: 2305AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 2306dnl aclocal-1.4 backwards compatibility: 2307dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 2308 2309 2310# _LT_HEADER_DLFCN 2311# ---------------- 2312m4_defun([_LT_HEADER_DLFCN], 2313[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 2314])# _LT_HEADER_DLFCN 2315 2316 2317# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2318# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2319# ---------------------------------------------------------------- 2320m4_defun([_LT_TRY_DLOPEN_SELF], 2321[m4_require([_LT_HEADER_DLFCN])dnl 2322if test "$cross_compiling" = yes; then : 2323 [$4] 2324else 2325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 2326 lt_status=$lt_dlunknown 2327 cat > conftest.$ac_ext <<_LT_EOF 2328[#line __oline__ "configure" 2329#include "confdefs.h" 2330 2331#if HAVE_DLFCN_H 2332#include <dlfcn.h> 2333#endif 2334 2335#include <stdio.h> 2336 2337#ifdef RTLD_GLOBAL 2338# define LT_DLGLOBAL RTLD_GLOBAL 2339#else 2340# ifdef DL_GLOBAL 2341# define LT_DLGLOBAL DL_GLOBAL 2342# else 2343# define LT_DLGLOBAL 0 2344# endif 2345#endif 2346 2347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2348 find out it does not work in some platform. */ 2349#ifndef LT_DLLAZY_OR_NOW 2350# ifdef RTLD_LAZY 2351# define LT_DLLAZY_OR_NOW RTLD_LAZY 2352# else 2353# ifdef DL_LAZY 2354# define LT_DLLAZY_OR_NOW DL_LAZY 2355# else 2356# ifdef RTLD_NOW 2357# define LT_DLLAZY_OR_NOW RTLD_NOW 2358# else 2359# ifdef DL_NOW 2360# define LT_DLLAZY_OR_NOW DL_NOW 2361# else 2362# define LT_DLLAZY_OR_NOW 0 2363# endif 2364# endif 2365# endif 2366# endif 2367#endif 2368 2369void fnord() { int i=42;} 2370int main () 2371{ 2372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 2373 int status = $lt_dlunknown; 2374 2375 if (self) 2376 { 2377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 2378 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 2379 /* dlclose (self); */ 2380 } 2381 else 2382 puts (dlerror ()); 2383 2384 return status; 2385}] 2386_LT_EOF 2387 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 2388 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 2389 lt_status=$? 2390 case x$lt_status in 2391 x$lt_dlno_uscore) $1 ;; 2392 x$lt_dlneed_uscore) $2 ;; 2393 x$lt_dlunknown|x*) $3 ;; 2394 esac 2395 else : 2396 # compilation failed 2397 $3 2398 fi 2399fi 2400rm -fr conftest* 2401])# _LT_TRY_DLOPEN_SELF 2402 2403 2404# LT_SYS_DLOPEN_SELF 2405# ------------------ 2406AC_DEFUN([LT_SYS_DLOPEN_SELF], 2407[m4_require([_LT_HEADER_DLFCN])dnl 2408if test "x$enable_dlopen" != xyes; then 2409 enable_dlopen=unknown 2410 enable_dlopen_self=unknown 2411 enable_dlopen_self_static=unknown 2412else 2413 lt_cv_dlopen=no 2414 lt_cv_dlopen_libs= 2415 2416 case $host_os in 2417 beos*) 2418 lt_cv_dlopen="load_add_on" 2419 lt_cv_dlopen_libs= 2420 lt_cv_dlopen_self=yes 2421 ;; 2422 2423 mingw* | pw32* | cegcc*) 2424 lt_cv_dlopen="LoadLibrary" 2425 lt_cv_dlopen_libs= 2426 ;; 2427 2428 cygwin*) 2429 lt_cv_dlopen="dlopen" 2430 lt_cv_dlopen_libs= 2431 ;; 2432 2433 darwin*) 2434 # if libdl is installed we need to link against it 2435 AC_CHECK_LIB([dl], [dlopen], 2436 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 2437 lt_cv_dlopen="dyld" 2438 lt_cv_dlopen_libs= 2439 lt_cv_dlopen_self=yes 2440 ]) 2441 ;; 2442 2443 *) 2444 AC_CHECK_FUNC([shl_load], 2445 [lt_cv_dlopen="shl_load"], 2446 [AC_CHECK_LIB([dld], [shl_load], 2447 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 2448 [AC_CHECK_FUNC([dlopen], 2449 [lt_cv_dlopen="dlopen"], 2450 [AC_CHECK_LIB([dl], [dlopen], 2451 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 2452 [AC_CHECK_LIB([svld], [dlopen], 2453 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 2454 [AC_CHECK_LIB([dld], [dld_link], 2455 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 2456 ]) 2457 ]) 2458 ]) 2459 ]) 2460 ]) 2461 ;; 2462 esac 2463 2464 if test "x$lt_cv_dlopen" != xno; then 2465 enable_dlopen=yes 2466 else 2467 enable_dlopen=no 2468 fi 2469 2470 case $lt_cv_dlopen in 2471 dlopen) 2472 save_CPPFLAGS="$CPPFLAGS" 2473 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2474 2475 save_LDFLAGS="$LDFLAGS" 2476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2477 2478 save_LIBS="$LIBS" 2479 LIBS="$lt_cv_dlopen_libs $LIBS" 2480 2481 AC_CACHE_CHECK([whether a program can dlopen itself], 2482 lt_cv_dlopen_self, [dnl 2483 _LT_TRY_DLOPEN_SELF( 2484 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2485 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2486 ]) 2487 2488 if test "x$lt_cv_dlopen_self" = xyes; then 2489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2490 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2491 lt_cv_dlopen_self_static, [dnl 2492 _LT_TRY_DLOPEN_SELF( 2493 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2494 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2495 ]) 2496 fi 2497 2498 CPPFLAGS="$save_CPPFLAGS" 2499 LDFLAGS="$save_LDFLAGS" 2500 LIBS="$save_LIBS" 2501 ;; 2502 esac 2503 2504 case $lt_cv_dlopen_self in 2505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2506 *) enable_dlopen_self=unknown ;; 2507 esac 2508 2509 case $lt_cv_dlopen_self_static in 2510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2511 *) enable_dlopen_self_static=unknown ;; 2512 esac 2513fi 2514_LT_DECL([dlopen_support], [enable_dlopen], [0], 2515 [Whether dlopen is supported]) 2516_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2517 [Whether dlopen of programs is supported]) 2518_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2519 [Whether dlopen of statically linked programs is supported]) 2520])# LT_SYS_DLOPEN_SELF 2521 2522# Old name: 2523AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2524dnl aclocal-1.4 backwards compatibility: 2525dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2526 2527 2528# _LT_COMPILER_C_O([TAGNAME]) 2529# --------------------------- 2530# Check to see if options -c and -o are simultaneously supported by compiler. 2531# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2532m4_defun([_LT_COMPILER_C_O], 2533[m4_require([_LT_DECL_SED])dnl 2534m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2535m4_require([_LT_TAG_COMPILER])dnl 2536AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2537 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2538 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2539 $RM -r conftest 2>/dev/null 2540 mkdir conftest 2541 cd conftest 2542 mkdir out 2543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2544 2545 lt_compiler_flag="-o out/conftest2.$ac_objext" 2546 # Insert the option either (1) after the last *FLAGS variable, or 2547 # (2) before a word containing "conftest.", or (3) at the end. 2548 # Note that $ac_compile itself does not contain backslashes and begins 2549 # with a dollar sign (not a hyphen), so the echo should work correctly. 2550 lt_compile=`echo "$ac_compile" | $SED \ 2551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2552 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2553 -e 's:$: $lt_compiler_flag:'` 2554 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2555 (eval "$lt_compile" 2>out/conftest.err) 2556 ac_status=$? 2557 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2558 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2559 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2560 then 2561 # The compiler can only warn and ignore the option if not recognized 2562 # So say no if there are warnings 2563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 2564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2566 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2567 fi 2568 fi 2569 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2570 $RM conftest* 2571 # SGI C++ compiler will create directory out/ii_files/ for 2572 # template instantiation 2573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2574 $RM out/* && rmdir out 2575 cd .. 2576 $RM -r conftest 2577 $RM conftest* 2578]) 2579_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2580 [Does compiler simultaneously support -c and -o options?]) 2581])# _LT_COMPILER_C_O 2582 2583 2584# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2585# ---------------------------------- 2586# Check to see if we can do hard links to lock some files if needed 2587m4_defun([_LT_COMPILER_FILE_LOCKS], 2588[m4_require([_LT_ENABLE_LOCK])dnl 2589m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2590_LT_COMPILER_C_O([$1]) 2591 2592hard_links="nottested" 2593if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 2594 # do not overwrite the value of need_locks provided by the user 2595 AC_MSG_CHECKING([if we can lock with hard links]) 2596 hard_links=yes 2597 $RM conftest* 2598 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2599 touch conftest.a 2600 ln conftest.a conftest.b 2>&5 || hard_links=no 2601 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2602 AC_MSG_RESULT([$hard_links]) 2603 if test "$hard_links" = no; then 2604 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 2605 need_locks=warn 2606 fi 2607else 2608 need_locks=no 2609fi 2610_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2611])# _LT_COMPILER_FILE_LOCKS 2612 2613 2614# _LT_CHECK_OBJDIR 2615# ---------------- 2616m4_defun([_LT_CHECK_OBJDIR], 2617[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2618[rm -f .libs 2>/dev/null 2619mkdir .libs 2>/dev/null 2620if test -d .libs; then 2621 lt_cv_objdir=.libs 2622else 2623 # MS-DOS does not allow filenames that begin with a dot. 2624 lt_cv_objdir=_libs 2625fi 2626rmdir .libs 2>/dev/null]) 2627objdir=$lt_cv_objdir 2628_LT_DECL([], [objdir], [0], 2629 [The name of the directory that contains temporary libtool files])dnl 2630m4_pattern_allow([LT_OBJDIR])dnl 2631AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 2632 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 2633])# _LT_CHECK_OBJDIR 2634 2635 2636# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2637# -------------------------------------- 2638# Check hardcoding attributes. 2639m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2640[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2641_LT_TAGVAR(hardcode_action, $1)= 2642if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2643 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2644 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 2645 2646 # We can hardcode non-existent directories. 2647 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 2648 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2649 # have to relink, otherwise we might link with an installed library 2650 # when we should be linking with a yet-to-be-installed one 2651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2652 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 2653 # Linking always hardcodes the temporary library directory. 2654 _LT_TAGVAR(hardcode_action, $1)=relink 2655 else 2656 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2657 _LT_TAGVAR(hardcode_action, $1)=immediate 2658 fi 2659else 2660 # We cannot hardcode anything, or else we can only hardcode existing 2661 # directories. 2662 _LT_TAGVAR(hardcode_action, $1)=unsupported 2663fi 2664AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2665 2666if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2667 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 2668 # Fast installation is not supported 2669 enable_fast_install=no 2670elif test "$shlibpath_overrides_runpath" = yes || 2671 test "$enable_shared" = no; then 2672 # Fast installation is not necessary 2673 enable_fast_install=needless 2674fi 2675_LT_TAGDECL([], [hardcode_action], [0], 2676 [How to hardcode a shared library path into an executable]) 2677])# _LT_LINKER_HARDCODE_LIBPATH 2678 2679 2680# _LT_CMD_STRIPLIB 2681# ---------------- 2682m4_defun([_LT_CMD_STRIPLIB], 2683[m4_require([_LT_DECL_EGREP]) 2684striplib= 2685old_striplib= 2686AC_MSG_CHECKING([whether stripping libraries is possible]) 2687if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2688 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2689 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2690 AC_MSG_RESULT([yes]) 2691else 2692# FIXME - insert some real tests, host_os isn't really good enough 2693 case $host_os in 2694 darwin*) 2695 if test -n "$STRIP" ; then 2696 striplib="$STRIP -x" 2697 old_striplib="$STRIP -S" 2698 AC_MSG_RESULT([yes]) 2699 else 2700 AC_MSG_RESULT([no]) 2701 fi 2702 ;; 2703 *) 2704 AC_MSG_RESULT([no]) 2705 ;; 2706 esac 2707fi 2708_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2709_LT_DECL([], [striplib], [1]) 2710])# _LT_CMD_STRIPLIB 2711 2712 2713# _LT_SYS_DYNAMIC_LINKER([TAG]) 2714# ----------------------------- 2715# PORTME Fill in your ld.so characteristics 2716m4_defun([_LT_SYS_DYNAMIC_LINKER], 2717[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2718m4_require([_LT_DECL_EGREP])dnl 2719m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2720m4_require([_LT_DECL_OBJDUMP])dnl 2721m4_require([_LT_DECL_SED])dnl 2722AC_MSG_CHECKING([dynamic linker characteristics]) 2723m4_if([$1], 2724 [], [ 2725if test "$GCC" = yes; then 2726 case $host_os in 2727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 2728 *) lt_awk_arg="/^libraries:/" ;; 2729 esac 2730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2731 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 2732 # if the path contains ";" then we assume it to be the separator 2733 # otherwise default to the standard path separator (i.e. ":") - it is 2734 # assumed that no part of a normal pathname contains ";" but that should 2735 # okay in the real world where ";" in dirpaths is itself problematic. 2736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 2737 else 2738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2739 fi 2740 # Ok, now we have the path, separated by spaces, we can step through it 2741 # and add multilib dir if necessary. 2742 lt_tmp_lt_search_path_spec= 2743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2744 for lt_sys_path in $lt_search_path_spec; do 2745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 2746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 2747 else 2748 test -d "$lt_sys_path" && \ 2749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2750 fi 2751 done 2752 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 2753BEGIN {RS=" "; FS="/|\n";} { 2754 lt_foo=""; 2755 lt_count=0; 2756 for (lt_i = NF; lt_i > 0; lt_i--) { 2757 if ($lt_i != "" && $lt_i != ".") { 2758 if ($lt_i == "..") { 2759 lt_count++; 2760 } else { 2761 if (lt_count == 0) { 2762 lt_foo="/" $lt_i lt_foo; 2763 } else { 2764 lt_count--; 2765 } 2766 } 2767 } 2768 } 2769 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2770 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2771}'` 2772 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 2773else 2774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2775fi]) 2776library_names_spec= 2777libname_spec='lib$name' 2778soname_spec= 2779shrext_cmds=".so" 2780postinstall_cmds= 2781postuninstall_cmds= 2782finish_cmds= 2783finish_eval= 2784shlibpath_var= 2785shlibpath_overrides_runpath=unknown 2786version_type=none 2787dynamic_linker="$host_os ld.so" 2788sys_lib_dlsearch_path_spec="/lib /usr/lib" 2789need_lib_prefix=unknown 2790hardcode_into_libs=no 2791 2792# when you set need_version to no, make sure it does not cause -set_version 2793# flags to be left without arguments 2794need_version=unknown 2795 2796case $host_os in 2797aix3*) 2798 version_type=linux 2799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2800 shlibpath_var=LIBPATH 2801 2802 # AIX 3 has no versioning support, so we append a major version to the name. 2803 soname_spec='${libname}${release}${shared_ext}$major' 2804 ;; 2805 2806aix[[4-9]]*) 2807 version_type=linux 2808 need_lib_prefix=no 2809 need_version=no 2810 hardcode_into_libs=yes 2811 if test "$host_cpu" = ia64; then 2812 # AIX 5 supports IA64 2813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2814 shlibpath_var=LD_LIBRARY_PATH 2815 else 2816 # With GCC up to 2.95.x, collect2 would create an import file 2817 # for dependence libraries. The import file would start with 2818 # the line `#! .'. This would cause the generated library to 2819 # depend on `.', always an invalid library. This was fixed in 2820 # development snapshots of GCC prior to 3.0. 2821 case $host_os in 2822 aix4 | aix4.[[01]] | aix4.[[01]].*) 2823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2824 echo ' yes ' 2825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 2826 : 2827 else 2828 can_build_shared=no 2829 fi 2830 ;; 2831 esac 2832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2833 # soname into executable. Probably we can add versioning support to 2834 # collect2, so additional links can be useful in future. 2835 if test "$aix_use_runtimelinking" = yes; then 2836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2837 # instead of lib<name>.a to let people know that these are not 2838 # typical AIX shared libraries. 2839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2840 else 2841 # We preserve .a as extension for shared libraries through AIX4.2 2842 # and later when we are not doing run time linking. 2843 library_names_spec='${libname}${release}.a $libname.a' 2844 soname_spec='${libname}${release}${shared_ext}$major' 2845 fi 2846 shlibpath_var=LIBPATH 2847 fi 2848 ;; 2849 2850amigaos*) 2851 case $host_cpu in 2852 powerpc) 2853 # Since July 2007 AmigaOS4 officially supports .so libraries. 2854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2856 ;; 2857 m68k) 2858 library_names_spec='$libname.ixlibrary $libname.a' 2859 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2860 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' 2861 ;; 2862 esac 2863 ;; 2864 2865beos*) 2866 library_names_spec='${libname}${shared_ext}' 2867 dynamic_linker="$host_os ld.so" 2868 shlibpath_var=LIBRARY_PATH 2869 ;; 2870 2871bsdi[[45]]*) 2872 version_type=linux 2873 need_version=no 2874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2875 soname_spec='${libname}${release}${shared_ext}$major' 2876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2877 shlibpath_var=LD_LIBRARY_PATH 2878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2880 # the default ld.so.conf also contains /usr/contrib/lib and 2881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2882 # libtool to hard-code these into programs 2883 ;; 2884 2885cygwin* | mingw* | pw32* | cegcc*) 2886 version_type=windows 2887 shrext_cmds=".dll" 2888 need_version=no 2889 need_lib_prefix=no 2890 2891 case $GCC,$host_os in 2892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 2893 library_names_spec='$libname.dll.a' 2894 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2895 postinstall_cmds='base_file=`basename \${file}`~ 2896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 2897 dldir=$destdir/`dirname \$dlpath`~ 2898 test -d \$dldir || mkdir -p \$dldir~ 2899 $install_prog $dir/$dlname \$dldir/$dlname~ 2900 chmod a+x \$dldir/$dlname~ 2901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2903 fi' 2904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2905 dlpath=$dir/\$dldll~ 2906 $RM \$dlpath' 2907 shlibpath_overrides_runpath=yes 2908 2909 case $host_os in 2910 cygwin*) 2911 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2914 ;; 2915 mingw* | cegcc*) 2916 # MinGW DLLs use traditional 'lib' prefix 2917 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2918 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2919 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2920 # It is most probably a Windows format PATH printed by 2921 # mingw gcc, but we are running on Cygwin. Gcc prints its search 2922 # path with ; separators, and with drive letters. We can handle the 2923 # drive letters (cygwin fileutils understands them), so leave them, 2924 # especially as we might pass files found there to a mingw objdump, 2925 # which wouldn't understand a cygwinified path. Ahh. 2926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2927 else 2928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2929 fi 2930 ;; 2931 pw32*) 2932 # pw32 DLLs use 'pw' prefix rather than 'lib' 2933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2934 ;; 2935 esac 2936 ;; 2937 2938 *) 2939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2940 ;; 2941 esac 2942 dynamic_linker='Win32 ld.exe' 2943 # FIXME: first we should search . and the directory the executable is in 2944 shlibpath_var=PATH 2945 ;; 2946 2947darwin* | rhapsody*) 2948 dynamic_linker="$host_os dyld" 2949 version_type=darwin 2950 need_lib_prefix=no 2951 need_version=no 2952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2953 soname_spec='${libname}${release}${major}$shared_ext' 2954 shlibpath_overrides_runpath=yes 2955 shlibpath_var=DYLD_LIBRARY_PATH 2956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2957m4_if([$1], [],[ 2958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2960 ;; 2961 2962dgux*) 2963 version_type=linux 2964 need_lib_prefix=no 2965 need_version=no 2966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2967 soname_spec='${libname}${release}${shared_ext}$major' 2968 shlibpath_var=LD_LIBRARY_PATH 2969 ;; 2970 2971freebsd1*) 2972 dynamic_linker=no 2973 ;; 2974 2975freebsd* | dragonfly*) 2976 # DragonFly does not have aout. When/if they implement a new 2977 # versioning mechanism, adjust this. 2978 if test -x /usr/bin/objformat; then 2979 objformat=`/usr/bin/objformat` 2980 else 2981 case $host_os in 2982 freebsd[[123]]*) objformat=aout ;; 2983 *) objformat=elf ;; 2984 esac 2985 fi 2986 version_type=freebsd-$objformat 2987 case $version_type in 2988 freebsd-elf*) 2989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2990 need_version=no 2991 need_lib_prefix=no 2992 ;; 2993 freebsd-*) 2994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2995 need_version=yes 2996 ;; 2997 esac 2998 shlibpath_var=LD_LIBRARY_PATH 2999 case $host_os in 3000 freebsd2*) 3001 shlibpath_overrides_runpath=yes 3002 ;; 3003 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3004 shlibpath_overrides_runpath=yes 3005 hardcode_into_libs=yes 3006 ;; 3007 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3008 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3009 shlibpath_overrides_runpath=no 3010 hardcode_into_libs=yes 3011 ;; 3012 *) # from 4.6 on, and DragonFly 3013 shlibpath_overrides_runpath=yes 3014 hardcode_into_libs=yes 3015 ;; 3016 esac 3017 ;; 3018 3019gnu*) 3020 version_type=linux 3021 need_lib_prefix=no 3022 need_version=no 3023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 3024 soname_spec='${libname}${release}${shared_ext}$major' 3025 shlibpath_var=LD_LIBRARY_PATH 3026 hardcode_into_libs=yes 3027 ;; 3028 3029hpux9* | hpux10* | hpux11*) 3030 # Give a soname corresponding to the major version so that dld.sl refuses to 3031 # link against other versions. 3032 version_type=sunos 3033 need_lib_prefix=no 3034 need_version=no 3035 case $host_cpu in 3036 ia64*) 3037 shrext_cmds='.so' 3038 hardcode_into_libs=yes 3039 dynamic_linker="$host_os dld.so" 3040 shlibpath_var=LD_LIBRARY_PATH 3041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3043 soname_spec='${libname}${release}${shared_ext}$major' 3044 if test "X$HPUX_IA64_MODE" = X32; then 3045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3046 else 3047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3048 fi 3049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3050 ;; 3051 hppa*64*) 3052 shrext_cmds='.sl' 3053 hardcode_into_libs=yes 3054 dynamic_linker="$host_os dld.sl" 3055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3058 soname_spec='${libname}${release}${shared_ext}$major' 3059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3061 ;; 3062 *) 3063 shrext_cmds='.sl' 3064 dynamic_linker="$host_os dld.sl" 3065 shlibpath_var=SHLIB_PATH 3066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3068 soname_spec='${libname}${release}${shared_ext}$major' 3069 ;; 3070 esac 3071 # HP-UX runs *really* slowly unless shared libraries are mode 555. 3072 postinstall_cmds='chmod 555 $lib' 3073 ;; 3074 3075interix[[3-9]]*) 3076 version_type=linux 3077 need_lib_prefix=no 3078 need_version=no 3079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3080 soname_spec='${libname}${release}${shared_ext}$major' 3081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3082 shlibpath_var=LD_LIBRARY_PATH 3083 shlibpath_overrides_runpath=no 3084 hardcode_into_libs=yes 3085 ;; 3086 3087irix5* | irix6* | nonstopux*) 3088 case $host_os in 3089 nonstopux*) version_type=nonstopux ;; 3090 *) 3091 if test "$lt_cv_prog_gnu_ld" = yes; then 3092 version_type=linux 3093 else 3094 version_type=irix 3095 fi ;; 3096 esac 3097 need_lib_prefix=no 3098 need_version=no 3099 soname_spec='${libname}${release}${shared_ext}$major' 3100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 3101 case $host_os in 3102 irix5* | nonstopux*) 3103 libsuff= shlibsuff= 3104 ;; 3105 *) 3106 case $LD in # libtool.m4 will add one of these switches to LD 3107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3108 libsuff= shlibsuff= libmagic=32-bit;; 3109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3110 libsuff=32 shlibsuff=N32 libmagic=N32;; 3111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3112 libsuff=64 shlibsuff=64 libmagic=64-bit;; 3113 *) libsuff= shlibsuff= libmagic=never-match;; 3114 esac 3115 ;; 3116 esac 3117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3118 shlibpath_overrides_runpath=no 3119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 3120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 3121 hardcode_into_libs=yes 3122 ;; 3123 3124# No shared lib support for Linux oldld, aout, or coff. 3125linux*oldld* | linux*aout* | linux*coff*) 3126 dynamic_linker=no 3127 ;; 3128 3129# This must be Linux ELF. 3130linux* | k*bsd*-gnu) 3131 version_type=linux 3132 need_lib_prefix=no 3133 need_version=no 3134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3135 soname_spec='${libname}${release}${shared_ext}$major' 3136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3137 shlibpath_var=LD_LIBRARY_PATH 3138 shlibpath_overrides_runpath=no 3139 # Some binutils ld are patched to set DT_RUNPATH 3140 save_LDFLAGS=$LDFLAGS 3141 save_libdir=$libdir 3142 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 3143 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 3144 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3145 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 3146 [shlibpath_overrides_runpath=yes])]) 3147 LDFLAGS=$save_LDFLAGS 3148 libdir=$save_libdir 3149 3150 # This implies no fast_install, which is unacceptable. 3151 # Some rework will be needed to allow for fast_install 3152 # before this can be enabled. 3153 hardcode_into_libs=yes 3154 3155 # Append ld.so.conf contents to the search path 3156 if test -f /etc/ld.so.conf; then 3157 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 3158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3159 fi 3160 3161 # We used to test for /lib/ld.so.1 and disable shared libraries on 3162 # powerpc, because MkLinux only supported shared libraries with the 3163 # GNU dynamic linker. Since this was broken with cross compilers, 3164 # most powerpc-linux boxes support dynamic linking these days and 3165 # people can always --disable-shared, the test was removed, and we 3166 # assume the GNU/Linux dynamic linker is in use. 3167 dynamic_linker='GNU/Linux ld.so' 3168 ;; 3169 3170netbsdelf*-gnu) 3171 version_type=linux 3172 need_lib_prefix=no 3173 need_version=no 3174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3175 soname_spec='${libname}${release}${shared_ext}$major' 3176 shlibpath_var=LD_LIBRARY_PATH 3177 shlibpath_overrides_runpath=no 3178 hardcode_into_libs=yes 3179 dynamic_linker='NetBSD ld.elf_so' 3180 ;; 3181 3182netbsd*) 3183 version_type=sunos 3184 need_lib_prefix=no 3185 need_version=no 3186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 3187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3189 dynamic_linker='NetBSD (a.out) ld.so' 3190 else 3191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3192 soname_spec='${libname}${release}${shared_ext}$major' 3193 dynamic_linker='NetBSD ld.elf_so' 3194 fi 3195 shlibpath_var=LD_LIBRARY_PATH 3196 shlibpath_overrides_runpath=yes 3197 hardcode_into_libs=yes 3198 ;; 3199 3200newsos6) 3201 version_type=linux 3202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3203 shlibpath_var=LD_LIBRARY_PATH 3204 shlibpath_overrides_runpath=yes 3205 ;; 3206 3207*nto* | *qnx*) 3208 version_type=qnx 3209 need_lib_prefix=no 3210 need_version=no 3211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3212 soname_spec='${libname}${release}${shared_ext}$major' 3213 shlibpath_var=LD_LIBRARY_PATH 3214 shlibpath_overrides_runpath=no 3215 hardcode_into_libs=yes 3216 dynamic_linker='ldqnx.so' 3217 ;; 3218 3219openbsd*) 3220 version_type=sunos 3221 sys_lib_dlsearch_path_spec="/usr/lib" 3222 need_lib_prefix=no 3223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 3224 case $host_os in 3225 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 3226 *) need_version=no ;; 3227 esac 3228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3230 shlibpath_var=LD_LIBRARY_PATH 3231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3232 case $host_os in 3233 openbsd2.[[89]] | openbsd2.[[89]].*) 3234 shlibpath_overrides_runpath=no 3235 ;; 3236 *) 3237 shlibpath_overrides_runpath=yes 3238 ;; 3239 esac 3240 else 3241 shlibpath_overrides_runpath=yes 3242 fi 3243 ;; 3244 3245os2*) 3246 libname_spec='$name' 3247 shrext_cmds=".dll" 3248 need_lib_prefix=no 3249 library_names_spec='$libname${shared_ext} $libname.a' 3250 dynamic_linker='OS/2 ld.exe' 3251 shlibpath_var=LIBPATH 3252 ;; 3253 3254osf3* | osf4* | osf5*) 3255 version_type=osf 3256 need_lib_prefix=no 3257 need_version=no 3258 soname_spec='${libname}${release}${shared_ext}$major' 3259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3260 shlibpath_var=LD_LIBRARY_PATH 3261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 3263 ;; 3264 3265rdos*) 3266 dynamic_linker=no 3267 ;; 3268 3269solaris*) 3270 version_type=linux 3271 need_lib_prefix=no 3272 need_version=no 3273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3274 soname_spec='${libname}${release}${shared_ext}$major' 3275 shlibpath_var=LD_LIBRARY_PATH 3276 shlibpath_overrides_runpath=yes 3277 hardcode_into_libs=yes 3278 # ldd complains unless libraries are executable 3279 postinstall_cmds='chmod +x $lib' 3280 ;; 3281 3282sunos4*) 3283 version_type=sunos 3284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3286 shlibpath_var=LD_LIBRARY_PATH 3287 shlibpath_overrides_runpath=yes 3288 if test "$with_gnu_ld" = yes; then 3289 need_lib_prefix=no 3290 fi 3291 need_version=yes 3292 ;; 3293 3294sysv4 | sysv4.3*) 3295 version_type=linux 3296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3297 soname_spec='${libname}${release}${shared_ext}$major' 3298 shlibpath_var=LD_LIBRARY_PATH 3299 case $host_vendor in 3300 sni) 3301 shlibpath_overrides_runpath=no 3302 need_lib_prefix=no 3303 runpath_var=LD_RUN_PATH 3304 ;; 3305 siemens) 3306 need_lib_prefix=no 3307 ;; 3308 motorola) 3309 need_lib_prefix=no 3310 need_version=no 3311 shlibpath_overrides_runpath=no 3312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3313 ;; 3314 esac 3315 ;; 3316 3317sysv4*MP*) 3318 if test -d /usr/nec ;then 3319 version_type=linux 3320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 3321 soname_spec='$libname${shared_ext}.$major' 3322 shlibpath_var=LD_LIBRARY_PATH 3323 fi 3324 ;; 3325 3326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3327 version_type=freebsd-elf 3328 need_lib_prefix=no 3329 need_version=no 3330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3331 soname_spec='${libname}${release}${shared_ext}$major' 3332 shlibpath_var=LD_LIBRARY_PATH 3333 shlibpath_overrides_runpath=yes 3334 hardcode_into_libs=yes 3335 if test "$with_gnu_ld" = yes; then 3336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3337 else 3338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3339 case $host_os in 3340 sco3.2v5*) 3341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3342 ;; 3343 esac 3344 fi 3345 sys_lib_dlsearch_path_spec='/usr/lib' 3346 ;; 3347 3348tpf*) 3349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3350 version_type=linux 3351 need_lib_prefix=no 3352 need_version=no 3353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3354 shlibpath_var=LD_LIBRARY_PATH 3355 shlibpath_overrides_runpath=no 3356 hardcode_into_libs=yes 3357 ;; 3358 3359uts4*) 3360 version_type=linux 3361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3362 soname_spec='${libname}${release}${shared_ext}$major' 3363 shlibpath_var=LD_LIBRARY_PATH 3364 ;; 3365 3366*) 3367 dynamic_linker=no 3368 ;; 3369esac 3370AC_MSG_RESULT([$dynamic_linker]) 3371test "$dynamic_linker" = no && can_build_shared=no 3372 3373variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3374if test "$GCC" = yes; then 3375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3376fi 3377 3378if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 3379 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 3380fi 3381if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 3382 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 3383fi 3384 3385_LT_DECL([], [variables_saved_for_relink], [1], 3386 [Variables whose values should be saved in libtool wrapper scripts and 3387 restored at link time]) 3388_LT_DECL([], [need_lib_prefix], [0], 3389 [Do we need the "lib" prefix for modules?]) 3390_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3391_LT_DECL([], [version_type], [0], [Library versioning type]) 3392_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3393_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3394_LT_DECL([], [shlibpath_overrides_runpath], [0], 3395 [Is shlibpath searched before the hard-coded library search path?]) 3396_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3397_LT_DECL([], [library_names_spec], [1], 3398 [[List of archive names. First name is the real one, the rest are links. 3399 The last name is the one that the linker finds with -lNAME]]) 3400_LT_DECL([], [soname_spec], [1], 3401 [[The coded name of the library, if different from the real name]]) 3402_LT_DECL([], [postinstall_cmds], [2], 3403 [Command to use after installation of a shared archive]) 3404_LT_DECL([], [postuninstall_cmds], [2], 3405 [Command to use after uninstallation of a shared archive]) 3406_LT_DECL([], [finish_cmds], [2], 3407 [Commands used to finish a libtool library installation in a directory]) 3408_LT_DECL([], [finish_eval], [1], 3409 [[As "finish_cmds", except a single script fragment to be evaled but 3410 not shown]]) 3411_LT_DECL([], [hardcode_into_libs], [0], 3412 [Whether we should hardcode library paths into libraries]) 3413_LT_DECL([], [sys_lib_search_path_spec], [2], 3414 [Compile-time system search path for libraries]) 3415_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 3416 [Run-time system search path for libraries]) 3417])# _LT_SYS_DYNAMIC_LINKER 3418 3419 3420# _LT_PATH_TOOL_PREFIX(TOOL) 3421# -------------------------- 3422# find a file program which can recognize shared library 3423AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3424[m4_require([_LT_DECL_EGREP])dnl 3425AC_MSG_CHECKING([for $1]) 3426AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3427[case $MAGIC_CMD in 3428[[\\/*] | ?:[\\/]*]) 3429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3430 ;; 3431*) 3432 lt_save_MAGIC_CMD="$MAGIC_CMD" 3433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3434dnl $ac_dummy forces splitting on constant user-supplied paths. 3435dnl POSIX.2 word splitting is done only on the output of word expansions, 3436dnl not every word. This closes a longstanding sh security hole. 3437 ac_dummy="m4_if([$2], , $PATH, [$2])" 3438 for ac_dir in $ac_dummy; do 3439 IFS="$lt_save_ifs" 3440 test -z "$ac_dir" && ac_dir=. 3441 if test -f $ac_dir/$1; then 3442 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 3443 if test -n "$file_magic_test_file"; then 3444 case $deplibs_check_method in 3445 "file_magic "*) 3446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3449 $EGREP "$file_magic_regex" > /dev/null; then 3450 : 3451 else 3452 cat <<_LT_EOF 1>&2 3453 3454*** Warning: the command libtool uses to detect shared libraries, 3455*** $file_magic_cmd, produces output that libtool cannot recognize. 3456*** The result is that libtool may fail to recognize shared libraries 3457*** as such. This will affect the creation of libtool libraries that 3458*** depend on shared libraries, but programs linked with such libtool 3459*** libraries will work regardless of this problem. Nevertheless, you 3460*** may want to report the problem to your system manager and/or to 3461*** bug-libtool@gnu.org 3462 3463_LT_EOF 3464 fi ;; 3465 esac 3466 fi 3467 break 3468 fi 3469 done 3470 IFS="$lt_save_ifs" 3471 MAGIC_CMD="$lt_save_MAGIC_CMD" 3472 ;; 3473esac]) 3474MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3475if test -n "$MAGIC_CMD"; then 3476 AC_MSG_RESULT($MAGIC_CMD) 3477else 3478 AC_MSG_RESULT(no) 3479fi 3480_LT_DECL([], [MAGIC_CMD], [0], 3481 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3482])# _LT_PATH_TOOL_PREFIX 3483 3484# Old name: 3485AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3486dnl aclocal-1.4 backwards compatibility: 3487dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3488 3489 3490# _LT_PATH_MAGIC 3491# -------------- 3492# find a file program which can recognize a shared library 3493m4_defun([_LT_PATH_MAGIC], 3494[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3495if test -z "$lt_cv_path_MAGIC_CMD"; then 3496 if test -n "$ac_tool_prefix"; then 3497 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3498 else 3499 MAGIC_CMD=: 3500 fi 3501fi 3502])# _LT_PATH_MAGIC 3503 3504 3505# LT_PATH_LD 3506# ---------- 3507# find the pathname to the GNU or non-GNU linker 3508AC_DEFUN([LT_PATH_LD], 3509[AC_REQUIRE([AC_PROG_CC])dnl 3510AC_REQUIRE([AC_CANONICAL_HOST])dnl 3511AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3512m4_require([_LT_DECL_SED])dnl 3513m4_require([_LT_DECL_EGREP])dnl 3514 3515AC_ARG_WITH([gnu-ld], 3516 [AS_HELP_STRING([--with-gnu-ld], 3517 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3518 [test "$withval" = no || with_gnu_ld=yes], 3519 [with_gnu_ld=no])dnl 3520 3521ac_prog=ld 3522if test "$GCC" = yes; then 3523 # Check if gcc -print-prog-name=ld gives a path. 3524 AC_MSG_CHECKING([for ld used by $CC]) 3525 case $host in 3526 *-*-mingw*) 3527 # gcc leaves a trailing carriage return which upsets mingw 3528 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3529 *) 3530 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3531 esac 3532 case $ac_prog in 3533 # Accept absolute paths. 3534 [[\\/]]* | ?:[[\\/]]*) 3535 re_direlt='/[[^/]][[^/]]*/\.\./' 3536 # Canonicalize the pathname of ld 3537 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3538 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3539 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3540 done 3541 test -z "$LD" && LD="$ac_prog" 3542 ;; 3543 "") 3544 # If it fails, then pretend we aren't using GCC. 3545 ac_prog=ld 3546 ;; 3547 *) 3548 # If it is relative, then search for the first ld in PATH. 3549 with_gnu_ld=unknown 3550 ;; 3551 esac 3552elif test "$with_gnu_ld" = yes; then 3553 AC_MSG_CHECKING([for GNU ld]) 3554else 3555 AC_MSG_CHECKING([for non-GNU ld]) 3556fi 3557AC_CACHE_VAL(lt_cv_path_LD, 3558[if test -z "$LD"; then 3559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3560 for ac_dir in $PATH; do 3561 IFS="$lt_save_ifs" 3562 test -z "$ac_dir" && ac_dir=. 3563 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3564 lt_cv_path_LD="$ac_dir/$ac_prog" 3565 # Check to see if the program is GNU ld. I'd rather use --version, 3566 # but apparently some variants of GNU ld only accept -v. 3567 # Break only if it was the GNU/non-GNU ld that we prefer. 3568 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3569 *GNU* | *'with BFD'*) 3570 test "$with_gnu_ld" != no && break 3571 ;; 3572 *) 3573 test "$with_gnu_ld" != yes && break 3574 ;; 3575 esac 3576 fi 3577 done 3578 IFS="$lt_save_ifs" 3579else 3580 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3581fi]) 3582LD="$lt_cv_path_LD" 3583if test -n "$LD"; then 3584 AC_MSG_RESULT($LD) 3585else 3586 AC_MSG_RESULT(no) 3587fi 3588test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3589_LT_PATH_LD_GNU 3590AC_SUBST([LD]) 3591 3592_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3593])# LT_PATH_LD 3594 3595# Old names: 3596AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 3597AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 3598dnl aclocal-1.4 backwards compatibility: 3599dnl AC_DEFUN([AM_PROG_LD], []) 3600dnl AC_DEFUN([AC_PROG_LD], []) 3601 3602 3603# _LT_PATH_LD_GNU 3604#- -------------- 3605m4_defun([_LT_PATH_LD_GNU], 3606[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3607[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3608case `$LD -v 2>&1 </dev/null` in 3609*GNU* | *'with BFD'*) 3610 lt_cv_prog_gnu_ld=yes 3611 ;; 3612*) 3613 lt_cv_prog_gnu_ld=no 3614 ;; 3615esac]) 3616with_gnu_ld=$lt_cv_prog_gnu_ld 3617])# _LT_PATH_LD_GNU 3618 3619 3620# _LT_CMD_RELOAD 3621# -------------- 3622# find reload flag for linker 3623# -- PORTME Some linkers may need a different reload flag. 3624m4_defun([_LT_CMD_RELOAD], 3625[AC_CACHE_CHECK([for $LD option to reload object files], 3626 lt_cv_ld_reload_flag, 3627 [lt_cv_ld_reload_flag='-r']) 3628reload_flag=$lt_cv_ld_reload_flag 3629case $reload_flag in 3630"" | " "*) ;; 3631*) reload_flag=" $reload_flag" ;; 3632esac 3633reload_cmds='$LD$reload_flag -o $output$reload_objs' 3634case $host_os in 3635 darwin*) 3636 if test "$GCC" = yes; then 3637 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3638 else 3639 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3640 fi 3641 ;; 3642esac 3643_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3644_LT_DECL([], [reload_cmds], [2])dnl 3645])# _LT_CMD_RELOAD 3646 3647 3648# _LT_CHECK_MAGIC_METHOD 3649# ---------------------- 3650# how to check for library dependencies 3651# -- PORTME fill in with the dynamic library characteristics 3652m4_defun([_LT_CHECK_MAGIC_METHOD], 3653[m4_require([_LT_DECL_EGREP]) 3654m4_require([_LT_DECL_OBJDUMP]) 3655AC_CACHE_CHECK([how to recognize dependent libraries], 3656lt_cv_deplibs_check_method, 3657[lt_cv_file_magic_cmd='$MAGIC_CMD' 3658lt_cv_file_magic_test_file= 3659lt_cv_deplibs_check_method='unknown' 3660# Need to set the preceding variable on all platforms that support 3661# interlibrary dependencies. 3662# 'none' -- dependencies not supported. 3663# `unknown' -- same as none, but documents that we really don't know. 3664# 'pass_all' -- all dependencies passed with no checks. 3665# 'test_compile' -- check by making test program. 3666# 'file_magic [[regex]]' -- check by looking for files in library path 3667# which responds to the $file_magic_cmd with a given extended regex. 3668# If you have `file' or equivalent on your system and you're not sure 3669# whether `pass_all' will *always* work, you probably want this one. 3670 3671case $host_os in 3672aix[[4-9]]*) 3673 lt_cv_deplibs_check_method=pass_all 3674 ;; 3675 3676beos*) 3677 lt_cv_deplibs_check_method=pass_all 3678 ;; 3679 3680bsdi[[45]]*) 3681 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3682 lt_cv_file_magic_cmd='/usr/bin/file -L' 3683 lt_cv_file_magic_test_file=/shlib/libc.so 3684 ;; 3685 3686cygwin*) 3687 # func_win32_libid is a shell function defined in ltmain.sh 3688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3689 lt_cv_file_magic_cmd='func_win32_libid' 3690 ;; 3691 3692mingw* | pw32*) 3693 # Base MSYS/MinGW do not provide the 'file' command needed by 3694 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3695 # unless we find 'file', for example because we are cross-compiling. 3696 if ( file / ) >/dev/null 2>&1; then 3697 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3698 lt_cv_file_magic_cmd='func_win32_libid' 3699 else 3700 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3701 lt_cv_file_magic_cmd='$OBJDUMP -f' 3702 fi 3703 ;; 3704 3705cegcc) 3706 # use the weaker test based on 'objdump'. See mingw*. 3707 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3708 lt_cv_file_magic_cmd='$OBJDUMP -f' 3709 ;; 3710 3711darwin* | rhapsody*) 3712 lt_cv_deplibs_check_method=pass_all 3713 ;; 3714 3715freebsd* | dragonfly*) 3716 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3717 case $host_cpu in 3718 i*86 ) 3719 # Not sure whether the presence of OpenBSD here was a mistake. 3720 # Let's accept both of them until this is cleared up. 3721 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3722 lt_cv_file_magic_cmd=/usr/bin/file 3723 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3724 ;; 3725 esac 3726 else 3727 lt_cv_deplibs_check_method=pass_all 3728 fi 3729 ;; 3730 3731gnu*) 3732 lt_cv_deplibs_check_method=pass_all 3733 ;; 3734 3735hpux10.20* | hpux11*) 3736 lt_cv_file_magic_cmd=/usr/bin/file 3737 case $host_cpu in 3738 ia64*) 3739 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3740 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3741 ;; 3742 hppa*64*) 3743 [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]'] 3744 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3745 ;; 3746 *) 3747 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3748 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3749 ;; 3750 esac 3751 ;; 3752 3753interix[[3-9]]*) 3754 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3755 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3756 ;; 3757 3758irix5* | irix6* | nonstopux*) 3759 case $LD in 3760 *-32|*"-32 ") libmagic=32-bit;; 3761 *-n32|*"-n32 ") libmagic=N32;; 3762 *-64|*"-64 ") libmagic=64-bit;; 3763 *) libmagic=never-match;; 3764 esac 3765 lt_cv_deplibs_check_method=pass_all 3766 ;; 3767 3768# This must be Linux ELF. 3769linux* | k*bsd*-gnu) 3770 lt_cv_deplibs_check_method=pass_all 3771 ;; 3772 3773netbsd* | netbsdelf*-gnu) 3774 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3775 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3776 else 3777 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3778 fi 3779 ;; 3780 3781newos6*) 3782 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3783 lt_cv_file_magic_cmd=/usr/bin/file 3784 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3785 ;; 3786 3787*nto* | *qnx*) 3788 lt_cv_deplibs_check_method=pass_all 3789 ;; 3790 3791openbsd*) 3792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3793 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3794 else 3795 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3796 fi 3797 ;; 3798 3799osf3* | osf4* | osf5*) 3800 lt_cv_deplibs_check_method=pass_all 3801 ;; 3802 3803rdos*) 3804 lt_cv_deplibs_check_method=pass_all 3805 ;; 3806 3807solaris*) 3808 lt_cv_deplibs_check_method=pass_all 3809 ;; 3810 3811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3812 lt_cv_deplibs_check_method=pass_all 3813 ;; 3814 3815sysv4 | sysv4.3*) 3816 case $host_vendor in 3817 motorola) 3818 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]]' 3819 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3820 ;; 3821 ncr) 3822 lt_cv_deplibs_check_method=pass_all 3823 ;; 3824 sequent) 3825 lt_cv_file_magic_cmd='/bin/file' 3826 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3827 ;; 3828 sni) 3829 lt_cv_file_magic_cmd='/bin/file' 3830 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3831 lt_cv_file_magic_test_file=/lib/libc.so 3832 ;; 3833 siemens) 3834 lt_cv_deplibs_check_method=pass_all 3835 ;; 3836 pc) 3837 lt_cv_deplibs_check_method=pass_all 3838 ;; 3839 esac 3840 ;; 3841 3842tpf*) 3843 lt_cv_deplibs_check_method=pass_all 3844 ;; 3845esac 3846]) 3847file_magic_cmd=$lt_cv_file_magic_cmd 3848deplibs_check_method=$lt_cv_deplibs_check_method 3849test -z "$deplibs_check_method" && deplibs_check_method=unknown 3850 3851_LT_DECL([], [deplibs_check_method], [1], 3852 [Method to check whether dependent libraries are shared objects]) 3853_LT_DECL([], [file_magic_cmd], [1], 3854 [Command to use when deplibs_check_method == "file_magic"]) 3855])# _LT_CHECK_MAGIC_METHOD 3856 3857 3858# LT_PATH_NM 3859# ---------- 3860# find the pathname to a BSD- or MS-compatible name lister 3861AC_DEFUN([LT_PATH_NM], 3862[AC_REQUIRE([AC_PROG_CC])dnl 3863AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3864[if test -n "$NM"; then 3865 # Let the user override the test. 3866 lt_cv_path_NM="$NM" 3867else 3868 lt_nm_to_check="${ac_tool_prefix}nm" 3869 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3870 lt_nm_to_check="$lt_nm_to_check nm" 3871 fi 3872 for lt_tmp_nm in $lt_nm_to_check; do 3873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3874 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3875 IFS="$lt_save_ifs" 3876 test -z "$ac_dir" && ac_dir=. 3877 tmp_nm="$ac_dir/$lt_tmp_nm" 3878 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3879 # Check to see if the nm accepts a BSD-compat flag. 3880 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3881 # nm: unknown option "B" ignored 3882 # Tru64's nm complains that /dev/null is an invalid object file 3883 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3884 */dev/null* | *'Invalid file or object type'*) 3885 lt_cv_path_NM="$tmp_nm -B" 3886 break 3887 ;; 3888 *) 3889 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3890 */dev/null*) 3891 lt_cv_path_NM="$tmp_nm -p" 3892 break 3893 ;; 3894 *) 3895 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3896 continue # so that we can try to find one that supports BSD flags 3897 ;; 3898 esac 3899 ;; 3900 esac 3901 fi 3902 done 3903 IFS="$lt_save_ifs" 3904 done 3905 : ${lt_cv_path_NM=no} 3906fi]) 3907if test "$lt_cv_path_NM" != "no"; then 3908 NM="$lt_cv_path_NM" 3909else 3910 # Didn't find any BSD compatible name lister, look for dumpbin. 3911 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 3912 AC_SUBST([DUMPBIN]) 3913 if test "$DUMPBIN" != ":"; then 3914 NM="$DUMPBIN" 3915 fi 3916fi 3917test -z "$NM" && NM=nm 3918AC_SUBST([NM]) 3919_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3920 3921AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3922 [lt_cv_nm_interface="BSD nm" 3923 echo "int some_variable = 0;" > conftest.$ac_ext 3924 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3925 (eval "$ac_compile" 2>conftest.err) 3926 cat conftest.err >&AS_MESSAGE_LOG_FD 3927 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3928 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3929 cat conftest.err >&AS_MESSAGE_LOG_FD 3930 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 3931 cat conftest.out >&AS_MESSAGE_LOG_FD 3932 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3933 lt_cv_nm_interface="MS dumpbin" 3934 fi 3935 rm -f conftest*]) 3936])# LT_PATH_NM 3937 3938# Old names: 3939AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3940AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3941dnl aclocal-1.4 backwards compatibility: 3942dnl AC_DEFUN([AM_PROG_NM], []) 3943dnl AC_DEFUN([AC_PROG_NM], []) 3944 3945 3946# LT_LIB_M 3947# -------- 3948# check for math library 3949AC_DEFUN([LT_LIB_M], 3950[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3951LIBM= 3952case $host in 3953*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 3954 # These system don't have libm, or don't need it 3955 ;; 3956*-ncr-sysv4.3*) 3957 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3958 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3959 ;; 3960*) 3961 AC_CHECK_LIB(m, cos, LIBM="-lm") 3962 ;; 3963esac 3964AC_SUBST([LIBM]) 3965])# LT_LIB_M 3966 3967# Old name: 3968AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3969dnl aclocal-1.4 backwards compatibility: 3970dnl AC_DEFUN([AC_CHECK_LIBM], []) 3971 3972 3973# _LT_COMPILER_NO_RTTI([TAGNAME]) 3974# ------------------------------- 3975m4_defun([_LT_COMPILER_NO_RTTI], 3976[m4_require([_LT_TAG_COMPILER])dnl 3977 3978_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3979 3980if test "$GCC" = yes; then 3981 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3982 3983 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3984 lt_cv_prog_compiler_rtti_exceptions, 3985 [-fno-rtti -fno-exceptions], [], 3986 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3987fi 3988_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3989 [Compiler flag to turn off builtin functions]) 3990])# _LT_COMPILER_NO_RTTI 3991 3992 3993# _LT_CMD_GLOBAL_SYMBOLS 3994# ---------------------- 3995m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3996[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3997AC_REQUIRE([AC_PROG_CC])dnl 3998AC_REQUIRE([LT_PATH_NM])dnl 3999AC_REQUIRE([LT_PATH_LD])dnl 4000m4_require([_LT_DECL_SED])dnl 4001m4_require([_LT_DECL_EGREP])dnl 4002m4_require([_LT_TAG_COMPILER])dnl 4003 4004# Check for command to grab the raw symbol name followed by C symbol from nm. 4005AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4006AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4007[ 4008# These are sane defaults that work on at least a few old systems. 4009# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4010 4011# Character class describing NM global symbol codes. 4012symcode='[[BCDEGRST]]' 4013 4014# Regexp to match symbols that can be accessed directly from C. 4015sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4016 4017# Define system-specific variables. 4018case $host_os in 4019aix*) 4020 symcode='[[BCDT]]' 4021 ;; 4022cygwin* | mingw* | pw32* | cegcc*) 4023 symcode='[[ABCDGISTW]]' 4024 ;; 4025hpux*) 4026 if test "$host_cpu" = ia64; then 4027 symcode='[[ABCDEGRST]]' 4028 fi 4029 ;; 4030irix* | nonstopux*) 4031 symcode='[[BCDEGRST]]' 4032 ;; 4033osf*) 4034 symcode='[[BCDEGQRST]]' 4035 ;; 4036solaris*) 4037 symcode='[[BDRT]]' 4038 ;; 4039sco3.2v5*) 4040 symcode='[[DT]]' 4041 ;; 4042sysv4.2uw2*) 4043 symcode='[[DT]]' 4044 ;; 4045sysv5* | sco5v6* | unixware* | OpenUNIX*) 4046 symcode='[[ABDT]]' 4047 ;; 4048sysv4) 4049 symcode='[[DFNSTU]]' 4050 ;; 4051esac 4052 4053# If we're using GNU nm, then use its standard symbol codes. 4054case `$NM -V 2>&1` in 4055*GNU* | *'with BFD'*) 4056 symcode='[[ABCDGIRSTW]]' ;; 4057esac 4058 4059# Transform an extracted symbol line into a proper C declaration. 4060# Some systems (esp. on ia64) link data and code symbols differently, 4061# so use this general approach. 4062lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4063 4064# Transform an extracted symbol line into symbol name and symbol address 4065lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 4066lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 4067 4068# Handle CRLF in mingw tool chain 4069opt_cr= 4070case $build_os in 4071mingw*) 4072 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4073 ;; 4074esac 4075 4076# Try without a prefix underscore, then with it. 4077for ac_symprfx in "" "_"; do 4078 4079 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4080 symxfrm="\\1 $ac_symprfx\\2 \\2" 4081 4082 # Write the raw and C identifiers. 4083 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4084 # Fake it for dumpbin and say T for any non-static function 4085 # and D for any global variable. 4086 # Also find C++ and __fastcall symbols from MSVC++, 4087 # which start with @ or ?. 4088 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4089" {last_section=section; section=\$ 3};"\ 4090" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4091" \$ 0!~/External *\|/{next};"\ 4092" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4093" {if(hide[section]) next};"\ 4094" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4095" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4096" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4097" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4098" ' prfx=^$ac_symprfx]" 4099 else 4100 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4101 fi 4102 4103 # Check to see that the pipe works correctly. 4104 pipe_works=no 4105 4106 rm -f conftest* 4107 cat > conftest.$ac_ext <<_LT_EOF 4108#ifdef __cplusplus 4109extern "C" { 4110#endif 4111char nm_test_var; 4112void nm_test_func(void); 4113void nm_test_func(void){} 4114#ifdef __cplusplus 4115} 4116#endif 4117int main(){nm_test_var='a';nm_test_func();return(0);} 4118_LT_EOF 4119 4120 if AC_TRY_EVAL(ac_compile); then 4121 # Now try to grab the symbols. 4122 nlist=conftest.nm 4123 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 4124 # Try sorting and uniquifying the output. 4125 if sort "$nlist" | uniq > "$nlist"T; then 4126 mv -f "$nlist"T "$nlist" 4127 else 4128 rm -f "$nlist"T 4129 fi 4130 4131 # Make sure that we snagged all the symbols we need. 4132 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4133 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4134 cat <<_LT_EOF > conftest.$ac_ext 4135#ifdef __cplusplus 4136extern "C" { 4137#endif 4138 4139_LT_EOF 4140 # Now generate the symbol file. 4141 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4142 4143 cat <<_LT_EOF >> conftest.$ac_ext 4144 4145/* The mapping between symbol names and symbols. */ 4146const struct { 4147 const char *name; 4148 void *address; 4149} 4150lt__PROGRAM__LTX_preloaded_symbols[[]] = 4151{ 4152 { "@PROGRAM@", (void *) 0 }, 4153_LT_EOF 4154 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4155 cat <<\_LT_EOF >> conftest.$ac_ext 4156 {0, (void *) 0} 4157}; 4158 4159/* This works around a problem in FreeBSD linker */ 4160#ifdef FREEBSD_WORKAROUND 4161static const void *lt_preloaded_setup() { 4162 return lt__PROGRAM__LTX_preloaded_symbols; 4163} 4164#endif 4165 4166#ifdef __cplusplus 4167} 4168#endif 4169_LT_EOF 4170 # Now try linking the two files. 4171 mv conftest.$ac_objext conftstm.$ac_objext 4172 lt_save_LIBS="$LIBS" 4173 lt_save_CFLAGS="$CFLAGS" 4174 LIBS="conftstm.$ac_objext" 4175 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4176 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 4177 pipe_works=yes 4178 fi 4179 LIBS="$lt_save_LIBS" 4180 CFLAGS="$lt_save_CFLAGS" 4181 else 4182 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4183 fi 4184 else 4185 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4186 fi 4187 else 4188 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4189 fi 4190 else 4191 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4192 cat conftest.$ac_ext >&5 4193 fi 4194 rm -rf conftest* conftst* 4195 4196 # Do not use the global_symbol_pipe unless it works. 4197 if test "$pipe_works" = yes; then 4198 break 4199 else 4200 lt_cv_sys_global_symbol_pipe= 4201 fi 4202done 4203]) 4204if test -z "$lt_cv_sys_global_symbol_pipe"; then 4205 lt_cv_sys_global_symbol_to_cdecl= 4206fi 4207if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4208 AC_MSG_RESULT(failed) 4209else 4210 AC_MSG_RESULT(ok) 4211fi 4212 4213_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4214 [Take the output of nm and produce a listing of raw symbols and C names]) 4215_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 4216 [Transform the output of nm in a proper C declaration]) 4217_LT_DECL([global_symbol_to_c_name_address], 4218 [lt_cv_sys_global_symbol_to_c_name_address], [1], 4219 [Transform the output of nm in a C name address pair]) 4220_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 4221 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 4222 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4223]) # _LT_CMD_GLOBAL_SYMBOLS 4224 4225 4226# _LT_COMPILER_PIC([TAGNAME]) 4227# --------------------------- 4228m4_defun([_LT_COMPILER_PIC], 4229[m4_require([_LT_TAG_COMPILER])dnl 4230_LT_TAGVAR(lt_prog_compiler_wl, $1)= 4231_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4232_LT_TAGVAR(lt_prog_compiler_static, $1)= 4233 4234AC_MSG_CHECKING([for $compiler option to produce PIC]) 4235m4_if([$1], [CXX], [ 4236 # C++ specific cases for pic, static, wl, etc. 4237 if test "$GXX" = yes; then 4238 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4239 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4240 4241 case $host_os in 4242 aix*) 4243 # All AIX code is PIC. 4244 if test "$host_cpu" = ia64; then 4245 # AIX 5 now supports IA64 processor 4246 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4247 fi 4248 ;; 4249 4250 amigaos*) 4251 case $host_cpu in 4252 powerpc) 4253 # see comment about AmigaOS4 .so support 4254 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4255 ;; 4256 m68k) 4257 # FIXME: we need at least 68020 code to build shared libraries, but 4258 # adding the `-m68020' flag to GCC prevents building anything better, 4259 # like `-m68040'. 4260 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4261 ;; 4262 esac 4263 ;; 4264 4265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4266 # PIC is the default for these OSes. 4267 ;; 4268 mingw* | cygwin* | os2* | pw32* | cegcc*) 4269 # This hack is so that the source file can tell whether it is being 4270 # built for inclusion in a dll (and should export symbols for example). 4271 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4272 # (--disable-auto-import) libraries 4273 m4_if([$1], [GCJ], [], 4274 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4275 ;; 4276 darwin* | rhapsody*) 4277 # PIC is the default on this platform 4278 # Common symbols not allowed in MH_DYLIB files 4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4280 ;; 4281 *djgpp*) 4282 # DJGPP does not support shared libraries at all 4283 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4284 ;; 4285 interix[[3-9]]*) 4286 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4287 # Instead, we relocate shared libraries at runtime. 4288 ;; 4289 sysv4*MP*) 4290 if test -d /usr/nec; then 4291 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4292 fi 4293 ;; 4294 hpux*) 4295 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4296 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4297 # sets the default TLS model and affects inlining. 4298 case $host_cpu in 4299 hppa*64*) 4300 ;; 4301 *) 4302 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4303 ;; 4304 esac 4305 ;; 4306 *qnx* | *nto*) 4307 # QNX uses GNU C++, but need to define -shared option too, otherwise 4308 # it will coredump. 4309 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4310 ;; 4311 *) 4312 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4313 ;; 4314 esac 4315 else 4316 case $host_os in 4317 aix[[4-9]]*) 4318 # All AIX code is PIC. 4319 if test "$host_cpu" = ia64; then 4320 # AIX 5 now supports IA64 processor 4321 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4322 else 4323 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4324 fi 4325 ;; 4326 chorus*) 4327 case $cc_basename in 4328 cxch68*) 4329 # Green Hills C++ Compiler 4330 # _LT_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" 4331 ;; 4332 esac 4333 ;; 4334 dgux*) 4335 case $cc_basename in 4336 ec++*) 4337 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4338 ;; 4339 ghcx*) 4340 # Green Hills C++ Compiler 4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4342 ;; 4343 *) 4344 ;; 4345 esac 4346 ;; 4347 freebsd* | dragonfly*) 4348 # FreeBSD uses GNU C++ 4349 ;; 4350 hpux9* | hpux10* | hpux11*) 4351 case $cc_basename in 4352 CC*) 4353 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4355 if test "$host_cpu" != ia64; then 4356 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4357 fi 4358 ;; 4359 aCC*) 4360 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4362 case $host_cpu in 4363 hppa*64*|ia64*) 4364 # +Z the default 4365 ;; 4366 *) 4367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4368 ;; 4369 esac 4370 ;; 4371 *) 4372 ;; 4373 esac 4374 ;; 4375 interix*) 4376 # This is c89, which is MS Visual C++ (no shared libs) 4377 # Anyone wants to do a port? 4378 ;; 4379 irix5* | irix6* | nonstopux*) 4380 case $cc_basename in 4381 CC*) 4382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4383 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4384 # CC pic flag -KPIC is the default. 4385 ;; 4386 *) 4387 ;; 4388 esac 4389 ;; 4390 linux* | k*bsd*-gnu) 4391 case $cc_basename in 4392 KCC*) 4393 # KAI C++ Compiler 4394 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4396 ;; 4397 ecpc* ) 4398 # old Intel C++ for x86_64 which still supported -KPIC. 4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4400 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4401 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4402 ;; 4403 icpc* ) 4404 # Intel C++, used to be incompatible with GCC. 4405 # ICC 10 doesn't accept -KPIC any more. 4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4407 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4408 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4409 ;; 4410 pgCC* | pgcpp*) 4411 # Portland Group C++ compiler 4412 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4413 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4414 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4415 ;; 4416 cxx*) 4417 # Compaq C++ 4418 # Make sure the PIC flag is empty. It appears that all Alpha 4419 # Linux and Compaq Tru64 Unix objects are PIC. 4420 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4421 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4422 ;; 4423 xlc* | xlC*) 4424 # IBM XL 8.0 on PPC 4425 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4426 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4427 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4428 ;; 4429 *) 4430 case `$CC -V 2>&1 | sed 5q` in 4431 *Sun\ C*) 4432 # Sun C++ 5.9 4433 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4434 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4435 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4436 ;; 4437 esac 4438 ;; 4439 esac 4440 ;; 4441 lynxos*) 4442 ;; 4443 m88k*) 4444 ;; 4445 mvs*) 4446 case $cc_basename in 4447 cxx*) 4448 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4449 ;; 4450 *) 4451 ;; 4452 esac 4453 ;; 4454 netbsd* | netbsdelf*-gnu) 4455 ;; 4456 *qnx* | *nto*) 4457 # QNX uses GNU C++, but need to define -shared option too, otherwise 4458 # it will coredump. 4459 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4460 ;; 4461 osf3* | osf4* | osf5*) 4462 case $cc_basename in 4463 KCC*) 4464 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4465 ;; 4466 RCC*) 4467 # Rational C++ 2.4.1 4468 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4469 ;; 4470 cxx*) 4471 # Digital/Compaq C++ 4472 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4473 # Make sure the PIC flag is empty. It appears that all Alpha 4474 # Linux and Compaq Tru64 Unix objects are PIC. 4475 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4476 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4477 ;; 4478 *) 4479 ;; 4480 esac 4481 ;; 4482 psos*) 4483 ;; 4484 solaris*) 4485 case $cc_basename in 4486 CC*) 4487 # Sun C++ 4.2, 5.x and Centerline C++ 4488 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4489 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4490 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4491 ;; 4492 gcx*) 4493 # Green Hills C++ Compiler 4494 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4495 ;; 4496 *) 4497 ;; 4498 esac 4499 ;; 4500 sunos4*) 4501 case $cc_basename in 4502 CC*) 4503 # Sun C++ 4.x 4504 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4505 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4506 ;; 4507 lcc*) 4508 # Lucid 4509 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4510 ;; 4511 *) 4512 ;; 4513 esac 4514 ;; 4515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4516 case $cc_basename in 4517 CC*) 4518 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4519 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4520 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4521 ;; 4522 esac 4523 ;; 4524 tandem*) 4525 case $cc_basename in 4526 NCC*) 4527 # NonStop-UX NCC 3.20 4528 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4529 ;; 4530 *) 4531 ;; 4532 esac 4533 ;; 4534 vxworks*) 4535 ;; 4536 *) 4537 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4538 ;; 4539 esac 4540 fi 4541], 4542[ 4543 if test "$GCC" = yes; then 4544 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4545 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4546 4547 case $host_os in 4548 aix*) 4549 # All AIX code is PIC. 4550 if test "$host_cpu" = ia64; then 4551 # AIX 5 now supports IA64 processor 4552 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4553 fi 4554 ;; 4555 4556 amigaos*) 4557 case $host_cpu in 4558 powerpc) 4559 # see comment about AmigaOS4 .so support 4560 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4561 ;; 4562 m68k) 4563 # FIXME: we need at least 68020 code to build shared libraries, but 4564 # adding the `-m68020' flag to GCC prevents building anything better, 4565 # like `-m68040'. 4566 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4567 ;; 4568 esac 4569 ;; 4570 4571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4572 # PIC is the default for these OSes. 4573 ;; 4574 4575 mingw* | cygwin* | pw32* | os2* | cegcc*) 4576 # This hack is so that the source file can tell whether it is being 4577 # built for inclusion in a dll (and should export symbols for example). 4578 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4579 # (--disable-auto-import) libraries 4580 m4_if([$1], [GCJ], [], 4581 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4582 ;; 4583 4584 darwin* | rhapsody*) 4585 # PIC is the default on this platform 4586 # Common symbols not allowed in MH_DYLIB files 4587 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4588 ;; 4589 4590 hpux*) 4591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4593 # sets the default TLS model and affects inlining. 4594 case $host_cpu in 4595 hppa*64*) 4596 # +Z the default 4597 ;; 4598 *) 4599 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4600 ;; 4601 esac 4602 ;; 4603 4604 interix[[3-9]]*) 4605 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4606 # Instead, we relocate shared libraries at runtime. 4607 ;; 4608 4609 msdosdjgpp*) 4610 # Just because we use GCC doesn't mean we suddenly get shared libraries 4611 # on systems that don't support them. 4612 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4613 enable_shared=no 4614 ;; 4615 4616 *nto* | *qnx*) 4617 # QNX uses GNU C++, but need to define -shared option too, otherwise 4618 # it will coredump. 4619 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4620 ;; 4621 4622 sysv4*MP*) 4623 if test -d /usr/nec; then 4624 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4625 fi 4626 ;; 4627 4628 *) 4629 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4630 ;; 4631 esac 4632 else 4633 # PORTME Check for flag to pass linker flags through the system compiler. 4634 case $host_os in 4635 aix*) 4636 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4637 if test "$host_cpu" = ia64; then 4638 # AIX 5 now supports IA64 processor 4639 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4640 else 4641 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4642 fi 4643 ;; 4644 4645 mingw* | cygwin* | pw32* | os2* | cegcc*) 4646 # This hack is so that the source file can tell whether it is being 4647 # built for inclusion in a dll (and should export symbols for example). 4648 m4_if([$1], [GCJ], [], 4649 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4650 ;; 4651 4652 hpux9* | hpux10* | hpux11*) 4653 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4655 # not for PA HP-UX. 4656 case $host_cpu in 4657 hppa*64*|ia64*) 4658 # +Z the default 4659 ;; 4660 *) 4661 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4662 ;; 4663 esac 4664 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4665 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4666 ;; 4667 4668 irix5* | irix6* | nonstopux*) 4669 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4670 # PIC (with -KPIC) is the default. 4671 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4672 ;; 4673 4674 linux* | k*bsd*-gnu) 4675 case $cc_basename in 4676 # old Intel for x86_64 which still supported -KPIC. 4677 ecc*) 4678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4679 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4680 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4681 ;; 4682 # icc used to be incompatible with GCC. 4683 # ICC 10 doesn't accept -KPIC any more. 4684 icc* | ifort*) 4685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4686 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4687 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4688 ;; 4689 # Lahey Fortran 8.1. 4690 lf95*) 4691 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4692 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4693 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4694 ;; 4695 pgcc* | pgf77* | pgf90* | pgf95*) 4696 # Portland Group compilers (*not* the Pentium gcc compiler, 4697 # which looks to be a dead project) 4698 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4699 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4700 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4701 ;; 4702 ccc*) 4703 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4704 # All Alpha code is PIC. 4705 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4706 ;; 4707 xl*) 4708 # IBM XL C 8.0/Fortran 10.1 on PPC 4709 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4710 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4711 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4712 ;; 4713 *) 4714 case `$CC -V 2>&1 | sed 5q` in 4715 *Sun\ C*) 4716 # Sun C 5.9 4717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4719 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4720 ;; 4721 *Sun\ F*) 4722 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4725 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4726 ;; 4727 esac 4728 ;; 4729 esac 4730 ;; 4731 4732 newsos6) 4733 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4734 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4735 ;; 4736 4737 *nto* | *qnx*) 4738 # QNX uses GNU C++, but need to define -shared option too, otherwise 4739 # it will coredump. 4740 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4741 ;; 4742 4743 osf3* | osf4* | osf5*) 4744 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4745 # All OSF/1 code is PIC. 4746 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4747 ;; 4748 4749 rdos*) 4750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4751 ;; 4752 4753 solaris*) 4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4756 case $cc_basename in 4757 f77* | f90* | f95*) 4758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4759 *) 4760 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4761 esac 4762 ;; 4763 4764 sunos4*) 4765 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4766 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4767 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4768 ;; 4769 4770 sysv4 | sysv4.2uw2* | sysv4.3*) 4771 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4772 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4774 ;; 4775 4776 sysv4*MP*) 4777 if test -d /usr/nec ;then 4778 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4779 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4780 fi 4781 ;; 4782 4783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4784 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4786 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4787 ;; 4788 4789 unicos*) 4790 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4791 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4792 ;; 4793 4794 uts4*) 4795 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4796 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4797 ;; 4798 4799 *) 4800 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4801 ;; 4802 esac 4803 fi 4804]) 4805case $host_os in 4806 # For platforms which do not support PIC, -DPIC is meaningless: 4807 *djgpp*) 4808 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4809 ;; 4810 *) 4811 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4812 ;; 4813esac 4814AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4815_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4816 [How to pass a linker flag through the compiler]) 4817 4818# 4819# Check to make sure the PIC flag actually works. 4820# 4821if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4822 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4823 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4824 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4825 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 4826 "" | " "*) ;; 4827 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4828 esac], 4829 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4830 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4831fi 4832_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4833 [Additional compiler flags for building library objects]) 4834 4835# 4836# Check to make sure the static flag actually works. 4837# 4838wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4839_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4840 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 4841 $lt_tmp_static_flag, 4842 [], 4843 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4844_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4845 [Compiler flag to prevent dynamic linking]) 4846])# _LT_COMPILER_PIC 4847 4848 4849# _LT_LINKER_SHLIBS([TAGNAME]) 4850# ---------------------------- 4851# See if the linker supports building shared libraries. 4852m4_defun([_LT_LINKER_SHLIBS], 4853[AC_REQUIRE([LT_PATH_LD])dnl 4854AC_REQUIRE([LT_PATH_NM])dnl 4855m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4856m4_require([_LT_DECL_EGREP])dnl 4857m4_require([_LT_DECL_SED])dnl 4858m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4859m4_require([_LT_TAG_COMPILER])dnl 4860AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4861m4_if([$1], [CXX], [ 4862 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4863 case $host_os in 4864 aix[[4-9]]*) 4865 # If we're using GNU nm, then we don't want the "-C" option. 4866 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4867 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4868 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4869 else 4870 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4871 fi 4872 ;; 4873 pw32*) 4874 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4875 ;; 4876 cygwin* | mingw* | cegcc*) 4877 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4878 ;; 4879 linux* | k*bsd*-gnu) 4880 _LT_TAGVAR(link_all_deplibs, $1)=no 4881 ;; 4882 *) 4883 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4884 ;; 4885 esac 4886 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4887], [ 4888 runpath_var= 4889 _LT_TAGVAR(allow_undefined_flag, $1)= 4890 _LT_TAGVAR(always_export_symbols, $1)=no 4891 _LT_TAGVAR(archive_cmds, $1)= 4892 _LT_TAGVAR(archive_expsym_cmds, $1)= 4893 _LT_TAGVAR(compiler_needs_object, $1)=no 4894 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4895 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4896 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4897 _LT_TAGVAR(hardcode_automatic, $1)=no 4898 _LT_TAGVAR(hardcode_direct, $1)=no 4899 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4901 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4902 _LT_TAGVAR(hardcode_libdir_separator, $1)= 4903 _LT_TAGVAR(hardcode_minus_L, $1)=no 4904 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4905 _LT_TAGVAR(inherit_rpath, $1)=no 4906 _LT_TAGVAR(link_all_deplibs, $1)=unknown 4907 _LT_TAGVAR(module_cmds, $1)= 4908 _LT_TAGVAR(module_expsym_cmds, $1)= 4909 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4910 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4911 _LT_TAGVAR(thread_safe_flag_spec, $1)= 4912 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4913 # include_expsyms should be a list of space-separated symbols to be *always* 4914 # included in the symbol list 4915 _LT_TAGVAR(include_expsyms, $1)= 4916 # exclude_expsyms can be an extended regexp of symbols to exclude 4917 # it will be wrapped by ` (' and `)$', so one must not match beginning or 4918 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4919 # as well as any symbol that contains `d'. 4920 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4921 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4922 # platforms (ab)use it in PIC code, but their linkers get confused if 4923 # the symbol is explicitly referenced. Since portable code cannot 4924 # rely on this symbol name, it's probably fine to never include it in 4925 # preloaded symbol tables. 4926 # Exclude shared library initialization/finalization symbols. 4927dnl Note also adjust exclude_expsyms for C++ above. 4928 extract_expsyms_cmds= 4929 4930 case $host_os in 4931 cygwin* | mingw* | pw32* | cegcc*) 4932 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4933 # When not using gcc, we currently assume that we are using 4934 # Microsoft Visual C++. 4935 if test "$GCC" != yes; then 4936 with_gnu_ld=no 4937 fi 4938 ;; 4939 interix*) 4940 # we just hope/assume this is gcc and not c89 (= MSVC++) 4941 with_gnu_ld=yes 4942 ;; 4943 openbsd*) 4944 with_gnu_ld=no 4945 ;; 4946 esac 4947 4948 _LT_TAGVAR(ld_shlibs, $1)=yes 4949 if test "$with_gnu_ld" = yes; then 4950 # If archive_cmds runs LD, not CC, wlarc should be empty 4951 wlarc='${wl}' 4952 4953 # Set some defaults for GNU ld with shared library support. These 4954 # are reset later if shared libraries are not supported. Putting them 4955 # here allows them to be overridden if necessary. 4956 runpath_var=LD_RUN_PATH 4957 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4958 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4959 # ancient GNU ld didn't support --whole-archive et. al. 4960 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4961 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4962 else 4963 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4964 fi 4965 supports_anon_versioning=no 4966 case `$LD -v 2>&1` in 4967 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4970 *\ 2.11.*) ;; # other 2.11 versions 4971 *) supports_anon_versioning=yes ;; 4972 esac 4973 4974 # See if GNU ld supports shared libraries. 4975 case $host_os in 4976 aix[[3-9]]*) 4977 # On AIX/PPC, the GNU linker is very broken 4978 if test "$host_cpu" != ia64; then 4979 _LT_TAGVAR(ld_shlibs, $1)=no 4980 cat <<_LT_EOF 1>&2 4981 4982*** Warning: the GNU linker, at least up to release 2.9.1, is reported 4983*** to be unable to reliably create shared libraries on AIX. 4984*** Therefore, libtool is disabling shared libraries support. If you 4985*** really care for shared libraries, you may want to modify your PATH 4986*** so that a non-GNU linker is found, and then restart. 4987 4988_LT_EOF 4989 fi 4990 ;; 4991 4992 amigaos*) 4993 case $host_cpu in 4994 powerpc) 4995 # see comment about AmigaOS4 .so support 4996 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4997 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4998 ;; 4999 m68k) 5000 _LT_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)' 5001 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5002 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5003 ;; 5004 esac 5005 ;; 5006 5007 beos*) 5008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5009 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5011 # support --undefined. This deserves some investigation. FIXME 5012 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5013 else 5014 _LT_TAGVAR(ld_shlibs, $1)=no 5015 fi 5016 ;; 5017 5018 cygwin* | mingw* | pw32* | cegcc*) 5019 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5020 # as there is no search path for DLLs. 5021 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5022 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5023 _LT_TAGVAR(always_export_symbols, $1)=no 5024 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5025 _LT_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' 5026 5027 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5028 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5029 # If the export-symbols file already is a .def file (1st line 5030 # is EXPORTS), use it as is; otherwise, prepend... 5031 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5032 cp $export_symbols $output_objdir/$soname.def; 5033 else 5034 echo EXPORTS > $output_objdir/$soname.def; 5035 cat $export_symbols >> $output_objdir/$soname.def; 5036 fi~ 5037 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5038 else 5039 _LT_TAGVAR(ld_shlibs, $1)=no 5040 fi 5041 ;; 5042 5043 interix[[3-9]]*) 5044 _LT_TAGVAR(hardcode_direct, $1)=no 5045 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5046 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5047 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5049 # Instead, shared libraries are loaded at an image base (0x10000000 by 5050 # default) and relocated if they conflict, which is a slow very memory 5051 # consuming and fragmenting process. To avoid this, we pick a random, 5052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5053 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5054 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5055 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5056 ;; 5057 5058 gnu* | linux* | tpf* | k*bsd*-gnu) 5059 tmp_diet=no 5060 if test "$host_os" = linux-dietlibc; then 5061 case $cc_basename in 5062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 5063 esac 5064 fi 5065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 5066 && test "$tmp_diet" = no 5067 then 5068 tmp_addflag= 5069 tmp_sharedflag='-shared' 5070 case $cc_basename,$host_cpu in 5071 pgcc*) # Portland Group C compiler 5072 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5073 tmp_addflag=' $pic_flag' 5074 ;; 5075 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5076 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5077 tmp_addflag=' $pic_flag -Mnomain' ;; 5078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5079 tmp_addflag=' -i_dynamic' ;; 5080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5081 tmp_addflag=' -i_dynamic -nofor_main' ;; 5082 ifc* | ifort*) # Intel Fortran compiler 5083 tmp_addflag=' -nofor_main' ;; 5084 lf95*) # Lahey Fortran 8.1 5085 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5086 tmp_sharedflag='--shared' ;; 5087 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 5088 tmp_sharedflag='-qmkshrobj' 5089 tmp_addflag= ;; 5090 esac 5091 case `$CC -V 2>&1 | sed 5q` in 5092 *Sun\ C*) # Sun C 5.9 5093 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5094 _LT_TAGVAR(compiler_needs_object, $1)=yes 5095 tmp_sharedflag='-G' ;; 5096 *Sun\ F*) # Sun Fortran 8.3 5097 tmp_sharedflag='-G' ;; 5098 esac 5099 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5100 5101 if test "x$supports_anon_versioning" = xyes; then 5102 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5104 echo "local: *; };" >> $output_objdir/$libname.ver~ 5105 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5106 fi 5107 5108 case $cc_basename in 5109 xlf*) 5110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 5111 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 5112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5113 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 5114 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 5115 if test "x$supports_anon_versioning" = xyes; then 5116 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5118 echo "local: *; };" >> $output_objdir/$libname.ver~ 5119 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 5120 fi 5121 ;; 5122 esac 5123 else 5124 _LT_TAGVAR(ld_shlibs, $1)=no 5125 fi 5126 ;; 5127 5128 netbsd* | netbsdelf*-gnu) 5129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5130 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5131 wlarc= 5132 else 5133 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5134 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5135 fi 5136 ;; 5137 5138 solaris*) 5139 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 5140 _LT_TAGVAR(ld_shlibs, $1)=no 5141 cat <<_LT_EOF 1>&2 5142 5143*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5144*** create shared libraries on Solaris systems. Therefore, libtool 5145*** is disabling shared libraries support. We urge you to upgrade GNU 5146*** binutils to release 2.9.1 or newer. Another option is to modify 5147*** your PATH or compiler configuration so that the native linker is 5148*** used, and then restart. 5149 5150_LT_EOF 5151 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5152 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5153 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5154 else 5155 _LT_TAGVAR(ld_shlibs, $1)=no 5156 fi 5157 ;; 5158 5159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5160 case `$LD -v 2>&1` in 5161 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5162 _LT_TAGVAR(ld_shlibs, $1)=no 5163 cat <<_LT_EOF 1>&2 5164 5165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 5166*** reliably create shared libraries on SCO systems. Therefore, libtool 5167*** is disabling shared libraries support. We urge you to upgrade GNU 5168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5169*** your PATH or compiler configuration so that the native linker is 5170*** used, and then restart. 5171 5172_LT_EOF 5173 ;; 5174 *) 5175 # For security reasons, it is highly recommended that you always 5176 # use absolute paths for naming shared libraries, and exclude the 5177 # DT_RUNPATH tag from executables and libraries. But doing so 5178 # requires that you compile everything twice, which is a pain. 5179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5180 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5181 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5182 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5183 else 5184 _LT_TAGVAR(ld_shlibs, $1)=no 5185 fi 5186 ;; 5187 esac 5188 ;; 5189 5190 sunos4*) 5191 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5192 wlarc= 5193 _LT_TAGVAR(hardcode_direct, $1)=yes 5194 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5195 ;; 5196 5197 *) 5198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5200 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5201 else 5202 _LT_TAGVAR(ld_shlibs, $1)=no 5203 fi 5204 ;; 5205 esac 5206 5207 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 5208 runpath_var= 5209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5210 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5211 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5212 fi 5213 else 5214 # PORTME fill in a description of your system's linker (not GNU ld) 5215 case $host_os in 5216 aix3*) 5217 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5218 _LT_TAGVAR(always_export_symbols, $1)=yes 5219 _LT_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' 5220 # Note: this linker hardcodes the directories in LIBPATH if there 5221 # are no directories specified by -L. 5222 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5223 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5224 # Neither direct hardcoding nor static linking is supported with a 5225 # broken collect2. 5226 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5227 fi 5228 ;; 5229 5230 aix[[4-9]]*) 5231 if test "$host_cpu" = ia64; then 5232 # On IA64, the linker does run time linking by default, so we don't 5233 # have to do anything special. 5234 aix_use_runtimelinking=no 5235 exp_sym_flag='-Bexport' 5236 no_entry_flag="" 5237 else 5238 # If we're using GNU nm, then we don't want the "-C" option. 5239 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5240 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5241 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5242 else 5243 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5244 fi 5245 aix_use_runtimelinking=no 5246 5247 # Test if we are trying to use run time linking or normal 5248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5249 # need to do runtime linking. 5250 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5251 for ld_flag in $LDFLAGS; do 5252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5253 aix_use_runtimelinking=yes 5254 break 5255 fi 5256 done 5257 ;; 5258 esac 5259 5260 exp_sym_flag='-bexport' 5261 no_entry_flag='-bnoentry' 5262 fi 5263 5264 # When large executables or shared objects are built, AIX ld can 5265 # have problems creating the table of contents. If linking a library 5266 # or program results in "error TOC overflow" add -mminimal-toc to 5267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5269 5270 _LT_TAGVAR(archive_cmds, $1)='' 5271 _LT_TAGVAR(hardcode_direct, $1)=yes 5272 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5273 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5274 _LT_TAGVAR(link_all_deplibs, $1)=yes 5275 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5276 5277 if test "$GCC" = yes; then 5278 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5279 # We only want to do this on AIX 4.2 and lower, the check 5280 # below for broken collect2 doesn't work under 4.3+ 5281 collect2name=`${CC} -print-prog-name=collect2` 5282 if test -f "$collect2name" && 5283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5284 then 5285 # We have reworked collect2 5286 : 5287 else 5288 # We have old collect2 5289 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5290 # It fails to find uninstalled libraries when the uninstalled 5291 # path is not listed in the libpath. Setting hardcode_minus_L 5292 # to unsupported forces relinking 5293 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5294 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5295 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5296 fi 5297 ;; 5298 esac 5299 shared_flag='-shared' 5300 if test "$aix_use_runtimelinking" = yes; then 5301 shared_flag="$shared_flag "'${wl}-G' 5302 fi 5303 _LT_TAGVAR(link_all_deplibs, $1)=no 5304 else 5305 # not using gcc 5306 if test "$host_cpu" = ia64; then 5307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5308 # chokes on -Wl,-G. The following line is correct: 5309 shared_flag='-G' 5310 else 5311 if test "$aix_use_runtimelinking" = yes; then 5312 shared_flag='${wl}-G' 5313 else 5314 shared_flag='${wl}-bM:SRE' 5315 fi 5316 fi 5317 fi 5318 5319 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5320 # It seems that -bexpall does not export symbols beginning with 5321 # underscore (_), so it is better to generate a list of symbols to export. 5322 _LT_TAGVAR(always_export_symbols, $1)=yes 5323 if test "$aix_use_runtimelinking" = yes; then 5324 # Warning - without using the other runtime loading flags (-brtl), 5325 # -berok will link without error, but may produce a broken library. 5326 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5327 # Determine the default libpath from the value encoded in an 5328 # empty executable. 5329 _LT_SYS_MODULE_PATH_AIX 5330 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5331 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5332 else 5333 if test "$host_cpu" = ia64; then 5334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5335 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5336 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5337 else 5338 # Determine the default libpath from the value encoded in an 5339 # empty executable. 5340 _LT_SYS_MODULE_PATH_AIX 5341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5342 # Warning - without using the other run time loading flags, 5343 # -berok will link without error, but may produce a broken library. 5344 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5345 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5346 # Exported symbols can be pulled into shared objects from archives 5347 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5348 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5349 # This is similar to how AIX traditionally builds its shared libraries. 5350 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5351 fi 5352 fi 5353 ;; 5354 5355 amigaos*) 5356 case $host_cpu in 5357 powerpc) 5358 # see comment about AmigaOS4 .so support 5359 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5360 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5361 ;; 5362 m68k) 5363 _LT_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)' 5364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5365 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5366 ;; 5367 esac 5368 ;; 5369 5370 bsdi[[45]]*) 5371 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5372 ;; 5373 5374 cygwin* | mingw* | pw32* | cegcc*) 5375 # When not using gcc, we currently assume that we are using 5376 # Microsoft Visual C++. 5377 # hardcode_libdir_flag_spec is actually meaningless, as there is 5378 # no search path for DLLs. 5379 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5380 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5381 # Tell ltmain to make .lib files, not .a files. 5382 libext=lib 5383 # Tell ltmain to make .dll files, not .so files. 5384 shrext_cmds=".dll" 5385 # FIXME: Setting linknames here is a bad hack. 5386 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5387 # The linker will automatically build a .lib file if we build a DLL. 5388 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5389 # FIXME: Should let the user specify the lib program. 5390 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5391 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5392 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5393 ;; 5394 5395 darwin* | rhapsody*) 5396 _LT_DARWIN_LINKER_FEATURES($1) 5397 ;; 5398 5399 dgux*) 5400 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5401 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5402 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5403 ;; 5404 5405 freebsd1*) 5406 _LT_TAGVAR(ld_shlibs, $1)=no 5407 ;; 5408 5409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5410 # support. Future versions do this automatically, but an explicit c++rt0.o 5411 # does not break anything, and helps significantly (at the cost of a little 5412 # extra space). 5413 freebsd2.2*) 5414 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5415 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5416 _LT_TAGVAR(hardcode_direct, $1)=yes 5417 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5418 ;; 5419 5420 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5421 freebsd2*) 5422 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5423 _LT_TAGVAR(hardcode_direct, $1)=yes 5424 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5425 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5426 ;; 5427 5428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5429 freebsd* | dragonfly*) 5430 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5432 _LT_TAGVAR(hardcode_direct, $1)=yes 5433 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5434 ;; 5435 5436 hpux9*) 5437 if test "$GCC" = yes; then 5438 _LT_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' 5439 else 5440 _LT_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' 5441 fi 5442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5443 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5444 _LT_TAGVAR(hardcode_direct, $1)=yes 5445 5446 # hardcode_minus_L: Not really in the search PATH, 5447 # but as the default location of the library. 5448 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5449 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5450 ;; 5451 5452 hpux10*) 5453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5455 else 5456 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5457 fi 5458 if test "$with_gnu_ld" = no; then 5459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5460 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5461 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5462 _LT_TAGVAR(hardcode_direct, $1)=yes 5463 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5464 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5465 # hardcode_minus_L: Not really in the search PATH, 5466 # but as the default location of the library. 5467 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5468 fi 5469 ;; 5470 5471 hpux11*) 5472 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5473 case $host_cpu in 5474 hppa*64*) 5475 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5476 ;; 5477 ia64*) 5478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5479 ;; 5480 *) 5481 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5482 ;; 5483 esac 5484 else 5485 case $host_cpu in 5486 hppa*64*) 5487 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5488 ;; 5489 ia64*) 5490 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5491 ;; 5492 *) 5493 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5494 ;; 5495 esac 5496 fi 5497 if test "$with_gnu_ld" = no; then 5498 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5499 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5500 5501 case $host_cpu in 5502 hppa*64*|ia64*) 5503 _LT_TAGVAR(hardcode_direct, $1)=no 5504 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5505 ;; 5506 *) 5507 _LT_TAGVAR(hardcode_direct, $1)=yes 5508 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5510 5511 # hardcode_minus_L: Not really in the search PATH, 5512 # but as the default location of the library. 5513 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5514 ;; 5515 esac 5516 fi 5517 ;; 5518 5519 irix5* | irix6* | nonstopux*) 5520 if test "$GCC" = yes; then 5521 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5522 # Try to use the -exported_symbol ld option, if it does not 5523 # work, assume that -exports_file does not work either and 5524 # implicitly export all symbols. 5525 save_LDFLAGS="$LDFLAGS" 5526 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 5527 AC_LINK_IFELSE(int foo(void) {}, 5528 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 5529 ) 5530 LDFLAGS="$save_LDFLAGS" 5531 else 5532 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5533 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 5534 fi 5535 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5536 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5537 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5538 _LT_TAGVAR(inherit_rpath, $1)=yes 5539 _LT_TAGVAR(link_all_deplibs, $1)=yes 5540 ;; 5541 5542 netbsd* | netbsdelf*-gnu) 5543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5544 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5545 else 5546 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5547 fi 5548 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5549 _LT_TAGVAR(hardcode_direct, $1)=yes 5550 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5551 ;; 5552 5553 newsos6) 5554 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5555 _LT_TAGVAR(hardcode_direct, $1)=yes 5556 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5557 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5558 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5559 ;; 5560 5561 *nto* | *qnx*) 5562 ;; 5563 5564 openbsd*) 5565 if test -f /usr/libexec/ld.so; then 5566 _LT_TAGVAR(hardcode_direct, $1)=yes 5567 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5568 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5570 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5571 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5572 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5574 else 5575 case $host_os in 5576 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5577 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5578 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5579 ;; 5580 *) 5581 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5583 ;; 5584 esac 5585 fi 5586 else 5587 _LT_TAGVAR(ld_shlibs, $1)=no 5588 fi 5589 ;; 5590 5591 os2*) 5592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5593 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5594 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5595 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5596 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5597 ;; 5598 5599 osf3*) 5600 if test "$GCC" = yes; then 5601 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5602 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5603 else 5604 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5605 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5606 fi 5607 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5608 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5609 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5610 ;; 5611 5612 osf4* | osf5*) # as osf3* with the addition of -msym flag 5613 if test "$GCC" = yes; then 5614 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5615 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5616 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5617 else 5618 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5619 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5620 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 5621 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 5622 5623 # Both c and cxx compiler support -rpath directly 5624 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5625 fi 5626 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5627 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5628 ;; 5629 5630 solaris*) 5631 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5632 if test "$GCC" = yes; then 5633 wlarc='${wl}' 5634 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5635 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5636 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5637 else 5638 case `$CC -V 2>&1` in 5639 *"Compilers 5.0"*) 5640 wlarc='' 5641 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5642 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5643 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5644 ;; 5645 *) 5646 wlarc='${wl}' 5647 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5648 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5649 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5650 ;; 5651 esac 5652 fi 5653 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5654 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5655 case $host_os in 5656 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5657 *) 5658 # The compiler driver will combine and reorder linker options, 5659 # but understands `-z linker_flag'. GCC discards it without `$wl', 5660 # but is careful enough not to reorder. 5661 # Supported since Solaris 2.6 (maybe 2.5.1?) 5662 if test "$GCC" = yes; then 5663 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 5664 else 5665 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5666 fi 5667 ;; 5668 esac 5669 _LT_TAGVAR(link_all_deplibs, $1)=yes 5670 ;; 5671 5672 sunos4*) 5673 if test "x$host_vendor" = xsequent; then 5674 # Use $CC to link under sequent, because it throws in some extra .o 5675 # files that make .init and .fini sections work. 5676 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5677 else 5678 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5679 fi 5680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5681 _LT_TAGVAR(hardcode_direct, $1)=yes 5682 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5683 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5684 ;; 5685 5686 sysv4) 5687 case $host_vendor in 5688 sni) 5689 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5690 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5691 ;; 5692 siemens) 5693 ## LD is ld it makes a PLAMLIB 5694 ## CC just makes a GrossModule. 5695 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5696 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5697 _LT_TAGVAR(hardcode_direct, $1)=no 5698 ;; 5699 motorola) 5700 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5701 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5702 ;; 5703 esac 5704 runpath_var='LD_RUN_PATH' 5705 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5706 ;; 5707 5708 sysv4.3*) 5709 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5710 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5711 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5712 ;; 5713 5714 sysv4*MP*) 5715 if test -d /usr/nec; then 5716 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5717 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5718 runpath_var=LD_RUN_PATH 5719 hardcode_runpath_var=yes 5720 _LT_TAGVAR(ld_shlibs, $1)=yes 5721 fi 5722 ;; 5723 5724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 5725 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5726 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5727 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5728 runpath_var='LD_RUN_PATH' 5729 5730 if test "$GCC" = yes; then 5731 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5732 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5733 else 5734 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5735 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5736 fi 5737 ;; 5738 5739 sysv5* | sco3.2v5* | sco5v6*) 5740 # Note: We can NOT use -z defs as we might desire, because we do not 5741 # link with -lc, and that would cause any symbols used from libc to 5742 # always be unresolved, which means just about no library would 5743 # ever link correctly. If we're not using GNU ld we use -z text 5744 # though, which does catch some bad symbols but isn't as heavy-handed 5745 # as -z defs. 5746 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5747 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 5748 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5749 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5750 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 5751 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5752 _LT_TAGVAR(link_all_deplibs, $1)=yes 5753 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 5754 runpath_var='LD_RUN_PATH' 5755 5756 if test "$GCC" = yes; then 5757 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5758 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5759 else 5760 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5761 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5762 fi 5763 ;; 5764 5765 uts4*) 5766 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5767 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5768 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5769 ;; 5770 5771 *) 5772 _LT_TAGVAR(ld_shlibs, $1)=no 5773 ;; 5774 esac 5775 5776 if test x$host_vendor = xsni; then 5777 case $host in 5778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5779 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 5780 ;; 5781 esac 5782 fi 5783 fi 5784]) 5785AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5786test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5787 5788_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5789 5790_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5791_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5792_LT_DECL([], [extract_expsyms_cmds], [2], 5793 [The commands to extract the exported symbol list from a shared archive]) 5794 5795# 5796# Do we need to explicitly link libc? 5797# 5798case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 5799x|xyes) 5800 # Assume -lc should be added 5801 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5802 5803 if test "$enable_shared" = yes && test "$GCC" = yes; then 5804 case $_LT_TAGVAR(archive_cmds, $1) in 5805 *'~'*) 5806 # FIXME: we may have to deal with multi-command sequences. 5807 ;; 5808 '$CC '*) 5809 # Test whether the compiler implicitly links with -lc since on some 5810 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5811 # to ld, don't add -lc before -lgcc. 5812 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5813 $RM conftest* 5814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5815 5816 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5817 soname=conftest 5818 lib=conftest 5819 libobjs=conftest.$ac_objext 5820 deplibs= 5821 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5822 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5823 compiler_flags=-v 5824 linker_flags=-v 5825 verstring= 5826 output_objdir=. 5827 libname=conftest 5828 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5829 _LT_TAGVAR(allow_undefined_flag, $1)= 5830 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5831 then 5832 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5833 else 5834 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5835 fi 5836 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5837 else 5838 cat conftest.err 1>&5 5839 fi 5840 $RM conftest* 5841 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 5842 ;; 5843 esac 5844 fi 5845 ;; 5846esac 5847 5848_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 5849 [Whether or not to add -lc for building shared libraries]) 5850_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 5851 [enable_shared_with_static_runtimes], [0], 5852 [Whether or not to disallow shared libs when runtime libs are static]) 5853_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 5854 [Compiler flag to allow reflexive dlopens]) 5855_LT_TAGDECL([], [whole_archive_flag_spec], [1], 5856 [Compiler flag to generate shared objects directly from archives]) 5857_LT_TAGDECL([], [compiler_needs_object], [1], 5858 [Whether the compiler copes with passing no objects directly]) 5859_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 5860 [Create an old-style archive from a shared archive]) 5861_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 5862 [Create a temporary old-style archive to link instead of a shared archive]) 5863_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 5864_LT_TAGDECL([], [archive_expsym_cmds], [2]) 5865_LT_TAGDECL([], [module_cmds], [2], 5866 [Commands used to build a loadable module if different from building 5867 a shared archive.]) 5868_LT_TAGDECL([], [module_expsym_cmds], [2]) 5869_LT_TAGDECL([], [with_gnu_ld], [1], 5870 [Whether we are building with GNU ld or not]) 5871_LT_TAGDECL([], [allow_undefined_flag], [1], 5872 [Flag that allows shared libraries with undefined symbols to be built]) 5873_LT_TAGDECL([], [no_undefined_flag], [1], 5874 [Flag that enforces no undefined symbols]) 5875_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5876 [Flag to hardcode $libdir into a binary during linking. 5877 This must work even if $libdir does not exist]) 5878_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 5879 [[If ld is used when linking, flag to hardcode $libdir into a binary 5880 during linking. This must work even if $libdir does not exist]]) 5881_LT_TAGDECL([], [hardcode_libdir_separator], [1], 5882 [Whether we need a single "-rpath" flag with a separated argument]) 5883_LT_TAGDECL([], [hardcode_direct], [0], 5884 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5885 DIR into the resulting binary]) 5886_LT_TAGDECL([], [hardcode_direct_absolute], [0], 5887 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5888 DIR into the resulting binary and the resulting library dependency is 5889 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 5890 library is relocated]) 5891_LT_TAGDECL([], [hardcode_minus_L], [0], 5892 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5893 into the resulting binary]) 5894_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5895 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5896 into the resulting binary]) 5897_LT_TAGDECL([], [hardcode_automatic], [0], 5898 [Set to "yes" if building a shared library automatically hardcodes DIR 5899 into the library and all subsequent libraries and executables linked 5900 against it]) 5901_LT_TAGDECL([], [inherit_rpath], [0], 5902 [Set to yes if linker adds runtime paths of dependent libraries 5903 to runtime path list]) 5904_LT_TAGDECL([], [link_all_deplibs], [0], 5905 [Whether libtool must link a program against all its dependency libraries]) 5906_LT_TAGDECL([], [fix_srcfile_path], [1], 5907 [Fix the shell variable $srcfile for the compiler]) 5908_LT_TAGDECL([], [always_export_symbols], [0], 5909 [Set to "yes" if exported symbols are required]) 5910_LT_TAGDECL([], [export_symbols_cmds], [2], 5911 [The commands to list exported symbols]) 5912_LT_TAGDECL([], [exclude_expsyms], [1], 5913 [Symbols that should not be listed in the preloaded symbols]) 5914_LT_TAGDECL([], [include_expsyms], [1], 5915 [Symbols that must always be exported]) 5916_LT_TAGDECL([], [prelink_cmds], [2], 5917 [Commands necessary for linking programs (against libraries) with templates]) 5918_LT_TAGDECL([], [file_list_spec], [1], 5919 [Specify filename containing input files]) 5920dnl FIXME: Not yet implemented 5921dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 5922dnl [Compiler flag to generate thread safe objects]) 5923])# _LT_LINKER_SHLIBS 5924 5925 5926# _LT_LANG_C_CONFIG([TAG]) 5927# ------------------------ 5928# Ensure that the configuration variables for a C compiler are suitably 5929# defined. These variables are subsequently used by _LT_CONFIG to write 5930# the compiler configuration to `libtool'. 5931m4_defun([_LT_LANG_C_CONFIG], 5932[m4_require([_LT_DECL_EGREP])dnl 5933lt_save_CC="$CC" 5934AC_LANG_PUSH(C) 5935 5936# Source file extension for C test sources. 5937ac_ext=c 5938 5939# Object file extension for compiled C test sources. 5940objext=o 5941_LT_TAGVAR(objext, $1)=$objext 5942 5943# Code to be used in simple compile tests 5944lt_simple_compile_test_code="int some_variable = 0;" 5945 5946# Code to be used in simple link tests 5947lt_simple_link_test_code='int main(){return(0);}' 5948 5949_LT_TAG_COMPILER 5950# Save the default compiler, since it gets overwritten when the other 5951# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5952compiler_DEFAULT=$CC 5953 5954# save warnings/boilerplate of simple test code 5955_LT_COMPILER_BOILERPLATE 5956_LT_LINKER_BOILERPLATE 5957 5958if test -n "$compiler"; then 5959 _LT_COMPILER_NO_RTTI($1) 5960 _LT_COMPILER_PIC($1) 5961 _LT_COMPILER_C_O($1) 5962 _LT_COMPILER_FILE_LOCKS($1) 5963 _LT_LINKER_SHLIBS($1) 5964 _LT_SYS_DYNAMIC_LINKER($1) 5965 _LT_LINKER_HARDCODE_LIBPATH($1) 5966 LT_SYS_DLOPEN_SELF 5967 _LT_CMD_STRIPLIB 5968 5969 # Report which library types will actually be built 5970 AC_MSG_CHECKING([if libtool supports shared libraries]) 5971 AC_MSG_RESULT([$can_build_shared]) 5972 5973 AC_MSG_CHECKING([whether to build shared libraries]) 5974 test "$can_build_shared" = "no" && enable_shared=no 5975 5976 # On AIX, shared libraries and static libraries use the same namespace, and 5977 # are all built from PIC. 5978 case $host_os in 5979 aix3*) 5980 test "$enable_shared" = yes && enable_static=no 5981 if test -n "$RANLIB"; then 5982 archive_cmds="$archive_cmds~\$RANLIB \$lib" 5983 postinstall_cmds='$RANLIB $lib' 5984 fi 5985 ;; 5986 5987 aix[[4-9]]*) 5988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5989 test "$enable_shared" = yes && enable_static=no 5990 fi 5991 ;; 5992 esac 5993 AC_MSG_RESULT([$enable_shared]) 5994 5995 AC_MSG_CHECKING([whether to build static libraries]) 5996 # Make sure either enable_shared or enable_static is yes. 5997 test "$enable_shared" = yes || enable_static=yes 5998 AC_MSG_RESULT([$enable_static]) 5999 6000 _LT_CONFIG($1) 6001fi 6002AC_LANG_POP 6003CC="$lt_save_CC" 6004])# _LT_LANG_C_CONFIG 6005 6006 6007# _LT_PROG_CXX 6008# ------------ 6009# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 6010# compiler, we have our own version here. 6011m4_defun([_LT_PROG_CXX], 6012[ 6013pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 6014AC_PROG_CXX 6015if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6017 (test "X$CXX" != "Xg++"))) ; then 6018 AC_PROG_CXXCPP 6019else 6020 _lt_caught_CXX_error=yes 6021fi 6022popdef([AC_MSG_ERROR]) 6023])# _LT_PROG_CXX 6024 6025dnl aclocal-1.4 backwards compatibility: 6026dnl AC_DEFUN([_LT_PROG_CXX], []) 6027 6028 6029# _LT_LANG_CXX_CONFIG([TAG]) 6030# -------------------------- 6031# Ensure that the configuration variables for a C++ compiler are suitably 6032# defined. These variables are subsequently used by _LT_CONFIG to write 6033# the compiler configuration to `libtool'. 6034m4_defun([_LT_LANG_CXX_CONFIG], 6035[AC_REQUIRE([_LT_PROG_CXX])dnl 6036m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6037m4_require([_LT_DECL_EGREP])dnl 6038 6039AC_LANG_PUSH(C++) 6040_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6041_LT_TAGVAR(allow_undefined_flag, $1)= 6042_LT_TAGVAR(always_export_symbols, $1)=no 6043_LT_TAGVAR(archive_expsym_cmds, $1)= 6044_LT_TAGVAR(compiler_needs_object, $1)=no 6045_LT_TAGVAR(export_dynamic_flag_spec, $1)= 6046_LT_TAGVAR(hardcode_direct, $1)=no 6047_LT_TAGVAR(hardcode_direct_absolute, $1)=no 6048_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6049_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6050_LT_TAGVAR(hardcode_libdir_separator, $1)= 6051_LT_TAGVAR(hardcode_minus_L, $1)=no 6052_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6053_LT_TAGVAR(hardcode_automatic, $1)=no 6054_LT_TAGVAR(inherit_rpath, $1)=no 6055_LT_TAGVAR(module_cmds, $1)= 6056_LT_TAGVAR(module_expsym_cmds, $1)= 6057_LT_TAGVAR(link_all_deplibs, $1)=unknown 6058_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6059_LT_TAGVAR(no_undefined_flag, $1)= 6060_LT_TAGVAR(whole_archive_flag_spec, $1)= 6061_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6062 6063# Source file extension for C++ test sources. 6064ac_ext=cpp 6065 6066# Object file extension for compiled C++ test sources. 6067objext=o 6068_LT_TAGVAR(objext, $1)=$objext 6069 6070# No sense in running all these tests if we already determined that 6071# the CXX compiler isn't working. Some variables (like enable_shared) 6072# are currently assumed to apply to all compilers on this platform, 6073# and will be corrupted by setting them based on a non-working compiler. 6074if test "$_lt_caught_CXX_error" != yes; then 6075 # Code to be used in simple compile tests 6076 lt_simple_compile_test_code="int some_variable = 0;" 6077 6078 # Code to be used in simple link tests 6079 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 6080 6081 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6082 _LT_TAG_COMPILER 6083 6084 # save warnings/boilerplate of simple test code 6085 _LT_COMPILER_BOILERPLATE 6086 _LT_LINKER_BOILERPLATE 6087 6088 # Allow CC to be a program name with arguments. 6089 lt_save_CC=$CC 6090 lt_save_LD=$LD 6091 lt_save_GCC=$GCC 6092 GCC=$GXX 6093 lt_save_with_gnu_ld=$with_gnu_ld 6094 lt_save_path_LD=$lt_cv_path_LD 6095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 6096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 6097 else 6098 $as_unset lt_cv_prog_gnu_ld 6099 fi 6100 if test -n "${lt_cv_path_LDCXX+set}"; then 6101 lt_cv_path_LD=$lt_cv_path_LDCXX 6102 else 6103 $as_unset lt_cv_path_LD 6104 fi 6105 test -z "${LDCXX+set}" || LD=$LDCXX 6106 CC=${CXX-"c++"} 6107 compiler=$CC 6108 _LT_TAGVAR(compiler, $1)=$CC 6109 _LT_CC_BASENAME([$compiler]) 6110 6111 if test -n "$compiler"; then 6112 # We don't want -fno-exception when compiling C++ code, so set the 6113 # no_builtin_flag separately 6114 if test "$GXX" = yes; then 6115 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 6116 else 6117 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6118 fi 6119 6120 if test "$GXX" = yes; then 6121 # Set up default GNU C++ configuration 6122 6123 LT_PATH_LD 6124 6125 # Check if GNU C++ uses GNU ld as the underlying linker, since the 6126 # archiving commands below assume that GNU ld is being used. 6127 if test "$with_gnu_ld" = yes; then 6128 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6129 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6130 6131 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6132 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6133 6134 # If archive_cmds runs LD, not CC, wlarc should be empty 6135 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 6136 # investigate it a little bit more. (MM) 6137 wlarc='${wl}' 6138 6139 # ancient GNU ld didn't support --whole-archive et. al. 6140 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 6141 $GREP 'no-whole-archive' > /dev/null; then 6142 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6143 else 6144 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6145 fi 6146 else 6147 with_gnu_ld=no 6148 wlarc= 6149 6150 # A generic and very simple default shared library creation 6151 # command for GNU C++ for the case where it uses the native 6152 # linker, instead of GNU ld. If possible, this setting should 6153 # overridden to take advantage of the native linker features on 6154 # the platform it is being used on. 6155 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6156 fi 6157 6158 # Commands to make compiler produce verbose output that lists 6159 # what "hidden" libraries, object files and flags are used when 6160 # linking a shared library. 6161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6162 6163 else 6164 GXX=no 6165 with_gnu_ld=no 6166 wlarc= 6167 fi 6168 6169 # PORTME: fill in a description of your system's C++ link characteristics 6170 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6171 _LT_TAGVAR(ld_shlibs, $1)=yes 6172 case $host_os in 6173 aix3*) 6174 # FIXME: insert proper C++ library support 6175 _LT_TAGVAR(ld_shlibs, $1)=no 6176 ;; 6177 aix[[4-9]]*) 6178 if test "$host_cpu" = ia64; then 6179 # On IA64, the linker does run time linking by default, so we don't 6180 # have to do anything special. 6181 aix_use_runtimelinking=no 6182 exp_sym_flag='-Bexport' 6183 no_entry_flag="" 6184 else 6185 aix_use_runtimelinking=no 6186 6187 # Test if we are trying to use run time linking or normal 6188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6189 # need to do runtime linking. 6190 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6191 for ld_flag in $LDFLAGS; do 6192 case $ld_flag in 6193 *-brtl*) 6194 aix_use_runtimelinking=yes 6195 break 6196 ;; 6197 esac 6198 done 6199 ;; 6200 esac 6201 6202 exp_sym_flag='-bexport' 6203 no_entry_flag='-bnoentry' 6204 fi 6205 6206 # When large executables or shared objects are built, AIX ld can 6207 # have problems creating the table of contents. If linking a library 6208 # or program results in "error TOC overflow" add -mminimal-toc to 6209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6211 6212 _LT_TAGVAR(archive_cmds, $1)='' 6213 _LT_TAGVAR(hardcode_direct, $1)=yes 6214 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6215 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6216 _LT_TAGVAR(link_all_deplibs, $1)=yes 6217 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6218 6219 if test "$GXX" = yes; then 6220 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6221 # We only want to do this on AIX 4.2 and lower, the check 6222 # below for broken collect2 doesn't work under 4.3+ 6223 collect2name=`${CC} -print-prog-name=collect2` 6224 if test -f "$collect2name" && 6225 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6226 then 6227 # We have reworked collect2 6228 : 6229 else 6230 # We have old collect2 6231 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6232 # It fails to find uninstalled libraries when the uninstalled 6233 # path is not listed in the libpath. Setting hardcode_minus_L 6234 # to unsupported forces relinking 6235 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6236 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6237 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6238 fi 6239 esac 6240 shared_flag='-shared' 6241 if test "$aix_use_runtimelinking" = yes; then 6242 shared_flag="$shared_flag "'${wl}-G' 6243 fi 6244 else 6245 # not using gcc 6246 if test "$host_cpu" = ia64; then 6247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6248 # chokes on -Wl,-G. The following line is correct: 6249 shared_flag='-G' 6250 else 6251 if test "$aix_use_runtimelinking" = yes; then 6252 shared_flag='${wl}-G' 6253 else 6254 shared_flag='${wl}-bM:SRE' 6255 fi 6256 fi 6257 fi 6258 6259 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6260 # It seems that -bexpall does not export symbols beginning with 6261 # underscore (_), so it is better to generate a list of symbols to 6262 # export. 6263 _LT_TAGVAR(always_export_symbols, $1)=yes 6264 if test "$aix_use_runtimelinking" = yes; then 6265 # Warning - without using the other runtime loading flags (-brtl), 6266 # -berok will link without error, but may produce a broken library. 6267 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6268 # Determine the default libpath from the value encoded in an empty 6269 # executable. 6270 _LT_SYS_MODULE_PATH_AIX 6271 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6272 6273 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6274 else 6275 if test "$host_cpu" = ia64; then 6276 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6277 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6278 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6279 else 6280 # Determine the default libpath from the value encoded in an 6281 # empty executable. 6282 _LT_SYS_MODULE_PATH_AIX 6283 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6284 # Warning - without using the other run time loading flags, 6285 # -berok will link without error, but may produce a broken library. 6286 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6287 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6288 # Exported symbols can be pulled into shared objects from archives 6289 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6290 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6291 # This is similar to how AIX traditionally builds its shared 6292 # libraries. 6293 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6294 fi 6295 fi 6296 ;; 6297 6298 beos*) 6299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6300 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6302 # support --undefined. This deserves some investigation. FIXME 6303 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6304 else 6305 _LT_TAGVAR(ld_shlibs, $1)=no 6306 fi 6307 ;; 6308 6309 chorus*) 6310 case $cc_basename in 6311 *) 6312 # FIXME: insert proper C++ library support 6313 _LT_TAGVAR(ld_shlibs, $1)=no 6314 ;; 6315 esac 6316 ;; 6317 6318 cygwin* | mingw* | pw32* | cegcc*) 6319 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6320 # as there is no search path for DLLs. 6321 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6322 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6323 _LT_TAGVAR(always_export_symbols, $1)=no 6324 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6325 6326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6328 # If the export-symbols file already is a .def file (1st line 6329 # is EXPORTS), use it as is; otherwise, prepend... 6330 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6331 cp $export_symbols $output_objdir/$soname.def; 6332 else 6333 echo EXPORTS > $output_objdir/$soname.def; 6334 cat $export_symbols >> $output_objdir/$soname.def; 6335 fi~ 6336 $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' 6337 else 6338 _LT_TAGVAR(ld_shlibs, $1)=no 6339 fi 6340 ;; 6341 darwin* | rhapsody*) 6342 _LT_DARWIN_LINKER_FEATURES($1) 6343 ;; 6344 6345 dgux*) 6346 case $cc_basename in 6347 ec++*) 6348 # FIXME: insert proper C++ library support 6349 _LT_TAGVAR(ld_shlibs, $1)=no 6350 ;; 6351 ghcx*) 6352 # Green Hills C++ Compiler 6353 # FIXME: insert proper C++ library support 6354 _LT_TAGVAR(ld_shlibs, $1)=no 6355 ;; 6356 *) 6357 # FIXME: insert proper C++ library support 6358 _LT_TAGVAR(ld_shlibs, $1)=no 6359 ;; 6360 esac 6361 ;; 6362 6363 freebsd[[12]]*) 6364 # C++ shared libraries reported to be fairly broken before 6365 # switch to ELF 6366 _LT_TAGVAR(ld_shlibs, $1)=no 6367 ;; 6368 6369 freebsd-elf*) 6370 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6371 ;; 6372 6373 freebsd* | dragonfly*) 6374 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6375 # conventions 6376 _LT_TAGVAR(ld_shlibs, $1)=yes 6377 ;; 6378 6379 gnu*) 6380 ;; 6381 6382 hpux9*) 6383 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6384 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6385 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6386 _LT_TAGVAR(hardcode_direct, $1)=yes 6387 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6388 # but as the default 6389 # location of the library. 6390 6391 case $cc_basename in 6392 CC*) 6393 # FIXME: insert proper C++ library support 6394 _LT_TAGVAR(ld_shlibs, $1)=no 6395 ;; 6396 aCC*) 6397 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6398 # Commands to make compiler produce verbose output that lists 6399 # what "hidden" libraries, object files and flags are used when 6400 # linking a shared library. 6401 # 6402 # There doesn't appear to be a way to prevent this compiler from 6403 # explicitly linking system object files so we need to strip them 6404 # from the output so that they don't get included in the library 6405 # dependencies. 6406 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6407 ;; 6408 *) 6409 if test "$GXX" = yes; then 6410 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6411 else 6412 # FIXME: insert proper C++ library support 6413 _LT_TAGVAR(ld_shlibs, $1)=no 6414 fi 6415 ;; 6416 esac 6417 ;; 6418 6419 hpux10*|hpux11*) 6420 if test $with_gnu_ld = no; then 6421 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6422 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6423 6424 case $host_cpu in 6425 hppa*64*|ia64*) 6426 ;; 6427 *) 6428 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6429 ;; 6430 esac 6431 fi 6432 case $host_cpu in 6433 hppa*64*|ia64*) 6434 _LT_TAGVAR(hardcode_direct, $1)=no 6435 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6436 ;; 6437 *) 6438 _LT_TAGVAR(hardcode_direct, $1)=yes 6439 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6440 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6441 # but as the default 6442 # location of the library. 6443 ;; 6444 esac 6445 6446 case $cc_basename in 6447 CC*) 6448 # FIXME: insert proper C++ library support 6449 _LT_TAGVAR(ld_shlibs, $1)=no 6450 ;; 6451 aCC*) 6452 case $host_cpu in 6453 hppa*64*) 6454 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6455 ;; 6456 ia64*) 6457 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6458 ;; 6459 *) 6460 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6461 ;; 6462 esac 6463 # Commands to make compiler produce verbose output that lists 6464 # what "hidden" libraries, object files and flags are used when 6465 # linking a shared library. 6466 # 6467 # There doesn't appear to be a way to prevent this compiler from 6468 # explicitly linking system object files so we need to strip them 6469 # from the output so that they don't get included in the library 6470 # dependencies. 6471 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6472 ;; 6473 *) 6474 if test "$GXX" = yes; then 6475 if test $with_gnu_ld = no; then 6476 case $host_cpu in 6477 hppa*64*) 6478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6479 ;; 6480 ia64*) 6481 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6482 ;; 6483 *) 6484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6485 ;; 6486 esac 6487 fi 6488 else 6489 # FIXME: insert proper C++ library support 6490 _LT_TAGVAR(ld_shlibs, $1)=no 6491 fi 6492 ;; 6493 esac 6494 ;; 6495 6496 interix[[3-9]]*) 6497 _LT_TAGVAR(hardcode_direct, $1)=no 6498 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6500 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6501 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6502 # Instead, shared libraries are loaded at an image base (0x10000000 by 6503 # default) and relocated if they conflict, which is a slow very memory 6504 # consuming and fragmenting process. To avoid this, we pick a random, 6505 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6506 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6507 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6508 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6509 ;; 6510 irix5* | irix6*) 6511 case $cc_basename in 6512 CC*) 6513 # SGI C++ 6514 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6515 6516 # Archives containing C++ object files must be created using 6517 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6518 # necessary to make sure instantiated templates are included 6519 # in the archive. 6520 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6521 ;; 6522 *) 6523 if test "$GXX" = yes; then 6524 if test "$with_gnu_ld" = no; then 6525 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6526 else 6527 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 6528 fi 6529 fi 6530 _LT_TAGVAR(link_all_deplibs, $1)=yes 6531 ;; 6532 esac 6533 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6534 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6535 _LT_TAGVAR(inherit_rpath, $1)=yes 6536 ;; 6537 6538 linux* | k*bsd*-gnu) 6539 case $cc_basename in 6540 KCC*) 6541 # Kuck and Associates, Inc. (KAI) C++ Compiler 6542 6543 # KCC will only create a shared library if the output file 6544 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6545 # to its proper name (with version) after linking. 6546 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6547 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 6548 # Commands to make compiler produce verbose output that lists 6549 # what "hidden" libraries, object files and flags are used when 6550 # linking a shared library. 6551 # 6552 # There doesn't appear to be a way to prevent this compiler from 6553 # explicitly linking system object files so we need to strip them 6554 # from the output so that they don't get included in the library 6555 # dependencies. 6556 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6557 6558 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6559 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6560 6561 # Archives containing C++ object files must be created using 6562 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6563 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6564 ;; 6565 icpc* | ecpc* ) 6566 # Intel C++ 6567 with_gnu_ld=yes 6568 # version 8.0 and above of icpc choke on multiply defined symbols 6569 # if we add $predep_objects and $postdep_objects, however 7.1 and 6570 # earlier do not add the objects themselves. 6571 case `$CC -V 2>&1` in 6572 *"Version 7."*) 6573 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6574 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6575 ;; 6576 *) # Version 8.0 or newer 6577 tmp_idyn= 6578 case $host_cpu in 6579 ia64*) tmp_idyn=' -i_dynamic';; 6580 esac 6581 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6582 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6583 ;; 6584 esac 6585 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6586 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6587 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6588 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6589 ;; 6590 pgCC* | pgcpp*) 6591 # Portland Group C++ compiler 6592 case `$CC -V` in 6593 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 6594 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6595 rm -rf $tpldir~ 6596 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6597 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 6598 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6599 rm -rf $tpldir~ 6600 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 6601 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 6602 $RANLIB $oldlib' 6603 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6604 rm -rf $tpldir~ 6605 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6606 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6607 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6608 rm -rf $tpldir~ 6609 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6610 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 6611 ;; 6612 *) # Version 6 will use weak symbols 6613 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6614 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 6615 ;; 6616 esac 6617 6618 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6619 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6620 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6621 ;; 6622 cxx*) 6623 # Compaq C++ 6624 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6625 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 6626 6627 runpath_var=LD_RUN_PATH 6628 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6629 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6630 6631 # Commands to make compiler produce verbose output that lists 6632 # what "hidden" libraries, object files and flags are used when 6633 # linking a shared library. 6634 # 6635 # There doesn't appear to be a way to prevent this compiler from 6636 # explicitly linking system object files so we need to strip them 6637 # from the output so that they don't get included in the library 6638 # dependencies. 6639 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6640 ;; 6641 xl*) 6642 # IBM XL 8.0 on PPC, with GNU ld 6643 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6644 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6645 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6646 if test "x$supports_anon_versioning" = xyes; then 6647 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6649 echo "local: *; };" >> $output_objdir/$libname.ver~ 6650 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6651 fi 6652 ;; 6653 *) 6654 case `$CC -V 2>&1 | sed 5q` in 6655 *Sun\ C*) 6656 # Sun C++ 5.9 6657 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6658 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6659 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6661 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6662 _LT_TAGVAR(compiler_needs_object, $1)=yes 6663 6664 # Not sure whether something based on 6665 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6666 # would be better. 6667 output_verbose_link_cmd='echo' 6668 6669 # Archives containing C++ object files must be created using 6670 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6671 # necessary to make sure instantiated templates are included 6672 # in the archive. 6673 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6674 ;; 6675 esac 6676 ;; 6677 esac 6678 ;; 6679 6680 lynxos*) 6681 # FIXME: insert proper C++ library support 6682 _LT_TAGVAR(ld_shlibs, $1)=no 6683 ;; 6684 6685 m88k*) 6686 # FIXME: insert proper C++ library support 6687 _LT_TAGVAR(ld_shlibs, $1)=no 6688 ;; 6689 6690 mvs*) 6691 case $cc_basename in 6692 cxx*) 6693 # FIXME: insert proper C++ library support 6694 _LT_TAGVAR(ld_shlibs, $1)=no 6695 ;; 6696 *) 6697 # FIXME: insert proper C++ library support 6698 _LT_TAGVAR(ld_shlibs, $1)=no 6699 ;; 6700 esac 6701 ;; 6702 6703 netbsd*) 6704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6705 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 6706 wlarc= 6707 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6708 _LT_TAGVAR(hardcode_direct, $1)=yes 6709 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6710 fi 6711 # Workaround some broken pre-1.5 toolchains 6712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6713 ;; 6714 6715 *nto* | *qnx*) 6716 _LT_TAGVAR(ld_shlibs, $1)=yes 6717 ;; 6718 6719 openbsd2*) 6720 # C++ shared libraries are fairly broken 6721 _LT_TAGVAR(ld_shlibs, $1)=no 6722 ;; 6723 6724 openbsd*) 6725 if test -f /usr/libexec/ld.so; then 6726 _LT_TAGVAR(hardcode_direct, $1)=yes 6727 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6728 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6729 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6730 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6732 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 6733 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6734 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6735 fi 6736 output_verbose_link_cmd=echo 6737 else 6738 _LT_TAGVAR(ld_shlibs, $1)=no 6739 fi 6740 ;; 6741 6742 osf3* | osf4* | osf5*) 6743 case $cc_basename in 6744 KCC*) 6745 # Kuck and Associates, Inc. (KAI) C++ Compiler 6746 6747 # KCC will only create a shared library if the output file 6748 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6749 # to its proper name (with version) after linking. 6750 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6751 6752 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6753 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6754 6755 # Archives containing C++ object files must be created using 6756 # the KAI C++ compiler. 6757 case $host in 6758 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 6759 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6760 esac 6761 ;; 6762 RCC*) 6763 # Rational C++ 2.4.1 6764 # FIXME: insert proper C++ library support 6765 _LT_TAGVAR(ld_shlibs, $1)=no 6766 ;; 6767 cxx*) 6768 case $host in 6769 osf3*) 6770 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6772 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6773 ;; 6774 *) 6775 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6776 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6777 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6778 echo "-hidden">> $lib.exp~ 6779 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 6780 $RM $lib.exp' 6781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6782 ;; 6783 esac 6784 6785 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6786 6787 # Commands to make compiler produce verbose output that lists 6788 # what "hidden" libraries, object files and flags are used when 6789 # linking a shared library. 6790 # 6791 # There doesn't appear to be a way to prevent this compiler from 6792 # explicitly linking system object files so we need to strip them 6793 # from the output so that they don't get included in the library 6794 # dependencies. 6795 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6796 ;; 6797 *) 6798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6799 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6800 case $host in 6801 osf3*) 6802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6803 ;; 6804 *) 6805 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6806 ;; 6807 esac 6808 6809 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6810 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6811 6812 # Commands to make compiler produce verbose output that lists 6813 # what "hidden" libraries, object files and flags are used when 6814 # linking a shared library. 6815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6816 6817 else 6818 # FIXME: insert proper C++ library support 6819 _LT_TAGVAR(ld_shlibs, $1)=no 6820 fi 6821 ;; 6822 esac 6823 ;; 6824 6825 psos*) 6826 # FIXME: insert proper C++ library support 6827 _LT_TAGVAR(ld_shlibs, $1)=no 6828 ;; 6829 6830 sunos4*) 6831 case $cc_basename in 6832 CC*) 6833 # Sun C++ 4.x 6834 # FIXME: insert proper C++ library support 6835 _LT_TAGVAR(ld_shlibs, $1)=no 6836 ;; 6837 lcc*) 6838 # Lucid 6839 # FIXME: insert proper C++ library support 6840 _LT_TAGVAR(ld_shlibs, $1)=no 6841 ;; 6842 *) 6843 # FIXME: insert proper C++ library support 6844 _LT_TAGVAR(ld_shlibs, $1)=no 6845 ;; 6846 esac 6847 ;; 6848 6849 solaris*) 6850 case $cc_basename in 6851 CC*) 6852 # Sun C++ 4.2, 5.x and Centerline C++ 6853 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6854 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6855 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6856 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6857 $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' 6858 6859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6860 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6861 case $host_os in 6862 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6863 *) 6864 # The compiler driver will combine and reorder linker options, 6865 # but understands `-z linker_flag'. 6866 # Supported since Solaris 2.6 (maybe 2.5.1?) 6867 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6868 ;; 6869 esac 6870 _LT_TAGVAR(link_all_deplibs, $1)=yes 6871 6872 output_verbose_link_cmd='echo' 6873 6874 # Archives containing C++ object files must be created using 6875 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6876 # necessary to make sure instantiated templates are included 6877 # in the archive. 6878 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6879 ;; 6880 gcx*) 6881 # Green Hills C++ Compiler 6882 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6883 6884 # The C++ compiler must be used to create the archive. 6885 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6886 ;; 6887 *) 6888 # GNU C++ compiler with Solaris linker 6889 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6890 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 6891 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6893 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6894 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6895 6896 # Commands to make compiler produce verbose output that lists 6897 # what "hidden" libraries, object files and flags are used when 6898 # linking a shared library. 6899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6900 else 6901 # g++ 2.7 appears to require `-G' NOT `-shared' on this 6902 # platform. 6903 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6904 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6905 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6906 6907 # Commands to make compiler produce verbose output that lists 6908 # what "hidden" libraries, object files and flags are used when 6909 # linking a shared library. 6910 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6911 fi 6912 6913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 6914 case $host_os in 6915 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6916 *) 6917 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6918 ;; 6919 esac 6920 fi 6921 ;; 6922 esac 6923 ;; 6924 6925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6926 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6927 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6928 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6929 runpath_var='LD_RUN_PATH' 6930 6931 case $cc_basename in 6932 CC*) 6933 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6934 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6935 ;; 6936 *) 6937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6938 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6939 ;; 6940 esac 6941 ;; 6942 6943 sysv5* | sco3.2v5* | sco5v6*) 6944 # Note: We can NOT use -z defs as we might desire, because we do not 6945 # link with -lc, and that would cause any symbols used from libc to 6946 # always be unresolved, which means just about no library would 6947 # ever link correctly. If we're not using GNU ld we use -z text 6948 # though, which does catch some bad symbols but isn't as heavy-handed 6949 # as -z defs. 6950 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6951 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6952 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6953 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6955 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6956 _LT_TAGVAR(link_all_deplibs, $1)=yes 6957 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6958 runpath_var='LD_RUN_PATH' 6959 6960 case $cc_basename in 6961 CC*) 6962 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6963 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6964 ;; 6965 *) 6966 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6967 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6968 ;; 6969 esac 6970 ;; 6971 6972 tandem*) 6973 case $cc_basename in 6974 NCC*) 6975 # NonStop-UX NCC 3.20 6976 # FIXME: insert proper C++ library support 6977 _LT_TAGVAR(ld_shlibs, $1)=no 6978 ;; 6979 *) 6980 # FIXME: insert proper C++ library support 6981 _LT_TAGVAR(ld_shlibs, $1)=no 6982 ;; 6983 esac 6984 ;; 6985 6986 vxworks*) 6987 # FIXME: insert proper C++ library support 6988 _LT_TAGVAR(ld_shlibs, $1)=no 6989 ;; 6990 6991 *) 6992 # FIXME: insert proper C++ library support 6993 _LT_TAGVAR(ld_shlibs, $1)=no 6994 ;; 6995 esac 6996 6997 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6998 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6999 7000 _LT_TAGVAR(GCC, $1)="$GXX" 7001 _LT_TAGVAR(LD, $1)="$LD" 7002 7003 ## CAVEAT EMPTOR: 7004 ## There is no encapsulation within the following macros, do not change 7005 ## the running order or otherwise move them around unless you know exactly 7006 ## what you are doing... 7007 _LT_SYS_HIDDEN_LIBDEPS($1) 7008 _LT_COMPILER_PIC($1) 7009 _LT_COMPILER_C_O($1) 7010 _LT_COMPILER_FILE_LOCKS($1) 7011 _LT_LINKER_SHLIBS($1) 7012 _LT_SYS_DYNAMIC_LINKER($1) 7013 _LT_LINKER_HARDCODE_LIBPATH($1) 7014 7015 _LT_CONFIG($1) 7016 fi # test -n "$compiler" 7017 7018 CC=$lt_save_CC 7019 LDCXX=$LD 7020 LD=$lt_save_LD 7021 GCC=$lt_save_GCC 7022 with_gnu_ld=$lt_save_with_gnu_ld 7023 lt_cv_path_LDCXX=$lt_cv_path_LD 7024 lt_cv_path_LD=$lt_save_path_LD 7025 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 7026 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 7027fi # test "$_lt_caught_CXX_error" != yes 7028 7029AC_LANG_POP 7030])# _LT_LANG_CXX_CONFIG 7031 7032 7033# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 7034# --------------------------------- 7035# Figure out "hidden" library dependencies from verbose 7036# compiler output when linking a shared library. 7037# Parse the compiler output and extract the necessary 7038# objects, libraries and library flags. 7039m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 7040[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7041# Dependencies to place before and after the object being linked: 7042_LT_TAGVAR(predep_objects, $1)= 7043_LT_TAGVAR(postdep_objects, $1)= 7044_LT_TAGVAR(predeps, $1)= 7045_LT_TAGVAR(postdeps, $1)= 7046_LT_TAGVAR(compiler_lib_search_path, $1)= 7047 7048dnl we can't use the lt_simple_compile_test_code here, 7049dnl because it contains code intended for an executable, 7050dnl not a library. It's possible we should let each 7051dnl tag define a new lt_????_link_test_code variable, 7052dnl but it's only used here... 7053m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 7054int a; 7055void foo (void) { a = 0; } 7056_LT_EOF 7057], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 7058class Foo 7059{ 7060public: 7061 Foo (void) { a = 0; } 7062private: 7063 int a; 7064}; 7065_LT_EOF 7066], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 7067 subroutine foo 7068 implicit none 7069 integer*4 a 7070 a=0 7071 return 7072 end 7073_LT_EOF 7074], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 7075 subroutine foo 7076 implicit none 7077 integer a 7078 a=0 7079 return 7080 end 7081_LT_EOF 7082], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 7083public class foo { 7084 private int a; 7085 public void bar (void) { 7086 a = 0; 7087 } 7088}; 7089_LT_EOF 7090]) 7091dnl Parse the compiler output and extract the necessary 7092dnl objects, libraries and library flags. 7093if AC_TRY_EVAL(ac_compile); then 7094 # Parse the compiler output and extract the necessary 7095 # objects, libraries and library flags. 7096 7097 # Sentinel used to keep track of whether or not we are before 7098 # the conftest object file. 7099 pre_test_object_deps_done=no 7100 7101 for p in `eval "$output_verbose_link_cmd"`; do 7102 case $p in 7103 7104 -L* | -R* | -l*) 7105 # Some compilers place space between "-{L,R}" and the path. 7106 # Remove the space. 7107 if test $p = "-L" || 7108 test $p = "-R"; then 7109 prev=$p 7110 continue 7111 else 7112 prev= 7113 fi 7114 7115 if test "$pre_test_object_deps_done" = no; then 7116 case $p in 7117 -L* | -R*) 7118 # Internal compiler library paths should come after those 7119 # provided the user. The postdeps already come after the 7120 # user supplied libs so there is no need to process them. 7121 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 7122 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 7123 else 7124 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 7125 fi 7126 ;; 7127 # The "-l" case would never come before the object being 7128 # linked, so don't bother handling this case. 7129 esac 7130 else 7131 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 7132 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 7133 else 7134 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 7135 fi 7136 fi 7137 ;; 7138 7139 *.$objext) 7140 # This assumes that the test object file only shows up 7141 # once in the compiler output. 7142 if test "$p" = "conftest.$objext"; then 7143 pre_test_object_deps_done=yes 7144 continue 7145 fi 7146 7147 if test "$pre_test_object_deps_done" = no; then 7148 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 7149 _LT_TAGVAR(predep_objects, $1)="$p" 7150 else 7151 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7152 fi 7153 else 7154 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7155 _LT_TAGVAR(postdep_objects, $1)="$p" 7156 else 7157 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7158 fi 7159 fi 7160 ;; 7161 7162 *) ;; # Ignore the rest. 7163 7164 esac 7165 done 7166 7167 # Clean up. 7168 rm -f a.out a.exe 7169else 7170 echo "libtool.m4: error: problem compiling $1 test program" 7171fi 7172 7173$RM -f confest.$objext 7174 7175# PORTME: override above test on systems where it is broken 7176m4_if([$1], [CXX], 7177[case $host_os in 7178interix[[3-9]]*) 7179 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7180 # hack all around it, let's just trust "g++" to DTRT. 7181 _LT_TAGVAR(predep_objects,$1)= 7182 _LT_TAGVAR(postdep_objects,$1)= 7183 _LT_TAGVAR(postdeps,$1)= 7184 ;; 7185 7186linux*) 7187 case `$CC -V 2>&1 | sed 5q` in 7188 *Sun\ C*) 7189 # Sun C++ 5.9 7190 7191 # The more standards-conforming stlport4 library is 7192 # incompatible with the Cstd library. Avoid specifying 7193 # it if it's in CXXFLAGS. Ignore libCrun as 7194 # -library=stlport4 depends on it. 7195 case " $CXX $CXXFLAGS " in 7196 *" -library=stlport4 "*) 7197 solaris_use_stlport4=yes 7198 ;; 7199 esac 7200 7201 if test "$solaris_use_stlport4" != yes; then 7202 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7203 fi 7204 ;; 7205 esac 7206 ;; 7207 7208solaris*) 7209 case $cc_basename in 7210 CC*) 7211 # The more standards-conforming stlport4 library is 7212 # incompatible with the Cstd library. Avoid specifying 7213 # it if it's in CXXFLAGS. Ignore libCrun as 7214 # -library=stlport4 depends on it. 7215 case " $CXX $CXXFLAGS " in 7216 *" -library=stlport4 "*) 7217 solaris_use_stlport4=yes 7218 ;; 7219 esac 7220 7221 # Adding this requires a known-good setup of shared libraries for 7222 # Sun compiler versions before 5.6, else PIC objects from an old 7223 # archive will be linked into the output, leading to subtle bugs. 7224 if test "$solaris_use_stlport4" != yes; then 7225 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7226 fi 7227 ;; 7228 esac 7229 ;; 7230esac 7231]) 7232 7233case " $_LT_TAGVAR(postdeps, $1) " in 7234*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7235esac 7236 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7237if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7238 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 7239fi 7240_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7241 [The directories searched by this compiler when creating a shared library]) 7242_LT_TAGDECL([], [predep_objects], [1], 7243 [Dependencies to place before and after the objects being linked to 7244 create a shared library]) 7245_LT_TAGDECL([], [postdep_objects], [1]) 7246_LT_TAGDECL([], [predeps], [1]) 7247_LT_TAGDECL([], [postdeps], [1]) 7248_LT_TAGDECL([], [compiler_lib_search_path], [1], 7249 [The library search path used internally by the compiler when linking 7250 a shared library]) 7251])# _LT_SYS_HIDDEN_LIBDEPS 7252 7253 7254# _LT_PROG_F77 7255# ------------ 7256# Since AC_PROG_F77 is broken, in that it returns the empty string 7257# if there is no fortran compiler, we have our own version here. 7258m4_defun([_LT_PROG_F77], 7259[ 7260pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 7261AC_PROG_F77 7262if test -z "$F77" || test "X$F77" = "Xno"; then 7263 _lt_disable_F77=yes 7264fi 7265popdef([AC_MSG_ERROR]) 7266])# _LT_PROG_F77 7267 7268dnl aclocal-1.4 backwards compatibility: 7269dnl AC_DEFUN([_LT_PROG_F77], []) 7270 7271 7272# _LT_LANG_F77_CONFIG([TAG]) 7273# -------------------------- 7274# Ensure that the configuration variables for a Fortran 77 compiler are 7275# suitably defined. These variables are subsequently used by _LT_CONFIG 7276# to write the compiler configuration to `libtool'. 7277m4_defun([_LT_LANG_F77_CONFIG], 7278[AC_REQUIRE([_LT_PROG_F77])dnl 7279AC_LANG_PUSH(Fortran 77) 7280 7281_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7282_LT_TAGVAR(allow_undefined_flag, $1)= 7283_LT_TAGVAR(always_export_symbols, $1)=no 7284_LT_TAGVAR(archive_expsym_cmds, $1)= 7285_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7286_LT_TAGVAR(hardcode_direct, $1)=no 7287_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7288_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7289_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7290_LT_TAGVAR(hardcode_libdir_separator, $1)= 7291_LT_TAGVAR(hardcode_minus_L, $1)=no 7292_LT_TAGVAR(hardcode_automatic, $1)=no 7293_LT_TAGVAR(inherit_rpath, $1)=no 7294_LT_TAGVAR(module_cmds, $1)= 7295_LT_TAGVAR(module_expsym_cmds, $1)= 7296_LT_TAGVAR(link_all_deplibs, $1)=unknown 7297_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7298_LT_TAGVAR(no_undefined_flag, $1)= 7299_LT_TAGVAR(whole_archive_flag_spec, $1)= 7300_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7301 7302# Source file extension for f77 test sources. 7303ac_ext=f 7304 7305# Object file extension for compiled f77 test sources. 7306objext=o 7307_LT_TAGVAR(objext, $1)=$objext 7308 7309# No sense in running all these tests if we already determined that 7310# the F77 compiler isn't working. Some variables (like enable_shared) 7311# are currently assumed to apply to all compilers on this platform, 7312# and will be corrupted by setting them based on a non-working compiler. 7313if test "$_lt_disable_F77" != yes; then 7314 # Code to be used in simple compile tests 7315 lt_simple_compile_test_code="\ 7316 subroutine t 7317 return 7318 end 7319" 7320 7321 # Code to be used in simple link tests 7322 lt_simple_link_test_code="\ 7323 program t 7324 end 7325" 7326 7327 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7328 _LT_TAG_COMPILER 7329 7330 # save warnings/boilerplate of simple test code 7331 _LT_COMPILER_BOILERPLATE 7332 _LT_LINKER_BOILERPLATE 7333 7334 # Allow CC to be a program name with arguments. 7335 lt_save_CC="$CC" 7336 lt_save_GCC=$GCC 7337 CC=${F77-"f77"} 7338 compiler=$CC 7339 _LT_TAGVAR(compiler, $1)=$CC 7340 _LT_CC_BASENAME([$compiler]) 7341 GCC=$G77 7342 if test -n "$compiler"; then 7343 AC_MSG_CHECKING([if libtool supports shared libraries]) 7344 AC_MSG_RESULT([$can_build_shared]) 7345 7346 AC_MSG_CHECKING([whether to build shared libraries]) 7347 test "$can_build_shared" = "no" && enable_shared=no 7348 7349 # On AIX, shared libraries and static libraries use the same namespace, and 7350 # are all built from PIC. 7351 case $host_os in 7352 aix3*) 7353 test "$enable_shared" = yes && enable_static=no 7354 if test -n "$RANLIB"; then 7355 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7356 postinstall_cmds='$RANLIB $lib' 7357 fi 7358 ;; 7359 aix[[4-9]]*) 7360 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7361 test "$enable_shared" = yes && enable_static=no 7362 fi 7363 ;; 7364 esac 7365 AC_MSG_RESULT([$enable_shared]) 7366 7367 AC_MSG_CHECKING([whether to build static libraries]) 7368 # Make sure either enable_shared or enable_static is yes. 7369 test "$enable_shared" = yes || enable_static=yes 7370 AC_MSG_RESULT([$enable_static]) 7371 7372 _LT_TAGVAR(GCC, $1)="$G77" 7373 _LT_TAGVAR(LD, $1)="$LD" 7374 7375 ## CAVEAT EMPTOR: 7376 ## There is no encapsulation within the following macros, do not change 7377 ## the running order or otherwise move them around unless you know exactly 7378 ## what you are doing... 7379 _LT_COMPILER_PIC($1) 7380 _LT_COMPILER_C_O($1) 7381 _LT_COMPILER_FILE_LOCKS($1) 7382 _LT_LINKER_SHLIBS($1) 7383 _LT_SYS_DYNAMIC_LINKER($1) 7384 _LT_LINKER_HARDCODE_LIBPATH($1) 7385 7386 _LT_CONFIG($1) 7387 fi # test -n "$compiler" 7388 7389 GCC=$lt_save_GCC 7390 CC="$lt_save_CC" 7391fi # test "$_lt_disable_F77" != yes 7392 7393AC_LANG_POP 7394])# _LT_LANG_F77_CONFIG 7395 7396 7397# _LT_PROG_FC 7398# ----------- 7399# Since AC_PROG_FC is broken, in that it returns the empty string 7400# if there is no fortran compiler, we have our own version here. 7401m4_defun([_LT_PROG_FC], 7402[ 7403pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 7404AC_PROG_FC 7405if test -z "$FC" || test "X$FC" = "Xno"; then 7406 _lt_disable_FC=yes 7407fi 7408popdef([AC_MSG_ERROR]) 7409])# _LT_PROG_FC 7410 7411dnl aclocal-1.4 backwards compatibility: 7412dnl AC_DEFUN([_LT_PROG_FC], []) 7413 7414 7415# _LT_LANG_FC_CONFIG([TAG]) 7416# ------------------------- 7417# Ensure that the configuration variables for a Fortran compiler are 7418# suitably defined. These variables are subsequently used by _LT_CONFIG 7419# to write the compiler configuration to `libtool'. 7420m4_defun([_LT_LANG_FC_CONFIG], 7421[AC_REQUIRE([_LT_PROG_FC])dnl 7422AC_LANG_PUSH(Fortran) 7423 7424_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7425_LT_TAGVAR(allow_undefined_flag, $1)= 7426_LT_TAGVAR(always_export_symbols, $1)=no 7427_LT_TAGVAR(archive_expsym_cmds, $1)= 7428_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7429_LT_TAGVAR(hardcode_direct, $1)=no 7430_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7431_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7432_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7433_LT_TAGVAR(hardcode_libdir_separator, $1)= 7434_LT_TAGVAR(hardcode_minus_L, $1)=no 7435_LT_TAGVAR(hardcode_automatic, $1)=no 7436_LT_TAGVAR(inherit_rpath, $1)=no 7437_LT_TAGVAR(module_cmds, $1)= 7438_LT_TAGVAR(module_expsym_cmds, $1)= 7439_LT_TAGVAR(link_all_deplibs, $1)=unknown 7440_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7441_LT_TAGVAR(no_undefined_flag, $1)= 7442_LT_TAGVAR(whole_archive_flag_spec, $1)= 7443_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7444 7445# Source file extension for fc test sources. 7446ac_ext=${ac_fc_srcext-f} 7447 7448# Object file extension for compiled fc test sources. 7449objext=o 7450_LT_TAGVAR(objext, $1)=$objext 7451 7452# No sense in running all these tests if we already determined that 7453# the FC compiler isn't working. Some variables (like enable_shared) 7454# are currently assumed to apply to all compilers on this platform, 7455# and will be corrupted by setting them based on a non-working compiler. 7456if test "$_lt_disable_FC" != yes; then 7457 # Code to be used in simple compile tests 7458 lt_simple_compile_test_code="\ 7459 subroutine t 7460 return 7461 end 7462" 7463 7464 # Code to be used in simple link tests 7465 lt_simple_link_test_code="\ 7466 program t 7467 end 7468" 7469 7470 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7471 _LT_TAG_COMPILER 7472 7473 # save warnings/boilerplate of simple test code 7474 _LT_COMPILER_BOILERPLATE 7475 _LT_LINKER_BOILERPLATE 7476 7477 # Allow CC to be a program name with arguments. 7478 lt_save_CC="$CC" 7479 lt_save_GCC=$GCC 7480 CC=${FC-"f95"} 7481 compiler=$CC 7482 GCC=$ac_cv_fc_compiler_gnu 7483 7484 _LT_TAGVAR(compiler, $1)=$CC 7485 _LT_CC_BASENAME([$compiler]) 7486 7487 if test -n "$compiler"; then 7488 AC_MSG_CHECKING([if libtool supports shared libraries]) 7489 AC_MSG_RESULT([$can_build_shared]) 7490 7491 AC_MSG_CHECKING([whether to build shared libraries]) 7492 test "$can_build_shared" = "no" && enable_shared=no 7493 7494 # On AIX, shared libraries and static libraries use the same namespace, and 7495 # are all built from PIC. 7496 case $host_os in 7497 aix3*) 7498 test "$enable_shared" = yes && enable_static=no 7499 if test -n "$RANLIB"; then 7500 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7501 postinstall_cmds='$RANLIB $lib' 7502 fi 7503 ;; 7504 aix[[4-9]]*) 7505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7506 test "$enable_shared" = yes && enable_static=no 7507 fi 7508 ;; 7509 esac 7510 AC_MSG_RESULT([$enable_shared]) 7511 7512 AC_MSG_CHECKING([whether to build static libraries]) 7513 # Make sure either enable_shared or enable_static is yes. 7514 test "$enable_shared" = yes || enable_static=yes 7515 AC_MSG_RESULT([$enable_static]) 7516 7517 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 7518 _LT_TAGVAR(LD, $1)="$LD" 7519 7520 ## CAVEAT EMPTOR: 7521 ## There is no encapsulation within the following macros, do not change 7522 ## the running order or otherwise move them around unless you know exactly 7523 ## what you are doing... 7524 _LT_SYS_HIDDEN_LIBDEPS($1) 7525 _LT_COMPILER_PIC($1) 7526 _LT_COMPILER_C_O($1) 7527 _LT_COMPILER_FILE_LOCKS($1) 7528 _LT_LINKER_SHLIBS($1) 7529 _LT_SYS_DYNAMIC_LINKER($1) 7530 _LT_LINKER_HARDCODE_LIBPATH($1) 7531 7532 _LT_CONFIG($1) 7533 fi # test -n "$compiler" 7534 7535 GCC=$lt_save_GCC 7536 CC="$lt_save_CC" 7537fi # test "$_lt_disable_FC" != yes 7538 7539AC_LANG_POP 7540])# _LT_LANG_FC_CONFIG 7541 7542 7543# _LT_LANG_GCJ_CONFIG([TAG]) 7544# -------------------------- 7545# Ensure that the configuration variables for the GNU Java Compiler compiler 7546# are suitably defined. These variables are subsequently used by _LT_CONFIG 7547# to write the compiler configuration to `libtool'. 7548m4_defun([_LT_LANG_GCJ_CONFIG], 7549[AC_REQUIRE([LT_PROG_GCJ])dnl 7550AC_LANG_SAVE 7551 7552# Source file extension for Java test sources. 7553ac_ext=java 7554 7555# Object file extension for compiled Java test sources. 7556objext=o 7557_LT_TAGVAR(objext, $1)=$objext 7558 7559# Code to be used in simple compile tests 7560lt_simple_compile_test_code="class foo {}" 7561 7562# Code to be used in simple link tests 7563lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 7564 7565# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7566_LT_TAG_COMPILER 7567 7568# save warnings/boilerplate of simple test code 7569_LT_COMPILER_BOILERPLATE 7570_LT_LINKER_BOILERPLATE 7571 7572# Allow CC to be a program name with arguments. 7573lt_save_CC="$CC" 7574lt_save_GCC=$GCC 7575GCC=yes 7576CC=${GCJ-"gcj"} 7577compiler=$CC 7578_LT_TAGVAR(compiler, $1)=$CC 7579_LT_TAGVAR(LD, $1)="$LD" 7580_LT_CC_BASENAME([$compiler]) 7581 7582# GCJ did not exist at the time GCC didn't implicitly link libc in. 7583_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7584 7585_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7586 7587if test -n "$compiler"; then 7588 _LT_COMPILER_NO_RTTI($1) 7589 _LT_COMPILER_PIC($1) 7590 _LT_COMPILER_C_O($1) 7591 _LT_COMPILER_FILE_LOCKS($1) 7592 _LT_LINKER_SHLIBS($1) 7593 _LT_LINKER_HARDCODE_LIBPATH($1) 7594 7595 _LT_CONFIG($1) 7596fi 7597 7598AC_LANG_RESTORE 7599 7600GCC=$lt_save_GCC 7601CC="$lt_save_CC" 7602])# _LT_LANG_GCJ_CONFIG 7603 7604 7605# _LT_LANG_RC_CONFIG([TAG]) 7606# ------------------------- 7607# Ensure that the configuration variables for the Windows resource compiler 7608# are suitably defined. These variables are subsequently used by _LT_CONFIG 7609# to write the compiler configuration to `libtool'. 7610m4_defun([_LT_LANG_RC_CONFIG], 7611[AC_REQUIRE([LT_PROG_RC])dnl 7612AC_LANG_SAVE 7613 7614# Source file extension for RC test sources. 7615ac_ext=rc 7616 7617# Object file extension for compiled RC test sources. 7618objext=o 7619_LT_TAGVAR(objext, $1)=$objext 7620 7621# Code to be used in simple compile tests 7622lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 7623 7624# Code to be used in simple link tests 7625lt_simple_link_test_code="$lt_simple_compile_test_code" 7626 7627# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7628_LT_TAG_COMPILER 7629 7630# save warnings/boilerplate of simple test code 7631_LT_COMPILER_BOILERPLATE 7632_LT_LINKER_BOILERPLATE 7633 7634# Allow CC to be a program name with arguments. 7635lt_save_CC="$CC" 7636lt_save_GCC=$GCC 7637GCC= 7638CC=${RC-"windres"} 7639compiler=$CC 7640_LT_TAGVAR(compiler, $1)=$CC 7641_LT_CC_BASENAME([$compiler]) 7642_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 7643 7644if test -n "$compiler"; then 7645 : 7646 _LT_CONFIG($1) 7647fi 7648 7649GCC=$lt_save_GCC 7650AC_LANG_RESTORE 7651CC="$lt_save_CC" 7652])# _LT_LANG_RC_CONFIG 7653 7654 7655# LT_PROG_GCJ 7656# ----------- 7657AC_DEFUN([LT_PROG_GCJ], 7658[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 7659 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7660 [AC_CHECK_TOOL(GCJ, gcj,) 7661 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7662 AC_SUBST(GCJFLAGS)])])[]dnl 7663]) 7664 7665# Old name: 7666AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7667dnl aclocal-1.4 backwards compatibility: 7668dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7669 7670 7671# LT_PROG_RC 7672# ---------- 7673AC_DEFUN([LT_PROG_RC], 7674[AC_CHECK_TOOL(RC, windres,) 7675]) 7676 7677# Old name: 7678AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 7679dnl aclocal-1.4 backwards compatibility: 7680dnl AC_DEFUN([LT_AC_PROG_RC], []) 7681 7682 7683# _LT_DECL_EGREP 7684# -------------- 7685# If we don't have a new enough Autoconf to choose the best grep 7686# available, choose the one first in the user's PATH. 7687m4_defun([_LT_DECL_EGREP], 7688[AC_REQUIRE([AC_PROG_EGREP])dnl 7689AC_REQUIRE([AC_PROG_FGREP])dnl 7690test -z "$GREP" && GREP=grep 7691_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 7692_LT_DECL([], [EGREP], [1], [An ERE matcher]) 7693_LT_DECL([], [FGREP], [1], [A literal string matcher]) 7694dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 7695AC_SUBST([GREP]) 7696]) 7697 7698 7699# _LT_DECL_OBJDUMP 7700# -------------- 7701# If we don't have a new enough Autoconf to choose the best objdump 7702# available, choose the one first in the user's PATH. 7703m4_defun([_LT_DECL_OBJDUMP], 7704[AC_CHECK_TOOL(OBJDUMP, objdump, false) 7705test -z "$OBJDUMP" && OBJDUMP=objdump 7706_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 7707AC_SUBST([OBJDUMP]) 7708]) 7709 7710 7711# _LT_DECL_SED 7712# ------------ 7713# Check for a fully-functional sed program, that truncates 7714# as few characters as possible. Prefer GNU sed if found. 7715m4_defun([_LT_DECL_SED], 7716[AC_PROG_SED 7717test -z "$SED" && SED=sed 7718Xsed="$SED -e 1s/^X//" 7719_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 7720_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 7721 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 7722])# _LT_DECL_SED 7723 7724m4_ifndef([AC_PROG_SED], [ 7725# NOTE: This macro has been submitted for inclusion into # 7726# GNU Autoconf as AC_PROG_SED. When it is available in # 7727# a released version of Autoconf we should remove this # 7728# macro and use it instead. # 7729 7730m4_defun([AC_PROG_SED], 7731[AC_MSG_CHECKING([for a sed that does not truncate output]) 7732AC_CACHE_VAL(lt_cv_path_SED, 7733[# Loop through the user's path and test for sed and gsed. 7734# Then use that list of sed's as ones to test for truncation. 7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for lt_ac_prog in sed gsed; do 7741 for ac_exec_ext in '' $ac_executable_extensions; do 7742 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7744 fi 7745 done 7746 done 7747done 7748IFS=$as_save_IFS 7749lt_ac_max=0 7750lt_ac_count=0 7751# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7752# along with /bin/sed that truncates output. 7753for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7754 test ! -f $lt_ac_sed && continue 7755 cat /dev/null > conftest.in 7756 lt_ac_count=0 7757 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7758 # Check for GNU sed and select it if it is found. 7759 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7760 lt_cv_path_SED=$lt_ac_sed 7761 break 7762 fi 7763 while true; do 7764 cat conftest.in conftest.in >conftest.tmp 7765 mv conftest.tmp conftest.in 7766 cp conftest.in conftest.nl 7767 echo >>conftest.nl 7768 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7769 cmp -s conftest.out conftest.nl || break 7770 # 10000 chars as input seems more than enough 7771 test $lt_ac_count -gt 10 && break 7772 lt_ac_count=`expr $lt_ac_count + 1` 7773 if test $lt_ac_count -gt $lt_ac_max; then 7774 lt_ac_max=$lt_ac_count 7775 lt_cv_path_SED=$lt_ac_sed 7776 fi 7777 done 7778done 7779]) 7780SED=$lt_cv_path_SED 7781AC_SUBST([SED]) 7782AC_MSG_RESULT([$SED]) 7783])#AC_PROG_SED 7784])#m4_ifndef 7785 7786# Old name: 7787AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 7788dnl aclocal-1.4 backwards compatibility: 7789dnl AC_DEFUN([LT_AC_PROG_SED], []) 7790 7791 7792# _LT_CHECK_SHELL_FEATURES 7793# ------------------------ 7794# Find out whether the shell is Bourne or XSI compatible, 7795# or has some other useful features. 7796m4_defun([_LT_CHECK_SHELL_FEATURES], 7797[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7798# Try some XSI features 7799xsi_shell=no 7800( _lt_dummy="a/b/c" 7801 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7802 = c,a/b,, \ 7803 && eval 'test $(( 1 + 1 )) -eq 2 \ 7804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7805 && xsi_shell=yes 7806AC_MSG_RESULT([$xsi_shell]) 7807_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7808 7809AC_MSG_CHECKING([whether the shell understands "+="]) 7810lt_shell_append=no 7811( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7812 >/dev/null 2>&1 \ 7813 && lt_shell_append=yes 7814AC_MSG_RESULT([$lt_shell_append]) 7815_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7816 7817if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7818 lt_unset=unset 7819else 7820 lt_unset=false 7821fi 7822_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7823 7824# test EBCDIC or ASCII 7825case `echo X|tr X '\101'` in 7826 A) # ASCII based system 7827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7828 lt_SP2NL='tr \040 \012' 7829 lt_NL2SP='tr \015\012 \040\040' 7830 ;; 7831 *) # EBCDIC based system 7832 lt_SP2NL='tr \100 \n' 7833 lt_NL2SP='tr \r\n \100\100' 7834 ;; 7835esac 7836_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7837_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7838])# _LT_CHECK_SHELL_FEATURES 7839 7840 7841# _LT_PROG_XSI_SHELLFNS 7842# --------------------- 7843# Bourne and XSI compatible variants of some useful shell functions. 7844m4_defun([_LT_PROG_XSI_SHELLFNS], 7845[case $xsi_shell in 7846 yes) 7847 cat << \_LT_EOF >> "$cfgfile" 7848 7849# func_dirname file append nondir_replacement 7850# Compute the dirname of FILE. If nonempty, add APPEND to the result, 7851# otherwise set result to NONDIR_REPLACEMENT. 7852func_dirname () 7853{ 7854 case ${1} in 7855 */*) func_dirname_result="${1%/*}${2}" ;; 7856 * ) func_dirname_result="${3}" ;; 7857 esac 7858} 7859 7860# func_basename file 7861func_basename () 7862{ 7863 func_basename_result="${1##*/}" 7864} 7865 7866# func_dirname_and_basename file append nondir_replacement 7867# perform func_basename and func_dirname in a single function 7868# call: 7869# dirname: Compute the dirname of FILE. If nonempty, 7870# add APPEND to the result, otherwise set result 7871# to NONDIR_REPLACEMENT. 7872# value returned in "$func_dirname_result" 7873# basename: Compute filename of FILE. 7874# value retuned in "$func_basename_result" 7875# Implementation must be kept synchronized with func_dirname 7876# and func_basename. For efficiency, we do not delegate to 7877# those functions but instead duplicate the functionality here. 7878func_dirname_and_basename () 7879{ 7880 case ${1} in 7881 */*) func_dirname_result="${1%/*}${2}" ;; 7882 * ) func_dirname_result="${3}" ;; 7883 esac 7884 func_basename_result="${1##*/}" 7885} 7886 7887# func_stripname prefix suffix name 7888# strip PREFIX and SUFFIX off of NAME. 7889# PREFIX and SUFFIX must not contain globbing or regex special 7890# characters, hashes, percent signs, but SUFFIX may contain a leading 7891# dot (in which case that matches only a dot). 7892func_stripname () 7893{ 7894 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7895 # positional parameters, so assign one to ordinary parameter first. 7896 func_stripname_result=${3} 7897 func_stripname_result=${func_stripname_result#"${1}"} 7898 func_stripname_result=${func_stripname_result%"${2}"} 7899} 7900 7901# func_opt_split 7902func_opt_split () 7903{ 7904 func_opt_split_opt=${1%%=*} 7905 func_opt_split_arg=${1#*=} 7906} 7907 7908# func_lo2o object 7909func_lo2o () 7910{ 7911 case ${1} in 7912 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7913 *) func_lo2o_result=${1} ;; 7914 esac 7915} 7916 7917# func_xform libobj-or-source 7918func_xform () 7919{ 7920 func_xform_result=${1%.*}.lo 7921} 7922 7923# func_arith arithmetic-term... 7924func_arith () 7925{ 7926 func_arith_result=$(( $[*] )) 7927} 7928 7929# func_len string 7930# STRING may not start with a hyphen. 7931func_len () 7932{ 7933 func_len_result=${#1} 7934} 7935 7936_LT_EOF 7937 ;; 7938 *) # Bourne compatible functions. 7939 cat << \_LT_EOF >> "$cfgfile" 7940 7941# func_dirname file append nondir_replacement 7942# Compute the dirname of FILE. If nonempty, add APPEND to the result, 7943# otherwise set result to NONDIR_REPLACEMENT. 7944func_dirname () 7945{ 7946 # Extract subdirectory from the argument. 7947 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 7948 if test "X$func_dirname_result" = "X${1}"; then 7949 func_dirname_result="${3}" 7950 else 7951 func_dirname_result="$func_dirname_result${2}" 7952 fi 7953} 7954 7955# func_basename file 7956func_basename () 7957{ 7958 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 7959} 7960 7961dnl func_dirname_and_basename 7962dnl A portable version of this function is already defined in general.m4sh 7963dnl so there is no need for it here. 7964 7965# func_stripname prefix suffix name 7966# strip PREFIX and SUFFIX off of NAME. 7967# PREFIX and SUFFIX must not contain globbing or regex special 7968# characters, hashes, percent signs, but SUFFIX may contain a leading 7969# dot (in which case that matches only a dot). 7970# func_strip_suffix prefix name 7971func_stripname () 7972{ 7973 case ${2} in 7974 .*) func_stripname_result=`$ECHO "X${3}" \ 7975 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 7976 *) func_stripname_result=`$ECHO "X${3}" \ 7977 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 7978 esac 7979} 7980 7981# sed scripts: 7982my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 7983my_sed_long_arg='1s/^-[[^=]]*=//' 7984 7985# func_opt_split 7986func_opt_split () 7987{ 7988 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 7989 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 7990} 7991 7992# func_lo2o object 7993func_lo2o () 7994{ 7995 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 7996} 7997 7998# func_xform libobj-or-source 7999func_xform () 8000{ 8001 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 8002} 8003 8004# func_arith arithmetic-term... 8005func_arith () 8006{ 8007 func_arith_result=`expr "$[@]"` 8008} 8009 8010# func_len string 8011# STRING may not start with a hyphen. 8012func_len () 8013{ 8014 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 8015} 8016 8017_LT_EOF 8018esac 8019 8020case $lt_shell_append in 8021 yes) 8022 cat << \_LT_EOF >> "$cfgfile" 8023 8024# func_append var value 8025# Append VALUE to the end of shell variable VAR. 8026func_append () 8027{ 8028 eval "$[1]+=\$[2]" 8029} 8030_LT_EOF 8031 ;; 8032 *) 8033 cat << \_LT_EOF >> "$cfgfile" 8034 8035# func_append var value 8036# Append VALUE to the end of shell variable VAR. 8037func_append () 8038{ 8039 eval "$[1]=\$$[1]\$[2]" 8040} 8041 8042_LT_EOF 8043 ;; 8044 esac 8045]) 8046 8047# Helper functions for option handling. -*- Autoconf -*- 8048# 8049# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 8050# Written by Gary V. Vaughan, 2004 8051# 8052# This file is free software; the Free Software Foundation gives 8053# unlimited permission to copy and/or distribute it, with or without 8054# modifications, as long as this notice is preserved. 8055 8056# serial 6 ltoptions.m4 8057 8058# This is to help aclocal find these macros, as it can't see m4_define. 8059AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 8060 8061 8062# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 8063# ------------------------------------------ 8064m4_define([_LT_MANGLE_OPTION], 8065[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 8066 8067 8068# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 8069# --------------------------------------- 8070# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 8071# matching handler defined, dispatch to it. Other OPTION-NAMEs are 8072# saved as a flag. 8073m4_define([_LT_SET_OPTION], 8074[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 8075m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 8076 _LT_MANGLE_DEFUN([$1], [$2]), 8077 [m4_warning([Unknown $1 option `$2'])])[]dnl 8078]) 8079 8080 8081# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 8082# ------------------------------------------------------------ 8083# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8084m4_define([_LT_IF_OPTION], 8085[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 8086 8087 8088# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 8089# ------------------------------------------------------- 8090# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 8091# are set. 8092m4_define([_LT_UNLESS_OPTIONS], 8093[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8094 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 8095 [m4_define([$0_found])])])[]dnl 8096m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 8097])[]dnl 8098]) 8099 8100 8101# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 8102# ---------------------------------------- 8103# OPTION-LIST is a space-separated list of Libtool options associated 8104# with MACRO-NAME. If any OPTION has a matching handler declared with 8105# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 8106# the unknown option and exit. 8107m4_defun([_LT_SET_OPTIONS], 8108[# Set options 8109m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8110 [_LT_SET_OPTION([$1], _LT_Option)]) 8111 8112m4_if([$1],[LT_INIT],[ 8113 dnl 8114 dnl Simply set some default values (i.e off) if boolean options were not 8115 dnl specified: 8116 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 8117 ]) 8118 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 8119 ]) 8120 dnl 8121 dnl If no reference was made to various pairs of opposing options, then 8122 dnl we run the default mode handler for the pair. For example, if neither 8123 dnl `shared' nor `disable-shared' was passed, we enable building of shared 8124 dnl archives by default: 8125 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 8126 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 8127 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 8128 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 8129 [_LT_ENABLE_FAST_INSTALL]) 8130 ]) 8131])# _LT_SET_OPTIONS 8132 8133 8134 8135# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 8136# ----------------------------------------- 8137m4_define([_LT_MANGLE_DEFUN], 8138[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 8139 8140 8141# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 8142# ----------------------------------------------- 8143m4_define([LT_OPTION_DEFINE], 8144[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 8145])# LT_OPTION_DEFINE 8146 8147 8148# dlopen 8149# ------ 8150LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 8151]) 8152 8153AU_DEFUN([AC_LIBTOOL_DLOPEN], 8154[_LT_SET_OPTION([LT_INIT], [dlopen]) 8155AC_DIAGNOSE([obsolete], 8156[$0: Remove this warning and the call to _LT_SET_OPTION when you 8157put the `dlopen' option into LT_INIT's first parameter.]) 8158]) 8159 8160dnl aclocal-1.4 backwards compatibility: 8161dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 8162 8163 8164# win32-dll 8165# --------- 8166# Declare package support for building win32 dll's. 8167LT_OPTION_DEFINE([LT_INIT], [win32-dll], 8168[enable_win32_dll=yes 8169 8170case $host in 8171*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 8172 AC_CHECK_TOOL(AS, as, false) 8173 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8174 AC_CHECK_TOOL(OBJDUMP, objdump, false) 8175 ;; 8176esac 8177 8178test -z "$AS" && AS=as 8179_LT_DECL([], [AS], [0], [Assembler program])dnl 8180 8181test -z "$DLLTOOL" && DLLTOOL=dlltool 8182_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 8183 8184test -z "$OBJDUMP" && OBJDUMP=objdump 8185_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 8186])# win32-dll 8187 8188AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 8189[AC_REQUIRE([AC_CANONICAL_HOST])dnl 8190_LT_SET_OPTION([LT_INIT], [win32-dll]) 8191AC_DIAGNOSE([obsolete], 8192[$0: Remove this warning and the call to _LT_SET_OPTION when you 8193put the `win32-dll' option into LT_INIT's first parameter.]) 8194]) 8195 8196dnl aclocal-1.4 backwards compatibility: 8197dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 8198 8199 8200# _LT_ENABLE_SHARED([DEFAULT]) 8201# ---------------------------- 8202# implement the --enable-shared flag, and supports the `shared' and 8203# `disable-shared' LT_INIT options. 8204# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8205m4_define([_LT_ENABLE_SHARED], 8206[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 8207AC_ARG_ENABLE([shared], 8208 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 8209 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 8210 [p=${PACKAGE-default} 8211 case $enableval in 8212 yes) enable_shared=yes ;; 8213 no) enable_shared=no ;; 8214 *) 8215 enable_shared=no 8216 # Look at the argument we got. We use all the common list separators. 8217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8218 for pkg in $enableval; do 8219 IFS="$lt_save_ifs" 8220 if test "X$pkg" = "X$p"; then 8221 enable_shared=yes 8222 fi 8223 done 8224 IFS="$lt_save_ifs" 8225 ;; 8226 esac], 8227 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 8228 8229 _LT_DECL([build_libtool_libs], [enable_shared], [0], 8230 [Whether or not to build shared libraries]) 8231])# _LT_ENABLE_SHARED 8232 8233LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 8234LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 8235 8236# Old names: 8237AC_DEFUN([AC_ENABLE_SHARED], 8238[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 8239]) 8240 8241AC_DEFUN([AC_DISABLE_SHARED], 8242[_LT_SET_OPTION([LT_INIT], [disable-shared]) 8243]) 8244 8245AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 8246AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 8247 8248dnl aclocal-1.4 backwards compatibility: 8249dnl AC_DEFUN([AM_ENABLE_SHARED], []) 8250dnl AC_DEFUN([AM_DISABLE_SHARED], []) 8251 8252 8253 8254# _LT_ENABLE_STATIC([DEFAULT]) 8255# ---------------------------- 8256# implement the --enable-static flag, and support the `static' and 8257# `disable-static' LT_INIT options. 8258# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8259m4_define([_LT_ENABLE_STATIC], 8260[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 8261AC_ARG_ENABLE([static], 8262 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 8263 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 8264 [p=${PACKAGE-default} 8265 case $enableval in 8266 yes) enable_static=yes ;; 8267 no) enable_static=no ;; 8268 *) 8269 enable_static=no 8270 # Look at the argument we got. We use all the common list separators. 8271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8272 for pkg in $enableval; do 8273 IFS="$lt_save_ifs" 8274 if test "X$pkg" = "X$p"; then 8275 enable_static=yes 8276 fi 8277 done 8278 IFS="$lt_save_ifs" 8279 ;; 8280 esac], 8281 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 8282 8283 _LT_DECL([build_old_libs], [enable_static], [0], 8284 [Whether or not to build static libraries]) 8285])# _LT_ENABLE_STATIC 8286 8287LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 8288LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 8289 8290# Old names: 8291AC_DEFUN([AC_ENABLE_STATIC], 8292[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 8293]) 8294 8295AC_DEFUN([AC_DISABLE_STATIC], 8296[_LT_SET_OPTION([LT_INIT], [disable-static]) 8297]) 8298 8299AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 8300AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 8301 8302dnl aclocal-1.4 backwards compatibility: 8303dnl AC_DEFUN([AM_ENABLE_STATIC], []) 8304dnl AC_DEFUN([AM_DISABLE_STATIC], []) 8305 8306 8307 8308# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 8309# ---------------------------------- 8310# implement the --enable-fast-install flag, and support the `fast-install' 8311# and `disable-fast-install' LT_INIT options. 8312# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8313m4_define([_LT_ENABLE_FAST_INSTALL], 8314[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 8315AC_ARG_ENABLE([fast-install], 8316 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 8317 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 8318 [p=${PACKAGE-default} 8319 case $enableval in 8320 yes) enable_fast_install=yes ;; 8321 no) enable_fast_install=no ;; 8322 *) 8323 enable_fast_install=no 8324 # Look at the argument we got. We use all the common list separators. 8325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8326 for pkg in $enableval; do 8327 IFS="$lt_save_ifs" 8328 if test "X$pkg" = "X$p"; then 8329 enable_fast_install=yes 8330 fi 8331 done 8332 IFS="$lt_save_ifs" 8333 ;; 8334 esac], 8335 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 8336 8337_LT_DECL([fast_install], [enable_fast_install], [0], 8338 [Whether or not to optimize for fast installation])dnl 8339])# _LT_ENABLE_FAST_INSTALL 8340 8341LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 8342LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 8343 8344# Old names: 8345AU_DEFUN([AC_ENABLE_FAST_INSTALL], 8346[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 8347AC_DIAGNOSE([obsolete], 8348[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8349the `fast-install' option into LT_INIT's first parameter.]) 8350]) 8351 8352AU_DEFUN([AC_DISABLE_FAST_INSTALL], 8353[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 8354AC_DIAGNOSE([obsolete], 8355[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8356the `disable-fast-install' option into LT_INIT's first parameter.]) 8357]) 8358 8359dnl aclocal-1.4 backwards compatibility: 8360dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 8361dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 8362 8363 8364# _LT_WITH_PIC([MODE]) 8365# -------------------- 8366# implement the --with-pic flag, and support the `pic-only' and `no-pic' 8367# LT_INIT options. 8368# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 8369m4_define([_LT_WITH_PIC], 8370[AC_ARG_WITH([pic], 8371 [AS_HELP_STRING([--with-pic], 8372 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 8373 [pic_mode="$withval"], 8374 [pic_mode=default]) 8375 8376test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 8377 8378_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 8379])# _LT_WITH_PIC 8380 8381LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 8382LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 8383 8384# Old name: 8385AU_DEFUN([AC_LIBTOOL_PICMODE], 8386[_LT_SET_OPTION([LT_INIT], [pic-only]) 8387AC_DIAGNOSE([obsolete], 8388[$0: Remove this warning and the call to _LT_SET_OPTION when you 8389put the `pic-only' option into LT_INIT's first parameter.]) 8390]) 8391 8392dnl aclocal-1.4 backwards compatibility: 8393dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 8394 8395 8396m4_define([_LTDL_MODE], []) 8397LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 8398 [m4_define([_LTDL_MODE], [nonrecursive])]) 8399LT_OPTION_DEFINE([LTDL_INIT], [recursive], 8400 [m4_define([_LTDL_MODE], [recursive])]) 8401LT_OPTION_DEFINE([LTDL_INIT], [subproject], 8402 [m4_define([_LTDL_MODE], [subproject])]) 8403 8404m4_define([_LTDL_TYPE], []) 8405LT_OPTION_DEFINE([LTDL_INIT], [installable], 8406 [m4_define([_LTDL_TYPE], [installable])]) 8407LT_OPTION_DEFINE([LTDL_INIT], [convenience], 8408 [m4_define([_LTDL_TYPE], [convenience])]) 8409 8410# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 8411# 8412# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 8413# Written by Gary V. Vaughan, 2004 8414# 8415# This file is free software; the Free Software Foundation gives 8416# unlimited permission to copy and/or distribute it, with or without 8417# modifications, as long as this notice is preserved. 8418 8419# serial 6 ltsugar.m4 8420 8421# This is to help aclocal find these macros, as it can't see m4_define. 8422AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 8423 8424 8425# lt_join(SEP, ARG1, [ARG2...]) 8426# ----------------------------- 8427# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 8428# associated separator. 8429# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 8430# versions in m4sugar had bugs. 8431m4_define([lt_join], 8432[m4_if([$#], [1], [], 8433 [$#], [2], [[$2]], 8434 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 8435m4_define([_lt_join], 8436[m4_if([$#$2], [2], [], 8437 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 8438 8439 8440# lt_car(LIST) 8441# lt_cdr(LIST) 8442# ------------ 8443# Manipulate m4 lists. 8444# These macros are necessary as long as will still need to support 8445# Autoconf-2.59 which quotes differently. 8446m4_define([lt_car], [[$1]]) 8447m4_define([lt_cdr], 8448[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 8449 [$#], 1, [], 8450 [m4_dquote(m4_shift($@))])]) 8451m4_define([lt_unquote], $1) 8452 8453 8454# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 8455# ------------------------------------------ 8456# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 8457# Note that neither SEPARATOR nor STRING are expanded; they are appended 8458# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 8459# No SEPARATOR is output if MACRO-NAME was previously undefined (different 8460# than defined and empty). 8461# 8462# This macro is needed until we can rely on Autoconf 2.62, since earlier 8463# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 8464m4_define([lt_append], 8465[m4_define([$1], 8466 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 8467 8468 8469 8470# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 8471# ---------------------------------------------------------- 8472# Produce a SEP delimited list of all paired combinations of elements of 8473# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 8474# has the form PREFIXmINFIXSUFFIXn. 8475# Needed until we can rely on m4_combine added in Autoconf 2.62. 8476m4_define([lt_combine], 8477[m4_if(m4_eval([$# > 3]), [1], 8478 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 8479[[m4_foreach([_Lt_prefix], [$2], 8480 [m4_foreach([_Lt_suffix], 8481 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 8482 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 8483 8484 8485# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 8486# ----------------------------------------------------------------------- 8487# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 8488# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 8489m4_define([lt_if_append_uniq], 8490[m4_ifdef([$1], 8491 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 8492 [lt_append([$1], [$2], [$3])$4], 8493 [$5])], 8494 [lt_append([$1], [$2], [$3])$4])]) 8495 8496 8497# lt_dict_add(DICT, KEY, VALUE) 8498# ----------------------------- 8499m4_define([lt_dict_add], 8500[m4_define([$1($2)], [$3])]) 8501 8502 8503# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 8504# -------------------------------------------- 8505m4_define([lt_dict_add_subkey], 8506[m4_define([$1($2:$3)], [$4])]) 8507 8508 8509# lt_dict_fetch(DICT, KEY, [SUBKEY]) 8510# ---------------------------------- 8511m4_define([lt_dict_fetch], 8512[m4_ifval([$3], 8513 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 8514 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 8515 8516 8517# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 8518# ----------------------------------------------------------------- 8519m4_define([lt_if_dict_fetch], 8520[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 8521 [$5], 8522 [$6])]) 8523 8524 8525# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 8526# -------------------------------------------------------------- 8527m4_define([lt_dict_filter], 8528[m4_if([$5], [], [], 8529 [lt_join(m4_quote(m4_default([$4], [[, ]])), 8530 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 8531 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 8532]) 8533 8534# ltversion.m4 -- version numbers -*- Autoconf -*- 8535# 8536# Copyright (C) 2004 Free Software Foundation, Inc. 8537# Written by Scott James Remnant, 2004 8538# 8539# This file is free software; the Free Software Foundation gives 8540# unlimited permission to copy and/or distribute it, with or without 8541# modifications, as long as this notice is preserved. 8542 8543# Generated from ltversion.in. 8544 8545# serial 3012 ltversion.m4 8546# This file is part of GNU Libtool 8547 8548m4_define([LT_PACKAGE_VERSION], [2.2.6]) 8549m4_define([LT_PACKAGE_REVISION], [1.3012]) 8550 8551AC_DEFUN([LTVERSION_VERSION], 8552[macro_version='2.2.6' 8553macro_revision='1.3012' 8554_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 8555_LT_DECL(, macro_revision, 0) 8556]) 8557 8558# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 8559# 8560# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 8561# Written by Scott James Remnant, 2004. 8562# 8563# This file is free software; the Free Software Foundation gives 8564# unlimited permission to copy and/or distribute it, with or without 8565# modifications, as long as this notice is preserved. 8566 8567# serial 4 lt~obsolete.m4 8568 8569# These exist entirely to fool aclocal when bootstrapping libtool. 8570# 8571# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 8572# which have later been changed to m4_define as they aren't part of the 8573# exported API, or moved to Autoconf or Automake where they belong. 8574# 8575# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 8576# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 8577# using a macro with the same name in our local m4/libtool.m4 it'll 8578# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 8579# and doesn't know about Autoconf macros at all.) 8580# 8581# So we provide this file, which has a silly filename so it's always 8582# included after everything else. This provides aclocal with the 8583# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 8584# because those macros already exist, or will be overwritten later. 8585# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 8586# 8587# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 8588# Yes, that means every name once taken will need to remain here until 8589# we give up compatibility with versions before 1.7, at which point 8590# we need to keep only those names which we still refer to. 8591 8592# This is to help aclocal find these macros, as it can't see m4_define. 8593AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 8594 8595m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 8596m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 8597m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 8598m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 8599m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 8600m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 8601m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 8602m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 8603m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 8604m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 8605m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 8606m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 8607m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 8608m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 8609m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 8610m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 8611m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 8612m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 8613m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 8614m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 8615m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 8616m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 8617m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 8618m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 8619m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 8620m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 8621m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 8622m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 8623m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 8624m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 8625m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 8626m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 8627m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 8628m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 8629m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 8630m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 8631m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 8632m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 8633m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 8634m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 8635m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 8636m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 8637m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 8638m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 8639m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 8640m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 8641m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 8642m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 8643m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 8644m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 8645m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 8646m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 8647m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 8648m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 8649m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 8650 8651# nls.m4 serial 3 (gettext-0.15) 8652dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. 8653dnl This file is free software; the Free Software Foundation 8654dnl gives unlimited permission to copy and/or distribute it, 8655dnl with or without modifications, as long as this notice is preserved. 8656dnl 8657dnl This file can can be used in projects which are not available under 8658dnl the GNU General Public License or the GNU Library General Public 8659dnl License but which still want to provide support for the GNU gettext 8660dnl functionality. 8661dnl Please note that the actual code of the GNU gettext library is covered 8662dnl by the GNU Library General Public License, and the rest of the GNU 8663dnl gettext package package is covered by the GNU General Public License. 8664dnl They are *not* in the public domain. 8665 8666dnl Authors: 8667dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 8668dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 8669 8670AC_PREREQ(2.50) 8671 8672AC_DEFUN([AM_NLS], 8673[ 8674 AC_MSG_CHECKING([whether NLS is requested]) 8675 dnl Default is enabled NLS 8676 AC_ARG_ENABLE(nls, 8677 [ --disable-nls do not use Native Language Support], 8678 USE_NLS=$enableval, USE_NLS=yes) 8679 AC_MSG_RESULT($USE_NLS) 8680 AC_SUBST(USE_NLS) 8681]) 8682 8683# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 8684# 8685# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 8686# 8687# This program is free software; you can redistribute it and/or modify 8688# it under the terms of the GNU General Public License as published by 8689# the Free Software Foundation; either version 2 of the License, or 8690# (at your option) any later version. 8691# 8692# This program is distributed in the hope that it will be useful, but 8693# WITHOUT ANY WARRANTY; without even the implied warranty of 8694# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8695# General Public License for more details. 8696# 8697# You should have received a copy of the GNU General Public License 8698# along with this program; if not, write to the Free Software 8699# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8700# 8701# As a special exception to the GNU General Public License, if you 8702# distribute this file as part of a program that contains a 8703# configuration script generated by Autoconf, you may include it under 8704# the same distribution terms that you use for the rest of that program. 8705 8706# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 8707# ---------------------------------- 8708AC_DEFUN([PKG_PROG_PKG_CONFIG], 8709[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 8710m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 8711AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 8712if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8713 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 8714fi 8715if test -n "$PKG_CONFIG"; then 8716 _pkg_min_version=m4_default([$1], [0.9.0]) 8717 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 8718 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8719 AC_MSG_RESULT([yes]) 8720 else 8721 AC_MSG_RESULT([no]) 8722 PKG_CONFIG="" 8723 fi 8724 8725fi[]dnl 8726])# PKG_PROG_PKG_CONFIG 8727 8728# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 8729# 8730# Check to see whether a particular set of modules exists. Similar 8731# to PKG_CHECK_MODULES(), but does not set variables or print errors. 8732# 8733# 8734# Similar to PKG_CHECK_MODULES, make sure that the first instance of 8735# this or PKG_CHECK_MODULES is called, or make sure to call 8736# PKG_CHECK_EXISTS manually 8737# -------------------------------------------------------------- 8738AC_DEFUN([PKG_CHECK_EXISTS], 8739[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8740if test -n "$PKG_CONFIG" && \ 8741 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 8742 m4_ifval([$2], [$2], [:]) 8743m4_ifvaln([$3], [else 8744 $3])dnl 8745fi]) 8746 8747 8748# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 8749# --------------------------------------------- 8750m4_define([_PKG_CONFIG], 8751[if test -n "$PKG_CONFIG"; then 8752 if test -n "$$1"; then 8753 pkg_cv_[]$1="$$1" 8754 else 8755 PKG_CHECK_EXISTS([$3], 8756 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 8757 [pkg_failed=yes]) 8758 fi 8759else 8760 pkg_failed=untried 8761fi[]dnl 8762])# _PKG_CONFIG 8763 8764# _PKG_SHORT_ERRORS_SUPPORTED 8765# ----------------------------- 8766AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 8767[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 8768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8769 _pkg_short_errors_supported=yes 8770else 8771 _pkg_short_errors_supported=no 8772fi[]dnl 8773])# _PKG_SHORT_ERRORS_SUPPORTED 8774 8775 8776# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 8777# [ACTION-IF-NOT-FOUND]) 8778# 8779# 8780# Note that if there is a possibility the first call to 8781# PKG_CHECK_MODULES might not happen, you should be sure to include an 8782# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 8783# 8784# 8785# -------------------------------------------------------------- 8786AC_DEFUN([PKG_CHECK_MODULES], 8787[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8788AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 8789AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 8790 8791pkg_failed=no 8792AC_MSG_CHECKING([for $1]) 8793 8794_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 8795_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 8796 8797m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 8798and $1[]_LIBS to avoid the need to call pkg-config. 8799See the pkg-config man page for more details.]) 8800 8801if test $pkg_failed = yes; then 8802 _PKG_SHORT_ERRORS_SUPPORTED 8803 if test $_pkg_short_errors_supported = yes; then 8804 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 8805 else 8806 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 8807 fi 8808 # Put the nasty error message in config.log where it belongs 8809 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 8810 8811 ifelse([$4], , [AC_MSG_ERROR(dnl 8812[Package requirements ($2) were not met: 8813 8814$$1_PKG_ERRORS 8815 8816Consider adjusting the PKG_CONFIG_PATH environment variable if you 8817installed software in a non-standard prefix. 8818 8819_PKG_TEXT 8820])], 8821 [AC_MSG_RESULT([no]) 8822 $4]) 8823elif test $pkg_failed = untried; then 8824 ifelse([$4], , [AC_MSG_FAILURE(dnl 8825[The pkg-config script could not be found or is too old. Make sure it 8826is in your PATH or set the PKG_CONFIG environment variable to the full 8827path to pkg-config. 8828 8829_PKG_TEXT 8830 8831To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 8832 [$4]) 8833else 8834 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 8835 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 8836 AC_MSG_RESULT([yes]) 8837 ifelse([$3], , :, [$3]) 8838fi[]dnl 8839])# PKG_CHECK_MODULES 8840 8841# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8842# 8843# This file is free software; the Free Software Foundation 8844# gives unlimited permission to copy and/or distribute it, 8845# with or without modifications, as long as this notice is preserved. 8846 8847# AM_AUTOMAKE_VERSION(VERSION) 8848# ---------------------------- 8849# Automake X.Y traces this macro to ensure aclocal.m4 has been 8850# generated from the m4 files accompanying Automake X.Y. 8851# (This private macro should not be called outside this file.) 8852AC_DEFUN([AM_AUTOMAKE_VERSION], 8853[am__api_version='1.10' 8854dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 8855dnl require some minimum version. Point them to the right macro. 8856m4_if([$1], [1.10.2], [], 8857 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 8858]) 8859 8860# _AM_AUTOCONF_VERSION(VERSION) 8861# ----------------------------- 8862# aclocal traces this macro to find the Autoconf version. 8863# This is a private macro too. Using m4_define simplifies 8864# the logic in aclocal, which can simply ignore this definition. 8865m4_define([_AM_AUTOCONF_VERSION], []) 8866 8867# AM_SET_CURRENT_AUTOMAKE_VERSION 8868# ------------------------------- 8869# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 8870# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 8871AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 8872[AM_AUTOMAKE_VERSION([1.10.2])dnl 8873m4_ifndef([AC_AUTOCONF_VERSION], 8874 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 8875_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 8876 8877# AM_AUX_DIR_EXPAND -*- Autoconf -*- 8878 8879# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 8880# 8881# This file is free software; the Free Software Foundation 8882# gives unlimited permission to copy and/or distribute it, 8883# with or without modifications, as long as this notice is preserved. 8884 8885# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 8886# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 8887# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 8888# 8889# Of course, Automake must honor this variable whenever it calls a 8890# tool from the auxiliary directory. The problem is that $srcdir (and 8891# therefore $ac_aux_dir as well) can be either absolute or relative, 8892# depending on how configure is run. This is pretty annoying, since 8893# it makes $ac_aux_dir quite unusable in subdirectories: in the top 8894# source directory, any form will work fine, but in subdirectories a 8895# relative path needs to be adjusted first. 8896# 8897# $ac_aux_dir/missing 8898# fails when called from a subdirectory if $ac_aux_dir is relative 8899# $top_srcdir/$ac_aux_dir/missing 8900# fails if $ac_aux_dir is absolute, 8901# fails when called from a subdirectory in a VPATH build with 8902# a relative $ac_aux_dir 8903# 8904# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 8905# are both prefixed by $srcdir. In an in-source build this is usually 8906# harmless because $srcdir is `.', but things will broke when you 8907# start a VPATH build or use an absolute $srcdir. 8908# 8909# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 8910# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 8911# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 8912# and then we would define $MISSING as 8913# MISSING="\${SHELL} $am_aux_dir/missing" 8914# This will work as long as MISSING is not called from configure, because 8915# unfortunately $(top_srcdir) has no meaning in configure. 8916# However there are other variables, like CC, which are often used in 8917# configure, and could therefore not use this "fixed" $ac_aux_dir. 8918# 8919# Another solution, used here, is to always expand $ac_aux_dir to an 8920# absolute PATH. The drawback is that using absolute paths prevent a 8921# configured tree to be moved without reconfiguration. 8922 8923AC_DEFUN([AM_AUX_DIR_EXPAND], 8924[dnl Rely on autoconf to set up CDPATH properly. 8925AC_PREREQ([2.50])dnl 8926# expand $ac_aux_dir to an absolute path 8927am_aux_dir=`cd $ac_aux_dir && pwd` 8928]) 8929 8930# AM_CONDITIONAL -*- Autoconf -*- 8931 8932# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 8933# Free Software Foundation, Inc. 8934# 8935# This file is free software; the Free Software Foundation 8936# gives unlimited permission to copy and/or distribute it, 8937# with or without modifications, as long as this notice is preserved. 8938 8939# serial 8 8940 8941# AM_CONDITIONAL(NAME, SHELL-CONDITION) 8942# ------------------------------------- 8943# Define a conditional. 8944AC_DEFUN([AM_CONDITIONAL], 8945[AC_PREREQ(2.52)dnl 8946 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 8947 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 8948AC_SUBST([$1_TRUE])dnl 8949AC_SUBST([$1_FALSE])dnl 8950_AM_SUBST_NOTMAKE([$1_TRUE])dnl 8951_AM_SUBST_NOTMAKE([$1_FALSE])dnl 8952if $2; then 8953 $1_TRUE= 8954 $1_FALSE='#' 8955else 8956 $1_TRUE='#' 8957 $1_FALSE= 8958fi 8959AC_CONFIG_COMMANDS_PRE( 8960[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 8961 AC_MSG_ERROR([[conditional "$1" was never defined. 8962Usually this means the macro was only invoked conditionally.]]) 8963fi])]) 8964 8965# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 8966# Free Software Foundation, Inc. 8967# 8968# This file is free software; the Free Software Foundation 8969# gives unlimited permission to copy and/or distribute it, 8970# with or without modifications, as long as this notice is preserved. 8971 8972# serial 9 8973 8974# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 8975# written in clear, in which case automake, when reading aclocal.m4, 8976# will think it sees a *use*, and therefore will trigger all it's 8977# C support machinery. Also note that it means that autoscan, seeing 8978# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 8979 8980 8981# _AM_DEPENDENCIES(NAME) 8982# ---------------------- 8983# See how the compiler implements dependency checking. 8984# NAME is "CC", "CXX", "GCJ", or "OBJC". 8985# We try a few techniques and use that to set a single cache variable. 8986# 8987# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 8988# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 8989# dependency, and given that the user is not expected to run this macro, 8990# just rely on AC_PROG_CC. 8991AC_DEFUN([_AM_DEPENDENCIES], 8992[AC_REQUIRE([AM_SET_DEPDIR])dnl 8993AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 8994AC_REQUIRE([AM_MAKE_INCLUDE])dnl 8995AC_REQUIRE([AM_DEP_TRACK])dnl 8996 8997ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 8998 [$1], CXX, [depcc="$CXX" am_compiler_list=], 8999 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 9000 [$1], UPC, [depcc="$UPC" am_compiler_list=], 9001 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 9002 [depcc="$$1" am_compiler_list=]) 9003 9004AC_CACHE_CHECK([dependency style of $depcc], 9005 [am_cv_$1_dependencies_compiler_type], 9006[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9007 # We make a subdir and do the tests there. Otherwise we can end up 9008 # making bogus files that we don't know about and never remove. For 9009 # instance it was reported that on HP-UX the gcc test will end up 9010 # making a dummy file named `D' -- because `-MD' means `put the output 9011 # in D'. 9012 mkdir conftest.dir 9013 # Copy depcomp to subdir because otherwise we won't find it if we're 9014 # using a relative directory. 9015 cp "$am_depcomp" conftest.dir 9016 cd conftest.dir 9017 # We will build objects and dependencies in a subdirectory because 9018 # it helps to detect inapplicable dependency modes. For instance 9019 # both Tru64's cc and ICC support -MD to output dependencies as a 9020 # side effect of compilation, but ICC will put the dependencies in 9021 # the current directory while Tru64 will put them in the object 9022 # directory. 9023 mkdir sub 9024 9025 am_cv_$1_dependencies_compiler_type=none 9026 if test "$am_compiler_list" = ""; then 9027 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 9028 fi 9029 for depmode in $am_compiler_list; do 9030 # Setup a source with many dependencies, because some compilers 9031 # like to wrap large dependency lists on column 80 (with \), and 9032 # we should not choose a depcomp mode which is confused by this. 9033 # 9034 # We need to recreate these files for each test, as the compiler may 9035 # overwrite some of them when testing with obscure command lines. 9036 # This happens at least with the AIX C compiler. 9037 : > sub/conftest.c 9038 for i in 1 2 3 4 5 6; do 9039 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9041 # Solaris 8's {/usr,}/bin/sh. 9042 touch sub/conftst$i.h 9043 done 9044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9045 9046 case $depmode in 9047 nosideeffect) 9048 # after this tag, mechanisms are not by side-effect, so they'll 9049 # only be used when explicitly requested 9050 if test "x$enable_dependency_tracking" = xyes; then 9051 continue 9052 else 9053 break 9054 fi 9055 ;; 9056 none) break ;; 9057 esac 9058 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9059 # mode. It turns out that the SunPro C++ compiler does not properly 9060 # handle `-M -o', and we need to detect this. 9061 if depmode=$depmode \ 9062 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9064 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 9065 >/dev/null 2>conftest.err && 9066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 9067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9068 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 9069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9070 # icc doesn't choke on unknown options, it will just issue warnings 9071 # or remarks (even with -Werror). So we grep stderr for any message 9072 # that says an option was ignored or not supported. 9073 # When given -MP, icc 7.0 and 7.1 complain thusly: 9074 # icc: Command line warning: ignoring option '-M'; no argument required 9075 # The diagnosis changed in icc 8.0: 9076 # icc: Command line remark: option '-MP' not supported 9077 if (grep 'ignoring option' conftest.err || 9078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9079 am_cv_$1_dependencies_compiler_type=$depmode 9080 break 9081 fi 9082 fi 9083 done 9084 9085 cd .. 9086 rm -rf conftest.dir 9087else 9088 am_cv_$1_dependencies_compiler_type=none 9089fi 9090]) 9091AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 9092AM_CONDITIONAL([am__fastdep$1], [ 9093 test "x$enable_dependency_tracking" != xno \ 9094 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 9095]) 9096 9097 9098# AM_SET_DEPDIR 9099# ------------- 9100# Choose a directory name for dependency files. 9101# This macro is AC_REQUIREd in _AM_DEPENDENCIES 9102AC_DEFUN([AM_SET_DEPDIR], 9103[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 9104AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 9105]) 9106 9107 9108# AM_DEP_TRACK 9109# ------------ 9110AC_DEFUN([AM_DEP_TRACK], 9111[AC_ARG_ENABLE(dependency-tracking, 9112[ --disable-dependency-tracking speeds up one-time build 9113 --enable-dependency-tracking do not reject slow dependency extractors]) 9114if test "x$enable_dependency_tracking" != xno; then 9115 am_depcomp="$ac_aux_dir/depcomp" 9116 AMDEPBACKSLASH='\' 9117fi 9118AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 9119AC_SUBST([AMDEPBACKSLASH])dnl 9120_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 9121]) 9122 9123# Generate code to set up dependency tracking. -*- Autoconf -*- 9124 9125# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 9126# Free Software Foundation, Inc. 9127# 9128# This file is free software; the Free Software Foundation 9129# gives unlimited permission to copy and/or distribute it, 9130# with or without modifications, as long as this notice is preserved. 9131 9132#serial 5 9133 9134# _AM_OUTPUT_DEPENDENCY_COMMANDS 9135# ------------------------------ 9136AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 9137[{ 9138 # Autoconf 2.62 quotes --file arguments for eval, but not when files 9139 # are listed without --file. Let's play safe and only enable the eval 9140 # if we detect the quoting. 9141 case $CONFIG_FILES in 9142 *\'*) eval set x "$CONFIG_FILES" ;; 9143 *) set x $CONFIG_FILES ;; 9144 esac 9145 shift 9146 for mf 9147 do 9148 # Strip MF so we end up with the name of the file. 9149 mf=`echo "$mf" | sed -e 's/:.*$//'` 9150 # Check whether this is an Automake generated Makefile or not. 9151 # We used to match only the files named `Makefile.in', but 9152 # some people rename them; so instead we look at the file content. 9153 # Grep'ing the first line is not enough: some people post-process 9154 # each Makefile.in and add a new line on top of each file to say so. 9155 # Grep'ing the whole file is not good either: AIX grep has a line 9156 # limit of 2048, but all sed's we know have understand at least 4000. 9157 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 9158 dirpart=`AS_DIRNAME("$mf")` 9159 else 9160 continue 9161 fi 9162 # Extract the definition of DEPDIR, am__include, and am__quote 9163 # from the Makefile without running `make'. 9164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9165 test -z "$DEPDIR" && continue 9166 am__include=`sed -n 's/^am__include = //p' < "$mf"` 9167 test -z "am__include" && continue 9168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9169 # When using ansi2knr, U may be empty or an underscore; expand it 9170 U=`sed -n 's/^U = //p' < "$mf"` 9171 # Find all dependency output files, they are included files with 9172 # $(DEPDIR) in their names. We invoke sed twice because it is the 9173 # simplest approach to changing $(DEPDIR) to its actual value in the 9174 # expansion. 9175 for file in `sed -n " 9176 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9177 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9178 # Make sure the directory exists. 9179 test -f "$dirpart/$file" && continue 9180 fdir=`AS_DIRNAME(["$file"])` 9181 AS_MKDIR_P([$dirpart/$fdir]) 9182 # echo "creating $dirpart/$file" 9183 echo '# dummy' > "$dirpart/$file" 9184 done 9185 done 9186} 9187])# _AM_OUTPUT_DEPENDENCY_COMMANDS 9188 9189 9190# AM_OUTPUT_DEPENDENCY_COMMANDS 9191# ----------------------------- 9192# This macro should only be invoked once -- use via AC_REQUIRE. 9193# 9194# This code is only required when automatic dependency tracking 9195# is enabled. FIXME. This creates each `.P' file that we will 9196# need in order to bootstrap the dependency handling code. 9197AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 9198[AC_CONFIG_COMMANDS([depfiles], 9199 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 9200 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 9201]) 9202 9203# Do all the work for Automake. -*- Autoconf -*- 9204 9205# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 9206# 2005, 2006, 2008 Free Software Foundation, Inc. 9207# 9208# This file is free software; the Free Software Foundation 9209# gives unlimited permission to copy and/or distribute it, 9210# with or without modifications, as long as this notice is preserved. 9211 9212# serial 13 9213 9214# This macro actually does too much. Some checks are only needed if 9215# your package does certain things. But this isn't really a big deal. 9216 9217# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 9218# AM_INIT_AUTOMAKE([OPTIONS]) 9219# ----------------------------------------------- 9220# The call with PACKAGE and VERSION arguments is the old style 9221# call (pre autoconf-2.50), which is being phased out. PACKAGE 9222# and VERSION should now be passed to AC_INIT and removed from 9223# the call to AM_INIT_AUTOMAKE. 9224# We support both call styles for the transition. After 9225# the next Automake release, Autoconf can make the AC_INIT 9226# arguments mandatory, and then we can depend on a new Autoconf 9227# release and drop the old call support. 9228AC_DEFUN([AM_INIT_AUTOMAKE], 9229[AC_PREREQ([2.60])dnl 9230dnl Autoconf wants to disallow AM_ names. We explicitly allow 9231dnl the ones we care about. 9232m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 9233AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 9234AC_REQUIRE([AC_PROG_INSTALL])dnl 9235if test "`cd $srcdir && pwd`" != "`pwd`"; then 9236 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 9237 # is not polluted with repeated "-I." 9238 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 9239 # test to see if srcdir already configured 9240 if test -f $srcdir/config.status; then 9241 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 9242 fi 9243fi 9244 9245# test whether we have cygpath 9246if test -z "$CYGPATH_W"; then 9247 if (cygpath --version) >/dev/null 2>/dev/null; then 9248 CYGPATH_W='cygpath -w' 9249 else 9250 CYGPATH_W=echo 9251 fi 9252fi 9253AC_SUBST([CYGPATH_W]) 9254 9255# Define the identity of the package. 9256dnl Distinguish between old-style and new-style calls. 9257m4_ifval([$2], 9258[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 9259 AC_SUBST([PACKAGE], [$1])dnl 9260 AC_SUBST([VERSION], [$2])], 9261[_AM_SET_OPTIONS([$1])dnl 9262dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 9263m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 9264 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 9265 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 9266 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 9267 9268_AM_IF_OPTION([no-define],, 9269[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 9270 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 9271 9272# Some tools Automake needs. 9273AC_REQUIRE([AM_SANITY_CHECK])dnl 9274AC_REQUIRE([AC_ARG_PROGRAM])dnl 9275AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 9276AM_MISSING_PROG(AUTOCONF, autoconf) 9277AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 9278AM_MISSING_PROG(AUTOHEADER, autoheader) 9279AM_MISSING_PROG(MAKEINFO, makeinfo) 9280AM_PROG_INSTALL_SH 9281AM_PROG_INSTALL_STRIP 9282AC_REQUIRE([AM_PROG_MKDIR_P])dnl 9283# We need awk for the "check" target. The system "awk" is bad on 9284# some platforms. 9285AC_REQUIRE([AC_PROG_AWK])dnl 9286AC_REQUIRE([AC_PROG_MAKE_SET])dnl 9287AC_REQUIRE([AM_SET_LEADING_DOT])dnl 9288_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 9289 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 9290 [_AM_PROG_TAR([v7])])]) 9291_AM_IF_OPTION([no-dependencies],, 9292[AC_PROVIDE_IFELSE([AC_PROG_CC], 9293 [_AM_DEPENDENCIES(CC)], 9294 [define([AC_PROG_CC], 9295 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 9296AC_PROVIDE_IFELSE([AC_PROG_CXX], 9297 [_AM_DEPENDENCIES(CXX)], 9298 [define([AC_PROG_CXX], 9299 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 9300AC_PROVIDE_IFELSE([AC_PROG_OBJC], 9301 [_AM_DEPENDENCIES(OBJC)], 9302 [define([AC_PROG_OBJC], 9303 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 9304]) 9305]) 9306 9307 9308# When config.status generates a header, we must update the stamp-h file. 9309# This file resides in the same directory as the config header 9310# that is generated. The stamp files are numbered to have different names. 9311 9312# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 9313# loop where config.status creates the headers, so we can generate 9314# our stamp files there. 9315AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 9316[# Compute $1's index in $config_headers. 9317_am_arg=$1 9318_am_stamp_count=1 9319for _am_header in $config_headers :; do 9320 case $_am_header in 9321 $_am_arg | $_am_arg:* ) 9322 break ;; 9323 * ) 9324 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9325 esac 9326done 9327echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 9328 9329# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9330# 9331# This file is free software; the Free Software Foundation 9332# gives unlimited permission to copy and/or distribute it, 9333# with or without modifications, as long as this notice is preserved. 9334 9335# AM_PROG_INSTALL_SH 9336# ------------------ 9337# Define $install_sh. 9338AC_DEFUN([AM_PROG_INSTALL_SH], 9339[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9340install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 9341AC_SUBST(install_sh)]) 9342 9343# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 9344# 9345# This file is free software; the Free Software Foundation 9346# gives unlimited permission to copy and/or distribute it, 9347# with or without modifications, as long as this notice is preserved. 9348 9349# serial 2 9350 9351# Check whether the underlying file-system supports filenames 9352# with a leading dot. For instance MS-DOS doesn't. 9353AC_DEFUN([AM_SET_LEADING_DOT], 9354[rm -rf .tst 2>/dev/null 9355mkdir .tst 2>/dev/null 9356if test -d .tst; then 9357 am__leading_dot=. 9358else 9359 am__leading_dot=_ 9360fi 9361rmdir .tst 2>/dev/null 9362AC_SUBST([am__leading_dot])]) 9363 9364# Check to see how 'make' treats includes. -*- Autoconf -*- 9365 9366# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 9367# 9368# This file is free software; the Free Software Foundation 9369# gives unlimited permission to copy and/or distribute it, 9370# with or without modifications, as long as this notice is preserved. 9371 9372# serial 3 9373 9374# AM_MAKE_INCLUDE() 9375# ----------------- 9376# Check to see how make treats includes. 9377AC_DEFUN([AM_MAKE_INCLUDE], 9378[am_make=${MAKE-make} 9379cat > confinc << 'END' 9380am__doit: 9381 @echo done 9382.PHONY: am__doit 9383END 9384# If we don't find an include directive, just comment out the code. 9385AC_MSG_CHECKING([for style of include used by $am_make]) 9386am__include="#" 9387am__quote= 9388_am_result=none 9389# First try GNU make style include. 9390echo "include confinc" > confmf 9391# We grep out `Entering directory' and `Leaving directory' 9392# messages which can occur if `w' ends up in MAKEFLAGS. 9393# In particular we don't look at `^make:' because GNU make might 9394# be invoked under some other name (usually "gmake"), in which 9395# case it prints its new name instead of `make'. 9396if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 9397 am__include=include 9398 am__quote= 9399 _am_result=GNU 9400fi 9401# Now try BSD make style include. 9402if test "$am__include" = "#"; then 9403 echo '.include "confinc"' > confmf 9404 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 9405 am__include=.include 9406 am__quote="\"" 9407 _am_result=BSD 9408 fi 9409fi 9410AC_SUBST([am__include]) 9411AC_SUBST([am__quote]) 9412AC_MSG_RESULT([$_am_result]) 9413rm -f confinc confmf 9414]) 9415 9416# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 9417 9418# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 9419# Free Software Foundation, Inc. 9420# 9421# This file is free software; the Free Software Foundation 9422# gives unlimited permission to copy and/or distribute it, 9423# with or without modifications, as long as this notice is preserved. 9424 9425# serial 5 9426 9427# AM_MISSING_PROG(NAME, PROGRAM) 9428# ------------------------------ 9429AC_DEFUN([AM_MISSING_PROG], 9430[AC_REQUIRE([AM_MISSING_HAS_RUN]) 9431$1=${$1-"${am_missing_run}$2"} 9432AC_SUBST($1)]) 9433 9434 9435# AM_MISSING_HAS_RUN 9436# ------------------ 9437# Define MISSING if not defined so far and test if it supports --run. 9438# If it does, set am_missing_run to use it, otherwise, to nothing. 9439AC_DEFUN([AM_MISSING_HAS_RUN], 9440[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9441AC_REQUIRE_AUX_FILE([missing])dnl 9442test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 9443# Use eval to expand $SHELL 9444if eval "$MISSING --run true"; then 9445 am_missing_run="$MISSING --run " 9446else 9447 am_missing_run= 9448 AC_MSG_WARN([`missing' script is too old or missing]) 9449fi 9450]) 9451 9452# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9453# 9454# This file is free software; the Free Software Foundation 9455# gives unlimited permission to copy and/or distribute it, 9456# with or without modifications, as long as this notice is preserved. 9457 9458# AM_PROG_MKDIR_P 9459# --------------- 9460# Check for `mkdir -p'. 9461AC_DEFUN([AM_PROG_MKDIR_P], 9462[AC_PREREQ([2.60])dnl 9463AC_REQUIRE([AC_PROG_MKDIR_P])dnl 9464dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 9465dnl while keeping a definition of mkdir_p for backward compatibility. 9466dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 9467dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 9468dnl Makefile.ins that do not define MKDIR_P, so we do our own 9469dnl adjustment using top_builddir (which is defined more often than 9470dnl MKDIR_P). 9471AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 9472case $mkdir_p in 9473 [[\\/$]]* | ?:[[\\/]]*) ;; 9474 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 9475esac 9476]) 9477 9478# Helper functions for option handling. -*- Autoconf -*- 9479 9480# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 9481# 9482# This file is free software; the Free Software Foundation 9483# gives unlimited permission to copy and/or distribute it, 9484# with or without modifications, as long as this notice is preserved. 9485 9486# serial 4 9487 9488# _AM_MANGLE_OPTION(NAME) 9489# ----------------------- 9490AC_DEFUN([_AM_MANGLE_OPTION], 9491[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 9492 9493# _AM_SET_OPTION(NAME) 9494# ------------------------------ 9495# Set option NAME. Presently that only means defining a flag for this option. 9496AC_DEFUN([_AM_SET_OPTION], 9497[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 9498 9499# _AM_SET_OPTIONS(OPTIONS) 9500# ---------------------------------- 9501# OPTIONS is a space-separated list of Automake options. 9502AC_DEFUN([_AM_SET_OPTIONS], 9503[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 9504 9505# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 9506# ------------------------------------------- 9507# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9508AC_DEFUN([_AM_IF_OPTION], 9509[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 9510 9511# Check to make sure that the build environment is sane. -*- Autoconf -*- 9512 9513# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 9514# Free Software Foundation, Inc. 9515# 9516# This file is free software; the Free Software Foundation 9517# gives unlimited permission to copy and/or distribute it, 9518# with or without modifications, as long as this notice is preserved. 9519 9520# serial 4 9521 9522# AM_SANITY_CHECK 9523# --------------- 9524AC_DEFUN([AM_SANITY_CHECK], 9525[AC_MSG_CHECKING([whether build environment is sane]) 9526# Just in case 9527sleep 1 9528echo timestamp > conftest.file 9529# Do `set' in a subshell so we don't clobber the current shell's 9530# arguments. Must try -L first in case configure is actually a 9531# symlink; some systems play weird games with the mod time of symlinks 9532# (eg FreeBSD returns the mod time of the symlink's containing 9533# directory). 9534if ( 9535 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 9536 if test "$[*]" = "X"; then 9537 # -L didn't work. 9538 set X `ls -t $srcdir/configure conftest.file` 9539 fi 9540 rm -f conftest.file 9541 if test "$[*]" != "X $srcdir/configure conftest.file" \ 9542 && test "$[*]" != "X conftest.file $srcdir/configure"; then 9543 9544 # If neither matched, then we have a broken ls. This can happen 9545 # if, for instance, CONFIG_SHELL is bash and it inherits a 9546 # broken ls alias from the environment. This has actually 9547 # happened. Such a system could not be considered "sane". 9548 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 9549alias in your environment]) 9550 fi 9551 9552 test "$[2]" = conftest.file 9553 ) 9554then 9555 # Ok. 9556 : 9557else 9558 AC_MSG_ERROR([newly created file is older than distributed files! 9559Check your system clock]) 9560fi 9561AC_MSG_RESULT(yes)]) 9562 9563# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9564# 9565# This file is free software; the Free Software Foundation 9566# gives unlimited permission to copy and/or distribute it, 9567# with or without modifications, as long as this notice is preserved. 9568 9569# AM_PROG_INSTALL_STRIP 9570# --------------------- 9571# One issue with vendor `install' (even GNU) is that you can't 9572# specify the program used to strip binaries. This is especially 9573# annoying in cross-compiling environments, where the build's strip 9574# is unlikely to handle the host's binaries. 9575# Fortunately install-sh will honor a STRIPPROG variable, so we 9576# always use install-sh in `make install-strip', and initialize 9577# STRIPPROG with the value of the STRIP variable (set by the user). 9578AC_DEFUN([AM_PROG_INSTALL_STRIP], 9579[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 9580# Installed binaries are usually stripped using `strip' when the user 9581# run `make install-strip'. However `strip' might not be the right 9582# tool to use in cross-compilation environments, therefore Automake 9583# will honor the `STRIP' environment variable to overrule this program. 9584dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 9585if test "$cross_compiling" != no; then 9586 AC_CHECK_TOOL([STRIP], [strip], :) 9587fi 9588INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 9589AC_SUBST([INSTALL_STRIP_PROGRAM])]) 9590 9591# Copyright (C) 2006 Free Software Foundation, Inc. 9592# 9593# This file is free software; the Free Software Foundation 9594# gives unlimited permission to copy and/or distribute it, 9595# with or without modifications, as long as this notice is preserved. 9596 9597# _AM_SUBST_NOTMAKE(VARIABLE) 9598# --------------------------- 9599# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 9600# This macro is traced by Automake. 9601AC_DEFUN([_AM_SUBST_NOTMAKE]) 9602 9603# Check how to create a tarball. -*- Autoconf -*- 9604 9605# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 9606# 9607# This file is free software; the Free Software Foundation 9608# gives unlimited permission to copy and/or distribute it, 9609# with or without modifications, as long as this notice is preserved. 9610 9611# serial 2 9612 9613# _AM_PROG_TAR(FORMAT) 9614# -------------------- 9615# Check how to create a tarball in format FORMAT. 9616# FORMAT should be one of `v7', `ustar', or `pax'. 9617# 9618# Substitute a variable $(am__tar) that is a command 9619# writing to stdout a FORMAT-tarball containing the directory 9620# $tardir. 9621# tardir=directory && $(am__tar) > result.tar 9622# 9623# Substitute a variable $(am__untar) that extract such 9624# a tarball read from stdin. 9625# $(am__untar) < result.tar 9626AC_DEFUN([_AM_PROG_TAR], 9627[# Always define AMTAR for backward compatibility. 9628AM_MISSING_PROG([AMTAR], [tar]) 9629m4_if([$1], [v7], 9630 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 9631 [m4_case([$1], [ustar],, [pax],, 9632 [m4_fatal([Unknown tar format])]) 9633AC_MSG_CHECKING([how to create a $1 tar archive]) 9634# Loop over all known methods to create a tar archive until one works. 9635_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 9636_am_tools=${am_cv_prog_tar_$1-$_am_tools} 9637# Do not fold the above two line into one, because Tru64 sh and 9638# Solaris sh will not grok spaces in the rhs of `-'. 9639for _am_tool in $_am_tools 9640do 9641 case $_am_tool in 9642 gnutar) 9643 for _am_tar in tar gnutar gtar; 9644 do 9645 AM_RUN_LOG([$_am_tar --version]) && break 9646 done 9647 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 9648 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 9649 am__untar="$_am_tar -xf -" 9650 ;; 9651 plaintar) 9652 # Must skip GNU tar: if it does not support --format= it doesn't create 9653 # ustar tarball either. 9654 (tar --version) >/dev/null 2>&1 && continue 9655 am__tar='tar chf - "$$tardir"' 9656 am__tar_='tar chf - "$tardir"' 9657 am__untar='tar xf -' 9658 ;; 9659 pax) 9660 am__tar='pax -L -x $1 -w "$$tardir"' 9661 am__tar_='pax -L -x $1 -w "$tardir"' 9662 am__untar='pax -r' 9663 ;; 9664 cpio) 9665 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 9666 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 9667 am__untar='cpio -i -H $1 -d' 9668 ;; 9669 none) 9670 am__tar=false 9671 am__tar_=false 9672 am__untar=false 9673 ;; 9674 esac 9675 9676 # If the value was cached, stop now. We just wanted to have am__tar 9677 # and am__untar set. 9678 test -n "${am_cv_prog_tar_$1}" && break 9679 9680 # tar/untar a dummy directory, and stop if the command works 9681 rm -rf conftest.dir 9682 mkdir conftest.dir 9683 echo GrepMe > conftest.dir/file 9684 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 9685 rm -rf conftest.dir 9686 if test -s conftest.tar; then 9687 AM_RUN_LOG([$am__untar <conftest.tar]) 9688 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 9689 fi 9690done 9691rm -rf conftest.dir 9692 9693AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 9694AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 9695AC_SUBST([am__tar]) 9696AC_SUBST([am__untar]) 9697]) # _AM_PROG_TAR 9698 9699