configure revision ea133fd7
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libXtst 1.1.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='libXtst' 747PACKAGE_TARNAME='libXtst' 748PACKAGE_VERSION='1.1.0' 749PACKAGE_STRING='libXtst 1.1.0' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752# Factoring default headers for most tests. 753ac_includes_default="\ 754#include <stdio.h> 755#ifdef HAVE_SYS_TYPES_H 756# include <sys/types.h> 757#endif 758#ifdef HAVE_SYS_STAT_H 759# include <sys/stat.h> 760#endif 761#ifdef STDC_HEADERS 762# include <stdlib.h> 763# include <stddef.h> 764#else 765# ifdef HAVE_STDLIB_H 766# include <stdlib.h> 767# endif 768#endif 769#ifdef HAVE_STRING_H 770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 771# include <memory.h> 772# endif 773# include <string.h> 774#endif 775#ifdef HAVE_STRINGS_H 776# include <strings.h> 777#endif 778#ifdef HAVE_INTTYPES_H 779# include <inttypes.h> 780#endif 781#ifdef HAVE_STDINT_H 782# include <stdint.h> 783#endif 784#ifdef HAVE_UNISTD_H 785# include <unistd.h> 786#endif" 787 788ac_subst_vars='am__EXEEXT_FALSE 789am__EXEEXT_TRUE 790LTLIBOBJS 791LIBOBJS 792MAKE_LINT_LIB_FALSE 793MAKE_LINT_LIB_TRUE 794LINTLIB 795LINT_FALSE 796LINT_TRUE 797LINT_FLAGS 798LINT 799XTST_LIBS 800XTST_CFLAGS 801PKG_CONFIG 802HAVE_XMLTO_FALSE 803HAVE_XMLTO_TRUE 804XMLTO 805ADMIN_MAN_DIR 806DRIVER_MAN_DIR 807MISC_MAN_DIR 808FILE_MAN_DIR 809LIB_MAN_DIR 810APP_MAN_DIR 811ADMIN_MAN_SUFFIX 812DRIVER_MAN_SUFFIX 813MISC_MAN_SUFFIX 814FILE_MAN_SUFFIX 815LIB_MAN_SUFFIX 816APP_MAN_SUFFIX 817distcleancheck_listfiles 818CHANGELOG_CMD 819AM_BACKSLASH 820AM_DEFAULT_VERBOSITY 821CWARNFLAGS 822CPP 823OTOOL64 824OTOOL 825LIPO 826NMEDIT 827DSYMUTIL 828lt_ECHO 829RANLIB 830AR 831OBJDUMP 832LN_S 833NM 834ac_ct_DUMPBIN 835DUMPBIN 836LD 837FGREP 838EGREP 839GREP 840SED 841host_os 842host_vendor 843host_cpu 844host 845build_os 846build_vendor 847build_cpu 848build 849LIBTOOL 850am__fastdepCC_FALSE 851am__fastdepCC_TRUE 852CCDEPMODE 853AMDEPBACKSLASH 854AMDEP_FALSE 855AMDEP_TRUE 856am__quote 857am__include 858DEPDIR 859OBJEXT 860EXEEXT 861ac_ct_CC 862CPPFLAGS 863LDFLAGS 864CFLAGS 865CC 866MAINT 867MAINTAINER_MODE_FALSE 868MAINTAINER_MODE_TRUE 869am__untar 870am__tar 871AMTAR 872am__leading_dot 873SET_MAKE 874AWK 875mkdir_p 876MKDIR_P 877INSTALL_STRIP_PROGRAM 878STRIP 879install_sh 880MAKEINFO 881AUTOHEADER 882AUTOMAKE 883AUTOCONF 884ACLOCAL 885VERSION 886PACKAGE 887CYGPATH_W 888am__isrc 889INSTALL_DATA 890INSTALL_SCRIPT 891INSTALL_PROGRAM 892target_alias 893host_alias 894build_alias 895LIBS 896ECHO_T 897ECHO_N 898ECHO_C 899DEFS 900mandir 901localedir 902libdir 903psdir 904pdfdir 905dvidir 906htmldir 907infodir 908docdir 909oldincludedir 910includedir 911localstatedir 912sharedstatedir 913sysconfdir 914datadir 915datarootdir 916libexecdir 917sbindir 918bindir 919program_transform_name 920prefix 921exec_prefix 922PACKAGE_BUGREPORT 923PACKAGE_STRING 924PACKAGE_VERSION 925PACKAGE_TARNAME 926PACKAGE_NAME 927PATH_SEPARATOR 928SHELL' 929ac_subst_files='' 930ac_user_opts=' 931enable_option_checking 932enable_maintainer_mode 933enable_dependency_tracking 934enable_shared 935enable_static 936with_pic 937enable_fast_install 938with_gnu_ld 939enable_libtool_lock 940enable_silent_rules 941enable_strict_compilation 942with_release_version 943with_lint 944enable_lint_library 945' 946 ac_precious_vars='build_alias 947host_alias 948target_alias 949CC 950CFLAGS 951LDFLAGS 952LIBS 953CPPFLAGS 954CPP 955XMLTO 956PKG_CONFIG 957XTST_CFLAGS 958XTST_LIBS' 959 960 961# Initialize some variables set by options. 962ac_init_help= 963ac_init_version=false 964ac_unrecognized_opts= 965ac_unrecognized_sep= 966# The variables have the same names as the options, with 967# dashes changed to underlines. 968cache_file=/dev/null 969exec_prefix=NONE 970no_create= 971no_recursion= 972prefix=NONE 973program_prefix=NONE 974program_suffix=NONE 975program_transform_name=s,x,x, 976silent= 977site= 978srcdir= 979verbose= 980x_includes=NONE 981x_libraries=NONE 982 983# Installation directory options. 984# These are left unexpanded so users can "make install exec_prefix=/foo" 985# and all the variables that are supposed to be based on exec_prefix 986# by default will actually change. 987# Use braces instead of parens because sh, perl, etc. also accept them. 988# (The list follows the same order as the GNU Coding Standards.) 989bindir='${exec_prefix}/bin' 990sbindir='${exec_prefix}/sbin' 991libexecdir='${exec_prefix}/libexec' 992datarootdir='${prefix}/share' 993datadir='${datarootdir}' 994sysconfdir='${prefix}/etc' 995sharedstatedir='${prefix}/com' 996localstatedir='${prefix}/var' 997includedir='${prefix}/include' 998oldincludedir='/usr/include' 999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1000infodir='${datarootdir}/info' 1001htmldir='${docdir}' 1002dvidir='${docdir}' 1003pdfdir='${docdir}' 1004psdir='${docdir}' 1005libdir='${exec_prefix}/lib' 1006localedir='${datarootdir}/locale' 1007mandir='${datarootdir}/man' 1008 1009ac_prev= 1010ac_dashdash= 1011for ac_option 1012do 1013 # If the previous option needs an argument, assign it. 1014 if test -n "$ac_prev"; then 1015 eval $ac_prev=\$ac_option 1016 ac_prev= 1017 continue 1018 fi 1019 1020 case $ac_option in 1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1022 *) ac_optarg=yes ;; 1023 esac 1024 1025 # Accept the important Cygnus configure options, so we can diagnose typos. 1026 1027 case $ac_dashdash$ac_option in 1028 --) 1029 ac_dashdash=yes ;; 1030 1031 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1032 ac_prev=bindir ;; 1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1034 bindir=$ac_optarg ;; 1035 1036 -build | --build | --buil | --bui | --bu) 1037 ac_prev=build_alias ;; 1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1039 build_alias=$ac_optarg ;; 1040 1041 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1043 ac_prev=cache_file ;; 1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1046 cache_file=$ac_optarg ;; 1047 1048 --config-cache | -C) 1049 cache_file=config.cache ;; 1050 1051 -datadir | --datadir | --datadi | --datad) 1052 ac_prev=datadir ;; 1053 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1054 datadir=$ac_optarg ;; 1055 1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1057 | --dataroo | --dataro | --datar) 1058 ac_prev=datarootdir ;; 1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1061 datarootdir=$ac_optarg ;; 1062 1063 -disable-* | --disable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=no ;; 1079 1080 -docdir | --docdir | --docdi | --doc | --do) 1081 ac_prev=docdir ;; 1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1083 docdir=$ac_optarg ;; 1084 1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1086 ac_prev=dvidir ;; 1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1088 dvidir=$ac_optarg ;; 1089 1090 -enable-* | --enable-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1095 { (exit 1); exit 1; }; } 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"enable_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval enable_$ac_useropt=\$ac_optarg ;; 1106 1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1109 | --exec | --exe | --ex) 1110 ac_prev=exec_prefix ;; 1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1113 | --exec=* | --exe=* | --ex=*) 1114 exec_prefix=$ac_optarg ;; 1115 1116 -gas | --gas | --ga | --g) 1117 # Obsolete; use --with-gas. 1118 with_gas=yes ;; 1119 1120 -help | --help | --hel | --he | -h) 1121 ac_init_help=long ;; 1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1123 ac_init_help=recursive ;; 1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1125 ac_init_help=short ;; 1126 1127 -host | --host | --hos | --ho) 1128 ac_prev=host_alias ;; 1129 -host=* | --host=* | --hos=* | --ho=*) 1130 host_alias=$ac_optarg ;; 1131 1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1133 ac_prev=htmldir ;; 1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1135 | --ht=*) 1136 htmldir=$ac_optarg ;; 1137 1138 -includedir | --includedir | --includedi | --included | --include \ 1139 | --includ | --inclu | --incl | --inc) 1140 ac_prev=includedir ;; 1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1142 | --includ=* | --inclu=* | --incl=* | --inc=*) 1143 includedir=$ac_optarg ;; 1144 1145 -infodir | --infodir | --infodi | --infod | --info | --inf) 1146 ac_prev=infodir ;; 1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1148 infodir=$ac_optarg ;; 1149 1150 -libdir | --libdir | --libdi | --libd) 1151 ac_prev=libdir ;; 1152 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1153 libdir=$ac_optarg ;; 1154 1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1156 | --libexe | --libex | --libe) 1157 ac_prev=libexecdir ;; 1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1159 | --libexe=* | --libex=* | --libe=*) 1160 libexecdir=$ac_optarg ;; 1161 1162 -localedir | --localedir | --localedi | --localed | --locale) 1163 ac_prev=localedir ;; 1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1165 localedir=$ac_optarg ;; 1166 1167 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1168 | --localstate | --localstat | --localsta | --localst | --locals) 1169 ac_prev=localstatedir ;; 1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1172 localstatedir=$ac_optarg ;; 1173 1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1175 ac_prev=mandir ;; 1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1177 mandir=$ac_optarg ;; 1178 1179 -nfp | --nfp | --nf) 1180 # Obsolete; use --without-fp. 1181 with_fp=no ;; 1182 1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1184 | --no-cr | --no-c | -n) 1185 no_create=yes ;; 1186 1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1189 no_recursion=yes ;; 1190 1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1193 | --oldin | --oldi | --old | --ol | --o) 1194 ac_prev=oldincludedir ;; 1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1198 oldincludedir=$ac_optarg ;; 1199 1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1201 ac_prev=prefix ;; 1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1203 prefix=$ac_optarg ;; 1204 1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1206 | --program-pre | --program-pr | --program-p) 1207 ac_prev=program_prefix ;; 1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1210 program_prefix=$ac_optarg ;; 1211 1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1213 | --program-suf | --program-su | --program-s) 1214 ac_prev=program_suffix ;; 1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1217 program_suffix=$ac_optarg ;; 1218 1219 -program-transform-name | --program-transform-name \ 1220 | --program-transform-nam | --program-transform-na \ 1221 | --program-transform-n | --program-transform- \ 1222 | --program-transform | --program-transfor \ 1223 | --program-transfo | --program-transf \ 1224 | --program-trans | --program-tran \ 1225 | --progr-tra | --program-tr | --program-t) 1226 ac_prev=program_transform_name ;; 1227 -program-transform-name=* | --program-transform-name=* \ 1228 | --program-transform-nam=* | --program-transform-na=* \ 1229 | --program-transform-n=* | --program-transform-=* \ 1230 | --program-transform=* | --program-transfor=* \ 1231 | --program-transfo=* | --program-transf=* \ 1232 | --program-trans=* | --program-tran=* \ 1233 | --progr-tra=* | --program-tr=* | --program-t=*) 1234 program_transform_name=$ac_optarg ;; 1235 1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1237 ac_prev=pdfdir ;; 1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1239 pdfdir=$ac_optarg ;; 1240 1241 -psdir | --psdir | --psdi | --psd | --ps) 1242 ac_prev=psdir ;; 1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1244 psdir=$ac_optarg ;; 1245 1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1247 | -silent | --silent | --silen | --sile | --sil) 1248 silent=yes ;; 1249 1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1251 ac_prev=sbindir ;; 1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1253 | --sbi=* | --sb=*) 1254 sbindir=$ac_optarg ;; 1255 1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1258 | --sharedst | --shareds | --shared | --share | --shar \ 1259 | --sha | --sh) 1260 ac_prev=sharedstatedir ;; 1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1264 | --sha=* | --sh=*) 1265 sharedstatedir=$ac_optarg ;; 1266 1267 -site | --site | --sit) 1268 ac_prev=site ;; 1269 -site=* | --site=* | --sit=*) 1270 site=$ac_optarg ;; 1271 1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1273 ac_prev=srcdir ;; 1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1275 srcdir=$ac_optarg ;; 1276 1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1278 | --syscon | --sysco | --sysc | --sys | --sy) 1279 ac_prev=sysconfdir ;; 1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1282 sysconfdir=$ac_optarg ;; 1283 1284 -target | --target | --targe | --targ | --tar | --ta | --t) 1285 ac_prev=target_alias ;; 1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1287 target_alias=$ac_optarg ;; 1288 1289 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1290 verbose=yes ;; 1291 1292 -version | --version | --versio | --versi | --vers | -V) 1293 ac_init_version=: ;; 1294 1295 -with-* | --with-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1300 { (exit 1); exit 1; }; } 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"with_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval with_$ac_useropt=\$ac_optarg ;; 1311 1312 -without-* | --without-*) 1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1314 # Reject names that are not valid shell variable names. 1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1316 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1317 { (exit 1); exit 1; }; } 1318 ac_useropt_orig=$ac_useropt 1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1320 case $ac_user_opts in 1321 *" 1322"with_$ac_useropt" 1323"*) ;; 1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1325 ac_unrecognized_sep=', ';; 1326 esac 1327 eval with_$ac_useropt=no ;; 1328 1329 --x) 1330 # Obsolete; use --with-x. 1331 with_x=yes ;; 1332 1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1334 | --x-incl | --x-inc | --x-in | --x-i) 1335 ac_prev=x_includes ;; 1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1338 x_includes=$ac_optarg ;; 1339 1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1342 ac_prev=x_libraries ;; 1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1345 x_libraries=$ac_optarg ;; 1346 1347 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1348Try \`$0 --help' for more information." >&2 1349 { (exit 1); exit 1; }; } 1350 ;; 1351 1352 *=*) 1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1354 # Reject names that are not valid shell variable names. 1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1356 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1357 { (exit 1); exit 1; }; } 1358 eval $ac_envvar=\$ac_optarg 1359 export $ac_envvar ;; 1360 1361 *) 1362 # FIXME: should be removed in autoconf 3.0. 1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1367 ;; 1368 1369 esac 1370done 1371 1372if test -n "$ac_prev"; then 1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1374 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1375 { (exit 1); exit 1; }; } 1376fi 1377 1378if test -n "$ac_unrecognized_opts"; then 1379 case $enable_option_checking in 1380 no) ;; 1381 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1382 { (exit 1); exit 1; }; } ;; 1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1384 esac 1385fi 1386 1387# Check all directory arguments for consistency. 1388for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1389 datadir sysconfdir sharedstatedir localstatedir includedir \ 1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1391 libdir localedir mandir 1392do 1393 eval ac_val=\$$ac_var 1394 # Remove trailing slashes. 1395 case $ac_val in 1396 */ ) 1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1398 eval $ac_var=\$ac_val;; 1399 esac 1400 # Be sure to have absolute directory names. 1401 case $ac_val in 1402 [\\/$]* | ?:[\\/]* ) continue;; 1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1404 esac 1405 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1406 { (exit 1); exit 1; }; } 1407done 1408 1409# There might be people who depend on the old broken behavior: `$host' 1410# used to hold the argument of --host etc. 1411# FIXME: To remove some day. 1412build=$build_alias 1413host=$host_alias 1414target=$target_alias 1415 1416# FIXME: To remove some day. 1417if test "x$host_alias" != x; then 1418 if test "x$build_alias" = x; then 1419 cross_compiling=maybe 1420 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1421 If a cross compiler is detected then cross compile mode will be used." >&2 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1437 { (exit 1); exit 1; }; } 1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1439 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1440 { (exit 1); exit 1; }; } 1441 1442 1443# Find the source files, if location was not specified. 1444if test -z "$srcdir"; then 1445 ac_srcdir_defaulted=yes 1446 # Try the directory containing this script, then the parent directory. 1447 ac_confdir=`$as_dirname -- "$as_myself" || 1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1449 X"$as_myself" : 'X\(//\)[^/]' \| \ 1450 X"$as_myself" : 'X\(//\)$' \| \ 1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1452$as_echo X"$as_myself" | 1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)[^/].*/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\/\)$/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\).*/{ 1466 s//\1/ 1467 q 1468 } 1469 s/.*/./; q'` 1470 srcdir=$ac_confdir 1471 if test ! -r "$srcdir/$ac_unique_file"; then 1472 srcdir=.. 1473 fi 1474else 1475 ac_srcdir_defaulted=no 1476fi 1477if test ! -r "$srcdir/$ac_unique_file"; then 1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1479 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1480 { (exit 1); exit 1; }; } 1481fi 1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1483ac_abs_confdir=`( 1484 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1485 { (exit 1); exit 1; }; } 1486 pwd)` 1487# When building in place, set srcdir=. 1488if test "$ac_abs_confdir" = "$ac_pwd"; then 1489 srcdir=. 1490fi 1491# Remove unnecessary trailing slashes from srcdir. 1492# Double slashes in file names in object file debugging info 1493# mess up M-x gdb in Emacs. 1494case $srcdir in 1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1496esac 1497for ac_var in $ac_precious_vars; do 1498 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_env_${ac_var}_value=\$${ac_var} 1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1502done 1503 1504# 1505# Report the --help message. 1506# 1507if test "$ac_init_help" = "long"; then 1508 # Omit some internal or obsolete options to make the list less imposing. 1509 # This message is too long to be a string in the A/UX 3.1 sh. 1510 cat <<_ACEOF 1511\`configure' configures libXtst 1.1.0 to adapt to many kinds of systems. 1512 1513Usage: $0 [OPTION]... [VAR=VALUE]... 1514 1515To assign environment variables (e.g., CC, CFLAGS...), specify them as 1516VAR=VALUE. See below for descriptions of some of the useful variables. 1517 1518Defaults for the options are specified in brackets. 1519 1520Configuration: 1521 -h, --help display this help and exit 1522 --help=short display options specific to this package 1523 --help=recursive display the short help of all the included packages 1524 -V, --version display version information and exit 1525 -q, --quiet, --silent do not print \`checking...' messages 1526 --cache-file=FILE cache test results in FILE [disabled] 1527 -C, --config-cache alias for \`--cache-file=config.cache' 1528 -n, --no-create do not create output files 1529 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1530 1531Installation directories: 1532 --prefix=PREFIX install architecture-independent files in PREFIX 1533 [$ac_default_prefix] 1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1535 [PREFIX] 1536 1537By default, \`make install' will install all the files in 1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1539an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1540for instance \`--prefix=\$HOME'. 1541 1542For better control, use the options below. 1543 1544Fine tuning of the installation directories: 1545 --bindir=DIR user executables [EPREFIX/bin] 1546 --sbindir=DIR system admin executables [EPREFIX/sbin] 1547 --libexecdir=DIR program executables [EPREFIX/libexec] 1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1551 --libdir=DIR object code libraries [EPREFIX/lib] 1552 --includedir=DIR C header files [PREFIX/include] 1553 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1556 --infodir=DIR info documentation [DATAROOTDIR/info] 1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1558 --mandir=DIR man documentation [DATAROOTDIR/man] 1559 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst] 1560 --htmldir=DIR html documentation [DOCDIR] 1561 --dvidir=DIR dvi documentation [DOCDIR] 1562 --pdfdir=DIR pdf documentation [DOCDIR] 1563 --psdir=DIR ps documentation [DOCDIR] 1564_ACEOF 1565 1566 cat <<\_ACEOF 1567 1568Program names: 1569 --program-prefix=PREFIX prepend PREFIX to installed program names 1570 --program-suffix=SUFFIX append SUFFIX to installed program names 1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1572 1573System types: 1574 --build=BUILD configure for building on BUILD [guessed] 1575 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1576_ACEOF 1577fi 1578 1579if test -n "$ac_init_help"; then 1580 case $ac_init_help in 1581 short | recursive ) echo "Configuration of libXtst 1.1.0:";; 1582 esac 1583 cat <<\_ACEOF 1584 1585Optional Features: 1586 --disable-option-checking ignore unrecognized --enable/--with options 1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1589 --enable-maintainer-mode enable make rules and dependencies not useful 1590 (and sometimes confusing) to the casual installer 1591 --disable-dependency-tracking speeds up one-time build 1592 --enable-dependency-tracking do not reject slow dependency extractors 1593 --enable-shared[=PKGS] build shared libraries [default=yes] 1594 --enable-static[=PKGS] build static libraries [default=yes] 1595 --enable-fast-install[=PKGS] 1596 optimize for fast installation [default=yes] 1597 --disable-libtool-lock avoid locking (might break parallel builds) 1598 --enable-silent-rules less verbose build output (undo: `make V=1') 1599 --disable-silent-rules verbose build output (undo: `make V=0') 1600 --enable-strict-compilation 1601 Enable all warnings from compiler and make them 1602 errors (default: disabled) 1603 --enable-lint-library Create lint library (default: disabled) 1604 1605Optional Packages: 1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1608 --with-pic try to use only PIC/non-PIC objects [default=use 1609 both] 1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1611 --with-release-version=STRING 1612 Use release version string in package name 1613 --with-lint Use a lint-style source code checker (default: 1614 disabled) 1615 1616Some influential environment variables: 1617 CC C compiler command 1618 CFLAGS C compiler flags 1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1620 nonstandard directory <lib dir> 1621 LIBS libraries to pass to the linker, e.g. -l<library> 1622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1623 you have headers in a nonstandard directory <include dir> 1624 CPP C preprocessor 1625 XMLTO Path to xmlto command 1626 PKG_CONFIG path to pkg-config utility 1627 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config 1628 XTST_LIBS linker flags for XTST, overriding pkg-config 1629 1630Use these variables to override the choices made by `configure' or to help 1631it to find libraries and programs with nonstandard names/locations. 1632 1633Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1634_ACEOF 1635ac_status=$? 1636fi 1637 1638if test "$ac_init_help" = "recursive"; then 1639 # If there are subdirs, report their specific --help. 1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1641 test -d "$ac_dir" || 1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1643 continue 1644 ac_builddir=. 1645 1646case "$ac_dir" in 1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1648*) 1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1650 # A ".." for each directory in $ac_dir_suffix. 1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1652 case $ac_top_builddir_sub in 1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1655 esac ;; 1656esac 1657ac_abs_top_builddir=$ac_pwd 1658ac_abs_builddir=$ac_pwd$ac_dir_suffix 1659# for backward compatibility: 1660ac_top_builddir=$ac_top_build_prefix 1661 1662case $srcdir in 1663 .) # We are building in place. 1664 ac_srcdir=. 1665 ac_top_srcdir=$ac_top_builddir_sub 1666 ac_abs_top_srcdir=$ac_pwd ;; 1667 [\\/]* | ?:[\\/]* ) # Absolute name. 1668 ac_srcdir=$srcdir$ac_dir_suffix; 1669 ac_top_srcdir=$srcdir 1670 ac_abs_top_srcdir=$srcdir ;; 1671 *) # Relative name. 1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1673 ac_top_srcdir=$ac_top_build_prefix$srcdir 1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1675esac 1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1677 1678 cd "$ac_dir" || { ac_status=$?; continue; } 1679 # Check for guested configure. 1680 if test -f "$ac_srcdir/configure.gnu"; then 1681 echo && 1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1683 elif test -f "$ac_srcdir/configure"; then 1684 echo && 1685 $SHELL "$ac_srcdir/configure" --help=recursive 1686 else 1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1688 fi || ac_status=$? 1689 cd "$ac_pwd" || { ac_status=$?; break; } 1690 done 1691fi 1692 1693test -n "$ac_init_help" && exit $ac_status 1694if $ac_init_version; then 1695 cat <<\_ACEOF 1696libXtst configure 1.1.0 1697generated by GNU Autoconf 2.63 1698 1699Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17002002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1701This configure script is free software; the Free Software Foundation 1702gives unlimited permission to copy, distribute and modify it. 1703_ACEOF 1704 exit 1705fi 1706cat >config.log <<_ACEOF 1707This file contains any messages produced by compilers while 1708running configure, to aid debugging if configure makes a mistake. 1709 1710It was created by libXtst $as_me 1.1.0, which was 1711generated by GNU Autoconf 2.63. Invocation command line was 1712 1713 $ $0 $@ 1714 1715_ACEOF 1716exec 5>>config.log 1717{ 1718cat <<_ASUNAME 1719## --------- ## 1720## Platform. ## 1721## --------- ## 1722 1723hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1724uname -m = `(uname -m) 2>/dev/null || echo unknown` 1725uname -r = `(uname -r) 2>/dev/null || echo unknown` 1726uname -s = `(uname -s) 2>/dev/null || echo unknown` 1727uname -v = `(uname -v) 2>/dev/null || echo unknown` 1728 1729/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1730/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1731 1732/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1733/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1734/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1735/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1736/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1737/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1738/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1739 1740_ASUNAME 1741 1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1743for as_dir in $PATH 1744do 1745 IFS=$as_save_IFS 1746 test -z "$as_dir" && as_dir=. 1747 $as_echo "PATH: $as_dir" 1748done 1749IFS=$as_save_IFS 1750 1751} >&5 1752 1753cat >&5 <<_ACEOF 1754 1755 1756## ----------- ## 1757## Core tests. ## 1758## ----------- ## 1759 1760_ACEOF 1761 1762 1763# Keep a trace of the command line. 1764# Strip out --no-create and --no-recursion so they do not pile up. 1765# Strip out --silent because we don't want to record it for future runs. 1766# Also quote any args containing shell meta-characters. 1767# Make two passes to allow for proper duplicate-argument suppression. 1768ac_configure_args= 1769ac_configure_args0= 1770ac_configure_args1= 1771ac_must_keep_next=false 1772for ac_pass in 1 2 1773do 1774 for ac_arg 1775 do 1776 case $ac_arg in 1777 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1779 | -silent | --silent | --silen | --sile | --sil) 1780 continue ;; 1781 *\'*) 1782 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1783 esac 1784 case $ac_pass in 1785 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1786 2) 1787 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1788 if test $ac_must_keep_next = true; then 1789 ac_must_keep_next=false # Got value, back to normal. 1790 else 1791 case $ac_arg in 1792 *=* | --config-cache | -C | -disable-* | --disable-* \ 1793 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1794 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1795 | -with-* | --with-* | -without-* | --without-* | --x) 1796 case "$ac_configure_args0 " in 1797 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1798 esac 1799 ;; 1800 -* ) ac_must_keep_next=true ;; 1801 esac 1802 fi 1803 ac_configure_args="$ac_configure_args '$ac_arg'" 1804 ;; 1805 esac 1806 done 1807done 1808$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1809$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1810 1811# When interrupted or exit'd, cleanup temporary files, and complete 1812# config.log. We remove comments because anyway the quotes in there 1813# would cause problems or look ugly. 1814# WARNING: Use '\'' to represent an apostrophe within the trap. 1815# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1816trap 'exit_status=$? 1817 # Save into config.log some information that might help in debugging. 1818 { 1819 echo 1820 1821 cat <<\_ASBOX 1822## ---------------- ## 1823## Cache variables. ## 1824## ---------------- ## 1825_ASBOX 1826 echo 1827 # The following way of writing the cache mishandles newlines in values, 1828( 1829 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1830 eval ac_val=\$$ac_var 1831 case $ac_val in #( 1832 *${as_nl}*) 1833 case $ac_var in #( 1834 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1835$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1836 esac 1837 case $ac_var in #( 1838 _ | IFS | as_nl) ;; #( 1839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1840 *) $as_unset $ac_var ;; 1841 esac ;; 1842 esac 1843 done 1844 (set) 2>&1 | 1845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1846 *${as_nl}ac_space=\ *) 1847 sed -n \ 1848 "s/'\''/'\''\\\\'\'''\''/g; 1849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1850 ;; #( 1851 *) 1852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1853 ;; 1854 esac | 1855 sort 1856) 1857 echo 1858 1859 cat <<\_ASBOX 1860## ----------------- ## 1861## Output variables. ## 1862## ----------------- ## 1863_ASBOX 1864 echo 1865 for ac_var in $ac_subst_vars 1866 do 1867 eval ac_val=\$$ac_var 1868 case $ac_val in 1869 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1870 esac 1871 $as_echo "$ac_var='\''$ac_val'\''" 1872 done | sort 1873 echo 1874 1875 if test -n "$ac_subst_files"; then 1876 cat <<\_ASBOX 1877## ------------------- ## 1878## File substitutions. ## 1879## ------------------- ## 1880_ASBOX 1881 echo 1882 for ac_var in $ac_subst_files 1883 do 1884 eval ac_val=\$$ac_var 1885 case $ac_val in 1886 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1887 esac 1888 $as_echo "$ac_var='\''$ac_val'\''" 1889 done | sort 1890 echo 1891 fi 1892 1893 if test -s confdefs.h; then 1894 cat <<\_ASBOX 1895## ----------- ## 1896## confdefs.h. ## 1897## ----------- ## 1898_ASBOX 1899 echo 1900 cat confdefs.h 1901 echo 1902 fi 1903 test "$ac_signal" != 0 && 1904 $as_echo "$as_me: caught signal $ac_signal" 1905 $as_echo "$as_me: exit $exit_status" 1906 } >&5 1907 rm -f core *.core core.conftest.* && 1908 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1909 exit $exit_status 1910' 0 1911for ac_signal in 1 2 13 15; do 1912 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1913done 1914ac_signal=0 1915 1916# confdefs.h avoids OS command line length limits that DEFS can exceed. 1917rm -f -r conftest* confdefs.h 1918 1919# Predefined preprocessor variables. 1920 1921cat >>confdefs.h <<_ACEOF 1922#define PACKAGE_NAME "$PACKAGE_NAME" 1923_ACEOF 1924 1925 1926cat >>confdefs.h <<_ACEOF 1927#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1928_ACEOF 1929 1930 1931cat >>confdefs.h <<_ACEOF 1932#define PACKAGE_VERSION "$PACKAGE_VERSION" 1933_ACEOF 1934 1935 1936cat >>confdefs.h <<_ACEOF 1937#define PACKAGE_STRING "$PACKAGE_STRING" 1938_ACEOF 1939 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1943_ACEOF 1944 1945 1946# Let the site file select an alternate cache file if it wants to. 1947# Prefer an explicitly selected file to automatically selected ones. 1948ac_site_file1=NONE 1949ac_site_file2=NONE 1950if test -n "$CONFIG_SITE"; then 1951 ac_site_file1=$CONFIG_SITE 1952elif test "x$prefix" != xNONE; then 1953 ac_site_file1=$prefix/share/config.site 1954 ac_site_file2=$prefix/etc/config.site 1955else 1956 ac_site_file1=$ac_default_prefix/share/config.site 1957 ac_site_file2=$ac_default_prefix/etc/config.site 1958fi 1959for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1960do 1961 test "x$ac_site_file" = xNONE && continue 1962 if test -r "$ac_site_file"; then 1963 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1964$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1965 sed 's/^/| /' "$ac_site_file" >&5 1966 . "$ac_site_file" 1967 fi 1968done 1969 1970if test -r "$cache_file"; then 1971 # Some versions of bash will fail to source /dev/null (special 1972 # files actually), so we avoid doing that. 1973 if test -f "$cache_file"; then 1974 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1975$as_echo "$as_me: loading cache $cache_file" >&6;} 1976 case $cache_file in 1977 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1978 *) . "./$cache_file";; 1979 esac 1980 fi 1981else 1982 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1983$as_echo "$as_me: creating cache $cache_file" >&6;} 1984 >$cache_file 1985fi 1986 1987# Check that the precious variables saved in the cache have kept the same 1988# value. 1989ac_cache_corrupted=false 1990for ac_var in $ac_precious_vars; do 1991 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1992 eval ac_new_set=\$ac_env_${ac_var}_set 1993 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1994 eval ac_new_val=\$ac_env_${ac_var}_value 1995 case $ac_old_set,$ac_new_set in 1996 set,) 1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1998$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1999 ac_cache_corrupted=: ;; 2000 ,set) 2001 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2002$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2003 ac_cache_corrupted=: ;; 2004 ,);; 2005 *) 2006 if test "x$ac_old_val" != "x$ac_new_val"; then 2007 # differences in whitespace do not lead to failure. 2008 ac_old_val_w=`echo x $ac_old_val` 2009 ac_new_val_w=`echo x $ac_new_val` 2010 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2012$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2013 ac_cache_corrupted=: 2014 else 2015 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2016$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2017 eval $ac_var=\$ac_old_val 2018 fi 2019 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2020$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2021 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2022$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2023 fi;; 2024 esac 2025 # Pass precious variables to config.status. 2026 if test "$ac_new_set" = set; then 2027 case $ac_new_val in 2028 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2029 *) ac_arg=$ac_var=$ac_new_val ;; 2030 esac 2031 case " $ac_configure_args " in 2032 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2033 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2034 esac 2035 fi 2036done 2037if $ac_cache_corrupted; then 2038 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2040 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2041$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2042 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2043$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2044 { (exit 1); exit 1; }; } 2045fi 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071ac_ext=c 2072ac_cpp='$CPP $CPPFLAGS' 2073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2075ac_compiler_gnu=$ac_cv_c_compiler_gnu 2076 2077 2078am__api_version='1.11' 2079 2080ac_aux_dir= 2081for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2082 if test -f "$ac_dir/install-sh"; then 2083 ac_aux_dir=$ac_dir 2084 ac_install_sh="$ac_aux_dir/install-sh -c" 2085 break 2086 elif test -f "$ac_dir/install.sh"; then 2087 ac_aux_dir=$ac_dir 2088 ac_install_sh="$ac_aux_dir/install.sh -c" 2089 break 2090 elif test -f "$ac_dir/shtool"; then 2091 ac_aux_dir=$ac_dir 2092 ac_install_sh="$ac_aux_dir/shtool install -c" 2093 break 2094 fi 2095done 2096if test -z "$ac_aux_dir"; then 2097 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2098$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2099 { (exit 1); exit 1; }; } 2100fi 2101 2102# These three variables are undocumented and unsupported, 2103# and are intended to be withdrawn in a future Autoconf release. 2104# They can cause serious problems if a builder's source tree is in a directory 2105# whose full name contains unusual characters. 2106ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2107ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2108ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2109 2110 2111# Find a good install program. We prefer a C program (faster), 2112# so one script is as good as another. But avoid the broken or 2113# incompatible versions: 2114# SysV /etc/install, /usr/sbin/install 2115# SunOS /usr/etc/install 2116# IRIX /sbin/install 2117# AIX /bin/install 2118# AmigaOS /C/install, which installs bootblocks on floppy discs 2119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2120# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2122# OS/2's system install, which has a completely different semantic 2123# ./install, which can be erroneously created by make from ./install.sh. 2124# Reject install programs that cannot install multiple files. 2125{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2126$as_echo_n "checking for a BSD-compatible install... " >&6; } 2127if test -z "$INSTALL"; then 2128if test "${ac_cv_path_install+set}" = set; then 2129 $as_echo_n "(cached) " >&6 2130else 2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH 2133do 2134 IFS=$as_save_IFS 2135 test -z "$as_dir" && as_dir=. 2136 # Account for people who put trailing slashes in PATH elements. 2137case $as_dir/ in 2138 ./ | .// | /cC/* | \ 2139 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2140 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2141 /usr/ucb/* ) ;; 2142 *) 2143 # OSF1 and SCO ODT 3.0 have their own names for install. 2144 # Don't use installbsd from OSF since it installs stuff as root 2145 # by default. 2146 for ac_prog in ginstall scoinst install; do 2147 for ac_exec_ext in '' $ac_executable_extensions; do 2148 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2149 if test $ac_prog = install && 2150 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2151 # AIX install. It has an incompatible calling convention. 2152 : 2153 elif test $ac_prog = install && 2154 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2155 # program-specific install script used by HP pwplus--don't use. 2156 : 2157 else 2158 rm -rf conftest.one conftest.two conftest.dir 2159 echo one > conftest.one 2160 echo two > conftest.two 2161 mkdir conftest.dir 2162 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2163 test -s conftest.one && test -s conftest.two && 2164 test -s conftest.dir/conftest.one && 2165 test -s conftest.dir/conftest.two 2166 then 2167 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2168 break 3 2169 fi 2170 fi 2171 fi 2172 done 2173 done 2174 ;; 2175esac 2176 2177done 2178IFS=$as_save_IFS 2179 2180rm -rf conftest.one conftest.two conftest.dir 2181 2182fi 2183 if test "${ac_cv_path_install+set}" = set; then 2184 INSTALL=$ac_cv_path_install 2185 else 2186 # As a last resort, use the slow shell script. Don't cache a 2187 # value for INSTALL within a source directory, because that will 2188 # break other packages using the cache if that directory is 2189 # removed, or if the value is a relative name. 2190 INSTALL=$ac_install_sh 2191 fi 2192fi 2193{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2194$as_echo "$INSTALL" >&6; } 2195 2196# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2197# It thinks the first close brace ends the variable substitution. 2198test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2199 2200test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2201 2202test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2203 2204{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2205$as_echo_n "checking whether build environment is sane... " >&6; } 2206# Just in case 2207sleep 1 2208echo timestamp > conftest.file 2209# Reject unsafe characters in $srcdir or the absolute working directory 2210# name. Accept space and tab only in the latter. 2211am_lf=' 2212' 2213case `pwd` in 2214 *[\\\"\#\$\&\'\`$am_lf]*) 2215 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2216$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2217 { (exit 1); exit 1; }; };; 2218esac 2219case $srcdir in 2220 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2221 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2222$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2223 { (exit 1); exit 1; }; };; 2224esac 2225 2226# Do `set' in a subshell so we don't clobber the current shell's 2227# arguments. Must try -L first in case configure is actually a 2228# symlink; some systems play weird games with the mod time of symlinks 2229# (eg FreeBSD returns the mod time of the symlink's containing 2230# directory). 2231if ( 2232 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2233 if test "$*" = "X"; then 2234 # -L didn't work. 2235 set X `ls -t "$srcdir/configure" conftest.file` 2236 fi 2237 rm -f conftest.file 2238 if test "$*" != "X $srcdir/configure conftest.file" \ 2239 && test "$*" != "X conftest.file $srcdir/configure"; then 2240 2241 # If neither matched, then we have a broken ls. This can happen 2242 # if, for instance, CONFIG_SHELL is bash and it inherits a 2243 # broken ls alias from the environment. This has actually 2244 # happened. Such a system could not be considered "sane". 2245 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2246alias in your environment" >&5 2247$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2248alias in your environment" >&2;} 2249 { (exit 1); exit 1; }; } 2250 fi 2251 2252 test "$2" = conftest.file 2253 ) 2254then 2255 # Ok. 2256 : 2257else 2258 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2259Check your system clock" >&5 2260$as_echo "$as_me: error: newly created file is older than distributed files! 2261Check your system clock" >&2;} 2262 { (exit 1); exit 1; }; } 2263fi 2264{ $as_echo "$as_me:$LINENO: result: yes" >&5 2265$as_echo "yes" >&6; } 2266test "$program_prefix" != NONE && 2267 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2268# Use a double $ so make ignores it. 2269test "$program_suffix" != NONE && 2270 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2271# Double any \ or $. 2272# By default was `s,x,x', remove it if useless. 2273ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2274program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2275 2276# expand $ac_aux_dir to an absolute path 2277am_aux_dir=`cd $ac_aux_dir && pwd` 2278 2279if test x"${MISSING+set}" != xset; then 2280 case $am_aux_dir in 2281 *\ * | *\ *) 2282 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2283 *) 2284 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2285 esac 2286fi 2287# Use eval to expand $SHELL 2288if eval "$MISSING --run true"; then 2289 am_missing_run="$MISSING --run " 2290else 2291 am_missing_run= 2292 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2293$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2294fi 2295 2296if test x"${install_sh}" != xset; then 2297 case $am_aux_dir in 2298 *\ * | *\ *) 2299 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2300 *) 2301 install_sh="\${SHELL} $am_aux_dir/install-sh" 2302 esac 2303fi 2304 2305# Installed binaries are usually stripped using `strip' when the user 2306# run `make install-strip'. However `strip' might not be the right 2307# tool to use in cross-compilation environments, therefore Automake 2308# will honor the `STRIP' environment variable to overrule this program. 2309if test "$cross_compiling" != no; then 2310 if test -n "$ac_tool_prefix"; then 2311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2312set dummy ${ac_tool_prefix}strip; ac_word=$2 2313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2314$as_echo_n "checking for $ac_word... " >&6; } 2315if test "${ac_cv_prog_STRIP+set}" = set; then 2316 $as_echo_n "(cached) " >&6 2317else 2318 if test -n "$STRIP"; then 2319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2320else 2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2322for as_dir in $PATH 2323do 2324 IFS=$as_save_IFS 2325 test -z "$as_dir" && as_dir=. 2326 for ac_exec_ext in '' $ac_executable_extensions; do 2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2330 break 2 2331 fi 2332done 2333done 2334IFS=$as_save_IFS 2335 2336fi 2337fi 2338STRIP=$ac_cv_prog_STRIP 2339if test -n "$STRIP"; then 2340 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2341$as_echo "$STRIP" >&6; } 2342else 2343 { $as_echo "$as_me:$LINENO: result: no" >&5 2344$as_echo "no" >&6; } 2345fi 2346 2347 2348fi 2349if test -z "$ac_cv_prog_STRIP"; then 2350 ac_ct_STRIP=$STRIP 2351 # Extract the first word of "strip", so it can be a program name with args. 2352set dummy strip; ac_word=$2 2353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2354$as_echo_n "checking for $ac_word... " >&6; } 2355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2356 $as_echo_n "(cached) " >&6 2357else 2358 if test -n "$ac_ct_STRIP"; then 2359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2360else 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 for ac_exec_ext in '' $ac_executable_extensions; do 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2368 ac_cv_prog_ac_ct_STRIP="strip" 2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2370 break 2 2371 fi 2372done 2373done 2374IFS=$as_save_IFS 2375 2376fi 2377fi 2378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2379if test -n "$ac_ct_STRIP"; then 2380 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2381$as_echo "$ac_ct_STRIP" >&6; } 2382else 2383 { $as_echo "$as_me:$LINENO: result: no" >&5 2384$as_echo "no" >&6; } 2385fi 2386 2387 if test "x$ac_ct_STRIP" = x; then 2388 STRIP=":" 2389 else 2390 case $cross_compiling:$ac_tool_warned in 2391yes:) 2392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2394ac_tool_warned=yes ;; 2395esac 2396 STRIP=$ac_ct_STRIP 2397 fi 2398else 2399 STRIP="$ac_cv_prog_STRIP" 2400fi 2401 2402fi 2403INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2404 2405{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2406$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2407if test -z "$MKDIR_P"; then 2408 if test "${ac_cv_path_mkdir+set}" = set; then 2409 $as_echo_n "(cached) " >&6 2410else 2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 for ac_prog in mkdir gmkdir; do 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2419 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2420 'mkdir (GNU coreutils) '* | \ 2421 'mkdir (coreutils) '* | \ 2422 'mkdir (fileutils) '4.1*) 2423 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2424 break 3;; 2425 esac 2426 done 2427 done 2428done 2429IFS=$as_save_IFS 2430 2431fi 2432 2433 if test "${ac_cv_path_mkdir+set}" = set; then 2434 MKDIR_P="$ac_cv_path_mkdir -p" 2435 else 2436 # As a last resort, use the slow shell script. Don't cache a 2437 # value for MKDIR_P within a source directory, because that will 2438 # break other packages using the cache if that directory is 2439 # removed, or if the value is a relative name. 2440 test -d ./--version && rmdir ./--version 2441 MKDIR_P="$ac_install_sh -d" 2442 fi 2443fi 2444{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2445$as_echo "$MKDIR_P" >&6; } 2446 2447mkdir_p="$MKDIR_P" 2448case $mkdir_p in 2449 [\\/$]* | ?:[\\/]*) ;; 2450 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2451esac 2452 2453for ac_prog in gawk mawk nawk awk 2454do 2455 # Extract the first word of "$ac_prog", so it can be a program name with args. 2456set dummy $ac_prog; ac_word=$2 2457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2458$as_echo_n "checking for $ac_word... " >&6; } 2459if test "${ac_cv_prog_AWK+set}" = set; then 2460 $as_echo_n "(cached) " >&6 2461else 2462 if test -n "$AWK"; then 2463 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2464else 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2472 ac_cv_prog_AWK="$ac_prog" 2473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476done 2477done 2478IFS=$as_save_IFS 2479 2480fi 2481fi 2482AWK=$ac_cv_prog_AWK 2483if test -n "$AWK"; then 2484 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2485$as_echo "$AWK" >&6; } 2486else 2487 { $as_echo "$as_me:$LINENO: result: no" >&5 2488$as_echo "no" >&6; } 2489fi 2490 2491 2492 test -n "$AWK" && break 2493done 2494 2495{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2496$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2497set x ${MAKE-make} 2498ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2499if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2500 $as_echo_n "(cached) " >&6 2501else 2502 cat >conftest.make <<\_ACEOF 2503SHELL = /bin/sh 2504all: 2505 @echo '@@@%%%=$(MAKE)=@@@%%%' 2506_ACEOF 2507# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2508case `${MAKE-make} -f conftest.make 2>/dev/null` in 2509 *@@@%%%=?*=@@@%%%*) 2510 eval ac_cv_prog_make_${ac_make}_set=yes;; 2511 *) 2512 eval ac_cv_prog_make_${ac_make}_set=no;; 2513esac 2514rm -f conftest.make 2515fi 2516if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2517 { $as_echo "$as_me:$LINENO: result: yes" >&5 2518$as_echo "yes" >&6; } 2519 SET_MAKE= 2520else 2521 { $as_echo "$as_me:$LINENO: result: no" >&5 2522$as_echo "no" >&6; } 2523 SET_MAKE="MAKE=${MAKE-make}" 2524fi 2525 2526rm -rf .tst 2>/dev/null 2527mkdir .tst 2>/dev/null 2528if test -d .tst; then 2529 am__leading_dot=. 2530else 2531 am__leading_dot=_ 2532fi 2533rmdir .tst 2>/dev/null 2534 2535if test "`cd $srcdir && pwd`" != "`pwd`"; then 2536 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2537 # is not polluted with repeated "-I." 2538 am__isrc=' -I$(srcdir)' 2539 # test to see if srcdir already configured 2540 if test -f $srcdir/config.status; then 2541 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2542$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2543 { (exit 1); exit 1; }; } 2544 fi 2545fi 2546 2547# test whether we have cygpath 2548if test -z "$CYGPATH_W"; then 2549 if (cygpath --version) >/dev/null 2>/dev/null; then 2550 CYGPATH_W='cygpath -w' 2551 else 2552 CYGPATH_W=echo 2553 fi 2554fi 2555 2556 2557# Define the identity of the package. 2558 PACKAGE='libXtst' 2559 VERSION='1.1.0' 2560 2561 2562cat >>confdefs.h <<_ACEOF 2563#define PACKAGE "$PACKAGE" 2564_ACEOF 2565 2566 2567cat >>confdefs.h <<_ACEOF 2568#define VERSION "$VERSION" 2569_ACEOF 2570 2571# Some tools Automake needs. 2572 2573ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2574 2575 2576AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2577 2578 2579AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2580 2581 2582AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2583 2584 2585MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2586 2587# We need awk for the "check" target. The system "awk" is bad on 2588# some platforms. 2589# Always define AMTAR for backward compatibility. 2590 2591AMTAR=${AMTAR-"${am_missing_run}tar"} 2592 2593am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2594 2595 2596 2597 2598 2599 2600{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2601$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2602 # Check whether --enable-maintainer-mode was given. 2603if test "${enable_maintainer_mode+set}" = set; then 2604 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2605else 2606 USE_MAINTAINER_MODE=no 2607fi 2608 2609 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2610$as_echo "$USE_MAINTAINER_MODE" >&6; } 2611 if test $USE_MAINTAINER_MODE = yes; then 2612 MAINTAINER_MODE_TRUE= 2613 MAINTAINER_MODE_FALSE='#' 2614else 2615 MAINTAINER_MODE_TRUE='#' 2616 MAINTAINER_MODE_FALSE= 2617fi 2618 2619 MAINT=$MAINTAINER_MODE_TRUE 2620 2621 2622 2623# Require xorg-macros: XORG_DEFAULT_OPTIONS 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635ac_config_headers="$ac_config_headers config.h" 2636 2637 2638# Check for progs 2639ac_ext=c 2640ac_cpp='$CPP $CPPFLAGS' 2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2643ac_compiler_gnu=$ac_cv_c_compiler_gnu 2644if test -n "$ac_tool_prefix"; then 2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2646set dummy ${ac_tool_prefix}gcc; ac_word=$2 2647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2648$as_echo_n "checking for $ac_word... " >&6; } 2649if test "${ac_cv_prog_CC+set}" = set; then 2650 $as_echo_n "(cached) " >&6 2651else 2652 if test -n "$CC"; then 2653 ac_cv_prog_CC="$CC" # Let the user override the test. 2654else 2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2662 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2664 break 2 2665 fi 2666done 2667done 2668IFS=$as_save_IFS 2669 2670fi 2671fi 2672CC=$ac_cv_prog_CC 2673if test -n "$CC"; then 2674 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2675$as_echo "$CC" >&6; } 2676else 2677 { $as_echo "$as_me:$LINENO: result: no" >&5 2678$as_echo "no" >&6; } 2679fi 2680 2681 2682fi 2683if test -z "$ac_cv_prog_CC"; then 2684 ac_ct_CC=$CC 2685 # Extract the first word of "gcc", so it can be a program name with args. 2686set dummy gcc; ac_word=$2 2687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2688$as_echo_n "checking for $ac_word... " >&6; } 2689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2690 $as_echo_n "(cached) " >&6 2691else 2692 if test -n "$ac_ct_CC"; then 2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2694else 2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696for as_dir in $PATH 2697do 2698 IFS=$as_save_IFS 2699 test -z "$as_dir" && as_dir=. 2700 for ac_exec_ext in '' $ac_executable_extensions; do 2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2702 ac_cv_prog_ac_ct_CC="gcc" 2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2704 break 2 2705 fi 2706done 2707done 2708IFS=$as_save_IFS 2709 2710fi 2711fi 2712ac_ct_CC=$ac_cv_prog_ac_ct_CC 2713if test -n "$ac_ct_CC"; then 2714 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2715$as_echo "$ac_ct_CC" >&6; } 2716else 2717 { $as_echo "$as_me:$LINENO: result: no" >&5 2718$as_echo "no" >&6; } 2719fi 2720 2721 if test "x$ac_ct_CC" = x; then 2722 CC="" 2723 else 2724 case $cross_compiling:$ac_tool_warned in 2725yes:) 2726{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2728ac_tool_warned=yes ;; 2729esac 2730 CC=$ac_ct_CC 2731 fi 2732else 2733 CC="$ac_cv_prog_CC" 2734fi 2735 2736if test -z "$CC"; then 2737 if test -n "$ac_tool_prefix"; then 2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2739set dummy ${ac_tool_prefix}cc; ac_word=$2 2740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2741$as_echo_n "checking for $ac_word... " >&6; } 2742if test "${ac_cv_prog_CC+set}" = set; then 2743 $as_echo_n "(cached) " >&6 2744else 2745 if test -n "$CC"; then 2746 ac_cv_prog_CC="$CC" # Let the user override the test. 2747else 2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749for as_dir in $PATH 2750do 2751 IFS=$as_save_IFS 2752 test -z "$as_dir" && as_dir=. 2753 for ac_exec_ext in '' $ac_executable_extensions; do 2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2755 ac_cv_prog_CC="${ac_tool_prefix}cc" 2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2757 break 2 2758 fi 2759done 2760done 2761IFS=$as_save_IFS 2762 2763fi 2764fi 2765CC=$ac_cv_prog_CC 2766if test -n "$CC"; then 2767 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2768$as_echo "$CC" >&6; } 2769else 2770 { $as_echo "$as_me:$LINENO: result: no" >&5 2771$as_echo "no" >&6; } 2772fi 2773 2774 2775 fi 2776fi 2777if test -z "$CC"; then 2778 # Extract the first word of "cc", so it can be a program name with args. 2779set dummy cc; ac_word=$2 2780{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2781$as_echo_n "checking for $ac_word... " >&6; } 2782if test "${ac_cv_prog_CC+set}" = set; then 2783 $as_echo_n "(cached) " >&6 2784else 2785 if test -n "$CC"; then 2786 ac_cv_prog_CC="$CC" # Let the user override the test. 2787else 2788 ac_prog_rejected=no 2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2790for as_dir in $PATH 2791do 2792 IFS=$as_save_IFS 2793 test -z "$as_dir" && as_dir=. 2794 for ac_exec_ext in '' $ac_executable_extensions; do 2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2797 ac_prog_rejected=yes 2798 continue 2799 fi 2800 ac_cv_prog_CC="cc" 2801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2802 break 2 2803 fi 2804done 2805done 2806IFS=$as_save_IFS 2807 2808if test $ac_prog_rejected = yes; then 2809 # We found a bogon in the path, so make sure we never use it. 2810 set dummy $ac_cv_prog_CC 2811 shift 2812 if test $# != 0; then 2813 # We chose a different compiler from the bogus one. 2814 # However, it has the same basename, so the bogon will be chosen 2815 # first if we set CC to just the basename; use the full file name. 2816 shift 2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2818 fi 2819fi 2820fi 2821fi 2822CC=$ac_cv_prog_CC 2823if test -n "$CC"; then 2824 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2825$as_echo "$CC" >&6; } 2826else 2827 { $as_echo "$as_me:$LINENO: result: no" >&5 2828$as_echo "no" >&6; } 2829fi 2830 2831 2832fi 2833if test -z "$CC"; then 2834 if test -n "$ac_tool_prefix"; then 2835 for ac_prog in cl.exe 2836 do 2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2838set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if test "${ac_cv_prog_CC+set}" = set; then 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test -n "$CC"; then 2845 ac_cv_prog_CC="$CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859done 2860IFS=$as_save_IFS 2861 2862fi 2863fi 2864CC=$ac_cv_prog_CC 2865if test -n "$CC"; then 2866 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2867$as_echo "$CC" >&6; } 2868else 2869 { $as_echo "$as_me:$LINENO: result: no" >&5 2870$as_echo "no" >&6; } 2871fi 2872 2873 2874 test -n "$CC" && break 2875 done 2876fi 2877if test -z "$CC"; then 2878 ac_ct_CC=$CC 2879 for ac_prog in cl.exe 2880do 2881 # Extract the first word of "$ac_prog", so it can be a program name with args. 2882set dummy $ac_prog; ac_word=$2 2883{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2884$as_echo_n "checking for $ac_word... " >&6; } 2885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2886 $as_echo_n "(cached) " >&6 2887else 2888 if test -n "$ac_ct_CC"; then 2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2890else 2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892for as_dir in $PATH 2893do 2894 IFS=$as_save_IFS 2895 test -z "$as_dir" && as_dir=. 2896 for ac_exec_ext in '' $ac_executable_extensions; do 2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2898 ac_cv_prog_ac_ct_CC="$ac_prog" 2899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2900 break 2 2901 fi 2902done 2903done 2904IFS=$as_save_IFS 2905 2906fi 2907fi 2908ac_ct_CC=$ac_cv_prog_ac_ct_CC 2909if test -n "$ac_ct_CC"; then 2910 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2911$as_echo "$ac_ct_CC" >&6; } 2912else 2913 { $as_echo "$as_me:$LINENO: result: no" >&5 2914$as_echo "no" >&6; } 2915fi 2916 2917 2918 test -n "$ac_ct_CC" && break 2919done 2920 2921 if test "x$ac_ct_CC" = x; then 2922 CC="" 2923 else 2924 case $cross_compiling:$ac_tool_warned in 2925yes:) 2926{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2928ac_tool_warned=yes ;; 2929esac 2930 CC=$ac_ct_CC 2931 fi 2932fi 2933 2934fi 2935 2936 2937test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2939{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2940See \`config.log' for more details." >&5 2941$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2942See \`config.log' for more details." >&2;} 2943 { (exit 1); exit 1; }; }; } 2944 2945# Provide some information about the compiler. 2946$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2947set X $ac_compile 2948ac_compiler=$2 2949{ (ac_try="$ac_compiler --version >&5" 2950case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2955$as_echo "$ac_try_echo") >&5 2956 (eval "$ac_compiler --version >&5") 2>&5 2957 ac_status=$? 2958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } 2960{ (ac_try="$ac_compiler -v >&5" 2961case "(($ac_try" in 2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2963 *) ac_try_echo=$ac_try;; 2964esac 2965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2966$as_echo "$ac_try_echo") >&5 2967 (eval "$ac_compiler -v >&5") 2>&5 2968 ac_status=$? 2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); } 2971{ (ac_try="$ac_compiler -V >&5" 2972case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2977$as_echo "$ac_try_echo") >&5 2978 (eval "$ac_compiler -V >&5") 2>&5 2979 ac_status=$? 2980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2981 (exit $ac_status); } 2982 2983cat >conftest.$ac_ext <<_ACEOF 2984/* confdefs.h. */ 2985_ACEOF 2986cat confdefs.h >>conftest.$ac_ext 2987cat >>conftest.$ac_ext <<_ACEOF 2988/* end confdefs.h. */ 2989 2990int 2991main () 2992{ 2993 2994 ; 2995 return 0; 2996} 2997_ACEOF 2998ac_clean_files_save=$ac_clean_files 2999ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3000# Try to create an executable without -o first, disregard a.out. 3001# It will help us diagnose broken compilers, and finding out an intuition 3002# of exeext. 3003{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3004$as_echo_n "checking for C compiler default output file name... " >&6; } 3005ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3006 3007# The possible output files: 3008ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3009 3010ac_rmfiles= 3011for ac_file in $ac_files 3012do 3013 case $ac_file in 3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3015 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3016 esac 3017done 3018rm -f $ac_rmfiles 3019 3020if { (ac_try="$ac_link_default" 3021case "(($ac_try" in 3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3023 *) ac_try_echo=$ac_try;; 3024esac 3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3026$as_echo "$ac_try_echo") >&5 3027 (eval "$ac_link_default") 2>&5 3028 ac_status=$? 3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); }; then 3031 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3033# in a Makefile. We should not override ac_cv_exeext if it was cached, 3034# so that the user can short-circuit this test for compilers unknown to 3035# Autoconf. 3036for ac_file in $ac_files '' 3037do 3038 test -f "$ac_file" || continue 3039 case $ac_file in 3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3041 ;; 3042 [ab].out ) 3043 # We found the default executable, but exeext='' is most 3044 # certainly right. 3045 break;; 3046 *.* ) 3047 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3048 then :; else 3049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3050 fi 3051 # We set ac_cv_exeext here because the later test for it is not 3052 # safe: cross compilers may not add the suffix if given an `-o' 3053 # argument, so we may need to know it at that point already. 3054 # Even if this section looks crufty: it has the advantage of 3055 # actually working. 3056 break;; 3057 * ) 3058 break;; 3059 esac 3060done 3061test "$ac_cv_exeext" = no && ac_cv_exeext= 3062 3063else 3064 ac_file='' 3065fi 3066 3067{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3068$as_echo "$ac_file" >&6; } 3069if test -z "$ac_file"; then 3070 $as_echo "$as_me: failed program was:" >&5 3071sed 's/^/| /' conftest.$ac_ext >&5 3072 3073{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3075{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3076See \`config.log' for more details." >&5 3077$as_echo "$as_me: error: C compiler cannot create executables 3078See \`config.log' for more details." >&2;} 3079 { (exit 77); exit 77; }; }; } 3080fi 3081 3082ac_exeext=$ac_cv_exeext 3083 3084# Check that the compiler produces executables we can run. If not, either 3085# the compiler is broken, or we cross compile. 3086{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3087$as_echo_n "checking whether the C compiler works... " >&6; } 3088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3089# If not cross compiling, check that we can run a simple program. 3090if test "$cross_compiling" != yes; then 3091 if { ac_try='./$ac_file' 3092 { (case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3097$as_echo "$ac_try_echo") >&5 3098 (eval "$ac_try") 2>&5 3099 ac_status=$? 3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; }; then 3102 cross_compiling=no 3103 else 3104 if test "$cross_compiling" = maybe; then 3105 cross_compiling=yes 3106 else 3107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3110If you meant to cross compile, use \`--host'. 3111See \`config.log' for more details." >&5 3112$as_echo "$as_me: error: cannot run C compiled programs. 3113If you meant to cross compile, use \`--host'. 3114See \`config.log' for more details." >&2;} 3115 { (exit 1); exit 1; }; }; } 3116 fi 3117 fi 3118fi 3119{ $as_echo "$as_me:$LINENO: result: yes" >&5 3120$as_echo "yes" >&6; } 3121 3122rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3123ac_clean_files=$ac_clean_files_save 3124# Check that the compiler produces executables we can run. If not, either 3125# the compiler is broken, or we cross compile. 3126{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3127$as_echo_n "checking whether we are cross compiling... " >&6; } 3128{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3129$as_echo "$cross_compiling" >&6; } 3130 3131{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3132$as_echo_n "checking for suffix of executables... " >&6; } 3133if { (ac_try="$ac_link" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3139$as_echo "$ac_try_echo") >&5 3140 (eval "$ac_link") 2>&5 3141 ac_status=$? 3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); }; then 3144 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3145# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3146# work properly (i.e., refer to `conftest.exe'), while it won't with 3147# `rm'. 3148for ac_file in conftest.exe conftest conftest.*; do 3149 test -f "$ac_file" || continue 3150 case $ac_file in 3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3153 break;; 3154 * ) break;; 3155 esac 3156done 3157else 3158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3160{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3161See \`config.log' for more details." >&5 3162$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3163See \`config.log' for more details." >&2;} 3164 { (exit 1); exit 1; }; }; } 3165fi 3166 3167rm -f conftest$ac_cv_exeext 3168{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3169$as_echo "$ac_cv_exeext" >&6; } 3170 3171rm -f conftest.$ac_ext 3172EXEEXT=$ac_cv_exeext 3173ac_exeext=$EXEEXT 3174{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3175$as_echo_n "checking for suffix of object files... " >&6; } 3176if test "${ac_cv_objext+set}" = set; then 3177 $as_echo_n "(cached) " >&6 3178else 3179 cat >conftest.$ac_ext <<_ACEOF 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194rm -f conftest.o conftest.obj 3195if { (ac_try="$ac_compile" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3201$as_echo "$ac_try_echo") >&5 3202 (eval "$ac_compile") 2>&5 3203 ac_status=$? 3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); }; then 3206 for ac_file in conftest.o conftest.obj conftest.*; do 3207 test -f "$ac_file" || continue; 3208 case $ac_file in 3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3211 break;; 3212 esac 3213done 3214else 3215 $as_echo "$as_me: failed program was:" >&5 3216sed 's/^/| /' conftest.$ac_ext >&5 3217 3218{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3221See \`config.log' for more details." >&5 3222$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3223See \`config.log' for more details." >&2;} 3224 { (exit 1); exit 1; }; }; } 3225fi 3226 3227rm -f conftest.$ac_cv_objext conftest.$ac_ext 3228fi 3229{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3230$as_echo "$ac_cv_objext" >&6; } 3231OBJEXT=$ac_cv_objext 3232ac_objext=$OBJEXT 3233{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3234$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3235if test "${ac_cv_c_compiler_gnu+set}" = set; then 3236 $as_echo_n "(cached) " >&6 3237else 3238 cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248#ifndef __GNUC__ 3249 choke me 3250#endif 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256rm -f conftest.$ac_objext 3257if { (ac_try="$ac_compile" 3258case "(($ac_try" in 3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3260 *) ac_try_echo=$ac_try;; 3261esac 3262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3263$as_echo "$ac_try_echo") >&5 3264 (eval "$ac_compile") 2>conftest.er1 3265 ac_status=$? 3266 grep -v '^ *+' conftest.er1 >conftest.err 3267 rm -f conftest.er1 3268 cat conftest.err >&5 3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3270 (exit $ac_status); } && { 3271 test -z "$ac_c_werror_flag" || 3272 test ! -s conftest.err 3273 } && test -s conftest.$ac_objext; then 3274 ac_compiler_gnu=yes 3275else 3276 $as_echo "$as_me: failed program was:" >&5 3277sed 's/^/| /' conftest.$ac_ext >&5 3278 3279 ac_compiler_gnu=no 3280fi 3281 3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3283ac_cv_c_compiler_gnu=$ac_compiler_gnu 3284 3285fi 3286{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3287$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3288if test $ac_compiler_gnu = yes; then 3289 GCC=yes 3290else 3291 GCC= 3292fi 3293ac_test_CFLAGS=${CFLAGS+set} 3294ac_save_CFLAGS=$CFLAGS 3295{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3296$as_echo_n "checking whether $CC accepts -g... " >&6; } 3297if test "${ac_cv_prog_cc_g+set}" = set; then 3298 $as_echo_n "(cached) " >&6 3299else 3300 ac_save_c_werror_flag=$ac_c_werror_flag 3301 ac_c_werror_flag=yes 3302 ac_cv_prog_cc_g=no 3303 CFLAGS="-g" 3304 cat >conftest.$ac_ext <<_ACEOF 3305/* confdefs.h. */ 3306_ACEOF 3307cat confdefs.h >>conftest.$ac_ext 3308cat >>conftest.$ac_ext <<_ACEOF 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.$ac_objext 3320if { (ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3326$as_echo "$ac_try_echo") >&5 3327 (eval "$ac_compile") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } && { 3334 test -z "$ac_c_werror_flag" || 3335 test ! -s conftest.err 3336 } && test -s conftest.$ac_objext; then 3337 ac_cv_prog_cc_g=yes 3338else 3339 $as_echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 CFLAGS="" 3343 cat >conftest.$ac_ext <<_ACEOF 3344/* confdefs.h. */ 3345_ACEOF 3346cat confdefs.h >>conftest.$ac_ext 3347cat >>conftest.$ac_ext <<_ACEOF 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.$ac_objext 3359if { (ac_try="$ac_compile" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3365$as_echo "$ac_try_echo") >&5 3366 (eval "$ac_compile") 2>conftest.er1 3367 ac_status=$? 3368 grep -v '^ *+' conftest.er1 >conftest.err 3369 rm -f conftest.er1 3370 cat conftest.err >&5 3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); } && { 3373 test -z "$ac_c_werror_flag" || 3374 test ! -s conftest.err 3375 } && test -s conftest.$ac_objext; then 3376 : 3377else 3378 $as_echo "$as_me: failed program was:" >&5 3379sed 's/^/| /' conftest.$ac_ext >&5 3380 3381 ac_c_werror_flag=$ac_save_c_werror_flag 3382 CFLAGS="-g" 3383 cat >conftest.$ac_ext <<_ACEOF 3384/* confdefs.h. */ 3385_ACEOF 3386cat confdefs.h >>conftest.$ac_ext 3387cat >>conftest.$ac_ext <<_ACEOF 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.$ac_objext 3399if { (ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3405$as_echo "$ac_try_echo") >&5 3406 (eval "$ac_compile") 2>conftest.er1 3407 ac_status=$? 3408 grep -v '^ *+' conftest.er1 >conftest.err 3409 rm -f conftest.er1 3410 cat conftest.err >&5 3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); } && { 3413 test -z "$ac_c_werror_flag" || 3414 test ! -s conftest.err 3415 } && test -s conftest.$ac_objext; then 3416 ac_cv_prog_cc_g=yes 3417else 3418 $as_echo "$as_me: failed program was:" >&5 3419sed 's/^/| /' conftest.$ac_ext >&5 3420 3421 3422fi 3423 3424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3425fi 3426 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3428fi 3429 3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431 ac_c_werror_flag=$ac_save_c_werror_flag 3432fi 3433{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3434$as_echo "$ac_cv_prog_cc_g" >&6; } 3435if test "$ac_test_CFLAGS" = set; then 3436 CFLAGS=$ac_save_CFLAGS 3437elif test $ac_cv_prog_cc_g = yes; then 3438 if test "$GCC" = yes; then 3439 CFLAGS="-g -O2" 3440 else 3441 CFLAGS="-g" 3442 fi 3443else 3444 if test "$GCC" = yes; then 3445 CFLAGS="-O2" 3446 else 3447 CFLAGS= 3448 fi 3449fi 3450{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3452if test "${ac_cv_prog_cc_c89+set}" = set; then 3453 $as_echo_n "(cached) " >&6 3454else 3455 ac_cv_prog_cc_c89=no 3456ac_save_CC=$CC 3457cat >conftest.$ac_ext <<_ACEOF 3458/* confdefs.h. */ 3459_ACEOF 3460cat confdefs.h >>conftest.$ac_ext 3461cat >>conftest.$ac_ext <<_ACEOF 3462/* end confdefs.h. */ 3463#include <stdarg.h> 3464#include <stdio.h> 3465#include <sys/types.h> 3466#include <sys/stat.h> 3467/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3468struct buf { int x; }; 3469FILE * (*rcsopen) (struct buf *, struct stat *, int); 3470static char *e (p, i) 3471 char **p; 3472 int i; 3473{ 3474 return p[i]; 3475} 3476static char *f (char * (*g) (char **, int), char **p, ...) 3477{ 3478 char *s; 3479 va_list v; 3480 va_start (v,p); 3481 s = g (p, va_arg (v,int)); 3482 va_end (v); 3483 return s; 3484} 3485 3486/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3487 function prototypes and stuff, but not '\xHH' hex character constants. 3488 These don't provoke an error unfortunately, instead are silently treated 3489 as 'x'. The following induces an error, until -std is added to get 3490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3491 array size at least. It's necessary to write '\x00'==0 to get something 3492 that's true only with -std. */ 3493int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3494 3495/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3496 inside strings and character constants. */ 3497#define FOO(x) 'x' 3498int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3499 3500int test (int i, double x); 3501struct s1 {int (*f) (int a);}; 3502struct s2 {int (*f) (double a);}; 3503int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3504int argc; 3505char **argv; 3506int 3507main () 3508{ 3509return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3516do 3517 CC="$ac_save_CC $ac_arg" 3518 rm -f conftest.$ac_objext 3519if { (ac_try="$ac_compile" 3520case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523esac 3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3525$as_echo "$ac_try_echo") >&5 3526 (eval "$ac_compile") 2>conftest.er1 3527 ac_status=$? 3528 grep -v '^ *+' conftest.er1 >conftest.err 3529 rm -f conftest.er1 3530 cat conftest.err >&5 3531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } && { 3533 test -z "$ac_c_werror_flag" || 3534 test ! -s conftest.err 3535 } && test -s conftest.$ac_objext; then 3536 ac_cv_prog_cc_c89=$ac_arg 3537else 3538 $as_echo "$as_me: failed program was:" >&5 3539sed 's/^/| /' conftest.$ac_ext >&5 3540 3541 3542fi 3543 3544rm -f core conftest.err conftest.$ac_objext 3545 test "x$ac_cv_prog_cc_c89" != "xno" && break 3546done 3547rm -f conftest.$ac_ext 3548CC=$ac_save_CC 3549 3550fi 3551# AC_CACHE_VAL 3552case "x$ac_cv_prog_cc_c89" in 3553 x) 3554 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3555$as_echo "none needed" >&6; } ;; 3556 xno) 3557 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3558$as_echo "unsupported" >&6; } ;; 3559 *) 3560 CC="$CC $ac_cv_prog_cc_c89" 3561 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3562$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3563esac 3564 3565 3566ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571DEPDIR="${am__leading_dot}deps" 3572 3573ac_config_commands="$ac_config_commands depfiles" 3574 3575 3576am_make=${MAKE-make} 3577cat > confinc << 'END' 3578am__doit: 3579 @echo this is the am__doit target 3580.PHONY: am__doit 3581END 3582# If we don't find an include directive, just comment out the code. 3583{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3584$as_echo_n "checking for style of include used by $am_make... " >&6; } 3585am__include="#" 3586am__quote= 3587_am_result=none 3588# First try GNU make style include. 3589echo "include confinc" > confmf 3590# Ignore all kinds of additional output from `make'. 3591case `$am_make -s -f confmf 2> /dev/null` in #( 3592*the\ am__doit\ target*) 3593 am__include=include 3594 am__quote= 3595 _am_result=GNU 3596 ;; 3597esac 3598# Now try BSD make style include. 3599if test "$am__include" = "#"; then 3600 echo '.include "confinc"' > confmf 3601 case `$am_make -s -f confmf 2> /dev/null` in #( 3602 *the\ am__doit\ target*) 3603 am__include=.include 3604 am__quote="\"" 3605 _am_result=BSD 3606 ;; 3607 esac 3608fi 3609 3610 3611{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3612$as_echo "$_am_result" >&6; } 3613rm -f confinc confmf 3614 3615# Check whether --enable-dependency-tracking was given. 3616if test "${enable_dependency_tracking+set}" = set; then 3617 enableval=$enable_dependency_tracking; 3618fi 3619 3620if test "x$enable_dependency_tracking" != xno; then 3621 am_depcomp="$ac_aux_dir/depcomp" 3622 AMDEPBACKSLASH='\' 3623fi 3624 if test "x$enable_dependency_tracking" != xno; then 3625 AMDEP_TRUE= 3626 AMDEP_FALSE='#' 3627else 3628 AMDEP_TRUE='#' 3629 AMDEP_FALSE= 3630fi 3631 3632 3633 3634depcc="$CC" am_compiler_list= 3635 3636{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3637$as_echo_n "checking dependency style of $depcc... " >&6; } 3638if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3642 # We make a subdir and do the tests there. Otherwise we can end up 3643 # making bogus files that we don't know about and never remove. For 3644 # instance it was reported that on HP-UX the gcc test will end up 3645 # making a dummy file named `D' -- because `-MD' means `put the output 3646 # in D'. 3647 mkdir conftest.dir 3648 # Copy depcomp to subdir because otherwise we won't find it if we're 3649 # using a relative directory. 3650 cp "$am_depcomp" conftest.dir 3651 cd conftest.dir 3652 # We will build objects and dependencies in a subdirectory because 3653 # it helps to detect inapplicable dependency modes. For instance 3654 # both Tru64's cc and ICC support -MD to output dependencies as a 3655 # side effect of compilation, but ICC will put the dependencies in 3656 # the current directory while Tru64 will put them in the object 3657 # directory. 3658 mkdir sub 3659 3660 am_cv_CC_dependencies_compiler_type=none 3661 if test "$am_compiler_list" = ""; then 3662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3663 fi 3664 am__universal=false 3665 case " $depcc " in #( 3666 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3667 esac 3668 3669 for depmode in $am_compiler_list; do 3670 # Setup a source with many dependencies, because some compilers 3671 # like to wrap large dependency lists on column 80 (with \), and 3672 # we should not choose a depcomp mode which is confused by this. 3673 # 3674 # We need to recreate these files for each test, as the compiler may 3675 # overwrite some of them when testing with obscure command lines. 3676 # This happens at least with the AIX C compiler. 3677 : > sub/conftest.c 3678 for i in 1 2 3 4 5 6; do 3679 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3681 # Solaris 8's {/usr,}/bin/sh. 3682 touch sub/conftst$i.h 3683 done 3684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3685 3686 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3687 # mode. It turns out that the SunPro C++ compiler does not properly 3688 # handle `-M -o', and we need to detect this. Also, some Intel 3689 # versions had trouble with output in subdirs 3690 am__obj=sub/conftest.${OBJEXT-o} 3691 am__minus_obj="-o $am__obj" 3692 case $depmode in 3693 gcc) 3694 # This depmode causes a compiler race in universal mode. 3695 test "$am__universal" = false || continue 3696 ;; 3697 nosideeffect) 3698 # after this tag, mechanisms are not by side-effect, so they'll 3699 # only be used when explicitly requested 3700 if test "x$enable_dependency_tracking" = xyes; then 3701 continue 3702 else 3703 break 3704 fi 3705 ;; 3706 msvisualcpp | msvcmsys) 3707 # This compiler won't grok `-c -o', but also, the minuso test has 3708 # not run yet. These depmodes are late enough in the game, and 3709 # so weak that their functioning should not be impacted. 3710 am__obj=conftest.${OBJEXT-o} 3711 am__minus_obj= 3712 ;; 3713 none) break ;; 3714 esac 3715 if depmode=$depmode \ 3716 source=sub/conftest.c object=$am__obj \ 3717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3719 >/dev/null 2>conftest.err && 3720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3724 # icc doesn't choke on unknown options, it will just issue warnings 3725 # or remarks (even with -Werror). So we grep stderr for any message 3726 # that says an option was ignored or not supported. 3727 # When given -MP, icc 7.0 and 7.1 complain thusly: 3728 # icc: Command line warning: ignoring option '-M'; no argument required 3729 # The diagnosis changed in icc 8.0: 3730 # icc: Command line remark: option '-MP' not supported 3731 if (grep 'ignoring option' conftest.err || 3732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3733 am_cv_CC_dependencies_compiler_type=$depmode 3734 break 3735 fi 3736 fi 3737 done 3738 3739 cd .. 3740 rm -rf conftest.dir 3741else 3742 am_cv_CC_dependencies_compiler_type=none 3743fi 3744 3745fi 3746{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3747$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3748CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3749 3750 if 3751 test "x$enable_dependency_tracking" != xno \ 3752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3753 am__fastdepCC_TRUE= 3754 am__fastdepCC_FALSE='#' 3755else 3756 am__fastdepCC_TRUE='#' 3757 am__fastdepCC_FALSE= 3758fi 3759 3760 3761case `pwd` in 3762 *\ * | *\ *) 3763 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3764$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3765esac 3766 3767 3768 3769macro_version='2.2.6' 3770macro_revision='1.3012' 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784ltmain="$ac_aux_dir/ltmain.sh" 3785 3786# Make sure we can run config.sub. 3787$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3788 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3789$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3790 { (exit 1); exit 1; }; } 3791 3792{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3793$as_echo_n "checking build system type... " >&6; } 3794if test "${ac_cv_build+set}" = set; then 3795 $as_echo_n "(cached) " >&6 3796else 3797 ac_build_alias=$build_alias 3798test "x$ac_build_alias" = x && 3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3800test "x$ac_build_alias" = x && 3801 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3802$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3803 { (exit 1); exit 1; }; } 3804ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3805 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3806$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3807 { (exit 1); exit 1; }; } 3808 3809fi 3810{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3811$as_echo "$ac_cv_build" >&6; } 3812case $ac_cv_build in 3813*-*-*) ;; 3814*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3815$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3816 { (exit 1); exit 1; }; };; 3817esac 3818build=$ac_cv_build 3819ac_save_IFS=$IFS; IFS='-' 3820set x $ac_cv_build 3821shift 3822build_cpu=$1 3823build_vendor=$2 3824shift; shift 3825# Remember, the first character of IFS is used to create $*, 3826# except with old shells: 3827build_os=$* 3828IFS=$ac_save_IFS 3829case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3830 3831 3832{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3833$as_echo_n "checking host system type... " >&6; } 3834if test "${ac_cv_host+set}" = set; then 3835 $as_echo_n "(cached) " >&6 3836else 3837 if test "x$host_alias" = x; then 3838 ac_cv_host=$ac_cv_build 3839else 3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3841 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3842$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3843 { (exit 1); exit 1; }; } 3844fi 3845 3846fi 3847{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3848$as_echo "$ac_cv_host" >&6; } 3849case $ac_cv_host in 3850*-*-*) ;; 3851*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3852$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3853 { (exit 1); exit 1; }; };; 3854esac 3855host=$ac_cv_host 3856ac_save_IFS=$IFS; IFS='-' 3857set x $ac_cv_host 3858shift 3859host_cpu=$1 3860host_vendor=$2 3861shift; shift 3862# Remember, the first character of IFS is used to create $*, 3863# except with old shells: 3864host_os=$* 3865IFS=$ac_save_IFS 3866case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3867 3868 3869{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3870$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3871if test "${ac_cv_path_SED+set}" = set; then 3872 $as_echo_n "(cached) " >&6 3873else 3874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3875 for ac_i in 1 2 3 4 5 6 7; do 3876 ac_script="$ac_script$as_nl$ac_script" 3877 done 3878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3879 $as_unset ac_script || ac_script= 3880 if test -z "$SED"; then 3881 ac_path_SED_found=false 3882 # Loop through the user's path and test for each of PROGNAME-LIST 3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_prog in sed gsed; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3891 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3892# Check for GNU ac_path_SED and select it if it is found. 3893 # Check for GNU $ac_path_SED 3894case `"$ac_path_SED" --version 2>&1` in 3895*GNU*) 3896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3897*) 3898 ac_count=0 3899 $as_echo_n 0123456789 >"conftest.in" 3900 while : 3901 do 3902 cat "conftest.in" "conftest.in" >"conftest.tmp" 3903 mv "conftest.tmp" "conftest.in" 3904 cp "conftest.in" "conftest.nl" 3905 $as_echo '' >> "conftest.nl" 3906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3908 ac_count=`expr $ac_count + 1` 3909 if test $ac_count -gt ${ac_path_SED_max-0}; then 3910 # Best one so far, save it but keep looking for a better one 3911 ac_cv_path_SED="$ac_path_SED" 3912 ac_path_SED_max=$ac_count 3913 fi 3914 # 10*(2^10) chars as input seems more than enough 3915 test $ac_count -gt 10 && break 3916 done 3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3918esac 3919 3920 $ac_path_SED_found && break 3 3921 done 3922 done 3923done 3924IFS=$as_save_IFS 3925 if test -z "$ac_cv_path_SED"; then 3926 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3927$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3928 { (exit 1); exit 1; }; } 3929 fi 3930else 3931 ac_cv_path_SED=$SED 3932fi 3933 3934fi 3935{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3936$as_echo "$ac_cv_path_SED" >&6; } 3937 SED="$ac_cv_path_SED" 3938 rm -f conftest.sed 3939 3940test -z "$SED" && SED=sed 3941Xsed="$SED -e 1s/^X//" 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3954$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3955if test "${ac_cv_path_GREP+set}" = set; then 3956 $as_echo_n "(cached) " >&6 3957else 3958 if test -z "$GREP"; then 3959 ac_path_GREP_found=false 3960 # Loop through the user's path and test for each of PROGNAME-LIST 3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3963do 3964 IFS=$as_save_IFS 3965 test -z "$as_dir" && as_dir=. 3966 for ac_prog in grep ggrep; do 3967 for ac_exec_ext in '' $ac_executable_extensions; do 3968 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3969 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3970# Check for GNU ac_path_GREP and select it if it is found. 3971 # Check for GNU $ac_path_GREP 3972case `"$ac_path_GREP" --version 2>&1` in 3973*GNU*) 3974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3975*) 3976 ac_count=0 3977 $as_echo_n 0123456789 >"conftest.in" 3978 while : 3979 do 3980 cat "conftest.in" "conftest.in" >"conftest.tmp" 3981 mv "conftest.tmp" "conftest.in" 3982 cp "conftest.in" "conftest.nl" 3983 $as_echo 'GREP' >> "conftest.nl" 3984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3986 ac_count=`expr $ac_count + 1` 3987 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3988 # Best one so far, save it but keep looking for a better one 3989 ac_cv_path_GREP="$ac_path_GREP" 3990 ac_path_GREP_max=$ac_count 3991 fi 3992 # 10*(2^10) chars as input seems more than enough 3993 test $ac_count -gt 10 && break 3994 done 3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3996esac 3997 3998 $ac_path_GREP_found && break 3 3999 done 4000 done 4001done 4002IFS=$as_save_IFS 4003 if test -z "$ac_cv_path_GREP"; then 4004 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4005$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4006 { (exit 1); exit 1; }; } 4007 fi 4008else 4009 ac_cv_path_GREP=$GREP 4010fi 4011 4012fi 4013{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4014$as_echo "$ac_cv_path_GREP" >&6; } 4015 GREP="$ac_cv_path_GREP" 4016 4017 4018{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4019$as_echo_n "checking for egrep... " >&6; } 4020if test "${ac_cv_path_EGREP+set}" = set; then 4021 $as_echo_n "(cached) " >&6 4022else 4023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4024 then ac_cv_path_EGREP="$GREP -E" 4025 else 4026 if test -z "$EGREP"; then 4027 ac_path_EGREP_found=false 4028 # Loop through the user's path and test for each of PROGNAME-LIST 4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4031do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for ac_prog in egrep; do 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4037 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4038# Check for GNU ac_path_EGREP and select it if it is found. 4039 # Check for GNU $ac_path_EGREP 4040case `"$ac_path_EGREP" --version 2>&1` in 4041*GNU*) 4042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4043*) 4044 ac_count=0 4045 $as_echo_n 0123456789 >"conftest.in" 4046 while : 4047 do 4048 cat "conftest.in" "conftest.in" >"conftest.tmp" 4049 mv "conftest.tmp" "conftest.in" 4050 cp "conftest.in" "conftest.nl" 4051 $as_echo 'EGREP' >> "conftest.nl" 4052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4054 ac_count=`expr $ac_count + 1` 4055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4056 # Best one so far, save it but keep looking for a better one 4057 ac_cv_path_EGREP="$ac_path_EGREP" 4058 ac_path_EGREP_max=$ac_count 4059 fi 4060 # 10*(2^10) chars as input seems more than enough 4061 test $ac_count -gt 10 && break 4062 done 4063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4064esac 4065 4066 $ac_path_EGREP_found && break 3 4067 done 4068 done 4069done 4070IFS=$as_save_IFS 4071 if test -z "$ac_cv_path_EGREP"; then 4072 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4073$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4074 { (exit 1); exit 1; }; } 4075 fi 4076else 4077 ac_cv_path_EGREP=$EGREP 4078fi 4079 4080 fi 4081fi 4082{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4083$as_echo "$ac_cv_path_EGREP" >&6; } 4084 EGREP="$ac_cv_path_EGREP" 4085 4086 4087{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4088$as_echo_n "checking for fgrep... " >&6; } 4089if test "${ac_cv_path_FGREP+set}" = set; then 4090 $as_echo_n "(cached) " >&6 4091else 4092 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4093 then ac_cv_path_FGREP="$GREP -F" 4094 else 4095 if test -z "$FGREP"; then 4096 ac_path_FGREP_found=false 4097 # Loop through the user's path and test for each of PROGNAME-LIST 4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4100do 4101 IFS=$as_save_IFS 4102 test -z "$as_dir" && as_dir=. 4103 for ac_prog in fgrep; do 4104 for ac_exec_ext in '' $ac_executable_extensions; do 4105 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4106 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4107# Check for GNU ac_path_FGREP and select it if it is found. 4108 # Check for GNU $ac_path_FGREP 4109case `"$ac_path_FGREP" --version 2>&1` in 4110*GNU*) 4111 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4112*) 4113 ac_count=0 4114 $as_echo_n 0123456789 >"conftest.in" 4115 while : 4116 do 4117 cat "conftest.in" "conftest.in" >"conftest.tmp" 4118 mv "conftest.tmp" "conftest.in" 4119 cp "conftest.in" "conftest.nl" 4120 $as_echo 'FGREP' >> "conftest.nl" 4121 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4123 ac_count=`expr $ac_count + 1` 4124 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4125 # Best one so far, save it but keep looking for a better one 4126 ac_cv_path_FGREP="$ac_path_FGREP" 4127 ac_path_FGREP_max=$ac_count 4128 fi 4129 # 10*(2^10) chars as input seems more than enough 4130 test $ac_count -gt 10 && break 4131 done 4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4133esac 4134 4135 $ac_path_FGREP_found && break 3 4136 done 4137 done 4138done 4139IFS=$as_save_IFS 4140 if test -z "$ac_cv_path_FGREP"; then 4141 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4142$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4143 { (exit 1); exit 1; }; } 4144 fi 4145else 4146 ac_cv_path_FGREP=$FGREP 4147fi 4148 4149 fi 4150fi 4151{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4152$as_echo "$ac_cv_path_FGREP" >&6; } 4153 FGREP="$ac_cv_path_FGREP" 4154 4155 4156test -z "$GREP" && GREP=grep 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176# Check whether --with-gnu-ld was given. 4177if test "${with_gnu_ld+set}" = set; then 4178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4179else 4180 with_gnu_ld=no 4181fi 4182 4183ac_prog=ld 4184if test "$GCC" = yes; then 4185 # Check if gcc -print-prog-name=ld gives a path. 4186 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4187$as_echo_n "checking for ld used by $CC... " >&6; } 4188 case $host in 4189 *-*-mingw*) 4190 # gcc leaves a trailing carriage return which upsets mingw 4191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4192 *) 4193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4194 esac 4195 case $ac_prog in 4196 # Accept absolute paths. 4197 [\\/]* | ?:[\\/]*) 4198 re_direlt='/[^/][^/]*/\.\./' 4199 # Canonicalize the pathname of ld 4200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4203 done 4204 test -z "$LD" && LD="$ac_prog" 4205 ;; 4206 "") 4207 # If it fails, then pretend we aren't using GCC. 4208 ac_prog=ld 4209 ;; 4210 *) 4211 # If it is relative, then search for the first ld in PATH. 4212 with_gnu_ld=unknown 4213 ;; 4214 esac 4215elif test "$with_gnu_ld" = yes; then 4216 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4217$as_echo_n "checking for GNU ld... " >&6; } 4218else 4219 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4220$as_echo_n "checking for non-GNU ld... " >&6; } 4221fi 4222if test "${lt_cv_path_LD+set}" = set; then 4223 $as_echo_n "(cached) " >&6 4224else 4225 if test -z "$LD"; then 4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4227 for ac_dir in $PATH; do 4228 IFS="$lt_save_ifs" 4229 test -z "$ac_dir" && ac_dir=. 4230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4231 lt_cv_path_LD="$ac_dir/$ac_prog" 4232 # Check to see if the program is GNU ld. I'd rather use --version, 4233 # but apparently some variants of GNU ld only accept -v. 4234 # Break only if it was the GNU/non-GNU ld that we prefer. 4235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4236 *GNU* | *'with BFD'*) 4237 test "$with_gnu_ld" != no && break 4238 ;; 4239 *) 4240 test "$with_gnu_ld" != yes && break 4241 ;; 4242 esac 4243 fi 4244 done 4245 IFS="$lt_save_ifs" 4246else 4247 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4248fi 4249fi 4250 4251LD="$lt_cv_path_LD" 4252if test -n "$LD"; then 4253 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4254$as_echo "$LD" >&6; } 4255else 4256 { $as_echo "$as_me:$LINENO: result: no" >&5 4257$as_echo "no" >&6; } 4258fi 4259test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4260$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4261 { (exit 1); exit 1; }; } 4262{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4263$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4264if test "${lt_cv_prog_gnu_ld+set}" = set; then 4265 $as_echo_n "(cached) " >&6 4266else 4267 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4268case `$LD -v 2>&1 </dev/null` in 4269*GNU* | *'with BFD'*) 4270 lt_cv_prog_gnu_ld=yes 4271 ;; 4272*) 4273 lt_cv_prog_gnu_ld=no 4274 ;; 4275esac 4276fi 4277{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4278$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4279with_gnu_ld=$lt_cv_prog_gnu_ld 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4290$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4291if test "${lt_cv_path_NM+set}" = set; then 4292 $as_echo_n "(cached) " >&6 4293else 4294 if test -n "$NM"; then 4295 # Let the user override the test. 4296 lt_cv_path_NM="$NM" 4297else 4298 lt_nm_to_check="${ac_tool_prefix}nm" 4299 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4300 lt_nm_to_check="$lt_nm_to_check nm" 4301 fi 4302 for lt_tmp_nm in $lt_nm_to_check; do 4303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4304 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4305 IFS="$lt_save_ifs" 4306 test -z "$ac_dir" && ac_dir=. 4307 tmp_nm="$ac_dir/$lt_tmp_nm" 4308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4309 # Check to see if the nm accepts a BSD-compat flag. 4310 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4311 # nm: unknown option "B" ignored 4312 # Tru64's nm complains that /dev/null is an invalid object file 4313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4314 */dev/null* | *'Invalid file or object type'*) 4315 lt_cv_path_NM="$tmp_nm -B" 4316 break 4317 ;; 4318 *) 4319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4320 */dev/null*) 4321 lt_cv_path_NM="$tmp_nm -p" 4322 break 4323 ;; 4324 *) 4325 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4326 continue # so that we can try to find one that supports BSD flags 4327 ;; 4328 esac 4329 ;; 4330 esac 4331 fi 4332 done 4333 IFS="$lt_save_ifs" 4334 done 4335 : ${lt_cv_path_NM=no} 4336fi 4337fi 4338{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4339$as_echo "$lt_cv_path_NM" >&6; } 4340if test "$lt_cv_path_NM" != "no"; then 4341 NM="$lt_cv_path_NM" 4342else 4343 # Didn't find any BSD compatible name lister, look for dumpbin. 4344 if test -n "$ac_tool_prefix"; then 4345 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4346 do 4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4348set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4350$as_echo_n "checking for $ac_word... " >&6; } 4351if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4352 $as_echo_n "(cached) " >&6 4353else 4354 if test -n "$DUMPBIN"; then 4355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4356else 4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4358for as_dir in $PATH 4359do 4360 IFS=$as_save_IFS 4361 test -z "$as_dir" && as_dir=. 4362 for ac_exec_ext in '' $ac_executable_extensions; do 4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4366 break 2 4367 fi 4368done 4369done 4370IFS=$as_save_IFS 4371 4372fi 4373fi 4374DUMPBIN=$ac_cv_prog_DUMPBIN 4375if test -n "$DUMPBIN"; then 4376 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4377$as_echo "$DUMPBIN" >&6; } 4378else 4379 { $as_echo "$as_me:$LINENO: result: no" >&5 4380$as_echo "no" >&6; } 4381fi 4382 4383 4384 test -n "$DUMPBIN" && break 4385 done 4386fi 4387if test -z "$DUMPBIN"; then 4388 ac_ct_DUMPBIN=$DUMPBIN 4389 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4390do 4391 # Extract the first word of "$ac_prog", so it can be a program name with args. 4392set dummy $ac_prog; ac_word=$2 4393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4394$as_echo_n "checking for $ac_word... " >&6; } 4395if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -n "$ac_ct_DUMPBIN"; then 4399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4400else 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412done 4413done 4414IFS=$as_save_IFS 4415 4416fi 4417fi 4418ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4419if test -n "$ac_ct_DUMPBIN"; then 4420 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4421$as_echo "$ac_ct_DUMPBIN" >&6; } 4422else 4423 { $as_echo "$as_me:$LINENO: result: no" >&5 4424$as_echo "no" >&6; } 4425fi 4426 4427 4428 test -n "$ac_ct_DUMPBIN" && break 4429done 4430 4431 if test "x$ac_ct_DUMPBIN" = x; then 4432 DUMPBIN=":" 4433 else 4434 case $cross_compiling:$ac_tool_warned in 4435yes:) 4436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4438ac_tool_warned=yes ;; 4439esac 4440 DUMPBIN=$ac_ct_DUMPBIN 4441 fi 4442fi 4443 4444 4445 if test "$DUMPBIN" != ":"; then 4446 NM="$DUMPBIN" 4447 fi 4448fi 4449test -z "$NM" && NM=nm 4450 4451 4452 4453 4454 4455 4456{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4457$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4458if test "${lt_cv_nm_interface+set}" = set; then 4459 $as_echo_n "(cached) " >&6 4460else 4461 lt_cv_nm_interface="BSD nm" 4462 echo "int some_variable = 0;" > conftest.$ac_ext 4463 (eval echo "\"\$as_me:4463: $ac_compile\"" >&5) 4464 (eval "$ac_compile" 2>conftest.err) 4465 cat conftest.err >&5 4466 (eval echo "\"\$as_me:4466: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4468 cat conftest.err >&5 4469 (eval echo "\"\$as_me:4469: output\"" >&5) 4470 cat conftest.out >&5 4471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4472 lt_cv_nm_interface="MS dumpbin" 4473 fi 4474 rm -f conftest* 4475fi 4476{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4477$as_echo "$lt_cv_nm_interface" >&6; } 4478 4479{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4480$as_echo_n "checking whether ln -s works... " >&6; } 4481LN_S=$as_ln_s 4482if test "$LN_S" = "ln -s"; then 4483 { $as_echo "$as_me:$LINENO: result: yes" >&5 4484$as_echo "yes" >&6; } 4485else 4486 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4487$as_echo "no, using $LN_S" >&6; } 4488fi 4489 4490# find the maximum length of command line arguments 4491{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4492$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4493if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4494 $as_echo_n "(cached) " >&6 4495else 4496 i=0 4497 teststring="ABCD" 4498 4499 case $build_os in 4500 msdosdjgpp*) 4501 # On DJGPP, this test can blow up pretty badly due to problems in libc 4502 # (any single argument exceeding 2000 bytes causes a buffer overrun 4503 # during glob expansion). Even if it were fixed, the result of this 4504 # check would be larger than it should be. 4505 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4506 ;; 4507 4508 gnu*) 4509 # Under GNU Hurd, this test is not required because there is 4510 # no limit to the length of command line arguments. 4511 # Libtool will interpret -1 as no limit whatsoever 4512 lt_cv_sys_max_cmd_len=-1; 4513 ;; 4514 4515 cygwin* | mingw* | cegcc*) 4516 # On Win9x/ME, this test blows up -- it succeeds, but takes 4517 # about 5 minutes as the teststring grows exponentially. 4518 # Worse, since 9x/ME are not pre-emptively multitasking, 4519 # you end up with a "frozen" computer, even though with patience 4520 # the test eventually succeeds (with a max line length of 256k). 4521 # Instead, let's just punt: use the minimum linelength reported by 4522 # all of the supported platforms: 8192 (on NT/2K/XP). 4523 lt_cv_sys_max_cmd_len=8192; 4524 ;; 4525 4526 amigaos*) 4527 # On AmigaOS with pdksh, this test takes hours, literally. 4528 # So we just punt and use a minimum line length of 8192. 4529 lt_cv_sys_max_cmd_len=8192; 4530 ;; 4531 4532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4533 # This has been around since 386BSD, at least. Likely further. 4534 if test -x /sbin/sysctl; then 4535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4536 elif test -x /usr/sbin/sysctl; then 4537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4538 else 4539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4540 fi 4541 # And add a safety zone 4542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4544 ;; 4545 4546 interix*) 4547 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4548 lt_cv_sys_max_cmd_len=196608 4549 ;; 4550 4551 osf*) 4552 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4553 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4554 # nice to cause kernel panics so lets avoid the loop below. 4555 # First set a reasonable default. 4556 lt_cv_sys_max_cmd_len=16384 4557 # 4558 if test -x /sbin/sysconfig; then 4559 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4560 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4561 esac 4562 fi 4563 ;; 4564 sco3.2v5*) 4565 lt_cv_sys_max_cmd_len=102400 4566 ;; 4567 sysv5* | sco5v6* | sysv4.2uw2*) 4568 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4569 if test -n "$kargmax"; then 4570 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4571 else 4572 lt_cv_sys_max_cmd_len=32768 4573 fi 4574 ;; 4575 *) 4576 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4577 if test -n "$lt_cv_sys_max_cmd_len"; then 4578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4580 else 4581 # Make teststring a little bigger before we do anything with it. 4582 # a 1K string should be a reasonable start. 4583 for i in 1 2 3 4 5 6 7 8 ; do 4584 teststring=$teststring$teststring 4585 done 4586 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4587 # If test is not a shell built-in, we'll probably end up computing a 4588 # maximum length that is only half of the actual maximum length, but 4589 # we can't tell. 4590 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4591 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4592 test $i != 17 # 1/2 MB should be enough 4593 do 4594 i=`expr $i + 1` 4595 teststring=$teststring$teststring 4596 done 4597 # Only check the string length outside the loop. 4598 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4599 teststring= 4600 # Add a significant safety factor because C++ compilers can tack on 4601 # massive amounts of additional arguments before passing them to the 4602 # linker. It appears as though 1/2 is a usable value. 4603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4604 fi 4605 ;; 4606 esac 4607 4608fi 4609 4610if test -n $lt_cv_sys_max_cmd_len ; then 4611 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4612$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4613else 4614 { $as_echo "$as_me:$LINENO: result: none" >&5 4615$as_echo "none" >&6; } 4616fi 4617max_cmd_len=$lt_cv_sys_max_cmd_len 4618 4619 4620 4621 4622 4623 4624: ${CP="cp -f"} 4625: ${MV="mv -f"} 4626: ${RM="rm -f"} 4627 4628{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4629$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4630# Try some XSI features 4631xsi_shell=no 4632( _lt_dummy="a/b/c" 4633 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4634 = c,a/b,, \ 4635 && eval 'test $(( 1 + 1 )) -eq 2 \ 4636 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4637 && xsi_shell=yes 4638{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4639$as_echo "$xsi_shell" >&6; } 4640 4641 4642{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4643$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4644lt_shell_append=no 4645( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4646 >/dev/null 2>&1 \ 4647 && lt_shell_append=yes 4648{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4649$as_echo "$lt_shell_append" >&6; } 4650 4651 4652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4653 lt_unset=unset 4654else 4655 lt_unset=false 4656fi 4657 4658 4659 4660 4661 4662# test EBCDIC or ASCII 4663case `echo X|tr X '\101'` in 4664 A) # ASCII based system 4665 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4666 lt_SP2NL='tr \040 \012' 4667 lt_NL2SP='tr \015\012 \040\040' 4668 ;; 4669 *) # EBCDIC based system 4670 lt_SP2NL='tr \100 \n' 4671 lt_NL2SP='tr \r\n \100\100' 4672 ;; 4673esac 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4684$as_echo_n "checking for $LD option to reload object files... " >&6; } 4685if test "${lt_cv_ld_reload_flag+set}" = set; then 4686 $as_echo_n "(cached) " >&6 4687else 4688 lt_cv_ld_reload_flag='-r' 4689fi 4690{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4691$as_echo "$lt_cv_ld_reload_flag" >&6; } 4692reload_flag=$lt_cv_ld_reload_flag 4693case $reload_flag in 4694"" | " "*) ;; 4695*) reload_flag=" $reload_flag" ;; 4696esac 4697reload_cmds='$LD$reload_flag -o $output$reload_objs' 4698case $host_os in 4699 darwin*) 4700 if test "$GCC" = yes; then 4701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4702 else 4703 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4704 fi 4705 ;; 4706esac 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716if test -n "$ac_tool_prefix"; then 4717 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4718set dummy ${ac_tool_prefix}objdump; ac_word=$2 4719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4720$as_echo_n "checking for $ac_word... " >&6; } 4721if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4722 $as_echo_n "(cached) " >&6 4723else 4724 if test -n "$OBJDUMP"; then 4725 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4726else 4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4728for as_dir in $PATH 4729do 4730 IFS=$as_save_IFS 4731 test -z "$as_dir" && as_dir=. 4732 for ac_exec_ext in '' $ac_executable_extensions; do 4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4736 break 2 4737 fi 4738done 4739done 4740IFS=$as_save_IFS 4741 4742fi 4743fi 4744OBJDUMP=$ac_cv_prog_OBJDUMP 4745if test -n "$OBJDUMP"; then 4746 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4747$as_echo "$OBJDUMP" >&6; } 4748else 4749 { $as_echo "$as_me:$LINENO: result: no" >&5 4750$as_echo "no" >&6; } 4751fi 4752 4753 4754fi 4755if test -z "$ac_cv_prog_OBJDUMP"; then 4756 ac_ct_OBJDUMP=$OBJDUMP 4757 # Extract the first word of "objdump", so it can be a program name with args. 4758set dummy objdump; ac_word=$2 4759{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4760$as_echo_n "checking for $ac_word... " >&6; } 4761if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4762 $as_echo_n "(cached) " >&6 4763else 4764 if test -n "$ac_ct_OBJDUMP"; then 4765 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4766else 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4768for as_dir in $PATH 4769do 4770 IFS=$as_save_IFS 4771 test -z "$as_dir" && as_dir=. 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4774 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4776 break 2 4777 fi 4778done 4779done 4780IFS=$as_save_IFS 4781 4782fi 4783fi 4784ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4785if test -n "$ac_ct_OBJDUMP"; then 4786 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4787$as_echo "$ac_ct_OBJDUMP" >&6; } 4788else 4789 { $as_echo "$as_me:$LINENO: result: no" >&5 4790$as_echo "no" >&6; } 4791fi 4792 4793 if test "x$ac_ct_OBJDUMP" = x; then 4794 OBJDUMP="false" 4795 else 4796 case $cross_compiling:$ac_tool_warned in 4797yes:) 4798{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4800ac_tool_warned=yes ;; 4801esac 4802 OBJDUMP=$ac_ct_OBJDUMP 4803 fi 4804else 4805 OBJDUMP="$ac_cv_prog_OBJDUMP" 4806fi 4807 4808test -z "$OBJDUMP" && OBJDUMP=objdump 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4819$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4820if test "${lt_cv_deplibs_check_method+set}" = set; then 4821 $as_echo_n "(cached) " >&6 4822else 4823 lt_cv_file_magic_cmd='$MAGIC_CMD' 4824lt_cv_file_magic_test_file= 4825lt_cv_deplibs_check_method='unknown' 4826# Need to set the preceding variable on all platforms that support 4827# interlibrary dependencies. 4828# 'none' -- dependencies not supported. 4829# `unknown' -- same as none, but documents that we really don't know. 4830# 'pass_all' -- all dependencies passed with no checks. 4831# 'test_compile' -- check by making test program. 4832# 'file_magic [[regex]]' -- check by looking for files in library path 4833# which responds to the $file_magic_cmd with a given extended regex. 4834# If you have `file' or equivalent on your system and you're not sure 4835# whether `pass_all' will *always* work, you probably want this one. 4836 4837case $host_os in 4838aix[4-9]*) 4839 lt_cv_deplibs_check_method=pass_all 4840 ;; 4841 4842beos*) 4843 lt_cv_deplibs_check_method=pass_all 4844 ;; 4845 4846bsdi[45]*) 4847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4848 lt_cv_file_magic_cmd='/usr/bin/file -L' 4849 lt_cv_file_magic_test_file=/shlib/libc.so 4850 ;; 4851 4852cygwin*) 4853 # func_win32_libid is a shell function defined in ltmain.sh 4854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4855 lt_cv_file_magic_cmd='func_win32_libid' 4856 ;; 4857 4858mingw* | pw32*) 4859 # Base MSYS/MinGW do not provide the 'file' command needed by 4860 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4861 # unless we find 'file', for example because we are cross-compiling. 4862 if ( file / ) >/dev/null 2>&1; then 4863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4864 lt_cv_file_magic_cmd='func_win32_libid' 4865 else 4866 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4867 lt_cv_file_magic_cmd='$OBJDUMP -f' 4868 fi 4869 ;; 4870 4871cegcc) 4872 # use the weaker test based on 'objdump'. See mingw*. 4873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4874 lt_cv_file_magic_cmd='$OBJDUMP -f' 4875 ;; 4876 4877darwin* | rhapsody*) 4878 lt_cv_deplibs_check_method=pass_all 4879 ;; 4880 4881freebsd* | dragonfly*) 4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4883 case $host_cpu in 4884 i*86 ) 4885 # Not sure whether the presence of OpenBSD here was a mistake. 4886 # Let's accept both of them until this is cleared up. 4887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4888 lt_cv_file_magic_cmd=/usr/bin/file 4889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4890 ;; 4891 esac 4892 else 4893 lt_cv_deplibs_check_method=pass_all 4894 fi 4895 ;; 4896 4897gnu*) 4898 lt_cv_deplibs_check_method=pass_all 4899 ;; 4900 4901hpux10.20* | hpux11*) 4902 lt_cv_file_magic_cmd=/usr/bin/file 4903 case $host_cpu in 4904 ia64*) 4905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4907 ;; 4908 hppa*64*) 4909 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]' 4910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4911 ;; 4912 *) 4913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4914 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4915 ;; 4916 esac 4917 ;; 4918 4919interix[3-9]*) 4920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4922 ;; 4923 4924irix5* | irix6* | nonstopux*) 4925 case $LD in 4926 *-32|*"-32 ") libmagic=32-bit;; 4927 *-n32|*"-n32 ") libmagic=N32;; 4928 *-64|*"-64 ") libmagic=64-bit;; 4929 *) libmagic=never-match;; 4930 esac 4931 lt_cv_deplibs_check_method=pass_all 4932 ;; 4933 4934# This must be Linux ELF. 4935linux* | k*bsd*-gnu) 4936 lt_cv_deplibs_check_method=pass_all 4937 ;; 4938 4939netbsd*) 4940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4942 else 4943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4944 fi 4945 ;; 4946 4947newos6*) 4948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4949 lt_cv_file_magic_cmd=/usr/bin/file 4950 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4951 ;; 4952 4953*nto* | *qnx*) 4954 lt_cv_deplibs_check_method=pass_all 4955 ;; 4956 4957openbsd*) 4958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4960 else 4961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4962 fi 4963 ;; 4964 4965osf3* | osf4* | osf5*) 4966 lt_cv_deplibs_check_method=pass_all 4967 ;; 4968 4969rdos*) 4970 lt_cv_deplibs_check_method=pass_all 4971 ;; 4972 4973solaris*) 4974 lt_cv_deplibs_check_method=pass_all 4975 ;; 4976 4977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4978 lt_cv_deplibs_check_method=pass_all 4979 ;; 4980 4981sysv4 | sysv4.3*) 4982 case $host_vendor in 4983 motorola) 4984 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]' 4985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4986 ;; 4987 ncr) 4988 lt_cv_deplibs_check_method=pass_all 4989 ;; 4990 sequent) 4991 lt_cv_file_magic_cmd='/bin/file' 4992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4993 ;; 4994 sni) 4995 lt_cv_file_magic_cmd='/bin/file' 4996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4997 lt_cv_file_magic_test_file=/lib/libc.so 4998 ;; 4999 siemens) 5000 lt_cv_deplibs_check_method=pass_all 5001 ;; 5002 pc) 5003 lt_cv_deplibs_check_method=pass_all 5004 ;; 5005 esac 5006 ;; 5007 5008tpf*) 5009 lt_cv_deplibs_check_method=pass_all 5010 ;; 5011esac 5012 5013fi 5014{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5015$as_echo "$lt_cv_deplibs_check_method" >&6; } 5016file_magic_cmd=$lt_cv_file_magic_cmd 5017deplibs_check_method=$lt_cv_deplibs_check_method 5018test -z "$deplibs_check_method" && deplibs_check_method=unknown 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031if test -n "$ac_tool_prefix"; then 5032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5033set dummy ${ac_tool_prefix}ar; ac_word=$2 5034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5035$as_echo_n "checking for $ac_word... " >&6; } 5036if test "${ac_cv_prog_AR+set}" = set; then 5037 $as_echo_n "(cached) " >&6 5038else 5039 if test -n "$AR"; then 5040 ac_cv_prog_AR="$AR" # Let the user override the test. 5041else 5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5043for as_dir in $PATH 5044do 5045 IFS=$as_save_IFS 5046 test -z "$as_dir" && as_dir=. 5047 for ac_exec_ext in '' $ac_executable_extensions; do 5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5049 ac_cv_prog_AR="${ac_tool_prefix}ar" 5050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5051 break 2 5052 fi 5053done 5054done 5055IFS=$as_save_IFS 5056 5057fi 5058fi 5059AR=$ac_cv_prog_AR 5060if test -n "$AR"; then 5061 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5062$as_echo "$AR" >&6; } 5063else 5064 { $as_echo "$as_me:$LINENO: result: no" >&5 5065$as_echo "no" >&6; } 5066fi 5067 5068 5069fi 5070if test -z "$ac_cv_prog_AR"; then 5071 ac_ct_AR=$AR 5072 # Extract the first word of "ar", so it can be a program name with args. 5073set dummy ar; ac_word=$2 5074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5075$as_echo_n "checking for $ac_word... " >&6; } 5076if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5077 $as_echo_n "(cached) " >&6 5078else 5079 if test -n "$ac_ct_AR"; then 5080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5081else 5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083for as_dir in $PATH 5084do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_exec_ext in '' $ac_executable_extensions; do 5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5089 ac_cv_prog_ac_ct_AR="ar" 5090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5091 break 2 5092 fi 5093done 5094done 5095IFS=$as_save_IFS 5096 5097fi 5098fi 5099ac_ct_AR=$ac_cv_prog_ac_ct_AR 5100if test -n "$ac_ct_AR"; then 5101 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5102$as_echo "$ac_ct_AR" >&6; } 5103else 5104 { $as_echo "$as_me:$LINENO: result: no" >&5 5105$as_echo "no" >&6; } 5106fi 5107 5108 if test "x$ac_ct_AR" = x; then 5109 AR="false" 5110 else 5111 case $cross_compiling:$ac_tool_warned in 5112yes:) 5113{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5115ac_tool_warned=yes ;; 5116esac 5117 AR=$ac_ct_AR 5118 fi 5119else 5120 AR="$ac_cv_prog_AR" 5121fi 5122 5123test -z "$AR" && AR=ar 5124test -z "$AR_FLAGS" && AR_FLAGS=cru 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136if test -n "$ac_tool_prefix"; then 5137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5138set dummy ${ac_tool_prefix}strip; ac_word=$2 5139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5140$as_echo_n "checking for $ac_word... " >&6; } 5141if test "${ac_cv_prog_STRIP+set}" = set; then 5142 $as_echo_n "(cached) " >&6 5143else 5144 if test -n "$STRIP"; then 5145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5146else 5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5148for as_dir in $PATH 5149do 5150 IFS=$as_save_IFS 5151 test -z "$as_dir" && as_dir=. 5152 for ac_exec_ext in '' $ac_executable_extensions; do 5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5154 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5156 break 2 5157 fi 5158done 5159done 5160IFS=$as_save_IFS 5161 5162fi 5163fi 5164STRIP=$ac_cv_prog_STRIP 5165if test -n "$STRIP"; then 5166 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5167$as_echo "$STRIP" >&6; } 5168else 5169 { $as_echo "$as_me:$LINENO: result: no" >&5 5170$as_echo "no" >&6; } 5171fi 5172 5173 5174fi 5175if test -z "$ac_cv_prog_STRIP"; then 5176 ac_ct_STRIP=$STRIP 5177 # Extract the first word of "strip", so it can be a program name with args. 5178set dummy strip; ac_word=$2 5179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5180$as_echo_n "checking for $ac_word... " >&6; } 5181if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5182 $as_echo_n "(cached) " >&6 5183else 5184 if test -n "$ac_ct_STRIP"; then 5185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5186else 5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5188for as_dir in $PATH 5189do 5190 IFS=$as_save_IFS 5191 test -z "$as_dir" && as_dir=. 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5194 ac_cv_prog_ac_ct_STRIP="strip" 5195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198done 5199done 5200IFS=$as_save_IFS 5201 5202fi 5203fi 5204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5205if test -n "$ac_ct_STRIP"; then 5206 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5207$as_echo "$ac_ct_STRIP" >&6; } 5208else 5209 { $as_echo "$as_me:$LINENO: result: no" >&5 5210$as_echo "no" >&6; } 5211fi 5212 5213 if test "x$ac_ct_STRIP" = x; then 5214 STRIP=":" 5215 else 5216 case $cross_compiling:$ac_tool_warned in 5217yes:) 5218{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5220ac_tool_warned=yes ;; 5221esac 5222 STRIP=$ac_ct_STRIP 5223 fi 5224else 5225 STRIP="$ac_cv_prog_STRIP" 5226fi 5227 5228test -z "$STRIP" && STRIP=: 5229 5230 5231 5232 5233 5234 5235if test -n "$ac_tool_prefix"; then 5236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5237set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5239$as_echo_n "checking for $ac_word... " >&6; } 5240if test "${ac_cv_prog_RANLIB+set}" = set; then 5241 $as_echo_n "(cached) " >&6 5242else 5243 if test -n "$RANLIB"; then 5244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5245else 5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247for as_dir in $PATH 5248do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_exec_ext in '' $ac_executable_extensions; do 5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5253 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5255 break 2 5256 fi 5257done 5258done 5259IFS=$as_save_IFS 5260 5261fi 5262fi 5263RANLIB=$ac_cv_prog_RANLIB 5264if test -n "$RANLIB"; then 5265 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5266$as_echo "$RANLIB" >&6; } 5267else 5268 { $as_echo "$as_me:$LINENO: result: no" >&5 5269$as_echo "no" >&6; } 5270fi 5271 5272 5273fi 5274if test -z "$ac_cv_prog_RANLIB"; then 5275 ac_ct_RANLIB=$RANLIB 5276 # Extract the first word of "ranlib", so it can be a program name with args. 5277set dummy ranlib; ac_word=$2 5278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5279$as_echo_n "checking for $ac_word... " >&6; } 5280if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5281 $as_echo_n "(cached) " >&6 5282else 5283 if test -n "$ac_ct_RANLIB"; then 5284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5285else 5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5287for as_dir in $PATH 5288do 5289 IFS=$as_save_IFS 5290 test -z "$as_dir" && as_dir=. 5291 for ac_exec_ext in '' $ac_executable_extensions; do 5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5293 ac_cv_prog_ac_ct_RANLIB="ranlib" 5294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5295 break 2 5296 fi 5297done 5298done 5299IFS=$as_save_IFS 5300 5301fi 5302fi 5303ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5304if test -n "$ac_ct_RANLIB"; then 5305 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5306$as_echo "$ac_ct_RANLIB" >&6; } 5307else 5308 { $as_echo "$as_me:$LINENO: result: no" >&5 5309$as_echo "no" >&6; } 5310fi 5311 5312 if test "x$ac_ct_RANLIB" = x; then 5313 RANLIB=":" 5314 else 5315 case $cross_compiling:$ac_tool_warned in 5316yes:) 5317{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5319ac_tool_warned=yes ;; 5320esac 5321 RANLIB=$ac_ct_RANLIB 5322 fi 5323else 5324 RANLIB="$ac_cv_prog_RANLIB" 5325fi 5326 5327test -z "$RANLIB" && RANLIB=: 5328 5329 5330 5331 5332 5333 5334# Determine commands to create old-style static archives. 5335old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5336old_postinstall_cmds='chmod 644 $oldlib' 5337old_postuninstall_cmds= 5338 5339if test -n "$RANLIB"; then 5340 case $host_os in 5341 openbsd*) 5342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5343 ;; 5344 *) 5345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5346 ;; 5347 esac 5348 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5349fi 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384# If no C compiler was specified, use CC. 5385LTCC=${LTCC-"$CC"} 5386 5387# If no C compiler flags were specified, use CFLAGS. 5388LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5389 5390# Allow CC to be a program name with arguments. 5391compiler=$CC 5392 5393 5394# Check for command to grab the raw symbol name followed by C symbol from nm. 5395{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5396$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5397if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5398 $as_echo_n "(cached) " >&6 5399else 5400 5401# These are sane defaults that work on at least a few old systems. 5402# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5403 5404# Character class describing NM global symbol codes. 5405symcode='[BCDEGRST]' 5406 5407# Regexp to match symbols that can be accessed directly from C. 5408sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5409 5410# Define system-specific variables. 5411case $host_os in 5412aix*) 5413 symcode='[BCDT]' 5414 ;; 5415cygwin* | mingw* | pw32* | cegcc*) 5416 symcode='[ABCDGISTW]' 5417 ;; 5418hpux*) 5419 if test "$host_cpu" = ia64; then 5420 symcode='[ABCDEGRST]' 5421 fi 5422 ;; 5423irix* | nonstopux*) 5424 symcode='[BCDEGRST]' 5425 ;; 5426osf*) 5427 symcode='[BCDEGQRST]' 5428 ;; 5429solaris*) 5430 symcode='[BDRT]' 5431 ;; 5432sco3.2v5*) 5433 symcode='[DT]' 5434 ;; 5435sysv4.2uw2*) 5436 symcode='[DT]' 5437 ;; 5438sysv5* | sco5v6* | unixware* | OpenUNIX*) 5439 symcode='[ABDT]' 5440 ;; 5441sysv4) 5442 symcode='[DFNSTU]' 5443 ;; 5444esac 5445 5446# If we're using GNU nm, then use its standard symbol codes. 5447case `$NM -V 2>&1` in 5448*GNU* | *'with BFD'*) 5449 symcode='[ABCDGIRSTW]' ;; 5450esac 5451 5452# Transform an extracted symbol line into a proper C declaration. 5453# Some systems (esp. on ia64) link data and code symbols differently, 5454# so use this general approach. 5455lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5456 5457# Transform an extracted symbol line into symbol name and symbol address 5458lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5460 5461# Handle CRLF in mingw tool chain 5462opt_cr= 5463case $build_os in 5464mingw*) 5465 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5466 ;; 5467esac 5468 5469# Try without a prefix underscore, then with it. 5470for ac_symprfx in "" "_"; do 5471 5472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5473 symxfrm="\\1 $ac_symprfx\\2 \\2" 5474 5475 # Write the raw and C identifiers. 5476 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5477 # Fake it for dumpbin and say T for any non-static function 5478 # and D for any global variable. 5479 # Also find C++ and __fastcall symbols from MSVC++, 5480 # which start with @ or ?. 5481 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5482" {last_section=section; section=\$ 3};"\ 5483" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5484" \$ 0!~/External *\|/{next};"\ 5485" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5486" {if(hide[section]) next};"\ 5487" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5488" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5489" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5490" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5491" ' prfx=^$ac_symprfx" 5492 else 5493 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5494 fi 5495 5496 # Check to see that the pipe works correctly. 5497 pipe_works=no 5498 5499 rm -f conftest* 5500 cat > conftest.$ac_ext <<_LT_EOF 5501#ifdef __cplusplus 5502extern "C" { 5503#endif 5504char nm_test_var; 5505void nm_test_func(void); 5506void nm_test_func(void){} 5507#ifdef __cplusplus 5508} 5509#endif 5510int main(){nm_test_var='a';nm_test_func();return(0);} 5511_LT_EOF 5512 5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5514 (eval $ac_compile) 2>&5 5515 ac_status=$? 5516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); }; then 5518 # Now try to grab the symbols. 5519 nlist=conftest.nm 5520 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5521 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5522 ac_status=$? 5523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); } && test -s "$nlist"; then 5525 # Try sorting and uniquifying the output. 5526 if sort "$nlist" | uniq > "$nlist"T; then 5527 mv -f "$nlist"T "$nlist" 5528 else 5529 rm -f "$nlist"T 5530 fi 5531 5532 # Make sure that we snagged all the symbols we need. 5533 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5534 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5535 cat <<_LT_EOF > conftest.$ac_ext 5536#ifdef __cplusplus 5537extern "C" { 5538#endif 5539 5540_LT_EOF 5541 # Now generate the symbol file. 5542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5543 5544 cat <<_LT_EOF >> conftest.$ac_ext 5545 5546/* The mapping between symbol names and symbols. */ 5547const struct { 5548 const char *name; 5549 void *address; 5550} 5551lt__PROGRAM__LTX_preloaded_symbols[] = 5552{ 5553 { "@PROGRAM@", (void *) 0 }, 5554_LT_EOF 5555 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5556 cat <<\_LT_EOF >> conftest.$ac_ext 5557 {0, (void *) 0} 5558}; 5559 5560/* This works around a problem in FreeBSD linker */ 5561#ifdef FREEBSD_WORKAROUND 5562static const void *lt_preloaded_setup() { 5563 return lt__PROGRAM__LTX_preloaded_symbols; 5564} 5565#endif 5566 5567#ifdef __cplusplus 5568} 5569#endif 5570_LT_EOF 5571 # Now try linking the two files. 5572 mv conftest.$ac_objext conftstm.$ac_objext 5573 lt_save_LIBS="$LIBS" 5574 lt_save_CFLAGS="$CFLAGS" 5575 LIBS="conftstm.$ac_objext" 5576 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5578 (eval $ac_link) 2>&5 5579 ac_status=$? 5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5581 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5582 pipe_works=yes 5583 fi 5584 LIBS="$lt_save_LIBS" 5585 CFLAGS="$lt_save_CFLAGS" 5586 else 5587 echo "cannot find nm_test_func in $nlist" >&5 5588 fi 5589 else 5590 echo "cannot find nm_test_var in $nlist" >&5 5591 fi 5592 else 5593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5594 fi 5595 else 5596 echo "$progname: failed program was:" >&5 5597 cat conftest.$ac_ext >&5 5598 fi 5599 rm -rf conftest* conftst* 5600 5601 # Do not use the global_symbol_pipe unless it works. 5602 if test "$pipe_works" = yes; then 5603 break 5604 else 5605 lt_cv_sys_global_symbol_pipe= 5606 fi 5607done 5608 5609fi 5610 5611if test -z "$lt_cv_sys_global_symbol_pipe"; then 5612 lt_cv_sys_global_symbol_to_cdecl= 5613fi 5614if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5615 { $as_echo "$as_me:$LINENO: result: failed" >&5 5616$as_echo "failed" >&6; } 5617else 5618 { $as_echo "$as_me:$LINENO: result: ok" >&5 5619$as_echo "ok" >&6; } 5620fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644# Check whether --enable-libtool-lock was given. 5645if test "${enable_libtool_lock+set}" = set; then 5646 enableval=$enable_libtool_lock; 5647fi 5648 5649test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5650 5651# Some flags need to be propagated to the compiler or linker for good 5652# libtool support. 5653case $host in 5654ia64-*-hpux*) 5655 # Find out which ABI we are using. 5656 echo 'int i;' > conftest.$ac_ext 5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5658 (eval $ac_compile) 2>&5 5659 ac_status=$? 5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 (exit $ac_status); }; then 5662 case `/usr/bin/file conftest.$ac_objext` in 5663 *ELF-32*) 5664 HPUX_IA64_MODE="32" 5665 ;; 5666 *ELF-64*) 5667 HPUX_IA64_MODE="64" 5668 ;; 5669 esac 5670 fi 5671 rm -rf conftest* 5672 ;; 5673*-*-irix6*) 5674 # Find out which ABI we are using. 5675 echo '#line 5675 "configure"' > conftest.$ac_ext 5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5677 (eval $ac_compile) 2>&5 5678 ac_status=$? 5679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); }; then 5681 if test "$lt_cv_prog_gnu_ld" = yes; then 5682 case `/usr/bin/file conftest.$ac_objext` in 5683 *32-bit*) 5684 LD="${LD-ld} -melf32bsmip" 5685 ;; 5686 *N32*) 5687 LD="${LD-ld} -melf32bmipn32" 5688 ;; 5689 *64-bit*) 5690 LD="${LD-ld} -melf64bmip" 5691 ;; 5692 esac 5693 else 5694 case `/usr/bin/file conftest.$ac_objext` in 5695 *32-bit*) 5696 LD="${LD-ld} -32" 5697 ;; 5698 *N32*) 5699 LD="${LD-ld} -n32" 5700 ;; 5701 *64-bit*) 5702 LD="${LD-ld} -64" 5703 ;; 5704 esac 5705 fi 5706 fi 5707 rm -rf conftest* 5708 ;; 5709 5710x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5711s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5712 # Find out which ABI we are using. 5713 echo 'int i;' > conftest.$ac_ext 5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5715 (eval $ac_compile) 2>&5 5716 ac_status=$? 5717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); }; then 5719 case `/usr/bin/file conftest.o` in 5720 *32-bit*) 5721 case $host in 5722 x86_64-*kfreebsd*-gnu) 5723 LD="${LD-ld} -m elf_i386_fbsd" 5724 ;; 5725 x86_64-*linux*) 5726 LD="${LD-ld} -m elf_i386" 5727 ;; 5728 ppc64-*linux*|powerpc64-*linux*) 5729 LD="${LD-ld} -m elf32ppclinux" 5730 ;; 5731 s390x-*linux*) 5732 LD="${LD-ld} -m elf_s390" 5733 ;; 5734 sparc64-*linux*) 5735 LD="${LD-ld} -m elf32_sparc" 5736 ;; 5737 esac 5738 ;; 5739 *64-bit*) 5740 case $host in 5741 x86_64-*kfreebsd*-gnu) 5742 LD="${LD-ld} -m elf_x86_64_fbsd" 5743 ;; 5744 x86_64-*linux*) 5745 LD="${LD-ld} -m elf_x86_64" 5746 ;; 5747 ppc*-*linux*|powerpc*-*linux*) 5748 LD="${LD-ld} -m elf64ppc" 5749 ;; 5750 s390*-*linux*|s390*-*tpf*) 5751 LD="${LD-ld} -m elf64_s390" 5752 ;; 5753 sparc*-*linux*) 5754 LD="${LD-ld} -m elf64_sparc" 5755 ;; 5756 esac 5757 ;; 5758 esac 5759 fi 5760 rm -rf conftest* 5761 ;; 5762 5763*-*-sco3.2v5*) 5764 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5765 SAVE_CFLAGS="$CFLAGS" 5766 CFLAGS="$CFLAGS -belf" 5767 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5768$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5769if test "${lt_cv_cc_needs_belf+set}" = set; then 5770 $as_echo_n "(cached) " >&6 5771else 5772 ac_ext=c 5773ac_cpp='$CPP $CPPFLAGS' 5774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5776ac_compiler_gnu=$ac_cv_c_compiler_gnu 5777 5778 cat >conftest.$ac_ext <<_ACEOF 5779/* confdefs.h. */ 5780_ACEOF 5781cat confdefs.h >>conftest.$ac_ext 5782cat >>conftest.$ac_ext <<_ACEOF 5783/* end confdefs.h. */ 5784 5785int 5786main () 5787{ 5788 5789 ; 5790 return 0; 5791} 5792_ACEOF 5793rm -f conftest.$ac_objext conftest$ac_exeext 5794if { (ac_try="$ac_link" 5795case "(($ac_try" in 5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5797 *) ac_try_echo=$ac_try;; 5798esac 5799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5800$as_echo "$ac_try_echo") >&5 5801 (eval "$ac_link") 2>conftest.er1 5802 ac_status=$? 5803 grep -v '^ *+' conftest.er1 >conftest.err 5804 rm -f conftest.er1 5805 cat conftest.err >&5 5806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5807 (exit $ac_status); } && { 5808 test -z "$ac_c_werror_flag" || 5809 test ! -s conftest.err 5810 } && test -s conftest$ac_exeext && { 5811 test "$cross_compiling" = yes || 5812 $as_test_x conftest$ac_exeext 5813 }; then 5814 lt_cv_cc_needs_belf=yes 5815else 5816 $as_echo "$as_me: failed program was:" >&5 5817sed 's/^/| /' conftest.$ac_ext >&5 5818 5819 lt_cv_cc_needs_belf=no 5820fi 5821 5822rm -rf conftest.dSYM 5823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5824 conftest$ac_exeext conftest.$ac_ext 5825 ac_ext=c 5826ac_cpp='$CPP $CPPFLAGS' 5827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5829ac_compiler_gnu=$ac_cv_c_compiler_gnu 5830 5831fi 5832{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5833$as_echo "$lt_cv_cc_needs_belf" >&6; } 5834 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5836 CFLAGS="$SAVE_CFLAGS" 5837 fi 5838 ;; 5839sparc*-*solaris*) 5840 # Find out which ABI we are using. 5841 echo 'int i;' > conftest.$ac_ext 5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5843 (eval $ac_compile) 2>&5 5844 ac_status=$? 5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); }; then 5847 case `/usr/bin/file conftest.o` in 5848 *64-bit*) 5849 case $lt_cv_prog_gnu_ld in 5850 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5851 *) 5852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5853 LD="${LD-ld} -64" 5854 fi 5855 ;; 5856 esac 5857 ;; 5858 esac 5859 fi 5860 rm -rf conftest* 5861 ;; 5862esac 5863 5864need_locks="$enable_libtool_lock" 5865 5866 5867 case $host_os in 5868 rhapsody* | darwin*) 5869 if test -n "$ac_tool_prefix"; then 5870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5871set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5872{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5873$as_echo_n "checking for $ac_word... " >&6; } 5874if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5875 $as_echo_n "(cached) " >&6 5876else 5877 if test -n "$DSYMUTIL"; then 5878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5879else 5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5888 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892done 5893IFS=$as_save_IFS 5894 5895fi 5896fi 5897DSYMUTIL=$ac_cv_prog_DSYMUTIL 5898if test -n "$DSYMUTIL"; then 5899 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5900$as_echo "$DSYMUTIL" >&6; } 5901else 5902 { $as_echo "$as_me:$LINENO: result: no" >&5 5903$as_echo "no" >&6; } 5904fi 5905 5906 5907fi 5908if test -z "$ac_cv_prog_DSYMUTIL"; then 5909 ac_ct_DSYMUTIL=$DSYMUTIL 5910 # Extract the first word of "dsymutil", so it can be a program name with args. 5911set dummy dsymutil; ac_word=$2 5912{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$ac_ct_DSYMUTIL"; then 5918 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5927 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5938if test -n "$ac_ct_DSYMUTIL"; then 5939 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5940$as_echo "$ac_ct_DSYMUTIL" >&6; } 5941else 5942 { $as_echo "$as_me:$LINENO: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 if test "x$ac_ct_DSYMUTIL" = x; then 5947 DSYMUTIL=":" 5948 else 5949 case $cross_compiling:$ac_tool_warned in 5950yes:) 5951{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5953ac_tool_warned=yes ;; 5954esac 5955 DSYMUTIL=$ac_ct_DSYMUTIL 5956 fi 5957else 5958 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5959fi 5960 5961 if test -n "$ac_tool_prefix"; then 5962 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5963set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if test "${ac_cv_prog_NMEDIT+set}" = set; then 5967 $as_echo_n "(cached) " >&6 5968else 5969 if test -n "$NMEDIT"; then 5970 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5971else 5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984done 5985IFS=$as_save_IFS 5986 5987fi 5988fi 5989NMEDIT=$ac_cv_prog_NMEDIT 5990if test -n "$NMEDIT"; then 5991 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5992$as_echo "$NMEDIT" >&6; } 5993else 5994 { $as_echo "$as_me:$LINENO: result: no" >&5 5995$as_echo "no" >&6; } 5996fi 5997 5998 5999fi 6000if test -z "$ac_cv_prog_NMEDIT"; then 6001 ac_ct_NMEDIT=$NMEDIT 6002 # Extract the first word of "nmedit", so it can be a program name with args. 6003set dummy nmedit; ac_word=$2 6004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6005$as_echo_n "checking for $ac_word... " >&6; } 6006if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6007 $as_echo_n "(cached) " >&6 6008else 6009 if test -n "$ac_ct_NMEDIT"; then 6010 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6011else 6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6019 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023done 6024done 6025IFS=$as_save_IFS 6026 6027fi 6028fi 6029ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6030if test -n "$ac_ct_NMEDIT"; then 6031 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6032$as_echo "$ac_ct_NMEDIT" >&6; } 6033else 6034 { $as_echo "$as_me:$LINENO: result: no" >&5 6035$as_echo "no" >&6; } 6036fi 6037 6038 if test "x$ac_ct_NMEDIT" = x; then 6039 NMEDIT=":" 6040 else 6041 case $cross_compiling:$ac_tool_warned in 6042yes:) 6043{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6045ac_tool_warned=yes ;; 6046esac 6047 NMEDIT=$ac_ct_NMEDIT 6048 fi 6049else 6050 NMEDIT="$ac_cv_prog_NMEDIT" 6051fi 6052 6053 if test -n "$ac_tool_prefix"; then 6054 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6055set dummy ${ac_tool_prefix}lipo; ac_word=$2 6056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if test "${ac_cv_prog_LIPO+set}" = set; then 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$LIPO"; then 6062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6071 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081LIPO=$ac_cv_prog_LIPO 6082if test -n "$LIPO"; then 6083 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6084$as_echo "$LIPO" >&6; } 6085else 6086 { $as_echo "$as_me:$LINENO: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091fi 6092if test -z "$ac_cv_prog_LIPO"; then 6093 ac_ct_LIPO=$LIPO 6094 # Extract the first word of "lipo", so it can be a program name with args. 6095set dummy lipo; ac_word=$2 6096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6097$as_echo_n "checking for $ac_word... " >&6; } 6098if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6099 $as_echo_n "(cached) " >&6 6100else 6101 if test -n "$ac_ct_LIPO"; then 6102 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 test -z "$as_dir" && as_dir=. 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6111 ac_cv_prog_ac_ct_LIPO="lipo" 6112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6113 break 2 6114 fi 6115done 6116done 6117IFS=$as_save_IFS 6118 6119fi 6120fi 6121ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6122if test -n "$ac_ct_LIPO"; then 6123 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6124$as_echo "$ac_ct_LIPO" >&6; } 6125else 6126 { $as_echo "$as_me:$LINENO: result: no" >&5 6127$as_echo "no" >&6; } 6128fi 6129 6130 if test "x$ac_ct_LIPO" = x; then 6131 LIPO=":" 6132 else 6133 case $cross_compiling:$ac_tool_warned in 6134yes:) 6135{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6137ac_tool_warned=yes ;; 6138esac 6139 LIPO=$ac_ct_LIPO 6140 fi 6141else 6142 LIPO="$ac_cv_prog_LIPO" 6143fi 6144 6145 if test -n "$ac_tool_prefix"; then 6146 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6147set dummy ${ac_tool_prefix}otool; ac_word=$2 6148{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6149$as_echo_n "checking for $ac_word... " >&6; } 6150if test "${ac_cv_prog_OTOOL+set}" = set; then 6151 $as_echo_n "(cached) " >&6 6152else 6153 if test -n "$OTOOL"; then 6154 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6155else 6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6157for as_dir in $PATH 6158do 6159 IFS=$as_save_IFS 6160 test -z "$as_dir" && as_dir=. 6161 for ac_exec_ext in '' $ac_executable_extensions; do 6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6165 break 2 6166 fi 6167done 6168done 6169IFS=$as_save_IFS 6170 6171fi 6172fi 6173OTOOL=$ac_cv_prog_OTOOL 6174if test -n "$OTOOL"; then 6175 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6176$as_echo "$OTOOL" >&6; } 6177else 6178 { $as_echo "$as_me:$LINENO: result: no" >&5 6179$as_echo "no" >&6; } 6180fi 6181 6182 6183fi 6184if test -z "$ac_cv_prog_OTOOL"; then 6185 ac_ct_OTOOL=$OTOOL 6186 # Extract the first word of "otool", so it can be a program name with args. 6187set dummy otool; ac_word=$2 6188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6189$as_echo_n "checking for $ac_word... " >&6; } 6190if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6191 $as_echo_n "(cached) " >&6 6192else 6193 if test -n "$ac_ct_OTOOL"; then 6194 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6195else 6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197for as_dir in $PATH 6198do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6203 ac_cv_prog_ac_ct_OTOOL="otool" 6204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207done 6208done 6209IFS=$as_save_IFS 6210 6211fi 6212fi 6213ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6214if test -n "$ac_ct_OTOOL"; then 6215 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6216$as_echo "$ac_ct_OTOOL" >&6; } 6217else 6218 { $as_echo "$as_me:$LINENO: result: no" >&5 6219$as_echo "no" >&6; } 6220fi 6221 6222 if test "x$ac_ct_OTOOL" = x; then 6223 OTOOL=":" 6224 else 6225 case $cross_compiling:$ac_tool_warned in 6226yes:) 6227{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6229ac_tool_warned=yes ;; 6230esac 6231 OTOOL=$ac_ct_OTOOL 6232 fi 6233else 6234 OTOOL="$ac_cv_prog_OTOOL" 6235fi 6236 6237 if test -n "$ac_tool_prefix"; then 6238 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6239set dummy ${ac_tool_prefix}otool64; ac_word=$2 6240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6241$as_echo_n "checking for $ac_word... " >&6; } 6242if test "${ac_cv_prog_OTOOL64+set}" = set; then 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$OTOOL64"; then 6246 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6247else 6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249for as_dir in $PATH 6250do 6251 IFS=$as_save_IFS 6252 test -z "$as_dir" && as_dir=. 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265OTOOL64=$ac_cv_prog_OTOOL64 6266if test -n "$OTOOL64"; then 6267 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6268$as_echo "$OTOOL64" >&6; } 6269else 6270 { $as_echo "$as_me:$LINENO: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 6275fi 6276if test -z "$ac_cv_prog_OTOOL64"; then 6277 ac_ct_OTOOL64=$OTOOL64 6278 # Extract the first word of "otool64", so it can be a program name with args. 6279set dummy otool64; ac_word=$2 6280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$ac_ct_OTOOL64"; then 6286 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6295 ac_cv_prog_ac_ct_OTOOL64="otool64" 6296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6306if test -n "$ac_ct_OTOOL64"; then 6307 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6308$as_echo "$ac_ct_OTOOL64" >&6; } 6309else 6310 { $as_echo "$as_me:$LINENO: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 if test "x$ac_ct_OTOOL64" = x; then 6315 OTOOL64=":" 6316 else 6317 case $cross_compiling:$ac_tool_warned in 6318yes:) 6319{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6321ac_tool_warned=yes ;; 6322esac 6323 OTOOL64=$ac_ct_OTOOL64 6324 fi 6325else 6326 OTOOL64="$ac_cv_prog_OTOOL64" 6327fi 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6356$as_echo_n "checking for -single_module linker flag... " >&6; } 6357if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6358 $as_echo_n "(cached) " >&6 6359else 6360 lt_cv_apple_cc_single_mod=no 6361 if test -z "${LT_MULTI_MODULE}"; then 6362 # By default we will add the -single_module flag. You can override 6363 # by either setting the environment variable LT_MULTI_MODULE 6364 # non-empty at configure time, or by adding -multi_module to the 6365 # link flags. 6366 rm -rf libconftest.dylib* 6367 echo "int foo(void){return 1;}" > conftest.c 6368 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6369-dynamiclib -Wl,-single_module conftest.c" >&5 6370 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6371 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6372 _lt_result=$? 6373 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6374 lt_cv_apple_cc_single_mod=yes 6375 else 6376 cat conftest.err >&5 6377 fi 6378 rm -rf libconftest.dylib* 6379 rm -f conftest.* 6380 fi 6381fi 6382{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6383$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6384 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6386if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6387 $as_echo_n "(cached) " >&6 6388else 6389 lt_cv_ld_exported_symbols_list=no 6390 save_LDFLAGS=$LDFLAGS 6391 echo "_main" > conftest.sym 6392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6393 cat >conftest.$ac_ext <<_ACEOF 6394/* confdefs.h. */ 6395_ACEOF 6396cat confdefs.h >>conftest.$ac_ext 6397cat >>conftest.$ac_ext <<_ACEOF 6398/* end confdefs.h. */ 6399 6400int 6401main () 6402{ 6403 6404 ; 6405 return 0; 6406} 6407_ACEOF 6408rm -f conftest.$ac_objext conftest$ac_exeext 6409if { (ac_try="$ac_link" 6410case "(($ac_try" in 6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6412 *) ac_try_echo=$ac_try;; 6413esac 6414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6415$as_echo "$ac_try_echo") >&5 6416 (eval "$ac_link") 2>conftest.er1 6417 ac_status=$? 6418 grep -v '^ *+' conftest.er1 >conftest.err 6419 rm -f conftest.er1 6420 cat conftest.err >&5 6421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); } && { 6423 test -z "$ac_c_werror_flag" || 6424 test ! -s conftest.err 6425 } && test -s conftest$ac_exeext && { 6426 test "$cross_compiling" = yes || 6427 $as_test_x conftest$ac_exeext 6428 }; then 6429 lt_cv_ld_exported_symbols_list=yes 6430else 6431 $as_echo "$as_me: failed program was:" >&5 6432sed 's/^/| /' conftest.$ac_ext >&5 6433 6434 lt_cv_ld_exported_symbols_list=no 6435fi 6436 6437rm -rf conftest.dSYM 6438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6439 conftest$ac_exeext conftest.$ac_ext 6440 LDFLAGS="$save_LDFLAGS" 6441 6442fi 6443{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6444$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6445 case $host_os in 6446 rhapsody* | darwin1.[012]) 6447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6448 darwin1.*) 6449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6450 darwin*) # darwin 5.x on 6451 # if running on 10.5 or later, the deployment target defaults 6452 # to the OS version, if on x86, and 10.4, the deployment 6453 # target defaults to 10.4. Don't you love it? 6454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6455 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6457 10.[012]*) 6458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6459 10.*) 6460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6461 esac 6462 ;; 6463 esac 6464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6465 _lt_dar_single_mod='$single_module' 6466 fi 6467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6469 else 6470 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6471 fi 6472 if test "$DSYMUTIL" != ":"; then 6473 _lt_dsymutil='~$DSYMUTIL $lib || :' 6474 else 6475 _lt_dsymutil= 6476 fi 6477 ;; 6478 esac 6479 6480ac_ext=c 6481ac_cpp='$CPP $CPPFLAGS' 6482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6484ac_compiler_gnu=$ac_cv_c_compiler_gnu 6485{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6486$as_echo_n "checking how to run the C preprocessor... " >&6; } 6487# On Suns, sometimes $CPP names a directory. 6488if test -n "$CPP" && test -d "$CPP"; then 6489 CPP= 6490fi 6491if test -z "$CPP"; then 6492 if test "${ac_cv_prog_CPP+set}" = set; then 6493 $as_echo_n "(cached) " >&6 6494else 6495 # Double quotes because CPP needs to be expanded 6496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6497 do 6498 ac_preproc_ok=false 6499for ac_c_preproc_warn_flag in '' yes 6500do 6501 # Use a header file that comes with gcc, so configuring glibc 6502 # with a fresh cross-compiler works. 6503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6504 # <limits.h> exists even on freestanding compilers. 6505 # On the NeXT, cc -E runs the code through the compiler's parser, 6506 # not just through cpp. "Syntax error" is here to catch this case. 6507 cat >conftest.$ac_ext <<_ACEOF 6508/* confdefs.h. */ 6509_ACEOF 6510cat confdefs.h >>conftest.$ac_ext 6511cat >>conftest.$ac_ext <<_ACEOF 6512/* end confdefs.h. */ 6513#ifdef __STDC__ 6514# include <limits.h> 6515#else 6516# include <assert.h> 6517#endif 6518 Syntax error 6519_ACEOF 6520if { (ac_try="$ac_cpp conftest.$ac_ext" 6521case "(($ac_try" in 6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6523 *) ac_try_echo=$ac_try;; 6524esac 6525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6526$as_echo "$ac_try_echo") >&5 6527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } >/dev/null && { 6534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6535 test ! -s conftest.err 6536 }; then 6537 : 6538else 6539 $as_echo "$as_me: failed program was:" >&5 6540sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 # Broken: fails on valid input. 6543continue 6544fi 6545 6546rm -f conftest.err conftest.$ac_ext 6547 6548 # OK, works on sane cases. Now check whether nonexistent headers 6549 # can be detected and how. 6550 cat >conftest.$ac_ext <<_ACEOF 6551/* confdefs.h. */ 6552_ACEOF 6553cat confdefs.h >>conftest.$ac_ext 6554cat >>conftest.$ac_ext <<_ACEOF 6555/* end confdefs.h. */ 6556#include <ac_nonexistent.h> 6557_ACEOF 6558if { (ac_try="$ac_cpp conftest.$ac_ext" 6559case "(($ac_try" in 6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6561 *) ac_try_echo=$ac_try;; 6562esac 6563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6564$as_echo "$ac_try_echo") >&5 6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6566 ac_status=$? 6567 grep -v '^ *+' conftest.er1 >conftest.err 6568 rm -f conftest.er1 6569 cat conftest.err >&5 6570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6571 (exit $ac_status); } >/dev/null && { 6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6573 test ! -s conftest.err 6574 }; then 6575 # Broken: success on invalid input. 6576continue 6577else 6578 $as_echo "$as_me: failed program was:" >&5 6579sed 's/^/| /' conftest.$ac_ext >&5 6580 6581 # Passes both tests. 6582ac_preproc_ok=: 6583break 6584fi 6585 6586rm -f conftest.err conftest.$ac_ext 6587 6588done 6589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6590rm -f conftest.err conftest.$ac_ext 6591if $ac_preproc_ok; then 6592 break 6593fi 6594 6595 done 6596 ac_cv_prog_CPP=$CPP 6597 6598fi 6599 CPP=$ac_cv_prog_CPP 6600else 6601 ac_cv_prog_CPP=$CPP 6602fi 6603{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6604$as_echo "$CPP" >&6; } 6605ac_preproc_ok=false 6606for ac_c_preproc_warn_flag in '' yes 6607do 6608 # Use a header file that comes with gcc, so configuring glibc 6609 # with a fresh cross-compiler works. 6610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6611 # <limits.h> exists even on freestanding compilers. 6612 # On the NeXT, cc -E runs the code through the compiler's parser, 6613 # not just through cpp. "Syntax error" is here to catch this case. 6614 cat >conftest.$ac_ext <<_ACEOF 6615/* confdefs.h. */ 6616_ACEOF 6617cat confdefs.h >>conftest.$ac_ext 6618cat >>conftest.$ac_ext <<_ACEOF 6619/* end confdefs.h. */ 6620#ifdef __STDC__ 6621# include <limits.h> 6622#else 6623# include <assert.h> 6624#endif 6625 Syntax error 6626_ACEOF 6627if { (ac_try="$ac_cpp conftest.$ac_ext" 6628case "(($ac_try" in 6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6630 *) ac_try_echo=$ac_try;; 6631esac 6632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6633$as_echo "$ac_try_echo") >&5 6634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6635 ac_status=$? 6636 grep -v '^ *+' conftest.er1 >conftest.err 6637 rm -f conftest.er1 6638 cat conftest.err >&5 6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6640 (exit $ac_status); } >/dev/null && { 6641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6642 test ! -s conftest.err 6643 }; then 6644 : 6645else 6646 $as_echo "$as_me: failed program was:" >&5 6647sed 's/^/| /' conftest.$ac_ext >&5 6648 6649 # Broken: fails on valid input. 6650continue 6651fi 6652 6653rm -f conftest.err conftest.$ac_ext 6654 6655 # OK, works on sane cases. Now check whether nonexistent headers 6656 # can be detected and how. 6657 cat >conftest.$ac_ext <<_ACEOF 6658/* confdefs.h. */ 6659_ACEOF 6660cat confdefs.h >>conftest.$ac_ext 6661cat >>conftest.$ac_ext <<_ACEOF 6662/* end confdefs.h. */ 6663#include <ac_nonexistent.h> 6664_ACEOF 6665if { (ac_try="$ac_cpp conftest.$ac_ext" 6666case "(($ac_try" in 6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6668 *) ac_try_echo=$ac_try;; 6669esac 6670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6671$as_echo "$ac_try_echo") >&5 6672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6673 ac_status=$? 6674 grep -v '^ *+' conftest.er1 >conftest.err 6675 rm -f conftest.er1 6676 cat conftest.err >&5 6677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6678 (exit $ac_status); } >/dev/null && { 6679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6680 test ! -s conftest.err 6681 }; then 6682 # Broken: success on invalid input. 6683continue 6684else 6685 $as_echo "$as_me: failed program was:" >&5 6686sed 's/^/| /' conftest.$ac_ext >&5 6687 6688 # Passes both tests. 6689ac_preproc_ok=: 6690break 6691fi 6692 6693rm -f conftest.err conftest.$ac_ext 6694 6695done 6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6697rm -f conftest.err conftest.$ac_ext 6698if $ac_preproc_ok; then 6699 : 6700else 6701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6703{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6704See \`config.log' for more details." >&5 6705$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6706See \`config.log' for more details." >&2;} 6707 { (exit 1); exit 1; }; }; } 6708fi 6709 6710ac_ext=c 6711ac_cpp='$CPP $CPPFLAGS' 6712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6714ac_compiler_gnu=$ac_cv_c_compiler_gnu 6715 6716 6717{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6718$as_echo_n "checking for ANSI C header files... " >&6; } 6719if test "${ac_cv_header_stdc+set}" = set; then 6720 $as_echo_n "(cached) " >&6 6721else 6722 cat >conftest.$ac_ext <<_ACEOF 6723/* confdefs.h. */ 6724_ACEOF 6725cat confdefs.h >>conftest.$ac_ext 6726cat >>conftest.$ac_ext <<_ACEOF 6727/* end confdefs.h. */ 6728#include <stdlib.h> 6729#include <stdarg.h> 6730#include <string.h> 6731#include <float.h> 6732 6733int 6734main () 6735{ 6736 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (ac_try="$ac_compile" 6743case "(($ac_try" in 6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6745 *) ac_try_echo=$ac_try;; 6746esac 6747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6748$as_echo "$ac_try_echo") >&5 6749 (eval "$ac_compile") 2>conftest.er1 6750 ac_status=$? 6751 grep -v '^ *+' conftest.er1 >conftest.err 6752 rm -f conftest.er1 6753 cat conftest.err >&5 6754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); } && { 6756 test -z "$ac_c_werror_flag" || 6757 test ! -s conftest.err 6758 } && test -s conftest.$ac_objext; then 6759 ac_cv_header_stdc=yes 6760else 6761 $as_echo "$as_me: failed program was:" >&5 6762sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 ac_cv_header_stdc=no 6765fi 6766 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768 6769if test $ac_cv_header_stdc = yes; then 6770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6771 cat >conftest.$ac_ext <<_ACEOF 6772/* confdefs.h. */ 6773_ACEOF 6774cat confdefs.h >>conftest.$ac_ext 6775cat >>conftest.$ac_ext <<_ACEOF 6776/* end confdefs.h. */ 6777#include <string.h> 6778 6779_ACEOF 6780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6781 $EGREP "memchr" >/dev/null 2>&1; then 6782 : 6783else 6784 ac_cv_header_stdc=no 6785fi 6786rm -f conftest* 6787 6788fi 6789 6790if test $ac_cv_header_stdc = yes; then 6791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6792 cat >conftest.$ac_ext <<_ACEOF 6793/* confdefs.h. */ 6794_ACEOF 6795cat confdefs.h >>conftest.$ac_ext 6796cat >>conftest.$ac_ext <<_ACEOF 6797/* end confdefs.h. */ 6798#include <stdlib.h> 6799 6800_ACEOF 6801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6802 $EGREP "free" >/dev/null 2>&1; then 6803 : 6804else 6805 ac_cv_header_stdc=no 6806fi 6807rm -f conftest* 6808 6809fi 6810 6811if test $ac_cv_header_stdc = yes; then 6812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6813 if test "$cross_compiling" = yes; then 6814 : 6815else 6816 cat >conftest.$ac_ext <<_ACEOF 6817/* confdefs.h. */ 6818_ACEOF 6819cat confdefs.h >>conftest.$ac_ext 6820cat >>conftest.$ac_ext <<_ACEOF 6821/* end confdefs.h. */ 6822#include <ctype.h> 6823#include <stdlib.h> 6824#if ((' ' & 0x0FF) == 0x020) 6825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6827#else 6828# define ISLOWER(c) \ 6829 (('a' <= (c) && (c) <= 'i') \ 6830 || ('j' <= (c) && (c) <= 'r') \ 6831 || ('s' <= (c) && (c) <= 'z')) 6832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6833#endif 6834 6835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6836int 6837main () 6838{ 6839 int i; 6840 for (i = 0; i < 256; i++) 6841 if (XOR (islower (i), ISLOWER (i)) 6842 || toupper (i) != TOUPPER (i)) 6843 return 2; 6844 return 0; 6845} 6846_ACEOF 6847rm -f conftest$ac_exeext 6848if { (ac_try="$ac_link" 6849case "(($ac_try" in 6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6851 *) ac_try_echo=$ac_try;; 6852esac 6853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6854$as_echo "$ac_try_echo") >&5 6855 (eval "$ac_link") 2>&5 6856 ac_status=$? 6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6859 { (case "(($ac_try" in 6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6861 *) ac_try_echo=$ac_try;; 6862esac 6863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6864$as_echo "$ac_try_echo") >&5 6865 (eval "$ac_try") 2>&5 6866 ac_status=$? 6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6868 (exit $ac_status); }; }; then 6869 : 6870else 6871 $as_echo "$as_me: program exited with status $ac_status" >&5 6872$as_echo "$as_me: failed program was:" >&5 6873sed 's/^/| /' conftest.$ac_ext >&5 6874 6875( exit $ac_status ) 6876ac_cv_header_stdc=no 6877fi 6878rm -rf conftest.dSYM 6879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6880fi 6881 6882 6883fi 6884fi 6885{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6886$as_echo "$ac_cv_header_stdc" >&6; } 6887if test $ac_cv_header_stdc = yes; then 6888 6889cat >>confdefs.h <<\_ACEOF 6890#define STDC_HEADERS 1 6891_ACEOF 6892 6893fi 6894 6895# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6906 inttypes.h stdint.h unistd.h 6907do 6908as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6909{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6910$as_echo_n "checking for $ac_header... " >&6; } 6911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat >conftest.$ac_ext <<_ACEOF 6915/* confdefs.h. */ 6916_ACEOF 6917cat confdefs.h >>conftest.$ac_ext 6918cat >>conftest.$ac_ext <<_ACEOF 6919/* end confdefs.h. */ 6920$ac_includes_default 6921 6922#include <$ac_header> 6923_ACEOF 6924rm -f conftest.$ac_objext 6925if { (ac_try="$ac_compile" 6926case "(($ac_try" in 6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6928 *) ac_try_echo=$ac_try;; 6929esac 6930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6931$as_echo "$ac_try_echo") >&5 6932 (eval "$ac_compile") 2>conftest.er1 6933 ac_status=$? 6934 grep -v '^ *+' conftest.er1 >conftest.err 6935 rm -f conftest.er1 6936 cat conftest.err >&5 6937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6938 (exit $ac_status); } && { 6939 test -z "$ac_c_werror_flag" || 6940 test ! -s conftest.err 6941 } && test -s conftest.$ac_objext; then 6942 eval "$as_ac_Header=yes" 6943else 6944 $as_echo "$as_me: failed program was:" >&5 6945sed 's/^/| /' conftest.$ac_ext >&5 6946 6947 eval "$as_ac_Header=no" 6948fi 6949 6950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6951fi 6952ac_res=`eval 'as_val=${'$as_ac_Header'} 6953 $as_echo "$as_val"'` 6954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6955$as_echo "$ac_res" >&6; } 6956as_val=`eval 'as_val=${'$as_ac_Header'} 6957 $as_echo "$as_val"'` 6958 if test "x$as_val" = x""yes; then 6959 cat >>confdefs.h <<_ACEOF 6960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6961_ACEOF 6962 6963fi 6964 6965done 6966 6967 6968 6969for ac_header in dlfcn.h 6970do 6971as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6972{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6973$as_echo_n "checking for $ac_header... " >&6; } 6974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6975 $as_echo_n "(cached) " >&6 6976else 6977 cat >conftest.$ac_ext <<_ACEOF 6978/* confdefs.h. */ 6979_ACEOF 6980cat confdefs.h >>conftest.$ac_ext 6981cat >>conftest.$ac_ext <<_ACEOF 6982/* end confdefs.h. */ 6983$ac_includes_default 6984 6985#include <$ac_header> 6986_ACEOF 6987rm -f conftest.$ac_objext 6988if { (ac_try="$ac_compile" 6989case "(($ac_try" in 6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6991 *) ac_try_echo=$ac_try;; 6992esac 6993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6994$as_echo "$ac_try_echo") >&5 6995 (eval "$ac_compile") 2>conftest.er1 6996 ac_status=$? 6997 grep -v '^ *+' conftest.er1 >conftest.err 6998 rm -f conftest.er1 6999 cat conftest.err >&5 7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); } && { 7002 test -z "$ac_c_werror_flag" || 7003 test ! -s conftest.err 7004 } && test -s conftest.$ac_objext; then 7005 eval "$as_ac_Header=yes" 7006else 7007 $as_echo "$as_me: failed program was:" >&5 7008sed 's/^/| /' conftest.$ac_ext >&5 7009 7010 eval "$as_ac_Header=no" 7011fi 7012 7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7014fi 7015ac_res=`eval 'as_val=${'$as_ac_Header'} 7016 $as_echo "$as_val"'` 7017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7018$as_echo "$ac_res" >&6; } 7019as_val=`eval 'as_val=${'$as_ac_Header'} 7020 $as_echo "$as_val"'` 7021 if test "x$as_val" = x""yes; then 7022 cat >>confdefs.h <<_ACEOF 7023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7024_ACEOF 7025 7026fi 7027 7028done 7029 7030 7031 7032# Set options 7033 7034 7035 7036 enable_dlopen=no 7037 7038 7039 enable_win32_dll=no 7040 7041 7042 # Check whether --enable-shared was given. 7043if test "${enable_shared+set}" = set; then 7044 enableval=$enable_shared; p=${PACKAGE-default} 7045 case $enableval in 7046 yes) enable_shared=yes ;; 7047 no) enable_shared=no ;; 7048 *) 7049 enable_shared=no 7050 # Look at the argument we got. We use all the common list separators. 7051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7052 for pkg in $enableval; do 7053 IFS="$lt_save_ifs" 7054 if test "X$pkg" = "X$p"; then 7055 enable_shared=yes 7056 fi 7057 done 7058 IFS="$lt_save_ifs" 7059 ;; 7060 esac 7061else 7062 enable_shared=yes 7063fi 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 # Check whether --enable-static was given. 7074if test "${enable_static+set}" = set; then 7075 enableval=$enable_static; p=${PACKAGE-default} 7076 case $enableval in 7077 yes) enable_static=yes ;; 7078 no) enable_static=no ;; 7079 *) 7080 enable_static=no 7081 # Look at the argument we got. We use all the common list separators. 7082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7083 for pkg in $enableval; do 7084 IFS="$lt_save_ifs" 7085 if test "X$pkg" = "X$p"; then 7086 enable_static=yes 7087 fi 7088 done 7089 IFS="$lt_save_ifs" 7090 ;; 7091 esac 7092else 7093 enable_static=yes 7094fi 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105# Check whether --with-pic was given. 7106if test "${with_pic+set}" = set; then 7107 withval=$with_pic; pic_mode="$withval" 7108else 7109 pic_mode=default 7110fi 7111 7112 7113test -z "$pic_mode" && pic_mode=default 7114 7115 7116 7117 7118 7119 7120 7121 # Check whether --enable-fast-install was given. 7122if test "${enable_fast_install+set}" = set; then 7123 enableval=$enable_fast_install; p=${PACKAGE-default} 7124 case $enableval in 7125 yes) enable_fast_install=yes ;; 7126 no) enable_fast_install=no ;; 7127 *) 7128 enable_fast_install=no 7129 # Look at the argument we got. We use all the common list separators. 7130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7131 for pkg in $enableval; do 7132 IFS="$lt_save_ifs" 7133 if test "X$pkg" = "X$p"; then 7134 enable_fast_install=yes 7135 fi 7136 done 7137 IFS="$lt_save_ifs" 7138 ;; 7139 esac 7140else 7141 enable_fast_install=yes 7142fi 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154# This can be used to rebuild libtool when needed 7155LIBTOOL_DEPS="$ltmain" 7156 7157# Always use our own libtool. 7158LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184test -z "$LN_S" && LN_S="ln -s" 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199if test -n "${ZSH_VERSION+set}" ; then 7200 setopt NO_GLOB_SUBST 7201fi 7202 7203{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7204$as_echo_n "checking for objdir... " >&6; } 7205if test "${lt_cv_objdir+set}" = set; then 7206 $as_echo_n "(cached) " >&6 7207else 7208 rm -f .libs 2>/dev/null 7209mkdir .libs 2>/dev/null 7210if test -d .libs; then 7211 lt_cv_objdir=.libs 7212else 7213 # MS-DOS does not allow filenames that begin with a dot. 7214 lt_cv_objdir=_libs 7215fi 7216rmdir .libs 2>/dev/null 7217fi 7218{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7219$as_echo "$lt_cv_objdir" >&6; } 7220objdir=$lt_cv_objdir 7221 7222 7223 7224 7225 7226cat >>confdefs.h <<_ACEOF 7227#define LT_OBJDIR "$lt_cv_objdir/" 7228_ACEOF 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246case $host_os in 7247aix3*) 7248 # AIX sometimes has problems with the GCC collect2 program. For some 7249 # reason, if we set the COLLECT_NAMES environment variable, the problems 7250 # vanish in a puff of smoke. 7251 if test "X${COLLECT_NAMES+set}" != Xset; then 7252 COLLECT_NAMES= 7253 export COLLECT_NAMES 7254 fi 7255 ;; 7256esac 7257 7258# Sed substitution that helps us do robust quoting. It backslashifies 7259# metacharacters that are still active within double-quoted strings. 7260sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7261 7262# Same as above, but do not quote variable references. 7263double_quote_subst='s/\(["`\\]\)/\\\1/g' 7264 7265# Sed substitution to delay expansion of an escaped shell variable in a 7266# double_quote_subst'ed string. 7267delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7268 7269# Sed substitution to delay expansion of an escaped single quote. 7270delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7271 7272# Sed substitution to avoid accidental globbing in evaled expressions 7273no_glob_subst='s/\*/\\\*/g' 7274 7275# Global variables: 7276ofile=libtool 7277can_build_shared=yes 7278 7279# All known linkers require a `.a' archive for static linking (except MSVC, 7280# which needs '.lib'). 7281libext=a 7282 7283with_gnu_ld="$lt_cv_prog_gnu_ld" 7284 7285old_CC="$CC" 7286old_CFLAGS="$CFLAGS" 7287 7288# Set sane defaults for various variables 7289test -z "$CC" && CC=cc 7290test -z "$LTCC" && LTCC=$CC 7291test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7292test -z "$LD" && LD=ld 7293test -z "$ac_objext" && ac_objext=o 7294 7295for cc_temp in $compiler""; do 7296 case $cc_temp in 7297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7299 \-*) ;; 7300 *) break;; 7301 esac 7302done 7303cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7304 7305 7306# Only perform the check for file, if the check method requires it 7307test -z "$MAGIC_CMD" && MAGIC_CMD=file 7308case $deplibs_check_method in 7309file_magic*) 7310 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7311 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7312$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7313if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7314 $as_echo_n "(cached) " >&6 7315else 7316 case $MAGIC_CMD in 7317[\\/*] | ?:[\\/]*) 7318 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7319 ;; 7320*) 7321 lt_save_MAGIC_CMD="$MAGIC_CMD" 7322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7323 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7324 for ac_dir in $ac_dummy; do 7325 IFS="$lt_save_ifs" 7326 test -z "$ac_dir" && ac_dir=. 7327 if test -f $ac_dir/${ac_tool_prefix}file; then 7328 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7329 if test -n "$file_magic_test_file"; then 7330 case $deplibs_check_method in 7331 "file_magic "*) 7332 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7334 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7335 $EGREP "$file_magic_regex" > /dev/null; then 7336 : 7337 else 7338 cat <<_LT_EOF 1>&2 7339 7340*** Warning: the command libtool uses to detect shared libraries, 7341*** $file_magic_cmd, produces output that libtool cannot recognize. 7342*** The result is that libtool may fail to recognize shared libraries 7343*** as such. This will affect the creation of libtool libraries that 7344*** depend on shared libraries, but programs linked with such libtool 7345*** libraries will work regardless of this problem. Nevertheless, you 7346*** may want to report the problem to your system manager and/or to 7347*** bug-libtool@gnu.org 7348 7349_LT_EOF 7350 fi ;; 7351 esac 7352 fi 7353 break 7354 fi 7355 done 7356 IFS="$lt_save_ifs" 7357 MAGIC_CMD="$lt_save_MAGIC_CMD" 7358 ;; 7359esac 7360fi 7361 7362MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7363if test -n "$MAGIC_CMD"; then 7364 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7365$as_echo "$MAGIC_CMD" >&6; } 7366else 7367 { $as_echo "$as_me:$LINENO: result: no" >&5 7368$as_echo "no" >&6; } 7369fi 7370 7371 7372 7373 7374 7375if test -z "$lt_cv_path_MAGIC_CMD"; then 7376 if test -n "$ac_tool_prefix"; then 7377 { $as_echo "$as_me:$LINENO: checking for file" >&5 7378$as_echo_n "checking for file... " >&6; } 7379if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7380 $as_echo_n "(cached) " >&6 7381else 7382 case $MAGIC_CMD in 7383[\\/*] | ?:[\\/]*) 7384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7385 ;; 7386*) 7387 lt_save_MAGIC_CMD="$MAGIC_CMD" 7388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7389 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7390 for ac_dir in $ac_dummy; do 7391 IFS="$lt_save_ifs" 7392 test -z "$ac_dir" && ac_dir=. 7393 if test -f $ac_dir/file; then 7394 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7395 if test -n "$file_magic_test_file"; then 7396 case $deplibs_check_method in 7397 "file_magic "*) 7398 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7401 $EGREP "$file_magic_regex" > /dev/null; then 7402 : 7403 else 7404 cat <<_LT_EOF 1>&2 7405 7406*** Warning: the command libtool uses to detect shared libraries, 7407*** $file_magic_cmd, produces output that libtool cannot recognize. 7408*** The result is that libtool may fail to recognize shared libraries 7409*** as such. This will affect the creation of libtool libraries that 7410*** depend on shared libraries, but programs linked with such libtool 7411*** libraries will work regardless of this problem. Nevertheless, you 7412*** may want to report the problem to your system manager and/or to 7413*** bug-libtool@gnu.org 7414 7415_LT_EOF 7416 fi ;; 7417 esac 7418 fi 7419 break 7420 fi 7421 done 7422 IFS="$lt_save_ifs" 7423 MAGIC_CMD="$lt_save_MAGIC_CMD" 7424 ;; 7425esac 7426fi 7427 7428MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7429if test -n "$MAGIC_CMD"; then 7430 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7431$as_echo "$MAGIC_CMD" >&6; } 7432else 7433 { $as_echo "$as_me:$LINENO: result: no" >&5 7434$as_echo "no" >&6; } 7435fi 7436 7437 7438 else 7439 MAGIC_CMD=: 7440 fi 7441fi 7442 7443 fi 7444 ;; 7445esac 7446 7447# Use C for the default configuration in the libtool script 7448 7449lt_save_CC="$CC" 7450ac_ext=c 7451ac_cpp='$CPP $CPPFLAGS' 7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7454ac_compiler_gnu=$ac_cv_c_compiler_gnu 7455 7456 7457# Source file extension for C test sources. 7458ac_ext=c 7459 7460# Object file extension for compiled C test sources. 7461objext=o 7462objext=$objext 7463 7464# Code to be used in simple compile tests 7465lt_simple_compile_test_code="int some_variable = 0;" 7466 7467# Code to be used in simple link tests 7468lt_simple_link_test_code='int main(){return(0);}' 7469 7470 7471 7472 7473 7474 7475 7476# If no C compiler was specified, use CC. 7477LTCC=${LTCC-"$CC"} 7478 7479# If no C compiler flags were specified, use CFLAGS. 7480LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7481 7482# Allow CC to be a program name with arguments. 7483compiler=$CC 7484 7485# Save the default compiler, since it gets overwritten when the other 7486# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7487compiler_DEFAULT=$CC 7488 7489# save warnings/boilerplate of simple test code 7490ac_outfile=conftest.$ac_objext 7491echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7493_lt_compiler_boilerplate=`cat conftest.err` 7494$RM conftest* 7495 7496ac_outfile=conftest.$ac_objext 7497echo "$lt_simple_link_test_code" >conftest.$ac_ext 7498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7499_lt_linker_boilerplate=`cat conftest.err` 7500$RM -r conftest* 7501 7502 7503if test -n "$compiler"; then 7504 7505lt_prog_compiler_no_builtin_flag= 7506 7507if test "$GCC" = yes; then 7508 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7509 7510 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7511$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7512if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7513 $as_echo_n "(cached) " >&6 7514else 7515 lt_cv_prog_compiler_rtti_exceptions=no 7516 ac_outfile=conftest.$ac_objext 7517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7518 lt_compiler_flag="-fno-rtti -fno-exceptions" 7519 # Insert the option either (1) after the last *FLAGS variable, or 7520 # (2) before a word containing "conftest.", or (3) at the end. 7521 # Note that $ac_compile itself does not contain backslashes and begins 7522 # with a dollar sign (not a hyphen), so the echo should work correctly. 7523 # The option is referenced via a variable to avoid confusing sed. 7524 lt_compile=`echo "$ac_compile" | $SED \ 7525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7527 -e 's:$: $lt_compiler_flag:'` 7528 (eval echo "\"\$as_me:7528: $lt_compile\"" >&5) 7529 (eval "$lt_compile" 2>conftest.err) 7530 ac_status=$? 7531 cat conftest.err >&5 7532 echo "$as_me:7532: \$? = $ac_status" >&5 7533 if (exit $ac_status) && test -s "$ac_outfile"; then 7534 # The compiler can only warn and ignore the option if not recognized 7535 # So say no if there are warnings other than the usual output. 7536 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7539 lt_cv_prog_compiler_rtti_exceptions=yes 7540 fi 7541 fi 7542 $RM conftest* 7543 7544fi 7545{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7546$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7547 7548if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7549 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7550else 7551 : 7552fi 7553 7554fi 7555 7556 7557 7558 7559 7560 7561 lt_prog_compiler_wl= 7562lt_prog_compiler_pic= 7563lt_prog_compiler_static= 7564 7565{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7566$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7567 7568 if test "$GCC" = yes; then 7569 lt_prog_compiler_wl='-Wl,' 7570 lt_prog_compiler_static='-static' 7571 7572 case $host_os in 7573 aix*) 7574 # All AIX code is PIC. 7575 if test "$host_cpu" = ia64; then 7576 # AIX 5 now supports IA64 processor 7577 lt_prog_compiler_static='-Bstatic' 7578 fi 7579 ;; 7580 7581 amigaos*) 7582 case $host_cpu in 7583 powerpc) 7584 # see comment about AmigaOS4 .so support 7585 lt_prog_compiler_pic='-fPIC' 7586 ;; 7587 m68k) 7588 # FIXME: we need at least 68020 code to build shared libraries, but 7589 # adding the `-m68020' flag to GCC prevents building anything better, 7590 # like `-m68040'. 7591 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7592 ;; 7593 esac 7594 ;; 7595 7596 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7597 # PIC is the default for these OSes. 7598 ;; 7599 7600 mingw* | cygwin* | pw32* | os2* | cegcc*) 7601 # This hack is so that the source file can tell whether it is being 7602 # built for inclusion in a dll (and should export symbols for example). 7603 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7604 # (--disable-auto-import) libraries 7605 lt_prog_compiler_pic='-DDLL_EXPORT' 7606 ;; 7607 7608 darwin* | rhapsody*) 7609 # PIC is the default on this platform 7610 # Common symbols not allowed in MH_DYLIB files 7611 lt_prog_compiler_pic='-fno-common' 7612 ;; 7613 7614 hpux*) 7615 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7616 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7617 # sets the default TLS model and affects inlining. 7618 case $host_cpu in 7619 hppa*64*) 7620 # +Z the default 7621 ;; 7622 *) 7623 lt_prog_compiler_pic='-fPIC' 7624 ;; 7625 esac 7626 ;; 7627 7628 interix[3-9]*) 7629 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7630 # Instead, we relocate shared libraries at runtime. 7631 ;; 7632 7633 msdosdjgpp*) 7634 # Just because we use GCC doesn't mean we suddenly get shared libraries 7635 # on systems that don't support them. 7636 lt_prog_compiler_can_build_shared=no 7637 enable_shared=no 7638 ;; 7639 7640 *nto* | *qnx*) 7641 # QNX uses GNU C++, but need to define -shared option too, otherwise 7642 # it will coredump. 7643 lt_prog_compiler_pic='-fPIC -shared' 7644 ;; 7645 7646 sysv4*MP*) 7647 if test -d /usr/nec; then 7648 lt_prog_compiler_pic=-Kconform_pic 7649 fi 7650 ;; 7651 7652 *) 7653 lt_prog_compiler_pic='-fPIC' 7654 ;; 7655 esac 7656 else 7657 # PORTME Check for flag to pass linker flags through the system compiler. 7658 case $host_os in 7659 aix*) 7660 lt_prog_compiler_wl='-Wl,' 7661 if test "$host_cpu" = ia64; then 7662 # AIX 5 now supports IA64 processor 7663 lt_prog_compiler_static='-Bstatic' 7664 else 7665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7666 fi 7667 ;; 7668 7669 mingw* | cygwin* | pw32* | os2* | cegcc*) 7670 # This hack is so that the source file can tell whether it is being 7671 # built for inclusion in a dll (and should export symbols for example). 7672 lt_prog_compiler_pic='-DDLL_EXPORT' 7673 ;; 7674 7675 hpux9* | hpux10* | hpux11*) 7676 lt_prog_compiler_wl='-Wl,' 7677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7678 # not for PA HP-UX. 7679 case $host_cpu in 7680 hppa*64*|ia64*) 7681 # +Z the default 7682 ;; 7683 *) 7684 lt_prog_compiler_pic='+Z' 7685 ;; 7686 esac 7687 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7688 lt_prog_compiler_static='${wl}-a ${wl}archive' 7689 ;; 7690 7691 irix5* | irix6* | nonstopux*) 7692 lt_prog_compiler_wl='-Wl,' 7693 # PIC (with -KPIC) is the default. 7694 lt_prog_compiler_static='-non_shared' 7695 ;; 7696 7697 linux* | k*bsd*-gnu) 7698 case $cc_basename in 7699 # old Intel for x86_64 which still supported -KPIC. 7700 ecc*) 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_pic='-KPIC' 7703 lt_prog_compiler_static='-static' 7704 ;; 7705 # icc used to be incompatible with GCC. 7706 # ICC 10 doesn't accept -KPIC any more. 7707 icc* | ifort*) 7708 lt_prog_compiler_wl='-Wl,' 7709 lt_prog_compiler_pic='-fPIC' 7710 lt_prog_compiler_static='-static' 7711 ;; 7712 # Lahey Fortran 8.1. 7713 lf95*) 7714 lt_prog_compiler_wl='-Wl,' 7715 lt_prog_compiler_pic='--shared' 7716 lt_prog_compiler_static='--static' 7717 ;; 7718 pgcc* | pgf77* | pgf90* | pgf95*) 7719 # Portland Group compilers (*not* the Pentium gcc compiler, 7720 # which looks to be a dead project) 7721 lt_prog_compiler_wl='-Wl,' 7722 lt_prog_compiler_pic='-fpic' 7723 lt_prog_compiler_static='-Bstatic' 7724 ;; 7725 ccc*) 7726 lt_prog_compiler_wl='-Wl,' 7727 # All Alpha code is PIC. 7728 lt_prog_compiler_static='-non_shared' 7729 ;; 7730 xl*) 7731 # IBM XL C 8.0/Fortran 10.1 on PPC 7732 lt_prog_compiler_wl='-Wl,' 7733 lt_prog_compiler_pic='-qpic' 7734 lt_prog_compiler_static='-qstaticlink' 7735 ;; 7736 *) 7737 case `$CC -V 2>&1 | sed 5q` in 7738 *Sun\ C*) 7739 # Sun C 5.9 7740 lt_prog_compiler_pic='-KPIC' 7741 lt_prog_compiler_static='-Bstatic' 7742 lt_prog_compiler_wl='-Wl,' 7743 ;; 7744 *Sun\ F*) 7745 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7746 lt_prog_compiler_pic='-KPIC' 7747 lt_prog_compiler_static='-Bstatic' 7748 lt_prog_compiler_wl='' 7749 ;; 7750 esac 7751 ;; 7752 esac 7753 ;; 7754 7755 newsos6) 7756 lt_prog_compiler_pic='-KPIC' 7757 lt_prog_compiler_static='-Bstatic' 7758 ;; 7759 7760 *nto* | *qnx*) 7761 # QNX uses GNU C++, but need to define -shared option too, otherwise 7762 # it will coredump. 7763 lt_prog_compiler_pic='-fPIC -shared' 7764 ;; 7765 7766 osf3* | osf4* | osf5*) 7767 lt_prog_compiler_wl='-Wl,' 7768 # All OSF/1 code is PIC. 7769 lt_prog_compiler_static='-non_shared' 7770 ;; 7771 7772 rdos*) 7773 lt_prog_compiler_static='-non_shared' 7774 ;; 7775 7776 solaris*) 7777 lt_prog_compiler_pic='-KPIC' 7778 lt_prog_compiler_static='-Bstatic' 7779 case $cc_basename in 7780 f77* | f90* | f95*) 7781 lt_prog_compiler_wl='-Qoption ld ';; 7782 *) 7783 lt_prog_compiler_wl='-Wl,';; 7784 esac 7785 ;; 7786 7787 sunos4*) 7788 lt_prog_compiler_wl='-Qoption ld ' 7789 lt_prog_compiler_pic='-PIC' 7790 lt_prog_compiler_static='-Bstatic' 7791 ;; 7792 7793 sysv4 | sysv4.2uw2* | sysv4.3*) 7794 lt_prog_compiler_wl='-Wl,' 7795 lt_prog_compiler_pic='-KPIC' 7796 lt_prog_compiler_static='-Bstatic' 7797 ;; 7798 7799 sysv4*MP*) 7800 if test -d /usr/nec ;then 7801 lt_prog_compiler_pic='-Kconform_pic' 7802 lt_prog_compiler_static='-Bstatic' 7803 fi 7804 ;; 7805 7806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7807 lt_prog_compiler_wl='-Wl,' 7808 lt_prog_compiler_pic='-KPIC' 7809 lt_prog_compiler_static='-Bstatic' 7810 ;; 7811 7812 unicos*) 7813 lt_prog_compiler_wl='-Wl,' 7814 lt_prog_compiler_can_build_shared=no 7815 ;; 7816 7817 uts4*) 7818 lt_prog_compiler_pic='-pic' 7819 lt_prog_compiler_static='-Bstatic' 7820 ;; 7821 7822 *) 7823 lt_prog_compiler_can_build_shared=no 7824 ;; 7825 esac 7826 fi 7827 7828case $host_os in 7829 # For platforms which do not support PIC, -DPIC is meaningless: 7830 *djgpp*) 7831 lt_prog_compiler_pic= 7832 ;; 7833 *) 7834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7835 ;; 7836esac 7837{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7838$as_echo "$lt_prog_compiler_pic" >&6; } 7839 7840 7841 7842 7843 7844 7845# 7846# Check to make sure the PIC flag actually works. 7847# 7848if test -n "$lt_prog_compiler_pic"; then 7849 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7850$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7851if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7852 $as_echo_n "(cached) " >&6 7853else 7854 lt_cv_prog_compiler_pic_works=no 7855 ac_outfile=conftest.$ac_objext 7856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7857 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7858 # Insert the option either (1) after the last *FLAGS variable, or 7859 # (2) before a word containing "conftest.", or (3) at the end. 7860 # Note that $ac_compile itself does not contain backslashes and begins 7861 # with a dollar sign (not a hyphen), so the echo should work correctly. 7862 # The option is referenced via a variable to avoid confusing sed. 7863 lt_compile=`echo "$ac_compile" | $SED \ 7864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7866 -e 's:$: $lt_compiler_flag:'` 7867 (eval echo "\"\$as_me:7867: $lt_compile\"" >&5) 7868 (eval "$lt_compile" 2>conftest.err) 7869 ac_status=$? 7870 cat conftest.err >&5 7871 echo "$as_me:7871: \$? = $ac_status" >&5 7872 if (exit $ac_status) && test -s "$ac_outfile"; then 7873 # The compiler can only warn and ignore the option if not recognized 7874 # So say no if there are warnings other than the usual output. 7875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7878 lt_cv_prog_compiler_pic_works=yes 7879 fi 7880 fi 7881 $RM conftest* 7882 7883fi 7884{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7885$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7886 7887if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7888 case $lt_prog_compiler_pic in 7889 "" | " "*) ;; 7890 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7891 esac 7892else 7893 lt_prog_compiler_pic= 7894 lt_prog_compiler_can_build_shared=no 7895fi 7896 7897fi 7898 7899 7900 7901 7902 7903 7904# 7905# Check to make sure the static flag actually works. 7906# 7907wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7908{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7909$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7910if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7911 $as_echo_n "(cached) " >&6 7912else 7913 lt_cv_prog_compiler_static_works=no 7914 save_LDFLAGS="$LDFLAGS" 7915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7916 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7918 # The linker can only warn and ignore the option if not recognized 7919 # So say no if there are warnings 7920 if test -s conftest.err; then 7921 # Append any errors to the config.log. 7922 cat conftest.err 1>&5 7923 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7925 if diff conftest.exp conftest.er2 >/dev/null; then 7926 lt_cv_prog_compiler_static_works=yes 7927 fi 7928 else 7929 lt_cv_prog_compiler_static_works=yes 7930 fi 7931 fi 7932 $RM -r conftest* 7933 LDFLAGS="$save_LDFLAGS" 7934 7935fi 7936{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7937$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7938 7939if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7940 : 7941else 7942 lt_prog_compiler_static= 7943fi 7944 7945 7946 7947 7948 7949 7950 7951 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7953if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7954 $as_echo_n "(cached) " >&6 7955else 7956 lt_cv_prog_compiler_c_o=no 7957 $RM -r conftest 2>/dev/null 7958 mkdir conftest 7959 cd conftest 7960 mkdir out 7961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7962 7963 lt_compiler_flag="-o out/conftest2.$ac_objext" 7964 # Insert the option either (1) after the last *FLAGS variable, or 7965 # (2) before a word containing "conftest.", or (3) at the end. 7966 # Note that $ac_compile itself does not contain backslashes and begins 7967 # with a dollar sign (not a hyphen), so the echo should work correctly. 7968 lt_compile=`echo "$ac_compile" | $SED \ 7969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7971 -e 's:$: $lt_compiler_flag:'` 7972 (eval echo "\"\$as_me:7972: $lt_compile\"" >&5) 7973 (eval "$lt_compile" 2>out/conftest.err) 7974 ac_status=$? 7975 cat out/conftest.err >&5 7976 echo "$as_me:7976: \$? = $ac_status" >&5 7977 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7978 then 7979 # The compiler can only warn and ignore the option if not recognized 7980 # So say no if there are warnings 7981 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7984 lt_cv_prog_compiler_c_o=yes 7985 fi 7986 fi 7987 chmod u+w . 2>&5 7988 $RM conftest* 7989 # SGI C++ compiler will create directory out/ii_files/ for 7990 # template instantiation 7991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7992 $RM out/* && rmdir out 7993 cd .. 7994 $RM -r conftest 7995 $RM conftest* 7996 7997fi 7998{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7999$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8000 8001 8002 8003 8004 8005 8006 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8007$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8008if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8009 $as_echo_n "(cached) " >&6 8010else 8011 lt_cv_prog_compiler_c_o=no 8012 $RM -r conftest 2>/dev/null 8013 mkdir conftest 8014 cd conftest 8015 mkdir out 8016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8017 8018 lt_compiler_flag="-o out/conftest2.$ac_objext" 8019 # Insert the option either (1) after the last *FLAGS variable, or 8020 # (2) before a word containing "conftest.", or (3) at the end. 8021 # Note that $ac_compile itself does not contain backslashes and begins 8022 # with a dollar sign (not a hyphen), so the echo should work correctly. 8023 lt_compile=`echo "$ac_compile" | $SED \ 8024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8026 -e 's:$: $lt_compiler_flag:'` 8027 (eval echo "\"\$as_me:8027: $lt_compile\"" >&5) 8028 (eval "$lt_compile" 2>out/conftest.err) 8029 ac_status=$? 8030 cat out/conftest.err >&5 8031 echo "$as_me:8031: \$? = $ac_status" >&5 8032 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8033 then 8034 # The compiler can only warn and ignore the option if not recognized 8035 # So say no if there are warnings 8036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8039 lt_cv_prog_compiler_c_o=yes 8040 fi 8041 fi 8042 chmod u+w . 2>&5 8043 $RM conftest* 8044 # SGI C++ compiler will create directory out/ii_files/ for 8045 # template instantiation 8046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8047 $RM out/* && rmdir out 8048 cd .. 8049 $RM -r conftest 8050 $RM conftest* 8051 8052fi 8053{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8054$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8055 8056 8057 8058 8059hard_links="nottested" 8060if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8061 # do not overwrite the value of need_locks provided by the user 8062 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8063$as_echo_n "checking if we can lock with hard links... " >&6; } 8064 hard_links=yes 8065 $RM conftest* 8066 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8067 touch conftest.a 8068 ln conftest.a conftest.b 2>&5 || hard_links=no 8069 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8070 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8071$as_echo "$hard_links" >&6; } 8072 if test "$hard_links" = no; then 8073 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8074$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8075 need_locks=warn 8076 fi 8077else 8078 need_locks=no 8079fi 8080 8081 8082 8083 8084 8085 8086 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8087$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8088 8089 runpath_var= 8090 allow_undefined_flag= 8091 always_export_symbols=no 8092 archive_cmds= 8093 archive_expsym_cmds= 8094 compiler_needs_object=no 8095 enable_shared_with_static_runtimes=no 8096 export_dynamic_flag_spec= 8097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8098 hardcode_automatic=no 8099 hardcode_direct=no 8100 hardcode_direct_absolute=no 8101 hardcode_libdir_flag_spec= 8102 hardcode_libdir_flag_spec_ld= 8103 hardcode_libdir_separator= 8104 hardcode_minus_L=no 8105 hardcode_shlibpath_var=unsupported 8106 inherit_rpath=no 8107 link_all_deplibs=unknown 8108 module_cmds= 8109 module_expsym_cmds= 8110 old_archive_from_new_cmds= 8111 old_archive_from_expsyms_cmds= 8112 thread_safe_flag_spec= 8113 whole_archive_flag_spec= 8114 # include_expsyms should be a list of space-separated symbols to be *always* 8115 # included in the symbol list 8116 include_expsyms= 8117 # exclude_expsyms can be an extended regexp of symbols to exclude 8118 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8120 # as well as any symbol that contains `d'. 8121 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8123 # platforms (ab)use it in PIC code, but their linkers get confused if 8124 # the symbol is explicitly referenced. Since portable code cannot 8125 # rely on this symbol name, it's probably fine to never include it in 8126 # preloaded symbol tables. 8127 # Exclude shared library initialization/finalization symbols. 8128 extract_expsyms_cmds= 8129 8130 case $host_os in 8131 cygwin* | mingw* | pw32* | cegcc*) 8132 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8133 # When not using gcc, we currently assume that we are using 8134 # Microsoft Visual C++. 8135 if test "$GCC" != yes; then 8136 with_gnu_ld=no 8137 fi 8138 ;; 8139 interix*) 8140 # we just hope/assume this is gcc and not c89 (= MSVC++) 8141 with_gnu_ld=yes 8142 ;; 8143 openbsd*) 8144 with_gnu_ld=no 8145 ;; 8146 esac 8147 8148 ld_shlibs=yes 8149 if test "$with_gnu_ld" = yes; then 8150 # If archive_cmds runs LD, not CC, wlarc should be empty 8151 wlarc='${wl}' 8152 8153 # Set some defaults for GNU ld with shared library support. These 8154 # are reset later if shared libraries are not supported. Putting them 8155 # here allows them to be overridden if necessary. 8156 runpath_var=LD_RUN_PATH 8157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8158 export_dynamic_flag_spec='${wl}--export-dynamic' 8159 # ancient GNU ld didn't support --whole-archive et. al. 8160 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8161 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8162 else 8163 whole_archive_flag_spec= 8164 fi 8165 supports_anon_versioning=no 8166 case `$LD -v 2>&1` in 8167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8170 *\ 2.11.*) ;; # other 2.11 versions 8171 *) supports_anon_versioning=yes ;; 8172 esac 8173 8174 # See if GNU ld supports shared libraries. 8175 case $host_os in 8176 aix[3-9]*) 8177 # On AIX/PPC, the GNU linker is very broken 8178 if test "$host_cpu" != ia64; then 8179 ld_shlibs=no 8180 cat <<_LT_EOF 1>&2 8181 8182*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8183*** to be unable to reliably create shared libraries on AIX. 8184*** Therefore, libtool is disabling shared libraries support. If you 8185*** really care for shared libraries, you may want to modify your PATH 8186*** so that a non-GNU linker is found, and then restart. 8187 8188_LT_EOF 8189 fi 8190 ;; 8191 8192 amigaos*) 8193 case $host_cpu in 8194 powerpc) 8195 # see comment about AmigaOS4 .so support 8196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8197 archive_expsym_cmds='' 8198 ;; 8199 m68k) 8200 archive_cmds='$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)' 8201 hardcode_libdir_flag_spec='-L$libdir' 8202 hardcode_minus_L=yes 8203 ;; 8204 esac 8205 ;; 8206 8207 beos*) 8208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8209 allow_undefined_flag=unsupported 8210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8211 # support --undefined. This deserves some investigation. FIXME 8212 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8213 else 8214 ld_shlibs=no 8215 fi 8216 ;; 8217 8218 cygwin* | mingw* | pw32* | cegcc*) 8219 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8220 # as there is no search path for DLLs. 8221 hardcode_libdir_flag_spec='-L$libdir' 8222 allow_undefined_flag=unsupported 8223 always_export_symbols=no 8224 enable_shared_with_static_runtimes=yes 8225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8226 8227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8229 # If the export-symbols file already is a .def file (1st line 8230 # is EXPORTS), use it as is; otherwise, prepend... 8231 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8232 cp $export_symbols $output_objdir/$soname.def; 8233 else 8234 echo EXPORTS > $output_objdir/$soname.def; 8235 cat $export_symbols >> $output_objdir/$soname.def; 8236 fi~ 8237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8238 else 8239 ld_shlibs=no 8240 fi 8241 ;; 8242 8243 interix[3-9]*) 8244 hardcode_direct=no 8245 hardcode_shlibpath_var=no 8246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8247 export_dynamic_flag_spec='${wl}-E' 8248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8249 # Instead, shared libraries are loaded at an image base (0x10000000 by 8250 # default) and relocated if they conflict, which is a slow very memory 8251 # consuming and fragmenting process. To avoid this, we pick a random, 8252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8253 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8255 archive_expsym_cmds='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' 8256 ;; 8257 8258 gnu* | linux* | tpf* | k*bsd*-gnu) 8259 tmp_diet=no 8260 if test "$host_os" = linux-dietlibc; then 8261 case $cc_basename in 8262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8263 esac 8264 fi 8265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8266 && test "$tmp_diet" = no 8267 then 8268 tmp_addflag= 8269 tmp_sharedflag='-shared' 8270 case $cc_basename,$host_cpu in 8271 pgcc*) # Portland Group C compiler 8272 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8273 tmp_addflag=' $pic_flag' 8274 ;; 8275 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8276 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8277 tmp_addflag=' $pic_flag -Mnomain' ;; 8278 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8279 tmp_addflag=' -i_dynamic' ;; 8280 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8281 tmp_addflag=' -i_dynamic -nofor_main' ;; 8282 ifc* | ifort*) # Intel Fortran compiler 8283 tmp_addflag=' -nofor_main' ;; 8284 lf95*) # Lahey Fortran 8.1 8285 whole_archive_flag_spec= 8286 tmp_sharedflag='--shared' ;; 8287 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8288 tmp_sharedflag='-qmkshrobj' 8289 tmp_addflag= ;; 8290 esac 8291 case `$CC -V 2>&1 | sed 5q` in 8292 *Sun\ C*) # Sun C 5.9 8293 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8294 compiler_needs_object=yes 8295 tmp_sharedflag='-G' ;; 8296 *Sun\ F*) # Sun Fortran 8.3 8297 tmp_sharedflag='-G' ;; 8298 esac 8299 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8300 8301 if test "x$supports_anon_versioning" = xyes; then 8302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8304 echo "local: *; };" >> $output_objdir/$libname.ver~ 8305 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8306 fi 8307 8308 case $cc_basename in 8309 xlf*) 8310 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8311 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8312 hardcode_libdir_flag_spec= 8313 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8314 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8315 if test "x$supports_anon_versioning" = xyes; then 8316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8318 echo "local: *; };" >> $output_objdir/$libname.ver~ 8319 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8320 fi 8321 ;; 8322 esac 8323 else 8324 ld_shlibs=no 8325 fi 8326 ;; 8327 8328 netbsd*) 8329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8330 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8331 wlarc= 8332 else 8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8335 fi 8336 ;; 8337 8338 solaris*) 8339 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8340 ld_shlibs=no 8341 cat <<_LT_EOF 1>&2 8342 8343*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8344*** create shared libraries on Solaris systems. Therefore, libtool 8345*** is disabling shared libraries support. We urge you to upgrade GNU 8346*** binutils to release 2.9.1 or newer. Another option is to modify 8347*** your PATH or compiler configuration so that the native linker is 8348*** used, and then restart. 8349 8350_LT_EOF 8351 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8354 else 8355 ld_shlibs=no 8356 fi 8357 ;; 8358 8359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8360 case `$LD -v 2>&1` in 8361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8362 ld_shlibs=no 8363 cat <<_LT_EOF 1>&2 8364 8365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8366*** reliably create shared libraries on SCO systems. Therefore, libtool 8367*** is disabling shared libraries support. We urge you to upgrade GNU 8368*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8369*** your PATH or compiler configuration so that the native linker is 8370*** used, and then restart. 8371 8372_LT_EOF 8373 ;; 8374 *) 8375 # For security reasons, it is highly recommended that you always 8376 # use absolute paths for naming shared libraries, and exclude the 8377 # DT_RUNPATH tag from executables and libraries. But doing so 8378 # requires that you compile everything twice, which is a pain. 8379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8383 else 8384 ld_shlibs=no 8385 fi 8386 ;; 8387 esac 8388 ;; 8389 8390 sunos4*) 8391 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8392 wlarc= 8393 hardcode_direct=yes 8394 hardcode_shlibpath_var=no 8395 ;; 8396 8397 *) 8398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8401 else 8402 ld_shlibs=no 8403 fi 8404 ;; 8405 esac 8406 8407 if test "$ld_shlibs" = no; then 8408 runpath_var= 8409 hardcode_libdir_flag_spec= 8410 export_dynamic_flag_spec= 8411 whole_archive_flag_spec= 8412 fi 8413 else 8414 # PORTME fill in a description of your system's linker (not GNU ld) 8415 case $host_os in 8416 aix3*) 8417 allow_undefined_flag=unsupported 8418 always_export_symbols=yes 8419 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 8420 # Note: this linker hardcodes the directories in LIBPATH if there 8421 # are no directories specified by -L. 8422 hardcode_minus_L=yes 8423 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8424 # Neither direct hardcoding nor static linking is supported with a 8425 # broken collect2. 8426 hardcode_direct=unsupported 8427 fi 8428 ;; 8429 8430 aix[4-9]*) 8431 if test "$host_cpu" = ia64; then 8432 # On IA64, the linker does run time linking by default, so we don't 8433 # have to do anything special. 8434 aix_use_runtimelinking=no 8435 exp_sym_flag='-Bexport' 8436 no_entry_flag="" 8437 else 8438 # If we're using GNU nm, then we don't want the "-C" option. 8439 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8440 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8441 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8442 else 8443 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8444 fi 8445 aix_use_runtimelinking=no 8446 8447 # Test if we are trying to use run time linking or normal 8448 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8449 # need to do runtime linking. 8450 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8451 for ld_flag in $LDFLAGS; do 8452 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8453 aix_use_runtimelinking=yes 8454 break 8455 fi 8456 done 8457 ;; 8458 esac 8459 8460 exp_sym_flag='-bexport' 8461 no_entry_flag='-bnoentry' 8462 fi 8463 8464 # When large executables or shared objects are built, AIX ld can 8465 # have problems creating the table of contents. If linking a library 8466 # or program results in "error TOC overflow" add -mminimal-toc to 8467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8469 8470 archive_cmds='' 8471 hardcode_direct=yes 8472 hardcode_direct_absolute=yes 8473 hardcode_libdir_separator=':' 8474 link_all_deplibs=yes 8475 file_list_spec='${wl}-f,' 8476 8477 if test "$GCC" = yes; then 8478 case $host_os in aix4.[012]|aix4.[012].*) 8479 # We only want to do this on AIX 4.2 and lower, the check 8480 # below for broken collect2 doesn't work under 4.3+ 8481 collect2name=`${CC} -print-prog-name=collect2` 8482 if test -f "$collect2name" && 8483 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8484 then 8485 # We have reworked collect2 8486 : 8487 else 8488 # We have old collect2 8489 hardcode_direct=unsupported 8490 # It fails to find uninstalled libraries when the uninstalled 8491 # path is not listed in the libpath. Setting hardcode_minus_L 8492 # to unsupported forces relinking 8493 hardcode_minus_L=yes 8494 hardcode_libdir_flag_spec='-L$libdir' 8495 hardcode_libdir_separator= 8496 fi 8497 ;; 8498 esac 8499 shared_flag='-shared' 8500 if test "$aix_use_runtimelinking" = yes; then 8501 shared_flag="$shared_flag "'${wl}-G' 8502 fi 8503 else 8504 # not using gcc 8505 if test "$host_cpu" = ia64; then 8506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8507 # chokes on -Wl,-G. The following line is correct: 8508 shared_flag='-G' 8509 else 8510 if test "$aix_use_runtimelinking" = yes; then 8511 shared_flag='${wl}-G' 8512 else 8513 shared_flag='${wl}-bM:SRE' 8514 fi 8515 fi 8516 fi 8517 8518 export_dynamic_flag_spec='${wl}-bexpall' 8519 # It seems that -bexpall does not export symbols beginning with 8520 # underscore (_), so it is better to generate a list of symbols to export. 8521 always_export_symbols=yes 8522 if test "$aix_use_runtimelinking" = yes; then 8523 # Warning - without using the other runtime loading flags (-brtl), 8524 # -berok will link without error, but may produce a broken library. 8525 allow_undefined_flag='-berok' 8526 # Determine the default libpath from the value encoded in an 8527 # empty executable. 8528 cat >conftest.$ac_ext <<_ACEOF 8529/* confdefs.h. */ 8530_ACEOF 8531cat confdefs.h >>conftest.$ac_ext 8532cat >>conftest.$ac_ext <<_ACEOF 8533/* end confdefs.h. */ 8534 8535int 8536main () 8537{ 8538 8539 ; 8540 return 0; 8541} 8542_ACEOF 8543rm -f conftest.$ac_objext conftest$ac_exeext 8544if { (ac_try="$ac_link" 8545case "(($ac_try" in 8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8547 *) ac_try_echo=$ac_try;; 8548esac 8549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8550$as_echo "$ac_try_echo") >&5 8551 (eval "$ac_link") 2>conftest.er1 8552 ac_status=$? 8553 grep -v '^ *+' conftest.er1 >conftest.err 8554 rm -f conftest.er1 8555 cat conftest.err >&5 8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8557 (exit $ac_status); } && { 8558 test -z "$ac_c_werror_flag" || 8559 test ! -s conftest.err 8560 } && test -s conftest$ac_exeext && { 8561 test "$cross_compiling" = yes || 8562 $as_test_x conftest$ac_exeext 8563 }; then 8564 8565lt_aix_libpath_sed=' 8566 /Import File Strings/,/^$/ { 8567 /^0/ { 8568 s/^0 *\(.*\)$/\1/ 8569 p 8570 } 8571 }' 8572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8573# Check for a 64-bit object if we didn't find anything. 8574if test -z "$aix_libpath"; then 8575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8576fi 8577else 8578 $as_echo "$as_me: failed program was:" >&5 8579sed 's/^/| /' conftest.$ac_ext >&5 8580 8581 8582fi 8583 8584rm -rf conftest.dSYM 8585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8586 conftest$ac_exeext conftest.$ac_ext 8587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8588 8589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8590 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8591 else 8592 if test "$host_cpu" = ia64; then 8593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8594 allow_undefined_flag="-z nodefs" 8595 archive_expsym_cmds="\$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" 8596 else 8597 # Determine the default libpath from the value encoded in an 8598 # empty executable. 8599 cat >conftest.$ac_ext <<_ACEOF 8600/* confdefs.h. */ 8601_ACEOF 8602cat confdefs.h >>conftest.$ac_ext 8603cat >>conftest.$ac_ext <<_ACEOF 8604/* end confdefs.h. */ 8605 8606int 8607main () 8608{ 8609 8610 ; 8611 return 0; 8612} 8613_ACEOF 8614rm -f conftest.$ac_objext conftest$ac_exeext 8615if { (ac_try="$ac_link" 8616case "(($ac_try" in 8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8618 *) ac_try_echo=$ac_try;; 8619esac 8620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8621$as_echo "$ac_try_echo") >&5 8622 (eval "$ac_link") 2>conftest.er1 8623 ac_status=$? 8624 grep -v '^ *+' conftest.er1 >conftest.err 8625 rm -f conftest.er1 8626 cat conftest.err >&5 8627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8628 (exit $ac_status); } && { 8629 test -z "$ac_c_werror_flag" || 8630 test ! -s conftest.err 8631 } && test -s conftest$ac_exeext && { 8632 test "$cross_compiling" = yes || 8633 $as_test_x conftest$ac_exeext 8634 }; then 8635 8636lt_aix_libpath_sed=' 8637 /Import File Strings/,/^$/ { 8638 /^0/ { 8639 s/^0 *\(.*\)$/\1/ 8640 p 8641 } 8642 }' 8643aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8644# Check for a 64-bit object if we didn't find anything. 8645if test -z "$aix_libpath"; then 8646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8647fi 8648else 8649 $as_echo "$as_me: failed program was:" >&5 8650sed 's/^/| /' conftest.$ac_ext >&5 8651 8652 8653fi 8654 8655rm -rf conftest.dSYM 8656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8657 conftest$ac_exeext conftest.$ac_ext 8658if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8659 8660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8661 # Warning - without using the other run time loading flags, 8662 # -berok will link without error, but may produce a broken library. 8663 no_undefined_flag=' ${wl}-bernotok' 8664 allow_undefined_flag=' ${wl}-berok' 8665 # Exported symbols can be pulled into shared objects from archives 8666 whole_archive_flag_spec='$convenience' 8667 archive_cmds_need_lc=yes 8668 # This is similar to how AIX traditionally builds its shared libraries. 8669 archive_expsym_cmds="\$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' 8670 fi 8671 fi 8672 ;; 8673 8674 amigaos*) 8675 case $host_cpu in 8676 powerpc) 8677 # see comment about AmigaOS4 .so support 8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8679 archive_expsym_cmds='' 8680 ;; 8681 m68k) 8682 archive_cmds='$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)' 8683 hardcode_libdir_flag_spec='-L$libdir' 8684 hardcode_minus_L=yes 8685 ;; 8686 esac 8687 ;; 8688 8689 bsdi[45]*) 8690 export_dynamic_flag_spec=-rdynamic 8691 ;; 8692 8693 cygwin* | mingw* | pw32* | cegcc*) 8694 # When not using gcc, we currently assume that we are using 8695 # Microsoft Visual C++. 8696 # hardcode_libdir_flag_spec is actually meaningless, as there is 8697 # no search path for DLLs. 8698 hardcode_libdir_flag_spec=' ' 8699 allow_undefined_flag=unsupported 8700 # Tell ltmain to make .lib files, not .a files. 8701 libext=lib 8702 # Tell ltmain to make .dll files, not .so files. 8703 shrext_cmds=".dll" 8704 # FIXME: Setting linknames here is a bad hack. 8705 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8706 # The linker will automatically build a .lib file if we build a DLL. 8707 old_archive_from_new_cmds='true' 8708 # FIXME: Should let the user specify the lib program. 8709 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8710 fix_srcfile_path='`cygpath -w "$srcfile"`' 8711 enable_shared_with_static_runtimes=yes 8712 ;; 8713 8714 darwin* | rhapsody*) 8715 8716 8717 archive_cmds_need_lc=no 8718 hardcode_direct=no 8719 hardcode_automatic=yes 8720 hardcode_shlibpath_var=unsupported 8721 whole_archive_flag_spec='' 8722 link_all_deplibs=yes 8723 allow_undefined_flag="$_lt_dar_allow_undefined" 8724 case $cc_basename in 8725 ifort*) _lt_dar_can_shared=yes ;; 8726 *) _lt_dar_can_shared=$GCC ;; 8727 esac 8728 if test "$_lt_dar_can_shared" = "yes"; then 8729 output_verbose_link_cmd=echo 8730 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8731 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8732 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8733 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8734 8735 else 8736 ld_shlibs=no 8737 fi 8738 8739 ;; 8740 8741 dgux*) 8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8743 hardcode_libdir_flag_spec='-L$libdir' 8744 hardcode_shlibpath_var=no 8745 ;; 8746 8747 freebsd1*) 8748 ld_shlibs=no 8749 ;; 8750 8751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8752 # support. Future versions do this automatically, but an explicit c++rt0.o 8753 # does not break anything, and helps significantly (at the cost of a little 8754 # extra space). 8755 freebsd2.2*) 8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8757 hardcode_libdir_flag_spec='-R$libdir' 8758 hardcode_direct=yes 8759 hardcode_shlibpath_var=no 8760 ;; 8761 8762 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8763 freebsd2*) 8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8765 hardcode_direct=yes 8766 hardcode_minus_L=yes 8767 hardcode_shlibpath_var=no 8768 ;; 8769 8770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8771 freebsd* | dragonfly*) 8772 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8773 hardcode_libdir_flag_spec='-R$libdir' 8774 hardcode_direct=yes 8775 hardcode_shlibpath_var=no 8776 ;; 8777 8778 hpux9*) 8779 if test "$GCC" = yes; then 8780 archive_cmds='$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' 8781 else 8782 archive_cmds='$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' 8783 fi 8784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8785 hardcode_libdir_separator=: 8786 hardcode_direct=yes 8787 8788 # hardcode_minus_L: Not really in the search PATH, 8789 # but as the default location of the library. 8790 hardcode_minus_L=yes 8791 export_dynamic_flag_spec='${wl}-E' 8792 ;; 8793 8794 hpux10*) 8795 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8797 else 8798 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8799 fi 8800 if test "$with_gnu_ld" = no; then 8801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8802 hardcode_libdir_flag_spec_ld='+b $libdir' 8803 hardcode_libdir_separator=: 8804 hardcode_direct=yes 8805 hardcode_direct_absolute=yes 8806 export_dynamic_flag_spec='${wl}-E' 8807 # hardcode_minus_L: Not really in the search PATH, 8808 # but as the default location of the library. 8809 hardcode_minus_L=yes 8810 fi 8811 ;; 8812 8813 hpux11*) 8814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8815 case $host_cpu in 8816 hppa*64*) 8817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 ia64*) 8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8821 ;; 8822 *) 8823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8824 ;; 8825 esac 8826 else 8827 case $host_cpu in 8828 hppa*64*) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 ia64*) 8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8833 ;; 8834 *) 8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8836 ;; 8837 esac 8838 fi 8839 if test "$with_gnu_ld" = no; then 8840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8841 hardcode_libdir_separator=: 8842 8843 case $host_cpu in 8844 hppa*64*|ia64*) 8845 hardcode_direct=no 8846 hardcode_shlibpath_var=no 8847 ;; 8848 *) 8849 hardcode_direct=yes 8850 hardcode_direct_absolute=yes 8851 export_dynamic_flag_spec='${wl}-E' 8852 8853 # hardcode_minus_L: Not really in the search PATH, 8854 # but as the default location of the library. 8855 hardcode_minus_L=yes 8856 ;; 8857 esac 8858 fi 8859 ;; 8860 8861 irix5* | irix6* | nonstopux*) 8862 if test "$GCC" = yes; then 8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8864 # Try to use the -exported_symbol ld option, if it does not 8865 # work, assume that -exports_file does not work either and 8866 # implicitly export all symbols. 8867 save_LDFLAGS="$LDFLAGS" 8868 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8869 cat >conftest.$ac_ext <<_ACEOF 8870int foo(void) {} 8871_ACEOF 8872rm -f conftest.$ac_objext conftest$ac_exeext 8873if { (ac_try="$ac_link" 8874case "(($ac_try" in 8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8876 *) ac_try_echo=$ac_try;; 8877esac 8878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8879$as_echo "$ac_try_echo") >&5 8880 (eval "$ac_link") 2>conftest.er1 8881 ac_status=$? 8882 grep -v '^ *+' conftest.er1 >conftest.err 8883 rm -f conftest.er1 8884 cat conftest.err >&5 8885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8886 (exit $ac_status); } && { 8887 test -z "$ac_c_werror_flag" || 8888 test ! -s conftest.err 8889 } && test -s conftest$ac_exeext && { 8890 test "$cross_compiling" = yes || 8891 $as_test_x conftest$ac_exeext 8892 }; then 8893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8894 8895else 8896 $as_echo "$as_me: failed program was:" >&5 8897sed 's/^/| /' conftest.$ac_ext >&5 8898 8899 8900fi 8901 8902rm -rf conftest.dSYM 8903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8904 conftest$ac_exeext conftest.$ac_ext 8905 LDFLAGS="$save_LDFLAGS" 8906 else 8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8909 fi 8910 archive_cmds_need_lc='no' 8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8912 hardcode_libdir_separator=: 8913 inherit_rpath=yes 8914 link_all_deplibs=yes 8915 ;; 8916 8917 netbsd*) 8918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8920 else 8921 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8922 fi 8923 hardcode_libdir_flag_spec='-R$libdir' 8924 hardcode_direct=yes 8925 hardcode_shlibpath_var=no 8926 ;; 8927 8928 newsos6) 8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8930 hardcode_direct=yes 8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8932 hardcode_libdir_separator=: 8933 hardcode_shlibpath_var=no 8934 ;; 8935 8936 *nto* | *qnx*) 8937 ;; 8938 8939 openbsd*) 8940 if test -f /usr/libexec/ld.so; then 8941 hardcode_direct=yes 8942 hardcode_shlibpath_var=no 8943 hardcode_direct_absolute=yes 8944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8946 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8948 export_dynamic_flag_spec='${wl}-E' 8949 else 8950 case $host_os in 8951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8953 hardcode_libdir_flag_spec='-R$libdir' 8954 ;; 8955 *) 8956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8958 ;; 8959 esac 8960 fi 8961 else 8962 ld_shlibs=no 8963 fi 8964 ;; 8965 8966 os2*) 8967 hardcode_libdir_flag_spec='-L$libdir' 8968 hardcode_minus_L=yes 8969 allow_undefined_flag=unsupported 8970 archive_cmds='$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' 8971 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8972 ;; 8973 8974 osf3*) 8975 if test "$GCC" = yes; then 8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8977 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8978 else 8979 allow_undefined_flag=' -expect_unresolved \*' 8980 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8981 fi 8982 archive_cmds_need_lc='no' 8983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8984 hardcode_libdir_separator=: 8985 ;; 8986 8987 osf4* | osf5*) # as osf3* with the addition of -msym flag 8988 if test "$GCC" = yes; then 8989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8992 else 8993 allow_undefined_flag=' -expect_unresolved \*' 8994 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8995 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8996 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8997 8998 # Both c and cxx compiler support -rpath directly 8999 hardcode_libdir_flag_spec='-rpath $libdir' 9000 fi 9001 archive_cmds_need_lc='no' 9002 hardcode_libdir_separator=: 9003 ;; 9004 9005 solaris*) 9006 no_undefined_flag=' -z defs' 9007 if test "$GCC" = yes; then 9008 wlarc='${wl}' 9009 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9011 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9012 else 9013 case `$CC -V 2>&1` in 9014 *"Compilers 5.0"*) 9015 wlarc='' 9016 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9019 ;; 9020 *) 9021 wlarc='${wl}' 9022 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9024 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9025 ;; 9026 esac 9027 fi 9028 hardcode_libdir_flag_spec='-R$libdir' 9029 hardcode_shlibpath_var=no 9030 case $host_os in 9031 solaris2.[0-5] | solaris2.[0-5].*) ;; 9032 *) 9033 # The compiler driver will combine and reorder linker options, 9034 # but understands `-z linker_flag'. GCC discards it without `$wl', 9035 # but is careful enough not to reorder. 9036 # Supported since Solaris 2.6 (maybe 2.5.1?) 9037 if test "$GCC" = yes; then 9038 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9039 else 9040 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9041 fi 9042 ;; 9043 esac 9044 link_all_deplibs=yes 9045 ;; 9046 9047 sunos4*) 9048 if test "x$host_vendor" = xsequent; then 9049 # Use $CC to link under sequent, because it throws in some extra .o 9050 # files that make .init and .fini sections work. 9051 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9052 else 9053 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9054 fi 9055 hardcode_libdir_flag_spec='-L$libdir' 9056 hardcode_direct=yes 9057 hardcode_minus_L=yes 9058 hardcode_shlibpath_var=no 9059 ;; 9060 9061 sysv4) 9062 case $host_vendor in 9063 sni) 9064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9065 hardcode_direct=yes # is this really true??? 9066 ;; 9067 siemens) 9068 ## LD is ld it makes a PLAMLIB 9069 ## CC just makes a GrossModule. 9070 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9071 reload_cmds='$CC -r -o $output$reload_objs' 9072 hardcode_direct=no 9073 ;; 9074 motorola) 9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9076 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9077 ;; 9078 esac 9079 runpath_var='LD_RUN_PATH' 9080 hardcode_shlibpath_var=no 9081 ;; 9082 9083 sysv4.3*) 9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9085 hardcode_shlibpath_var=no 9086 export_dynamic_flag_spec='-Bexport' 9087 ;; 9088 9089 sysv4*MP*) 9090 if test -d /usr/nec; then 9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9092 hardcode_shlibpath_var=no 9093 runpath_var=LD_RUN_PATH 9094 hardcode_runpath_var=yes 9095 ld_shlibs=yes 9096 fi 9097 ;; 9098 9099 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9100 no_undefined_flag='${wl}-z,text' 9101 archive_cmds_need_lc=no 9102 hardcode_shlibpath_var=no 9103 runpath_var='LD_RUN_PATH' 9104 9105 if test "$GCC" = yes; then 9106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9108 else 9109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9111 fi 9112 ;; 9113 9114 sysv5* | sco3.2v5* | sco5v6*) 9115 # Note: We can NOT use -z defs as we might desire, because we do not 9116 # link with -lc, and that would cause any symbols used from libc to 9117 # always be unresolved, which means just about no library would 9118 # ever link correctly. If we're not using GNU ld we use -z text 9119 # though, which does catch some bad symbols but isn't as heavy-handed 9120 # as -z defs. 9121 no_undefined_flag='${wl}-z,text' 9122 allow_undefined_flag='${wl}-z,nodefs' 9123 archive_cmds_need_lc=no 9124 hardcode_shlibpath_var=no 9125 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9126 hardcode_libdir_separator=':' 9127 link_all_deplibs=yes 9128 export_dynamic_flag_spec='${wl}-Bexport' 9129 runpath_var='LD_RUN_PATH' 9130 9131 if test "$GCC" = yes; then 9132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9134 else 9135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9137 fi 9138 ;; 9139 9140 uts4*) 9141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9142 hardcode_libdir_flag_spec='-L$libdir' 9143 hardcode_shlibpath_var=no 9144 ;; 9145 9146 *) 9147 ld_shlibs=no 9148 ;; 9149 esac 9150 9151 if test x$host_vendor = xsni; then 9152 case $host in 9153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9154 export_dynamic_flag_spec='${wl}-Blargedynsym' 9155 ;; 9156 esac 9157 fi 9158 fi 9159 9160{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9161$as_echo "$ld_shlibs" >&6; } 9162test "$ld_shlibs" = no && can_build_shared=no 9163 9164with_gnu_ld=$with_gnu_ld 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180# 9181# Do we need to explicitly link libc? 9182# 9183case "x$archive_cmds_need_lc" in 9184x|xyes) 9185 # Assume -lc should be added 9186 archive_cmds_need_lc=yes 9187 9188 if test "$enable_shared" = yes && test "$GCC" = yes; then 9189 case $archive_cmds in 9190 *'~'*) 9191 # FIXME: we may have to deal with multi-command sequences. 9192 ;; 9193 '$CC '*) 9194 # Test whether the compiler implicitly links with -lc since on some 9195 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9196 # to ld, don't add -lc before -lgcc. 9197 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9198$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9199 $RM conftest* 9200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9201 9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9203 (eval $ac_compile) 2>&5 9204 ac_status=$? 9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); } 2>conftest.err; then 9207 soname=conftest 9208 lib=conftest 9209 libobjs=conftest.$ac_objext 9210 deplibs= 9211 wl=$lt_prog_compiler_wl 9212 pic_flag=$lt_prog_compiler_pic 9213 compiler_flags=-v 9214 linker_flags=-v 9215 verstring= 9216 output_objdir=. 9217 libname=conftest 9218 lt_save_allow_undefined_flag=$allow_undefined_flag 9219 allow_undefined_flag= 9220 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9221 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9222 ac_status=$? 9223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 (exit $ac_status); } 9225 then 9226 archive_cmds_need_lc=no 9227 else 9228 archive_cmds_need_lc=yes 9229 fi 9230 allow_undefined_flag=$lt_save_allow_undefined_flag 9231 else 9232 cat conftest.err 1>&5 9233 fi 9234 $RM conftest* 9235 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9236$as_echo "$archive_cmds_need_lc" >&6; } 9237 ;; 9238 esac 9239 fi 9240 ;; 9241esac 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9400$as_echo_n "checking dynamic linker characteristics... " >&6; } 9401 9402if test "$GCC" = yes; then 9403 case $host_os in 9404 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9405 *) lt_awk_arg="/^libraries:/" ;; 9406 esac 9407 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9408 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9409 # if the path contains ";" then we assume it to be the separator 9410 # otherwise default to the standard path separator (i.e. ":") - it is 9411 # assumed that no part of a normal pathname contains ";" but that should 9412 # okay in the real world where ";" in dirpaths is itself problematic. 9413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9414 else 9415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9416 fi 9417 # Ok, now we have the path, separated by spaces, we can step through it 9418 # and add multilib dir if necessary. 9419 lt_tmp_lt_search_path_spec= 9420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9421 for lt_sys_path in $lt_search_path_spec; do 9422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9424 else 9425 test -d "$lt_sys_path" && \ 9426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9427 fi 9428 done 9429 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9430BEGIN {RS=" "; FS="/|\n";} { 9431 lt_foo=""; 9432 lt_count=0; 9433 for (lt_i = NF; lt_i > 0; lt_i--) { 9434 if ($lt_i != "" && $lt_i != ".") { 9435 if ($lt_i == "..") { 9436 lt_count++; 9437 } else { 9438 if (lt_count == 0) { 9439 lt_foo="/" $lt_i lt_foo; 9440 } else { 9441 lt_count--; 9442 } 9443 } 9444 } 9445 } 9446 if (lt_foo != "") { lt_freq[lt_foo]++; } 9447 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9448}'` 9449 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9450else 9451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9452fi 9453library_names_spec= 9454libname_spec='lib$name' 9455soname_spec= 9456shrext_cmds=".so" 9457postinstall_cmds= 9458postuninstall_cmds= 9459finish_cmds= 9460finish_eval= 9461shlibpath_var= 9462shlibpath_overrides_runpath=unknown 9463version_type=none 9464dynamic_linker="$host_os ld.so" 9465sys_lib_dlsearch_path_spec="/lib /usr/lib" 9466need_lib_prefix=unknown 9467hardcode_into_libs=no 9468 9469# when you set need_version to no, make sure it does not cause -set_version 9470# flags to be left without arguments 9471need_version=unknown 9472 9473case $host_os in 9474aix3*) 9475 version_type=linux 9476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9477 shlibpath_var=LIBPATH 9478 9479 # AIX 3 has no versioning support, so we append a major version to the name. 9480 soname_spec='${libname}${release}${shared_ext}$major' 9481 ;; 9482 9483aix[4-9]*) 9484 version_type=linux 9485 need_lib_prefix=no 9486 need_version=no 9487 hardcode_into_libs=yes 9488 if test "$host_cpu" = ia64; then 9489 # AIX 5 supports IA64 9490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9491 shlibpath_var=LD_LIBRARY_PATH 9492 else 9493 # With GCC up to 2.95.x, collect2 would create an import file 9494 # for dependence libraries. The import file would start with 9495 # the line `#! .'. This would cause the generated library to 9496 # depend on `.', always an invalid library. This was fixed in 9497 # development snapshots of GCC prior to 3.0. 9498 case $host_os in 9499 aix4 | aix4.[01] | aix4.[01].*) 9500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9501 echo ' yes ' 9502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9503 : 9504 else 9505 can_build_shared=no 9506 fi 9507 ;; 9508 esac 9509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9510 # soname into executable. Probably we can add versioning support to 9511 # collect2, so additional links can be useful in future. 9512 if test "$aix_use_runtimelinking" = yes; then 9513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9514 # instead of lib<name>.a to let people know that these are not 9515 # typical AIX shared libraries. 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9517 else 9518 # We preserve .a as extension for shared libraries through AIX4.2 9519 # and later when we are not doing run time linking. 9520 library_names_spec='${libname}${release}.a $libname.a' 9521 soname_spec='${libname}${release}${shared_ext}$major' 9522 fi 9523 shlibpath_var=LIBPATH 9524 fi 9525 ;; 9526 9527amigaos*) 9528 case $host_cpu in 9529 powerpc) 9530 # Since July 2007 AmigaOS4 officially supports .so libraries. 9531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9533 ;; 9534 m68k) 9535 library_names_spec='$libname.ixlibrary $libname.a' 9536 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9537 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' 9538 ;; 9539 esac 9540 ;; 9541 9542beos*) 9543 library_names_spec='${libname}${shared_ext}' 9544 dynamic_linker="$host_os ld.so" 9545 shlibpath_var=LIBRARY_PATH 9546 ;; 9547 9548bsdi[45]*) 9549 version_type=linux 9550 need_version=no 9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9552 soname_spec='${libname}${release}${shared_ext}$major' 9553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9554 shlibpath_var=LD_LIBRARY_PATH 9555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9557 # the default ld.so.conf also contains /usr/contrib/lib and 9558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9559 # libtool to hard-code these into programs 9560 ;; 9561 9562cygwin* | mingw* | pw32* | cegcc*) 9563 version_type=windows 9564 shrext_cmds=".dll" 9565 need_version=no 9566 need_lib_prefix=no 9567 9568 case $GCC,$host_os in 9569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9570 library_names_spec='$libname.dll.a' 9571 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9572 postinstall_cmds='base_file=`basename \${file}`~ 9573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9574 dldir=$destdir/`dirname \$dlpath`~ 9575 test -d \$dldir || mkdir -p \$dldir~ 9576 $install_prog $dir/$dlname \$dldir/$dlname~ 9577 chmod a+x \$dldir/$dlname~ 9578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9580 fi' 9581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9582 dlpath=$dir/\$dldll~ 9583 $RM \$dlpath' 9584 shlibpath_overrides_runpath=yes 9585 9586 case $host_os in 9587 cygwin*) 9588 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9590 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9591 ;; 9592 mingw* | cegcc*) 9593 # MinGW DLLs use traditional 'lib' prefix 9594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9595 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9596 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9597 # It is most probably a Windows format PATH printed by 9598 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9599 # path with ; separators, and with drive letters. We can handle the 9600 # drive letters (cygwin fileutils understands them), so leave them, 9601 # especially as we might pass files found there to a mingw objdump, 9602 # which wouldn't understand a cygwinified path. Ahh. 9603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9604 else 9605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9606 fi 9607 ;; 9608 pw32*) 9609 # pw32 DLLs use 'pw' prefix rather than 'lib' 9610 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9611 ;; 9612 esac 9613 ;; 9614 9615 *) 9616 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9617 ;; 9618 esac 9619 dynamic_linker='Win32 ld.exe' 9620 # FIXME: first we should search . and the directory the executable is in 9621 shlibpath_var=PATH 9622 ;; 9623 9624darwin* | rhapsody*) 9625 dynamic_linker="$host_os dyld" 9626 version_type=darwin 9627 need_lib_prefix=no 9628 need_version=no 9629 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9630 soname_spec='${libname}${release}${major}$shared_ext' 9631 shlibpath_overrides_runpath=yes 9632 shlibpath_var=DYLD_LIBRARY_PATH 9633 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9634 9635 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9637 ;; 9638 9639dgux*) 9640 version_type=linux 9641 need_lib_prefix=no 9642 need_version=no 9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9644 soname_spec='${libname}${release}${shared_ext}$major' 9645 shlibpath_var=LD_LIBRARY_PATH 9646 ;; 9647 9648freebsd1*) 9649 dynamic_linker=no 9650 ;; 9651 9652freebsd* | dragonfly*) 9653 # DragonFly does not have aout. When/if they implement a new 9654 # versioning mechanism, adjust this. 9655 if test -x /usr/bin/objformat; then 9656 objformat=`/usr/bin/objformat` 9657 else 9658 case $host_os in 9659 freebsd[123]*) objformat=aout ;; 9660 *) objformat=elf ;; 9661 esac 9662 fi 9663 version_type=freebsd-$objformat 9664 case $version_type in 9665 freebsd-elf*) 9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9667 need_version=no 9668 need_lib_prefix=no 9669 ;; 9670 freebsd-*) 9671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9672 need_version=yes 9673 ;; 9674 esac 9675 shlibpath_var=LD_LIBRARY_PATH 9676 case $host_os in 9677 freebsd2*) 9678 shlibpath_overrides_runpath=yes 9679 ;; 9680 freebsd3.[01]* | freebsdelf3.[01]*) 9681 shlibpath_overrides_runpath=yes 9682 hardcode_into_libs=yes 9683 ;; 9684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9686 shlibpath_overrides_runpath=no 9687 hardcode_into_libs=yes 9688 ;; 9689 *) # from 4.6 on, and DragonFly 9690 shlibpath_overrides_runpath=yes 9691 hardcode_into_libs=yes 9692 ;; 9693 esac 9694 ;; 9695 9696gnu*) 9697 version_type=linux 9698 need_lib_prefix=no 9699 need_version=no 9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9701 soname_spec='${libname}${release}${shared_ext}$major' 9702 shlibpath_var=LD_LIBRARY_PATH 9703 hardcode_into_libs=yes 9704 ;; 9705 9706hpux9* | hpux10* | hpux11*) 9707 # Give a soname corresponding to the major version so that dld.sl refuses to 9708 # link against other versions. 9709 version_type=sunos 9710 need_lib_prefix=no 9711 need_version=no 9712 case $host_cpu in 9713 ia64*) 9714 shrext_cmds='.so' 9715 hardcode_into_libs=yes 9716 dynamic_linker="$host_os dld.so" 9717 shlibpath_var=LD_LIBRARY_PATH 9718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9720 soname_spec='${libname}${release}${shared_ext}$major' 9721 if test "X$HPUX_IA64_MODE" = X32; then 9722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9723 else 9724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9725 fi 9726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9727 ;; 9728 hppa*64*) 9729 shrext_cmds='.sl' 9730 hardcode_into_libs=yes 9731 dynamic_linker="$host_os dld.sl" 9732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9735 soname_spec='${libname}${release}${shared_ext}$major' 9736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9738 ;; 9739 *) 9740 shrext_cmds='.sl' 9741 dynamic_linker="$host_os dld.sl" 9742 shlibpath_var=SHLIB_PATH 9743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9745 soname_spec='${libname}${release}${shared_ext}$major' 9746 ;; 9747 esac 9748 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9749 postinstall_cmds='chmod 555 $lib' 9750 ;; 9751 9752interix[3-9]*) 9753 version_type=linux 9754 need_lib_prefix=no 9755 need_version=no 9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9757 soname_spec='${libname}${release}${shared_ext}$major' 9758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9759 shlibpath_var=LD_LIBRARY_PATH 9760 shlibpath_overrides_runpath=no 9761 hardcode_into_libs=yes 9762 ;; 9763 9764irix5* | irix6* | nonstopux*) 9765 case $host_os in 9766 nonstopux*) version_type=nonstopux ;; 9767 *) 9768 if test "$lt_cv_prog_gnu_ld" = yes; then 9769 version_type=linux 9770 else 9771 version_type=irix 9772 fi ;; 9773 esac 9774 need_lib_prefix=no 9775 need_version=no 9776 soname_spec='${libname}${release}${shared_ext}$major' 9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9778 case $host_os in 9779 irix5* | nonstopux*) 9780 libsuff= shlibsuff= 9781 ;; 9782 *) 9783 case $LD in # libtool.m4 will add one of these switches to LD 9784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9785 libsuff= shlibsuff= libmagic=32-bit;; 9786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9787 libsuff=32 shlibsuff=N32 libmagic=N32;; 9788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9789 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9790 *) libsuff= shlibsuff= libmagic=never-match;; 9791 esac 9792 ;; 9793 esac 9794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9795 shlibpath_overrides_runpath=no 9796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9798 hardcode_into_libs=yes 9799 ;; 9800 9801# No shared lib support for Linux oldld, aout, or coff. 9802linux*oldld* | linux*aout* | linux*coff*) 9803 dynamic_linker=no 9804 ;; 9805 9806# This must be Linux ELF. 9807linux* | k*bsd*-gnu) 9808 version_type=linux 9809 need_lib_prefix=no 9810 need_version=no 9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9812 soname_spec='${libname}${release}${shared_ext}$major' 9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9814 shlibpath_var=LD_LIBRARY_PATH 9815 shlibpath_overrides_runpath=no 9816 # Some binutils ld are patched to set DT_RUNPATH 9817 save_LDFLAGS=$LDFLAGS 9818 save_libdir=$libdir 9819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9821 cat >conftest.$ac_ext <<_ACEOF 9822/* confdefs.h. */ 9823_ACEOF 9824cat confdefs.h >>conftest.$ac_ext 9825cat >>conftest.$ac_ext <<_ACEOF 9826/* end confdefs.h. */ 9827 9828int 9829main () 9830{ 9831 9832 ; 9833 return 0; 9834} 9835_ACEOF 9836rm -f conftest.$ac_objext conftest$ac_exeext 9837if { (ac_try="$ac_link" 9838case "(($ac_try" in 9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9840 *) ac_try_echo=$ac_try;; 9841esac 9842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9843$as_echo "$ac_try_echo") >&5 9844 (eval "$ac_link") 2>conftest.er1 9845 ac_status=$? 9846 grep -v '^ *+' conftest.er1 >conftest.err 9847 rm -f conftest.er1 9848 cat conftest.err >&5 9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && { 9851 test -z "$ac_c_werror_flag" || 9852 test ! -s conftest.err 9853 } && test -s conftest$ac_exeext && { 9854 test "$cross_compiling" = yes || 9855 $as_test_x conftest$ac_exeext 9856 }; then 9857 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9858 shlibpath_overrides_runpath=yes 9859fi 9860 9861else 9862 $as_echo "$as_me: failed program was:" >&5 9863sed 's/^/| /' conftest.$ac_ext >&5 9864 9865 9866fi 9867 9868rm -rf conftest.dSYM 9869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9870 conftest$ac_exeext conftest.$ac_ext 9871 LDFLAGS=$save_LDFLAGS 9872 libdir=$save_libdir 9873 9874 # This implies no fast_install, which is unacceptable. 9875 # Some rework will be needed to allow for fast_install 9876 # before this can be enabled. 9877 hardcode_into_libs=yes 9878 9879 # Add ABI-specific directories to the system library path. 9880 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9881 9882 # Append ld.so.conf contents to the search path 9883 if test -f /etc/ld.so.conf; then 9884 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9885 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9886 fi 9887 9888 # We used to test for /lib/ld.so.1 and disable shared libraries on 9889 # powerpc, because MkLinux only supported shared libraries with the 9890 # GNU dynamic linker. Since this was broken with cross compilers, 9891 # most powerpc-linux boxes support dynamic linking these days and 9892 # people can always --disable-shared, the test was removed, and we 9893 # assume the GNU/Linux dynamic linker is in use. 9894 dynamic_linker='GNU/Linux ld.so' 9895 ;; 9896 9897netbsd*) 9898 version_type=sunos 9899 need_lib_prefix=no 9900 need_version=no 9901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9904 dynamic_linker='NetBSD (a.out) ld.so' 9905 else 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9907 soname_spec='${libname}${release}${shared_ext}$major' 9908 dynamic_linker='NetBSD ld.elf_so' 9909 fi 9910 shlibpath_var=LD_LIBRARY_PATH 9911 shlibpath_overrides_runpath=yes 9912 hardcode_into_libs=yes 9913 ;; 9914 9915newsos6) 9916 version_type=linux 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9918 shlibpath_var=LD_LIBRARY_PATH 9919 shlibpath_overrides_runpath=yes 9920 ;; 9921 9922*nto* | *qnx*) 9923 version_type=qnx 9924 need_lib_prefix=no 9925 need_version=no 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 shlibpath_var=LD_LIBRARY_PATH 9929 shlibpath_overrides_runpath=no 9930 hardcode_into_libs=yes 9931 dynamic_linker='ldqnx.so' 9932 ;; 9933 9934openbsd*) 9935 version_type=sunos 9936 sys_lib_dlsearch_path_spec="/usr/lib" 9937 need_lib_prefix=no 9938 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9939 case $host_os in 9940 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9941 *) need_version=no ;; 9942 esac 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9945 shlibpath_var=LD_LIBRARY_PATH 9946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9947 case $host_os in 9948 openbsd2.[89] | openbsd2.[89].*) 9949 shlibpath_overrides_runpath=no 9950 ;; 9951 *) 9952 shlibpath_overrides_runpath=yes 9953 ;; 9954 esac 9955 else 9956 shlibpath_overrides_runpath=yes 9957 fi 9958 ;; 9959 9960os2*) 9961 libname_spec='$name' 9962 shrext_cmds=".dll" 9963 need_lib_prefix=no 9964 library_names_spec='$libname${shared_ext} $libname.a' 9965 dynamic_linker='OS/2 ld.exe' 9966 shlibpath_var=LIBPATH 9967 ;; 9968 9969osf3* | osf4* | osf5*) 9970 version_type=osf 9971 need_lib_prefix=no 9972 need_version=no 9973 soname_spec='${libname}${release}${shared_ext}$major' 9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9975 shlibpath_var=LD_LIBRARY_PATH 9976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9977 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9978 ;; 9979 9980rdos*) 9981 dynamic_linker=no 9982 ;; 9983 9984solaris*) 9985 version_type=linux 9986 need_lib_prefix=no 9987 need_version=no 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9989 soname_spec='${libname}${release}${shared_ext}$major' 9990 shlibpath_var=LD_LIBRARY_PATH 9991 shlibpath_overrides_runpath=yes 9992 hardcode_into_libs=yes 9993 # ldd complains unless libraries are executable 9994 postinstall_cmds='chmod +x $lib' 9995 ;; 9996 9997sunos4*) 9998 version_type=sunos 9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10001 shlibpath_var=LD_LIBRARY_PATH 10002 shlibpath_overrides_runpath=yes 10003 if test "$with_gnu_ld" = yes; then 10004 need_lib_prefix=no 10005 fi 10006 need_version=yes 10007 ;; 10008 10009sysv4 | sysv4.3*) 10010 version_type=linux 10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10012 soname_spec='${libname}${release}${shared_ext}$major' 10013 shlibpath_var=LD_LIBRARY_PATH 10014 case $host_vendor in 10015 sni) 10016 shlibpath_overrides_runpath=no 10017 need_lib_prefix=no 10018 runpath_var=LD_RUN_PATH 10019 ;; 10020 siemens) 10021 need_lib_prefix=no 10022 ;; 10023 motorola) 10024 need_lib_prefix=no 10025 need_version=no 10026 shlibpath_overrides_runpath=no 10027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10028 ;; 10029 esac 10030 ;; 10031 10032sysv4*MP*) 10033 if test -d /usr/nec ;then 10034 version_type=linux 10035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10036 soname_spec='$libname${shared_ext}.$major' 10037 shlibpath_var=LD_LIBRARY_PATH 10038 fi 10039 ;; 10040 10041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10042 version_type=freebsd-elf 10043 need_lib_prefix=no 10044 need_version=no 10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10046 soname_spec='${libname}${release}${shared_ext}$major' 10047 shlibpath_var=LD_LIBRARY_PATH 10048 shlibpath_overrides_runpath=yes 10049 hardcode_into_libs=yes 10050 if test "$with_gnu_ld" = yes; then 10051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10052 else 10053 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10054 case $host_os in 10055 sco3.2v5*) 10056 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10057 ;; 10058 esac 10059 fi 10060 sys_lib_dlsearch_path_spec='/usr/lib' 10061 ;; 10062 10063tpf*) 10064 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10065 version_type=linux 10066 need_lib_prefix=no 10067 need_version=no 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10069 shlibpath_var=LD_LIBRARY_PATH 10070 shlibpath_overrides_runpath=no 10071 hardcode_into_libs=yes 10072 ;; 10073 10074uts4*) 10075 version_type=linux 10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10077 soname_spec='${libname}${release}${shared_ext}$major' 10078 shlibpath_var=LD_LIBRARY_PATH 10079 ;; 10080 10081*) 10082 dynamic_linker=no 10083 ;; 10084esac 10085{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10086$as_echo "$dynamic_linker" >&6; } 10087test "$dynamic_linker" = no && can_build_shared=no 10088 10089variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10090if test "$GCC" = yes; then 10091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10092fi 10093 10094if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10095 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10096fi 10097if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10098 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10099fi 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10188$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10189hardcode_action= 10190if test -n "$hardcode_libdir_flag_spec" || 10191 test -n "$runpath_var" || 10192 test "X$hardcode_automatic" = "Xyes" ; then 10193 10194 # We can hardcode non-existent directories. 10195 if test "$hardcode_direct" != no && 10196 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10197 # have to relink, otherwise we might link with an installed library 10198 # when we should be linking with a yet-to-be-installed one 10199 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10200 test "$hardcode_minus_L" != no; then 10201 # Linking always hardcodes the temporary library directory. 10202 hardcode_action=relink 10203 else 10204 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10205 hardcode_action=immediate 10206 fi 10207else 10208 # We cannot hardcode anything, or else we can only hardcode existing 10209 # directories. 10210 hardcode_action=unsupported 10211fi 10212{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10213$as_echo "$hardcode_action" >&6; } 10214 10215if test "$hardcode_action" = relink || 10216 test "$inherit_rpath" = yes; then 10217 # Fast installation is not supported 10218 enable_fast_install=no 10219elif test "$shlibpath_overrides_runpath" = yes || 10220 test "$enable_shared" = no; then 10221 # Fast installation is not necessary 10222 enable_fast_install=needless 10223fi 10224 10225 10226 10227 10228 10229 10230 if test "x$enable_dlopen" != xyes; then 10231 enable_dlopen=unknown 10232 enable_dlopen_self=unknown 10233 enable_dlopen_self_static=unknown 10234else 10235 lt_cv_dlopen=no 10236 lt_cv_dlopen_libs= 10237 10238 case $host_os in 10239 beos*) 10240 lt_cv_dlopen="load_add_on" 10241 lt_cv_dlopen_libs= 10242 lt_cv_dlopen_self=yes 10243 ;; 10244 10245 mingw* | pw32* | cegcc*) 10246 lt_cv_dlopen="LoadLibrary" 10247 lt_cv_dlopen_libs= 10248 ;; 10249 10250 cygwin*) 10251 lt_cv_dlopen="dlopen" 10252 lt_cv_dlopen_libs= 10253 ;; 10254 10255 darwin*) 10256 # if libdl is installed we need to link against it 10257 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10258$as_echo_n "checking for dlopen in -ldl... " >&6; } 10259if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10260 $as_echo_n "(cached) " >&6 10261else 10262 ac_check_lib_save_LIBS=$LIBS 10263LIBS="-ldl $LIBS" 10264cat >conftest.$ac_ext <<_ACEOF 10265/* confdefs.h. */ 10266_ACEOF 10267cat confdefs.h >>conftest.$ac_ext 10268cat >>conftest.$ac_ext <<_ACEOF 10269/* end confdefs.h. */ 10270 10271/* Override any GCC internal prototype to avoid an error. 10272 Use char because int might match the return type of a GCC 10273 builtin and then its argument prototype would still apply. */ 10274#ifdef __cplusplus 10275extern "C" 10276#endif 10277char dlopen (); 10278int 10279main () 10280{ 10281return dlopen (); 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286rm -f conftest.$ac_objext conftest$ac_exeext 10287if { (ac_try="$ac_link" 10288case "(($ac_try" in 10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10290 *) ac_try_echo=$ac_try;; 10291esac 10292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10293$as_echo "$ac_try_echo") >&5 10294 (eval "$ac_link") 2>conftest.er1 10295 ac_status=$? 10296 grep -v '^ *+' conftest.er1 >conftest.err 10297 rm -f conftest.er1 10298 cat conftest.err >&5 10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); } && { 10301 test -z "$ac_c_werror_flag" || 10302 test ! -s conftest.err 10303 } && test -s conftest$ac_exeext && { 10304 test "$cross_compiling" = yes || 10305 $as_test_x conftest$ac_exeext 10306 }; then 10307 ac_cv_lib_dl_dlopen=yes 10308else 10309 $as_echo "$as_me: failed program was:" >&5 10310sed 's/^/| /' conftest.$ac_ext >&5 10311 10312 ac_cv_lib_dl_dlopen=no 10313fi 10314 10315rm -rf conftest.dSYM 10316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10317 conftest$ac_exeext conftest.$ac_ext 10318LIBS=$ac_check_lib_save_LIBS 10319fi 10320{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10321$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10322if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10324else 10325 10326 lt_cv_dlopen="dyld" 10327 lt_cv_dlopen_libs= 10328 lt_cv_dlopen_self=yes 10329 10330fi 10331 10332 ;; 10333 10334 *) 10335 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10336$as_echo_n "checking for shl_load... " >&6; } 10337if test "${ac_cv_func_shl_load+set}" = set; then 10338 $as_echo_n "(cached) " >&6 10339else 10340 cat >conftest.$ac_ext <<_ACEOF 10341/* confdefs.h. */ 10342_ACEOF 10343cat confdefs.h >>conftest.$ac_ext 10344cat >>conftest.$ac_ext <<_ACEOF 10345/* end confdefs.h. */ 10346/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10347 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10348#define shl_load innocuous_shl_load 10349 10350/* System header to define __stub macros and hopefully few prototypes, 10351 which can conflict with char shl_load (); below. 10352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10353 <limits.h> exists even on freestanding compilers. */ 10354 10355#ifdef __STDC__ 10356# include <limits.h> 10357#else 10358# include <assert.h> 10359#endif 10360 10361#undef shl_load 10362 10363/* Override any GCC internal prototype to avoid an error. 10364 Use char because int might match the return type of a GCC 10365 builtin and then its argument prototype would still apply. */ 10366#ifdef __cplusplus 10367extern "C" 10368#endif 10369char shl_load (); 10370/* The GNU C library defines this for functions which it implements 10371 to always fail with ENOSYS. Some functions are actually named 10372 something starting with __ and the normal name is an alias. */ 10373#if defined __stub_shl_load || defined __stub___shl_load 10374choke me 10375#endif 10376 10377int 10378main () 10379{ 10380return shl_load (); 10381 ; 10382 return 0; 10383} 10384_ACEOF 10385rm -f conftest.$ac_objext conftest$ac_exeext 10386if { (ac_try="$ac_link" 10387case "(($ac_try" in 10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10389 *) ac_try_echo=$ac_try;; 10390esac 10391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10392$as_echo "$ac_try_echo") >&5 10393 (eval "$ac_link") 2>conftest.er1 10394 ac_status=$? 10395 grep -v '^ *+' conftest.er1 >conftest.err 10396 rm -f conftest.er1 10397 cat conftest.err >&5 10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10399 (exit $ac_status); } && { 10400 test -z "$ac_c_werror_flag" || 10401 test ! -s conftest.err 10402 } && test -s conftest$ac_exeext && { 10403 test "$cross_compiling" = yes || 10404 $as_test_x conftest$ac_exeext 10405 }; then 10406 ac_cv_func_shl_load=yes 10407else 10408 $as_echo "$as_me: failed program was:" >&5 10409sed 's/^/| /' conftest.$ac_ext >&5 10410 10411 ac_cv_func_shl_load=no 10412fi 10413 10414rm -rf conftest.dSYM 10415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10416 conftest$ac_exeext conftest.$ac_ext 10417fi 10418{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10419$as_echo "$ac_cv_func_shl_load" >&6; } 10420if test "x$ac_cv_func_shl_load" = x""yes; then 10421 lt_cv_dlopen="shl_load" 10422else 10423 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10424$as_echo_n "checking for shl_load in -ldld... " >&6; } 10425if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10426 $as_echo_n "(cached) " >&6 10427else 10428 ac_check_lib_save_LIBS=$LIBS 10429LIBS="-ldld $LIBS" 10430cat >conftest.$ac_ext <<_ACEOF 10431/* confdefs.h. */ 10432_ACEOF 10433cat confdefs.h >>conftest.$ac_ext 10434cat >>conftest.$ac_ext <<_ACEOF 10435/* end confdefs.h. */ 10436 10437/* Override any GCC internal prototype to avoid an error. 10438 Use char because int might match the return type of a GCC 10439 builtin and then its argument prototype would still apply. */ 10440#ifdef __cplusplus 10441extern "C" 10442#endif 10443char shl_load (); 10444int 10445main () 10446{ 10447return shl_load (); 10448 ; 10449 return 0; 10450} 10451_ACEOF 10452rm -f conftest.$ac_objext conftest$ac_exeext 10453if { (ac_try="$ac_link" 10454case "(($ac_try" in 10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10456 *) ac_try_echo=$ac_try;; 10457esac 10458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10459$as_echo "$ac_try_echo") >&5 10460 (eval "$ac_link") 2>conftest.er1 10461 ac_status=$? 10462 grep -v '^ *+' conftest.er1 >conftest.err 10463 rm -f conftest.er1 10464 cat conftest.err >&5 10465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 (exit $ac_status); } && { 10467 test -z "$ac_c_werror_flag" || 10468 test ! -s conftest.err 10469 } && test -s conftest$ac_exeext && { 10470 test "$cross_compiling" = yes || 10471 $as_test_x conftest$ac_exeext 10472 }; then 10473 ac_cv_lib_dld_shl_load=yes 10474else 10475 $as_echo "$as_me: failed program was:" >&5 10476sed 's/^/| /' conftest.$ac_ext >&5 10477 10478 ac_cv_lib_dld_shl_load=no 10479fi 10480 10481rm -rf conftest.dSYM 10482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10483 conftest$ac_exeext conftest.$ac_ext 10484LIBS=$ac_check_lib_save_LIBS 10485fi 10486{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10487$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10488if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10489 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10490else 10491 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10492$as_echo_n "checking for dlopen... " >&6; } 10493if test "${ac_cv_func_dlopen+set}" = set; then 10494 $as_echo_n "(cached) " >&6 10495else 10496 cat >conftest.$ac_ext <<_ACEOF 10497/* confdefs.h. */ 10498_ACEOF 10499cat confdefs.h >>conftest.$ac_ext 10500cat >>conftest.$ac_ext <<_ACEOF 10501/* end confdefs.h. */ 10502/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10503 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10504#define dlopen innocuous_dlopen 10505 10506/* System header to define __stub macros and hopefully few prototypes, 10507 which can conflict with char dlopen (); below. 10508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10509 <limits.h> exists even on freestanding compilers. */ 10510 10511#ifdef __STDC__ 10512# include <limits.h> 10513#else 10514# include <assert.h> 10515#endif 10516 10517#undef dlopen 10518 10519/* Override any GCC internal prototype to avoid an error. 10520 Use char because int might match the return type of a GCC 10521 builtin and then its argument prototype would still apply. */ 10522#ifdef __cplusplus 10523extern "C" 10524#endif 10525char dlopen (); 10526/* The GNU C library defines this for functions which it implements 10527 to always fail with ENOSYS. Some functions are actually named 10528 something starting with __ and the normal name is an alias. */ 10529#if defined __stub_dlopen || defined __stub___dlopen 10530choke me 10531#endif 10532 10533int 10534main () 10535{ 10536return dlopen (); 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541rm -f conftest.$ac_objext conftest$ac_exeext 10542if { (ac_try="$ac_link" 10543case "(($ac_try" in 10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10545 *) ac_try_echo=$ac_try;; 10546esac 10547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10548$as_echo "$ac_try_echo") >&5 10549 (eval "$ac_link") 2>conftest.er1 10550 ac_status=$? 10551 grep -v '^ *+' conftest.er1 >conftest.err 10552 rm -f conftest.er1 10553 cat conftest.err >&5 10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10555 (exit $ac_status); } && { 10556 test -z "$ac_c_werror_flag" || 10557 test ! -s conftest.err 10558 } && test -s conftest$ac_exeext && { 10559 test "$cross_compiling" = yes || 10560 $as_test_x conftest$ac_exeext 10561 }; then 10562 ac_cv_func_dlopen=yes 10563else 10564 $as_echo "$as_me: failed program was:" >&5 10565sed 's/^/| /' conftest.$ac_ext >&5 10566 10567 ac_cv_func_dlopen=no 10568fi 10569 10570rm -rf conftest.dSYM 10571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10572 conftest$ac_exeext conftest.$ac_ext 10573fi 10574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10575$as_echo "$ac_cv_func_dlopen" >&6; } 10576if test "x$ac_cv_func_dlopen" = x""yes; then 10577 lt_cv_dlopen="dlopen" 10578else 10579 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10580$as_echo_n "checking for dlopen in -ldl... " >&6; } 10581if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10582 $as_echo_n "(cached) " >&6 10583else 10584 ac_check_lib_save_LIBS=$LIBS 10585LIBS="-ldl $LIBS" 10586cat >conftest.$ac_ext <<_ACEOF 10587/* confdefs.h. */ 10588_ACEOF 10589cat confdefs.h >>conftest.$ac_ext 10590cat >>conftest.$ac_ext <<_ACEOF 10591/* end confdefs.h. */ 10592 10593/* Override any GCC internal prototype to avoid an error. 10594 Use char because int might match the return type of a GCC 10595 builtin and then its argument prototype would still apply. */ 10596#ifdef __cplusplus 10597extern "C" 10598#endif 10599char dlopen (); 10600int 10601main () 10602{ 10603return dlopen (); 10604 ; 10605 return 0; 10606} 10607_ACEOF 10608rm -f conftest.$ac_objext conftest$ac_exeext 10609if { (ac_try="$ac_link" 10610case "(($ac_try" in 10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10612 *) ac_try_echo=$ac_try;; 10613esac 10614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10615$as_echo "$ac_try_echo") >&5 10616 (eval "$ac_link") 2>conftest.er1 10617 ac_status=$? 10618 grep -v '^ *+' conftest.er1 >conftest.err 10619 rm -f conftest.er1 10620 cat conftest.err >&5 10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10622 (exit $ac_status); } && { 10623 test -z "$ac_c_werror_flag" || 10624 test ! -s conftest.err 10625 } && test -s conftest$ac_exeext && { 10626 test "$cross_compiling" = yes || 10627 $as_test_x conftest$ac_exeext 10628 }; then 10629 ac_cv_lib_dl_dlopen=yes 10630else 10631 $as_echo "$as_me: failed program was:" >&5 10632sed 's/^/| /' conftest.$ac_ext >&5 10633 10634 ac_cv_lib_dl_dlopen=no 10635fi 10636 10637rm -rf conftest.dSYM 10638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10639 conftest$ac_exeext conftest.$ac_ext 10640LIBS=$ac_check_lib_save_LIBS 10641fi 10642{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10643$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10644if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10646else 10647 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10648$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10649if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10650 $as_echo_n "(cached) " >&6 10651else 10652 ac_check_lib_save_LIBS=$LIBS 10653LIBS="-lsvld $LIBS" 10654cat >conftest.$ac_ext <<_ACEOF 10655/* confdefs.h. */ 10656_ACEOF 10657cat confdefs.h >>conftest.$ac_ext 10658cat >>conftest.$ac_ext <<_ACEOF 10659/* end confdefs.h. */ 10660 10661/* Override any GCC internal prototype to avoid an error. 10662 Use char because int might match the return type of a GCC 10663 builtin and then its argument prototype would still apply. */ 10664#ifdef __cplusplus 10665extern "C" 10666#endif 10667char dlopen (); 10668int 10669main () 10670{ 10671return dlopen (); 10672 ; 10673 return 0; 10674} 10675_ACEOF 10676rm -f conftest.$ac_objext conftest$ac_exeext 10677if { (ac_try="$ac_link" 10678case "(($ac_try" in 10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10680 *) ac_try_echo=$ac_try;; 10681esac 10682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10683$as_echo "$ac_try_echo") >&5 10684 (eval "$ac_link") 2>conftest.er1 10685 ac_status=$? 10686 grep -v '^ *+' conftest.er1 >conftest.err 10687 rm -f conftest.er1 10688 cat conftest.err >&5 10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10690 (exit $ac_status); } && { 10691 test -z "$ac_c_werror_flag" || 10692 test ! -s conftest.err 10693 } && test -s conftest$ac_exeext && { 10694 test "$cross_compiling" = yes || 10695 $as_test_x conftest$ac_exeext 10696 }; then 10697 ac_cv_lib_svld_dlopen=yes 10698else 10699 $as_echo "$as_me: failed program was:" >&5 10700sed 's/^/| /' conftest.$ac_ext >&5 10701 10702 ac_cv_lib_svld_dlopen=no 10703fi 10704 10705rm -rf conftest.dSYM 10706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10707 conftest$ac_exeext conftest.$ac_ext 10708LIBS=$ac_check_lib_save_LIBS 10709fi 10710{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10711$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10712if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10714else 10715 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10716$as_echo_n "checking for dld_link in -ldld... " >&6; } 10717if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10718 $as_echo_n "(cached) " >&6 10719else 10720 ac_check_lib_save_LIBS=$LIBS 10721LIBS="-ldld $LIBS" 10722cat >conftest.$ac_ext <<_ACEOF 10723/* confdefs.h. */ 10724_ACEOF 10725cat confdefs.h >>conftest.$ac_ext 10726cat >>conftest.$ac_ext <<_ACEOF 10727/* end confdefs.h. */ 10728 10729/* Override any GCC internal prototype to avoid an error. 10730 Use char because int might match the return type of a GCC 10731 builtin and then its argument prototype would still apply. */ 10732#ifdef __cplusplus 10733extern "C" 10734#endif 10735char dld_link (); 10736int 10737main () 10738{ 10739return dld_link (); 10740 ; 10741 return 0; 10742} 10743_ACEOF 10744rm -f conftest.$ac_objext conftest$ac_exeext 10745if { (ac_try="$ac_link" 10746case "(($ac_try" in 10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10748 *) ac_try_echo=$ac_try;; 10749esac 10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10751$as_echo "$ac_try_echo") >&5 10752 (eval "$ac_link") 2>conftest.er1 10753 ac_status=$? 10754 grep -v '^ *+' conftest.er1 >conftest.err 10755 rm -f conftest.er1 10756 cat conftest.err >&5 10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10758 (exit $ac_status); } && { 10759 test -z "$ac_c_werror_flag" || 10760 test ! -s conftest.err 10761 } && test -s conftest$ac_exeext && { 10762 test "$cross_compiling" = yes || 10763 $as_test_x conftest$ac_exeext 10764 }; then 10765 ac_cv_lib_dld_dld_link=yes 10766else 10767 $as_echo "$as_me: failed program was:" >&5 10768sed 's/^/| /' conftest.$ac_ext >&5 10769 10770 ac_cv_lib_dld_dld_link=no 10771fi 10772 10773rm -rf conftest.dSYM 10774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10775 conftest$ac_exeext conftest.$ac_ext 10776LIBS=$ac_check_lib_save_LIBS 10777fi 10778{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10779$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10780if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10781 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10782fi 10783 10784 10785fi 10786 10787 10788fi 10789 10790 10791fi 10792 10793 10794fi 10795 10796 10797fi 10798 10799 ;; 10800 esac 10801 10802 if test "x$lt_cv_dlopen" != xno; then 10803 enable_dlopen=yes 10804 else 10805 enable_dlopen=no 10806 fi 10807 10808 case $lt_cv_dlopen in 10809 dlopen) 10810 save_CPPFLAGS="$CPPFLAGS" 10811 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10812 10813 save_LDFLAGS="$LDFLAGS" 10814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10815 10816 save_LIBS="$LIBS" 10817 LIBS="$lt_cv_dlopen_libs $LIBS" 10818 10819 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10820$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10821if test "${lt_cv_dlopen_self+set}" = set; then 10822 $as_echo_n "(cached) " >&6 10823else 10824 if test "$cross_compiling" = yes; then : 10825 lt_cv_dlopen_self=cross 10826else 10827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10828 lt_status=$lt_dlunknown 10829 cat > conftest.$ac_ext <<_LT_EOF 10830#line 10830 "configure" 10831#include "confdefs.h" 10832 10833#if HAVE_DLFCN_H 10834#include <dlfcn.h> 10835#endif 10836 10837#include <stdio.h> 10838 10839#ifdef RTLD_GLOBAL 10840# define LT_DLGLOBAL RTLD_GLOBAL 10841#else 10842# ifdef DL_GLOBAL 10843# define LT_DLGLOBAL DL_GLOBAL 10844# else 10845# define LT_DLGLOBAL 0 10846# endif 10847#endif 10848 10849/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10850 find out it does not work in some platform. */ 10851#ifndef LT_DLLAZY_OR_NOW 10852# ifdef RTLD_LAZY 10853# define LT_DLLAZY_OR_NOW RTLD_LAZY 10854# else 10855# ifdef DL_LAZY 10856# define LT_DLLAZY_OR_NOW DL_LAZY 10857# else 10858# ifdef RTLD_NOW 10859# define LT_DLLAZY_OR_NOW RTLD_NOW 10860# else 10861# ifdef DL_NOW 10862# define LT_DLLAZY_OR_NOW DL_NOW 10863# else 10864# define LT_DLLAZY_OR_NOW 0 10865# endif 10866# endif 10867# endif 10868# endif 10869#endif 10870 10871void fnord() { int i=42;} 10872int main () 10873{ 10874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10875 int status = $lt_dlunknown; 10876 10877 if (self) 10878 { 10879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10881 /* dlclose (self); */ 10882 } 10883 else 10884 puts (dlerror ()); 10885 10886 return status; 10887} 10888_LT_EOF 10889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10890 (eval $ac_link) 2>&5 10891 ac_status=$? 10892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10894 (./conftest; exit; ) >&5 2>/dev/null 10895 lt_status=$? 10896 case x$lt_status in 10897 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10898 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10899 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10900 esac 10901 else : 10902 # compilation failed 10903 lt_cv_dlopen_self=no 10904 fi 10905fi 10906rm -fr conftest* 10907 10908 10909fi 10910{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10911$as_echo "$lt_cv_dlopen_self" >&6; } 10912 10913 if test "x$lt_cv_dlopen_self" = xyes; then 10914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10915 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10916$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10917if test "${lt_cv_dlopen_self_static+set}" = set; then 10918 $as_echo_n "(cached) " >&6 10919else 10920 if test "$cross_compiling" = yes; then : 10921 lt_cv_dlopen_self_static=cross 10922else 10923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10924 lt_status=$lt_dlunknown 10925 cat > conftest.$ac_ext <<_LT_EOF 10926#line 10926 "configure" 10927#include "confdefs.h" 10928 10929#if HAVE_DLFCN_H 10930#include <dlfcn.h> 10931#endif 10932 10933#include <stdio.h> 10934 10935#ifdef RTLD_GLOBAL 10936# define LT_DLGLOBAL RTLD_GLOBAL 10937#else 10938# ifdef DL_GLOBAL 10939# define LT_DLGLOBAL DL_GLOBAL 10940# else 10941# define LT_DLGLOBAL 0 10942# endif 10943#endif 10944 10945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10946 find out it does not work in some platform. */ 10947#ifndef LT_DLLAZY_OR_NOW 10948# ifdef RTLD_LAZY 10949# define LT_DLLAZY_OR_NOW RTLD_LAZY 10950# else 10951# ifdef DL_LAZY 10952# define LT_DLLAZY_OR_NOW DL_LAZY 10953# else 10954# ifdef RTLD_NOW 10955# define LT_DLLAZY_OR_NOW RTLD_NOW 10956# else 10957# ifdef DL_NOW 10958# define LT_DLLAZY_OR_NOW DL_NOW 10959# else 10960# define LT_DLLAZY_OR_NOW 0 10961# endif 10962# endif 10963# endif 10964# endif 10965#endif 10966 10967void fnord() { int i=42;} 10968int main () 10969{ 10970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10971 int status = $lt_dlunknown; 10972 10973 if (self) 10974 { 10975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10977 /* dlclose (self); */ 10978 } 10979 else 10980 puts (dlerror ()); 10981 10982 return status; 10983} 10984_LT_EOF 10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10986 (eval $ac_link) 2>&5 10987 ac_status=$? 10988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10989 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10990 (./conftest; exit; ) >&5 2>/dev/null 10991 lt_status=$? 10992 case x$lt_status in 10993 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10994 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10995 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10996 esac 10997 else : 10998 # compilation failed 10999 lt_cv_dlopen_self_static=no 11000 fi 11001fi 11002rm -fr conftest* 11003 11004 11005fi 11006{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11007$as_echo "$lt_cv_dlopen_self_static" >&6; } 11008 fi 11009 11010 CPPFLAGS="$save_CPPFLAGS" 11011 LDFLAGS="$save_LDFLAGS" 11012 LIBS="$save_LIBS" 11013 ;; 11014 esac 11015 11016 case $lt_cv_dlopen_self in 11017 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11018 *) enable_dlopen_self=unknown ;; 11019 esac 11020 11021 case $lt_cv_dlopen_self_static in 11022 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11023 *) enable_dlopen_self_static=unknown ;; 11024 esac 11025fi 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043striplib= 11044old_striplib= 11045{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11046$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11047if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11048 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11049 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11050 { $as_echo "$as_me:$LINENO: result: yes" >&5 11051$as_echo "yes" >&6; } 11052else 11053# FIXME - insert some real tests, host_os isn't really good enough 11054 case $host_os in 11055 darwin*) 11056 if test -n "$STRIP" ; then 11057 striplib="$STRIP -x" 11058 old_striplib="$STRIP -S" 11059 { $as_echo "$as_me:$LINENO: result: yes" >&5 11060$as_echo "yes" >&6; } 11061 else 11062 { $as_echo "$as_me:$LINENO: result: no" >&5 11063$as_echo "no" >&6; } 11064 fi 11065 ;; 11066 *) 11067 { $as_echo "$as_me:$LINENO: result: no" >&5 11068$as_echo "no" >&6; } 11069 ;; 11070 esac 11071fi 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 # Report which library types will actually be built 11085 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11086$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11087 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11088$as_echo "$can_build_shared" >&6; } 11089 11090 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11091$as_echo_n "checking whether to build shared libraries... " >&6; } 11092 test "$can_build_shared" = "no" && enable_shared=no 11093 11094 # On AIX, shared libraries and static libraries use the same namespace, and 11095 # are all built from PIC. 11096 case $host_os in 11097 aix3*) 11098 test "$enable_shared" = yes && enable_static=no 11099 if test -n "$RANLIB"; then 11100 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11101 postinstall_cmds='$RANLIB $lib' 11102 fi 11103 ;; 11104 11105 aix[4-9]*) 11106 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11107 test "$enable_shared" = yes && enable_static=no 11108 fi 11109 ;; 11110 esac 11111 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11112$as_echo "$enable_shared" >&6; } 11113 11114 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11115$as_echo_n "checking whether to build static libraries... " >&6; } 11116 # Make sure either enable_shared or enable_static is yes. 11117 test "$enable_shared" = yes || enable_static=yes 11118 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11119$as_echo "$enable_static" >&6; } 11120 11121 11122 11123 11124fi 11125ac_ext=c 11126ac_cpp='$CPP $CPPFLAGS' 11127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11129ac_compiler_gnu=$ac_cv_c_compiler_gnu 11130 11131CC="$lt_save_CC" 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 ac_config_commands="$ac_config_commands libtool" 11146 11147 11148 11149 11150# Only expand once: 11151 11152 11153 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 11154$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11155if test "${ac_cv_prog_cc_c99+set}" = set; then 11156 $as_echo_n "(cached) " >&6 11157else 11158 ac_cv_prog_cc_c99=no 11159ac_save_CC=$CC 11160cat >conftest.$ac_ext <<_ACEOF 11161/* confdefs.h. */ 11162_ACEOF 11163cat confdefs.h >>conftest.$ac_ext 11164cat >>conftest.$ac_ext <<_ACEOF 11165/* end confdefs.h. */ 11166#include <stdarg.h> 11167#include <stdbool.h> 11168#include <stdlib.h> 11169#include <wchar.h> 11170#include <stdio.h> 11171 11172// Check varargs macros. These examples are taken from C99 6.10.3.5. 11173#define debug(...) fprintf (stderr, __VA_ARGS__) 11174#define showlist(...) puts (#__VA_ARGS__) 11175#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11176static void 11177test_varargs_macros (void) 11178{ 11179 int x = 1234; 11180 int y = 5678; 11181 debug ("Flag"); 11182 debug ("X = %d\n", x); 11183 showlist (The first, second, and third items.); 11184 report (x>y, "x is %d but y is %d", x, y); 11185} 11186 11187// Check long long types. 11188#define BIG64 18446744073709551615ull 11189#define BIG32 4294967295ul 11190#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11191#if !BIG_OK 11192 your preprocessor is broken; 11193#endif 11194#if BIG_OK 11195#else 11196 your preprocessor is broken; 11197#endif 11198static long long int bignum = -9223372036854775807LL; 11199static unsigned long long int ubignum = BIG64; 11200 11201struct incomplete_array 11202{ 11203 int datasize; 11204 double data[]; 11205}; 11206 11207struct named_init { 11208 int number; 11209 const wchar_t *name; 11210 double average; 11211}; 11212 11213typedef const char *ccp; 11214 11215static inline int 11216test_restrict (ccp restrict text) 11217{ 11218 // See if C++-style comments work. 11219 // Iterate through items via the restricted pointer. 11220 // Also check for declarations in for loops. 11221 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11222 continue; 11223 return 0; 11224} 11225 11226// Check varargs and va_copy. 11227static void 11228test_varargs (const char *format, ...) 11229{ 11230 va_list args; 11231 va_start (args, format); 11232 va_list args_copy; 11233 va_copy (args_copy, args); 11234 11235 const char *str; 11236 int number; 11237 float fnumber; 11238 11239 while (*format) 11240 { 11241 switch (*format++) 11242 { 11243 case 's': // string 11244 str = va_arg (args_copy, const char *); 11245 break; 11246 case 'd': // int 11247 number = va_arg (args_copy, int); 11248 break; 11249 case 'f': // float 11250 fnumber = va_arg (args_copy, double); 11251 break; 11252 default: 11253 break; 11254 } 11255 } 11256 va_end (args_copy); 11257 va_end (args); 11258} 11259 11260int 11261main () 11262{ 11263 11264 // Check bool. 11265 _Bool success = false; 11266 11267 // Check restrict. 11268 if (test_restrict ("String literal") == 0) 11269 success = true; 11270 char *restrict newvar = "Another string"; 11271 11272 // Check varargs. 11273 test_varargs ("s, d' f .", "string", 65, 34.234); 11274 test_varargs_macros (); 11275 11276 // Check flexible array members. 11277 struct incomplete_array *ia = 11278 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11279 ia->datasize = 10; 11280 for (int i = 0; i < ia->datasize; ++i) 11281 ia->data[i] = i * 1.234; 11282 11283 // Check named initializers. 11284 struct named_init ni = { 11285 .number = 34, 11286 .name = L"Test wide string", 11287 .average = 543.34343, 11288 }; 11289 11290 ni.number = 58; 11291 11292 int dynamic_array[ni.number]; 11293 dynamic_array[ni.number - 1] = 543; 11294 11295 // work around unused variable warnings 11296 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11297 || dynamic_array[ni.number - 1] != 543); 11298 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11304do 11305 CC="$ac_save_CC $ac_arg" 11306 rm -f conftest.$ac_objext 11307if { (ac_try="$ac_compile" 11308case "(($ac_try" in 11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11310 *) ac_try_echo=$ac_try;; 11311esac 11312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11313$as_echo "$ac_try_echo") >&5 11314 (eval "$ac_compile") 2>conftest.er1 11315 ac_status=$? 11316 grep -v '^ *+' conftest.er1 >conftest.err 11317 rm -f conftest.er1 11318 cat conftest.err >&5 11319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11320 (exit $ac_status); } && { 11321 test -z "$ac_c_werror_flag" || 11322 test ! -s conftest.err 11323 } && test -s conftest.$ac_objext; then 11324 ac_cv_prog_cc_c99=$ac_arg 11325else 11326 $as_echo "$as_me: failed program was:" >&5 11327sed 's/^/| /' conftest.$ac_ext >&5 11328 11329 11330fi 11331 11332rm -f core conftest.err conftest.$ac_objext 11333 test "x$ac_cv_prog_cc_c99" != "xno" && break 11334done 11335rm -f conftest.$ac_ext 11336CC=$ac_save_CC 11337 11338fi 11339# AC_CACHE_VAL 11340case "x$ac_cv_prog_cc_c99" in 11341 x) 11342 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11343$as_echo "none needed" >&6; } ;; 11344 xno) 11345 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11346$as_echo "unsupported" >&6; } ;; 11347 *) 11348 CC="$CC $ac_cv_prog_cc_c99" 11349 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 11350$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11351esac 11352 11353 11354 11355 11356 11357 11358if test "x$GCC" = xyes ; then 11359 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 11360-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 11361-Wbad-function-cast" 11362 case `$CC -dumpversion` in 11363 3.4.* | 4.*) 11364 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 11365 ;; 11366 esac 11367else 11368 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 11369$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 11370if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 11371 $as_echo_n "(cached) " >&6 11372else 11373 cat >conftest.$ac_ext <<_ACEOF 11374/* confdefs.h. */ 11375_ACEOF 11376cat confdefs.h >>conftest.$ac_ext 11377cat >>conftest.$ac_ext <<_ACEOF 11378/* end confdefs.h. */ 11379$ac_includes_default 11380int 11381main () 11382{ 11383#ifndef __SUNPRO_C 11384 (void) __SUNPRO_C; 11385#endif 11386 11387 ; 11388 return 0; 11389} 11390_ACEOF 11391rm -f conftest.$ac_objext 11392if { (ac_try="$ac_compile" 11393case "(($ac_try" in 11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11395 *) ac_try_echo=$ac_try;; 11396esac 11397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11398$as_echo "$ac_try_echo") >&5 11399 (eval "$ac_compile") 2>conftest.er1 11400 ac_status=$? 11401 grep -v '^ *+' conftest.er1 >conftest.err 11402 rm -f conftest.er1 11403 cat conftest.err >&5 11404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11405 (exit $ac_status); } && { 11406 test -z "$ac_c_werror_flag" || 11407 test ! -s conftest.err 11408 } && test -s conftest.$ac_objext; then 11409 ac_cv_have_decl___SUNPRO_C=yes 11410else 11411 $as_echo "$as_me: failed program was:" >&5 11412sed 's/^/| /' conftest.$ac_ext >&5 11413 11414 ac_cv_have_decl___SUNPRO_C=no 11415fi 11416 11417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11418fi 11419{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 11420$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 11421if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 11422 SUNCC="yes" 11423else 11424 SUNCC="no" 11425fi 11426 11427 if test "x$SUNCC" = "xyes"; then 11428 CWARNFLAGS="-v" 11429 fi 11430fi 11431 11432# Check whether --enable-silent-rules was given. 11433if test "${enable_silent_rules+set}" = set; then 11434 enableval=$enable_silent_rules; 11435fi 11436 11437case $enable_silent_rules in 11438yes) AM_DEFAULT_VERBOSITY=0;; 11439no) AM_DEFAULT_VERBOSITY=1;; 11440*) AM_DEFAULT_VERBOSITY=0;; 11441esac 11442AM_BACKSLASH='\' 11443 11444 11445 11446 11447 11448 11449 11450# Check whether --enable-strict-compilation was given. 11451if test "${enable_strict_compilation+set}" = set; then 11452 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11453else 11454 STRICT_COMPILE=no 11455fi 11456 11457if test "x$STRICT_COMPILE" = "xyes"; then 11458 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 11459$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 11460if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 11461 $as_echo_n "(cached) " >&6 11462else 11463 cat >conftest.$ac_ext <<_ACEOF 11464/* confdefs.h. */ 11465_ACEOF 11466cat confdefs.h >>conftest.$ac_ext 11467cat >>conftest.$ac_ext <<_ACEOF 11468/* end confdefs.h. */ 11469$ac_includes_default 11470int 11471main () 11472{ 11473#ifndef __SUNPRO_C 11474 (void) __SUNPRO_C; 11475#endif 11476 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481rm -f conftest.$ac_objext 11482if { (ac_try="$ac_compile" 11483case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486esac 11487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11488$as_echo "$ac_try_echo") >&5 11489 (eval "$ac_compile") 2>conftest.er1 11490 ac_status=$? 11491 grep -v '^ *+' conftest.er1 >conftest.err 11492 rm -f conftest.er1 11493 cat conftest.err >&5 11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 (exit $ac_status); } && { 11496 test -z "$ac_c_werror_flag" || 11497 test ! -s conftest.err 11498 } && test -s conftest.$ac_objext; then 11499 ac_cv_have_decl___SUNPRO_C=yes 11500else 11501 $as_echo "$as_me: failed program was:" >&5 11502sed 's/^/| /' conftest.$ac_ext >&5 11503 11504 ac_cv_have_decl___SUNPRO_C=no 11505fi 11506 11507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11508fi 11509{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 11510$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 11511if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 11512 SUNCC="yes" 11513else 11514 SUNCC="no" 11515fi 11516 11517 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 11518$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 11519if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 11520 $as_echo_n "(cached) " >&6 11521else 11522 cat >conftest.$ac_ext <<_ACEOF 11523/* confdefs.h. */ 11524_ACEOF 11525cat confdefs.h >>conftest.$ac_ext 11526cat >>conftest.$ac_ext <<_ACEOF 11527/* end confdefs.h. */ 11528$ac_includes_default 11529int 11530main () 11531{ 11532#ifndef __INTEL_COMPILER 11533 (void) __INTEL_COMPILER; 11534#endif 11535 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540rm -f conftest.$ac_objext 11541if { (ac_try="$ac_compile" 11542case "(($ac_try" in 11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11544 *) ac_try_echo=$ac_try;; 11545esac 11546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11547$as_echo "$ac_try_echo") >&5 11548 (eval "$ac_compile") 2>conftest.er1 11549 ac_status=$? 11550 grep -v '^ *+' conftest.er1 >conftest.err 11551 rm -f conftest.er1 11552 cat conftest.err >&5 11553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11554 (exit $ac_status); } && { 11555 test -z "$ac_c_werror_flag" || 11556 test ! -s conftest.err 11557 } && test -s conftest.$ac_objext; then 11558 ac_cv_have_decl___INTEL_COMPILER=yes 11559else 11560 $as_echo "$as_me: failed program was:" >&5 11561sed 's/^/| /' conftest.$ac_ext >&5 11562 11563 ac_cv_have_decl___INTEL_COMPILER=no 11564fi 11565 11566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11567fi 11568{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 11569$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 11570if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 11571 INTELCC="yes" 11572else 11573 INTELCC="no" 11574fi 11575 11576 if test "x$GCC" = xyes ; then 11577 STRICT_CFLAGS="-pedantic -Werror" 11578 elif test "x$SUNCC" = "xyes"; then 11579 STRICT_CFLAGS="-errwarn" 11580 elif test "x$INTELCC" = "xyes"; then 11581 STRICT_CFLAGS="-Werror" 11582 fi 11583fi 11584CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11585 11586 11587 11588 11589# Check whether --with-release-version was given. 11590if test "${with_release_version+set}" = set; then 11591 withval=$with_release_version; RELEASE_VERSION="$withval" 11592else 11593 RELEASE_VERSION="" 11594fi 11595 11596 if test "x$RELEASE_VERSION" != "x"; then 11597 PACKAGE="$PACKAGE-$RELEASE_VERSION" 11598 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 11599 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 11600$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 11601 fi 11602 11603cat >>confdefs.h <<_ACEOF 11604#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11605_ACEOF 11606 11607 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11608 if test "x$PVM" = "x"; then 11609 PVM="0" 11610 fi 11611 11612cat >>confdefs.h <<_ACEOF 11613#define PACKAGE_VERSION_MINOR $PVM 11614_ACEOF 11615 11616 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11617 if test "x$PVP" = "x"; then 11618 PVP="0" 11619 fi 11620 11621cat >>confdefs.h <<_ACEOF 11622#define PACKAGE_VERSION_PATCHLEVEL $PVP 11623_ACEOF 11624 11625 11626 11627CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 11628mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 11629echo 'git directory not found: installing possibly empty changelog.' >&2)" 11630 11631distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 11632 11633 11634 11635 11636 11637if test x$APP_MAN_SUFFIX = x ; then 11638 APP_MAN_SUFFIX=1 11639fi 11640if test x$APP_MAN_DIR = x ; then 11641 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11642fi 11643 11644if test x$LIB_MAN_SUFFIX = x ; then 11645 LIB_MAN_SUFFIX=3 11646fi 11647if test x$LIB_MAN_DIR = x ; then 11648 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11649fi 11650 11651if test x$FILE_MAN_SUFFIX = x ; then 11652 case $host_os in 11653 solaris*) FILE_MAN_SUFFIX=4 ;; 11654 *) FILE_MAN_SUFFIX=5 ;; 11655 esac 11656fi 11657if test x$FILE_MAN_DIR = x ; then 11658 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11659fi 11660 11661if test x$MISC_MAN_SUFFIX = x ; then 11662 case $host_os in 11663 solaris*) MISC_MAN_SUFFIX=5 ;; 11664 *) MISC_MAN_SUFFIX=7 ;; 11665 esac 11666fi 11667if test x$MISC_MAN_DIR = x ; then 11668 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11669fi 11670 11671if test x$DRIVER_MAN_SUFFIX = x ; then 11672 case $host_os in 11673 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11674 *) DRIVER_MAN_SUFFIX=4 ;; 11675 esac 11676fi 11677if test x$DRIVER_MAN_DIR = x ; then 11678 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11679fi 11680 11681if test x$ADMIN_MAN_SUFFIX = x ; then 11682 case $host_os in 11683 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11684 *) ADMIN_MAN_SUFFIX=8 ;; 11685 esac 11686fi 11687if test x$ADMIN_MAN_DIR = x ; then 11688 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11689fi 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707# Check for xmlto for man page conversion 11708# (only needed by people building tarballs) 11709 11710# Extract the first word of "xmlto", so it can be a program name with args. 11711set dummy xmlto; ac_word=$2 11712{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11713$as_echo_n "checking for $ac_word... " >&6; } 11714if test "${ac_cv_path_XMLTO+set}" = set; then 11715 $as_echo_n "(cached) " >&6 11716else 11717 case $XMLTO in 11718 [\\/]* | ?:[\\/]*) 11719 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11720 ;; 11721 *) 11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11723for as_dir in $PATH 11724do 11725 IFS=$as_save_IFS 11726 test -z "$as_dir" && as_dir=. 11727 for ac_exec_ext in '' $ac_executable_extensions; do 11728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11729 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 11730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11731 break 2 11732 fi 11733done 11734done 11735IFS=$as_save_IFS 11736 11737 ;; 11738esac 11739fi 11740XMLTO=$ac_cv_path_XMLTO 11741if test -n "$XMLTO"; then 11742 { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5 11743$as_echo "$XMLTO" >&6; } 11744else 11745 { $as_echo "$as_me:$LINENO: result: no" >&5 11746$as_echo "no" >&6; } 11747fi 11748 11749 11750 if test "x$XMLTO" != "x"; then 11751 HAVE_XMLTO_TRUE= 11752 HAVE_XMLTO_FALSE='#' 11753else 11754 HAVE_XMLTO_TRUE='#' 11755 HAVE_XMLTO_FALSE= 11756fi 11757 11758 11759# Check for dependencies 11760 11761 11762if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11763 if test -n "$ac_tool_prefix"; then 11764 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11765set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11767$as_echo_n "checking for $ac_word... " >&6; } 11768if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11769 $as_echo_n "(cached) " >&6 11770else 11771 case $PKG_CONFIG in 11772 [\\/]* | ?:[\\/]*) 11773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11774 ;; 11775 *) 11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11777for as_dir in $PATH 11778do 11779 IFS=$as_save_IFS 11780 test -z "$as_dir" && as_dir=. 11781 for ac_exec_ext in '' $ac_executable_extensions; do 11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11785 break 2 11786 fi 11787done 11788done 11789IFS=$as_save_IFS 11790 11791 ;; 11792esac 11793fi 11794PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11795if test -n "$PKG_CONFIG"; then 11796 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 11797$as_echo "$PKG_CONFIG" >&6; } 11798else 11799 { $as_echo "$as_me:$LINENO: result: no" >&5 11800$as_echo "no" >&6; } 11801fi 11802 11803 11804fi 11805if test -z "$ac_cv_path_PKG_CONFIG"; then 11806 ac_pt_PKG_CONFIG=$PKG_CONFIG 11807 # Extract the first word of "pkg-config", so it can be a program name with args. 11808set dummy pkg-config; ac_word=$2 11809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11810$as_echo_n "checking for $ac_word... " >&6; } 11811if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11812 $as_echo_n "(cached) " >&6 11813else 11814 case $ac_pt_PKG_CONFIG in 11815 [\\/]* | ?:[\\/]*) 11816 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11817 ;; 11818 *) 11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11820for as_dir in $PATH 11821do 11822 IFS=$as_save_IFS 11823 test -z "$as_dir" && as_dir=. 11824 for ac_exec_ext in '' $ac_executable_extensions; do 11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11826 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11828 break 2 11829 fi 11830done 11831done 11832IFS=$as_save_IFS 11833 11834 ;; 11835esac 11836fi 11837ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11838if test -n "$ac_pt_PKG_CONFIG"; then 11839 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 11840$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11841else 11842 { $as_echo "$as_me:$LINENO: result: no" >&5 11843$as_echo "no" >&6; } 11844fi 11845 11846 if test "x$ac_pt_PKG_CONFIG" = x; then 11847 PKG_CONFIG="" 11848 else 11849 case $cross_compiling:$ac_tool_warned in 11850yes:) 11851{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11853ac_tool_warned=yes ;; 11854esac 11855 PKG_CONFIG=$ac_pt_PKG_CONFIG 11856 fi 11857else 11858 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11859fi 11860 11861fi 11862if test -n "$PKG_CONFIG"; then 11863 _pkg_min_version=0.9.0 11864 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 11865$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11866 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11867 { $as_echo "$as_me:$LINENO: result: yes" >&5 11868$as_echo "yes" >&6; } 11869 else 11870 { $as_echo "$as_me:$LINENO: result: no" >&5 11871$as_echo "no" >&6; } 11872 PKG_CONFIG="" 11873 fi 11874 11875fi 11876 11877pkg_failed=no 11878{ $as_echo "$as_me:$LINENO: checking for XTST" >&5 11879$as_echo_n "checking for XTST... " >&6; } 11880 11881if test -n "$XTST_CFLAGS"; then 11882 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" 11883 elif test -n "$PKG_CONFIG"; then 11884 if test -n "$PKG_CONFIG" && \ 11885 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\"") >&5 11886 ($PKG_CONFIG --exists --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 11887 ac_status=$? 11888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11889 (exit $ac_status); }; then 11890 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 11891else 11892 pkg_failed=yes 11893fi 11894 else 11895 pkg_failed=untried 11896fi 11897if test -n "$XTST_LIBS"; then 11898 pkg_cv_XTST_LIBS="$XTST_LIBS" 11899 elif test -n "$PKG_CONFIG"; then 11900 if test -n "$PKG_CONFIG" && \ 11901 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\"") >&5 11902 ($PKG_CONFIG --exists --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 11903 ac_status=$? 11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11905 (exit $ac_status); }; then 11906 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 11907else 11908 pkg_failed=yes 11909fi 11910 else 11911 pkg_failed=untried 11912fi 11913 11914 11915 11916if test $pkg_failed = yes; then 11917 11918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11919 _pkg_short_errors_supported=yes 11920else 11921 _pkg_short_errors_supported=no 11922fi 11923 if test $_pkg_short_errors_supported = yes; then 11924 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 11925 else 11926 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 11927 fi 11928 # Put the nasty error message in config.log where it belongs 11929 echo "$XTST_PKG_ERRORS" >&5 11930 11931 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met: 11932 11933$XTST_PKG_ERRORS 11934 11935Consider adjusting the PKG_CONFIG_PATH environment variable if you 11936installed software in a non-standard prefix. 11937 11938Alternatively, you may set the environment variables XTST_CFLAGS 11939and XTST_LIBS to avoid the need to call pkg-config. 11940See the pkg-config man page for more details. 11941" >&5 11942$as_echo "$as_me: error: Package requirements (x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met: 11943 11944$XTST_PKG_ERRORS 11945 11946Consider adjusting the PKG_CONFIG_PATH environment variable if you 11947installed software in a non-standard prefix. 11948 11949Alternatively, you may set the environment variables XTST_CFLAGS 11950and XTST_LIBS to avoid the need to call pkg-config. 11951See the pkg-config man page for more details. 11952" >&2;} 11953 { (exit 1); exit 1; }; } 11954elif test $pkg_failed = untried; then 11955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11957{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 11958is in your PATH or set the PKG_CONFIG environment variable to the full 11959path to pkg-config. 11960 11961Alternatively, you may set the environment variables XTST_CFLAGS 11962and XTST_LIBS to avoid the need to call pkg-config. 11963See the pkg-config man page for more details. 11964 11965To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11966See \`config.log' for more details." >&5 11967$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 11968is in your PATH or set the PKG_CONFIG environment variable to the full 11969path to pkg-config. 11970 11971Alternatively, you may set the environment variables XTST_CFLAGS 11972and XTST_LIBS to avoid the need to call pkg-config. 11973See the pkg-config man page for more details. 11974 11975To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11976See \`config.log' for more details." >&2;} 11977 { (exit 1); exit 1; }; }; } 11978else 11979 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS 11980 XTST_LIBS=$pkg_cv_XTST_LIBS 11981 { $as_echo "$as_me:$LINENO: result: yes" >&5 11982$as_echo "yes" >&6; } 11983 : 11984fi 11985XTST_CFLAGS="$CWARNFLAGS $XTST_CFLAGS" 11986 11987 11988 11989 11990 11991# Allow checking code with lint, sparse, etc. 11992 11993# Check whether --with-lint was given. 11994if test "${with_lint+set}" = set; then 11995 withval=$with_lint; use_lint=$withval 11996else 11997 use_lint=no 11998fi 11999 12000if test "x$use_lint" = "xyes" ; then 12001 LINT="lint" 12002else 12003 LINT="$use_lint" 12004fi 12005if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 12006 case $LINT in 12007 lint|*/lint) 12008 case $host_os in 12009 solaris*) 12010 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12011 ;; 12012 esac 12013 ;; 12014 esac 12015fi 12016 12017 12018 12019 if test x$LINT != xno; then 12020 LINT_TRUE= 12021 LINT_FALSE='#' 12022else 12023 LINT_TRUE='#' 12024 LINT_FALSE= 12025fi 12026 12027 12028 12029 12030 12031# Build lint "library" for more indepth checks of programs calling this library 12032# Check whether --enable-lint-library was given. 12033if test "${enable_lint_library+set}" = set; then 12034 enableval=$enable_lint_library; make_lint_lib=$enableval 12035else 12036 make_lint_lib=no 12037fi 12038 12039if test "x$make_lint_lib" != "xno" ; then 12040 if test "x$LINT" = "xno" ; then 12041 { { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5 12042$as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;} 12043 { (exit 1); exit 1; }; } 12044 fi 12045 if test "x$make_lint_lib" = "xyes" ; then 12046 LINTLIB=llib-lXtst.ln 12047 else 12048 LINTLIB=$make_lint_lib 12049 fi 12050fi 12051 12052 if test x$make_lint_lib != xno; then 12053 MAKE_LINT_LIB_TRUE= 12054 MAKE_LINT_LIB_FALSE='#' 12055else 12056 MAKE_LINT_LIB_TRUE='#' 12057 MAKE_LINT_LIB_FALSE= 12058fi 12059 12060 12061 12062LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 12063 12064ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile xtst.pc" 12065 12066cat >confcache <<\_ACEOF 12067# This file is a shell script that caches the results of configure 12068# tests run on this system so they can be shared between configure 12069# scripts and configure runs, see configure's option --config-cache. 12070# It is not useful on other systems. If it contains results you don't 12071# want to keep, you may remove or edit it. 12072# 12073# config.status only pays attention to the cache file if you give it 12074# the --recheck option to rerun configure. 12075# 12076# `ac_cv_env_foo' variables (set or unset) will be overridden when 12077# loading this file, other *unset* `ac_cv_foo' will be assigned the 12078# following values. 12079 12080_ACEOF 12081 12082# The following way of writing the cache mishandles newlines in values, 12083# but we know of no workaround that is simple, portable, and efficient. 12084# So, we kill variables containing newlines. 12085# Ultrix sh set writes to stderr and can't be redirected directly, 12086# and sets the high bit in the cache file unless we assign to the vars. 12087( 12088 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12089 eval ac_val=\$$ac_var 12090 case $ac_val in #( 12091 *${as_nl}*) 12092 case $ac_var in #( 12093 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 12094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12095 esac 12096 case $ac_var in #( 12097 _ | IFS | as_nl) ;; #( 12098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12099 *) $as_unset $ac_var ;; 12100 esac ;; 12101 esac 12102 done 12103 12104 (set) 2>&1 | 12105 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12106 *${as_nl}ac_space=\ *) 12107 # `set' does not quote correctly, so add quotes (double-quote 12108 # substitution turns \\\\ into \\, and sed turns \\ into \). 12109 sed -n \ 12110 "s/'/'\\\\''/g; 12111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12112 ;; #( 12113 *) 12114 # `set' quotes correctly as required by POSIX, so do not add quotes. 12115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12116 ;; 12117 esac | 12118 sort 12119) | 12120 sed ' 12121 /^ac_cv_env_/b end 12122 t clear 12123 :clear 12124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12125 t end 12126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12127 :end' >>confcache 12128if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12129 if test -w "$cache_file"; then 12130 test "x$cache_file" != "x/dev/null" && 12131 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 12132$as_echo "$as_me: updating cache $cache_file" >&6;} 12133 cat confcache >$cache_file 12134 else 12135 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12136$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12137 fi 12138fi 12139rm -f confcache 12140 12141test "x$prefix" = xNONE && prefix=$ac_default_prefix 12142# Let make expand exec_prefix. 12143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12144 12145DEFS=-DHAVE_CONFIG_H 12146 12147ac_libobjs= 12148ac_ltlibobjs= 12149for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12150 # 1. Remove the extension, and $U if already installed. 12151 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12152 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12153 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12154 # will be set to the directory where LIBOBJS objects are built. 12155 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12156 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12157done 12158LIBOBJS=$ac_libobjs 12159 12160LTLIBOBJS=$ac_ltlibobjs 12161 12162 12163 if test -n "$EXEEXT"; then 12164 am__EXEEXT_TRUE= 12165 am__EXEEXT_FALSE='#' 12166else 12167 am__EXEEXT_TRUE='#' 12168 am__EXEEXT_FALSE= 12169fi 12170 12171if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12172 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 12173Usually this means the macro was only invoked conditionally." >&5 12174$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 12175Usually this means the macro was only invoked conditionally." >&2;} 12176 { (exit 1); exit 1; }; } 12177fi 12178if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12179 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12180Usually this means the macro was only invoked conditionally." >&5 12181$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 12182Usually this means the macro was only invoked conditionally." >&2;} 12183 { (exit 1); exit 1; }; } 12184fi 12185if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12186 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12187Usually this means the macro was only invoked conditionally." >&5 12188$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12189Usually this means the macro was only invoked conditionally." >&2;} 12190 { (exit 1); exit 1; }; } 12191fi 12192if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 12193 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined. 12194Usually this means the macro was only invoked conditionally." >&5 12195$as_echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined. 12196Usually this means the macro was only invoked conditionally." >&2;} 12197 { (exit 1); exit 1; }; } 12198fi 12199if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12200 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 12201Usually this means the macro was only invoked conditionally." >&5 12202$as_echo "$as_me: error: conditional \"LINT\" was never defined. 12203Usually this means the macro was only invoked conditionally." >&2;} 12204 { (exit 1); exit 1; }; } 12205fi 12206if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 12207 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined. 12208Usually this means the macro was only invoked conditionally." >&5 12209$as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined. 12210Usually this means the macro was only invoked conditionally." >&2;} 12211 { (exit 1); exit 1; }; } 12212fi 12213 12214: ${CONFIG_STATUS=./config.status} 12215ac_write_fail=0 12216ac_clean_files_save=$ac_clean_files 12217ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12218{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12219$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12220cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12221#! $SHELL 12222# Generated by $as_me. 12223# Run this file to recreate the current configuration. 12224# Compiler output produced by configure, useful for debugging 12225# configure, is in config.log if it exists. 12226 12227debug=false 12228ac_cs_recheck=false 12229ac_cs_silent=false 12230SHELL=\${CONFIG_SHELL-$SHELL} 12231_ACEOF 12232 12233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12234## --------------------- ## 12235## M4sh Initialization. ## 12236## --------------------- ## 12237 12238# Be more Bourne compatible 12239DUALCASE=1; export DUALCASE # for MKS sh 12240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12241 emulate sh 12242 NULLCMD=: 12243 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12244 # is contrary to our usage. Disable this feature. 12245 alias -g '${1+"$@"}'='"$@"' 12246 setopt NO_GLOB_SUBST 12247else 12248 case `(set -o) 2>/dev/null` in 12249 *posix*) set -o posix ;; 12250esac 12251 12252fi 12253 12254 12255 12256 12257# PATH needs CR 12258# Avoid depending upon Character Ranges. 12259as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12260as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12261as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12262as_cr_digits='0123456789' 12263as_cr_alnum=$as_cr_Letters$as_cr_digits 12264 12265as_nl=' 12266' 12267export as_nl 12268# Printing a long string crashes Solaris 7 /usr/bin/printf. 12269as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12272if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12273 as_echo='printf %s\n' 12274 as_echo_n='printf %s' 12275else 12276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12277 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12278 as_echo_n='/usr/ucb/echo -n' 12279 else 12280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12281 as_echo_n_body='eval 12282 arg=$1; 12283 case $arg in 12284 *"$as_nl"*) 12285 expr "X$arg" : "X\\(.*\\)$as_nl"; 12286 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12287 esac; 12288 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12289 ' 12290 export as_echo_n_body 12291 as_echo_n='sh -c $as_echo_n_body as_echo' 12292 fi 12293 export as_echo_body 12294 as_echo='sh -c $as_echo_body as_echo' 12295fi 12296 12297# The user is always right. 12298if test "${PATH_SEPARATOR+set}" != set; then 12299 PATH_SEPARATOR=: 12300 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12301 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12302 PATH_SEPARATOR=';' 12303 } 12304fi 12305 12306# Support unset when possible. 12307if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12308 as_unset=unset 12309else 12310 as_unset=false 12311fi 12312 12313 12314# IFS 12315# We need space, tab and new line, in precisely that order. Quoting is 12316# there to prevent editors from complaining about space-tab. 12317# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12318# splitting by setting IFS to empty value.) 12319IFS=" "" $as_nl" 12320 12321# Find who we are. Look in the path if we contain no directory separator. 12322case $0 in 12323 *[\\/]* ) as_myself=$0 ;; 12324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12325for as_dir in $PATH 12326do 12327 IFS=$as_save_IFS 12328 test -z "$as_dir" && as_dir=. 12329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12330done 12331IFS=$as_save_IFS 12332 12333 ;; 12334esac 12335# We did not find ourselves, most probably we were run as `sh COMMAND' 12336# in which case we are not to be found in the path. 12337if test "x$as_myself" = x; then 12338 as_myself=$0 12339fi 12340if test ! -f "$as_myself"; then 12341 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12342 { (exit 1); exit 1; } 12343fi 12344 12345# Work around bugs in pre-3.0 UWIN ksh. 12346for as_var in ENV MAIL MAILPATH 12347do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12348done 12349PS1='$ ' 12350PS2='> ' 12351PS4='+ ' 12352 12353# NLS nuisances. 12354LC_ALL=C 12355export LC_ALL 12356LANGUAGE=C 12357export LANGUAGE 12358 12359# Required to use basename. 12360if expr a : '\(a\)' >/dev/null 2>&1 && 12361 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12362 as_expr=expr 12363else 12364 as_expr=false 12365fi 12366 12367if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12368 as_basename=basename 12369else 12370 as_basename=false 12371fi 12372 12373 12374# Name of the executable. 12375as_me=`$as_basename -- "$0" || 12376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12377 X"$0" : 'X\(//\)$' \| \ 12378 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12379$as_echo X/"$0" | 12380 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12381 s//\1/ 12382 q 12383 } 12384 /^X\/\(\/\/\)$/{ 12385 s//\1/ 12386 q 12387 } 12388 /^X\/\(\/\).*/{ 12389 s//\1/ 12390 q 12391 } 12392 s/.*/./; q'` 12393 12394# CDPATH. 12395$as_unset CDPATH 12396 12397 12398 12399 as_lineno_1=$LINENO 12400 as_lineno_2=$LINENO 12401 test "x$as_lineno_1" != "x$as_lineno_2" && 12402 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12403 12404 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12405 # uniformly replaced by the line number. The first 'sed' inserts a 12406 # line-number line after each line using $LINENO; the second 'sed' 12407 # does the real work. The second script uses 'N' to pair each 12408 # line-number line with the line containing $LINENO, and appends 12409 # trailing '-' during substitution so that $LINENO is not a special 12410 # case at line end. 12411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12412 # scripts with optimization help from Paolo Bonzini. Blame Lee 12413 # E. McMahon (1931-1989) for sed's syntax. :-) 12414 sed -n ' 12415 p 12416 /[$]LINENO/= 12417 ' <$as_myself | 12418 sed ' 12419 s/[$]LINENO.*/&-/ 12420 t lineno 12421 b 12422 :lineno 12423 N 12424 :loop 12425 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12426 t loop 12427 s/-\n.*// 12428 ' >$as_me.lineno && 12429 chmod +x "$as_me.lineno" || 12430 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12431 { (exit 1); exit 1; }; } 12432 12433 # Don't try to exec as it changes $[0], causing all sort of problems 12434 # (the dirname of $[0] is not the place where we might find the 12435 # original and so on. Autoconf is especially sensitive to this). 12436 . "./$as_me.lineno" 12437 # Exit status is that of the last command. 12438 exit 12439} 12440 12441 12442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12443 as_dirname=dirname 12444else 12445 as_dirname=false 12446fi 12447 12448ECHO_C= ECHO_N= ECHO_T= 12449case `echo -n x` in 12450-n*) 12451 case `echo 'x\c'` in 12452 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12453 *) ECHO_C='\c';; 12454 esac;; 12455*) 12456 ECHO_N='-n';; 12457esac 12458if expr a : '\(a\)' >/dev/null 2>&1 && 12459 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12460 as_expr=expr 12461else 12462 as_expr=false 12463fi 12464 12465rm -f conf$$ conf$$.exe conf$$.file 12466if test -d conf$$.dir; then 12467 rm -f conf$$.dir/conf$$.file 12468else 12469 rm -f conf$$.dir 12470 mkdir conf$$.dir 2>/dev/null 12471fi 12472if (echo >conf$$.file) 2>/dev/null; then 12473 if ln -s conf$$.file conf$$ 2>/dev/null; then 12474 as_ln_s='ln -s' 12475 # ... but there are two gotchas: 12476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12478 # In both cases, we have to default to `cp -p'. 12479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12480 as_ln_s='cp -p' 12481 elif ln conf$$.file conf$$ 2>/dev/null; then 12482 as_ln_s=ln 12483 else 12484 as_ln_s='cp -p' 12485 fi 12486else 12487 as_ln_s='cp -p' 12488fi 12489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12490rmdir conf$$.dir 2>/dev/null 12491 12492if mkdir -p . 2>/dev/null; then 12493 as_mkdir_p=: 12494else 12495 test -d ./-p && rmdir ./-p 12496 as_mkdir_p=false 12497fi 12498 12499if test -x / >/dev/null 2>&1; then 12500 as_test_x='test -x' 12501else 12502 if ls -dL / >/dev/null 2>&1; then 12503 as_ls_L_option=L 12504 else 12505 as_ls_L_option= 12506 fi 12507 as_test_x=' 12508 eval sh -c '\'' 12509 if test -d "$1"; then 12510 test -d "$1/."; 12511 else 12512 case $1 in 12513 -*)set "./$1";; 12514 esac; 12515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12516 ???[sx]*):;;*)false;;esac;fi 12517 '\'' sh 12518 ' 12519fi 12520as_executable_p=$as_test_x 12521 12522# Sed expression to map a string onto a valid CPP name. 12523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12524 12525# Sed expression to map a string onto a valid variable name. 12526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12527 12528 12529exec 6>&1 12530 12531# Save the log message, to keep $[0] and so on meaningful, and to 12532# report actual input values of CONFIG_FILES etc. instead of their 12533# values after options handling. 12534ac_log=" 12535This file was extended by libXtst $as_me 1.1.0, which was 12536generated by GNU Autoconf 2.63. Invocation command line was 12537 12538 CONFIG_FILES = $CONFIG_FILES 12539 CONFIG_HEADERS = $CONFIG_HEADERS 12540 CONFIG_LINKS = $CONFIG_LINKS 12541 CONFIG_COMMANDS = $CONFIG_COMMANDS 12542 $ $0 $@ 12543 12544on `(hostname || uname -n) 2>/dev/null | sed 1q` 12545" 12546 12547_ACEOF 12548 12549case $ac_config_files in *" 12550"*) set x $ac_config_files; shift; ac_config_files=$*;; 12551esac 12552 12553case $ac_config_headers in *" 12554"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12555esac 12556 12557 12558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12559# Files that config.status was made for. 12560config_files="$ac_config_files" 12561config_headers="$ac_config_headers" 12562config_commands="$ac_config_commands" 12563 12564_ACEOF 12565 12566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12567ac_cs_usage="\ 12568\`$as_me' instantiates files from templates according to the 12569current configuration. 12570 12571Usage: $0 [OPTION]... [FILE]... 12572 12573 -h, --help print this help, then exit 12574 -V, --version print version number and configuration settings, then exit 12575 -q, --quiet, --silent 12576 do not print progress messages 12577 -d, --debug don't remove temporary files 12578 --recheck update $as_me by reconfiguring in the same conditions 12579 --file=FILE[:TEMPLATE] 12580 instantiate the configuration file FILE 12581 --header=FILE[:TEMPLATE] 12582 instantiate the configuration header FILE 12583 12584Configuration files: 12585$config_files 12586 12587Configuration headers: 12588$config_headers 12589 12590Configuration commands: 12591$config_commands 12592 12593Report bugs to <bug-autoconf@gnu.org>." 12594 12595_ACEOF 12596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12597ac_cs_version="\\ 12598libXtst config.status 1.1.0 12599configured by $0, generated by GNU Autoconf 2.63, 12600 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12601 12602Copyright (C) 2008 Free Software Foundation, Inc. 12603This config.status script is free software; the Free Software Foundation 12604gives unlimited permission to copy, distribute and modify it." 12605 12606ac_pwd='$ac_pwd' 12607srcdir='$srcdir' 12608INSTALL='$INSTALL' 12609MKDIR_P='$MKDIR_P' 12610AWK='$AWK' 12611test -n "\$AWK" || AWK=awk 12612_ACEOF 12613 12614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12615# The default lists apply if the user does not specify any file. 12616ac_need_defaults=: 12617while test $# != 0 12618do 12619 case $1 in 12620 --*=*) 12621 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12623 ac_shift=: 12624 ;; 12625 *) 12626 ac_option=$1 12627 ac_optarg=$2 12628 ac_shift=shift 12629 ;; 12630 esac 12631 12632 case $ac_option in 12633 # Handling of the options. 12634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12635 ac_cs_recheck=: ;; 12636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12637 $as_echo "$ac_cs_version"; exit ;; 12638 --debug | --debu | --deb | --de | --d | -d ) 12639 debug=: ;; 12640 --file | --fil | --fi | --f ) 12641 $ac_shift 12642 case $ac_optarg in 12643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12644 esac 12645 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12646 ac_need_defaults=false;; 12647 --header | --heade | --head | --hea ) 12648 $ac_shift 12649 case $ac_optarg in 12650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12651 esac 12652 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 12653 ac_need_defaults=false;; 12654 --he | --h) 12655 # Conflict between --help and --header 12656 { $as_echo "$as_me: error: ambiguous option: $1 12657Try \`$0 --help' for more information." >&2 12658 { (exit 1); exit 1; }; };; 12659 --help | --hel | -h ) 12660 $as_echo "$ac_cs_usage"; exit ;; 12661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12662 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12663 ac_cs_silent=: ;; 12664 12665 # This is an error. 12666 -*) { $as_echo "$as_me: error: unrecognized option: $1 12667Try \`$0 --help' for more information." >&2 12668 { (exit 1); exit 1; }; } ;; 12669 12670 *) ac_config_targets="$ac_config_targets $1" 12671 ac_need_defaults=false ;; 12672 12673 esac 12674 shift 12675done 12676 12677ac_configure_extra_args= 12678 12679if $ac_cs_silent; then 12680 exec 6>/dev/null 12681 ac_configure_extra_args="$ac_configure_extra_args --silent" 12682fi 12683 12684_ACEOF 12685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12686if \$ac_cs_recheck; then 12687 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12688 shift 12689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12690 CONFIG_SHELL='$SHELL' 12691 export CONFIG_SHELL 12692 exec "\$@" 12693fi 12694 12695_ACEOF 12696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12697exec 5>>config.log 12698{ 12699 echo 12700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12701## Running $as_me. ## 12702_ASBOX 12703 $as_echo "$ac_log" 12704} >&5 12705 12706_ACEOF 12707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12708# 12709# INIT-COMMANDS 12710# 12711AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12712 12713 12714# The HP-UX ksh and POSIX shell print the target directory to stdout 12715# if CDPATH is set. 12716(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12717 12718sed_quote_subst='$sed_quote_subst' 12719double_quote_subst='$double_quote_subst' 12720delay_variable_subst='$delay_variable_subst' 12721macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12722macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12723enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12724enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12725pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12726enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12727host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12728host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12729host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12730build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12731build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12732build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12733SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12734Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12735GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12736EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12737FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12738LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12739NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12740LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12741max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12742ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12743exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12744lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12745lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12746lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12747reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12748reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12749OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12750deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12751file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12752AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12753AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12754STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12755RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12756old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12757old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12758old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12759CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12760CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12761compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12762GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12763lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12764lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12765lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 12766lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12767objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12768SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12769ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12770MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12771lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12772lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12773lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12774lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12775lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12776need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12777DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12778NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12779LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12780OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12781OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12782libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12783shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12784extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12785archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12786enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12787export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12788whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12789compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12790old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12791old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12792archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12793archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12794module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12795module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12796with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12797allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12798no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12799hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12800hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12801hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12802hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12803hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12804hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12805hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12806hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12807inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12808link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12809fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12810always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12811export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12812exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12813include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12814prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12815file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12816variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12817need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12818need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12819version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12820runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12821shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12822shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12823libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12824library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12825soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12826postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12827postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12828finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12829finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12830hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12831sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12832sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12833hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12834enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12835enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12836enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12837old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12838striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12839 12840LTCC='$LTCC' 12841LTCFLAGS='$LTCFLAGS' 12842compiler='$compiler_DEFAULT' 12843 12844# Quote evaled strings. 12845for var in SED \ 12846GREP \ 12847EGREP \ 12848FGREP \ 12849LD \ 12850NM \ 12851LN_S \ 12852lt_SP2NL \ 12853lt_NL2SP \ 12854reload_flag \ 12855OBJDUMP \ 12856deplibs_check_method \ 12857file_magic_cmd \ 12858AR \ 12859AR_FLAGS \ 12860STRIP \ 12861RANLIB \ 12862CC \ 12863CFLAGS \ 12864compiler \ 12865lt_cv_sys_global_symbol_pipe \ 12866lt_cv_sys_global_symbol_to_cdecl \ 12867lt_cv_sys_global_symbol_to_c_name_address \ 12868lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12869SHELL \ 12870ECHO \ 12871lt_prog_compiler_no_builtin_flag \ 12872lt_prog_compiler_wl \ 12873lt_prog_compiler_pic \ 12874lt_prog_compiler_static \ 12875lt_cv_prog_compiler_c_o \ 12876need_locks \ 12877DSYMUTIL \ 12878NMEDIT \ 12879LIPO \ 12880OTOOL \ 12881OTOOL64 \ 12882shrext_cmds \ 12883export_dynamic_flag_spec \ 12884whole_archive_flag_spec \ 12885compiler_needs_object \ 12886with_gnu_ld \ 12887allow_undefined_flag \ 12888no_undefined_flag \ 12889hardcode_libdir_flag_spec \ 12890hardcode_libdir_flag_spec_ld \ 12891hardcode_libdir_separator \ 12892fix_srcfile_path \ 12893exclude_expsyms \ 12894include_expsyms \ 12895file_list_spec \ 12896variables_saved_for_relink \ 12897libname_spec \ 12898library_names_spec \ 12899soname_spec \ 12900finish_eval \ 12901old_striplib \ 12902striplib; do 12903 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12904 *[\\\\\\\`\\"\\\$]*) 12905 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12906 ;; 12907 *) 12908 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12909 ;; 12910 esac 12911done 12912 12913# Double-quote double-evaled strings. 12914for var in reload_cmds \ 12915old_postinstall_cmds \ 12916old_postuninstall_cmds \ 12917old_archive_cmds \ 12918extract_expsyms_cmds \ 12919old_archive_from_new_cmds \ 12920old_archive_from_expsyms_cmds \ 12921archive_cmds \ 12922archive_expsym_cmds \ 12923module_cmds \ 12924module_expsym_cmds \ 12925export_symbols_cmds \ 12926prelink_cmds \ 12927postinstall_cmds \ 12928postuninstall_cmds \ 12929finish_cmds \ 12930sys_lib_search_path_spec \ 12931sys_lib_dlsearch_path_spec; do 12932 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12933 *[\\\\\\\`\\"\\\$]*) 12934 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12935 ;; 12936 *) 12937 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12938 ;; 12939 esac 12940done 12941 12942# Fix-up fallback echo if it was mangled by the above quoting rules. 12943case \$lt_ECHO in 12944*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12945 ;; 12946esac 12947 12948ac_aux_dir='$ac_aux_dir' 12949xsi_shell='$xsi_shell' 12950lt_shell_append='$lt_shell_append' 12951 12952# See if we are running on zsh, and set the options which allow our 12953# commands through without removal of \ escapes INIT. 12954if test -n "\${ZSH_VERSION+set}" ; then 12955 setopt NO_GLOB_SUBST 12956fi 12957 12958 12959 PACKAGE='$PACKAGE' 12960 VERSION='$VERSION' 12961 TIMESTAMP='$TIMESTAMP' 12962 RM='$RM' 12963 ofile='$ofile' 12964 12965 12966 12967 12968_ACEOF 12969 12970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12971 12972# Handling of arguments. 12973for ac_config_target in $ac_config_targets 12974do 12975 case $ac_config_target in 12976 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12977 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12978 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12980 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12981 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12982 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;; 12983 12984 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12985$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12986 { (exit 1); exit 1; }; };; 12987 esac 12988done 12989 12990 12991# If the user did not use the arguments to specify the items to instantiate, 12992# then the envvar interface is used. Set only those that are not. 12993# We use the long form for the default assignment because of an extremely 12994# bizarre bug on SunOS 4.1.3. 12995if $ac_need_defaults; then 12996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12999fi 13000 13001# Have a temporary directory for convenience. Make it in the build tree 13002# simply because there is no reason against having it here, and in addition, 13003# creating and moving files from /tmp can sometimes cause problems. 13004# Hook for its removal unless debugging. 13005# Note that there is a small window in which the directory will not be cleaned: 13006# after its creation but before its name has been assigned to `$tmp'. 13007$debug || 13008{ 13009 tmp= 13010 trap 'exit_status=$? 13011 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13012' 0 13013 trap '{ (exit 1); exit 1; }' 1 2 13 15 13014} 13015# Create a (secure) tmp directory for tmp files. 13016 13017{ 13018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13019 test -n "$tmp" && test -d "$tmp" 13020} || 13021{ 13022 tmp=./conf$$-$RANDOM 13023 (umask 077 && mkdir "$tmp") 13024} || 13025{ 13026 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13027 { (exit 1); exit 1; } 13028} 13029 13030# Set up the scripts for CONFIG_FILES section. 13031# No need to generate them if there are no CONFIG_FILES. 13032# This happens for instance with `./config.status config.h'. 13033if test -n "$CONFIG_FILES"; then 13034 13035 13036ac_cr=' 13037' 13038ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13039if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13040 ac_cs_awk_cr='\\r' 13041else 13042 ac_cs_awk_cr=$ac_cr 13043fi 13044 13045echo 'BEGIN {' >"$tmp/subs1.awk" && 13046_ACEOF 13047 13048 13049{ 13050 echo "cat >conf$$subs.awk <<_ACEOF" && 13051 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13052 echo "_ACEOF" 13053} >conf$$subs.sh || 13054 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13055$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13056 { (exit 1); exit 1; }; } 13057ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13058ac_delim='%!_!# ' 13059for ac_last_try in false false false false false :; do 13060 . ./conf$$subs.sh || 13061 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13062$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13063 { (exit 1); exit 1; }; } 13064 13065 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13066 if test $ac_delim_n = $ac_delim_num; then 13067 break 13068 elif $ac_last_try; then 13069 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13070$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13071 { (exit 1); exit 1; }; } 13072 else 13073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13074 fi 13075done 13076rm -f conf$$subs.sh 13077 13078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13079cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13080_ACEOF 13081sed -n ' 13082h 13083s/^/S["/; s/!.*/"]=/ 13084p 13085g 13086s/^[^!]*!// 13087:repl 13088t repl 13089s/'"$ac_delim"'$// 13090t delim 13091:nl 13092h 13093s/\(.\{148\}\).*/\1/ 13094t more1 13095s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13096p 13097n 13098b repl 13099:more1 13100s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13101p 13102g 13103s/.\{148\}// 13104t nl 13105:delim 13106h 13107s/\(.\{148\}\).*/\1/ 13108t more2 13109s/["\\]/\\&/g; s/^/"/; s/$/"/ 13110p 13111b 13112:more2 13113s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13114p 13115g 13116s/.\{148\}// 13117t delim 13118' <conf$$subs.awk | sed ' 13119/^[^""]/{ 13120 N 13121 s/\n// 13122} 13123' >>$CONFIG_STATUS || ac_write_fail=1 13124rm -f conf$$subs.awk 13125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13126_ACAWK 13127cat >>"\$tmp/subs1.awk" <<_ACAWK && 13128 for (key in S) S_is_set[key] = 1 13129 FS = "" 13130 13131} 13132{ 13133 line = $ 0 13134 nfields = split(line, field, "@") 13135 substed = 0 13136 len = length(field[1]) 13137 for (i = 2; i < nfields; i++) { 13138 key = field[i] 13139 keylen = length(key) 13140 if (S_is_set[key]) { 13141 value = S[key] 13142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13143 len += length(value) + length(field[++i]) 13144 substed = 1 13145 } else 13146 len += 1 + keylen 13147 } 13148 13149 print line 13150} 13151 13152_ACAWK 13153_ACEOF 13154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13155if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13157else 13158 cat 13159fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13160 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 13161$as_echo "$as_me: error: could not setup config files machinery" >&2;} 13162 { (exit 1); exit 1; }; } 13163_ACEOF 13164 13165# VPATH may cause trouble with some makes, so we remove $(srcdir), 13166# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13167# trailing colons and then remove the whole line if VPATH becomes empty 13168# (actually we leave an empty line to preserve line numbers). 13169if test "x$srcdir" = x.; then 13170 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13171s/:*\$(srcdir):*/:/ 13172s/:*\${srcdir}:*/:/ 13173s/:*@srcdir@:*/:/ 13174s/^\([^=]*=[ ]*\):*/\1/ 13175s/:*$// 13176s/^[^=]*=[ ]*$// 13177}' 13178fi 13179 13180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13181fi # test -n "$CONFIG_FILES" 13182 13183# Set up the scripts for CONFIG_HEADERS section. 13184# No need to generate them if there are no CONFIG_HEADERS. 13185# This happens for instance with `./config.status Makefile'. 13186if test -n "$CONFIG_HEADERS"; then 13187cat >"$tmp/defines.awk" <<\_ACAWK || 13188BEGIN { 13189_ACEOF 13190 13191# Transform confdefs.h into an awk script `defines.awk', embedded as 13192# here-document in config.status, that substitutes the proper values into 13193# config.h.in to produce config.h. 13194 13195# Create a delimiter string that does not exist in confdefs.h, to ease 13196# handling of long lines. 13197ac_delim='%!_!# ' 13198for ac_last_try in false false :; do 13199 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13200 if test -z "$ac_t"; then 13201 break 13202 elif $ac_last_try; then 13203 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 13204$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 13205 { (exit 1); exit 1; }; } 13206 else 13207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13208 fi 13209done 13210 13211# For the awk script, D is an array of macro values keyed by name, 13212# likewise P contains macro parameters if any. Preserve backslash 13213# newline sequences. 13214 13215ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13216sed -n ' 13217s/.\{148\}/&'"$ac_delim"'/g 13218t rset 13219:rset 13220s/^[ ]*#[ ]*define[ ][ ]*/ / 13221t def 13222d 13223:def 13224s/\\$// 13225t bsnl 13226s/["\\]/\\&/g 13227s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13228D["\1"]=" \3"/p 13229s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13230d 13231:bsnl 13232s/["\\]/\\&/g 13233s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13234D["\1"]=" \3\\\\\\n"\\/p 13235t cont 13236s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13237t cont 13238d 13239:cont 13240n 13241s/.\{148\}/&'"$ac_delim"'/g 13242t clear 13243:clear 13244s/\\$// 13245t bsnlc 13246s/["\\]/\\&/g; s/^/"/; s/$/"/p 13247d 13248:bsnlc 13249s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13250b cont 13251' <confdefs.h | sed ' 13252s/'"$ac_delim"'/"\\\ 13253"/g' >>$CONFIG_STATUS || ac_write_fail=1 13254 13255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13256 for (key in D) D_is_set[key] = 1 13257 FS = "" 13258} 13259/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13260 line = \$ 0 13261 split(line, arg, " ") 13262 if (arg[1] == "#") { 13263 defundef = arg[2] 13264 mac1 = arg[3] 13265 } else { 13266 defundef = substr(arg[1], 2) 13267 mac1 = arg[2] 13268 } 13269 split(mac1, mac2, "(") #) 13270 macro = mac2[1] 13271 prefix = substr(line, 1, index(line, defundef) - 1) 13272 if (D_is_set[macro]) { 13273 # Preserve the white space surrounding the "#". 13274 print prefix "define", macro P[macro] D[macro] 13275 next 13276 } else { 13277 # Replace #undef with comments. This is necessary, for example, 13278 # in the case of _POSIX_SOURCE, which is predefined and required 13279 # on some systems where configure will not decide to define it. 13280 if (defundef == "undef") { 13281 print "/*", prefix defundef, macro, "*/" 13282 next 13283 } 13284 } 13285} 13286{ print } 13287_ACAWK 13288_ACEOF 13289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13290 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 13291$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 13292 { (exit 1); exit 1; }; } 13293fi # test -n "$CONFIG_HEADERS" 13294 13295 13296eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13297shift 13298for ac_tag 13299do 13300 case $ac_tag in 13301 :[FHLC]) ac_mode=$ac_tag; continue;; 13302 esac 13303 case $ac_mode$ac_tag in 13304 :[FHL]*:*);; 13305 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 13306$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 13307 { (exit 1); exit 1; }; };; 13308 :[FH]-) ac_tag=-:-;; 13309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13310 esac 13311 ac_save_IFS=$IFS 13312 IFS=: 13313 set x $ac_tag 13314 IFS=$ac_save_IFS 13315 shift 13316 ac_file=$1 13317 shift 13318 13319 case $ac_mode in 13320 :L) ac_source=$1;; 13321 :[FH]) 13322 ac_file_inputs= 13323 for ac_f 13324 do 13325 case $ac_f in 13326 -) ac_f="$tmp/stdin";; 13327 *) # Look for the file first in the build tree, then in the source tree 13328 # (if the path is not absolute). The absolute path cannot be DOS-style, 13329 # because $ac_f cannot contain `:'. 13330 test -f "$ac_f" || 13331 case $ac_f in 13332 [\\/$]*) false;; 13333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13334 esac || 13335 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13336$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13337 { (exit 1); exit 1; }; };; 13338 esac 13339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13340 ac_file_inputs="$ac_file_inputs '$ac_f'" 13341 done 13342 13343 # Let's still pretend it is `configure' which instantiates (i.e., don't 13344 # use $as_me), people would be surprised to read: 13345 # /* config.h. Generated by config.status. */ 13346 configure_input='Generated from '` 13347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13348 `' by configure.' 13349 if test x"$ac_file" != x-; then 13350 configure_input="$ac_file. $configure_input" 13351 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 13352$as_echo "$as_me: creating $ac_file" >&6;} 13353 fi 13354 # Neutralize special characters interpreted by sed in replacement strings. 13355 case $configure_input in #( 13356 *\&* | *\|* | *\\* ) 13357 ac_sed_conf_input=`$as_echo "$configure_input" | 13358 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13359 *) ac_sed_conf_input=$configure_input;; 13360 esac 13361 13362 case $ac_tag in 13363 *:-:* | *:-) cat >"$tmp/stdin" \ 13364 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13365$as_echo "$as_me: error: could not create $ac_file" >&2;} 13366 { (exit 1); exit 1; }; } ;; 13367 esac 13368 ;; 13369 esac 13370 13371 ac_dir=`$as_dirname -- "$ac_file" || 13372$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13373 X"$ac_file" : 'X\(//\)[^/]' \| \ 13374 X"$ac_file" : 'X\(//\)$' \| \ 13375 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13376$as_echo X"$ac_file" | 13377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13378 s//\1/ 13379 q 13380 } 13381 /^X\(\/\/\)[^/].*/{ 13382 s//\1/ 13383 q 13384 } 13385 /^X\(\/\/\)$/{ 13386 s//\1/ 13387 q 13388 } 13389 /^X\(\/\).*/{ 13390 s//\1/ 13391 q 13392 } 13393 s/.*/./; q'` 13394 { as_dir="$ac_dir" 13395 case $as_dir in #( 13396 -*) as_dir=./$as_dir;; 13397 esac 13398 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13399 as_dirs= 13400 while :; do 13401 case $as_dir in #( 13402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13403 *) as_qdir=$as_dir;; 13404 esac 13405 as_dirs="'$as_qdir' $as_dirs" 13406 as_dir=`$as_dirname -- "$as_dir" || 13407$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13408 X"$as_dir" : 'X\(//\)[^/]' \| \ 13409 X"$as_dir" : 'X\(//\)$' \| \ 13410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13411$as_echo X"$as_dir" | 13412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13413 s//\1/ 13414 q 13415 } 13416 /^X\(\/\/\)[^/].*/{ 13417 s//\1/ 13418 q 13419 } 13420 /^X\(\/\/\)$/{ 13421 s//\1/ 13422 q 13423 } 13424 /^X\(\/\).*/{ 13425 s//\1/ 13426 q 13427 } 13428 s/.*/./; q'` 13429 test -d "$as_dir" && break 13430 done 13431 test -z "$as_dirs" || eval "mkdir $as_dirs" 13432 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13433$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13434 { (exit 1); exit 1; }; }; } 13435 ac_builddir=. 13436 13437case "$ac_dir" in 13438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13439*) 13440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13441 # A ".." for each directory in $ac_dir_suffix. 13442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13443 case $ac_top_builddir_sub in 13444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13446 esac ;; 13447esac 13448ac_abs_top_builddir=$ac_pwd 13449ac_abs_builddir=$ac_pwd$ac_dir_suffix 13450# for backward compatibility: 13451ac_top_builddir=$ac_top_build_prefix 13452 13453case $srcdir in 13454 .) # We are building in place. 13455 ac_srcdir=. 13456 ac_top_srcdir=$ac_top_builddir_sub 13457 ac_abs_top_srcdir=$ac_pwd ;; 13458 [\\/]* | ?:[\\/]* ) # Absolute name. 13459 ac_srcdir=$srcdir$ac_dir_suffix; 13460 ac_top_srcdir=$srcdir 13461 ac_abs_top_srcdir=$srcdir ;; 13462 *) # Relative name. 13463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13464 ac_top_srcdir=$ac_top_build_prefix$srcdir 13465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13466esac 13467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13468 13469 13470 case $ac_mode in 13471 :F) 13472 # 13473 # CONFIG_FILE 13474 # 13475 13476 case $INSTALL in 13477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13479 esac 13480 ac_MKDIR_P=$MKDIR_P 13481 case $MKDIR_P in 13482 [\\/$]* | ?:[\\/]* ) ;; 13483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13484 esac 13485_ACEOF 13486 13487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13488# If the template does not know about datarootdir, expand it. 13489# FIXME: This hack should be removed a few years after 2.60. 13490ac_datarootdir_hack=; ac_datarootdir_seen= 13491 13492ac_sed_dataroot=' 13493/datarootdir/ { 13494 p 13495 q 13496} 13497/@datadir@/p 13498/@docdir@/p 13499/@infodir@/p 13500/@localedir@/p 13501/@mandir@/p 13502' 13503case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13504*datarootdir*) ac_datarootdir_seen=yes;; 13505*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13506 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13507$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13508_ACEOF 13509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13510 ac_datarootdir_hack=' 13511 s&@datadir@&$datadir&g 13512 s&@docdir@&$docdir&g 13513 s&@infodir@&$infodir&g 13514 s&@localedir@&$localedir&g 13515 s&@mandir@&$mandir&g 13516 s&\\\${datarootdir}&$datarootdir&g' ;; 13517esac 13518_ACEOF 13519 13520# Neutralize VPATH when `$srcdir' = `.'. 13521# Shell code in configure.ac might set extrasub. 13522# FIXME: do we really want to maintain this feature? 13523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13524ac_sed_extra="$ac_vpsub 13525$extrasub 13526_ACEOF 13527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13528:t 13529/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13530s|@configure_input@|$ac_sed_conf_input|;t t 13531s&@top_builddir@&$ac_top_builddir_sub&;t t 13532s&@top_build_prefix@&$ac_top_build_prefix&;t t 13533s&@srcdir@&$ac_srcdir&;t t 13534s&@abs_srcdir@&$ac_abs_srcdir&;t t 13535s&@top_srcdir@&$ac_top_srcdir&;t t 13536s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13537s&@builddir@&$ac_builddir&;t t 13538s&@abs_builddir@&$ac_abs_builddir&;t t 13539s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13540s&@INSTALL@&$ac_INSTALL&;t t 13541s&@MKDIR_P@&$ac_MKDIR_P&;t t 13542$ac_datarootdir_hack 13543" 13544eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13545 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13546$as_echo "$as_me: error: could not create $ac_file" >&2;} 13547 { (exit 1); exit 1; }; } 13548 13549test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13550 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13551 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13552 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13553which seems to be undefined. Please make sure it is defined." >&5 13554$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13555which seems to be undefined. Please make sure it is defined." >&2;} 13556 13557 rm -f "$tmp/stdin" 13558 case $ac_file in 13559 -) cat "$tmp/out" && rm -f "$tmp/out";; 13560 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13561 esac \ 13562 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13563$as_echo "$as_me: error: could not create $ac_file" >&2;} 13564 { (exit 1); exit 1; }; } 13565 ;; 13566 :H) 13567 # 13568 # CONFIG_HEADER 13569 # 13570 if test x"$ac_file" != x-; then 13571 { 13572 $as_echo "/* $configure_input */" \ 13573 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13574 } >"$tmp/config.h" \ 13575 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13576$as_echo "$as_me: error: could not create $ac_file" >&2;} 13577 { (exit 1); exit 1; }; } 13578 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13579 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13580$as_echo "$as_me: $ac_file is unchanged" >&6;} 13581 else 13582 rm -f "$ac_file" 13583 mv "$tmp/config.h" "$ac_file" \ 13584 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13585$as_echo "$as_me: error: could not create $ac_file" >&2;} 13586 { (exit 1); exit 1; }; } 13587 fi 13588 else 13589 $as_echo "/* $configure_input */" \ 13590 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13591 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 13592$as_echo "$as_me: error: could not create -" >&2;} 13593 { (exit 1); exit 1; }; } 13594 fi 13595# Compute "$ac_file"'s index in $config_headers. 13596_am_arg="$ac_file" 13597_am_stamp_count=1 13598for _am_header in $config_headers :; do 13599 case $_am_header in 13600 $_am_arg | $_am_arg:* ) 13601 break ;; 13602 * ) 13603 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13604 esac 13605done 13606echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13607$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13608 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13609 X"$_am_arg" : 'X\(//\)$' \| \ 13610 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13611$as_echo X"$_am_arg" | 13612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13613 s//\1/ 13614 q 13615 } 13616 /^X\(\/\/\)[^/].*/{ 13617 s//\1/ 13618 q 13619 } 13620 /^X\(\/\/\)$/{ 13621 s//\1/ 13622 q 13623 } 13624 /^X\(\/\).*/{ 13625 s//\1/ 13626 q 13627 } 13628 s/.*/./; q'`/stamp-h$_am_stamp_count 13629 ;; 13630 13631 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 13632$as_echo "$as_me: executing $ac_file commands" >&6;} 13633 ;; 13634 esac 13635 13636 13637 case $ac_file$ac_mode in 13638 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13639 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13640 # are listed without --file. Let's play safe and only enable the eval 13641 # if we detect the quoting. 13642 case $CONFIG_FILES in 13643 *\'*) eval set x "$CONFIG_FILES" ;; 13644 *) set x $CONFIG_FILES ;; 13645 esac 13646 shift 13647 for mf 13648 do 13649 # Strip MF so we end up with the name of the file. 13650 mf=`echo "$mf" | sed -e 's/:.*$//'` 13651 # Check whether this is an Automake generated Makefile or not. 13652 # We used to match only the files named `Makefile.in', but 13653 # some people rename them; so instead we look at the file content. 13654 # Grep'ing the first line is not enough: some people post-process 13655 # each Makefile.in and add a new line on top of each file to say so. 13656 # Grep'ing the whole file is not good either: AIX grep has a line 13657 # limit of 2048, but all sed's we know have understand at least 4000. 13658 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13659 dirpart=`$as_dirname -- "$mf" || 13660$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13661 X"$mf" : 'X\(//\)[^/]' \| \ 13662 X"$mf" : 'X\(//\)$' \| \ 13663 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13664$as_echo X"$mf" | 13665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13666 s//\1/ 13667 q 13668 } 13669 /^X\(\/\/\)[^/].*/{ 13670 s//\1/ 13671 q 13672 } 13673 /^X\(\/\/\)$/{ 13674 s//\1/ 13675 q 13676 } 13677 /^X\(\/\).*/{ 13678 s//\1/ 13679 q 13680 } 13681 s/.*/./; q'` 13682 else 13683 continue 13684 fi 13685 # Extract the definition of DEPDIR, am__include, and am__quote 13686 # from the Makefile without running `make'. 13687 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13688 test -z "$DEPDIR" && continue 13689 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13690 test -z "am__include" && continue 13691 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13692 # When using ansi2knr, U may be empty or an underscore; expand it 13693 U=`sed -n 's/^U = //p' < "$mf"` 13694 # Find all dependency output files, they are included files with 13695 # $(DEPDIR) in their names. We invoke sed twice because it is the 13696 # simplest approach to changing $(DEPDIR) to its actual value in the 13697 # expansion. 13698 for file in `sed -n " 13699 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13700 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13701 # Make sure the directory exists. 13702 test -f "$dirpart/$file" && continue 13703 fdir=`$as_dirname -- "$file" || 13704$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13705 X"$file" : 'X\(//\)[^/]' \| \ 13706 X"$file" : 'X\(//\)$' \| \ 13707 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13708$as_echo X"$file" | 13709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13710 s//\1/ 13711 q 13712 } 13713 /^X\(\/\/\)[^/].*/{ 13714 s//\1/ 13715 q 13716 } 13717 /^X\(\/\/\)$/{ 13718 s//\1/ 13719 q 13720 } 13721 /^X\(\/\).*/{ 13722 s//\1/ 13723 q 13724 } 13725 s/.*/./; q'` 13726 { as_dir=$dirpart/$fdir 13727 case $as_dir in #( 13728 -*) as_dir=./$as_dir;; 13729 esac 13730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13731 as_dirs= 13732 while :; do 13733 case $as_dir in #( 13734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13735 *) as_qdir=$as_dir;; 13736 esac 13737 as_dirs="'$as_qdir' $as_dirs" 13738 as_dir=`$as_dirname -- "$as_dir" || 13739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13740 X"$as_dir" : 'X\(//\)[^/]' \| \ 13741 X"$as_dir" : 'X\(//\)$' \| \ 13742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13743$as_echo X"$as_dir" | 13744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13745 s//\1/ 13746 q 13747 } 13748 /^X\(\/\/\)[^/].*/{ 13749 s//\1/ 13750 q 13751 } 13752 /^X\(\/\/\)$/{ 13753 s//\1/ 13754 q 13755 } 13756 /^X\(\/\).*/{ 13757 s//\1/ 13758 q 13759 } 13760 s/.*/./; q'` 13761 test -d "$as_dir" && break 13762 done 13763 test -z "$as_dirs" || eval "mkdir $as_dirs" 13764 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13765$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13766 { (exit 1); exit 1; }; }; } 13767 # echo "creating $dirpart/$file" 13768 echo '# dummy' > "$dirpart/$file" 13769 done 13770 done 13771} 13772 ;; 13773 "libtool":C) 13774 13775 # See if we are running on zsh, and set the options which allow our 13776 # commands through without removal of \ escapes. 13777 if test -n "${ZSH_VERSION+set}" ; then 13778 setopt NO_GLOB_SUBST 13779 fi 13780 13781 cfgfile="${ofile}T" 13782 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13783 $RM "$cfgfile" 13784 13785 cat <<_LT_EOF >> "$cfgfile" 13786#! $SHELL 13787 13788# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13789# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13790# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13791# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13792# 13793# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13794# 2006, 2007, 2008 Free Software Foundation, Inc. 13795# Written by Gordon Matzigkeit, 1996 13796# 13797# This file is part of GNU Libtool. 13798# 13799# GNU Libtool is free software; you can redistribute it and/or 13800# modify it under the terms of the GNU General Public License as 13801# published by the Free Software Foundation; either version 2 of 13802# the License, or (at your option) any later version. 13803# 13804# As a special exception to the GNU General Public License, 13805# if you distribute this file as part of a program or library that 13806# is built using GNU Libtool, you may include this file under the 13807# same distribution terms that you use for the rest of that program. 13808# 13809# GNU Libtool is distributed in the hope that it will be useful, 13810# but WITHOUT ANY WARRANTY; without even the implied warranty of 13811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13812# GNU General Public License for more details. 13813# 13814# You should have received a copy of the GNU General Public License 13815# along with GNU Libtool; see the file COPYING. If not, a copy 13816# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13817# obtained by writing to the Free Software Foundation, Inc., 13818# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13819 13820 13821# The names of the tagged configurations supported by this script. 13822available_tags="" 13823 13824# ### BEGIN LIBTOOL CONFIG 13825 13826# Which release of libtool.m4 was used? 13827macro_version=$macro_version 13828macro_revision=$macro_revision 13829 13830# Whether or not to build shared libraries. 13831build_libtool_libs=$enable_shared 13832 13833# Whether or not to build static libraries. 13834build_old_libs=$enable_static 13835 13836# What type of objects to build. 13837pic_mode=$pic_mode 13838 13839# Whether or not to optimize for fast installation. 13840fast_install=$enable_fast_install 13841 13842# The host system. 13843host_alias=$host_alias 13844host=$host 13845host_os=$host_os 13846 13847# The build system. 13848build_alias=$build_alias 13849build=$build 13850build_os=$build_os 13851 13852# A sed program that does not truncate output. 13853SED=$lt_SED 13854 13855# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13856Xsed="\$SED -e 1s/^X//" 13857 13858# A grep program that handles long lines. 13859GREP=$lt_GREP 13860 13861# An ERE matcher. 13862EGREP=$lt_EGREP 13863 13864# A literal string matcher. 13865FGREP=$lt_FGREP 13866 13867# A BSD- or MS-compatible name lister. 13868NM=$lt_NM 13869 13870# Whether we need soft or hard links. 13871LN_S=$lt_LN_S 13872 13873# What is the maximum length of a command? 13874max_cmd_len=$max_cmd_len 13875 13876# Object file suffix (normally "o"). 13877objext=$ac_objext 13878 13879# Executable file suffix (normally ""). 13880exeext=$exeext 13881 13882# whether the shell understands "unset". 13883lt_unset=$lt_unset 13884 13885# turn spaces into newlines. 13886SP2NL=$lt_lt_SP2NL 13887 13888# turn newlines into spaces. 13889NL2SP=$lt_lt_NL2SP 13890 13891# How to create reloadable object files. 13892reload_flag=$lt_reload_flag 13893reload_cmds=$lt_reload_cmds 13894 13895# An object symbol dumper. 13896OBJDUMP=$lt_OBJDUMP 13897 13898# Method to check whether dependent libraries are shared objects. 13899deplibs_check_method=$lt_deplibs_check_method 13900 13901# Command to use when deplibs_check_method == "file_magic". 13902file_magic_cmd=$lt_file_magic_cmd 13903 13904# The archiver. 13905AR=$lt_AR 13906AR_FLAGS=$lt_AR_FLAGS 13907 13908# A symbol stripping program. 13909STRIP=$lt_STRIP 13910 13911# Commands used to install an old-style archive. 13912RANLIB=$lt_RANLIB 13913old_postinstall_cmds=$lt_old_postinstall_cmds 13914old_postuninstall_cmds=$lt_old_postuninstall_cmds 13915 13916# A C compiler. 13917LTCC=$lt_CC 13918 13919# LTCC compiler flags. 13920LTCFLAGS=$lt_CFLAGS 13921 13922# Take the output of nm and produce a listing of raw symbols and C names. 13923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13924 13925# Transform the output of nm in a proper C declaration. 13926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13927 13928# Transform the output of nm in a C name address pair. 13929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13930 13931# Transform the output of nm in a C name address pair when lib prefix is needed. 13932global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13933 13934# The name of the directory that contains temporary libtool files. 13935objdir=$objdir 13936 13937# Shell to use when invoking shell scripts. 13938SHELL=$lt_SHELL 13939 13940# An echo program that does not interpret backslashes. 13941ECHO=$lt_ECHO 13942 13943# Used to examine libraries when file_magic_cmd begins with "file". 13944MAGIC_CMD=$MAGIC_CMD 13945 13946# Must we lock files when doing compilation? 13947need_locks=$lt_need_locks 13948 13949# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13950DSYMUTIL=$lt_DSYMUTIL 13951 13952# Tool to change global to local symbols on Mac OS X. 13953NMEDIT=$lt_NMEDIT 13954 13955# Tool to manipulate fat objects and archives on Mac OS X. 13956LIPO=$lt_LIPO 13957 13958# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13959OTOOL=$lt_OTOOL 13960 13961# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13962OTOOL64=$lt_OTOOL64 13963 13964# Old archive suffix (normally "a"). 13965libext=$libext 13966 13967# Shared library suffix (normally ".so"). 13968shrext_cmds=$lt_shrext_cmds 13969 13970# The commands to extract the exported symbol list from a shared archive. 13971extract_expsyms_cmds=$lt_extract_expsyms_cmds 13972 13973# Variables whose values should be saved in libtool wrapper scripts and 13974# restored at link time. 13975variables_saved_for_relink=$lt_variables_saved_for_relink 13976 13977# Do we need the "lib" prefix for modules? 13978need_lib_prefix=$need_lib_prefix 13979 13980# Do we need a version for libraries? 13981need_version=$need_version 13982 13983# Library versioning type. 13984version_type=$version_type 13985 13986# Shared library runtime path variable. 13987runpath_var=$runpath_var 13988 13989# Shared library path variable. 13990shlibpath_var=$shlibpath_var 13991 13992# Is shlibpath searched before the hard-coded library search path? 13993shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13994 13995# Format of library name prefix. 13996libname_spec=$lt_libname_spec 13997 13998# List of archive names. First name is the real one, the rest are links. 13999# The last name is the one that the linker finds with -lNAME 14000library_names_spec=$lt_library_names_spec 14001 14002# The coded name of the library, if different from the real name. 14003soname_spec=$lt_soname_spec 14004 14005# Command to use after installation of a shared archive. 14006postinstall_cmds=$lt_postinstall_cmds 14007 14008# Command to use after uninstallation of a shared archive. 14009postuninstall_cmds=$lt_postuninstall_cmds 14010 14011# Commands used to finish a libtool library installation in a directory. 14012finish_cmds=$lt_finish_cmds 14013 14014# As "finish_cmds", except a single script fragment to be evaled but 14015# not shown. 14016finish_eval=$lt_finish_eval 14017 14018# Whether we should hardcode library paths into libraries. 14019hardcode_into_libs=$hardcode_into_libs 14020 14021# Compile-time system search path for libraries. 14022sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14023 14024# Run-time system search path for libraries. 14025sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14026 14027# Whether dlopen is supported. 14028dlopen_support=$enable_dlopen 14029 14030# Whether dlopen of programs is supported. 14031dlopen_self=$enable_dlopen_self 14032 14033# Whether dlopen of statically linked programs is supported. 14034dlopen_self_static=$enable_dlopen_self_static 14035 14036# Commands to strip libraries. 14037old_striplib=$lt_old_striplib 14038striplib=$lt_striplib 14039 14040 14041# The linker used to build libraries. 14042LD=$lt_LD 14043 14044# Commands used to build an old-style archive. 14045old_archive_cmds=$lt_old_archive_cmds 14046 14047# A language specific compiler. 14048CC=$lt_compiler 14049 14050# Is the compiler the GNU compiler? 14051with_gcc=$GCC 14052 14053# Compiler flag to turn off builtin functions. 14054no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14055 14056# How to pass a linker flag through the compiler. 14057wl=$lt_lt_prog_compiler_wl 14058 14059# Additional compiler flags for building library objects. 14060pic_flag=$lt_lt_prog_compiler_pic 14061 14062# Compiler flag to prevent dynamic linking. 14063link_static_flag=$lt_lt_prog_compiler_static 14064 14065# Does compiler simultaneously support -c and -o options? 14066compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14067 14068# Whether or not to add -lc for building shared libraries. 14069build_libtool_need_lc=$archive_cmds_need_lc 14070 14071# Whether or not to disallow shared libs when runtime libs are static. 14072allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14073 14074# Compiler flag to allow reflexive dlopens. 14075export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14076 14077# Compiler flag to generate shared objects directly from archives. 14078whole_archive_flag_spec=$lt_whole_archive_flag_spec 14079 14080# Whether the compiler copes with passing no objects directly. 14081compiler_needs_object=$lt_compiler_needs_object 14082 14083# Create an old-style archive from a shared archive. 14084old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14085 14086# Create a temporary old-style archive to link instead of a shared archive. 14087old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14088 14089# Commands used to build a shared archive. 14090archive_cmds=$lt_archive_cmds 14091archive_expsym_cmds=$lt_archive_expsym_cmds 14092 14093# Commands used to build a loadable module if different from building 14094# a shared archive. 14095module_cmds=$lt_module_cmds 14096module_expsym_cmds=$lt_module_expsym_cmds 14097 14098# Whether we are building with GNU ld or not. 14099with_gnu_ld=$lt_with_gnu_ld 14100 14101# Flag that allows shared libraries with undefined symbols to be built. 14102allow_undefined_flag=$lt_allow_undefined_flag 14103 14104# Flag that enforces no undefined symbols. 14105no_undefined_flag=$lt_no_undefined_flag 14106 14107# Flag to hardcode \$libdir into a binary during linking. 14108# This must work even if \$libdir does not exist 14109hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14110 14111# If ld is used when linking, flag to hardcode \$libdir into a binary 14112# during linking. This must work even if \$libdir does not exist. 14113hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14114 14115# Whether we need a single "-rpath" flag with a separated argument. 14116hardcode_libdir_separator=$lt_hardcode_libdir_separator 14117 14118# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14119# DIR into the resulting binary. 14120hardcode_direct=$hardcode_direct 14121 14122# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14123# DIR into the resulting binary and the resulting library dependency is 14124# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14125# library is relocated. 14126hardcode_direct_absolute=$hardcode_direct_absolute 14127 14128# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14129# into the resulting binary. 14130hardcode_minus_L=$hardcode_minus_L 14131 14132# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14133# into the resulting binary. 14134hardcode_shlibpath_var=$hardcode_shlibpath_var 14135 14136# Set to "yes" if building a shared library automatically hardcodes DIR 14137# into the library and all subsequent libraries and executables linked 14138# against it. 14139hardcode_automatic=$hardcode_automatic 14140 14141# Set to yes if linker adds runtime paths of dependent libraries 14142# to runtime path list. 14143inherit_rpath=$inherit_rpath 14144 14145# Whether libtool must link a program against all its dependency libraries. 14146link_all_deplibs=$link_all_deplibs 14147 14148# Fix the shell variable \$srcfile for the compiler. 14149fix_srcfile_path=$lt_fix_srcfile_path 14150 14151# Set to "yes" if exported symbols are required. 14152always_export_symbols=$always_export_symbols 14153 14154# The commands to list exported symbols. 14155export_symbols_cmds=$lt_export_symbols_cmds 14156 14157# Symbols that should not be listed in the preloaded symbols. 14158exclude_expsyms=$lt_exclude_expsyms 14159 14160# Symbols that must always be exported. 14161include_expsyms=$lt_include_expsyms 14162 14163# Commands necessary for linking programs (against libraries) with templates. 14164prelink_cmds=$lt_prelink_cmds 14165 14166# Specify filename containing input files. 14167file_list_spec=$lt_file_list_spec 14168 14169# How to hardcode a shared library path into an executable. 14170hardcode_action=$hardcode_action 14171 14172# ### END LIBTOOL CONFIG 14173 14174_LT_EOF 14175 14176 case $host_os in 14177 aix3*) 14178 cat <<\_LT_EOF >> "$cfgfile" 14179# AIX sometimes has problems with the GCC collect2 program. For some 14180# reason, if we set the COLLECT_NAMES environment variable, the problems 14181# vanish in a puff of smoke. 14182if test "X${COLLECT_NAMES+set}" != Xset; then 14183 COLLECT_NAMES= 14184 export COLLECT_NAMES 14185fi 14186_LT_EOF 14187 ;; 14188 esac 14189 14190 14191ltmain="$ac_aux_dir/ltmain.sh" 14192 14193 14194 # We use sed instead of cat because bash on DJGPP gets confused if 14195 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14196 # text mode, it properly converts lines to CR/LF. This bash problem 14197 # is reportedly fixed, but why not run on old versions too? 14198 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14199 || (rm -f "$cfgfile"; exit 1) 14200 14201 case $xsi_shell in 14202 yes) 14203 cat << \_LT_EOF >> "$cfgfile" 14204 14205# func_dirname file append nondir_replacement 14206# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14207# otherwise set result to NONDIR_REPLACEMENT. 14208func_dirname () 14209{ 14210 case ${1} in 14211 */*) func_dirname_result="${1%/*}${2}" ;; 14212 * ) func_dirname_result="${3}" ;; 14213 esac 14214} 14215 14216# func_basename file 14217func_basename () 14218{ 14219 func_basename_result="${1##*/}" 14220} 14221 14222# func_dirname_and_basename file append nondir_replacement 14223# perform func_basename and func_dirname in a single function 14224# call: 14225# dirname: Compute the dirname of FILE. If nonempty, 14226# add APPEND to the result, otherwise set result 14227# to NONDIR_REPLACEMENT. 14228# value returned in "$func_dirname_result" 14229# basename: Compute filename of FILE. 14230# value retuned in "$func_basename_result" 14231# Implementation must be kept synchronized with func_dirname 14232# and func_basename. For efficiency, we do not delegate to 14233# those functions but instead duplicate the functionality here. 14234func_dirname_and_basename () 14235{ 14236 case ${1} in 14237 */*) func_dirname_result="${1%/*}${2}" ;; 14238 * ) func_dirname_result="${3}" ;; 14239 esac 14240 func_basename_result="${1##*/}" 14241} 14242 14243# func_stripname prefix suffix name 14244# strip PREFIX and SUFFIX off of NAME. 14245# PREFIX and SUFFIX must not contain globbing or regex special 14246# characters, hashes, percent signs, but SUFFIX may contain a leading 14247# dot (in which case that matches only a dot). 14248func_stripname () 14249{ 14250 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14251 # positional parameters, so assign one to ordinary parameter first. 14252 func_stripname_result=${3} 14253 func_stripname_result=${func_stripname_result#"${1}"} 14254 func_stripname_result=${func_stripname_result%"${2}"} 14255} 14256 14257# func_opt_split 14258func_opt_split () 14259{ 14260 func_opt_split_opt=${1%%=*} 14261 func_opt_split_arg=${1#*=} 14262} 14263 14264# func_lo2o object 14265func_lo2o () 14266{ 14267 case ${1} in 14268 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14269 *) func_lo2o_result=${1} ;; 14270 esac 14271} 14272 14273# func_xform libobj-or-source 14274func_xform () 14275{ 14276 func_xform_result=${1%.*}.lo 14277} 14278 14279# func_arith arithmetic-term... 14280func_arith () 14281{ 14282 func_arith_result=$(( $* )) 14283} 14284 14285# func_len string 14286# STRING may not start with a hyphen. 14287func_len () 14288{ 14289 func_len_result=${#1} 14290} 14291 14292_LT_EOF 14293 ;; 14294 *) # Bourne compatible functions. 14295 cat << \_LT_EOF >> "$cfgfile" 14296 14297# func_dirname file append nondir_replacement 14298# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14299# otherwise set result to NONDIR_REPLACEMENT. 14300func_dirname () 14301{ 14302 # Extract subdirectory from the argument. 14303 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14304 if test "X$func_dirname_result" = "X${1}"; then 14305 func_dirname_result="${3}" 14306 else 14307 func_dirname_result="$func_dirname_result${2}" 14308 fi 14309} 14310 14311# func_basename file 14312func_basename () 14313{ 14314 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14315} 14316 14317 14318# func_stripname prefix suffix name 14319# strip PREFIX and SUFFIX off of NAME. 14320# PREFIX and SUFFIX must not contain globbing or regex special 14321# characters, hashes, percent signs, but SUFFIX may contain a leading 14322# dot (in which case that matches only a dot). 14323# func_strip_suffix prefix name 14324func_stripname () 14325{ 14326 case ${2} in 14327 .*) func_stripname_result=`$ECHO "X${3}" \ 14328 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14329 *) func_stripname_result=`$ECHO "X${3}" \ 14330 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14331 esac 14332} 14333 14334# sed scripts: 14335my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14336my_sed_long_arg='1s/^-[^=]*=//' 14337 14338# func_opt_split 14339func_opt_split () 14340{ 14341 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14342 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14343} 14344 14345# func_lo2o object 14346func_lo2o () 14347{ 14348 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14349} 14350 14351# func_xform libobj-or-source 14352func_xform () 14353{ 14354 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14355} 14356 14357# func_arith arithmetic-term... 14358func_arith () 14359{ 14360 func_arith_result=`expr "$@"` 14361} 14362 14363# func_len string 14364# STRING may not start with a hyphen. 14365func_len () 14366{ 14367 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14368} 14369 14370_LT_EOF 14371esac 14372 14373case $lt_shell_append in 14374 yes) 14375 cat << \_LT_EOF >> "$cfgfile" 14376 14377# func_append var value 14378# Append VALUE to the end of shell variable VAR. 14379func_append () 14380{ 14381 eval "$1+=\$2" 14382} 14383_LT_EOF 14384 ;; 14385 *) 14386 cat << \_LT_EOF >> "$cfgfile" 14387 14388# func_append var value 14389# Append VALUE to the end of shell variable VAR. 14390func_append () 14391{ 14392 eval "$1=\$$1\$2" 14393} 14394 14395_LT_EOF 14396 ;; 14397 esac 14398 14399 14400 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14401 || (rm -f "$cfgfile"; exit 1) 14402 14403 mv -f "$cfgfile" "$ofile" || 14404 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14405 chmod +x "$ofile" 14406 14407 ;; 14408 14409 esac 14410done # for ac_tag 14411 14412 14413{ (exit 0); exit 0; } 14414_ACEOF 14415chmod +x $CONFIG_STATUS 14416ac_clean_files=$ac_clean_files_save 14417 14418test $ac_write_fail = 0 || 14419 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14420$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 14421 { (exit 1); exit 1; }; } 14422 14423 14424# configure is writing to config.log, and then calls config.status. 14425# config.status does its own redirection, appending to config.log. 14426# Unfortunately, on DOS this fails, as config.log is still kept open 14427# by configure, so config.status won't be able to write to it; its 14428# output is simply discarded. So we exec the FD to /dev/null, 14429# effectively closing config.log, so it can be properly (re)opened and 14430# appended to by config.status. When coming back to configure, we 14431# need to make the FD available again. 14432if test "$no_create" != yes; then 14433 ac_cs_success=: 14434 ac_config_status_args= 14435 test "$silent" = yes && 14436 ac_config_status_args="$ac_config_status_args --quiet" 14437 exec 5>/dev/null 14438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14439 exec 5>>config.log 14440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14441 # would make configure fail if this is the last instruction. 14442 $ac_cs_success || { (exit 1); exit 1; } 14443fi 14444if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14445 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14446$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14447fi 14448 14449