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