configure revision 72313efb
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-rendition 4.2.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='xf86-video-rendition' 747PACKAGE_TARNAME='xf86-video-rendition' 748PACKAGE_VERSION='4.2.1' 749PACKAGE_STRING='xf86-video-rendition 4.2.1' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='LTLIBOBJS 790LIBOBJS 791MAKE_HTML 792MAKE_PDF 793MAKE_PS 794MAKE_TEXT 795BUILD_PDFDOC_FALSE 796BUILD_PDFDOC_TRUE 797BUILD_LINUXDOC_FALSE 798BUILD_LINUXDOC_TRUE 799PS2PDF 800LINUXDOC 801distcleancheck_listfiles 802CHANGELOG_CMD 803ADMIN_MAN_DIR 804DRIVER_MAN_DIR 805MISC_MAN_DIR 806FILE_MAN_DIR 807LIB_MAN_DIR 808APP_MAN_DIR 809ADMIN_MAN_SUFFIX 810DRIVER_MAN_SUFFIX 811MISC_MAN_SUFFIX 812FILE_MAN_SUFFIX 813LIB_MAN_SUFFIX 814APP_MAN_SUFFIX 815DRIVER_NAME 816moduledir 817XSERVER_LIBPCIACCESS_FALSE 818XSERVER_LIBPCIACCESS_TRUE 819PCIACCESS_LIBS 820PCIACCESS_CFLAGS 821XORG_LIBS 822XORG_CFLAGS 823PKG_CONFIG 824CPP 825OTOOL64 826OTOOL 827LIPO 828NMEDIT 829DSYMUTIL 830lt_ECHO 831RANLIB 832AR 833OBJDUMP 834LN_S 835NM 836ac_ct_DUMPBIN 837DUMPBIN 838LD 839FGREP 840EGREP 841GREP 842SED 843am__fastdepCC_FALSE 844am__fastdepCC_TRUE 845CCDEPMODE 846AMDEPBACKSLASH 847AMDEP_FALSE 848AMDEP_TRUE 849am__quote 850am__include 851DEPDIR 852OBJEXT 853EXEEXT 854ac_ct_CC 855CPPFLAGS 856LDFLAGS 857CFLAGS 858CC 859host_os 860host_vendor 861host_cpu 862host 863build_os 864build_vendor 865build_cpu 866build 867LIBTOOL 868MAINT 869MAINTAINER_MODE_FALSE 870MAINTAINER_MODE_TRUE 871am__untar 872am__tar 873AMTAR 874am__leading_dot 875SET_MAKE 876AWK 877mkdir_p 878MKDIR_P 879INSTALL_STRIP_PROGRAM 880STRIP 881install_sh 882MAKEINFO 883AUTOHEADER 884AUTOMAKE 885AUTOCONF 886ACLOCAL 887VERSION 888PACKAGE 889CYGPATH_W 890am__isrc 891INSTALL_DATA 892INSTALL_SCRIPT 893INSTALL_PROGRAM 894target_alias 895host_alias 896build_alias 897LIBS 898ECHO_T 899ECHO_N 900ECHO_C 901DEFS 902mandir 903localedir 904libdir 905psdir 906pdfdir 907dvidir 908htmldir 909infodir 910docdir 911oldincludedir 912includedir 913localstatedir 914sharedstatedir 915sysconfdir 916datadir 917datarootdir 918libexecdir 919sbindir 920bindir 921program_transform_name 922prefix 923exec_prefix 924PACKAGE_BUGREPORT 925PACKAGE_STRING 926PACKAGE_VERSION 927PACKAGE_TARNAME 928PACKAGE_NAME 929PATH_SEPARATOR 930SHELL' 931ac_subst_files='' 932ac_user_opts=' 933enable_option_checking 934enable_maintainer_mode 935enable_static 936enable_shared 937with_pic 938enable_fast_install 939enable_dependency_tracking 940with_gnu_ld 941enable_libtool_lock 942with_xorg_module_dir 943with_release_version 944' 945 ac_precious_vars='build_alias 946host_alias 947target_alias 948CC 949CFLAGS 950LDFLAGS 951LIBS 952CPPFLAGS 953CPP 954PKG_CONFIG 955XORG_CFLAGS 956XORG_LIBS 957PCIACCESS_CFLAGS 958PCIACCESS_LIBS' 959 960 961# Initialize some variables set by options. 962ac_init_help= 963ac_init_version=false 964ac_unrecognized_opts= 965ac_unrecognized_sep= 966# The variables have the same names as the options, with 967# dashes changed to underlines. 968cache_file=/dev/null 969exec_prefix=NONE 970no_create= 971no_recursion= 972prefix=NONE 973program_prefix=NONE 974program_suffix=NONE 975program_transform_name=s,x,x, 976silent= 977site= 978srcdir= 979verbose= 980x_includes=NONE 981x_libraries=NONE 982 983# Installation directory options. 984# These are left unexpanded so users can "make install exec_prefix=/foo" 985# and all the variables that are supposed to be based on exec_prefix 986# by default will actually change. 987# Use braces instead of parens because sh, perl, etc. also accept them. 988# (The list follows the same order as the GNU Coding Standards.) 989bindir='${exec_prefix}/bin' 990sbindir='${exec_prefix}/sbin' 991libexecdir='${exec_prefix}/libexec' 992datarootdir='${prefix}/share' 993datadir='${datarootdir}' 994sysconfdir='${prefix}/etc' 995sharedstatedir='${prefix}/com' 996localstatedir='${prefix}/var' 997includedir='${prefix}/include' 998oldincludedir='/usr/include' 999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1000infodir='${datarootdir}/info' 1001htmldir='${docdir}' 1002dvidir='${docdir}' 1003pdfdir='${docdir}' 1004psdir='${docdir}' 1005libdir='${exec_prefix}/lib' 1006localedir='${datarootdir}/locale' 1007mandir='${datarootdir}/man' 1008 1009ac_prev= 1010ac_dashdash= 1011for ac_option 1012do 1013 # If the previous option needs an argument, assign it. 1014 if test -n "$ac_prev"; then 1015 eval $ac_prev=\$ac_option 1016 ac_prev= 1017 continue 1018 fi 1019 1020 case $ac_option in 1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1022 *) ac_optarg=yes ;; 1023 esac 1024 1025 # Accept the important Cygnus configure options, so we can diagnose typos. 1026 1027 case $ac_dashdash$ac_option in 1028 --) 1029 ac_dashdash=yes ;; 1030 1031 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1032 ac_prev=bindir ;; 1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1034 bindir=$ac_optarg ;; 1035 1036 -build | --build | --buil | --bui | --bu) 1037 ac_prev=build_alias ;; 1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1039 build_alias=$ac_optarg ;; 1040 1041 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1043 ac_prev=cache_file ;; 1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1046 cache_file=$ac_optarg ;; 1047 1048 --config-cache | -C) 1049 cache_file=config.cache ;; 1050 1051 -datadir | --datadir | --datadi | --datad) 1052 ac_prev=datadir ;; 1053 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1054 datadir=$ac_optarg ;; 1055 1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1057 | --dataroo | --dataro | --datar) 1058 ac_prev=datarootdir ;; 1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1061 datarootdir=$ac_optarg ;; 1062 1063 -disable-* | --disable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=no ;; 1079 1080 -docdir | --docdir | --docdi | --doc | --do) 1081 ac_prev=docdir ;; 1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1083 docdir=$ac_optarg ;; 1084 1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1086 ac_prev=dvidir ;; 1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1088 dvidir=$ac_optarg ;; 1089 1090 -enable-* | --enable-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1095 { (exit 1); exit 1; }; } 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"enable_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval enable_$ac_useropt=\$ac_optarg ;; 1106 1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1109 | --exec | --exe | --ex) 1110 ac_prev=exec_prefix ;; 1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1113 | --exec=* | --exe=* | --ex=*) 1114 exec_prefix=$ac_optarg ;; 1115 1116 -gas | --gas | --ga | --g) 1117 # Obsolete; use --with-gas. 1118 with_gas=yes ;; 1119 1120 -help | --help | --hel | --he | -h) 1121 ac_init_help=long ;; 1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1123 ac_init_help=recursive ;; 1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1125 ac_init_help=short ;; 1126 1127 -host | --host | --hos | --ho) 1128 ac_prev=host_alias ;; 1129 -host=* | --host=* | --hos=* | --ho=*) 1130 host_alias=$ac_optarg ;; 1131 1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1133 ac_prev=htmldir ;; 1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1135 | --ht=*) 1136 htmldir=$ac_optarg ;; 1137 1138 -includedir | --includedir | --includedi | --included | --include \ 1139 | --includ | --inclu | --incl | --inc) 1140 ac_prev=includedir ;; 1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1142 | --includ=* | --inclu=* | --incl=* | --inc=*) 1143 includedir=$ac_optarg ;; 1144 1145 -infodir | --infodir | --infodi | --infod | --info | --inf) 1146 ac_prev=infodir ;; 1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1148 infodir=$ac_optarg ;; 1149 1150 -libdir | --libdir | --libdi | --libd) 1151 ac_prev=libdir ;; 1152 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1153 libdir=$ac_optarg ;; 1154 1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1156 | --libexe | --libex | --libe) 1157 ac_prev=libexecdir ;; 1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1159 | --libexe=* | --libex=* | --libe=*) 1160 libexecdir=$ac_optarg ;; 1161 1162 -localedir | --localedir | --localedi | --localed | --locale) 1163 ac_prev=localedir ;; 1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1165 localedir=$ac_optarg ;; 1166 1167 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1168 | --localstate | --localstat | --localsta | --localst | --locals) 1169 ac_prev=localstatedir ;; 1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1172 localstatedir=$ac_optarg ;; 1173 1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1175 ac_prev=mandir ;; 1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1177 mandir=$ac_optarg ;; 1178 1179 -nfp | --nfp | --nf) 1180 # Obsolete; use --without-fp. 1181 with_fp=no ;; 1182 1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1184 | --no-cr | --no-c | -n) 1185 no_create=yes ;; 1186 1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1189 no_recursion=yes ;; 1190 1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1193 | --oldin | --oldi | --old | --ol | --o) 1194 ac_prev=oldincludedir ;; 1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1198 oldincludedir=$ac_optarg ;; 1199 1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1201 ac_prev=prefix ;; 1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1203 prefix=$ac_optarg ;; 1204 1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1206 | --program-pre | --program-pr | --program-p) 1207 ac_prev=program_prefix ;; 1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1210 program_prefix=$ac_optarg ;; 1211 1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1213 | --program-suf | --program-su | --program-s) 1214 ac_prev=program_suffix ;; 1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1217 program_suffix=$ac_optarg ;; 1218 1219 -program-transform-name | --program-transform-name \ 1220 | --program-transform-nam | --program-transform-na \ 1221 | --program-transform-n | --program-transform- \ 1222 | --program-transform | --program-transfor \ 1223 | --program-transfo | --program-transf \ 1224 | --program-trans | --program-tran \ 1225 | --progr-tra | --program-tr | --program-t) 1226 ac_prev=program_transform_name ;; 1227 -program-transform-name=* | --program-transform-name=* \ 1228 | --program-transform-nam=* | --program-transform-na=* \ 1229 | --program-transform-n=* | --program-transform-=* \ 1230 | --program-transform=* | --program-transfor=* \ 1231 | --program-transfo=* | --program-transf=* \ 1232 | --program-trans=* | --program-tran=* \ 1233 | --progr-tra=* | --program-tr=* | --program-t=*) 1234 program_transform_name=$ac_optarg ;; 1235 1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1237 ac_prev=pdfdir ;; 1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1239 pdfdir=$ac_optarg ;; 1240 1241 -psdir | --psdir | --psdi | --psd | --ps) 1242 ac_prev=psdir ;; 1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1244 psdir=$ac_optarg ;; 1245 1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1247 | -silent | --silent | --silen | --sile | --sil) 1248 silent=yes ;; 1249 1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1251 ac_prev=sbindir ;; 1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1253 | --sbi=* | --sb=*) 1254 sbindir=$ac_optarg ;; 1255 1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1258 | --sharedst | --shareds | --shared | --share | --shar \ 1259 | --sha | --sh) 1260 ac_prev=sharedstatedir ;; 1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1264 | --sha=* | --sh=*) 1265 sharedstatedir=$ac_optarg ;; 1266 1267 -site | --site | --sit) 1268 ac_prev=site ;; 1269 -site=* | --site=* | --sit=*) 1270 site=$ac_optarg ;; 1271 1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1273 ac_prev=srcdir ;; 1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1275 srcdir=$ac_optarg ;; 1276 1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1278 | --syscon | --sysco | --sysc | --sys | --sy) 1279 ac_prev=sysconfdir ;; 1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1282 sysconfdir=$ac_optarg ;; 1283 1284 -target | --target | --targe | --targ | --tar | --ta | --t) 1285 ac_prev=target_alias ;; 1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1287 target_alias=$ac_optarg ;; 1288 1289 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1290 verbose=yes ;; 1291 1292 -version | --version | --versio | --versi | --vers | -V) 1293 ac_init_version=: ;; 1294 1295 -with-* | --with-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1300 { (exit 1); exit 1; }; } 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"with_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval with_$ac_useropt=\$ac_optarg ;; 1311 1312 -without-* | --without-*) 1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1314 # Reject names that are not valid shell variable names. 1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1316 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1317 { (exit 1); exit 1; }; } 1318 ac_useropt_orig=$ac_useropt 1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1320 case $ac_user_opts in 1321 *" 1322"with_$ac_useropt" 1323"*) ;; 1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1325 ac_unrecognized_sep=', ';; 1326 esac 1327 eval with_$ac_useropt=no ;; 1328 1329 --x) 1330 # Obsolete; use --with-x. 1331 with_x=yes ;; 1332 1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1334 | --x-incl | --x-inc | --x-in | --x-i) 1335 ac_prev=x_includes ;; 1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1338 x_includes=$ac_optarg ;; 1339 1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1342 ac_prev=x_libraries ;; 1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1345 x_libraries=$ac_optarg ;; 1346 1347 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1348Try \`$0 --help' for more information." >&2 1349 { (exit 1); exit 1; }; } 1350 ;; 1351 1352 *=*) 1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1354 # Reject names that are not valid shell variable names. 1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1356 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1357 { (exit 1); exit 1; }; } 1358 eval $ac_envvar=\$ac_optarg 1359 export $ac_envvar ;; 1360 1361 *) 1362 # FIXME: should be removed in autoconf 3.0. 1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1367 ;; 1368 1369 esac 1370done 1371 1372if test -n "$ac_prev"; then 1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1374 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1375 { (exit 1); exit 1; }; } 1376fi 1377 1378if test -n "$ac_unrecognized_opts"; then 1379 case $enable_option_checking in 1380 no) ;; 1381 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1382 { (exit 1); exit 1; }; } ;; 1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1384 esac 1385fi 1386 1387# Check all directory arguments for consistency. 1388for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1389 datadir sysconfdir sharedstatedir localstatedir includedir \ 1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1391 libdir localedir mandir 1392do 1393 eval ac_val=\$$ac_var 1394 # Remove trailing slashes. 1395 case $ac_val in 1396 */ ) 1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1398 eval $ac_var=\$ac_val;; 1399 esac 1400 # Be sure to have absolute directory names. 1401 case $ac_val in 1402 [\\/$]* | ?:[\\/]* ) continue;; 1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1404 esac 1405 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1406 { (exit 1); exit 1; }; } 1407done 1408 1409# There might be people who depend on the old broken behavior: `$host' 1410# used to hold the argument of --host etc. 1411# FIXME: To remove some day. 1412build=$build_alias 1413host=$host_alias 1414target=$target_alias 1415 1416# FIXME: To remove some day. 1417if test "x$host_alias" != x; then 1418 if test "x$build_alias" = x; then 1419 cross_compiling=maybe 1420 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1421 If a cross compiler is detected then cross compile mode will be used." >&2 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1437 { (exit 1); exit 1; }; } 1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1439 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1440 { (exit 1); exit 1; }; } 1441 1442 1443# Find the source files, if location was not specified. 1444if test -z "$srcdir"; then 1445 ac_srcdir_defaulted=yes 1446 # Try the directory containing this script, then the parent directory. 1447 ac_confdir=`$as_dirname -- "$as_myself" || 1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1449 X"$as_myself" : 'X\(//\)[^/]' \| \ 1450 X"$as_myself" : 'X\(//\)$' \| \ 1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1452$as_echo X"$as_myself" | 1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)[^/].*/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\/\)$/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\).*/{ 1466 s//\1/ 1467 q 1468 } 1469 s/.*/./; q'` 1470 srcdir=$ac_confdir 1471 if test ! -r "$srcdir/$ac_unique_file"; then 1472 srcdir=.. 1473 fi 1474else 1475 ac_srcdir_defaulted=no 1476fi 1477if test ! -r "$srcdir/$ac_unique_file"; then 1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1479 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1480 { (exit 1); exit 1; }; } 1481fi 1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1483ac_abs_confdir=`( 1484 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1485 { (exit 1); exit 1; }; } 1486 pwd)` 1487# When building in place, set srcdir=. 1488if test "$ac_abs_confdir" = "$ac_pwd"; then 1489 srcdir=. 1490fi 1491# Remove unnecessary trailing slashes from srcdir. 1492# Double slashes in file names in object file debugging info 1493# mess up M-x gdb in Emacs. 1494case $srcdir in 1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1496esac 1497for ac_var in $ac_precious_vars; do 1498 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_env_${ac_var}_value=\$${ac_var} 1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1502done 1503 1504# 1505# Report the --help message. 1506# 1507if test "$ac_init_help" = "long"; then 1508 # Omit some internal or obsolete options to make the list less imposing. 1509 # This message is too long to be a string in the A/UX 3.1 sh. 1510 cat <<_ACEOF 1511\`configure' configures xf86-video-rendition 4.2.1 to adapt to many kinds of systems. 1512 1513Usage: $0 [OPTION]... [VAR=VALUE]... 1514 1515To assign environment variables (e.g., CC, CFLAGS...), specify them as 1516VAR=VALUE. See below for descriptions of some of the useful variables. 1517 1518Defaults for the options are specified in brackets. 1519 1520Configuration: 1521 -h, --help display this help and exit 1522 --help=short display options specific to this package 1523 --help=recursive display the short help of all the included packages 1524 -V, --version display version information and exit 1525 -q, --quiet, --silent do not print \`checking...' messages 1526 --cache-file=FILE cache test results in FILE [disabled] 1527 -C, --config-cache alias for \`--cache-file=config.cache' 1528 -n, --no-create do not create output files 1529 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1530 1531Installation directories: 1532 --prefix=PREFIX install architecture-independent files in PREFIX 1533 [$ac_default_prefix] 1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1535 [PREFIX] 1536 1537By default, \`make install' will install all the files in 1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1539an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1540for instance \`--prefix=\$HOME'. 1541 1542For better control, use the options below. 1543 1544Fine tuning of the installation directories: 1545 --bindir=DIR user executables [EPREFIX/bin] 1546 --sbindir=DIR system admin executables [EPREFIX/sbin] 1547 --libexecdir=DIR program executables [EPREFIX/libexec] 1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1551 --libdir=DIR object code libraries [EPREFIX/lib] 1552 --includedir=DIR C header files [PREFIX/include] 1553 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1556 --infodir=DIR info documentation [DATAROOTDIR/info] 1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1558 --mandir=DIR man documentation [DATAROOTDIR/man] 1559 --docdir=DIR documentation root 1560 [DATAROOTDIR/doc/xf86-video-rendition] 1561 --htmldir=DIR html documentation [DOCDIR] 1562 --dvidir=DIR dvi documentation [DOCDIR] 1563 --pdfdir=DIR pdf documentation [DOCDIR] 1564 --psdir=DIR ps documentation [DOCDIR] 1565_ACEOF 1566 1567 cat <<\_ACEOF 1568 1569Program names: 1570 --program-prefix=PREFIX prepend PREFIX to installed program names 1571 --program-suffix=SUFFIX append SUFFIX to installed program names 1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1573 1574System types: 1575 --build=BUILD configure for building on BUILD [guessed] 1576 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1577_ACEOF 1578fi 1579 1580if test -n "$ac_init_help"; then 1581 case $ac_init_help in 1582 short | recursive ) echo "Configuration of xf86-video-rendition 4.2.1:";; 1583 esac 1584 cat <<\_ACEOF 1585 1586Optional Features: 1587 --disable-option-checking ignore unrecognized --enable/--with options 1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1590 --enable-maintainer-mode enable make rules and dependencies not useful 1591 (and sometimes confusing) to the casual installer 1592 --enable-static[=PKGS] build static libraries [default=no] 1593 --enable-shared[=PKGS] build shared libraries [default=yes] 1594 --enable-fast-install[=PKGS] 1595 optimize for fast installation [default=yes] 1596 --disable-dependency-tracking speeds up one-time build 1597 --enable-dependency-tracking do not reject slow dependency extractors 1598 --disable-libtool-lock avoid locking (might break parallel builds) 1599 1600Optional Packages: 1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1603 --with-pic try to use only PIC/non-PIC objects [default=use 1604 both] 1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1606 --with-xorg-module-dir=DIR 1607 Default xorg module directory 1608 [default=$libdir/xorg/modules] 1609 --with-release-version=STRING 1610 Use release version string in package name 1611 1612Some influential environment variables: 1613 CC C compiler command 1614 CFLAGS C compiler flags 1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1616 nonstandard directory <lib dir> 1617 LIBS libraries to pass to the linker, e.g. -l<library> 1618 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1619 you have headers in a nonstandard directory <include dir> 1620 CPP C preprocessor 1621 PKG_CONFIG path to pkg-config utility 1622 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1623 XORG_LIBS linker flags for XORG, overriding pkg-config 1624 PCIACCESS_CFLAGS 1625 C compiler flags for PCIACCESS, overriding pkg-config 1626 PCIACCESS_LIBS 1627 linker flags for PCIACCESS, overriding pkg-config 1628 1629Use these variables to override the choices made by `configure' or to help 1630it to find libraries and programs with nonstandard names/locations. 1631 1632Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1633_ACEOF 1634ac_status=$? 1635fi 1636 1637if test "$ac_init_help" = "recursive"; then 1638 # If there are subdirs, report their specific --help. 1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1640 test -d "$ac_dir" || 1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1642 continue 1643 ac_builddir=. 1644 1645case "$ac_dir" in 1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1647*) 1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1649 # A ".." for each directory in $ac_dir_suffix. 1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1651 case $ac_top_builddir_sub in 1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1654 esac ;; 1655esac 1656ac_abs_top_builddir=$ac_pwd 1657ac_abs_builddir=$ac_pwd$ac_dir_suffix 1658# for backward compatibility: 1659ac_top_builddir=$ac_top_build_prefix 1660 1661case $srcdir in 1662 .) # We are building in place. 1663 ac_srcdir=. 1664 ac_top_srcdir=$ac_top_builddir_sub 1665 ac_abs_top_srcdir=$ac_pwd ;; 1666 [\\/]* | ?:[\\/]* ) # Absolute name. 1667 ac_srcdir=$srcdir$ac_dir_suffix; 1668 ac_top_srcdir=$srcdir 1669 ac_abs_top_srcdir=$srcdir ;; 1670 *) # Relative name. 1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1672 ac_top_srcdir=$ac_top_build_prefix$srcdir 1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1674esac 1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1676 1677 cd "$ac_dir" || { ac_status=$?; continue; } 1678 # Check for guested configure. 1679 if test -f "$ac_srcdir/configure.gnu"; then 1680 echo && 1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1682 elif test -f "$ac_srcdir/configure"; then 1683 echo && 1684 $SHELL "$ac_srcdir/configure" --help=recursive 1685 else 1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1687 fi || ac_status=$? 1688 cd "$ac_pwd" || { ac_status=$?; break; } 1689 done 1690fi 1691 1692test -n "$ac_init_help" && exit $ac_status 1693if $ac_init_version; then 1694 cat <<\_ACEOF 1695xf86-video-rendition configure 4.2.1 1696generated by GNU Autoconf 2.63 1697 1698Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16992002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1700This configure script is free software; the Free Software Foundation 1701gives unlimited permission to copy, distribute and modify it. 1702_ACEOF 1703 exit 1704fi 1705cat >config.log <<_ACEOF 1706This file contains any messages produced by compilers while 1707running configure, to aid debugging if configure makes a mistake. 1708 1709It was created by xf86-video-rendition $as_me 4.2.1, which was 1710generated by GNU Autoconf 2.63. Invocation command line was 1711 1712 $ $0 $@ 1713 1714_ACEOF 1715exec 5>>config.log 1716{ 1717cat <<_ASUNAME 1718## --------- ## 1719## Platform. ## 1720## --------- ## 1721 1722hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1723uname -m = `(uname -m) 2>/dev/null || echo unknown` 1724uname -r = `(uname -r) 2>/dev/null || echo unknown` 1725uname -s = `(uname -s) 2>/dev/null || echo unknown` 1726uname -v = `(uname -v) 2>/dev/null || echo unknown` 1727 1728/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1729/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1730 1731/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1732/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1733/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1734/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1735/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1736/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1737/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1738 1739_ASUNAME 1740 1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1742for as_dir in $PATH 1743do 1744 IFS=$as_save_IFS 1745 test -z "$as_dir" && as_dir=. 1746 $as_echo "PATH: $as_dir" 1747done 1748IFS=$as_save_IFS 1749 1750} >&5 1751 1752cat >&5 <<_ACEOF 1753 1754 1755## ----------- ## 1756## Core tests. ## 1757## ----------- ## 1758 1759_ACEOF 1760 1761 1762# Keep a trace of the command line. 1763# Strip out --no-create and --no-recursion so they do not pile up. 1764# Strip out --silent because we don't want to record it for future runs. 1765# Also quote any args containing shell meta-characters. 1766# Make two passes to allow for proper duplicate-argument suppression. 1767ac_configure_args= 1768ac_configure_args0= 1769ac_configure_args1= 1770ac_must_keep_next=false 1771for ac_pass in 1 2 1772do 1773 for ac_arg 1774 do 1775 case $ac_arg in 1776 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1778 | -silent | --silent | --silen | --sile | --sil) 1779 continue ;; 1780 *\'*) 1781 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1782 esac 1783 case $ac_pass in 1784 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1785 2) 1786 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1787 if test $ac_must_keep_next = true; then 1788 ac_must_keep_next=false # Got value, back to normal. 1789 else 1790 case $ac_arg in 1791 *=* | --config-cache | -C | -disable-* | --disable-* \ 1792 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1793 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1794 | -with-* | --with-* | -without-* | --without-* | --x) 1795 case "$ac_configure_args0 " in 1796 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1797 esac 1798 ;; 1799 -* ) ac_must_keep_next=true ;; 1800 esac 1801 fi 1802 ac_configure_args="$ac_configure_args '$ac_arg'" 1803 ;; 1804 esac 1805 done 1806done 1807$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1808$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1809 1810# When interrupted or exit'd, cleanup temporary files, and complete 1811# config.log. We remove comments because anyway the quotes in there 1812# would cause problems or look ugly. 1813# WARNING: Use '\'' to represent an apostrophe within the trap. 1814# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1815trap 'exit_status=$? 1816 # Save into config.log some information that might help in debugging. 1817 { 1818 echo 1819 1820 cat <<\_ASBOX 1821## ---------------- ## 1822## Cache variables. ## 1823## ---------------- ## 1824_ASBOX 1825 echo 1826 # The following way of writing the cache mishandles newlines in values, 1827( 1828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1829 eval ac_val=\$$ac_var 1830 case $ac_val in #( 1831 *${as_nl}*) 1832 case $ac_var in #( 1833 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1834$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1835 esac 1836 case $ac_var in #( 1837 _ | IFS | as_nl) ;; #( 1838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1839 *) $as_unset $ac_var ;; 1840 esac ;; 1841 esac 1842 done 1843 (set) 2>&1 | 1844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1845 *${as_nl}ac_space=\ *) 1846 sed -n \ 1847 "s/'\''/'\''\\\\'\'''\''/g; 1848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1849 ;; #( 1850 *) 1851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1852 ;; 1853 esac | 1854 sort 1855) 1856 echo 1857 1858 cat <<\_ASBOX 1859## ----------------- ## 1860## Output variables. ## 1861## ----------------- ## 1862_ASBOX 1863 echo 1864 for ac_var in $ac_subst_vars 1865 do 1866 eval ac_val=\$$ac_var 1867 case $ac_val in 1868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1869 esac 1870 $as_echo "$ac_var='\''$ac_val'\''" 1871 done | sort 1872 echo 1873 1874 if test -n "$ac_subst_files"; then 1875 cat <<\_ASBOX 1876## ------------------- ## 1877## File substitutions. ## 1878## ------------------- ## 1879_ASBOX 1880 echo 1881 for ac_var in $ac_subst_files 1882 do 1883 eval ac_val=\$$ac_var 1884 case $ac_val in 1885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1886 esac 1887 $as_echo "$ac_var='\''$ac_val'\''" 1888 done | sort 1889 echo 1890 fi 1891 1892 if test -s confdefs.h; then 1893 cat <<\_ASBOX 1894## ----------- ## 1895## confdefs.h. ## 1896## ----------- ## 1897_ASBOX 1898 echo 1899 cat confdefs.h 1900 echo 1901 fi 1902 test "$ac_signal" != 0 && 1903 $as_echo "$as_me: caught signal $ac_signal" 1904 $as_echo "$as_me: exit $exit_status" 1905 } >&5 1906 rm -f core *.core core.conftest.* && 1907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1908 exit $exit_status 1909' 0 1910for ac_signal in 1 2 13 15; do 1911 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1912done 1913ac_signal=0 1914 1915# confdefs.h avoids OS command line length limits that DEFS can exceed. 1916rm -f -r conftest* confdefs.h 1917 1918# Predefined preprocessor variables. 1919 1920cat >>confdefs.h <<_ACEOF 1921#define PACKAGE_NAME "$PACKAGE_NAME" 1922_ACEOF 1923 1924 1925cat >>confdefs.h <<_ACEOF 1926#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1927_ACEOF 1928 1929 1930cat >>confdefs.h <<_ACEOF 1931#define PACKAGE_VERSION "$PACKAGE_VERSION" 1932_ACEOF 1933 1934 1935cat >>confdefs.h <<_ACEOF 1936#define PACKAGE_STRING "$PACKAGE_STRING" 1937_ACEOF 1938 1939 1940cat >>confdefs.h <<_ACEOF 1941#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1942_ACEOF 1943 1944 1945# Let the site file select an alternate cache file if it wants to. 1946# Prefer an explicitly selected file to automatically selected ones. 1947ac_site_file1=NONE 1948ac_site_file2=NONE 1949if test -n "$CONFIG_SITE"; then 1950 ac_site_file1=$CONFIG_SITE 1951elif test "x$prefix" != xNONE; then 1952 ac_site_file1=$prefix/share/config.site 1953 ac_site_file2=$prefix/etc/config.site 1954else 1955 ac_site_file1=$ac_default_prefix/share/config.site 1956 ac_site_file2=$ac_default_prefix/etc/config.site 1957fi 1958for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1959do 1960 test "x$ac_site_file" = xNONE && continue 1961 if test -r "$ac_site_file"; then 1962 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1963$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1964 sed 's/^/| /' "$ac_site_file" >&5 1965 . "$ac_site_file" 1966 fi 1967done 1968 1969if test -r "$cache_file"; then 1970 # Some versions of bash will fail to source /dev/null (special 1971 # files actually), so we avoid doing that. 1972 if test -f "$cache_file"; then 1973 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1974$as_echo "$as_me: loading cache $cache_file" >&6;} 1975 case $cache_file in 1976 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1977 *) . "./$cache_file";; 1978 esac 1979 fi 1980else 1981 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1982$as_echo "$as_me: creating cache $cache_file" >&6;} 1983 >$cache_file 1984fi 1985 1986# Check that the precious variables saved in the cache have kept the same 1987# value. 1988ac_cache_corrupted=false 1989for ac_var in $ac_precious_vars; do 1990 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1991 eval ac_new_set=\$ac_env_${ac_var}_set 1992 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1993 eval ac_new_val=\$ac_env_${ac_var}_value 1994 case $ac_old_set,$ac_new_set in 1995 set,) 1996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1997$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1998 ac_cache_corrupted=: ;; 1999 ,set) 2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2001$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2002 ac_cache_corrupted=: ;; 2003 ,);; 2004 *) 2005 if test "x$ac_old_val" != "x$ac_new_val"; then 2006 # differences in whitespace do not lead to failure. 2007 ac_old_val_w=`echo x $ac_old_val` 2008 ac_new_val_w=`echo x $ac_new_val` 2009 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2011$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2012 ac_cache_corrupted=: 2013 else 2014 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2015$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2016 eval $ac_var=\$ac_old_val 2017 fi 2018 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2019$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2020 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2021$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2022 fi;; 2023 esac 2024 # Pass precious variables to config.status. 2025 if test "$ac_new_set" = set; then 2026 case $ac_new_val in 2027 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2028 *) ac_arg=$ac_var=$ac_new_val ;; 2029 esac 2030 case " $ac_configure_args " in 2031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2032 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2033 esac 2034 fi 2035done 2036if $ac_cache_corrupted; then 2037 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2039 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2040$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2041 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2042$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2043 { (exit 1); exit 1; }; } 2044fi 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070ac_ext=c 2071ac_cpp='$CPP $CPPFLAGS' 2072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2074ac_compiler_gnu=$ac_cv_c_compiler_gnu 2075 2076 2077 2078 2079ac_config_headers="$ac_config_headers config.h" 2080 2081ac_aux_dir= 2082for ac_dir in . "$srcdir"/.; do 2083 if test -f "$ac_dir/install-sh"; then 2084 ac_aux_dir=$ac_dir 2085 ac_install_sh="$ac_aux_dir/install-sh -c" 2086 break 2087 elif test -f "$ac_dir/install.sh"; then 2088 ac_aux_dir=$ac_dir 2089 ac_install_sh="$ac_aux_dir/install.sh -c" 2090 break 2091 elif test -f "$ac_dir/shtool"; then 2092 ac_aux_dir=$ac_dir 2093 ac_install_sh="$ac_aux_dir/shtool install -c" 2094 break 2095 fi 2096done 2097if test -z "$ac_aux_dir"; then 2098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2099$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2100 { (exit 1); exit 1; }; } 2101fi 2102 2103# These three variables are undocumented and unsupported, 2104# and are intended to be withdrawn in a future Autoconf release. 2105# They can cause serious problems if a builder's source tree is in a directory 2106# whose full name contains unusual characters. 2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2110 2111 2112 2113am__api_version='1.10' 2114 2115# Find a good install program. We prefer a C program (faster), 2116# so one script is as good as another. But avoid the broken or 2117# incompatible versions: 2118# SysV /etc/install, /usr/sbin/install 2119# SunOS /usr/etc/install 2120# IRIX /sbin/install 2121# AIX /bin/install 2122# AmigaOS /C/install, which installs bootblocks on floppy discs 2123# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2124# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2125# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2126# OS/2's system install, which has a completely different semantic 2127# ./install, which can be erroneously created by make from ./install.sh. 2128# Reject install programs that cannot install multiple files. 2129{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2130$as_echo_n "checking for a BSD-compatible install... " >&6; } 2131if test -z "$INSTALL"; then 2132if test "${ac_cv_path_install+set}" = set; then 2133 $as_echo_n "(cached) " >&6 2134else 2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2136for as_dir in $PATH 2137do 2138 IFS=$as_save_IFS 2139 test -z "$as_dir" && as_dir=. 2140 # Account for people who put trailing slashes in PATH elements. 2141case $as_dir/ in 2142 ./ | .// | /cC/* | \ 2143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2144 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2145 /usr/ucb/* ) ;; 2146 *) 2147 # OSF1 and SCO ODT 3.0 have their own names for install. 2148 # Don't use installbsd from OSF since it installs stuff as root 2149 # by default. 2150 for ac_prog in ginstall scoinst install; do 2151 for ac_exec_ext in '' $ac_executable_extensions; do 2152 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2153 if test $ac_prog = install && 2154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2155 # AIX install. It has an incompatible calling convention. 2156 : 2157 elif test $ac_prog = install && 2158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2159 # program-specific install script used by HP pwplus--don't use. 2160 : 2161 else 2162 rm -rf conftest.one conftest.two conftest.dir 2163 echo one > conftest.one 2164 echo two > conftest.two 2165 mkdir conftest.dir 2166 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2167 test -s conftest.one && test -s conftest.two && 2168 test -s conftest.dir/conftest.one && 2169 test -s conftest.dir/conftest.two 2170 then 2171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2172 break 3 2173 fi 2174 fi 2175 fi 2176 done 2177 done 2178 ;; 2179esac 2180 2181done 2182IFS=$as_save_IFS 2183 2184rm -rf conftest.one conftest.two conftest.dir 2185 2186fi 2187 if test "${ac_cv_path_install+set}" = set; then 2188 INSTALL=$ac_cv_path_install 2189 else 2190 # As a last resort, use the slow shell script. Don't cache a 2191 # value for INSTALL within a source directory, because that will 2192 # break other packages using the cache if that directory is 2193 # removed, or if the value is a relative name. 2194 INSTALL=$ac_install_sh 2195 fi 2196fi 2197{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2198$as_echo "$INSTALL" >&6; } 2199 2200# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2201# It thinks the first close brace ends the variable substitution. 2202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2203 2204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2205 2206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2207 2208{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2209$as_echo_n "checking whether build environment is sane... " >&6; } 2210# Just in case 2211sleep 1 2212echo timestamp > conftest.file 2213# Do `set' in a subshell so we don't clobber the current shell's 2214# arguments. Must try -L first in case configure is actually a 2215# symlink; some systems play weird games with the mod time of symlinks 2216# (eg FreeBSD returns the mod time of the symlink's containing 2217# directory). 2218if ( 2219 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2220 if test "$*" = "X"; then 2221 # -L didn't work. 2222 set X `ls -t $srcdir/configure conftest.file` 2223 fi 2224 rm -f conftest.file 2225 if test "$*" != "X $srcdir/configure conftest.file" \ 2226 && test "$*" != "X conftest.file $srcdir/configure"; then 2227 2228 # If neither matched, then we have a broken ls. This can happen 2229 # if, for instance, CONFIG_SHELL is bash and it inherits a 2230 # broken ls alias from the environment. This has actually 2231 # happened. Such a system could not be considered "sane". 2232 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2233alias in your environment" >&5 2234$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2235alias in your environment" >&2;} 2236 { (exit 1); exit 1; }; } 2237 fi 2238 2239 test "$2" = conftest.file 2240 ) 2241then 2242 # Ok. 2243 : 2244else 2245 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2246Check your system clock" >&5 2247$as_echo "$as_me: error: newly created file is older than distributed files! 2248Check your system clock" >&2;} 2249 { (exit 1); exit 1; }; } 2250fi 2251{ $as_echo "$as_me:$LINENO: result: yes" >&5 2252$as_echo "yes" >&6; } 2253test "$program_prefix" != NONE && 2254 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2255# Use a double $ so make ignores it. 2256test "$program_suffix" != NONE && 2257 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2258# Double any \ or $. 2259# By default was `s,x,x', remove it if useless. 2260ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2261program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2262 2263# expand $ac_aux_dir to an absolute path 2264am_aux_dir=`cd $ac_aux_dir && pwd` 2265 2266test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2267# Use eval to expand $SHELL 2268if eval "$MISSING --run true"; then 2269 am_missing_run="$MISSING --run " 2270else 2271 am_missing_run= 2272 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2273$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2274fi 2275 2276{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2277$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2278if test -z "$MKDIR_P"; then 2279 if test "${ac_cv_path_mkdir+set}" = set; then 2280 $as_echo_n "(cached) " >&6 2281else 2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2283for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2284do 2285 IFS=$as_save_IFS 2286 test -z "$as_dir" && as_dir=. 2287 for ac_prog in mkdir gmkdir; do 2288 for ac_exec_ext in '' $ac_executable_extensions; do 2289 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2290 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2291 'mkdir (GNU coreutils) '* | \ 2292 'mkdir (coreutils) '* | \ 2293 'mkdir (fileutils) '4.1*) 2294 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2295 break 3;; 2296 esac 2297 done 2298 done 2299done 2300IFS=$as_save_IFS 2301 2302fi 2303 2304 if test "${ac_cv_path_mkdir+set}" = set; then 2305 MKDIR_P="$ac_cv_path_mkdir -p" 2306 else 2307 # As a last resort, use the slow shell script. Don't cache a 2308 # value for MKDIR_P within a source directory, because that will 2309 # break other packages using the cache if that directory is 2310 # removed, or if the value is a relative name. 2311 test -d ./--version && rmdir ./--version 2312 MKDIR_P="$ac_install_sh -d" 2313 fi 2314fi 2315{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2316$as_echo "$MKDIR_P" >&6; } 2317 2318mkdir_p="$MKDIR_P" 2319case $mkdir_p in 2320 [\\/$]* | ?:[\\/]*) ;; 2321 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2322esac 2323 2324for ac_prog in gawk mawk nawk awk 2325do 2326 # Extract the first word of "$ac_prog", so it can be a program name with args. 2327set dummy $ac_prog; ac_word=$2 2328{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2329$as_echo_n "checking for $ac_word... " >&6; } 2330if test "${ac_cv_prog_AWK+set}" = set; then 2331 $as_echo_n "(cached) " >&6 2332else 2333 if test -n "$AWK"; then 2334 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2335else 2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 for ac_exec_ext in '' $ac_executable_extensions; do 2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2343 ac_cv_prog_AWK="$ac_prog" 2344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2345 break 2 2346 fi 2347done 2348done 2349IFS=$as_save_IFS 2350 2351fi 2352fi 2353AWK=$ac_cv_prog_AWK 2354if test -n "$AWK"; then 2355 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2356$as_echo "$AWK" >&6; } 2357else 2358 { $as_echo "$as_me:$LINENO: result: no" >&5 2359$as_echo "no" >&6; } 2360fi 2361 2362 2363 test -n "$AWK" && break 2364done 2365 2366{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2367$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2368set x ${MAKE-make} 2369ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2370if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2371 $as_echo_n "(cached) " >&6 2372else 2373 cat >conftest.make <<\_ACEOF 2374SHELL = /bin/sh 2375all: 2376 @echo '@@@%%%=$(MAKE)=@@@%%%' 2377_ACEOF 2378# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2379case `${MAKE-make} -f conftest.make 2>/dev/null` in 2380 *@@@%%%=?*=@@@%%%*) 2381 eval ac_cv_prog_make_${ac_make}_set=yes;; 2382 *) 2383 eval ac_cv_prog_make_${ac_make}_set=no;; 2384esac 2385rm -f conftest.make 2386fi 2387if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2388 { $as_echo "$as_me:$LINENO: result: yes" >&5 2389$as_echo "yes" >&6; } 2390 SET_MAKE= 2391else 2392 { $as_echo "$as_me:$LINENO: result: no" >&5 2393$as_echo "no" >&6; } 2394 SET_MAKE="MAKE=${MAKE-make}" 2395fi 2396 2397rm -rf .tst 2>/dev/null 2398mkdir .tst 2>/dev/null 2399if test -d .tst; then 2400 am__leading_dot=. 2401else 2402 am__leading_dot=_ 2403fi 2404rmdir .tst 2>/dev/null 2405 2406if test "`cd $srcdir && pwd`" != "`pwd`"; then 2407 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2408 # is not polluted with repeated "-I." 2409 am__isrc=' -I$(srcdir)' 2410 # test to see if srcdir already configured 2411 if test -f $srcdir/config.status; then 2412 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2413$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2414 { (exit 1); exit 1; }; } 2415 fi 2416fi 2417 2418# test whether we have cygpath 2419if test -z "$CYGPATH_W"; then 2420 if (cygpath --version) >/dev/null 2>/dev/null; then 2421 CYGPATH_W='cygpath -w' 2422 else 2423 CYGPATH_W=echo 2424 fi 2425fi 2426 2427 2428# Define the identity of the package. 2429 PACKAGE='xf86-video-rendition' 2430 VERSION='4.2.1' 2431 2432 2433cat >>confdefs.h <<_ACEOF 2434#define PACKAGE "$PACKAGE" 2435_ACEOF 2436 2437 2438cat >>confdefs.h <<_ACEOF 2439#define VERSION "$VERSION" 2440_ACEOF 2441 2442# Some tools Automake needs. 2443 2444ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2445 2446 2447AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2448 2449 2450AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2451 2452 2453AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2454 2455 2456MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2457 2458install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2459 2460# Installed binaries are usually stripped using `strip' when the user 2461# run `make install-strip'. However `strip' might not be the right 2462# tool to use in cross-compilation environments, therefore Automake 2463# will honor the `STRIP' environment variable to overrule this program. 2464if test "$cross_compiling" != no; then 2465 if test -n "$ac_tool_prefix"; then 2466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2467set dummy ${ac_tool_prefix}strip; ac_word=$2 2468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2469$as_echo_n "checking for $ac_word... " >&6; } 2470if test "${ac_cv_prog_STRIP+set}" = set; then 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test -n "$STRIP"; then 2474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2475else 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2483 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487done 2488done 2489IFS=$as_save_IFS 2490 2491fi 2492fi 2493STRIP=$ac_cv_prog_STRIP 2494if test -n "$STRIP"; then 2495 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2496$as_echo "$STRIP" >&6; } 2497else 2498 { $as_echo "$as_me:$LINENO: result: no" >&5 2499$as_echo "no" >&6; } 2500fi 2501 2502 2503fi 2504if test -z "$ac_cv_prog_STRIP"; then 2505 ac_ct_STRIP=$STRIP 2506 # Extract the first word of "strip", so it can be a program name with args. 2507set dummy strip; ac_word=$2 2508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2509$as_echo_n "checking for $ac_word... " >&6; } 2510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2511 $as_echo_n "(cached) " >&6 2512else 2513 if test -n "$ac_ct_STRIP"; then 2514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2515else 2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517for as_dir in $PATH 2518do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2523 ac_cv_prog_ac_ct_STRIP="strip" 2524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2525 break 2 2526 fi 2527done 2528done 2529IFS=$as_save_IFS 2530 2531fi 2532fi 2533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2534if test -n "$ac_ct_STRIP"; then 2535 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2536$as_echo "$ac_ct_STRIP" >&6; } 2537else 2538 { $as_echo "$as_me:$LINENO: result: no" >&5 2539$as_echo "no" >&6; } 2540fi 2541 2542 if test "x$ac_ct_STRIP" = x; then 2543 STRIP=":" 2544 else 2545 case $cross_compiling:$ac_tool_warned in 2546yes:) 2547{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2549ac_tool_warned=yes ;; 2550esac 2551 STRIP=$ac_ct_STRIP 2552 fi 2553else 2554 STRIP="$ac_cv_prog_STRIP" 2555fi 2556 2557fi 2558INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2559 2560# We need awk for the "check" target. The system "awk" is bad on 2561# some platforms. 2562# Always define AMTAR for backward compatibility. 2563 2564AMTAR=${AMTAR-"${am_missing_run}tar"} 2565 2566am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2567 2568 2569 2570 2571 2572 2573{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2574$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2575 # Check whether --enable-maintainer-mode was given. 2576if test "${enable_maintainer_mode+set}" = set; then 2577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2578else 2579 USE_MAINTAINER_MODE=no 2580fi 2581 2582 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2583$as_echo "$USE_MAINTAINER_MODE" >&6; } 2584 if test $USE_MAINTAINER_MODE = yes; then 2585 MAINTAINER_MODE_TRUE= 2586 MAINTAINER_MODE_FALSE='#' 2587else 2588 MAINTAINER_MODE_TRUE='#' 2589 MAINTAINER_MODE_FALSE= 2590fi 2591 2592 MAINT=$MAINTAINER_MODE_TRUE 2593 2594 2595 2596# Checks for programs. 2597# Check whether --enable-static was given. 2598if test "${enable_static+set}" = set; then 2599 enableval=$enable_static; p=${PACKAGE-default} 2600 case $enableval in 2601 yes) enable_static=yes ;; 2602 no) enable_static=no ;; 2603 *) 2604 enable_static=no 2605 # Look at the argument we got. We use all the common list separators. 2606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2607 for pkg in $enableval; do 2608 IFS="$lt_save_ifs" 2609 if test "X$pkg" = "X$p"; then 2610 enable_static=yes 2611 fi 2612 done 2613 IFS="$lt_save_ifs" 2614 ;; 2615 esac 2616else 2617 enable_static=no 2618fi 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628case `pwd` in 2629 *\ * | *\ *) 2630 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2631$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2632esac 2633 2634 2635 2636macro_version='2.2.6' 2637macro_revision='1.3012' 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651ltmain="$ac_aux_dir/ltmain.sh" 2652 2653# Make sure we can run config.sub. 2654$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2655 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2656$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2657 { (exit 1); exit 1; }; } 2658 2659{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2660$as_echo_n "checking build system type... " >&6; } 2661if test "${ac_cv_build+set}" = set; then 2662 $as_echo_n "(cached) " >&6 2663else 2664 ac_build_alias=$build_alias 2665test "x$ac_build_alias" = x && 2666 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2667test "x$ac_build_alias" = x && 2668 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2669$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2670 { (exit 1); exit 1; }; } 2671ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2672 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2673$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2674 { (exit 1); exit 1; }; } 2675 2676fi 2677{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2678$as_echo "$ac_cv_build" >&6; } 2679case $ac_cv_build in 2680*-*-*) ;; 2681*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2682$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2683 { (exit 1); exit 1; }; };; 2684esac 2685build=$ac_cv_build 2686ac_save_IFS=$IFS; IFS='-' 2687set x $ac_cv_build 2688shift 2689build_cpu=$1 2690build_vendor=$2 2691shift; shift 2692# Remember, the first character of IFS is used to create $*, 2693# except with old shells: 2694build_os=$* 2695IFS=$ac_save_IFS 2696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2697 2698 2699{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2700$as_echo_n "checking host system type... " >&6; } 2701if test "${ac_cv_host+set}" = set; then 2702 $as_echo_n "(cached) " >&6 2703else 2704 if test "x$host_alias" = x; then 2705 ac_cv_host=$ac_cv_build 2706else 2707 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2708 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2709$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2710 { (exit 1); exit 1; }; } 2711fi 2712 2713fi 2714{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2715$as_echo "$ac_cv_host" >&6; } 2716case $ac_cv_host in 2717*-*-*) ;; 2718*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2719$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2720 { (exit 1); exit 1; }; };; 2721esac 2722host=$ac_cv_host 2723ac_save_IFS=$IFS; IFS='-' 2724set x $ac_cv_host 2725shift 2726host_cpu=$1 2727host_vendor=$2 2728shift; shift 2729# Remember, the first character of IFS is used to create $*, 2730# except with old shells: 2731host_os=$* 2732IFS=$ac_save_IFS 2733case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2734 2735 2736DEPDIR="${am__leading_dot}deps" 2737 2738ac_config_commands="$ac_config_commands depfiles" 2739 2740 2741am_make=${MAKE-make} 2742cat > confinc << 'END' 2743am__doit: 2744 @echo done 2745.PHONY: am__doit 2746END 2747# If we don't find an include directive, just comment out the code. 2748{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2749$as_echo_n "checking for style of include used by $am_make... " >&6; } 2750am__include="#" 2751am__quote= 2752_am_result=none 2753# First try GNU make style include. 2754echo "include confinc" > confmf 2755# We grep out `Entering directory' and `Leaving directory' 2756# messages which can occur if `w' ends up in MAKEFLAGS. 2757# In particular we don't look at `^make:' because GNU make might 2758# be invoked under some other name (usually "gmake"), in which 2759# case it prints its new name instead of `make'. 2760if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2761 am__include=include 2762 am__quote= 2763 _am_result=GNU 2764fi 2765# Now try BSD make style include. 2766if test "$am__include" = "#"; then 2767 echo '.include "confinc"' > confmf 2768 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2769 am__include=.include 2770 am__quote="\"" 2771 _am_result=BSD 2772 fi 2773fi 2774 2775 2776{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2777$as_echo "$_am_result" >&6; } 2778rm -f confinc confmf 2779 2780# Check whether --enable-dependency-tracking was given. 2781if test "${enable_dependency_tracking+set}" = set; then 2782 enableval=$enable_dependency_tracking; 2783fi 2784 2785if test "x$enable_dependency_tracking" != xno; then 2786 am_depcomp="$ac_aux_dir/depcomp" 2787 AMDEPBACKSLASH='\' 2788fi 2789 if test "x$enable_dependency_tracking" != xno; then 2790 AMDEP_TRUE= 2791 AMDEP_FALSE='#' 2792else 2793 AMDEP_TRUE='#' 2794 AMDEP_FALSE= 2795fi 2796 2797 2798ac_ext=c 2799ac_cpp='$CPP $CPPFLAGS' 2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2802ac_compiler_gnu=$ac_cv_c_compiler_gnu 2803if test -n "$ac_tool_prefix"; then 2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2805set dummy ${ac_tool_prefix}gcc; ac_word=$2 2806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if test "${ac_cv_prog_CC+set}" = set; then 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$CC"; then 2812 ac_cv_prog_CC="$CC" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2821 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831CC=$ac_cv_prog_CC 2832if test -n "$CC"; then 2833 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2834$as_echo "$CC" >&6; } 2835else 2836 { $as_echo "$as_me:$LINENO: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 2841fi 2842if test -z "$ac_cv_prog_CC"; then 2843 ac_ct_CC=$CC 2844 # Extract the first word of "gcc", so it can be a program name with args. 2845set dummy gcc; ac_word=$2 2846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2847$as_echo_n "checking for $ac_word... " >&6; } 2848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2849 $as_echo_n "(cached) " >&6 2850else 2851 if test -n "$ac_ct_CC"; then 2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2853else 2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2855for as_dir in $PATH 2856do 2857 IFS=$as_save_IFS 2858 test -z "$as_dir" && as_dir=. 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2861 ac_cv_prog_ac_ct_CC="gcc" 2862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865done 2866done 2867IFS=$as_save_IFS 2868 2869fi 2870fi 2871ac_ct_CC=$ac_cv_prog_ac_ct_CC 2872if test -n "$ac_ct_CC"; then 2873 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2874$as_echo "$ac_ct_CC" >&6; } 2875else 2876 { $as_echo "$as_me:$LINENO: result: no" >&5 2877$as_echo "no" >&6; } 2878fi 2879 2880 if test "x$ac_ct_CC" = x; then 2881 CC="" 2882 else 2883 case $cross_compiling:$ac_tool_warned in 2884yes:) 2885{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2887ac_tool_warned=yes ;; 2888esac 2889 CC=$ac_ct_CC 2890 fi 2891else 2892 CC="$ac_cv_prog_CC" 2893fi 2894 2895if test -z "$CC"; then 2896 if test -n "$ac_tool_prefix"; then 2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2898set dummy ${ac_tool_prefix}cc; ac_word=$2 2899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2900$as_echo_n "checking for $ac_word... " >&6; } 2901if test "${ac_cv_prog_CC+set}" = set; then 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test -n "$CC"; then 2905 ac_cv_prog_CC="$CC" # Let the user override the test. 2906else 2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2908for as_dir in $PATH 2909do 2910 IFS=$as_save_IFS 2911 test -z "$as_dir" && as_dir=. 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2914 ac_cv_prog_CC="${ac_tool_prefix}cc" 2915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918done 2919done 2920IFS=$as_save_IFS 2921 2922fi 2923fi 2924CC=$ac_cv_prog_CC 2925if test -n "$CC"; then 2926 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2927$as_echo "$CC" >&6; } 2928else 2929 { $as_echo "$as_me:$LINENO: result: no" >&5 2930$as_echo "no" >&6; } 2931fi 2932 2933 2934 fi 2935fi 2936if test -z "$CC"; then 2937 # Extract the first word of "cc", so it can be a program name with args. 2938set dummy cc; ac_word=$2 2939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2940$as_echo_n "checking for $ac_word... " >&6; } 2941if test "${ac_cv_prog_CC+set}" = set; then 2942 $as_echo_n "(cached) " >&6 2943else 2944 if test -n "$CC"; then 2945 ac_cv_prog_CC="$CC" # Let the user override the test. 2946else 2947 ac_prog_rejected=no 2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH 2950do 2951 IFS=$as_save_IFS 2952 test -z "$as_dir" && as_dir=. 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2956 ac_prog_rejected=yes 2957 continue 2958 fi 2959 ac_cv_prog_CC="cc" 2960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963done 2964done 2965IFS=$as_save_IFS 2966 2967if test $ac_prog_rejected = yes; then 2968 # We found a bogon in the path, so make sure we never use it. 2969 set dummy $ac_cv_prog_CC 2970 shift 2971 if test $# != 0; then 2972 # We chose a different compiler from the bogus one. 2973 # However, it has the same basename, so the bogon will be chosen 2974 # first if we set CC to just the basename; use the full file name. 2975 shift 2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2977 fi 2978fi 2979fi 2980fi 2981CC=$ac_cv_prog_CC 2982if test -n "$CC"; then 2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2984$as_echo "$CC" >&6; } 2985else 2986 { $as_echo "$as_me:$LINENO: result: no" >&5 2987$as_echo "no" >&6; } 2988fi 2989 2990 2991fi 2992if test -z "$CC"; then 2993 if test -n "$ac_tool_prefix"; then 2994 for ac_prog in cl.exe 2995 do 2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2998{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2999$as_echo_n "checking for $ac_word... " >&6; } 3000if test "${ac_cv_prog_CC+set}" = set; then 3001 $as_echo_n "(cached) " >&6 3002else 3003 if test -n "$CC"; then 3004 ac_cv_prog_CC="$CC" # Let the user override the test. 3005else 3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007for as_dir in $PATH 3008do 3009 IFS=$as_save_IFS 3010 test -z "$as_dir" && as_dir=. 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017done 3018done 3019IFS=$as_save_IFS 3020 3021fi 3022fi 3023CC=$ac_cv_prog_CC 3024if test -n "$CC"; then 3025 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3026$as_echo "$CC" >&6; } 3027else 3028 { $as_echo "$as_me:$LINENO: result: no" >&5 3029$as_echo "no" >&6; } 3030fi 3031 3032 3033 test -n "$CC" && break 3034 done 3035fi 3036if test -z "$CC"; then 3037 ac_ct_CC=$CC 3038 for ac_prog in cl.exe 3039do 3040 # Extract the first word of "$ac_prog", so it can be a program name with args. 3041set dummy $ac_prog; ac_word=$2 3042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3043$as_echo_n "checking for $ac_word... " >&6; } 3044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3045 $as_echo_n "(cached) " >&6 3046else 3047 if test -n "$ac_ct_CC"; then 3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3049else 3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051for as_dir in $PATH 3052do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3057 ac_cv_prog_ac_ct_CC="$ac_prog" 3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061done 3062done 3063IFS=$as_save_IFS 3064 3065fi 3066fi 3067ac_ct_CC=$ac_cv_prog_ac_ct_CC 3068if test -n "$ac_ct_CC"; then 3069 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3070$as_echo "$ac_ct_CC" >&6; } 3071else 3072 { $as_echo "$as_me:$LINENO: result: no" >&5 3073$as_echo "no" >&6; } 3074fi 3075 3076 3077 test -n "$ac_ct_CC" && break 3078done 3079 3080 if test "x$ac_ct_CC" = x; then 3081 CC="" 3082 else 3083 case $cross_compiling:$ac_tool_warned in 3084yes:) 3085{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3087ac_tool_warned=yes ;; 3088esac 3089 CC=$ac_ct_CC 3090 fi 3091fi 3092 3093fi 3094 3095 3096test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3098{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3099See \`config.log' for more details." >&5 3100$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3101See \`config.log' for more details." >&2;} 3102 { (exit 1); exit 1; }; }; } 3103 3104# Provide some information about the compiler. 3105$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3106set X $ac_compile 3107ac_compiler=$2 3108{ (ac_try="$ac_compiler --version >&5" 3109case "(($ac_try" in 3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3111 *) ac_try_echo=$ac_try;; 3112esac 3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3114$as_echo "$ac_try_echo") >&5 3115 (eval "$ac_compiler --version >&5") 2>&5 3116 ac_status=$? 3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); } 3119{ (ac_try="$ac_compiler -v >&5" 3120case "(($ac_try" in 3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3122 *) ac_try_echo=$ac_try;; 3123esac 3124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3125$as_echo "$ac_try_echo") >&5 3126 (eval "$ac_compiler -v >&5") 2>&5 3127 ac_status=$? 3128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3129 (exit $ac_status); } 3130{ (ac_try="$ac_compiler -V >&5" 3131case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3136$as_echo "$ac_try_echo") >&5 3137 (eval "$ac_compiler -V >&5") 2>&5 3138 ac_status=$? 3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); } 3141 3142cat >conftest.$ac_ext <<_ACEOF 3143/* confdefs.h. */ 3144_ACEOF 3145cat confdefs.h >>conftest.$ac_ext 3146cat >>conftest.$ac_ext <<_ACEOF 3147/* end confdefs.h. */ 3148 3149int 3150main () 3151{ 3152 3153 ; 3154 return 0; 3155} 3156_ACEOF 3157ac_clean_files_save=$ac_clean_files 3158ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3159# Try to create an executable without -o first, disregard a.out. 3160# It will help us diagnose broken compilers, and finding out an intuition 3161# of exeext. 3162{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3163$as_echo_n "checking for C compiler default output file name... " >&6; } 3164ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3165 3166# The possible output files: 3167ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3168 3169ac_rmfiles= 3170for ac_file in $ac_files 3171do 3172 case $ac_file in 3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3174 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3175 esac 3176done 3177rm -f $ac_rmfiles 3178 3179if { (ac_try="$ac_link_default" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3185$as_echo "$ac_try_echo") >&5 3186 (eval "$ac_link_default") 2>&5 3187 ac_status=$? 3188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); }; then 3190 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3191# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3192# in a Makefile. We should not override ac_cv_exeext if it was cached, 3193# so that the user can short-circuit this test for compilers unknown to 3194# Autoconf. 3195for ac_file in $ac_files '' 3196do 3197 test -f "$ac_file" || continue 3198 case $ac_file in 3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3200 ;; 3201 [ab].out ) 3202 # We found the default executable, but exeext='' is most 3203 # certainly right. 3204 break;; 3205 *.* ) 3206 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3207 then :; else 3208 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3209 fi 3210 # We set ac_cv_exeext here because the later test for it is not 3211 # safe: cross compilers may not add the suffix if given an `-o' 3212 # argument, so we may need to know it at that point already. 3213 # Even if this section looks crufty: it has the advantage of 3214 # actually working. 3215 break;; 3216 * ) 3217 break;; 3218 esac 3219done 3220test "$ac_cv_exeext" = no && ac_cv_exeext= 3221 3222else 3223 ac_file='' 3224fi 3225 3226{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3227$as_echo "$ac_file" >&6; } 3228if test -z "$ac_file"; then 3229 $as_echo "$as_me: failed program was:" >&5 3230sed 's/^/| /' conftest.$ac_ext >&5 3231 3232{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3234{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3235See \`config.log' for more details." >&5 3236$as_echo "$as_me: error: C compiler cannot create executables 3237See \`config.log' for more details." >&2;} 3238 { (exit 77); exit 77; }; }; } 3239fi 3240 3241ac_exeext=$ac_cv_exeext 3242 3243# Check that the compiler produces executables we can run. If not, either 3244# the compiler is broken, or we cross compile. 3245{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3246$as_echo_n "checking whether the C compiler works... " >&6; } 3247# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3248# If not cross compiling, check that we can run a simple program. 3249if test "$cross_compiling" != yes; then 3250 if { ac_try='./$ac_file' 3251 { (case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3256$as_echo "$ac_try_echo") >&5 3257 (eval "$ac_try") 2>&5 3258 ac_status=$? 3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3260 (exit $ac_status); }; }; then 3261 cross_compiling=no 3262 else 3263 if test "$cross_compiling" = maybe; then 3264 cross_compiling=yes 3265 else 3266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3269If you meant to cross compile, use \`--host'. 3270See \`config.log' for more details." >&5 3271$as_echo "$as_me: error: cannot run C compiled programs. 3272If you meant to cross compile, use \`--host'. 3273See \`config.log' for more details." >&2;} 3274 { (exit 1); exit 1; }; }; } 3275 fi 3276 fi 3277fi 3278{ $as_echo "$as_me:$LINENO: result: yes" >&5 3279$as_echo "yes" >&6; } 3280 3281rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3282ac_clean_files=$ac_clean_files_save 3283# Check that the compiler produces executables we can run. If not, either 3284# the compiler is broken, or we cross compile. 3285{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3286$as_echo_n "checking whether we are cross compiling... " >&6; } 3287{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3288$as_echo "$cross_compiling" >&6; } 3289 3290{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3291$as_echo_n "checking for suffix of executables... " >&6; } 3292if { (ac_try="$ac_link" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3298$as_echo "$ac_try_echo") >&5 3299 (eval "$ac_link") 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); }; then 3303 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3304# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3305# work properly (i.e., refer to `conftest.exe'), while it won't with 3306# `rm'. 3307for ac_file in conftest.exe conftest conftest.*; do 3308 test -f "$ac_file" || continue 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 break;; 3313 * ) break;; 3314 esac 3315done 3316else 3317 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3319{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3320See \`config.log' for more details." >&5 3321$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3322See \`config.log' for more details." >&2;} 3323 { (exit 1); exit 1; }; }; } 3324fi 3325 3326rm -f conftest$ac_cv_exeext 3327{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3328$as_echo "$ac_cv_exeext" >&6; } 3329 3330rm -f conftest.$ac_ext 3331EXEEXT=$ac_cv_exeext 3332ac_exeext=$EXEEXT 3333{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3334$as_echo_n "checking for suffix of object files... " >&6; } 3335if test "${ac_cv_objext+set}" = set; then 3336 $as_echo_n "(cached) " >&6 3337else 3338 cat >conftest.$ac_ext <<_ACEOF 3339/* confdefs.h. */ 3340_ACEOF 3341cat confdefs.h >>conftest.$ac_ext 3342cat >>conftest.$ac_ext <<_ACEOF 3343/* end confdefs.h. */ 3344 3345int 3346main () 3347{ 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353rm -f conftest.o conftest.obj 3354if { (ac_try="$ac_compile" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3360$as_echo "$ac_try_echo") >&5 3361 (eval "$ac_compile") 2>&5 3362 ac_status=$? 3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); }; then 3365 for ac_file in conftest.o conftest.obj conftest.*; do 3366 test -f "$ac_file" || continue; 3367 case $ac_file in 3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3369 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3370 break;; 3371 esac 3372done 3373else 3374 $as_echo "$as_me: failed program was:" >&5 3375sed 's/^/| /' conftest.$ac_ext >&5 3376 3377{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3380See \`config.log' for more details." >&5 3381$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3382See \`config.log' for more details." >&2;} 3383 { (exit 1); exit 1; }; }; } 3384fi 3385 3386rm -f conftest.$ac_cv_objext conftest.$ac_ext 3387fi 3388{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3389$as_echo "$ac_cv_objext" >&6; } 3390OBJEXT=$ac_cv_objext 3391ac_objext=$OBJEXT 3392{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3394if test "${ac_cv_c_compiler_gnu+set}" = set; then 3395 $as_echo_n "(cached) " >&6 3396else 3397 cat >conftest.$ac_ext <<_ACEOF 3398/* confdefs.h. */ 3399_ACEOF 3400cat confdefs.h >>conftest.$ac_ext 3401cat >>conftest.$ac_ext <<_ACEOF 3402/* end confdefs.h. */ 3403 3404int 3405main () 3406{ 3407#ifndef __GNUC__ 3408 choke me 3409#endif 3410 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415rm -f conftest.$ac_objext 3416if { (ac_try="$ac_compile" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3422$as_echo "$ac_try_echo") >&5 3423 (eval "$ac_compile") 2>conftest.er1 3424 ac_status=$? 3425 grep -v '^ *+' conftest.er1 >conftest.err 3426 rm -f conftest.er1 3427 cat conftest.err >&5 3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3429 (exit $ac_status); } && { 3430 test -z "$ac_c_werror_flag" || 3431 test ! -s conftest.err 3432 } && test -s conftest.$ac_objext; then 3433 ac_compiler_gnu=yes 3434else 3435 $as_echo "$as_me: failed program was:" >&5 3436sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 ac_compiler_gnu=no 3439fi 3440 3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3442ac_cv_c_compiler_gnu=$ac_compiler_gnu 3443 3444fi 3445{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3446$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3447if test $ac_compiler_gnu = yes; then 3448 GCC=yes 3449else 3450 GCC= 3451fi 3452ac_test_CFLAGS=${CFLAGS+set} 3453ac_save_CFLAGS=$CFLAGS 3454{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3455$as_echo_n "checking whether $CC accepts -g... " >&6; } 3456if test "${ac_cv_prog_cc_g+set}" = set; then 3457 $as_echo_n "(cached) " >&6 3458else 3459 ac_save_c_werror_flag=$ac_c_werror_flag 3460 ac_c_werror_flag=yes 3461 ac_cv_prog_cc_g=no 3462 CFLAGS="-g" 3463 cat >conftest.$ac_ext <<_ACEOF 3464/* confdefs.h. */ 3465_ACEOF 3466cat confdefs.h >>conftest.$ac_ext 3467cat >>conftest.$ac_ext <<_ACEOF 3468/* end confdefs.h. */ 3469 3470int 3471main () 3472{ 3473 3474 ; 3475 return 0; 3476} 3477_ACEOF 3478rm -f conftest.$ac_objext 3479if { (ac_try="$ac_compile" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3485$as_echo "$ac_try_echo") >&5 3486 (eval "$ac_compile") 2>conftest.er1 3487 ac_status=$? 3488 grep -v '^ *+' conftest.er1 >conftest.err 3489 rm -f conftest.er1 3490 cat conftest.err >&5 3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3492 (exit $ac_status); } && { 3493 test -z "$ac_c_werror_flag" || 3494 test ! -s conftest.err 3495 } && test -s conftest.$ac_objext; then 3496 ac_cv_prog_cc_g=yes 3497else 3498 $as_echo "$as_me: failed program was:" >&5 3499sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 CFLAGS="" 3502 cat >conftest.$ac_ext <<_ACEOF 3503/* confdefs.h. */ 3504_ACEOF 3505cat confdefs.h >>conftest.$ac_ext 3506cat >>conftest.$ac_ext <<_ACEOF 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517rm -f conftest.$ac_objext 3518if { (ac_try="$ac_compile" 3519case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522esac 3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3524$as_echo "$ac_try_echo") >&5 3525 (eval "$ac_compile") 2>conftest.er1 3526 ac_status=$? 3527 grep -v '^ *+' conftest.er1 >conftest.err 3528 rm -f conftest.er1 3529 cat conftest.err >&5 3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); } && { 3532 test -z "$ac_c_werror_flag" || 3533 test ! -s conftest.err 3534 } && test -s conftest.$ac_objext; then 3535 : 3536else 3537 $as_echo "$as_me: failed program was:" >&5 3538sed 's/^/| /' conftest.$ac_ext >&5 3539 3540 ac_c_werror_flag=$ac_save_c_werror_flag 3541 CFLAGS="-g" 3542 cat >conftest.$ac_ext <<_ACEOF 3543/* confdefs.h. */ 3544_ACEOF 3545cat confdefs.h >>conftest.$ac_ext 3546cat >>conftest.$ac_ext <<_ACEOF 3547/* end confdefs.h. */ 3548 3549int 3550main () 3551{ 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557rm -f conftest.$ac_objext 3558if { (ac_try="$ac_compile" 3559case "(($ac_try" in 3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3561 *) ac_try_echo=$ac_try;; 3562esac 3563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3564$as_echo "$ac_try_echo") >&5 3565 (eval "$ac_compile") 2>conftest.er1 3566 ac_status=$? 3567 grep -v '^ *+' conftest.er1 >conftest.err 3568 rm -f conftest.er1 3569 cat conftest.err >&5 3570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3571 (exit $ac_status); } && { 3572 test -z "$ac_c_werror_flag" || 3573 test ! -s conftest.err 3574 } && test -s conftest.$ac_objext; then 3575 ac_cv_prog_cc_g=yes 3576else 3577 $as_echo "$as_me: failed program was:" >&5 3578sed 's/^/| /' conftest.$ac_ext >&5 3579 3580 3581fi 3582 3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3584fi 3585 3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3587fi 3588 3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590 ac_c_werror_flag=$ac_save_c_werror_flag 3591fi 3592{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3593$as_echo "$ac_cv_prog_cc_g" >&6; } 3594if test "$ac_test_CFLAGS" = set; then 3595 CFLAGS=$ac_save_CFLAGS 3596elif test $ac_cv_prog_cc_g = yes; then 3597 if test "$GCC" = yes; then 3598 CFLAGS="-g -O2" 3599 else 3600 CFLAGS="-g" 3601 fi 3602else 3603 if test "$GCC" = yes; then 3604 CFLAGS="-O2" 3605 else 3606 CFLAGS= 3607 fi 3608fi 3609{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3610$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3611if test "${ac_cv_prog_cc_c89+set}" = set; then 3612 $as_echo_n "(cached) " >&6 3613else 3614 ac_cv_prog_cc_c89=no 3615ac_save_CC=$CC 3616cat >conftest.$ac_ext <<_ACEOF 3617/* confdefs.h. */ 3618_ACEOF 3619cat confdefs.h >>conftest.$ac_ext 3620cat >>conftest.$ac_ext <<_ACEOF 3621/* end confdefs.h. */ 3622#include <stdarg.h> 3623#include <stdio.h> 3624#include <sys/types.h> 3625#include <sys/stat.h> 3626/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3627struct buf { int x; }; 3628FILE * (*rcsopen) (struct buf *, struct stat *, int); 3629static char *e (p, i) 3630 char **p; 3631 int i; 3632{ 3633 return p[i]; 3634} 3635static char *f (char * (*g) (char **, int), char **p, ...) 3636{ 3637 char *s; 3638 va_list v; 3639 va_start (v,p); 3640 s = g (p, va_arg (v,int)); 3641 va_end (v); 3642 return s; 3643} 3644 3645/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3646 function prototypes and stuff, but not '\xHH' hex character constants. 3647 These don't provoke an error unfortunately, instead are silently treated 3648 as 'x'. The following induces an error, until -std is added to get 3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3650 array size at least. It's necessary to write '\x00'==0 to get something 3651 that's true only with -std. */ 3652int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3653 3654/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3655 inside strings and character constants. */ 3656#define FOO(x) 'x' 3657int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3658 3659int test (int i, double x); 3660struct s1 {int (*f) (int a);}; 3661struct s2 {int (*f) (double a);}; 3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3663int argc; 3664char **argv; 3665int 3666main () 3667{ 3668return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3675do 3676 CC="$ac_save_CC $ac_arg" 3677 rm -f conftest.$ac_objext 3678if { (ac_try="$ac_compile" 3679case "(($ac_try" in 3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3681 *) ac_try_echo=$ac_try;; 3682esac 3683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3684$as_echo "$ac_try_echo") >&5 3685 (eval "$ac_compile") 2>conftest.er1 3686 ac_status=$? 3687 grep -v '^ *+' conftest.er1 >conftest.err 3688 rm -f conftest.er1 3689 cat conftest.err >&5 3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3691 (exit $ac_status); } && { 3692 test -z "$ac_c_werror_flag" || 3693 test ! -s conftest.err 3694 } && test -s conftest.$ac_objext; then 3695 ac_cv_prog_cc_c89=$ac_arg 3696else 3697 $as_echo "$as_me: failed program was:" >&5 3698sed 's/^/| /' conftest.$ac_ext >&5 3699 3700 3701fi 3702 3703rm -f core conftest.err conftest.$ac_objext 3704 test "x$ac_cv_prog_cc_c89" != "xno" && break 3705done 3706rm -f conftest.$ac_ext 3707CC=$ac_save_CC 3708 3709fi 3710# AC_CACHE_VAL 3711case "x$ac_cv_prog_cc_c89" in 3712 x) 3713 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3714$as_echo "none needed" >&6; } ;; 3715 xno) 3716 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3717$as_echo "unsupported" >&6; } ;; 3718 *) 3719 CC="$CC $ac_cv_prog_cc_c89" 3720 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3721$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3722esac 3723 3724 3725ac_ext=c 3726ac_cpp='$CPP $CPPFLAGS' 3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3729ac_compiler_gnu=$ac_cv_c_compiler_gnu 3730 3731depcc="$CC" am_compiler_list= 3732 3733{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3734$as_echo_n "checking dependency style of $depcc... " >&6; } 3735if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3736 $as_echo_n "(cached) " >&6 3737else 3738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3739 # We make a subdir and do the tests there. Otherwise we can end up 3740 # making bogus files that we don't know about and never remove. For 3741 # instance it was reported that on HP-UX the gcc test will end up 3742 # making a dummy file named `D' -- because `-MD' means `put the output 3743 # in D'. 3744 mkdir conftest.dir 3745 # Copy depcomp to subdir because otherwise we won't find it if we're 3746 # using a relative directory. 3747 cp "$am_depcomp" conftest.dir 3748 cd conftest.dir 3749 # We will build objects and dependencies in a subdirectory because 3750 # it helps to detect inapplicable dependency modes. For instance 3751 # both Tru64's cc and ICC support -MD to output dependencies as a 3752 # side effect of compilation, but ICC will put the dependencies in 3753 # the current directory while Tru64 will put them in the object 3754 # directory. 3755 mkdir sub 3756 3757 am_cv_CC_dependencies_compiler_type=none 3758 if test "$am_compiler_list" = ""; then 3759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3760 fi 3761 for depmode in $am_compiler_list; do 3762 # Setup a source with many dependencies, because some compilers 3763 # like to wrap large dependency lists on column 80 (with \), and 3764 # we should not choose a depcomp mode which is confused by this. 3765 # 3766 # We need to recreate these files for each test, as the compiler may 3767 # overwrite some of them when testing with obscure command lines. 3768 # This happens at least with the AIX C compiler. 3769 : > sub/conftest.c 3770 for i in 1 2 3 4 5 6; do 3771 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3773 # Solaris 8's {/usr,}/bin/sh. 3774 touch sub/conftst$i.h 3775 done 3776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3777 3778 case $depmode in 3779 nosideeffect) 3780 # after this tag, mechanisms are not by side-effect, so they'll 3781 # only be used when explicitly requested 3782 if test "x$enable_dependency_tracking" = xyes; then 3783 continue 3784 else 3785 break 3786 fi 3787 ;; 3788 none) break ;; 3789 esac 3790 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3791 # mode. It turns out that the SunPro C++ compiler does not properly 3792 # handle `-M -o', and we need to detect this. 3793 if depmode=$depmode \ 3794 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3796 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3797 >/dev/null 2>conftest.err && 3798 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3802 # icc doesn't choke on unknown options, it will just issue warnings 3803 # or remarks (even with -Werror). So we grep stderr for any message 3804 # that says an option was ignored or not supported. 3805 # When given -MP, icc 7.0 and 7.1 complain thusly: 3806 # icc: Command line warning: ignoring option '-M'; no argument required 3807 # The diagnosis changed in icc 8.0: 3808 # icc: Command line remark: option '-MP' not supported 3809 if (grep 'ignoring option' conftest.err || 3810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3811 am_cv_CC_dependencies_compiler_type=$depmode 3812 break 3813 fi 3814 fi 3815 done 3816 3817 cd .. 3818 rm -rf conftest.dir 3819else 3820 am_cv_CC_dependencies_compiler_type=none 3821fi 3822 3823fi 3824{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3825$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3827 3828 if 3829 test "x$enable_dependency_tracking" != xno \ 3830 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3831 am__fastdepCC_TRUE= 3832 am__fastdepCC_FALSE='#' 3833else 3834 am__fastdepCC_TRUE='#' 3835 am__fastdepCC_FALSE= 3836fi 3837 3838 3839{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3840$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3841if test "${ac_cv_path_SED+set}" = set; then 3842 $as_echo_n "(cached) " >&6 3843else 3844 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3845 for ac_i in 1 2 3 4 5 6 7; do 3846 ac_script="$ac_script$as_nl$ac_script" 3847 done 3848 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3849 $as_unset ac_script || ac_script= 3850 if test -z "$SED"; then 3851 ac_path_SED_found=false 3852 # Loop through the user's path and test for each of PROGNAME-LIST 3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3854for as_dir in $PATH 3855do 3856 IFS=$as_save_IFS 3857 test -z "$as_dir" && as_dir=. 3858 for ac_prog in sed gsed; do 3859 for ac_exec_ext in '' $ac_executable_extensions; do 3860 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3861 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3862# Check for GNU ac_path_SED and select it if it is found. 3863 # Check for GNU $ac_path_SED 3864case `"$ac_path_SED" --version 2>&1` in 3865*GNU*) 3866 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3867*) 3868 ac_count=0 3869 $as_echo_n 0123456789 >"conftest.in" 3870 while : 3871 do 3872 cat "conftest.in" "conftest.in" >"conftest.tmp" 3873 mv "conftest.tmp" "conftest.in" 3874 cp "conftest.in" "conftest.nl" 3875 $as_echo '' >> "conftest.nl" 3876 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3878 ac_count=`expr $ac_count + 1` 3879 if test $ac_count -gt ${ac_path_SED_max-0}; then 3880 # Best one so far, save it but keep looking for a better one 3881 ac_cv_path_SED="$ac_path_SED" 3882 ac_path_SED_max=$ac_count 3883 fi 3884 # 10*(2^10) chars as input seems more than enough 3885 test $ac_count -gt 10 && break 3886 done 3887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3888esac 3889 3890 $ac_path_SED_found && break 3 3891 done 3892 done 3893done 3894IFS=$as_save_IFS 3895 if test -z "$ac_cv_path_SED"; then 3896 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3897$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3898 { (exit 1); exit 1; }; } 3899 fi 3900else 3901 ac_cv_path_SED=$SED 3902fi 3903 3904fi 3905{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3906$as_echo "$ac_cv_path_SED" >&6; } 3907 SED="$ac_cv_path_SED" 3908 rm -f conftest.sed 3909 3910test -z "$SED" && SED=sed 3911Xsed="$SED -e 1s/^X//" 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3924$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3925if test "${ac_cv_path_GREP+set}" = set; then 3926 $as_echo_n "(cached) " >&6 3927else 3928 if test -z "$GREP"; then 3929 ac_path_GREP_found=false 3930 # Loop through the user's path and test for each of PROGNAME-LIST 3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3933do 3934 IFS=$as_save_IFS 3935 test -z "$as_dir" && as_dir=. 3936 for ac_prog in grep ggrep; do 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3939 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3940# Check for GNU ac_path_GREP and select it if it is found. 3941 # Check for GNU $ac_path_GREP 3942case `"$ac_path_GREP" --version 2>&1` in 3943*GNU*) 3944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3945*) 3946 ac_count=0 3947 $as_echo_n 0123456789 >"conftest.in" 3948 while : 3949 do 3950 cat "conftest.in" "conftest.in" >"conftest.tmp" 3951 mv "conftest.tmp" "conftest.in" 3952 cp "conftest.in" "conftest.nl" 3953 $as_echo 'GREP' >> "conftest.nl" 3954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3956 ac_count=`expr $ac_count + 1` 3957 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3958 # Best one so far, save it but keep looking for a better one 3959 ac_cv_path_GREP="$ac_path_GREP" 3960 ac_path_GREP_max=$ac_count 3961 fi 3962 # 10*(2^10) chars as input seems more than enough 3963 test $ac_count -gt 10 && break 3964 done 3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3966esac 3967 3968 $ac_path_GREP_found && break 3 3969 done 3970 done 3971done 3972IFS=$as_save_IFS 3973 if test -z "$ac_cv_path_GREP"; then 3974 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3975$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3976 { (exit 1); exit 1; }; } 3977 fi 3978else 3979 ac_cv_path_GREP=$GREP 3980fi 3981 3982fi 3983{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3984$as_echo "$ac_cv_path_GREP" >&6; } 3985 GREP="$ac_cv_path_GREP" 3986 3987 3988{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3989$as_echo_n "checking for egrep... " >&6; } 3990if test "${ac_cv_path_EGREP+set}" = set; then 3991 $as_echo_n "(cached) " >&6 3992else 3993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3994 then ac_cv_path_EGREP="$GREP -E" 3995 else 3996 if test -z "$EGREP"; then 3997 ac_path_EGREP_found=false 3998 # Loop through the user's path and test for each of PROGNAME-LIST 3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4001do 4002 IFS=$as_save_IFS 4003 test -z "$as_dir" && as_dir=. 4004 for ac_prog in egrep; do 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4008# Check for GNU ac_path_EGREP and select it if it is found. 4009 # Check for GNU $ac_path_EGREP 4010case `"$ac_path_EGREP" --version 2>&1` in 4011*GNU*) 4012 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4013*) 4014 ac_count=0 4015 $as_echo_n 0123456789 >"conftest.in" 4016 while : 4017 do 4018 cat "conftest.in" "conftest.in" >"conftest.tmp" 4019 mv "conftest.tmp" "conftest.in" 4020 cp "conftest.in" "conftest.nl" 4021 $as_echo 'EGREP' >> "conftest.nl" 4022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4024 ac_count=`expr $ac_count + 1` 4025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4026 # Best one so far, save it but keep looking for a better one 4027 ac_cv_path_EGREP="$ac_path_EGREP" 4028 ac_path_EGREP_max=$ac_count 4029 fi 4030 # 10*(2^10) chars as input seems more than enough 4031 test $ac_count -gt 10 && break 4032 done 4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4034esac 4035 4036 $ac_path_EGREP_found && break 3 4037 done 4038 done 4039done 4040IFS=$as_save_IFS 4041 if test -z "$ac_cv_path_EGREP"; then 4042 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4043$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4044 { (exit 1); exit 1; }; } 4045 fi 4046else 4047 ac_cv_path_EGREP=$EGREP 4048fi 4049 4050 fi 4051fi 4052{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4053$as_echo "$ac_cv_path_EGREP" >&6; } 4054 EGREP="$ac_cv_path_EGREP" 4055 4056 4057{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4058$as_echo_n "checking for fgrep... " >&6; } 4059if test "${ac_cv_path_FGREP+set}" = set; then 4060 $as_echo_n "(cached) " >&6 4061else 4062 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4063 then ac_cv_path_FGREP="$GREP -F" 4064 else 4065 if test -z "$FGREP"; then 4066 ac_path_FGREP_found=false 4067 # Loop through the user's path and test for each of PROGNAME-LIST 4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4070do 4071 IFS=$as_save_IFS 4072 test -z "$as_dir" && as_dir=. 4073 for ac_prog in fgrep; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4076 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4077# Check for GNU ac_path_FGREP and select it if it is found. 4078 # Check for GNU $ac_path_FGREP 4079case `"$ac_path_FGREP" --version 2>&1` in 4080*GNU*) 4081 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4082*) 4083 ac_count=0 4084 $as_echo_n 0123456789 >"conftest.in" 4085 while : 4086 do 4087 cat "conftest.in" "conftest.in" >"conftest.tmp" 4088 mv "conftest.tmp" "conftest.in" 4089 cp "conftest.in" "conftest.nl" 4090 $as_echo 'FGREP' >> "conftest.nl" 4091 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4093 ac_count=`expr $ac_count + 1` 4094 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4095 # Best one so far, save it but keep looking for a better one 4096 ac_cv_path_FGREP="$ac_path_FGREP" 4097 ac_path_FGREP_max=$ac_count 4098 fi 4099 # 10*(2^10) chars as input seems more than enough 4100 test $ac_count -gt 10 && break 4101 done 4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4103esac 4104 4105 $ac_path_FGREP_found && break 3 4106 done 4107 done 4108done 4109IFS=$as_save_IFS 4110 if test -z "$ac_cv_path_FGREP"; then 4111 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4112$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4113 { (exit 1); exit 1; }; } 4114 fi 4115else 4116 ac_cv_path_FGREP=$FGREP 4117fi 4118 4119 fi 4120fi 4121{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4122$as_echo "$ac_cv_path_FGREP" >&6; } 4123 FGREP="$ac_cv_path_FGREP" 4124 4125 4126test -z "$GREP" && GREP=grep 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146# Check whether --with-gnu-ld was given. 4147if test "${with_gnu_ld+set}" = set; then 4148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4149else 4150 with_gnu_ld=no 4151fi 4152 4153ac_prog=ld 4154if test "$GCC" = yes; then 4155 # Check if gcc -print-prog-name=ld gives a path. 4156 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4157$as_echo_n "checking for ld used by $CC... " >&6; } 4158 case $host in 4159 *-*-mingw*) 4160 # gcc leaves a trailing carriage return which upsets mingw 4161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4162 *) 4163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4164 esac 4165 case $ac_prog in 4166 # Accept absolute paths. 4167 [\\/]* | ?:[\\/]*) 4168 re_direlt='/[^/][^/]*/\.\./' 4169 # Canonicalize the pathname of ld 4170 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4171 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4172 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4173 done 4174 test -z "$LD" && LD="$ac_prog" 4175 ;; 4176 "") 4177 # If it fails, then pretend we aren't using GCC. 4178 ac_prog=ld 4179 ;; 4180 *) 4181 # If it is relative, then search for the first ld in PATH. 4182 with_gnu_ld=unknown 4183 ;; 4184 esac 4185elif test "$with_gnu_ld" = yes; then 4186 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4187$as_echo_n "checking for GNU ld... " >&6; } 4188else 4189 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4190$as_echo_n "checking for non-GNU ld... " >&6; } 4191fi 4192if test "${lt_cv_path_LD+set}" = set; then 4193 $as_echo_n "(cached) " >&6 4194else 4195 if test -z "$LD"; then 4196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4197 for ac_dir in $PATH; do 4198 IFS="$lt_save_ifs" 4199 test -z "$ac_dir" && ac_dir=. 4200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4201 lt_cv_path_LD="$ac_dir/$ac_prog" 4202 # Check to see if the program is GNU ld. I'd rather use --version, 4203 # but apparently some variants of GNU ld only accept -v. 4204 # Break only if it was the GNU/non-GNU ld that we prefer. 4205 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4206 *GNU* | *'with BFD'*) 4207 test "$with_gnu_ld" != no && break 4208 ;; 4209 *) 4210 test "$with_gnu_ld" != yes && break 4211 ;; 4212 esac 4213 fi 4214 done 4215 IFS="$lt_save_ifs" 4216else 4217 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4218fi 4219fi 4220 4221LD="$lt_cv_path_LD" 4222if test -n "$LD"; then 4223 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4224$as_echo "$LD" >&6; } 4225else 4226 { $as_echo "$as_me:$LINENO: result: no" >&5 4227$as_echo "no" >&6; } 4228fi 4229test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4230$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4231 { (exit 1); exit 1; }; } 4232{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4233$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4234if test "${lt_cv_prog_gnu_ld+set}" = set; then 4235 $as_echo_n "(cached) " >&6 4236else 4237 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4238case `$LD -v 2>&1 </dev/null` in 4239*GNU* | *'with BFD'*) 4240 lt_cv_prog_gnu_ld=yes 4241 ;; 4242*) 4243 lt_cv_prog_gnu_ld=no 4244 ;; 4245esac 4246fi 4247{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4248$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4249with_gnu_ld=$lt_cv_prog_gnu_ld 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4260$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4261if test "${lt_cv_path_NM+set}" = set; then 4262 $as_echo_n "(cached) " >&6 4263else 4264 if test -n "$NM"; then 4265 # Let the user override the test. 4266 lt_cv_path_NM="$NM" 4267else 4268 lt_nm_to_check="${ac_tool_prefix}nm" 4269 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4270 lt_nm_to_check="$lt_nm_to_check nm" 4271 fi 4272 for lt_tmp_nm in $lt_nm_to_check; do 4273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4274 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4275 IFS="$lt_save_ifs" 4276 test -z "$ac_dir" && ac_dir=. 4277 tmp_nm="$ac_dir/$lt_tmp_nm" 4278 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4279 # Check to see if the nm accepts a BSD-compat flag. 4280 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4281 # nm: unknown option "B" ignored 4282 # Tru64's nm complains that /dev/null is an invalid object file 4283 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4284 */dev/null* | *'Invalid file or object type'*) 4285 lt_cv_path_NM="$tmp_nm -B" 4286 break 4287 ;; 4288 *) 4289 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4290 */dev/null*) 4291 lt_cv_path_NM="$tmp_nm -p" 4292 break 4293 ;; 4294 *) 4295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4296 continue # so that we can try to find one that supports BSD flags 4297 ;; 4298 esac 4299 ;; 4300 esac 4301 fi 4302 done 4303 IFS="$lt_save_ifs" 4304 done 4305 : ${lt_cv_path_NM=no} 4306fi 4307fi 4308{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4309$as_echo "$lt_cv_path_NM" >&6; } 4310if test "$lt_cv_path_NM" != "no"; then 4311 NM="$lt_cv_path_NM" 4312else 4313 # Didn't find any BSD compatible name lister, look for dumpbin. 4314 if test -n "$ac_tool_prefix"; then 4315 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4316 do 4317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4318set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4320$as_echo_n "checking for $ac_word... " >&6; } 4321if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4322 $as_echo_n "(cached) " >&6 4323else 4324 if test -n "$DUMPBIN"; then 4325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4326else 4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328for as_dir in $PATH 4329do 4330 IFS=$as_save_IFS 4331 test -z "$as_dir" && as_dir=. 4332 for ac_exec_ext in '' $ac_executable_extensions; do 4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4334 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4336 break 2 4337 fi 4338done 4339done 4340IFS=$as_save_IFS 4341 4342fi 4343fi 4344DUMPBIN=$ac_cv_prog_DUMPBIN 4345if test -n "$DUMPBIN"; then 4346 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4347$as_echo "$DUMPBIN" >&6; } 4348else 4349 { $as_echo "$as_me:$LINENO: result: no" >&5 4350$as_echo "no" >&6; } 4351fi 4352 4353 4354 test -n "$DUMPBIN" && break 4355 done 4356fi 4357if test -z "$DUMPBIN"; then 4358 ac_ct_DUMPBIN=$DUMPBIN 4359 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4360do 4361 # Extract the first word of "$ac_prog", so it can be a program name with args. 4362set dummy $ac_prog; ac_word=$2 4363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4364$as_echo_n "checking for $ac_word... " >&6; } 4365if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4366 $as_echo_n "(cached) " >&6 4367else 4368 if test -n "$ac_ct_DUMPBIN"; then 4369 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4370else 4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4372for as_dir in $PATH 4373do 4374 IFS=$as_save_IFS 4375 test -z "$as_dir" && as_dir=. 4376 for ac_exec_ext in '' $ac_executable_extensions; do 4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4380 break 2 4381 fi 4382done 4383done 4384IFS=$as_save_IFS 4385 4386fi 4387fi 4388ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4389if test -n "$ac_ct_DUMPBIN"; then 4390 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4391$as_echo "$ac_ct_DUMPBIN" >&6; } 4392else 4393 { $as_echo "$as_me:$LINENO: result: no" >&5 4394$as_echo "no" >&6; } 4395fi 4396 4397 4398 test -n "$ac_ct_DUMPBIN" && break 4399done 4400 4401 if test "x$ac_ct_DUMPBIN" = x; then 4402 DUMPBIN=":" 4403 else 4404 case $cross_compiling:$ac_tool_warned in 4405yes:) 4406{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4408ac_tool_warned=yes ;; 4409esac 4410 DUMPBIN=$ac_ct_DUMPBIN 4411 fi 4412fi 4413 4414 4415 if test "$DUMPBIN" != ":"; then 4416 NM="$DUMPBIN" 4417 fi 4418fi 4419test -z "$NM" && NM=nm 4420 4421 4422 4423 4424 4425 4426{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4427$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4428if test "${lt_cv_nm_interface+set}" = set; then 4429 $as_echo_n "(cached) " >&6 4430else 4431 lt_cv_nm_interface="BSD nm" 4432 echo "int some_variable = 0;" > conftest.$ac_ext 4433 (eval echo "\"\$as_me:4433: $ac_compile\"" >&5) 4434 (eval "$ac_compile" 2>conftest.err) 4435 cat conftest.err >&5 4436 (eval echo "\"\$as_me:4436: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4437 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4438 cat conftest.err >&5 4439 (eval echo "\"\$as_me:4439: output\"" >&5) 4440 cat conftest.out >&5 4441 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4442 lt_cv_nm_interface="MS dumpbin" 4443 fi 4444 rm -f conftest* 4445fi 4446{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4447$as_echo "$lt_cv_nm_interface" >&6; } 4448 4449{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4450$as_echo_n "checking whether ln -s works... " >&6; } 4451LN_S=$as_ln_s 4452if test "$LN_S" = "ln -s"; then 4453 { $as_echo "$as_me:$LINENO: result: yes" >&5 4454$as_echo "yes" >&6; } 4455else 4456 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4457$as_echo "no, using $LN_S" >&6; } 4458fi 4459 4460# find the maximum length of command line arguments 4461{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4462$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4463if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4464 $as_echo_n "(cached) " >&6 4465else 4466 i=0 4467 teststring="ABCD" 4468 4469 case $build_os in 4470 msdosdjgpp*) 4471 # On DJGPP, this test can blow up pretty badly due to problems in libc 4472 # (any single argument exceeding 2000 bytes causes a buffer overrun 4473 # during glob expansion). Even if it were fixed, the result of this 4474 # check would be larger than it should be. 4475 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4476 ;; 4477 4478 gnu*) 4479 # Under GNU Hurd, this test is not required because there is 4480 # no limit to the length of command line arguments. 4481 # Libtool will interpret -1 as no limit whatsoever 4482 lt_cv_sys_max_cmd_len=-1; 4483 ;; 4484 4485 cygwin* | mingw* | cegcc*) 4486 # On Win9x/ME, this test blows up -- it succeeds, but takes 4487 # about 5 minutes as the teststring grows exponentially. 4488 # Worse, since 9x/ME are not pre-emptively multitasking, 4489 # you end up with a "frozen" computer, even though with patience 4490 # the test eventually succeeds (with a max line length of 256k). 4491 # Instead, let's just punt: use the minimum linelength reported by 4492 # all of the supported platforms: 8192 (on NT/2K/XP). 4493 lt_cv_sys_max_cmd_len=8192; 4494 ;; 4495 4496 amigaos*) 4497 # On AmigaOS with pdksh, this test takes hours, literally. 4498 # So we just punt and use a minimum line length of 8192. 4499 lt_cv_sys_max_cmd_len=8192; 4500 ;; 4501 4502 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4503 # This has been around since 386BSD, at least. Likely further. 4504 if test -x /sbin/sysctl; then 4505 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4506 elif test -x /usr/sbin/sysctl; then 4507 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4508 else 4509 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4510 fi 4511 # And add a safety zone 4512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4514 ;; 4515 4516 interix*) 4517 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4518 lt_cv_sys_max_cmd_len=196608 4519 ;; 4520 4521 osf*) 4522 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4523 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4524 # nice to cause kernel panics so lets avoid the loop below. 4525 # First set a reasonable default. 4526 lt_cv_sys_max_cmd_len=16384 4527 # 4528 if test -x /sbin/sysconfig; then 4529 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4530 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4531 esac 4532 fi 4533 ;; 4534 sco3.2v5*) 4535 lt_cv_sys_max_cmd_len=102400 4536 ;; 4537 sysv5* | sco5v6* | sysv4.2uw2*) 4538 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4539 if test -n "$kargmax"; then 4540 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4541 else 4542 lt_cv_sys_max_cmd_len=32768 4543 fi 4544 ;; 4545 *) 4546 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4547 if test -n "$lt_cv_sys_max_cmd_len"; then 4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4550 else 4551 # Make teststring a little bigger before we do anything with it. 4552 # a 1K string should be a reasonable start. 4553 for i in 1 2 3 4 5 6 7 8 ; do 4554 teststring=$teststring$teststring 4555 done 4556 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4557 # If test is not a shell built-in, we'll probably end up computing a 4558 # maximum length that is only half of the actual maximum length, but 4559 # we can't tell. 4560 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4561 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4562 test $i != 17 # 1/2 MB should be enough 4563 do 4564 i=`expr $i + 1` 4565 teststring=$teststring$teststring 4566 done 4567 # Only check the string length outside the loop. 4568 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4569 teststring= 4570 # Add a significant safety factor because C++ compilers can tack on 4571 # massive amounts of additional arguments before passing them to the 4572 # linker. It appears as though 1/2 is a usable value. 4573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4574 fi 4575 ;; 4576 esac 4577 4578fi 4579 4580if test -n $lt_cv_sys_max_cmd_len ; then 4581 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4582$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4583else 4584 { $as_echo "$as_me:$LINENO: result: none" >&5 4585$as_echo "none" >&6; } 4586fi 4587max_cmd_len=$lt_cv_sys_max_cmd_len 4588 4589 4590 4591 4592 4593 4594: ${CP="cp -f"} 4595: ${MV="mv -f"} 4596: ${RM="rm -f"} 4597 4598{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4599$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4600# Try some XSI features 4601xsi_shell=no 4602( _lt_dummy="a/b/c" 4603 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4604 = c,a/b,, \ 4605 && eval 'test $(( 1 + 1 )) -eq 2 \ 4606 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4607 && xsi_shell=yes 4608{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4609$as_echo "$xsi_shell" >&6; } 4610 4611 4612{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4613$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4614lt_shell_append=no 4615( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4616 >/dev/null 2>&1 \ 4617 && lt_shell_append=yes 4618{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4619$as_echo "$lt_shell_append" >&6; } 4620 4621 4622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4623 lt_unset=unset 4624else 4625 lt_unset=false 4626fi 4627 4628 4629 4630 4631 4632# test EBCDIC or ASCII 4633case `echo X|tr X '\101'` in 4634 A) # ASCII based system 4635 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4636 lt_SP2NL='tr \040 \012' 4637 lt_NL2SP='tr \015\012 \040\040' 4638 ;; 4639 *) # EBCDIC based system 4640 lt_SP2NL='tr \100 \n' 4641 lt_NL2SP='tr \r\n \100\100' 4642 ;; 4643esac 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4654$as_echo_n "checking for $LD option to reload object files... " >&6; } 4655if test "${lt_cv_ld_reload_flag+set}" = set; then 4656 $as_echo_n "(cached) " >&6 4657else 4658 lt_cv_ld_reload_flag='-r' 4659fi 4660{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4661$as_echo "$lt_cv_ld_reload_flag" >&6; } 4662reload_flag=$lt_cv_ld_reload_flag 4663case $reload_flag in 4664"" | " "*) ;; 4665*) reload_flag=" $reload_flag" ;; 4666esac 4667reload_cmds='$LD$reload_flag -o $output$reload_objs' 4668case $host_os in 4669 darwin*) 4670 if test "$GCC" = yes; then 4671 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4672 else 4673 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4674 fi 4675 ;; 4676esac 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686if test -n "$ac_tool_prefix"; then 4687 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4688set dummy ${ac_tool_prefix}objdump; ac_word=$2 4689{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4690$as_echo_n "checking for $ac_word... " >&6; } 4691if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4692 $as_echo_n "(cached) " >&6 4693else 4694 if test -n "$OBJDUMP"; then 4695 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4696else 4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4698for as_dir in $PATH 4699do 4700 IFS=$as_save_IFS 4701 test -z "$as_dir" && as_dir=. 4702 for ac_exec_ext in '' $ac_executable_extensions; do 4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4704 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4706 break 2 4707 fi 4708done 4709done 4710IFS=$as_save_IFS 4711 4712fi 4713fi 4714OBJDUMP=$ac_cv_prog_OBJDUMP 4715if test -n "$OBJDUMP"; then 4716 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4717$as_echo "$OBJDUMP" >&6; } 4718else 4719 { $as_echo "$as_me:$LINENO: result: no" >&5 4720$as_echo "no" >&6; } 4721fi 4722 4723 4724fi 4725if test -z "$ac_cv_prog_OBJDUMP"; then 4726 ac_ct_OBJDUMP=$OBJDUMP 4727 # Extract the first word of "objdump", so it can be a program name with args. 4728set dummy objdump; ac_word=$2 4729{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4730$as_echo_n "checking for $ac_word... " >&6; } 4731if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4732 $as_echo_n "(cached) " >&6 4733else 4734 if test -n "$ac_ct_OBJDUMP"; then 4735 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4736else 4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4738for as_dir in $PATH 4739do 4740 IFS=$as_save_IFS 4741 test -z "$as_dir" && as_dir=. 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4744 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4746 break 2 4747 fi 4748done 4749done 4750IFS=$as_save_IFS 4751 4752fi 4753fi 4754ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4755if test -n "$ac_ct_OBJDUMP"; then 4756 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4757$as_echo "$ac_ct_OBJDUMP" >&6; } 4758else 4759 { $as_echo "$as_me:$LINENO: result: no" >&5 4760$as_echo "no" >&6; } 4761fi 4762 4763 if test "x$ac_ct_OBJDUMP" = x; then 4764 OBJDUMP="false" 4765 else 4766 case $cross_compiling:$ac_tool_warned in 4767yes:) 4768{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4770ac_tool_warned=yes ;; 4771esac 4772 OBJDUMP=$ac_ct_OBJDUMP 4773 fi 4774else 4775 OBJDUMP="$ac_cv_prog_OBJDUMP" 4776fi 4777 4778test -z "$OBJDUMP" && OBJDUMP=objdump 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4789$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4790if test "${lt_cv_deplibs_check_method+set}" = set; then 4791 $as_echo_n "(cached) " >&6 4792else 4793 lt_cv_file_magic_cmd='$MAGIC_CMD' 4794lt_cv_file_magic_test_file= 4795lt_cv_deplibs_check_method='unknown' 4796# Need to set the preceding variable on all platforms that support 4797# interlibrary dependencies. 4798# 'none' -- dependencies not supported. 4799# `unknown' -- same as none, but documents that we really don't know. 4800# 'pass_all' -- all dependencies passed with no checks. 4801# 'test_compile' -- check by making test program. 4802# 'file_magic [[regex]]' -- check by looking for files in library path 4803# which responds to the $file_magic_cmd with a given extended regex. 4804# If you have `file' or equivalent on your system and you're not sure 4805# whether `pass_all' will *always* work, you probably want this one. 4806 4807case $host_os in 4808aix[4-9]*) 4809 lt_cv_deplibs_check_method=pass_all 4810 ;; 4811 4812beos*) 4813 lt_cv_deplibs_check_method=pass_all 4814 ;; 4815 4816bsdi[45]*) 4817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4818 lt_cv_file_magic_cmd='/usr/bin/file -L' 4819 lt_cv_file_magic_test_file=/shlib/libc.so 4820 ;; 4821 4822cygwin*) 4823 # func_win32_libid is a shell function defined in ltmain.sh 4824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4825 lt_cv_file_magic_cmd='func_win32_libid' 4826 ;; 4827 4828mingw* | pw32*) 4829 # Base MSYS/MinGW do not provide the 'file' command needed by 4830 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4831 # unless we find 'file', for example because we are cross-compiling. 4832 if ( file / ) >/dev/null 2>&1; then 4833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4834 lt_cv_file_magic_cmd='func_win32_libid' 4835 else 4836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4837 lt_cv_file_magic_cmd='$OBJDUMP -f' 4838 fi 4839 ;; 4840 4841cegcc) 4842 # use the weaker test based on 'objdump'. See mingw*. 4843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4844 lt_cv_file_magic_cmd='$OBJDUMP -f' 4845 ;; 4846 4847darwin* | rhapsody*) 4848 lt_cv_deplibs_check_method=pass_all 4849 ;; 4850 4851freebsd* | dragonfly*) 4852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4853 case $host_cpu in 4854 i*86 ) 4855 # Not sure whether the presence of OpenBSD here was a mistake. 4856 # Let's accept both of them until this is cleared up. 4857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4858 lt_cv_file_magic_cmd=/usr/bin/file 4859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4860 ;; 4861 esac 4862 else 4863 lt_cv_deplibs_check_method=pass_all 4864 fi 4865 ;; 4866 4867gnu*) 4868 lt_cv_deplibs_check_method=pass_all 4869 ;; 4870 4871hpux10.20* | hpux11*) 4872 lt_cv_file_magic_cmd=/usr/bin/file 4873 case $host_cpu in 4874 ia64*) 4875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4876 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4877 ;; 4878 hppa*64*) 4879 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]' 4880 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4881 ;; 4882 *) 4883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4884 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4885 ;; 4886 esac 4887 ;; 4888 4889interix[3-9]*) 4890 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4892 ;; 4893 4894irix5* | irix6* | nonstopux*) 4895 case $LD in 4896 *-32|*"-32 ") libmagic=32-bit;; 4897 *-n32|*"-n32 ") libmagic=N32;; 4898 *-64|*"-64 ") libmagic=64-bit;; 4899 *) libmagic=never-match;; 4900 esac 4901 lt_cv_deplibs_check_method=pass_all 4902 ;; 4903 4904# This must be Linux ELF. 4905linux* | k*bsd*-gnu) 4906 lt_cv_deplibs_check_method=pass_all 4907 ;; 4908 4909netbsd*) 4910 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4912 else 4913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4914 fi 4915 ;; 4916 4917newos6*) 4918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4919 lt_cv_file_magic_cmd=/usr/bin/file 4920 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4921 ;; 4922 4923*nto* | *qnx*) 4924 lt_cv_deplibs_check_method=pass_all 4925 ;; 4926 4927openbsd*) 4928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4930 else 4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4932 fi 4933 ;; 4934 4935osf3* | osf4* | osf5*) 4936 lt_cv_deplibs_check_method=pass_all 4937 ;; 4938 4939rdos*) 4940 lt_cv_deplibs_check_method=pass_all 4941 ;; 4942 4943solaris*) 4944 lt_cv_deplibs_check_method=pass_all 4945 ;; 4946 4947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4948 lt_cv_deplibs_check_method=pass_all 4949 ;; 4950 4951sysv4 | sysv4.3*) 4952 case $host_vendor in 4953 motorola) 4954 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]' 4955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4956 ;; 4957 ncr) 4958 lt_cv_deplibs_check_method=pass_all 4959 ;; 4960 sequent) 4961 lt_cv_file_magic_cmd='/bin/file' 4962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4963 ;; 4964 sni) 4965 lt_cv_file_magic_cmd='/bin/file' 4966 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4967 lt_cv_file_magic_test_file=/lib/libc.so 4968 ;; 4969 siemens) 4970 lt_cv_deplibs_check_method=pass_all 4971 ;; 4972 pc) 4973 lt_cv_deplibs_check_method=pass_all 4974 ;; 4975 esac 4976 ;; 4977 4978tpf*) 4979 lt_cv_deplibs_check_method=pass_all 4980 ;; 4981esac 4982 4983fi 4984{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4985$as_echo "$lt_cv_deplibs_check_method" >&6; } 4986file_magic_cmd=$lt_cv_file_magic_cmd 4987deplibs_check_method=$lt_cv_deplibs_check_method 4988test -z "$deplibs_check_method" && deplibs_check_method=unknown 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001if test -n "$ac_tool_prefix"; then 5002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5003set dummy ${ac_tool_prefix}ar; ac_word=$2 5004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5005$as_echo_n "checking for $ac_word... " >&6; } 5006if test "${ac_cv_prog_AR+set}" = set; then 5007 $as_echo_n "(cached) " >&6 5008else 5009 if test -n "$AR"; then 5010 ac_cv_prog_AR="$AR" # Let the user override the test. 5011else 5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5013for as_dir in $PATH 5014do 5015 IFS=$as_save_IFS 5016 test -z "$as_dir" && as_dir=. 5017 for ac_exec_ext in '' $ac_executable_extensions; do 5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5019 ac_cv_prog_AR="${ac_tool_prefix}ar" 5020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5021 break 2 5022 fi 5023done 5024done 5025IFS=$as_save_IFS 5026 5027fi 5028fi 5029AR=$ac_cv_prog_AR 5030if test -n "$AR"; then 5031 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5032$as_echo "$AR" >&6; } 5033else 5034 { $as_echo "$as_me:$LINENO: result: no" >&5 5035$as_echo "no" >&6; } 5036fi 5037 5038 5039fi 5040if test -z "$ac_cv_prog_AR"; then 5041 ac_ct_AR=$AR 5042 # Extract the first word of "ar", so it can be a program name with args. 5043set dummy ar; ac_word=$2 5044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5045$as_echo_n "checking for $ac_word... " >&6; } 5046if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5047 $as_echo_n "(cached) " >&6 5048else 5049 if test -n "$ac_ct_AR"; then 5050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5051else 5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5053for as_dir in $PATH 5054do 5055 IFS=$as_save_IFS 5056 test -z "$as_dir" && as_dir=. 5057 for ac_exec_ext in '' $ac_executable_extensions; do 5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5059 ac_cv_prog_ac_ct_AR="ar" 5060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5061 break 2 5062 fi 5063done 5064done 5065IFS=$as_save_IFS 5066 5067fi 5068fi 5069ac_ct_AR=$ac_cv_prog_ac_ct_AR 5070if test -n "$ac_ct_AR"; then 5071 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5072$as_echo "$ac_ct_AR" >&6; } 5073else 5074 { $as_echo "$as_me:$LINENO: result: no" >&5 5075$as_echo "no" >&6; } 5076fi 5077 5078 if test "x$ac_ct_AR" = x; then 5079 AR="false" 5080 else 5081 case $cross_compiling:$ac_tool_warned in 5082yes:) 5083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5085ac_tool_warned=yes ;; 5086esac 5087 AR=$ac_ct_AR 5088 fi 5089else 5090 AR="$ac_cv_prog_AR" 5091fi 5092 5093test -z "$AR" && AR=ar 5094test -z "$AR_FLAGS" && AR_FLAGS=cru 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106if test -n "$ac_tool_prefix"; then 5107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5108set dummy ${ac_tool_prefix}strip; ac_word=$2 5109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5110$as_echo_n "checking for $ac_word... " >&6; } 5111if test "${ac_cv_prog_STRIP+set}" = set; then 5112 $as_echo_n "(cached) " >&6 5113else 5114 if test -n "$STRIP"; then 5115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5116else 5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5118for as_dir in $PATH 5119do 5120 IFS=$as_save_IFS 5121 test -z "$as_dir" && as_dir=. 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5124 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128done 5129done 5130IFS=$as_save_IFS 5131 5132fi 5133fi 5134STRIP=$ac_cv_prog_STRIP 5135if test -n "$STRIP"; then 5136 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5137$as_echo "$STRIP" >&6; } 5138else 5139 { $as_echo "$as_me:$LINENO: result: no" >&5 5140$as_echo "no" >&6; } 5141fi 5142 5143 5144fi 5145if test -z "$ac_cv_prog_STRIP"; then 5146 ac_ct_STRIP=$STRIP 5147 # Extract the first word of "strip", so it can be a program name with args. 5148set dummy strip; ac_word=$2 5149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5150$as_echo_n "checking for $ac_word... " >&6; } 5151if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5152 $as_echo_n "(cached) " >&6 5153else 5154 if test -n "$ac_ct_STRIP"; then 5155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5156else 5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5158for as_dir in $PATH 5159do 5160 IFS=$as_save_IFS 5161 test -z "$as_dir" && as_dir=. 5162 for ac_exec_ext in '' $ac_executable_extensions; do 5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5164 ac_cv_prog_ac_ct_STRIP="strip" 5165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5166 break 2 5167 fi 5168done 5169done 5170IFS=$as_save_IFS 5171 5172fi 5173fi 5174ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5175if test -n "$ac_ct_STRIP"; then 5176 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5177$as_echo "$ac_ct_STRIP" >&6; } 5178else 5179 { $as_echo "$as_me:$LINENO: result: no" >&5 5180$as_echo "no" >&6; } 5181fi 5182 5183 if test "x$ac_ct_STRIP" = x; then 5184 STRIP=":" 5185 else 5186 case $cross_compiling:$ac_tool_warned in 5187yes:) 5188{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5190ac_tool_warned=yes ;; 5191esac 5192 STRIP=$ac_ct_STRIP 5193 fi 5194else 5195 STRIP="$ac_cv_prog_STRIP" 5196fi 5197 5198test -z "$STRIP" && STRIP=: 5199 5200 5201 5202 5203 5204 5205if test -n "$ac_tool_prefix"; then 5206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5207set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5209$as_echo_n "checking for $ac_word... " >&6; } 5210if test "${ac_cv_prog_RANLIB+set}" = set; then 5211 $as_echo_n "(cached) " >&6 5212else 5213 if test -n "$RANLIB"; then 5214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5215else 5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5217for as_dir in $PATH 5218do 5219 IFS=$as_save_IFS 5220 test -z "$as_dir" && as_dir=. 5221 for ac_exec_ext in '' $ac_executable_extensions; do 5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5225 break 2 5226 fi 5227done 5228done 5229IFS=$as_save_IFS 5230 5231fi 5232fi 5233RANLIB=$ac_cv_prog_RANLIB 5234if test -n "$RANLIB"; then 5235 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5236$as_echo "$RANLIB" >&6; } 5237else 5238 { $as_echo "$as_me:$LINENO: result: no" >&5 5239$as_echo "no" >&6; } 5240fi 5241 5242 5243fi 5244if test -z "$ac_cv_prog_RANLIB"; then 5245 ac_ct_RANLIB=$RANLIB 5246 # Extract the first word of "ranlib", so it can be a program name with args. 5247set dummy ranlib; ac_word=$2 5248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5249$as_echo_n "checking for $ac_word... " >&6; } 5250if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5251 $as_echo_n "(cached) " >&6 5252else 5253 if test -n "$ac_ct_RANLIB"; then 5254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5263 ac_cv_prog_ac_ct_RANLIB="ranlib" 5264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268done 5269IFS=$as_save_IFS 5270 5271fi 5272fi 5273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5274if test -n "$ac_ct_RANLIB"; then 5275 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5276$as_echo "$ac_ct_RANLIB" >&6; } 5277else 5278 { $as_echo "$as_me:$LINENO: result: no" >&5 5279$as_echo "no" >&6; } 5280fi 5281 5282 if test "x$ac_ct_RANLIB" = x; then 5283 RANLIB=":" 5284 else 5285 case $cross_compiling:$ac_tool_warned in 5286yes:) 5287{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5289ac_tool_warned=yes ;; 5290esac 5291 RANLIB=$ac_ct_RANLIB 5292 fi 5293else 5294 RANLIB="$ac_cv_prog_RANLIB" 5295fi 5296 5297test -z "$RANLIB" && RANLIB=: 5298 5299 5300 5301 5302 5303 5304# Determine commands to create old-style static archives. 5305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5306old_postinstall_cmds='chmod 644 $oldlib' 5307old_postuninstall_cmds= 5308 5309if test -n "$RANLIB"; then 5310 case $host_os in 5311 openbsd*) 5312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5313 ;; 5314 *) 5315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5316 ;; 5317 esac 5318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5319fi 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354# If no C compiler was specified, use CC. 5355LTCC=${LTCC-"$CC"} 5356 5357# If no C compiler flags were specified, use CFLAGS. 5358LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5359 5360# Allow CC to be a program name with arguments. 5361compiler=$CC 5362 5363 5364# Check for command to grab the raw symbol name followed by C symbol from nm. 5365{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5366$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5367if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5368 $as_echo_n "(cached) " >&6 5369else 5370 5371# These are sane defaults that work on at least a few old systems. 5372# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5373 5374# Character class describing NM global symbol codes. 5375symcode='[BCDEGRST]' 5376 5377# Regexp to match symbols that can be accessed directly from C. 5378sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5379 5380# Define system-specific variables. 5381case $host_os in 5382aix*) 5383 symcode='[BCDT]' 5384 ;; 5385cygwin* | mingw* | pw32* | cegcc*) 5386 symcode='[ABCDGISTW]' 5387 ;; 5388hpux*) 5389 if test "$host_cpu" = ia64; then 5390 symcode='[ABCDEGRST]' 5391 fi 5392 ;; 5393irix* | nonstopux*) 5394 symcode='[BCDEGRST]' 5395 ;; 5396osf*) 5397 symcode='[BCDEGQRST]' 5398 ;; 5399solaris*) 5400 symcode='[BDRT]' 5401 ;; 5402sco3.2v5*) 5403 symcode='[DT]' 5404 ;; 5405sysv4.2uw2*) 5406 symcode='[DT]' 5407 ;; 5408sysv5* | sco5v6* | unixware* | OpenUNIX*) 5409 symcode='[ABDT]' 5410 ;; 5411sysv4) 5412 symcode='[DFNSTU]' 5413 ;; 5414esac 5415 5416# If we're using GNU nm, then use its standard symbol codes. 5417case `$NM -V 2>&1` in 5418*GNU* | *'with BFD'*) 5419 symcode='[ABCDGIRSTW]' ;; 5420esac 5421 5422# Transform an extracted symbol line into a proper C declaration. 5423# Some systems (esp. on ia64) link data and code symbols differently, 5424# so use this general approach. 5425lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5426 5427# Transform an extracted symbol line into symbol name and symbol address 5428lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5429lt_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'" 5430 5431# Handle CRLF in mingw tool chain 5432opt_cr= 5433case $build_os in 5434mingw*) 5435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5436 ;; 5437esac 5438 5439# Try without a prefix underscore, then with it. 5440for ac_symprfx in "" "_"; do 5441 5442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5443 symxfrm="\\1 $ac_symprfx\\2 \\2" 5444 5445 # Write the raw and C identifiers. 5446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5447 # Fake it for dumpbin and say T for any non-static function 5448 # and D for any global variable. 5449 # Also find C++ and __fastcall symbols from MSVC++, 5450 # which start with @ or ?. 5451 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5452" {last_section=section; section=\$ 3};"\ 5453" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5454" \$ 0!~/External *\|/{next};"\ 5455" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5456" {if(hide[section]) next};"\ 5457" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5458" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5459" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5460" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5461" ' prfx=^$ac_symprfx" 5462 else 5463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5464 fi 5465 5466 # Check to see that the pipe works correctly. 5467 pipe_works=no 5468 5469 rm -f conftest* 5470 cat > conftest.$ac_ext <<_LT_EOF 5471#ifdef __cplusplus 5472extern "C" { 5473#endif 5474char nm_test_var; 5475void nm_test_func(void); 5476void nm_test_func(void){} 5477#ifdef __cplusplus 5478} 5479#endif 5480int main(){nm_test_var='a';nm_test_func();return(0);} 5481_LT_EOF 5482 5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5484 (eval $ac_compile) 2>&5 5485 ac_status=$? 5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5487 (exit $ac_status); }; then 5488 # Now try to grab the symbols. 5489 nlist=conftest.nm 5490 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5491 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5492 ac_status=$? 5493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5494 (exit $ac_status); } && test -s "$nlist"; then 5495 # Try sorting and uniquifying the output. 5496 if sort "$nlist" | uniq > "$nlist"T; then 5497 mv -f "$nlist"T "$nlist" 5498 else 5499 rm -f "$nlist"T 5500 fi 5501 5502 # Make sure that we snagged all the symbols we need. 5503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5505 cat <<_LT_EOF > conftest.$ac_ext 5506#ifdef __cplusplus 5507extern "C" { 5508#endif 5509 5510_LT_EOF 5511 # Now generate the symbol file. 5512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5513 5514 cat <<_LT_EOF >> conftest.$ac_ext 5515 5516/* The mapping between symbol names and symbols. */ 5517const struct { 5518 const char *name; 5519 void *address; 5520} 5521lt__PROGRAM__LTX_preloaded_symbols[] = 5522{ 5523 { "@PROGRAM@", (void *) 0 }, 5524_LT_EOF 5525 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5526 cat <<\_LT_EOF >> conftest.$ac_ext 5527 {0, (void *) 0} 5528}; 5529 5530/* This works around a problem in FreeBSD linker */ 5531#ifdef FREEBSD_WORKAROUND 5532static const void *lt_preloaded_setup() { 5533 return lt__PROGRAM__LTX_preloaded_symbols; 5534} 5535#endif 5536 5537#ifdef __cplusplus 5538} 5539#endif 5540_LT_EOF 5541 # Now try linking the two files. 5542 mv conftest.$ac_objext conftstm.$ac_objext 5543 lt_save_LIBS="$LIBS" 5544 lt_save_CFLAGS="$CFLAGS" 5545 LIBS="conftstm.$ac_objext" 5546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5548 (eval $ac_link) 2>&5 5549 ac_status=$? 5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5551 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5552 pipe_works=yes 5553 fi 5554 LIBS="$lt_save_LIBS" 5555 CFLAGS="$lt_save_CFLAGS" 5556 else 5557 echo "cannot find nm_test_func in $nlist" >&5 5558 fi 5559 else 5560 echo "cannot find nm_test_var in $nlist" >&5 5561 fi 5562 else 5563 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5564 fi 5565 else 5566 echo "$progname: failed program was:" >&5 5567 cat conftest.$ac_ext >&5 5568 fi 5569 rm -rf conftest* conftst* 5570 5571 # Do not use the global_symbol_pipe unless it works. 5572 if test "$pipe_works" = yes; then 5573 break 5574 else 5575 lt_cv_sys_global_symbol_pipe= 5576 fi 5577done 5578 5579fi 5580 5581if test -z "$lt_cv_sys_global_symbol_pipe"; then 5582 lt_cv_sys_global_symbol_to_cdecl= 5583fi 5584if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5585 { $as_echo "$as_me:$LINENO: result: failed" >&5 5586$as_echo "failed" >&6; } 5587else 5588 { $as_echo "$as_me:$LINENO: result: ok" >&5 5589$as_echo "ok" >&6; } 5590fi 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614# Check whether --enable-libtool-lock was given. 5615if test "${enable_libtool_lock+set}" = set; then 5616 enableval=$enable_libtool_lock; 5617fi 5618 5619test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5620 5621# Some flags need to be propagated to the compiler or linker for good 5622# libtool support. 5623case $host in 5624ia64-*-hpux*) 5625 # Find out which ABI we are using. 5626 echo 'int i;' > conftest.$ac_ext 5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5628 (eval $ac_compile) 2>&5 5629 ac_status=$? 5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5631 (exit $ac_status); }; then 5632 case `/usr/bin/file conftest.$ac_objext` in 5633 *ELF-32*) 5634 HPUX_IA64_MODE="32" 5635 ;; 5636 *ELF-64*) 5637 HPUX_IA64_MODE="64" 5638 ;; 5639 esac 5640 fi 5641 rm -rf conftest* 5642 ;; 5643*-*-irix6*) 5644 # Find out which ABI we are using. 5645 echo '#line 5645 "configure"' > conftest.$ac_ext 5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5647 (eval $ac_compile) 2>&5 5648 ac_status=$? 5649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5650 (exit $ac_status); }; then 5651 if test "$lt_cv_prog_gnu_ld" = yes; then 5652 case `/usr/bin/file conftest.$ac_objext` in 5653 *32-bit*) 5654 LD="${LD-ld} -melf32bsmip" 5655 ;; 5656 *N32*) 5657 LD="${LD-ld} -melf32bmipn32" 5658 ;; 5659 *64-bit*) 5660 LD="${LD-ld} -melf64bmip" 5661 ;; 5662 esac 5663 else 5664 case `/usr/bin/file conftest.$ac_objext` in 5665 *32-bit*) 5666 LD="${LD-ld} -32" 5667 ;; 5668 *N32*) 5669 LD="${LD-ld} -n32" 5670 ;; 5671 *64-bit*) 5672 LD="${LD-ld} -64" 5673 ;; 5674 esac 5675 fi 5676 fi 5677 rm -rf conftest* 5678 ;; 5679 5680x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5681s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5682 # Find out which ABI we are using. 5683 echo 'int i;' > conftest.$ac_ext 5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5685 (eval $ac_compile) 2>&5 5686 ac_status=$? 5687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5688 (exit $ac_status); }; then 5689 case `/usr/bin/file conftest.o` in 5690 *32-bit*) 5691 case $host in 5692 x86_64-*kfreebsd*-gnu) 5693 LD="${LD-ld} -m elf_i386_fbsd" 5694 ;; 5695 x86_64-*linux*) 5696 LD="${LD-ld} -m elf_i386" 5697 ;; 5698 ppc64-*linux*|powerpc64-*linux*) 5699 LD="${LD-ld} -m elf32ppclinux" 5700 ;; 5701 s390x-*linux*) 5702 LD="${LD-ld} -m elf_s390" 5703 ;; 5704 sparc64-*linux*) 5705 LD="${LD-ld} -m elf32_sparc" 5706 ;; 5707 esac 5708 ;; 5709 *64-bit*) 5710 case $host in 5711 x86_64-*kfreebsd*-gnu) 5712 LD="${LD-ld} -m elf_x86_64_fbsd" 5713 ;; 5714 x86_64-*linux*) 5715 LD="${LD-ld} -m elf_x86_64" 5716 ;; 5717 ppc*-*linux*|powerpc*-*linux*) 5718 LD="${LD-ld} -m elf64ppc" 5719 ;; 5720 s390*-*linux*|s390*-*tpf*) 5721 LD="${LD-ld} -m elf64_s390" 5722 ;; 5723 sparc*-*linux*) 5724 LD="${LD-ld} -m elf64_sparc" 5725 ;; 5726 esac 5727 ;; 5728 esac 5729 fi 5730 rm -rf conftest* 5731 ;; 5732 5733*-*-sco3.2v5*) 5734 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5735 SAVE_CFLAGS="$CFLAGS" 5736 CFLAGS="$CFLAGS -belf" 5737 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5738$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5739if test "${lt_cv_cc_needs_belf+set}" = set; then 5740 $as_echo_n "(cached) " >&6 5741else 5742 ac_ext=c 5743ac_cpp='$CPP $CPPFLAGS' 5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5746ac_compiler_gnu=$ac_cv_c_compiler_gnu 5747 5748 cat >conftest.$ac_ext <<_ACEOF 5749/* confdefs.h. */ 5750_ACEOF 5751cat confdefs.h >>conftest.$ac_ext 5752cat >>conftest.$ac_ext <<_ACEOF 5753/* end confdefs.h. */ 5754 5755int 5756main () 5757{ 5758 5759 ; 5760 return 0; 5761} 5762_ACEOF 5763rm -f conftest.$ac_objext conftest$ac_exeext 5764if { (ac_try="$ac_link" 5765case "(($ac_try" in 5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5767 *) ac_try_echo=$ac_try;; 5768esac 5769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5770$as_echo "$ac_try_echo") >&5 5771 (eval "$ac_link") 2>conftest.er1 5772 ac_status=$? 5773 grep -v '^ *+' conftest.er1 >conftest.err 5774 rm -f conftest.er1 5775 cat conftest.err >&5 5776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5777 (exit $ac_status); } && { 5778 test -z "$ac_c_werror_flag" || 5779 test ! -s conftest.err 5780 } && test -s conftest$ac_exeext && { 5781 test "$cross_compiling" = yes || 5782 $as_test_x conftest$ac_exeext 5783 }; then 5784 lt_cv_cc_needs_belf=yes 5785else 5786 $as_echo "$as_me: failed program was:" >&5 5787sed 's/^/| /' conftest.$ac_ext >&5 5788 5789 lt_cv_cc_needs_belf=no 5790fi 5791 5792rm -rf conftest.dSYM 5793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5794 conftest$ac_exeext conftest.$ac_ext 5795 ac_ext=c 5796ac_cpp='$CPP $CPPFLAGS' 5797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5799ac_compiler_gnu=$ac_cv_c_compiler_gnu 5800 5801fi 5802{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5803$as_echo "$lt_cv_cc_needs_belf" >&6; } 5804 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5805 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5806 CFLAGS="$SAVE_CFLAGS" 5807 fi 5808 ;; 5809sparc*-*solaris*) 5810 # Find out which ABI we are using. 5811 echo 'int i;' > conftest.$ac_ext 5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5813 (eval $ac_compile) 2>&5 5814 ac_status=$? 5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5816 (exit $ac_status); }; then 5817 case `/usr/bin/file conftest.o` in 5818 *64-bit*) 5819 case $lt_cv_prog_gnu_ld in 5820 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5821 *) 5822 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5823 LD="${LD-ld} -64" 5824 fi 5825 ;; 5826 esac 5827 ;; 5828 esac 5829 fi 5830 rm -rf conftest* 5831 ;; 5832esac 5833 5834need_locks="$enable_libtool_lock" 5835 5836 5837 case $host_os in 5838 rhapsody* | darwin*) 5839 if test -n "$ac_tool_prefix"; then 5840 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5841set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5842{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5843$as_echo_n "checking for $ac_word... " >&6; } 5844if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5845 $as_echo_n "(cached) " >&6 5846else 5847 if test -n "$DSYMUTIL"; then 5848 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5849else 5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851for as_dir in $PATH 5852do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5857 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5858 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861done 5862done 5863IFS=$as_save_IFS 5864 5865fi 5866fi 5867DSYMUTIL=$ac_cv_prog_DSYMUTIL 5868if test -n "$DSYMUTIL"; then 5869 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5870$as_echo "$DSYMUTIL" >&6; } 5871else 5872 { $as_echo "$as_me:$LINENO: result: no" >&5 5873$as_echo "no" >&6; } 5874fi 5875 5876 5877fi 5878if test -z "$ac_cv_prog_DSYMUTIL"; then 5879 ac_ct_DSYMUTIL=$DSYMUTIL 5880 # Extract the first word of "dsymutil", so it can be a program name with args. 5881set dummy dsymutil; ac_word=$2 5882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5883$as_echo_n "checking for $ac_word... " >&6; } 5884if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5885 $as_echo_n "(cached) " >&6 5886else 5887 if test -n "$ac_ct_DSYMUTIL"; then 5888 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5889else 5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891for as_dir in $PATH 5892do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_exec_ext in '' $ac_executable_extensions; do 5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5897 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5899 break 2 5900 fi 5901done 5902done 5903IFS=$as_save_IFS 5904 5905fi 5906fi 5907ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5908if test -n "$ac_ct_DSYMUTIL"; then 5909 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5910$as_echo "$ac_ct_DSYMUTIL" >&6; } 5911else 5912 { $as_echo "$as_me:$LINENO: result: no" >&5 5913$as_echo "no" >&6; } 5914fi 5915 5916 if test "x$ac_ct_DSYMUTIL" = x; then 5917 DSYMUTIL=":" 5918 else 5919 case $cross_compiling:$ac_tool_warned in 5920yes:) 5921{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5923ac_tool_warned=yes ;; 5924esac 5925 DSYMUTIL=$ac_ct_DSYMUTIL 5926 fi 5927else 5928 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5929fi 5930 5931 if test -n "$ac_tool_prefix"; then 5932 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5933set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5934{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5935$as_echo_n "checking for $ac_word... " >&6; } 5936if test "${ac_cv_prog_NMEDIT+set}" = set; then 5937 $as_echo_n "(cached) " >&6 5938else 5939 if test -n "$NMEDIT"; then 5940 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5941else 5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_exec_ext in '' $ac_executable_extensions; do 5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5949 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954done 5955IFS=$as_save_IFS 5956 5957fi 5958fi 5959NMEDIT=$ac_cv_prog_NMEDIT 5960if test -n "$NMEDIT"; then 5961 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5962$as_echo "$NMEDIT" >&6; } 5963else 5964 { $as_echo "$as_me:$LINENO: result: no" >&5 5965$as_echo "no" >&6; } 5966fi 5967 5968 5969fi 5970if test -z "$ac_cv_prog_NMEDIT"; then 5971 ac_ct_NMEDIT=$NMEDIT 5972 # Extract the first word of "nmedit", so it can be a program name with args. 5973set dummy nmedit; ac_word=$2 5974{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5975$as_echo_n "checking for $ac_word... " >&6; } 5976if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5977 $as_echo_n "(cached) " >&6 5978else 5979 if test -n "$ac_ct_NMEDIT"; then 5980 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5981else 5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5983for as_dir in $PATH 5984do 5985 IFS=$as_save_IFS 5986 test -z "$as_dir" && as_dir=. 5987 for ac_exec_ext in '' $ac_executable_extensions; do 5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5989 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5991 break 2 5992 fi 5993done 5994done 5995IFS=$as_save_IFS 5996 5997fi 5998fi 5999ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6000if test -n "$ac_ct_NMEDIT"; then 6001 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6002$as_echo "$ac_ct_NMEDIT" >&6; } 6003else 6004 { $as_echo "$as_me:$LINENO: result: no" >&5 6005$as_echo "no" >&6; } 6006fi 6007 6008 if test "x$ac_ct_NMEDIT" = x; then 6009 NMEDIT=":" 6010 else 6011 case $cross_compiling:$ac_tool_warned in 6012yes:) 6013{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6015ac_tool_warned=yes ;; 6016esac 6017 NMEDIT=$ac_ct_NMEDIT 6018 fi 6019else 6020 NMEDIT="$ac_cv_prog_NMEDIT" 6021fi 6022 6023 if test -n "$ac_tool_prefix"; then 6024 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6025set dummy ${ac_tool_prefix}lipo; ac_word=$2 6026{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6027$as_echo_n "checking for $ac_word... " >&6; } 6028if test "${ac_cv_prog_LIPO+set}" = set; then 6029 $as_echo_n "(cached) " >&6 6030else 6031 if test -n "$LIPO"; then 6032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6033else 6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6035for as_dir in $PATH 6036do 6037 IFS=$as_save_IFS 6038 test -z "$as_dir" && as_dir=. 6039 for ac_exec_ext in '' $ac_executable_extensions; do 6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6041 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6043 break 2 6044 fi 6045done 6046done 6047IFS=$as_save_IFS 6048 6049fi 6050fi 6051LIPO=$ac_cv_prog_LIPO 6052if test -n "$LIPO"; then 6053 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6054$as_echo "$LIPO" >&6; } 6055else 6056 { $as_echo "$as_me:$LINENO: result: no" >&5 6057$as_echo "no" >&6; } 6058fi 6059 6060 6061fi 6062if test -z "$ac_cv_prog_LIPO"; then 6063 ac_ct_LIPO=$LIPO 6064 # Extract the first word of "lipo", so it can be a program name with args. 6065set dummy lipo; ac_word=$2 6066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6067$as_echo_n "checking for $ac_word... " >&6; } 6068if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6069 $as_echo_n "(cached) " >&6 6070else 6071 if test -n "$ac_ct_LIPO"; then 6072 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6073else 6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075for as_dir in $PATH 6076do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6081 ac_cv_prog_ac_ct_LIPO="lipo" 6082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085done 6086done 6087IFS=$as_save_IFS 6088 6089fi 6090fi 6091ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6092if test -n "$ac_ct_LIPO"; then 6093 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6094$as_echo "$ac_ct_LIPO" >&6; } 6095else 6096 { $as_echo "$as_me:$LINENO: result: no" >&5 6097$as_echo "no" >&6; } 6098fi 6099 6100 if test "x$ac_ct_LIPO" = x; then 6101 LIPO=":" 6102 else 6103 case $cross_compiling:$ac_tool_warned in 6104yes:) 6105{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6107ac_tool_warned=yes ;; 6108esac 6109 LIPO=$ac_ct_LIPO 6110 fi 6111else 6112 LIPO="$ac_cv_prog_LIPO" 6113fi 6114 6115 if test -n "$ac_tool_prefix"; then 6116 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6117set dummy ${ac_tool_prefix}otool; ac_word=$2 6118{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if test "${ac_cv_prog_OTOOL+set}" = set; then 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$OTOOL"; then 6124 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6133 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143OTOOL=$ac_cv_prog_OTOOL 6144if test -n "$OTOOL"; then 6145 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6146$as_echo "$OTOOL" >&6; } 6147else 6148 { $as_echo "$as_me:$LINENO: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153fi 6154if test -z "$ac_cv_prog_OTOOL"; then 6155 ac_ct_OTOOL=$OTOOL 6156 # Extract the first word of "otool", so it can be a program name with args. 6157set dummy otool; ac_word=$2 6158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6159$as_echo_n "checking for $ac_word... " >&6; } 6160if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6161 $as_echo_n "(cached) " >&6 6162else 6163 if test -n "$ac_ct_OTOOL"; then 6164 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6165else 6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6167for as_dir in $PATH 6168do 6169 IFS=$as_save_IFS 6170 test -z "$as_dir" && as_dir=. 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6173 ac_cv_prog_ac_ct_OTOOL="otool" 6174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6175 break 2 6176 fi 6177done 6178done 6179IFS=$as_save_IFS 6180 6181fi 6182fi 6183ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6184if test -n "$ac_ct_OTOOL"; then 6185 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6186$as_echo "$ac_ct_OTOOL" >&6; } 6187else 6188 { $as_echo "$as_me:$LINENO: result: no" >&5 6189$as_echo "no" >&6; } 6190fi 6191 6192 if test "x$ac_ct_OTOOL" = x; then 6193 OTOOL=":" 6194 else 6195 case $cross_compiling:$ac_tool_warned in 6196yes:) 6197{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6199ac_tool_warned=yes ;; 6200esac 6201 OTOOL=$ac_ct_OTOOL 6202 fi 6203else 6204 OTOOL="$ac_cv_prog_OTOOL" 6205fi 6206 6207 if test -n "$ac_tool_prefix"; then 6208 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6209set dummy ${ac_tool_prefix}otool64; ac_word=$2 6210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6211$as_echo_n "checking for $ac_word... " >&6; } 6212if test "${ac_cv_prog_OTOOL64+set}" = set; then 6213 $as_echo_n "(cached) " >&6 6214else 6215 if test -n "$OTOOL64"; then 6216 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6217else 6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219for as_dir in $PATH 6220do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6225 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229done 6230done 6231IFS=$as_save_IFS 6232 6233fi 6234fi 6235OTOOL64=$ac_cv_prog_OTOOL64 6236if test -n "$OTOOL64"; then 6237 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6238$as_echo "$OTOOL64" >&6; } 6239else 6240 { $as_echo "$as_me:$LINENO: result: no" >&5 6241$as_echo "no" >&6; } 6242fi 6243 6244 6245fi 6246if test -z "$ac_cv_prog_OTOOL64"; then 6247 ac_ct_OTOOL64=$OTOOL64 6248 # Extract the first word of "otool64", so it can be a program name with args. 6249set dummy otool64; ac_word=$2 6250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6251$as_echo_n "checking for $ac_word... " >&6; } 6252if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6253 $as_echo_n "(cached) " >&6 6254else 6255 if test -n "$ac_ct_OTOOL64"; then 6256 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6257else 6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259for as_dir in $PATH 6260do 6261 IFS=$as_save_IFS 6262 test -z "$as_dir" && as_dir=. 6263 for ac_exec_ext in '' $ac_executable_extensions; do 6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6265 ac_cv_prog_ac_ct_OTOOL64="otool64" 6266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6267 break 2 6268 fi 6269done 6270done 6271IFS=$as_save_IFS 6272 6273fi 6274fi 6275ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6276if test -n "$ac_ct_OTOOL64"; then 6277 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6278$as_echo "$ac_ct_OTOOL64" >&6; } 6279else 6280 { $as_echo "$as_me:$LINENO: result: no" >&5 6281$as_echo "no" >&6; } 6282fi 6283 6284 if test "x$ac_ct_OTOOL64" = x; then 6285 OTOOL64=":" 6286 else 6287 case $cross_compiling:$ac_tool_warned in 6288yes:) 6289{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6291ac_tool_warned=yes ;; 6292esac 6293 OTOOL64=$ac_ct_OTOOL64 6294 fi 6295else 6296 OTOOL64="$ac_cv_prog_OTOOL64" 6297fi 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6326$as_echo_n "checking for -single_module linker flag... " >&6; } 6327if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6328 $as_echo_n "(cached) " >&6 6329else 6330 lt_cv_apple_cc_single_mod=no 6331 if test -z "${LT_MULTI_MODULE}"; then 6332 # By default we will add the -single_module flag. You can override 6333 # by either setting the environment variable LT_MULTI_MODULE 6334 # non-empty at configure time, or by adding -multi_module to the 6335 # link flags. 6336 rm -rf libconftest.dylib* 6337 echo "int foo(void){return 1;}" > conftest.c 6338 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6339-dynamiclib -Wl,-single_module conftest.c" >&5 6340 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6341 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6342 _lt_result=$? 6343 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6344 lt_cv_apple_cc_single_mod=yes 6345 else 6346 cat conftest.err >&5 6347 fi 6348 rm -rf libconftest.dylib* 6349 rm -f conftest.* 6350 fi 6351fi 6352{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6353$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6354 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6355$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6356if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6357 $as_echo_n "(cached) " >&6 6358else 6359 lt_cv_ld_exported_symbols_list=no 6360 save_LDFLAGS=$LDFLAGS 6361 echo "_main" > conftest.sym 6362 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6363 cat >conftest.$ac_ext <<_ACEOF 6364/* confdefs.h. */ 6365_ACEOF 6366cat confdefs.h >>conftest.$ac_ext 6367cat >>conftest.$ac_ext <<_ACEOF 6368/* end confdefs.h. */ 6369 6370int 6371main () 6372{ 6373 6374 ; 6375 return 0; 6376} 6377_ACEOF 6378rm -f conftest.$ac_objext conftest$ac_exeext 6379if { (ac_try="$ac_link" 6380case "(($ac_try" in 6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6382 *) ac_try_echo=$ac_try;; 6383esac 6384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6385$as_echo "$ac_try_echo") >&5 6386 (eval "$ac_link") 2>conftest.er1 6387 ac_status=$? 6388 grep -v '^ *+' conftest.er1 >conftest.err 6389 rm -f conftest.er1 6390 cat conftest.err >&5 6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6392 (exit $ac_status); } && { 6393 test -z "$ac_c_werror_flag" || 6394 test ! -s conftest.err 6395 } && test -s conftest$ac_exeext && { 6396 test "$cross_compiling" = yes || 6397 $as_test_x conftest$ac_exeext 6398 }; then 6399 lt_cv_ld_exported_symbols_list=yes 6400else 6401 $as_echo "$as_me: failed program was:" >&5 6402sed 's/^/| /' conftest.$ac_ext >&5 6403 6404 lt_cv_ld_exported_symbols_list=no 6405fi 6406 6407rm -rf conftest.dSYM 6408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6409 conftest$ac_exeext conftest.$ac_ext 6410 LDFLAGS="$save_LDFLAGS" 6411 6412fi 6413{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6414$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6415 case $host_os in 6416 rhapsody* | darwin1.[012]) 6417 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6418 darwin1.*) 6419 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6420 darwin*) # darwin 5.x on 6421 # if running on 10.5 or later, the deployment target defaults 6422 # to the OS version, if on x86, and 10.4, the deployment 6423 # target defaults to 10.4. Don't you love it? 6424 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6425 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6426 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6427 10.[012]*) 6428 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6429 10.*) 6430 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6431 esac 6432 ;; 6433 esac 6434 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6435 _lt_dar_single_mod='$single_module' 6436 fi 6437 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6438 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6439 else 6440 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6441 fi 6442 if test "$DSYMUTIL" != ":"; then 6443 _lt_dsymutil='~$DSYMUTIL $lib || :' 6444 else 6445 _lt_dsymutil= 6446 fi 6447 ;; 6448 esac 6449 6450ac_ext=c 6451ac_cpp='$CPP $CPPFLAGS' 6452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6454ac_compiler_gnu=$ac_cv_c_compiler_gnu 6455{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6456$as_echo_n "checking how to run the C preprocessor... " >&6; } 6457# On Suns, sometimes $CPP names a directory. 6458if test -n "$CPP" && test -d "$CPP"; then 6459 CPP= 6460fi 6461if test -z "$CPP"; then 6462 if test "${ac_cv_prog_CPP+set}" = set; then 6463 $as_echo_n "(cached) " >&6 6464else 6465 # Double quotes because CPP needs to be expanded 6466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6467 do 6468 ac_preproc_ok=false 6469for ac_c_preproc_warn_flag in '' yes 6470do 6471 # Use a header file that comes with gcc, so configuring glibc 6472 # with a fresh cross-compiler works. 6473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6474 # <limits.h> exists even on freestanding compilers. 6475 # On the NeXT, cc -E runs the code through the compiler's parser, 6476 # not just through cpp. "Syntax error" is here to catch this case. 6477 cat >conftest.$ac_ext <<_ACEOF 6478/* confdefs.h. */ 6479_ACEOF 6480cat confdefs.h >>conftest.$ac_ext 6481cat >>conftest.$ac_ext <<_ACEOF 6482/* end confdefs.h. */ 6483#ifdef __STDC__ 6484# include <limits.h> 6485#else 6486# include <assert.h> 6487#endif 6488 Syntax error 6489_ACEOF 6490if { (ac_try="$ac_cpp conftest.$ac_ext" 6491case "(($ac_try" in 6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6493 *) ac_try_echo=$ac_try;; 6494esac 6495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6496$as_echo "$ac_try_echo") >&5 6497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6498 ac_status=$? 6499 grep -v '^ *+' conftest.er1 >conftest.err 6500 rm -f conftest.er1 6501 cat conftest.err >&5 6502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); } >/dev/null && { 6504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6505 test ! -s conftest.err 6506 }; then 6507 : 6508else 6509 $as_echo "$as_me: failed program was:" >&5 6510sed 's/^/| /' conftest.$ac_ext >&5 6511 6512 # Broken: fails on valid input. 6513continue 6514fi 6515 6516rm -f conftest.err conftest.$ac_ext 6517 6518 # OK, works on sane cases. Now check whether nonexistent headers 6519 # can be detected and how. 6520 cat >conftest.$ac_ext <<_ACEOF 6521/* confdefs.h. */ 6522_ACEOF 6523cat confdefs.h >>conftest.$ac_ext 6524cat >>conftest.$ac_ext <<_ACEOF 6525/* end confdefs.h. */ 6526#include <ac_nonexistent.h> 6527_ACEOF 6528if { (ac_try="$ac_cpp conftest.$ac_ext" 6529case "(($ac_try" in 6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6531 *) ac_try_echo=$ac_try;; 6532esac 6533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6534$as_echo "$ac_try_echo") >&5 6535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6536 ac_status=$? 6537 grep -v '^ *+' conftest.er1 >conftest.err 6538 rm -f conftest.er1 6539 cat conftest.err >&5 6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6541 (exit $ac_status); } >/dev/null && { 6542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6543 test ! -s conftest.err 6544 }; then 6545 # Broken: success on invalid input. 6546continue 6547else 6548 $as_echo "$as_me: failed program was:" >&5 6549sed 's/^/| /' conftest.$ac_ext >&5 6550 6551 # Passes both tests. 6552ac_preproc_ok=: 6553break 6554fi 6555 6556rm -f conftest.err conftest.$ac_ext 6557 6558done 6559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6560rm -f conftest.err conftest.$ac_ext 6561if $ac_preproc_ok; then 6562 break 6563fi 6564 6565 done 6566 ac_cv_prog_CPP=$CPP 6567 6568fi 6569 CPP=$ac_cv_prog_CPP 6570else 6571 ac_cv_prog_CPP=$CPP 6572fi 6573{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6574$as_echo "$CPP" >&6; } 6575ac_preproc_ok=false 6576for ac_c_preproc_warn_flag in '' yes 6577do 6578 # Use a header file that comes with gcc, so configuring glibc 6579 # with a fresh cross-compiler works. 6580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6581 # <limits.h> exists even on freestanding compilers. 6582 # On the NeXT, cc -E runs the code through the compiler's parser, 6583 # not just through cpp. "Syntax error" is here to catch this case. 6584 cat >conftest.$ac_ext <<_ACEOF 6585/* confdefs.h. */ 6586_ACEOF 6587cat confdefs.h >>conftest.$ac_ext 6588cat >>conftest.$ac_ext <<_ACEOF 6589/* end confdefs.h. */ 6590#ifdef __STDC__ 6591# include <limits.h> 6592#else 6593# include <assert.h> 6594#endif 6595 Syntax error 6596_ACEOF 6597if { (ac_try="$ac_cpp conftest.$ac_ext" 6598case "(($ac_try" in 6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6600 *) ac_try_echo=$ac_try;; 6601esac 6602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6603$as_echo "$ac_try_echo") >&5 6604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6605 ac_status=$? 6606 grep -v '^ *+' conftest.er1 >conftest.err 6607 rm -f conftest.er1 6608 cat conftest.err >&5 6609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610 (exit $ac_status); } >/dev/null && { 6611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6612 test ! -s conftest.err 6613 }; then 6614 : 6615else 6616 $as_echo "$as_me: failed program was:" >&5 6617sed 's/^/| /' conftest.$ac_ext >&5 6618 6619 # Broken: fails on valid input. 6620continue 6621fi 6622 6623rm -f conftest.err conftest.$ac_ext 6624 6625 # OK, works on sane cases. Now check whether nonexistent headers 6626 # can be detected and how. 6627 cat >conftest.$ac_ext <<_ACEOF 6628/* confdefs.h. */ 6629_ACEOF 6630cat confdefs.h >>conftest.$ac_ext 6631cat >>conftest.$ac_ext <<_ACEOF 6632/* end confdefs.h. */ 6633#include <ac_nonexistent.h> 6634_ACEOF 6635if { (ac_try="$ac_cpp conftest.$ac_ext" 6636case "(($ac_try" in 6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6638 *) ac_try_echo=$ac_try;; 6639esac 6640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6641$as_echo "$ac_try_echo") >&5 6642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6643 ac_status=$? 6644 grep -v '^ *+' conftest.er1 >conftest.err 6645 rm -f conftest.er1 6646 cat conftest.err >&5 6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6648 (exit $ac_status); } >/dev/null && { 6649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6650 test ! -s conftest.err 6651 }; then 6652 # Broken: success on invalid input. 6653continue 6654else 6655 $as_echo "$as_me: failed program was:" >&5 6656sed 's/^/| /' conftest.$ac_ext >&5 6657 6658 # Passes both tests. 6659ac_preproc_ok=: 6660break 6661fi 6662 6663rm -f conftest.err conftest.$ac_ext 6664 6665done 6666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6667rm -f conftest.err conftest.$ac_ext 6668if $ac_preproc_ok; then 6669 : 6670else 6671 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6673{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6674See \`config.log' for more details." >&5 6675$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6676See \`config.log' for more details." >&2;} 6677 { (exit 1); exit 1; }; }; } 6678fi 6679 6680ac_ext=c 6681ac_cpp='$CPP $CPPFLAGS' 6682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6684ac_compiler_gnu=$ac_cv_c_compiler_gnu 6685 6686 6687{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6688$as_echo_n "checking for ANSI C header files... " >&6; } 6689if test "${ac_cv_header_stdc+set}" = set; then 6690 $as_echo_n "(cached) " >&6 6691else 6692 cat >conftest.$ac_ext <<_ACEOF 6693/* confdefs.h. */ 6694_ACEOF 6695cat confdefs.h >>conftest.$ac_ext 6696cat >>conftest.$ac_ext <<_ACEOF 6697/* end confdefs.h. */ 6698#include <stdlib.h> 6699#include <stdarg.h> 6700#include <string.h> 6701#include <float.h> 6702 6703int 6704main () 6705{ 6706 6707 ; 6708 return 0; 6709} 6710_ACEOF 6711rm -f conftest.$ac_objext 6712if { (ac_try="$ac_compile" 6713case "(($ac_try" in 6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6715 *) ac_try_echo=$ac_try;; 6716esac 6717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6718$as_echo "$ac_try_echo") >&5 6719 (eval "$ac_compile") 2>conftest.er1 6720 ac_status=$? 6721 grep -v '^ *+' conftest.er1 >conftest.err 6722 rm -f conftest.er1 6723 cat conftest.err >&5 6724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6725 (exit $ac_status); } && { 6726 test -z "$ac_c_werror_flag" || 6727 test ! -s conftest.err 6728 } && test -s conftest.$ac_objext; then 6729 ac_cv_header_stdc=yes 6730else 6731 $as_echo "$as_me: failed program was:" >&5 6732sed 's/^/| /' conftest.$ac_ext >&5 6733 6734 ac_cv_header_stdc=no 6735fi 6736 6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6738 6739if test $ac_cv_header_stdc = yes; then 6740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6741 cat >conftest.$ac_ext <<_ACEOF 6742/* confdefs.h. */ 6743_ACEOF 6744cat confdefs.h >>conftest.$ac_ext 6745cat >>conftest.$ac_ext <<_ACEOF 6746/* end confdefs.h. */ 6747#include <string.h> 6748 6749_ACEOF 6750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6751 $EGREP "memchr" >/dev/null 2>&1; then 6752 : 6753else 6754 ac_cv_header_stdc=no 6755fi 6756rm -f conftest* 6757 6758fi 6759 6760if test $ac_cv_header_stdc = yes; then 6761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6762 cat >conftest.$ac_ext <<_ACEOF 6763/* confdefs.h. */ 6764_ACEOF 6765cat confdefs.h >>conftest.$ac_ext 6766cat >>conftest.$ac_ext <<_ACEOF 6767/* end confdefs.h. */ 6768#include <stdlib.h> 6769 6770_ACEOF 6771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6772 $EGREP "free" >/dev/null 2>&1; then 6773 : 6774else 6775 ac_cv_header_stdc=no 6776fi 6777rm -f conftest* 6778 6779fi 6780 6781if test $ac_cv_header_stdc = yes; then 6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6783 if test "$cross_compiling" = yes; then 6784 : 6785else 6786 cat >conftest.$ac_ext <<_ACEOF 6787/* confdefs.h. */ 6788_ACEOF 6789cat confdefs.h >>conftest.$ac_ext 6790cat >>conftest.$ac_ext <<_ACEOF 6791/* end confdefs.h. */ 6792#include <ctype.h> 6793#include <stdlib.h> 6794#if ((' ' & 0x0FF) == 0x020) 6795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6797#else 6798# define ISLOWER(c) \ 6799 (('a' <= (c) && (c) <= 'i') \ 6800 || ('j' <= (c) && (c) <= 'r') \ 6801 || ('s' <= (c) && (c) <= 'z')) 6802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6803#endif 6804 6805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6806int 6807main () 6808{ 6809 int i; 6810 for (i = 0; i < 256; i++) 6811 if (XOR (islower (i), ISLOWER (i)) 6812 || toupper (i) != TOUPPER (i)) 6813 return 2; 6814 return 0; 6815} 6816_ACEOF 6817rm -f conftest$ac_exeext 6818if { (ac_try="$ac_link" 6819case "(($ac_try" in 6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6821 *) ac_try_echo=$ac_try;; 6822esac 6823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6824$as_echo "$ac_try_echo") >&5 6825 (eval "$ac_link") 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6829 { (case "(($ac_try" in 6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6831 *) ac_try_echo=$ac_try;; 6832esac 6833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6834$as_echo "$ac_try_echo") >&5 6835 (eval "$ac_try") 2>&5 6836 ac_status=$? 6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6838 (exit $ac_status); }; }; then 6839 : 6840else 6841 $as_echo "$as_me: program exited with status $ac_status" >&5 6842$as_echo "$as_me: failed program was:" >&5 6843sed 's/^/| /' conftest.$ac_ext >&5 6844 6845( exit $ac_status ) 6846ac_cv_header_stdc=no 6847fi 6848rm -rf conftest.dSYM 6849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6850fi 6851 6852 6853fi 6854fi 6855{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6856$as_echo "$ac_cv_header_stdc" >&6; } 6857if test $ac_cv_header_stdc = yes; then 6858 6859cat >>confdefs.h <<\_ACEOF 6860#define STDC_HEADERS 1 6861_ACEOF 6862 6863fi 6864 6865# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6876 inttypes.h stdint.h unistd.h 6877do 6878as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6879{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6880$as_echo_n "checking for $ac_header... " >&6; } 6881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6882 $as_echo_n "(cached) " >&6 6883else 6884 cat >conftest.$ac_ext <<_ACEOF 6885/* confdefs.h. */ 6886_ACEOF 6887cat confdefs.h >>conftest.$ac_ext 6888cat >>conftest.$ac_ext <<_ACEOF 6889/* end confdefs.h. */ 6890$ac_includes_default 6891 6892#include <$ac_header> 6893_ACEOF 6894rm -f conftest.$ac_objext 6895if { (ac_try="$ac_compile" 6896case "(($ac_try" in 6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6898 *) ac_try_echo=$ac_try;; 6899esac 6900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6901$as_echo "$ac_try_echo") >&5 6902 (eval "$ac_compile") 2>conftest.er1 6903 ac_status=$? 6904 grep -v '^ *+' conftest.er1 >conftest.err 6905 rm -f conftest.er1 6906 cat conftest.err >&5 6907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6908 (exit $ac_status); } && { 6909 test -z "$ac_c_werror_flag" || 6910 test ! -s conftest.err 6911 } && test -s conftest.$ac_objext; then 6912 eval "$as_ac_Header=yes" 6913else 6914 $as_echo "$as_me: failed program was:" >&5 6915sed 's/^/| /' conftest.$ac_ext >&5 6916 6917 eval "$as_ac_Header=no" 6918fi 6919 6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6921fi 6922ac_res=`eval 'as_val=${'$as_ac_Header'} 6923 $as_echo "$as_val"'` 6924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6925$as_echo "$ac_res" >&6; } 6926as_val=`eval 'as_val=${'$as_ac_Header'} 6927 $as_echo "$as_val"'` 6928 if test "x$as_val" = x""yes; then 6929 cat >>confdefs.h <<_ACEOF 6930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6931_ACEOF 6932 6933fi 6934 6935done 6936 6937 6938 6939for ac_header in dlfcn.h 6940do 6941as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6942{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6943$as_echo_n "checking for $ac_header... " >&6; } 6944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6945 $as_echo_n "(cached) " >&6 6946else 6947 cat >conftest.$ac_ext <<_ACEOF 6948/* confdefs.h. */ 6949_ACEOF 6950cat confdefs.h >>conftest.$ac_ext 6951cat >>conftest.$ac_ext <<_ACEOF 6952/* end confdefs.h. */ 6953$ac_includes_default 6954 6955#include <$ac_header> 6956_ACEOF 6957rm -f conftest.$ac_objext 6958if { (ac_try="$ac_compile" 6959case "(($ac_try" in 6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6961 *) ac_try_echo=$ac_try;; 6962esac 6963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6964$as_echo "$ac_try_echo") >&5 6965 (eval "$ac_compile") 2>conftest.er1 6966 ac_status=$? 6967 grep -v '^ *+' conftest.er1 >conftest.err 6968 rm -f conftest.er1 6969 cat conftest.err >&5 6970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6971 (exit $ac_status); } && { 6972 test -z "$ac_c_werror_flag" || 6973 test ! -s conftest.err 6974 } && test -s conftest.$ac_objext; then 6975 eval "$as_ac_Header=yes" 6976else 6977 $as_echo "$as_me: failed program was:" >&5 6978sed 's/^/| /' conftest.$ac_ext >&5 6979 6980 eval "$as_ac_Header=no" 6981fi 6982 6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6984fi 6985ac_res=`eval 'as_val=${'$as_ac_Header'} 6986 $as_echo "$as_val"'` 6987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6988$as_echo "$ac_res" >&6; } 6989as_val=`eval 'as_val=${'$as_ac_Header'} 6990 $as_echo "$as_val"'` 6991 if test "x$as_val" = x""yes; then 6992 cat >>confdefs.h <<_ACEOF 6993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6994_ACEOF 6995 6996fi 6997 6998done 6999 7000 7001 7002# Set options 7003 7004 7005 7006 enable_dlopen=no 7007 7008 7009 enable_win32_dll=no 7010 7011 7012 # Check whether --enable-shared was given. 7013if test "${enable_shared+set}" = set; then 7014 enableval=$enable_shared; p=${PACKAGE-default} 7015 case $enableval in 7016 yes) enable_shared=yes ;; 7017 no) enable_shared=no ;; 7018 *) 7019 enable_shared=no 7020 # Look at the argument we got. We use all the common list separators. 7021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7022 for pkg in $enableval; do 7023 IFS="$lt_save_ifs" 7024 if test "X$pkg" = "X$p"; then 7025 enable_shared=yes 7026 fi 7027 done 7028 IFS="$lt_save_ifs" 7029 ;; 7030 esac 7031else 7032 enable_shared=yes 7033fi 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045# Check whether --with-pic was given. 7046if test "${with_pic+set}" = set; then 7047 withval=$with_pic; pic_mode="$withval" 7048else 7049 pic_mode=default 7050fi 7051 7052 7053test -z "$pic_mode" && pic_mode=default 7054 7055 7056 7057 7058 7059 7060 7061 # Check whether --enable-fast-install was given. 7062if test "${enable_fast_install+set}" = set; then 7063 enableval=$enable_fast_install; p=${PACKAGE-default} 7064 case $enableval in 7065 yes) enable_fast_install=yes ;; 7066 no) enable_fast_install=no ;; 7067 *) 7068 enable_fast_install=no 7069 # Look at the argument we got. We use all the common list separators. 7070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7071 for pkg in $enableval; do 7072 IFS="$lt_save_ifs" 7073 if test "X$pkg" = "X$p"; then 7074 enable_fast_install=yes 7075 fi 7076 done 7077 IFS="$lt_save_ifs" 7078 ;; 7079 esac 7080else 7081 enable_fast_install=yes 7082fi 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094# This can be used to rebuild libtool when needed 7095LIBTOOL_DEPS="$ltmain" 7096 7097# Always use our own libtool. 7098LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124test -z "$LN_S" && LN_S="ln -s" 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139if test -n "${ZSH_VERSION+set}" ; then 7140 setopt NO_GLOB_SUBST 7141fi 7142 7143{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7144$as_echo_n "checking for objdir... " >&6; } 7145if test "${lt_cv_objdir+set}" = set; then 7146 $as_echo_n "(cached) " >&6 7147else 7148 rm -f .libs 2>/dev/null 7149mkdir .libs 2>/dev/null 7150if test -d .libs; then 7151 lt_cv_objdir=.libs 7152else 7153 # MS-DOS does not allow filenames that begin with a dot. 7154 lt_cv_objdir=_libs 7155fi 7156rmdir .libs 2>/dev/null 7157fi 7158{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7159$as_echo "$lt_cv_objdir" >&6; } 7160objdir=$lt_cv_objdir 7161 7162 7163 7164 7165 7166cat >>confdefs.h <<_ACEOF 7167#define LT_OBJDIR "$lt_cv_objdir/" 7168_ACEOF 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186case $host_os in 7187aix3*) 7188 # AIX sometimes has problems with the GCC collect2 program. For some 7189 # reason, if we set the COLLECT_NAMES environment variable, the problems 7190 # vanish in a puff of smoke. 7191 if test "X${COLLECT_NAMES+set}" != Xset; then 7192 COLLECT_NAMES= 7193 export COLLECT_NAMES 7194 fi 7195 ;; 7196esac 7197 7198# Sed substitution that helps us do robust quoting. It backslashifies 7199# metacharacters that are still active within double-quoted strings. 7200sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7201 7202# Same as above, but do not quote variable references. 7203double_quote_subst='s/\(["`\\]\)/\\\1/g' 7204 7205# Sed substitution to delay expansion of an escaped shell variable in a 7206# double_quote_subst'ed string. 7207delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7208 7209# Sed substitution to delay expansion of an escaped single quote. 7210delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7211 7212# Sed substitution to avoid accidental globbing in evaled expressions 7213no_glob_subst='s/\*/\\\*/g' 7214 7215# Global variables: 7216ofile=libtool 7217can_build_shared=yes 7218 7219# All known linkers require a `.a' archive for static linking (except MSVC, 7220# which needs '.lib'). 7221libext=a 7222 7223with_gnu_ld="$lt_cv_prog_gnu_ld" 7224 7225old_CC="$CC" 7226old_CFLAGS="$CFLAGS" 7227 7228# Set sane defaults for various variables 7229test -z "$CC" && CC=cc 7230test -z "$LTCC" && LTCC=$CC 7231test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7232test -z "$LD" && LD=ld 7233test -z "$ac_objext" && ac_objext=o 7234 7235for cc_temp in $compiler""; do 7236 case $cc_temp in 7237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7239 \-*) ;; 7240 *) break;; 7241 esac 7242done 7243cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7244 7245 7246# Only perform the check for file, if the check method requires it 7247test -z "$MAGIC_CMD" && MAGIC_CMD=file 7248case $deplibs_check_method in 7249file_magic*) 7250 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7251 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7252$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7253if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7254 $as_echo_n "(cached) " >&6 7255else 7256 case $MAGIC_CMD in 7257[\\/*] | ?:[\\/]*) 7258 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7259 ;; 7260*) 7261 lt_save_MAGIC_CMD="$MAGIC_CMD" 7262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7264 for ac_dir in $ac_dummy; do 7265 IFS="$lt_save_ifs" 7266 test -z "$ac_dir" && ac_dir=. 7267 if test -f $ac_dir/${ac_tool_prefix}file; then 7268 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7269 if test -n "$file_magic_test_file"; then 7270 case $deplibs_check_method in 7271 "file_magic "*) 7272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7275 $EGREP "$file_magic_regex" > /dev/null; then 7276 : 7277 else 7278 cat <<_LT_EOF 1>&2 7279 7280*** Warning: the command libtool uses to detect shared libraries, 7281*** $file_magic_cmd, produces output that libtool cannot recognize. 7282*** The result is that libtool may fail to recognize shared libraries 7283*** as such. This will affect the creation of libtool libraries that 7284*** depend on shared libraries, but programs linked with such libtool 7285*** libraries will work regardless of this problem. Nevertheless, you 7286*** may want to report the problem to your system manager and/or to 7287*** bug-libtool@gnu.org 7288 7289_LT_EOF 7290 fi ;; 7291 esac 7292 fi 7293 break 7294 fi 7295 done 7296 IFS="$lt_save_ifs" 7297 MAGIC_CMD="$lt_save_MAGIC_CMD" 7298 ;; 7299esac 7300fi 7301 7302MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7303if test -n "$MAGIC_CMD"; then 7304 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7305$as_echo "$MAGIC_CMD" >&6; } 7306else 7307 { $as_echo "$as_me:$LINENO: result: no" >&5 7308$as_echo "no" >&6; } 7309fi 7310 7311 7312 7313 7314 7315if test -z "$lt_cv_path_MAGIC_CMD"; then 7316 if test -n "$ac_tool_prefix"; then 7317 { $as_echo "$as_me:$LINENO: checking for file" >&5 7318$as_echo_n "checking for file... " >&6; } 7319if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7320 $as_echo_n "(cached) " >&6 7321else 7322 case $MAGIC_CMD in 7323[\\/*] | ?:[\\/]*) 7324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7325 ;; 7326*) 7327 lt_save_MAGIC_CMD="$MAGIC_CMD" 7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7329 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7330 for ac_dir in $ac_dummy; do 7331 IFS="$lt_save_ifs" 7332 test -z "$ac_dir" && ac_dir=. 7333 if test -f $ac_dir/file; then 7334 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7335 if test -n "$file_magic_test_file"; then 7336 case $deplibs_check_method in 7337 "file_magic "*) 7338 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7341 $EGREP "$file_magic_regex" > /dev/null; then 7342 : 7343 else 7344 cat <<_LT_EOF 1>&2 7345 7346*** Warning: the command libtool uses to detect shared libraries, 7347*** $file_magic_cmd, produces output that libtool cannot recognize. 7348*** The result is that libtool may fail to recognize shared libraries 7349*** as such. This will affect the creation of libtool libraries that 7350*** depend on shared libraries, but programs linked with such libtool 7351*** libraries will work regardless of this problem. Nevertheless, you 7352*** may want to report the problem to your system manager and/or to 7353*** bug-libtool@gnu.org 7354 7355_LT_EOF 7356 fi ;; 7357 esac 7358 fi 7359 break 7360 fi 7361 done 7362 IFS="$lt_save_ifs" 7363 MAGIC_CMD="$lt_save_MAGIC_CMD" 7364 ;; 7365esac 7366fi 7367 7368MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7369if test -n "$MAGIC_CMD"; then 7370 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7371$as_echo "$MAGIC_CMD" >&6; } 7372else 7373 { $as_echo "$as_me:$LINENO: result: no" >&5 7374$as_echo "no" >&6; } 7375fi 7376 7377 7378 else 7379 MAGIC_CMD=: 7380 fi 7381fi 7382 7383 fi 7384 ;; 7385esac 7386 7387# Use C for the default configuration in the libtool script 7388 7389lt_save_CC="$CC" 7390ac_ext=c 7391ac_cpp='$CPP $CPPFLAGS' 7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7394ac_compiler_gnu=$ac_cv_c_compiler_gnu 7395 7396 7397# Source file extension for C test sources. 7398ac_ext=c 7399 7400# Object file extension for compiled C test sources. 7401objext=o 7402objext=$objext 7403 7404# Code to be used in simple compile tests 7405lt_simple_compile_test_code="int some_variable = 0;" 7406 7407# Code to be used in simple link tests 7408lt_simple_link_test_code='int main(){return(0);}' 7409 7410 7411 7412 7413 7414 7415 7416# If no C compiler was specified, use CC. 7417LTCC=${LTCC-"$CC"} 7418 7419# If no C compiler flags were specified, use CFLAGS. 7420LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7421 7422# Allow CC to be a program name with arguments. 7423compiler=$CC 7424 7425# Save the default compiler, since it gets overwritten when the other 7426# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7427compiler_DEFAULT=$CC 7428 7429# save warnings/boilerplate of simple test code 7430ac_outfile=conftest.$ac_objext 7431echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7432eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7433_lt_compiler_boilerplate=`cat conftest.err` 7434$RM conftest* 7435 7436ac_outfile=conftest.$ac_objext 7437echo "$lt_simple_link_test_code" >conftest.$ac_ext 7438eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7439_lt_linker_boilerplate=`cat conftest.err` 7440$RM -r conftest* 7441 7442 7443if test -n "$compiler"; then 7444 7445lt_prog_compiler_no_builtin_flag= 7446 7447if test "$GCC" = yes; then 7448 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7449 7450 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7451$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7453 $as_echo_n "(cached) " >&6 7454else 7455 lt_cv_prog_compiler_rtti_exceptions=no 7456 ac_outfile=conftest.$ac_objext 7457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7458 lt_compiler_flag="-fno-rtti -fno-exceptions" 7459 # Insert the option either (1) after the last *FLAGS variable, or 7460 # (2) before a word containing "conftest.", or (3) at the end. 7461 # Note that $ac_compile itself does not contain backslashes and begins 7462 # with a dollar sign (not a hyphen), so the echo should work correctly. 7463 # The option is referenced via a variable to avoid confusing sed. 7464 lt_compile=`echo "$ac_compile" | $SED \ 7465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7467 -e 's:$: $lt_compiler_flag:'` 7468 (eval echo "\"\$as_me:7468: $lt_compile\"" >&5) 7469 (eval "$lt_compile" 2>conftest.err) 7470 ac_status=$? 7471 cat conftest.err >&5 7472 echo "$as_me:7472: \$? = $ac_status" >&5 7473 if (exit $ac_status) && test -s "$ac_outfile"; then 7474 # The compiler can only warn and ignore the option if not recognized 7475 # So say no if there are warnings other than the usual output. 7476 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7479 lt_cv_prog_compiler_rtti_exceptions=yes 7480 fi 7481 fi 7482 $RM conftest* 7483 7484fi 7485{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7486$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7487 7488if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7490else 7491 : 7492fi 7493 7494fi 7495 7496 7497 7498 7499 7500 7501 lt_prog_compiler_wl= 7502lt_prog_compiler_pic= 7503lt_prog_compiler_static= 7504 7505{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7506$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7507 7508 if test "$GCC" = yes; then 7509 lt_prog_compiler_wl='-Wl,' 7510 lt_prog_compiler_static='-static' 7511 7512 case $host_os in 7513 aix*) 7514 # All AIX code is PIC. 7515 if test "$host_cpu" = ia64; then 7516 # AIX 5 now supports IA64 processor 7517 lt_prog_compiler_static='-Bstatic' 7518 fi 7519 ;; 7520 7521 amigaos*) 7522 case $host_cpu in 7523 powerpc) 7524 # see comment about AmigaOS4 .so support 7525 lt_prog_compiler_pic='-fPIC' 7526 ;; 7527 m68k) 7528 # FIXME: we need at least 68020 code to build shared libraries, but 7529 # adding the `-m68020' flag to GCC prevents building anything better, 7530 # like `-m68040'. 7531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7532 ;; 7533 esac 7534 ;; 7535 7536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7537 # PIC is the default for these OSes. 7538 ;; 7539 7540 mingw* | cygwin* | pw32* | os2* | cegcc*) 7541 # This hack is so that the source file can tell whether it is being 7542 # built for inclusion in a dll (and should export symbols for example). 7543 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7544 # (--disable-auto-import) libraries 7545 lt_prog_compiler_pic='-DDLL_EXPORT' 7546 ;; 7547 7548 darwin* | rhapsody*) 7549 # PIC is the default on this platform 7550 # Common symbols not allowed in MH_DYLIB files 7551 lt_prog_compiler_pic='-fno-common' 7552 ;; 7553 7554 hpux*) 7555 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7556 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7557 # sets the default TLS model and affects inlining. 7558 case $host_cpu in 7559 hppa*64*) 7560 # +Z the default 7561 ;; 7562 *) 7563 lt_prog_compiler_pic='-fPIC' 7564 ;; 7565 esac 7566 ;; 7567 7568 interix[3-9]*) 7569 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7570 # Instead, we relocate shared libraries at runtime. 7571 ;; 7572 7573 msdosdjgpp*) 7574 # Just because we use GCC doesn't mean we suddenly get shared libraries 7575 # on systems that don't support them. 7576 lt_prog_compiler_can_build_shared=no 7577 enable_shared=no 7578 ;; 7579 7580 *nto* | *qnx*) 7581 # QNX uses GNU C++, but need to define -shared option too, otherwise 7582 # it will coredump. 7583 lt_prog_compiler_pic='-fPIC -shared' 7584 ;; 7585 7586 sysv4*MP*) 7587 if test -d /usr/nec; then 7588 lt_prog_compiler_pic=-Kconform_pic 7589 fi 7590 ;; 7591 7592 *) 7593 lt_prog_compiler_pic='-fPIC' 7594 ;; 7595 esac 7596 else 7597 # PORTME Check for flag to pass linker flags through the system compiler. 7598 case $host_os in 7599 aix*) 7600 lt_prog_compiler_wl='-Wl,' 7601 if test "$host_cpu" = ia64; then 7602 # AIX 5 now supports IA64 processor 7603 lt_prog_compiler_static='-Bstatic' 7604 else 7605 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7606 fi 7607 ;; 7608 7609 mingw* | cygwin* | pw32* | os2* | cegcc*) 7610 # This hack is so that the source file can tell whether it is being 7611 # built for inclusion in a dll (and should export symbols for example). 7612 lt_prog_compiler_pic='-DDLL_EXPORT' 7613 ;; 7614 7615 hpux9* | hpux10* | hpux11*) 7616 lt_prog_compiler_wl='-Wl,' 7617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7618 # not for PA HP-UX. 7619 case $host_cpu in 7620 hppa*64*|ia64*) 7621 # +Z the default 7622 ;; 7623 *) 7624 lt_prog_compiler_pic='+Z' 7625 ;; 7626 esac 7627 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7628 lt_prog_compiler_static='${wl}-a ${wl}archive' 7629 ;; 7630 7631 irix5* | irix6* | nonstopux*) 7632 lt_prog_compiler_wl='-Wl,' 7633 # PIC (with -KPIC) is the default. 7634 lt_prog_compiler_static='-non_shared' 7635 ;; 7636 7637 linux* | k*bsd*-gnu) 7638 case $cc_basename in 7639 # old Intel for x86_64 which still supported -KPIC. 7640 ecc*) 7641 lt_prog_compiler_wl='-Wl,' 7642 lt_prog_compiler_pic='-KPIC' 7643 lt_prog_compiler_static='-static' 7644 ;; 7645 # icc used to be incompatible with GCC. 7646 # ICC 10 doesn't accept -KPIC any more. 7647 icc* | ifort*) 7648 lt_prog_compiler_wl='-Wl,' 7649 lt_prog_compiler_pic='-fPIC' 7650 lt_prog_compiler_static='-static' 7651 ;; 7652 # Lahey Fortran 8.1. 7653 lf95*) 7654 lt_prog_compiler_wl='-Wl,' 7655 lt_prog_compiler_pic='--shared' 7656 lt_prog_compiler_static='--static' 7657 ;; 7658 pgcc* | pgf77* | pgf90* | pgf95*) 7659 # Portland Group compilers (*not* the Pentium gcc compiler, 7660 # which looks to be a dead project) 7661 lt_prog_compiler_wl='-Wl,' 7662 lt_prog_compiler_pic='-fpic' 7663 lt_prog_compiler_static='-Bstatic' 7664 ;; 7665 ccc*) 7666 lt_prog_compiler_wl='-Wl,' 7667 # All Alpha code is PIC. 7668 lt_prog_compiler_static='-non_shared' 7669 ;; 7670 xl*) 7671 # IBM XL C 8.0/Fortran 10.1 on PPC 7672 lt_prog_compiler_wl='-Wl,' 7673 lt_prog_compiler_pic='-qpic' 7674 lt_prog_compiler_static='-qstaticlink' 7675 ;; 7676 *) 7677 case `$CC -V 2>&1 | sed 5q` in 7678 *Sun\ C*) 7679 # Sun C 5.9 7680 lt_prog_compiler_pic='-KPIC' 7681 lt_prog_compiler_static='-Bstatic' 7682 lt_prog_compiler_wl='-Wl,' 7683 ;; 7684 *Sun\ F*) 7685 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7686 lt_prog_compiler_pic='-KPIC' 7687 lt_prog_compiler_static='-Bstatic' 7688 lt_prog_compiler_wl='' 7689 ;; 7690 esac 7691 ;; 7692 esac 7693 ;; 7694 7695 newsos6) 7696 lt_prog_compiler_pic='-KPIC' 7697 lt_prog_compiler_static='-Bstatic' 7698 ;; 7699 7700 *nto* | *qnx*) 7701 # QNX uses GNU C++, but need to define -shared option too, otherwise 7702 # it will coredump. 7703 lt_prog_compiler_pic='-fPIC -shared' 7704 ;; 7705 7706 osf3* | osf4* | osf5*) 7707 lt_prog_compiler_wl='-Wl,' 7708 # All OSF/1 code is PIC. 7709 lt_prog_compiler_static='-non_shared' 7710 ;; 7711 7712 rdos*) 7713 lt_prog_compiler_static='-non_shared' 7714 ;; 7715 7716 solaris*) 7717 lt_prog_compiler_pic='-KPIC' 7718 lt_prog_compiler_static='-Bstatic' 7719 case $cc_basename in 7720 f77* | f90* | f95*) 7721 lt_prog_compiler_wl='-Qoption ld ';; 7722 *) 7723 lt_prog_compiler_wl='-Wl,';; 7724 esac 7725 ;; 7726 7727 sunos4*) 7728 lt_prog_compiler_wl='-Qoption ld ' 7729 lt_prog_compiler_pic='-PIC' 7730 lt_prog_compiler_static='-Bstatic' 7731 ;; 7732 7733 sysv4 | sysv4.2uw2* | sysv4.3*) 7734 lt_prog_compiler_wl='-Wl,' 7735 lt_prog_compiler_pic='-KPIC' 7736 lt_prog_compiler_static='-Bstatic' 7737 ;; 7738 7739 sysv4*MP*) 7740 if test -d /usr/nec ;then 7741 lt_prog_compiler_pic='-Kconform_pic' 7742 lt_prog_compiler_static='-Bstatic' 7743 fi 7744 ;; 7745 7746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7747 lt_prog_compiler_wl='-Wl,' 7748 lt_prog_compiler_pic='-KPIC' 7749 lt_prog_compiler_static='-Bstatic' 7750 ;; 7751 7752 unicos*) 7753 lt_prog_compiler_wl='-Wl,' 7754 lt_prog_compiler_can_build_shared=no 7755 ;; 7756 7757 uts4*) 7758 lt_prog_compiler_pic='-pic' 7759 lt_prog_compiler_static='-Bstatic' 7760 ;; 7761 7762 *) 7763 lt_prog_compiler_can_build_shared=no 7764 ;; 7765 esac 7766 fi 7767 7768case $host_os in 7769 # For platforms which do not support PIC, -DPIC is meaningless: 7770 *djgpp*) 7771 lt_prog_compiler_pic= 7772 ;; 7773 *) 7774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7775 ;; 7776esac 7777{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7778$as_echo "$lt_prog_compiler_pic" >&6; } 7779 7780 7781 7782 7783 7784 7785# 7786# Check to make sure the PIC flag actually works. 7787# 7788if test -n "$lt_prog_compiler_pic"; then 7789 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7790$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7791if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7792 $as_echo_n "(cached) " >&6 7793else 7794 lt_cv_prog_compiler_pic_works=no 7795 ac_outfile=conftest.$ac_objext 7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7798 # Insert the option either (1) after the last *FLAGS variable, or 7799 # (2) before a word containing "conftest.", or (3) at the end. 7800 # Note that $ac_compile itself does not contain backslashes and begins 7801 # with a dollar sign (not a hyphen), so the echo should work correctly. 7802 # The option is referenced via a variable to avoid confusing sed. 7803 lt_compile=`echo "$ac_compile" | $SED \ 7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7806 -e 's:$: $lt_compiler_flag:'` 7807 (eval echo "\"\$as_me:7807: $lt_compile\"" >&5) 7808 (eval "$lt_compile" 2>conftest.err) 7809 ac_status=$? 7810 cat conftest.err >&5 7811 echo "$as_me:7811: \$? = $ac_status" >&5 7812 if (exit $ac_status) && test -s "$ac_outfile"; then 7813 # The compiler can only warn and ignore the option if not recognized 7814 # So say no if there are warnings other than the usual output. 7815 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7818 lt_cv_prog_compiler_pic_works=yes 7819 fi 7820 fi 7821 $RM conftest* 7822 7823fi 7824{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7825$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7826 7827if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7828 case $lt_prog_compiler_pic in 7829 "" | " "*) ;; 7830 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7831 esac 7832else 7833 lt_prog_compiler_pic= 7834 lt_prog_compiler_can_build_shared=no 7835fi 7836 7837fi 7838 7839 7840 7841 7842 7843 7844# 7845# Check to make sure the static flag actually works. 7846# 7847wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7848{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7849$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7850if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7851 $as_echo_n "(cached) " >&6 7852else 7853 lt_cv_prog_compiler_static_works=no 7854 save_LDFLAGS="$LDFLAGS" 7855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7856 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7858 # The linker can only warn and ignore the option if not recognized 7859 # So say no if there are warnings 7860 if test -s conftest.err; then 7861 # Append any errors to the config.log. 7862 cat conftest.err 1>&5 7863 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7865 if diff conftest.exp conftest.er2 >/dev/null; then 7866 lt_cv_prog_compiler_static_works=yes 7867 fi 7868 else 7869 lt_cv_prog_compiler_static_works=yes 7870 fi 7871 fi 7872 $RM -r conftest* 7873 LDFLAGS="$save_LDFLAGS" 7874 7875fi 7876{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7877$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7878 7879if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7880 : 7881else 7882 lt_prog_compiler_static= 7883fi 7884 7885 7886 7887 7888 7889 7890 7891 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7893if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7894 $as_echo_n "(cached) " >&6 7895else 7896 lt_cv_prog_compiler_c_o=no 7897 $RM -r conftest 2>/dev/null 7898 mkdir conftest 7899 cd conftest 7900 mkdir out 7901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7902 7903 lt_compiler_flag="-o out/conftest2.$ac_objext" 7904 # Insert the option either (1) after the last *FLAGS variable, or 7905 # (2) before a word containing "conftest.", or (3) at the end. 7906 # Note that $ac_compile itself does not contain backslashes and begins 7907 # with a dollar sign (not a hyphen), so the echo should work correctly. 7908 lt_compile=`echo "$ac_compile" | $SED \ 7909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7911 -e 's:$: $lt_compiler_flag:'` 7912 (eval echo "\"\$as_me:7912: $lt_compile\"" >&5) 7913 (eval "$lt_compile" 2>out/conftest.err) 7914 ac_status=$? 7915 cat out/conftest.err >&5 7916 echo "$as_me:7916: \$? = $ac_status" >&5 7917 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7918 then 7919 # The compiler can only warn and ignore the option if not recognized 7920 # So say no if there are warnings 7921 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7924 lt_cv_prog_compiler_c_o=yes 7925 fi 7926 fi 7927 chmod u+w . 2>&5 7928 $RM conftest* 7929 # SGI C++ compiler will create directory out/ii_files/ for 7930 # template instantiation 7931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7932 $RM out/* && rmdir out 7933 cd .. 7934 $RM -r conftest 7935 $RM conftest* 7936 7937fi 7938{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7939$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7940 7941 7942 7943 7944 7945 7946 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7948if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7949 $as_echo_n "(cached) " >&6 7950else 7951 lt_cv_prog_compiler_c_o=no 7952 $RM -r conftest 2>/dev/null 7953 mkdir conftest 7954 cd conftest 7955 mkdir out 7956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7957 7958 lt_compiler_flag="-o out/conftest2.$ac_objext" 7959 # Insert the option either (1) after the last *FLAGS variable, or 7960 # (2) before a word containing "conftest.", or (3) at the end. 7961 # Note that $ac_compile itself does not contain backslashes and begins 7962 # with a dollar sign (not a hyphen), so the echo should work correctly. 7963 lt_compile=`echo "$ac_compile" | $SED \ 7964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7966 -e 's:$: $lt_compiler_flag:'` 7967 (eval echo "\"\$as_me:7967: $lt_compile\"" >&5) 7968 (eval "$lt_compile" 2>out/conftest.err) 7969 ac_status=$? 7970 cat out/conftest.err >&5 7971 echo "$as_me:7971: \$? = $ac_status" >&5 7972 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7973 then 7974 # The compiler can only warn and ignore the option if not recognized 7975 # So say no if there are warnings 7976 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7979 lt_cv_prog_compiler_c_o=yes 7980 fi 7981 fi 7982 chmod u+w . 2>&5 7983 $RM conftest* 7984 # SGI C++ compiler will create directory out/ii_files/ for 7985 # template instantiation 7986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7987 $RM out/* && rmdir out 7988 cd .. 7989 $RM -r conftest 7990 $RM conftest* 7991 7992fi 7993{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7994$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7995 7996 7997 7998 7999hard_links="nottested" 8000if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8001 # do not overwrite the value of need_locks provided by the user 8002 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8003$as_echo_n "checking if we can lock with hard links... " >&6; } 8004 hard_links=yes 8005 $RM conftest* 8006 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8007 touch conftest.a 8008 ln conftest.a conftest.b 2>&5 || hard_links=no 8009 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8010 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8011$as_echo "$hard_links" >&6; } 8012 if test "$hard_links" = no; then 8013 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8014$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8015 need_locks=warn 8016 fi 8017else 8018 need_locks=no 8019fi 8020 8021 8022 8023 8024 8025 8026 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8028 8029 runpath_var= 8030 allow_undefined_flag= 8031 always_export_symbols=no 8032 archive_cmds= 8033 archive_expsym_cmds= 8034 compiler_needs_object=no 8035 enable_shared_with_static_runtimes=no 8036 export_dynamic_flag_spec= 8037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8038 hardcode_automatic=no 8039 hardcode_direct=no 8040 hardcode_direct_absolute=no 8041 hardcode_libdir_flag_spec= 8042 hardcode_libdir_flag_spec_ld= 8043 hardcode_libdir_separator= 8044 hardcode_minus_L=no 8045 hardcode_shlibpath_var=unsupported 8046 inherit_rpath=no 8047 link_all_deplibs=unknown 8048 module_cmds= 8049 module_expsym_cmds= 8050 old_archive_from_new_cmds= 8051 old_archive_from_expsyms_cmds= 8052 thread_safe_flag_spec= 8053 whole_archive_flag_spec= 8054 # include_expsyms should be a list of space-separated symbols to be *always* 8055 # included in the symbol list 8056 include_expsyms= 8057 # exclude_expsyms can be an extended regexp of symbols to exclude 8058 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8059 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8060 # as well as any symbol that contains `d'. 8061 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8062 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8063 # platforms (ab)use it in PIC code, but their linkers get confused if 8064 # the symbol is explicitly referenced. Since portable code cannot 8065 # rely on this symbol name, it's probably fine to never include it in 8066 # preloaded symbol tables. 8067 # Exclude shared library initialization/finalization symbols. 8068 extract_expsyms_cmds= 8069 8070 case $host_os in 8071 cygwin* | mingw* | pw32* | cegcc*) 8072 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8073 # When not using gcc, we currently assume that we are using 8074 # Microsoft Visual C++. 8075 if test "$GCC" != yes; then 8076 with_gnu_ld=no 8077 fi 8078 ;; 8079 interix*) 8080 # we just hope/assume this is gcc and not c89 (= MSVC++) 8081 with_gnu_ld=yes 8082 ;; 8083 openbsd*) 8084 with_gnu_ld=no 8085 ;; 8086 esac 8087 8088 ld_shlibs=yes 8089 if test "$with_gnu_ld" = yes; then 8090 # If archive_cmds runs LD, not CC, wlarc should be empty 8091 wlarc='${wl}' 8092 8093 # Set some defaults for GNU ld with shared library support. These 8094 # are reset later if shared libraries are not supported. Putting them 8095 # here allows them to be overridden if necessary. 8096 runpath_var=LD_RUN_PATH 8097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8098 export_dynamic_flag_spec='${wl}--export-dynamic' 8099 # ancient GNU ld didn't support --whole-archive et. al. 8100 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8101 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8102 else 8103 whole_archive_flag_spec= 8104 fi 8105 supports_anon_versioning=no 8106 case `$LD -v 2>&1` in 8107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8110 *\ 2.11.*) ;; # other 2.11 versions 8111 *) supports_anon_versioning=yes ;; 8112 esac 8113 8114 # See if GNU ld supports shared libraries. 8115 case $host_os in 8116 aix[3-9]*) 8117 # On AIX/PPC, the GNU linker is very broken 8118 if test "$host_cpu" != ia64; then 8119 ld_shlibs=no 8120 cat <<_LT_EOF 1>&2 8121 8122*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8123*** to be unable to reliably create shared libraries on AIX. 8124*** Therefore, libtool is disabling shared libraries support. If you 8125*** really care for shared libraries, you may want to modify your PATH 8126*** so that a non-GNU linker is found, and then restart. 8127 8128_LT_EOF 8129 fi 8130 ;; 8131 8132 amigaos*) 8133 case $host_cpu in 8134 powerpc) 8135 # see comment about AmigaOS4 .so support 8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8137 archive_expsym_cmds='' 8138 ;; 8139 m68k) 8140 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)' 8141 hardcode_libdir_flag_spec='-L$libdir' 8142 hardcode_minus_L=yes 8143 ;; 8144 esac 8145 ;; 8146 8147 beos*) 8148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8149 allow_undefined_flag=unsupported 8150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8151 # support --undefined. This deserves some investigation. FIXME 8152 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8153 else 8154 ld_shlibs=no 8155 fi 8156 ;; 8157 8158 cygwin* | mingw* | pw32* | cegcc*) 8159 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8160 # as there is no search path for DLLs. 8161 hardcode_libdir_flag_spec='-L$libdir' 8162 allow_undefined_flag=unsupported 8163 always_export_symbols=no 8164 enable_shared_with_static_runtimes=yes 8165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8166 8167 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8169 # If the export-symbols file already is a .def file (1st line 8170 # is EXPORTS), use it as is; otherwise, prepend... 8171 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8172 cp $export_symbols $output_objdir/$soname.def; 8173 else 8174 echo EXPORTS > $output_objdir/$soname.def; 8175 cat $export_symbols >> $output_objdir/$soname.def; 8176 fi~ 8177 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8178 else 8179 ld_shlibs=no 8180 fi 8181 ;; 8182 8183 interix[3-9]*) 8184 hardcode_direct=no 8185 hardcode_shlibpath_var=no 8186 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8187 export_dynamic_flag_spec='${wl}-E' 8188 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8189 # Instead, shared libraries are loaded at an image base (0x10000000 by 8190 # default) and relocated if they conflict, which is a slow very memory 8191 # consuming and fragmenting process. To avoid this, we pick a random, 8192 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8193 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8195 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' 8196 ;; 8197 8198 gnu* | linux* | tpf* | k*bsd*-gnu) 8199 tmp_diet=no 8200 if test "$host_os" = linux-dietlibc; then 8201 case $cc_basename in 8202 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8203 esac 8204 fi 8205 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8206 && test "$tmp_diet" = no 8207 then 8208 tmp_addflag= 8209 tmp_sharedflag='-shared' 8210 case $cc_basename,$host_cpu in 8211 pgcc*) # Portland Group C compiler 8212 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' 8213 tmp_addflag=' $pic_flag' 8214 ;; 8215 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8216 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' 8217 tmp_addflag=' $pic_flag -Mnomain' ;; 8218 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8219 tmp_addflag=' -i_dynamic' ;; 8220 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8221 tmp_addflag=' -i_dynamic -nofor_main' ;; 8222 ifc* | ifort*) # Intel Fortran compiler 8223 tmp_addflag=' -nofor_main' ;; 8224 lf95*) # Lahey Fortran 8.1 8225 whole_archive_flag_spec= 8226 tmp_sharedflag='--shared' ;; 8227 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8228 tmp_sharedflag='-qmkshrobj' 8229 tmp_addflag= ;; 8230 esac 8231 case `$CC -V 2>&1 | sed 5q` in 8232 *Sun\ C*) # Sun C 5.9 8233 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' 8234 compiler_needs_object=yes 8235 tmp_sharedflag='-G' ;; 8236 *Sun\ F*) # Sun Fortran 8.3 8237 tmp_sharedflag='-G' ;; 8238 esac 8239 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8240 8241 if test "x$supports_anon_versioning" = xyes; then 8242 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8244 echo "local: *; };" >> $output_objdir/$libname.ver~ 8245 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8246 fi 8247 8248 case $cc_basename in 8249 xlf*) 8250 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8251 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8252 hardcode_libdir_flag_spec= 8253 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8254 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8255 if test "x$supports_anon_versioning" = xyes; then 8256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8258 echo "local: *; };" >> $output_objdir/$libname.ver~ 8259 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8260 fi 8261 ;; 8262 esac 8263 else 8264 ld_shlibs=no 8265 fi 8266 ;; 8267 8268 netbsd*) 8269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8270 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8271 wlarc= 8272 else 8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8275 fi 8276 ;; 8277 8278 solaris*) 8279 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8280 ld_shlibs=no 8281 cat <<_LT_EOF 1>&2 8282 8283*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8284*** create shared libraries on Solaris systems. Therefore, libtool 8285*** is disabling shared libraries support. We urge you to upgrade GNU 8286*** binutils to release 2.9.1 or newer. Another option is to modify 8287*** your PATH or compiler configuration so that the native linker is 8288*** used, and then restart. 8289 8290_LT_EOF 8291 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8294 else 8295 ld_shlibs=no 8296 fi 8297 ;; 8298 8299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8300 case `$LD -v 2>&1` in 8301 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8302 ld_shlibs=no 8303 cat <<_LT_EOF 1>&2 8304 8305*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8306*** reliably create shared libraries on SCO systems. Therefore, libtool 8307*** is disabling shared libraries support. We urge you to upgrade GNU 8308*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8309*** your PATH or compiler configuration so that the native linker is 8310*** used, and then restart. 8311 8312_LT_EOF 8313 ;; 8314 *) 8315 # For security reasons, it is highly recommended that you always 8316 # use absolute paths for naming shared libraries, and exclude the 8317 # DT_RUNPATH tag from executables and libraries. But doing so 8318 # requires that you compile everything twice, which is a pain. 8319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8323 else 8324 ld_shlibs=no 8325 fi 8326 ;; 8327 esac 8328 ;; 8329 8330 sunos4*) 8331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8332 wlarc= 8333 hardcode_direct=yes 8334 hardcode_shlibpath_var=no 8335 ;; 8336 8337 *) 8338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8341 else 8342 ld_shlibs=no 8343 fi 8344 ;; 8345 esac 8346 8347 if test "$ld_shlibs" = no; then 8348 runpath_var= 8349 hardcode_libdir_flag_spec= 8350 export_dynamic_flag_spec= 8351 whole_archive_flag_spec= 8352 fi 8353 else 8354 # PORTME fill in a description of your system's linker (not GNU ld) 8355 case $host_os in 8356 aix3*) 8357 allow_undefined_flag=unsupported 8358 always_export_symbols=yes 8359 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' 8360 # Note: this linker hardcodes the directories in LIBPATH if there 8361 # are no directories specified by -L. 8362 hardcode_minus_L=yes 8363 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8364 # Neither direct hardcoding nor static linking is supported with a 8365 # broken collect2. 8366 hardcode_direct=unsupported 8367 fi 8368 ;; 8369 8370 aix[4-9]*) 8371 if test "$host_cpu" = ia64; then 8372 # On IA64, the linker does run time linking by default, so we don't 8373 # have to do anything special. 8374 aix_use_runtimelinking=no 8375 exp_sym_flag='-Bexport' 8376 no_entry_flag="" 8377 else 8378 # If we're using GNU nm, then we don't want the "-C" option. 8379 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8380 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8381 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' 8382 else 8383 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' 8384 fi 8385 aix_use_runtimelinking=no 8386 8387 # Test if we are trying to use run time linking or normal 8388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8389 # need to do runtime linking. 8390 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8391 for ld_flag in $LDFLAGS; do 8392 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8393 aix_use_runtimelinking=yes 8394 break 8395 fi 8396 done 8397 ;; 8398 esac 8399 8400 exp_sym_flag='-bexport' 8401 no_entry_flag='-bnoentry' 8402 fi 8403 8404 # When large executables or shared objects are built, AIX ld can 8405 # have problems creating the table of contents. If linking a library 8406 # or program results in "error TOC overflow" add -mminimal-toc to 8407 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8408 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8409 8410 archive_cmds='' 8411 hardcode_direct=yes 8412 hardcode_direct_absolute=yes 8413 hardcode_libdir_separator=':' 8414 link_all_deplibs=yes 8415 file_list_spec='${wl}-f,' 8416 8417 if test "$GCC" = yes; then 8418 case $host_os in aix4.[012]|aix4.[012].*) 8419 # We only want to do this on AIX 4.2 and lower, the check 8420 # below for broken collect2 doesn't work under 4.3+ 8421 collect2name=`${CC} -print-prog-name=collect2` 8422 if test -f "$collect2name" && 8423 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8424 then 8425 # We have reworked collect2 8426 : 8427 else 8428 # We have old collect2 8429 hardcode_direct=unsupported 8430 # It fails to find uninstalled libraries when the uninstalled 8431 # path is not listed in the libpath. Setting hardcode_minus_L 8432 # to unsupported forces relinking 8433 hardcode_minus_L=yes 8434 hardcode_libdir_flag_spec='-L$libdir' 8435 hardcode_libdir_separator= 8436 fi 8437 ;; 8438 esac 8439 shared_flag='-shared' 8440 if test "$aix_use_runtimelinking" = yes; then 8441 shared_flag="$shared_flag "'${wl}-G' 8442 fi 8443 else 8444 # not using gcc 8445 if test "$host_cpu" = ia64; then 8446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8447 # chokes on -Wl,-G. The following line is correct: 8448 shared_flag='-G' 8449 else 8450 if test "$aix_use_runtimelinking" = yes; then 8451 shared_flag='${wl}-G' 8452 else 8453 shared_flag='${wl}-bM:SRE' 8454 fi 8455 fi 8456 fi 8457 8458 export_dynamic_flag_spec='${wl}-bexpall' 8459 # It seems that -bexpall does not export symbols beginning with 8460 # underscore (_), so it is better to generate a list of symbols to export. 8461 always_export_symbols=yes 8462 if test "$aix_use_runtimelinking" = yes; then 8463 # Warning - without using the other runtime loading flags (-brtl), 8464 # -berok will link without error, but may produce a broken library. 8465 allow_undefined_flag='-berok' 8466 # Determine the default libpath from the value encoded in an 8467 # empty executable. 8468 cat >conftest.$ac_ext <<_ACEOF 8469/* confdefs.h. */ 8470_ACEOF 8471cat confdefs.h >>conftest.$ac_ext 8472cat >>conftest.$ac_ext <<_ACEOF 8473/* end confdefs.h. */ 8474 8475int 8476main () 8477{ 8478 8479 ; 8480 return 0; 8481} 8482_ACEOF 8483rm -f conftest.$ac_objext conftest$ac_exeext 8484if { (ac_try="$ac_link" 8485case "(($ac_try" in 8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8487 *) ac_try_echo=$ac_try;; 8488esac 8489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8490$as_echo "$ac_try_echo") >&5 8491 (eval "$ac_link") 2>conftest.er1 8492 ac_status=$? 8493 grep -v '^ *+' conftest.er1 >conftest.err 8494 rm -f conftest.er1 8495 cat conftest.err >&5 8496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); } && { 8498 test -z "$ac_c_werror_flag" || 8499 test ! -s conftest.err 8500 } && test -s conftest$ac_exeext && { 8501 test "$cross_compiling" = yes || 8502 $as_test_x conftest$ac_exeext 8503 }; then 8504 8505lt_aix_libpath_sed=' 8506 /Import File Strings/,/^$/ { 8507 /^0/ { 8508 s/^0 *\(.*\)$/\1/ 8509 p 8510 } 8511 }' 8512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8513# Check for a 64-bit object if we didn't find anything. 8514if test -z "$aix_libpath"; then 8515 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8516fi 8517else 8518 $as_echo "$as_me: failed program was:" >&5 8519sed 's/^/| /' conftest.$ac_ext >&5 8520 8521 8522fi 8523 8524rm -rf conftest.dSYM 8525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8526 conftest$ac_exeext conftest.$ac_ext 8527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8528 8529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8530 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" 8531 else 8532 if test "$host_cpu" = ia64; then 8533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8534 allow_undefined_flag="-z nodefs" 8535 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" 8536 else 8537 # Determine the default libpath from the value encoded in an 8538 # empty executable. 8539 cat >conftest.$ac_ext <<_ACEOF 8540/* confdefs.h. */ 8541_ACEOF 8542cat confdefs.h >>conftest.$ac_ext 8543cat >>conftest.$ac_ext <<_ACEOF 8544/* end confdefs.h. */ 8545 8546int 8547main () 8548{ 8549 8550 ; 8551 return 0; 8552} 8553_ACEOF 8554rm -f conftest.$ac_objext conftest$ac_exeext 8555if { (ac_try="$ac_link" 8556case "(($ac_try" in 8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8558 *) ac_try_echo=$ac_try;; 8559esac 8560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8561$as_echo "$ac_try_echo") >&5 8562 (eval "$ac_link") 2>conftest.er1 8563 ac_status=$? 8564 grep -v '^ *+' conftest.er1 >conftest.err 8565 rm -f conftest.er1 8566 cat conftest.err >&5 8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8568 (exit $ac_status); } && { 8569 test -z "$ac_c_werror_flag" || 8570 test ! -s conftest.err 8571 } && test -s conftest$ac_exeext && { 8572 test "$cross_compiling" = yes || 8573 $as_test_x conftest$ac_exeext 8574 }; then 8575 8576lt_aix_libpath_sed=' 8577 /Import File Strings/,/^$/ { 8578 /^0/ { 8579 s/^0 *\(.*\)$/\1/ 8580 p 8581 } 8582 }' 8583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8584# Check for a 64-bit object if we didn't find anything. 8585if test -z "$aix_libpath"; then 8586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8587fi 8588else 8589 $as_echo "$as_me: failed program was:" >&5 8590sed 's/^/| /' conftest.$ac_ext >&5 8591 8592 8593fi 8594 8595rm -rf conftest.dSYM 8596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8597 conftest$ac_exeext conftest.$ac_ext 8598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8599 8600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8601 # Warning - without using the other run time loading flags, 8602 # -berok will link without error, but may produce a broken library. 8603 no_undefined_flag=' ${wl}-bernotok' 8604 allow_undefined_flag=' ${wl}-berok' 8605 # Exported symbols can be pulled into shared objects from archives 8606 whole_archive_flag_spec='$convenience' 8607 archive_cmds_need_lc=yes 8608 # This is similar to how AIX traditionally builds its shared libraries. 8609 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' 8610 fi 8611 fi 8612 ;; 8613 8614 amigaos*) 8615 case $host_cpu in 8616 powerpc) 8617 # see comment about AmigaOS4 .so support 8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8619 archive_expsym_cmds='' 8620 ;; 8621 m68k) 8622 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)' 8623 hardcode_libdir_flag_spec='-L$libdir' 8624 hardcode_minus_L=yes 8625 ;; 8626 esac 8627 ;; 8628 8629 bsdi[45]*) 8630 export_dynamic_flag_spec=-rdynamic 8631 ;; 8632 8633 cygwin* | mingw* | pw32* | cegcc*) 8634 # When not using gcc, we currently assume that we are using 8635 # Microsoft Visual C++. 8636 # hardcode_libdir_flag_spec is actually meaningless, as there is 8637 # no search path for DLLs. 8638 hardcode_libdir_flag_spec=' ' 8639 allow_undefined_flag=unsupported 8640 # Tell ltmain to make .lib files, not .a files. 8641 libext=lib 8642 # Tell ltmain to make .dll files, not .so files. 8643 shrext_cmds=".dll" 8644 # FIXME: Setting linknames here is a bad hack. 8645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8646 # The linker will automatically build a .lib file if we build a DLL. 8647 old_archive_from_new_cmds='true' 8648 # FIXME: Should let the user specify the lib program. 8649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8650 fix_srcfile_path='`cygpath -w "$srcfile"`' 8651 enable_shared_with_static_runtimes=yes 8652 ;; 8653 8654 darwin* | rhapsody*) 8655 8656 8657 archive_cmds_need_lc=no 8658 hardcode_direct=no 8659 hardcode_automatic=yes 8660 hardcode_shlibpath_var=unsupported 8661 whole_archive_flag_spec='' 8662 link_all_deplibs=yes 8663 allow_undefined_flag="$_lt_dar_allow_undefined" 8664 case $cc_basename in 8665 ifort*) _lt_dar_can_shared=yes ;; 8666 *) _lt_dar_can_shared=$GCC ;; 8667 esac 8668 if test "$_lt_dar_can_shared" = "yes"; then 8669 output_verbose_link_cmd=echo 8670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8672 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}" 8673 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}" 8674 8675 else 8676 ld_shlibs=no 8677 fi 8678 8679 ;; 8680 8681 dgux*) 8682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8683 hardcode_libdir_flag_spec='-L$libdir' 8684 hardcode_shlibpath_var=no 8685 ;; 8686 8687 freebsd1*) 8688 ld_shlibs=no 8689 ;; 8690 8691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8692 # support. Future versions do this automatically, but an explicit c++rt0.o 8693 # does not break anything, and helps significantly (at the cost of a little 8694 # extra space). 8695 freebsd2.2*) 8696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8697 hardcode_libdir_flag_spec='-R$libdir' 8698 hardcode_direct=yes 8699 hardcode_shlibpath_var=no 8700 ;; 8701 8702 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8703 freebsd2*) 8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8705 hardcode_direct=yes 8706 hardcode_minus_L=yes 8707 hardcode_shlibpath_var=no 8708 ;; 8709 8710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8711 freebsd* | dragonfly*) 8712 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8713 hardcode_libdir_flag_spec='-R$libdir' 8714 hardcode_direct=yes 8715 hardcode_shlibpath_var=no 8716 ;; 8717 8718 hpux9*) 8719 if test "$GCC" = yes; then 8720 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' 8721 else 8722 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' 8723 fi 8724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8725 hardcode_libdir_separator=: 8726 hardcode_direct=yes 8727 8728 # hardcode_minus_L: Not really in the search PATH, 8729 # but as the default location of the library. 8730 hardcode_minus_L=yes 8731 export_dynamic_flag_spec='${wl}-E' 8732 ;; 8733 8734 hpux10*) 8735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8736 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8737 else 8738 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8739 fi 8740 if test "$with_gnu_ld" = no; then 8741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8742 hardcode_libdir_flag_spec_ld='+b $libdir' 8743 hardcode_libdir_separator=: 8744 hardcode_direct=yes 8745 hardcode_direct_absolute=yes 8746 export_dynamic_flag_spec='${wl}-E' 8747 # hardcode_minus_L: Not really in the search PATH, 8748 # but as the default location of the library. 8749 hardcode_minus_L=yes 8750 fi 8751 ;; 8752 8753 hpux11*) 8754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8755 case $host_cpu in 8756 hppa*64*) 8757 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8758 ;; 8759 ia64*) 8760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8761 ;; 8762 *) 8763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8764 ;; 8765 esac 8766 else 8767 case $host_cpu in 8768 hppa*64*) 8769 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8770 ;; 8771 ia64*) 8772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8773 ;; 8774 *) 8775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8776 ;; 8777 esac 8778 fi 8779 if test "$with_gnu_ld" = no; then 8780 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8781 hardcode_libdir_separator=: 8782 8783 case $host_cpu in 8784 hppa*64*|ia64*) 8785 hardcode_direct=no 8786 hardcode_shlibpath_var=no 8787 ;; 8788 *) 8789 hardcode_direct=yes 8790 hardcode_direct_absolute=yes 8791 export_dynamic_flag_spec='${wl}-E' 8792 8793 # hardcode_minus_L: Not really in the search PATH, 8794 # but as the default location of the library. 8795 hardcode_minus_L=yes 8796 ;; 8797 esac 8798 fi 8799 ;; 8800 8801 irix5* | irix6* | nonstopux*) 8802 if test "$GCC" = yes; then 8803 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' 8804 # Try to use the -exported_symbol ld option, if it does not 8805 # work, assume that -exports_file does not work either and 8806 # implicitly export all symbols. 8807 save_LDFLAGS="$LDFLAGS" 8808 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8809 cat >conftest.$ac_ext <<_ACEOF 8810int foo(void) {} 8811_ACEOF 8812rm -f conftest.$ac_objext conftest$ac_exeext 8813if { (ac_try="$ac_link" 8814case "(($ac_try" in 8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8816 *) ac_try_echo=$ac_try;; 8817esac 8818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8819$as_echo "$ac_try_echo") >&5 8820 (eval "$ac_link") 2>conftest.er1 8821 ac_status=$? 8822 grep -v '^ *+' conftest.er1 >conftest.err 8823 rm -f conftest.er1 8824 cat conftest.err >&5 8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8826 (exit $ac_status); } && { 8827 test -z "$ac_c_werror_flag" || 8828 test ! -s conftest.err 8829 } && test -s conftest$ac_exeext && { 8830 test "$cross_compiling" = yes || 8831 $as_test_x conftest$ac_exeext 8832 }; then 8833 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' 8834 8835else 8836 $as_echo "$as_me: failed program was:" >&5 8837sed 's/^/| /' conftest.$ac_ext >&5 8838 8839 8840fi 8841 8842rm -rf conftest.dSYM 8843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8844 conftest$ac_exeext conftest.$ac_ext 8845 LDFLAGS="$save_LDFLAGS" 8846 else 8847 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' 8848 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' 8849 fi 8850 archive_cmds_need_lc='no' 8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8852 hardcode_libdir_separator=: 8853 inherit_rpath=yes 8854 link_all_deplibs=yes 8855 ;; 8856 8857 netbsd*) 8858 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8860 else 8861 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8862 fi 8863 hardcode_libdir_flag_spec='-R$libdir' 8864 hardcode_direct=yes 8865 hardcode_shlibpath_var=no 8866 ;; 8867 8868 newsos6) 8869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8870 hardcode_direct=yes 8871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8872 hardcode_libdir_separator=: 8873 hardcode_shlibpath_var=no 8874 ;; 8875 8876 *nto* | *qnx*) 8877 ;; 8878 8879 openbsd*) 8880 if test -f /usr/libexec/ld.so; then 8881 hardcode_direct=yes 8882 hardcode_shlibpath_var=no 8883 hardcode_direct_absolute=yes 8884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8886 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8888 export_dynamic_flag_spec='${wl}-E' 8889 else 8890 case $host_os in 8891 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8893 hardcode_libdir_flag_spec='-R$libdir' 8894 ;; 8895 *) 8896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8898 ;; 8899 esac 8900 fi 8901 else 8902 ld_shlibs=no 8903 fi 8904 ;; 8905 8906 os2*) 8907 hardcode_libdir_flag_spec='-L$libdir' 8908 hardcode_minus_L=yes 8909 allow_undefined_flag=unsupported 8910 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' 8911 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8912 ;; 8913 8914 osf3*) 8915 if test "$GCC" = yes; then 8916 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8917 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' 8918 else 8919 allow_undefined_flag=' -expect_unresolved \*' 8920 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' 8921 fi 8922 archive_cmds_need_lc='no' 8923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8924 hardcode_libdir_separator=: 8925 ;; 8926 8927 osf4* | osf5*) # as osf3* with the addition of -msym flag 8928 if test "$GCC" = yes; then 8929 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8930 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' 8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8932 else 8933 allow_undefined_flag=' -expect_unresolved \*' 8934 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' 8935 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~ 8936 $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' 8937 8938 # Both c and cxx compiler support -rpath directly 8939 hardcode_libdir_flag_spec='-rpath $libdir' 8940 fi 8941 archive_cmds_need_lc='no' 8942 hardcode_libdir_separator=: 8943 ;; 8944 8945 solaris*) 8946 no_undefined_flag=' -z defs' 8947 if test "$GCC" = yes; then 8948 wlarc='${wl}' 8949 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8951 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8952 else 8953 case `$CC -V 2>&1` in 8954 *"Compilers 5.0"*) 8955 wlarc='' 8956 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8958 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8959 ;; 8960 *) 8961 wlarc='${wl}' 8962 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8964 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8965 ;; 8966 esac 8967 fi 8968 hardcode_libdir_flag_spec='-R$libdir' 8969 hardcode_shlibpath_var=no 8970 case $host_os in 8971 solaris2.[0-5] | solaris2.[0-5].*) ;; 8972 *) 8973 # The compiler driver will combine and reorder linker options, 8974 # but understands `-z linker_flag'. GCC discards it without `$wl', 8975 # but is careful enough not to reorder. 8976 # Supported since Solaris 2.6 (maybe 2.5.1?) 8977 if test "$GCC" = yes; then 8978 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8979 else 8980 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8981 fi 8982 ;; 8983 esac 8984 link_all_deplibs=yes 8985 ;; 8986 8987 sunos4*) 8988 if test "x$host_vendor" = xsequent; then 8989 # Use $CC to link under sequent, because it throws in some extra .o 8990 # files that make .init and .fini sections work. 8991 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8992 else 8993 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8994 fi 8995 hardcode_libdir_flag_spec='-L$libdir' 8996 hardcode_direct=yes 8997 hardcode_minus_L=yes 8998 hardcode_shlibpath_var=no 8999 ;; 9000 9001 sysv4) 9002 case $host_vendor in 9003 sni) 9004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9005 hardcode_direct=yes # is this really true??? 9006 ;; 9007 siemens) 9008 ## LD is ld it makes a PLAMLIB 9009 ## CC just makes a GrossModule. 9010 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9011 reload_cmds='$CC -r -o $output$reload_objs' 9012 hardcode_direct=no 9013 ;; 9014 motorola) 9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9016 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9017 ;; 9018 esac 9019 runpath_var='LD_RUN_PATH' 9020 hardcode_shlibpath_var=no 9021 ;; 9022 9023 sysv4.3*) 9024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9025 hardcode_shlibpath_var=no 9026 export_dynamic_flag_spec='-Bexport' 9027 ;; 9028 9029 sysv4*MP*) 9030 if test -d /usr/nec; then 9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9032 hardcode_shlibpath_var=no 9033 runpath_var=LD_RUN_PATH 9034 hardcode_runpath_var=yes 9035 ld_shlibs=yes 9036 fi 9037 ;; 9038 9039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9040 no_undefined_flag='${wl}-z,text' 9041 archive_cmds_need_lc=no 9042 hardcode_shlibpath_var=no 9043 runpath_var='LD_RUN_PATH' 9044 9045 if test "$GCC" = yes; then 9046 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9047 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 else 9049 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9050 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9051 fi 9052 ;; 9053 9054 sysv5* | sco3.2v5* | sco5v6*) 9055 # Note: We can NOT use -z defs as we might desire, because we do not 9056 # link with -lc, and that would cause any symbols used from libc to 9057 # always be unresolved, which means just about no library would 9058 # ever link correctly. If we're not using GNU ld we use -z text 9059 # though, which does catch some bad symbols but isn't as heavy-handed 9060 # as -z defs. 9061 no_undefined_flag='${wl}-z,text' 9062 allow_undefined_flag='${wl}-z,nodefs' 9063 archive_cmds_need_lc=no 9064 hardcode_shlibpath_var=no 9065 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9066 hardcode_libdir_separator=':' 9067 link_all_deplibs=yes 9068 export_dynamic_flag_spec='${wl}-Bexport' 9069 runpath_var='LD_RUN_PATH' 9070 9071 if test "$GCC" = yes; then 9072 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9073 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9074 else 9075 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9076 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9077 fi 9078 ;; 9079 9080 uts4*) 9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9082 hardcode_libdir_flag_spec='-L$libdir' 9083 hardcode_shlibpath_var=no 9084 ;; 9085 9086 *) 9087 ld_shlibs=no 9088 ;; 9089 esac 9090 9091 if test x$host_vendor = xsni; then 9092 case $host in 9093 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9094 export_dynamic_flag_spec='${wl}-Blargedynsym' 9095 ;; 9096 esac 9097 fi 9098 fi 9099 9100{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9101$as_echo "$ld_shlibs" >&6; } 9102test "$ld_shlibs" = no && can_build_shared=no 9103 9104with_gnu_ld=$with_gnu_ld 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120# 9121# Do we need to explicitly link libc? 9122# 9123case "x$archive_cmds_need_lc" in 9124x|xyes) 9125 # Assume -lc should be added 9126 archive_cmds_need_lc=yes 9127 9128 if test "$enable_shared" = yes && test "$GCC" = yes; then 9129 case $archive_cmds in 9130 *'~'*) 9131 # FIXME: we may have to deal with multi-command sequences. 9132 ;; 9133 '$CC '*) 9134 # Test whether the compiler implicitly links with -lc since on some 9135 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9136 # to ld, don't add -lc before -lgcc. 9137 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9138$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9139 $RM conftest* 9140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9141 9142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9143 (eval $ac_compile) 2>&5 9144 ac_status=$? 9145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9146 (exit $ac_status); } 2>conftest.err; then 9147 soname=conftest 9148 lib=conftest 9149 libobjs=conftest.$ac_objext 9150 deplibs= 9151 wl=$lt_prog_compiler_wl 9152 pic_flag=$lt_prog_compiler_pic 9153 compiler_flags=-v 9154 linker_flags=-v 9155 verstring= 9156 output_objdir=. 9157 libname=conftest 9158 lt_save_allow_undefined_flag=$allow_undefined_flag 9159 allow_undefined_flag= 9160 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9161 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9162 ac_status=$? 9163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9164 (exit $ac_status); } 9165 then 9166 archive_cmds_need_lc=no 9167 else 9168 archive_cmds_need_lc=yes 9169 fi 9170 allow_undefined_flag=$lt_save_allow_undefined_flag 9171 else 9172 cat conftest.err 1>&5 9173 fi 9174 $RM conftest* 9175 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9176$as_echo "$archive_cmds_need_lc" >&6; } 9177 ;; 9178 esac 9179 fi 9180 ;; 9181esac 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9340$as_echo_n "checking dynamic linker characteristics... " >&6; } 9341 9342if test "$GCC" = yes; then 9343 case $host_os in 9344 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9345 *) lt_awk_arg="/^libraries:/" ;; 9346 esac 9347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9348 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9349 # if the path contains ";" then we assume it to be the separator 9350 # otherwise default to the standard path separator (i.e. ":") - it is 9351 # assumed that no part of a normal pathname contains ";" but that should 9352 # okay in the real world where ";" in dirpaths is itself problematic. 9353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9354 else 9355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9356 fi 9357 # Ok, now we have the path, separated by spaces, we can step through it 9358 # and add multilib dir if necessary. 9359 lt_tmp_lt_search_path_spec= 9360 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9361 for lt_sys_path in $lt_search_path_spec; do 9362 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9364 else 9365 test -d "$lt_sys_path" && \ 9366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9367 fi 9368 done 9369 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9370BEGIN {RS=" "; FS="/|\n";} { 9371 lt_foo=""; 9372 lt_count=0; 9373 for (lt_i = NF; lt_i > 0; lt_i--) { 9374 if ($lt_i != "" && $lt_i != ".") { 9375 if ($lt_i == "..") { 9376 lt_count++; 9377 } else { 9378 if (lt_count == 0) { 9379 lt_foo="/" $lt_i lt_foo; 9380 } else { 9381 lt_count--; 9382 } 9383 } 9384 } 9385 } 9386 if (lt_foo != "") { lt_freq[lt_foo]++; } 9387 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9388}'` 9389 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9390else 9391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9392fi 9393library_names_spec= 9394libname_spec='lib$name' 9395soname_spec= 9396shrext_cmds=".so" 9397postinstall_cmds= 9398postuninstall_cmds= 9399finish_cmds= 9400finish_eval= 9401shlibpath_var= 9402shlibpath_overrides_runpath=unknown 9403version_type=none 9404dynamic_linker="$host_os ld.so" 9405sys_lib_dlsearch_path_spec="/lib /usr/lib" 9406need_lib_prefix=unknown 9407hardcode_into_libs=no 9408 9409# when you set need_version to no, make sure it does not cause -set_version 9410# flags to be left without arguments 9411need_version=unknown 9412 9413case $host_os in 9414aix3*) 9415 version_type=linux 9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9417 shlibpath_var=LIBPATH 9418 9419 # AIX 3 has no versioning support, so we append a major version to the name. 9420 soname_spec='${libname}${release}${shared_ext}$major' 9421 ;; 9422 9423aix[4-9]*) 9424 version_type=linux 9425 need_lib_prefix=no 9426 need_version=no 9427 hardcode_into_libs=yes 9428 if test "$host_cpu" = ia64; then 9429 # AIX 5 supports IA64 9430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9431 shlibpath_var=LD_LIBRARY_PATH 9432 else 9433 # With GCC up to 2.95.x, collect2 would create an import file 9434 # for dependence libraries. The import file would start with 9435 # the line `#! .'. This would cause the generated library to 9436 # depend on `.', always an invalid library. This was fixed in 9437 # development snapshots of GCC prior to 3.0. 9438 case $host_os in 9439 aix4 | aix4.[01] | aix4.[01].*) 9440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9441 echo ' yes ' 9442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9443 : 9444 else 9445 can_build_shared=no 9446 fi 9447 ;; 9448 esac 9449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9450 # soname into executable. Probably we can add versioning support to 9451 # collect2, so additional links can be useful in future. 9452 if test "$aix_use_runtimelinking" = yes; then 9453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9454 # instead of lib<name>.a to let people know that these are not 9455 # typical AIX shared libraries. 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9457 else 9458 # We preserve .a as extension for shared libraries through AIX4.2 9459 # and later when we are not doing run time linking. 9460 library_names_spec='${libname}${release}.a $libname.a' 9461 soname_spec='${libname}${release}${shared_ext}$major' 9462 fi 9463 shlibpath_var=LIBPATH 9464 fi 9465 ;; 9466 9467amigaos*) 9468 case $host_cpu in 9469 powerpc) 9470 # Since July 2007 AmigaOS4 officially supports .so libraries. 9471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9473 ;; 9474 m68k) 9475 library_names_spec='$libname.ixlibrary $libname.a' 9476 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9477 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' 9478 ;; 9479 esac 9480 ;; 9481 9482beos*) 9483 library_names_spec='${libname}${shared_ext}' 9484 dynamic_linker="$host_os ld.so" 9485 shlibpath_var=LIBRARY_PATH 9486 ;; 9487 9488bsdi[45]*) 9489 version_type=linux 9490 need_version=no 9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9492 soname_spec='${libname}${release}${shared_ext}$major' 9493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9494 shlibpath_var=LD_LIBRARY_PATH 9495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9497 # the default ld.so.conf also contains /usr/contrib/lib and 9498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9499 # libtool to hard-code these into programs 9500 ;; 9501 9502cygwin* | mingw* | pw32* | cegcc*) 9503 version_type=windows 9504 shrext_cmds=".dll" 9505 need_version=no 9506 need_lib_prefix=no 9507 9508 case $GCC,$host_os in 9509 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9510 library_names_spec='$libname.dll.a' 9511 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9512 postinstall_cmds='base_file=`basename \${file}`~ 9513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9514 dldir=$destdir/`dirname \$dlpath`~ 9515 test -d \$dldir || mkdir -p \$dldir~ 9516 $install_prog $dir/$dlname \$dldir/$dlname~ 9517 chmod a+x \$dldir/$dlname~ 9518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9520 fi' 9521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9522 dlpath=$dir/\$dldll~ 9523 $RM \$dlpath' 9524 shlibpath_overrides_runpath=yes 9525 9526 case $host_os in 9527 cygwin*) 9528 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9531 ;; 9532 mingw* | cegcc*) 9533 # MinGW DLLs use traditional 'lib' prefix 9534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9535 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9536 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9537 # It is most probably a Windows format PATH printed by 9538 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9539 # path with ; separators, and with drive letters. We can handle the 9540 # drive letters (cygwin fileutils understands them), so leave them, 9541 # especially as we might pass files found there to a mingw objdump, 9542 # which wouldn't understand a cygwinified path. Ahh. 9543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9544 else 9545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9546 fi 9547 ;; 9548 pw32*) 9549 # pw32 DLLs use 'pw' prefix rather than 'lib' 9550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9551 ;; 9552 esac 9553 ;; 9554 9555 *) 9556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9557 ;; 9558 esac 9559 dynamic_linker='Win32 ld.exe' 9560 # FIXME: first we should search . and the directory the executable is in 9561 shlibpath_var=PATH 9562 ;; 9563 9564darwin* | rhapsody*) 9565 dynamic_linker="$host_os dyld" 9566 version_type=darwin 9567 need_lib_prefix=no 9568 need_version=no 9569 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9570 soname_spec='${libname}${release}${major}$shared_ext' 9571 shlibpath_overrides_runpath=yes 9572 shlibpath_var=DYLD_LIBRARY_PATH 9573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9574 9575 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9577 ;; 9578 9579dgux*) 9580 version_type=linux 9581 need_lib_prefix=no 9582 need_version=no 9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9584 soname_spec='${libname}${release}${shared_ext}$major' 9585 shlibpath_var=LD_LIBRARY_PATH 9586 ;; 9587 9588freebsd1*) 9589 dynamic_linker=no 9590 ;; 9591 9592freebsd* | dragonfly*) 9593 # DragonFly does not have aout. When/if they implement a new 9594 # versioning mechanism, adjust this. 9595 if test -x /usr/bin/objformat; then 9596 objformat=`/usr/bin/objformat` 9597 else 9598 case $host_os in 9599 freebsd[123]*) objformat=aout ;; 9600 *) objformat=elf ;; 9601 esac 9602 fi 9603 version_type=freebsd-$objformat 9604 case $version_type in 9605 freebsd-elf*) 9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9607 need_version=no 9608 need_lib_prefix=no 9609 ;; 9610 freebsd-*) 9611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9612 need_version=yes 9613 ;; 9614 esac 9615 shlibpath_var=LD_LIBRARY_PATH 9616 case $host_os in 9617 freebsd2*) 9618 shlibpath_overrides_runpath=yes 9619 ;; 9620 freebsd3.[01]* | freebsdelf3.[01]*) 9621 shlibpath_overrides_runpath=yes 9622 hardcode_into_libs=yes 9623 ;; 9624 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9625 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9626 shlibpath_overrides_runpath=no 9627 hardcode_into_libs=yes 9628 ;; 9629 *) # from 4.6 on, and DragonFly 9630 shlibpath_overrides_runpath=yes 9631 hardcode_into_libs=yes 9632 ;; 9633 esac 9634 ;; 9635 9636gnu*) 9637 version_type=linux 9638 need_lib_prefix=no 9639 need_version=no 9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9641 soname_spec='${libname}${release}${shared_ext}$major' 9642 shlibpath_var=LD_LIBRARY_PATH 9643 hardcode_into_libs=yes 9644 ;; 9645 9646hpux9* | hpux10* | hpux11*) 9647 # Give a soname corresponding to the major version so that dld.sl refuses to 9648 # link against other versions. 9649 version_type=sunos 9650 need_lib_prefix=no 9651 need_version=no 9652 case $host_cpu in 9653 ia64*) 9654 shrext_cmds='.so' 9655 hardcode_into_libs=yes 9656 dynamic_linker="$host_os dld.so" 9657 shlibpath_var=LD_LIBRARY_PATH 9658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9660 soname_spec='${libname}${release}${shared_ext}$major' 9661 if test "X$HPUX_IA64_MODE" = X32; then 9662 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9663 else 9664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9665 fi 9666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9667 ;; 9668 hppa*64*) 9669 shrext_cmds='.sl' 9670 hardcode_into_libs=yes 9671 dynamic_linker="$host_os dld.sl" 9672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9675 soname_spec='${libname}${release}${shared_ext}$major' 9676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9678 ;; 9679 *) 9680 shrext_cmds='.sl' 9681 dynamic_linker="$host_os dld.sl" 9682 shlibpath_var=SHLIB_PATH 9683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9685 soname_spec='${libname}${release}${shared_ext}$major' 9686 ;; 9687 esac 9688 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9689 postinstall_cmds='chmod 555 $lib' 9690 ;; 9691 9692interix[3-9]*) 9693 version_type=linux 9694 need_lib_prefix=no 9695 need_version=no 9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9697 soname_spec='${libname}${release}${shared_ext}$major' 9698 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9699 shlibpath_var=LD_LIBRARY_PATH 9700 shlibpath_overrides_runpath=no 9701 hardcode_into_libs=yes 9702 ;; 9703 9704irix5* | irix6* | nonstopux*) 9705 case $host_os in 9706 nonstopux*) version_type=nonstopux ;; 9707 *) 9708 if test "$lt_cv_prog_gnu_ld" = yes; then 9709 version_type=linux 9710 else 9711 version_type=irix 9712 fi ;; 9713 esac 9714 need_lib_prefix=no 9715 need_version=no 9716 soname_spec='${libname}${release}${shared_ext}$major' 9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9718 case $host_os in 9719 irix5* | nonstopux*) 9720 libsuff= shlibsuff= 9721 ;; 9722 *) 9723 case $LD in # libtool.m4 will add one of these switches to LD 9724 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9725 libsuff= shlibsuff= libmagic=32-bit;; 9726 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9727 libsuff=32 shlibsuff=N32 libmagic=N32;; 9728 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9729 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9730 *) libsuff= shlibsuff= libmagic=never-match;; 9731 esac 9732 ;; 9733 esac 9734 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9735 shlibpath_overrides_runpath=no 9736 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9737 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9738 hardcode_into_libs=yes 9739 ;; 9740 9741# No shared lib support for Linux oldld, aout, or coff. 9742linux*oldld* | linux*aout* | linux*coff*) 9743 dynamic_linker=no 9744 ;; 9745 9746# This must be Linux ELF. 9747linux* | k*bsd*-gnu) 9748 version_type=linux 9749 need_lib_prefix=no 9750 need_version=no 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9752 soname_spec='${libname}${release}${shared_ext}$major' 9753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9754 shlibpath_var=LD_LIBRARY_PATH 9755 shlibpath_overrides_runpath=no 9756 # Some binutils ld are patched to set DT_RUNPATH 9757 save_LDFLAGS=$LDFLAGS 9758 save_libdir=$libdir 9759 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9760 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9761 cat >conftest.$ac_ext <<_ACEOF 9762/* confdefs.h. */ 9763_ACEOF 9764cat confdefs.h >>conftest.$ac_ext 9765cat >>conftest.$ac_ext <<_ACEOF 9766/* end confdefs.h. */ 9767 9768int 9769main () 9770{ 9771 9772 ; 9773 return 0; 9774} 9775_ACEOF 9776rm -f conftest.$ac_objext conftest$ac_exeext 9777if { (ac_try="$ac_link" 9778case "(($ac_try" in 9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9780 *) ac_try_echo=$ac_try;; 9781esac 9782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9783$as_echo "$ac_try_echo") >&5 9784 (eval "$ac_link") 2>conftest.er1 9785 ac_status=$? 9786 grep -v '^ *+' conftest.er1 >conftest.err 9787 rm -f conftest.er1 9788 cat conftest.err >&5 9789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9790 (exit $ac_status); } && { 9791 test -z "$ac_c_werror_flag" || 9792 test ! -s conftest.err 9793 } && test -s conftest$ac_exeext && { 9794 test "$cross_compiling" = yes || 9795 $as_test_x conftest$ac_exeext 9796 }; then 9797 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9798 shlibpath_overrides_runpath=yes 9799fi 9800 9801else 9802 $as_echo "$as_me: failed program was:" >&5 9803sed 's/^/| /' conftest.$ac_ext >&5 9804 9805 9806fi 9807 9808rm -rf conftest.dSYM 9809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9810 conftest$ac_exeext conftest.$ac_ext 9811 LDFLAGS=$save_LDFLAGS 9812 libdir=$save_libdir 9813 9814 # This implies no fast_install, which is unacceptable. 9815 # Some rework will be needed to allow for fast_install 9816 # before this can be enabled. 9817 hardcode_into_libs=yes 9818 9819 # Append ld.so.conf contents to the search path 9820 if test -f /etc/ld.so.conf; then 9821 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' ' '` 9822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9823 fi 9824 9825 # We used to test for /lib/ld.so.1 and disable shared libraries on 9826 # powerpc, because MkLinux only supported shared libraries with the 9827 # GNU dynamic linker. Since this was broken with cross compilers, 9828 # most powerpc-linux boxes support dynamic linking these days and 9829 # people can always --disable-shared, the test was removed, and we 9830 # assume the GNU/Linux dynamic linker is in use. 9831 dynamic_linker='GNU/Linux ld.so' 9832 ;; 9833 9834netbsd*) 9835 version_type=sunos 9836 need_lib_prefix=no 9837 need_version=no 9838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9841 dynamic_linker='NetBSD (a.out) ld.so' 9842 else 9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9844 soname_spec='${libname}${release}${shared_ext}$major' 9845 dynamic_linker='NetBSD ld.elf_so' 9846 fi 9847 shlibpath_var=LD_LIBRARY_PATH 9848 shlibpath_overrides_runpath=yes 9849 hardcode_into_libs=yes 9850 ;; 9851 9852newsos6) 9853 version_type=linux 9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9855 shlibpath_var=LD_LIBRARY_PATH 9856 shlibpath_overrides_runpath=yes 9857 ;; 9858 9859*nto* | *qnx*) 9860 version_type=qnx 9861 need_lib_prefix=no 9862 need_version=no 9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9864 soname_spec='${libname}${release}${shared_ext}$major' 9865 shlibpath_var=LD_LIBRARY_PATH 9866 shlibpath_overrides_runpath=no 9867 hardcode_into_libs=yes 9868 dynamic_linker='ldqnx.so' 9869 ;; 9870 9871openbsd*) 9872 version_type=sunos 9873 sys_lib_dlsearch_path_spec="/usr/lib" 9874 need_lib_prefix=no 9875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9876 case $host_os in 9877 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9878 *) need_version=no ;; 9879 esac 9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9882 shlibpath_var=LD_LIBRARY_PATH 9883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9884 case $host_os in 9885 openbsd2.[89] | openbsd2.[89].*) 9886 shlibpath_overrides_runpath=no 9887 ;; 9888 *) 9889 shlibpath_overrides_runpath=yes 9890 ;; 9891 esac 9892 else 9893 shlibpath_overrides_runpath=yes 9894 fi 9895 ;; 9896 9897os2*) 9898 libname_spec='$name' 9899 shrext_cmds=".dll" 9900 need_lib_prefix=no 9901 library_names_spec='$libname${shared_ext} $libname.a' 9902 dynamic_linker='OS/2 ld.exe' 9903 shlibpath_var=LIBPATH 9904 ;; 9905 9906osf3* | osf4* | osf5*) 9907 version_type=osf 9908 need_lib_prefix=no 9909 need_version=no 9910 soname_spec='${libname}${release}${shared_ext}$major' 9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9912 shlibpath_var=LD_LIBRARY_PATH 9913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9915 ;; 9916 9917rdos*) 9918 dynamic_linker=no 9919 ;; 9920 9921solaris*) 9922 version_type=linux 9923 need_lib_prefix=no 9924 need_version=no 9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9926 soname_spec='${libname}${release}${shared_ext}$major' 9927 shlibpath_var=LD_LIBRARY_PATH 9928 shlibpath_overrides_runpath=yes 9929 hardcode_into_libs=yes 9930 # ldd complains unless libraries are executable 9931 postinstall_cmds='chmod +x $lib' 9932 ;; 9933 9934sunos4*) 9935 version_type=sunos 9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9938 shlibpath_var=LD_LIBRARY_PATH 9939 shlibpath_overrides_runpath=yes 9940 if test "$with_gnu_ld" = yes; then 9941 need_lib_prefix=no 9942 fi 9943 need_version=yes 9944 ;; 9945 9946sysv4 | sysv4.3*) 9947 version_type=linux 9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9949 soname_spec='${libname}${release}${shared_ext}$major' 9950 shlibpath_var=LD_LIBRARY_PATH 9951 case $host_vendor in 9952 sni) 9953 shlibpath_overrides_runpath=no 9954 need_lib_prefix=no 9955 runpath_var=LD_RUN_PATH 9956 ;; 9957 siemens) 9958 need_lib_prefix=no 9959 ;; 9960 motorola) 9961 need_lib_prefix=no 9962 need_version=no 9963 shlibpath_overrides_runpath=no 9964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9965 ;; 9966 esac 9967 ;; 9968 9969sysv4*MP*) 9970 if test -d /usr/nec ;then 9971 version_type=linux 9972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9973 soname_spec='$libname${shared_ext}.$major' 9974 shlibpath_var=LD_LIBRARY_PATH 9975 fi 9976 ;; 9977 9978sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9979 version_type=freebsd-elf 9980 need_lib_prefix=no 9981 need_version=no 9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9983 soname_spec='${libname}${release}${shared_ext}$major' 9984 shlibpath_var=LD_LIBRARY_PATH 9985 shlibpath_overrides_runpath=yes 9986 hardcode_into_libs=yes 9987 if test "$with_gnu_ld" = yes; then 9988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9989 else 9990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9991 case $host_os in 9992 sco3.2v5*) 9993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9994 ;; 9995 esac 9996 fi 9997 sys_lib_dlsearch_path_spec='/usr/lib' 9998 ;; 9999 10000tpf*) 10001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10002 version_type=linux 10003 need_lib_prefix=no 10004 need_version=no 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10006 shlibpath_var=LD_LIBRARY_PATH 10007 shlibpath_overrides_runpath=no 10008 hardcode_into_libs=yes 10009 ;; 10010 10011uts4*) 10012 version_type=linux 10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10014 soname_spec='${libname}${release}${shared_ext}$major' 10015 shlibpath_var=LD_LIBRARY_PATH 10016 ;; 10017 10018*) 10019 dynamic_linker=no 10020 ;; 10021esac 10022{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10023$as_echo "$dynamic_linker" >&6; } 10024test "$dynamic_linker" = no && can_build_shared=no 10025 10026variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10027if test "$GCC" = yes; then 10028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10029fi 10030 10031if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10033fi 10034if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10036fi 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10125$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10126hardcode_action= 10127if test -n "$hardcode_libdir_flag_spec" || 10128 test -n "$runpath_var" || 10129 test "X$hardcode_automatic" = "Xyes" ; then 10130 10131 # We can hardcode non-existent directories. 10132 if test "$hardcode_direct" != no && 10133 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10134 # have to relink, otherwise we might link with an installed library 10135 # when we should be linking with a yet-to-be-installed one 10136 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10137 test "$hardcode_minus_L" != no; then 10138 # Linking always hardcodes the temporary library directory. 10139 hardcode_action=relink 10140 else 10141 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10142 hardcode_action=immediate 10143 fi 10144else 10145 # We cannot hardcode anything, or else we can only hardcode existing 10146 # directories. 10147 hardcode_action=unsupported 10148fi 10149{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10150$as_echo "$hardcode_action" >&6; } 10151 10152if test "$hardcode_action" = relink || 10153 test "$inherit_rpath" = yes; then 10154 # Fast installation is not supported 10155 enable_fast_install=no 10156elif test "$shlibpath_overrides_runpath" = yes || 10157 test "$enable_shared" = no; then 10158 # Fast installation is not necessary 10159 enable_fast_install=needless 10160fi 10161 10162 10163 10164 10165 10166 10167 if test "x$enable_dlopen" != xyes; then 10168 enable_dlopen=unknown 10169 enable_dlopen_self=unknown 10170 enable_dlopen_self_static=unknown 10171else 10172 lt_cv_dlopen=no 10173 lt_cv_dlopen_libs= 10174 10175 case $host_os in 10176 beos*) 10177 lt_cv_dlopen="load_add_on" 10178 lt_cv_dlopen_libs= 10179 lt_cv_dlopen_self=yes 10180 ;; 10181 10182 mingw* | pw32* | cegcc*) 10183 lt_cv_dlopen="LoadLibrary" 10184 lt_cv_dlopen_libs= 10185 ;; 10186 10187 cygwin*) 10188 lt_cv_dlopen="dlopen" 10189 lt_cv_dlopen_libs= 10190 ;; 10191 10192 darwin*) 10193 # if libdl is installed we need to link against it 10194 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10195$as_echo_n "checking for dlopen in -ldl... " >&6; } 10196if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10197 $as_echo_n "(cached) " >&6 10198else 10199 ac_check_lib_save_LIBS=$LIBS 10200LIBS="-ldl $LIBS" 10201cat >conftest.$ac_ext <<_ACEOF 10202/* confdefs.h. */ 10203_ACEOF 10204cat confdefs.h >>conftest.$ac_ext 10205cat >>conftest.$ac_ext <<_ACEOF 10206/* end confdefs.h. */ 10207 10208/* Override any GCC internal prototype to avoid an error. 10209 Use char because int might match the return type of a GCC 10210 builtin and then its argument prototype would still apply. */ 10211#ifdef __cplusplus 10212extern "C" 10213#endif 10214char dlopen (); 10215int 10216main () 10217{ 10218return dlopen (); 10219 ; 10220 return 0; 10221} 10222_ACEOF 10223rm -f conftest.$ac_objext conftest$ac_exeext 10224if { (ac_try="$ac_link" 10225case "(($ac_try" in 10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10227 *) ac_try_echo=$ac_try;; 10228esac 10229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10230$as_echo "$ac_try_echo") >&5 10231 (eval "$ac_link") 2>conftest.er1 10232 ac_status=$? 10233 grep -v '^ *+' conftest.er1 >conftest.err 10234 rm -f conftest.er1 10235 cat conftest.err >&5 10236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10237 (exit $ac_status); } && { 10238 test -z "$ac_c_werror_flag" || 10239 test ! -s conftest.err 10240 } && test -s conftest$ac_exeext && { 10241 test "$cross_compiling" = yes || 10242 $as_test_x conftest$ac_exeext 10243 }; then 10244 ac_cv_lib_dl_dlopen=yes 10245else 10246 $as_echo "$as_me: failed program was:" >&5 10247sed 's/^/| /' conftest.$ac_ext >&5 10248 10249 ac_cv_lib_dl_dlopen=no 10250fi 10251 10252rm -rf conftest.dSYM 10253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10254 conftest$ac_exeext conftest.$ac_ext 10255LIBS=$ac_check_lib_save_LIBS 10256fi 10257{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10258$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10259if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10261else 10262 10263 lt_cv_dlopen="dyld" 10264 lt_cv_dlopen_libs= 10265 lt_cv_dlopen_self=yes 10266 10267fi 10268 10269 ;; 10270 10271 *) 10272 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10273$as_echo_n "checking for shl_load... " >&6; } 10274if test "${ac_cv_func_shl_load+set}" = set; then 10275 $as_echo_n "(cached) " >&6 10276else 10277 cat >conftest.$ac_ext <<_ACEOF 10278/* confdefs.h. */ 10279_ACEOF 10280cat confdefs.h >>conftest.$ac_ext 10281cat >>conftest.$ac_ext <<_ACEOF 10282/* end confdefs.h. */ 10283/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10284 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10285#define shl_load innocuous_shl_load 10286 10287/* System header to define __stub macros and hopefully few prototypes, 10288 which can conflict with char shl_load (); below. 10289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10290 <limits.h> exists even on freestanding compilers. */ 10291 10292#ifdef __STDC__ 10293# include <limits.h> 10294#else 10295# include <assert.h> 10296#endif 10297 10298#undef shl_load 10299 10300/* Override any GCC internal prototype to avoid an error. 10301 Use char because int might match the return type of a GCC 10302 builtin and then its argument prototype would still apply. */ 10303#ifdef __cplusplus 10304extern "C" 10305#endif 10306char shl_load (); 10307/* The GNU C library defines this for functions which it implements 10308 to always fail with ENOSYS. Some functions are actually named 10309 something starting with __ and the normal name is an alias. */ 10310#if defined __stub_shl_load || defined __stub___shl_load 10311choke me 10312#endif 10313 10314int 10315main () 10316{ 10317return shl_load (); 10318 ; 10319 return 0; 10320} 10321_ACEOF 10322rm -f conftest.$ac_objext conftest$ac_exeext 10323if { (ac_try="$ac_link" 10324case "(($ac_try" in 10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10326 *) ac_try_echo=$ac_try;; 10327esac 10328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10329$as_echo "$ac_try_echo") >&5 10330 (eval "$ac_link") 2>conftest.er1 10331 ac_status=$? 10332 grep -v '^ *+' conftest.er1 >conftest.err 10333 rm -f conftest.er1 10334 cat conftest.err >&5 10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10336 (exit $ac_status); } && { 10337 test -z "$ac_c_werror_flag" || 10338 test ! -s conftest.err 10339 } && test -s conftest$ac_exeext && { 10340 test "$cross_compiling" = yes || 10341 $as_test_x conftest$ac_exeext 10342 }; then 10343 ac_cv_func_shl_load=yes 10344else 10345 $as_echo "$as_me: failed program was:" >&5 10346sed 's/^/| /' conftest.$ac_ext >&5 10347 10348 ac_cv_func_shl_load=no 10349fi 10350 10351rm -rf conftest.dSYM 10352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10353 conftest$ac_exeext conftest.$ac_ext 10354fi 10355{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10356$as_echo "$ac_cv_func_shl_load" >&6; } 10357if test "x$ac_cv_func_shl_load" = x""yes; then 10358 lt_cv_dlopen="shl_load" 10359else 10360 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10361$as_echo_n "checking for shl_load in -ldld... " >&6; } 10362if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10363 $as_echo_n "(cached) " >&6 10364else 10365 ac_check_lib_save_LIBS=$LIBS 10366LIBS="-ldld $LIBS" 10367cat >conftest.$ac_ext <<_ACEOF 10368/* confdefs.h. */ 10369_ACEOF 10370cat confdefs.h >>conftest.$ac_ext 10371cat >>conftest.$ac_ext <<_ACEOF 10372/* end confdefs.h. */ 10373 10374/* Override any GCC internal prototype to avoid an error. 10375 Use char because int might match the return type of a GCC 10376 builtin and then its argument prototype would still apply. */ 10377#ifdef __cplusplus 10378extern "C" 10379#endif 10380char shl_load (); 10381int 10382main () 10383{ 10384return shl_load (); 10385 ; 10386 return 0; 10387} 10388_ACEOF 10389rm -f conftest.$ac_objext conftest$ac_exeext 10390if { (ac_try="$ac_link" 10391case "(($ac_try" in 10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10393 *) ac_try_echo=$ac_try;; 10394esac 10395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10396$as_echo "$ac_try_echo") >&5 10397 (eval "$ac_link") 2>conftest.er1 10398 ac_status=$? 10399 grep -v '^ *+' conftest.er1 >conftest.err 10400 rm -f conftest.er1 10401 cat conftest.err >&5 10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10403 (exit $ac_status); } && { 10404 test -z "$ac_c_werror_flag" || 10405 test ! -s conftest.err 10406 } && test -s conftest$ac_exeext && { 10407 test "$cross_compiling" = yes || 10408 $as_test_x conftest$ac_exeext 10409 }; then 10410 ac_cv_lib_dld_shl_load=yes 10411else 10412 $as_echo "$as_me: failed program was:" >&5 10413sed 's/^/| /' conftest.$ac_ext >&5 10414 10415 ac_cv_lib_dld_shl_load=no 10416fi 10417 10418rm -rf conftest.dSYM 10419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10420 conftest$ac_exeext conftest.$ac_ext 10421LIBS=$ac_check_lib_save_LIBS 10422fi 10423{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10424$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10425if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10427else 10428 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10429$as_echo_n "checking for dlopen... " >&6; } 10430if test "${ac_cv_func_dlopen+set}" = set; then 10431 $as_echo_n "(cached) " >&6 10432else 10433 cat >conftest.$ac_ext <<_ACEOF 10434/* confdefs.h. */ 10435_ACEOF 10436cat confdefs.h >>conftest.$ac_ext 10437cat >>conftest.$ac_ext <<_ACEOF 10438/* end confdefs.h. */ 10439/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10441#define dlopen innocuous_dlopen 10442 10443/* System header to define __stub macros and hopefully few prototypes, 10444 which can conflict with char dlopen (); below. 10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10446 <limits.h> exists even on freestanding compilers. */ 10447 10448#ifdef __STDC__ 10449# include <limits.h> 10450#else 10451# include <assert.h> 10452#endif 10453 10454#undef dlopen 10455 10456/* Override any GCC internal prototype to avoid an error. 10457 Use char because int might match the return type of a GCC 10458 builtin and then its argument prototype would still apply. */ 10459#ifdef __cplusplus 10460extern "C" 10461#endif 10462char dlopen (); 10463/* The GNU C library defines this for functions which it implements 10464 to always fail with ENOSYS. Some functions are actually named 10465 something starting with __ and the normal name is an alias. */ 10466#if defined __stub_dlopen || defined __stub___dlopen 10467choke me 10468#endif 10469 10470int 10471main () 10472{ 10473return dlopen (); 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478rm -f conftest.$ac_objext conftest$ac_exeext 10479if { (ac_try="$ac_link" 10480case "(($ac_try" in 10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10482 *) ac_try_echo=$ac_try;; 10483esac 10484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10485$as_echo "$ac_try_echo") >&5 10486 (eval "$ac_link") 2>conftest.er1 10487 ac_status=$? 10488 grep -v '^ *+' conftest.er1 >conftest.err 10489 rm -f conftest.er1 10490 cat conftest.err >&5 10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10492 (exit $ac_status); } && { 10493 test -z "$ac_c_werror_flag" || 10494 test ! -s conftest.err 10495 } && test -s conftest$ac_exeext && { 10496 test "$cross_compiling" = yes || 10497 $as_test_x conftest$ac_exeext 10498 }; then 10499 ac_cv_func_dlopen=yes 10500else 10501 $as_echo "$as_me: failed program was:" >&5 10502sed 's/^/| /' conftest.$ac_ext >&5 10503 10504 ac_cv_func_dlopen=no 10505fi 10506 10507rm -rf conftest.dSYM 10508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10509 conftest$ac_exeext conftest.$ac_ext 10510fi 10511{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10512$as_echo "$ac_cv_func_dlopen" >&6; } 10513if test "x$ac_cv_func_dlopen" = x""yes; then 10514 lt_cv_dlopen="dlopen" 10515else 10516 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10517$as_echo_n "checking for dlopen in -ldl... " >&6; } 10518if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10519 $as_echo_n "(cached) " >&6 10520else 10521 ac_check_lib_save_LIBS=$LIBS 10522LIBS="-ldl $LIBS" 10523cat >conftest.$ac_ext <<_ACEOF 10524/* confdefs.h. */ 10525_ACEOF 10526cat confdefs.h >>conftest.$ac_ext 10527cat >>conftest.$ac_ext <<_ACEOF 10528/* end confdefs.h. */ 10529 10530/* Override any GCC internal prototype to avoid an error. 10531 Use char because int might match the return type of a GCC 10532 builtin and then its argument prototype would still apply. */ 10533#ifdef __cplusplus 10534extern "C" 10535#endif 10536char dlopen (); 10537int 10538main () 10539{ 10540return dlopen (); 10541 ; 10542 return 0; 10543} 10544_ACEOF 10545rm -f conftest.$ac_objext conftest$ac_exeext 10546if { (ac_try="$ac_link" 10547case "(($ac_try" in 10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10549 *) ac_try_echo=$ac_try;; 10550esac 10551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10552$as_echo "$ac_try_echo") >&5 10553 (eval "$ac_link") 2>conftest.er1 10554 ac_status=$? 10555 grep -v '^ *+' conftest.er1 >conftest.err 10556 rm -f conftest.er1 10557 cat conftest.err >&5 10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 (exit $ac_status); } && { 10560 test -z "$ac_c_werror_flag" || 10561 test ! -s conftest.err 10562 } && test -s conftest$ac_exeext && { 10563 test "$cross_compiling" = yes || 10564 $as_test_x conftest$ac_exeext 10565 }; then 10566 ac_cv_lib_dl_dlopen=yes 10567else 10568 $as_echo "$as_me: failed program was:" >&5 10569sed 's/^/| /' conftest.$ac_ext >&5 10570 10571 ac_cv_lib_dl_dlopen=no 10572fi 10573 10574rm -rf conftest.dSYM 10575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10576 conftest$ac_exeext conftest.$ac_ext 10577LIBS=$ac_check_lib_save_LIBS 10578fi 10579{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10580$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10581if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10583else 10584 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10585$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10586if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10587 $as_echo_n "(cached) " >&6 10588else 10589 ac_check_lib_save_LIBS=$LIBS 10590LIBS="-lsvld $LIBS" 10591cat >conftest.$ac_ext <<_ACEOF 10592/* confdefs.h. */ 10593_ACEOF 10594cat confdefs.h >>conftest.$ac_ext 10595cat >>conftest.$ac_ext <<_ACEOF 10596/* end confdefs.h. */ 10597 10598/* Override any GCC internal prototype to avoid an error. 10599 Use char because int might match the return type of a GCC 10600 builtin and then its argument prototype would still apply. */ 10601#ifdef __cplusplus 10602extern "C" 10603#endif 10604char dlopen (); 10605int 10606main () 10607{ 10608return dlopen (); 10609 ; 10610 return 0; 10611} 10612_ACEOF 10613rm -f conftest.$ac_objext conftest$ac_exeext 10614if { (ac_try="$ac_link" 10615case "(($ac_try" in 10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10617 *) ac_try_echo=$ac_try;; 10618esac 10619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10620$as_echo "$ac_try_echo") >&5 10621 (eval "$ac_link") 2>conftest.er1 10622 ac_status=$? 10623 grep -v '^ *+' conftest.er1 >conftest.err 10624 rm -f conftest.er1 10625 cat conftest.err >&5 10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10627 (exit $ac_status); } && { 10628 test -z "$ac_c_werror_flag" || 10629 test ! -s conftest.err 10630 } && test -s conftest$ac_exeext && { 10631 test "$cross_compiling" = yes || 10632 $as_test_x conftest$ac_exeext 10633 }; then 10634 ac_cv_lib_svld_dlopen=yes 10635else 10636 $as_echo "$as_me: failed program was:" >&5 10637sed 's/^/| /' conftest.$ac_ext >&5 10638 10639 ac_cv_lib_svld_dlopen=no 10640fi 10641 10642rm -rf conftest.dSYM 10643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10644 conftest$ac_exeext conftest.$ac_ext 10645LIBS=$ac_check_lib_save_LIBS 10646fi 10647{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10648$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10649if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10651else 10652 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10653$as_echo_n "checking for dld_link in -ldld... " >&6; } 10654if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10655 $as_echo_n "(cached) " >&6 10656else 10657 ac_check_lib_save_LIBS=$LIBS 10658LIBS="-ldld $LIBS" 10659cat >conftest.$ac_ext <<_ACEOF 10660/* confdefs.h. */ 10661_ACEOF 10662cat confdefs.h >>conftest.$ac_ext 10663cat >>conftest.$ac_ext <<_ACEOF 10664/* end confdefs.h. */ 10665 10666/* Override any GCC internal prototype to avoid an error. 10667 Use char because int might match the return type of a GCC 10668 builtin and then its argument prototype would still apply. */ 10669#ifdef __cplusplus 10670extern "C" 10671#endif 10672char dld_link (); 10673int 10674main () 10675{ 10676return dld_link (); 10677 ; 10678 return 0; 10679} 10680_ACEOF 10681rm -f conftest.$ac_objext conftest$ac_exeext 10682if { (ac_try="$ac_link" 10683case "(($ac_try" in 10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10685 *) ac_try_echo=$ac_try;; 10686esac 10687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10688$as_echo "$ac_try_echo") >&5 10689 (eval "$ac_link") 2>conftest.er1 10690 ac_status=$? 10691 grep -v '^ *+' conftest.er1 >conftest.err 10692 rm -f conftest.er1 10693 cat conftest.err >&5 10694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10695 (exit $ac_status); } && { 10696 test -z "$ac_c_werror_flag" || 10697 test ! -s conftest.err 10698 } && test -s conftest$ac_exeext && { 10699 test "$cross_compiling" = yes || 10700 $as_test_x conftest$ac_exeext 10701 }; then 10702 ac_cv_lib_dld_dld_link=yes 10703else 10704 $as_echo "$as_me: failed program was:" >&5 10705sed 's/^/| /' conftest.$ac_ext >&5 10706 10707 ac_cv_lib_dld_dld_link=no 10708fi 10709 10710rm -rf conftest.dSYM 10711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10712 conftest$ac_exeext conftest.$ac_ext 10713LIBS=$ac_check_lib_save_LIBS 10714fi 10715{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10716$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10717if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10719fi 10720 10721 10722fi 10723 10724 10725fi 10726 10727 10728fi 10729 10730 10731fi 10732 10733 10734fi 10735 10736 ;; 10737 esac 10738 10739 if test "x$lt_cv_dlopen" != xno; then 10740 enable_dlopen=yes 10741 else 10742 enable_dlopen=no 10743 fi 10744 10745 case $lt_cv_dlopen in 10746 dlopen) 10747 save_CPPFLAGS="$CPPFLAGS" 10748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10749 10750 save_LDFLAGS="$LDFLAGS" 10751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10752 10753 save_LIBS="$LIBS" 10754 LIBS="$lt_cv_dlopen_libs $LIBS" 10755 10756 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10757$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10758if test "${lt_cv_dlopen_self+set}" = set; then 10759 $as_echo_n "(cached) " >&6 10760else 10761 if test "$cross_compiling" = yes; then : 10762 lt_cv_dlopen_self=cross 10763else 10764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10765 lt_status=$lt_dlunknown 10766 cat > conftest.$ac_ext <<_LT_EOF 10767#line 10767 "configure" 10768#include "confdefs.h" 10769 10770#if HAVE_DLFCN_H 10771#include <dlfcn.h> 10772#endif 10773 10774#include <stdio.h> 10775 10776#ifdef RTLD_GLOBAL 10777# define LT_DLGLOBAL RTLD_GLOBAL 10778#else 10779# ifdef DL_GLOBAL 10780# define LT_DLGLOBAL DL_GLOBAL 10781# else 10782# define LT_DLGLOBAL 0 10783# endif 10784#endif 10785 10786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10787 find out it does not work in some platform. */ 10788#ifndef LT_DLLAZY_OR_NOW 10789# ifdef RTLD_LAZY 10790# define LT_DLLAZY_OR_NOW RTLD_LAZY 10791# else 10792# ifdef DL_LAZY 10793# define LT_DLLAZY_OR_NOW DL_LAZY 10794# else 10795# ifdef RTLD_NOW 10796# define LT_DLLAZY_OR_NOW RTLD_NOW 10797# else 10798# ifdef DL_NOW 10799# define LT_DLLAZY_OR_NOW DL_NOW 10800# else 10801# define LT_DLLAZY_OR_NOW 0 10802# endif 10803# endif 10804# endif 10805# endif 10806#endif 10807 10808void fnord() { int i=42;} 10809int main () 10810{ 10811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10812 int status = $lt_dlunknown; 10813 10814 if (self) 10815 { 10816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10818 /* dlclose (self); */ 10819 } 10820 else 10821 puts (dlerror ()); 10822 10823 return status; 10824} 10825_LT_EOF 10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10827 (eval $ac_link) 2>&5 10828 ac_status=$? 10829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10830 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10831 (./conftest; exit; ) >&5 2>/dev/null 10832 lt_status=$? 10833 case x$lt_status in 10834 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10835 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10836 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10837 esac 10838 else : 10839 # compilation failed 10840 lt_cv_dlopen_self=no 10841 fi 10842fi 10843rm -fr conftest* 10844 10845 10846fi 10847{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10848$as_echo "$lt_cv_dlopen_self" >&6; } 10849 10850 if test "x$lt_cv_dlopen_self" = xyes; then 10851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10852 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10853$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10854if test "${lt_cv_dlopen_self_static+set}" = set; then 10855 $as_echo_n "(cached) " >&6 10856else 10857 if test "$cross_compiling" = yes; then : 10858 lt_cv_dlopen_self_static=cross 10859else 10860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10861 lt_status=$lt_dlunknown 10862 cat > conftest.$ac_ext <<_LT_EOF 10863#line 10863 "configure" 10864#include "confdefs.h" 10865 10866#if HAVE_DLFCN_H 10867#include <dlfcn.h> 10868#endif 10869 10870#include <stdio.h> 10871 10872#ifdef RTLD_GLOBAL 10873# define LT_DLGLOBAL RTLD_GLOBAL 10874#else 10875# ifdef DL_GLOBAL 10876# define LT_DLGLOBAL DL_GLOBAL 10877# else 10878# define LT_DLGLOBAL 0 10879# endif 10880#endif 10881 10882/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10883 find out it does not work in some platform. */ 10884#ifndef LT_DLLAZY_OR_NOW 10885# ifdef RTLD_LAZY 10886# define LT_DLLAZY_OR_NOW RTLD_LAZY 10887# else 10888# ifdef DL_LAZY 10889# define LT_DLLAZY_OR_NOW DL_LAZY 10890# else 10891# ifdef RTLD_NOW 10892# define LT_DLLAZY_OR_NOW RTLD_NOW 10893# else 10894# ifdef DL_NOW 10895# define LT_DLLAZY_OR_NOW DL_NOW 10896# else 10897# define LT_DLLAZY_OR_NOW 0 10898# endif 10899# endif 10900# endif 10901# endif 10902#endif 10903 10904void fnord() { int i=42;} 10905int main () 10906{ 10907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10908 int status = $lt_dlunknown; 10909 10910 if (self) 10911 { 10912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10914 /* dlclose (self); */ 10915 } 10916 else 10917 puts (dlerror ()); 10918 10919 return status; 10920} 10921_LT_EOF 10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10923 (eval $ac_link) 2>&5 10924 ac_status=$? 10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10927 (./conftest; exit; ) >&5 2>/dev/null 10928 lt_status=$? 10929 case x$lt_status in 10930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10932 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10933 esac 10934 else : 10935 # compilation failed 10936 lt_cv_dlopen_self_static=no 10937 fi 10938fi 10939rm -fr conftest* 10940 10941 10942fi 10943{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10944$as_echo "$lt_cv_dlopen_self_static" >&6; } 10945 fi 10946 10947 CPPFLAGS="$save_CPPFLAGS" 10948 LDFLAGS="$save_LDFLAGS" 10949 LIBS="$save_LIBS" 10950 ;; 10951 esac 10952 10953 case $lt_cv_dlopen_self in 10954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10955 *) enable_dlopen_self=unknown ;; 10956 esac 10957 10958 case $lt_cv_dlopen_self_static in 10959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10960 *) enable_dlopen_self_static=unknown ;; 10961 esac 10962fi 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980striplib= 10981old_striplib= 10982{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10983$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10984if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10986 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10987 { $as_echo "$as_me:$LINENO: result: yes" >&5 10988$as_echo "yes" >&6; } 10989else 10990# FIXME - insert some real tests, host_os isn't really good enough 10991 case $host_os in 10992 darwin*) 10993 if test -n "$STRIP" ; then 10994 striplib="$STRIP -x" 10995 old_striplib="$STRIP -S" 10996 { $as_echo "$as_me:$LINENO: result: yes" >&5 10997$as_echo "yes" >&6; } 10998 else 10999 { $as_echo "$as_me:$LINENO: result: no" >&5 11000$as_echo "no" >&6; } 11001 fi 11002 ;; 11003 *) 11004 { $as_echo "$as_me:$LINENO: result: no" >&5 11005$as_echo "no" >&6; } 11006 ;; 11007 esac 11008fi 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 # Report which library types will actually be built 11022 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11023$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11024 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11025$as_echo "$can_build_shared" >&6; } 11026 11027 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11028$as_echo_n "checking whether to build shared libraries... " >&6; } 11029 test "$can_build_shared" = "no" && enable_shared=no 11030 11031 # On AIX, shared libraries and static libraries use the same namespace, and 11032 # are all built from PIC. 11033 case $host_os in 11034 aix3*) 11035 test "$enable_shared" = yes && enable_static=no 11036 if test -n "$RANLIB"; then 11037 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11038 postinstall_cmds='$RANLIB $lib' 11039 fi 11040 ;; 11041 11042 aix[4-9]*) 11043 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11044 test "$enable_shared" = yes && enable_static=no 11045 fi 11046 ;; 11047 esac 11048 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11049$as_echo "$enable_shared" >&6; } 11050 11051 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11052$as_echo_n "checking whether to build static libraries... " >&6; } 11053 # Make sure either enable_shared or enable_static is yes. 11054 test "$enable_shared" = yes || enable_static=yes 11055 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11056$as_echo "$enable_static" >&6; } 11057 11058 11059 11060 11061fi 11062ac_ext=c 11063ac_cpp='$CPP $CPPFLAGS' 11064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11066ac_compiler_gnu=$ac_cv_c_compiler_gnu 11067 11068CC="$lt_save_CC" 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 ac_config_commands="$ac_config_commands libtool" 11083 11084 11085 11086 11087# Only expand once: 11088 11089 11090ac_ext=c 11091ac_cpp='$CPP $CPPFLAGS' 11092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11094ac_compiler_gnu=$ac_cv_c_compiler_gnu 11095if test -n "$ac_tool_prefix"; then 11096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11097set dummy ${ac_tool_prefix}gcc; ac_word=$2 11098{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11099$as_echo_n "checking for $ac_word... " >&6; } 11100if test "${ac_cv_prog_CC+set}" = set; then 11101 $as_echo_n "(cached) " >&6 11102else 11103 if test -n "$CC"; then 11104 ac_cv_prog_CC="$CC" # Let the user override the test. 11105else 11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11107for as_dir in $PATH 11108do 11109 IFS=$as_save_IFS 11110 test -z "$as_dir" && as_dir=. 11111 for ac_exec_ext in '' $ac_executable_extensions; do 11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11113 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11115 break 2 11116 fi 11117done 11118done 11119IFS=$as_save_IFS 11120 11121fi 11122fi 11123CC=$ac_cv_prog_CC 11124if test -n "$CC"; then 11125 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11126$as_echo "$CC" >&6; } 11127else 11128 { $as_echo "$as_me:$LINENO: result: no" >&5 11129$as_echo "no" >&6; } 11130fi 11131 11132 11133fi 11134if test -z "$ac_cv_prog_CC"; then 11135 ac_ct_CC=$CC 11136 # Extract the first word of "gcc", so it can be a program name with args. 11137set dummy gcc; ac_word=$2 11138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11139$as_echo_n "checking for $ac_word... " >&6; } 11140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11141 $as_echo_n "(cached) " >&6 11142else 11143 if test -n "$ac_ct_CC"; then 11144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11145else 11146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11147for as_dir in $PATH 11148do 11149 IFS=$as_save_IFS 11150 test -z "$as_dir" && as_dir=. 11151 for ac_exec_ext in '' $ac_executable_extensions; do 11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11153 ac_cv_prog_ac_ct_CC="gcc" 11154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11155 break 2 11156 fi 11157done 11158done 11159IFS=$as_save_IFS 11160 11161fi 11162fi 11163ac_ct_CC=$ac_cv_prog_ac_ct_CC 11164if test -n "$ac_ct_CC"; then 11165 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11166$as_echo "$ac_ct_CC" >&6; } 11167else 11168 { $as_echo "$as_me:$LINENO: result: no" >&5 11169$as_echo "no" >&6; } 11170fi 11171 11172 if test "x$ac_ct_CC" = x; then 11173 CC="" 11174 else 11175 case $cross_compiling:$ac_tool_warned in 11176yes:) 11177{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11179ac_tool_warned=yes ;; 11180esac 11181 CC=$ac_ct_CC 11182 fi 11183else 11184 CC="$ac_cv_prog_CC" 11185fi 11186 11187if test -z "$CC"; then 11188 if test -n "$ac_tool_prefix"; then 11189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11190set dummy ${ac_tool_prefix}cc; ac_word=$2 11191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11192$as_echo_n "checking for $ac_word... " >&6; } 11193if test "${ac_cv_prog_CC+set}" = set; then 11194 $as_echo_n "(cached) " >&6 11195else 11196 if test -n "$CC"; then 11197 ac_cv_prog_CC="$CC" # Let the user override the test. 11198else 11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11200for as_dir in $PATH 11201do 11202 IFS=$as_save_IFS 11203 test -z "$as_dir" && as_dir=. 11204 for ac_exec_ext in '' $ac_executable_extensions; do 11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11206 ac_cv_prog_CC="${ac_tool_prefix}cc" 11207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11208 break 2 11209 fi 11210done 11211done 11212IFS=$as_save_IFS 11213 11214fi 11215fi 11216CC=$ac_cv_prog_CC 11217if test -n "$CC"; then 11218 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11219$as_echo "$CC" >&6; } 11220else 11221 { $as_echo "$as_me:$LINENO: result: no" >&5 11222$as_echo "no" >&6; } 11223fi 11224 11225 11226 fi 11227fi 11228if test -z "$CC"; then 11229 # Extract the first word of "cc", so it can be a program name with args. 11230set dummy cc; ac_word=$2 11231{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11232$as_echo_n "checking for $ac_word... " >&6; } 11233if test "${ac_cv_prog_CC+set}" = set; then 11234 $as_echo_n "(cached) " >&6 11235else 11236 if test -n "$CC"; then 11237 ac_cv_prog_CC="$CC" # Let the user override the test. 11238else 11239 ac_prog_rejected=no 11240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11241for as_dir in $PATH 11242do 11243 IFS=$as_save_IFS 11244 test -z "$as_dir" && as_dir=. 11245 for ac_exec_ext in '' $ac_executable_extensions; do 11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11248 ac_prog_rejected=yes 11249 continue 11250 fi 11251 ac_cv_prog_CC="cc" 11252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11253 break 2 11254 fi 11255done 11256done 11257IFS=$as_save_IFS 11258 11259if test $ac_prog_rejected = yes; then 11260 # We found a bogon in the path, so make sure we never use it. 11261 set dummy $ac_cv_prog_CC 11262 shift 11263 if test $# != 0; then 11264 # We chose a different compiler from the bogus one. 11265 # However, it has the same basename, so the bogon will be chosen 11266 # first if we set CC to just the basename; use the full file name. 11267 shift 11268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11269 fi 11270fi 11271fi 11272fi 11273CC=$ac_cv_prog_CC 11274if test -n "$CC"; then 11275 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11276$as_echo "$CC" >&6; } 11277else 11278 { $as_echo "$as_me:$LINENO: result: no" >&5 11279$as_echo "no" >&6; } 11280fi 11281 11282 11283fi 11284if test -z "$CC"; then 11285 if test -n "$ac_tool_prefix"; then 11286 for ac_prog in cl.exe 11287 do 11288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11289set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11291$as_echo_n "checking for $ac_word... " >&6; } 11292if test "${ac_cv_prog_CC+set}" = set; then 11293 $as_echo_n "(cached) " >&6 11294else 11295 if test -n "$CC"; then 11296 ac_cv_prog_CC="$CC" # Let the user override the test. 11297else 11298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11299for as_dir in $PATH 11300do 11301 IFS=$as_save_IFS 11302 test -z "$as_dir" && as_dir=. 11303 for ac_exec_ext in '' $ac_executable_extensions; do 11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11307 break 2 11308 fi 11309done 11310done 11311IFS=$as_save_IFS 11312 11313fi 11314fi 11315CC=$ac_cv_prog_CC 11316if test -n "$CC"; then 11317 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11318$as_echo "$CC" >&6; } 11319else 11320 { $as_echo "$as_me:$LINENO: result: no" >&5 11321$as_echo "no" >&6; } 11322fi 11323 11324 11325 test -n "$CC" && break 11326 done 11327fi 11328if test -z "$CC"; then 11329 ac_ct_CC=$CC 11330 for ac_prog in cl.exe 11331do 11332 # Extract the first word of "$ac_prog", so it can be a program name with args. 11333set dummy $ac_prog; ac_word=$2 11334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11335$as_echo_n "checking for $ac_word... " >&6; } 11336if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11337 $as_echo_n "(cached) " >&6 11338else 11339 if test -n "$ac_ct_CC"; then 11340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11341else 11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11343for as_dir in $PATH 11344do 11345 IFS=$as_save_IFS 11346 test -z "$as_dir" && as_dir=. 11347 for ac_exec_ext in '' $ac_executable_extensions; do 11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11349 ac_cv_prog_ac_ct_CC="$ac_prog" 11350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11351 break 2 11352 fi 11353done 11354done 11355IFS=$as_save_IFS 11356 11357fi 11358fi 11359ac_ct_CC=$ac_cv_prog_ac_ct_CC 11360if test -n "$ac_ct_CC"; then 11361 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11362$as_echo "$ac_ct_CC" >&6; } 11363else 11364 { $as_echo "$as_me:$LINENO: result: no" >&5 11365$as_echo "no" >&6; } 11366fi 11367 11368 11369 test -n "$ac_ct_CC" && break 11370done 11371 11372 if test "x$ac_ct_CC" = x; then 11373 CC="" 11374 else 11375 case $cross_compiling:$ac_tool_warned in 11376yes:) 11377{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11379ac_tool_warned=yes ;; 11380esac 11381 CC=$ac_ct_CC 11382 fi 11383fi 11384 11385fi 11386 11387 11388test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11390{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11391See \`config.log' for more details." >&5 11392$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11393See \`config.log' for more details." >&2;} 11394 { (exit 1); exit 1; }; }; } 11395 11396# Provide some information about the compiler. 11397$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11398set X $ac_compile 11399ac_compiler=$2 11400{ (ac_try="$ac_compiler --version >&5" 11401case "(($ac_try" in 11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11403 *) ac_try_echo=$ac_try;; 11404esac 11405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11406$as_echo "$ac_try_echo") >&5 11407 (eval "$ac_compiler --version >&5") 2>&5 11408 ac_status=$? 11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11410 (exit $ac_status); } 11411{ (ac_try="$ac_compiler -v >&5" 11412case "(($ac_try" in 11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11414 *) ac_try_echo=$ac_try;; 11415esac 11416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11417$as_echo "$ac_try_echo") >&5 11418 (eval "$ac_compiler -v >&5") 2>&5 11419 ac_status=$? 11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 (exit $ac_status); } 11422{ (ac_try="$ac_compiler -V >&5" 11423case "(($ac_try" in 11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11425 *) ac_try_echo=$ac_try;; 11426esac 11427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11428$as_echo "$ac_try_echo") >&5 11429 (eval "$ac_compiler -V >&5") 2>&5 11430 ac_status=$? 11431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 (exit $ac_status); } 11433 11434{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11435$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11436if test "${ac_cv_c_compiler_gnu+set}" = set; then 11437 $as_echo_n "(cached) " >&6 11438else 11439 cat >conftest.$ac_ext <<_ACEOF 11440/* confdefs.h. */ 11441_ACEOF 11442cat confdefs.h >>conftest.$ac_ext 11443cat >>conftest.$ac_ext <<_ACEOF 11444/* end confdefs.h. */ 11445 11446int 11447main () 11448{ 11449#ifndef __GNUC__ 11450 choke me 11451#endif 11452 11453 ; 11454 return 0; 11455} 11456_ACEOF 11457rm -f conftest.$ac_objext 11458if { (ac_try="$ac_compile" 11459case "(($ac_try" in 11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11461 *) ac_try_echo=$ac_try;; 11462esac 11463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11464$as_echo "$ac_try_echo") >&5 11465 (eval "$ac_compile") 2>conftest.er1 11466 ac_status=$? 11467 grep -v '^ *+' conftest.er1 >conftest.err 11468 rm -f conftest.er1 11469 cat conftest.err >&5 11470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11471 (exit $ac_status); } && { 11472 test -z "$ac_c_werror_flag" || 11473 test ! -s conftest.err 11474 } && test -s conftest.$ac_objext; then 11475 ac_compiler_gnu=yes 11476else 11477 $as_echo "$as_me: failed program was:" >&5 11478sed 's/^/| /' conftest.$ac_ext >&5 11479 11480 ac_compiler_gnu=no 11481fi 11482 11483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11484ac_cv_c_compiler_gnu=$ac_compiler_gnu 11485 11486fi 11487{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11488$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11489if test $ac_compiler_gnu = yes; then 11490 GCC=yes 11491else 11492 GCC= 11493fi 11494ac_test_CFLAGS=${CFLAGS+set} 11495ac_save_CFLAGS=$CFLAGS 11496{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11497$as_echo_n "checking whether $CC accepts -g... " >&6; } 11498if test "${ac_cv_prog_cc_g+set}" = set; then 11499 $as_echo_n "(cached) " >&6 11500else 11501 ac_save_c_werror_flag=$ac_c_werror_flag 11502 ac_c_werror_flag=yes 11503 ac_cv_prog_cc_g=no 11504 CFLAGS="-g" 11505 cat >conftest.$ac_ext <<_ACEOF 11506/* confdefs.h. */ 11507_ACEOF 11508cat confdefs.h >>conftest.$ac_ext 11509cat >>conftest.$ac_ext <<_ACEOF 11510/* end confdefs.h. */ 11511 11512int 11513main () 11514{ 11515 11516 ; 11517 return 0; 11518} 11519_ACEOF 11520rm -f conftest.$ac_objext 11521if { (ac_try="$ac_compile" 11522case "(($ac_try" in 11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11524 *) ac_try_echo=$ac_try;; 11525esac 11526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11527$as_echo "$ac_try_echo") >&5 11528 (eval "$ac_compile") 2>conftest.er1 11529 ac_status=$? 11530 grep -v '^ *+' conftest.er1 >conftest.err 11531 rm -f conftest.er1 11532 cat conftest.err >&5 11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11534 (exit $ac_status); } && { 11535 test -z "$ac_c_werror_flag" || 11536 test ! -s conftest.err 11537 } && test -s conftest.$ac_objext; then 11538 ac_cv_prog_cc_g=yes 11539else 11540 $as_echo "$as_me: failed program was:" >&5 11541sed 's/^/| /' conftest.$ac_ext >&5 11542 11543 CFLAGS="" 11544 cat >conftest.$ac_ext <<_ACEOF 11545/* confdefs.h. */ 11546_ACEOF 11547cat confdefs.h >>conftest.$ac_ext 11548cat >>conftest.$ac_ext <<_ACEOF 11549/* end confdefs.h. */ 11550 11551int 11552main () 11553{ 11554 11555 ; 11556 return 0; 11557} 11558_ACEOF 11559rm -f conftest.$ac_objext 11560if { (ac_try="$ac_compile" 11561case "(($ac_try" in 11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11563 *) ac_try_echo=$ac_try;; 11564esac 11565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11566$as_echo "$ac_try_echo") >&5 11567 (eval "$ac_compile") 2>conftest.er1 11568 ac_status=$? 11569 grep -v '^ *+' conftest.er1 >conftest.err 11570 rm -f conftest.er1 11571 cat conftest.err >&5 11572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11573 (exit $ac_status); } && { 11574 test -z "$ac_c_werror_flag" || 11575 test ! -s conftest.err 11576 } && test -s conftest.$ac_objext; then 11577 : 11578else 11579 $as_echo "$as_me: failed program was:" >&5 11580sed 's/^/| /' conftest.$ac_ext >&5 11581 11582 ac_c_werror_flag=$ac_save_c_werror_flag 11583 CFLAGS="-g" 11584 cat >conftest.$ac_ext <<_ACEOF 11585/* confdefs.h. */ 11586_ACEOF 11587cat confdefs.h >>conftest.$ac_ext 11588cat >>conftest.$ac_ext <<_ACEOF 11589/* end confdefs.h. */ 11590 11591int 11592main () 11593{ 11594 11595 ; 11596 return 0; 11597} 11598_ACEOF 11599rm -f conftest.$ac_objext 11600if { (ac_try="$ac_compile" 11601case "(($ac_try" in 11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11603 *) ac_try_echo=$ac_try;; 11604esac 11605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11606$as_echo "$ac_try_echo") >&5 11607 (eval "$ac_compile") 2>conftest.er1 11608 ac_status=$? 11609 grep -v '^ *+' conftest.er1 >conftest.err 11610 rm -f conftest.er1 11611 cat conftest.err >&5 11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11613 (exit $ac_status); } && { 11614 test -z "$ac_c_werror_flag" || 11615 test ! -s conftest.err 11616 } && test -s conftest.$ac_objext; then 11617 ac_cv_prog_cc_g=yes 11618else 11619 $as_echo "$as_me: failed program was:" >&5 11620sed 's/^/| /' conftest.$ac_ext >&5 11621 11622 11623fi 11624 11625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11626fi 11627 11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11629fi 11630 11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11632 ac_c_werror_flag=$ac_save_c_werror_flag 11633fi 11634{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11635$as_echo "$ac_cv_prog_cc_g" >&6; } 11636if test "$ac_test_CFLAGS" = set; then 11637 CFLAGS=$ac_save_CFLAGS 11638elif test $ac_cv_prog_cc_g = yes; then 11639 if test "$GCC" = yes; then 11640 CFLAGS="-g -O2" 11641 else 11642 CFLAGS="-g" 11643 fi 11644else 11645 if test "$GCC" = yes; then 11646 CFLAGS="-O2" 11647 else 11648 CFLAGS= 11649 fi 11650fi 11651{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11652$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11653if test "${ac_cv_prog_cc_c89+set}" = set; then 11654 $as_echo_n "(cached) " >&6 11655else 11656 ac_cv_prog_cc_c89=no 11657ac_save_CC=$CC 11658cat >conftest.$ac_ext <<_ACEOF 11659/* confdefs.h. */ 11660_ACEOF 11661cat confdefs.h >>conftest.$ac_ext 11662cat >>conftest.$ac_ext <<_ACEOF 11663/* end confdefs.h. */ 11664#include <stdarg.h> 11665#include <stdio.h> 11666#include <sys/types.h> 11667#include <sys/stat.h> 11668/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11669struct buf { int x; }; 11670FILE * (*rcsopen) (struct buf *, struct stat *, int); 11671static char *e (p, i) 11672 char **p; 11673 int i; 11674{ 11675 return p[i]; 11676} 11677static char *f (char * (*g) (char **, int), char **p, ...) 11678{ 11679 char *s; 11680 va_list v; 11681 va_start (v,p); 11682 s = g (p, va_arg (v,int)); 11683 va_end (v); 11684 return s; 11685} 11686 11687/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11688 function prototypes and stuff, but not '\xHH' hex character constants. 11689 These don't provoke an error unfortunately, instead are silently treated 11690 as 'x'. The following induces an error, until -std is added to get 11691 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11692 array size at least. It's necessary to write '\x00'==0 to get something 11693 that's true only with -std. */ 11694int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11695 11696/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11697 inside strings and character constants. */ 11698#define FOO(x) 'x' 11699int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11700 11701int test (int i, double x); 11702struct s1 {int (*f) (int a);}; 11703struct s2 {int (*f) (double a);}; 11704int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11705int argc; 11706char **argv; 11707int 11708main () 11709{ 11710return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11711 ; 11712 return 0; 11713} 11714_ACEOF 11715for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11716 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11717do 11718 CC="$ac_save_CC $ac_arg" 11719 rm -f conftest.$ac_objext 11720if { (ac_try="$ac_compile" 11721case "(($ac_try" in 11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11723 *) ac_try_echo=$ac_try;; 11724esac 11725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11726$as_echo "$ac_try_echo") >&5 11727 (eval "$ac_compile") 2>conftest.er1 11728 ac_status=$? 11729 grep -v '^ *+' conftest.er1 >conftest.err 11730 rm -f conftest.er1 11731 cat conftest.err >&5 11732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11733 (exit $ac_status); } && { 11734 test -z "$ac_c_werror_flag" || 11735 test ! -s conftest.err 11736 } && test -s conftest.$ac_objext; then 11737 ac_cv_prog_cc_c89=$ac_arg 11738else 11739 $as_echo "$as_me: failed program was:" >&5 11740sed 's/^/| /' conftest.$ac_ext >&5 11741 11742 11743fi 11744 11745rm -f core conftest.err conftest.$ac_objext 11746 test "x$ac_cv_prog_cc_c89" != "xno" && break 11747done 11748rm -f conftest.$ac_ext 11749CC=$ac_save_CC 11750 11751fi 11752# AC_CACHE_VAL 11753case "x$ac_cv_prog_cc_c89" in 11754 x) 11755 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11756$as_echo "none needed" >&6; } ;; 11757 xno) 11758 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11759$as_echo "unsupported" >&6; } ;; 11760 *) 11761 CC="$CC $ac_cv_prog_cc_c89" 11762 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11763$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11764esac 11765 11766 11767ac_ext=c 11768ac_cpp='$CPP $CPPFLAGS' 11769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11771ac_compiler_gnu=$ac_cv_c_compiler_gnu 11772 11773depcc="$CC" am_compiler_list= 11774 11775{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11776$as_echo_n "checking dependency style of $depcc... " >&6; } 11777if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11778 $as_echo_n "(cached) " >&6 11779else 11780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11781 # We make a subdir and do the tests there. Otherwise we can end up 11782 # making bogus files that we don't know about and never remove. For 11783 # instance it was reported that on HP-UX the gcc test will end up 11784 # making a dummy file named `D' -- because `-MD' means `put the output 11785 # in D'. 11786 mkdir conftest.dir 11787 # Copy depcomp to subdir because otherwise we won't find it if we're 11788 # using a relative directory. 11789 cp "$am_depcomp" conftest.dir 11790 cd conftest.dir 11791 # We will build objects and dependencies in a subdirectory because 11792 # it helps to detect inapplicable dependency modes. For instance 11793 # both Tru64's cc and ICC support -MD to output dependencies as a 11794 # side effect of compilation, but ICC will put the dependencies in 11795 # the current directory while Tru64 will put them in the object 11796 # directory. 11797 mkdir sub 11798 11799 am_cv_CC_dependencies_compiler_type=none 11800 if test "$am_compiler_list" = ""; then 11801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11802 fi 11803 for depmode in $am_compiler_list; do 11804 # Setup a source with many dependencies, because some compilers 11805 # like to wrap large dependency lists on column 80 (with \), and 11806 # we should not choose a depcomp mode which is confused by this. 11807 # 11808 # We need to recreate these files for each test, as the compiler may 11809 # overwrite some of them when testing with obscure command lines. 11810 # This happens at least with the AIX C compiler. 11811 : > sub/conftest.c 11812 for i in 1 2 3 4 5 6; do 11813 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11815 # Solaris 8's {/usr,}/bin/sh. 11816 touch sub/conftst$i.h 11817 done 11818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11819 11820 case $depmode in 11821 nosideeffect) 11822 # after this tag, mechanisms are not by side-effect, so they'll 11823 # only be used when explicitly requested 11824 if test "x$enable_dependency_tracking" = xyes; then 11825 continue 11826 else 11827 break 11828 fi 11829 ;; 11830 none) break ;; 11831 esac 11832 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11833 # mode. It turns out that the SunPro C++ compiler does not properly 11834 # handle `-M -o', and we need to detect this. 11835 if depmode=$depmode \ 11836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11839 >/dev/null 2>conftest.err && 11840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11842 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11844 # icc doesn't choke on unknown options, it will just issue warnings 11845 # or remarks (even with -Werror). So we grep stderr for any message 11846 # that says an option was ignored or not supported. 11847 # When given -MP, icc 7.0 and 7.1 complain thusly: 11848 # icc: Command line warning: ignoring option '-M'; no argument required 11849 # The diagnosis changed in icc 8.0: 11850 # icc: Command line remark: option '-MP' not supported 11851 if (grep 'ignoring option' conftest.err || 11852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11853 am_cv_CC_dependencies_compiler_type=$depmode 11854 break 11855 fi 11856 fi 11857 done 11858 11859 cd .. 11860 rm -rf conftest.dir 11861else 11862 am_cv_CC_dependencies_compiler_type=none 11863fi 11864 11865fi 11866{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11867$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11868CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11869 11870 if 11871 test "x$enable_dependency_tracking" != xno \ 11872 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11873 am__fastdepCC_TRUE= 11874 am__fastdepCC_FALSE='#' 11875else 11876 am__fastdepCC_TRUE='#' 11877 am__fastdepCC_FALSE= 11878fi 11879 11880 11881 11882 11883 11884 11885 11886# Check whether --with-xorg-module-dir was given. 11887if test "${with_xorg_module_dir+set}" = set; then 11888 withval=$with_xorg_module_dir; moduledir="$withval" 11889else 11890 moduledir="$libdir/xorg/modules" 11891fi 11892 11893 11894# Checks for extensions 11895 11896 SAVE_CFLAGS="$CFLAGS" 11897 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11898 cat >conftest.$ac_ext <<_ACEOF 11899/* confdefs.h. */ 11900_ACEOF 11901cat confdefs.h >>conftest.$ac_ext 11902cat >>conftest.$ac_ext <<_ACEOF 11903/* end confdefs.h. */ 11904 11905#include "xorg-server.h" 11906#if !defined RANDR 11907#error RANDR not defined 11908#endif 11909 11910int 11911main () 11912{ 11913 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918rm -f conftest.$ac_objext 11919if { (ac_try="$ac_compile" 11920case "(($ac_try" in 11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11922 *) ac_try_echo=$ac_try;; 11923esac 11924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11925$as_echo "$ac_try_echo") >&5 11926 (eval "$ac_compile") 2>conftest.er1 11927 ac_status=$? 11928 grep -v '^ *+' conftest.er1 >conftest.err 11929 rm -f conftest.er1 11930 cat conftest.err >&5 11931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11932 (exit $ac_status); } && { 11933 test -z "$ac_c_werror_flag" || 11934 test ! -s conftest.err 11935 } && test -s conftest.$ac_objext; then 11936 _EXT_CHECK=yes 11937else 11938 $as_echo "$as_me: failed program was:" >&5 11939sed 's/^/| /' conftest.$ac_ext >&5 11940 11941 _EXT_CHECK=no 11942fi 11943 11944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11945 CFLAGS="$SAVE_CFLAGS" 11946 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 11947$as_echo_n "checking if RANDR is defined... " >&6; } 11948 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 11949$as_echo "$_EXT_CHECK" >&6; } 11950 if test "$_EXT_CHECK" != no; then 11951 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11952 fi 11953 11954 11955 SAVE_CFLAGS="$CFLAGS" 11956 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11957 cat >conftest.$ac_ext <<_ACEOF 11958/* confdefs.h. */ 11959_ACEOF 11960cat confdefs.h >>conftest.$ac_ext 11961cat >>conftest.$ac_ext <<_ACEOF 11962/* end confdefs.h. */ 11963 11964#include "xorg-server.h" 11965#if !defined RENDER 11966#error RENDER not defined 11967#endif 11968 11969int 11970main () 11971{ 11972 11973 ; 11974 return 0; 11975} 11976_ACEOF 11977rm -f conftest.$ac_objext 11978if { (ac_try="$ac_compile" 11979case "(($ac_try" in 11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11981 *) ac_try_echo=$ac_try;; 11982esac 11983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11984$as_echo "$ac_try_echo") >&5 11985 (eval "$ac_compile") 2>conftest.er1 11986 ac_status=$? 11987 grep -v '^ *+' conftest.er1 >conftest.err 11988 rm -f conftest.er1 11989 cat conftest.err >&5 11990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11991 (exit $ac_status); } && { 11992 test -z "$ac_c_werror_flag" || 11993 test ! -s conftest.err 11994 } && test -s conftest.$ac_objext; then 11995 _EXT_CHECK=yes 11996else 11997 $as_echo "$as_me: failed program was:" >&5 11998sed 's/^/| /' conftest.$ac_ext >&5 11999 12000 _EXT_CHECK=no 12001fi 12002 12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12004 CFLAGS="$SAVE_CFLAGS" 12005 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12006$as_echo_n "checking if RENDER is defined... " >&6; } 12007 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12008$as_echo "$_EXT_CHECK" >&6; } 12009 if test "$_EXT_CHECK" != no; then 12010 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12011 fi 12012 12013 12014 SAVE_CFLAGS="$CFLAGS" 12015 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12016 cat >conftest.$ac_ext <<_ACEOF 12017/* confdefs.h. */ 12018_ACEOF 12019cat confdefs.h >>conftest.$ac_ext 12020cat >>conftest.$ac_ext <<_ACEOF 12021/* end confdefs.h. */ 12022 12023#include "xorg-server.h" 12024#if !defined DPMSExtension 12025#error DPMSExtension not defined 12026#endif 12027 12028int 12029main () 12030{ 12031 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036rm -f conftest.$ac_objext 12037if { (ac_try="$ac_compile" 12038case "(($ac_try" in 12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12040 *) ac_try_echo=$ac_try;; 12041esac 12042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12043$as_echo "$ac_try_echo") >&5 12044 (eval "$ac_compile") 2>conftest.er1 12045 ac_status=$? 12046 grep -v '^ *+' conftest.er1 >conftest.err 12047 rm -f conftest.er1 12048 cat conftest.err >&5 12049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12050 (exit $ac_status); } && { 12051 test -z "$ac_c_werror_flag" || 12052 test ! -s conftest.err 12053 } && test -s conftest.$ac_objext; then 12054 _EXT_CHECK=yes 12055else 12056 $as_echo "$as_me: failed program was:" >&5 12057sed 's/^/| /' conftest.$ac_ext >&5 12058 12059 _EXT_CHECK=no 12060fi 12061 12062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12063 CFLAGS="$SAVE_CFLAGS" 12064 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12065$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12066 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12067$as_echo "$_EXT_CHECK" >&6; } 12068 if test "$_EXT_CHECK" != no; then 12069 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12070 fi 12071 12072 12073# Checks for pkg-config packages 12074 12075 12076if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12077 if test -n "$ac_tool_prefix"; then 12078 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12079set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12081$as_echo_n "checking for $ac_word... " >&6; } 12082if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12083 $as_echo_n "(cached) " >&6 12084else 12085 case $PKG_CONFIG in 12086 [\\/]* | ?:[\\/]*) 12087 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12088 ;; 12089 *) 12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12091for as_dir in $PATH 12092do 12093 IFS=$as_save_IFS 12094 test -z "$as_dir" && as_dir=. 12095 for ac_exec_ext in '' $ac_executable_extensions; do 12096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12097 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12099 break 2 12100 fi 12101done 12102done 12103IFS=$as_save_IFS 12104 12105 ;; 12106esac 12107fi 12108PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12109if test -n "$PKG_CONFIG"; then 12110 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12111$as_echo "$PKG_CONFIG" >&6; } 12112else 12113 { $as_echo "$as_me:$LINENO: result: no" >&5 12114$as_echo "no" >&6; } 12115fi 12116 12117 12118fi 12119if test -z "$ac_cv_path_PKG_CONFIG"; then 12120 ac_pt_PKG_CONFIG=$PKG_CONFIG 12121 # Extract the first word of "pkg-config", so it can be a program name with args. 12122set dummy pkg-config; ac_word=$2 12123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12124$as_echo_n "checking for $ac_word... " >&6; } 12125if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12126 $as_echo_n "(cached) " >&6 12127else 12128 case $ac_pt_PKG_CONFIG in 12129 [\\/]* | ?:[\\/]*) 12130 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12131 ;; 12132 *) 12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12134for as_dir in $PATH 12135do 12136 IFS=$as_save_IFS 12137 test -z "$as_dir" && as_dir=. 12138 for ac_exec_ext in '' $ac_executable_extensions; do 12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12140 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12142 break 2 12143 fi 12144done 12145done 12146IFS=$as_save_IFS 12147 12148 ;; 12149esac 12150fi 12151ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12152if test -n "$ac_pt_PKG_CONFIG"; then 12153 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12154$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12155else 12156 { $as_echo "$as_me:$LINENO: result: no" >&5 12157$as_echo "no" >&6; } 12158fi 12159 12160 if test "x$ac_pt_PKG_CONFIG" = x; then 12161 PKG_CONFIG="" 12162 else 12163 case $cross_compiling:$ac_tool_warned in 12164yes:) 12165{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12167ac_tool_warned=yes ;; 12168esac 12169 PKG_CONFIG=$ac_pt_PKG_CONFIG 12170 fi 12171else 12172 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12173fi 12174 12175fi 12176if test -n "$PKG_CONFIG"; then 12177 _pkg_min_version=0.9.0 12178 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12179$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12180 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12181 { $as_echo "$as_me:$LINENO: result: yes" >&5 12182$as_echo "yes" >&6; } 12183 else 12184 { $as_echo "$as_me:$LINENO: result: no" >&5 12185$as_echo "no" >&6; } 12186 PKG_CONFIG="" 12187 fi 12188 12189fi 12190 12191pkg_failed=no 12192{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12193$as_echo_n "checking for XORG... " >&6; } 12194 12195if test -n "$XORG_CFLAGS"; then 12196 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12197 elif test -n "$PKG_CONFIG"; then 12198 if test -n "$PKG_CONFIG" && \ 12199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12200 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 12201 ac_status=$? 12202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12203 (exit $ac_status); }; then 12204 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12205else 12206 pkg_failed=yes 12207fi 12208 else 12209 pkg_failed=untried 12210fi 12211if test -n "$XORG_LIBS"; then 12212 pkg_cv_XORG_LIBS="$XORG_LIBS" 12213 elif test -n "$PKG_CONFIG"; then 12214 if test -n "$PKG_CONFIG" && \ 12215 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12216 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 12217 ac_status=$? 12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12219 (exit $ac_status); }; then 12220 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12221else 12222 pkg_failed=yes 12223fi 12224 else 12225 pkg_failed=untried 12226fi 12227 12228 12229 12230if test $pkg_failed = yes; then 12231 12232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12233 _pkg_short_errors_supported=yes 12234else 12235 _pkg_short_errors_supported=no 12236fi 12237 if test $_pkg_short_errors_supported = yes; then 12238 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12239 else 12240 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12241 fi 12242 # Put the nasty error message in config.log where it belongs 12243 echo "$XORG_PKG_ERRORS" >&5 12244 12245 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 12246 12247$XORG_PKG_ERRORS 12248 12249Consider adjusting the PKG_CONFIG_PATH environment variable if you 12250installed software in a non-standard prefix. 12251 12252Alternatively, you may set the environment variables XORG_CFLAGS 12253and XORG_LIBS to avoid the need to call pkg-config. 12254See the pkg-config man page for more details. 12255" >&5 12256$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 12257 12258$XORG_PKG_ERRORS 12259 12260Consider adjusting the PKG_CONFIG_PATH environment variable if you 12261installed software in a non-standard prefix. 12262 12263Alternatively, you may set the environment variables XORG_CFLAGS 12264and XORG_LIBS to avoid the need to call pkg-config. 12265See the pkg-config man page for more details. 12266" >&2;} 12267 { (exit 1); exit 1; }; } 12268elif test $pkg_failed = untried; then 12269 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12271{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12272is in your PATH or set the PKG_CONFIG environment variable to the full 12273path to pkg-config. 12274 12275Alternatively, you may set the environment variables XORG_CFLAGS 12276and XORG_LIBS to avoid the need to call pkg-config. 12277See the pkg-config man page for more details. 12278 12279To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12280See \`config.log' for more details." >&5 12281$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12282is in your PATH or set the PKG_CONFIG environment variable to the full 12283path to pkg-config. 12284 12285Alternatively, you may set the environment variables XORG_CFLAGS 12286and XORG_LIBS to avoid the need to call pkg-config. 12287See the pkg-config man page for more details. 12288 12289To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12290See \`config.log' for more details." >&2;} 12291 { (exit 1); exit 1; }; }; } 12292else 12293 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12294 XORG_LIBS=$pkg_cv_XORG_LIBS 12295 { $as_echo "$as_me:$LINENO: result: yes" >&5 12296$as_echo "yes" >&6; } 12297 : 12298fi 12299sdkdir=$(pkg-config --variable=sdkdir xorg-server) 12300 12301# Checks for libraries. 12302SAVE_CPPFLAGS="$CPPFLAGS" 12303CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 12304{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12305$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12306if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12307 $as_echo_n "(cached) " >&6 12308else 12309 cat >conftest.$ac_ext <<_ACEOF 12310/* confdefs.h. */ 12311_ACEOF 12312cat confdefs.h >>conftest.$ac_ext 12313cat >>conftest.$ac_ext <<_ACEOF 12314/* end confdefs.h. */ 12315#include "xorg-server.h" 12316 12317int 12318main () 12319{ 12320#ifndef XSERVER_LIBPCIACCESS 12321 (void) XSERVER_LIBPCIACCESS; 12322#endif 12323 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328rm -f conftest.$ac_objext 12329if { (ac_try="$ac_compile" 12330case "(($ac_try" in 12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12332 *) ac_try_echo=$ac_try;; 12333esac 12334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12335$as_echo "$ac_try_echo") >&5 12336 (eval "$ac_compile") 2>conftest.er1 12337 ac_status=$? 12338 grep -v '^ *+' conftest.er1 >conftest.err 12339 rm -f conftest.er1 12340 cat conftest.err >&5 12341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12342 (exit $ac_status); } && { 12343 test -z "$ac_c_werror_flag" || 12344 test ! -s conftest.err 12345 } && test -s conftest.$ac_objext; then 12346 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12347else 12348 $as_echo "$as_me: failed program was:" >&5 12349sed 's/^/| /' conftest.$ac_ext >&5 12350 12351 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12352fi 12353 12354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12355fi 12356{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12357$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12358if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12359 XSERVER_LIBPCIACCESS=yes 12360else 12361 XSERVER_LIBPCIACCESS=no 12362fi 12363 12364if test "${ac_cv_header_xf1bpp_h+set}" = set; then 12365 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 12366$as_echo_n "checking for xf1bpp.h... " >&6; } 12367if test "${ac_cv_header_xf1bpp_h+set}" = set; then 12368 $as_echo_n "(cached) " >&6 12369fi 12370{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 12371$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 12372else 12373 # Is the header compilable? 12374{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5 12375$as_echo_n "checking xf1bpp.h usability... " >&6; } 12376cat >conftest.$ac_ext <<_ACEOF 12377/* confdefs.h. */ 12378_ACEOF 12379cat confdefs.h >>conftest.$ac_ext 12380cat >>conftest.$ac_ext <<_ACEOF 12381/* end confdefs.h. */ 12382$ac_includes_default 12383#include <xf1bpp.h> 12384_ACEOF 12385rm -f conftest.$ac_objext 12386if { (ac_try="$ac_compile" 12387case "(($ac_try" in 12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12389 *) ac_try_echo=$ac_try;; 12390esac 12391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12392$as_echo "$ac_try_echo") >&5 12393 (eval "$ac_compile") 2>conftest.er1 12394 ac_status=$? 12395 grep -v '^ *+' conftest.er1 >conftest.err 12396 rm -f conftest.er1 12397 cat conftest.err >&5 12398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12399 (exit $ac_status); } && { 12400 test -z "$ac_c_werror_flag" || 12401 test ! -s conftest.err 12402 } && test -s conftest.$ac_objext; then 12403 ac_header_compiler=yes 12404else 12405 $as_echo "$as_me: failed program was:" >&5 12406sed 's/^/| /' conftest.$ac_ext >&5 12407 12408 ac_header_compiler=no 12409fi 12410 12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12412{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12413$as_echo "$ac_header_compiler" >&6; } 12414 12415# Is the header present? 12416{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5 12417$as_echo_n "checking xf1bpp.h presence... " >&6; } 12418cat >conftest.$ac_ext <<_ACEOF 12419/* confdefs.h. */ 12420_ACEOF 12421cat confdefs.h >>conftest.$ac_ext 12422cat >>conftest.$ac_ext <<_ACEOF 12423/* end confdefs.h. */ 12424#include <xf1bpp.h> 12425_ACEOF 12426if { (ac_try="$ac_cpp conftest.$ac_ext" 12427case "(($ac_try" in 12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12429 *) ac_try_echo=$ac_try;; 12430esac 12431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12432$as_echo "$ac_try_echo") >&5 12433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12434 ac_status=$? 12435 grep -v '^ *+' conftest.er1 >conftest.err 12436 rm -f conftest.er1 12437 cat conftest.err >&5 12438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12439 (exit $ac_status); } >/dev/null && { 12440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12441 test ! -s conftest.err 12442 }; then 12443 ac_header_preproc=yes 12444else 12445 $as_echo "$as_me: failed program was:" >&5 12446sed 's/^/| /' conftest.$ac_ext >&5 12447 12448 ac_header_preproc=no 12449fi 12450 12451rm -f conftest.err conftest.$ac_ext 12452{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12453$as_echo "$ac_header_preproc" >&6; } 12454 12455# So? What about this header? 12456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12457 yes:no: ) 12458 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 12459$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12460 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5 12461$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;} 12462 ac_header_preproc=yes 12463 ;; 12464 no:yes:* ) 12465 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5 12466$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;} 12467 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5 12468$as_echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;} 12469 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5 12470$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;} 12471 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5 12472$as_echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 12473 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5 12474$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;} 12475 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5 12476$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;} 12477 ( cat <<\_ASBOX 12478## ---------------------------------------------------------------------- ## 12479## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 12480## ---------------------------------------------------------------------- ## 12481_ASBOX 12482 ) | sed "s/^/$as_me: WARNING: /" >&2 12483 ;; 12484esac 12485{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 12486$as_echo_n "checking for xf1bpp.h... " >&6; } 12487if test "${ac_cv_header_xf1bpp_h+set}" = set; then 12488 $as_echo_n "(cached) " >&6 12489else 12490 ac_cv_header_xf1bpp_h=$ac_header_preproc 12491fi 12492{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 12493$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 12494 12495fi 12496if test "x$ac_cv_header_xf1bpp_h" = x""yes; then 12497 12498cat >>confdefs.h <<\_ACEOF 12499#define HAVE_XF1BPP 1 12500_ACEOF 12501 12502fi 12503 12504 12505if test "${ac_cv_header_xf4bpp_h+set}" = set; then 12506 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 12507$as_echo_n "checking for xf4bpp.h... " >&6; } 12508if test "${ac_cv_header_xf4bpp_h+set}" = set; then 12509 $as_echo_n "(cached) " >&6 12510fi 12511{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 12512$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 12513else 12514 # Is the header compilable? 12515{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5 12516$as_echo_n "checking xf4bpp.h usability... " >&6; } 12517cat >conftest.$ac_ext <<_ACEOF 12518/* confdefs.h. */ 12519_ACEOF 12520cat confdefs.h >>conftest.$ac_ext 12521cat >>conftest.$ac_ext <<_ACEOF 12522/* end confdefs.h. */ 12523$ac_includes_default 12524#include <xf4bpp.h> 12525_ACEOF 12526rm -f conftest.$ac_objext 12527if { (ac_try="$ac_compile" 12528case "(($ac_try" in 12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12530 *) ac_try_echo=$ac_try;; 12531esac 12532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12533$as_echo "$ac_try_echo") >&5 12534 (eval "$ac_compile") 2>conftest.er1 12535 ac_status=$? 12536 grep -v '^ *+' conftest.er1 >conftest.err 12537 rm -f conftest.er1 12538 cat conftest.err >&5 12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12540 (exit $ac_status); } && { 12541 test -z "$ac_c_werror_flag" || 12542 test ! -s conftest.err 12543 } && test -s conftest.$ac_objext; then 12544 ac_header_compiler=yes 12545else 12546 $as_echo "$as_me: failed program was:" >&5 12547sed 's/^/| /' conftest.$ac_ext >&5 12548 12549 ac_header_compiler=no 12550fi 12551 12552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12553{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12554$as_echo "$ac_header_compiler" >&6; } 12555 12556# Is the header present? 12557{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5 12558$as_echo_n "checking xf4bpp.h presence... " >&6; } 12559cat >conftest.$ac_ext <<_ACEOF 12560/* confdefs.h. */ 12561_ACEOF 12562cat confdefs.h >>conftest.$ac_ext 12563cat >>conftest.$ac_ext <<_ACEOF 12564/* end confdefs.h. */ 12565#include <xf4bpp.h> 12566_ACEOF 12567if { (ac_try="$ac_cpp conftest.$ac_ext" 12568case "(($ac_try" in 12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12570 *) ac_try_echo=$ac_try;; 12571esac 12572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12573$as_echo "$ac_try_echo") >&5 12574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12575 ac_status=$? 12576 grep -v '^ *+' conftest.er1 >conftest.err 12577 rm -f conftest.er1 12578 cat conftest.err >&5 12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12580 (exit $ac_status); } >/dev/null && { 12581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12582 test ! -s conftest.err 12583 }; then 12584 ac_header_preproc=yes 12585else 12586 $as_echo "$as_me: failed program was:" >&5 12587sed 's/^/| /' conftest.$ac_ext >&5 12588 12589 ac_header_preproc=no 12590fi 12591 12592rm -f conftest.err conftest.$ac_ext 12593{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12594$as_echo "$ac_header_preproc" >&6; } 12595 12596# So? What about this header? 12597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12598 yes:no: ) 12599 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 12600$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12601 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5 12602$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;} 12603 ac_header_preproc=yes 12604 ;; 12605 no:yes:* ) 12606 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5 12607$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;} 12608 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5 12609$as_echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;} 12610 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5 12611$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;} 12612 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5 12613$as_echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 12614 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5 12615$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;} 12616 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5 12617$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;} 12618 ( cat <<\_ASBOX 12619## ---------------------------------------------------------------------- ## 12620## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 12621## ---------------------------------------------------------------------- ## 12622_ASBOX 12623 ) | sed "s/^/$as_me: WARNING: /" >&2 12624 ;; 12625esac 12626{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 12627$as_echo_n "checking for xf4bpp.h... " >&6; } 12628if test "${ac_cv_header_xf4bpp_h+set}" = set; then 12629 $as_echo_n "(cached) " >&6 12630else 12631 ac_cv_header_xf4bpp_h=$ac_header_preproc 12632fi 12633{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 12634$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 12635 12636fi 12637if test "x$ac_cv_header_xf4bpp_h" = x""yes; then 12638 12639cat >>confdefs.h <<\_ACEOF 12640#define HAVE_XF4BPP 1 12641_ACEOF 12642 12643fi 12644 12645 12646CPPFLAGS="$SAVE_CPPFLAGS" 12647 12648if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12649 12650pkg_failed=no 12651{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 12652$as_echo_n "checking for PCIACCESS... " >&6; } 12653 12654if test -n "$PCIACCESS_CFLAGS"; then 12655 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12656 elif test -n "$PKG_CONFIG"; then 12657 if test -n "$PKG_CONFIG" && \ 12658 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12659 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12660 ac_status=$? 12661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12662 (exit $ac_status); }; then 12663 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 12664else 12665 pkg_failed=yes 12666fi 12667 else 12668 pkg_failed=untried 12669fi 12670if test -n "$PCIACCESS_LIBS"; then 12671 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12672 elif test -n "$PKG_CONFIG"; then 12673 if test -n "$PKG_CONFIG" && \ 12674 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12675 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12676 ac_status=$? 12677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12678 (exit $ac_status); }; then 12679 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12680else 12681 pkg_failed=yes 12682fi 12683 else 12684 pkg_failed=untried 12685fi 12686 12687 12688 12689if test $pkg_failed = yes; then 12690 12691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12692 _pkg_short_errors_supported=yes 12693else 12694 _pkg_short_errors_supported=no 12695fi 12696 if test $_pkg_short_errors_supported = yes; then 12697 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 12698 else 12699 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 12700 fi 12701 # Put the nasty error message in config.log where it belongs 12702 echo "$PCIACCESS_PKG_ERRORS" >&5 12703 12704 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 12705 12706$PCIACCESS_PKG_ERRORS 12707 12708Consider adjusting the PKG_CONFIG_PATH environment variable if you 12709installed software in a non-standard prefix. 12710 12711Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12712and PCIACCESS_LIBS to avoid the need to call pkg-config. 12713See the pkg-config man page for more details. 12714" >&5 12715$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 12716 12717$PCIACCESS_PKG_ERRORS 12718 12719Consider adjusting the PKG_CONFIG_PATH environment variable if you 12720installed software in a non-standard prefix. 12721 12722Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12723and PCIACCESS_LIBS to avoid the need to call pkg-config. 12724See the pkg-config man page for more details. 12725" >&2;} 12726 { (exit 1); exit 1; }; } 12727elif test $pkg_failed = untried; then 12728 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12730{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12731is in your PATH or set the PKG_CONFIG environment variable to the full 12732path to pkg-config. 12733 12734Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12735and PCIACCESS_LIBS to avoid the need to call pkg-config. 12736See the pkg-config man page for more details. 12737 12738To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12739See \`config.log' for more details." >&5 12740$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12741is in your PATH or set the PKG_CONFIG environment variable to the full 12742path to pkg-config. 12743 12744Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12745and PCIACCESS_LIBS to avoid the need to call pkg-config. 12746See the pkg-config man page for more details. 12747 12748To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12749See \`config.log' for more details." >&2;} 12750 { (exit 1); exit 1; }; }; } 12751else 12752 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12753 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12754 { $as_echo "$as_me:$LINENO: result: yes" >&5 12755$as_echo "yes" >&6; } 12756 : 12757fi 12758 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 12759fi 12760 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12761 XSERVER_LIBPCIACCESS_TRUE= 12762 XSERVER_LIBPCIACCESS_FALSE='#' 12763else 12764 XSERVER_LIBPCIACCESS_TRUE='#' 12765 XSERVER_LIBPCIACCESS_FALSE= 12766fi 12767 12768 12769# Checks for header files. 12770{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12771$as_echo_n "checking for ANSI C header files... " >&6; } 12772if test "${ac_cv_header_stdc+set}" = set; then 12773 $as_echo_n "(cached) " >&6 12774else 12775 cat >conftest.$ac_ext <<_ACEOF 12776/* confdefs.h. */ 12777_ACEOF 12778cat confdefs.h >>conftest.$ac_ext 12779cat >>conftest.$ac_ext <<_ACEOF 12780/* end confdefs.h. */ 12781#include <stdlib.h> 12782#include <stdarg.h> 12783#include <string.h> 12784#include <float.h> 12785 12786int 12787main () 12788{ 12789 12790 ; 12791 return 0; 12792} 12793_ACEOF 12794rm -f conftest.$ac_objext 12795if { (ac_try="$ac_compile" 12796case "(($ac_try" in 12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12798 *) ac_try_echo=$ac_try;; 12799esac 12800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12801$as_echo "$ac_try_echo") >&5 12802 (eval "$ac_compile") 2>conftest.er1 12803 ac_status=$? 12804 grep -v '^ *+' conftest.er1 >conftest.err 12805 rm -f conftest.er1 12806 cat conftest.err >&5 12807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12808 (exit $ac_status); } && { 12809 test -z "$ac_c_werror_flag" || 12810 test ! -s conftest.err 12811 } && test -s conftest.$ac_objext; then 12812 ac_cv_header_stdc=yes 12813else 12814 $as_echo "$as_me: failed program was:" >&5 12815sed 's/^/| /' conftest.$ac_ext >&5 12816 12817 ac_cv_header_stdc=no 12818fi 12819 12820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12821 12822if test $ac_cv_header_stdc = yes; then 12823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12824 cat >conftest.$ac_ext <<_ACEOF 12825/* confdefs.h. */ 12826_ACEOF 12827cat confdefs.h >>conftest.$ac_ext 12828cat >>conftest.$ac_ext <<_ACEOF 12829/* end confdefs.h. */ 12830#include <string.h> 12831 12832_ACEOF 12833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12834 $EGREP "memchr" >/dev/null 2>&1; then 12835 : 12836else 12837 ac_cv_header_stdc=no 12838fi 12839rm -f conftest* 12840 12841fi 12842 12843if test $ac_cv_header_stdc = yes; then 12844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12845 cat >conftest.$ac_ext <<_ACEOF 12846/* confdefs.h. */ 12847_ACEOF 12848cat confdefs.h >>conftest.$ac_ext 12849cat >>conftest.$ac_ext <<_ACEOF 12850/* end confdefs.h. */ 12851#include <stdlib.h> 12852 12853_ACEOF 12854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12855 $EGREP "free" >/dev/null 2>&1; then 12856 : 12857else 12858 ac_cv_header_stdc=no 12859fi 12860rm -f conftest* 12861 12862fi 12863 12864if test $ac_cv_header_stdc = yes; then 12865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12866 if test "$cross_compiling" = yes; then 12867 : 12868else 12869 cat >conftest.$ac_ext <<_ACEOF 12870/* confdefs.h. */ 12871_ACEOF 12872cat confdefs.h >>conftest.$ac_ext 12873cat >>conftest.$ac_ext <<_ACEOF 12874/* end confdefs.h. */ 12875#include <ctype.h> 12876#include <stdlib.h> 12877#if ((' ' & 0x0FF) == 0x020) 12878# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12879# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12880#else 12881# define ISLOWER(c) \ 12882 (('a' <= (c) && (c) <= 'i') \ 12883 || ('j' <= (c) && (c) <= 'r') \ 12884 || ('s' <= (c) && (c) <= 'z')) 12885# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12886#endif 12887 12888#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12889int 12890main () 12891{ 12892 int i; 12893 for (i = 0; i < 256; i++) 12894 if (XOR (islower (i), ISLOWER (i)) 12895 || toupper (i) != TOUPPER (i)) 12896 return 2; 12897 return 0; 12898} 12899_ACEOF 12900rm -f conftest$ac_exeext 12901if { (ac_try="$ac_link" 12902case "(($ac_try" in 12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12904 *) ac_try_echo=$ac_try;; 12905esac 12906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12907$as_echo "$ac_try_echo") >&5 12908 (eval "$ac_link") 2>&5 12909 ac_status=$? 12910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12912 { (case "(($ac_try" in 12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12914 *) ac_try_echo=$ac_try;; 12915esac 12916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12917$as_echo "$ac_try_echo") >&5 12918 (eval "$ac_try") 2>&5 12919 ac_status=$? 12920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12921 (exit $ac_status); }; }; then 12922 : 12923else 12924 $as_echo "$as_me: program exited with status $ac_status" >&5 12925$as_echo "$as_me: failed program was:" >&5 12926sed 's/^/| /' conftest.$ac_ext >&5 12927 12928( exit $ac_status ) 12929ac_cv_header_stdc=no 12930fi 12931rm -rf conftest.dSYM 12932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12933fi 12934 12935 12936fi 12937fi 12938{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12939$as_echo "$ac_cv_header_stdc" >&6; } 12940if test $ac_cv_header_stdc = yes; then 12941 12942cat >>confdefs.h <<\_ACEOF 12943#define STDC_HEADERS 1 12944_ACEOF 12945 12946fi 12947 12948 12949 12950for ac_header in elf.h elf_abi.h 12951do 12952as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12955$as_echo_n "checking for $ac_header... " >&6; } 12956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12957 $as_echo_n "(cached) " >&6 12958fi 12959ac_res=`eval 'as_val=${'$as_ac_Header'} 12960 $as_echo "$as_val"'` 12961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12962$as_echo "$ac_res" >&6; } 12963else 12964 # Is the header compilable? 12965{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12966$as_echo_n "checking $ac_header usability... " >&6; } 12967cat >conftest.$ac_ext <<_ACEOF 12968/* confdefs.h. */ 12969_ACEOF 12970cat confdefs.h >>conftest.$ac_ext 12971cat >>conftest.$ac_ext <<_ACEOF 12972/* end confdefs.h. */ 12973$ac_includes_default 12974#include <$ac_header> 12975_ACEOF 12976rm -f conftest.$ac_objext 12977if { (ac_try="$ac_compile" 12978case "(($ac_try" in 12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12980 *) ac_try_echo=$ac_try;; 12981esac 12982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12983$as_echo "$ac_try_echo") >&5 12984 (eval "$ac_compile") 2>conftest.er1 12985 ac_status=$? 12986 grep -v '^ *+' conftest.er1 >conftest.err 12987 rm -f conftest.er1 12988 cat conftest.err >&5 12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12990 (exit $ac_status); } && { 12991 test -z "$ac_c_werror_flag" || 12992 test ! -s conftest.err 12993 } && test -s conftest.$ac_objext; then 12994 ac_header_compiler=yes 12995else 12996 $as_echo "$as_me: failed program was:" >&5 12997sed 's/^/| /' conftest.$ac_ext >&5 12998 12999 ac_header_compiler=no 13000fi 13001 13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13003{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13004$as_echo "$ac_header_compiler" >&6; } 13005 13006# Is the header present? 13007{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13008$as_echo_n "checking $ac_header presence... " >&6; } 13009cat >conftest.$ac_ext <<_ACEOF 13010/* confdefs.h. */ 13011_ACEOF 13012cat confdefs.h >>conftest.$ac_ext 13013cat >>conftest.$ac_ext <<_ACEOF 13014/* end confdefs.h. */ 13015#include <$ac_header> 13016_ACEOF 13017if { (ac_try="$ac_cpp conftest.$ac_ext" 13018case "(($ac_try" in 13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13020 *) ac_try_echo=$ac_try;; 13021esac 13022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13023$as_echo "$ac_try_echo") >&5 13024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13025 ac_status=$? 13026 grep -v '^ *+' conftest.er1 >conftest.err 13027 rm -f conftest.er1 13028 cat conftest.err >&5 13029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13030 (exit $ac_status); } >/dev/null && { 13031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13032 test ! -s conftest.err 13033 }; then 13034 ac_header_preproc=yes 13035else 13036 $as_echo "$as_me: failed program was:" >&5 13037sed 's/^/| /' conftest.$ac_ext >&5 13038 13039 ac_header_preproc=no 13040fi 13041 13042rm -f conftest.err conftest.$ac_ext 13043{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13044$as_echo "$ac_header_preproc" >&6; } 13045 13046# So? What about this header? 13047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13048 yes:no: ) 13049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13050$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13052$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13053 ac_header_preproc=yes 13054 ;; 13055 no:yes:* ) 13056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13057$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13059$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13061$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13063$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13065$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13067$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13068 ( cat <<\_ASBOX 13069## ---------------------------------------------------------------------- ## 13070## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 13071## ---------------------------------------------------------------------- ## 13072_ASBOX 13073 ) | sed "s/^/$as_me: WARNING: /" >&2 13074 ;; 13075esac 13076{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13077$as_echo_n "checking for $ac_header... " >&6; } 13078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13079 $as_echo_n "(cached) " >&6 13080else 13081 eval "$as_ac_Header=\$ac_header_preproc" 13082fi 13083ac_res=`eval 'as_val=${'$as_ac_Header'} 13084 $as_echo "$as_val"'` 13085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13086$as_echo "$ac_res" >&6; } 13087 13088fi 13089as_val=`eval 'as_val=${'$as_ac_Header'} 13090 $as_echo "$as_val"'` 13091 if test "x$as_val" = x""yes; then 13092 cat >>confdefs.h <<_ACEOF 13093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13094_ACEOF 13095 13096fi 13097 13098done 13099 13100 13101 13102 13103 13104DRIVER_NAME=rendition 13105 13106 13107 13108 13109 13110if test x$APP_MAN_SUFFIX = x ; then 13111 APP_MAN_SUFFIX=1 13112fi 13113if test x$APP_MAN_DIR = x ; then 13114 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 13115fi 13116 13117if test x$LIB_MAN_SUFFIX = x ; then 13118 LIB_MAN_SUFFIX=3 13119fi 13120if test x$LIB_MAN_DIR = x ; then 13121 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 13122fi 13123 13124if test x$FILE_MAN_SUFFIX = x ; then 13125 case $host_os in 13126 solaris*) FILE_MAN_SUFFIX=4 ;; 13127 *) FILE_MAN_SUFFIX=5 ;; 13128 esac 13129fi 13130if test x$FILE_MAN_DIR = x ; then 13131 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 13132fi 13133 13134if test x$MISC_MAN_SUFFIX = x ; then 13135 case $host_os in 13136 solaris*) MISC_MAN_SUFFIX=5 ;; 13137 *) MISC_MAN_SUFFIX=7 ;; 13138 esac 13139fi 13140if test x$MISC_MAN_DIR = x ; then 13141 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 13142fi 13143 13144if test x$DRIVER_MAN_SUFFIX = x ; then 13145 case $host_os in 13146 solaris*) DRIVER_MAN_SUFFIX=7 ;; 13147 *) DRIVER_MAN_SUFFIX=4 ;; 13148 esac 13149fi 13150if test x$DRIVER_MAN_DIR = x ; then 13151 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 13152fi 13153 13154if test x$ADMIN_MAN_SUFFIX = x ; then 13155 case $host_os in 13156 solaris*) ADMIN_MAN_SUFFIX=1m ;; 13157 *) ADMIN_MAN_SUFFIX=8 ;; 13158 esac 13159fi 13160if test x$ADMIN_MAN_DIR = x ; then 13161 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 13162fi 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180# Check whether --with-release-version was given. 13181if test "${with_release_version+set}" = set; then 13182 withval=$with_release_version; RELEASE_VERSION="$withval" 13183else 13184 RELEASE_VERSION="" 13185fi 13186 13187 if test "x$RELEASE_VERSION" != "x"; then 13188 PACKAGE="$PACKAGE-$RELEASE_VERSION" 13189 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 13190 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 13191$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 13192 fi 13193 13194cat >>confdefs.h <<_ACEOF 13195#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 13196_ACEOF 13197 13198 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 13199 if test "x$PVM" = "x"; then 13200 PVM="0" 13201 fi 13202 13203cat >>confdefs.h <<_ACEOF 13204#define PACKAGE_VERSION_MINOR $PVM 13205_ACEOF 13206 13207 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 13208 if test "x$PVP" = "x"; then 13209 PVP="0" 13210 fi 13211 13212cat >>confdefs.h <<_ACEOF 13213#define PACKAGE_VERSION_PATCHLEVEL $PVP 13214_ACEOF 13215 13216 13217 13218CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 13219mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 13220echo 'git directory not found: installing possibly empty changelog.' >&2)" 13221 13222distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 13223 13224 13225 13226 13227if test x$XORG_SGML_PATH = x ; then 13228 XORG_SGML_PATH=$prefix/share/sgml 13229fi 13230HAVE_DEFS_ENT= 13231 13232if test x"$cross_compiling" = x"yes" ; then 13233 HAVE_DEFS_ENT=no 13234else 13235 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 13236{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 13237$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; } 13238if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13239 $as_echo_n "(cached) " >&6 13240else 13241 test "$cross_compiling" = yes && 13242 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13243$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13244 { (exit 1); exit 1; }; } 13245if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 13246 eval "$as_ac_File=yes" 13247else 13248 eval "$as_ac_File=no" 13249fi 13250fi 13251ac_res=`eval 'as_val=${'$as_ac_File'} 13252 $as_echo "$as_val"'` 13253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13254$as_echo "$ac_res" >&6; } 13255as_val=`eval 'as_val=${'$as_ac_File'} 13256 $as_echo "$as_val"'` 13257 if test "x$as_val" = x""yes; then 13258 HAVE_DEFS_ENT=yes 13259fi 13260 13261fi 13262 13263# Extract the first word of "linuxdoc", so it can be a program name with args. 13264set dummy linuxdoc; ac_word=$2 13265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13266$as_echo_n "checking for $ac_word... " >&6; } 13267if test "${ac_cv_path_LINUXDOC+set}" = set; then 13268 $as_echo_n "(cached) " >&6 13269else 13270 case $LINUXDOC in 13271 [\\/]* | ?:[\\/]*) 13272 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 13273 ;; 13274 *) 13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276for as_dir in $PATH 13277do 13278 IFS=$as_save_IFS 13279 test -z "$as_dir" && as_dir=. 13280 for ac_exec_ext in '' $ac_executable_extensions; do 13281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13282 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 13283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13284 break 2 13285 fi 13286done 13287done 13288IFS=$as_save_IFS 13289 13290 ;; 13291esac 13292fi 13293LINUXDOC=$ac_cv_path_LINUXDOC 13294if test -n "$LINUXDOC"; then 13295 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5 13296$as_echo "$LINUXDOC" >&6; } 13297else 13298 { $as_echo "$as_me:$LINENO: result: no" >&5 13299$as_echo "no" >&6; } 13300fi 13301 13302 13303# Extract the first word of "ps2pdf", so it can be a program name with args. 13304set dummy ps2pdf; ac_word=$2 13305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13306$as_echo_n "checking for $ac_word... " >&6; } 13307if test "${ac_cv_path_PS2PDF+set}" = set; then 13308 $as_echo_n "(cached) " >&6 13309else 13310 case $PS2PDF in 13311 [\\/]* | ?:[\\/]*) 13312 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 13313 ;; 13314 *) 13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13316for as_dir in $PATH 13317do 13318 IFS=$as_save_IFS 13319 test -z "$as_dir" && as_dir=. 13320 for ac_exec_ext in '' $ac_executable_extensions; do 13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13322 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 13323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13324 break 2 13325 fi 13326done 13327done 13328IFS=$as_save_IFS 13329 13330 ;; 13331esac 13332fi 13333PS2PDF=$ac_cv_path_PS2PDF 13334if test -n "$PS2PDF"; then 13335 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5 13336$as_echo "$PS2PDF" >&6; } 13337else 13338 { $as_echo "$as_me:$LINENO: result: no" >&5 13339$as_echo "no" >&6; } 13340fi 13341 13342 13343 13344{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5 13345$as_echo_n "checking Whether to build documentation... " >&6; } 13346 13347if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 13348 BUILDDOC=yes 13349else 13350 BUILDDOC=no 13351fi 13352 13353 if test x$BUILDDOC = xyes; then 13354 BUILD_LINUXDOC_TRUE= 13355 BUILD_LINUXDOC_FALSE='#' 13356else 13357 BUILD_LINUXDOC_TRUE='#' 13358 BUILD_LINUXDOC_FALSE= 13359fi 13360 13361 13362{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5 13363$as_echo "$BUILDDOC" >&6; } 13364 13365{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 13366$as_echo_n "checking Whether to build pdf documentation... " >&6; } 13367 13368if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 13369 BUILDPDFDOC=yes 13370else 13371 BUILDPDFDOC=no 13372fi 13373 13374 if test x$BUILDPDFDOC = xyes; then 13375 BUILD_PDFDOC_TRUE= 13376 BUILD_PDFDOC_FALSE='#' 13377else 13378 BUILD_PDFDOC_TRUE='#' 13379 BUILD_PDFDOC_FALSE= 13380fi 13381 13382 13383{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 13384$as_echo "$BUILDPDFDOC" >&6; } 13385 13386MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 13387MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 13388MAKE_PDF="$PS2PDF" 13389MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 13390 13391 13392 13393 13394 13395 13396 13397ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 13398 13399cat >confcache <<\_ACEOF 13400# This file is a shell script that caches the results of configure 13401# tests run on this system so they can be shared between configure 13402# scripts and configure runs, see configure's option --config-cache. 13403# It is not useful on other systems. If it contains results you don't 13404# want to keep, you may remove or edit it. 13405# 13406# config.status only pays attention to the cache file if you give it 13407# the --recheck option to rerun configure. 13408# 13409# `ac_cv_env_foo' variables (set or unset) will be overridden when 13410# loading this file, other *unset* `ac_cv_foo' will be assigned the 13411# following values. 13412 13413_ACEOF 13414 13415# The following way of writing the cache mishandles newlines in values, 13416# but we know of no workaround that is simple, portable, and efficient. 13417# So, we kill variables containing newlines. 13418# Ultrix sh set writes to stderr and can't be redirected directly, 13419# and sets the high bit in the cache file unless we assign to the vars. 13420( 13421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13422 eval ac_val=\$$ac_var 13423 case $ac_val in #( 13424 *${as_nl}*) 13425 case $ac_var in #( 13426 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13427$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13428 esac 13429 case $ac_var in #( 13430 _ | IFS | as_nl) ;; #( 13431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13432 *) $as_unset $ac_var ;; 13433 esac ;; 13434 esac 13435 done 13436 13437 (set) 2>&1 | 13438 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13439 *${as_nl}ac_space=\ *) 13440 # `set' does not quote correctly, so add quotes (double-quote 13441 # substitution turns \\\\ into \\, and sed turns \\ into \). 13442 sed -n \ 13443 "s/'/'\\\\''/g; 13444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13445 ;; #( 13446 *) 13447 # `set' quotes correctly as required by POSIX, so do not add quotes. 13448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13449 ;; 13450 esac | 13451 sort 13452) | 13453 sed ' 13454 /^ac_cv_env_/b end 13455 t clear 13456 :clear 13457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13458 t end 13459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13460 :end' >>confcache 13461if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13462 if test -w "$cache_file"; then 13463 test "x$cache_file" != "x/dev/null" && 13464 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13465$as_echo "$as_me: updating cache $cache_file" >&6;} 13466 cat confcache >$cache_file 13467 else 13468 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13469$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13470 fi 13471fi 13472rm -f confcache 13473 13474test "x$prefix" = xNONE && prefix=$ac_default_prefix 13475# Let make expand exec_prefix. 13476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13477 13478DEFS=-DHAVE_CONFIG_H 13479 13480ac_libobjs= 13481ac_ltlibobjs= 13482for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13483 # 1. Remove the extension, and $U if already installed. 13484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13487 # will be set to the directory where LIBOBJS objects are built. 13488 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13489 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13490done 13491LIBOBJS=$ac_libobjs 13492 13493LTLIBOBJS=$ac_ltlibobjs 13494 13495 13496if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13497 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13498Usually this means the macro was only invoked conditionally." >&5 13499$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13500Usually this means the macro was only invoked conditionally." >&2;} 13501 { (exit 1); exit 1; }; } 13502fi 13503if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13504 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13505Usually this means the macro was only invoked conditionally." >&5 13506$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13507Usually this means the macro was only invoked conditionally." >&2;} 13508 { (exit 1); exit 1; }; } 13509fi 13510if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13511 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13512Usually this means the macro was only invoked conditionally." >&5 13513$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13514Usually this means the macro was only invoked conditionally." >&2;} 13515 { (exit 1); exit 1; }; } 13516fi 13517if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13518 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13519Usually this means the macro was only invoked conditionally." >&5 13520$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13521Usually this means the macro was only invoked conditionally." >&2;} 13522 { (exit 1); exit 1; }; } 13523fi 13524if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 13525 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13526Usually this means the macro was only invoked conditionally." >&5 13527$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13528Usually this means the macro was only invoked conditionally." >&2;} 13529 { (exit 1); exit 1; }; } 13530fi 13531if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 13532 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 13533Usually this means the macro was only invoked conditionally." >&5 13534$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 13535Usually this means the macro was only invoked conditionally." >&2;} 13536 { (exit 1); exit 1; }; } 13537fi 13538if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 13539 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 13540Usually this means the macro was only invoked conditionally." >&5 13541$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 13542Usually this means the macro was only invoked conditionally." >&2;} 13543 { (exit 1); exit 1; }; } 13544fi 13545 13546: ${CONFIG_STATUS=./config.status} 13547ac_write_fail=0 13548ac_clean_files_save=$ac_clean_files 13549ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13550{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13551$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13552cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13553#! $SHELL 13554# Generated by $as_me. 13555# Run this file to recreate the current configuration. 13556# Compiler output produced by configure, useful for debugging 13557# configure, is in config.log if it exists. 13558 13559debug=false 13560ac_cs_recheck=false 13561ac_cs_silent=false 13562SHELL=\${CONFIG_SHELL-$SHELL} 13563_ACEOF 13564 13565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13566## --------------------- ## 13567## M4sh Initialization. ## 13568## --------------------- ## 13569 13570# Be more Bourne compatible 13571DUALCASE=1; export DUALCASE # for MKS sh 13572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13573 emulate sh 13574 NULLCMD=: 13575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13576 # is contrary to our usage. Disable this feature. 13577 alias -g '${1+"$@"}'='"$@"' 13578 setopt NO_GLOB_SUBST 13579else 13580 case `(set -o) 2>/dev/null` in 13581 *posix*) set -o posix ;; 13582esac 13583 13584fi 13585 13586 13587 13588 13589# PATH needs CR 13590# Avoid depending upon Character Ranges. 13591as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13593as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13594as_cr_digits='0123456789' 13595as_cr_alnum=$as_cr_Letters$as_cr_digits 13596 13597as_nl=' 13598' 13599export as_nl 13600# Printing a long string crashes Solaris 7 /usr/bin/printf. 13601as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13604if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13605 as_echo='printf %s\n' 13606 as_echo_n='printf %s' 13607else 13608 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13609 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13610 as_echo_n='/usr/ucb/echo -n' 13611 else 13612 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13613 as_echo_n_body='eval 13614 arg=$1; 13615 case $arg in 13616 *"$as_nl"*) 13617 expr "X$arg" : "X\\(.*\\)$as_nl"; 13618 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13619 esac; 13620 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13621 ' 13622 export as_echo_n_body 13623 as_echo_n='sh -c $as_echo_n_body as_echo' 13624 fi 13625 export as_echo_body 13626 as_echo='sh -c $as_echo_body as_echo' 13627fi 13628 13629# The user is always right. 13630if test "${PATH_SEPARATOR+set}" != set; then 13631 PATH_SEPARATOR=: 13632 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13633 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13634 PATH_SEPARATOR=';' 13635 } 13636fi 13637 13638# Support unset when possible. 13639if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13640 as_unset=unset 13641else 13642 as_unset=false 13643fi 13644 13645 13646# IFS 13647# We need space, tab and new line, in precisely that order. Quoting is 13648# there to prevent editors from complaining about space-tab. 13649# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13650# splitting by setting IFS to empty value.) 13651IFS=" "" $as_nl" 13652 13653# Find who we are. Look in the path if we contain no directory separator. 13654case $0 in 13655 *[\\/]* ) as_myself=$0 ;; 13656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13657for as_dir in $PATH 13658do 13659 IFS=$as_save_IFS 13660 test -z "$as_dir" && as_dir=. 13661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13662done 13663IFS=$as_save_IFS 13664 13665 ;; 13666esac 13667# We did not find ourselves, most probably we were run as `sh COMMAND' 13668# in which case we are not to be found in the path. 13669if test "x$as_myself" = x; then 13670 as_myself=$0 13671fi 13672if test ! -f "$as_myself"; then 13673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13674 { (exit 1); exit 1; } 13675fi 13676 13677# Work around bugs in pre-3.0 UWIN ksh. 13678for as_var in ENV MAIL MAILPATH 13679do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13680done 13681PS1='$ ' 13682PS2='> ' 13683PS4='+ ' 13684 13685# NLS nuisances. 13686LC_ALL=C 13687export LC_ALL 13688LANGUAGE=C 13689export LANGUAGE 13690 13691# Required to use basename. 13692if expr a : '\(a\)' >/dev/null 2>&1 && 13693 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13694 as_expr=expr 13695else 13696 as_expr=false 13697fi 13698 13699if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13700 as_basename=basename 13701else 13702 as_basename=false 13703fi 13704 13705 13706# Name of the executable. 13707as_me=`$as_basename -- "$0" || 13708$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13709 X"$0" : 'X\(//\)$' \| \ 13710 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13711$as_echo X/"$0" | 13712 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13713 s//\1/ 13714 q 13715 } 13716 /^X\/\(\/\/\)$/{ 13717 s//\1/ 13718 q 13719 } 13720 /^X\/\(\/\).*/{ 13721 s//\1/ 13722 q 13723 } 13724 s/.*/./; q'` 13725 13726# CDPATH. 13727$as_unset CDPATH 13728 13729 13730 13731 as_lineno_1=$LINENO 13732 as_lineno_2=$LINENO 13733 test "x$as_lineno_1" != "x$as_lineno_2" && 13734 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13735 13736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13737 # uniformly replaced by the line number. The first 'sed' inserts a 13738 # line-number line after each line using $LINENO; the second 'sed' 13739 # does the real work. The second script uses 'N' to pair each 13740 # line-number line with the line containing $LINENO, and appends 13741 # trailing '-' during substitution so that $LINENO is not a special 13742 # case at line end. 13743 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13744 # scripts with optimization help from Paolo Bonzini. Blame Lee 13745 # E. McMahon (1931-1989) for sed's syntax. :-) 13746 sed -n ' 13747 p 13748 /[$]LINENO/= 13749 ' <$as_myself | 13750 sed ' 13751 s/[$]LINENO.*/&-/ 13752 t lineno 13753 b 13754 :lineno 13755 N 13756 :loop 13757 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13758 t loop 13759 s/-\n.*// 13760 ' >$as_me.lineno && 13761 chmod +x "$as_me.lineno" || 13762 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13763 { (exit 1); exit 1; }; } 13764 13765 # Don't try to exec as it changes $[0], causing all sort of problems 13766 # (the dirname of $[0] is not the place where we might find the 13767 # original and so on. Autoconf is especially sensitive to this). 13768 . "./$as_me.lineno" 13769 # Exit status is that of the last command. 13770 exit 13771} 13772 13773 13774if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13775 as_dirname=dirname 13776else 13777 as_dirname=false 13778fi 13779 13780ECHO_C= ECHO_N= ECHO_T= 13781case `echo -n x` in 13782-n*) 13783 case `echo 'x\c'` in 13784 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13785 *) ECHO_C='\c';; 13786 esac;; 13787*) 13788 ECHO_N='-n';; 13789esac 13790if expr a : '\(a\)' >/dev/null 2>&1 && 13791 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13792 as_expr=expr 13793else 13794 as_expr=false 13795fi 13796 13797rm -f conf$$ conf$$.exe conf$$.file 13798if test -d conf$$.dir; then 13799 rm -f conf$$.dir/conf$$.file 13800else 13801 rm -f conf$$.dir 13802 mkdir conf$$.dir 2>/dev/null 13803fi 13804if (echo >conf$$.file) 2>/dev/null; then 13805 if ln -s conf$$.file conf$$ 2>/dev/null; then 13806 as_ln_s='ln -s' 13807 # ... but there are two gotchas: 13808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13810 # In both cases, we have to default to `cp -p'. 13811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13812 as_ln_s='cp -p' 13813 elif ln conf$$.file conf$$ 2>/dev/null; then 13814 as_ln_s=ln 13815 else 13816 as_ln_s='cp -p' 13817 fi 13818else 13819 as_ln_s='cp -p' 13820fi 13821rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13822rmdir conf$$.dir 2>/dev/null 13823 13824if mkdir -p . 2>/dev/null; then 13825 as_mkdir_p=: 13826else 13827 test -d ./-p && rmdir ./-p 13828 as_mkdir_p=false 13829fi 13830 13831if test -x / >/dev/null 2>&1; then 13832 as_test_x='test -x' 13833else 13834 if ls -dL / >/dev/null 2>&1; then 13835 as_ls_L_option=L 13836 else 13837 as_ls_L_option= 13838 fi 13839 as_test_x=' 13840 eval sh -c '\'' 13841 if test -d "$1"; then 13842 test -d "$1/."; 13843 else 13844 case $1 in 13845 -*)set "./$1";; 13846 esac; 13847 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13848 ???[sx]*):;;*)false;;esac;fi 13849 '\'' sh 13850 ' 13851fi 13852as_executable_p=$as_test_x 13853 13854# Sed expression to map a string onto a valid CPP name. 13855as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13856 13857# Sed expression to map a string onto a valid variable name. 13858as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13859 13860 13861exec 6>&1 13862 13863# Save the log message, to keep $[0] and so on meaningful, and to 13864# report actual input values of CONFIG_FILES etc. instead of their 13865# values after options handling. 13866ac_log=" 13867This file was extended by xf86-video-rendition $as_me 4.2.1, which was 13868generated by GNU Autoconf 2.63. Invocation command line was 13869 13870 CONFIG_FILES = $CONFIG_FILES 13871 CONFIG_HEADERS = $CONFIG_HEADERS 13872 CONFIG_LINKS = $CONFIG_LINKS 13873 CONFIG_COMMANDS = $CONFIG_COMMANDS 13874 $ $0 $@ 13875 13876on `(hostname || uname -n) 2>/dev/null | sed 1q` 13877" 13878 13879_ACEOF 13880 13881case $ac_config_files in *" 13882"*) set x $ac_config_files; shift; ac_config_files=$*;; 13883esac 13884 13885case $ac_config_headers in *" 13886"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13887esac 13888 13889 13890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13891# Files that config.status was made for. 13892config_files="$ac_config_files" 13893config_headers="$ac_config_headers" 13894config_commands="$ac_config_commands" 13895 13896_ACEOF 13897 13898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13899ac_cs_usage="\ 13900\`$as_me' instantiates files from templates according to the 13901current configuration. 13902 13903Usage: $0 [OPTION]... [FILE]... 13904 13905 -h, --help print this help, then exit 13906 -V, --version print version number and configuration settings, then exit 13907 -q, --quiet, --silent 13908 do not print progress messages 13909 -d, --debug don't remove temporary files 13910 --recheck update $as_me by reconfiguring in the same conditions 13911 --file=FILE[:TEMPLATE] 13912 instantiate the configuration file FILE 13913 --header=FILE[:TEMPLATE] 13914 instantiate the configuration header FILE 13915 13916Configuration files: 13917$config_files 13918 13919Configuration headers: 13920$config_headers 13921 13922Configuration commands: 13923$config_commands 13924 13925Report bugs to <bug-autoconf@gnu.org>." 13926 13927_ACEOF 13928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13929ac_cs_version="\\ 13930xf86-video-rendition config.status 4.2.1 13931configured by $0, generated by GNU Autoconf 2.63, 13932 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13933 13934Copyright (C) 2008 Free Software Foundation, Inc. 13935This config.status script is free software; the Free Software Foundation 13936gives unlimited permission to copy, distribute and modify it." 13937 13938ac_pwd='$ac_pwd' 13939srcdir='$srcdir' 13940INSTALL='$INSTALL' 13941MKDIR_P='$MKDIR_P' 13942AWK='$AWK' 13943test -n "\$AWK" || AWK=awk 13944_ACEOF 13945 13946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13947# The default lists apply if the user does not specify any file. 13948ac_need_defaults=: 13949while test $# != 0 13950do 13951 case $1 in 13952 --*=*) 13953 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13955 ac_shift=: 13956 ;; 13957 *) 13958 ac_option=$1 13959 ac_optarg=$2 13960 ac_shift=shift 13961 ;; 13962 esac 13963 13964 case $ac_option in 13965 # Handling of the options. 13966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13967 ac_cs_recheck=: ;; 13968 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13969 $as_echo "$ac_cs_version"; exit ;; 13970 --debug | --debu | --deb | --de | --d | -d ) 13971 debug=: ;; 13972 --file | --fil | --fi | --f ) 13973 $ac_shift 13974 case $ac_optarg in 13975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13976 esac 13977 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13978 ac_need_defaults=false;; 13979 --header | --heade | --head | --hea ) 13980 $ac_shift 13981 case $ac_optarg in 13982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13983 esac 13984 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13985 ac_need_defaults=false;; 13986 --he | --h) 13987 # Conflict between --help and --header 13988 { $as_echo "$as_me: error: ambiguous option: $1 13989Try \`$0 --help' for more information." >&2 13990 { (exit 1); exit 1; }; };; 13991 --help | --hel | -h ) 13992 $as_echo "$ac_cs_usage"; exit ;; 13993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13994 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13995 ac_cs_silent=: ;; 13996 13997 # This is an error. 13998 -*) { $as_echo "$as_me: error: unrecognized option: $1 13999Try \`$0 --help' for more information." >&2 14000 { (exit 1); exit 1; }; } ;; 14001 14002 *) ac_config_targets="$ac_config_targets $1" 14003 ac_need_defaults=false ;; 14004 14005 esac 14006 shift 14007done 14008 14009ac_configure_extra_args= 14010 14011if $ac_cs_silent; then 14012 exec 6>/dev/null 14013 ac_configure_extra_args="$ac_configure_extra_args --silent" 14014fi 14015 14016_ACEOF 14017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14018if \$ac_cs_recheck; then 14019 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14020 shift 14021 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14022 CONFIG_SHELL='$SHELL' 14023 export CONFIG_SHELL 14024 exec "\$@" 14025fi 14026 14027_ACEOF 14028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14029exec 5>>config.log 14030{ 14031 echo 14032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14033## Running $as_me. ## 14034_ASBOX 14035 $as_echo "$ac_log" 14036} >&5 14037 14038_ACEOF 14039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14040# 14041# INIT-COMMANDS 14042# 14043AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14044 14045 14046# The HP-UX ksh and POSIX shell print the target directory to stdout 14047# if CDPATH is set. 14048(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14049 14050sed_quote_subst='$sed_quote_subst' 14051double_quote_subst='$double_quote_subst' 14052delay_variable_subst='$delay_variable_subst' 14053enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14054macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14055macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14056enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14057pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14058enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14059host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14060host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14061host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14062build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14063build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14064build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14065SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14066Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14067GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14068EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14069FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14070LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14071NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14072LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14073max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14074ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14075exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14076lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14077lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14078lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14079reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14080reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14081OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14082deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14083file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14084AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14085AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14086STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14087RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14088old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14089old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14090old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14091CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14092CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14093compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14094GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14095lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14096lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14097lt_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"`' 14098lt_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"`' 14099objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14100SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14101ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14102MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14103lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14104lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14105lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14106lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14107lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14108need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14109DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14110NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14111LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14112OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14113OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14114libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14115shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14116extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14117archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14118enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14119export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14120whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14121compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14122old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14123old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14124archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14125archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14126module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14127module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14128with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14129allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14130no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14131hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14132hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14133hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14134hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14135hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14136hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14137hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14138hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14139inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14140link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14141fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14142always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14143export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14144exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14145include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14146prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14147file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14148variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14149need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14150need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14151version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14152runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14153shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14154shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14155libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14156library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14157soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14158postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14159postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14160finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14161finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14162hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14163sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14164sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14165hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14166enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14167enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14168enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14169old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14170striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14171 14172LTCC='$LTCC' 14173LTCFLAGS='$LTCFLAGS' 14174compiler='$compiler_DEFAULT' 14175 14176# Quote evaled strings. 14177for var in SED \ 14178GREP \ 14179EGREP \ 14180FGREP \ 14181LD \ 14182NM \ 14183LN_S \ 14184lt_SP2NL \ 14185lt_NL2SP \ 14186reload_flag \ 14187OBJDUMP \ 14188deplibs_check_method \ 14189file_magic_cmd \ 14190AR \ 14191AR_FLAGS \ 14192STRIP \ 14193RANLIB \ 14194CC \ 14195CFLAGS \ 14196compiler \ 14197lt_cv_sys_global_symbol_pipe \ 14198lt_cv_sys_global_symbol_to_cdecl \ 14199lt_cv_sys_global_symbol_to_c_name_address \ 14200lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14201SHELL \ 14202ECHO \ 14203lt_prog_compiler_no_builtin_flag \ 14204lt_prog_compiler_wl \ 14205lt_prog_compiler_pic \ 14206lt_prog_compiler_static \ 14207lt_cv_prog_compiler_c_o \ 14208need_locks \ 14209DSYMUTIL \ 14210NMEDIT \ 14211LIPO \ 14212OTOOL \ 14213OTOOL64 \ 14214shrext_cmds \ 14215export_dynamic_flag_spec \ 14216whole_archive_flag_spec \ 14217compiler_needs_object \ 14218with_gnu_ld \ 14219allow_undefined_flag \ 14220no_undefined_flag \ 14221hardcode_libdir_flag_spec \ 14222hardcode_libdir_flag_spec_ld \ 14223hardcode_libdir_separator \ 14224fix_srcfile_path \ 14225exclude_expsyms \ 14226include_expsyms \ 14227file_list_spec \ 14228variables_saved_for_relink \ 14229libname_spec \ 14230library_names_spec \ 14231soname_spec \ 14232finish_eval \ 14233old_striplib \ 14234striplib; do 14235 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14236 *[\\\\\\\`\\"\\\$]*) 14237 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14238 ;; 14239 *) 14240 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14241 ;; 14242 esac 14243done 14244 14245# Double-quote double-evaled strings. 14246for var in reload_cmds \ 14247old_postinstall_cmds \ 14248old_postuninstall_cmds \ 14249old_archive_cmds \ 14250extract_expsyms_cmds \ 14251old_archive_from_new_cmds \ 14252old_archive_from_expsyms_cmds \ 14253archive_cmds \ 14254archive_expsym_cmds \ 14255module_cmds \ 14256module_expsym_cmds \ 14257export_symbols_cmds \ 14258prelink_cmds \ 14259postinstall_cmds \ 14260postuninstall_cmds \ 14261finish_cmds \ 14262sys_lib_search_path_spec \ 14263sys_lib_dlsearch_path_spec; do 14264 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14265 *[\\\\\\\`\\"\\\$]*) 14266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14267 ;; 14268 *) 14269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14270 ;; 14271 esac 14272done 14273 14274# Fix-up fallback echo if it was mangled by the above quoting rules. 14275case \$lt_ECHO in 14276*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14277 ;; 14278esac 14279 14280ac_aux_dir='$ac_aux_dir' 14281xsi_shell='$xsi_shell' 14282lt_shell_append='$lt_shell_append' 14283 14284# See if we are running on zsh, and set the options which allow our 14285# commands through without removal of \ escapes INIT. 14286if test -n "\${ZSH_VERSION+set}" ; then 14287 setopt NO_GLOB_SUBST 14288fi 14289 14290 14291 PACKAGE='$PACKAGE' 14292 VERSION='$VERSION' 14293 TIMESTAMP='$TIMESTAMP' 14294 RM='$RM' 14295 ofile='$ofile' 14296 14297 14298 14299 14300_ACEOF 14301 14302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14303 14304# Handling of arguments. 14305for ac_config_target in $ac_config_targets 14306do 14307 case $ac_config_target in 14308 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14309 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14312 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14313 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14314 14315 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14316$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14317 { (exit 1); exit 1; }; };; 14318 esac 14319done 14320 14321 14322# If the user did not use the arguments to specify the items to instantiate, 14323# then the envvar interface is used. Set only those that are not. 14324# We use the long form for the default assignment because of an extremely 14325# bizarre bug on SunOS 4.1.3. 14326if $ac_need_defaults; then 14327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14330fi 14331 14332# Have a temporary directory for convenience. Make it in the build tree 14333# simply because there is no reason against having it here, and in addition, 14334# creating and moving files from /tmp can sometimes cause problems. 14335# Hook for its removal unless debugging. 14336# Note that there is a small window in which the directory will not be cleaned: 14337# after its creation but before its name has been assigned to `$tmp'. 14338$debug || 14339{ 14340 tmp= 14341 trap 'exit_status=$? 14342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14343' 0 14344 trap '{ (exit 1); exit 1; }' 1 2 13 15 14345} 14346# Create a (secure) tmp directory for tmp files. 14347 14348{ 14349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14350 test -n "$tmp" && test -d "$tmp" 14351} || 14352{ 14353 tmp=./conf$$-$RANDOM 14354 (umask 077 && mkdir "$tmp") 14355} || 14356{ 14357 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14358 { (exit 1); exit 1; } 14359} 14360 14361# Set up the scripts for CONFIG_FILES section. 14362# No need to generate them if there are no CONFIG_FILES. 14363# This happens for instance with `./config.status config.h'. 14364if test -n "$CONFIG_FILES"; then 14365 14366 14367ac_cr=' 14368' 14369ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14370if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14371 ac_cs_awk_cr='\\r' 14372else 14373 ac_cs_awk_cr=$ac_cr 14374fi 14375 14376echo 'BEGIN {' >"$tmp/subs1.awk" && 14377_ACEOF 14378 14379 14380{ 14381 echo "cat >conf$$subs.awk <<_ACEOF" && 14382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14383 echo "_ACEOF" 14384} >conf$$subs.sh || 14385 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14386$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14387 { (exit 1); exit 1; }; } 14388ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14389ac_delim='%!_!# ' 14390for ac_last_try in false false false false false :; do 14391 . ./conf$$subs.sh || 14392 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14393$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14394 { (exit 1); exit 1; }; } 14395 14396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14397 if test $ac_delim_n = $ac_delim_num; then 14398 break 14399 elif $ac_last_try; then 14400 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14401$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14402 { (exit 1); exit 1; }; } 14403 else 14404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14405 fi 14406done 14407rm -f conf$$subs.sh 14408 14409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14410cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14411_ACEOF 14412sed -n ' 14413h 14414s/^/S["/; s/!.*/"]=/ 14415p 14416g 14417s/^[^!]*!// 14418:repl 14419t repl 14420s/'"$ac_delim"'$// 14421t delim 14422:nl 14423h 14424s/\(.\{148\}\).*/\1/ 14425t more1 14426s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14427p 14428n 14429b repl 14430:more1 14431s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14432p 14433g 14434s/.\{148\}// 14435t nl 14436:delim 14437h 14438s/\(.\{148\}\).*/\1/ 14439t more2 14440s/["\\]/\\&/g; s/^/"/; s/$/"/ 14441p 14442b 14443:more2 14444s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14445p 14446g 14447s/.\{148\}// 14448t delim 14449' <conf$$subs.awk | sed ' 14450/^[^""]/{ 14451 N 14452 s/\n// 14453} 14454' >>$CONFIG_STATUS || ac_write_fail=1 14455rm -f conf$$subs.awk 14456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14457_ACAWK 14458cat >>"\$tmp/subs1.awk" <<_ACAWK && 14459 for (key in S) S_is_set[key] = 1 14460 FS = "" 14461 14462} 14463{ 14464 line = $ 0 14465 nfields = split(line, field, "@") 14466 substed = 0 14467 len = length(field[1]) 14468 for (i = 2; i < nfields; i++) { 14469 key = field[i] 14470 keylen = length(key) 14471 if (S_is_set[key]) { 14472 value = S[key] 14473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14474 len += length(value) + length(field[++i]) 14475 substed = 1 14476 } else 14477 len += 1 + keylen 14478 } 14479 14480 print line 14481} 14482 14483_ACAWK 14484_ACEOF 14485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14488else 14489 cat 14490fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14491 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14492$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14493 { (exit 1); exit 1; }; } 14494_ACEOF 14495 14496# VPATH may cause trouble with some makes, so we remove $(srcdir), 14497# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14498# trailing colons and then remove the whole line if VPATH becomes empty 14499# (actually we leave an empty line to preserve line numbers). 14500if test "x$srcdir" = x.; then 14501 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14502s/:*\$(srcdir):*/:/ 14503s/:*\${srcdir}:*/:/ 14504s/:*@srcdir@:*/:/ 14505s/^\([^=]*=[ ]*\):*/\1/ 14506s/:*$// 14507s/^[^=]*=[ ]*$// 14508}' 14509fi 14510 14511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14512fi # test -n "$CONFIG_FILES" 14513 14514# Set up the scripts for CONFIG_HEADERS section. 14515# No need to generate them if there are no CONFIG_HEADERS. 14516# This happens for instance with `./config.status Makefile'. 14517if test -n "$CONFIG_HEADERS"; then 14518cat >"$tmp/defines.awk" <<\_ACAWK || 14519BEGIN { 14520_ACEOF 14521 14522# Transform confdefs.h into an awk script `defines.awk', embedded as 14523# here-document in config.status, that substitutes the proper values into 14524# config.h.in to produce config.h. 14525 14526# Create a delimiter string that does not exist in confdefs.h, to ease 14527# handling of long lines. 14528ac_delim='%!_!# ' 14529for ac_last_try in false false :; do 14530 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14531 if test -z "$ac_t"; then 14532 break 14533 elif $ac_last_try; then 14534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14535$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14536 { (exit 1); exit 1; }; } 14537 else 14538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14539 fi 14540done 14541 14542# For the awk script, D is an array of macro values keyed by name, 14543# likewise P contains macro parameters if any. Preserve backslash 14544# newline sequences. 14545 14546ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14547sed -n ' 14548s/.\{148\}/&'"$ac_delim"'/g 14549t rset 14550:rset 14551s/^[ ]*#[ ]*define[ ][ ]*/ / 14552t def 14553d 14554:def 14555s/\\$// 14556t bsnl 14557s/["\\]/\\&/g 14558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14559D["\1"]=" \3"/p 14560s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14561d 14562:bsnl 14563s/["\\]/\\&/g 14564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14565D["\1"]=" \3\\\\\\n"\\/p 14566t cont 14567s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14568t cont 14569d 14570:cont 14571n 14572s/.\{148\}/&'"$ac_delim"'/g 14573t clear 14574:clear 14575s/\\$// 14576t bsnlc 14577s/["\\]/\\&/g; s/^/"/; s/$/"/p 14578d 14579:bsnlc 14580s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14581b cont 14582' <confdefs.h | sed ' 14583s/'"$ac_delim"'/"\\\ 14584"/g' >>$CONFIG_STATUS || ac_write_fail=1 14585 14586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14587 for (key in D) D_is_set[key] = 1 14588 FS = "" 14589} 14590/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14591 line = \$ 0 14592 split(line, arg, " ") 14593 if (arg[1] == "#") { 14594 defundef = arg[2] 14595 mac1 = arg[3] 14596 } else { 14597 defundef = substr(arg[1], 2) 14598 mac1 = arg[2] 14599 } 14600 split(mac1, mac2, "(") #) 14601 macro = mac2[1] 14602 prefix = substr(line, 1, index(line, defundef) - 1) 14603 if (D_is_set[macro]) { 14604 # Preserve the white space surrounding the "#". 14605 print prefix "define", macro P[macro] D[macro] 14606 next 14607 } else { 14608 # Replace #undef with comments. This is necessary, for example, 14609 # in the case of _POSIX_SOURCE, which is predefined and required 14610 # on some systems where configure will not decide to define it. 14611 if (defundef == "undef") { 14612 print "/*", prefix defundef, macro, "*/" 14613 next 14614 } 14615 } 14616} 14617{ print } 14618_ACAWK 14619_ACEOF 14620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14621 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14622$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14623 { (exit 1); exit 1; }; } 14624fi # test -n "$CONFIG_HEADERS" 14625 14626 14627eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14628shift 14629for ac_tag 14630do 14631 case $ac_tag in 14632 :[FHLC]) ac_mode=$ac_tag; continue;; 14633 esac 14634 case $ac_mode$ac_tag in 14635 :[FHL]*:*);; 14636 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14637$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14638 { (exit 1); exit 1; }; };; 14639 :[FH]-) ac_tag=-:-;; 14640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14641 esac 14642 ac_save_IFS=$IFS 14643 IFS=: 14644 set x $ac_tag 14645 IFS=$ac_save_IFS 14646 shift 14647 ac_file=$1 14648 shift 14649 14650 case $ac_mode in 14651 :L) ac_source=$1;; 14652 :[FH]) 14653 ac_file_inputs= 14654 for ac_f 14655 do 14656 case $ac_f in 14657 -) ac_f="$tmp/stdin";; 14658 *) # Look for the file first in the build tree, then in the source tree 14659 # (if the path is not absolute). The absolute path cannot be DOS-style, 14660 # because $ac_f cannot contain `:'. 14661 test -f "$ac_f" || 14662 case $ac_f in 14663 [\\/$]*) false;; 14664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14665 esac || 14666 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14667$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14668 { (exit 1); exit 1; }; };; 14669 esac 14670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14671 ac_file_inputs="$ac_file_inputs '$ac_f'" 14672 done 14673 14674 # Let's still pretend it is `configure' which instantiates (i.e., don't 14675 # use $as_me), people would be surprised to read: 14676 # /* config.h. Generated by config.status. */ 14677 configure_input='Generated from '` 14678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14679 `' by configure.' 14680 if test x"$ac_file" != x-; then 14681 configure_input="$ac_file. $configure_input" 14682 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14683$as_echo "$as_me: creating $ac_file" >&6;} 14684 fi 14685 # Neutralize special characters interpreted by sed in replacement strings. 14686 case $configure_input in #( 14687 *\&* | *\|* | *\\* ) 14688 ac_sed_conf_input=`$as_echo "$configure_input" | 14689 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14690 *) ac_sed_conf_input=$configure_input;; 14691 esac 14692 14693 case $ac_tag in 14694 *:-:* | *:-) cat >"$tmp/stdin" \ 14695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14696$as_echo "$as_me: error: could not create $ac_file" >&2;} 14697 { (exit 1); exit 1; }; } ;; 14698 esac 14699 ;; 14700 esac 14701 14702 ac_dir=`$as_dirname -- "$ac_file" || 14703$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14704 X"$ac_file" : 'X\(//\)[^/]' \| \ 14705 X"$ac_file" : 'X\(//\)$' \| \ 14706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14707$as_echo X"$ac_file" | 14708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14709 s//\1/ 14710 q 14711 } 14712 /^X\(\/\/\)[^/].*/{ 14713 s//\1/ 14714 q 14715 } 14716 /^X\(\/\/\)$/{ 14717 s//\1/ 14718 q 14719 } 14720 /^X\(\/\).*/{ 14721 s//\1/ 14722 q 14723 } 14724 s/.*/./; q'` 14725 { as_dir="$ac_dir" 14726 case $as_dir in #( 14727 -*) as_dir=./$as_dir;; 14728 esac 14729 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14730 as_dirs= 14731 while :; do 14732 case $as_dir in #( 14733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14734 *) as_qdir=$as_dir;; 14735 esac 14736 as_dirs="'$as_qdir' $as_dirs" 14737 as_dir=`$as_dirname -- "$as_dir" || 14738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14739 X"$as_dir" : 'X\(//\)[^/]' \| \ 14740 X"$as_dir" : 'X\(//\)$' \| \ 14741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14742$as_echo X"$as_dir" | 14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14744 s//\1/ 14745 q 14746 } 14747 /^X\(\/\/\)[^/].*/{ 14748 s//\1/ 14749 q 14750 } 14751 /^X\(\/\/\)$/{ 14752 s//\1/ 14753 q 14754 } 14755 /^X\(\/\).*/{ 14756 s//\1/ 14757 q 14758 } 14759 s/.*/./; q'` 14760 test -d "$as_dir" && break 14761 done 14762 test -z "$as_dirs" || eval "mkdir $as_dirs" 14763 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14764$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14765 { (exit 1); exit 1; }; }; } 14766 ac_builddir=. 14767 14768case "$ac_dir" in 14769.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14770*) 14771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14772 # A ".." for each directory in $ac_dir_suffix. 14773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14774 case $ac_top_builddir_sub in 14775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14777 esac ;; 14778esac 14779ac_abs_top_builddir=$ac_pwd 14780ac_abs_builddir=$ac_pwd$ac_dir_suffix 14781# for backward compatibility: 14782ac_top_builddir=$ac_top_build_prefix 14783 14784case $srcdir in 14785 .) # We are building in place. 14786 ac_srcdir=. 14787 ac_top_srcdir=$ac_top_builddir_sub 14788 ac_abs_top_srcdir=$ac_pwd ;; 14789 [\\/]* | ?:[\\/]* ) # Absolute name. 14790 ac_srcdir=$srcdir$ac_dir_suffix; 14791 ac_top_srcdir=$srcdir 14792 ac_abs_top_srcdir=$srcdir ;; 14793 *) # Relative name. 14794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14795 ac_top_srcdir=$ac_top_build_prefix$srcdir 14796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14797esac 14798ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14799 14800 14801 case $ac_mode in 14802 :F) 14803 # 14804 # CONFIG_FILE 14805 # 14806 14807 case $INSTALL in 14808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14809 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14810 esac 14811 ac_MKDIR_P=$MKDIR_P 14812 case $MKDIR_P in 14813 [\\/$]* | ?:[\\/]* ) ;; 14814 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14815 esac 14816_ACEOF 14817 14818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14819# If the template does not know about datarootdir, expand it. 14820# FIXME: This hack should be removed a few years after 2.60. 14821ac_datarootdir_hack=; ac_datarootdir_seen= 14822 14823ac_sed_dataroot=' 14824/datarootdir/ { 14825 p 14826 q 14827} 14828/@datadir@/p 14829/@docdir@/p 14830/@infodir@/p 14831/@localedir@/p 14832/@mandir@/p 14833' 14834case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14835*datarootdir*) ac_datarootdir_seen=yes;; 14836*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14837 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14838$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14839_ACEOF 14840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14841 ac_datarootdir_hack=' 14842 s&@datadir@&$datadir&g 14843 s&@docdir@&$docdir&g 14844 s&@infodir@&$infodir&g 14845 s&@localedir@&$localedir&g 14846 s&@mandir@&$mandir&g 14847 s&\\\${datarootdir}&$datarootdir&g' ;; 14848esac 14849_ACEOF 14850 14851# Neutralize VPATH when `$srcdir' = `.'. 14852# Shell code in configure.ac might set extrasub. 14853# FIXME: do we really want to maintain this feature? 14854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14855ac_sed_extra="$ac_vpsub 14856$extrasub 14857_ACEOF 14858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14859:t 14860/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14861s|@configure_input@|$ac_sed_conf_input|;t t 14862s&@top_builddir@&$ac_top_builddir_sub&;t t 14863s&@top_build_prefix@&$ac_top_build_prefix&;t t 14864s&@srcdir@&$ac_srcdir&;t t 14865s&@abs_srcdir@&$ac_abs_srcdir&;t t 14866s&@top_srcdir@&$ac_top_srcdir&;t t 14867s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14868s&@builddir@&$ac_builddir&;t t 14869s&@abs_builddir@&$ac_abs_builddir&;t t 14870s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14871s&@INSTALL@&$ac_INSTALL&;t t 14872s&@MKDIR_P@&$ac_MKDIR_P&;t t 14873$ac_datarootdir_hack 14874" 14875eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14876 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14877$as_echo "$as_me: error: could not create $ac_file" >&2;} 14878 { (exit 1); exit 1; }; } 14879 14880test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14881 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14882 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14883 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14884which seems to be undefined. Please make sure it is defined." >&5 14885$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14886which seems to be undefined. Please make sure it is defined." >&2;} 14887 14888 rm -f "$tmp/stdin" 14889 case $ac_file in 14890 -) cat "$tmp/out" && rm -f "$tmp/out";; 14891 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14892 esac \ 14893 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14894$as_echo "$as_me: error: could not create $ac_file" >&2;} 14895 { (exit 1); exit 1; }; } 14896 ;; 14897 :H) 14898 # 14899 # CONFIG_HEADER 14900 # 14901 if test x"$ac_file" != x-; then 14902 { 14903 $as_echo "/* $configure_input */" \ 14904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14905 } >"$tmp/config.h" \ 14906 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14907$as_echo "$as_me: error: could not create $ac_file" >&2;} 14908 { (exit 1); exit 1; }; } 14909 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14910 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14911$as_echo "$as_me: $ac_file is unchanged" >&6;} 14912 else 14913 rm -f "$ac_file" 14914 mv "$tmp/config.h" "$ac_file" \ 14915 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14916$as_echo "$as_me: error: could not create $ac_file" >&2;} 14917 { (exit 1); exit 1; }; } 14918 fi 14919 else 14920 $as_echo "/* $configure_input */" \ 14921 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14922 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14923$as_echo "$as_me: error: could not create -" >&2;} 14924 { (exit 1); exit 1; }; } 14925 fi 14926# Compute "$ac_file"'s index in $config_headers. 14927_am_arg="$ac_file" 14928_am_stamp_count=1 14929for _am_header in $config_headers :; do 14930 case $_am_header in 14931 $_am_arg | $_am_arg:* ) 14932 break ;; 14933 * ) 14934 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14935 esac 14936done 14937echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14938$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14939 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14940 X"$_am_arg" : 'X\(//\)$' \| \ 14941 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14942$as_echo X"$_am_arg" | 14943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14944 s//\1/ 14945 q 14946 } 14947 /^X\(\/\/\)[^/].*/{ 14948 s//\1/ 14949 q 14950 } 14951 /^X\(\/\/\)$/{ 14952 s//\1/ 14953 q 14954 } 14955 /^X\(\/\).*/{ 14956 s//\1/ 14957 q 14958 } 14959 s/.*/./; q'`/stamp-h$_am_stamp_count 14960 ;; 14961 14962 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14963$as_echo "$as_me: executing $ac_file commands" >&6;} 14964 ;; 14965 esac 14966 14967 14968 case $ac_file$ac_mode in 14969 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 14970# are listed without --file. Let's play safe and only enable the eval 14971# if we detect the quoting. 14972case $CONFIG_FILES in 14973*\'*) eval set x "$CONFIG_FILES" ;; 14974*) set x $CONFIG_FILES ;; 14975esac 14976shift 14977for mf 14978do 14979 # Strip MF so we end up with the name of the file. 14980 mf=`echo "$mf" | sed -e 's/:.*$//'` 14981 # Check whether this is an Automake generated Makefile or not. 14982 # We used to match only the files named `Makefile.in', but 14983 # some people rename them; so instead we look at the file content. 14984 # Grep'ing the first line is not enough: some people post-process 14985 # each Makefile.in and add a new line on top of each file to say so. 14986 # Grep'ing the whole file is not good either: AIX grep has a line 14987 # limit of 2048, but all sed's we know have understand at least 4000. 14988 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14989 dirpart=`$as_dirname -- "$mf" || 14990$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14991 X"$mf" : 'X\(//\)[^/]' \| \ 14992 X"$mf" : 'X\(//\)$' \| \ 14993 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14994$as_echo X"$mf" | 14995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14996 s//\1/ 14997 q 14998 } 14999 /^X\(\/\/\)[^/].*/{ 15000 s//\1/ 15001 q 15002 } 15003 /^X\(\/\/\)$/{ 15004 s//\1/ 15005 q 15006 } 15007 /^X\(\/\).*/{ 15008 s//\1/ 15009 q 15010 } 15011 s/.*/./; q'` 15012 else 15013 continue 15014 fi 15015 # Extract the definition of DEPDIR, am__include, and am__quote 15016 # from the Makefile without running `make'. 15017 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15018 test -z "$DEPDIR" && continue 15019 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15020 test -z "am__include" && continue 15021 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15022 # When using ansi2knr, U may be empty or an underscore; expand it 15023 U=`sed -n 's/^U = //p' < "$mf"` 15024 # Find all dependency output files, they are included files with 15025 # $(DEPDIR) in their names. We invoke sed twice because it is the 15026 # simplest approach to changing $(DEPDIR) to its actual value in the 15027 # expansion. 15028 for file in `sed -n " 15029 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15030 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15031 # Make sure the directory exists. 15032 test -f "$dirpart/$file" && continue 15033 fdir=`$as_dirname -- "$file" || 15034$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15035 X"$file" : 'X\(//\)[^/]' \| \ 15036 X"$file" : 'X\(//\)$' \| \ 15037 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15038$as_echo X"$file" | 15039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15040 s//\1/ 15041 q 15042 } 15043 /^X\(\/\/\)[^/].*/{ 15044 s//\1/ 15045 q 15046 } 15047 /^X\(\/\/\)$/{ 15048 s//\1/ 15049 q 15050 } 15051 /^X\(\/\).*/{ 15052 s//\1/ 15053 q 15054 } 15055 s/.*/./; q'` 15056 { as_dir=$dirpart/$fdir 15057 case $as_dir in #( 15058 -*) as_dir=./$as_dir;; 15059 esac 15060 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15061 as_dirs= 15062 while :; do 15063 case $as_dir in #( 15064 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15065 *) as_qdir=$as_dir;; 15066 esac 15067 as_dirs="'$as_qdir' $as_dirs" 15068 as_dir=`$as_dirname -- "$as_dir" || 15069$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15070 X"$as_dir" : 'X\(//\)[^/]' \| \ 15071 X"$as_dir" : 'X\(//\)$' \| \ 15072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15073$as_echo X"$as_dir" | 15074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15075 s//\1/ 15076 q 15077 } 15078 /^X\(\/\/\)[^/].*/{ 15079 s//\1/ 15080 q 15081 } 15082 /^X\(\/\/\)$/{ 15083 s//\1/ 15084 q 15085 } 15086 /^X\(\/\).*/{ 15087 s//\1/ 15088 q 15089 } 15090 s/.*/./; q'` 15091 test -d "$as_dir" && break 15092 done 15093 test -z "$as_dirs" || eval "mkdir $as_dirs" 15094 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15095$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15096 { (exit 1); exit 1; }; }; } 15097 # echo "creating $dirpart/$file" 15098 echo '# dummy' > "$dirpart/$file" 15099 done 15100done 15101 ;; 15102 "libtool":C) 15103 15104 # See if we are running on zsh, and set the options which allow our 15105 # commands through without removal of \ escapes. 15106 if test -n "${ZSH_VERSION+set}" ; then 15107 setopt NO_GLOB_SUBST 15108 fi 15109 15110 cfgfile="${ofile}T" 15111 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15112 $RM "$cfgfile" 15113 15114 cat <<_LT_EOF >> "$cfgfile" 15115#! $SHELL 15116 15117# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15118# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15119# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15120# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15121# 15122# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15123# 2006, 2007, 2008 Free Software Foundation, Inc. 15124# Written by Gordon Matzigkeit, 1996 15125# 15126# This file is part of GNU Libtool. 15127# 15128# GNU Libtool is free software; you can redistribute it and/or 15129# modify it under the terms of the GNU General Public License as 15130# published by the Free Software Foundation; either version 2 of 15131# the License, or (at your option) any later version. 15132# 15133# As a special exception to the GNU General Public License, 15134# if you distribute this file as part of a program or library that 15135# is built using GNU Libtool, you may include this file under the 15136# same distribution terms that you use for the rest of that program. 15137# 15138# GNU Libtool is distributed in the hope that it will be useful, 15139# but WITHOUT ANY WARRANTY; without even the implied warranty of 15140# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15141# GNU General Public License for more details. 15142# 15143# You should have received a copy of the GNU General Public License 15144# along with GNU Libtool; see the file COPYING. If not, a copy 15145# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15146# obtained by writing to the Free Software Foundation, Inc., 15147# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15148 15149 15150# The names of the tagged configurations supported by this script. 15151available_tags="" 15152 15153# ### BEGIN LIBTOOL CONFIG 15154 15155# Whether or not to build static libraries. 15156build_old_libs=$enable_static 15157 15158# Which release of libtool.m4 was used? 15159macro_version=$macro_version 15160macro_revision=$macro_revision 15161 15162# Whether or not to build shared libraries. 15163build_libtool_libs=$enable_shared 15164 15165# What type of objects to build. 15166pic_mode=$pic_mode 15167 15168# Whether or not to optimize for fast installation. 15169fast_install=$enable_fast_install 15170 15171# The host system. 15172host_alias=$host_alias 15173host=$host 15174host_os=$host_os 15175 15176# The build system. 15177build_alias=$build_alias 15178build=$build 15179build_os=$build_os 15180 15181# A sed program that does not truncate output. 15182SED=$lt_SED 15183 15184# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15185Xsed="\$SED -e 1s/^X//" 15186 15187# A grep program that handles long lines. 15188GREP=$lt_GREP 15189 15190# An ERE matcher. 15191EGREP=$lt_EGREP 15192 15193# A literal string matcher. 15194FGREP=$lt_FGREP 15195 15196# A BSD- or MS-compatible name lister. 15197NM=$lt_NM 15198 15199# Whether we need soft or hard links. 15200LN_S=$lt_LN_S 15201 15202# What is the maximum length of a command? 15203max_cmd_len=$max_cmd_len 15204 15205# Object file suffix (normally "o"). 15206objext=$ac_objext 15207 15208# Executable file suffix (normally ""). 15209exeext=$exeext 15210 15211# whether the shell understands "unset". 15212lt_unset=$lt_unset 15213 15214# turn spaces into newlines. 15215SP2NL=$lt_lt_SP2NL 15216 15217# turn newlines into spaces. 15218NL2SP=$lt_lt_NL2SP 15219 15220# How to create reloadable object files. 15221reload_flag=$lt_reload_flag 15222reload_cmds=$lt_reload_cmds 15223 15224# An object symbol dumper. 15225OBJDUMP=$lt_OBJDUMP 15226 15227# Method to check whether dependent libraries are shared objects. 15228deplibs_check_method=$lt_deplibs_check_method 15229 15230# Command to use when deplibs_check_method == "file_magic". 15231file_magic_cmd=$lt_file_magic_cmd 15232 15233# The archiver. 15234AR=$lt_AR 15235AR_FLAGS=$lt_AR_FLAGS 15236 15237# A symbol stripping program. 15238STRIP=$lt_STRIP 15239 15240# Commands used to install an old-style archive. 15241RANLIB=$lt_RANLIB 15242old_postinstall_cmds=$lt_old_postinstall_cmds 15243old_postuninstall_cmds=$lt_old_postuninstall_cmds 15244 15245# A C compiler. 15246LTCC=$lt_CC 15247 15248# LTCC compiler flags. 15249LTCFLAGS=$lt_CFLAGS 15250 15251# Take the output of nm and produce a listing of raw symbols and C names. 15252global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15253 15254# Transform the output of nm in a proper C declaration. 15255global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15256 15257# Transform the output of nm in a C name address pair. 15258global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15259 15260# Transform the output of nm in a C name address pair when lib prefix is needed. 15261global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15262 15263# The name of the directory that contains temporary libtool files. 15264objdir=$objdir 15265 15266# Shell to use when invoking shell scripts. 15267SHELL=$lt_SHELL 15268 15269# An echo program that does not interpret backslashes. 15270ECHO=$lt_ECHO 15271 15272# Used to examine libraries when file_magic_cmd begins with "file". 15273MAGIC_CMD=$MAGIC_CMD 15274 15275# Must we lock files when doing compilation? 15276need_locks=$lt_need_locks 15277 15278# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15279DSYMUTIL=$lt_DSYMUTIL 15280 15281# Tool to change global to local symbols on Mac OS X. 15282NMEDIT=$lt_NMEDIT 15283 15284# Tool to manipulate fat objects and archives on Mac OS X. 15285LIPO=$lt_LIPO 15286 15287# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15288OTOOL=$lt_OTOOL 15289 15290# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15291OTOOL64=$lt_OTOOL64 15292 15293# Old archive suffix (normally "a"). 15294libext=$libext 15295 15296# Shared library suffix (normally ".so"). 15297shrext_cmds=$lt_shrext_cmds 15298 15299# The commands to extract the exported symbol list from a shared archive. 15300extract_expsyms_cmds=$lt_extract_expsyms_cmds 15301 15302# Variables whose values should be saved in libtool wrapper scripts and 15303# restored at link time. 15304variables_saved_for_relink=$lt_variables_saved_for_relink 15305 15306# Do we need the "lib" prefix for modules? 15307need_lib_prefix=$need_lib_prefix 15308 15309# Do we need a version for libraries? 15310need_version=$need_version 15311 15312# Library versioning type. 15313version_type=$version_type 15314 15315# Shared library runtime path variable. 15316runpath_var=$runpath_var 15317 15318# Shared library path variable. 15319shlibpath_var=$shlibpath_var 15320 15321# Is shlibpath searched before the hard-coded library search path? 15322shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15323 15324# Format of library name prefix. 15325libname_spec=$lt_libname_spec 15326 15327# List of archive names. First name is the real one, the rest are links. 15328# The last name is the one that the linker finds with -lNAME 15329library_names_spec=$lt_library_names_spec 15330 15331# The coded name of the library, if different from the real name. 15332soname_spec=$lt_soname_spec 15333 15334# Command to use after installation of a shared archive. 15335postinstall_cmds=$lt_postinstall_cmds 15336 15337# Command to use after uninstallation of a shared archive. 15338postuninstall_cmds=$lt_postuninstall_cmds 15339 15340# Commands used to finish a libtool library installation in a directory. 15341finish_cmds=$lt_finish_cmds 15342 15343# As "finish_cmds", except a single script fragment to be evaled but 15344# not shown. 15345finish_eval=$lt_finish_eval 15346 15347# Whether we should hardcode library paths into libraries. 15348hardcode_into_libs=$hardcode_into_libs 15349 15350# Compile-time system search path for libraries. 15351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15352 15353# Run-time system search path for libraries. 15354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15355 15356# Whether dlopen is supported. 15357dlopen_support=$enable_dlopen 15358 15359# Whether dlopen of programs is supported. 15360dlopen_self=$enable_dlopen_self 15361 15362# Whether dlopen of statically linked programs is supported. 15363dlopen_self_static=$enable_dlopen_self_static 15364 15365# Commands to strip libraries. 15366old_striplib=$lt_old_striplib 15367striplib=$lt_striplib 15368 15369 15370# The linker used to build libraries. 15371LD=$lt_LD 15372 15373# Commands used to build an old-style archive. 15374old_archive_cmds=$lt_old_archive_cmds 15375 15376# A language specific compiler. 15377CC=$lt_compiler 15378 15379# Is the compiler the GNU compiler? 15380with_gcc=$GCC 15381 15382# Compiler flag to turn off builtin functions. 15383no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15384 15385# How to pass a linker flag through the compiler. 15386wl=$lt_lt_prog_compiler_wl 15387 15388# Additional compiler flags for building library objects. 15389pic_flag=$lt_lt_prog_compiler_pic 15390 15391# Compiler flag to prevent dynamic linking. 15392link_static_flag=$lt_lt_prog_compiler_static 15393 15394# Does compiler simultaneously support -c and -o options? 15395compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15396 15397# Whether or not to add -lc for building shared libraries. 15398build_libtool_need_lc=$archive_cmds_need_lc 15399 15400# Whether or not to disallow shared libs when runtime libs are static. 15401allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15402 15403# Compiler flag to allow reflexive dlopens. 15404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15405 15406# Compiler flag to generate shared objects directly from archives. 15407whole_archive_flag_spec=$lt_whole_archive_flag_spec 15408 15409# Whether the compiler copes with passing no objects directly. 15410compiler_needs_object=$lt_compiler_needs_object 15411 15412# Create an old-style archive from a shared archive. 15413old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15414 15415# Create a temporary old-style archive to link instead of a shared archive. 15416old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15417 15418# Commands used to build a shared archive. 15419archive_cmds=$lt_archive_cmds 15420archive_expsym_cmds=$lt_archive_expsym_cmds 15421 15422# Commands used to build a loadable module if different from building 15423# a shared archive. 15424module_cmds=$lt_module_cmds 15425module_expsym_cmds=$lt_module_expsym_cmds 15426 15427# Whether we are building with GNU ld or not. 15428with_gnu_ld=$lt_with_gnu_ld 15429 15430# Flag that allows shared libraries with undefined symbols to be built. 15431allow_undefined_flag=$lt_allow_undefined_flag 15432 15433# Flag that enforces no undefined symbols. 15434no_undefined_flag=$lt_no_undefined_flag 15435 15436# Flag to hardcode \$libdir into a binary during linking. 15437# This must work even if \$libdir does not exist 15438hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15439 15440# If ld is used when linking, flag to hardcode \$libdir into a binary 15441# during linking. This must work even if \$libdir does not exist. 15442hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15443 15444# Whether we need a single "-rpath" flag with a separated argument. 15445hardcode_libdir_separator=$lt_hardcode_libdir_separator 15446 15447# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15448# DIR into the resulting binary. 15449hardcode_direct=$hardcode_direct 15450 15451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15452# DIR into the resulting binary and the resulting library dependency is 15453# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15454# library is relocated. 15455hardcode_direct_absolute=$hardcode_direct_absolute 15456 15457# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15458# into the resulting binary. 15459hardcode_minus_L=$hardcode_minus_L 15460 15461# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15462# into the resulting binary. 15463hardcode_shlibpath_var=$hardcode_shlibpath_var 15464 15465# Set to "yes" if building a shared library automatically hardcodes DIR 15466# into the library and all subsequent libraries and executables linked 15467# against it. 15468hardcode_automatic=$hardcode_automatic 15469 15470# Set to yes if linker adds runtime paths of dependent libraries 15471# to runtime path list. 15472inherit_rpath=$inherit_rpath 15473 15474# Whether libtool must link a program against all its dependency libraries. 15475link_all_deplibs=$link_all_deplibs 15476 15477# Fix the shell variable \$srcfile for the compiler. 15478fix_srcfile_path=$lt_fix_srcfile_path 15479 15480# Set to "yes" if exported symbols are required. 15481always_export_symbols=$always_export_symbols 15482 15483# The commands to list exported symbols. 15484export_symbols_cmds=$lt_export_symbols_cmds 15485 15486# Symbols that should not be listed in the preloaded symbols. 15487exclude_expsyms=$lt_exclude_expsyms 15488 15489# Symbols that must always be exported. 15490include_expsyms=$lt_include_expsyms 15491 15492# Commands necessary for linking programs (against libraries) with templates. 15493prelink_cmds=$lt_prelink_cmds 15494 15495# Specify filename containing input files. 15496file_list_spec=$lt_file_list_spec 15497 15498# How to hardcode a shared library path into an executable. 15499hardcode_action=$hardcode_action 15500 15501# ### END LIBTOOL CONFIG 15502 15503_LT_EOF 15504 15505 case $host_os in 15506 aix3*) 15507 cat <<\_LT_EOF >> "$cfgfile" 15508# AIX sometimes has problems with the GCC collect2 program. For some 15509# reason, if we set the COLLECT_NAMES environment variable, the problems 15510# vanish in a puff of smoke. 15511if test "X${COLLECT_NAMES+set}" != Xset; then 15512 COLLECT_NAMES= 15513 export COLLECT_NAMES 15514fi 15515_LT_EOF 15516 ;; 15517 esac 15518 15519 15520ltmain="$ac_aux_dir/ltmain.sh" 15521 15522 15523 # We use sed instead of cat because bash on DJGPP gets confused if 15524 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15525 # text mode, it properly converts lines to CR/LF. This bash problem 15526 # is reportedly fixed, but why not run on old versions too? 15527 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15528 || (rm -f "$cfgfile"; exit 1) 15529 15530 case $xsi_shell in 15531 yes) 15532 cat << \_LT_EOF >> "$cfgfile" 15533 15534# func_dirname file append nondir_replacement 15535# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15536# otherwise set result to NONDIR_REPLACEMENT. 15537func_dirname () 15538{ 15539 case ${1} in 15540 */*) func_dirname_result="${1%/*}${2}" ;; 15541 * ) func_dirname_result="${3}" ;; 15542 esac 15543} 15544 15545# func_basename file 15546func_basename () 15547{ 15548 func_basename_result="${1##*/}" 15549} 15550 15551# func_dirname_and_basename file append nondir_replacement 15552# perform func_basename and func_dirname in a single function 15553# call: 15554# dirname: Compute the dirname of FILE. If nonempty, 15555# add APPEND to the result, otherwise set result 15556# to NONDIR_REPLACEMENT. 15557# value returned in "$func_dirname_result" 15558# basename: Compute filename of FILE. 15559# value retuned in "$func_basename_result" 15560# Implementation must be kept synchronized with func_dirname 15561# and func_basename. For efficiency, we do not delegate to 15562# those functions but instead duplicate the functionality here. 15563func_dirname_and_basename () 15564{ 15565 case ${1} in 15566 */*) func_dirname_result="${1%/*}${2}" ;; 15567 * ) func_dirname_result="${3}" ;; 15568 esac 15569 func_basename_result="${1##*/}" 15570} 15571 15572# func_stripname prefix suffix name 15573# strip PREFIX and SUFFIX off of NAME. 15574# PREFIX and SUFFIX must not contain globbing or regex special 15575# characters, hashes, percent signs, but SUFFIX may contain a leading 15576# dot (in which case that matches only a dot). 15577func_stripname () 15578{ 15579 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15580 # positional parameters, so assign one to ordinary parameter first. 15581 func_stripname_result=${3} 15582 func_stripname_result=${func_stripname_result#"${1}"} 15583 func_stripname_result=${func_stripname_result%"${2}"} 15584} 15585 15586# func_opt_split 15587func_opt_split () 15588{ 15589 func_opt_split_opt=${1%%=*} 15590 func_opt_split_arg=${1#*=} 15591} 15592 15593# func_lo2o object 15594func_lo2o () 15595{ 15596 case ${1} in 15597 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15598 *) func_lo2o_result=${1} ;; 15599 esac 15600} 15601 15602# func_xform libobj-or-source 15603func_xform () 15604{ 15605 func_xform_result=${1%.*}.lo 15606} 15607 15608# func_arith arithmetic-term... 15609func_arith () 15610{ 15611 func_arith_result=$(( $* )) 15612} 15613 15614# func_len string 15615# STRING may not start with a hyphen. 15616func_len () 15617{ 15618 func_len_result=${#1} 15619} 15620 15621_LT_EOF 15622 ;; 15623 *) # Bourne compatible functions. 15624 cat << \_LT_EOF >> "$cfgfile" 15625 15626# func_dirname file append nondir_replacement 15627# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15628# otherwise set result to NONDIR_REPLACEMENT. 15629func_dirname () 15630{ 15631 # Extract subdirectory from the argument. 15632 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15633 if test "X$func_dirname_result" = "X${1}"; then 15634 func_dirname_result="${3}" 15635 else 15636 func_dirname_result="$func_dirname_result${2}" 15637 fi 15638} 15639 15640# func_basename file 15641func_basename () 15642{ 15643 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15644} 15645 15646 15647# func_stripname prefix suffix name 15648# strip PREFIX and SUFFIX off of NAME. 15649# PREFIX and SUFFIX must not contain globbing or regex special 15650# characters, hashes, percent signs, but SUFFIX may contain a leading 15651# dot (in which case that matches only a dot). 15652# func_strip_suffix prefix name 15653func_stripname () 15654{ 15655 case ${2} in 15656 .*) func_stripname_result=`$ECHO "X${3}" \ 15657 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15658 *) func_stripname_result=`$ECHO "X${3}" \ 15659 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15660 esac 15661} 15662 15663# sed scripts: 15664my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15665my_sed_long_arg='1s/^-[^=]*=//' 15666 15667# func_opt_split 15668func_opt_split () 15669{ 15670 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15671 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15672} 15673 15674# func_lo2o object 15675func_lo2o () 15676{ 15677 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15678} 15679 15680# func_xform libobj-or-source 15681func_xform () 15682{ 15683 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15684} 15685 15686# func_arith arithmetic-term... 15687func_arith () 15688{ 15689 func_arith_result=`expr "$@"` 15690} 15691 15692# func_len string 15693# STRING may not start with a hyphen. 15694func_len () 15695{ 15696 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15697} 15698 15699_LT_EOF 15700esac 15701 15702case $lt_shell_append in 15703 yes) 15704 cat << \_LT_EOF >> "$cfgfile" 15705 15706# func_append var value 15707# Append VALUE to the end of shell variable VAR. 15708func_append () 15709{ 15710 eval "$1+=\$2" 15711} 15712_LT_EOF 15713 ;; 15714 *) 15715 cat << \_LT_EOF >> "$cfgfile" 15716 15717# func_append var value 15718# Append VALUE to the end of shell variable VAR. 15719func_append () 15720{ 15721 eval "$1=\$$1\$2" 15722} 15723 15724_LT_EOF 15725 ;; 15726 esac 15727 15728 15729 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15730 || (rm -f "$cfgfile"; exit 1) 15731 15732 mv -f "$cfgfile" "$ofile" || 15733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15734 chmod +x "$ofile" 15735 15736 ;; 15737 15738 esac 15739done # for ac_tag 15740 15741 15742{ (exit 0); exit 0; } 15743_ACEOF 15744chmod +x $CONFIG_STATUS 15745ac_clean_files=$ac_clean_files_save 15746 15747test $ac_write_fail = 0 || 15748 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15749$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15750 { (exit 1); exit 1; }; } 15751 15752 15753# configure is writing to config.log, and then calls config.status. 15754# config.status does its own redirection, appending to config.log. 15755# Unfortunately, on DOS this fails, as config.log is still kept open 15756# by configure, so config.status won't be able to write to it; its 15757# output is simply discarded. So we exec the FD to /dev/null, 15758# effectively closing config.log, so it can be properly (re)opened and 15759# appended to by config.status. When coming back to configure, we 15760# need to make the FD available again. 15761if test "$no_create" != yes; then 15762 ac_cs_success=: 15763 ac_config_status_args= 15764 test "$silent" = yes && 15765 ac_config_status_args="$ac_config_status_args --quiet" 15766 exec 5>/dev/null 15767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15768 exec 5>>config.log 15769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15770 # would make configure fail if this is the last instruction. 15771 $ac_cs_success || { (exit 1); exit 1; } 15772fi 15773if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15774 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15775$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15776fi 15777 15778