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