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