configure revision f05b35a2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libXinerama 1.1. 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='libXinerama' 747PACKAGE_TARNAME='libXinerama' 748PACKAGE_VERSION='1.1' 749PACKAGE_STRING='libXinerama 1.1' 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 792XTMALLOC_ZERO_CFLAGS 793XMALLOC_ZERO_CFLAGS 794MALLOC_ZERO_CFLAGS 795LINT_FALSE 796LINT_TRUE 797LINT_FLAGS 798LINT 799XINERAMA_LIBS 800XINERAMA_CFLAGS 801PKG_CONFIG 802ADMIN_MAN_DIR 803DRIVER_MAN_DIR 804MISC_MAN_DIR 805FILE_MAN_DIR 806LIB_MAN_DIR 807APP_MAN_DIR 808ADMIN_MAN_SUFFIX 809DRIVER_MAN_SUFFIX 810MISC_MAN_SUFFIX 811FILE_MAN_SUFFIX 812LIB_MAN_SUFFIX 813APP_MAN_SUFFIX 814distcleancheck_listfiles 815CHANGELOG_CMD 816AM_BACKSLASH 817AM_DEFAULT_VERBOSITY 818CWARNFLAGS 819CPP 820OTOOL64 821OTOOL 822LIPO 823NMEDIT 824DSYMUTIL 825lt_ECHO 826RANLIB 827AR 828OBJDUMP 829LN_S 830NM 831ac_ct_DUMPBIN 832DUMPBIN 833LD 834FGREP 835EGREP 836GREP 837SED 838host_os 839host_vendor 840host_cpu 841host 842build_os 843build_vendor 844build_cpu 845build 846LIBTOOL 847am__fastdepCC_FALSE 848am__fastdepCC_TRUE 849CCDEPMODE 850AMDEPBACKSLASH 851AMDEP_FALSE 852AMDEP_TRUE 853am__quote 854am__include 855DEPDIR 856OBJEXT 857EXEEXT 858ac_ct_CC 859CPPFLAGS 860LDFLAGS 861CFLAGS 862CC 863MAINT 864MAINTAINER_MODE_FALSE 865MAINTAINER_MODE_TRUE 866am__untar 867am__tar 868AMTAR 869am__leading_dot 870SET_MAKE 871AWK 872mkdir_p 873MKDIR_P 874INSTALL_STRIP_PROGRAM 875STRIP 876install_sh 877MAKEINFO 878AUTOHEADER 879AUTOMAKE 880AUTOCONF 881ACLOCAL 882VERSION 883PACKAGE 884CYGPATH_W 885am__isrc 886INSTALL_DATA 887INSTALL_SCRIPT 888INSTALL_PROGRAM 889target_alias 890host_alias 891build_alias 892LIBS 893ECHO_T 894ECHO_N 895ECHO_C 896DEFS 897mandir 898localedir 899libdir 900psdir 901pdfdir 902dvidir 903htmldir 904infodir 905docdir 906oldincludedir 907includedir 908localstatedir 909sharedstatedir 910sysconfdir 911datadir 912datarootdir 913libexecdir 914sbindir 915bindir 916program_transform_name 917prefix 918exec_prefix 919PACKAGE_BUGREPORT 920PACKAGE_STRING 921PACKAGE_VERSION 922PACKAGE_TARNAME 923PACKAGE_NAME 924PATH_SEPARATOR 925SHELL' 926ac_subst_files='' 927ac_user_opts=' 928enable_option_checking 929enable_maintainer_mode 930enable_dependency_tracking 931enable_shared 932enable_static 933with_pic 934enable_fast_install 935with_gnu_ld 936enable_libtool_lock 937enable_silent_rules 938enable_strict_compilation 939with_release_version 940with_lint 941enable_malloc0returnsnull 942' 943 ac_precious_vars='build_alias 944host_alias 945target_alias 946CC 947CFLAGS 948LDFLAGS 949LIBS 950CPPFLAGS 951CPP 952PKG_CONFIG 953XINERAMA_CFLAGS 954XINERAMA_LIBS' 955 956 957# Initialize some variables set by options. 958ac_init_help= 959ac_init_version=false 960ac_unrecognized_opts= 961ac_unrecognized_sep= 962# The variables have the same names as the options, with 963# dashes changed to underlines. 964cache_file=/dev/null 965exec_prefix=NONE 966no_create= 967no_recursion= 968prefix=NONE 969program_prefix=NONE 970program_suffix=NONE 971program_transform_name=s,x,x, 972silent= 973site= 974srcdir= 975verbose= 976x_includes=NONE 977x_libraries=NONE 978 979# Installation directory options. 980# These are left unexpanded so users can "make install exec_prefix=/foo" 981# and all the variables that are supposed to be based on exec_prefix 982# by default will actually change. 983# Use braces instead of parens because sh, perl, etc. also accept them. 984# (The list follows the same order as the GNU Coding Standards.) 985bindir='${exec_prefix}/bin' 986sbindir='${exec_prefix}/sbin' 987libexecdir='${exec_prefix}/libexec' 988datarootdir='${prefix}/share' 989datadir='${datarootdir}' 990sysconfdir='${prefix}/etc' 991sharedstatedir='${prefix}/com' 992localstatedir='${prefix}/var' 993includedir='${prefix}/include' 994oldincludedir='/usr/include' 995docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 996infodir='${datarootdir}/info' 997htmldir='${docdir}' 998dvidir='${docdir}' 999pdfdir='${docdir}' 1000psdir='${docdir}' 1001libdir='${exec_prefix}/lib' 1002localedir='${datarootdir}/locale' 1003mandir='${datarootdir}/man' 1004 1005ac_prev= 1006ac_dashdash= 1007for ac_option 1008do 1009 # If the previous option needs an argument, assign it. 1010 if test -n "$ac_prev"; then 1011 eval $ac_prev=\$ac_option 1012 ac_prev= 1013 continue 1014 fi 1015 1016 case $ac_option in 1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1018 *) ac_optarg=yes ;; 1019 esac 1020 1021 # Accept the important Cygnus configure options, so we can diagnose typos. 1022 1023 case $ac_dashdash$ac_option in 1024 --) 1025 ac_dashdash=yes ;; 1026 1027 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1028 ac_prev=bindir ;; 1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1030 bindir=$ac_optarg ;; 1031 1032 -build | --build | --buil | --bui | --bu) 1033 ac_prev=build_alias ;; 1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1035 build_alias=$ac_optarg ;; 1036 1037 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1039 ac_prev=cache_file ;; 1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1042 cache_file=$ac_optarg ;; 1043 1044 --config-cache | -C) 1045 cache_file=config.cache ;; 1046 1047 -datadir | --datadir | --datadi | --datad) 1048 ac_prev=datadir ;; 1049 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1050 datadir=$ac_optarg ;; 1051 1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1053 | --dataroo | --dataro | --datar) 1054 ac_prev=datarootdir ;; 1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1057 datarootdir=$ac_optarg ;; 1058 1059 -disable-* | --disable-*) 1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1061 # Reject names that are not valid shell variable names. 1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1063 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1064 { (exit 1); exit 1; }; } 1065 ac_useropt_orig=$ac_useropt 1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1067 case $ac_user_opts in 1068 *" 1069"enable_$ac_useropt" 1070"*) ;; 1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1072 ac_unrecognized_sep=', ';; 1073 esac 1074 eval enable_$ac_useropt=no ;; 1075 1076 -docdir | --docdir | --docdi | --doc | --do) 1077 ac_prev=docdir ;; 1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1079 docdir=$ac_optarg ;; 1080 1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1082 ac_prev=dvidir ;; 1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1084 dvidir=$ac_optarg ;; 1085 1086 -enable-* | --enable-*) 1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1090 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1091 { (exit 1); exit 1; }; } 1092 ac_useropt_orig=$ac_useropt 1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1094 case $ac_user_opts in 1095 *" 1096"enable_$ac_useropt" 1097"*) ;; 1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1099 ac_unrecognized_sep=', ';; 1100 esac 1101 eval enable_$ac_useropt=\$ac_optarg ;; 1102 1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1105 | --exec | --exe | --ex) 1106 ac_prev=exec_prefix ;; 1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1109 | --exec=* | --exe=* | --ex=*) 1110 exec_prefix=$ac_optarg ;; 1111 1112 -gas | --gas | --ga | --g) 1113 # Obsolete; use --with-gas. 1114 with_gas=yes ;; 1115 1116 -help | --help | --hel | --he | -h) 1117 ac_init_help=long ;; 1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1119 ac_init_help=recursive ;; 1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1121 ac_init_help=short ;; 1122 1123 -host | --host | --hos | --ho) 1124 ac_prev=host_alias ;; 1125 -host=* | --host=* | --hos=* | --ho=*) 1126 host_alias=$ac_optarg ;; 1127 1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1129 ac_prev=htmldir ;; 1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1131 | --ht=*) 1132 htmldir=$ac_optarg ;; 1133 1134 -includedir | --includedir | --includedi | --included | --include \ 1135 | --includ | --inclu | --incl | --inc) 1136 ac_prev=includedir ;; 1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1138 | --includ=* | --inclu=* | --incl=* | --inc=*) 1139 includedir=$ac_optarg ;; 1140 1141 -infodir | --infodir | --infodi | --infod | --info | --inf) 1142 ac_prev=infodir ;; 1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1144 infodir=$ac_optarg ;; 1145 1146 -libdir | --libdir | --libdi | --libd) 1147 ac_prev=libdir ;; 1148 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1149 libdir=$ac_optarg ;; 1150 1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1152 | --libexe | --libex | --libe) 1153 ac_prev=libexecdir ;; 1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1155 | --libexe=* | --libex=* | --libe=*) 1156 libexecdir=$ac_optarg ;; 1157 1158 -localedir | --localedir | --localedi | --localed | --locale) 1159 ac_prev=localedir ;; 1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1161 localedir=$ac_optarg ;; 1162 1163 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1164 | --localstate | --localstat | --localsta | --localst | --locals) 1165 ac_prev=localstatedir ;; 1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1168 localstatedir=$ac_optarg ;; 1169 1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1171 ac_prev=mandir ;; 1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1173 mandir=$ac_optarg ;; 1174 1175 -nfp | --nfp | --nf) 1176 # Obsolete; use --without-fp. 1177 with_fp=no ;; 1178 1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1180 | --no-cr | --no-c | -n) 1181 no_create=yes ;; 1182 1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1185 no_recursion=yes ;; 1186 1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1189 | --oldin | --oldi | --old | --ol | --o) 1190 ac_prev=oldincludedir ;; 1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1194 oldincludedir=$ac_optarg ;; 1195 1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1197 ac_prev=prefix ;; 1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1199 prefix=$ac_optarg ;; 1200 1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1202 | --program-pre | --program-pr | --program-p) 1203 ac_prev=program_prefix ;; 1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1206 program_prefix=$ac_optarg ;; 1207 1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1209 | --program-suf | --program-su | --program-s) 1210 ac_prev=program_suffix ;; 1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1213 program_suffix=$ac_optarg ;; 1214 1215 -program-transform-name | --program-transform-name \ 1216 | --program-transform-nam | --program-transform-na \ 1217 | --program-transform-n | --program-transform- \ 1218 | --program-transform | --program-transfor \ 1219 | --program-transfo | --program-transf \ 1220 | --program-trans | --program-tran \ 1221 | --progr-tra | --program-tr | --program-t) 1222 ac_prev=program_transform_name ;; 1223 -program-transform-name=* | --program-transform-name=* \ 1224 | --program-transform-nam=* | --program-transform-na=* \ 1225 | --program-transform-n=* | --program-transform-=* \ 1226 | --program-transform=* | --program-transfor=* \ 1227 | --program-transfo=* | --program-transf=* \ 1228 | --program-trans=* | --program-tran=* \ 1229 | --progr-tra=* | --program-tr=* | --program-t=*) 1230 program_transform_name=$ac_optarg ;; 1231 1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1233 ac_prev=pdfdir ;; 1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1235 pdfdir=$ac_optarg ;; 1236 1237 -psdir | --psdir | --psdi | --psd | --ps) 1238 ac_prev=psdir ;; 1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1240 psdir=$ac_optarg ;; 1241 1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1243 | -silent | --silent | --silen | --sile | --sil) 1244 silent=yes ;; 1245 1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1247 ac_prev=sbindir ;; 1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1249 | --sbi=* | --sb=*) 1250 sbindir=$ac_optarg ;; 1251 1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1254 | --sharedst | --shareds | --shared | --share | --shar \ 1255 | --sha | --sh) 1256 ac_prev=sharedstatedir ;; 1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1260 | --sha=* | --sh=*) 1261 sharedstatedir=$ac_optarg ;; 1262 1263 -site | --site | --sit) 1264 ac_prev=site ;; 1265 -site=* | --site=* | --sit=*) 1266 site=$ac_optarg ;; 1267 1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1269 ac_prev=srcdir ;; 1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1271 srcdir=$ac_optarg ;; 1272 1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1274 | --syscon | --sysco | --sysc | --sys | --sy) 1275 ac_prev=sysconfdir ;; 1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1278 sysconfdir=$ac_optarg ;; 1279 1280 -target | --target | --targe | --targ | --tar | --ta | --t) 1281 ac_prev=target_alias ;; 1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1283 target_alias=$ac_optarg ;; 1284 1285 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1286 verbose=yes ;; 1287 1288 -version | --version | --versio | --versi | --vers | -V) 1289 ac_init_version=: ;; 1290 1291 -with-* | --with-*) 1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1296 { (exit 1); exit 1; }; } 1297 ac_useropt_orig=$ac_useropt 1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1299 case $ac_user_opts in 1300 *" 1301"with_$ac_useropt" 1302"*) ;; 1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1304 ac_unrecognized_sep=', ';; 1305 esac 1306 eval with_$ac_useropt=\$ac_optarg ;; 1307 1308 -without-* | --without-*) 1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1310 # Reject names that are not valid shell variable names. 1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1312 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1313 { (exit 1); exit 1; }; } 1314 ac_useropt_orig=$ac_useropt 1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1316 case $ac_user_opts in 1317 *" 1318"with_$ac_useropt" 1319"*) ;; 1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1321 ac_unrecognized_sep=', ';; 1322 esac 1323 eval with_$ac_useropt=no ;; 1324 1325 --x) 1326 # Obsolete; use --with-x. 1327 with_x=yes ;; 1328 1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1330 | --x-incl | --x-inc | --x-in | --x-i) 1331 ac_prev=x_includes ;; 1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1334 x_includes=$ac_optarg ;; 1335 1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1338 ac_prev=x_libraries ;; 1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1341 x_libraries=$ac_optarg ;; 1342 1343 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1344Try \`$0 --help' for more information." >&2 1345 { (exit 1); exit 1; }; } 1346 ;; 1347 1348 *=*) 1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1350 # Reject names that are not valid shell variable names. 1351 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1352 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1353 { (exit 1); exit 1; }; } 1354 eval $ac_envvar=\$ac_optarg 1355 export $ac_envvar ;; 1356 1357 *) 1358 # FIXME: should be removed in autoconf 3.0. 1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1363 ;; 1364 1365 esac 1366done 1367 1368if test -n "$ac_prev"; then 1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1370 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1371 { (exit 1); exit 1; }; } 1372fi 1373 1374if test -n "$ac_unrecognized_opts"; then 1375 case $enable_option_checking in 1376 no) ;; 1377 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1378 { (exit 1); exit 1; }; } ;; 1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1380 esac 1381fi 1382 1383# Check all directory arguments for consistency. 1384for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1385 datadir sysconfdir sharedstatedir localstatedir includedir \ 1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1387 libdir localedir mandir 1388do 1389 eval ac_val=\$$ac_var 1390 # Remove trailing slashes. 1391 case $ac_val in 1392 */ ) 1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1394 eval $ac_var=\$ac_val;; 1395 esac 1396 # Be sure to have absolute directory names. 1397 case $ac_val in 1398 [\\/$]* | ?:[\\/]* ) continue;; 1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1400 esac 1401 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1402 { (exit 1); exit 1; }; } 1403done 1404 1405# There might be people who depend on the old broken behavior: `$host' 1406# used to hold the argument of --host etc. 1407# FIXME: To remove some day. 1408build=$build_alias 1409host=$host_alias 1410target=$target_alias 1411 1412# FIXME: To remove some day. 1413if test "x$host_alias" != x; then 1414 if test "x$build_alias" = x; then 1415 cross_compiling=maybe 1416 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1417 If a cross compiler is detected then cross compile mode will be used." >&2 1418 elif test "x$build_alias" != "x$host_alias"; then 1419 cross_compiling=yes 1420 fi 1421fi 1422 1423ac_tool_prefix= 1424test -n "$host_alias" && ac_tool_prefix=$host_alias- 1425 1426test "$silent" = yes && exec 6>/dev/null 1427 1428 1429ac_pwd=`pwd` && test -n "$ac_pwd" && 1430ac_ls_di=`ls -di .` && 1431ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1432 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1433 { (exit 1); exit 1; }; } 1434test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1435 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1436 { (exit 1); exit 1; }; } 1437 1438 1439# Find the source files, if location was not specified. 1440if test -z "$srcdir"; then 1441 ac_srcdir_defaulted=yes 1442 # Try the directory containing this script, then the parent directory. 1443 ac_confdir=`$as_dirname -- "$as_myself" || 1444$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1445 X"$as_myself" : 'X\(//\)[^/]' \| \ 1446 X"$as_myself" : 'X\(//\)$' \| \ 1447 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1448$as_echo X"$as_myself" | 1449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1450 s//\1/ 1451 q 1452 } 1453 /^X\(\/\/\)[^/].*/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)$/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\).*/{ 1462 s//\1/ 1463 q 1464 } 1465 s/.*/./; q'` 1466 srcdir=$ac_confdir 1467 if test ! -r "$srcdir/$ac_unique_file"; then 1468 srcdir=.. 1469 fi 1470else 1471 ac_srcdir_defaulted=no 1472fi 1473if test ! -r "$srcdir/$ac_unique_file"; then 1474 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1475 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1476 { (exit 1); exit 1; }; } 1477fi 1478ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1479ac_abs_confdir=`( 1480 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1481 { (exit 1); exit 1; }; } 1482 pwd)` 1483# When building in place, set srcdir=. 1484if test "$ac_abs_confdir" = "$ac_pwd"; then 1485 srcdir=. 1486fi 1487# Remove unnecessary trailing slashes from srcdir. 1488# Double slashes in file names in object file debugging info 1489# mess up M-x gdb in Emacs. 1490case $srcdir in 1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1492esac 1493for ac_var in $ac_precious_vars; do 1494 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1495 eval ac_env_${ac_var}_value=\$${ac_var} 1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1498done 1499 1500# 1501# Report the --help message. 1502# 1503if test "$ac_init_help" = "long"; then 1504 # Omit some internal or obsolete options to make the list less imposing. 1505 # This message is too long to be a string in the A/UX 3.1 sh. 1506 cat <<_ACEOF 1507\`configure' configures libXinerama 1.1 to adapt to many kinds of systems. 1508 1509Usage: $0 [OPTION]... [VAR=VALUE]... 1510 1511To assign environment variables (e.g., CC, CFLAGS...), specify them as 1512VAR=VALUE. See below for descriptions of some of the useful variables. 1513 1514Defaults for the options are specified in brackets. 1515 1516Configuration: 1517 -h, --help display this help and exit 1518 --help=short display options specific to this package 1519 --help=recursive display the short help of all the included packages 1520 -V, --version display version information and exit 1521 -q, --quiet, --silent do not print \`checking...' messages 1522 --cache-file=FILE cache test results in FILE [disabled] 1523 -C, --config-cache alias for \`--cache-file=config.cache' 1524 -n, --no-create do not create output files 1525 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1526 1527Installation directories: 1528 --prefix=PREFIX install architecture-independent files in PREFIX 1529 [$ac_default_prefix] 1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1531 [PREFIX] 1532 1533By default, \`make install' will install all the files in 1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1535an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1536for instance \`--prefix=\$HOME'. 1537 1538For better control, use the options below. 1539 1540Fine tuning of the installation directories: 1541 --bindir=DIR user executables [EPREFIX/bin] 1542 --sbindir=DIR system admin executables [EPREFIX/sbin] 1543 --libexecdir=DIR program executables [EPREFIX/libexec] 1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1547 --libdir=DIR object code libraries [EPREFIX/lib] 1548 --includedir=DIR C header files [PREFIX/include] 1549 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1552 --infodir=DIR info documentation [DATAROOTDIR/info] 1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1554 --mandir=DIR man documentation [DATAROOTDIR/man] 1555 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama] 1556 --htmldir=DIR html documentation [DOCDIR] 1557 --dvidir=DIR dvi documentation [DOCDIR] 1558 --pdfdir=DIR pdf documentation [DOCDIR] 1559 --psdir=DIR ps documentation [DOCDIR] 1560_ACEOF 1561 1562 cat <<\_ACEOF 1563 1564Program names: 1565 --program-prefix=PREFIX prepend PREFIX to installed program names 1566 --program-suffix=SUFFIX append SUFFIX to installed program names 1567 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1568 1569System types: 1570 --build=BUILD configure for building on BUILD [guessed] 1571 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1572_ACEOF 1573fi 1574 1575if test -n "$ac_init_help"; then 1576 case $ac_init_help in 1577 short | recursive ) echo "Configuration of libXinerama 1.1:";; 1578 esac 1579 cat <<\_ACEOF 1580 1581Optional Features: 1582 --disable-option-checking ignore unrecognized --enable/--with options 1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1585 --enable-maintainer-mode enable make rules and dependencies not useful 1586 (and sometimes confusing) to the casual installer 1587 --disable-dependency-tracking speeds up one-time build 1588 --enable-dependency-tracking do not reject slow dependency extractors 1589 --enable-shared[=PKGS] build shared libraries [default=yes] 1590 --enable-static[=PKGS] build static libraries [default=yes] 1591 --enable-fast-install[=PKGS] 1592 optimize for fast installation [default=yes] 1593 --disable-libtool-lock avoid locking (might break parallel builds) 1594 --enable-silent-rules less verbose build output (undo: `make V=1') 1595 --disable-silent-rules verbose build output (undo: `make V=0') 1596 --enable-strict-compilation 1597 Enable all warnings from compiler and make them 1598 errors (default: disabled) 1599 --enable-malloc0returnsnull 1600 malloc(0) returns NULL (default: auto) 1601 1602Optional Packages: 1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1605 --with-pic try to use only PIC/non-PIC objects [default=use 1606 both] 1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1608 --with-release-version=STRING 1609 Use release version string in package name 1610 --with-lint Use a lint-style source code checker (default: 1611 disabled) 1612 1613Some influential environment variables: 1614 CC C compiler command 1615 CFLAGS C compiler flags 1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1617 nonstandard directory <lib dir> 1618 LIBS libraries to pass to the linker, e.g. -l<library> 1619 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1620 you have headers in a nonstandard directory <include dir> 1621 CPP C preprocessor 1622 PKG_CONFIG path to pkg-config utility 1623 XINERAMA_CFLAGS 1624 C compiler flags for XINERAMA, overriding pkg-config 1625 XINERAMA_LIBS 1626 linker flags for XINERAMA, overriding pkg-config 1627 1628Use these variables to override the choices made by `configure' or to help 1629it to find libraries and programs with nonstandard names/locations. 1630 1631Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1632_ACEOF 1633ac_status=$? 1634fi 1635 1636if test "$ac_init_help" = "recursive"; then 1637 # If there are subdirs, report their specific --help. 1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1639 test -d "$ac_dir" || 1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1641 continue 1642 ac_builddir=. 1643 1644case "$ac_dir" in 1645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646*) 1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1648 # A ".." for each directory in $ac_dir_suffix. 1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1650 case $ac_top_builddir_sub in 1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1653 esac ;; 1654esac 1655ac_abs_top_builddir=$ac_pwd 1656ac_abs_builddir=$ac_pwd$ac_dir_suffix 1657# for backward compatibility: 1658ac_top_builddir=$ac_top_build_prefix 1659 1660case $srcdir in 1661 .) # We are building in place. 1662 ac_srcdir=. 1663 ac_top_srcdir=$ac_top_builddir_sub 1664 ac_abs_top_srcdir=$ac_pwd ;; 1665 [\\/]* | ?:[\\/]* ) # Absolute name. 1666 ac_srcdir=$srcdir$ac_dir_suffix; 1667 ac_top_srcdir=$srcdir 1668 ac_abs_top_srcdir=$srcdir ;; 1669 *) # Relative name. 1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1671 ac_top_srcdir=$ac_top_build_prefix$srcdir 1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1673esac 1674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1675 1676 cd "$ac_dir" || { ac_status=$?; continue; } 1677 # Check for guested configure. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689fi 1690 1691test -n "$ac_init_help" && exit $ac_status 1692if $ac_init_version; then 1693 cat <<\_ACEOF 1694libXinerama configure 1.1 1695generated by GNU Autoconf 2.63 1696 1697Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16982002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1699This configure script is free software; the Free Software Foundation 1700gives unlimited permission to copy, distribute and modify it. 1701_ACEOF 1702 exit 1703fi 1704cat >config.log <<_ACEOF 1705This file contains any messages produced by compilers while 1706running configure, to aid debugging if configure makes a mistake. 1707 1708It was created by libXinerama $as_me 1.1, which was 1709generated by GNU Autoconf 2.63. Invocation command line was 1710 1711 $ $0 $@ 1712 1713_ACEOF 1714exec 5>>config.log 1715{ 1716cat <<_ASUNAME 1717## --------- ## 1718## Platform. ## 1719## --------- ## 1720 1721hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1722uname -m = `(uname -m) 2>/dev/null || echo unknown` 1723uname -r = `(uname -r) 2>/dev/null || echo unknown` 1724uname -s = `(uname -s) 2>/dev/null || echo unknown` 1725uname -v = `(uname -v) 2>/dev/null || echo unknown` 1726 1727/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1728/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1729 1730/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1731/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1732/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1733/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1734/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1735/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1736/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1737 1738_ASUNAME 1739 1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1741for as_dir in $PATH 1742do 1743 IFS=$as_save_IFS 1744 test -z "$as_dir" && as_dir=. 1745 $as_echo "PATH: $as_dir" 1746done 1747IFS=$as_save_IFS 1748 1749} >&5 1750 1751cat >&5 <<_ACEOF 1752 1753 1754## ----------- ## 1755## Core tests. ## 1756## ----------- ## 1757 1758_ACEOF 1759 1760 1761# Keep a trace of the command line. 1762# Strip out --no-create and --no-recursion so they do not pile up. 1763# Strip out --silent because we don't want to record it for future runs. 1764# Also quote any args containing shell meta-characters. 1765# Make two passes to allow for proper duplicate-argument suppression. 1766ac_configure_args= 1767ac_configure_args0= 1768ac_configure_args1= 1769ac_must_keep_next=false 1770for ac_pass in 1 2 1771do 1772 for ac_arg 1773 do 1774 case $ac_arg in 1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1777 | -silent | --silent | --silen | --sile | --sil) 1778 continue ;; 1779 *\'*) 1780 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1781 esac 1782 case $ac_pass in 1783 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1784 2) 1785 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1786 if test $ac_must_keep_next = true; then 1787 ac_must_keep_next=false # Got value, back to normal. 1788 else 1789 case $ac_arg in 1790 *=* | --config-cache | -C | -disable-* | --disable-* \ 1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1793 | -with-* | --with-* | -without-* | --without-* | --x) 1794 case "$ac_configure_args0 " in 1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1796 esac 1797 ;; 1798 -* ) ac_must_keep_next=true ;; 1799 esac 1800 fi 1801 ac_configure_args="$ac_configure_args '$ac_arg'" 1802 ;; 1803 esac 1804 done 1805done 1806$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1807$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1808 1809# When interrupted or exit'd, cleanup temporary files, and complete 1810# config.log. We remove comments because anyway the quotes in there 1811# would cause problems or look ugly. 1812# WARNING: Use '\'' to represent an apostrophe within the trap. 1813# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1814trap 'exit_status=$? 1815 # Save into config.log some information that might help in debugging. 1816 { 1817 echo 1818 1819 cat <<\_ASBOX 1820## ---------------- ## 1821## Cache variables. ## 1822## ---------------- ## 1823_ASBOX 1824 echo 1825 # The following way of writing the cache mishandles newlines in values, 1826( 1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1828 eval ac_val=\$$ac_var 1829 case $ac_val in #( 1830 *${as_nl}*) 1831 case $ac_var in #( 1832 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1833$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1834 esac 1835 case $ac_var in #( 1836 _ | IFS | as_nl) ;; #( 1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1838 *) $as_unset $ac_var ;; 1839 esac ;; 1840 esac 1841 done 1842 (set) 2>&1 | 1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1844 *${as_nl}ac_space=\ *) 1845 sed -n \ 1846 "s/'\''/'\''\\\\'\'''\''/g; 1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1848 ;; #( 1849 *) 1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1851 ;; 1852 esac | 1853 sort 1854) 1855 echo 1856 1857 cat <<\_ASBOX 1858## ----------------- ## 1859## Output variables. ## 1860## ----------------- ## 1861_ASBOX 1862 echo 1863 for ac_var in $ac_subst_vars 1864 do 1865 eval ac_val=\$$ac_var 1866 case $ac_val in 1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1868 esac 1869 $as_echo "$ac_var='\''$ac_val'\''" 1870 done | sort 1871 echo 1872 1873 if test -n "$ac_subst_files"; then 1874 cat <<\_ASBOX 1875## ------------------- ## 1876## File substitutions. ## 1877## ------------------- ## 1878_ASBOX 1879 echo 1880 for ac_var in $ac_subst_files 1881 do 1882 eval ac_val=\$$ac_var 1883 case $ac_val in 1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1885 esac 1886 $as_echo "$ac_var='\''$ac_val'\''" 1887 done | sort 1888 echo 1889 fi 1890 1891 if test -s confdefs.h; then 1892 cat <<\_ASBOX 1893## ----------- ## 1894## confdefs.h. ## 1895## ----------- ## 1896_ASBOX 1897 echo 1898 cat confdefs.h 1899 echo 1900 fi 1901 test "$ac_signal" != 0 && 1902 $as_echo "$as_me: caught signal $ac_signal" 1903 $as_echo "$as_me: exit $exit_status" 1904 } >&5 1905 rm -f core *.core core.conftest.* && 1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1907 exit $exit_status 1908' 0 1909for ac_signal in 1 2 13 15; do 1910 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1911done 1912ac_signal=0 1913 1914# confdefs.h avoids OS command line length limits that DEFS can exceed. 1915rm -f -r conftest* confdefs.h 1916 1917# Predefined preprocessor variables. 1918 1919cat >>confdefs.h <<_ACEOF 1920#define PACKAGE_NAME "$PACKAGE_NAME" 1921_ACEOF 1922 1923 1924cat >>confdefs.h <<_ACEOF 1925#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1926_ACEOF 1927 1928 1929cat >>confdefs.h <<_ACEOF 1930#define PACKAGE_VERSION "$PACKAGE_VERSION" 1931_ACEOF 1932 1933 1934cat >>confdefs.h <<_ACEOF 1935#define PACKAGE_STRING "$PACKAGE_STRING" 1936_ACEOF 1937 1938 1939cat >>confdefs.h <<_ACEOF 1940#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1941_ACEOF 1942 1943 1944# Let the site file select an alternate cache file if it wants to. 1945# Prefer an explicitly selected file to automatically selected ones. 1946ac_site_file1=NONE 1947ac_site_file2=NONE 1948if test -n "$CONFIG_SITE"; then 1949 ac_site_file1=$CONFIG_SITE 1950elif test "x$prefix" != xNONE; then 1951 ac_site_file1=$prefix/share/config.site 1952 ac_site_file2=$prefix/etc/config.site 1953else 1954 ac_site_file1=$ac_default_prefix/share/config.site 1955 ac_site_file2=$ac_default_prefix/etc/config.site 1956fi 1957for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1958do 1959 test "x$ac_site_file" = xNONE && continue 1960 if test -r "$ac_site_file"; then 1961 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1962$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1963 sed 's/^/| /' "$ac_site_file" >&5 1964 . "$ac_site_file" 1965 fi 1966done 1967 1968if test -r "$cache_file"; then 1969 # Some versions of bash will fail to source /dev/null (special 1970 # files actually), so we avoid doing that. 1971 if test -f "$cache_file"; then 1972 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1973$as_echo "$as_me: loading cache $cache_file" >&6;} 1974 case $cache_file in 1975 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1976 *) . "./$cache_file";; 1977 esac 1978 fi 1979else 1980 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1981$as_echo "$as_me: creating cache $cache_file" >&6;} 1982 >$cache_file 1983fi 1984 1985# Check that the precious variables saved in the cache have kept the same 1986# value. 1987ac_cache_corrupted=false 1988for ac_var in $ac_precious_vars; do 1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1990 eval ac_new_set=\$ac_env_${ac_var}_set 1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1992 eval ac_new_val=\$ac_env_${ac_var}_value 1993 case $ac_old_set,$ac_new_set in 1994 set,) 1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1996$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1997 ac_cache_corrupted=: ;; 1998 ,set) 1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2000$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2001 ac_cache_corrupted=: ;; 2002 ,);; 2003 *) 2004 if test "x$ac_old_val" != "x$ac_new_val"; then 2005 # differences in whitespace do not lead to failure. 2006 ac_old_val_w=`echo x $ac_old_val` 2007 ac_new_val_w=`echo x $ac_new_val` 2008 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2010$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2011 ac_cache_corrupted=: 2012 else 2013 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2014$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2015 eval $ac_var=\$ac_old_val 2016 fi 2017 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2018$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2019 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2020$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2021 fi;; 2022 esac 2023 # Pass precious variables to config.status. 2024 if test "$ac_new_set" = set; then 2025 case $ac_new_val in 2026 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2027 *) ac_arg=$ac_var=$ac_new_val ;; 2028 esac 2029 case " $ac_configure_args " in 2030 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2031 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2032 esac 2033 fi 2034done 2035if $ac_cache_corrupted; then 2036 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2038 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2039$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2040 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2041$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2042 { (exit 1); exit 1; }; } 2043fi 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069ac_ext=c 2070ac_cpp='$CPP $CPPFLAGS' 2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2073ac_compiler_gnu=$ac_cv_c_compiler_gnu 2074 2075 2076am__api_version='1.11' 2077 2078ac_aux_dir= 2079for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2080 if test -f "$ac_dir/install-sh"; then 2081 ac_aux_dir=$ac_dir 2082 ac_install_sh="$ac_aux_dir/install-sh -c" 2083 break 2084 elif test -f "$ac_dir/install.sh"; then 2085 ac_aux_dir=$ac_dir 2086 ac_install_sh="$ac_aux_dir/install.sh -c" 2087 break 2088 elif test -f "$ac_dir/shtool"; then 2089 ac_aux_dir=$ac_dir 2090 ac_install_sh="$ac_aux_dir/shtool install -c" 2091 break 2092 fi 2093done 2094if test -z "$ac_aux_dir"; then 2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2096$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2097 { (exit 1); exit 1; }; } 2098fi 2099 2100# These three variables are undocumented and unsupported, 2101# and are intended to be withdrawn in a future Autoconf release. 2102# They can cause serious problems if a builder's source tree is in a directory 2103# whose full name contains unusual characters. 2104ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2105ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2106ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2107 2108 2109# Find a good install program. We prefer a C program (faster), 2110# so one script is as good as another. But avoid the broken or 2111# incompatible versions: 2112# SysV /etc/install, /usr/sbin/install 2113# SunOS /usr/etc/install 2114# IRIX /sbin/install 2115# AIX /bin/install 2116# AmigaOS /C/install, which installs bootblocks on floppy discs 2117# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2118# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2119# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2120# OS/2's system install, which has a completely different semantic 2121# ./install, which can be erroneously created by make from ./install.sh. 2122# Reject install programs that cannot install multiple files. 2123{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2124$as_echo_n "checking for a BSD-compatible install... " >&6; } 2125if test -z "$INSTALL"; then 2126if test "${ac_cv_path_install+set}" = set; then 2127 $as_echo_n "(cached) " >&6 2128else 2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2130for as_dir in $PATH 2131do 2132 IFS=$as_save_IFS 2133 test -z "$as_dir" && as_dir=. 2134 # Account for people who put trailing slashes in PATH elements. 2135case $as_dir/ in 2136 ./ | .// | /cC/* | \ 2137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2139 /usr/ucb/* ) ;; 2140 *) 2141 # OSF1 and SCO ODT 3.0 have their own names for install. 2142 # Don't use installbsd from OSF since it installs stuff as root 2143 # by default. 2144 for ac_prog in ginstall scoinst install; do 2145 for ac_exec_ext in '' $ac_executable_extensions; do 2146 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2147 if test $ac_prog = install && 2148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2149 # AIX install. It has an incompatible calling convention. 2150 : 2151 elif test $ac_prog = install && 2152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2153 # program-specific install script used by HP pwplus--don't use. 2154 : 2155 else 2156 rm -rf conftest.one conftest.two conftest.dir 2157 echo one > conftest.one 2158 echo two > conftest.two 2159 mkdir conftest.dir 2160 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2161 test -s conftest.one && test -s conftest.two && 2162 test -s conftest.dir/conftest.one && 2163 test -s conftest.dir/conftest.two 2164 then 2165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2166 break 3 2167 fi 2168 fi 2169 fi 2170 done 2171 done 2172 ;; 2173esac 2174 2175done 2176IFS=$as_save_IFS 2177 2178rm -rf conftest.one conftest.two conftest.dir 2179 2180fi 2181 if test "${ac_cv_path_install+set}" = set; then 2182 INSTALL=$ac_cv_path_install 2183 else 2184 # As a last resort, use the slow shell script. Don't cache a 2185 # value for INSTALL within a source directory, because that will 2186 # break other packages using the cache if that directory is 2187 # removed, or if the value is a relative name. 2188 INSTALL=$ac_install_sh 2189 fi 2190fi 2191{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2192$as_echo "$INSTALL" >&6; } 2193 2194# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2195# It thinks the first close brace ends the variable substitution. 2196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2197 2198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2199 2200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2201 2202{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2203$as_echo_n "checking whether build environment is sane... " >&6; } 2204# Just in case 2205sleep 1 2206echo timestamp > conftest.file 2207# Reject unsafe characters in $srcdir or the absolute working directory 2208# name. Accept space and tab only in the latter. 2209am_lf=' 2210' 2211case `pwd` in 2212 *[\\\"\#\$\&\'\`$am_lf]*) 2213 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2214$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2215 { (exit 1); exit 1; }; };; 2216esac 2217case $srcdir in 2218 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2219 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2220$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2221 { (exit 1); exit 1; }; };; 2222esac 2223 2224# Do `set' in a subshell so we don't clobber the current shell's 2225# arguments. Must try -L first in case configure is actually a 2226# symlink; some systems play weird games with the mod time of symlinks 2227# (eg FreeBSD returns the mod time of the symlink's containing 2228# directory). 2229if ( 2230 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2231 if test "$*" = "X"; then 2232 # -L didn't work. 2233 set X `ls -t "$srcdir/configure" conftest.file` 2234 fi 2235 rm -f conftest.file 2236 if test "$*" != "X $srcdir/configure conftest.file" \ 2237 && test "$*" != "X conftest.file $srcdir/configure"; then 2238 2239 # If neither matched, then we have a broken ls. This can happen 2240 # if, for instance, CONFIG_SHELL is bash and it inherits a 2241 # broken ls alias from the environment. This has actually 2242 # happened. Such a system could not be considered "sane". 2243 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2244alias in your environment" >&5 2245$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2246alias in your environment" >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 2250 test "$2" = conftest.file 2251 ) 2252then 2253 # Ok. 2254 : 2255else 2256 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2257Check your system clock" >&5 2258$as_echo "$as_me: error: newly created file is older than distributed files! 2259Check your system clock" >&2;} 2260 { (exit 1); exit 1; }; } 2261fi 2262{ $as_echo "$as_me:$LINENO: result: yes" >&5 2263$as_echo "yes" >&6; } 2264test "$program_prefix" != NONE && 2265 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2266# Use a double $ so make ignores it. 2267test "$program_suffix" != NONE && 2268 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2269# Double any \ or $. 2270# By default was `s,x,x', remove it if useless. 2271ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2272program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2273 2274# expand $ac_aux_dir to an absolute path 2275am_aux_dir=`cd $ac_aux_dir && pwd` 2276 2277if test x"${MISSING+set}" != xset; then 2278 case $am_aux_dir in 2279 *\ * | *\ *) 2280 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2281 *) 2282 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2283 esac 2284fi 2285# Use eval to expand $SHELL 2286if eval "$MISSING --run true"; then 2287 am_missing_run="$MISSING --run " 2288else 2289 am_missing_run= 2290 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2291$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2292fi 2293 2294if test x"${install_sh}" != xset; then 2295 case $am_aux_dir in 2296 *\ * | *\ *) 2297 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2298 *) 2299 install_sh="\${SHELL} $am_aux_dir/install-sh" 2300 esac 2301fi 2302 2303# Installed binaries are usually stripped using `strip' when the user 2304# run `make install-strip'. However `strip' might not be the right 2305# tool to use in cross-compilation environments, therefore Automake 2306# will honor the `STRIP' environment variable to overrule this program. 2307if test "$cross_compiling" != no; then 2308 if test -n "$ac_tool_prefix"; then 2309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2310set dummy ${ac_tool_prefix}strip; ac_word=$2 2311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2312$as_echo_n "checking for $ac_word... " >&6; } 2313if test "${ac_cv_prog_STRIP+set}" = set; then 2314 $as_echo_n "(cached) " >&6 2315else 2316 if test -n "$STRIP"; then 2317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2318else 2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2320for as_dir in $PATH 2321do 2322 IFS=$as_save_IFS 2323 test -z "$as_dir" && as_dir=. 2324 for ac_exec_ext in '' $ac_executable_extensions; do 2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2326 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2328 break 2 2329 fi 2330done 2331done 2332IFS=$as_save_IFS 2333 2334fi 2335fi 2336STRIP=$ac_cv_prog_STRIP 2337if test -n "$STRIP"; then 2338 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2339$as_echo "$STRIP" >&6; } 2340else 2341 { $as_echo "$as_me:$LINENO: result: no" >&5 2342$as_echo "no" >&6; } 2343fi 2344 2345 2346fi 2347if test -z "$ac_cv_prog_STRIP"; then 2348 ac_ct_STRIP=$STRIP 2349 # Extract the first word of "strip", so it can be a program name with args. 2350set dummy strip; ac_word=$2 2351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2352$as_echo_n "checking for $ac_word... " >&6; } 2353if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2354 $as_echo_n "(cached) " >&6 2355else 2356 if test -n "$ac_ct_STRIP"; then 2357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2358else 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360for as_dir in $PATH 2361do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2366 ac_cv_prog_ac_ct_STRIP="strip" 2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2368 break 2 2369 fi 2370done 2371done 2372IFS=$as_save_IFS 2373 2374fi 2375fi 2376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2377if test -n "$ac_ct_STRIP"; then 2378 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2379$as_echo "$ac_ct_STRIP" >&6; } 2380else 2381 { $as_echo "$as_me:$LINENO: result: no" >&5 2382$as_echo "no" >&6; } 2383fi 2384 2385 if test "x$ac_ct_STRIP" = x; then 2386 STRIP=":" 2387 else 2388 case $cross_compiling:$ac_tool_warned in 2389yes:) 2390{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2392ac_tool_warned=yes ;; 2393esac 2394 STRIP=$ac_ct_STRIP 2395 fi 2396else 2397 STRIP="$ac_cv_prog_STRIP" 2398fi 2399 2400fi 2401INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2402 2403{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2404$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2405if test -z "$MKDIR_P"; then 2406 if test "${ac_cv_path_mkdir+set}" = set; then 2407 $as_echo_n "(cached) " >&6 2408else 2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2410for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2411do 2412 IFS=$as_save_IFS 2413 test -z "$as_dir" && as_dir=. 2414 for ac_prog in mkdir gmkdir; do 2415 for ac_exec_ext in '' $ac_executable_extensions; do 2416 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2417 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2418 'mkdir (GNU coreutils) '* | \ 2419 'mkdir (coreutils) '* | \ 2420 'mkdir (fileutils) '4.1*) 2421 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2422 break 3;; 2423 esac 2424 done 2425 done 2426done 2427IFS=$as_save_IFS 2428 2429fi 2430 2431 if test "${ac_cv_path_mkdir+set}" = set; then 2432 MKDIR_P="$ac_cv_path_mkdir -p" 2433 else 2434 # As a last resort, use the slow shell script. Don't cache a 2435 # value for MKDIR_P within a source directory, because that will 2436 # break other packages using the cache if that directory is 2437 # removed, or if the value is a relative name. 2438 test -d ./--version && rmdir ./--version 2439 MKDIR_P="$ac_install_sh -d" 2440 fi 2441fi 2442{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2443$as_echo "$MKDIR_P" >&6; } 2444 2445mkdir_p="$MKDIR_P" 2446case $mkdir_p in 2447 [\\/$]* | ?:[\\/]*) ;; 2448 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2449esac 2450 2451for ac_prog in gawk mawk nawk awk 2452do 2453 # Extract the first word of "$ac_prog", so it can be a program name with args. 2454set dummy $ac_prog; ac_word=$2 2455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if test "${ac_cv_prog_AWK+set}" = set; then 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$AWK"; then 2461 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2470 ac_cv_prog_AWK="$ac_prog" 2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480AWK=$ac_cv_prog_AWK 2481if test -n "$AWK"; then 2482 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2483$as_echo "$AWK" >&6; } 2484else 2485 { $as_echo "$as_me:$LINENO: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 2490 test -n "$AWK" && break 2491done 2492 2493{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2494$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2495set x ${MAKE-make} 2496ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2497if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2498 $as_echo_n "(cached) " >&6 2499else 2500 cat >conftest.make <<\_ACEOF 2501SHELL = /bin/sh 2502all: 2503 @echo '@@@%%%=$(MAKE)=@@@%%%' 2504_ACEOF 2505# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2506case `${MAKE-make} -f conftest.make 2>/dev/null` in 2507 *@@@%%%=?*=@@@%%%*) 2508 eval ac_cv_prog_make_${ac_make}_set=yes;; 2509 *) 2510 eval ac_cv_prog_make_${ac_make}_set=no;; 2511esac 2512rm -f conftest.make 2513fi 2514if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2515 { $as_echo "$as_me:$LINENO: result: yes" >&5 2516$as_echo "yes" >&6; } 2517 SET_MAKE= 2518else 2519 { $as_echo "$as_me:$LINENO: result: no" >&5 2520$as_echo "no" >&6; } 2521 SET_MAKE="MAKE=${MAKE-make}" 2522fi 2523 2524rm -rf .tst 2>/dev/null 2525mkdir .tst 2>/dev/null 2526if test -d .tst; then 2527 am__leading_dot=. 2528else 2529 am__leading_dot=_ 2530fi 2531rmdir .tst 2>/dev/null 2532 2533if test "`cd $srcdir && pwd`" != "`pwd`"; then 2534 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2535 # is not polluted with repeated "-I." 2536 am__isrc=' -I$(srcdir)' 2537 # test to see if srcdir already configured 2538 if test -f $srcdir/config.status; then 2539 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2540$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2541 { (exit 1); exit 1; }; } 2542 fi 2543fi 2544 2545# test whether we have cygpath 2546if test -z "$CYGPATH_W"; then 2547 if (cygpath --version) >/dev/null 2>/dev/null; then 2548 CYGPATH_W='cygpath -w' 2549 else 2550 CYGPATH_W=echo 2551 fi 2552fi 2553 2554 2555# Define the identity of the package. 2556 PACKAGE='libXinerama' 2557 VERSION='1.1' 2558 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE "$PACKAGE" 2562_ACEOF 2563 2564 2565cat >>confdefs.h <<_ACEOF 2566#define VERSION "$VERSION" 2567_ACEOF 2568 2569# Some tools Automake needs. 2570 2571ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2572 2573 2574AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2575 2576 2577AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2578 2579 2580AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2581 2582 2583MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2584 2585# We need awk for the "check" target. The system "awk" is bad on 2586# some platforms. 2587# Always define AMTAR for backward compatibility. 2588 2589AMTAR=${AMTAR-"${am_missing_run}tar"} 2590 2591am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2592 2593 2594 2595 2596 2597 2598{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2599$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2600 # Check whether --enable-maintainer-mode was given. 2601if test "${enable_maintainer_mode+set}" = set; then 2602 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2603else 2604 USE_MAINTAINER_MODE=no 2605fi 2606 2607 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2608$as_echo "$USE_MAINTAINER_MODE" >&6; } 2609 if test $USE_MAINTAINER_MODE = yes; then 2610 MAINTAINER_MODE_TRUE= 2611 MAINTAINER_MODE_FALSE='#' 2612else 2613 MAINTAINER_MODE_TRUE='#' 2614 MAINTAINER_MODE_FALSE= 2615fi 2616 2617 MAINT=$MAINTAINER_MODE_TRUE 2618 2619 2620 2621# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633ac_config_headers="$ac_config_headers config.h" 2634 2635 2636# Check for progs 2637ac_ext=c 2638ac_cpp='$CPP $CPPFLAGS' 2639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2641ac_compiler_gnu=$ac_cv_c_compiler_gnu 2642if test -n "$ac_tool_prefix"; then 2643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2644set dummy ${ac_tool_prefix}gcc; ac_word=$2 2645{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2646$as_echo_n "checking for $ac_word... " >&6; } 2647if test "${ac_cv_prog_CC+set}" = set; then 2648 $as_echo_n "(cached) " >&6 2649else 2650 if test -n "$CC"; then 2651 ac_cv_prog_CC="$CC" # Let the user override the test. 2652else 2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2654for as_dir in $PATH 2655do 2656 IFS=$as_save_IFS 2657 test -z "$as_dir" && as_dir=. 2658 for ac_exec_ext in '' $ac_executable_extensions; do 2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2660 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2662 break 2 2663 fi 2664done 2665done 2666IFS=$as_save_IFS 2667 2668fi 2669fi 2670CC=$ac_cv_prog_CC 2671if test -n "$CC"; then 2672 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2673$as_echo "$CC" >&6; } 2674else 2675 { $as_echo "$as_me:$LINENO: result: no" >&5 2676$as_echo "no" >&6; } 2677fi 2678 2679 2680fi 2681if test -z "$ac_cv_prog_CC"; then 2682 ac_ct_CC=$CC 2683 # Extract the first word of "gcc", so it can be a program name with args. 2684set dummy gcc; ac_word=$2 2685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2686$as_echo_n "checking for $ac_word... " >&6; } 2687if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2688 $as_echo_n "(cached) " >&6 2689else 2690 if test -n "$ac_ct_CC"; then 2691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2692else 2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2694for as_dir in $PATH 2695do 2696 IFS=$as_save_IFS 2697 test -z "$as_dir" && as_dir=. 2698 for ac_exec_ext in '' $ac_executable_extensions; do 2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2700 ac_cv_prog_ac_ct_CC="gcc" 2701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2702 break 2 2703 fi 2704done 2705done 2706IFS=$as_save_IFS 2707 2708fi 2709fi 2710ac_ct_CC=$ac_cv_prog_ac_ct_CC 2711if test -n "$ac_ct_CC"; then 2712 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2713$as_echo "$ac_ct_CC" >&6; } 2714else 2715 { $as_echo "$as_me:$LINENO: result: no" >&5 2716$as_echo "no" >&6; } 2717fi 2718 2719 if test "x$ac_ct_CC" = x; then 2720 CC="" 2721 else 2722 case $cross_compiling:$ac_tool_warned in 2723yes:) 2724{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2726ac_tool_warned=yes ;; 2727esac 2728 CC=$ac_ct_CC 2729 fi 2730else 2731 CC="$ac_cv_prog_CC" 2732fi 2733 2734if test -z "$CC"; then 2735 if test -n "$ac_tool_prefix"; then 2736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2737set dummy ${ac_tool_prefix}cc; ac_word=$2 2738{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2739$as_echo_n "checking for $ac_word... " >&6; } 2740if test "${ac_cv_prog_CC+set}" = set; then 2741 $as_echo_n "(cached) " >&6 2742else 2743 if test -n "$CC"; then 2744 ac_cv_prog_CC="$CC" # Let the user override the test. 2745else 2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_exec_ext in '' $ac_executable_extensions; do 2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2753 ac_cv_prog_CC="${ac_tool_prefix}cc" 2754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758done 2759IFS=$as_save_IFS 2760 2761fi 2762fi 2763CC=$ac_cv_prog_CC 2764if test -n "$CC"; then 2765 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2766$as_echo "$CC" >&6; } 2767else 2768 { $as_echo "$as_me:$LINENO: result: no" >&5 2769$as_echo "no" >&6; } 2770fi 2771 2772 2773 fi 2774fi 2775if test -z "$CC"; then 2776 # Extract the first word of "cc", so it can be a program name with args. 2777set dummy cc; ac_word=$2 2778{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2779$as_echo_n "checking for $ac_word... " >&6; } 2780if test "${ac_cv_prog_CC+set}" = set; then 2781 $as_echo_n "(cached) " >&6 2782else 2783 if test -n "$CC"; then 2784 ac_cv_prog_CC="$CC" # Let the user override the test. 2785else 2786 ac_prog_rejected=no 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2795 ac_prog_rejected=yes 2796 continue 2797 fi 2798 ac_cv_prog_CC="cc" 2799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803done 2804IFS=$as_save_IFS 2805 2806if test $ac_prog_rejected = yes; then 2807 # We found a bogon in the path, so make sure we never use it. 2808 set dummy $ac_cv_prog_CC 2809 shift 2810 if test $# != 0; then 2811 # We chose a different compiler from the bogus one. 2812 # However, it has the same basename, so the bogon will be chosen 2813 # first if we set CC to just the basename; use the full file name. 2814 shift 2815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2816 fi 2817fi 2818fi 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2823$as_echo "$CC" >&6; } 2824else 2825 { $as_echo "$as_me:$LINENO: result: no" >&5 2826$as_echo "no" >&6; } 2827fi 2828 2829 2830fi 2831if test -z "$CC"; then 2832 if test -n "$ac_tool_prefix"; then 2833 for ac_prog in cl.exe 2834 do 2835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2836set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2838$as_echo_n "checking for $ac_word... " >&6; } 2839if test "${ac_cv_prog_CC+set}" = set; then 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test -n "$CC"; then 2843 ac_cv_prog_CC="$CC" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862CC=$ac_cv_prog_CC 2863if test -n "$CC"; then 2864 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2865$as_echo "$CC" >&6; } 2866else 2867 { $as_echo "$as_me:$LINENO: result: no" >&5 2868$as_echo "no" >&6; } 2869fi 2870 2871 2872 test -n "$CC" && break 2873 done 2874fi 2875if test -z "$CC"; then 2876 ac_ct_CC=$CC 2877 for ac_prog in cl.exe 2878do 2879 # Extract the first word of "$ac_prog", so it can be a program name with args. 2880set dummy $ac_prog; ac_word=$2 2881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$ac_ct_CC"; then 2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2896 ac_cv_prog_ac_ct_CC="$ac_prog" 2897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906ac_ct_CC=$ac_cv_prog_ac_ct_CC 2907if test -n "$ac_ct_CC"; then 2908 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2909$as_echo "$ac_ct_CC" >&6; } 2910else 2911 { $as_echo "$as_me:$LINENO: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 2916 test -n "$ac_ct_CC" && break 2917done 2918 2919 if test "x$ac_ct_CC" = x; then 2920 CC="" 2921 else 2922 case $cross_compiling:$ac_tool_warned in 2923yes:) 2924{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2926ac_tool_warned=yes ;; 2927esac 2928 CC=$ac_ct_CC 2929 fi 2930fi 2931 2932fi 2933 2934 2935test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2937{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2938See \`config.log' for more details." >&5 2939$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2940See \`config.log' for more details." >&2;} 2941 { (exit 1); exit 1; }; }; } 2942 2943# Provide some information about the compiler. 2944$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2945set X $ac_compile 2946ac_compiler=$2 2947{ (ac_try="$ac_compiler --version >&5" 2948case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2953$as_echo "$ac_try_echo") >&5 2954 (eval "$ac_compiler --version >&5") 2>&5 2955 ac_status=$? 2956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); } 2958{ (ac_try="$ac_compiler -v >&5" 2959case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962esac 2963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2964$as_echo "$ac_try_echo") >&5 2965 (eval "$ac_compiler -v >&5") 2>&5 2966 ac_status=$? 2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); } 2969{ (ac_try="$ac_compiler -V >&5" 2970case "(($ac_try" in 2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2972 *) ac_try_echo=$ac_try;; 2973esac 2974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2975$as_echo "$ac_try_echo") >&5 2976 (eval "$ac_compiler -V >&5") 2>&5 2977 ac_status=$? 2978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); } 2980 2981cat >conftest.$ac_ext <<_ACEOF 2982/* confdefs.h. */ 2983_ACEOF 2984cat confdefs.h >>conftest.$ac_ext 2985cat >>conftest.$ac_ext <<_ACEOF 2986/* end confdefs.h. */ 2987 2988int 2989main () 2990{ 2991 2992 ; 2993 return 0; 2994} 2995_ACEOF 2996ac_clean_files_save=$ac_clean_files 2997ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2998# Try to create an executable without -o first, disregard a.out. 2999# It will help us diagnose broken compilers, and finding out an intuition 3000# of exeext. 3001{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3002$as_echo_n "checking for C compiler default output file name... " >&6; } 3003ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3004 3005# The possible output files: 3006ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3007 3008ac_rmfiles= 3009for ac_file in $ac_files 3010do 3011 case $ac_file in 3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3013 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3014 esac 3015done 3016rm -f $ac_rmfiles 3017 3018if { (ac_try="$ac_link_default" 3019case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3024$as_echo "$ac_try_echo") >&5 3025 (eval "$ac_link_default") 2>&5 3026 ac_status=$? 3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); }; then 3029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3030# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3031# in a Makefile. We should not override ac_cv_exeext if it was cached, 3032# so that the user can short-circuit this test for compilers unknown to 3033# Autoconf. 3034for ac_file in $ac_files '' 3035do 3036 test -f "$ac_file" || continue 3037 case $ac_file in 3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3039 ;; 3040 [ab].out ) 3041 # We found the default executable, but exeext='' is most 3042 # certainly right. 3043 break;; 3044 *.* ) 3045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3046 then :; else 3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3048 fi 3049 # We set ac_cv_exeext here because the later test for it is not 3050 # safe: cross compilers may not add the suffix if given an `-o' 3051 # argument, so we may need to know it at that point already. 3052 # Even if this section looks crufty: it has the advantage of 3053 # actually working. 3054 break;; 3055 * ) 3056 break;; 3057 esac 3058done 3059test "$ac_cv_exeext" = no && ac_cv_exeext= 3060 3061else 3062 ac_file='' 3063fi 3064 3065{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3066$as_echo "$ac_file" >&6; } 3067if test -z "$ac_file"; then 3068 $as_echo "$as_me: failed program was:" >&5 3069sed 's/^/| /' conftest.$ac_ext >&5 3070 3071{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3073{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3074See \`config.log' for more details." >&5 3075$as_echo "$as_me: error: C compiler cannot create executables 3076See \`config.log' for more details." >&2;} 3077 { (exit 77); exit 77; }; }; } 3078fi 3079 3080ac_exeext=$ac_cv_exeext 3081 3082# Check that the compiler produces executables we can run. If not, either 3083# the compiler is broken, or we cross compile. 3084{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3085$as_echo_n "checking whether the C compiler works... " >&6; } 3086# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3087# If not cross compiling, check that we can run a simple program. 3088if test "$cross_compiling" != yes; then 3089 if { ac_try='./$ac_file' 3090 { (case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3095$as_echo "$ac_try_echo") >&5 3096 (eval "$ac_try") 2>&5 3097 ac_status=$? 3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; }; then 3100 cross_compiling=no 3101 else 3102 if test "$cross_compiling" = maybe; then 3103 cross_compiling=yes 3104 else 3105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3107{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3108If you meant to cross compile, use \`--host'. 3109See \`config.log' for more details." >&5 3110$as_echo "$as_me: error: cannot run C compiled programs. 3111If you meant to cross compile, use \`--host'. 3112See \`config.log' for more details." >&2;} 3113 { (exit 1); exit 1; }; }; } 3114 fi 3115 fi 3116fi 3117{ $as_echo "$as_me:$LINENO: result: yes" >&5 3118$as_echo "yes" >&6; } 3119 3120rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3121ac_clean_files=$ac_clean_files_save 3122# Check that the compiler produces executables we can run. If not, either 3123# the compiler is broken, or we cross compile. 3124{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3125$as_echo_n "checking whether we are cross compiling... " >&6; } 3126{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3127$as_echo "$cross_compiling" >&6; } 3128 3129{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3130$as_echo_n "checking for suffix of executables... " >&6; } 3131if { (ac_try="$ac_link" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3137$as_echo "$ac_try_echo") >&5 3138 (eval "$ac_link") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); }; then 3142 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3143# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3144# work properly (i.e., refer to `conftest.exe'), while it won't with 3145# `rm'. 3146for ac_file in conftest.exe conftest conftest.*; do 3147 test -f "$ac_file" || continue 3148 case $ac_file in 3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3151 break;; 3152 * ) break;; 3153 esac 3154done 3155else 3156 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3158{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3159See \`config.log' for more details." >&5 3160$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3161See \`config.log' for more details." >&2;} 3162 { (exit 1); exit 1; }; }; } 3163fi 3164 3165rm -f conftest$ac_cv_exeext 3166{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3167$as_echo "$ac_cv_exeext" >&6; } 3168 3169rm -f conftest.$ac_ext 3170EXEEXT=$ac_cv_exeext 3171ac_exeext=$EXEEXT 3172{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3173$as_echo_n "checking for suffix of object files... " >&6; } 3174if test "${ac_cv_objext+set}" = set; then 3175 $as_echo_n "(cached) " >&6 3176else 3177 cat >conftest.$ac_ext <<_ACEOF 3178/* confdefs.h. */ 3179_ACEOF 3180cat confdefs.h >>conftest.$ac_ext 3181cat >>conftest.$ac_ext <<_ACEOF 3182/* end confdefs.h. */ 3183 3184int 3185main () 3186{ 3187 3188 ; 3189 return 0; 3190} 3191_ACEOF 3192rm -f conftest.o conftest.obj 3193if { (ac_try="$ac_compile" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3199$as_echo "$ac_try_echo") >&5 3200 (eval "$ac_compile") 2>&5 3201 ac_status=$? 3202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); }; then 3204 for ac_file in conftest.o conftest.obj conftest.*; do 3205 test -f "$ac_file" || continue; 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3209 break;; 3210 esac 3211done 3212else 3213 $as_echo "$as_me: failed program was:" >&5 3214sed 's/^/| /' conftest.$ac_ext >&5 3215 3216{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3218{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3219See \`config.log' for more details." >&5 3220$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3221See \`config.log' for more details." >&2;} 3222 { (exit 1); exit 1; }; }; } 3223fi 3224 3225rm -f conftest.$ac_cv_objext conftest.$ac_ext 3226fi 3227{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3228$as_echo "$ac_cv_objext" >&6; } 3229OBJEXT=$ac_cv_objext 3230ac_objext=$OBJEXT 3231{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3232$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3233if test "${ac_cv_c_compiler_gnu+set}" = set; then 3234 $as_echo_n "(cached) " >&6 3235else 3236 cat >conftest.$ac_ext <<_ACEOF 3237/* confdefs.h. */ 3238_ACEOF 3239cat confdefs.h >>conftest.$ac_ext 3240cat >>conftest.$ac_ext <<_ACEOF 3241/* end confdefs.h. */ 3242 3243int 3244main () 3245{ 3246#ifndef __GNUC__ 3247 choke me 3248#endif 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254rm -f conftest.$ac_objext 3255if { (ac_try="$ac_compile" 3256case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3261$as_echo "$ac_try_echo") >&5 3262 (eval "$ac_compile") 2>conftest.er1 3263 ac_status=$? 3264 grep -v '^ *+' conftest.er1 >conftest.err 3265 rm -f conftest.er1 3266 cat conftest.err >&5 3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); } && { 3269 test -z "$ac_c_werror_flag" || 3270 test ! -s conftest.err 3271 } && test -s conftest.$ac_objext; then 3272 ac_compiler_gnu=yes 3273else 3274 $as_echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277 ac_compiler_gnu=no 3278fi 3279 3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3281ac_cv_c_compiler_gnu=$ac_compiler_gnu 3282 3283fi 3284{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3285$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3286if test $ac_compiler_gnu = yes; then 3287 GCC=yes 3288else 3289 GCC= 3290fi 3291ac_test_CFLAGS=${CFLAGS+set} 3292ac_save_CFLAGS=$CFLAGS 3293{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3294$as_echo_n "checking whether $CC accepts -g... " >&6; } 3295if test "${ac_cv_prog_cc_g+set}" = set; then 3296 $as_echo_n "(cached) " >&6 3297else 3298 ac_save_c_werror_flag=$ac_c_werror_flag 3299 ac_c_werror_flag=yes 3300 ac_cv_prog_cc_g=no 3301 CFLAGS="-g" 3302 cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317rm -f conftest.$ac_objext 3318if { (ac_try="$ac_compile" 3319case "(($ac_try" in 3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3321 *) ac_try_echo=$ac_try;; 3322esac 3323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3324$as_echo "$ac_try_echo") >&5 3325 (eval "$ac_compile") 2>conftest.er1 3326 ac_status=$? 3327 grep -v '^ *+' conftest.er1 >conftest.err 3328 rm -f conftest.er1 3329 cat conftest.err >&5 3330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); } && { 3332 test -z "$ac_c_werror_flag" || 3333 test ! -s conftest.err 3334 } && test -s conftest.$ac_objext; then 3335 ac_cv_prog_cc_g=yes 3336else 3337 $as_echo "$as_me: failed program was:" >&5 3338sed 's/^/| /' conftest.$ac_ext >&5 3339 3340 CFLAGS="" 3341 cat >conftest.$ac_ext <<_ACEOF 3342/* confdefs.h. */ 3343_ACEOF 3344cat confdefs.h >>conftest.$ac_ext 3345cat >>conftest.$ac_ext <<_ACEOF 3346/* end confdefs.h. */ 3347 3348int 3349main () 3350{ 3351 3352 ; 3353 return 0; 3354} 3355_ACEOF 3356rm -f conftest.$ac_objext 3357if { (ac_try="$ac_compile" 3358case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361esac 3362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3363$as_echo "$ac_try_echo") >&5 3364 (eval "$ac_compile") 2>conftest.er1 3365 ac_status=$? 3366 grep -v '^ *+' conftest.er1 >conftest.err 3367 rm -f conftest.er1 3368 cat conftest.err >&5 3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); } && { 3371 test -z "$ac_c_werror_flag" || 3372 test ! -s conftest.err 3373 } && test -s conftest.$ac_objext; then 3374 : 3375else 3376 $as_echo "$as_me: failed program was:" >&5 3377sed 's/^/| /' conftest.$ac_ext >&5 3378 3379 ac_c_werror_flag=$ac_save_c_werror_flag 3380 CFLAGS="-g" 3381 cat >conftest.$ac_ext <<_ACEOF 3382/* confdefs.h. */ 3383_ACEOF 3384cat confdefs.h >>conftest.$ac_ext 3385cat >>conftest.$ac_ext <<_ACEOF 3386/* end confdefs.h. */ 3387 3388int 3389main () 3390{ 3391 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396rm -f conftest.$ac_objext 3397if { (ac_try="$ac_compile" 3398case "(($ac_try" in 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400 *) ac_try_echo=$ac_try;; 3401esac 3402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3403$as_echo "$ac_try_echo") >&5 3404 (eval "$ac_compile") 2>conftest.er1 3405 ac_status=$? 3406 grep -v '^ *+' conftest.er1 >conftest.err 3407 rm -f conftest.er1 3408 cat conftest.err >&5 3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); } && { 3411 test -z "$ac_c_werror_flag" || 3412 test ! -s conftest.err 3413 } && test -s conftest.$ac_objext; then 3414 ac_cv_prog_cc_g=yes 3415else 3416 $as_echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419 3420fi 3421 3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423fi 3424 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426fi 3427 3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429 ac_c_werror_flag=$ac_save_c_werror_flag 3430fi 3431{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3432$as_echo "$ac_cv_prog_cc_g" >&6; } 3433if test "$ac_test_CFLAGS" = set; then 3434 CFLAGS=$ac_save_CFLAGS 3435elif test $ac_cv_prog_cc_g = yes; then 3436 if test "$GCC" = yes; then 3437 CFLAGS="-g -O2" 3438 else 3439 CFLAGS="-g" 3440 fi 3441else 3442 if test "$GCC" = yes; then 3443 CFLAGS="-O2" 3444 else 3445 CFLAGS= 3446 fi 3447fi 3448{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3449$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3450if test "${ac_cv_prog_cc_c89+set}" = set; then 3451 $as_echo_n "(cached) " >&6 3452else 3453 ac_cv_prog_cc_c89=no 3454ac_save_CC=$CC 3455cat >conftest.$ac_ext <<_ACEOF 3456/* confdefs.h. */ 3457_ACEOF 3458cat confdefs.h >>conftest.$ac_ext 3459cat >>conftest.$ac_ext <<_ACEOF 3460/* end confdefs.h. */ 3461#include <stdarg.h> 3462#include <stdio.h> 3463#include <sys/types.h> 3464#include <sys/stat.h> 3465/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3466struct buf { int x; }; 3467FILE * (*rcsopen) (struct buf *, struct stat *, int); 3468static char *e (p, i) 3469 char **p; 3470 int i; 3471{ 3472 return p[i]; 3473} 3474static char *f (char * (*g) (char **, int), char **p, ...) 3475{ 3476 char *s; 3477 va_list v; 3478 va_start (v,p); 3479 s = g (p, va_arg (v,int)); 3480 va_end (v); 3481 return s; 3482} 3483 3484/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3485 function prototypes and stuff, but not '\xHH' hex character constants. 3486 These don't provoke an error unfortunately, instead are silently treated 3487 as 'x'. The following induces an error, until -std is added to get 3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3489 array size at least. It's necessary to write '\x00'==0 to get something 3490 that's true only with -std. */ 3491int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3492 3493/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3494 inside strings and character constants. */ 3495#define FOO(x) 'x' 3496int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3497 3498int test (int i, double x); 3499struct s1 {int (*f) (int a);}; 3500struct s2 {int (*f) (double a);}; 3501int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3502int argc; 3503char **argv; 3504int 3505main () 3506{ 3507return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3514do 3515 CC="$ac_save_CC $ac_arg" 3516 rm -f conftest.$ac_objext 3517if { (ac_try="$ac_compile" 3518case "(($ac_try" in 3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3520 *) ac_try_echo=$ac_try;; 3521esac 3522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3523$as_echo "$ac_try_echo") >&5 3524 (eval "$ac_compile") 2>conftest.er1 3525 ac_status=$? 3526 grep -v '^ *+' conftest.er1 >conftest.err 3527 rm -f conftest.er1 3528 cat conftest.err >&5 3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); } && { 3531 test -z "$ac_c_werror_flag" || 3532 test ! -s conftest.err 3533 } && test -s conftest.$ac_objext; then 3534 ac_cv_prog_cc_c89=$ac_arg 3535else 3536 $as_echo "$as_me: failed program was:" >&5 3537sed 's/^/| /' conftest.$ac_ext >&5 3538 3539 3540fi 3541 3542rm -f core conftest.err conftest.$ac_objext 3543 test "x$ac_cv_prog_cc_c89" != "xno" && break 3544done 3545rm -f conftest.$ac_ext 3546CC=$ac_save_CC 3547 3548fi 3549# AC_CACHE_VAL 3550case "x$ac_cv_prog_cc_c89" in 3551 x) 3552 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3553$as_echo "none needed" >&6; } ;; 3554 xno) 3555 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3556$as_echo "unsupported" >&6; } ;; 3557 *) 3558 CC="$CC $ac_cv_prog_cc_c89" 3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3560$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3561esac 3562 3563 3564ac_ext=c 3565ac_cpp='$CPP $CPPFLAGS' 3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3568ac_compiler_gnu=$ac_cv_c_compiler_gnu 3569DEPDIR="${am__leading_dot}deps" 3570 3571ac_config_commands="$ac_config_commands depfiles" 3572 3573 3574am_make=${MAKE-make} 3575cat > confinc << 'END' 3576am__doit: 3577 @echo this is the am__doit target 3578.PHONY: am__doit 3579END 3580# If we don't find an include directive, just comment out the code. 3581{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3582$as_echo_n "checking for style of include used by $am_make... " >&6; } 3583am__include="#" 3584am__quote= 3585_am_result=none 3586# First try GNU make style include. 3587echo "include confinc" > confmf 3588# Ignore all kinds of additional output from `make'. 3589case `$am_make -s -f confmf 2> /dev/null` in #( 3590*the\ am__doit\ target*) 3591 am__include=include 3592 am__quote= 3593 _am_result=GNU 3594 ;; 3595esac 3596# Now try BSD make style include. 3597if test "$am__include" = "#"; then 3598 echo '.include "confinc"' > confmf 3599 case `$am_make -s -f confmf 2> /dev/null` in #( 3600 *the\ am__doit\ target*) 3601 am__include=.include 3602 am__quote="\"" 3603 _am_result=BSD 3604 ;; 3605 esac 3606fi 3607 3608 3609{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3610$as_echo "$_am_result" >&6; } 3611rm -f confinc confmf 3612 3613# Check whether --enable-dependency-tracking was given. 3614if test "${enable_dependency_tracking+set}" = set; then 3615 enableval=$enable_dependency_tracking; 3616fi 3617 3618if test "x$enable_dependency_tracking" != xno; then 3619 am_depcomp="$ac_aux_dir/depcomp" 3620 AMDEPBACKSLASH='\' 3621fi 3622 if test "x$enable_dependency_tracking" != xno; then 3623 AMDEP_TRUE= 3624 AMDEP_FALSE='#' 3625else 3626 AMDEP_TRUE='#' 3627 AMDEP_FALSE= 3628fi 3629 3630 3631 3632depcc="$CC" am_compiler_list= 3633 3634{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3635$as_echo_n "checking dependency style of $depcc... " >&6; } 3636if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3637 $as_echo_n "(cached) " >&6 3638else 3639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3640 # We make a subdir and do the tests there. Otherwise we can end up 3641 # making bogus files that we don't know about and never remove. For 3642 # instance it was reported that on HP-UX the gcc test will end up 3643 # making a dummy file named `D' -- because `-MD' means `put the output 3644 # in D'. 3645 mkdir conftest.dir 3646 # Copy depcomp to subdir because otherwise we won't find it if we're 3647 # using a relative directory. 3648 cp "$am_depcomp" conftest.dir 3649 cd conftest.dir 3650 # We will build objects and dependencies in a subdirectory because 3651 # it helps to detect inapplicable dependency modes. For instance 3652 # both Tru64's cc and ICC support -MD to output dependencies as a 3653 # side effect of compilation, but ICC will put the dependencies in 3654 # the current directory while Tru64 will put them in the object 3655 # directory. 3656 mkdir sub 3657 3658 am_cv_CC_dependencies_compiler_type=none 3659 if test "$am_compiler_list" = ""; then 3660 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3661 fi 3662 am__universal=false 3663 case " $depcc " in #( 3664 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3665 esac 3666 3667 for depmode in $am_compiler_list; do 3668 # Setup a source with many dependencies, because some compilers 3669 # like to wrap large dependency lists on column 80 (with \), and 3670 # we should not choose a depcomp mode which is confused by this. 3671 # 3672 # We need to recreate these files for each test, as the compiler may 3673 # overwrite some of them when testing with obscure command lines. 3674 # This happens at least with the AIX C compiler. 3675 : > sub/conftest.c 3676 for i in 1 2 3 4 5 6; do 3677 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3678 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3679 # Solaris 8's {/usr,}/bin/sh. 3680 touch sub/conftst$i.h 3681 done 3682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3683 3684 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3685 # mode. It turns out that the SunPro C++ compiler does not properly 3686 # handle `-M -o', and we need to detect this. Also, some Intel 3687 # versions had trouble with output in subdirs 3688 am__obj=sub/conftest.${OBJEXT-o} 3689 am__minus_obj="-o $am__obj" 3690 case $depmode in 3691 gcc) 3692 # This depmode causes a compiler race in universal mode. 3693 test "$am__universal" = false || continue 3694 ;; 3695 nosideeffect) 3696 # after this tag, mechanisms are not by side-effect, so they'll 3697 # only be used when explicitly requested 3698 if test "x$enable_dependency_tracking" = xyes; then 3699 continue 3700 else 3701 break 3702 fi 3703 ;; 3704 msvisualcpp | msvcmsys) 3705 # This compiler won't grok `-c -o', but also, the minuso test has 3706 # not run yet. These depmodes are late enough in the game, and 3707 # so weak that their functioning should not be impacted. 3708 am__obj=conftest.${OBJEXT-o} 3709 am__minus_obj= 3710 ;; 3711 none) break ;; 3712 esac 3713 if depmode=$depmode \ 3714 source=sub/conftest.c object=$am__obj \ 3715 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3716 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3717 >/dev/null 2>conftest.err && 3718 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3719 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3720 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3721 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3722 # icc doesn't choke on unknown options, it will just issue warnings 3723 # or remarks (even with -Werror). So we grep stderr for any message 3724 # that says an option was ignored or not supported. 3725 # When given -MP, icc 7.0 and 7.1 complain thusly: 3726 # icc: Command line warning: ignoring option '-M'; no argument required 3727 # The diagnosis changed in icc 8.0: 3728 # icc: Command line remark: option '-MP' not supported 3729 if (grep 'ignoring option' conftest.err || 3730 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3731 am_cv_CC_dependencies_compiler_type=$depmode 3732 break 3733 fi 3734 fi 3735 done 3736 3737 cd .. 3738 rm -rf conftest.dir 3739else 3740 am_cv_CC_dependencies_compiler_type=none 3741fi 3742 3743fi 3744{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3745$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3746CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3747 3748 if 3749 test "x$enable_dependency_tracking" != xno \ 3750 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3751 am__fastdepCC_TRUE= 3752 am__fastdepCC_FALSE='#' 3753else 3754 am__fastdepCC_TRUE='#' 3755 am__fastdepCC_FALSE= 3756fi 3757 3758 3759case `pwd` in 3760 *\ * | *\ *) 3761 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3762$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3763esac 3764 3765 3766 3767macro_version='2.2.6' 3768macro_revision='1.3012' 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782ltmain="$ac_aux_dir/ltmain.sh" 3783 3784# Make sure we can run config.sub. 3785$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3786 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3787$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3788 { (exit 1); exit 1; }; } 3789 3790{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3791$as_echo_n "checking build system type... " >&6; } 3792if test "${ac_cv_build+set}" = set; then 3793 $as_echo_n "(cached) " >&6 3794else 3795 ac_build_alias=$build_alias 3796test "x$ac_build_alias" = x && 3797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3798test "x$ac_build_alias" = x && 3799 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3800$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3801 { (exit 1); exit 1; }; } 3802ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3803 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3804$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3805 { (exit 1); exit 1; }; } 3806 3807fi 3808{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3809$as_echo "$ac_cv_build" >&6; } 3810case $ac_cv_build in 3811*-*-*) ;; 3812*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3813$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3814 { (exit 1); exit 1; }; };; 3815esac 3816build=$ac_cv_build 3817ac_save_IFS=$IFS; IFS='-' 3818set x $ac_cv_build 3819shift 3820build_cpu=$1 3821build_vendor=$2 3822shift; shift 3823# Remember, the first character of IFS is used to create $*, 3824# except with old shells: 3825build_os=$* 3826IFS=$ac_save_IFS 3827case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3828 3829 3830{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3831$as_echo_n "checking host system type... " >&6; } 3832if test "${ac_cv_host+set}" = set; then 3833 $as_echo_n "(cached) " >&6 3834else 3835 if test "x$host_alias" = x; then 3836 ac_cv_host=$ac_cv_build 3837else 3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3839 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3840$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3841 { (exit 1); exit 1; }; } 3842fi 3843 3844fi 3845{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3846$as_echo "$ac_cv_host" >&6; } 3847case $ac_cv_host in 3848*-*-*) ;; 3849*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3850$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3851 { (exit 1); exit 1; }; };; 3852esac 3853host=$ac_cv_host 3854ac_save_IFS=$IFS; IFS='-' 3855set x $ac_cv_host 3856shift 3857host_cpu=$1 3858host_vendor=$2 3859shift; shift 3860# Remember, the first character of IFS is used to create $*, 3861# except with old shells: 3862host_os=$* 3863IFS=$ac_save_IFS 3864case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3865 3866 3867{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3868$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3869if test "${ac_cv_path_SED+set}" = set; then 3870 $as_echo_n "(cached) " >&6 3871else 3872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3873 for ac_i in 1 2 3 4 5 6 7; do 3874 ac_script="$ac_script$as_nl$ac_script" 3875 done 3876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3877 $as_unset ac_script || ac_script= 3878 if test -z "$SED"; then 3879 ac_path_SED_found=false 3880 # Loop through the user's path and test for each of PROGNAME-LIST 3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3882for as_dir in $PATH 3883do 3884 IFS=$as_save_IFS 3885 test -z "$as_dir" && as_dir=. 3886 for ac_prog in sed gsed; do 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3889 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3890# Check for GNU ac_path_SED and select it if it is found. 3891 # Check for GNU $ac_path_SED 3892case `"$ac_path_SED" --version 2>&1` in 3893*GNU*) 3894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3895*) 3896 ac_count=0 3897 $as_echo_n 0123456789 >"conftest.in" 3898 while : 3899 do 3900 cat "conftest.in" "conftest.in" >"conftest.tmp" 3901 mv "conftest.tmp" "conftest.in" 3902 cp "conftest.in" "conftest.nl" 3903 $as_echo '' >> "conftest.nl" 3904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3906 ac_count=`expr $ac_count + 1` 3907 if test $ac_count -gt ${ac_path_SED_max-0}; then 3908 # Best one so far, save it but keep looking for a better one 3909 ac_cv_path_SED="$ac_path_SED" 3910 ac_path_SED_max=$ac_count 3911 fi 3912 # 10*(2^10) chars as input seems more than enough 3913 test $ac_count -gt 10 && break 3914 done 3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3916esac 3917 3918 $ac_path_SED_found && break 3 3919 done 3920 done 3921done 3922IFS=$as_save_IFS 3923 if test -z "$ac_cv_path_SED"; then 3924 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3925$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3926 { (exit 1); exit 1; }; } 3927 fi 3928else 3929 ac_cv_path_SED=$SED 3930fi 3931 3932fi 3933{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3934$as_echo "$ac_cv_path_SED" >&6; } 3935 SED="$ac_cv_path_SED" 3936 rm -f conftest.sed 3937 3938test -z "$SED" && SED=sed 3939Xsed="$SED -e 1s/^X//" 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3952$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3953if test "${ac_cv_path_GREP+set}" = set; then 3954 $as_echo_n "(cached) " >&6 3955else 3956 if test -z "$GREP"; then 3957 ac_path_GREP_found=false 3958 # Loop through the user's path and test for each of PROGNAME-LIST 3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3961do 3962 IFS=$as_save_IFS 3963 test -z "$as_dir" && as_dir=. 3964 for ac_prog in grep ggrep; do 3965 for ac_exec_ext in '' $ac_executable_extensions; do 3966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3968# Check for GNU ac_path_GREP and select it if it is found. 3969 # Check for GNU $ac_path_GREP 3970case `"$ac_path_GREP" --version 2>&1` in 3971*GNU*) 3972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3973*) 3974 ac_count=0 3975 $as_echo_n 0123456789 >"conftest.in" 3976 while : 3977 do 3978 cat "conftest.in" "conftest.in" >"conftest.tmp" 3979 mv "conftest.tmp" "conftest.in" 3980 cp "conftest.in" "conftest.nl" 3981 $as_echo 'GREP' >> "conftest.nl" 3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3984 ac_count=`expr $ac_count + 1` 3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3986 # Best one so far, save it but keep looking for a better one 3987 ac_cv_path_GREP="$ac_path_GREP" 3988 ac_path_GREP_max=$ac_count 3989 fi 3990 # 10*(2^10) chars as input seems more than enough 3991 test $ac_count -gt 10 && break 3992 done 3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3994esac 3995 3996 $ac_path_GREP_found && break 3 3997 done 3998 done 3999done 4000IFS=$as_save_IFS 4001 if test -z "$ac_cv_path_GREP"; then 4002 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4003$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4004 { (exit 1); exit 1; }; } 4005 fi 4006else 4007 ac_cv_path_GREP=$GREP 4008fi 4009 4010fi 4011{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4012$as_echo "$ac_cv_path_GREP" >&6; } 4013 GREP="$ac_cv_path_GREP" 4014 4015 4016{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4017$as_echo_n "checking for egrep... " >&6; } 4018if test "${ac_cv_path_EGREP+set}" = set; then 4019 $as_echo_n "(cached) " >&6 4020else 4021 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4022 then ac_cv_path_EGREP="$GREP -E" 4023 else 4024 if test -z "$EGREP"; then 4025 ac_path_EGREP_found=false 4026 # Loop through the user's path and test for each of PROGNAME-LIST 4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4029do 4030 IFS=$as_save_IFS 4031 test -z "$as_dir" && as_dir=. 4032 for ac_prog in egrep; do 4033 for ac_exec_ext in '' $ac_executable_extensions; do 4034 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4035 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4036# Check for GNU ac_path_EGREP and select it if it is found. 4037 # Check for GNU $ac_path_EGREP 4038case `"$ac_path_EGREP" --version 2>&1` in 4039*GNU*) 4040 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4041*) 4042 ac_count=0 4043 $as_echo_n 0123456789 >"conftest.in" 4044 while : 4045 do 4046 cat "conftest.in" "conftest.in" >"conftest.tmp" 4047 mv "conftest.tmp" "conftest.in" 4048 cp "conftest.in" "conftest.nl" 4049 $as_echo 'EGREP' >> "conftest.nl" 4050 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4052 ac_count=`expr $ac_count + 1` 4053 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4054 # Best one so far, save it but keep looking for a better one 4055 ac_cv_path_EGREP="$ac_path_EGREP" 4056 ac_path_EGREP_max=$ac_count 4057 fi 4058 # 10*(2^10) chars as input seems more than enough 4059 test $ac_count -gt 10 && break 4060 done 4061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4062esac 4063 4064 $ac_path_EGREP_found && break 3 4065 done 4066 done 4067done 4068IFS=$as_save_IFS 4069 if test -z "$ac_cv_path_EGREP"; then 4070 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4071$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4072 { (exit 1); exit 1; }; } 4073 fi 4074else 4075 ac_cv_path_EGREP=$EGREP 4076fi 4077 4078 fi 4079fi 4080{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4081$as_echo "$ac_cv_path_EGREP" >&6; } 4082 EGREP="$ac_cv_path_EGREP" 4083 4084 4085{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4086$as_echo_n "checking for fgrep... " >&6; } 4087if test "${ac_cv_path_FGREP+set}" = set; then 4088 $as_echo_n "(cached) " >&6 4089else 4090 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4091 then ac_cv_path_FGREP="$GREP -F" 4092 else 4093 if test -z "$FGREP"; then 4094 ac_path_FGREP_found=false 4095 # Loop through the user's path and test for each of PROGNAME-LIST 4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4098do 4099 IFS=$as_save_IFS 4100 test -z "$as_dir" && as_dir=. 4101 for ac_prog in fgrep; do 4102 for ac_exec_ext in '' $ac_executable_extensions; do 4103 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4104 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4105# Check for GNU ac_path_FGREP and select it if it is found. 4106 # Check for GNU $ac_path_FGREP 4107case `"$ac_path_FGREP" --version 2>&1` in 4108*GNU*) 4109 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4110*) 4111 ac_count=0 4112 $as_echo_n 0123456789 >"conftest.in" 4113 while : 4114 do 4115 cat "conftest.in" "conftest.in" >"conftest.tmp" 4116 mv "conftest.tmp" "conftest.in" 4117 cp "conftest.in" "conftest.nl" 4118 $as_echo 'FGREP' >> "conftest.nl" 4119 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4121 ac_count=`expr $ac_count + 1` 4122 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4123 # Best one so far, save it but keep looking for a better one 4124 ac_cv_path_FGREP="$ac_path_FGREP" 4125 ac_path_FGREP_max=$ac_count 4126 fi 4127 # 10*(2^10) chars as input seems more than enough 4128 test $ac_count -gt 10 && break 4129 done 4130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4131esac 4132 4133 $ac_path_FGREP_found && break 3 4134 done 4135 done 4136done 4137IFS=$as_save_IFS 4138 if test -z "$ac_cv_path_FGREP"; then 4139 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4140$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4141 { (exit 1); exit 1; }; } 4142 fi 4143else 4144 ac_cv_path_FGREP=$FGREP 4145fi 4146 4147 fi 4148fi 4149{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4150$as_echo "$ac_cv_path_FGREP" >&6; } 4151 FGREP="$ac_cv_path_FGREP" 4152 4153 4154test -z "$GREP" && GREP=grep 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174# Check whether --with-gnu-ld was given. 4175if test "${with_gnu_ld+set}" = set; then 4176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4177else 4178 with_gnu_ld=no 4179fi 4180 4181ac_prog=ld 4182if test "$GCC" = yes; then 4183 # Check if gcc -print-prog-name=ld gives a path. 4184 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4185$as_echo_n "checking for ld used by $CC... " >&6; } 4186 case $host in 4187 *-*-mingw*) 4188 # gcc leaves a trailing carriage return which upsets mingw 4189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4190 *) 4191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4192 esac 4193 case $ac_prog in 4194 # Accept absolute paths. 4195 [\\/]* | ?:[\\/]*) 4196 re_direlt='/[^/][^/]*/\.\./' 4197 # Canonicalize the pathname of ld 4198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4201 done 4202 test -z "$LD" && LD="$ac_prog" 4203 ;; 4204 "") 4205 # If it fails, then pretend we aren't using GCC. 4206 ac_prog=ld 4207 ;; 4208 *) 4209 # If it is relative, then search for the first ld in PATH. 4210 with_gnu_ld=unknown 4211 ;; 4212 esac 4213elif test "$with_gnu_ld" = yes; then 4214 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4215$as_echo_n "checking for GNU ld... " >&6; } 4216else 4217 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4218$as_echo_n "checking for non-GNU ld... " >&6; } 4219fi 4220if test "${lt_cv_path_LD+set}" = set; then 4221 $as_echo_n "(cached) " >&6 4222else 4223 if test -z "$LD"; then 4224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4225 for ac_dir in $PATH; do 4226 IFS="$lt_save_ifs" 4227 test -z "$ac_dir" && ac_dir=. 4228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4229 lt_cv_path_LD="$ac_dir/$ac_prog" 4230 # Check to see if the program is GNU ld. I'd rather use --version, 4231 # but apparently some variants of GNU ld only accept -v. 4232 # Break only if it was the GNU/non-GNU ld that we prefer. 4233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4234 *GNU* | *'with BFD'*) 4235 test "$with_gnu_ld" != no && break 4236 ;; 4237 *) 4238 test "$with_gnu_ld" != yes && break 4239 ;; 4240 esac 4241 fi 4242 done 4243 IFS="$lt_save_ifs" 4244else 4245 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4246fi 4247fi 4248 4249LD="$lt_cv_path_LD" 4250if test -n "$LD"; then 4251 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4252$as_echo "$LD" >&6; } 4253else 4254 { $as_echo "$as_me:$LINENO: result: no" >&5 4255$as_echo "no" >&6; } 4256fi 4257test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4258$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4259 { (exit 1); exit 1; }; } 4260{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4261$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4262if test "${lt_cv_prog_gnu_ld+set}" = set; then 4263 $as_echo_n "(cached) " >&6 4264else 4265 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4266case `$LD -v 2>&1 </dev/null` in 4267*GNU* | *'with BFD'*) 4268 lt_cv_prog_gnu_ld=yes 4269 ;; 4270*) 4271 lt_cv_prog_gnu_ld=no 4272 ;; 4273esac 4274fi 4275{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4276$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4277with_gnu_ld=$lt_cv_prog_gnu_ld 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4288$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4289if test "${lt_cv_path_NM+set}" = set; then 4290 $as_echo_n "(cached) " >&6 4291else 4292 if test -n "$NM"; then 4293 # Let the user override the test. 4294 lt_cv_path_NM="$NM" 4295else 4296 lt_nm_to_check="${ac_tool_prefix}nm" 4297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4298 lt_nm_to_check="$lt_nm_to_check nm" 4299 fi 4300 for lt_tmp_nm in $lt_nm_to_check; do 4301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4303 IFS="$lt_save_ifs" 4304 test -z "$ac_dir" && ac_dir=. 4305 tmp_nm="$ac_dir/$lt_tmp_nm" 4306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4307 # Check to see if the nm accepts a BSD-compat flag. 4308 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4309 # nm: unknown option "B" ignored 4310 # Tru64's nm complains that /dev/null is an invalid object file 4311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4312 */dev/null* | *'Invalid file or object type'*) 4313 lt_cv_path_NM="$tmp_nm -B" 4314 break 4315 ;; 4316 *) 4317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4318 */dev/null*) 4319 lt_cv_path_NM="$tmp_nm -p" 4320 break 4321 ;; 4322 *) 4323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4324 continue # so that we can try to find one that supports BSD flags 4325 ;; 4326 esac 4327 ;; 4328 esac 4329 fi 4330 done 4331 IFS="$lt_save_ifs" 4332 done 4333 : ${lt_cv_path_NM=no} 4334fi 4335fi 4336{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4337$as_echo "$lt_cv_path_NM" >&6; } 4338if test "$lt_cv_path_NM" != "no"; then 4339 NM="$lt_cv_path_NM" 4340else 4341 # Didn't find any BSD compatible name lister, look for dumpbin. 4342 if test -n "$ac_tool_prefix"; then 4343 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4344 do 4345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4346set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4347{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4348$as_echo_n "checking for $ac_word... " >&6; } 4349if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4350 $as_echo_n "(cached) " >&6 4351else 4352 if test -n "$DUMPBIN"; then 4353 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4354else 4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4356for as_dir in $PATH 4357do 4358 IFS=$as_save_IFS 4359 test -z "$as_dir" && as_dir=. 4360 for ac_exec_ext in '' $ac_executable_extensions; do 4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4362 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4364 break 2 4365 fi 4366done 4367done 4368IFS=$as_save_IFS 4369 4370fi 4371fi 4372DUMPBIN=$ac_cv_prog_DUMPBIN 4373if test -n "$DUMPBIN"; then 4374 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4375$as_echo "$DUMPBIN" >&6; } 4376else 4377 { $as_echo "$as_me:$LINENO: result: no" >&5 4378$as_echo "no" >&6; } 4379fi 4380 4381 4382 test -n "$DUMPBIN" && break 4383 done 4384fi 4385if test -z "$DUMPBIN"; then 4386 ac_ct_DUMPBIN=$DUMPBIN 4387 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4388do 4389 # Extract the first word of "$ac_prog", so it can be a program name with args. 4390set dummy $ac_prog; ac_word=$2 4391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4392$as_echo_n "checking for $ac_word... " >&6; } 4393if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4394 $as_echo_n "(cached) " >&6 4395else 4396 if test -n "$ac_ct_DUMPBIN"; then 4397 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4398else 4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4400for as_dir in $PATH 4401do 4402 IFS=$as_save_IFS 4403 test -z "$as_dir" && as_dir=. 4404 for ac_exec_ext in '' $ac_executable_extensions; do 4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4406 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4408 break 2 4409 fi 4410done 4411done 4412IFS=$as_save_IFS 4413 4414fi 4415fi 4416ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4417if test -n "$ac_ct_DUMPBIN"; then 4418 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4419$as_echo "$ac_ct_DUMPBIN" >&6; } 4420else 4421 { $as_echo "$as_me:$LINENO: result: no" >&5 4422$as_echo "no" >&6; } 4423fi 4424 4425 4426 test -n "$ac_ct_DUMPBIN" && break 4427done 4428 4429 if test "x$ac_ct_DUMPBIN" = x; then 4430 DUMPBIN=":" 4431 else 4432 case $cross_compiling:$ac_tool_warned in 4433yes:) 4434{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4436ac_tool_warned=yes ;; 4437esac 4438 DUMPBIN=$ac_ct_DUMPBIN 4439 fi 4440fi 4441 4442 4443 if test "$DUMPBIN" != ":"; then 4444 NM="$DUMPBIN" 4445 fi 4446fi 4447test -z "$NM" && NM=nm 4448 4449 4450 4451 4452 4453 4454{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4455$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4456if test "${lt_cv_nm_interface+set}" = set; then 4457 $as_echo_n "(cached) " >&6 4458else 4459 lt_cv_nm_interface="BSD nm" 4460 echo "int some_variable = 0;" > conftest.$ac_ext 4461 (eval echo "\"\$as_me:4461: $ac_compile\"" >&5) 4462 (eval "$ac_compile" 2>conftest.err) 4463 cat conftest.err >&5 4464 (eval echo "\"\$as_me:4464: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4465 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4466 cat conftest.err >&5 4467 (eval echo "\"\$as_me:4467: output\"" >&5) 4468 cat conftest.out >&5 4469 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4470 lt_cv_nm_interface="MS dumpbin" 4471 fi 4472 rm -f conftest* 4473fi 4474{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4475$as_echo "$lt_cv_nm_interface" >&6; } 4476 4477{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4478$as_echo_n "checking whether ln -s works... " >&6; } 4479LN_S=$as_ln_s 4480if test "$LN_S" = "ln -s"; then 4481 { $as_echo "$as_me:$LINENO: result: yes" >&5 4482$as_echo "yes" >&6; } 4483else 4484 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4485$as_echo "no, using $LN_S" >&6; } 4486fi 4487 4488# find the maximum length of command line arguments 4489{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4490$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4491if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4492 $as_echo_n "(cached) " >&6 4493else 4494 i=0 4495 teststring="ABCD" 4496 4497 case $build_os in 4498 msdosdjgpp*) 4499 # On DJGPP, this test can blow up pretty badly due to problems in libc 4500 # (any single argument exceeding 2000 bytes causes a buffer overrun 4501 # during glob expansion). Even if it were fixed, the result of this 4502 # check would be larger than it should be. 4503 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4504 ;; 4505 4506 gnu*) 4507 # Under GNU Hurd, this test is not required because there is 4508 # no limit to the length of command line arguments. 4509 # Libtool will interpret -1 as no limit whatsoever 4510 lt_cv_sys_max_cmd_len=-1; 4511 ;; 4512 4513 cygwin* | mingw* | cegcc*) 4514 # On Win9x/ME, this test blows up -- it succeeds, but takes 4515 # about 5 minutes as the teststring grows exponentially. 4516 # Worse, since 9x/ME are not pre-emptively multitasking, 4517 # you end up with a "frozen" computer, even though with patience 4518 # the test eventually succeeds (with a max line length of 256k). 4519 # Instead, let's just punt: use the minimum linelength reported by 4520 # all of the supported platforms: 8192 (on NT/2K/XP). 4521 lt_cv_sys_max_cmd_len=8192; 4522 ;; 4523 4524 amigaos*) 4525 # On AmigaOS with pdksh, this test takes hours, literally. 4526 # So we just punt and use a minimum line length of 8192. 4527 lt_cv_sys_max_cmd_len=8192; 4528 ;; 4529 4530 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4531 # This has been around since 386BSD, at least. Likely further. 4532 if test -x /sbin/sysctl; then 4533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4534 elif test -x /usr/sbin/sysctl; then 4535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4536 else 4537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4538 fi 4539 # And add a safety zone 4540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4542 ;; 4543 4544 interix*) 4545 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4546 lt_cv_sys_max_cmd_len=196608 4547 ;; 4548 4549 osf*) 4550 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4551 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4552 # nice to cause kernel panics so lets avoid the loop below. 4553 # First set a reasonable default. 4554 lt_cv_sys_max_cmd_len=16384 4555 # 4556 if test -x /sbin/sysconfig; then 4557 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4558 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4559 esac 4560 fi 4561 ;; 4562 sco3.2v5*) 4563 lt_cv_sys_max_cmd_len=102400 4564 ;; 4565 sysv5* | sco5v6* | sysv4.2uw2*) 4566 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4567 if test -n "$kargmax"; then 4568 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4569 else 4570 lt_cv_sys_max_cmd_len=32768 4571 fi 4572 ;; 4573 *) 4574 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4575 if test -n "$lt_cv_sys_max_cmd_len"; then 4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4578 else 4579 # Make teststring a little bigger before we do anything with it. 4580 # a 1K string should be a reasonable start. 4581 for i in 1 2 3 4 5 6 7 8 ; do 4582 teststring=$teststring$teststring 4583 done 4584 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4585 # If test is not a shell built-in, we'll probably end up computing a 4586 # maximum length that is only half of the actual maximum length, but 4587 # we can't tell. 4588 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4589 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4590 test $i != 17 # 1/2 MB should be enough 4591 do 4592 i=`expr $i + 1` 4593 teststring=$teststring$teststring 4594 done 4595 # Only check the string length outside the loop. 4596 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4597 teststring= 4598 # Add a significant safety factor because C++ compilers can tack on 4599 # massive amounts of additional arguments before passing them to the 4600 # linker. It appears as though 1/2 is a usable value. 4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4602 fi 4603 ;; 4604 esac 4605 4606fi 4607 4608if test -n $lt_cv_sys_max_cmd_len ; then 4609 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4610$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4611else 4612 { $as_echo "$as_me:$LINENO: result: none" >&5 4613$as_echo "none" >&6; } 4614fi 4615max_cmd_len=$lt_cv_sys_max_cmd_len 4616 4617 4618 4619 4620 4621 4622: ${CP="cp -f"} 4623: ${MV="mv -f"} 4624: ${RM="rm -f"} 4625 4626{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4627$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4628# Try some XSI features 4629xsi_shell=no 4630( _lt_dummy="a/b/c" 4631 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4632 = c,a/b,, \ 4633 && eval 'test $(( 1 + 1 )) -eq 2 \ 4634 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4635 && xsi_shell=yes 4636{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4637$as_echo "$xsi_shell" >&6; } 4638 4639 4640{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4641$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4642lt_shell_append=no 4643( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4644 >/dev/null 2>&1 \ 4645 && lt_shell_append=yes 4646{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4647$as_echo "$lt_shell_append" >&6; } 4648 4649 4650if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4651 lt_unset=unset 4652else 4653 lt_unset=false 4654fi 4655 4656 4657 4658 4659 4660# test EBCDIC or ASCII 4661case `echo X|tr X '\101'` in 4662 A) # ASCII based system 4663 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4664 lt_SP2NL='tr \040 \012' 4665 lt_NL2SP='tr \015\012 \040\040' 4666 ;; 4667 *) # EBCDIC based system 4668 lt_SP2NL='tr \100 \n' 4669 lt_NL2SP='tr \r\n \100\100' 4670 ;; 4671esac 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4682$as_echo_n "checking for $LD option to reload object files... " >&6; } 4683if test "${lt_cv_ld_reload_flag+set}" = set; then 4684 $as_echo_n "(cached) " >&6 4685else 4686 lt_cv_ld_reload_flag='-r' 4687fi 4688{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4689$as_echo "$lt_cv_ld_reload_flag" >&6; } 4690reload_flag=$lt_cv_ld_reload_flag 4691case $reload_flag in 4692"" | " "*) ;; 4693*) reload_flag=" $reload_flag" ;; 4694esac 4695reload_cmds='$LD$reload_flag -o $output$reload_objs' 4696case $host_os in 4697 darwin*) 4698 if test "$GCC" = yes; then 4699 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4700 else 4701 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4702 fi 4703 ;; 4704esac 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714if test -n "$ac_tool_prefix"; then 4715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4716set dummy ${ac_tool_prefix}objdump; ac_word=$2 4717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4718$as_echo_n "checking for $ac_word... " >&6; } 4719if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4720 $as_echo_n "(cached) " >&6 4721else 4722 if test -n "$OBJDUMP"; then 4723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4724else 4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726for as_dir in $PATH 4727do 4728 IFS=$as_save_IFS 4729 test -z "$as_dir" && as_dir=. 4730 for ac_exec_ext in '' $ac_executable_extensions; do 4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4732 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4734 break 2 4735 fi 4736done 4737done 4738IFS=$as_save_IFS 4739 4740fi 4741fi 4742OBJDUMP=$ac_cv_prog_OBJDUMP 4743if test -n "$OBJDUMP"; then 4744 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4745$as_echo "$OBJDUMP" >&6; } 4746else 4747 { $as_echo "$as_me:$LINENO: result: no" >&5 4748$as_echo "no" >&6; } 4749fi 4750 4751 4752fi 4753if test -z "$ac_cv_prog_OBJDUMP"; then 4754 ac_ct_OBJDUMP=$OBJDUMP 4755 # Extract the first word of "objdump", so it can be a program name with args. 4756set dummy objdump; ac_word=$2 4757{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4758$as_echo_n "checking for $ac_word... " >&6; } 4759if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4760 $as_echo_n "(cached) " >&6 4761else 4762 if test -n "$ac_ct_OBJDUMP"; then 4763 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4764else 4765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4766for as_dir in $PATH 4767do 4768 IFS=$as_save_IFS 4769 test -z "$as_dir" && as_dir=. 4770 for ac_exec_ext in '' $ac_executable_extensions; do 4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4772 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4774 break 2 4775 fi 4776done 4777done 4778IFS=$as_save_IFS 4779 4780fi 4781fi 4782ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4783if test -n "$ac_ct_OBJDUMP"; then 4784 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4785$as_echo "$ac_ct_OBJDUMP" >&6; } 4786else 4787 { $as_echo "$as_me:$LINENO: result: no" >&5 4788$as_echo "no" >&6; } 4789fi 4790 4791 if test "x$ac_ct_OBJDUMP" = x; then 4792 OBJDUMP="false" 4793 else 4794 case $cross_compiling:$ac_tool_warned in 4795yes:) 4796{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4798ac_tool_warned=yes ;; 4799esac 4800 OBJDUMP=$ac_ct_OBJDUMP 4801 fi 4802else 4803 OBJDUMP="$ac_cv_prog_OBJDUMP" 4804fi 4805 4806test -z "$OBJDUMP" && OBJDUMP=objdump 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4817$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4818if test "${lt_cv_deplibs_check_method+set}" = set; then 4819 $as_echo_n "(cached) " >&6 4820else 4821 lt_cv_file_magic_cmd='$MAGIC_CMD' 4822lt_cv_file_magic_test_file= 4823lt_cv_deplibs_check_method='unknown' 4824# Need to set the preceding variable on all platforms that support 4825# interlibrary dependencies. 4826# 'none' -- dependencies not supported. 4827# `unknown' -- same as none, but documents that we really don't know. 4828# 'pass_all' -- all dependencies passed with no checks. 4829# 'test_compile' -- check by making test program. 4830# 'file_magic [[regex]]' -- check by looking for files in library path 4831# which responds to the $file_magic_cmd with a given extended regex. 4832# If you have `file' or equivalent on your system and you're not sure 4833# whether `pass_all' will *always* work, you probably want this one. 4834 4835case $host_os in 4836aix[4-9]*) 4837 lt_cv_deplibs_check_method=pass_all 4838 ;; 4839 4840beos*) 4841 lt_cv_deplibs_check_method=pass_all 4842 ;; 4843 4844bsdi[45]*) 4845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4846 lt_cv_file_magic_cmd='/usr/bin/file -L' 4847 lt_cv_file_magic_test_file=/shlib/libc.so 4848 ;; 4849 4850cygwin*) 4851 # func_win32_libid is a shell function defined in ltmain.sh 4852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4853 lt_cv_file_magic_cmd='func_win32_libid' 4854 ;; 4855 4856mingw* | pw32*) 4857 # Base MSYS/MinGW do not provide the 'file' command needed by 4858 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4859 # unless we find 'file', for example because we are cross-compiling. 4860 if ( file / ) >/dev/null 2>&1; then 4861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4862 lt_cv_file_magic_cmd='func_win32_libid' 4863 else 4864 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4865 lt_cv_file_magic_cmd='$OBJDUMP -f' 4866 fi 4867 ;; 4868 4869cegcc) 4870 # use the weaker test based on 'objdump'. See mingw*. 4871 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4872 lt_cv_file_magic_cmd='$OBJDUMP -f' 4873 ;; 4874 4875darwin* | rhapsody*) 4876 lt_cv_deplibs_check_method=pass_all 4877 ;; 4878 4879freebsd* | dragonfly*) 4880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4881 case $host_cpu in 4882 i*86 ) 4883 # Not sure whether the presence of OpenBSD here was a mistake. 4884 # Let's accept both of them until this is cleared up. 4885 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4886 lt_cv_file_magic_cmd=/usr/bin/file 4887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4888 ;; 4889 esac 4890 else 4891 lt_cv_deplibs_check_method=pass_all 4892 fi 4893 ;; 4894 4895gnu*) 4896 lt_cv_deplibs_check_method=pass_all 4897 ;; 4898 4899hpux10.20* | hpux11*) 4900 lt_cv_file_magic_cmd=/usr/bin/file 4901 case $host_cpu in 4902 ia64*) 4903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4904 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4905 ;; 4906 hppa*64*) 4907 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]' 4908 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4909 ;; 4910 *) 4911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4912 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4913 ;; 4914 esac 4915 ;; 4916 4917interix[3-9]*) 4918 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4920 ;; 4921 4922irix5* | irix6* | nonstopux*) 4923 case $LD in 4924 *-32|*"-32 ") libmagic=32-bit;; 4925 *-n32|*"-n32 ") libmagic=N32;; 4926 *-64|*"-64 ") libmagic=64-bit;; 4927 *) libmagic=never-match;; 4928 esac 4929 lt_cv_deplibs_check_method=pass_all 4930 ;; 4931 4932# This must be Linux ELF. 4933linux* | k*bsd*-gnu) 4934 lt_cv_deplibs_check_method=pass_all 4935 ;; 4936 4937netbsd*) 4938 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4940 else 4941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4942 fi 4943 ;; 4944 4945newos6*) 4946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4947 lt_cv_file_magic_cmd=/usr/bin/file 4948 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4949 ;; 4950 4951*nto* | *qnx*) 4952 lt_cv_deplibs_check_method=pass_all 4953 ;; 4954 4955openbsd*) 4956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4958 else 4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4960 fi 4961 ;; 4962 4963osf3* | osf4* | osf5*) 4964 lt_cv_deplibs_check_method=pass_all 4965 ;; 4966 4967rdos*) 4968 lt_cv_deplibs_check_method=pass_all 4969 ;; 4970 4971solaris*) 4972 lt_cv_deplibs_check_method=pass_all 4973 ;; 4974 4975sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4976 lt_cv_deplibs_check_method=pass_all 4977 ;; 4978 4979sysv4 | sysv4.3*) 4980 case $host_vendor in 4981 motorola) 4982 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]' 4983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4984 ;; 4985 ncr) 4986 lt_cv_deplibs_check_method=pass_all 4987 ;; 4988 sequent) 4989 lt_cv_file_magic_cmd='/bin/file' 4990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4991 ;; 4992 sni) 4993 lt_cv_file_magic_cmd='/bin/file' 4994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4995 lt_cv_file_magic_test_file=/lib/libc.so 4996 ;; 4997 siemens) 4998 lt_cv_deplibs_check_method=pass_all 4999 ;; 5000 pc) 5001 lt_cv_deplibs_check_method=pass_all 5002 ;; 5003 esac 5004 ;; 5005 5006tpf*) 5007 lt_cv_deplibs_check_method=pass_all 5008 ;; 5009esac 5010 5011fi 5012{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5013$as_echo "$lt_cv_deplibs_check_method" >&6; } 5014file_magic_cmd=$lt_cv_file_magic_cmd 5015deplibs_check_method=$lt_cv_deplibs_check_method 5016test -z "$deplibs_check_method" && deplibs_check_method=unknown 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029if test -n "$ac_tool_prefix"; then 5030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5031set dummy ${ac_tool_prefix}ar; ac_word=$2 5032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5033$as_echo_n "checking for $ac_word... " >&6; } 5034if test "${ac_cv_prog_AR+set}" = set; then 5035 $as_echo_n "(cached) " >&6 5036else 5037 if test -n "$AR"; then 5038 ac_cv_prog_AR="$AR" # Let the user override the test. 5039else 5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5041for as_dir in $PATH 5042do 5043 IFS=$as_save_IFS 5044 test -z "$as_dir" && as_dir=. 5045 for ac_exec_ext in '' $ac_executable_extensions; do 5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5047 ac_cv_prog_AR="${ac_tool_prefix}ar" 5048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5049 break 2 5050 fi 5051done 5052done 5053IFS=$as_save_IFS 5054 5055fi 5056fi 5057AR=$ac_cv_prog_AR 5058if test -n "$AR"; then 5059 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5060$as_echo "$AR" >&6; } 5061else 5062 { $as_echo "$as_me:$LINENO: result: no" >&5 5063$as_echo "no" >&6; } 5064fi 5065 5066 5067fi 5068if test -z "$ac_cv_prog_AR"; then 5069 ac_ct_AR=$AR 5070 # Extract the first word of "ar", so it can be a program name with args. 5071set dummy ar; ac_word=$2 5072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5073$as_echo_n "checking for $ac_word... " >&6; } 5074if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5075 $as_echo_n "(cached) " >&6 5076else 5077 if test -n "$ac_ct_AR"; then 5078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5079else 5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5081for as_dir in $PATH 5082do 5083 IFS=$as_save_IFS 5084 test -z "$as_dir" && as_dir=. 5085 for ac_exec_ext in '' $ac_executable_extensions; do 5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5087 ac_cv_prog_ac_ct_AR="ar" 5088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091done 5092done 5093IFS=$as_save_IFS 5094 5095fi 5096fi 5097ac_ct_AR=$ac_cv_prog_ac_ct_AR 5098if test -n "$ac_ct_AR"; then 5099 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5100$as_echo "$ac_ct_AR" >&6; } 5101else 5102 { $as_echo "$as_me:$LINENO: result: no" >&5 5103$as_echo "no" >&6; } 5104fi 5105 5106 if test "x$ac_ct_AR" = x; then 5107 AR="false" 5108 else 5109 case $cross_compiling:$ac_tool_warned in 5110yes:) 5111{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5113ac_tool_warned=yes ;; 5114esac 5115 AR=$ac_ct_AR 5116 fi 5117else 5118 AR="$ac_cv_prog_AR" 5119fi 5120 5121test -z "$AR" && AR=ar 5122test -z "$AR_FLAGS" && AR_FLAGS=cru 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134if test -n "$ac_tool_prefix"; then 5135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5136set dummy ${ac_tool_prefix}strip; ac_word=$2 5137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5138$as_echo_n "checking for $ac_word... " >&6; } 5139if test "${ac_cv_prog_STRIP+set}" = set; then 5140 $as_echo_n "(cached) " >&6 5141else 5142 if test -n "$STRIP"; then 5143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5144else 5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5146for as_dir in $PATH 5147do 5148 IFS=$as_save_IFS 5149 test -z "$as_dir" && as_dir=. 5150 for ac_exec_ext in '' $ac_executable_extensions; do 5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5152 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5154 break 2 5155 fi 5156done 5157done 5158IFS=$as_save_IFS 5159 5160fi 5161fi 5162STRIP=$ac_cv_prog_STRIP 5163if test -n "$STRIP"; then 5164 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5165$as_echo "$STRIP" >&6; } 5166else 5167 { $as_echo "$as_me:$LINENO: result: no" >&5 5168$as_echo "no" >&6; } 5169fi 5170 5171 5172fi 5173if test -z "$ac_cv_prog_STRIP"; then 5174 ac_ct_STRIP=$STRIP 5175 # Extract the first word of "strip", so it can be a program name with args. 5176set dummy strip; ac_word=$2 5177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5178$as_echo_n "checking for $ac_word... " >&6; } 5179if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5180 $as_echo_n "(cached) " >&6 5181else 5182 if test -n "$ac_ct_STRIP"; then 5183 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5184else 5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5186for as_dir in $PATH 5187do 5188 IFS=$as_save_IFS 5189 test -z "$as_dir" && as_dir=. 5190 for ac_exec_ext in '' $ac_executable_extensions; do 5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5192 ac_cv_prog_ac_ct_STRIP="strip" 5193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5194 break 2 5195 fi 5196done 5197done 5198IFS=$as_save_IFS 5199 5200fi 5201fi 5202ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5203if test -n "$ac_ct_STRIP"; then 5204 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5205$as_echo "$ac_ct_STRIP" >&6; } 5206else 5207 { $as_echo "$as_me:$LINENO: result: no" >&5 5208$as_echo "no" >&6; } 5209fi 5210 5211 if test "x$ac_ct_STRIP" = x; then 5212 STRIP=":" 5213 else 5214 case $cross_compiling:$ac_tool_warned in 5215yes:) 5216{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5218ac_tool_warned=yes ;; 5219esac 5220 STRIP=$ac_ct_STRIP 5221 fi 5222else 5223 STRIP="$ac_cv_prog_STRIP" 5224fi 5225 5226test -z "$STRIP" && STRIP=: 5227 5228 5229 5230 5231 5232 5233if test -n "$ac_tool_prefix"; then 5234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5235set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5236{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5237$as_echo_n "checking for $ac_word... " >&6; } 5238if test "${ac_cv_prog_RANLIB+set}" = set; then 5239 $as_echo_n "(cached) " >&6 5240else 5241 if test -n "$RANLIB"; then 5242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5243else 5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5245for as_dir in $PATH 5246do 5247 IFS=$as_save_IFS 5248 test -z "$as_dir" && as_dir=. 5249 for ac_exec_ext in '' $ac_executable_extensions; do 5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5253 break 2 5254 fi 5255done 5256done 5257IFS=$as_save_IFS 5258 5259fi 5260fi 5261RANLIB=$ac_cv_prog_RANLIB 5262if test -n "$RANLIB"; then 5263 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5264$as_echo "$RANLIB" >&6; } 5265else 5266 { $as_echo "$as_me:$LINENO: result: no" >&5 5267$as_echo "no" >&6; } 5268fi 5269 5270 5271fi 5272if test -z "$ac_cv_prog_RANLIB"; then 5273 ac_ct_RANLIB=$RANLIB 5274 # Extract the first word of "ranlib", so it can be a program name with args. 5275set dummy ranlib; ac_word=$2 5276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5277$as_echo_n "checking for $ac_word... " >&6; } 5278if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5279 $as_echo_n "(cached) " >&6 5280else 5281 if test -n "$ac_ct_RANLIB"; then 5282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5283else 5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5285for as_dir in $PATH 5286do 5287 IFS=$as_save_IFS 5288 test -z "$as_dir" && as_dir=. 5289 for ac_exec_ext in '' $ac_executable_extensions; do 5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5291 ac_cv_prog_ac_ct_RANLIB="ranlib" 5292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5293 break 2 5294 fi 5295done 5296done 5297IFS=$as_save_IFS 5298 5299fi 5300fi 5301ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5302if test -n "$ac_ct_RANLIB"; then 5303 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5304$as_echo "$ac_ct_RANLIB" >&6; } 5305else 5306 { $as_echo "$as_me:$LINENO: result: no" >&5 5307$as_echo "no" >&6; } 5308fi 5309 5310 if test "x$ac_ct_RANLIB" = x; then 5311 RANLIB=":" 5312 else 5313 case $cross_compiling:$ac_tool_warned in 5314yes:) 5315{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5317ac_tool_warned=yes ;; 5318esac 5319 RANLIB=$ac_ct_RANLIB 5320 fi 5321else 5322 RANLIB="$ac_cv_prog_RANLIB" 5323fi 5324 5325test -z "$RANLIB" && RANLIB=: 5326 5327 5328 5329 5330 5331 5332# Determine commands to create old-style static archives. 5333old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5334old_postinstall_cmds='chmod 644 $oldlib' 5335old_postuninstall_cmds= 5336 5337if test -n "$RANLIB"; then 5338 case $host_os in 5339 openbsd*) 5340 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5341 ;; 5342 *) 5343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5344 ;; 5345 esac 5346 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5347fi 5348 5349 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# If no C compiler was specified, use CC. 5383LTCC=${LTCC-"$CC"} 5384 5385# If no C compiler flags were specified, use CFLAGS. 5386LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5387 5388# Allow CC to be a program name with arguments. 5389compiler=$CC 5390 5391 5392# Check for command to grab the raw symbol name followed by C symbol from nm. 5393{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5394$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5395if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5396 $as_echo_n "(cached) " >&6 5397else 5398 5399# These are sane defaults that work on at least a few old systems. 5400# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5401 5402# Character class describing NM global symbol codes. 5403symcode='[BCDEGRST]' 5404 5405# Regexp to match symbols that can be accessed directly from C. 5406sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5407 5408# Define system-specific variables. 5409case $host_os in 5410aix*) 5411 symcode='[BCDT]' 5412 ;; 5413cygwin* | mingw* | pw32* | cegcc*) 5414 symcode='[ABCDGISTW]' 5415 ;; 5416hpux*) 5417 if test "$host_cpu" = ia64; then 5418 symcode='[ABCDEGRST]' 5419 fi 5420 ;; 5421irix* | nonstopux*) 5422 symcode='[BCDEGRST]' 5423 ;; 5424osf*) 5425 symcode='[BCDEGQRST]' 5426 ;; 5427solaris*) 5428 symcode='[BDRT]' 5429 ;; 5430sco3.2v5*) 5431 symcode='[DT]' 5432 ;; 5433sysv4.2uw2*) 5434 symcode='[DT]' 5435 ;; 5436sysv5* | sco5v6* | unixware* | OpenUNIX*) 5437 symcode='[ABDT]' 5438 ;; 5439sysv4) 5440 symcode='[DFNSTU]' 5441 ;; 5442esac 5443 5444# If we're using GNU nm, then use its standard symbol codes. 5445case `$NM -V 2>&1` in 5446*GNU* | *'with BFD'*) 5447 symcode='[ABCDGIRSTW]' ;; 5448esac 5449 5450# Transform an extracted symbol line into a proper C declaration. 5451# Some systems (esp. on ia64) link data and code symbols differently, 5452# so use this general approach. 5453lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5454 5455# Transform an extracted symbol line into symbol name and symbol address 5456lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5457lt_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'" 5458 5459# Handle CRLF in mingw tool chain 5460opt_cr= 5461case $build_os in 5462mingw*) 5463 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5464 ;; 5465esac 5466 5467# Try without a prefix underscore, then with it. 5468for ac_symprfx in "" "_"; do 5469 5470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5471 symxfrm="\\1 $ac_symprfx\\2 \\2" 5472 5473 # Write the raw and C identifiers. 5474 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5475 # Fake it for dumpbin and say T for any non-static function 5476 # and D for any global variable. 5477 # Also find C++ and __fastcall symbols from MSVC++, 5478 # which start with @ or ?. 5479 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5480" {last_section=section; section=\$ 3};"\ 5481" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5482" \$ 0!~/External *\|/{next};"\ 5483" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5484" {if(hide[section]) next};"\ 5485" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5486" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5487" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5488" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5489" ' prfx=^$ac_symprfx" 5490 else 5491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5492 fi 5493 5494 # Check to see that the pipe works correctly. 5495 pipe_works=no 5496 5497 rm -f conftest* 5498 cat > conftest.$ac_ext <<_LT_EOF 5499#ifdef __cplusplus 5500extern "C" { 5501#endif 5502char nm_test_var; 5503void nm_test_func(void); 5504void nm_test_func(void){} 5505#ifdef __cplusplus 5506} 5507#endif 5508int main(){nm_test_var='a';nm_test_func();return(0);} 5509_LT_EOF 5510 5511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5512 (eval $ac_compile) 2>&5 5513 ac_status=$? 5514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5515 (exit $ac_status); }; then 5516 # Now try to grab the symbols. 5517 nlist=conftest.nm 5518 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5520 ac_status=$? 5521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5522 (exit $ac_status); } && test -s "$nlist"; then 5523 # Try sorting and uniquifying the output. 5524 if sort "$nlist" | uniq > "$nlist"T; then 5525 mv -f "$nlist"T "$nlist" 5526 else 5527 rm -f "$nlist"T 5528 fi 5529 5530 # Make sure that we snagged all the symbols we need. 5531 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5532 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5533 cat <<_LT_EOF > conftest.$ac_ext 5534#ifdef __cplusplus 5535extern "C" { 5536#endif 5537 5538_LT_EOF 5539 # Now generate the symbol file. 5540 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5541 5542 cat <<_LT_EOF >> conftest.$ac_ext 5543 5544/* The mapping between symbol names and symbols. */ 5545const struct { 5546 const char *name; 5547 void *address; 5548} 5549lt__PROGRAM__LTX_preloaded_symbols[] = 5550{ 5551 { "@PROGRAM@", (void *) 0 }, 5552_LT_EOF 5553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5554 cat <<\_LT_EOF >> conftest.$ac_ext 5555 {0, (void *) 0} 5556}; 5557 5558/* This works around a problem in FreeBSD linker */ 5559#ifdef FREEBSD_WORKAROUND 5560static const void *lt_preloaded_setup() { 5561 return lt__PROGRAM__LTX_preloaded_symbols; 5562} 5563#endif 5564 5565#ifdef __cplusplus 5566} 5567#endif 5568_LT_EOF 5569 # Now try linking the two files. 5570 mv conftest.$ac_objext conftstm.$ac_objext 5571 lt_save_LIBS="$LIBS" 5572 lt_save_CFLAGS="$CFLAGS" 5573 LIBS="conftstm.$ac_objext" 5574 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5576 (eval $ac_link) 2>&5 5577 ac_status=$? 5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5580 pipe_works=yes 5581 fi 5582 LIBS="$lt_save_LIBS" 5583 CFLAGS="$lt_save_CFLAGS" 5584 else 5585 echo "cannot find nm_test_func in $nlist" >&5 5586 fi 5587 else 5588 echo "cannot find nm_test_var in $nlist" >&5 5589 fi 5590 else 5591 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5592 fi 5593 else 5594 echo "$progname: failed program was:" >&5 5595 cat conftest.$ac_ext >&5 5596 fi 5597 rm -rf conftest* conftst* 5598 5599 # Do not use the global_symbol_pipe unless it works. 5600 if test "$pipe_works" = yes; then 5601 break 5602 else 5603 lt_cv_sys_global_symbol_pipe= 5604 fi 5605done 5606 5607fi 5608 5609if test -z "$lt_cv_sys_global_symbol_pipe"; then 5610 lt_cv_sys_global_symbol_to_cdecl= 5611fi 5612if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5613 { $as_echo "$as_me:$LINENO: result: failed" >&5 5614$as_echo "failed" >&6; } 5615else 5616 { $as_echo "$as_me:$LINENO: result: ok" >&5 5617$as_echo "ok" >&6; } 5618fi 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642# Check whether --enable-libtool-lock was given. 5643if test "${enable_libtool_lock+set}" = set; then 5644 enableval=$enable_libtool_lock; 5645fi 5646 5647test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5648 5649# Some flags need to be propagated to the compiler or linker for good 5650# libtool support. 5651case $host in 5652ia64-*-hpux*) 5653 # Find out which ABI we are using. 5654 echo 'int i;' > conftest.$ac_ext 5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5656 (eval $ac_compile) 2>&5 5657 ac_status=$? 5658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5659 (exit $ac_status); }; then 5660 case `/usr/bin/file conftest.$ac_objext` in 5661 *ELF-32*) 5662 HPUX_IA64_MODE="32" 5663 ;; 5664 *ELF-64*) 5665 HPUX_IA64_MODE="64" 5666 ;; 5667 esac 5668 fi 5669 rm -rf conftest* 5670 ;; 5671*-*-irix6*) 5672 # Find out which ABI we are using. 5673 echo '#line 5673 "configure"' > conftest.$ac_ext 5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5675 (eval $ac_compile) 2>&5 5676 ac_status=$? 5677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5678 (exit $ac_status); }; then 5679 if test "$lt_cv_prog_gnu_ld" = yes; then 5680 case `/usr/bin/file conftest.$ac_objext` in 5681 *32-bit*) 5682 LD="${LD-ld} -melf32bsmip" 5683 ;; 5684 *N32*) 5685 LD="${LD-ld} -melf32bmipn32" 5686 ;; 5687 *64-bit*) 5688 LD="${LD-ld} -melf64bmip" 5689 ;; 5690 esac 5691 else 5692 case `/usr/bin/file conftest.$ac_objext` in 5693 *32-bit*) 5694 LD="${LD-ld} -32" 5695 ;; 5696 *N32*) 5697 LD="${LD-ld} -n32" 5698 ;; 5699 *64-bit*) 5700 LD="${LD-ld} -64" 5701 ;; 5702 esac 5703 fi 5704 fi 5705 rm -rf conftest* 5706 ;; 5707 5708x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5709s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5710 # Find out which ABI we are using. 5711 echo 'int i;' > conftest.$ac_ext 5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5713 (eval $ac_compile) 2>&5 5714 ac_status=$? 5715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); }; then 5717 case `/usr/bin/file conftest.o` in 5718 *32-bit*) 5719 case $host in 5720 x86_64-*kfreebsd*-gnu) 5721 LD="${LD-ld} -m elf_i386_fbsd" 5722 ;; 5723 x86_64-*linux*) 5724 LD="${LD-ld} -m elf_i386" 5725 ;; 5726 ppc64-*linux*|powerpc64-*linux*) 5727 LD="${LD-ld} -m elf32ppclinux" 5728 ;; 5729 s390x-*linux*) 5730 LD="${LD-ld} -m elf_s390" 5731 ;; 5732 sparc64-*linux*) 5733 LD="${LD-ld} -m elf32_sparc" 5734 ;; 5735 esac 5736 ;; 5737 *64-bit*) 5738 case $host in 5739 x86_64-*kfreebsd*-gnu) 5740 LD="${LD-ld} -m elf_x86_64_fbsd" 5741 ;; 5742 x86_64-*linux*) 5743 LD="${LD-ld} -m elf_x86_64" 5744 ;; 5745 ppc*-*linux*|powerpc*-*linux*) 5746 LD="${LD-ld} -m elf64ppc" 5747 ;; 5748 s390*-*linux*|s390*-*tpf*) 5749 LD="${LD-ld} -m elf64_s390" 5750 ;; 5751 sparc*-*linux*) 5752 LD="${LD-ld} -m elf64_sparc" 5753 ;; 5754 esac 5755 ;; 5756 esac 5757 fi 5758 rm -rf conftest* 5759 ;; 5760 5761*-*-sco3.2v5*) 5762 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5763 SAVE_CFLAGS="$CFLAGS" 5764 CFLAGS="$CFLAGS -belf" 5765 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5766$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5767if test "${lt_cv_cc_needs_belf+set}" = set; then 5768 $as_echo_n "(cached) " >&6 5769else 5770 ac_ext=c 5771ac_cpp='$CPP $CPPFLAGS' 5772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5774ac_compiler_gnu=$ac_cv_c_compiler_gnu 5775 5776 cat >conftest.$ac_ext <<_ACEOF 5777/* confdefs.h. */ 5778_ACEOF 5779cat confdefs.h >>conftest.$ac_ext 5780cat >>conftest.$ac_ext <<_ACEOF 5781/* end confdefs.h. */ 5782 5783int 5784main () 5785{ 5786 5787 ; 5788 return 0; 5789} 5790_ACEOF 5791rm -f conftest.$ac_objext conftest$ac_exeext 5792if { (ac_try="$ac_link" 5793case "(($ac_try" in 5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5795 *) ac_try_echo=$ac_try;; 5796esac 5797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5798$as_echo "$ac_try_echo") >&5 5799 (eval "$ac_link") 2>conftest.er1 5800 ac_status=$? 5801 grep -v '^ *+' conftest.er1 >conftest.err 5802 rm -f conftest.er1 5803 cat conftest.err >&5 5804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5805 (exit $ac_status); } && { 5806 test -z "$ac_c_werror_flag" || 5807 test ! -s conftest.err 5808 } && test -s conftest$ac_exeext && { 5809 test "$cross_compiling" = yes || 5810 $as_test_x conftest$ac_exeext 5811 }; then 5812 lt_cv_cc_needs_belf=yes 5813else 5814 $as_echo "$as_me: failed program was:" >&5 5815sed 's/^/| /' conftest.$ac_ext >&5 5816 5817 lt_cv_cc_needs_belf=no 5818fi 5819 5820rm -rf conftest.dSYM 5821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5822 conftest$ac_exeext conftest.$ac_ext 5823 ac_ext=c 5824ac_cpp='$CPP $CPPFLAGS' 5825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5827ac_compiler_gnu=$ac_cv_c_compiler_gnu 5828 5829fi 5830{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5831$as_echo "$lt_cv_cc_needs_belf" >&6; } 5832 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5833 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5834 CFLAGS="$SAVE_CFLAGS" 5835 fi 5836 ;; 5837sparc*-*solaris*) 5838 # Find out which ABI we are using. 5839 echo 'int i;' > conftest.$ac_ext 5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5841 (eval $ac_compile) 2>&5 5842 ac_status=$? 5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5844 (exit $ac_status); }; then 5845 case `/usr/bin/file conftest.o` in 5846 *64-bit*) 5847 case $lt_cv_prog_gnu_ld in 5848 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5849 *) 5850 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5851 LD="${LD-ld} -64" 5852 fi 5853 ;; 5854 esac 5855 ;; 5856 esac 5857 fi 5858 rm -rf conftest* 5859 ;; 5860esac 5861 5862need_locks="$enable_libtool_lock" 5863 5864 5865 case $host_os in 5866 rhapsody* | darwin*) 5867 if test -n "$ac_tool_prefix"; then 5868 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5869set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5870{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5871$as_echo_n "checking for $ac_word... " >&6; } 5872if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5873 $as_echo_n "(cached) " >&6 5874else 5875 if test -n "$DSYMUTIL"; then 5876 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5877else 5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5879for as_dir in $PATH 5880do 5881 IFS=$as_save_IFS 5882 test -z "$as_dir" && as_dir=. 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5885 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889done 5890done 5891IFS=$as_save_IFS 5892 5893fi 5894fi 5895DSYMUTIL=$ac_cv_prog_DSYMUTIL 5896if test -n "$DSYMUTIL"; then 5897 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5898$as_echo "$DSYMUTIL" >&6; } 5899else 5900 { $as_echo "$as_me:$LINENO: result: no" >&5 5901$as_echo "no" >&6; } 5902fi 5903 5904 5905fi 5906if test -z "$ac_cv_prog_DSYMUTIL"; then 5907 ac_ct_DSYMUTIL=$DSYMUTIL 5908 # Extract the first word of "dsymutil", so it can be a program name with args. 5909set dummy dsymutil; ac_word=$2 5910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5911$as_echo_n "checking for $ac_word... " >&6; } 5912if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5913 $as_echo_n "(cached) " >&6 5914else 5915 if test -n "$ac_ct_DSYMUTIL"; then 5916 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5917else 5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5919for as_dir in $PATH 5920do 5921 IFS=$as_save_IFS 5922 test -z "$as_dir" && as_dir=. 5923 for ac_exec_ext in '' $ac_executable_extensions; do 5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5925 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5927 break 2 5928 fi 5929done 5930done 5931IFS=$as_save_IFS 5932 5933fi 5934fi 5935ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5936if test -n "$ac_ct_DSYMUTIL"; then 5937 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5938$as_echo "$ac_ct_DSYMUTIL" >&6; } 5939else 5940 { $as_echo "$as_me:$LINENO: result: no" >&5 5941$as_echo "no" >&6; } 5942fi 5943 5944 if test "x$ac_ct_DSYMUTIL" = x; then 5945 DSYMUTIL=":" 5946 else 5947 case $cross_compiling:$ac_tool_warned in 5948yes:) 5949{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5951ac_tool_warned=yes ;; 5952esac 5953 DSYMUTIL=$ac_ct_DSYMUTIL 5954 fi 5955else 5956 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5957fi 5958 5959 if test -n "$ac_tool_prefix"; then 5960 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5961set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5963$as_echo_n "checking for $ac_word... " >&6; } 5964if test "${ac_cv_prog_NMEDIT+set}" = set; then 5965 $as_echo_n "(cached) " >&6 5966else 5967 if test -n "$NMEDIT"; then 5968 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5969else 5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5971for as_dir in $PATH 5972do 5973 IFS=$as_save_IFS 5974 test -z "$as_dir" && as_dir=. 5975 for ac_exec_ext in '' $ac_executable_extensions; do 5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5977 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5979 break 2 5980 fi 5981done 5982done 5983IFS=$as_save_IFS 5984 5985fi 5986fi 5987NMEDIT=$ac_cv_prog_NMEDIT 5988if test -n "$NMEDIT"; then 5989 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5990$as_echo "$NMEDIT" >&6; } 5991else 5992 { $as_echo "$as_me:$LINENO: result: no" >&5 5993$as_echo "no" >&6; } 5994fi 5995 5996 5997fi 5998if test -z "$ac_cv_prog_NMEDIT"; then 5999 ac_ct_NMEDIT=$NMEDIT 6000 # Extract the first word of "nmedit", so it can be a program name with args. 6001set dummy nmedit; ac_word=$2 6002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6003$as_echo_n "checking for $ac_word... " >&6; } 6004if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6005 $as_echo_n "(cached) " >&6 6006else 6007 if test -n "$ac_ct_NMEDIT"; then 6008 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6009else 6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6011for as_dir in $PATH 6012do 6013 IFS=$as_save_IFS 6014 test -z "$as_dir" && as_dir=. 6015 for ac_exec_ext in '' $ac_executable_extensions; do 6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6017 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6019 break 2 6020 fi 6021done 6022done 6023IFS=$as_save_IFS 6024 6025fi 6026fi 6027ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6028if test -n "$ac_ct_NMEDIT"; then 6029 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6030$as_echo "$ac_ct_NMEDIT" >&6; } 6031else 6032 { $as_echo "$as_me:$LINENO: result: no" >&5 6033$as_echo "no" >&6; } 6034fi 6035 6036 if test "x$ac_ct_NMEDIT" = x; then 6037 NMEDIT=":" 6038 else 6039 case $cross_compiling:$ac_tool_warned in 6040yes:) 6041{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6043ac_tool_warned=yes ;; 6044esac 6045 NMEDIT=$ac_ct_NMEDIT 6046 fi 6047else 6048 NMEDIT="$ac_cv_prog_NMEDIT" 6049fi 6050 6051 if test -n "$ac_tool_prefix"; then 6052 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6053set dummy ${ac_tool_prefix}lipo; ac_word=$2 6054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6055$as_echo_n "checking for $ac_word... " >&6; } 6056if test "${ac_cv_prog_LIPO+set}" = set; then 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -n "$LIPO"; then 6060 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6061else 6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6063for as_dir in $PATH 6064do 6065 IFS=$as_save_IFS 6066 test -z "$as_dir" && as_dir=. 6067 for ac_exec_ext in '' $ac_executable_extensions; do 6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6069 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6071 break 2 6072 fi 6073done 6074done 6075IFS=$as_save_IFS 6076 6077fi 6078fi 6079LIPO=$ac_cv_prog_LIPO 6080if test -n "$LIPO"; then 6081 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6082$as_echo "$LIPO" >&6; } 6083else 6084 { $as_echo "$as_me:$LINENO: result: no" >&5 6085$as_echo "no" >&6; } 6086fi 6087 6088 6089fi 6090if test -z "$ac_cv_prog_LIPO"; then 6091 ac_ct_LIPO=$LIPO 6092 # Extract the first word of "lipo", so it can be a program name with args. 6093set dummy lipo; ac_word=$2 6094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6095$as_echo_n "checking for $ac_word... " >&6; } 6096if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6097 $as_echo_n "(cached) " >&6 6098else 6099 if test -n "$ac_ct_LIPO"; then 6100 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6101else 6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6103for as_dir in $PATH 6104do 6105 IFS=$as_save_IFS 6106 test -z "$as_dir" && as_dir=. 6107 for ac_exec_ext in '' $ac_executable_extensions; do 6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6109 ac_cv_prog_ac_ct_LIPO="lipo" 6110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6111 break 2 6112 fi 6113done 6114done 6115IFS=$as_save_IFS 6116 6117fi 6118fi 6119ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6120if test -n "$ac_ct_LIPO"; then 6121 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6122$as_echo "$ac_ct_LIPO" >&6; } 6123else 6124 { $as_echo "$as_me:$LINENO: result: no" >&5 6125$as_echo "no" >&6; } 6126fi 6127 6128 if test "x$ac_ct_LIPO" = x; then 6129 LIPO=":" 6130 else 6131 case $cross_compiling:$ac_tool_warned in 6132yes:) 6133{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6135ac_tool_warned=yes ;; 6136esac 6137 LIPO=$ac_ct_LIPO 6138 fi 6139else 6140 LIPO="$ac_cv_prog_LIPO" 6141fi 6142 6143 if test -n "$ac_tool_prefix"; then 6144 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6145set dummy ${ac_tool_prefix}otool; ac_word=$2 6146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6147$as_echo_n "checking for $ac_word... " >&6; } 6148if test "${ac_cv_prog_OTOOL+set}" = set; then 6149 $as_echo_n "(cached) " >&6 6150else 6151 if test -n "$OTOOL"; then 6152 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6153else 6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155for as_dir in $PATH 6156do 6157 IFS=$as_save_IFS 6158 test -z "$as_dir" && as_dir=. 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6161 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6163 break 2 6164 fi 6165done 6166done 6167IFS=$as_save_IFS 6168 6169fi 6170fi 6171OTOOL=$ac_cv_prog_OTOOL 6172if test -n "$OTOOL"; then 6173 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6174$as_echo "$OTOOL" >&6; } 6175else 6176 { $as_echo "$as_me:$LINENO: result: no" >&5 6177$as_echo "no" >&6; } 6178fi 6179 6180 6181fi 6182if test -z "$ac_cv_prog_OTOOL"; then 6183 ac_ct_OTOOL=$OTOOL 6184 # Extract the first word of "otool", so it can be a program name with args. 6185set dummy otool; ac_word=$2 6186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6187$as_echo_n "checking for $ac_word... " >&6; } 6188if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6189 $as_echo_n "(cached) " >&6 6190else 6191 if test -n "$ac_ct_OTOOL"; then 6192 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6193else 6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195for as_dir in $PATH 6196do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_exec_ext in '' $ac_executable_extensions; do 6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6201 ac_cv_prog_ac_ct_OTOOL="otool" 6202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6203 break 2 6204 fi 6205done 6206done 6207IFS=$as_save_IFS 6208 6209fi 6210fi 6211ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6212if test -n "$ac_ct_OTOOL"; then 6213 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6214$as_echo "$ac_ct_OTOOL" >&6; } 6215else 6216 { $as_echo "$as_me:$LINENO: result: no" >&5 6217$as_echo "no" >&6; } 6218fi 6219 6220 if test "x$ac_ct_OTOOL" = x; then 6221 OTOOL=":" 6222 else 6223 case $cross_compiling:$ac_tool_warned in 6224yes:) 6225{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6227ac_tool_warned=yes ;; 6228esac 6229 OTOOL=$ac_ct_OTOOL 6230 fi 6231else 6232 OTOOL="$ac_cv_prog_OTOOL" 6233fi 6234 6235 if test -n "$ac_tool_prefix"; then 6236 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6237set dummy ${ac_tool_prefix}otool64; ac_word=$2 6238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6239$as_echo_n "checking for $ac_word... " >&6; } 6240if test "${ac_cv_prog_OTOOL64+set}" = set; then 6241 $as_echo_n "(cached) " >&6 6242else 6243 if test -n "$OTOOL64"; then 6244 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6245else 6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6253 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258done 6259IFS=$as_save_IFS 6260 6261fi 6262fi 6263OTOOL64=$ac_cv_prog_OTOOL64 6264if test -n "$OTOOL64"; then 6265 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6266$as_echo "$OTOOL64" >&6; } 6267else 6268 { $as_echo "$as_me:$LINENO: result: no" >&5 6269$as_echo "no" >&6; } 6270fi 6271 6272 6273fi 6274if test -z "$ac_cv_prog_OTOOL64"; then 6275 ac_ct_OTOOL64=$OTOOL64 6276 # Extract the first word of "otool64", so it can be a program name with args. 6277set dummy otool64; ac_word=$2 6278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6279$as_echo_n "checking for $ac_word... " >&6; } 6280if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6281 $as_echo_n "(cached) " >&6 6282else 6283 if test -n "$ac_ct_OTOOL64"; then 6284 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6285else 6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287for as_dir in $PATH 6288do 6289 IFS=$as_save_IFS 6290 test -z "$as_dir" && as_dir=. 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6293 ac_cv_prog_ac_ct_OTOOL64="otool64" 6294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297done 6298done 6299IFS=$as_save_IFS 6300 6301fi 6302fi 6303ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6304if test -n "$ac_ct_OTOOL64"; then 6305 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6306$as_echo "$ac_ct_OTOOL64" >&6; } 6307else 6308 { $as_echo "$as_me:$LINENO: result: no" >&5 6309$as_echo "no" >&6; } 6310fi 6311 6312 if test "x$ac_ct_OTOOL64" = x; then 6313 OTOOL64=":" 6314 else 6315 case $cross_compiling:$ac_tool_warned in 6316yes:) 6317{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6319ac_tool_warned=yes ;; 6320esac 6321 OTOOL64=$ac_ct_OTOOL64 6322 fi 6323else 6324 OTOOL64="$ac_cv_prog_OTOOL64" 6325fi 6326 6327 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 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6354$as_echo_n "checking for -single_module linker flag... " >&6; } 6355if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6356 $as_echo_n "(cached) " >&6 6357else 6358 lt_cv_apple_cc_single_mod=no 6359 if test -z "${LT_MULTI_MODULE}"; then 6360 # By default we will add the -single_module flag. You can override 6361 # by either setting the environment variable LT_MULTI_MODULE 6362 # non-empty at configure time, or by adding -multi_module to the 6363 # link flags. 6364 rm -rf libconftest.dylib* 6365 echo "int foo(void){return 1;}" > conftest.c 6366 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6367-dynamiclib -Wl,-single_module conftest.c" >&5 6368 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6369 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6370 _lt_result=$? 6371 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6372 lt_cv_apple_cc_single_mod=yes 6373 else 6374 cat conftest.err >&5 6375 fi 6376 rm -rf libconftest.dylib* 6377 rm -f conftest.* 6378 fi 6379fi 6380{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6381$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6382 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6383$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6384if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6385 $as_echo_n "(cached) " >&6 6386else 6387 lt_cv_ld_exported_symbols_list=no 6388 save_LDFLAGS=$LDFLAGS 6389 echo "_main" > conftest.sym 6390 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6391 cat >conftest.$ac_ext <<_ACEOF 6392/* confdefs.h. */ 6393_ACEOF 6394cat confdefs.h >>conftest.$ac_ext 6395cat >>conftest.$ac_ext <<_ACEOF 6396/* end confdefs.h. */ 6397 6398int 6399main () 6400{ 6401 6402 ; 6403 return 0; 6404} 6405_ACEOF 6406rm -f conftest.$ac_objext conftest$ac_exeext 6407if { (ac_try="$ac_link" 6408case "(($ac_try" in 6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6410 *) ac_try_echo=$ac_try;; 6411esac 6412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6413$as_echo "$ac_try_echo") >&5 6414 (eval "$ac_link") 2>conftest.er1 6415 ac_status=$? 6416 grep -v '^ *+' conftest.er1 >conftest.err 6417 rm -f conftest.er1 6418 cat conftest.err >&5 6419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6420 (exit $ac_status); } && { 6421 test -z "$ac_c_werror_flag" || 6422 test ! -s conftest.err 6423 } && test -s conftest$ac_exeext && { 6424 test "$cross_compiling" = yes || 6425 $as_test_x conftest$ac_exeext 6426 }; then 6427 lt_cv_ld_exported_symbols_list=yes 6428else 6429 $as_echo "$as_me: failed program was:" >&5 6430sed 's/^/| /' conftest.$ac_ext >&5 6431 6432 lt_cv_ld_exported_symbols_list=no 6433fi 6434 6435rm -rf conftest.dSYM 6436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6437 conftest$ac_exeext conftest.$ac_ext 6438 LDFLAGS="$save_LDFLAGS" 6439 6440fi 6441{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6442$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6443 case $host_os in 6444 rhapsody* | darwin1.[012]) 6445 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6446 darwin1.*) 6447 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6448 darwin*) # darwin 5.x on 6449 # if running on 10.5 or later, the deployment target defaults 6450 # to the OS version, if on x86, and 10.4, the deployment 6451 # target defaults to 10.4. Don't you love it? 6452 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6453 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6454 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6455 10.[012]*) 6456 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6457 10.*) 6458 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6459 esac 6460 ;; 6461 esac 6462 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6463 _lt_dar_single_mod='$single_module' 6464 fi 6465 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6466 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6467 else 6468 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6469 fi 6470 if test "$DSYMUTIL" != ":"; then 6471 _lt_dsymutil='~$DSYMUTIL $lib || :' 6472 else 6473 _lt_dsymutil= 6474 fi 6475 ;; 6476 esac 6477 6478ac_ext=c 6479ac_cpp='$CPP $CPPFLAGS' 6480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6482ac_compiler_gnu=$ac_cv_c_compiler_gnu 6483{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6484$as_echo_n "checking how to run the C preprocessor... " >&6; } 6485# On Suns, sometimes $CPP names a directory. 6486if test -n "$CPP" && test -d "$CPP"; then 6487 CPP= 6488fi 6489if test -z "$CPP"; then 6490 if test "${ac_cv_prog_CPP+set}" = set; then 6491 $as_echo_n "(cached) " >&6 6492else 6493 # Double quotes because CPP needs to be expanded 6494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6495 do 6496 ac_preproc_ok=false 6497for ac_c_preproc_warn_flag in '' yes 6498do 6499 # Use a header file that comes with gcc, so configuring glibc 6500 # with a fresh cross-compiler works. 6501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6502 # <limits.h> exists even on freestanding compilers. 6503 # On the NeXT, cc -E runs the code through the compiler's parser, 6504 # not just through cpp. "Syntax error" is here to catch this case. 6505 cat >conftest.$ac_ext <<_ACEOF 6506/* confdefs.h. */ 6507_ACEOF 6508cat confdefs.h >>conftest.$ac_ext 6509cat >>conftest.$ac_ext <<_ACEOF 6510/* end confdefs.h. */ 6511#ifdef __STDC__ 6512# include <limits.h> 6513#else 6514# include <assert.h> 6515#endif 6516 Syntax error 6517_ACEOF 6518if { (ac_try="$ac_cpp conftest.$ac_ext" 6519case "(($ac_try" in 6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6521 *) ac_try_echo=$ac_try;; 6522esac 6523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6524$as_echo "$ac_try_echo") >&5 6525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6526 ac_status=$? 6527 grep -v '^ *+' conftest.er1 >conftest.err 6528 rm -f conftest.er1 6529 cat conftest.err >&5 6530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } >/dev/null && { 6532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6533 test ! -s conftest.err 6534 }; then 6535 : 6536else 6537 $as_echo "$as_me: failed program was:" >&5 6538sed 's/^/| /' conftest.$ac_ext >&5 6539 6540 # Broken: fails on valid input. 6541continue 6542fi 6543 6544rm -f conftest.err conftest.$ac_ext 6545 6546 # OK, works on sane cases. Now check whether nonexistent headers 6547 # can be detected and how. 6548 cat >conftest.$ac_ext <<_ACEOF 6549/* confdefs.h. */ 6550_ACEOF 6551cat confdefs.h >>conftest.$ac_ext 6552cat >>conftest.$ac_ext <<_ACEOF 6553/* end confdefs.h. */ 6554#include <ac_nonexistent.h> 6555_ACEOF 6556if { (ac_try="$ac_cpp conftest.$ac_ext" 6557case "(($ac_try" in 6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6559 *) ac_try_echo=$ac_try;; 6560esac 6561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6562$as_echo "$ac_try_echo") >&5 6563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6564 ac_status=$? 6565 grep -v '^ *+' conftest.er1 >conftest.err 6566 rm -f conftest.er1 6567 cat conftest.err >&5 6568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6569 (exit $ac_status); } >/dev/null && { 6570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6571 test ! -s conftest.err 6572 }; then 6573 # Broken: success on invalid input. 6574continue 6575else 6576 $as_echo "$as_me: failed program was:" >&5 6577sed 's/^/| /' conftest.$ac_ext >&5 6578 6579 # Passes both tests. 6580ac_preproc_ok=: 6581break 6582fi 6583 6584rm -f conftest.err conftest.$ac_ext 6585 6586done 6587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6588rm -f conftest.err conftest.$ac_ext 6589if $ac_preproc_ok; then 6590 break 6591fi 6592 6593 done 6594 ac_cv_prog_CPP=$CPP 6595 6596fi 6597 CPP=$ac_cv_prog_CPP 6598else 6599 ac_cv_prog_CPP=$CPP 6600fi 6601{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6602$as_echo "$CPP" >&6; } 6603ac_preproc_ok=false 6604for ac_c_preproc_warn_flag in '' yes 6605do 6606 # Use a header file that comes with gcc, so configuring glibc 6607 # with a fresh cross-compiler works. 6608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6609 # <limits.h> exists even on freestanding compilers. 6610 # On the NeXT, cc -E runs the code through the compiler's parser, 6611 # not just through cpp. "Syntax error" is here to catch this case. 6612 cat >conftest.$ac_ext <<_ACEOF 6613/* confdefs.h. */ 6614_ACEOF 6615cat confdefs.h >>conftest.$ac_ext 6616cat >>conftest.$ac_ext <<_ACEOF 6617/* end confdefs.h. */ 6618#ifdef __STDC__ 6619# include <limits.h> 6620#else 6621# include <assert.h> 6622#endif 6623 Syntax error 6624_ACEOF 6625if { (ac_try="$ac_cpp conftest.$ac_ext" 6626case "(($ac_try" in 6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6628 *) ac_try_echo=$ac_try;; 6629esac 6630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6631$as_echo "$ac_try_echo") >&5 6632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6633 ac_status=$? 6634 grep -v '^ *+' conftest.er1 >conftest.err 6635 rm -f conftest.er1 6636 cat conftest.err >&5 6637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6638 (exit $ac_status); } >/dev/null && { 6639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6640 test ! -s conftest.err 6641 }; then 6642 : 6643else 6644 $as_echo "$as_me: failed program was:" >&5 6645sed 's/^/| /' conftest.$ac_ext >&5 6646 6647 # Broken: fails on valid input. 6648continue 6649fi 6650 6651rm -f conftest.err conftest.$ac_ext 6652 6653 # OK, works on sane cases. Now check whether nonexistent headers 6654 # can be detected and how. 6655 cat >conftest.$ac_ext <<_ACEOF 6656/* confdefs.h. */ 6657_ACEOF 6658cat confdefs.h >>conftest.$ac_ext 6659cat >>conftest.$ac_ext <<_ACEOF 6660/* end confdefs.h. */ 6661#include <ac_nonexistent.h> 6662_ACEOF 6663if { (ac_try="$ac_cpp conftest.$ac_ext" 6664case "(($ac_try" in 6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6666 *) ac_try_echo=$ac_try;; 6667esac 6668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6669$as_echo "$ac_try_echo") >&5 6670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6671 ac_status=$? 6672 grep -v '^ *+' conftest.er1 >conftest.err 6673 rm -f conftest.er1 6674 cat conftest.err >&5 6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6676 (exit $ac_status); } >/dev/null && { 6677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6678 test ! -s conftest.err 6679 }; then 6680 # Broken: success on invalid input. 6681continue 6682else 6683 $as_echo "$as_me: failed program was:" >&5 6684sed 's/^/| /' conftest.$ac_ext >&5 6685 6686 # Passes both tests. 6687ac_preproc_ok=: 6688break 6689fi 6690 6691rm -f conftest.err conftest.$ac_ext 6692 6693done 6694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6695rm -f conftest.err conftest.$ac_ext 6696if $ac_preproc_ok; then 6697 : 6698else 6699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6701{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6702See \`config.log' for more details." >&5 6703$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6704See \`config.log' for more details." >&2;} 6705 { (exit 1); exit 1; }; }; } 6706fi 6707 6708ac_ext=c 6709ac_cpp='$CPP $CPPFLAGS' 6710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6712ac_compiler_gnu=$ac_cv_c_compiler_gnu 6713 6714 6715{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6716$as_echo_n "checking for ANSI C header files... " >&6; } 6717if test "${ac_cv_header_stdc+set}" = set; then 6718 $as_echo_n "(cached) " >&6 6719else 6720 cat >conftest.$ac_ext <<_ACEOF 6721/* confdefs.h. */ 6722_ACEOF 6723cat confdefs.h >>conftest.$ac_ext 6724cat >>conftest.$ac_ext <<_ACEOF 6725/* end confdefs.h. */ 6726#include <stdlib.h> 6727#include <stdarg.h> 6728#include <string.h> 6729#include <float.h> 6730 6731int 6732main () 6733{ 6734 6735 ; 6736 return 0; 6737} 6738_ACEOF 6739rm -f conftest.$ac_objext 6740if { (ac_try="$ac_compile" 6741case "(($ac_try" in 6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6743 *) ac_try_echo=$ac_try;; 6744esac 6745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6746$as_echo "$ac_try_echo") >&5 6747 (eval "$ac_compile") 2>conftest.er1 6748 ac_status=$? 6749 grep -v '^ *+' conftest.er1 >conftest.err 6750 rm -f conftest.er1 6751 cat conftest.err >&5 6752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6753 (exit $ac_status); } && { 6754 test -z "$ac_c_werror_flag" || 6755 test ! -s conftest.err 6756 } && test -s conftest.$ac_objext; then 6757 ac_cv_header_stdc=yes 6758else 6759 $as_echo "$as_me: failed program was:" >&5 6760sed 's/^/| /' conftest.$ac_ext >&5 6761 6762 ac_cv_header_stdc=no 6763fi 6764 6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6766 6767if test $ac_cv_header_stdc = yes; then 6768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6769 cat >conftest.$ac_ext <<_ACEOF 6770/* confdefs.h. */ 6771_ACEOF 6772cat confdefs.h >>conftest.$ac_ext 6773cat >>conftest.$ac_ext <<_ACEOF 6774/* end confdefs.h. */ 6775#include <string.h> 6776 6777_ACEOF 6778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6779 $EGREP "memchr" >/dev/null 2>&1; then 6780 : 6781else 6782 ac_cv_header_stdc=no 6783fi 6784rm -f conftest* 6785 6786fi 6787 6788if test $ac_cv_header_stdc = yes; then 6789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6790 cat >conftest.$ac_ext <<_ACEOF 6791/* confdefs.h. */ 6792_ACEOF 6793cat confdefs.h >>conftest.$ac_ext 6794cat >>conftest.$ac_ext <<_ACEOF 6795/* end confdefs.h. */ 6796#include <stdlib.h> 6797 6798_ACEOF 6799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6800 $EGREP "free" >/dev/null 2>&1; then 6801 : 6802else 6803 ac_cv_header_stdc=no 6804fi 6805rm -f conftest* 6806 6807fi 6808 6809if test $ac_cv_header_stdc = yes; then 6810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6811 if test "$cross_compiling" = yes; then 6812 : 6813else 6814 cat >conftest.$ac_ext <<_ACEOF 6815/* confdefs.h. */ 6816_ACEOF 6817cat confdefs.h >>conftest.$ac_ext 6818cat >>conftest.$ac_ext <<_ACEOF 6819/* end confdefs.h. */ 6820#include <ctype.h> 6821#include <stdlib.h> 6822#if ((' ' & 0x0FF) == 0x020) 6823# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6824# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6825#else 6826# define ISLOWER(c) \ 6827 (('a' <= (c) && (c) <= 'i') \ 6828 || ('j' <= (c) && (c) <= 'r') \ 6829 || ('s' <= (c) && (c) <= 'z')) 6830# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6831#endif 6832 6833#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6834int 6835main () 6836{ 6837 int i; 6838 for (i = 0; i < 256; i++) 6839 if (XOR (islower (i), ISLOWER (i)) 6840 || toupper (i) != TOUPPER (i)) 6841 return 2; 6842 return 0; 6843} 6844_ACEOF 6845rm -f conftest$ac_exeext 6846if { (ac_try="$ac_link" 6847case "(($ac_try" in 6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6849 *) ac_try_echo=$ac_try;; 6850esac 6851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6852$as_echo "$ac_try_echo") >&5 6853 (eval "$ac_link") 2>&5 6854 ac_status=$? 6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6857 { (case "(($ac_try" in 6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6859 *) ac_try_echo=$ac_try;; 6860esac 6861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6862$as_echo "$ac_try_echo") >&5 6863 (eval "$ac_try") 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6866 (exit $ac_status); }; }; then 6867 : 6868else 6869 $as_echo "$as_me: program exited with status $ac_status" >&5 6870$as_echo "$as_me: failed program was:" >&5 6871sed 's/^/| /' conftest.$ac_ext >&5 6872 6873( exit $ac_status ) 6874ac_cv_header_stdc=no 6875fi 6876rm -rf conftest.dSYM 6877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6878fi 6879 6880 6881fi 6882fi 6883{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6884$as_echo "$ac_cv_header_stdc" >&6; } 6885if test $ac_cv_header_stdc = yes; then 6886 6887cat >>confdefs.h <<\_ACEOF 6888#define STDC_HEADERS 1 6889_ACEOF 6890 6891fi 6892 6893# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6904 inttypes.h stdint.h unistd.h 6905do 6906as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6907{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6908$as_echo_n "checking for $ac_header... " >&6; } 6909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6910 $as_echo_n "(cached) " >&6 6911else 6912 cat >conftest.$ac_ext <<_ACEOF 6913/* confdefs.h. */ 6914_ACEOF 6915cat confdefs.h >>conftest.$ac_ext 6916cat >>conftest.$ac_ext <<_ACEOF 6917/* end confdefs.h. */ 6918$ac_includes_default 6919 6920#include <$ac_header> 6921_ACEOF 6922rm -f conftest.$ac_objext 6923if { (ac_try="$ac_compile" 6924case "(($ac_try" in 6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6926 *) ac_try_echo=$ac_try;; 6927esac 6928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6929$as_echo "$ac_try_echo") >&5 6930 (eval "$ac_compile") 2>conftest.er1 6931 ac_status=$? 6932 grep -v '^ *+' conftest.er1 >conftest.err 6933 rm -f conftest.er1 6934 cat conftest.err >&5 6935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6936 (exit $ac_status); } && { 6937 test -z "$ac_c_werror_flag" || 6938 test ! -s conftest.err 6939 } && test -s conftest.$ac_objext; then 6940 eval "$as_ac_Header=yes" 6941else 6942 $as_echo "$as_me: failed program was:" >&5 6943sed 's/^/| /' conftest.$ac_ext >&5 6944 6945 eval "$as_ac_Header=no" 6946fi 6947 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949fi 6950ac_res=`eval 'as_val=${'$as_ac_Header'} 6951 $as_echo "$as_val"'` 6952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6953$as_echo "$ac_res" >&6; } 6954as_val=`eval 'as_val=${'$as_ac_Header'} 6955 $as_echo "$as_val"'` 6956 if test "x$as_val" = x""yes; then 6957 cat >>confdefs.h <<_ACEOF 6958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6959_ACEOF 6960 6961fi 6962 6963done 6964 6965 6966 6967for ac_header in dlfcn.h 6968do 6969as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6970{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6971$as_echo_n "checking for $ac_header... " >&6; } 6972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat >conftest.$ac_ext <<_ACEOF 6976/* confdefs.h. */ 6977_ACEOF 6978cat confdefs.h >>conftest.$ac_ext 6979cat >>conftest.$ac_ext <<_ACEOF 6980/* end confdefs.h. */ 6981$ac_includes_default 6982 6983#include <$ac_header> 6984_ACEOF 6985rm -f conftest.$ac_objext 6986if { (ac_try="$ac_compile" 6987case "(($ac_try" in 6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6989 *) ac_try_echo=$ac_try;; 6990esac 6991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6992$as_echo "$ac_try_echo") >&5 6993 (eval "$ac_compile") 2>conftest.er1 6994 ac_status=$? 6995 grep -v '^ *+' conftest.er1 >conftest.err 6996 rm -f conftest.er1 6997 cat conftest.err >&5 6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6999 (exit $ac_status); } && { 7000 test -z "$ac_c_werror_flag" || 7001 test ! -s conftest.err 7002 } && test -s conftest.$ac_objext; then 7003 eval "$as_ac_Header=yes" 7004else 7005 $as_echo "$as_me: failed program was:" >&5 7006sed 's/^/| /' conftest.$ac_ext >&5 7007 7008 eval "$as_ac_Header=no" 7009fi 7010 7011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7012fi 7013ac_res=`eval 'as_val=${'$as_ac_Header'} 7014 $as_echo "$as_val"'` 7015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7016$as_echo "$ac_res" >&6; } 7017as_val=`eval 'as_val=${'$as_ac_Header'} 7018 $as_echo "$as_val"'` 7019 if test "x$as_val" = x""yes; then 7020 cat >>confdefs.h <<_ACEOF 7021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7022_ACEOF 7023 7024fi 7025 7026done 7027 7028 7029 7030# Set options 7031 7032 7033 7034 enable_dlopen=no 7035 7036 7037 enable_win32_dll=no 7038 7039 7040 # Check whether --enable-shared was given. 7041if test "${enable_shared+set}" = set; then 7042 enableval=$enable_shared; p=${PACKAGE-default} 7043 case $enableval in 7044 yes) enable_shared=yes ;; 7045 no) enable_shared=no ;; 7046 *) 7047 enable_shared=no 7048 # Look at the argument we got. We use all the common list separators. 7049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7050 for pkg in $enableval; do 7051 IFS="$lt_save_ifs" 7052 if test "X$pkg" = "X$p"; then 7053 enable_shared=yes 7054 fi 7055 done 7056 IFS="$lt_save_ifs" 7057 ;; 7058 esac 7059else 7060 enable_shared=yes 7061fi 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 # Check whether --enable-static was given. 7072if test "${enable_static+set}" = set; then 7073 enableval=$enable_static; p=${PACKAGE-default} 7074 case $enableval in 7075 yes) enable_static=yes ;; 7076 no) enable_static=no ;; 7077 *) 7078 enable_static=no 7079 # Look at the argument we got. We use all the common list separators. 7080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7081 for pkg in $enableval; do 7082 IFS="$lt_save_ifs" 7083 if test "X$pkg" = "X$p"; then 7084 enable_static=yes 7085 fi 7086 done 7087 IFS="$lt_save_ifs" 7088 ;; 7089 esac 7090else 7091 enable_static=yes 7092fi 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103# Check whether --with-pic was given. 7104if test "${with_pic+set}" = set; then 7105 withval=$with_pic; pic_mode="$withval" 7106else 7107 pic_mode=default 7108fi 7109 7110 7111test -z "$pic_mode" && pic_mode=default 7112 7113 7114 7115 7116 7117 7118 7119 # Check whether --enable-fast-install was given. 7120if test "${enable_fast_install+set}" = set; then 7121 enableval=$enable_fast_install; p=${PACKAGE-default} 7122 case $enableval in 7123 yes) enable_fast_install=yes ;; 7124 no) enable_fast_install=no ;; 7125 *) 7126 enable_fast_install=no 7127 # Look at the argument we got. We use all the common list separators. 7128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7129 for pkg in $enableval; do 7130 IFS="$lt_save_ifs" 7131 if test "X$pkg" = "X$p"; then 7132 enable_fast_install=yes 7133 fi 7134 done 7135 IFS="$lt_save_ifs" 7136 ;; 7137 esac 7138else 7139 enable_fast_install=yes 7140fi 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152# This can be used to rebuild libtool when needed 7153LIBTOOL_DEPS="$ltmain" 7154 7155# Always use our own libtool. 7156LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182test -z "$LN_S" && LN_S="ln -s" 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197if test -n "${ZSH_VERSION+set}" ; then 7198 setopt NO_GLOB_SUBST 7199fi 7200 7201{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7202$as_echo_n "checking for objdir... " >&6; } 7203if test "${lt_cv_objdir+set}" = set; then 7204 $as_echo_n "(cached) " >&6 7205else 7206 rm -f .libs 2>/dev/null 7207mkdir .libs 2>/dev/null 7208if test -d .libs; then 7209 lt_cv_objdir=.libs 7210else 7211 # MS-DOS does not allow filenames that begin with a dot. 7212 lt_cv_objdir=_libs 7213fi 7214rmdir .libs 2>/dev/null 7215fi 7216{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7217$as_echo "$lt_cv_objdir" >&6; } 7218objdir=$lt_cv_objdir 7219 7220 7221 7222 7223 7224cat >>confdefs.h <<_ACEOF 7225#define LT_OBJDIR "$lt_cv_objdir/" 7226_ACEOF 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244case $host_os in 7245aix3*) 7246 # AIX sometimes has problems with the GCC collect2 program. For some 7247 # reason, if we set the COLLECT_NAMES environment variable, the problems 7248 # vanish in a puff of smoke. 7249 if test "X${COLLECT_NAMES+set}" != Xset; then 7250 COLLECT_NAMES= 7251 export COLLECT_NAMES 7252 fi 7253 ;; 7254esac 7255 7256# Sed substitution that helps us do robust quoting. It backslashifies 7257# metacharacters that are still active within double-quoted strings. 7258sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7259 7260# Same as above, but do not quote variable references. 7261double_quote_subst='s/\(["`\\]\)/\\\1/g' 7262 7263# Sed substitution to delay expansion of an escaped shell variable in a 7264# double_quote_subst'ed string. 7265delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7266 7267# Sed substitution to delay expansion of an escaped single quote. 7268delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7269 7270# Sed substitution to avoid accidental globbing in evaled expressions 7271no_glob_subst='s/\*/\\\*/g' 7272 7273# Global variables: 7274ofile=libtool 7275can_build_shared=yes 7276 7277# All known linkers require a `.a' archive for static linking (except MSVC, 7278# which needs '.lib'). 7279libext=a 7280 7281with_gnu_ld="$lt_cv_prog_gnu_ld" 7282 7283old_CC="$CC" 7284old_CFLAGS="$CFLAGS" 7285 7286# Set sane defaults for various variables 7287test -z "$CC" && CC=cc 7288test -z "$LTCC" && LTCC=$CC 7289test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7290test -z "$LD" && LD=ld 7291test -z "$ac_objext" && ac_objext=o 7292 7293for cc_temp in $compiler""; do 7294 case $cc_temp in 7295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7297 \-*) ;; 7298 *) break;; 7299 esac 7300done 7301cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7302 7303 7304# Only perform the check for file, if the check method requires it 7305test -z "$MAGIC_CMD" && MAGIC_CMD=file 7306case $deplibs_check_method in 7307file_magic*) 7308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7309 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7310$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7311if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7312 $as_echo_n "(cached) " >&6 7313else 7314 case $MAGIC_CMD in 7315[\\/*] | ?:[\\/]*) 7316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7317 ;; 7318*) 7319 lt_save_MAGIC_CMD="$MAGIC_CMD" 7320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7322 for ac_dir in $ac_dummy; do 7323 IFS="$lt_save_ifs" 7324 test -z "$ac_dir" && ac_dir=. 7325 if test -f $ac_dir/${ac_tool_prefix}file; then 7326 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7327 if test -n "$file_magic_test_file"; then 7328 case $deplibs_check_method in 7329 "file_magic "*) 7330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7333 $EGREP "$file_magic_regex" > /dev/null; then 7334 : 7335 else 7336 cat <<_LT_EOF 1>&2 7337 7338*** Warning: the command libtool uses to detect shared libraries, 7339*** $file_magic_cmd, produces output that libtool cannot recognize. 7340*** The result is that libtool may fail to recognize shared libraries 7341*** as such. This will affect the creation of libtool libraries that 7342*** depend on shared libraries, but programs linked with such libtool 7343*** libraries will work regardless of this problem. Nevertheless, you 7344*** may want to report the problem to your system manager and/or to 7345*** bug-libtool@gnu.org 7346 7347_LT_EOF 7348 fi ;; 7349 esac 7350 fi 7351 break 7352 fi 7353 done 7354 IFS="$lt_save_ifs" 7355 MAGIC_CMD="$lt_save_MAGIC_CMD" 7356 ;; 7357esac 7358fi 7359 7360MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7361if test -n "$MAGIC_CMD"; then 7362 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7363$as_echo "$MAGIC_CMD" >&6; } 7364else 7365 { $as_echo "$as_me:$LINENO: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368 7369 7370 7371 7372 7373if test -z "$lt_cv_path_MAGIC_CMD"; then 7374 if test -n "$ac_tool_prefix"; then 7375 { $as_echo "$as_me:$LINENO: checking for file" >&5 7376$as_echo_n "checking for file... " >&6; } 7377if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7378 $as_echo_n "(cached) " >&6 7379else 7380 case $MAGIC_CMD in 7381[\\/*] | ?:[\\/]*) 7382 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7383 ;; 7384*) 7385 lt_save_MAGIC_CMD="$MAGIC_CMD" 7386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7388 for ac_dir in $ac_dummy; do 7389 IFS="$lt_save_ifs" 7390 test -z "$ac_dir" && ac_dir=. 7391 if test -f $ac_dir/file; then 7392 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7393 if test -n "$file_magic_test_file"; then 7394 case $deplibs_check_method in 7395 "file_magic "*) 7396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7399 $EGREP "$file_magic_regex" > /dev/null; then 7400 : 7401 else 7402 cat <<_LT_EOF 1>&2 7403 7404*** Warning: the command libtool uses to detect shared libraries, 7405*** $file_magic_cmd, produces output that libtool cannot recognize. 7406*** The result is that libtool may fail to recognize shared libraries 7407*** as such. This will affect the creation of libtool libraries that 7408*** depend on shared libraries, but programs linked with such libtool 7409*** libraries will work regardless of this problem. Nevertheless, you 7410*** may want to report the problem to your system manager and/or to 7411*** bug-libtool@gnu.org 7412 7413_LT_EOF 7414 fi ;; 7415 esac 7416 fi 7417 break 7418 fi 7419 done 7420 IFS="$lt_save_ifs" 7421 MAGIC_CMD="$lt_save_MAGIC_CMD" 7422 ;; 7423esac 7424fi 7425 7426MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7427if test -n "$MAGIC_CMD"; then 7428 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7429$as_echo "$MAGIC_CMD" >&6; } 7430else 7431 { $as_echo "$as_me:$LINENO: result: no" >&5 7432$as_echo "no" >&6; } 7433fi 7434 7435 7436 else 7437 MAGIC_CMD=: 7438 fi 7439fi 7440 7441 fi 7442 ;; 7443esac 7444 7445# Use C for the default configuration in the libtool script 7446 7447lt_save_CC="$CC" 7448ac_ext=c 7449ac_cpp='$CPP $CPPFLAGS' 7450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7452ac_compiler_gnu=$ac_cv_c_compiler_gnu 7453 7454 7455# Source file extension for C test sources. 7456ac_ext=c 7457 7458# Object file extension for compiled C test sources. 7459objext=o 7460objext=$objext 7461 7462# Code to be used in simple compile tests 7463lt_simple_compile_test_code="int some_variable = 0;" 7464 7465# Code to be used in simple link tests 7466lt_simple_link_test_code='int main(){return(0);}' 7467 7468 7469 7470 7471 7472 7473 7474# If no C compiler was specified, use CC. 7475LTCC=${LTCC-"$CC"} 7476 7477# If no C compiler flags were specified, use CFLAGS. 7478LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7479 7480# Allow CC to be a program name with arguments. 7481compiler=$CC 7482 7483# Save the default compiler, since it gets overwritten when the other 7484# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7485compiler_DEFAULT=$CC 7486 7487# save warnings/boilerplate of simple test code 7488ac_outfile=conftest.$ac_objext 7489echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7490eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7491_lt_compiler_boilerplate=`cat conftest.err` 7492$RM conftest* 7493 7494ac_outfile=conftest.$ac_objext 7495echo "$lt_simple_link_test_code" >conftest.$ac_ext 7496eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7497_lt_linker_boilerplate=`cat conftest.err` 7498$RM -r conftest* 7499 7500 7501if test -n "$compiler"; then 7502 7503lt_prog_compiler_no_builtin_flag= 7504 7505if test "$GCC" = yes; then 7506 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7507 7508 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7509$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7510if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7511 $as_echo_n "(cached) " >&6 7512else 7513 lt_cv_prog_compiler_rtti_exceptions=no 7514 ac_outfile=conftest.$ac_objext 7515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7516 lt_compiler_flag="-fno-rtti -fno-exceptions" 7517 # Insert the option either (1) after the last *FLAGS variable, or 7518 # (2) before a word containing "conftest.", or (3) at the end. 7519 # Note that $ac_compile itself does not contain backslashes and begins 7520 # with a dollar sign (not a hyphen), so the echo should work correctly. 7521 # The option is referenced via a variable to avoid confusing sed. 7522 lt_compile=`echo "$ac_compile" | $SED \ 7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7525 -e 's:$: $lt_compiler_flag:'` 7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5) 7527 (eval "$lt_compile" 2>conftest.err) 7528 ac_status=$? 7529 cat conftest.err >&5 7530 echo "$as_me:7530: \$? = $ac_status" >&5 7531 if (exit $ac_status) && test -s "$ac_outfile"; then 7532 # The compiler can only warn and ignore the option if not recognized 7533 # So say no if there are warnings other than the usual output. 7534 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7537 lt_cv_prog_compiler_rtti_exceptions=yes 7538 fi 7539 fi 7540 $RM conftest* 7541 7542fi 7543{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7544$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7545 7546if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7548else 7549 : 7550fi 7551 7552fi 7553 7554 7555 7556 7557 7558 7559 lt_prog_compiler_wl= 7560lt_prog_compiler_pic= 7561lt_prog_compiler_static= 7562 7563{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7564$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7565 7566 if test "$GCC" = yes; then 7567 lt_prog_compiler_wl='-Wl,' 7568 lt_prog_compiler_static='-static' 7569 7570 case $host_os in 7571 aix*) 7572 # All AIX code is PIC. 7573 if test "$host_cpu" = ia64; then 7574 # AIX 5 now supports IA64 processor 7575 lt_prog_compiler_static='-Bstatic' 7576 fi 7577 ;; 7578 7579 amigaos*) 7580 case $host_cpu in 7581 powerpc) 7582 # see comment about AmigaOS4 .so support 7583 lt_prog_compiler_pic='-fPIC' 7584 ;; 7585 m68k) 7586 # FIXME: we need at least 68020 code to build shared libraries, but 7587 # adding the `-m68020' flag to GCC prevents building anything better, 7588 # like `-m68040'. 7589 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7590 ;; 7591 esac 7592 ;; 7593 7594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7595 # PIC is the default for these OSes. 7596 ;; 7597 7598 mingw* | cygwin* | pw32* | os2* | cegcc*) 7599 # This hack is so that the source file can tell whether it is being 7600 # built for inclusion in a dll (and should export symbols for example). 7601 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7602 # (--disable-auto-import) libraries 7603 lt_prog_compiler_pic='-DDLL_EXPORT' 7604 ;; 7605 7606 darwin* | rhapsody*) 7607 # PIC is the default on this platform 7608 # Common symbols not allowed in MH_DYLIB files 7609 lt_prog_compiler_pic='-fno-common' 7610 ;; 7611 7612 hpux*) 7613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7615 # sets the default TLS model and affects inlining. 7616 case $host_cpu in 7617 hppa*64*) 7618 # +Z the default 7619 ;; 7620 *) 7621 lt_prog_compiler_pic='-fPIC' 7622 ;; 7623 esac 7624 ;; 7625 7626 interix[3-9]*) 7627 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7628 # Instead, we relocate shared libraries at runtime. 7629 ;; 7630 7631 msdosdjgpp*) 7632 # Just because we use GCC doesn't mean we suddenly get shared libraries 7633 # on systems that don't support them. 7634 lt_prog_compiler_can_build_shared=no 7635 enable_shared=no 7636 ;; 7637 7638 *nto* | *qnx*) 7639 # QNX uses GNU C++, but need to define -shared option too, otherwise 7640 # it will coredump. 7641 lt_prog_compiler_pic='-fPIC -shared' 7642 ;; 7643 7644 sysv4*MP*) 7645 if test -d /usr/nec; then 7646 lt_prog_compiler_pic=-Kconform_pic 7647 fi 7648 ;; 7649 7650 *) 7651 lt_prog_compiler_pic='-fPIC' 7652 ;; 7653 esac 7654 else 7655 # PORTME Check for flag to pass linker flags through the system compiler. 7656 case $host_os in 7657 aix*) 7658 lt_prog_compiler_wl='-Wl,' 7659 if test "$host_cpu" = ia64; then 7660 # AIX 5 now supports IA64 processor 7661 lt_prog_compiler_static='-Bstatic' 7662 else 7663 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7664 fi 7665 ;; 7666 7667 mingw* | cygwin* | pw32* | os2* | cegcc*) 7668 # This hack is so that the source file can tell whether it is being 7669 # built for inclusion in a dll (and should export symbols for example). 7670 lt_prog_compiler_pic='-DDLL_EXPORT' 7671 ;; 7672 7673 hpux9* | hpux10* | hpux11*) 7674 lt_prog_compiler_wl='-Wl,' 7675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7676 # not for PA HP-UX. 7677 case $host_cpu in 7678 hppa*64*|ia64*) 7679 # +Z the default 7680 ;; 7681 *) 7682 lt_prog_compiler_pic='+Z' 7683 ;; 7684 esac 7685 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7686 lt_prog_compiler_static='${wl}-a ${wl}archive' 7687 ;; 7688 7689 irix5* | irix6* | nonstopux*) 7690 lt_prog_compiler_wl='-Wl,' 7691 # PIC (with -KPIC) is the default. 7692 lt_prog_compiler_static='-non_shared' 7693 ;; 7694 7695 linux* | k*bsd*-gnu) 7696 case $cc_basename in 7697 # old Intel for x86_64 which still supported -KPIC. 7698 ecc*) 7699 lt_prog_compiler_wl='-Wl,' 7700 lt_prog_compiler_pic='-KPIC' 7701 lt_prog_compiler_static='-static' 7702 ;; 7703 # icc used to be incompatible with GCC. 7704 # ICC 10 doesn't accept -KPIC any more. 7705 icc* | ifort*) 7706 lt_prog_compiler_wl='-Wl,' 7707 lt_prog_compiler_pic='-fPIC' 7708 lt_prog_compiler_static='-static' 7709 ;; 7710 # Lahey Fortran 8.1. 7711 lf95*) 7712 lt_prog_compiler_wl='-Wl,' 7713 lt_prog_compiler_pic='--shared' 7714 lt_prog_compiler_static='--static' 7715 ;; 7716 pgcc* | pgf77* | pgf90* | pgf95*) 7717 # Portland Group compilers (*not* the Pentium gcc compiler, 7718 # which looks to be a dead project) 7719 lt_prog_compiler_wl='-Wl,' 7720 lt_prog_compiler_pic='-fpic' 7721 lt_prog_compiler_static='-Bstatic' 7722 ;; 7723 ccc*) 7724 lt_prog_compiler_wl='-Wl,' 7725 # All Alpha code is PIC. 7726 lt_prog_compiler_static='-non_shared' 7727 ;; 7728 xl*) 7729 # IBM XL C 8.0/Fortran 10.1 on PPC 7730 lt_prog_compiler_wl='-Wl,' 7731 lt_prog_compiler_pic='-qpic' 7732 lt_prog_compiler_static='-qstaticlink' 7733 ;; 7734 *) 7735 case `$CC -V 2>&1 | sed 5q` in 7736 *Sun\ C*) 7737 # Sun C 5.9 7738 lt_prog_compiler_pic='-KPIC' 7739 lt_prog_compiler_static='-Bstatic' 7740 lt_prog_compiler_wl='-Wl,' 7741 ;; 7742 *Sun\ F*) 7743 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7744 lt_prog_compiler_pic='-KPIC' 7745 lt_prog_compiler_static='-Bstatic' 7746 lt_prog_compiler_wl='' 7747 ;; 7748 esac 7749 ;; 7750 esac 7751 ;; 7752 7753 newsos6) 7754 lt_prog_compiler_pic='-KPIC' 7755 lt_prog_compiler_static='-Bstatic' 7756 ;; 7757 7758 *nto* | *qnx*) 7759 # QNX uses GNU C++, but need to define -shared option too, otherwise 7760 # it will coredump. 7761 lt_prog_compiler_pic='-fPIC -shared' 7762 ;; 7763 7764 osf3* | osf4* | osf5*) 7765 lt_prog_compiler_wl='-Wl,' 7766 # All OSF/1 code is PIC. 7767 lt_prog_compiler_static='-non_shared' 7768 ;; 7769 7770 rdos*) 7771 lt_prog_compiler_static='-non_shared' 7772 ;; 7773 7774 solaris*) 7775 lt_prog_compiler_pic='-KPIC' 7776 lt_prog_compiler_static='-Bstatic' 7777 case $cc_basename in 7778 f77* | f90* | f95*) 7779 lt_prog_compiler_wl='-Qoption ld ';; 7780 *) 7781 lt_prog_compiler_wl='-Wl,';; 7782 esac 7783 ;; 7784 7785 sunos4*) 7786 lt_prog_compiler_wl='-Qoption ld ' 7787 lt_prog_compiler_pic='-PIC' 7788 lt_prog_compiler_static='-Bstatic' 7789 ;; 7790 7791 sysv4 | sysv4.2uw2* | sysv4.3*) 7792 lt_prog_compiler_wl='-Wl,' 7793 lt_prog_compiler_pic='-KPIC' 7794 lt_prog_compiler_static='-Bstatic' 7795 ;; 7796 7797 sysv4*MP*) 7798 if test -d /usr/nec ;then 7799 lt_prog_compiler_pic='-Kconform_pic' 7800 lt_prog_compiler_static='-Bstatic' 7801 fi 7802 ;; 7803 7804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7805 lt_prog_compiler_wl='-Wl,' 7806 lt_prog_compiler_pic='-KPIC' 7807 lt_prog_compiler_static='-Bstatic' 7808 ;; 7809 7810 unicos*) 7811 lt_prog_compiler_wl='-Wl,' 7812 lt_prog_compiler_can_build_shared=no 7813 ;; 7814 7815 uts4*) 7816 lt_prog_compiler_pic='-pic' 7817 lt_prog_compiler_static='-Bstatic' 7818 ;; 7819 7820 *) 7821 lt_prog_compiler_can_build_shared=no 7822 ;; 7823 esac 7824 fi 7825 7826case $host_os in 7827 # For platforms which do not support PIC, -DPIC is meaningless: 7828 *djgpp*) 7829 lt_prog_compiler_pic= 7830 ;; 7831 *) 7832 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7833 ;; 7834esac 7835{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7836$as_echo "$lt_prog_compiler_pic" >&6; } 7837 7838 7839 7840 7841 7842 7843# 7844# Check to make sure the PIC flag actually works. 7845# 7846if test -n "$lt_prog_compiler_pic"; then 7847 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7848$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7849if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7850 $as_echo_n "(cached) " >&6 7851else 7852 lt_cv_prog_compiler_pic_works=no 7853 ac_outfile=conftest.$ac_objext 7854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7855 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7856 # Insert the option either (1) after the last *FLAGS variable, or 7857 # (2) before a word containing "conftest.", or (3) at the end. 7858 # Note that $ac_compile itself does not contain backslashes and begins 7859 # with a dollar sign (not a hyphen), so the echo should work correctly. 7860 # The option is referenced via a variable to avoid confusing sed. 7861 lt_compile=`echo "$ac_compile" | $SED \ 7862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7864 -e 's:$: $lt_compiler_flag:'` 7865 (eval echo "\"\$as_me:7865: $lt_compile\"" >&5) 7866 (eval "$lt_compile" 2>conftest.err) 7867 ac_status=$? 7868 cat conftest.err >&5 7869 echo "$as_me:7869: \$? = $ac_status" >&5 7870 if (exit $ac_status) && test -s "$ac_outfile"; then 7871 # The compiler can only warn and ignore the option if not recognized 7872 # So say no if there are warnings other than the usual output. 7873 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7876 lt_cv_prog_compiler_pic_works=yes 7877 fi 7878 fi 7879 $RM conftest* 7880 7881fi 7882{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7883$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7884 7885if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7886 case $lt_prog_compiler_pic in 7887 "" | " "*) ;; 7888 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7889 esac 7890else 7891 lt_prog_compiler_pic= 7892 lt_prog_compiler_can_build_shared=no 7893fi 7894 7895fi 7896 7897 7898 7899 7900 7901 7902# 7903# Check to make sure the static flag actually works. 7904# 7905wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7906{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7907$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7908if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7909 $as_echo_n "(cached) " >&6 7910else 7911 lt_cv_prog_compiler_static_works=no 7912 save_LDFLAGS="$LDFLAGS" 7913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7914 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7916 # The linker can only warn and ignore the option if not recognized 7917 # So say no if there are warnings 7918 if test -s conftest.err; then 7919 # Append any errors to the config.log. 7920 cat conftest.err 1>&5 7921 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7923 if diff conftest.exp conftest.er2 >/dev/null; then 7924 lt_cv_prog_compiler_static_works=yes 7925 fi 7926 else 7927 lt_cv_prog_compiler_static_works=yes 7928 fi 7929 fi 7930 $RM -r conftest* 7931 LDFLAGS="$save_LDFLAGS" 7932 7933fi 7934{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7935$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7936 7937if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7938 : 7939else 7940 lt_prog_compiler_static= 7941fi 7942 7943 7944 7945 7946 7947 7948 7949 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7950$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7951if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7952 $as_echo_n "(cached) " >&6 7953else 7954 lt_cv_prog_compiler_c_o=no 7955 $RM -r conftest 2>/dev/null 7956 mkdir conftest 7957 cd conftest 7958 mkdir out 7959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7960 7961 lt_compiler_flag="-o out/conftest2.$ac_objext" 7962 # Insert the option either (1) after the last *FLAGS variable, or 7963 # (2) before a word containing "conftest.", or (3) at the end. 7964 # Note that $ac_compile itself does not contain backslashes and begins 7965 # with a dollar sign (not a hyphen), so the echo should work correctly. 7966 lt_compile=`echo "$ac_compile" | $SED \ 7967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7969 -e 's:$: $lt_compiler_flag:'` 7970 (eval echo "\"\$as_me:7970: $lt_compile\"" >&5) 7971 (eval "$lt_compile" 2>out/conftest.err) 7972 ac_status=$? 7973 cat out/conftest.err >&5 7974 echo "$as_me:7974: \$? = $ac_status" >&5 7975 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7976 then 7977 # The compiler can only warn and ignore the option if not recognized 7978 # So say no if there are warnings 7979 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7980 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7981 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7982 lt_cv_prog_compiler_c_o=yes 7983 fi 7984 fi 7985 chmod u+w . 2>&5 7986 $RM conftest* 7987 # SGI C++ compiler will create directory out/ii_files/ for 7988 # template instantiation 7989 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7990 $RM out/* && rmdir out 7991 cd .. 7992 $RM -r conftest 7993 $RM conftest* 7994 7995fi 7996{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7997$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7998 7999 8000 8001 8002 8003 8004 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8005$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8006if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8007 $as_echo_n "(cached) " >&6 8008else 8009 lt_cv_prog_compiler_c_o=no 8010 $RM -r conftest 2>/dev/null 8011 mkdir conftest 8012 cd conftest 8013 mkdir out 8014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8015 8016 lt_compiler_flag="-o out/conftest2.$ac_objext" 8017 # Insert the option either (1) after the last *FLAGS variable, or 8018 # (2) before a word containing "conftest.", or (3) at the end. 8019 # Note that $ac_compile itself does not contain backslashes and begins 8020 # with a dollar sign (not a hyphen), so the echo should work correctly. 8021 lt_compile=`echo "$ac_compile" | $SED \ 8022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8024 -e 's:$: $lt_compiler_flag:'` 8025 (eval echo "\"\$as_me:8025: $lt_compile\"" >&5) 8026 (eval "$lt_compile" 2>out/conftest.err) 8027 ac_status=$? 8028 cat out/conftest.err >&5 8029 echo "$as_me:8029: \$? = $ac_status" >&5 8030 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8031 then 8032 # The compiler can only warn and ignore the option if not recognized 8033 # So say no if there are warnings 8034 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8037 lt_cv_prog_compiler_c_o=yes 8038 fi 8039 fi 8040 chmod u+w . 2>&5 8041 $RM conftest* 8042 # SGI C++ compiler will create directory out/ii_files/ for 8043 # template instantiation 8044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8045 $RM out/* && rmdir out 8046 cd .. 8047 $RM -r conftest 8048 $RM conftest* 8049 8050fi 8051{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8052$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8053 8054 8055 8056 8057hard_links="nottested" 8058if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8059 # do not overwrite the value of need_locks provided by the user 8060 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8061$as_echo_n "checking if we can lock with hard links... " >&6; } 8062 hard_links=yes 8063 $RM conftest* 8064 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8065 touch conftest.a 8066 ln conftest.a conftest.b 2>&5 || hard_links=no 8067 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8068 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8069$as_echo "$hard_links" >&6; } 8070 if test "$hard_links" = no; then 8071 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8072$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8073 need_locks=warn 8074 fi 8075else 8076 need_locks=no 8077fi 8078 8079 8080 8081 8082 8083 8084 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8085$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8086 8087 runpath_var= 8088 allow_undefined_flag= 8089 always_export_symbols=no 8090 archive_cmds= 8091 archive_expsym_cmds= 8092 compiler_needs_object=no 8093 enable_shared_with_static_runtimes=no 8094 export_dynamic_flag_spec= 8095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8096 hardcode_automatic=no 8097 hardcode_direct=no 8098 hardcode_direct_absolute=no 8099 hardcode_libdir_flag_spec= 8100 hardcode_libdir_flag_spec_ld= 8101 hardcode_libdir_separator= 8102 hardcode_minus_L=no 8103 hardcode_shlibpath_var=unsupported 8104 inherit_rpath=no 8105 link_all_deplibs=unknown 8106 module_cmds= 8107 module_expsym_cmds= 8108 old_archive_from_new_cmds= 8109 old_archive_from_expsyms_cmds= 8110 thread_safe_flag_spec= 8111 whole_archive_flag_spec= 8112 # include_expsyms should be a list of space-separated symbols to be *always* 8113 # included in the symbol list 8114 include_expsyms= 8115 # exclude_expsyms can be an extended regexp of symbols to exclude 8116 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8117 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8118 # as well as any symbol that contains `d'. 8119 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8121 # platforms (ab)use it in PIC code, but their linkers get confused if 8122 # the symbol is explicitly referenced. Since portable code cannot 8123 # rely on this symbol name, it's probably fine to never include it in 8124 # preloaded symbol tables. 8125 # Exclude shared library initialization/finalization symbols. 8126 extract_expsyms_cmds= 8127 8128 case $host_os in 8129 cygwin* | mingw* | pw32* | cegcc*) 8130 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8131 # When not using gcc, we currently assume that we are using 8132 # Microsoft Visual C++. 8133 if test "$GCC" != yes; then 8134 with_gnu_ld=no 8135 fi 8136 ;; 8137 interix*) 8138 # we just hope/assume this is gcc and not c89 (= MSVC++) 8139 with_gnu_ld=yes 8140 ;; 8141 openbsd*) 8142 with_gnu_ld=no 8143 ;; 8144 esac 8145 8146 ld_shlibs=yes 8147 if test "$with_gnu_ld" = yes; then 8148 # If archive_cmds runs LD, not CC, wlarc should be empty 8149 wlarc='${wl}' 8150 8151 # Set some defaults for GNU ld with shared library support. These 8152 # are reset later if shared libraries are not supported. Putting them 8153 # here allows them to be overridden if necessary. 8154 runpath_var=LD_RUN_PATH 8155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8156 export_dynamic_flag_spec='${wl}--export-dynamic' 8157 # ancient GNU ld didn't support --whole-archive et. al. 8158 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8159 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8160 else 8161 whole_archive_flag_spec= 8162 fi 8163 supports_anon_versioning=no 8164 case `$LD -v 2>&1` in 8165 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8166 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8167 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8168 *\ 2.11.*) ;; # other 2.11 versions 8169 *) supports_anon_versioning=yes ;; 8170 esac 8171 8172 # See if GNU ld supports shared libraries. 8173 case $host_os in 8174 aix[3-9]*) 8175 # On AIX/PPC, the GNU linker is very broken 8176 if test "$host_cpu" != ia64; then 8177 ld_shlibs=no 8178 cat <<_LT_EOF 1>&2 8179 8180*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8181*** to be unable to reliably create shared libraries on AIX. 8182*** Therefore, libtool is disabling shared libraries support. If you 8183*** really care for shared libraries, you may want to modify your PATH 8184*** so that a non-GNU linker is found, and then restart. 8185 8186_LT_EOF 8187 fi 8188 ;; 8189 8190 amigaos*) 8191 case $host_cpu in 8192 powerpc) 8193 # see comment about AmigaOS4 .so support 8194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8195 archive_expsym_cmds='' 8196 ;; 8197 m68k) 8198 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)' 8199 hardcode_libdir_flag_spec='-L$libdir' 8200 hardcode_minus_L=yes 8201 ;; 8202 esac 8203 ;; 8204 8205 beos*) 8206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8207 allow_undefined_flag=unsupported 8208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8209 # support --undefined. This deserves some investigation. FIXME 8210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8211 else 8212 ld_shlibs=no 8213 fi 8214 ;; 8215 8216 cygwin* | mingw* | pw32* | cegcc*) 8217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8218 # as there is no search path for DLLs. 8219 hardcode_libdir_flag_spec='-L$libdir' 8220 allow_undefined_flag=unsupported 8221 always_export_symbols=no 8222 enable_shared_with_static_runtimes=yes 8223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8224 8225 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8227 # If the export-symbols file already is a .def file (1st line 8228 # is EXPORTS), use it as is; otherwise, prepend... 8229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8230 cp $export_symbols $output_objdir/$soname.def; 8231 else 8232 echo EXPORTS > $output_objdir/$soname.def; 8233 cat $export_symbols >> $output_objdir/$soname.def; 8234 fi~ 8235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8236 else 8237 ld_shlibs=no 8238 fi 8239 ;; 8240 8241 interix[3-9]*) 8242 hardcode_direct=no 8243 hardcode_shlibpath_var=no 8244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8245 export_dynamic_flag_spec='${wl}-E' 8246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8247 # Instead, shared libraries are loaded at an image base (0x10000000 by 8248 # default) and relocated if they conflict, which is a slow very memory 8249 # consuming and fragmenting process. To avoid this, we pick a random, 8250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8251 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8253 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' 8254 ;; 8255 8256 gnu* | linux* | tpf* | k*bsd*-gnu) 8257 tmp_diet=no 8258 if test "$host_os" = linux-dietlibc; then 8259 case $cc_basename in 8260 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8261 esac 8262 fi 8263 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8264 && test "$tmp_diet" = no 8265 then 8266 tmp_addflag= 8267 tmp_sharedflag='-shared' 8268 case $cc_basename,$host_cpu in 8269 pgcc*) # Portland Group C compiler 8270 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' 8271 tmp_addflag=' $pic_flag' 8272 ;; 8273 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8274 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' 8275 tmp_addflag=' $pic_flag -Mnomain' ;; 8276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8277 tmp_addflag=' -i_dynamic' ;; 8278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8279 tmp_addflag=' -i_dynamic -nofor_main' ;; 8280 ifc* | ifort*) # Intel Fortran compiler 8281 tmp_addflag=' -nofor_main' ;; 8282 lf95*) # Lahey Fortran 8.1 8283 whole_archive_flag_spec= 8284 tmp_sharedflag='--shared' ;; 8285 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8286 tmp_sharedflag='-qmkshrobj' 8287 tmp_addflag= ;; 8288 esac 8289 case `$CC -V 2>&1 | sed 5q` in 8290 *Sun\ C*) # Sun C 5.9 8291 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' 8292 compiler_needs_object=yes 8293 tmp_sharedflag='-G' ;; 8294 *Sun\ F*) # Sun Fortran 8.3 8295 tmp_sharedflag='-G' ;; 8296 esac 8297 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8298 8299 if test "x$supports_anon_versioning" = xyes; then 8300 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8302 echo "local: *; };" >> $output_objdir/$libname.ver~ 8303 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8304 fi 8305 8306 case $cc_basename in 8307 xlf*) 8308 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8309 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8310 hardcode_libdir_flag_spec= 8311 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8312 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8313 if test "x$supports_anon_versioning" = xyes; then 8314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8316 echo "local: *; };" >> $output_objdir/$libname.ver~ 8317 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8318 fi 8319 ;; 8320 esac 8321 else 8322 ld_shlibs=no 8323 fi 8324 ;; 8325 8326 netbsd*) 8327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8328 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8329 wlarc= 8330 else 8331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8333 fi 8334 ;; 8335 8336 solaris*) 8337 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8338 ld_shlibs=no 8339 cat <<_LT_EOF 1>&2 8340 8341*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8342*** create shared libraries on Solaris systems. Therefore, libtool 8343*** is disabling shared libraries support. We urge you to upgrade GNU 8344*** binutils to release 2.9.1 or newer. Another option is to modify 8345*** your PATH or compiler configuration so that the native linker is 8346*** used, and then restart. 8347 8348_LT_EOF 8349 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8352 else 8353 ld_shlibs=no 8354 fi 8355 ;; 8356 8357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8358 case `$LD -v 2>&1` in 8359 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8360 ld_shlibs=no 8361 cat <<_LT_EOF 1>&2 8362 8363*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8364*** reliably create shared libraries on SCO systems. Therefore, libtool 8365*** is disabling shared libraries support. We urge you to upgrade GNU 8366*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8367*** your PATH or compiler configuration so that the native linker is 8368*** used, and then restart. 8369 8370_LT_EOF 8371 ;; 8372 *) 8373 # For security reasons, it is highly recommended that you always 8374 # use absolute paths for naming shared libraries, and exclude the 8375 # DT_RUNPATH tag from executables and libraries. But doing so 8376 # requires that you compile everything twice, which is a pain. 8377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8381 else 8382 ld_shlibs=no 8383 fi 8384 ;; 8385 esac 8386 ;; 8387 8388 sunos4*) 8389 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8390 wlarc= 8391 hardcode_direct=yes 8392 hardcode_shlibpath_var=no 8393 ;; 8394 8395 *) 8396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8399 else 8400 ld_shlibs=no 8401 fi 8402 ;; 8403 esac 8404 8405 if test "$ld_shlibs" = no; then 8406 runpath_var= 8407 hardcode_libdir_flag_spec= 8408 export_dynamic_flag_spec= 8409 whole_archive_flag_spec= 8410 fi 8411 else 8412 # PORTME fill in a description of your system's linker (not GNU ld) 8413 case $host_os in 8414 aix3*) 8415 allow_undefined_flag=unsupported 8416 always_export_symbols=yes 8417 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' 8418 # Note: this linker hardcodes the directories in LIBPATH if there 8419 # are no directories specified by -L. 8420 hardcode_minus_L=yes 8421 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8422 # Neither direct hardcoding nor static linking is supported with a 8423 # broken collect2. 8424 hardcode_direct=unsupported 8425 fi 8426 ;; 8427 8428 aix[4-9]*) 8429 if test "$host_cpu" = ia64; then 8430 # On IA64, the linker does run time linking by default, so we don't 8431 # have to do anything special. 8432 aix_use_runtimelinking=no 8433 exp_sym_flag='-Bexport' 8434 no_entry_flag="" 8435 else 8436 # If we're using GNU nm, then we don't want the "-C" option. 8437 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8438 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8439 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' 8440 else 8441 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' 8442 fi 8443 aix_use_runtimelinking=no 8444 8445 # Test if we are trying to use run time linking or normal 8446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8447 # need to do runtime linking. 8448 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8449 for ld_flag in $LDFLAGS; do 8450 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8451 aix_use_runtimelinking=yes 8452 break 8453 fi 8454 done 8455 ;; 8456 esac 8457 8458 exp_sym_flag='-bexport' 8459 no_entry_flag='-bnoentry' 8460 fi 8461 8462 # When large executables or shared objects are built, AIX ld can 8463 # have problems creating the table of contents. If linking a library 8464 # or program results in "error TOC overflow" add -mminimal-toc to 8465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8467 8468 archive_cmds='' 8469 hardcode_direct=yes 8470 hardcode_direct_absolute=yes 8471 hardcode_libdir_separator=':' 8472 link_all_deplibs=yes 8473 file_list_spec='${wl}-f,' 8474 8475 if test "$GCC" = yes; then 8476 case $host_os in aix4.[012]|aix4.[012].*) 8477 # We only want to do this on AIX 4.2 and lower, the check 8478 # below for broken collect2 doesn't work under 4.3+ 8479 collect2name=`${CC} -print-prog-name=collect2` 8480 if test -f "$collect2name" && 8481 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8482 then 8483 # We have reworked collect2 8484 : 8485 else 8486 # We have old collect2 8487 hardcode_direct=unsupported 8488 # It fails to find uninstalled libraries when the uninstalled 8489 # path is not listed in the libpath. Setting hardcode_minus_L 8490 # to unsupported forces relinking 8491 hardcode_minus_L=yes 8492 hardcode_libdir_flag_spec='-L$libdir' 8493 hardcode_libdir_separator= 8494 fi 8495 ;; 8496 esac 8497 shared_flag='-shared' 8498 if test "$aix_use_runtimelinking" = yes; then 8499 shared_flag="$shared_flag "'${wl}-G' 8500 fi 8501 else 8502 # not using gcc 8503 if test "$host_cpu" = ia64; then 8504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8505 # chokes on -Wl,-G. The following line is correct: 8506 shared_flag='-G' 8507 else 8508 if test "$aix_use_runtimelinking" = yes; then 8509 shared_flag='${wl}-G' 8510 else 8511 shared_flag='${wl}-bM:SRE' 8512 fi 8513 fi 8514 fi 8515 8516 export_dynamic_flag_spec='${wl}-bexpall' 8517 # It seems that -bexpall does not export symbols beginning with 8518 # underscore (_), so it is better to generate a list of symbols to export. 8519 always_export_symbols=yes 8520 if test "$aix_use_runtimelinking" = yes; then 8521 # Warning - without using the other runtime loading flags (-brtl), 8522 # -berok will link without error, but may produce a broken library. 8523 allow_undefined_flag='-berok' 8524 # Determine the default libpath from the value encoded in an 8525 # empty executable. 8526 cat >conftest.$ac_ext <<_ACEOF 8527/* confdefs.h. */ 8528_ACEOF 8529cat confdefs.h >>conftest.$ac_ext 8530cat >>conftest.$ac_ext <<_ACEOF 8531/* end confdefs.h. */ 8532 8533int 8534main () 8535{ 8536 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541rm -f conftest.$ac_objext conftest$ac_exeext 8542if { (ac_try="$ac_link" 8543case "(($ac_try" in 8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8545 *) ac_try_echo=$ac_try;; 8546esac 8547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8548$as_echo "$ac_try_echo") >&5 8549 (eval "$ac_link") 2>conftest.er1 8550 ac_status=$? 8551 grep -v '^ *+' conftest.er1 >conftest.err 8552 rm -f conftest.er1 8553 cat conftest.err >&5 8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8555 (exit $ac_status); } && { 8556 test -z "$ac_c_werror_flag" || 8557 test ! -s conftest.err 8558 } && test -s conftest$ac_exeext && { 8559 test "$cross_compiling" = yes || 8560 $as_test_x conftest$ac_exeext 8561 }; then 8562 8563lt_aix_libpath_sed=' 8564 /Import File Strings/,/^$/ { 8565 /^0/ { 8566 s/^0 *\(.*\)$/\1/ 8567 p 8568 } 8569 }' 8570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8571# Check for a 64-bit object if we didn't find anything. 8572if test -z "$aix_libpath"; then 8573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8574fi 8575else 8576 $as_echo "$as_me: failed program was:" >&5 8577sed 's/^/| /' conftest.$ac_ext >&5 8578 8579 8580fi 8581 8582rm -rf conftest.dSYM 8583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8584 conftest$ac_exeext conftest.$ac_ext 8585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8586 8587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8588 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" 8589 else 8590 if test "$host_cpu" = ia64; then 8591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8592 allow_undefined_flag="-z nodefs" 8593 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" 8594 else 8595 # Determine the default libpath from the value encoded in an 8596 # empty executable. 8597 cat >conftest.$ac_ext <<_ACEOF 8598/* confdefs.h. */ 8599_ACEOF 8600cat confdefs.h >>conftest.$ac_ext 8601cat >>conftest.$ac_ext <<_ACEOF 8602/* end confdefs.h. */ 8603 8604int 8605main () 8606{ 8607 8608 ; 8609 return 0; 8610} 8611_ACEOF 8612rm -f conftest.$ac_objext conftest$ac_exeext 8613if { (ac_try="$ac_link" 8614case "(($ac_try" in 8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8616 *) ac_try_echo=$ac_try;; 8617esac 8618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8619$as_echo "$ac_try_echo") >&5 8620 (eval "$ac_link") 2>conftest.er1 8621 ac_status=$? 8622 grep -v '^ *+' conftest.er1 >conftest.err 8623 rm -f conftest.er1 8624 cat conftest.err >&5 8625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8626 (exit $ac_status); } && { 8627 test -z "$ac_c_werror_flag" || 8628 test ! -s conftest.err 8629 } && test -s conftest$ac_exeext && { 8630 test "$cross_compiling" = yes || 8631 $as_test_x conftest$ac_exeext 8632 }; then 8633 8634lt_aix_libpath_sed=' 8635 /Import File Strings/,/^$/ { 8636 /^0/ { 8637 s/^0 *\(.*\)$/\1/ 8638 p 8639 } 8640 }' 8641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8642# Check for a 64-bit object if we didn't find anything. 8643if test -z "$aix_libpath"; then 8644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8645fi 8646else 8647 $as_echo "$as_me: failed program was:" >&5 8648sed 's/^/| /' conftest.$ac_ext >&5 8649 8650 8651fi 8652 8653rm -rf conftest.dSYM 8654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8655 conftest$ac_exeext conftest.$ac_ext 8656if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8657 8658 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8659 # Warning - without using the other run time loading flags, 8660 # -berok will link without error, but may produce a broken library. 8661 no_undefined_flag=' ${wl}-bernotok' 8662 allow_undefined_flag=' ${wl}-berok' 8663 # Exported symbols can be pulled into shared objects from archives 8664 whole_archive_flag_spec='$convenience' 8665 archive_cmds_need_lc=yes 8666 # This is similar to how AIX traditionally builds its shared libraries. 8667 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' 8668 fi 8669 fi 8670 ;; 8671 8672 amigaos*) 8673 case $host_cpu in 8674 powerpc) 8675 # see comment about AmigaOS4 .so support 8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8677 archive_expsym_cmds='' 8678 ;; 8679 m68k) 8680 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)' 8681 hardcode_libdir_flag_spec='-L$libdir' 8682 hardcode_minus_L=yes 8683 ;; 8684 esac 8685 ;; 8686 8687 bsdi[45]*) 8688 export_dynamic_flag_spec=-rdynamic 8689 ;; 8690 8691 cygwin* | mingw* | pw32* | cegcc*) 8692 # When not using gcc, we currently assume that we are using 8693 # Microsoft Visual C++. 8694 # hardcode_libdir_flag_spec is actually meaningless, as there is 8695 # no search path for DLLs. 8696 hardcode_libdir_flag_spec=' ' 8697 allow_undefined_flag=unsupported 8698 # Tell ltmain to make .lib files, not .a files. 8699 libext=lib 8700 # Tell ltmain to make .dll files, not .so files. 8701 shrext_cmds=".dll" 8702 # FIXME: Setting linknames here is a bad hack. 8703 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8704 # The linker will automatically build a .lib file if we build a DLL. 8705 old_archive_from_new_cmds='true' 8706 # FIXME: Should let the user specify the lib program. 8707 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8708 fix_srcfile_path='`cygpath -w "$srcfile"`' 8709 enable_shared_with_static_runtimes=yes 8710 ;; 8711 8712 darwin* | rhapsody*) 8713 8714 8715 archive_cmds_need_lc=no 8716 hardcode_direct=no 8717 hardcode_automatic=yes 8718 hardcode_shlibpath_var=unsupported 8719 whole_archive_flag_spec='' 8720 link_all_deplibs=yes 8721 allow_undefined_flag="$_lt_dar_allow_undefined" 8722 case $cc_basename in 8723 ifort*) _lt_dar_can_shared=yes ;; 8724 *) _lt_dar_can_shared=$GCC ;; 8725 esac 8726 if test "$_lt_dar_can_shared" = "yes"; then 8727 output_verbose_link_cmd=echo 8728 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8729 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8730 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}" 8731 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}" 8732 8733 else 8734 ld_shlibs=no 8735 fi 8736 8737 ;; 8738 8739 dgux*) 8740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8741 hardcode_libdir_flag_spec='-L$libdir' 8742 hardcode_shlibpath_var=no 8743 ;; 8744 8745 freebsd1*) 8746 ld_shlibs=no 8747 ;; 8748 8749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8750 # support. Future versions do this automatically, but an explicit c++rt0.o 8751 # does not break anything, and helps significantly (at the cost of a little 8752 # extra space). 8753 freebsd2.2*) 8754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8755 hardcode_libdir_flag_spec='-R$libdir' 8756 hardcode_direct=yes 8757 hardcode_shlibpath_var=no 8758 ;; 8759 8760 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8761 freebsd2*) 8762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8763 hardcode_direct=yes 8764 hardcode_minus_L=yes 8765 hardcode_shlibpath_var=no 8766 ;; 8767 8768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8769 freebsd* | dragonfly*) 8770 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8771 hardcode_libdir_flag_spec='-R$libdir' 8772 hardcode_direct=yes 8773 hardcode_shlibpath_var=no 8774 ;; 8775 8776 hpux9*) 8777 if test "$GCC" = yes; then 8778 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' 8779 else 8780 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' 8781 fi 8782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8783 hardcode_libdir_separator=: 8784 hardcode_direct=yes 8785 8786 # hardcode_minus_L: Not really in the search PATH, 8787 # but as the default location of the library. 8788 hardcode_minus_L=yes 8789 export_dynamic_flag_spec='${wl}-E' 8790 ;; 8791 8792 hpux10*) 8793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8795 else 8796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8797 fi 8798 if test "$with_gnu_ld" = no; then 8799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8800 hardcode_libdir_flag_spec_ld='+b $libdir' 8801 hardcode_libdir_separator=: 8802 hardcode_direct=yes 8803 hardcode_direct_absolute=yes 8804 export_dynamic_flag_spec='${wl}-E' 8805 # hardcode_minus_L: Not really in the search PATH, 8806 # but as the default location of the library. 8807 hardcode_minus_L=yes 8808 fi 8809 ;; 8810 8811 hpux11*) 8812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8813 case $host_cpu in 8814 hppa*64*) 8815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8816 ;; 8817 ia64*) 8818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8819 ;; 8820 *) 8821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8822 ;; 8823 esac 8824 else 8825 case $host_cpu in 8826 hppa*64*) 8827 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8828 ;; 8829 ia64*) 8830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8831 ;; 8832 *) 8833 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8834 ;; 8835 esac 8836 fi 8837 if test "$with_gnu_ld" = no; then 8838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8839 hardcode_libdir_separator=: 8840 8841 case $host_cpu in 8842 hppa*64*|ia64*) 8843 hardcode_direct=no 8844 hardcode_shlibpath_var=no 8845 ;; 8846 *) 8847 hardcode_direct=yes 8848 hardcode_direct_absolute=yes 8849 export_dynamic_flag_spec='${wl}-E' 8850 8851 # hardcode_minus_L: Not really in the search PATH, 8852 # but as the default location of the library. 8853 hardcode_minus_L=yes 8854 ;; 8855 esac 8856 fi 8857 ;; 8858 8859 irix5* | irix6* | nonstopux*) 8860 if test "$GCC" = yes; then 8861 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' 8862 # Try to use the -exported_symbol ld option, if it does not 8863 # work, assume that -exports_file does not work either and 8864 # implicitly export all symbols. 8865 save_LDFLAGS="$LDFLAGS" 8866 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8867 cat >conftest.$ac_ext <<_ACEOF 8868int foo(void) {} 8869_ACEOF 8870rm -f conftest.$ac_objext conftest$ac_exeext 8871if { (ac_try="$ac_link" 8872case "(($ac_try" in 8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8874 *) ac_try_echo=$ac_try;; 8875esac 8876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8877$as_echo "$ac_try_echo") >&5 8878 (eval "$ac_link") 2>conftest.er1 8879 ac_status=$? 8880 grep -v '^ *+' conftest.er1 >conftest.err 8881 rm -f conftest.er1 8882 cat conftest.err >&5 8883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8884 (exit $ac_status); } && { 8885 test -z "$ac_c_werror_flag" || 8886 test ! -s conftest.err 8887 } && test -s conftest$ac_exeext && { 8888 test "$cross_compiling" = yes || 8889 $as_test_x conftest$ac_exeext 8890 }; then 8891 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' 8892 8893else 8894 $as_echo "$as_me: failed program was:" >&5 8895sed 's/^/| /' conftest.$ac_ext >&5 8896 8897 8898fi 8899 8900rm -rf conftest.dSYM 8901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8902 conftest$ac_exeext conftest.$ac_ext 8903 LDFLAGS="$save_LDFLAGS" 8904 else 8905 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' 8906 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' 8907 fi 8908 archive_cmds_need_lc='no' 8909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8910 hardcode_libdir_separator=: 8911 inherit_rpath=yes 8912 link_all_deplibs=yes 8913 ;; 8914 8915 netbsd*) 8916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8918 else 8919 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8920 fi 8921 hardcode_libdir_flag_spec='-R$libdir' 8922 hardcode_direct=yes 8923 hardcode_shlibpath_var=no 8924 ;; 8925 8926 newsos6) 8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8928 hardcode_direct=yes 8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8930 hardcode_libdir_separator=: 8931 hardcode_shlibpath_var=no 8932 ;; 8933 8934 *nto* | *qnx*) 8935 ;; 8936 8937 openbsd*) 8938 if test -f /usr/libexec/ld.so; then 8939 hardcode_direct=yes 8940 hardcode_shlibpath_var=no 8941 hardcode_direct_absolute=yes 8942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8944 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8946 export_dynamic_flag_spec='${wl}-E' 8947 else 8948 case $host_os in 8949 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8951 hardcode_libdir_flag_spec='-R$libdir' 8952 ;; 8953 *) 8954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8955 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8956 ;; 8957 esac 8958 fi 8959 else 8960 ld_shlibs=no 8961 fi 8962 ;; 8963 8964 os2*) 8965 hardcode_libdir_flag_spec='-L$libdir' 8966 hardcode_minus_L=yes 8967 allow_undefined_flag=unsupported 8968 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' 8969 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8970 ;; 8971 8972 osf3*) 8973 if test "$GCC" = yes; then 8974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8975 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' 8976 else 8977 allow_undefined_flag=' -expect_unresolved \*' 8978 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' 8979 fi 8980 archive_cmds_need_lc='no' 8981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8982 hardcode_libdir_separator=: 8983 ;; 8984 8985 osf4* | osf5*) # as osf3* with the addition of -msym flag 8986 if test "$GCC" = yes; then 8987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8988 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' 8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8990 else 8991 allow_undefined_flag=' -expect_unresolved \*' 8992 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' 8993 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~ 8994 $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' 8995 8996 # Both c and cxx compiler support -rpath directly 8997 hardcode_libdir_flag_spec='-rpath $libdir' 8998 fi 8999 archive_cmds_need_lc='no' 9000 hardcode_libdir_separator=: 9001 ;; 9002 9003 solaris*) 9004 no_undefined_flag=' -z defs' 9005 if test "$GCC" = yes; then 9006 wlarc='${wl}' 9007 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9009 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9010 else 9011 case `$CC -V 2>&1` in 9012 *"Compilers 5.0"*) 9013 wlarc='' 9014 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9017 ;; 9018 *) 9019 wlarc='${wl}' 9020 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9022 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9023 ;; 9024 esac 9025 fi 9026 hardcode_libdir_flag_spec='-R$libdir' 9027 hardcode_shlibpath_var=no 9028 case $host_os in 9029 solaris2.[0-5] | solaris2.[0-5].*) ;; 9030 *) 9031 # The compiler driver will combine and reorder linker options, 9032 # but understands `-z linker_flag'. GCC discards it without `$wl', 9033 # but is careful enough not to reorder. 9034 # Supported since Solaris 2.6 (maybe 2.5.1?) 9035 if test "$GCC" = yes; then 9036 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9037 else 9038 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9039 fi 9040 ;; 9041 esac 9042 link_all_deplibs=yes 9043 ;; 9044 9045 sunos4*) 9046 if test "x$host_vendor" = xsequent; then 9047 # Use $CC to link under sequent, because it throws in some extra .o 9048 # files that make .init and .fini sections work. 9049 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9050 else 9051 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9052 fi 9053 hardcode_libdir_flag_spec='-L$libdir' 9054 hardcode_direct=yes 9055 hardcode_minus_L=yes 9056 hardcode_shlibpath_var=no 9057 ;; 9058 9059 sysv4) 9060 case $host_vendor in 9061 sni) 9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9063 hardcode_direct=yes # is this really true??? 9064 ;; 9065 siemens) 9066 ## LD is ld it makes a PLAMLIB 9067 ## CC just makes a GrossModule. 9068 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9069 reload_cmds='$CC -r -o $output$reload_objs' 9070 hardcode_direct=no 9071 ;; 9072 motorola) 9073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9074 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9075 ;; 9076 esac 9077 runpath_var='LD_RUN_PATH' 9078 hardcode_shlibpath_var=no 9079 ;; 9080 9081 sysv4.3*) 9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9083 hardcode_shlibpath_var=no 9084 export_dynamic_flag_spec='-Bexport' 9085 ;; 9086 9087 sysv4*MP*) 9088 if test -d /usr/nec; then 9089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9090 hardcode_shlibpath_var=no 9091 runpath_var=LD_RUN_PATH 9092 hardcode_runpath_var=yes 9093 ld_shlibs=yes 9094 fi 9095 ;; 9096 9097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9098 no_undefined_flag='${wl}-z,text' 9099 archive_cmds_need_lc=no 9100 hardcode_shlibpath_var=no 9101 runpath_var='LD_RUN_PATH' 9102 9103 if test "$GCC" = yes; then 9104 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9105 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9106 else 9107 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9108 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9109 fi 9110 ;; 9111 9112 sysv5* | sco3.2v5* | sco5v6*) 9113 # Note: We can NOT use -z defs as we might desire, because we do not 9114 # link with -lc, and that would cause any symbols used from libc to 9115 # always be unresolved, which means just about no library would 9116 # ever link correctly. If we're not using GNU ld we use -z text 9117 # though, which does catch some bad symbols but isn't as heavy-handed 9118 # as -z defs. 9119 no_undefined_flag='${wl}-z,text' 9120 allow_undefined_flag='${wl}-z,nodefs' 9121 archive_cmds_need_lc=no 9122 hardcode_shlibpath_var=no 9123 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9124 hardcode_libdir_separator=':' 9125 link_all_deplibs=yes 9126 export_dynamic_flag_spec='${wl}-Bexport' 9127 runpath_var='LD_RUN_PATH' 9128 9129 if test "$GCC" = yes; then 9130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9132 else 9133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9135 fi 9136 ;; 9137 9138 uts4*) 9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9140 hardcode_libdir_flag_spec='-L$libdir' 9141 hardcode_shlibpath_var=no 9142 ;; 9143 9144 *) 9145 ld_shlibs=no 9146 ;; 9147 esac 9148 9149 if test x$host_vendor = xsni; then 9150 case $host in 9151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9152 export_dynamic_flag_spec='${wl}-Blargedynsym' 9153 ;; 9154 esac 9155 fi 9156 fi 9157 9158{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9159$as_echo "$ld_shlibs" >&6; } 9160test "$ld_shlibs" = no && can_build_shared=no 9161 9162with_gnu_ld=$with_gnu_ld 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178# 9179# Do we need to explicitly link libc? 9180# 9181case "x$archive_cmds_need_lc" in 9182x|xyes) 9183 # Assume -lc should be added 9184 archive_cmds_need_lc=yes 9185 9186 if test "$enable_shared" = yes && test "$GCC" = yes; then 9187 case $archive_cmds in 9188 *'~'*) 9189 # FIXME: we may have to deal with multi-command sequences. 9190 ;; 9191 '$CC '*) 9192 # Test whether the compiler implicitly links with -lc since on some 9193 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9194 # to ld, don't add -lc before -lgcc. 9195 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9196$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9197 $RM conftest* 9198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9199 9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9201 (eval $ac_compile) 2>&5 9202 ac_status=$? 9203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9204 (exit $ac_status); } 2>conftest.err; then 9205 soname=conftest 9206 lib=conftest 9207 libobjs=conftest.$ac_objext 9208 deplibs= 9209 wl=$lt_prog_compiler_wl 9210 pic_flag=$lt_prog_compiler_pic 9211 compiler_flags=-v 9212 linker_flags=-v 9213 verstring= 9214 output_objdir=. 9215 libname=conftest 9216 lt_save_allow_undefined_flag=$allow_undefined_flag 9217 allow_undefined_flag= 9218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9219 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9220 ac_status=$? 9221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 (exit $ac_status); } 9223 then 9224 archive_cmds_need_lc=no 9225 else 9226 archive_cmds_need_lc=yes 9227 fi 9228 allow_undefined_flag=$lt_save_allow_undefined_flag 9229 else 9230 cat conftest.err 1>&5 9231 fi 9232 $RM conftest* 9233 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9234$as_echo "$archive_cmds_need_lc" >&6; } 9235 ;; 9236 esac 9237 fi 9238 ;; 9239esac 9240 9241 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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9398$as_echo_n "checking dynamic linker characteristics... " >&6; } 9399 9400if test "$GCC" = yes; then 9401 case $host_os in 9402 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9403 *) lt_awk_arg="/^libraries:/" ;; 9404 esac 9405 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9406 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9407 # if the path contains ";" then we assume it to be the separator 9408 # otherwise default to the standard path separator (i.e. ":") - it is 9409 # assumed that no part of a normal pathname contains ";" but that should 9410 # okay in the real world where ";" in dirpaths is itself problematic. 9411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9412 else 9413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9414 fi 9415 # Ok, now we have the path, separated by spaces, we can step through it 9416 # and add multilib dir if necessary. 9417 lt_tmp_lt_search_path_spec= 9418 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9419 for lt_sys_path in $lt_search_path_spec; do 9420 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9422 else 9423 test -d "$lt_sys_path" && \ 9424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9425 fi 9426 done 9427 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9428BEGIN {RS=" "; FS="/|\n";} { 9429 lt_foo=""; 9430 lt_count=0; 9431 for (lt_i = NF; lt_i > 0; lt_i--) { 9432 if ($lt_i != "" && $lt_i != ".") { 9433 if ($lt_i == "..") { 9434 lt_count++; 9435 } else { 9436 if (lt_count == 0) { 9437 lt_foo="/" $lt_i lt_foo; 9438 } else { 9439 lt_count--; 9440 } 9441 } 9442 } 9443 } 9444 if (lt_foo != "") { lt_freq[lt_foo]++; } 9445 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9446}'` 9447 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9448else 9449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9450fi 9451library_names_spec= 9452libname_spec='lib$name' 9453soname_spec= 9454shrext_cmds=".so" 9455postinstall_cmds= 9456postuninstall_cmds= 9457finish_cmds= 9458finish_eval= 9459shlibpath_var= 9460shlibpath_overrides_runpath=unknown 9461version_type=none 9462dynamic_linker="$host_os ld.so" 9463sys_lib_dlsearch_path_spec="/lib /usr/lib" 9464need_lib_prefix=unknown 9465hardcode_into_libs=no 9466 9467# when you set need_version to no, make sure it does not cause -set_version 9468# flags to be left without arguments 9469need_version=unknown 9470 9471case $host_os in 9472aix3*) 9473 version_type=linux 9474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9475 shlibpath_var=LIBPATH 9476 9477 # AIX 3 has no versioning support, so we append a major version to the name. 9478 soname_spec='${libname}${release}${shared_ext}$major' 9479 ;; 9480 9481aix[4-9]*) 9482 version_type=linux 9483 need_lib_prefix=no 9484 need_version=no 9485 hardcode_into_libs=yes 9486 if test "$host_cpu" = ia64; then 9487 # AIX 5 supports IA64 9488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9489 shlibpath_var=LD_LIBRARY_PATH 9490 else 9491 # With GCC up to 2.95.x, collect2 would create an import file 9492 # for dependence libraries. The import file would start with 9493 # the line `#! .'. This would cause the generated library to 9494 # depend on `.', always an invalid library. This was fixed in 9495 # development snapshots of GCC prior to 3.0. 9496 case $host_os in 9497 aix4 | aix4.[01] | aix4.[01].*) 9498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9499 echo ' yes ' 9500 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9501 : 9502 else 9503 can_build_shared=no 9504 fi 9505 ;; 9506 esac 9507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9508 # soname into executable. Probably we can add versioning support to 9509 # collect2, so additional links can be useful in future. 9510 if test "$aix_use_runtimelinking" = yes; then 9511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9512 # instead of lib<name>.a to let people know that these are not 9513 # typical AIX shared libraries. 9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9515 else 9516 # We preserve .a as extension for shared libraries through AIX4.2 9517 # and later when we are not doing run time linking. 9518 library_names_spec='${libname}${release}.a $libname.a' 9519 soname_spec='${libname}${release}${shared_ext}$major' 9520 fi 9521 shlibpath_var=LIBPATH 9522 fi 9523 ;; 9524 9525amigaos*) 9526 case $host_cpu in 9527 powerpc) 9528 # Since July 2007 AmigaOS4 officially supports .so libraries. 9529 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9531 ;; 9532 m68k) 9533 library_names_spec='$libname.ixlibrary $libname.a' 9534 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9535 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' 9536 ;; 9537 esac 9538 ;; 9539 9540beos*) 9541 library_names_spec='${libname}${shared_ext}' 9542 dynamic_linker="$host_os ld.so" 9543 shlibpath_var=LIBRARY_PATH 9544 ;; 9545 9546bsdi[45]*) 9547 version_type=linux 9548 need_version=no 9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9550 soname_spec='${libname}${release}${shared_ext}$major' 9551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9552 shlibpath_var=LD_LIBRARY_PATH 9553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9555 # the default ld.so.conf also contains /usr/contrib/lib and 9556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9557 # libtool to hard-code these into programs 9558 ;; 9559 9560cygwin* | mingw* | pw32* | cegcc*) 9561 version_type=windows 9562 shrext_cmds=".dll" 9563 need_version=no 9564 need_lib_prefix=no 9565 9566 case $GCC,$host_os in 9567 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9568 library_names_spec='$libname.dll.a' 9569 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9570 postinstall_cmds='base_file=`basename \${file}`~ 9571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9572 dldir=$destdir/`dirname \$dlpath`~ 9573 test -d \$dldir || mkdir -p \$dldir~ 9574 $install_prog $dir/$dlname \$dldir/$dlname~ 9575 chmod a+x \$dldir/$dlname~ 9576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9578 fi' 9579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9580 dlpath=$dir/\$dldll~ 9581 $RM \$dlpath' 9582 shlibpath_overrides_runpath=yes 9583 9584 case $host_os in 9585 cygwin*) 9586 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9589 ;; 9590 mingw* | cegcc*) 9591 # MinGW DLLs use traditional 'lib' prefix 9592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9593 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9594 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9595 # It is most probably a Windows format PATH printed by 9596 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9597 # path with ; separators, and with drive letters. We can handle the 9598 # drive letters (cygwin fileutils understands them), so leave them, 9599 # especially as we might pass files found there to a mingw objdump, 9600 # which wouldn't understand a cygwinified path. Ahh. 9601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9602 else 9603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9604 fi 9605 ;; 9606 pw32*) 9607 # pw32 DLLs use 'pw' prefix rather than 'lib' 9608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9609 ;; 9610 esac 9611 ;; 9612 9613 *) 9614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9615 ;; 9616 esac 9617 dynamic_linker='Win32 ld.exe' 9618 # FIXME: first we should search . and the directory the executable is in 9619 shlibpath_var=PATH 9620 ;; 9621 9622darwin* | rhapsody*) 9623 dynamic_linker="$host_os dyld" 9624 version_type=darwin 9625 need_lib_prefix=no 9626 need_version=no 9627 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9628 soname_spec='${libname}${release}${major}$shared_ext' 9629 shlibpath_overrides_runpath=yes 9630 shlibpath_var=DYLD_LIBRARY_PATH 9631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9632 9633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9634 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9635 ;; 9636 9637dgux*) 9638 version_type=linux 9639 need_lib_prefix=no 9640 need_version=no 9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9642 soname_spec='${libname}${release}${shared_ext}$major' 9643 shlibpath_var=LD_LIBRARY_PATH 9644 ;; 9645 9646freebsd1*) 9647 dynamic_linker=no 9648 ;; 9649 9650freebsd* | dragonfly*) 9651 # DragonFly does not have aout. When/if they implement a new 9652 # versioning mechanism, adjust this. 9653 if test -x /usr/bin/objformat; then 9654 objformat=`/usr/bin/objformat` 9655 else 9656 case $host_os in 9657 freebsd[123]*) objformat=aout ;; 9658 *) objformat=elf ;; 9659 esac 9660 fi 9661 version_type=freebsd-$objformat 9662 case $version_type in 9663 freebsd-elf*) 9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9665 need_version=no 9666 need_lib_prefix=no 9667 ;; 9668 freebsd-*) 9669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9670 need_version=yes 9671 ;; 9672 esac 9673 shlibpath_var=LD_LIBRARY_PATH 9674 case $host_os in 9675 freebsd2*) 9676 shlibpath_overrides_runpath=yes 9677 ;; 9678 freebsd3.[01]* | freebsdelf3.[01]*) 9679 shlibpath_overrides_runpath=yes 9680 hardcode_into_libs=yes 9681 ;; 9682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9684 shlibpath_overrides_runpath=no 9685 hardcode_into_libs=yes 9686 ;; 9687 *) # from 4.6 on, and DragonFly 9688 shlibpath_overrides_runpath=yes 9689 hardcode_into_libs=yes 9690 ;; 9691 esac 9692 ;; 9693 9694gnu*) 9695 version_type=linux 9696 need_lib_prefix=no 9697 need_version=no 9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9699 soname_spec='${libname}${release}${shared_ext}$major' 9700 shlibpath_var=LD_LIBRARY_PATH 9701 hardcode_into_libs=yes 9702 ;; 9703 9704hpux9* | hpux10* | hpux11*) 9705 # Give a soname corresponding to the major version so that dld.sl refuses to 9706 # link against other versions. 9707 version_type=sunos 9708 need_lib_prefix=no 9709 need_version=no 9710 case $host_cpu in 9711 ia64*) 9712 shrext_cmds='.so' 9713 hardcode_into_libs=yes 9714 dynamic_linker="$host_os dld.so" 9715 shlibpath_var=LD_LIBRARY_PATH 9716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9718 soname_spec='${libname}${release}${shared_ext}$major' 9719 if test "X$HPUX_IA64_MODE" = X32; then 9720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9721 else 9722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9723 fi 9724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9725 ;; 9726 hppa*64*) 9727 shrext_cmds='.sl' 9728 hardcode_into_libs=yes 9729 dynamic_linker="$host_os dld.sl" 9730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9733 soname_spec='${libname}${release}${shared_ext}$major' 9734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9736 ;; 9737 *) 9738 shrext_cmds='.sl' 9739 dynamic_linker="$host_os dld.sl" 9740 shlibpath_var=SHLIB_PATH 9741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9743 soname_spec='${libname}${release}${shared_ext}$major' 9744 ;; 9745 esac 9746 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9747 postinstall_cmds='chmod 555 $lib' 9748 ;; 9749 9750interix[3-9]*) 9751 version_type=linux 9752 need_lib_prefix=no 9753 need_version=no 9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9755 soname_spec='${libname}${release}${shared_ext}$major' 9756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9757 shlibpath_var=LD_LIBRARY_PATH 9758 shlibpath_overrides_runpath=no 9759 hardcode_into_libs=yes 9760 ;; 9761 9762irix5* | irix6* | nonstopux*) 9763 case $host_os in 9764 nonstopux*) version_type=nonstopux ;; 9765 *) 9766 if test "$lt_cv_prog_gnu_ld" = yes; then 9767 version_type=linux 9768 else 9769 version_type=irix 9770 fi ;; 9771 esac 9772 need_lib_prefix=no 9773 need_version=no 9774 soname_spec='${libname}${release}${shared_ext}$major' 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9776 case $host_os in 9777 irix5* | nonstopux*) 9778 libsuff= shlibsuff= 9779 ;; 9780 *) 9781 case $LD in # libtool.m4 will add one of these switches to LD 9782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9783 libsuff= shlibsuff= libmagic=32-bit;; 9784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9785 libsuff=32 shlibsuff=N32 libmagic=N32;; 9786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9787 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9788 *) libsuff= shlibsuff= libmagic=never-match;; 9789 esac 9790 ;; 9791 esac 9792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9793 shlibpath_overrides_runpath=no 9794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9796 hardcode_into_libs=yes 9797 ;; 9798 9799# No shared lib support for Linux oldld, aout, or coff. 9800linux*oldld* | linux*aout* | linux*coff*) 9801 dynamic_linker=no 9802 ;; 9803 9804# This must be Linux ELF. 9805linux* | k*bsd*-gnu) 9806 version_type=linux 9807 need_lib_prefix=no 9808 need_version=no 9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9810 soname_spec='${libname}${release}${shared_ext}$major' 9811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9812 shlibpath_var=LD_LIBRARY_PATH 9813 shlibpath_overrides_runpath=no 9814 # Some binutils ld are patched to set DT_RUNPATH 9815 save_LDFLAGS=$LDFLAGS 9816 save_libdir=$libdir 9817 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9818 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9819 cat >conftest.$ac_ext <<_ACEOF 9820/* confdefs.h. */ 9821_ACEOF 9822cat confdefs.h >>conftest.$ac_ext 9823cat >>conftest.$ac_ext <<_ACEOF 9824/* end confdefs.h. */ 9825 9826int 9827main () 9828{ 9829 9830 ; 9831 return 0; 9832} 9833_ACEOF 9834rm -f conftest.$ac_objext conftest$ac_exeext 9835if { (ac_try="$ac_link" 9836case "(($ac_try" in 9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9838 *) ac_try_echo=$ac_try;; 9839esac 9840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9841$as_echo "$ac_try_echo") >&5 9842 (eval "$ac_link") 2>conftest.er1 9843 ac_status=$? 9844 grep -v '^ *+' conftest.er1 >conftest.err 9845 rm -f conftest.er1 9846 cat conftest.err >&5 9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); } && { 9849 test -z "$ac_c_werror_flag" || 9850 test ! -s conftest.err 9851 } && test -s conftest$ac_exeext && { 9852 test "$cross_compiling" = yes || 9853 $as_test_x conftest$ac_exeext 9854 }; then 9855 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9856 shlibpath_overrides_runpath=yes 9857fi 9858 9859else 9860 $as_echo "$as_me: failed program was:" >&5 9861sed 's/^/| /' conftest.$ac_ext >&5 9862 9863 9864fi 9865 9866rm -rf conftest.dSYM 9867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9868 conftest$ac_exeext conftest.$ac_ext 9869 LDFLAGS=$save_LDFLAGS 9870 libdir=$save_libdir 9871 9872 # This implies no fast_install, which is unacceptable. 9873 # Some rework will be needed to allow for fast_install 9874 # before this can be enabled. 9875 hardcode_into_libs=yes 9876 9877 # Add ABI-specific directories to the system library path. 9878 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9879 9880 # Append ld.so.conf contents to the search path 9881 if test -f /etc/ld.so.conf; then 9882 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' ' '` 9883 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9884 fi 9885 9886 # We used to test for /lib/ld.so.1 and disable shared libraries on 9887 # powerpc, because MkLinux only supported shared libraries with the 9888 # GNU dynamic linker. Since this was broken with cross compilers, 9889 # most powerpc-linux boxes support dynamic linking these days and 9890 # people can always --disable-shared, the test was removed, and we 9891 # assume the GNU/Linux dynamic linker is in use. 9892 dynamic_linker='GNU/Linux ld.so' 9893 ;; 9894 9895netbsd*) 9896 version_type=sunos 9897 need_lib_prefix=no 9898 need_version=no 9899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9902 dynamic_linker='NetBSD (a.out) ld.so' 9903 else 9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9905 soname_spec='${libname}${release}${shared_ext}$major' 9906 dynamic_linker='NetBSD ld.elf_so' 9907 fi 9908 shlibpath_var=LD_LIBRARY_PATH 9909 shlibpath_overrides_runpath=yes 9910 hardcode_into_libs=yes 9911 ;; 9912 9913newsos6) 9914 version_type=linux 9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9916 shlibpath_var=LD_LIBRARY_PATH 9917 shlibpath_overrides_runpath=yes 9918 ;; 9919 9920*nto* | *qnx*) 9921 version_type=qnx 9922 need_lib_prefix=no 9923 need_version=no 9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9925 soname_spec='${libname}${release}${shared_ext}$major' 9926 shlibpath_var=LD_LIBRARY_PATH 9927 shlibpath_overrides_runpath=no 9928 hardcode_into_libs=yes 9929 dynamic_linker='ldqnx.so' 9930 ;; 9931 9932openbsd*) 9933 version_type=sunos 9934 sys_lib_dlsearch_path_spec="/usr/lib" 9935 need_lib_prefix=no 9936 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9937 case $host_os in 9938 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9939 *) need_version=no ;; 9940 esac 9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9943 shlibpath_var=LD_LIBRARY_PATH 9944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9945 case $host_os in 9946 openbsd2.[89] | openbsd2.[89].*) 9947 shlibpath_overrides_runpath=no 9948 ;; 9949 *) 9950 shlibpath_overrides_runpath=yes 9951 ;; 9952 esac 9953 else 9954 shlibpath_overrides_runpath=yes 9955 fi 9956 ;; 9957 9958os2*) 9959 libname_spec='$name' 9960 shrext_cmds=".dll" 9961 need_lib_prefix=no 9962 library_names_spec='$libname${shared_ext} $libname.a' 9963 dynamic_linker='OS/2 ld.exe' 9964 shlibpath_var=LIBPATH 9965 ;; 9966 9967osf3* | osf4* | osf5*) 9968 version_type=osf 9969 need_lib_prefix=no 9970 need_version=no 9971 soname_spec='${libname}${release}${shared_ext}$major' 9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9973 shlibpath_var=LD_LIBRARY_PATH 9974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9976 ;; 9977 9978rdos*) 9979 dynamic_linker=no 9980 ;; 9981 9982solaris*) 9983 version_type=linux 9984 need_lib_prefix=no 9985 need_version=no 9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9987 soname_spec='${libname}${release}${shared_ext}$major' 9988 shlibpath_var=LD_LIBRARY_PATH 9989 shlibpath_overrides_runpath=yes 9990 hardcode_into_libs=yes 9991 # ldd complains unless libraries are executable 9992 postinstall_cmds='chmod +x $lib' 9993 ;; 9994 9995sunos4*) 9996 version_type=sunos 9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9999 shlibpath_var=LD_LIBRARY_PATH 10000 shlibpath_overrides_runpath=yes 10001 if test "$with_gnu_ld" = yes; then 10002 need_lib_prefix=no 10003 fi 10004 need_version=yes 10005 ;; 10006 10007sysv4 | sysv4.3*) 10008 version_type=linux 10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10010 soname_spec='${libname}${release}${shared_ext}$major' 10011 shlibpath_var=LD_LIBRARY_PATH 10012 case $host_vendor in 10013 sni) 10014 shlibpath_overrides_runpath=no 10015 need_lib_prefix=no 10016 runpath_var=LD_RUN_PATH 10017 ;; 10018 siemens) 10019 need_lib_prefix=no 10020 ;; 10021 motorola) 10022 need_lib_prefix=no 10023 need_version=no 10024 shlibpath_overrides_runpath=no 10025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10026 ;; 10027 esac 10028 ;; 10029 10030sysv4*MP*) 10031 if test -d /usr/nec ;then 10032 version_type=linux 10033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10034 soname_spec='$libname${shared_ext}.$major' 10035 shlibpath_var=LD_LIBRARY_PATH 10036 fi 10037 ;; 10038 10039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10040 version_type=freebsd-elf 10041 need_lib_prefix=no 10042 need_version=no 10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10044 soname_spec='${libname}${release}${shared_ext}$major' 10045 shlibpath_var=LD_LIBRARY_PATH 10046 shlibpath_overrides_runpath=yes 10047 hardcode_into_libs=yes 10048 if test "$with_gnu_ld" = yes; then 10049 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10050 else 10051 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10052 case $host_os in 10053 sco3.2v5*) 10054 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10055 ;; 10056 esac 10057 fi 10058 sys_lib_dlsearch_path_spec='/usr/lib' 10059 ;; 10060 10061tpf*) 10062 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10063 version_type=linux 10064 need_lib_prefix=no 10065 need_version=no 10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10067 shlibpath_var=LD_LIBRARY_PATH 10068 shlibpath_overrides_runpath=no 10069 hardcode_into_libs=yes 10070 ;; 10071 10072uts4*) 10073 version_type=linux 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 soname_spec='${libname}${release}${shared_ext}$major' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 ;; 10078 10079*) 10080 dynamic_linker=no 10081 ;; 10082esac 10083{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10084$as_echo "$dynamic_linker" >&6; } 10085test "$dynamic_linker" = no && can_build_shared=no 10086 10087variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10088if test "$GCC" = yes; then 10089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10090fi 10091 10092if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10093 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10094fi 10095if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10096 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10097fi 10098 10099 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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10186$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10187hardcode_action= 10188if test -n "$hardcode_libdir_flag_spec" || 10189 test -n "$runpath_var" || 10190 test "X$hardcode_automatic" = "Xyes" ; then 10191 10192 # We can hardcode non-existent directories. 10193 if test "$hardcode_direct" != no && 10194 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10195 # have to relink, otherwise we might link with an installed library 10196 # when we should be linking with a yet-to-be-installed one 10197 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10198 test "$hardcode_minus_L" != no; then 10199 # Linking always hardcodes the temporary library directory. 10200 hardcode_action=relink 10201 else 10202 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10203 hardcode_action=immediate 10204 fi 10205else 10206 # We cannot hardcode anything, or else we can only hardcode existing 10207 # directories. 10208 hardcode_action=unsupported 10209fi 10210{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10211$as_echo "$hardcode_action" >&6; } 10212 10213if test "$hardcode_action" = relink || 10214 test "$inherit_rpath" = yes; then 10215 # Fast installation is not supported 10216 enable_fast_install=no 10217elif test "$shlibpath_overrides_runpath" = yes || 10218 test "$enable_shared" = no; then 10219 # Fast installation is not necessary 10220 enable_fast_install=needless 10221fi 10222 10223 10224 10225 10226 10227 10228 if test "x$enable_dlopen" != xyes; then 10229 enable_dlopen=unknown 10230 enable_dlopen_self=unknown 10231 enable_dlopen_self_static=unknown 10232else 10233 lt_cv_dlopen=no 10234 lt_cv_dlopen_libs= 10235 10236 case $host_os in 10237 beos*) 10238 lt_cv_dlopen="load_add_on" 10239 lt_cv_dlopen_libs= 10240 lt_cv_dlopen_self=yes 10241 ;; 10242 10243 mingw* | pw32* | cegcc*) 10244 lt_cv_dlopen="LoadLibrary" 10245 lt_cv_dlopen_libs= 10246 ;; 10247 10248 cygwin*) 10249 lt_cv_dlopen="dlopen" 10250 lt_cv_dlopen_libs= 10251 ;; 10252 10253 darwin*) 10254 # if libdl is installed we need to link against it 10255 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10256$as_echo_n "checking for dlopen in -ldl... " >&6; } 10257if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10258 $as_echo_n "(cached) " >&6 10259else 10260 ac_check_lib_save_LIBS=$LIBS 10261LIBS="-ldl $LIBS" 10262cat >conftest.$ac_ext <<_ACEOF 10263/* confdefs.h. */ 10264_ACEOF 10265cat confdefs.h >>conftest.$ac_ext 10266cat >>conftest.$ac_ext <<_ACEOF 10267/* end confdefs.h. */ 10268 10269/* Override any GCC internal prototype to avoid an error. 10270 Use char because int might match the return type of a GCC 10271 builtin and then its argument prototype would still apply. */ 10272#ifdef __cplusplus 10273extern "C" 10274#endif 10275char dlopen (); 10276int 10277main () 10278{ 10279return dlopen (); 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284rm -f conftest.$ac_objext conftest$ac_exeext 10285if { (ac_try="$ac_link" 10286case "(($ac_try" in 10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10288 *) ac_try_echo=$ac_try;; 10289esac 10290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10291$as_echo "$ac_try_echo") >&5 10292 (eval "$ac_link") 2>conftest.er1 10293 ac_status=$? 10294 grep -v '^ *+' conftest.er1 >conftest.err 10295 rm -f conftest.er1 10296 cat conftest.err >&5 10297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); } && { 10299 test -z "$ac_c_werror_flag" || 10300 test ! -s conftest.err 10301 } && test -s conftest$ac_exeext && { 10302 test "$cross_compiling" = yes || 10303 $as_test_x conftest$ac_exeext 10304 }; then 10305 ac_cv_lib_dl_dlopen=yes 10306else 10307 $as_echo "$as_me: failed program was:" >&5 10308sed 's/^/| /' conftest.$ac_ext >&5 10309 10310 ac_cv_lib_dl_dlopen=no 10311fi 10312 10313rm -rf conftest.dSYM 10314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10315 conftest$ac_exeext conftest.$ac_ext 10316LIBS=$ac_check_lib_save_LIBS 10317fi 10318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10319$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10320if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10322else 10323 10324 lt_cv_dlopen="dyld" 10325 lt_cv_dlopen_libs= 10326 lt_cv_dlopen_self=yes 10327 10328fi 10329 10330 ;; 10331 10332 *) 10333 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10334$as_echo_n "checking for shl_load... " >&6; } 10335if test "${ac_cv_func_shl_load+set}" = set; then 10336 $as_echo_n "(cached) " >&6 10337else 10338 cat >conftest.$ac_ext <<_ACEOF 10339/* confdefs.h. */ 10340_ACEOF 10341cat confdefs.h >>conftest.$ac_ext 10342cat >>conftest.$ac_ext <<_ACEOF 10343/* end confdefs.h. */ 10344/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10345 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10346#define shl_load innocuous_shl_load 10347 10348/* System header to define __stub macros and hopefully few prototypes, 10349 which can conflict with char shl_load (); below. 10350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10351 <limits.h> exists even on freestanding compilers. */ 10352 10353#ifdef __STDC__ 10354# include <limits.h> 10355#else 10356# include <assert.h> 10357#endif 10358 10359#undef shl_load 10360 10361/* Override any GCC internal prototype to avoid an error. 10362 Use char because int might match the return type of a GCC 10363 builtin and then its argument prototype would still apply. */ 10364#ifdef __cplusplus 10365extern "C" 10366#endif 10367char shl_load (); 10368/* The GNU C library defines this for functions which it implements 10369 to always fail with ENOSYS. Some functions are actually named 10370 something starting with __ and the normal name is an alias. */ 10371#if defined __stub_shl_load || defined __stub___shl_load 10372choke me 10373#endif 10374 10375int 10376main () 10377{ 10378return shl_load (); 10379 ; 10380 return 0; 10381} 10382_ACEOF 10383rm -f conftest.$ac_objext conftest$ac_exeext 10384if { (ac_try="$ac_link" 10385case "(($ac_try" in 10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10387 *) ac_try_echo=$ac_try;; 10388esac 10389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10390$as_echo "$ac_try_echo") >&5 10391 (eval "$ac_link") 2>conftest.er1 10392 ac_status=$? 10393 grep -v '^ *+' conftest.er1 >conftest.err 10394 rm -f conftest.er1 10395 cat conftest.err >&5 10396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 (exit $ac_status); } && { 10398 test -z "$ac_c_werror_flag" || 10399 test ! -s conftest.err 10400 } && test -s conftest$ac_exeext && { 10401 test "$cross_compiling" = yes || 10402 $as_test_x conftest$ac_exeext 10403 }; then 10404 ac_cv_func_shl_load=yes 10405else 10406 $as_echo "$as_me: failed program was:" >&5 10407sed 's/^/| /' conftest.$ac_ext >&5 10408 10409 ac_cv_func_shl_load=no 10410fi 10411 10412rm -rf conftest.dSYM 10413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10414 conftest$ac_exeext conftest.$ac_ext 10415fi 10416{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10417$as_echo "$ac_cv_func_shl_load" >&6; } 10418if test "x$ac_cv_func_shl_load" = x""yes; then 10419 lt_cv_dlopen="shl_load" 10420else 10421 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10422$as_echo_n "checking for shl_load in -ldld... " >&6; } 10423if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10424 $as_echo_n "(cached) " >&6 10425else 10426 ac_check_lib_save_LIBS=$LIBS 10427LIBS="-ldld $LIBS" 10428cat >conftest.$ac_ext <<_ACEOF 10429/* confdefs.h. */ 10430_ACEOF 10431cat confdefs.h >>conftest.$ac_ext 10432cat >>conftest.$ac_ext <<_ACEOF 10433/* end confdefs.h. */ 10434 10435/* Override any GCC internal prototype to avoid an error. 10436 Use char because int might match the return type of a GCC 10437 builtin and then its argument prototype would still apply. */ 10438#ifdef __cplusplus 10439extern "C" 10440#endif 10441char shl_load (); 10442int 10443main () 10444{ 10445return shl_load (); 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450rm -f conftest.$ac_objext conftest$ac_exeext 10451if { (ac_try="$ac_link" 10452case "(($ac_try" in 10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10454 *) ac_try_echo=$ac_try;; 10455esac 10456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10457$as_echo "$ac_try_echo") >&5 10458 (eval "$ac_link") 2>conftest.er1 10459 ac_status=$? 10460 grep -v '^ *+' conftest.er1 >conftest.err 10461 rm -f conftest.er1 10462 cat conftest.err >&5 10463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10464 (exit $ac_status); } && { 10465 test -z "$ac_c_werror_flag" || 10466 test ! -s conftest.err 10467 } && test -s conftest$ac_exeext && { 10468 test "$cross_compiling" = yes || 10469 $as_test_x conftest$ac_exeext 10470 }; then 10471 ac_cv_lib_dld_shl_load=yes 10472else 10473 $as_echo "$as_me: failed program was:" >&5 10474sed 's/^/| /' conftest.$ac_ext >&5 10475 10476 ac_cv_lib_dld_shl_load=no 10477fi 10478 10479rm -rf conftest.dSYM 10480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10481 conftest$ac_exeext conftest.$ac_ext 10482LIBS=$ac_check_lib_save_LIBS 10483fi 10484{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10485$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10486if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10487 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10488else 10489 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10490$as_echo_n "checking for dlopen... " >&6; } 10491if test "${ac_cv_func_dlopen+set}" = set; then 10492 $as_echo_n "(cached) " >&6 10493else 10494 cat >conftest.$ac_ext <<_ACEOF 10495/* confdefs.h. */ 10496_ACEOF 10497cat confdefs.h >>conftest.$ac_ext 10498cat >>conftest.$ac_ext <<_ACEOF 10499/* end confdefs.h. */ 10500/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10501 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10502#define dlopen innocuous_dlopen 10503 10504/* System header to define __stub macros and hopefully few prototypes, 10505 which can conflict with char dlopen (); below. 10506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10507 <limits.h> exists even on freestanding compilers. */ 10508 10509#ifdef __STDC__ 10510# include <limits.h> 10511#else 10512# include <assert.h> 10513#endif 10514 10515#undef dlopen 10516 10517/* Override any GCC internal prototype to avoid an error. 10518 Use char because int might match the return type of a GCC 10519 builtin and then its argument prototype would still apply. */ 10520#ifdef __cplusplus 10521extern "C" 10522#endif 10523char dlopen (); 10524/* The GNU C library defines this for functions which it implements 10525 to always fail with ENOSYS. Some functions are actually named 10526 something starting with __ and the normal name is an alias. */ 10527#if defined __stub_dlopen || defined __stub___dlopen 10528choke me 10529#endif 10530 10531int 10532main () 10533{ 10534return dlopen (); 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539rm -f conftest.$ac_objext conftest$ac_exeext 10540if { (ac_try="$ac_link" 10541case "(($ac_try" in 10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10543 *) ac_try_echo=$ac_try;; 10544esac 10545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10546$as_echo "$ac_try_echo") >&5 10547 (eval "$ac_link") 2>conftest.er1 10548 ac_status=$? 10549 grep -v '^ *+' conftest.er1 >conftest.err 10550 rm -f conftest.er1 10551 cat conftest.err >&5 10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10553 (exit $ac_status); } && { 10554 test -z "$ac_c_werror_flag" || 10555 test ! -s conftest.err 10556 } && test -s conftest$ac_exeext && { 10557 test "$cross_compiling" = yes || 10558 $as_test_x conftest$ac_exeext 10559 }; then 10560 ac_cv_func_dlopen=yes 10561else 10562 $as_echo "$as_me: failed program was:" >&5 10563sed 's/^/| /' conftest.$ac_ext >&5 10564 10565 ac_cv_func_dlopen=no 10566fi 10567 10568rm -rf conftest.dSYM 10569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10570 conftest$ac_exeext conftest.$ac_ext 10571fi 10572{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10573$as_echo "$ac_cv_func_dlopen" >&6; } 10574if test "x$ac_cv_func_dlopen" = x""yes; then 10575 lt_cv_dlopen="dlopen" 10576else 10577 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10578$as_echo_n "checking for dlopen in -ldl... " >&6; } 10579if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10580 $as_echo_n "(cached) " >&6 10581else 10582 ac_check_lib_save_LIBS=$LIBS 10583LIBS="-ldl $LIBS" 10584cat >conftest.$ac_ext <<_ACEOF 10585/* confdefs.h. */ 10586_ACEOF 10587cat confdefs.h >>conftest.$ac_ext 10588cat >>conftest.$ac_ext <<_ACEOF 10589/* end confdefs.h. */ 10590 10591/* Override any GCC internal prototype to avoid an error. 10592 Use char because int might match the return type of a GCC 10593 builtin and then its argument prototype would still apply. */ 10594#ifdef __cplusplus 10595extern "C" 10596#endif 10597char dlopen (); 10598int 10599main () 10600{ 10601return dlopen (); 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606rm -f conftest.$ac_objext conftest$ac_exeext 10607if { (ac_try="$ac_link" 10608case "(($ac_try" in 10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10610 *) ac_try_echo=$ac_try;; 10611esac 10612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10613$as_echo "$ac_try_echo") >&5 10614 (eval "$ac_link") 2>conftest.er1 10615 ac_status=$? 10616 grep -v '^ *+' conftest.er1 >conftest.err 10617 rm -f conftest.er1 10618 cat conftest.err >&5 10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10620 (exit $ac_status); } && { 10621 test -z "$ac_c_werror_flag" || 10622 test ! -s conftest.err 10623 } && test -s conftest$ac_exeext && { 10624 test "$cross_compiling" = yes || 10625 $as_test_x conftest$ac_exeext 10626 }; then 10627 ac_cv_lib_dl_dlopen=yes 10628else 10629 $as_echo "$as_me: failed program was:" >&5 10630sed 's/^/| /' conftest.$ac_ext >&5 10631 10632 ac_cv_lib_dl_dlopen=no 10633fi 10634 10635rm -rf conftest.dSYM 10636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10637 conftest$ac_exeext conftest.$ac_ext 10638LIBS=$ac_check_lib_save_LIBS 10639fi 10640{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10641$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10642if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10644else 10645 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10646$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10647if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10648 $as_echo_n "(cached) " >&6 10649else 10650 ac_check_lib_save_LIBS=$LIBS 10651LIBS="-lsvld $LIBS" 10652cat >conftest.$ac_ext <<_ACEOF 10653/* confdefs.h. */ 10654_ACEOF 10655cat confdefs.h >>conftest.$ac_ext 10656cat >>conftest.$ac_ext <<_ACEOF 10657/* end confdefs.h. */ 10658 10659/* Override any GCC internal prototype to avoid an error. 10660 Use char because int might match the return type of a GCC 10661 builtin and then its argument prototype would still apply. */ 10662#ifdef __cplusplus 10663extern "C" 10664#endif 10665char dlopen (); 10666int 10667main () 10668{ 10669return dlopen (); 10670 ; 10671 return 0; 10672} 10673_ACEOF 10674rm -f conftest.$ac_objext conftest$ac_exeext 10675if { (ac_try="$ac_link" 10676case "(($ac_try" in 10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10678 *) ac_try_echo=$ac_try;; 10679esac 10680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10681$as_echo "$ac_try_echo") >&5 10682 (eval "$ac_link") 2>conftest.er1 10683 ac_status=$? 10684 grep -v '^ *+' conftest.er1 >conftest.err 10685 rm -f conftest.er1 10686 cat conftest.err >&5 10687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10688 (exit $ac_status); } && { 10689 test -z "$ac_c_werror_flag" || 10690 test ! -s conftest.err 10691 } && test -s conftest$ac_exeext && { 10692 test "$cross_compiling" = yes || 10693 $as_test_x conftest$ac_exeext 10694 }; then 10695 ac_cv_lib_svld_dlopen=yes 10696else 10697 $as_echo "$as_me: failed program was:" >&5 10698sed 's/^/| /' conftest.$ac_ext >&5 10699 10700 ac_cv_lib_svld_dlopen=no 10701fi 10702 10703rm -rf conftest.dSYM 10704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10705 conftest$ac_exeext conftest.$ac_ext 10706LIBS=$ac_check_lib_save_LIBS 10707fi 10708{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10709$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10710if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10712else 10713 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10714$as_echo_n "checking for dld_link in -ldld... " >&6; } 10715if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10716 $as_echo_n "(cached) " >&6 10717else 10718 ac_check_lib_save_LIBS=$LIBS 10719LIBS="-ldld $LIBS" 10720cat >conftest.$ac_ext <<_ACEOF 10721/* confdefs.h. */ 10722_ACEOF 10723cat confdefs.h >>conftest.$ac_ext 10724cat >>conftest.$ac_ext <<_ACEOF 10725/* end confdefs.h. */ 10726 10727/* Override any GCC internal prototype to avoid an error. 10728 Use char because int might match the return type of a GCC 10729 builtin and then its argument prototype would still apply. */ 10730#ifdef __cplusplus 10731extern "C" 10732#endif 10733char dld_link (); 10734int 10735main () 10736{ 10737return dld_link (); 10738 ; 10739 return 0; 10740} 10741_ACEOF 10742rm -f conftest.$ac_objext conftest$ac_exeext 10743if { (ac_try="$ac_link" 10744case "(($ac_try" in 10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10746 *) ac_try_echo=$ac_try;; 10747esac 10748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10749$as_echo "$ac_try_echo") >&5 10750 (eval "$ac_link") 2>conftest.er1 10751 ac_status=$? 10752 grep -v '^ *+' conftest.er1 >conftest.err 10753 rm -f conftest.er1 10754 cat conftest.err >&5 10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10756 (exit $ac_status); } && { 10757 test -z "$ac_c_werror_flag" || 10758 test ! -s conftest.err 10759 } && test -s conftest$ac_exeext && { 10760 test "$cross_compiling" = yes || 10761 $as_test_x conftest$ac_exeext 10762 }; then 10763 ac_cv_lib_dld_dld_link=yes 10764else 10765 $as_echo "$as_me: failed program was:" >&5 10766sed 's/^/| /' conftest.$ac_ext >&5 10767 10768 ac_cv_lib_dld_dld_link=no 10769fi 10770 10771rm -rf conftest.dSYM 10772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10773 conftest$ac_exeext conftest.$ac_ext 10774LIBS=$ac_check_lib_save_LIBS 10775fi 10776{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10777$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10778if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10779 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10780fi 10781 10782 10783fi 10784 10785 10786fi 10787 10788 10789fi 10790 10791 10792fi 10793 10794 10795fi 10796 10797 ;; 10798 esac 10799 10800 if test "x$lt_cv_dlopen" != xno; then 10801 enable_dlopen=yes 10802 else 10803 enable_dlopen=no 10804 fi 10805 10806 case $lt_cv_dlopen in 10807 dlopen) 10808 save_CPPFLAGS="$CPPFLAGS" 10809 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10810 10811 save_LDFLAGS="$LDFLAGS" 10812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10813 10814 save_LIBS="$LIBS" 10815 LIBS="$lt_cv_dlopen_libs $LIBS" 10816 10817 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10818$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10819if test "${lt_cv_dlopen_self+set}" = set; then 10820 $as_echo_n "(cached) " >&6 10821else 10822 if test "$cross_compiling" = yes; then : 10823 lt_cv_dlopen_self=cross 10824else 10825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10826 lt_status=$lt_dlunknown 10827 cat > conftest.$ac_ext <<_LT_EOF 10828#line 10828 "configure" 10829#include "confdefs.h" 10830 10831#if HAVE_DLFCN_H 10832#include <dlfcn.h> 10833#endif 10834 10835#include <stdio.h> 10836 10837#ifdef RTLD_GLOBAL 10838# define LT_DLGLOBAL RTLD_GLOBAL 10839#else 10840# ifdef DL_GLOBAL 10841# define LT_DLGLOBAL DL_GLOBAL 10842# else 10843# define LT_DLGLOBAL 0 10844# endif 10845#endif 10846 10847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10848 find out it does not work in some platform. */ 10849#ifndef LT_DLLAZY_OR_NOW 10850# ifdef RTLD_LAZY 10851# define LT_DLLAZY_OR_NOW RTLD_LAZY 10852# else 10853# ifdef DL_LAZY 10854# define LT_DLLAZY_OR_NOW DL_LAZY 10855# else 10856# ifdef RTLD_NOW 10857# define LT_DLLAZY_OR_NOW RTLD_NOW 10858# else 10859# ifdef DL_NOW 10860# define LT_DLLAZY_OR_NOW DL_NOW 10861# else 10862# define LT_DLLAZY_OR_NOW 0 10863# endif 10864# endif 10865# endif 10866# endif 10867#endif 10868 10869void fnord() { int i=42;} 10870int main () 10871{ 10872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10873 int status = $lt_dlunknown; 10874 10875 if (self) 10876 { 10877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10878 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10879 /* dlclose (self); */ 10880 } 10881 else 10882 puts (dlerror ()); 10883 10884 return status; 10885} 10886_LT_EOF 10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10888 (eval $ac_link) 2>&5 10889 ac_status=$? 10890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10891 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10892 (./conftest; exit; ) >&5 2>/dev/null 10893 lt_status=$? 10894 case x$lt_status in 10895 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10896 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10897 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10898 esac 10899 else : 10900 # compilation failed 10901 lt_cv_dlopen_self=no 10902 fi 10903fi 10904rm -fr conftest* 10905 10906 10907fi 10908{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10909$as_echo "$lt_cv_dlopen_self" >&6; } 10910 10911 if test "x$lt_cv_dlopen_self" = xyes; then 10912 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10913 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10914$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10915if test "${lt_cv_dlopen_self_static+set}" = set; then 10916 $as_echo_n "(cached) " >&6 10917else 10918 if test "$cross_compiling" = yes; then : 10919 lt_cv_dlopen_self_static=cross 10920else 10921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10922 lt_status=$lt_dlunknown 10923 cat > conftest.$ac_ext <<_LT_EOF 10924#line 10924 "configure" 10925#include "confdefs.h" 10926 10927#if HAVE_DLFCN_H 10928#include <dlfcn.h> 10929#endif 10930 10931#include <stdio.h> 10932 10933#ifdef RTLD_GLOBAL 10934# define LT_DLGLOBAL RTLD_GLOBAL 10935#else 10936# ifdef DL_GLOBAL 10937# define LT_DLGLOBAL DL_GLOBAL 10938# else 10939# define LT_DLGLOBAL 0 10940# endif 10941#endif 10942 10943/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10944 find out it does not work in some platform. */ 10945#ifndef LT_DLLAZY_OR_NOW 10946# ifdef RTLD_LAZY 10947# define LT_DLLAZY_OR_NOW RTLD_LAZY 10948# else 10949# ifdef DL_LAZY 10950# define LT_DLLAZY_OR_NOW DL_LAZY 10951# else 10952# ifdef RTLD_NOW 10953# define LT_DLLAZY_OR_NOW RTLD_NOW 10954# else 10955# ifdef DL_NOW 10956# define LT_DLLAZY_OR_NOW DL_NOW 10957# else 10958# define LT_DLLAZY_OR_NOW 0 10959# endif 10960# endif 10961# endif 10962# endif 10963#endif 10964 10965void fnord() { int i=42;} 10966int main () 10967{ 10968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10969 int status = $lt_dlunknown; 10970 10971 if (self) 10972 { 10973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10974 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10975 /* dlclose (self); */ 10976 } 10977 else 10978 puts (dlerror ()); 10979 10980 return status; 10981} 10982_LT_EOF 10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10984 (eval $ac_link) 2>&5 10985 ac_status=$? 10986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10988 (./conftest; exit; ) >&5 2>/dev/null 10989 lt_status=$? 10990 case x$lt_status in 10991 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10992 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10993 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10994 esac 10995 else : 10996 # compilation failed 10997 lt_cv_dlopen_self_static=no 10998 fi 10999fi 11000rm -fr conftest* 11001 11002 11003fi 11004{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11005$as_echo "$lt_cv_dlopen_self_static" >&6; } 11006 fi 11007 11008 CPPFLAGS="$save_CPPFLAGS" 11009 LDFLAGS="$save_LDFLAGS" 11010 LIBS="$save_LIBS" 11011 ;; 11012 esac 11013 11014 case $lt_cv_dlopen_self in 11015 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11016 *) enable_dlopen_self=unknown ;; 11017 esac 11018 11019 case $lt_cv_dlopen_self_static in 11020 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11021 *) enable_dlopen_self_static=unknown ;; 11022 esac 11023fi 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041striplib= 11042old_striplib= 11043{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11044$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11045if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11046 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11047 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11048 { $as_echo "$as_me:$LINENO: result: yes" >&5 11049$as_echo "yes" >&6; } 11050else 11051# FIXME - insert some real tests, host_os isn't really good enough 11052 case $host_os in 11053 darwin*) 11054 if test -n "$STRIP" ; then 11055 striplib="$STRIP -x" 11056 old_striplib="$STRIP -S" 11057 { $as_echo "$as_me:$LINENO: result: yes" >&5 11058$as_echo "yes" >&6; } 11059 else 11060 { $as_echo "$as_me:$LINENO: result: no" >&5 11061$as_echo "no" >&6; } 11062 fi 11063 ;; 11064 *) 11065 { $as_echo "$as_me:$LINENO: result: no" >&5 11066$as_echo "no" >&6; } 11067 ;; 11068 esac 11069fi 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 # Report which library types will actually be built 11083 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11084$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11085 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11086$as_echo "$can_build_shared" >&6; } 11087 11088 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11089$as_echo_n "checking whether to build shared libraries... " >&6; } 11090 test "$can_build_shared" = "no" && enable_shared=no 11091 11092 # On AIX, shared libraries and static libraries use the same namespace, and 11093 # are all built from PIC. 11094 case $host_os in 11095 aix3*) 11096 test "$enable_shared" = yes && enable_static=no 11097 if test -n "$RANLIB"; then 11098 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11099 postinstall_cmds='$RANLIB $lib' 11100 fi 11101 ;; 11102 11103 aix[4-9]*) 11104 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11105 test "$enable_shared" = yes && enable_static=no 11106 fi 11107 ;; 11108 esac 11109 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11110$as_echo "$enable_shared" >&6; } 11111 11112 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11113$as_echo_n "checking whether to build static libraries... " >&6; } 11114 # Make sure either enable_shared or enable_static is yes. 11115 test "$enable_shared" = yes || enable_static=yes 11116 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11117$as_echo "$enable_static" >&6; } 11118 11119 11120 11121 11122fi 11123ac_ext=c 11124ac_cpp='$CPP $CPPFLAGS' 11125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11127ac_compiler_gnu=$ac_cv_c_compiler_gnu 11128 11129CC="$lt_save_CC" 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 ac_config_commands="$ac_config_commands libtool" 11144 11145 11146 11147 11148# Only expand once: 11149 11150 11151 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 11152$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11153if test "${ac_cv_prog_cc_c99+set}" = set; then 11154 $as_echo_n "(cached) " >&6 11155else 11156 ac_cv_prog_cc_c99=no 11157ac_save_CC=$CC 11158cat >conftest.$ac_ext <<_ACEOF 11159/* confdefs.h. */ 11160_ACEOF 11161cat confdefs.h >>conftest.$ac_ext 11162cat >>conftest.$ac_ext <<_ACEOF 11163/* end confdefs.h. */ 11164#include <stdarg.h> 11165#include <stdbool.h> 11166#include <stdlib.h> 11167#include <wchar.h> 11168#include <stdio.h> 11169 11170// Check varargs macros. These examples are taken from C99 6.10.3.5. 11171#define debug(...) fprintf (stderr, __VA_ARGS__) 11172#define showlist(...) puts (#__VA_ARGS__) 11173#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11174static void 11175test_varargs_macros (void) 11176{ 11177 int x = 1234; 11178 int y = 5678; 11179 debug ("Flag"); 11180 debug ("X = %d\n", x); 11181 showlist (The first, second, and third items.); 11182 report (x>y, "x is %d but y is %d", x, y); 11183} 11184 11185// Check long long types. 11186#define BIG64 18446744073709551615ull 11187#define BIG32 4294967295ul 11188#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11189#if !BIG_OK 11190 your preprocessor is broken; 11191#endif 11192#if BIG_OK 11193#else 11194 your preprocessor is broken; 11195#endif 11196static long long int bignum = -9223372036854775807LL; 11197static unsigned long long int ubignum = BIG64; 11198 11199struct incomplete_array 11200{ 11201 int datasize; 11202 double data[]; 11203}; 11204 11205struct named_init { 11206 int number; 11207 const wchar_t *name; 11208 double average; 11209}; 11210 11211typedef const char *ccp; 11212 11213static inline int 11214test_restrict (ccp restrict text) 11215{ 11216 // See if C++-style comments work. 11217 // Iterate through items via the restricted pointer. 11218 // Also check for declarations in for loops. 11219 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11220 continue; 11221 return 0; 11222} 11223 11224// Check varargs and va_copy. 11225static void 11226test_varargs (const char *format, ...) 11227{ 11228 va_list args; 11229 va_start (args, format); 11230 va_list args_copy; 11231 va_copy (args_copy, args); 11232 11233 const char *str; 11234 int number; 11235 float fnumber; 11236 11237 while (*format) 11238 { 11239 switch (*format++) 11240 { 11241 case 's': // string 11242 str = va_arg (args_copy, const char *); 11243 break; 11244 case 'd': // int 11245 number = va_arg (args_copy, int); 11246 break; 11247 case 'f': // float 11248 fnumber = va_arg (args_copy, double); 11249 break; 11250 default: 11251 break; 11252 } 11253 } 11254 va_end (args_copy); 11255 va_end (args); 11256} 11257 11258int 11259main () 11260{ 11261 11262 // Check bool. 11263 _Bool success = false; 11264 11265 // Check restrict. 11266 if (test_restrict ("String literal") == 0) 11267 success = true; 11268 char *restrict newvar = "Another string"; 11269 11270 // Check varargs. 11271 test_varargs ("s, d' f .", "string", 65, 34.234); 11272 test_varargs_macros (); 11273 11274 // Check flexible array members. 11275 struct incomplete_array *ia = 11276 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11277 ia->datasize = 10; 11278 for (int i = 0; i < ia->datasize; ++i) 11279 ia->data[i] = i * 1.234; 11280 11281 // Check named initializers. 11282 struct named_init ni = { 11283 .number = 34, 11284 .name = L"Test wide string", 11285 .average = 543.34343, 11286 }; 11287 11288 ni.number = 58; 11289 11290 int dynamic_array[ni.number]; 11291 dynamic_array[ni.number - 1] = 543; 11292 11293 // work around unused variable warnings 11294 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11295 || dynamic_array[ni.number - 1] != 543); 11296 11297 ; 11298 return 0; 11299} 11300_ACEOF 11301for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11302do 11303 CC="$ac_save_CC $ac_arg" 11304 rm -f conftest.$ac_objext 11305if { (ac_try="$ac_compile" 11306case "(($ac_try" in 11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11308 *) ac_try_echo=$ac_try;; 11309esac 11310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11311$as_echo "$ac_try_echo") >&5 11312 (eval "$ac_compile") 2>conftest.er1 11313 ac_status=$? 11314 grep -v '^ *+' conftest.er1 >conftest.err 11315 rm -f conftest.er1 11316 cat conftest.err >&5 11317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11318 (exit $ac_status); } && { 11319 test -z "$ac_c_werror_flag" || 11320 test ! -s conftest.err 11321 } && test -s conftest.$ac_objext; then 11322 ac_cv_prog_cc_c99=$ac_arg 11323else 11324 $as_echo "$as_me: failed program was:" >&5 11325sed 's/^/| /' conftest.$ac_ext >&5 11326 11327 11328fi 11329 11330rm -f core conftest.err conftest.$ac_objext 11331 test "x$ac_cv_prog_cc_c99" != "xno" && break 11332done 11333rm -f conftest.$ac_ext 11334CC=$ac_save_CC 11335 11336fi 11337# AC_CACHE_VAL 11338case "x$ac_cv_prog_cc_c99" in 11339 x) 11340 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11341$as_echo "none needed" >&6; } ;; 11342 xno) 11343 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11344$as_echo "unsupported" >&6; } ;; 11345 *) 11346 CC="$CC $ac_cv_prog_cc_c99" 11347 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 11348$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11349esac 11350 11351 11352 11353 11354 11355 11356if test "x$GCC" = xyes ; then 11357 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 11358-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 11359-Wbad-function-cast" 11360 case `$CC -dumpversion` in 11361 3.4.* | 4.*) 11362 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 11363 ;; 11364 esac 11365else 11366 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 11367$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 11368if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 11369 $as_echo_n "(cached) " >&6 11370else 11371 cat >conftest.$ac_ext <<_ACEOF 11372/* confdefs.h. */ 11373_ACEOF 11374cat confdefs.h >>conftest.$ac_ext 11375cat >>conftest.$ac_ext <<_ACEOF 11376/* end confdefs.h. */ 11377$ac_includes_default 11378int 11379main () 11380{ 11381#ifndef __SUNPRO_C 11382 (void) __SUNPRO_C; 11383#endif 11384 11385 ; 11386 return 0; 11387} 11388_ACEOF 11389rm -f conftest.$ac_objext 11390if { (ac_try="$ac_compile" 11391case "(($ac_try" in 11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11393 *) ac_try_echo=$ac_try;; 11394esac 11395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11396$as_echo "$ac_try_echo") >&5 11397 (eval "$ac_compile") 2>conftest.er1 11398 ac_status=$? 11399 grep -v '^ *+' conftest.er1 >conftest.err 11400 rm -f conftest.er1 11401 cat conftest.err >&5 11402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11403 (exit $ac_status); } && { 11404 test -z "$ac_c_werror_flag" || 11405 test ! -s conftest.err 11406 } && test -s conftest.$ac_objext; then 11407 ac_cv_have_decl___SUNPRO_C=yes 11408else 11409 $as_echo "$as_me: failed program was:" >&5 11410sed 's/^/| /' conftest.$ac_ext >&5 11411 11412 ac_cv_have_decl___SUNPRO_C=no 11413fi 11414 11415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11416fi 11417{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 11418$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 11419if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 11420 SUNCC="yes" 11421else 11422 SUNCC="no" 11423fi 11424 11425 if test "x$SUNCC" = "xyes"; then 11426 CWARNFLAGS="-v" 11427 fi 11428fi 11429 11430# Check whether --enable-silent-rules was given. 11431if test "${enable_silent_rules+set}" = set; then 11432 enableval=$enable_silent_rules; 11433fi 11434 11435case $enable_silent_rules in 11436yes) AM_DEFAULT_VERBOSITY=0;; 11437no) AM_DEFAULT_VERBOSITY=1;; 11438*) AM_DEFAULT_VERBOSITY=0;; 11439esac 11440AM_BACKSLASH='\' 11441 11442 11443 11444 11445 11446 11447 11448# Check whether --enable-strict-compilation was given. 11449if test "${enable_strict_compilation+set}" = set; then 11450 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11451else 11452 STRICT_COMPILE=no 11453fi 11454 11455if test "x$STRICT_COMPILE" = "xyes"; then 11456 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 11457$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 11458if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 11459 $as_echo_n "(cached) " >&6 11460else 11461 cat >conftest.$ac_ext <<_ACEOF 11462/* confdefs.h. */ 11463_ACEOF 11464cat confdefs.h >>conftest.$ac_ext 11465cat >>conftest.$ac_ext <<_ACEOF 11466/* end confdefs.h. */ 11467$ac_includes_default 11468int 11469main () 11470{ 11471#ifndef __SUNPRO_C 11472 (void) __SUNPRO_C; 11473#endif 11474 11475 ; 11476 return 0; 11477} 11478_ACEOF 11479rm -f conftest.$ac_objext 11480if { (ac_try="$ac_compile" 11481case "(($ac_try" in 11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11483 *) ac_try_echo=$ac_try;; 11484esac 11485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11486$as_echo "$ac_try_echo") >&5 11487 (eval "$ac_compile") 2>conftest.er1 11488 ac_status=$? 11489 grep -v '^ *+' conftest.er1 >conftest.err 11490 rm -f conftest.er1 11491 cat conftest.err >&5 11492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11493 (exit $ac_status); } && { 11494 test -z "$ac_c_werror_flag" || 11495 test ! -s conftest.err 11496 } && test -s conftest.$ac_objext; then 11497 ac_cv_have_decl___SUNPRO_C=yes 11498else 11499 $as_echo "$as_me: failed program was:" >&5 11500sed 's/^/| /' conftest.$ac_ext >&5 11501 11502 ac_cv_have_decl___SUNPRO_C=no 11503fi 11504 11505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11506fi 11507{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 11508$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 11509if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 11510 SUNCC="yes" 11511else 11512 SUNCC="no" 11513fi 11514 11515 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 11516$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 11517if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 11518 $as_echo_n "(cached) " >&6 11519else 11520 cat >conftest.$ac_ext <<_ACEOF 11521/* confdefs.h. */ 11522_ACEOF 11523cat confdefs.h >>conftest.$ac_ext 11524cat >>conftest.$ac_ext <<_ACEOF 11525/* end confdefs.h. */ 11526$ac_includes_default 11527int 11528main () 11529{ 11530#ifndef __INTEL_COMPILER 11531 (void) __INTEL_COMPILER; 11532#endif 11533 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538rm -f conftest.$ac_objext 11539if { (ac_try="$ac_compile" 11540case "(($ac_try" in 11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11542 *) ac_try_echo=$ac_try;; 11543esac 11544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11545$as_echo "$ac_try_echo") >&5 11546 (eval "$ac_compile") 2>conftest.er1 11547 ac_status=$? 11548 grep -v '^ *+' conftest.er1 >conftest.err 11549 rm -f conftest.er1 11550 cat conftest.err >&5 11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11552 (exit $ac_status); } && { 11553 test -z "$ac_c_werror_flag" || 11554 test ! -s conftest.err 11555 } && test -s conftest.$ac_objext; then 11556 ac_cv_have_decl___INTEL_COMPILER=yes 11557else 11558 $as_echo "$as_me: failed program was:" >&5 11559sed 's/^/| /' conftest.$ac_ext >&5 11560 11561 ac_cv_have_decl___INTEL_COMPILER=no 11562fi 11563 11564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11565fi 11566{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 11567$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 11568if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 11569 INTELCC="yes" 11570else 11571 INTELCC="no" 11572fi 11573 11574 if test "x$GCC" = xyes ; then 11575 STRICT_CFLAGS="-pedantic -Werror" 11576 elif test "x$SUNCC" = "xyes"; then 11577 STRICT_CFLAGS="-errwarn" 11578 elif test "x$INTELCC" = "xyes"; then 11579 STRICT_CFLAGS="-Werror" 11580 fi 11581fi 11582CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11583 11584 11585 11586 11587# Check whether --with-release-version was given. 11588if test "${with_release_version+set}" = set; then 11589 withval=$with_release_version; RELEASE_VERSION="$withval" 11590else 11591 RELEASE_VERSION="" 11592fi 11593 11594 if test "x$RELEASE_VERSION" != "x"; then 11595 PACKAGE="$PACKAGE-$RELEASE_VERSION" 11596 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 11597 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 11598$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 11599 fi 11600 11601cat >>confdefs.h <<_ACEOF 11602#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11603_ACEOF 11604 11605 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11606 if test "x$PVM" = "x"; then 11607 PVM="0" 11608 fi 11609 11610cat >>confdefs.h <<_ACEOF 11611#define PACKAGE_VERSION_MINOR $PVM 11612_ACEOF 11613 11614 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11615 if test "x$PVP" = "x"; then 11616 PVP="0" 11617 fi 11618 11619cat >>confdefs.h <<_ACEOF 11620#define PACKAGE_VERSION_PATCHLEVEL $PVP 11621_ACEOF 11622 11623 11624 11625CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 11626mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 11627echo 'git directory not found: installing possibly empty changelog.' >&2)" 11628 11629distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 11630 11631 11632 11633 11634 11635if test x$APP_MAN_SUFFIX = x ; then 11636 APP_MAN_SUFFIX=1 11637fi 11638if test x$APP_MAN_DIR = x ; then 11639 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11640fi 11641 11642if test x$LIB_MAN_SUFFIX = x ; then 11643 LIB_MAN_SUFFIX=3 11644fi 11645if test x$LIB_MAN_DIR = x ; then 11646 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11647fi 11648 11649if test x$FILE_MAN_SUFFIX = x ; then 11650 case $host_os in 11651 solaris*) FILE_MAN_SUFFIX=4 ;; 11652 *) FILE_MAN_SUFFIX=5 ;; 11653 esac 11654fi 11655if test x$FILE_MAN_DIR = x ; then 11656 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11657fi 11658 11659if test x$MISC_MAN_SUFFIX = x ; then 11660 case $host_os in 11661 solaris*) MISC_MAN_SUFFIX=5 ;; 11662 *) MISC_MAN_SUFFIX=7 ;; 11663 esac 11664fi 11665if test x$MISC_MAN_DIR = x ; then 11666 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11667fi 11668 11669if test x$DRIVER_MAN_SUFFIX = x ; then 11670 case $host_os in 11671 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11672 *) DRIVER_MAN_SUFFIX=4 ;; 11673 esac 11674fi 11675if test x$DRIVER_MAN_DIR = x ; then 11676 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11677fi 11678 11679if test x$ADMIN_MAN_SUFFIX = x ; then 11680 case $host_os in 11681 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11682 *) ADMIN_MAN_SUFFIX=8 ;; 11683 esac 11684fi 11685if test x$ADMIN_MAN_DIR = x ; then 11686 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11687fi 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705# Check for dependencies 11706 11707 11708if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11709 if test -n "$ac_tool_prefix"; then 11710 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11711set dummy ${ac_tool_prefix}pkg-config; 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_PKG_CONFIG+set}" = set; then 11715 $as_echo_n "(cached) " >&6 11716else 11717 case $PKG_CONFIG in 11718 [\\/]* | ?:[\\/]*) 11719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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 11740PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11741if test -n "$PKG_CONFIG"; then 11742 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 11743$as_echo "$PKG_CONFIG" >&6; } 11744else 11745 { $as_echo "$as_me:$LINENO: result: no" >&5 11746$as_echo "no" >&6; } 11747fi 11748 11749 11750fi 11751if test -z "$ac_cv_path_PKG_CONFIG"; then 11752 ac_pt_PKG_CONFIG=$PKG_CONFIG 11753 # Extract the first word of "pkg-config", so it can be a program name with args. 11754set dummy pkg-config; ac_word=$2 11755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11756$as_echo_n "checking for $ac_word... " >&6; } 11757if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11758 $as_echo_n "(cached) " >&6 11759else 11760 case $ac_pt_PKG_CONFIG in 11761 [\\/]* | ?:[\\/]*) 11762 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11763 ;; 11764 *) 11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11766for as_dir in $PATH 11767do 11768 IFS=$as_save_IFS 11769 test -z "$as_dir" && as_dir=. 11770 for ac_exec_ext in '' $ac_executable_extensions; do 11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11772 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11774 break 2 11775 fi 11776done 11777done 11778IFS=$as_save_IFS 11779 11780 ;; 11781esac 11782fi 11783ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11784if test -n "$ac_pt_PKG_CONFIG"; then 11785 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 11786$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11787else 11788 { $as_echo "$as_me:$LINENO: result: no" >&5 11789$as_echo "no" >&6; } 11790fi 11791 11792 if test "x$ac_pt_PKG_CONFIG" = x; then 11793 PKG_CONFIG="" 11794 else 11795 case $cross_compiling:$ac_tool_warned in 11796yes:) 11797{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11799ac_tool_warned=yes ;; 11800esac 11801 PKG_CONFIG=$ac_pt_PKG_CONFIG 11802 fi 11803else 11804 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11805fi 11806 11807fi 11808if test -n "$PKG_CONFIG"; then 11809 _pkg_min_version=0.9.0 11810 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 11811$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11812 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11813 { $as_echo "$as_me:$LINENO: result: yes" >&5 11814$as_echo "yes" >&6; } 11815 else 11816 { $as_echo "$as_me:$LINENO: result: no" >&5 11817$as_echo "no" >&6; } 11818 PKG_CONFIG="" 11819 fi 11820 11821fi 11822 11823pkg_failed=no 11824{ $as_echo "$as_me:$LINENO: checking for XINERAMA" >&5 11825$as_echo_n "checking for XINERAMA... " >&6; } 11826 11827if test -n "$XINERAMA_CFLAGS"; then 11828 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" 11829 elif test -n "$PKG_CONFIG"; then 11830 if test -n "$PKG_CONFIG" && \ 11831 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\"") >&5 11832 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5 11833 ac_status=$? 11834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11835 (exit $ac_status); }; then 11836 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null` 11837else 11838 pkg_failed=yes 11839fi 11840 else 11841 pkg_failed=untried 11842fi 11843if test -n "$XINERAMA_LIBS"; then 11844 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" 11845 elif test -n "$PKG_CONFIG"; then 11846 if test -n "$PKG_CONFIG" && \ 11847 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\"") >&5 11848 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5 11849 ac_status=$? 11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11851 (exit $ac_status); }; then 11852 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null` 11853else 11854 pkg_failed=yes 11855fi 11856 else 11857 pkg_failed=untried 11858fi 11859 11860 11861 11862if test $pkg_failed = yes; then 11863 11864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11865 _pkg_short_errors_supported=yes 11866else 11867 _pkg_short_errors_supported=no 11868fi 11869 if test $_pkg_short_errors_supported = yes; then 11870 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1` 11871 else 11872 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1` 11873 fi 11874 # Put the nasty error message in config.log where it belongs 11875 echo "$XINERAMA_PKG_ERRORS" >&5 11876 11877 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto xineramaproto >= 1.1.99.1) were not met: 11878 11879$XINERAMA_PKG_ERRORS 11880 11881Consider adjusting the PKG_CONFIG_PATH environment variable if you 11882installed software in a non-standard prefix. 11883 11884Alternatively, you may set the environment variables XINERAMA_CFLAGS 11885and XINERAMA_LIBS to avoid the need to call pkg-config. 11886See the pkg-config man page for more details. 11887" >&5 11888$as_echo "$as_me: error: Package requirements (x11 xext xextproto xineramaproto >= 1.1.99.1) were not met: 11889 11890$XINERAMA_PKG_ERRORS 11891 11892Consider adjusting the PKG_CONFIG_PATH environment variable if you 11893installed software in a non-standard prefix. 11894 11895Alternatively, you may set the environment variables XINERAMA_CFLAGS 11896and XINERAMA_LIBS to avoid the need to call pkg-config. 11897See the pkg-config man page for more details. 11898" >&2;} 11899 { (exit 1); exit 1; }; } 11900elif test $pkg_failed = untried; then 11901 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11903{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 11904is in your PATH or set the PKG_CONFIG environment variable to the full 11905path to pkg-config. 11906 11907Alternatively, you may set the environment variables XINERAMA_CFLAGS 11908and XINERAMA_LIBS to avoid the need to call pkg-config. 11909See the pkg-config man page for more details. 11910 11911To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11912See \`config.log' for more details." >&5 11913$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 11914is in your PATH or set the PKG_CONFIG environment variable to the full 11915path to pkg-config. 11916 11917Alternatively, you may set the environment variables XINERAMA_CFLAGS 11918and XINERAMA_LIBS to avoid the need to call pkg-config. 11919See the pkg-config man page for more details. 11920 11921To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11922See \`config.log' for more details." >&2;} 11923 { (exit 1); exit 1; }; }; } 11924else 11925 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS 11926 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS 11927 { $as_echo "$as_me:$LINENO: result: yes" >&5 11928$as_echo "yes" >&6; } 11929 : 11930fi 11931XINERAMA_CFLAGS="$CWARNFLAGS $XINERAMA_CFLAGS" 11932 11933 11934 11935 11936 11937# Allow checking code with lint, sparse, etc. 11938 11939# Check whether --with-lint was given. 11940if test "${with_lint+set}" = set; then 11941 withval=$with_lint; use_lint=$withval 11942else 11943 use_lint=no 11944fi 11945 11946if test "x$use_lint" = "xyes" ; then 11947 LINT="lint" 11948else 11949 LINT="$use_lint" 11950fi 11951if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 11952 case $LINT in 11953 lint|*/lint) 11954 case $host_os in 11955 solaris*) 11956 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11957 ;; 11958 esac 11959 ;; 11960 esac 11961fi 11962 11963 11964 11965 if test x$LINT != xno; then 11966 LINT_TRUE= 11967 LINT_FALSE='#' 11968else 11969 LINT_TRUE='#' 11970 LINT_FALSE= 11971fi 11972 11973 11974 11975LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}" 11976 11977 11978# Check whether --enable-malloc0returnsnull was given. 11979if test "${enable_malloc0returnsnull+set}" = set; then 11980 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 11981else 11982 MALLOC_ZERO_RETURNS_NULL=auto 11983fi 11984 11985 11986{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 11987$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 11988if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 11989 if test "$cross_compiling" = yes; then 11990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11992{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11993See \`config.log' for more details." >&5 11994$as_echo "$as_me: error: cannot run test program while cross compiling 11995See \`config.log' for more details." >&2;} 11996 { (exit 1); exit 1; }; }; } 11997else 11998 cat >conftest.$ac_ext <<_ACEOF 11999 12000char *malloc(); 12001char *realloc(); 12002char *calloc(); 12003main() { 12004 char *m0, *r0, *c0, *p; 12005 m0 = malloc(0); 12006 p = malloc(10); 12007 r0 = realloc(p,0); 12008 c0 = calloc(0); 12009 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 12010} 12011_ACEOF 12012rm -f conftest$ac_exeext 12013if { (ac_try="$ac_link" 12014case "(($ac_try" in 12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12016 *) ac_try_echo=$ac_try;; 12017esac 12018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12019$as_echo "$ac_try_echo") >&5 12020 (eval "$ac_link") 2>&5 12021 ac_status=$? 12022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12024 { (case "(($ac_try" in 12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12026 *) ac_try_echo=$ac_try;; 12027esac 12028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12029$as_echo "$ac_try_echo") >&5 12030 (eval "$ac_try") 2>&5 12031 ac_status=$? 12032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12033 (exit $ac_status); }; }; then 12034 MALLOC_ZERO_RETURNS_NULL=yes 12035else 12036 $as_echo "$as_me: program exited with status $ac_status" >&5 12037$as_echo "$as_me: failed program was:" >&5 12038sed 's/^/| /' conftest.$ac_ext >&5 12039 12040( exit $ac_status ) 12041MALLOC_ZERO_RETURNS_NULL=no 12042fi 12043rm -rf conftest.dSYM 12044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12045fi 12046 12047 12048fi 12049{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 12050$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 12051 12052if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 12053 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 12054 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 12055 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 12056else 12057 MALLOC_ZERO_CFLAGS="" 12058 XMALLOC_ZERO_CFLAGS="" 12059 XTMALLOC_ZERO_CFLAGS="" 12060fi 12061 12062 12063 12064 12065 12066 12067ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc" 12068 12069cat >confcache <<\_ACEOF 12070# This file is a shell script that caches the results of configure 12071# tests run on this system so they can be shared between configure 12072# scripts and configure runs, see configure's option --config-cache. 12073# It is not useful on other systems. If it contains results you don't 12074# want to keep, you may remove or edit it. 12075# 12076# config.status only pays attention to the cache file if you give it 12077# the --recheck option to rerun configure. 12078# 12079# `ac_cv_env_foo' variables (set or unset) will be overridden when 12080# loading this file, other *unset* `ac_cv_foo' will be assigned the 12081# following values. 12082 12083_ACEOF 12084 12085# The following way of writing the cache mishandles newlines in values, 12086# but we know of no workaround that is simple, portable, and efficient. 12087# So, we kill variables containing newlines. 12088# Ultrix sh set writes to stderr and can't be redirected directly, 12089# and sets the high bit in the cache file unless we assign to the vars. 12090( 12091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12092 eval ac_val=\$$ac_var 12093 case $ac_val in #( 12094 *${as_nl}*) 12095 case $ac_var in #( 12096 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 12097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12098 esac 12099 case $ac_var in #( 12100 _ | IFS | as_nl) ;; #( 12101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12102 *) $as_unset $ac_var ;; 12103 esac ;; 12104 esac 12105 done 12106 12107 (set) 2>&1 | 12108 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12109 *${as_nl}ac_space=\ *) 12110 # `set' does not quote correctly, so add quotes (double-quote 12111 # substitution turns \\\\ into \\, and sed turns \\ into \). 12112 sed -n \ 12113 "s/'/'\\\\''/g; 12114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12115 ;; #( 12116 *) 12117 # `set' quotes correctly as required by POSIX, so do not add quotes. 12118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12119 ;; 12120 esac | 12121 sort 12122) | 12123 sed ' 12124 /^ac_cv_env_/b end 12125 t clear 12126 :clear 12127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12128 t end 12129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12130 :end' >>confcache 12131if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12132 if test -w "$cache_file"; then 12133 test "x$cache_file" != "x/dev/null" && 12134 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 12135$as_echo "$as_me: updating cache $cache_file" >&6;} 12136 cat confcache >$cache_file 12137 else 12138 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12139$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12140 fi 12141fi 12142rm -f confcache 12143 12144test "x$prefix" = xNONE && prefix=$ac_default_prefix 12145# Let make expand exec_prefix. 12146test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12147 12148DEFS=-DHAVE_CONFIG_H 12149 12150ac_libobjs= 12151ac_ltlibobjs= 12152for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12153 # 1. Remove the extension, and $U if already installed. 12154 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12155 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12156 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12157 # will be set to the directory where LIBOBJS objects are built. 12158 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12159 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12160done 12161LIBOBJS=$ac_libobjs 12162 12163LTLIBOBJS=$ac_ltlibobjs 12164 12165 12166 if test -n "$EXEEXT"; then 12167 am__EXEEXT_TRUE= 12168 am__EXEEXT_FALSE='#' 12169else 12170 am__EXEEXT_TRUE='#' 12171 am__EXEEXT_FALSE= 12172fi 12173 12174if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12175 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 12176Usually this means the macro was only invoked conditionally." >&5 12177$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 12178Usually this means the macro was only invoked conditionally." >&2;} 12179 { (exit 1); exit 1; }; } 12180fi 12181if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12182 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12183Usually this means the macro was only invoked conditionally." >&5 12184$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 12185Usually this means the macro was only invoked conditionally." >&2;} 12186 { (exit 1); exit 1; }; } 12187fi 12188if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12189 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12190Usually this means the macro was only invoked conditionally." >&5 12191$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12192Usually this means the macro was only invoked conditionally." >&2;} 12193 { (exit 1); exit 1; }; } 12194fi 12195if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12196 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 12197Usually this means the macro was only invoked conditionally." >&5 12198$as_echo "$as_me: error: conditional \"LINT\" was never defined. 12199Usually this means the macro was only invoked conditionally." >&2;} 12200 { (exit 1); exit 1; }; } 12201fi 12202 12203: ${CONFIG_STATUS=./config.status} 12204ac_write_fail=0 12205ac_clean_files_save=$ac_clean_files 12206ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12207{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12208$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12209cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12210#! $SHELL 12211# Generated by $as_me. 12212# Run this file to recreate the current configuration. 12213# Compiler output produced by configure, useful for debugging 12214# configure, is in config.log if it exists. 12215 12216debug=false 12217ac_cs_recheck=false 12218ac_cs_silent=false 12219SHELL=\${CONFIG_SHELL-$SHELL} 12220_ACEOF 12221 12222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12223## --------------------- ## 12224## M4sh Initialization. ## 12225## --------------------- ## 12226 12227# Be more Bourne compatible 12228DUALCASE=1; export DUALCASE # for MKS sh 12229if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12230 emulate sh 12231 NULLCMD=: 12232 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12233 # is contrary to our usage. Disable this feature. 12234 alias -g '${1+"$@"}'='"$@"' 12235 setopt NO_GLOB_SUBST 12236else 12237 case `(set -o) 2>/dev/null` in 12238 *posix*) set -o posix ;; 12239esac 12240 12241fi 12242 12243 12244 12245 12246# PATH needs CR 12247# Avoid depending upon Character Ranges. 12248as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12249as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12250as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12251as_cr_digits='0123456789' 12252as_cr_alnum=$as_cr_Letters$as_cr_digits 12253 12254as_nl=' 12255' 12256export as_nl 12257# Printing a long string crashes Solaris 7 /usr/bin/printf. 12258as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12259as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12261if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12262 as_echo='printf %s\n' 12263 as_echo_n='printf %s' 12264else 12265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12266 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12267 as_echo_n='/usr/ucb/echo -n' 12268 else 12269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12270 as_echo_n_body='eval 12271 arg=$1; 12272 case $arg in 12273 *"$as_nl"*) 12274 expr "X$arg" : "X\\(.*\\)$as_nl"; 12275 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12276 esac; 12277 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12278 ' 12279 export as_echo_n_body 12280 as_echo_n='sh -c $as_echo_n_body as_echo' 12281 fi 12282 export as_echo_body 12283 as_echo='sh -c $as_echo_body as_echo' 12284fi 12285 12286# The user is always right. 12287if test "${PATH_SEPARATOR+set}" != set; then 12288 PATH_SEPARATOR=: 12289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12290 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12291 PATH_SEPARATOR=';' 12292 } 12293fi 12294 12295# Support unset when possible. 12296if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12297 as_unset=unset 12298else 12299 as_unset=false 12300fi 12301 12302 12303# IFS 12304# We need space, tab and new line, in precisely that order. Quoting is 12305# there to prevent editors from complaining about space-tab. 12306# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12307# splitting by setting IFS to empty value.) 12308IFS=" "" $as_nl" 12309 12310# Find who we are. Look in the path if we contain no directory separator. 12311case $0 in 12312 *[\\/]* ) as_myself=$0 ;; 12313 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12314for as_dir in $PATH 12315do 12316 IFS=$as_save_IFS 12317 test -z "$as_dir" && as_dir=. 12318 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12319done 12320IFS=$as_save_IFS 12321 12322 ;; 12323esac 12324# We did not find ourselves, most probably we were run as `sh COMMAND' 12325# in which case we are not to be found in the path. 12326if test "x$as_myself" = x; then 12327 as_myself=$0 12328fi 12329if test ! -f "$as_myself"; then 12330 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12331 { (exit 1); exit 1; } 12332fi 12333 12334# Work around bugs in pre-3.0 UWIN ksh. 12335for as_var in ENV MAIL MAILPATH 12336do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12337done 12338PS1='$ ' 12339PS2='> ' 12340PS4='+ ' 12341 12342# NLS nuisances. 12343LC_ALL=C 12344export LC_ALL 12345LANGUAGE=C 12346export LANGUAGE 12347 12348# Required to use basename. 12349if expr a : '\(a\)' >/dev/null 2>&1 && 12350 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12351 as_expr=expr 12352else 12353 as_expr=false 12354fi 12355 12356if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12357 as_basename=basename 12358else 12359 as_basename=false 12360fi 12361 12362 12363# Name of the executable. 12364as_me=`$as_basename -- "$0" || 12365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12366 X"$0" : 'X\(//\)$' \| \ 12367 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12368$as_echo X/"$0" | 12369 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12370 s//\1/ 12371 q 12372 } 12373 /^X\/\(\/\/\)$/{ 12374 s//\1/ 12375 q 12376 } 12377 /^X\/\(\/\).*/{ 12378 s//\1/ 12379 q 12380 } 12381 s/.*/./; q'` 12382 12383# CDPATH. 12384$as_unset CDPATH 12385 12386 12387 12388 as_lineno_1=$LINENO 12389 as_lineno_2=$LINENO 12390 test "x$as_lineno_1" != "x$as_lineno_2" && 12391 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12392 12393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12394 # uniformly replaced by the line number. The first 'sed' inserts a 12395 # line-number line after each line using $LINENO; the second 'sed' 12396 # does the real work. The second script uses 'N' to pair each 12397 # line-number line with the line containing $LINENO, and appends 12398 # trailing '-' during substitution so that $LINENO is not a special 12399 # case at line end. 12400 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12401 # scripts with optimization help from Paolo Bonzini. Blame Lee 12402 # E. McMahon (1931-1989) for sed's syntax. :-) 12403 sed -n ' 12404 p 12405 /[$]LINENO/= 12406 ' <$as_myself | 12407 sed ' 12408 s/[$]LINENO.*/&-/ 12409 t lineno 12410 b 12411 :lineno 12412 N 12413 :loop 12414 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12415 t loop 12416 s/-\n.*// 12417 ' >$as_me.lineno && 12418 chmod +x "$as_me.lineno" || 12419 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12420 { (exit 1); exit 1; }; } 12421 12422 # Don't try to exec as it changes $[0], causing all sort of problems 12423 # (the dirname of $[0] is not the place where we might find the 12424 # original and so on. Autoconf is especially sensitive to this). 12425 . "./$as_me.lineno" 12426 # Exit status is that of the last command. 12427 exit 12428} 12429 12430 12431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12432 as_dirname=dirname 12433else 12434 as_dirname=false 12435fi 12436 12437ECHO_C= ECHO_N= ECHO_T= 12438case `echo -n x` in 12439-n*) 12440 case `echo 'x\c'` in 12441 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12442 *) ECHO_C='\c';; 12443 esac;; 12444*) 12445 ECHO_N='-n';; 12446esac 12447if expr a : '\(a\)' >/dev/null 2>&1 && 12448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12449 as_expr=expr 12450else 12451 as_expr=false 12452fi 12453 12454rm -f conf$$ conf$$.exe conf$$.file 12455if test -d conf$$.dir; then 12456 rm -f conf$$.dir/conf$$.file 12457else 12458 rm -f conf$$.dir 12459 mkdir conf$$.dir 2>/dev/null 12460fi 12461if (echo >conf$$.file) 2>/dev/null; then 12462 if ln -s conf$$.file conf$$ 2>/dev/null; then 12463 as_ln_s='ln -s' 12464 # ... but there are two gotchas: 12465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12467 # In both cases, we have to default to `cp -p'. 12468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12469 as_ln_s='cp -p' 12470 elif ln conf$$.file conf$$ 2>/dev/null; then 12471 as_ln_s=ln 12472 else 12473 as_ln_s='cp -p' 12474 fi 12475else 12476 as_ln_s='cp -p' 12477fi 12478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12479rmdir conf$$.dir 2>/dev/null 12480 12481if mkdir -p . 2>/dev/null; then 12482 as_mkdir_p=: 12483else 12484 test -d ./-p && rmdir ./-p 12485 as_mkdir_p=false 12486fi 12487 12488if test -x / >/dev/null 2>&1; then 12489 as_test_x='test -x' 12490else 12491 if ls -dL / >/dev/null 2>&1; then 12492 as_ls_L_option=L 12493 else 12494 as_ls_L_option= 12495 fi 12496 as_test_x=' 12497 eval sh -c '\'' 12498 if test -d "$1"; then 12499 test -d "$1/."; 12500 else 12501 case $1 in 12502 -*)set "./$1";; 12503 esac; 12504 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12505 ???[sx]*):;;*)false;;esac;fi 12506 '\'' sh 12507 ' 12508fi 12509as_executable_p=$as_test_x 12510 12511# Sed expression to map a string onto a valid CPP name. 12512as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12513 12514# Sed expression to map a string onto a valid variable name. 12515as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12516 12517 12518exec 6>&1 12519 12520# Save the log message, to keep $[0] and so on meaningful, and to 12521# report actual input values of CONFIG_FILES etc. instead of their 12522# values after options handling. 12523ac_log=" 12524This file was extended by libXinerama $as_me 1.1, which was 12525generated by GNU Autoconf 2.63. Invocation command line was 12526 12527 CONFIG_FILES = $CONFIG_FILES 12528 CONFIG_HEADERS = $CONFIG_HEADERS 12529 CONFIG_LINKS = $CONFIG_LINKS 12530 CONFIG_COMMANDS = $CONFIG_COMMANDS 12531 $ $0 $@ 12532 12533on `(hostname || uname -n) 2>/dev/null | sed 1q` 12534" 12535 12536_ACEOF 12537 12538case $ac_config_files in *" 12539"*) set x $ac_config_files; shift; ac_config_files=$*;; 12540esac 12541 12542case $ac_config_headers in *" 12543"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12544esac 12545 12546 12547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12548# Files that config.status was made for. 12549config_files="$ac_config_files" 12550config_headers="$ac_config_headers" 12551config_commands="$ac_config_commands" 12552 12553_ACEOF 12554 12555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12556ac_cs_usage="\ 12557\`$as_me' instantiates files from templates according to the 12558current configuration. 12559 12560Usage: $0 [OPTION]... [FILE]... 12561 12562 -h, --help print this help, then exit 12563 -V, --version print version number and configuration settings, then exit 12564 -q, --quiet, --silent 12565 do not print progress messages 12566 -d, --debug don't remove temporary files 12567 --recheck update $as_me by reconfiguring in the same conditions 12568 --file=FILE[:TEMPLATE] 12569 instantiate the configuration file FILE 12570 --header=FILE[:TEMPLATE] 12571 instantiate the configuration header FILE 12572 12573Configuration files: 12574$config_files 12575 12576Configuration headers: 12577$config_headers 12578 12579Configuration commands: 12580$config_commands 12581 12582Report bugs to <bug-autoconf@gnu.org>." 12583 12584_ACEOF 12585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12586ac_cs_version="\\ 12587libXinerama config.status 1.1 12588configured by $0, generated by GNU Autoconf 2.63, 12589 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12590 12591Copyright (C) 2008 Free Software Foundation, Inc. 12592This config.status script is free software; the Free Software Foundation 12593gives unlimited permission to copy, distribute and modify it." 12594 12595ac_pwd='$ac_pwd' 12596srcdir='$srcdir' 12597INSTALL='$INSTALL' 12598MKDIR_P='$MKDIR_P' 12599AWK='$AWK' 12600test -n "\$AWK" || AWK=awk 12601_ACEOF 12602 12603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12604# The default lists apply if the user does not specify any file. 12605ac_need_defaults=: 12606while test $# != 0 12607do 12608 case $1 in 12609 --*=*) 12610 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12612 ac_shift=: 12613 ;; 12614 *) 12615 ac_option=$1 12616 ac_optarg=$2 12617 ac_shift=shift 12618 ;; 12619 esac 12620 12621 case $ac_option in 12622 # Handling of the options. 12623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12624 ac_cs_recheck=: ;; 12625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12626 $as_echo "$ac_cs_version"; exit ;; 12627 --debug | --debu | --deb | --de | --d | -d ) 12628 debug=: ;; 12629 --file | --fil | --fi | --f ) 12630 $ac_shift 12631 case $ac_optarg in 12632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12633 esac 12634 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12635 ac_need_defaults=false;; 12636 --header | --heade | --head | --hea ) 12637 $ac_shift 12638 case $ac_optarg in 12639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12640 esac 12641 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 12642 ac_need_defaults=false;; 12643 --he | --h) 12644 # Conflict between --help and --header 12645 { $as_echo "$as_me: error: ambiguous option: $1 12646Try \`$0 --help' for more information." >&2 12647 { (exit 1); exit 1; }; };; 12648 --help | --hel | -h ) 12649 $as_echo "$ac_cs_usage"; exit ;; 12650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12651 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12652 ac_cs_silent=: ;; 12653 12654 # This is an error. 12655 -*) { $as_echo "$as_me: error: unrecognized option: $1 12656Try \`$0 --help' for more information." >&2 12657 { (exit 1); exit 1; }; } ;; 12658 12659 *) ac_config_targets="$ac_config_targets $1" 12660 ac_need_defaults=false ;; 12661 12662 esac 12663 shift 12664done 12665 12666ac_configure_extra_args= 12667 12668if $ac_cs_silent; then 12669 exec 6>/dev/null 12670 ac_configure_extra_args="$ac_configure_extra_args --silent" 12671fi 12672 12673_ACEOF 12674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12675if \$ac_cs_recheck; then 12676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12677 shift 12678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12679 CONFIG_SHELL='$SHELL' 12680 export CONFIG_SHELL 12681 exec "\$@" 12682fi 12683 12684_ACEOF 12685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12686exec 5>>config.log 12687{ 12688 echo 12689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12690## Running $as_me. ## 12691_ASBOX 12692 $as_echo "$ac_log" 12693} >&5 12694 12695_ACEOF 12696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12697# 12698# INIT-COMMANDS 12699# 12700AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12701 12702 12703# The HP-UX ksh and POSIX shell print the target directory to stdout 12704# if CDPATH is set. 12705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12706 12707sed_quote_subst='$sed_quote_subst' 12708double_quote_subst='$double_quote_subst' 12709delay_variable_subst='$delay_variable_subst' 12710macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12711macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12712enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12713enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12714pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12715enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12716host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12717host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12718host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12719build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12720build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12721build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12722SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12723Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12724GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12725EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12726FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12727LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12728NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12729LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12730max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12731ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12732exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12733lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12734lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12735lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12736reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12737reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12738OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12739deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12740file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12741AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12742AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12743STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12744RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12745old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12746old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12747old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12748CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12749CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12750compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12751GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12752lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12753lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12754lt_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"`' 12755lt_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"`' 12756objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12757SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12758ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12759MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12760lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12761lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12762lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12763lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12764lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12765need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12766DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12767NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12768LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12769OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12770OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12771libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12772shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12773extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12774archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12775enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12776export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12777whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12778compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12779old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12780old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12781archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12782archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12783module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12784module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12785with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12786allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12787no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12788hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12789hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12790hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12791hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12792hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12793hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12794hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12795hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12796inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12797link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12798fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12799always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12800export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12801exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12802include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12803prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12804file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12805variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12806need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12807need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12808version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12809runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12810shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12811shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12812libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12813library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12814soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12815postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12816postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12817finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12818finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12819hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12820sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12821sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12822hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12823enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12824enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12825enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12826old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12827striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12828 12829LTCC='$LTCC' 12830LTCFLAGS='$LTCFLAGS' 12831compiler='$compiler_DEFAULT' 12832 12833# Quote evaled strings. 12834for var in SED \ 12835GREP \ 12836EGREP \ 12837FGREP \ 12838LD \ 12839NM \ 12840LN_S \ 12841lt_SP2NL \ 12842lt_NL2SP \ 12843reload_flag \ 12844OBJDUMP \ 12845deplibs_check_method \ 12846file_magic_cmd \ 12847AR \ 12848AR_FLAGS \ 12849STRIP \ 12850RANLIB \ 12851CC \ 12852CFLAGS \ 12853compiler \ 12854lt_cv_sys_global_symbol_pipe \ 12855lt_cv_sys_global_symbol_to_cdecl \ 12856lt_cv_sys_global_symbol_to_c_name_address \ 12857lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12858SHELL \ 12859ECHO \ 12860lt_prog_compiler_no_builtin_flag \ 12861lt_prog_compiler_wl \ 12862lt_prog_compiler_pic \ 12863lt_prog_compiler_static \ 12864lt_cv_prog_compiler_c_o \ 12865need_locks \ 12866DSYMUTIL \ 12867NMEDIT \ 12868LIPO \ 12869OTOOL \ 12870OTOOL64 \ 12871shrext_cmds \ 12872export_dynamic_flag_spec \ 12873whole_archive_flag_spec \ 12874compiler_needs_object \ 12875with_gnu_ld \ 12876allow_undefined_flag \ 12877no_undefined_flag \ 12878hardcode_libdir_flag_spec \ 12879hardcode_libdir_flag_spec_ld \ 12880hardcode_libdir_separator \ 12881fix_srcfile_path \ 12882exclude_expsyms \ 12883include_expsyms \ 12884file_list_spec \ 12885variables_saved_for_relink \ 12886libname_spec \ 12887library_names_spec \ 12888soname_spec \ 12889finish_eval \ 12890old_striplib \ 12891striplib; do 12892 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12893 *[\\\\\\\`\\"\\\$]*) 12894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12895 ;; 12896 *) 12897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12898 ;; 12899 esac 12900done 12901 12902# Double-quote double-evaled strings. 12903for var in reload_cmds \ 12904old_postinstall_cmds \ 12905old_postuninstall_cmds \ 12906old_archive_cmds \ 12907extract_expsyms_cmds \ 12908old_archive_from_new_cmds \ 12909old_archive_from_expsyms_cmds \ 12910archive_cmds \ 12911archive_expsym_cmds \ 12912module_cmds \ 12913module_expsym_cmds \ 12914export_symbols_cmds \ 12915prelink_cmds \ 12916postinstall_cmds \ 12917postuninstall_cmds \ 12918finish_cmds \ 12919sys_lib_search_path_spec \ 12920sys_lib_dlsearch_path_spec; do 12921 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12922 *[\\\\\\\`\\"\\\$]*) 12923 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12924 ;; 12925 *) 12926 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12927 ;; 12928 esac 12929done 12930 12931# Fix-up fallback echo if it was mangled by the above quoting rules. 12932case \$lt_ECHO in 12933*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12934 ;; 12935esac 12936 12937ac_aux_dir='$ac_aux_dir' 12938xsi_shell='$xsi_shell' 12939lt_shell_append='$lt_shell_append' 12940 12941# See if we are running on zsh, and set the options which allow our 12942# commands through without removal of \ escapes INIT. 12943if test -n "\${ZSH_VERSION+set}" ; then 12944 setopt NO_GLOB_SUBST 12945fi 12946 12947 12948 PACKAGE='$PACKAGE' 12949 VERSION='$VERSION' 12950 TIMESTAMP='$TIMESTAMP' 12951 RM='$RM' 12952 ofile='$ofile' 12953 12954 12955 12956 12957_ACEOF 12958 12959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12960 12961# Handling of arguments. 12962for ac_config_target in $ac_config_targets 12963do 12964 case $ac_config_target in 12965 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12966 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12967 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12969 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12970 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12971 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;; 12972 12973 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12974$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12975 { (exit 1); exit 1; }; };; 12976 esac 12977done 12978 12979 12980# If the user did not use the arguments to specify the items to instantiate, 12981# then the envvar interface is used. Set only those that are not. 12982# We use the long form for the default assignment because of an extremely 12983# bizarre bug on SunOS 4.1.3. 12984if $ac_need_defaults; then 12985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12987 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12988fi 12989 12990# Have a temporary directory for convenience. Make it in the build tree 12991# simply because there is no reason against having it here, and in addition, 12992# creating and moving files from /tmp can sometimes cause problems. 12993# Hook for its removal unless debugging. 12994# Note that there is a small window in which the directory will not be cleaned: 12995# after its creation but before its name has been assigned to `$tmp'. 12996$debug || 12997{ 12998 tmp= 12999 trap 'exit_status=$? 13000 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13001' 0 13002 trap '{ (exit 1); exit 1; }' 1 2 13 15 13003} 13004# Create a (secure) tmp directory for tmp files. 13005 13006{ 13007 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13008 test -n "$tmp" && test -d "$tmp" 13009} || 13010{ 13011 tmp=./conf$$-$RANDOM 13012 (umask 077 && mkdir "$tmp") 13013} || 13014{ 13015 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13016 { (exit 1); exit 1; } 13017} 13018 13019# Set up the scripts for CONFIG_FILES section. 13020# No need to generate them if there are no CONFIG_FILES. 13021# This happens for instance with `./config.status config.h'. 13022if test -n "$CONFIG_FILES"; then 13023 13024 13025ac_cr=' 13026' 13027ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13028if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13029 ac_cs_awk_cr='\\r' 13030else 13031 ac_cs_awk_cr=$ac_cr 13032fi 13033 13034echo 'BEGIN {' >"$tmp/subs1.awk" && 13035_ACEOF 13036 13037 13038{ 13039 echo "cat >conf$$subs.awk <<_ACEOF" && 13040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13041 echo "_ACEOF" 13042} >conf$$subs.sh || 13043 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13044$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13045 { (exit 1); exit 1; }; } 13046ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13047ac_delim='%!_!# ' 13048for ac_last_try in false false false false false :; do 13049 . ./conf$$subs.sh || 13050 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13051$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13052 { (exit 1); exit 1; }; } 13053 13054 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13055 if test $ac_delim_n = $ac_delim_num; then 13056 break 13057 elif $ac_last_try; then 13058 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13059$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13060 { (exit 1); exit 1; }; } 13061 else 13062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13063 fi 13064done 13065rm -f conf$$subs.sh 13066 13067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13068cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13069_ACEOF 13070sed -n ' 13071h 13072s/^/S["/; s/!.*/"]=/ 13073p 13074g 13075s/^[^!]*!// 13076:repl 13077t repl 13078s/'"$ac_delim"'$// 13079t delim 13080:nl 13081h 13082s/\(.\{148\}\).*/\1/ 13083t more1 13084s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13085p 13086n 13087b repl 13088:more1 13089s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13090p 13091g 13092s/.\{148\}// 13093t nl 13094:delim 13095h 13096s/\(.\{148\}\).*/\1/ 13097t more2 13098s/["\\]/\\&/g; s/^/"/; s/$/"/ 13099p 13100b 13101:more2 13102s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13103p 13104g 13105s/.\{148\}// 13106t delim 13107' <conf$$subs.awk | sed ' 13108/^[^""]/{ 13109 N 13110 s/\n// 13111} 13112' >>$CONFIG_STATUS || ac_write_fail=1 13113rm -f conf$$subs.awk 13114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13115_ACAWK 13116cat >>"\$tmp/subs1.awk" <<_ACAWK && 13117 for (key in S) S_is_set[key] = 1 13118 FS = "" 13119 13120} 13121{ 13122 line = $ 0 13123 nfields = split(line, field, "@") 13124 substed = 0 13125 len = length(field[1]) 13126 for (i = 2; i < nfields; i++) { 13127 key = field[i] 13128 keylen = length(key) 13129 if (S_is_set[key]) { 13130 value = S[key] 13131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13132 len += length(value) + length(field[++i]) 13133 substed = 1 13134 } else 13135 len += 1 + keylen 13136 } 13137 13138 print line 13139} 13140 13141_ACAWK 13142_ACEOF 13143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13146else 13147 cat 13148fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13149 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 13150$as_echo "$as_me: error: could not setup config files machinery" >&2;} 13151 { (exit 1); exit 1; }; } 13152_ACEOF 13153 13154# VPATH may cause trouble with some makes, so we remove $(srcdir), 13155# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13156# trailing colons and then remove the whole line if VPATH becomes empty 13157# (actually we leave an empty line to preserve line numbers). 13158if test "x$srcdir" = x.; then 13159 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13160s/:*\$(srcdir):*/:/ 13161s/:*\${srcdir}:*/:/ 13162s/:*@srcdir@:*/:/ 13163s/^\([^=]*=[ ]*\):*/\1/ 13164s/:*$// 13165s/^[^=]*=[ ]*$// 13166}' 13167fi 13168 13169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13170fi # test -n "$CONFIG_FILES" 13171 13172# Set up the scripts for CONFIG_HEADERS section. 13173# No need to generate them if there are no CONFIG_HEADERS. 13174# This happens for instance with `./config.status Makefile'. 13175if test -n "$CONFIG_HEADERS"; then 13176cat >"$tmp/defines.awk" <<\_ACAWK || 13177BEGIN { 13178_ACEOF 13179 13180# Transform confdefs.h into an awk script `defines.awk', embedded as 13181# here-document in config.status, that substitutes the proper values into 13182# config.h.in to produce config.h. 13183 13184# Create a delimiter string that does not exist in confdefs.h, to ease 13185# handling of long lines. 13186ac_delim='%!_!# ' 13187for ac_last_try in false false :; do 13188 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13189 if test -z "$ac_t"; then 13190 break 13191 elif $ac_last_try; then 13192 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 13193$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 13194 { (exit 1); exit 1; }; } 13195 else 13196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13197 fi 13198done 13199 13200# For the awk script, D is an array of macro values keyed by name, 13201# likewise P contains macro parameters if any. Preserve backslash 13202# newline sequences. 13203 13204ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13205sed -n ' 13206s/.\{148\}/&'"$ac_delim"'/g 13207t rset 13208:rset 13209s/^[ ]*#[ ]*define[ ][ ]*/ / 13210t def 13211d 13212:def 13213s/\\$// 13214t bsnl 13215s/["\\]/\\&/g 13216s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13217D["\1"]=" \3"/p 13218s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13219d 13220:bsnl 13221s/["\\]/\\&/g 13222s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13223D["\1"]=" \3\\\\\\n"\\/p 13224t cont 13225s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13226t cont 13227d 13228:cont 13229n 13230s/.\{148\}/&'"$ac_delim"'/g 13231t clear 13232:clear 13233s/\\$// 13234t bsnlc 13235s/["\\]/\\&/g; s/^/"/; s/$/"/p 13236d 13237:bsnlc 13238s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13239b cont 13240' <confdefs.h | sed ' 13241s/'"$ac_delim"'/"\\\ 13242"/g' >>$CONFIG_STATUS || ac_write_fail=1 13243 13244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13245 for (key in D) D_is_set[key] = 1 13246 FS = "" 13247} 13248/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13249 line = \$ 0 13250 split(line, arg, " ") 13251 if (arg[1] == "#") { 13252 defundef = arg[2] 13253 mac1 = arg[3] 13254 } else { 13255 defundef = substr(arg[1], 2) 13256 mac1 = arg[2] 13257 } 13258 split(mac1, mac2, "(") #) 13259 macro = mac2[1] 13260 prefix = substr(line, 1, index(line, defundef) - 1) 13261 if (D_is_set[macro]) { 13262 # Preserve the white space surrounding the "#". 13263 print prefix "define", macro P[macro] D[macro] 13264 next 13265 } else { 13266 # Replace #undef with comments. This is necessary, for example, 13267 # in the case of _POSIX_SOURCE, which is predefined and required 13268 # on some systems where configure will not decide to define it. 13269 if (defundef == "undef") { 13270 print "/*", prefix defundef, macro, "*/" 13271 next 13272 } 13273 } 13274} 13275{ print } 13276_ACAWK 13277_ACEOF 13278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13279 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 13280$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 13281 { (exit 1); exit 1; }; } 13282fi # test -n "$CONFIG_HEADERS" 13283 13284 13285eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13286shift 13287for ac_tag 13288do 13289 case $ac_tag in 13290 :[FHLC]) ac_mode=$ac_tag; continue;; 13291 esac 13292 case $ac_mode$ac_tag in 13293 :[FHL]*:*);; 13294 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 13295$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 13296 { (exit 1); exit 1; }; };; 13297 :[FH]-) ac_tag=-:-;; 13298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13299 esac 13300 ac_save_IFS=$IFS 13301 IFS=: 13302 set x $ac_tag 13303 IFS=$ac_save_IFS 13304 shift 13305 ac_file=$1 13306 shift 13307 13308 case $ac_mode in 13309 :L) ac_source=$1;; 13310 :[FH]) 13311 ac_file_inputs= 13312 for ac_f 13313 do 13314 case $ac_f in 13315 -) ac_f="$tmp/stdin";; 13316 *) # Look for the file first in the build tree, then in the source tree 13317 # (if the path is not absolute). The absolute path cannot be DOS-style, 13318 # because $ac_f cannot contain `:'. 13319 test -f "$ac_f" || 13320 case $ac_f in 13321 [\\/$]*) false;; 13322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13323 esac || 13324 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13325$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13326 { (exit 1); exit 1; }; };; 13327 esac 13328 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13329 ac_file_inputs="$ac_file_inputs '$ac_f'" 13330 done 13331 13332 # Let's still pretend it is `configure' which instantiates (i.e., don't 13333 # use $as_me), people would be surprised to read: 13334 # /* config.h. Generated by config.status. */ 13335 configure_input='Generated from '` 13336 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13337 `' by configure.' 13338 if test x"$ac_file" != x-; then 13339 configure_input="$ac_file. $configure_input" 13340 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 13341$as_echo "$as_me: creating $ac_file" >&6;} 13342 fi 13343 # Neutralize special characters interpreted by sed in replacement strings. 13344 case $configure_input in #( 13345 *\&* | *\|* | *\\* ) 13346 ac_sed_conf_input=`$as_echo "$configure_input" | 13347 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13348 *) ac_sed_conf_input=$configure_input;; 13349 esac 13350 13351 case $ac_tag in 13352 *:-:* | *:-) cat >"$tmp/stdin" \ 13353 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13354$as_echo "$as_me: error: could not create $ac_file" >&2;} 13355 { (exit 1); exit 1; }; } ;; 13356 esac 13357 ;; 13358 esac 13359 13360 ac_dir=`$as_dirname -- "$ac_file" || 13361$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13362 X"$ac_file" : 'X\(//\)[^/]' \| \ 13363 X"$ac_file" : 'X\(//\)$' \| \ 13364 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13365$as_echo X"$ac_file" | 13366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13367 s//\1/ 13368 q 13369 } 13370 /^X\(\/\/\)[^/].*/{ 13371 s//\1/ 13372 q 13373 } 13374 /^X\(\/\/\)$/{ 13375 s//\1/ 13376 q 13377 } 13378 /^X\(\/\).*/{ 13379 s//\1/ 13380 q 13381 } 13382 s/.*/./; q'` 13383 { as_dir="$ac_dir" 13384 case $as_dir in #( 13385 -*) as_dir=./$as_dir;; 13386 esac 13387 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13388 as_dirs= 13389 while :; do 13390 case $as_dir in #( 13391 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13392 *) as_qdir=$as_dir;; 13393 esac 13394 as_dirs="'$as_qdir' $as_dirs" 13395 as_dir=`$as_dirname -- "$as_dir" || 13396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13397 X"$as_dir" : 'X\(//\)[^/]' \| \ 13398 X"$as_dir" : 'X\(//\)$' \| \ 13399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13400$as_echo X"$as_dir" | 13401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13402 s//\1/ 13403 q 13404 } 13405 /^X\(\/\/\)[^/].*/{ 13406 s//\1/ 13407 q 13408 } 13409 /^X\(\/\/\)$/{ 13410 s//\1/ 13411 q 13412 } 13413 /^X\(\/\).*/{ 13414 s//\1/ 13415 q 13416 } 13417 s/.*/./; q'` 13418 test -d "$as_dir" && break 13419 done 13420 test -z "$as_dirs" || eval "mkdir $as_dirs" 13421 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13422$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13423 { (exit 1); exit 1; }; }; } 13424 ac_builddir=. 13425 13426case "$ac_dir" in 13427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13428*) 13429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13430 # A ".." for each directory in $ac_dir_suffix. 13431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13432 case $ac_top_builddir_sub in 13433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13435 esac ;; 13436esac 13437ac_abs_top_builddir=$ac_pwd 13438ac_abs_builddir=$ac_pwd$ac_dir_suffix 13439# for backward compatibility: 13440ac_top_builddir=$ac_top_build_prefix 13441 13442case $srcdir in 13443 .) # We are building in place. 13444 ac_srcdir=. 13445 ac_top_srcdir=$ac_top_builddir_sub 13446 ac_abs_top_srcdir=$ac_pwd ;; 13447 [\\/]* | ?:[\\/]* ) # Absolute name. 13448 ac_srcdir=$srcdir$ac_dir_suffix; 13449 ac_top_srcdir=$srcdir 13450 ac_abs_top_srcdir=$srcdir ;; 13451 *) # Relative name. 13452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13453 ac_top_srcdir=$ac_top_build_prefix$srcdir 13454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13455esac 13456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13457 13458 13459 case $ac_mode in 13460 :F) 13461 # 13462 # CONFIG_FILE 13463 # 13464 13465 case $INSTALL in 13466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13467 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13468 esac 13469 ac_MKDIR_P=$MKDIR_P 13470 case $MKDIR_P in 13471 [\\/$]* | ?:[\\/]* ) ;; 13472 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13473 esac 13474_ACEOF 13475 13476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13477# If the template does not know about datarootdir, expand it. 13478# FIXME: This hack should be removed a few years after 2.60. 13479ac_datarootdir_hack=; ac_datarootdir_seen= 13480 13481ac_sed_dataroot=' 13482/datarootdir/ { 13483 p 13484 q 13485} 13486/@datadir@/p 13487/@docdir@/p 13488/@infodir@/p 13489/@localedir@/p 13490/@mandir@/p 13491' 13492case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13493*datarootdir*) ac_datarootdir_seen=yes;; 13494*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13495 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13496$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13497_ACEOF 13498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13499 ac_datarootdir_hack=' 13500 s&@datadir@&$datadir&g 13501 s&@docdir@&$docdir&g 13502 s&@infodir@&$infodir&g 13503 s&@localedir@&$localedir&g 13504 s&@mandir@&$mandir&g 13505 s&\\\${datarootdir}&$datarootdir&g' ;; 13506esac 13507_ACEOF 13508 13509# Neutralize VPATH when `$srcdir' = `.'. 13510# Shell code in configure.ac might set extrasub. 13511# FIXME: do we really want to maintain this feature? 13512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13513ac_sed_extra="$ac_vpsub 13514$extrasub 13515_ACEOF 13516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13517:t 13518/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13519s|@configure_input@|$ac_sed_conf_input|;t t 13520s&@top_builddir@&$ac_top_builddir_sub&;t t 13521s&@top_build_prefix@&$ac_top_build_prefix&;t t 13522s&@srcdir@&$ac_srcdir&;t t 13523s&@abs_srcdir@&$ac_abs_srcdir&;t t 13524s&@top_srcdir@&$ac_top_srcdir&;t t 13525s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13526s&@builddir@&$ac_builddir&;t t 13527s&@abs_builddir@&$ac_abs_builddir&;t t 13528s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13529s&@INSTALL@&$ac_INSTALL&;t t 13530s&@MKDIR_P@&$ac_MKDIR_P&;t t 13531$ac_datarootdir_hack 13532" 13533eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13535$as_echo "$as_me: error: could not create $ac_file" >&2;} 13536 { (exit 1); exit 1; }; } 13537 13538test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13539 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13541 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13542which seems to be undefined. Please make sure it is defined." >&5 13543$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13544which seems to be undefined. Please make sure it is defined." >&2;} 13545 13546 rm -f "$tmp/stdin" 13547 case $ac_file in 13548 -) cat "$tmp/out" && rm -f "$tmp/out";; 13549 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13550 esac \ 13551 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13552$as_echo "$as_me: error: could not create $ac_file" >&2;} 13553 { (exit 1); exit 1; }; } 13554 ;; 13555 :H) 13556 # 13557 # CONFIG_HEADER 13558 # 13559 if test x"$ac_file" != x-; then 13560 { 13561 $as_echo "/* $configure_input */" \ 13562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13563 } >"$tmp/config.h" \ 13564 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13565$as_echo "$as_me: error: could not create $ac_file" >&2;} 13566 { (exit 1); exit 1; }; } 13567 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13568 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13569$as_echo "$as_me: $ac_file is unchanged" >&6;} 13570 else 13571 rm -f "$ac_file" 13572 mv "$tmp/config.h" "$ac_file" \ 13573 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13574$as_echo "$as_me: error: could not create $ac_file" >&2;} 13575 { (exit 1); exit 1; }; } 13576 fi 13577 else 13578 $as_echo "/* $configure_input */" \ 13579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13580 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 13581$as_echo "$as_me: error: could not create -" >&2;} 13582 { (exit 1); exit 1; }; } 13583 fi 13584# Compute "$ac_file"'s index in $config_headers. 13585_am_arg="$ac_file" 13586_am_stamp_count=1 13587for _am_header in $config_headers :; do 13588 case $_am_header in 13589 $_am_arg | $_am_arg:* ) 13590 break ;; 13591 * ) 13592 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13593 esac 13594done 13595echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13596$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13597 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13598 X"$_am_arg" : 'X\(//\)$' \| \ 13599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13600$as_echo X"$_am_arg" | 13601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13602 s//\1/ 13603 q 13604 } 13605 /^X\(\/\/\)[^/].*/{ 13606 s//\1/ 13607 q 13608 } 13609 /^X\(\/\/\)$/{ 13610 s//\1/ 13611 q 13612 } 13613 /^X\(\/\).*/{ 13614 s//\1/ 13615 q 13616 } 13617 s/.*/./; q'`/stamp-h$_am_stamp_count 13618 ;; 13619 13620 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 13621$as_echo "$as_me: executing $ac_file commands" >&6;} 13622 ;; 13623 esac 13624 13625 13626 case $ac_file$ac_mode in 13627 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13628 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13629 # are listed without --file. Let's play safe and only enable the eval 13630 # if we detect the quoting. 13631 case $CONFIG_FILES in 13632 *\'*) eval set x "$CONFIG_FILES" ;; 13633 *) set x $CONFIG_FILES ;; 13634 esac 13635 shift 13636 for mf 13637 do 13638 # Strip MF so we end up with the name of the file. 13639 mf=`echo "$mf" | sed -e 's/:.*$//'` 13640 # Check whether this is an Automake generated Makefile or not. 13641 # We used to match only the files named `Makefile.in', but 13642 # some people rename them; so instead we look at the file content. 13643 # Grep'ing the first line is not enough: some people post-process 13644 # each Makefile.in and add a new line on top of each file to say so. 13645 # Grep'ing the whole file is not good either: AIX grep has a line 13646 # limit of 2048, but all sed's we know have understand at least 4000. 13647 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13648 dirpart=`$as_dirname -- "$mf" || 13649$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13650 X"$mf" : 'X\(//\)[^/]' \| \ 13651 X"$mf" : 'X\(//\)$' \| \ 13652 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13653$as_echo X"$mf" | 13654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13655 s//\1/ 13656 q 13657 } 13658 /^X\(\/\/\)[^/].*/{ 13659 s//\1/ 13660 q 13661 } 13662 /^X\(\/\/\)$/{ 13663 s//\1/ 13664 q 13665 } 13666 /^X\(\/\).*/{ 13667 s//\1/ 13668 q 13669 } 13670 s/.*/./; q'` 13671 else 13672 continue 13673 fi 13674 # Extract the definition of DEPDIR, am__include, and am__quote 13675 # from the Makefile without running `make'. 13676 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13677 test -z "$DEPDIR" && continue 13678 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13679 test -z "am__include" && continue 13680 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13681 # When using ansi2knr, U may be empty or an underscore; expand it 13682 U=`sed -n 's/^U = //p' < "$mf"` 13683 # Find all dependency output files, they are included files with 13684 # $(DEPDIR) in their names. We invoke sed twice because it is the 13685 # simplest approach to changing $(DEPDIR) to its actual value in the 13686 # expansion. 13687 for file in `sed -n " 13688 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13689 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13690 # Make sure the directory exists. 13691 test -f "$dirpart/$file" && continue 13692 fdir=`$as_dirname -- "$file" || 13693$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13694 X"$file" : 'X\(//\)[^/]' \| \ 13695 X"$file" : 'X\(//\)$' \| \ 13696 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13697$as_echo X"$file" | 13698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13699 s//\1/ 13700 q 13701 } 13702 /^X\(\/\/\)[^/].*/{ 13703 s//\1/ 13704 q 13705 } 13706 /^X\(\/\/\)$/{ 13707 s//\1/ 13708 q 13709 } 13710 /^X\(\/\).*/{ 13711 s//\1/ 13712 q 13713 } 13714 s/.*/./; q'` 13715 { as_dir=$dirpart/$fdir 13716 case $as_dir in #( 13717 -*) as_dir=./$as_dir;; 13718 esac 13719 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13720 as_dirs= 13721 while :; do 13722 case $as_dir in #( 13723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13724 *) as_qdir=$as_dir;; 13725 esac 13726 as_dirs="'$as_qdir' $as_dirs" 13727 as_dir=`$as_dirname -- "$as_dir" || 13728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13729 X"$as_dir" : 'X\(//\)[^/]' \| \ 13730 X"$as_dir" : 'X\(//\)$' \| \ 13731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13732$as_echo X"$as_dir" | 13733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13734 s//\1/ 13735 q 13736 } 13737 /^X\(\/\/\)[^/].*/{ 13738 s//\1/ 13739 q 13740 } 13741 /^X\(\/\/\)$/{ 13742 s//\1/ 13743 q 13744 } 13745 /^X\(\/\).*/{ 13746 s//\1/ 13747 q 13748 } 13749 s/.*/./; q'` 13750 test -d "$as_dir" && break 13751 done 13752 test -z "$as_dirs" || eval "mkdir $as_dirs" 13753 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13754$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13755 { (exit 1); exit 1; }; }; } 13756 # echo "creating $dirpart/$file" 13757 echo '# dummy' > "$dirpart/$file" 13758 done 13759 done 13760} 13761 ;; 13762 "libtool":C) 13763 13764 # See if we are running on zsh, and set the options which allow our 13765 # commands through without removal of \ escapes. 13766 if test -n "${ZSH_VERSION+set}" ; then 13767 setopt NO_GLOB_SUBST 13768 fi 13769 13770 cfgfile="${ofile}T" 13771 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13772 $RM "$cfgfile" 13773 13774 cat <<_LT_EOF >> "$cfgfile" 13775#! $SHELL 13776 13777# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13778# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13780# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13781# 13782# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13783# 2006, 2007, 2008 Free Software Foundation, Inc. 13784# Written by Gordon Matzigkeit, 1996 13785# 13786# This file is part of GNU Libtool. 13787# 13788# GNU Libtool is free software; you can redistribute it and/or 13789# modify it under the terms of the GNU General Public License as 13790# published by the Free Software Foundation; either version 2 of 13791# the License, or (at your option) any later version. 13792# 13793# As a special exception to the GNU General Public License, 13794# if you distribute this file as part of a program or library that 13795# is built using GNU Libtool, you may include this file under the 13796# same distribution terms that you use for the rest of that program. 13797# 13798# GNU Libtool is distributed in the hope that it will be useful, 13799# but WITHOUT ANY WARRANTY; without even the implied warranty of 13800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13801# GNU General Public License for more details. 13802# 13803# You should have received a copy of the GNU General Public License 13804# along with GNU Libtool; see the file COPYING. If not, a copy 13805# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13806# obtained by writing to the Free Software Foundation, Inc., 13807# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13808 13809 13810# The names of the tagged configurations supported by this script. 13811available_tags="" 13812 13813# ### BEGIN LIBTOOL CONFIG 13814 13815# Which release of libtool.m4 was used? 13816macro_version=$macro_version 13817macro_revision=$macro_revision 13818 13819# Whether or not to build shared libraries. 13820build_libtool_libs=$enable_shared 13821 13822# Whether or not to build static libraries. 13823build_old_libs=$enable_static 13824 13825# What type of objects to build. 13826pic_mode=$pic_mode 13827 13828# Whether or not to optimize for fast installation. 13829fast_install=$enable_fast_install 13830 13831# The host system. 13832host_alias=$host_alias 13833host=$host 13834host_os=$host_os 13835 13836# The build system. 13837build_alias=$build_alias 13838build=$build 13839build_os=$build_os 13840 13841# A sed program that does not truncate output. 13842SED=$lt_SED 13843 13844# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13845Xsed="\$SED -e 1s/^X//" 13846 13847# A grep program that handles long lines. 13848GREP=$lt_GREP 13849 13850# An ERE matcher. 13851EGREP=$lt_EGREP 13852 13853# A literal string matcher. 13854FGREP=$lt_FGREP 13855 13856# A BSD- or MS-compatible name lister. 13857NM=$lt_NM 13858 13859# Whether we need soft or hard links. 13860LN_S=$lt_LN_S 13861 13862# What is the maximum length of a command? 13863max_cmd_len=$max_cmd_len 13864 13865# Object file suffix (normally "o"). 13866objext=$ac_objext 13867 13868# Executable file suffix (normally ""). 13869exeext=$exeext 13870 13871# whether the shell understands "unset". 13872lt_unset=$lt_unset 13873 13874# turn spaces into newlines. 13875SP2NL=$lt_lt_SP2NL 13876 13877# turn newlines into spaces. 13878NL2SP=$lt_lt_NL2SP 13879 13880# How to create reloadable object files. 13881reload_flag=$lt_reload_flag 13882reload_cmds=$lt_reload_cmds 13883 13884# An object symbol dumper. 13885OBJDUMP=$lt_OBJDUMP 13886 13887# Method to check whether dependent libraries are shared objects. 13888deplibs_check_method=$lt_deplibs_check_method 13889 13890# Command to use when deplibs_check_method == "file_magic". 13891file_magic_cmd=$lt_file_magic_cmd 13892 13893# The archiver. 13894AR=$lt_AR 13895AR_FLAGS=$lt_AR_FLAGS 13896 13897# A symbol stripping program. 13898STRIP=$lt_STRIP 13899 13900# Commands used to install an old-style archive. 13901RANLIB=$lt_RANLIB 13902old_postinstall_cmds=$lt_old_postinstall_cmds 13903old_postuninstall_cmds=$lt_old_postuninstall_cmds 13904 13905# A C compiler. 13906LTCC=$lt_CC 13907 13908# LTCC compiler flags. 13909LTCFLAGS=$lt_CFLAGS 13910 13911# Take the output of nm and produce a listing of raw symbols and C names. 13912global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13913 13914# Transform the output of nm in a proper C declaration. 13915global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13916 13917# Transform the output of nm in a C name address pair. 13918global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13919 13920# Transform the output of nm in a C name address pair when lib prefix is needed. 13921global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13922 13923# The name of the directory that contains temporary libtool files. 13924objdir=$objdir 13925 13926# Shell to use when invoking shell scripts. 13927SHELL=$lt_SHELL 13928 13929# An echo program that does not interpret backslashes. 13930ECHO=$lt_ECHO 13931 13932# Used to examine libraries when file_magic_cmd begins with "file". 13933MAGIC_CMD=$MAGIC_CMD 13934 13935# Must we lock files when doing compilation? 13936need_locks=$lt_need_locks 13937 13938# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13939DSYMUTIL=$lt_DSYMUTIL 13940 13941# Tool to change global to local symbols on Mac OS X. 13942NMEDIT=$lt_NMEDIT 13943 13944# Tool to manipulate fat objects and archives on Mac OS X. 13945LIPO=$lt_LIPO 13946 13947# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13948OTOOL=$lt_OTOOL 13949 13950# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13951OTOOL64=$lt_OTOOL64 13952 13953# Old archive suffix (normally "a"). 13954libext=$libext 13955 13956# Shared library suffix (normally ".so"). 13957shrext_cmds=$lt_shrext_cmds 13958 13959# The commands to extract the exported symbol list from a shared archive. 13960extract_expsyms_cmds=$lt_extract_expsyms_cmds 13961 13962# Variables whose values should be saved in libtool wrapper scripts and 13963# restored at link time. 13964variables_saved_for_relink=$lt_variables_saved_for_relink 13965 13966# Do we need the "lib" prefix for modules? 13967need_lib_prefix=$need_lib_prefix 13968 13969# Do we need a version for libraries? 13970need_version=$need_version 13971 13972# Library versioning type. 13973version_type=$version_type 13974 13975# Shared library runtime path variable. 13976runpath_var=$runpath_var 13977 13978# Shared library path variable. 13979shlibpath_var=$shlibpath_var 13980 13981# Is shlibpath searched before the hard-coded library search path? 13982shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13983 13984# Format of library name prefix. 13985libname_spec=$lt_libname_spec 13986 13987# List of archive names. First name is the real one, the rest are links. 13988# The last name is the one that the linker finds with -lNAME 13989library_names_spec=$lt_library_names_spec 13990 13991# The coded name of the library, if different from the real name. 13992soname_spec=$lt_soname_spec 13993 13994# Command to use after installation of a shared archive. 13995postinstall_cmds=$lt_postinstall_cmds 13996 13997# Command to use after uninstallation of a shared archive. 13998postuninstall_cmds=$lt_postuninstall_cmds 13999 14000# Commands used to finish a libtool library installation in a directory. 14001finish_cmds=$lt_finish_cmds 14002 14003# As "finish_cmds", except a single script fragment to be evaled but 14004# not shown. 14005finish_eval=$lt_finish_eval 14006 14007# Whether we should hardcode library paths into libraries. 14008hardcode_into_libs=$hardcode_into_libs 14009 14010# Compile-time system search path for libraries. 14011sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14012 14013# Run-time system search path for libraries. 14014sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14015 14016# Whether dlopen is supported. 14017dlopen_support=$enable_dlopen 14018 14019# Whether dlopen of programs is supported. 14020dlopen_self=$enable_dlopen_self 14021 14022# Whether dlopen of statically linked programs is supported. 14023dlopen_self_static=$enable_dlopen_self_static 14024 14025# Commands to strip libraries. 14026old_striplib=$lt_old_striplib 14027striplib=$lt_striplib 14028 14029 14030# The linker used to build libraries. 14031LD=$lt_LD 14032 14033# Commands used to build an old-style archive. 14034old_archive_cmds=$lt_old_archive_cmds 14035 14036# A language specific compiler. 14037CC=$lt_compiler 14038 14039# Is the compiler the GNU compiler? 14040with_gcc=$GCC 14041 14042# Compiler flag to turn off builtin functions. 14043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14044 14045# How to pass a linker flag through the compiler. 14046wl=$lt_lt_prog_compiler_wl 14047 14048# Additional compiler flags for building library objects. 14049pic_flag=$lt_lt_prog_compiler_pic 14050 14051# Compiler flag to prevent dynamic linking. 14052link_static_flag=$lt_lt_prog_compiler_static 14053 14054# Does compiler simultaneously support -c and -o options? 14055compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14056 14057# Whether or not to add -lc for building shared libraries. 14058build_libtool_need_lc=$archive_cmds_need_lc 14059 14060# Whether or not to disallow shared libs when runtime libs are static. 14061allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14062 14063# Compiler flag to allow reflexive dlopens. 14064export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14065 14066# Compiler flag to generate shared objects directly from archives. 14067whole_archive_flag_spec=$lt_whole_archive_flag_spec 14068 14069# Whether the compiler copes with passing no objects directly. 14070compiler_needs_object=$lt_compiler_needs_object 14071 14072# Create an old-style archive from a shared archive. 14073old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14074 14075# Create a temporary old-style archive to link instead of a shared archive. 14076old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14077 14078# Commands used to build a shared archive. 14079archive_cmds=$lt_archive_cmds 14080archive_expsym_cmds=$lt_archive_expsym_cmds 14081 14082# Commands used to build a loadable module if different from building 14083# a shared archive. 14084module_cmds=$lt_module_cmds 14085module_expsym_cmds=$lt_module_expsym_cmds 14086 14087# Whether we are building with GNU ld or not. 14088with_gnu_ld=$lt_with_gnu_ld 14089 14090# Flag that allows shared libraries with undefined symbols to be built. 14091allow_undefined_flag=$lt_allow_undefined_flag 14092 14093# Flag that enforces no undefined symbols. 14094no_undefined_flag=$lt_no_undefined_flag 14095 14096# Flag to hardcode \$libdir into a binary during linking. 14097# This must work even if \$libdir does not exist 14098hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14099 14100# If ld is used when linking, flag to hardcode \$libdir into a binary 14101# during linking. This must work even if \$libdir does not exist. 14102hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14103 14104# Whether we need a single "-rpath" flag with a separated argument. 14105hardcode_libdir_separator=$lt_hardcode_libdir_separator 14106 14107# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14108# DIR into the resulting binary. 14109hardcode_direct=$hardcode_direct 14110 14111# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14112# DIR into the resulting binary and the resulting library dependency is 14113# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14114# library is relocated. 14115hardcode_direct_absolute=$hardcode_direct_absolute 14116 14117# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14118# into the resulting binary. 14119hardcode_minus_L=$hardcode_minus_L 14120 14121# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14122# into the resulting binary. 14123hardcode_shlibpath_var=$hardcode_shlibpath_var 14124 14125# Set to "yes" if building a shared library automatically hardcodes DIR 14126# into the library and all subsequent libraries and executables linked 14127# against it. 14128hardcode_automatic=$hardcode_automatic 14129 14130# Set to yes if linker adds runtime paths of dependent libraries 14131# to runtime path list. 14132inherit_rpath=$inherit_rpath 14133 14134# Whether libtool must link a program against all its dependency libraries. 14135link_all_deplibs=$link_all_deplibs 14136 14137# Fix the shell variable \$srcfile for the compiler. 14138fix_srcfile_path=$lt_fix_srcfile_path 14139 14140# Set to "yes" if exported symbols are required. 14141always_export_symbols=$always_export_symbols 14142 14143# The commands to list exported symbols. 14144export_symbols_cmds=$lt_export_symbols_cmds 14145 14146# Symbols that should not be listed in the preloaded symbols. 14147exclude_expsyms=$lt_exclude_expsyms 14148 14149# Symbols that must always be exported. 14150include_expsyms=$lt_include_expsyms 14151 14152# Commands necessary for linking programs (against libraries) with templates. 14153prelink_cmds=$lt_prelink_cmds 14154 14155# Specify filename containing input files. 14156file_list_spec=$lt_file_list_spec 14157 14158# How to hardcode a shared library path into an executable. 14159hardcode_action=$hardcode_action 14160 14161# ### END LIBTOOL CONFIG 14162 14163_LT_EOF 14164 14165 case $host_os in 14166 aix3*) 14167 cat <<\_LT_EOF >> "$cfgfile" 14168# AIX sometimes has problems with the GCC collect2 program. For some 14169# reason, if we set the COLLECT_NAMES environment variable, the problems 14170# vanish in a puff of smoke. 14171if test "X${COLLECT_NAMES+set}" != Xset; then 14172 COLLECT_NAMES= 14173 export COLLECT_NAMES 14174fi 14175_LT_EOF 14176 ;; 14177 esac 14178 14179 14180ltmain="$ac_aux_dir/ltmain.sh" 14181 14182 14183 # We use sed instead of cat because bash on DJGPP gets confused if 14184 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14185 # text mode, it properly converts lines to CR/LF. This bash problem 14186 # is reportedly fixed, but why not run on old versions too? 14187 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14188 || (rm -f "$cfgfile"; exit 1) 14189 14190 case $xsi_shell in 14191 yes) 14192 cat << \_LT_EOF >> "$cfgfile" 14193 14194# func_dirname file append nondir_replacement 14195# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14196# otherwise set result to NONDIR_REPLACEMENT. 14197func_dirname () 14198{ 14199 case ${1} in 14200 */*) func_dirname_result="${1%/*}${2}" ;; 14201 * ) func_dirname_result="${3}" ;; 14202 esac 14203} 14204 14205# func_basename file 14206func_basename () 14207{ 14208 func_basename_result="${1##*/}" 14209} 14210 14211# func_dirname_and_basename file append nondir_replacement 14212# perform func_basename and func_dirname in a single function 14213# call: 14214# dirname: Compute the dirname of FILE. If nonempty, 14215# add APPEND to the result, otherwise set result 14216# to NONDIR_REPLACEMENT. 14217# value returned in "$func_dirname_result" 14218# basename: Compute filename of FILE. 14219# value retuned in "$func_basename_result" 14220# Implementation must be kept synchronized with func_dirname 14221# and func_basename. For efficiency, we do not delegate to 14222# those functions but instead duplicate the functionality here. 14223func_dirname_and_basename () 14224{ 14225 case ${1} in 14226 */*) func_dirname_result="${1%/*}${2}" ;; 14227 * ) func_dirname_result="${3}" ;; 14228 esac 14229 func_basename_result="${1##*/}" 14230} 14231 14232# func_stripname prefix suffix name 14233# strip PREFIX and SUFFIX off of NAME. 14234# PREFIX and SUFFIX must not contain globbing or regex special 14235# characters, hashes, percent signs, but SUFFIX may contain a leading 14236# dot (in which case that matches only a dot). 14237func_stripname () 14238{ 14239 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14240 # positional parameters, so assign one to ordinary parameter first. 14241 func_stripname_result=${3} 14242 func_stripname_result=${func_stripname_result#"${1}"} 14243 func_stripname_result=${func_stripname_result%"${2}"} 14244} 14245 14246# func_opt_split 14247func_opt_split () 14248{ 14249 func_opt_split_opt=${1%%=*} 14250 func_opt_split_arg=${1#*=} 14251} 14252 14253# func_lo2o object 14254func_lo2o () 14255{ 14256 case ${1} in 14257 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14258 *) func_lo2o_result=${1} ;; 14259 esac 14260} 14261 14262# func_xform libobj-or-source 14263func_xform () 14264{ 14265 func_xform_result=${1%.*}.lo 14266} 14267 14268# func_arith arithmetic-term... 14269func_arith () 14270{ 14271 func_arith_result=$(( $* )) 14272} 14273 14274# func_len string 14275# STRING may not start with a hyphen. 14276func_len () 14277{ 14278 func_len_result=${#1} 14279} 14280 14281_LT_EOF 14282 ;; 14283 *) # Bourne compatible functions. 14284 cat << \_LT_EOF >> "$cfgfile" 14285 14286# func_dirname file append nondir_replacement 14287# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14288# otherwise set result to NONDIR_REPLACEMENT. 14289func_dirname () 14290{ 14291 # Extract subdirectory from the argument. 14292 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14293 if test "X$func_dirname_result" = "X${1}"; then 14294 func_dirname_result="${3}" 14295 else 14296 func_dirname_result="$func_dirname_result${2}" 14297 fi 14298} 14299 14300# func_basename file 14301func_basename () 14302{ 14303 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14304} 14305 14306 14307# func_stripname prefix suffix name 14308# strip PREFIX and SUFFIX off of NAME. 14309# PREFIX and SUFFIX must not contain globbing or regex special 14310# characters, hashes, percent signs, but SUFFIX may contain a leading 14311# dot (in which case that matches only a dot). 14312# func_strip_suffix prefix name 14313func_stripname () 14314{ 14315 case ${2} in 14316 .*) func_stripname_result=`$ECHO "X${3}" \ 14317 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14318 *) func_stripname_result=`$ECHO "X${3}" \ 14319 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14320 esac 14321} 14322 14323# sed scripts: 14324my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14325my_sed_long_arg='1s/^-[^=]*=//' 14326 14327# func_opt_split 14328func_opt_split () 14329{ 14330 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14331 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14332} 14333 14334# func_lo2o object 14335func_lo2o () 14336{ 14337 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14338} 14339 14340# func_xform libobj-or-source 14341func_xform () 14342{ 14343 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14344} 14345 14346# func_arith arithmetic-term... 14347func_arith () 14348{ 14349 func_arith_result=`expr "$@"` 14350} 14351 14352# func_len string 14353# STRING may not start with a hyphen. 14354func_len () 14355{ 14356 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14357} 14358 14359_LT_EOF 14360esac 14361 14362case $lt_shell_append in 14363 yes) 14364 cat << \_LT_EOF >> "$cfgfile" 14365 14366# func_append var value 14367# Append VALUE to the end of shell variable VAR. 14368func_append () 14369{ 14370 eval "$1+=\$2" 14371} 14372_LT_EOF 14373 ;; 14374 *) 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=\$$1\$2" 14382} 14383 14384_LT_EOF 14385 ;; 14386 esac 14387 14388 14389 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14390 || (rm -f "$cfgfile"; exit 1) 14391 14392 mv -f "$cfgfile" "$ofile" || 14393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14394 chmod +x "$ofile" 14395 14396 ;; 14397 14398 esac 14399done # for ac_tag 14400 14401 14402{ (exit 0); exit 0; } 14403_ACEOF 14404chmod +x $CONFIG_STATUS 14405ac_clean_files=$ac_clean_files_save 14406 14407test $ac_write_fail = 0 || 14408 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14409$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 14410 { (exit 1); exit 1; }; } 14411 14412 14413# configure is writing to config.log, and then calls config.status. 14414# config.status does its own redirection, appending to config.log. 14415# Unfortunately, on DOS this fails, as config.log is still kept open 14416# by configure, so config.status won't be able to write to it; its 14417# output is simply discarded. So we exec the FD to /dev/null, 14418# effectively closing config.log, so it can be properly (re)opened and 14419# appended to by config.status. When coming back to configure, we 14420# need to make the FD available again. 14421if test "$no_create" != yes; then 14422 ac_cs_success=: 14423 ac_config_status_args= 14424 test "$silent" = yes && 14425 ac_config_status_args="$ac_config_status_args --quiet" 14426 exec 5>/dev/null 14427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14428 exec 5>>config.log 14429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14430 # would make configure fail if this is the last instruction. 14431 $ac_cs_success || { (exit 1); exit 1; } 14432fi 14433if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14434 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14435$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14436fi 14437 14438