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