configure revision 2e76d66d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-intel 2.7.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-intel' 747PACKAGE_TARNAME='xf86-video-intel' 748PACKAGE_VERSION='2.7.1' 749PACKAGE_STRING='xf86-video-intel 2.7.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 801ADMIN_MAN_DIR 802DRIVER_MAN_DIR 803MISC_MAN_DIR 804FILE_MAN_DIR 805LIB_MAN_DIR 806APP_MAN_DIR 807ADMIN_MAN_SUFFIX 808DRIVER_MAN_SUFFIX 809MISC_MAN_SUFFIX 810FILE_MAN_SUFFIX 811LIB_MAN_SUFFIX 812APP_MAN_SUFFIX 813DRIVER_NAME 814moduledir 815WARN_CFLAGS 816XVMC_FALSE 817XVMC_TRUE 818XEXT_LIBS 819XEXT_CFLAGS 820XVMCLIB_LIBS 821XVMCLIB_CFLAGS 822VIDEO_DEBUG_FALSE 823VIDEO_DEBUG_TRUE 824DRM_MODE_LIBS 825DRM_MODE_CFLAGS 826DRI_LIBS 827DRI_CFLAGS 828DRI_FALSE 829DRI_TRUE 830DRM_LIBS 831DRM_CFLAGS 832XMODES_CFLAGS 833XMODES_FALSE 834XMODES_TRUE 835LIBPCIACCESS_FALSE 836LIBPCIACCESS_TRUE 837XSERVER_LIBPCIACCESS_FALSE 838XSERVER_LIBPCIACCESS_TRUE 839PCIACCESS_LIBS 840PCIACCESS_CFLAGS 841SERVER_1_5_LIBS 842SERVER_1_5_CFLAGS 843XORG_LIBS 844XORG_CFLAGS 845PKG_CONFIG 846HAVE_GEN4ASM_FALSE 847HAVE_GEN4ASM_TRUE 848gen4asm 849LTCXXCOMPILE 850LTCOMPILE 851DOLT_BASH 852CPP 853OTOOL64 854OTOOL 855LIPO 856NMEDIT 857DSYMUTIL 858lt_ECHO 859RANLIB 860AR 861OBJDUMP 862LN_S 863NM 864ac_ct_DUMPBIN 865DUMPBIN 866LD 867FGREP 868EGREP 869GREP 870SED 871am__fastdepCC_FALSE 872am__fastdepCC_TRUE 873CCDEPMODE 874AMDEPBACKSLASH 875AMDEP_FALSE 876AMDEP_TRUE 877am__quote 878am__include 879DEPDIR 880OBJEXT 881EXEEXT 882ac_ct_CC 883CPPFLAGS 884LDFLAGS 885CFLAGS 886CC 887host_os 888host_vendor 889host_cpu 890host 891build_os 892build_vendor 893build_cpu 894build 895LIBTOOL 896MAINT 897MAINTAINER_MODE_FALSE 898MAINTAINER_MODE_TRUE 899am__untar 900am__tar 901AMTAR 902am__leading_dot 903SET_MAKE 904AWK 905mkdir_p 906MKDIR_P 907INSTALL_STRIP_PROGRAM 908STRIP 909install_sh 910MAKEINFO 911AUTOHEADER 912AUTOMAKE 913AUTOCONF 914ACLOCAL 915VERSION 916PACKAGE 917CYGPATH_W 918am__isrc 919INSTALL_DATA 920INSTALL_SCRIPT 921INSTALL_PROGRAM 922target_alias 923host_alias 924build_alias 925LIBS 926ECHO_T 927ECHO_N 928ECHO_C 929DEFS 930mandir 931localedir 932libdir 933psdir 934pdfdir 935dvidir 936htmldir 937infodir 938docdir 939oldincludedir 940includedir 941localstatedir 942sharedstatedir 943sysconfdir 944datadir 945datarootdir 946libexecdir 947sbindir 948bindir 949program_transform_name 950prefix 951exec_prefix 952PACKAGE_BUGREPORT 953PACKAGE_STRING 954PACKAGE_VERSION 955PACKAGE_TARNAME 956PACKAGE_NAME 957PATH_SEPARATOR 958SHELL' 959ac_subst_files='' 960ac_user_opts=' 961enable_option_checking 962enable_maintainer_mode 963enable_static 964enable_shared 965with_pic 966enable_fast_install 967enable_dependency_tracking 968with_gnu_ld 969enable_libtool_lock 970with_xorg_module_dir 971enable_dri 972enable_video_debug 973with_xserver_source 974enable_xvmc 975with_release_version 976' 977 ac_precious_vars='build_alias 978host_alias 979target_alias 980CC 981CFLAGS 982LDFLAGS 983LIBS 984CPPFLAGS 985CPP 986PKG_CONFIG 987XORG_CFLAGS 988XORG_LIBS 989SERVER_1_5_CFLAGS 990SERVER_1_5_LIBS 991PCIACCESS_CFLAGS 992PCIACCESS_LIBS 993DRM_CFLAGS 994DRM_LIBS 995DRI_CFLAGS 996DRI_LIBS 997DRM_MODE_CFLAGS 998DRM_MODE_LIBS 999XVMCLIB_CFLAGS 1000XVMCLIB_LIBS 1001XEXT_CFLAGS 1002XEXT_LIBS' 1003 1004 1005# Initialize some variables set by options. 1006ac_init_help= 1007ac_init_version=false 1008ac_unrecognized_opts= 1009ac_unrecognized_sep= 1010# The variables have the same names as the options, with 1011# dashes changed to underlines. 1012cache_file=/dev/null 1013exec_prefix=NONE 1014no_create= 1015no_recursion= 1016prefix=NONE 1017program_prefix=NONE 1018program_suffix=NONE 1019program_transform_name=s,x,x, 1020silent= 1021site= 1022srcdir= 1023verbose= 1024x_includes=NONE 1025x_libraries=NONE 1026 1027# Installation directory options. 1028# These are left unexpanded so users can "make install exec_prefix=/foo" 1029# and all the variables that are supposed to be based on exec_prefix 1030# by default will actually change. 1031# Use braces instead of parens because sh, perl, etc. also accept them. 1032# (The list follows the same order as the GNU Coding Standards.) 1033bindir='${exec_prefix}/bin' 1034sbindir='${exec_prefix}/sbin' 1035libexecdir='${exec_prefix}/libexec' 1036datarootdir='${prefix}/share' 1037datadir='${datarootdir}' 1038sysconfdir='${prefix}/etc' 1039sharedstatedir='${prefix}/com' 1040localstatedir='${prefix}/var' 1041includedir='${prefix}/include' 1042oldincludedir='/usr/include' 1043docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1044infodir='${datarootdir}/info' 1045htmldir='${docdir}' 1046dvidir='${docdir}' 1047pdfdir='${docdir}' 1048psdir='${docdir}' 1049libdir='${exec_prefix}/lib' 1050localedir='${datarootdir}/locale' 1051mandir='${datarootdir}/man' 1052 1053ac_prev= 1054ac_dashdash= 1055for ac_option 1056do 1057 # If the previous option needs an argument, assign it. 1058 if test -n "$ac_prev"; then 1059 eval $ac_prev=\$ac_option 1060 ac_prev= 1061 continue 1062 fi 1063 1064 case $ac_option in 1065 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1066 *) ac_optarg=yes ;; 1067 esac 1068 1069 # Accept the important Cygnus configure options, so we can diagnose typos. 1070 1071 case $ac_dashdash$ac_option in 1072 --) 1073 ac_dashdash=yes ;; 1074 1075 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1076 ac_prev=bindir ;; 1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1078 bindir=$ac_optarg ;; 1079 1080 -build | --build | --buil | --bui | --bu) 1081 ac_prev=build_alias ;; 1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1083 build_alias=$ac_optarg ;; 1084 1085 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1087 ac_prev=cache_file ;; 1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1090 cache_file=$ac_optarg ;; 1091 1092 --config-cache | -C) 1093 cache_file=config.cache ;; 1094 1095 -datadir | --datadir | --datadi | --datad) 1096 ac_prev=datadir ;; 1097 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1098 datadir=$ac_optarg ;; 1099 1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1101 | --dataroo | --dataro | --datar) 1102 ac_prev=datarootdir ;; 1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1105 datarootdir=$ac_optarg ;; 1106 1107 -disable-* | --disable-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1112 { (exit 1); exit 1; }; } 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"enable_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval enable_$ac_useropt=no ;; 1123 1124 -docdir | --docdir | --docdi | --doc | --do) 1125 ac_prev=docdir ;; 1126 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1127 docdir=$ac_optarg ;; 1128 1129 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1130 ac_prev=dvidir ;; 1131 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1132 dvidir=$ac_optarg ;; 1133 1134 -enable-* | --enable-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1139 { (exit 1); exit 1; }; } 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"enable_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval enable_$ac_useropt=\$ac_optarg ;; 1150 1151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1153 | --exec | --exe | --ex) 1154 ac_prev=exec_prefix ;; 1155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1157 | --exec=* | --exe=* | --ex=*) 1158 exec_prefix=$ac_optarg ;; 1159 1160 -gas | --gas | --ga | --g) 1161 # Obsolete; use --with-gas. 1162 with_gas=yes ;; 1163 1164 -help | --help | --hel | --he | -h) 1165 ac_init_help=long ;; 1166 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1167 ac_init_help=recursive ;; 1168 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1169 ac_init_help=short ;; 1170 1171 -host | --host | --hos | --ho) 1172 ac_prev=host_alias ;; 1173 -host=* | --host=* | --hos=* | --ho=*) 1174 host_alias=$ac_optarg ;; 1175 1176 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1177 ac_prev=htmldir ;; 1178 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1179 | --ht=*) 1180 htmldir=$ac_optarg ;; 1181 1182 -includedir | --includedir | --includedi | --included | --include \ 1183 | --includ | --inclu | --incl | --inc) 1184 ac_prev=includedir ;; 1185 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1186 | --includ=* | --inclu=* | --incl=* | --inc=*) 1187 includedir=$ac_optarg ;; 1188 1189 -infodir | --infodir | --infodi | --infod | --info | --inf) 1190 ac_prev=infodir ;; 1191 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1192 infodir=$ac_optarg ;; 1193 1194 -libdir | --libdir | --libdi | --libd) 1195 ac_prev=libdir ;; 1196 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1197 libdir=$ac_optarg ;; 1198 1199 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1200 | --libexe | --libex | --libe) 1201 ac_prev=libexecdir ;; 1202 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1203 | --libexe=* | --libex=* | --libe=*) 1204 libexecdir=$ac_optarg ;; 1205 1206 -localedir | --localedir | --localedi | --localed | --locale) 1207 ac_prev=localedir ;; 1208 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1209 localedir=$ac_optarg ;; 1210 1211 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1212 | --localstate | --localstat | --localsta | --localst | --locals) 1213 ac_prev=localstatedir ;; 1214 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1215 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1216 localstatedir=$ac_optarg ;; 1217 1218 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1219 ac_prev=mandir ;; 1220 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1221 mandir=$ac_optarg ;; 1222 1223 -nfp | --nfp | --nf) 1224 # Obsolete; use --without-fp. 1225 with_fp=no ;; 1226 1227 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1228 | --no-cr | --no-c | -n) 1229 no_create=yes ;; 1230 1231 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1232 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1233 no_recursion=yes ;; 1234 1235 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1236 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1237 | --oldin | --oldi | --old | --ol | --o) 1238 ac_prev=oldincludedir ;; 1239 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1240 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1241 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1242 oldincludedir=$ac_optarg ;; 1243 1244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1245 ac_prev=prefix ;; 1246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1247 prefix=$ac_optarg ;; 1248 1249 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1250 | --program-pre | --program-pr | --program-p) 1251 ac_prev=program_prefix ;; 1252 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1253 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1254 program_prefix=$ac_optarg ;; 1255 1256 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1257 | --program-suf | --program-su | --program-s) 1258 ac_prev=program_suffix ;; 1259 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1260 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1261 program_suffix=$ac_optarg ;; 1262 1263 -program-transform-name | --program-transform-name \ 1264 | --program-transform-nam | --program-transform-na \ 1265 | --program-transform-n | --program-transform- \ 1266 | --program-transform | --program-transfor \ 1267 | --program-transfo | --program-transf \ 1268 | --program-trans | --program-tran \ 1269 | --progr-tra | --program-tr | --program-t) 1270 ac_prev=program_transform_name ;; 1271 -program-transform-name=* | --program-transform-name=* \ 1272 | --program-transform-nam=* | --program-transform-na=* \ 1273 | --program-transform-n=* | --program-transform-=* \ 1274 | --program-transform=* | --program-transfor=* \ 1275 | --program-transfo=* | --program-transf=* \ 1276 | --program-trans=* | --program-tran=* \ 1277 | --progr-tra=* | --program-tr=* | --program-t=*) 1278 program_transform_name=$ac_optarg ;; 1279 1280 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1281 ac_prev=pdfdir ;; 1282 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1283 pdfdir=$ac_optarg ;; 1284 1285 -psdir | --psdir | --psdi | --psd | --ps) 1286 ac_prev=psdir ;; 1287 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1288 psdir=$ac_optarg ;; 1289 1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1291 | -silent | --silent | --silen | --sile | --sil) 1292 silent=yes ;; 1293 1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1295 ac_prev=sbindir ;; 1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1297 | --sbi=* | --sb=*) 1298 sbindir=$ac_optarg ;; 1299 1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1302 | --sharedst | --shareds | --shared | --share | --shar \ 1303 | --sha | --sh) 1304 ac_prev=sharedstatedir ;; 1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1308 | --sha=* | --sh=*) 1309 sharedstatedir=$ac_optarg ;; 1310 1311 -site | --site | --sit) 1312 ac_prev=site ;; 1313 -site=* | --site=* | --sit=*) 1314 site=$ac_optarg ;; 1315 1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1317 ac_prev=srcdir ;; 1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1319 srcdir=$ac_optarg ;; 1320 1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1322 | --syscon | --sysco | --sysc | --sys | --sy) 1323 ac_prev=sysconfdir ;; 1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1326 sysconfdir=$ac_optarg ;; 1327 1328 -target | --target | --targe | --targ | --tar | --ta | --t) 1329 ac_prev=target_alias ;; 1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1331 target_alias=$ac_optarg ;; 1332 1333 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1334 verbose=yes ;; 1335 1336 -version | --version | --versio | --versi | --vers | -V) 1337 ac_init_version=: ;; 1338 1339 -with-* | --with-*) 1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1341 # Reject names that are not valid shell variable names. 1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1344 { (exit 1); exit 1; }; } 1345 ac_useropt_orig=$ac_useropt 1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1347 case $ac_user_opts in 1348 *" 1349"with_$ac_useropt" 1350"*) ;; 1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1352 ac_unrecognized_sep=', ';; 1353 esac 1354 eval with_$ac_useropt=\$ac_optarg ;; 1355 1356 -without-* | --without-*) 1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1358 # Reject names that are not valid shell variable names. 1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1360 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1361 { (exit 1); exit 1; }; } 1362 ac_useropt_orig=$ac_useropt 1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1364 case $ac_user_opts in 1365 *" 1366"with_$ac_useropt" 1367"*) ;; 1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1369 ac_unrecognized_sep=', ';; 1370 esac 1371 eval with_$ac_useropt=no ;; 1372 1373 --x) 1374 # Obsolete; use --with-x. 1375 with_x=yes ;; 1376 1377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1378 | --x-incl | --x-inc | --x-in | --x-i) 1379 ac_prev=x_includes ;; 1380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1382 x_includes=$ac_optarg ;; 1383 1384 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1386 ac_prev=x_libraries ;; 1387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1389 x_libraries=$ac_optarg ;; 1390 1391 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1392Try \`$0 --help' for more information." >&2 1393 { (exit 1); exit 1; }; } 1394 ;; 1395 1396 *=*) 1397 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1398 # Reject names that are not valid shell variable names. 1399 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1400 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1401 { (exit 1); exit 1; }; } 1402 eval $ac_envvar=\$ac_optarg 1403 export $ac_envvar ;; 1404 1405 *) 1406 # FIXME: should be removed in autoconf 3.0. 1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1410 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1411 ;; 1412 1413 esac 1414done 1415 1416if test -n "$ac_prev"; then 1417 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1418 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1419 { (exit 1); exit 1; }; } 1420fi 1421 1422if test -n "$ac_unrecognized_opts"; then 1423 case $enable_option_checking in 1424 no) ;; 1425 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1426 { (exit 1); exit 1; }; } ;; 1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1428 esac 1429fi 1430 1431# Check all directory arguments for consistency. 1432for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1433 datadir sysconfdir sharedstatedir localstatedir includedir \ 1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1435 libdir localedir mandir 1436do 1437 eval ac_val=\$$ac_var 1438 # Remove trailing slashes. 1439 case $ac_val in 1440 */ ) 1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1442 eval $ac_var=\$ac_val;; 1443 esac 1444 # Be sure to have absolute directory names. 1445 case $ac_val in 1446 [\\/$]* | ?:[\\/]* ) continue;; 1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1448 esac 1449 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1450 { (exit 1); exit 1; }; } 1451done 1452 1453# There might be people who depend on the old broken behavior: `$host' 1454# used to hold the argument of --host etc. 1455# FIXME: To remove some day. 1456build=$build_alias 1457host=$host_alias 1458target=$target_alias 1459 1460# FIXME: To remove some day. 1461if test "x$host_alias" != x; then 1462 if test "x$build_alias" = x; then 1463 cross_compiling=maybe 1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1465 If a cross compiler is detected then cross compile mode will be used." >&2 1466 elif test "x$build_alias" != "x$host_alias"; then 1467 cross_compiling=yes 1468 fi 1469fi 1470 1471ac_tool_prefix= 1472test -n "$host_alias" && ac_tool_prefix=$host_alias- 1473 1474test "$silent" = yes && exec 6>/dev/null 1475 1476 1477ac_pwd=`pwd` && test -n "$ac_pwd" && 1478ac_ls_di=`ls -di .` && 1479ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1480 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1481 { (exit 1); exit 1; }; } 1482test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1483 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1484 { (exit 1); exit 1; }; } 1485 1486 1487# Find the source files, if location was not specified. 1488if test -z "$srcdir"; then 1489 ac_srcdir_defaulted=yes 1490 # Try the directory containing this script, then the parent directory. 1491 ac_confdir=`$as_dirname -- "$as_myself" || 1492$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1493 X"$as_myself" : 'X\(//\)[^/]' \| \ 1494 X"$as_myself" : 'X\(//\)$' \| \ 1495 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1496$as_echo X"$as_myself" | 1497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1498 s//\1/ 1499 q 1500 } 1501 /^X\(\/\/\)[^/].*/{ 1502 s//\1/ 1503 q 1504 } 1505 /^X\(\/\/\)$/{ 1506 s//\1/ 1507 q 1508 } 1509 /^X\(\/\).*/{ 1510 s//\1/ 1511 q 1512 } 1513 s/.*/./; q'` 1514 srcdir=$ac_confdir 1515 if test ! -r "$srcdir/$ac_unique_file"; then 1516 srcdir=.. 1517 fi 1518else 1519 ac_srcdir_defaulted=no 1520fi 1521if test ! -r "$srcdir/$ac_unique_file"; then 1522 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1523 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1524 { (exit 1); exit 1; }; } 1525fi 1526ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1527ac_abs_confdir=`( 1528 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1529 { (exit 1); exit 1; }; } 1530 pwd)` 1531# When building in place, set srcdir=. 1532if test "$ac_abs_confdir" = "$ac_pwd"; then 1533 srcdir=. 1534fi 1535# Remove unnecessary trailing slashes from srcdir. 1536# Double slashes in file names in object file debugging info 1537# mess up M-x gdb in Emacs. 1538case $srcdir in 1539*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1540esac 1541for ac_var in $ac_precious_vars; do 1542 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1543 eval ac_env_${ac_var}_value=\$${ac_var} 1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1545 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1546done 1547 1548# 1549# Report the --help message. 1550# 1551if test "$ac_init_help" = "long"; then 1552 # Omit some internal or obsolete options to make the list less imposing. 1553 # This message is too long to be a string in the A/UX 3.1 sh. 1554 cat <<_ACEOF 1555\`configure' configures xf86-video-intel 2.7.1 to adapt to many kinds of systems. 1556 1557Usage: $0 [OPTION]... [VAR=VALUE]... 1558 1559To assign environment variables (e.g., CC, CFLAGS...), specify them as 1560VAR=VALUE. See below for descriptions of some of the useful variables. 1561 1562Defaults for the options are specified in brackets. 1563 1564Configuration: 1565 -h, --help display this help and exit 1566 --help=short display options specific to this package 1567 --help=recursive display the short help of all the included packages 1568 -V, --version display version information and exit 1569 -q, --quiet, --silent do not print \`checking...' messages 1570 --cache-file=FILE cache test results in FILE [disabled] 1571 -C, --config-cache alias for \`--cache-file=config.cache' 1572 -n, --no-create do not create output files 1573 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1574 1575Installation directories: 1576 --prefix=PREFIX install architecture-independent files in PREFIX 1577 [$ac_default_prefix] 1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1579 [PREFIX] 1580 1581By default, \`make install' will install all the files in 1582\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1583an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1584for instance \`--prefix=\$HOME'. 1585 1586For better control, use the options below. 1587 1588Fine tuning of the installation directories: 1589 --bindir=DIR user executables [EPREFIX/bin] 1590 --sbindir=DIR system admin executables [EPREFIX/sbin] 1591 --libexecdir=DIR program executables [EPREFIX/libexec] 1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1595 --libdir=DIR object code libraries [EPREFIX/lib] 1596 --includedir=DIR C header files [PREFIX/include] 1597 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1600 --infodir=DIR info documentation [DATAROOTDIR/info] 1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1602 --mandir=DIR man documentation [DATAROOTDIR/man] 1603 --docdir=DIR documentation root 1604 [DATAROOTDIR/doc/xf86-video-intel] 1605 --htmldir=DIR html documentation [DOCDIR] 1606 --dvidir=DIR dvi documentation [DOCDIR] 1607 --pdfdir=DIR pdf documentation [DOCDIR] 1608 --psdir=DIR ps documentation [DOCDIR] 1609_ACEOF 1610 1611 cat <<\_ACEOF 1612 1613Program names: 1614 --program-prefix=PREFIX prepend PREFIX to installed program names 1615 --program-suffix=SUFFIX append SUFFIX to installed program names 1616 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1617 1618System types: 1619 --build=BUILD configure for building on BUILD [guessed] 1620 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1621_ACEOF 1622fi 1623 1624if test -n "$ac_init_help"; then 1625 case $ac_init_help in 1626 short | recursive ) echo "Configuration of xf86-video-intel 2.7.1:";; 1627 esac 1628 cat <<\_ACEOF 1629 1630Optional Features: 1631 --disable-option-checking ignore unrecognized --enable/--with options 1632 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1633 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1634 --enable-maintainer-mode enable make rules and dependencies not useful 1635 (and sometimes confusing) to the casual installer 1636 --enable-static[=PKGS] build static libraries [default=no] 1637 --enable-shared[=PKGS] build shared libraries [default=yes] 1638 --enable-fast-install[=PKGS] 1639 optimize for fast installation [default=yes] 1640 --disable-dependency-tracking speeds up one-time build 1641 --enable-dependency-tracking do not reject slow dependency extractors 1642 --disable-libtool-lock avoid locking (might break parallel builds) 1643 --disable-dri Disable DRI support [default=auto] 1644 --enable-video-debug Enable video debugging support [default=no] 1645 --disable-xvmc Disable XvMC support [default=auto] 1646 1647Optional Packages: 1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1650 --with-pic try to use only PIC/non-PIC objects [default=use 1651 both] 1652 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1653 --with-xorg-module-dir=DIR 1654 Default xorg module directory 1655 [default=$libdir/xorg/modules] 1656 --with-xserver-source=XSERVER_SOURCE 1657 Path to X server source tree 1658 --with-release-version=STRING 1659 Use release version string in package name 1660 1661Some influential environment variables: 1662 CC C compiler command 1663 CFLAGS C compiler flags 1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1665 nonstandard directory <lib dir> 1666 LIBS libraries to pass to the linker, e.g. -l<library> 1667 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1668 you have headers in a nonstandard directory <include dir> 1669 CPP C preprocessor 1670 PKG_CONFIG path to pkg-config utility 1671 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1672 XORG_LIBS linker flags for XORG, overriding pkg-config 1673 SERVER_1_5_CFLAGS 1674 C compiler flags for SERVER_1_5, overriding pkg-config 1675 SERVER_1_5_LIBS 1676 linker flags for SERVER_1_5, overriding pkg-config 1677 PCIACCESS_CFLAGS 1678 C compiler flags for PCIACCESS, overriding pkg-config 1679 PCIACCESS_LIBS 1680 linker flags for PCIACCESS, overriding pkg-config 1681 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1682 DRM_LIBS linker flags for DRM, overriding pkg-config 1683 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1684 DRI_LIBS linker flags for DRI, overriding pkg-config 1685 DRM_MODE_CFLAGS 1686 C compiler flags for DRM_MODE, overriding pkg-config 1687 DRM_MODE_LIBS 1688 linker flags for DRM_MODE, overriding pkg-config 1689 XVMCLIB_CFLAGS 1690 C compiler flags for XVMCLIB, overriding pkg-config 1691 XVMCLIB_LIBS 1692 linker flags for XVMCLIB, overriding pkg-config 1693 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1694 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1695 1696Use these variables to override the choices made by `configure' or to help 1697it to find libraries and programs with nonstandard names/locations. 1698 1699Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1700_ACEOF 1701ac_status=$? 1702fi 1703 1704if test "$ac_init_help" = "recursive"; then 1705 # If there are subdirs, report their specific --help. 1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1707 test -d "$ac_dir" || 1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1709 continue 1710 ac_builddir=. 1711 1712case "$ac_dir" in 1713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1714*) 1715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1716 # A ".." for each directory in $ac_dir_suffix. 1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1718 case $ac_top_builddir_sub in 1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1721 esac ;; 1722esac 1723ac_abs_top_builddir=$ac_pwd 1724ac_abs_builddir=$ac_pwd$ac_dir_suffix 1725# for backward compatibility: 1726ac_top_builddir=$ac_top_build_prefix 1727 1728case $srcdir in 1729 .) # We are building in place. 1730 ac_srcdir=. 1731 ac_top_srcdir=$ac_top_builddir_sub 1732 ac_abs_top_srcdir=$ac_pwd ;; 1733 [\\/]* | ?:[\\/]* ) # Absolute name. 1734 ac_srcdir=$srcdir$ac_dir_suffix; 1735 ac_top_srcdir=$srcdir 1736 ac_abs_top_srcdir=$srcdir ;; 1737 *) # Relative name. 1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1739 ac_top_srcdir=$ac_top_build_prefix$srcdir 1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1741esac 1742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1743 1744 cd "$ac_dir" || { ac_status=$?; continue; } 1745 # Check for guested configure. 1746 if test -f "$ac_srcdir/configure.gnu"; then 1747 echo && 1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1749 elif test -f "$ac_srcdir/configure"; then 1750 echo && 1751 $SHELL "$ac_srcdir/configure" --help=recursive 1752 else 1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1754 fi || ac_status=$? 1755 cd "$ac_pwd" || { ac_status=$?; break; } 1756 done 1757fi 1758 1759test -n "$ac_init_help" && exit $ac_status 1760if $ac_init_version; then 1761 cat <<\_ACEOF 1762xf86-video-intel configure 2.7.1 1763generated by GNU Autoconf 2.63 1764 1765Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17662002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1767This configure script is free software; the Free Software Foundation 1768gives unlimited permission to copy, distribute and modify it. 1769_ACEOF 1770 exit 1771fi 1772cat >config.log <<_ACEOF 1773This file contains any messages produced by compilers while 1774running configure, to aid debugging if configure makes a mistake. 1775 1776It was created by xf86-video-intel $as_me 2.7.1, which was 1777generated by GNU Autoconf 2.63. Invocation command line was 1778 1779 $ $0 $@ 1780 1781_ACEOF 1782exec 5>>config.log 1783{ 1784cat <<_ASUNAME 1785## --------- ## 1786## Platform. ## 1787## --------- ## 1788 1789hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1790uname -m = `(uname -m) 2>/dev/null || echo unknown` 1791uname -r = `(uname -r) 2>/dev/null || echo unknown` 1792uname -s = `(uname -s) 2>/dev/null || echo unknown` 1793uname -v = `(uname -v) 2>/dev/null || echo unknown` 1794 1795/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1796/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1797 1798/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1799/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1800/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1801/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1802/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1803/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1804/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1805 1806_ASUNAME 1807 1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1809for as_dir in $PATH 1810do 1811 IFS=$as_save_IFS 1812 test -z "$as_dir" && as_dir=. 1813 $as_echo "PATH: $as_dir" 1814done 1815IFS=$as_save_IFS 1816 1817} >&5 1818 1819cat >&5 <<_ACEOF 1820 1821 1822## ----------- ## 1823## Core tests. ## 1824## ----------- ## 1825 1826_ACEOF 1827 1828 1829# Keep a trace of the command line. 1830# Strip out --no-create and --no-recursion so they do not pile up. 1831# Strip out --silent because we don't want to record it for future runs. 1832# Also quote any args containing shell meta-characters. 1833# Make two passes to allow for proper duplicate-argument suppression. 1834ac_configure_args= 1835ac_configure_args0= 1836ac_configure_args1= 1837ac_must_keep_next=false 1838for ac_pass in 1 2 1839do 1840 for ac_arg 1841 do 1842 case $ac_arg in 1843 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1845 | -silent | --silent | --silen | --sile | --sil) 1846 continue ;; 1847 *\'*) 1848 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1849 esac 1850 case $ac_pass in 1851 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1852 2) 1853 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1854 if test $ac_must_keep_next = true; then 1855 ac_must_keep_next=false # Got value, back to normal. 1856 else 1857 case $ac_arg in 1858 *=* | --config-cache | -C | -disable-* | --disable-* \ 1859 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1860 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1861 | -with-* | --with-* | -without-* | --without-* | --x) 1862 case "$ac_configure_args0 " in 1863 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1864 esac 1865 ;; 1866 -* ) ac_must_keep_next=true ;; 1867 esac 1868 fi 1869 ac_configure_args="$ac_configure_args '$ac_arg'" 1870 ;; 1871 esac 1872 done 1873done 1874$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1875$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1876 1877# When interrupted or exit'd, cleanup temporary files, and complete 1878# config.log. We remove comments because anyway the quotes in there 1879# would cause problems or look ugly. 1880# WARNING: Use '\'' to represent an apostrophe within the trap. 1881# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1882trap 'exit_status=$? 1883 # Save into config.log some information that might help in debugging. 1884 { 1885 echo 1886 1887 cat <<\_ASBOX 1888## ---------------- ## 1889## Cache variables. ## 1890## ---------------- ## 1891_ASBOX 1892 echo 1893 # The following way of writing the cache mishandles newlines in values, 1894( 1895 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1896 eval ac_val=\$$ac_var 1897 case $ac_val in #( 1898 *${as_nl}*) 1899 case $ac_var in #( 1900 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1902 esac 1903 case $ac_var in #( 1904 _ | IFS | as_nl) ;; #( 1905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1906 *) $as_unset $ac_var ;; 1907 esac ;; 1908 esac 1909 done 1910 (set) 2>&1 | 1911 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1912 *${as_nl}ac_space=\ *) 1913 sed -n \ 1914 "s/'\''/'\''\\\\'\'''\''/g; 1915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1916 ;; #( 1917 *) 1918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1919 ;; 1920 esac | 1921 sort 1922) 1923 echo 1924 1925 cat <<\_ASBOX 1926## ----------------- ## 1927## Output variables. ## 1928## ----------------- ## 1929_ASBOX 1930 echo 1931 for ac_var in $ac_subst_vars 1932 do 1933 eval ac_val=\$$ac_var 1934 case $ac_val in 1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1936 esac 1937 $as_echo "$ac_var='\''$ac_val'\''" 1938 done | sort 1939 echo 1940 1941 if test -n "$ac_subst_files"; then 1942 cat <<\_ASBOX 1943## ------------------- ## 1944## File substitutions. ## 1945## ------------------- ## 1946_ASBOX 1947 echo 1948 for ac_var in $ac_subst_files 1949 do 1950 eval ac_val=\$$ac_var 1951 case $ac_val in 1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1953 esac 1954 $as_echo "$ac_var='\''$ac_val'\''" 1955 done | sort 1956 echo 1957 fi 1958 1959 if test -s confdefs.h; then 1960 cat <<\_ASBOX 1961## ----------- ## 1962## confdefs.h. ## 1963## ----------- ## 1964_ASBOX 1965 echo 1966 cat confdefs.h 1967 echo 1968 fi 1969 test "$ac_signal" != 0 && 1970 $as_echo "$as_me: caught signal $ac_signal" 1971 $as_echo "$as_me: exit $exit_status" 1972 } >&5 1973 rm -f core *.core core.conftest.* && 1974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1975 exit $exit_status 1976' 0 1977for ac_signal in 1 2 13 15; do 1978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1979done 1980ac_signal=0 1981 1982# confdefs.h avoids OS command line length limits that DEFS can exceed. 1983rm -f -r conftest* confdefs.h 1984 1985# Predefined preprocessor variables. 1986 1987cat >>confdefs.h <<_ACEOF 1988#define PACKAGE_NAME "$PACKAGE_NAME" 1989_ACEOF 1990 1991 1992cat >>confdefs.h <<_ACEOF 1993#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1994_ACEOF 1995 1996 1997cat >>confdefs.h <<_ACEOF 1998#define PACKAGE_VERSION "$PACKAGE_VERSION" 1999_ACEOF 2000 2001 2002cat >>confdefs.h <<_ACEOF 2003#define PACKAGE_STRING "$PACKAGE_STRING" 2004_ACEOF 2005 2006 2007cat >>confdefs.h <<_ACEOF 2008#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2009_ACEOF 2010 2011 2012# Let the site file select an alternate cache file if it wants to. 2013# Prefer an explicitly selected file to automatically selected ones. 2014ac_site_file1=NONE 2015ac_site_file2=NONE 2016if test -n "$CONFIG_SITE"; then 2017 ac_site_file1=$CONFIG_SITE 2018elif test "x$prefix" != xNONE; then 2019 ac_site_file1=$prefix/share/config.site 2020 ac_site_file2=$prefix/etc/config.site 2021else 2022 ac_site_file1=$ac_default_prefix/share/config.site 2023 ac_site_file2=$ac_default_prefix/etc/config.site 2024fi 2025for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2026do 2027 test "x$ac_site_file" = xNONE && continue 2028 if test -r "$ac_site_file"; then 2029 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2030$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2031 sed 's/^/| /' "$ac_site_file" >&5 2032 . "$ac_site_file" 2033 fi 2034done 2035 2036if test -r "$cache_file"; then 2037 # Some versions of bash will fail to source /dev/null (special 2038 # files actually), so we avoid doing that. 2039 if test -f "$cache_file"; then 2040 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2041$as_echo "$as_me: loading cache $cache_file" >&6;} 2042 case $cache_file in 2043 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2044 *) . "./$cache_file";; 2045 esac 2046 fi 2047else 2048 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2049$as_echo "$as_me: creating cache $cache_file" >&6;} 2050 >$cache_file 2051fi 2052 2053# Check that the precious variables saved in the cache have kept the same 2054# value. 2055ac_cache_corrupted=false 2056for ac_var in $ac_precious_vars; do 2057 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2058 eval ac_new_set=\$ac_env_${ac_var}_set 2059 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2060 eval ac_new_val=\$ac_env_${ac_var}_value 2061 case $ac_old_set,$ac_new_set in 2062 set,) 2063 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2064$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2065 ac_cache_corrupted=: ;; 2066 ,set) 2067 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2068$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2069 ac_cache_corrupted=: ;; 2070 ,);; 2071 *) 2072 if test "x$ac_old_val" != "x$ac_new_val"; then 2073 # differences in whitespace do not lead to failure. 2074 ac_old_val_w=`echo x $ac_old_val` 2075 ac_new_val_w=`echo x $ac_new_val` 2076 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2077 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2078$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2079 ac_cache_corrupted=: 2080 else 2081 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2082$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2083 eval $ac_var=\$ac_old_val 2084 fi 2085 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2086$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2087 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2088$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2089 fi;; 2090 esac 2091 # Pass precious variables to config.status. 2092 if test "$ac_new_set" = set; then 2093 case $ac_new_val in 2094 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2095 *) ac_arg=$ac_var=$ac_new_val ;; 2096 esac 2097 case " $ac_configure_args " in 2098 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2099 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2100 esac 2101 fi 2102done 2103if $ac_cache_corrupted; then 2104 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2106 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2107$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2108 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2109$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2110 { (exit 1); exit 1; }; } 2111fi 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137ac_ext=c 2138ac_cpp='$CPP $CPPFLAGS' 2139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2141ac_compiler_gnu=$ac_cv_c_compiler_gnu 2142 2143 2144 2145 2146ac_config_headers="$ac_config_headers config.h" 2147 2148ac_aux_dir= 2149for ac_dir in . "$srcdir"/.; do 2150 if test -f "$ac_dir/install-sh"; then 2151 ac_aux_dir=$ac_dir 2152 ac_install_sh="$ac_aux_dir/install-sh -c" 2153 break 2154 elif test -f "$ac_dir/install.sh"; then 2155 ac_aux_dir=$ac_dir 2156 ac_install_sh="$ac_aux_dir/install.sh -c" 2157 break 2158 elif test -f "$ac_dir/shtool"; then 2159 ac_aux_dir=$ac_dir 2160 ac_install_sh="$ac_aux_dir/shtool install -c" 2161 break 2162 fi 2163done 2164if test -z "$ac_aux_dir"; then 2165 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2166$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2167 { (exit 1); exit 1; }; } 2168fi 2169 2170# These three variables are undocumented and unsupported, 2171# and are intended to be withdrawn in a future Autoconf release. 2172# They can cause serious problems if a builder's source tree is in a directory 2173# whose full name contains unusual characters. 2174ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2175ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2176ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2177 2178 2179 2180am__api_version='1.10' 2181 2182# Find a good install program. We prefer a C program (faster), 2183# so one script is as good as another. But avoid the broken or 2184# incompatible versions: 2185# SysV /etc/install, /usr/sbin/install 2186# SunOS /usr/etc/install 2187# IRIX /sbin/install 2188# AIX /bin/install 2189# AmigaOS /C/install, which installs bootblocks on floppy discs 2190# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2191# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2192# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2193# OS/2's system install, which has a completely different semantic 2194# ./install, which can be erroneously created by make from ./install.sh. 2195# Reject install programs that cannot install multiple files. 2196{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2197$as_echo_n "checking for a BSD-compatible install... " >&6; } 2198if test -z "$INSTALL"; then 2199if test "${ac_cv_path_install+set}" = set; then 2200 $as_echo_n "(cached) " >&6 2201else 2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2203for as_dir in $PATH 2204do 2205 IFS=$as_save_IFS 2206 test -z "$as_dir" && as_dir=. 2207 # Account for people who put trailing slashes in PATH elements. 2208case $as_dir/ in 2209 ./ | .// | /cC/* | \ 2210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2211 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2212 /usr/ucb/* ) ;; 2213 *) 2214 # OSF1 and SCO ODT 3.0 have their own names for install. 2215 # Don't use installbsd from OSF since it installs stuff as root 2216 # by default. 2217 for ac_prog in ginstall scoinst install; do 2218 for ac_exec_ext in '' $ac_executable_extensions; do 2219 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2220 if test $ac_prog = install && 2221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2222 # AIX install. It has an incompatible calling convention. 2223 : 2224 elif test $ac_prog = install && 2225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2226 # program-specific install script used by HP pwplus--don't use. 2227 : 2228 else 2229 rm -rf conftest.one conftest.two conftest.dir 2230 echo one > conftest.one 2231 echo two > conftest.two 2232 mkdir conftest.dir 2233 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2234 test -s conftest.one && test -s conftest.two && 2235 test -s conftest.dir/conftest.one && 2236 test -s conftest.dir/conftest.two 2237 then 2238 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2239 break 3 2240 fi 2241 fi 2242 fi 2243 done 2244 done 2245 ;; 2246esac 2247 2248done 2249IFS=$as_save_IFS 2250 2251rm -rf conftest.one conftest.two conftest.dir 2252 2253fi 2254 if test "${ac_cv_path_install+set}" = set; then 2255 INSTALL=$ac_cv_path_install 2256 else 2257 # As a last resort, use the slow shell script. Don't cache a 2258 # value for INSTALL within a source directory, because that will 2259 # break other packages using the cache if that directory is 2260 # removed, or if the value is a relative name. 2261 INSTALL=$ac_install_sh 2262 fi 2263fi 2264{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2265$as_echo "$INSTALL" >&6; } 2266 2267# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2268# It thinks the first close brace ends the variable substitution. 2269test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2270 2271test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2272 2273test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2274 2275{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2276$as_echo_n "checking whether build environment is sane... " >&6; } 2277# Just in case 2278sleep 1 2279echo timestamp > conftest.file 2280# Do `set' in a subshell so we don't clobber the current shell's 2281# arguments. Must try -L first in case configure is actually a 2282# symlink; some systems play weird games with the mod time of symlinks 2283# (eg FreeBSD returns the mod time of the symlink's containing 2284# directory). 2285if ( 2286 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2287 if test "$*" = "X"; then 2288 # -L didn't work. 2289 set X `ls -t $srcdir/configure conftest.file` 2290 fi 2291 rm -f conftest.file 2292 if test "$*" != "X $srcdir/configure conftest.file" \ 2293 && test "$*" != "X conftest.file $srcdir/configure"; then 2294 2295 # If neither matched, then we have a broken ls. This can happen 2296 # if, for instance, CONFIG_SHELL is bash and it inherits a 2297 # broken ls alias from the environment. This has actually 2298 # happened. Such a system could not be considered "sane". 2299 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2300alias in your environment" >&5 2301$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2302alias in your environment" >&2;} 2303 { (exit 1); exit 1; }; } 2304 fi 2305 2306 test "$2" = conftest.file 2307 ) 2308then 2309 # Ok. 2310 : 2311else 2312 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2313Check your system clock" >&5 2314$as_echo "$as_me: error: newly created file is older than distributed files! 2315Check your system clock" >&2;} 2316 { (exit 1); exit 1; }; } 2317fi 2318{ $as_echo "$as_me:$LINENO: result: yes" >&5 2319$as_echo "yes" >&6; } 2320test "$program_prefix" != NONE && 2321 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2322# Use a double $ so make ignores it. 2323test "$program_suffix" != NONE && 2324 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2325# Double any \ or $. 2326# By default was `s,x,x', remove it if useless. 2327ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2328program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2329 2330# expand $ac_aux_dir to an absolute path 2331am_aux_dir=`cd $ac_aux_dir && pwd` 2332 2333test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2334# Use eval to expand $SHELL 2335if eval "$MISSING --run true"; then 2336 am_missing_run="$MISSING --run " 2337else 2338 am_missing_run= 2339 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2340$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2341fi 2342 2343{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2344$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2345if test -z "$MKDIR_P"; then 2346 if test "${ac_cv_path_mkdir+set}" = set; then 2347 $as_echo_n "(cached) " >&6 2348else 2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2351do 2352 IFS=$as_save_IFS 2353 test -z "$as_dir" && as_dir=. 2354 for ac_prog in mkdir gmkdir; do 2355 for ac_exec_ext in '' $ac_executable_extensions; do 2356 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2357 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2358 'mkdir (GNU coreutils) '* | \ 2359 'mkdir (coreutils) '* | \ 2360 'mkdir (fileutils) '4.1*) 2361 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2362 break 3;; 2363 esac 2364 done 2365 done 2366done 2367IFS=$as_save_IFS 2368 2369fi 2370 2371 if test "${ac_cv_path_mkdir+set}" = set; then 2372 MKDIR_P="$ac_cv_path_mkdir -p" 2373 else 2374 # As a last resort, use the slow shell script. Don't cache a 2375 # value for MKDIR_P within a source directory, because that will 2376 # break other packages using the cache if that directory is 2377 # removed, or if the value is a relative name. 2378 test -d ./--version && rmdir ./--version 2379 MKDIR_P="$ac_install_sh -d" 2380 fi 2381fi 2382{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2383$as_echo "$MKDIR_P" >&6; } 2384 2385mkdir_p="$MKDIR_P" 2386case $mkdir_p in 2387 [\\/$]* | ?:[\\/]*) ;; 2388 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2389esac 2390 2391for ac_prog in gawk mawk nawk awk 2392do 2393 # Extract the first word of "$ac_prog", so it can be a program name with args. 2394set dummy $ac_prog; ac_word=$2 2395{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2396$as_echo_n "checking for $ac_word... " >&6; } 2397if test "${ac_cv_prog_AWK+set}" = set; then 2398 $as_echo_n "(cached) " >&6 2399else 2400 if test -n "$AWK"; then 2401 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2402else 2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2404for as_dir in $PATH 2405do 2406 IFS=$as_save_IFS 2407 test -z "$as_dir" && as_dir=. 2408 for ac_exec_ext in '' $ac_executable_extensions; do 2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2410 ac_cv_prog_AWK="$ac_prog" 2411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2412 break 2 2413 fi 2414done 2415done 2416IFS=$as_save_IFS 2417 2418fi 2419fi 2420AWK=$ac_cv_prog_AWK 2421if test -n "$AWK"; then 2422 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2423$as_echo "$AWK" >&6; } 2424else 2425 { $as_echo "$as_me:$LINENO: result: no" >&5 2426$as_echo "no" >&6; } 2427fi 2428 2429 2430 test -n "$AWK" && break 2431done 2432 2433{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2434$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2435set x ${MAKE-make} 2436ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2437if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2438 $as_echo_n "(cached) " >&6 2439else 2440 cat >conftest.make <<\_ACEOF 2441SHELL = /bin/sh 2442all: 2443 @echo '@@@%%%=$(MAKE)=@@@%%%' 2444_ACEOF 2445# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2446case `${MAKE-make} -f conftest.make 2>/dev/null` in 2447 *@@@%%%=?*=@@@%%%*) 2448 eval ac_cv_prog_make_${ac_make}_set=yes;; 2449 *) 2450 eval ac_cv_prog_make_${ac_make}_set=no;; 2451esac 2452rm -f conftest.make 2453fi 2454if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2455 { $as_echo "$as_me:$LINENO: result: yes" >&5 2456$as_echo "yes" >&6; } 2457 SET_MAKE= 2458else 2459 { $as_echo "$as_me:$LINENO: result: no" >&5 2460$as_echo "no" >&6; } 2461 SET_MAKE="MAKE=${MAKE-make}" 2462fi 2463 2464rm -rf .tst 2>/dev/null 2465mkdir .tst 2>/dev/null 2466if test -d .tst; then 2467 am__leading_dot=. 2468else 2469 am__leading_dot=_ 2470fi 2471rmdir .tst 2>/dev/null 2472 2473if test "`cd $srcdir && pwd`" != "`pwd`"; then 2474 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2475 # is not polluted with repeated "-I." 2476 am__isrc=' -I$(srcdir)' 2477 # test to see if srcdir already configured 2478 if test -f $srcdir/config.status; then 2479 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2480$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2481 { (exit 1); exit 1; }; } 2482 fi 2483fi 2484 2485# test whether we have cygpath 2486if test -z "$CYGPATH_W"; then 2487 if (cygpath --version) >/dev/null 2>/dev/null; then 2488 CYGPATH_W='cygpath -w' 2489 else 2490 CYGPATH_W=echo 2491 fi 2492fi 2493 2494 2495# Define the identity of the package. 2496 PACKAGE='xf86-video-intel' 2497 VERSION='2.7.1' 2498 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE "$PACKAGE" 2502_ACEOF 2503 2504 2505cat >>confdefs.h <<_ACEOF 2506#define VERSION "$VERSION" 2507_ACEOF 2508 2509# Some tools Automake needs. 2510 2511ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2512 2513 2514AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2515 2516 2517AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2518 2519 2520AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2521 2522 2523MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2524 2525install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2526 2527# Installed binaries are usually stripped using `strip' when the user 2528# run `make install-strip'. However `strip' might not be the right 2529# tool to use in cross-compilation environments, therefore Automake 2530# will honor the `STRIP' environment variable to overrule this program. 2531if test "$cross_compiling" != no; then 2532 if test -n "$ac_tool_prefix"; then 2533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2534set dummy ${ac_tool_prefix}strip; ac_word=$2 2535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2536$as_echo_n "checking for $ac_word... " >&6; } 2537if test "${ac_cv_prog_STRIP+set}" = set; then 2538 $as_echo_n "(cached) " >&6 2539else 2540 if test -n "$STRIP"; then 2541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2542else 2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2544for as_dir in $PATH 2545do 2546 IFS=$as_save_IFS 2547 test -z "$as_dir" && as_dir=. 2548 for ac_exec_ext in '' $ac_executable_extensions; do 2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2550 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2552 break 2 2553 fi 2554done 2555done 2556IFS=$as_save_IFS 2557 2558fi 2559fi 2560STRIP=$ac_cv_prog_STRIP 2561if test -n "$STRIP"; then 2562 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2563$as_echo "$STRIP" >&6; } 2564else 2565 { $as_echo "$as_me:$LINENO: result: no" >&5 2566$as_echo "no" >&6; } 2567fi 2568 2569 2570fi 2571if test -z "$ac_cv_prog_STRIP"; then 2572 ac_ct_STRIP=$STRIP 2573 # Extract the first word of "strip", so it can be a program name with args. 2574set dummy strip; ac_word=$2 2575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2576$as_echo_n "checking for $ac_word... " >&6; } 2577if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2578 $as_echo_n "(cached) " >&6 2579else 2580 if test -n "$ac_ct_STRIP"; then 2581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2582else 2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2590 ac_cv_prog_ac_ct_STRIP="strip" 2591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2592 break 2 2593 fi 2594done 2595done 2596IFS=$as_save_IFS 2597 2598fi 2599fi 2600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2601if test -n "$ac_ct_STRIP"; then 2602 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2603$as_echo "$ac_ct_STRIP" >&6; } 2604else 2605 { $as_echo "$as_me:$LINENO: result: no" >&5 2606$as_echo "no" >&6; } 2607fi 2608 2609 if test "x$ac_ct_STRIP" = x; then 2610 STRIP=":" 2611 else 2612 case $cross_compiling:$ac_tool_warned in 2613yes:) 2614{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2616ac_tool_warned=yes ;; 2617esac 2618 STRIP=$ac_ct_STRIP 2619 fi 2620else 2621 STRIP="$ac_cv_prog_STRIP" 2622fi 2623 2624fi 2625INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2626 2627# We need awk for the "check" target. The system "awk" is bad on 2628# some platforms. 2629# Always define AMTAR for backward compatibility. 2630 2631AMTAR=${AMTAR-"${am_missing_run}tar"} 2632 2633am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2634 2635 2636 2637 2638 2639 2640{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2641$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2642 # Check whether --enable-maintainer-mode was given. 2643if test "${enable_maintainer_mode+set}" = set; then 2644 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2645else 2646 USE_MAINTAINER_MODE=no 2647fi 2648 2649 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2650$as_echo "$USE_MAINTAINER_MODE" >&6; } 2651 if test $USE_MAINTAINER_MODE = yes; then 2652 MAINTAINER_MODE_TRUE= 2653 MAINTAINER_MODE_FALSE='#' 2654else 2655 MAINTAINER_MODE_TRUE='#' 2656 MAINTAINER_MODE_FALSE= 2657fi 2658 2659 MAINT=$MAINTAINER_MODE_TRUE 2660 2661 2662 2663# Checks for programs. 2664# Check whether --enable-static was given. 2665if test "${enable_static+set}" = set; then 2666 enableval=$enable_static; p=${PACKAGE-default} 2667 case $enableval in 2668 yes) enable_static=yes ;; 2669 no) enable_static=no ;; 2670 *) 2671 enable_static=no 2672 # Look at the argument we got. We use all the common list separators. 2673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2674 for pkg in $enableval; do 2675 IFS="$lt_save_ifs" 2676 if test "X$pkg" = "X$p"; then 2677 enable_static=yes 2678 fi 2679 done 2680 IFS="$lt_save_ifs" 2681 ;; 2682 esac 2683else 2684 enable_static=no 2685fi 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695case `pwd` in 2696 *\ * | *\ *) 2697 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2698$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2699esac 2700 2701 2702 2703macro_version='2.2.6' 2704macro_revision='1.3012' 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718ltmain="$ac_aux_dir/ltmain.sh" 2719 2720# Make sure we can run config.sub. 2721$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2722 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2723$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2724 { (exit 1); exit 1; }; } 2725 2726{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2727$as_echo_n "checking build system type... " >&6; } 2728if test "${ac_cv_build+set}" = set; then 2729 $as_echo_n "(cached) " >&6 2730else 2731 ac_build_alias=$build_alias 2732test "x$ac_build_alias" = x && 2733 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2734test "x$ac_build_alias" = x && 2735 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2736$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2737 { (exit 1); exit 1; }; } 2738ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2739 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2740$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2741 { (exit 1); exit 1; }; } 2742 2743fi 2744{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2745$as_echo "$ac_cv_build" >&6; } 2746case $ac_cv_build in 2747*-*-*) ;; 2748*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2749$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2750 { (exit 1); exit 1; }; };; 2751esac 2752build=$ac_cv_build 2753ac_save_IFS=$IFS; IFS='-' 2754set x $ac_cv_build 2755shift 2756build_cpu=$1 2757build_vendor=$2 2758shift; shift 2759# Remember, the first character of IFS is used to create $*, 2760# except with old shells: 2761build_os=$* 2762IFS=$ac_save_IFS 2763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2764 2765 2766{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2767$as_echo_n "checking host system type... " >&6; } 2768if test "${ac_cv_host+set}" = set; then 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test "x$host_alias" = x; then 2772 ac_cv_host=$ac_cv_build 2773else 2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2775 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2776$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2777 { (exit 1); exit 1; }; } 2778fi 2779 2780fi 2781{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2782$as_echo "$ac_cv_host" >&6; } 2783case $ac_cv_host in 2784*-*-*) ;; 2785*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2786$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2787 { (exit 1); exit 1; }; };; 2788esac 2789host=$ac_cv_host 2790ac_save_IFS=$IFS; IFS='-' 2791set x $ac_cv_host 2792shift 2793host_cpu=$1 2794host_vendor=$2 2795shift; shift 2796# Remember, the first character of IFS is used to create $*, 2797# except with old shells: 2798host_os=$* 2799IFS=$ac_save_IFS 2800case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2801 2802 2803DEPDIR="${am__leading_dot}deps" 2804 2805ac_config_commands="$ac_config_commands depfiles" 2806 2807 2808am_make=${MAKE-make} 2809cat > confinc << 'END' 2810am__doit: 2811 @echo done 2812.PHONY: am__doit 2813END 2814# If we don't find an include directive, just comment out the code. 2815{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2816$as_echo_n "checking for style of include used by $am_make... " >&6; } 2817am__include="#" 2818am__quote= 2819_am_result=none 2820# First try GNU make style include. 2821echo "include confinc" > confmf 2822# We grep out `Entering directory' and `Leaving directory' 2823# messages which can occur if `w' ends up in MAKEFLAGS. 2824# In particular we don't look at `^make:' because GNU make might 2825# be invoked under some other name (usually "gmake"), in which 2826# case it prints its new name instead of `make'. 2827if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2828 am__include=include 2829 am__quote= 2830 _am_result=GNU 2831fi 2832# Now try BSD make style include. 2833if test "$am__include" = "#"; then 2834 echo '.include "confinc"' > confmf 2835 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2836 am__include=.include 2837 am__quote="\"" 2838 _am_result=BSD 2839 fi 2840fi 2841 2842 2843{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2844$as_echo "$_am_result" >&6; } 2845rm -f confinc confmf 2846 2847# Check whether --enable-dependency-tracking was given. 2848if test "${enable_dependency_tracking+set}" = set; then 2849 enableval=$enable_dependency_tracking; 2850fi 2851 2852if test "x$enable_dependency_tracking" != xno; then 2853 am_depcomp="$ac_aux_dir/depcomp" 2854 AMDEPBACKSLASH='\' 2855fi 2856 if test "x$enable_dependency_tracking" != xno; then 2857 AMDEP_TRUE= 2858 AMDEP_FALSE='#' 2859else 2860 AMDEP_TRUE='#' 2861 AMDEP_FALSE= 2862fi 2863 2864 2865ac_ext=c 2866ac_cpp='$CPP $CPPFLAGS' 2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2869ac_compiler_gnu=$ac_cv_c_compiler_gnu 2870if test -n "$ac_tool_prefix"; then 2871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2872set dummy ${ac_tool_prefix}gcc; ac_word=$2 2873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if test "${ac_cv_prog_CC+set}" = set; then 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2888 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898CC=$ac_cv_prog_CC 2899if test -n "$CC"; then 2900 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2901$as_echo "$CC" >&6; } 2902else 2903 { $as_echo "$as_me:$LINENO: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908fi 2909if test -z "$ac_cv_prog_CC"; then 2910 ac_ct_CC=$CC 2911 # Extract the first word of "gcc", so it can be a program name with args. 2912set dummy gcc; ac_word=$2 2913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$ac_ct_CC"; then 2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2928 ac_cv_prog_ac_ct_CC="gcc" 2929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938ac_ct_CC=$ac_cv_prog_ac_ct_CC 2939if test -n "$ac_ct_CC"; then 2940 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2941$as_echo "$ac_ct_CC" >&6; } 2942else 2943 { $as_echo "$as_me:$LINENO: result: no" >&5 2944$as_echo "no" >&6; } 2945fi 2946 2947 if test "x$ac_ct_CC" = x; then 2948 CC="" 2949 else 2950 case $cross_compiling:$ac_tool_warned in 2951yes:) 2952{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2954ac_tool_warned=yes ;; 2955esac 2956 CC=$ac_ct_CC 2957 fi 2958else 2959 CC="$ac_cv_prog_CC" 2960fi 2961 2962if test -z "$CC"; then 2963 if test -n "$ac_tool_prefix"; then 2964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2965set dummy ${ac_tool_prefix}cc; ac_word=$2 2966{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2967$as_echo_n "checking for $ac_word... " >&6; } 2968if test "${ac_cv_prog_CC+set}" = set; then 2969 $as_echo_n "(cached) " >&6 2970else 2971 if test -n "$CC"; then 2972 ac_cv_prog_CC="$CC" # Let the user override the test. 2973else 2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2975for as_dir in $PATH 2976do 2977 IFS=$as_save_IFS 2978 test -z "$as_dir" && as_dir=. 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2981 ac_cv_prog_CC="${ac_tool_prefix}cc" 2982 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2983 break 2 2984 fi 2985done 2986done 2987IFS=$as_save_IFS 2988 2989fi 2990fi 2991CC=$ac_cv_prog_CC 2992if test -n "$CC"; then 2993 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2994$as_echo "$CC" >&6; } 2995else 2996 { $as_echo "$as_me:$LINENO: result: no" >&5 2997$as_echo "no" >&6; } 2998fi 2999 3000 3001 fi 3002fi 3003if test -z "$CC"; then 3004 # Extract the first word of "cc", so it can be a program name with args. 3005set dummy cc; ac_word=$2 3006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3007$as_echo_n "checking for $ac_word... " >&6; } 3008if test "${ac_cv_prog_CC+set}" = set; then 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test -n "$CC"; then 3012 ac_cv_prog_CC="$CC" # Let the user override the test. 3013else 3014 ac_prog_rejected=no 3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016for as_dir in $PATH 3017do 3018 IFS=$as_save_IFS 3019 test -z "$as_dir" && as_dir=. 3020 for ac_exec_ext in '' $ac_executable_extensions; do 3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3023 ac_prog_rejected=yes 3024 continue 3025 fi 3026 ac_cv_prog_CC="cc" 3027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031done 3032IFS=$as_save_IFS 3033 3034if test $ac_prog_rejected = yes; then 3035 # We found a bogon in the path, so make sure we never use it. 3036 set dummy $ac_cv_prog_CC 3037 shift 3038 if test $# != 0; then 3039 # We chose a different compiler from the bogus one. 3040 # However, it has the same basename, so the bogon will be chosen 3041 # first if we set CC to just the basename; use the full file name. 3042 shift 3043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3044 fi 3045fi 3046fi 3047fi 3048CC=$ac_cv_prog_CC 3049if test -n "$CC"; then 3050 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3051$as_echo "$CC" >&6; } 3052else 3053 { $as_echo "$as_me:$LINENO: result: no" >&5 3054$as_echo "no" >&6; } 3055fi 3056 3057 3058fi 3059if test -z "$CC"; then 3060 if test -n "$ac_tool_prefix"; then 3061 for ac_prog in cl.exe 3062 do 3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3064set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3066$as_echo_n "checking for $ac_word... " >&6; } 3067if test "${ac_cv_prog_CC+set}" = set; then 3068 $as_echo_n "(cached) " >&6 3069else 3070 if test -n "$CC"; then 3071 ac_cv_prog_CC="$CC" # Let the user override the test. 3072else 3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3074for as_dir in $PATH 3075do 3076 IFS=$as_save_IFS 3077 test -z "$as_dir" && as_dir=. 3078 for ac_exec_ext in '' $ac_executable_extensions; do 3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3082 break 2 3083 fi 3084done 3085done 3086IFS=$as_save_IFS 3087 3088fi 3089fi 3090CC=$ac_cv_prog_CC 3091if test -n "$CC"; then 3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3093$as_echo "$CC" >&6; } 3094else 3095 { $as_echo "$as_me:$LINENO: result: no" >&5 3096$as_echo "no" >&6; } 3097fi 3098 3099 3100 test -n "$CC" && break 3101 done 3102fi 3103if test -z "$CC"; then 3104 ac_ct_CC=$CC 3105 for ac_prog in cl.exe 3106do 3107 # Extract the first word of "$ac_prog", so it can be a program name with args. 3108set dummy $ac_prog; ac_word=$2 3109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3110$as_echo_n "checking for $ac_word... " >&6; } 3111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3112 $as_echo_n "(cached) " >&6 3113else 3114 if test -n "$ac_ct_CC"; then 3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3116else 3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3118for as_dir in $PATH 3119do 3120 IFS=$as_save_IFS 3121 test -z "$as_dir" && as_dir=. 3122 for ac_exec_ext in '' $ac_executable_extensions; do 3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3124 ac_cv_prog_ac_ct_CC="$ac_prog" 3125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3126 break 2 3127 fi 3128done 3129done 3130IFS=$as_save_IFS 3131 3132fi 3133fi 3134ac_ct_CC=$ac_cv_prog_ac_ct_CC 3135if test -n "$ac_ct_CC"; then 3136 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3137$as_echo "$ac_ct_CC" >&6; } 3138else 3139 { $as_echo "$as_me:$LINENO: result: no" >&5 3140$as_echo "no" >&6; } 3141fi 3142 3143 3144 test -n "$ac_ct_CC" && break 3145done 3146 3147 if test "x$ac_ct_CC" = x; then 3148 CC="" 3149 else 3150 case $cross_compiling:$ac_tool_warned in 3151yes:) 3152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3154ac_tool_warned=yes ;; 3155esac 3156 CC=$ac_ct_CC 3157 fi 3158fi 3159 3160fi 3161 3162 3163test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3165{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3166See \`config.log' for more details." >&5 3167$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3168See \`config.log' for more details." >&2;} 3169 { (exit 1); exit 1; }; }; } 3170 3171# Provide some information about the compiler. 3172$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3173set X $ac_compile 3174ac_compiler=$2 3175{ (ac_try="$ac_compiler --version >&5" 3176case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3181$as_echo "$ac_try_echo") >&5 3182 (eval "$ac_compiler --version >&5") 2>&5 3183 ac_status=$? 3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } 3186{ (ac_try="$ac_compiler -v >&5" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3192$as_echo "$ac_try_echo") >&5 3193 (eval "$ac_compiler -v >&5") 2>&5 3194 ac_status=$? 3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } 3197{ (ac_try="$ac_compiler -V >&5" 3198case "(($ac_try" in 3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3200 *) ac_try_echo=$ac_try;; 3201esac 3202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3203$as_echo "$ac_try_echo") >&5 3204 (eval "$ac_compiler -V >&5") 2>&5 3205 ac_status=$? 3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207 (exit $ac_status); } 3208 3209cat >conftest.$ac_ext <<_ACEOF 3210/* confdefs.h. */ 3211_ACEOF 3212cat confdefs.h >>conftest.$ac_ext 3213cat >>conftest.$ac_ext <<_ACEOF 3214/* end confdefs.h. */ 3215 3216int 3217main () 3218{ 3219 3220 ; 3221 return 0; 3222} 3223_ACEOF 3224ac_clean_files_save=$ac_clean_files 3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3226# Try to create an executable without -o first, disregard a.out. 3227# It will help us diagnose broken compilers, and finding out an intuition 3228# of exeext. 3229{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3230$as_echo_n "checking for C compiler default output file name... " >&6; } 3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3232 3233# The possible output files: 3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3235 3236ac_rmfiles= 3237for ac_file in $ac_files 3238do 3239 case $ac_file in 3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3242 esac 3243done 3244rm -f $ac_rmfiles 3245 3246if { (ac_try="$ac_link_default" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3252$as_echo "$ac_try_echo") >&5 3253 (eval "$ac_link_default") 2>&5 3254 ac_status=$? 3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); }; then 3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3259# in a Makefile. We should not override ac_cv_exeext if it was cached, 3260# so that the user can short-circuit this test for compilers unknown to 3261# Autoconf. 3262for ac_file in $ac_files '' 3263do 3264 test -f "$ac_file" || continue 3265 case $ac_file in 3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3267 ;; 3268 [ab].out ) 3269 # We found the default executable, but exeext='' is most 3270 # certainly right. 3271 break;; 3272 *.* ) 3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3274 then :; else 3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3276 fi 3277 # We set ac_cv_exeext here because the later test for it is not 3278 # safe: cross compilers may not add the suffix if given an `-o' 3279 # argument, so we may need to know it at that point already. 3280 # Even if this section looks crufty: it has the advantage of 3281 # actually working. 3282 break;; 3283 * ) 3284 break;; 3285 esac 3286done 3287test "$ac_cv_exeext" = no && ac_cv_exeext= 3288 3289else 3290 ac_file='' 3291fi 3292 3293{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3294$as_echo "$ac_file" >&6; } 3295if test -z "$ac_file"; then 3296 $as_echo "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3301{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3302See \`config.log' for more details." >&5 3303$as_echo "$as_me: error: C compiler cannot create executables 3304See \`config.log' for more details." >&2;} 3305 { (exit 77); exit 77; }; }; } 3306fi 3307 3308ac_exeext=$ac_cv_exeext 3309 3310# Check that the compiler produces executables we can run. If not, either 3311# the compiler is broken, or we cross compile. 3312{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3313$as_echo_n "checking whether the C compiler works... " >&6; } 3314# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3315# If not cross compiling, check that we can run a simple program. 3316if test "$cross_compiling" != yes; then 3317 if { ac_try='./$ac_file' 3318 { (case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3323$as_echo "$ac_try_echo") >&5 3324 (eval "$ac_try") 2>&5 3325 ac_status=$? 3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3327 (exit $ac_status); }; }; then 3328 cross_compiling=no 3329 else 3330 if test "$cross_compiling" = maybe; then 3331 cross_compiling=yes 3332 else 3333 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3335{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3336If you meant to cross compile, use \`--host'. 3337See \`config.log' for more details." >&5 3338$as_echo "$as_me: error: cannot run C compiled programs. 3339If you meant to cross compile, use \`--host'. 3340See \`config.log' for more details." >&2;} 3341 { (exit 1); exit 1; }; }; } 3342 fi 3343 fi 3344fi 3345{ $as_echo "$as_me:$LINENO: result: yes" >&5 3346$as_echo "yes" >&6; } 3347 3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3349ac_clean_files=$ac_clean_files_save 3350# Check that the compiler produces executables we can run. If not, either 3351# the compiler is broken, or we cross compile. 3352{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3353$as_echo_n "checking whether we are cross compiling... " >&6; } 3354{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3355$as_echo "$cross_compiling" >&6; } 3356 3357{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3358$as_echo_n "checking for suffix of executables... " >&6; } 3359if { (ac_try="$ac_link" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3365$as_echo "$ac_try_echo") >&5 3366 (eval "$ac_link") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); }; then 3370 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3371# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3372# work properly (i.e., refer to `conftest.exe'), while it won't with 3373# `rm'. 3374for ac_file in conftest.exe conftest conftest.*; do 3375 test -f "$ac_file" || continue 3376 case $ac_file in 3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3379 break;; 3380 * ) break;; 3381 esac 3382done 3383else 3384 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3387See \`config.log' for more details." >&5 3388$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3389See \`config.log' for more details." >&2;} 3390 { (exit 1); exit 1; }; }; } 3391fi 3392 3393rm -f conftest$ac_cv_exeext 3394{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3395$as_echo "$ac_cv_exeext" >&6; } 3396 3397rm -f conftest.$ac_ext 3398EXEEXT=$ac_cv_exeext 3399ac_exeext=$EXEEXT 3400{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3401$as_echo_n "checking for suffix of object files... " >&6; } 3402if test "${ac_cv_objext+set}" = set; then 3403 $as_echo_n "(cached) " >&6 3404else 3405 cat >conftest.$ac_ext <<_ACEOF 3406/* confdefs.h. */ 3407_ACEOF 3408cat confdefs.h >>conftest.$ac_ext 3409cat >>conftest.$ac_ext <<_ACEOF 3410/* end confdefs.h. */ 3411 3412int 3413main () 3414{ 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420rm -f conftest.o conftest.obj 3421if { (ac_try="$ac_compile" 3422case "(($ac_try" in 3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3424 *) ac_try_echo=$ac_try;; 3425esac 3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3427$as_echo "$ac_try_echo") >&5 3428 (eval "$ac_compile") 2>&5 3429 ac_status=$? 3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); }; then 3432 for ac_file in conftest.o conftest.obj conftest.*; do 3433 test -f "$ac_file" || continue; 3434 case $ac_file in 3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3437 break;; 3438 esac 3439done 3440else 3441 $as_echo "$as_me: failed program was:" >&5 3442sed 's/^/| /' conftest.$ac_ext >&5 3443 3444{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3446{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3447See \`config.log' for more details." >&5 3448$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3449See \`config.log' for more details." >&2;} 3450 { (exit 1); exit 1; }; }; } 3451fi 3452 3453rm -f conftest.$ac_cv_objext conftest.$ac_ext 3454fi 3455{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3456$as_echo "$ac_cv_objext" >&6; } 3457OBJEXT=$ac_cv_objext 3458ac_objext=$OBJEXT 3459{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3460$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3461if test "${ac_cv_c_compiler_gnu+set}" = set; then 3462 $as_echo_n "(cached) " >&6 3463else 3464 cat >conftest.$ac_ext <<_ACEOF 3465/* confdefs.h. */ 3466_ACEOF 3467cat confdefs.h >>conftest.$ac_ext 3468cat >>conftest.$ac_ext <<_ACEOF 3469/* end confdefs.h. */ 3470 3471int 3472main () 3473{ 3474#ifndef __GNUC__ 3475 choke me 3476#endif 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482rm -f conftest.$ac_objext 3483if { (ac_try="$ac_compile" 3484case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487esac 3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3489$as_echo "$ac_try_echo") >&5 3490 (eval "$ac_compile") 2>conftest.er1 3491 ac_status=$? 3492 grep -v '^ *+' conftest.er1 >conftest.err 3493 rm -f conftest.er1 3494 cat conftest.err >&5 3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3496 (exit $ac_status); } && { 3497 test -z "$ac_c_werror_flag" || 3498 test ! -s conftest.err 3499 } && test -s conftest.$ac_objext; then 3500 ac_compiler_gnu=yes 3501else 3502 $as_echo "$as_me: failed program was:" >&5 3503sed 's/^/| /' conftest.$ac_ext >&5 3504 3505 ac_compiler_gnu=no 3506fi 3507 3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509ac_cv_c_compiler_gnu=$ac_compiler_gnu 3510 3511fi 3512{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3513$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3514if test $ac_compiler_gnu = yes; then 3515 GCC=yes 3516else 3517 GCC= 3518fi 3519ac_test_CFLAGS=${CFLAGS+set} 3520ac_save_CFLAGS=$CFLAGS 3521{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3522$as_echo_n "checking whether $CC accepts -g... " >&6; } 3523if test "${ac_cv_prog_cc_g+set}" = set; then 3524 $as_echo_n "(cached) " >&6 3525else 3526 ac_save_c_werror_flag=$ac_c_werror_flag 3527 ac_c_werror_flag=yes 3528 ac_cv_prog_cc_g=no 3529 CFLAGS="-g" 3530 cat >conftest.$ac_ext <<_ACEOF 3531/* confdefs.h. */ 3532_ACEOF 3533cat confdefs.h >>conftest.$ac_ext 3534cat >>conftest.$ac_ext <<_ACEOF 3535/* end confdefs.h. */ 3536 3537int 3538main () 3539{ 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545rm -f conftest.$ac_objext 3546if { (ac_try="$ac_compile" 3547case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3552$as_echo "$ac_try_echo") >&5 3553 (eval "$ac_compile") 2>conftest.er1 3554 ac_status=$? 3555 grep -v '^ *+' conftest.er1 >conftest.err 3556 rm -f conftest.er1 3557 cat conftest.err >&5 3558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3559 (exit $ac_status); } && { 3560 test -z "$ac_c_werror_flag" || 3561 test ! -s conftest.err 3562 } && test -s conftest.$ac_objext; then 3563 ac_cv_prog_cc_g=yes 3564else 3565 $as_echo "$as_me: failed program was:" >&5 3566sed 's/^/| /' conftest.$ac_ext >&5 3567 3568 CFLAGS="" 3569 cat >conftest.$ac_ext <<_ACEOF 3570/* confdefs.h. */ 3571_ACEOF 3572cat confdefs.h >>conftest.$ac_ext 3573cat >>conftest.$ac_ext <<_ACEOF 3574/* end confdefs.h. */ 3575 3576int 3577main () 3578{ 3579 3580 ; 3581 return 0; 3582} 3583_ACEOF 3584rm -f conftest.$ac_objext 3585if { (ac_try="$ac_compile" 3586case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589esac 3590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3591$as_echo "$ac_try_echo") >&5 3592 (eval "$ac_compile") 2>conftest.er1 3593 ac_status=$? 3594 grep -v '^ *+' conftest.er1 >conftest.err 3595 rm -f conftest.er1 3596 cat conftest.err >&5 3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } && { 3599 test -z "$ac_c_werror_flag" || 3600 test ! -s conftest.err 3601 } && test -s conftest.$ac_objext; then 3602 : 3603else 3604 $as_echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607 ac_c_werror_flag=$ac_save_c_werror_flag 3608 CFLAGS="-g" 3609 cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615 3616int 3617main () 3618{ 3619 3620 ; 3621 return 0; 3622} 3623_ACEOF 3624rm -f conftest.$ac_objext 3625if { (ac_try="$ac_compile" 3626case "(($ac_try" in 3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3628 *) ac_try_echo=$ac_try;; 3629esac 3630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3631$as_echo "$ac_try_echo") >&5 3632 (eval "$ac_compile") 2>conftest.er1 3633 ac_status=$? 3634 grep -v '^ *+' conftest.er1 >conftest.err 3635 rm -f conftest.er1 3636 cat conftest.err >&5 3637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); } && { 3639 test -z "$ac_c_werror_flag" || 3640 test ! -s conftest.err 3641 } && test -s conftest.$ac_objext; then 3642 ac_cv_prog_cc_g=yes 3643else 3644 $as_echo "$as_me: failed program was:" >&5 3645sed 's/^/| /' conftest.$ac_ext >&5 3646 3647 3648fi 3649 3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3651fi 3652 3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3654fi 3655 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657 ac_c_werror_flag=$ac_save_c_werror_flag 3658fi 3659{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3660$as_echo "$ac_cv_prog_cc_g" >&6; } 3661if test "$ac_test_CFLAGS" = set; then 3662 CFLAGS=$ac_save_CFLAGS 3663elif test $ac_cv_prog_cc_g = yes; then 3664 if test "$GCC" = yes; then 3665 CFLAGS="-g -O2" 3666 else 3667 CFLAGS="-g" 3668 fi 3669else 3670 if test "$GCC" = yes; then 3671 CFLAGS="-O2" 3672 else 3673 CFLAGS= 3674 fi 3675fi 3676{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3677$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3678if test "${ac_cv_prog_cc_c89+set}" = set; then 3679 $as_echo_n "(cached) " >&6 3680else 3681 ac_cv_prog_cc_c89=no 3682ac_save_CC=$CC 3683cat >conftest.$ac_ext <<_ACEOF 3684/* confdefs.h. */ 3685_ACEOF 3686cat confdefs.h >>conftest.$ac_ext 3687cat >>conftest.$ac_ext <<_ACEOF 3688/* end confdefs.h. */ 3689#include <stdarg.h> 3690#include <stdio.h> 3691#include <sys/types.h> 3692#include <sys/stat.h> 3693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3694struct buf { int x; }; 3695FILE * (*rcsopen) (struct buf *, struct stat *, int); 3696static char *e (p, i) 3697 char **p; 3698 int i; 3699{ 3700 return p[i]; 3701} 3702static char *f (char * (*g) (char **, int), char **p, ...) 3703{ 3704 char *s; 3705 va_list v; 3706 va_start (v,p); 3707 s = g (p, va_arg (v,int)); 3708 va_end (v); 3709 return s; 3710} 3711 3712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3713 function prototypes and stuff, but not '\xHH' hex character constants. 3714 These don't provoke an error unfortunately, instead are silently treated 3715 as 'x'. The following induces an error, until -std is added to get 3716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3717 array size at least. It's necessary to write '\x00'==0 to get something 3718 that's true only with -std. */ 3719int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3720 3721/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3722 inside strings and character constants. */ 3723#define FOO(x) 'x' 3724int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3725 3726int test (int i, double x); 3727struct s1 {int (*f) (int a);}; 3728struct s2 {int (*f) (double a);}; 3729int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3730int argc; 3731char **argv; 3732int 3733main () 3734{ 3735return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3742do 3743 CC="$ac_save_CC $ac_arg" 3744 rm -f conftest.$ac_objext 3745if { (ac_try="$ac_compile" 3746case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749esac 3750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3751$as_echo "$ac_try_echo") >&5 3752 (eval "$ac_compile") 2>conftest.er1 3753 ac_status=$? 3754 grep -v '^ *+' conftest.er1 >conftest.err 3755 rm -f conftest.er1 3756 cat conftest.err >&5 3757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3758 (exit $ac_status); } && { 3759 test -z "$ac_c_werror_flag" || 3760 test ! -s conftest.err 3761 } && test -s conftest.$ac_objext; then 3762 ac_cv_prog_cc_c89=$ac_arg 3763else 3764 $as_echo "$as_me: failed program was:" >&5 3765sed 's/^/| /' conftest.$ac_ext >&5 3766 3767 3768fi 3769 3770rm -f core conftest.err conftest.$ac_objext 3771 test "x$ac_cv_prog_cc_c89" != "xno" && break 3772done 3773rm -f conftest.$ac_ext 3774CC=$ac_save_CC 3775 3776fi 3777# AC_CACHE_VAL 3778case "x$ac_cv_prog_cc_c89" in 3779 x) 3780 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3781$as_echo "none needed" >&6; } ;; 3782 xno) 3783 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3784$as_echo "unsupported" >&6; } ;; 3785 *) 3786 CC="$CC $ac_cv_prog_cc_c89" 3787 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3788$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3789esac 3790 3791 3792ac_ext=c 3793ac_cpp='$CPP $CPPFLAGS' 3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3796ac_compiler_gnu=$ac_cv_c_compiler_gnu 3797 3798depcc="$CC" am_compiler_list= 3799 3800{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3801$as_echo_n "checking dependency style of $depcc... " >&6; } 3802if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3803 $as_echo_n "(cached) " >&6 3804else 3805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3806 # We make a subdir and do the tests there. Otherwise we can end up 3807 # making bogus files that we don't know about and never remove. For 3808 # instance it was reported that on HP-UX the gcc test will end up 3809 # making a dummy file named `D' -- because `-MD' means `put the output 3810 # in D'. 3811 mkdir conftest.dir 3812 # Copy depcomp to subdir because otherwise we won't find it if we're 3813 # using a relative directory. 3814 cp "$am_depcomp" conftest.dir 3815 cd conftest.dir 3816 # We will build objects and dependencies in a subdirectory because 3817 # it helps to detect inapplicable dependency modes. For instance 3818 # both Tru64's cc and ICC support -MD to output dependencies as a 3819 # side effect of compilation, but ICC will put the dependencies in 3820 # the current directory while Tru64 will put them in the object 3821 # directory. 3822 mkdir sub 3823 3824 am_cv_CC_dependencies_compiler_type=none 3825 if test "$am_compiler_list" = ""; then 3826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3827 fi 3828 for depmode in $am_compiler_list; do 3829 # Setup a source with many dependencies, because some compilers 3830 # like to wrap large dependency lists on column 80 (with \), and 3831 # we should not choose a depcomp mode which is confused by this. 3832 # 3833 # We need to recreate these files for each test, as the compiler may 3834 # overwrite some of them when testing with obscure command lines. 3835 # This happens at least with the AIX C compiler. 3836 : > sub/conftest.c 3837 for i in 1 2 3 4 5 6; do 3838 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3839 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3840 # Solaris 8's {/usr,}/bin/sh. 3841 touch sub/conftst$i.h 3842 done 3843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3844 3845 case $depmode in 3846 nosideeffect) 3847 # after this tag, mechanisms are not by side-effect, so they'll 3848 # only be used when explicitly requested 3849 if test "x$enable_dependency_tracking" = xyes; then 3850 continue 3851 else 3852 break 3853 fi 3854 ;; 3855 none) break ;; 3856 esac 3857 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3858 # mode. It turns out that the SunPro C++ compiler does not properly 3859 # handle `-M -o', and we need to detect this. 3860 if depmode=$depmode \ 3861 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3863 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3864 >/dev/null 2>conftest.err && 3865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3867 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3869 # icc doesn't choke on unknown options, it will just issue warnings 3870 # or remarks (even with -Werror). So we grep stderr for any message 3871 # that says an option was ignored or not supported. 3872 # When given -MP, icc 7.0 and 7.1 complain thusly: 3873 # icc: Command line warning: ignoring option '-M'; no argument required 3874 # The diagnosis changed in icc 8.0: 3875 # icc: Command line remark: option '-MP' not supported 3876 if (grep 'ignoring option' conftest.err || 3877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3878 am_cv_CC_dependencies_compiler_type=$depmode 3879 break 3880 fi 3881 fi 3882 done 3883 3884 cd .. 3885 rm -rf conftest.dir 3886else 3887 am_cv_CC_dependencies_compiler_type=none 3888fi 3889 3890fi 3891{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3892$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3893CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3894 3895 if 3896 test "x$enable_dependency_tracking" != xno \ 3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3898 am__fastdepCC_TRUE= 3899 am__fastdepCC_FALSE='#' 3900else 3901 am__fastdepCC_TRUE='#' 3902 am__fastdepCC_FALSE= 3903fi 3904 3905 3906{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3907$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3908if test "${ac_cv_path_SED+set}" = set; then 3909 $as_echo_n "(cached) " >&6 3910else 3911 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3912 for ac_i in 1 2 3 4 5 6 7; do 3913 ac_script="$ac_script$as_nl$ac_script" 3914 done 3915 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3916 $as_unset ac_script || ac_script= 3917 if test -z "$SED"; then 3918 ac_path_SED_found=false 3919 # Loop through the user's path and test for each of PROGNAME-LIST 3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_prog in sed gsed; do 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3928 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3929# Check for GNU ac_path_SED and select it if it is found. 3930 # Check for GNU $ac_path_SED 3931case `"$ac_path_SED" --version 2>&1` in 3932*GNU*) 3933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3934*) 3935 ac_count=0 3936 $as_echo_n 0123456789 >"conftest.in" 3937 while : 3938 do 3939 cat "conftest.in" "conftest.in" >"conftest.tmp" 3940 mv "conftest.tmp" "conftest.in" 3941 cp "conftest.in" "conftest.nl" 3942 $as_echo '' >> "conftest.nl" 3943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3945 ac_count=`expr $ac_count + 1` 3946 if test $ac_count -gt ${ac_path_SED_max-0}; then 3947 # Best one so far, save it but keep looking for a better one 3948 ac_cv_path_SED="$ac_path_SED" 3949 ac_path_SED_max=$ac_count 3950 fi 3951 # 10*(2^10) chars as input seems more than enough 3952 test $ac_count -gt 10 && break 3953 done 3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3955esac 3956 3957 $ac_path_SED_found && break 3 3958 done 3959 done 3960done 3961IFS=$as_save_IFS 3962 if test -z "$ac_cv_path_SED"; then 3963 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3964$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3965 { (exit 1); exit 1; }; } 3966 fi 3967else 3968 ac_cv_path_SED=$SED 3969fi 3970 3971fi 3972{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3973$as_echo "$ac_cv_path_SED" >&6; } 3974 SED="$ac_cv_path_SED" 3975 rm -f conftest.sed 3976 3977test -z "$SED" && SED=sed 3978Xsed="$SED -e 1s/^X//" 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3991$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3992if test "${ac_cv_path_GREP+set}" = set; then 3993 $as_echo_n "(cached) " >&6 3994else 3995 if test -z "$GREP"; then 3996 ac_path_GREP_found=false 3997 # Loop through the user's path and test for each of PROGNAME-LIST 3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4000do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_prog in grep ggrep; do 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4006 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4007# Check for GNU ac_path_GREP and select it if it is found. 4008 # Check for GNU $ac_path_GREP 4009case `"$ac_path_GREP" --version 2>&1` in 4010*GNU*) 4011 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4012*) 4013 ac_count=0 4014 $as_echo_n 0123456789 >"conftest.in" 4015 while : 4016 do 4017 cat "conftest.in" "conftest.in" >"conftest.tmp" 4018 mv "conftest.tmp" "conftest.in" 4019 cp "conftest.in" "conftest.nl" 4020 $as_echo 'GREP' >> "conftest.nl" 4021 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4023 ac_count=`expr $ac_count + 1` 4024 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4025 # Best one so far, save it but keep looking for a better one 4026 ac_cv_path_GREP="$ac_path_GREP" 4027 ac_path_GREP_max=$ac_count 4028 fi 4029 # 10*(2^10) chars as input seems more than enough 4030 test $ac_count -gt 10 && break 4031 done 4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4033esac 4034 4035 $ac_path_GREP_found && break 3 4036 done 4037 done 4038done 4039IFS=$as_save_IFS 4040 if test -z "$ac_cv_path_GREP"; then 4041 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4042$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4043 { (exit 1); exit 1; }; } 4044 fi 4045else 4046 ac_cv_path_GREP=$GREP 4047fi 4048 4049fi 4050{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4051$as_echo "$ac_cv_path_GREP" >&6; } 4052 GREP="$ac_cv_path_GREP" 4053 4054 4055{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4056$as_echo_n "checking for egrep... " >&6; } 4057if test "${ac_cv_path_EGREP+set}" = set; then 4058 $as_echo_n "(cached) " >&6 4059else 4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4061 then ac_cv_path_EGREP="$GREP -E" 4062 else 4063 if test -z "$EGREP"; then 4064 ac_path_EGREP_found=false 4065 # Loop through the user's path and test for each of PROGNAME-LIST 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4068do 4069 IFS=$as_save_IFS 4070 test -z "$as_dir" && as_dir=. 4071 for ac_prog in egrep; do 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4074 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4075# Check for GNU ac_path_EGREP and select it if it is found. 4076 # Check for GNU $ac_path_EGREP 4077case `"$ac_path_EGREP" --version 2>&1` in 4078*GNU*) 4079 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4080*) 4081 ac_count=0 4082 $as_echo_n 0123456789 >"conftest.in" 4083 while : 4084 do 4085 cat "conftest.in" "conftest.in" >"conftest.tmp" 4086 mv "conftest.tmp" "conftest.in" 4087 cp "conftest.in" "conftest.nl" 4088 $as_echo 'EGREP' >> "conftest.nl" 4089 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4091 ac_count=`expr $ac_count + 1` 4092 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4093 # Best one so far, save it but keep looking for a better one 4094 ac_cv_path_EGREP="$ac_path_EGREP" 4095 ac_path_EGREP_max=$ac_count 4096 fi 4097 # 10*(2^10) chars as input seems more than enough 4098 test $ac_count -gt 10 && break 4099 done 4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4101esac 4102 4103 $ac_path_EGREP_found && break 3 4104 done 4105 done 4106done 4107IFS=$as_save_IFS 4108 if test -z "$ac_cv_path_EGREP"; then 4109 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4110$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4111 { (exit 1); exit 1; }; } 4112 fi 4113else 4114 ac_cv_path_EGREP=$EGREP 4115fi 4116 4117 fi 4118fi 4119{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4120$as_echo "$ac_cv_path_EGREP" >&6; } 4121 EGREP="$ac_cv_path_EGREP" 4122 4123 4124{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4125$as_echo_n "checking for fgrep... " >&6; } 4126if test "${ac_cv_path_FGREP+set}" = set; then 4127 $as_echo_n "(cached) " >&6 4128else 4129 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4130 then ac_cv_path_FGREP="$GREP -F" 4131 else 4132 if test -z "$FGREP"; then 4133 ac_path_FGREP_found=false 4134 # Loop through the user's path and test for each of PROGNAME-LIST 4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4137do 4138 IFS=$as_save_IFS 4139 test -z "$as_dir" && as_dir=. 4140 for ac_prog in fgrep; do 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4143 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4144# Check for GNU ac_path_FGREP and select it if it is found. 4145 # Check for GNU $ac_path_FGREP 4146case `"$ac_path_FGREP" --version 2>&1` in 4147*GNU*) 4148 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4149*) 4150 ac_count=0 4151 $as_echo_n 0123456789 >"conftest.in" 4152 while : 4153 do 4154 cat "conftest.in" "conftest.in" >"conftest.tmp" 4155 mv "conftest.tmp" "conftest.in" 4156 cp "conftest.in" "conftest.nl" 4157 $as_echo 'FGREP' >> "conftest.nl" 4158 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4160 ac_count=`expr $ac_count + 1` 4161 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4162 # Best one so far, save it but keep looking for a better one 4163 ac_cv_path_FGREP="$ac_path_FGREP" 4164 ac_path_FGREP_max=$ac_count 4165 fi 4166 # 10*(2^10) chars as input seems more than enough 4167 test $ac_count -gt 10 && break 4168 done 4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4170esac 4171 4172 $ac_path_FGREP_found && break 3 4173 done 4174 done 4175done 4176IFS=$as_save_IFS 4177 if test -z "$ac_cv_path_FGREP"; then 4178 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4179$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4180 { (exit 1); exit 1; }; } 4181 fi 4182else 4183 ac_cv_path_FGREP=$FGREP 4184fi 4185 4186 fi 4187fi 4188{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4189$as_echo "$ac_cv_path_FGREP" >&6; } 4190 FGREP="$ac_cv_path_FGREP" 4191 4192 4193test -z "$GREP" && GREP=grep 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213# Check whether --with-gnu-ld was given. 4214if test "${with_gnu_ld+set}" = set; then 4215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4216else 4217 with_gnu_ld=no 4218fi 4219 4220ac_prog=ld 4221if test "$GCC" = yes; then 4222 # Check if gcc -print-prog-name=ld gives a path. 4223 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4224$as_echo_n "checking for ld used by $CC... " >&6; } 4225 case $host in 4226 *-*-mingw*) 4227 # gcc leaves a trailing carriage return which upsets mingw 4228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4229 *) 4230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4231 esac 4232 case $ac_prog in 4233 # Accept absolute paths. 4234 [\\/]* | ?:[\\/]*) 4235 re_direlt='/[^/][^/]*/\.\./' 4236 # Canonicalize the pathname of ld 4237 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4238 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4239 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4240 done 4241 test -z "$LD" && LD="$ac_prog" 4242 ;; 4243 "") 4244 # If it fails, then pretend we aren't using GCC. 4245 ac_prog=ld 4246 ;; 4247 *) 4248 # If it is relative, then search for the first ld in PATH. 4249 with_gnu_ld=unknown 4250 ;; 4251 esac 4252elif test "$with_gnu_ld" = yes; then 4253 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4254$as_echo_n "checking for GNU ld... " >&6; } 4255else 4256 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4257$as_echo_n "checking for non-GNU ld... " >&6; } 4258fi 4259if test "${lt_cv_path_LD+set}" = set; then 4260 $as_echo_n "(cached) " >&6 4261else 4262 if test -z "$LD"; then 4263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4264 for ac_dir in $PATH; do 4265 IFS="$lt_save_ifs" 4266 test -z "$ac_dir" && ac_dir=. 4267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4268 lt_cv_path_LD="$ac_dir/$ac_prog" 4269 # Check to see if the program is GNU ld. I'd rather use --version, 4270 # but apparently some variants of GNU ld only accept -v. 4271 # Break only if it was the GNU/non-GNU ld that we prefer. 4272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4273 *GNU* | *'with BFD'*) 4274 test "$with_gnu_ld" != no && break 4275 ;; 4276 *) 4277 test "$with_gnu_ld" != yes && break 4278 ;; 4279 esac 4280 fi 4281 done 4282 IFS="$lt_save_ifs" 4283else 4284 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4285fi 4286fi 4287 4288LD="$lt_cv_path_LD" 4289if test -n "$LD"; then 4290 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4291$as_echo "$LD" >&6; } 4292else 4293 { $as_echo "$as_me:$LINENO: result: no" >&5 4294$as_echo "no" >&6; } 4295fi 4296test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4297$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4298 { (exit 1); exit 1; }; } 4299{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4300$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4301if test "${lt_cv_prog_gnu_ld+set}" = set; then 4302 $as_echo_n "(cached) " >&6 4303else 4304 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4305case `$LD -v 2>&1 </dev/null` in 4306*GNU* | *'with BFD'*) 4307 lt_cv_prog_gnu_ld=yes 4308 ;; 4309*) 4310 lt_cv_prog_gnu_ld=no 4311 ;; 4312esac 4313fi 4314{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4315$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4316with_gnu_ld=$lt_cv_prog_gnu_ld 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4327$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4328if test "${lt_cv_path_NM+set}" = set; then 4329 $as_echo_n "(cached) " >&6 4330else 4331 if test -n "$NM"; then 4332 # Let the user override the test. 4333 lt_cv_path_NM="$NM" 4334else 4335 lt_nm_to_check="${ac_tool_prefix}nm" 4336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4337 lt_nm_to_check="$lt_nm_to_check nm" 4338 fi 4339 for lt_tmp_nm in $lt_nm_to_check; do 4340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4342 IFS="$lt_save_ifs" 4343 test -z "$ac_dir" && ac_dir=. 4344 tmp_nm="$ac_dir/$lt_tmp_nm" 4345 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4346 # Check to see if the nm accepts a BSD-compat flag. 4347 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4348 # nm: unknown option "B" ignored 4349 # Tru64's nm complains that /dev/null is an invalid object file 4350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4351 */dev/null* | *'Invalid file or object type'*) 4352 lt_cv_path_NM="$tmp_nm -B" 4353 break 4354 ;; 4355 *) 4356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4357 */dev/null*) 4358 lt_cv_path_NM="$tmp_nm -p" 4359 break 4360 ;; 4361 *) 4362 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4363 continue # so that we can try to find one that supports BSD flags 4364 ;; 4365 esac 4366 ;; 4367 esac 4368 fi 4369 done 4370 IFS="$lt_save_ifs" 4371 done 4372 : ${lt_cv_path_NM=no} 4373fi 4374fi 4375{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4376$as_echo "$lt_cv_path_NM" >&6; } 4377if test "$lt_cv_path_NM" != "no"; then 4378 NM="$lt_cv_path_NM" 4379else 4380 # Didn't find any BSD compatible name lister, look for dumpbin. 4381 if test -n "$ac_tool_prefix"; then 4382 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4383 do 4384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4385set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4387$as_echo_n "checking for $ac_word... " >&6; } 4388if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4389 $as_echo_n "(cached) " >&6 4390else 4391 if test -n "$DUMPBIN"; then 4392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4393else 4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4395for as_dir in $PATH 4396do 4397 IFS=$as_save_IFS 4398 test -z "$as_dir" && as_dir=. 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4401 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4403 break 2 4404 fi 4405done 4406done 4407IFS=$as_save_IFS 4408 4409fi 4410fi 4411DUMPBIN=$ac_cv_prog_DUMPBIN 4412if test -n "$DUMPBIN"; then 4413 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4414$as_echo "$DUMPBIN" >&6; } 4415else 4416 { $as_echo "$as_me:$LINENO: result: no" >&5 4417$as_echo "no" >&6; } 4418fi 4419 4420 4421 test -n "$DUMPBIN" && break 4422 done 4423fi 4424if test -z "$DUMPBIN"; then 4425 ac_ct_DUMPBIN=$DUMPBIN 4426 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4427do 4428 # Extract the first word of "$ac_prog", so it can be a program name with args. 4429set dummy $ac_prog; ac_word=$2 4430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4431$as_echo_n "checking for $ac_word... " >&6; } 4432if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4433 $as_echo_n "(cached) " >&6 4434else 4435 if test -n "$ac_ct_DUMPBIN"; then 4436 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4437else 4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439for as_dir in $PATH 4440do 4441 IFS=$as_save_IFS 4442 test -z "$as_dir" && as_dir=. 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4445 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4447 break 2 4448 fi 4449done 4450done 4451IFS=$as_save_IFS 4452 4453fi 4454fi 4455ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4456if test -n "$ac_ct_DUMPBIN"; then 4457 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4458$as_echo "$ac_ct_DUMPBIN" >&6; } 4459else 4460 { $as_echo "$as_me:$LINENO: result: no" >&5 4461$as_echo "no" >&6; } 4462fi 4463 4464 4465 test -n "$ac_ct_DUMPBIN" && break 4466done 4467 4468 if test "x$ac_ct_DUMPBIN" = x; then 4469 DUMPBIN=":" 4470 else 4471 case $cross_compiling:$ac_tool_warned in 4472yes:) 4473{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4475ac_tool_warned=yes ;; 4476esac 4477 DUMPBIN=$ac_ct_DUMPBIN 4478 fi 4479fi 4480 4481 4482 if test "$DUMPBIN" != ":"; then 4483 NM="$DUMPBIN" 4484 fi 4485fi 4486test -z "$NM" && NM=nm 4487 4488 4489 4490 4491 4492 4493{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4494$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4495if test "${lt_cv_nm_interface+set}" = set; then 4496 $as_echo_n "(cached) " >&6 4497else 4498 lt_cv_nm_interface="BSD nm" 4499 echo "int some_variable = 0;" > conftest.$ac_ext 4500 (eval echo "\"\$as_me:4500: $ac_compile\"" >&5) 4501 (eval "$ac_compile" 2>conftest.err) 4502 cat conftest.err >&5 4503 (eval echo "\"\$as_me:4503: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4505 cat conftest.err >&5 4506 (eval echo "\"\$as_me:4506: output\"" >&5) 4507 cat conftest.out >&5 4508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4509 lt_cv_nm_interface="MS dumpbin" 4510 fi 4511 rm -f conftest* 4512fi 4513{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4514$as_echo "$lt_cv_nm_interface" >&6; } 4515 4516{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4517$as_echo_n "checking whether ln -s works... " >&6; } 4518LN_S=$as_ln_s 4519if test "$LN_S" = "ln -s"; then 4520 { $as_echo "$as_me:$LINENO: result: yes" >&5 4521$as_echo "yes" >&6; } 4522else 4523 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4524$as_echo "no, using $LN_S" >&6; } 4525fi 4526 4527# find the maximum length of command line arguments 4528{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4529$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4530if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4531 $as_echo_n "(cached) " >&6 4532else 4533 i=0 4534 teststring="ABCD" 4535 4536 case $build_os in 4537 msdosdjgpp*) 4538 # On DJGPP, this test can blow up pretty badly due to problems in libc 4539 # (any single argument exceeding 2000 bytes causes a buffer overrun 4540 # during glob expansion). Even if it were fixed, the result of this 4541 # check would be larger than it should be. 4542 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4543 ;; 4544 4545 gnu*) 4546 # Under GNU Hurd, this test is not required because there is 4547 # no limit to the length of command line arguments. 4548 # Libtool will interpret -1 as no limit whatsoever 4549 lt_cv_sys_max_cmd_len=-1; 4550 ;; 4551 4552 cygwin* | mingw* | cegcc*) 4553 # On Win9x/ME, this test blows up -- it succeeds, but takes 4554 # about 5 minutes as the teststring grows exponentially. 4555 # Worse, since 9x/ME are not pre-emptively multitasking, 4556 # you end up with a "frozen" computer, even though with patience 4557 # the test eventually succeeds (with a max line length of 256k). 4558 # Instead, let's just punt: use the minimum linelength reported by 4559 # all of the supported platforms: 8192 (on NT/2K/XP). 4560 lt_cv_sys_max_cmd_len=8192; 4561 ;; 4562 4563 amigaos*) 4564 # On AmigaOS with pdksh, this test takes hours, literally. 4565 # So we just punt and use a minimum line length of 8192. 4566 lt_cv_sys_max_cmd_len=8192; 4567 ;; 4568 4569 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4570 # This has been around since 386BSD, at least. Likely further. 4571 if test -x /sbin/sysctl; then 4572 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4573 elif test -x /usr/sbin/sysctl; then 4574 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4575 else 4576 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4577 fi 4578 # And add a safety zone 4579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4581 ;; 4582 4583 interix*) 4584 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4585 lt_cv_sys_max_cmd_len=196608 4586 ;; 4587 4588 osf*) 4589 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4590 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4591 # nice to cause kernel panics so lets avoid the loop below. 4592 # First set a reasonable default. 4593 lt_cv_sys_max_cmd_len=16384 4594 # 4595 if test -x /sbin/sysconfig; then 4596 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4597 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4598 esac 4599 fi 4600 ;; 4601 sco3.2v5*) 4602 lt_cv_sys_max_cmd_len=102400 4603 ;; 4604 sysv5* | sco5v6* | sysv4.2uw2*) 4605 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4606 if test -n "$kargmax"; then 4607 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4608 else 4609 lt_cv_sys_max_cmd_len=32768 4610 fi 4611 ;; 4612 *) 4613 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4614 if test -n "$lt_cv_sys_max_cmd_len"; then 4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4617 else 4618 # Make teststring a little bigger before we do anything with it. 4619 # a 1K string should be a reasonable start. 4620 for i in 1 2 3 4 5 6 7 8 ; do 4621 teststring=$teststring$teststring 4622 done 4623 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4624 # If test is not a shell built-in, we'll probably end up computing a 4625 # maximum length that is only half of the actual maximum length, but 4626 # we can't tell. 4627 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4628 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4629 test $i != 17 # 1/2 MB should be enough 4630 do 4631 i=`expr $i + 1` 4632 teststring=$teststring$teststring 4633 done 4634 # Only check the string length outside the loop. 4635 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4636 teststring= 4637 # Add a significant safety factor because C++ compilers can tack on 4638 # massive amounts of additional arguments before passing them to the 4639 # linker. It appears as though 1/2 is a usable value. 4640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4641 fi 4642 ;; 4643 esac 4644 4645fi 4646 4647if test -n $lt_cv_sys_max_cmd_len ; then 4648 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4649$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4650else 4651 { $as_echo "$as_me:$LINENO: result: none" >&5 4652$as_echo "none" >&6; } 4653fi 4654max_cmd_len=$lt_cv_sys_max_cmd_len 4655 4656 4657 4658 4659 4660 4661: ${CP="cp -f"} 4662: ${MV="mv -f"} 4663: ${RM="rm -f"} 4664 4665{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4666$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4667# Try some XSI features 4668xsi_shell=no 4669( _lt_dummy="a/b/c" 4670 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4671 = c,a/b,, \ 4672 && eval 'test $(( 1 + 1 )) -eq 2 \ 4673 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4674 && xsi_shell=yes 4675{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4676$as_echo "$xsi_shell" >&6; } 4677 4678 4679{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4680$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4681lt_shell_append=no 4682( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4683 >/dev/null 2>&1 \ 4684 && lt_shell_append=yes 4685{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4686$as_echo "$lt_shell_append" >&6; } 4687 4688 4689if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4690 lt_unset=unset 4691else 4692 lt_unset=false 4693fi 4694 4695 4696 4697 4698 4699# test EBCDIC or ASCII 4700case `echo X|tr X '\101'` in 4701 A) # ASCII based system 4702 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4703 lt_SP2NL='tr \040 \012' 4704 lt_NL2SP='tr \015\012 \040\040' 4705 ;; 4706 *) # EBCDIC based system 4707 lt_SP2NL='tr \100 \n' 4708 lt_NL2SP='tr \r\n \100\100' 4709 ;; 4710esac 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4721$as_echo_n "checking for $LD option to reload object files... " >&6; } 4722if test "${lt_cv_ld_reload_flag+set}" = set; then 4723 $as_echo_n "(cached) " >&6 4724else 4725 lt_cv_ld_reload_flag='-r' 4726fi 4727{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4728$as_echo "$lt_cv_ld_reload_flag" >&6; } 4729reload_flag=$lt_cv_ld_reload_flag 4730case $reload_flag in 4731"" | " "*) ;; 4732*) reload_flag=" $reload_flag" ;; 4733esac 4734reload_cmds='$LD$reload_flag -o $output$reload_objs' 4735case $host_os in 4736 darwin*) 4737 if test "$GCC" = yes; then 4738 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4739 else 4740 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4741 fi 4742 ;; 4743esac 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753if test -n "$ac_tool_prefix"; then 4754 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4755set dummy ${ac_tool_prefix}objdump; ac_word=$2 4756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4757$as_echo_n "checking for $ac_word... " >&6; } 4758if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4759 $as_echo_n "(cached) " >&6 4760else 4761 if test -n "$OBJDUMP"; then 4762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4763else 4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4765for as_dir in $PATH 4766do 4767 IFS=$as_save_IFS 4768 test -z "$as_dir" && as_dir=. 4769 for ac_exec_ext in '' $ac_executable_extensions; do 4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4771 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4773 break 2 4774 fi 4775done 4776done 4777IFS=$as_save_IFS 4778 4779fi 4780fi 4781OBJDUMP=$ac_cv_prog_OBJDUMP 4782if test -n "$OBJDUMP"; then 4783 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4784$as_echo "$OBJDUMP" >&6; } 4785else 4786 { $as_echo "$as_me:$LINENO: result: no" >&5 4787$as_echo "no" >&6; } 4788fi 4789 4790 4791fi 4792if test -z "$ac_cv_prog_OBJDUMP"; then 4793 ac_ct_OBJDUMP=$OBJDUMP 4794 # Extract the first word of "objdump", so it can be a program name with args. 4795set dummy objdump; ac_word=$2 4796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4797$as_echo_n "checking for $ac_word... " >&6; } 4798if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4799 $as_echo_n "(cached) " >&6 4800else 4801 if test -n "$ac_ct_OBJDUMP"; then 4802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4803else 4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4805for as_dir in $PATH 4806do 4807 IFS=$as_save_IFS 4808 test -z "$as_dir" && as_dir=. 4809 for ac_exec_ext in '' $ac_executable_extensions; do 4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4811 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4813 break 2 4814 fi 4815done 4816done 4817IFS=$as_save_IFS 4818 4819fi 4820fi 4821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4822if test -n "$ac_ct_OBJDUMP"; then 4823 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4824$as_echo "$ac_ct_OBJDUMP" >&6; } 4825else 4826 { $as_echo "$as_me:$LINENO: result: no" >&5 4827$as_echo "no" >&6; } 4828fi 4829 4830 if test "x$ac_ct_OBJDUMP" = x; then 4831 OBJDUMP="false" 4832 else 4833 case $cross_compiling:$ac_tool_warned in 4834yes:) 4835{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4837ac_tool_warned=yes ;; 4838esac 4839 OBJDUMP=$ac_ct_OBJDUMP 4840 fi 4841else 4842 OBJDUMP="$ac_cv_prog_OBJDUMP" 4843fi 4844 4845test -z "$OBJDUMP" && OBJDUMP=objdump 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4856$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4857if test "${lt_cv_deplibs_check_method+set}" = set; then 4858 $as_echo_n "(cached) " >&6 4859else 4860 lt_cv_file_magic_cmd='$MAGIC_CMD' 4861lt_cv_file_magic_test_file= 4862lt_cv_deplibs_check_method='unknown' 4863# Need to set the preceding variable on all platforms that support 4864# interlibrary dependencies. 4865# 'none' -- dependencies not supported. 4866# `unknown' -- same as none, but documents that we really don't know. 4867# 'pass_all' -- all dependencies passed with no checks. 4868# 'test_compile' -- check by making test program. 4869# 'file_magic [[regex]]' -- check by looking for files in library path 4870# which responds to the $file_magic_cmd with a given extended regex. 4871# If you have `file' or equivalent on your system and you're not sure 4872# whether `pass_all' will *always* work, you probably want this one. 4873 4874case $host_os in 4875aix[4-9]*) 4876 lt_cv_deplibs_check_method=pass_all 4877 ;; 4878 4879beos*) 4880 lt_cv_deplibs_check_method=pass_all 4881 ;; 4882 4883bsdi[45]*) 4884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4885 lt_cv_file_magic_cmd='/usr/bin/file -L' 4886 lt_cv_file_magic_test_file=/shlib/libc.so 4887 ;; 4888 4889cygwin*) 4890 # func_win32_libid is a shell function defined in ltmain.sh 4891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4892 lt_cv_file_magic_cmd='func_win32_libid' 4893 ;; 4894 4895mingw* | pw32*) 4896 # Base MSYS/MinGW do not provide the 'file' command needed by 4897 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4898 # unless we find 'file', for example because we are cross-compiling. 4899 if ( file / ) >/dev/null 2>&1; then 4900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4901 lt_cv_file_magic_cmd='func_win32_libid' 4902 else 4903 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4904 lt_cv_file_magic_cmd='$OBJDUMP -f' 4905 fi 4906 ;; 4907 4908cegcc) 4909 # use the weaker test based on 'objdump'. See mingw*. 4910 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4911 lt_cv_file_magic_cmd='$OBJDUMP -f' 4912 ;; 4913 4914darwin* | rhapsody*) 4915 lt_cv_deplibs_check_method=pass_all 4916 ;; 4917 4918freebsd* | dragonfly*) 4919 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4920 case $host_cpu in 4921 i*86 ) 4922 # Not sure whether the presence of OpenBSD here was a mistake. 4923 # Let's accept both of them until this is cleared up. 4924 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4925 lt_cv_file_magic_cmd=/usr/bin/file 4926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4927 ;; 4928 esac 4929 else 4930 lt_cv_deplibs_check_method=pass_all 4931 fi 4932 ;; 4933 4934gnu*) 4935 lt_cv_deplibs_check_method=pass_all 4936 ;; 4937 4938hpux10.20* | hpux11*) 4939 lt_cv_file_magic_cmd=/usr/bin/file 4940 case $host_cpu in 4941 ia64*) 4942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4943 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4944 ;; 4945 hppa*64*) 4946 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]' 4947 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4948 ;; 4949 *) 4950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4951 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4952 ;; 4953 esac 4954 ;; 4955 4956interix[3-9]*) 4957 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4959 ;; 4960 4961irix5* | irix6* | nonstopux*) 4962 case $LD in 4963 *-32|*"-32 ") libmagic=32-bit;; 4964 *-n32|*"-n32 ") libmagic=N32;; 4965 *-64|*"-64 ") libmagic=64-bit;; 4966 *) libmagic=never-match;; 4967 esac 4968 lt_cv_deplibs_check_method=pass_all 4969 ;; 4970 4971# This must be Linux ELF. 4972linux* | k*bsd*-gnu) 4973 lt_cv_deplibs_check_method=pass_all 4974 ;; 4975 4976netbsd* | netbsdelf*-gnu) 4977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4979 else 4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4981 fi 4982 ;; 4983 4984newos6*) 4985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4986 lt_cv_file_magic_cmd=/usr/bin/file 4987 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4988 ;; 4989 4990*nto* | *qnx*) 4991 lt_cv_deplibs_check_method=pass_all 4992 ;; 4993 4994openbsd*) 4995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4997 else 4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4999 fi 5000 ;; 5001 5002osf3* | osf4* | osf5*) 5003 lt_cv_deplibs_check_method=pass_all 5004 ;; 5005 5006rdos*) 5007 lt_cv_deplibs_check_method=pass_all 5008 ;; 5009 5010solaris*) 5011 lt_cv_deplibs_check_method=pass_all 5012 ;; 5013 5014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5015 lt_cv_deplibs_check_method=pass_all 5016 ;; 5017 5018sysv4 | sysv4.3*) 5019 case $host_vendor in 5020 motorola) 5021 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]' 5022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5023 ;; 5024 ncr) 5025 lt_cv_deplibs_check_method=pass_all 5026 ;; 5027 sequent) 5028 lt_cv_file_magic_cmd='/bin/file' 5029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5030 ;; 5031 sni) 5032 lt_cv_file_magic_cmd='/bin/file' 5033 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5034 lt_cv_file_magic_test_file=/lib/libc.so 5035 ;; 5036 siemens) 5037 lt_cv_deplibs_check_method=pass_all 5038 ;; 5039 pc) 5040 lt_cv_deplibs_check_method=pass_all 5041 ;; 5042 esac 5043 ;; 5044 5045tpf*) 5046 lt_cv_deplibs_check_method=pass_all 5047 ;; 5048esac 5049 5050fi 5051{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5052$as_echo "$lt_cv_deplibs_check_method" >&6; } 5053file_magic_cmd=$lt_cv_file_magic_cmd 5054deplibs_check_method=$lt_cv_deplibs_check_method 5055test -z "$deplibs_check_method" && deplibs_check_method=unknown 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068if test -n "$ac_tool_prefix"; then 5069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5070set dummy ${ac_tool_prefix}ar; ac_word=$2 5071{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5072$as_echo_n "checking for $ac_word... " >&6; } 5073if test "${ac_cv_prog_AR+set}" = set; then 5074 $as_echo_n "(cached) " >&6 5075else 5076 if test -n "$AR"; then 5077 ac_cv_prog_AR="$AR" # Let the user override the test. 5078else 5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5080for as_dir in $PATH 5081do 5082 IFS=$as_save_IFS 5083 test -z "$as_dir" && as_dir=. 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5086 ac_cv_prog_AR="${ac_tool_prefix}ar" 5087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5088 break 2 5089 fi 5090done 5091done 5092IFS=$as_save_IFS 5093 5094fi 5095fi 5096AR=$ac_cv_prog_AR 5097if test -n "$AR"; then 5098 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5099$as_echo "$AR" >&6; } 5100else 5101 { $as_echo "$as_me:$LINENO: result: no" >&5 5102$as_echo "no" >&6; } 5103fi 5104 5105 5106fi 5107if test -z "$ac_cv_prog_AR"; then 5108 ac_ct_AR=$AR 5109 # Extract the first word of "ar", so it can be a program name with args. 5110set dummy ar; ac_word=$2 5111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5112$as_echo_n "checking for $ac_word... " >&6; } 5113if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5114 $as_echo_n "(cached) " >&6 5115else 5116 if test -n "$ac_ct_AR"; then 5117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5118else 5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5120for as_dir in $PATH 5121do 5122 IFS=$as_save_IFS 5123 test -z "$as_dir" && as_dir=. 5124 for ac_exec_ext in '' $ac_executable_extensions; do 5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5126 ac_cv_prog_ac_ct_AR="ar" 5127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5128 break 2 5129 fi 5130done 5131done 5132IFS=$as_save_IFS 5133 5134fi 5135fi 5136ac_ct_AR=$ac_cv_prog_ac_ct_AR 5137if test -n "$ac_ct_AR"; then 5138 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5139$as_echo "$ac_ct_AR" >&6; } 5140else 5141 { $as_echo "$as_me:$LINENO: result: no" >&5 5142$as_echo "no" >&6; } 5143fi 5144 5145 if test "x$ac_ct_AR" = x; then 5146 AR="false" 5147 else 5148 case $cross_compiling:$ac_tool_warned in 5149yes:) 5150{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5152ac_tool_warned=yes ;; 5153esac 5154 AR=$ac_ct_AR 5155 fi 5156else 5157 AR="$ac_cv_prog_AR" 5158fi 5159 5160test -z "$AR" && AR=ar 5161test -z "$AR_FLAGS" && AR_FLAGS=cru 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173if test -n "$ac_tool_prefix"; then 5174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5175set dummy ${ac_tool_prefix}strip; ac_word=$2 5176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5177$as_echo_n "checking for $ac_word... " >&6; } 5178if test "${ac_cv_prog_STRIP+set}" = set; then 5179 $as_echo_n "(cached) " >&6 5180else 5181 if test -n "$STRIP"; then 5182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5183else 5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5185for as_dir in $PATH 5186do 5187 IFS=$as_save_IFS 5188 test -z "$as_dir" && as_dir=. 5189 for ac_exec_ext in '' $ac_executable_extensions; do 5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5191 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5193 break 2 5194 fi 5195done 5196done 5197IFS=$as_save_IFS 5198 5199fi 5200fi 5201STRIP=$ac_cv_prog_STRIP 5202if test -n "$STRIP"; then 5203 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5204$as_echo "$STRIP" >&6; } 5205else 5206 { $as_echo "$as_me:$LINENO: result: no" >&5 5207$as_echo "no" >&6; } 5208fi 5209 5210 5211fi 5212if test -z "$ac_cv_prog_STRIP"; then 5213 ac_ct_STRIP=$STRIP 5214 # Extract the first word of "strip", so it can be a program name with args. 5215set dummy strip; ac_word=$2 5216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5217$as_echo_n "checking for $ac_word... " >&6; } 5218if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5219 $as_echo_n "(cached) " >&6 5220else 5221 if test -n "$ac_ct_STRIP"; then 5222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_ac_ct_STRIP="strip" 5232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5242if test -n "$ac_ct_STRIP"; then 5243 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5244$as_echo "$ac_ct_STRIP" >&6; } 5245else 5246 { $as_echo "$as_me:$LINENO: result: no" >&5 5247$as_echo "no" >&6; } 5248fi 5249 5250 if test "x$ac_ct_STRIP" = x; then 5251 STRIP=":" 5252 else 5253 case $cross_compiling:$ac_tool_warned in 5254yes:) 5255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5257ac_tool_warned=yes ;; 5258esac 5259 STRIP=$ac_ct_STRIP 5260 fi 5261else 5262 STRIP="$ac_cv_prog_STRIP" 5263fi 5264 5265test -z "$STRIP" && STRIP=: 5266 5267 5268 5269 5270 5271 5272if test -n "$ac_tool_prefix"; then 5273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5274set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5276$as_echo_n "checking for $ac_word... " >&6; } 5277if test "${ac_cv_prog_RANLIB+set}" = set; then 5278 $as_echo_n "(cached) " >&6 5279else 5280 if test -n "$RANLIB"; then 5281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5282else 5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5284for as_dir in $PATH 5285do 5286 IFS=$as_save_IFS 5287 test -z "$as_dir" && as_dir=. 5288 for ac_exec_ext in '' $ac_executable_extensions; do 5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5292 break 2 5293 fi 5294done 5295done 5296IFS=$as_save_IFS 5297 5298fi 5299fi 5300RANLIB=$ac_cv_prog_RANLIB 5301if test -n "$RANLIB"; then 5302 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5303$as_echo "$RANLIB" >&6; } 5304else 5305 { $as_echo "$as_me:$LINENO: result: no" >&5 5306$as_echo "no" >&6; } 5307fi 5308 5309 5310fi 5311if test -z "$ac_cv_prog_RANLIB"; then 5312 ac_ct_RANLIB=$RANLIB 5313 # Extract the first word of "ranlib", so it can be a program name with args. 5314set dummy ranlib; ac_word=$2 5315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5316$as_echo_n "checking for $ac_word... " >&6; } 5317if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5318 $as_echo_n "(cached) " >&6 5319else 5320 if test -n "$ac_ct_RANLIB"; then 5321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5322else 5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5324for as_dir in $PATH 5325do 5326 IFS=$as_save_IFS 5327 test -z "$as_dir" && as_dir=. 5328 for ac_exec_ext in '' $ac_executable_extensions; do 5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5330 ac_cv_prog_ac_ct_RANLIB="ranlib" 5331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5332 break 2 5333 fi 5334done 5335done 5336IFS=$as_save_IFS 5337 5338fi 5339fi 5340ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5341if test -n "$ac_ct_RANLIB"; then 5342 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5343$as_echo "$ac_ct_RANLIB" >&6; } 5344else 5345 { $as_echo "$as_me:$LINENO: result: no" >&5 5346$as_echo "no" >&6; } 5347fi 5348 5349 if test "x$ac_ct_RANLIB" = x; then 5350 RANLIB=":" 5351 else 5352 case $cross_compiling:$ac_tool_warned in 5353yes:) 5354{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5356ac_tool_warned=yes ;; 5357esac 5358 RANLIB=$ac_ct_RANLIB 5359 fi 5360else 5361 RANLIB="$ac_cv_prog_RANLIB" 5362fi 5363 5364test -z "$RANLIB" && RANLIB=: 5365 5366 5367 5368 5369 5370 5371# Determine commands to create old-style static archives. 5372old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5373old_postinstall_cmds='chmod 644 $oldlib' 5374old_postuninstall_cmds= 5375 5376if test -n "$RANLIB"; then 5377 case $host_os in 5378 openbsd*) 5379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5380 ;; 5381 *) 5382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5383 ;; 5384 esac 5385 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5386fi 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421# If no C compiler was specified, use CC. 5422LTCC=${LTCC-"$CC"} 5423 5424# If no C compiler flags were specified, use CFLAGS. 5425LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5426 5427# Allow CC to be a program name with arguments. 5428compiler=$CC 5429 5430 5431# Check for command to grab the raw symbol name followed by C symbol from nm. 5432{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5433$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5434if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5435 $as_echo_n "(cached) " >&6 5436else 5437 5438# These are sane defaults that work on at least a few old systems. 5439# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5440 5441# Character class describing NM global symbol codes. 5442symcode='[BCDEGRST]' 5443 5444# Regexp to match symbols that can be accessed directly from C. 5445sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5446 5447# Define system-specific variables. 5448case $host_os in 5449aix*) 5450 symcode='[BCDT]' 5451 ;; 5452cygwin* | mingw* | pw32* | cegcc*) 5453 symcode='[ABCDGISTW]' 5454 ;; 5455hpux*) 5456 if test "$host_cpu" = ia64; then 5457 symcode='[ABCDEGRST]' 5458 fi 5459 ;; 5460irix* | nonstopux*) 5461 symcode='[BCDEGRST]' 5462 ;; 5463osf*) 5464 symcode='[BCDEGQRST]' 5465 ;; 5466solaris*) 5467 symcode='[BDRT]' 5468 ;; 5469sco3.2v5*) 5470 symcode='[DT]' 5471 ;; 5472sysv4.2uw2*) 5473 symcode='[DT]' 5474 ;; 5475sysv5* | sco5v6* | unixware* | OpenUNIX*) 5476 symcode='[ABDT]' 5477 ;; 5478sysv4) 5479 symcode='[DFNSTU]' 5480 ;; 5481esac 5482 5483# If we're using GNU nm, then use its standard symbol codes. 5484case `$NM -V 2>&1` in 5485*GNU* | *'with BFD'*) 5486 symcode='[ABCDGIRSTW]' ;; 5487esac 5488 5489# Transform an extracted symbol line into a proper C declaration. 5490# Some systems (esp. on ia64) link data and code symbols differently, 5491# so use this general approach. 5492lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5493 5494# Transform an extracted symbol line into symbol name and symbol address 5495lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5496lt_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'" 5497 5498# Handle CRLF in mingw tool chain 5499opt_cr= 5500case $build_os in 5501mingw*) 5502 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5503 ;; 5504esac 5505 5506# Try without a prefix underscore, then with it. 5507for ac_symprfx in "" "_"; do 5508 5509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5510 symxfrm="\\1 $ac_symprfx\\2 \\2" 5511 5512 # Write the raw and C identifiers. 5513 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5514 # Fake it for dumpbin and say T for any non-static function 5515 # and D for any global variable. 5516 # Also find C++ and __fastcall symbols from MSVC++, 5517 # which start with @ or ?. 5518 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5519" {last_section=section; section=\$ 3};"\ 5520" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5521" \$ 0!~/External *\|/{next};"\ 5522" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5523" {if(hide[section]) next};"\ 5524" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5525" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5526" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5527" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5528" ' prfx=^$ac_symprfx" 5529 else 5530 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5531 fi 5532 5533 # Check to see that the pipe works correctly. 5534 pipe_works=no 5535 5536 rm -f conftest* 5537 cat > conftest.$ac_ext <<_LT_EOF 5538#ifdef __cplusplus 5539extern "C" { 5540#endif 5541char nm_test_var; 5542void nm_test_func(void); 5543void nm_test_func(void){} 5544#ifdef __cplusplus 5545} 5546#endif 5547int main(){nm_test_var='a';nm_test_func();return(0);} 5548_LT_EOF 5549 5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5551 (eval $ac_compile) 2>&5 5552 ac_status=$? 5553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); }; then 5555 # Now try to grab the symbols. 5556 nlist=conftest.nm 5557 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5558 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5559 ac_status=$? 5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5561 (exit $ac_status); } && test -s "$nlist"; then 5562 # Try sorting and uniquifying the output. 5563 if sort "$nlist" | uniq > "$nlist"T; then 5564 mv -f "$nlist"T "$nlist" 5565 else 5566 rm -f "$nlist"T 5567 fi 5568 5569 # Make sure that we snagged all the symbols we need. 5570 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5571 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5572 cat <<_LT_EOF > conftest.$ac_ext 5573#ifdef __cplusplus 5574extern "C" { 5575#endif 5576 5577_LT_EOF 5578 # Now generate the symbol file. 5579 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5580 5581 cat <<_LT_EOF >> conftest.$ac_ext 5582 5583/* The mapping between symbol names and symbols. */ 5584const struct { 5585 const char *name; 5586 void *address; 5587} 5588lt__PROGRAM__LTX_preloaded_symbols[] = 5589{ 5590 { "@PROGRAM@", (void *) 0 }, 5591_LT_EOF 5592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5593 cat <<\_LT_EOF >> conftest.$ac_ext 5594 {0, (void *) 0} 5595}; 5596 5597/* This works around a problem in FreeBSD linker */ 5598#ifdef FREEBSD_WORKAROUND 5599static const void *lt_preloaded_setup() { 5600 return lt__PROGRAM__LTX_preloaded_symbols; 5601} 5602#endif 5603 5604#ifdef __cplusplus 5605} 5606#endif 5607_LT_EOF 5608 # Now try linking the two files. 5609 mv conftest.$ac_objext conftstm.$ac_objext 5610 lt_save_LIBS="$LIBS" 5611 lt_save_CFLAGS="$CFLAGS" 5612 LIBS="conftstm.$ac_objext" 5613 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5615 (eval $ac_link) 2>&5 5616 ac_status=$? 5617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5618 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5619 pipe_works=yes 5620 fi 5621 LIBS="$lt_save_LIBS" 5622 CFLAGS="$lt_save_CFLAGS" 5623 else 5624 echo "cannot find nm_test_func in $nlist" >&5 5625 fi 5626 else 5627 echo "cannot find nm_test_var in $nlist" >&5 5628 fi 5629 else 5630 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5631 fi 5632 else 5633 echo "$progname: failed program was:" >&5 5634 cat conftest.$ac_ext >&5 5635 fi 5636 rm -rf conftest* conftst* 5637 5638 # Do not use the global_symbol_pipe unless it works. 5639 if test "$pipe_works" = yes; then 5640 break 5641 else 5642 lt_cv_sys_global_symbol_pipe= 5643 fi 5644done 5645 5646fi 5647 5648if test -z "$lt_cv_sys_global_symbol_pipe"; then 5649 lt_cv_sys_global_symbol_to_cdecl= 5650fi 5651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5652 { $as_echo "$as_me:$LINENO: result: failed" >&5 5653$as_echo "failed" >&6; } 5654else 5655 { $as_echo "$as_me:$LINENO: result: ok" >&5 5656$as_echo "ok" >&6; } 5657fi 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681# Check whether --enable-libtool-lock was given. 5682if test "${enable_libtool_lock+set}" = set; then 5683 enableval=$enable_libtool_lock; 5684fi 5685 5686test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5687 5688# Some flags need to be propagated to the compiler or linker for good 5689# libtool support. 5690case $host in 5691ia64-*-hpux*) 5692 # Find out which ABI we are using. 5693 echo 'int i;' > conftest.$ac_ext 5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5695 (eval $ac_compile) 2>&5 5696 ac_status=$? 5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 (exit $ac_status); }; then 5699 case `/usr/bin/file conftest.$ac_objext` in 5700 *ELF-32*) 5701 HPUX_IA64_MODE="32" 5702 ;; 5703 *ELF-64*) 5704 HPUX_IA64_MODE="64" 5705 ;; 5706 esac 5707 fi 5708 rm -rf conftest* 5709 ;; 5710*-*-irix6*) 5711 # Find out which ABI we are using. 5712 echo '#line 5712 "configure"' > conftest.$ac_ext 5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5714 (eval $ac_compile) 2>&5 5715 ac_status=$? 5716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5717 (exit $ac_status); }; then 5718 if test "$lt_cv_prog_gnu_ld" = yes; then 5719 case `/usr/bin/file conftest.$ac_objext` in 5720 *32-bit*) 5721 LD="${LD-ld} -melf32bsmip" 5722 ;; 5723 *N32*) 5724 LD="${LD-ld} -melf32bmipn32" 5725 ;; 5726 *64-bit*) 5727 LD="${LD-ld} -melf64bmip" 5728 ;; 5729 esac 5730 else 5731 case `/usr/bin/file conftest.$ac_objext` in 5732 *32-bit*) 5733 LD="${LD-ld} -32" 5734 ;; 5735 *N32*) 5736 LD="${LD-ld} -n32" 5737 ;; 5738 *64-bit*) 5739 LD="${LD-ld} -64" 5740 ;; 5741 esac 5742 fi 5743 fi 5744 rm -rf conftest* 5745 ;; 5746 5747x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5748s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5749 # Find out which ABI we are using. 5750 echo 'int i;' > conftest.$ac_ext 5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5752 (eval $ac_compile) 2>&5 5753 ac_status=$? 5754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); }; then 5756 case `/usr/bin/file conftest.o` in 5757 *32-bit*) 5758 case $host in 5759 x86_64-*kfreebsd*-gnu) 5760 LD="${LD-ld} -m elf_i386_fbsd" 5761 ;; 5762 x86_64-*linux*) 5763 LD="${LD-ld} -m elf_i386" 5764 ;; 5765 ppc64-*linux*|powerpc64-*linux*) 5766 LD="${LD-ld} -m elf32ppclinux" 5767 ;; 5768 s390x-*linux*) 5769 LD="${LD-ld} -m elf_s390" 5770 ;; 5771 sparc64-*linux*) 5772 LD="${LD-ld} -m elf32_sparc" 5773 ;; 5774 esac 5775 ;; 5776 *64-bit*) 5777 case $host in 5778 x86_64-*kfreebsd*-gnu) 5779 LD="${LD-ld} -m elf_x86_64_fbsd" 5780 ;; 5781 x86_64-*linux*) 5782 LD="${LD-ld} -m elf_x86_64" 5783 ;; 5784 ppc*-*linux*|powerpc*-*linux*) 5785 LD="${LD-ld} -m elf64ppc" 5786 ;; 5787 s390*-*linux*|s390*-*tpf*) 5788 LD="${LD-ld} -m elf64_s390" 5789 ;; 5790 sparc*-*linux*) 5791 LD="${LD-ld} -m elf64_sparc" 5792 ;; 5793 esac 5794 ;; 5795 esac 5796 fi 5797 rm -rf conftest* 5798 ;; 5799 5800*-*-sco3.2v5*) 5801 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5802 SAVE_CFLAGS="$CFLAGS" 5803 CFLAGS="$CFLAGS -belf" 5804 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5805$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5806if test "${lt_cv_cc_needs_belf+set}" = set; then 5807 $as_echo_n "(cached) " >&6 5808else 5809 ac_ext=c 5810ac_cpp='$CPP $CPPFLAGS' 5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5813ac_compiler_gnu=$ac_cv_c_compiler_gnu 5814 5815 cat >conftest.$ac_ext <<_ACEOF 5816/* confdefs.h. */ 5817_ACEOF 5818cat confdefs.h >>conftest.$ac_ext 5819cat >>conftest.$ac_ext <<_ACEOF 5820/* end confdefs.h. */ 5821 5822int 5823main () 5824{ 5825 5826 ; 5827 return 0; 5828} 5829_ACEOF 5830rm -f conftest.$ac_objext conftest$ac_exeext 5831if { (ac_try="$ac_link" 5832case "(($ac_try" in 5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5834 *) ac_try_echo=$ac_try;; 5835esac 5836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5837$as_echo "$ac_try_echo") >&5 5838 (eval "$ac_link") 2>conftest.er1 5839 ac_status=$? 5840 grep -v '^ *+' conftest.er1 >conftest.err 5841 rm -f conftest.er1 5842 cat conftest.err >&5 5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5844 (exit $ac_status); } && { 5845 test -z "$ac_c_werror_flag" || 5846 test ! -s conftest.err 5847 } && test -s conftest$ac_exeext && { 5848 test "$cross_compiling" = yes || 5849 $as_test_x conftest$ac_exeext 5850 }; then 5851 lt_cv_cc_needs_belf=yes 5852else 5853 $as_echo "$as_me: failed program was:" >&5 5854sed 's/^/| /' conftest.$ac_ext >&5 5855 5856 lt_cv_cc_needs_belf=no 5857fi 5858 5859rm -rf conftest.dSYM 5860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5861 conftest$ac_exeext conftest.$ac_ext 5862 ac_ext=c 5863ac_cpp='$CPP $CPPFLAGS' 5864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5866ac_compiler_gnu=$ac_cv_c_compiler_gnu 5867 5868fi 5869{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5870$as_echo "$lt_cv_cc_needs_belf" >&6; } 5871 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5873 CFLAGS="$SAVE_CFLAGS" 5874 fi 5875 ;; 5876sparc*-*solaris*) 5877 # Find out which ABI we are using. 5878 echo 'int i;' > conftest.$ac_ext 5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5880 (eval $ac_compile) 2>&5 5881 ac_status=$? 5882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5883 (exit $ac_status); }; then 5884 case `/usr/bin/file conftest.o` in 5885 *64-bit*) 5886 case $lt_cv_prog_gnu_ld in 5887 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5888 *) 5889 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5890 LD="${LD-ld} -64" 5891 fi 5892 ;; 5893 esac 5894 ;; 5895 esac 5896 fi 5897 rm -rf conftest* 5898 ;; 5899esac 5900 5901need_locks="$enable_libtool_lock" 5902 5903 5904 case $host_os in 5905 rhapsody* | darwin*) 5906 if test -n "$ac_tool_prefix"; then 5907 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5908set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5910$as_echo_n "checking for $ac_word... " >&6; } 5911if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5912 $as_echo_n "(cached) " >&6 5913else 5914 if test -n "$DSYMUTIL"; then 5915 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5916else 5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918for as_dir in $PATH 5919do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5924 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928done 5929done 5930IFS=$as_save_IFS 5931 5932fi 5933fi 5934DSYMUTIL=$ac_cv_prog_DSYMUTIL 5935if test -n "$DSYMUTIL"; then 5936 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5937$as_echo "$DSYMUTIL" >&6; } 5938else 5939 { $as_echo "$as_me:$LINENO: result: no" >&5 5940$as_echo "no" >&6; } 5941fi 5942 5943 5944fi 5945if test -z "$ac_cv_prog_DSYMUTIL"; then 5946 ac_ct_DSYMUTIL=$DSYMUTIL 5947 # Extract the first word of "dsymutil", so it can be a program name with args. 5948set dummy dsymutil; ac_word=$2 5949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5950$as_echo_n "checking for $ac_word... " >&6; } 5951if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5952 $as_echo_n "(cached) " >&6 5953else 5954 if test -n "$ac_ct_DSYMUTIL"; then 5955 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5956else 5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5958for as_dir in $PATH 5959do 5960 IFS=$as_save_IFS 5961 test -z "$as_dir" && as_dir=. 5962 for ac_exec_ext in '' $ac_executable_extensions; do 5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5964 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5966 break 2 5967 fi 5968done 5969done 5970IFS=$as_save_IFS 5971 5972fi 5973fi 5974ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5975if test -n "$ac_ct_DSYMUTIL"; then 5976 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5977$as_echo "$ac_ct_DSYMUTIL" >&6; } 5978else 5979 { $as_echo "$as_me:$LINENO: result: no" >&5 5980$as_echo "no" >&6; } 5981fi 5982 5983 if test "x$ac_ct_DSYMUTIL" = x; then 5984 DSYMUTIL=":" 5985 else 5986 case $cross_compiling:$ac_tool_warned in 5987yes:) 5988{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5990ac_tool_warned=yes ;; 5991esac 5992 DSYMUTIL=$ac_ct_DSYMUTIL 5993 fi 5994else 5995 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5996fi 5997 5998 if test -n "$ac_tool_prefix"; then 5999 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6000set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6001{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6002$as_echo_n "checking for $ac_word... " >&6; } 6003if test "${ac_cv_prog_NMEDIT+set}" = set; then 6004 $as_echo_n "(cached) " >&6 6005else 6006 if test -n "$NMEDIT"; then 6007 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6008else 6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6010for as_dir in $PATH 6011do 6012 IFS=$as_save_IFS 6013 test -z "$as_dir" && as_dir=. 6014 for ac_exec_ext in '' $ac_executable_extensions; do 6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6016 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6018 break 2 6019 fi 6020done 6021done 6022IFS=$as_save_IFS 6023 6024fi 6025fi 6026NMEDIT=$ac_cv_prog_NMEDIT 6027if test -n "$NMEDIT"; then 6028 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6029$as_echo "$NMEDIT" >&6; } 6030else 6031 { $as_echo "$as_me:$LINENO: result: no" >&5 6032$as_echo "no" >&6; } 6033fi 6034 6035 6036fi 6037if test -z "$ac_cv_prog_NMEDIT"; then 6038 ac_ct_NMEDIT=$NMEDIT 6039 # Extract the first word of "nmedit", so it can be a program name with args. 6040set dummy nmedit; ac_word=$2 6041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6042$as_echo_n "checking for $ac_word... " >&6; } 6043if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6044 $as_echo_n "(cached) " >&6 6045else 6046 if test -n "$ac_ct_NMEDIT"; then 6047 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6048else 6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6050for as_dir in $PATH 6051do 6052 IFS=$as_save_IFS 6053 test -z "$as_dir" && as_dir=. 6054 for ac_exec_ext in '' $ac_executable_extensions; do 6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6056 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6058 break 2 6059 fi 6060done 6061done 6062IFS=$as_save_IFS 6063 6064fi 6065fi 6066ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6067if test -n "$ac_ct_NMEDIT"; then 6068 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6069$as_echo "$ac_ct_NMEDIT" >&6; } 6070else 6071 { $as_echo "$as_me:$LINENO: result: no" >&5 6072$as_echo "no" >&6; } 6073fi 6074 6075 if test "x$ac_ct_NMEDIT" = x; then 6076 NMEDIT=":" 6077 else 6078 case $cross_compiling:$ac_tool_warned in 6079yes:) 6080{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6082ac_tool_warned=yes ;; 6083esac 6084 NMEDIT=$ac_ct_NMEDIT 6085 fi 6086else 6087 NMEDIT="$ac_cv_prog_NMEDIT" 6088fi 6089 6090 if test -n "$ac_tool_prefix"; then 6091 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6092set dummy ${ac_tool_prefix}lipo; ac_word=$2 6093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6094$as_echo_n "checking for $ac_word... " >&6; } 6095if test "${ac_cv_prog_LIPO+set}" = set; then 6096 $as_echo_n "(cached) " >&6 6097else 6098 if test -n "$LIPO"; then 6099 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6100else 6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6102for as_dir in $PATH 6103do 6104 IFS=$as_save_IFS 6105 test -z "$as_dir" && as_dir=. 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6108 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112done 6113done 6114IFS=$as_save_IFS 6115 6116fi 6117fi 6118LIPO=$ac_cv_prog_LIPO 6119if test -n "$LIPO"; then 6120 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6121$as_echo "$LIPO" >&6; } 6122else 6123 { $as_echo "$as_me:$LINENO: result: no" >&5 6124$as_echo "no" >&6; } 6125fi 6126 6127 6128fi 6129if test -z "$ac_cv_prog_LIPO"; then 6130 ac_ct_LIPO=$LIPO 6131 # Extract the first word of "lipo", so it can be a program name with args. 6132set dummy lipo; ac_word=$2 6133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6134$as_echo_n "checking for $ac_word... " >&6; } 6135if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6136 $as_echo_n "(cached) " >&6 6137else 6138 if test -n "$ac_ct_LIPO"; then 6139 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6140else 6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6142for as_dir in $PATH 6143do 6144 IFS=$as_save_IFS 6145 test -z "$as_dir" && as_dir=. 6146 for ac_exec_ext in '' $ac_executable_extensions; do 6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6148 ac_cv_prog_ac_ct_LIPO="lipo" 6149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6150 break 2 6151 fi 6152done 6153done 6154IFS=$as_save_IFS 6155 6156fi 6157fi 6158ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6159if test -n "$ac_ct_LIPO"; then 6160 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6161$as_echo "$ac_ct_LIPO" >&6; } 6162else 6163 { $as_echo "$as_me:$LINENO: result: no" >&5 6164$as_echo "no" >&6; } 6165fi 6166 6167 if test "x$ac_ct_LIPO" = x; then 6168 LIPO=":" 6169 else 6170 case $cross_compiling:$ac_tool_warned in 6171yes:) 6172{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6174ac_tool_warned=yes ;; 6175esac 6176 LIPO=$ac_ct_LIPO 6177 fi 6178else 6179 LIPO="$ac_cv_prog_LIPO" 6180fi 6181 6182 if test -n "$ac_tool_prefix"; then 6183 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6184set dummy ${ac_tool_prefix}otool; ac_word=$2 6185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6186$as_echo_n "checking for $ac_word... " >&6; } 6187if test "${ac_cv_prog_OTOOL+set}" = set; then 6188 $as_echo_n "(cached) " >&6 6189else 6190 if test -n "$OTOOL"; then 6191 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6192else 6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194for as_dir in $PATH 6195do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6200 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205done 6206IFS=$as_save_IFS 6207 6208fi 6209fi 6210OTOOL=$ac_cv_prog_OTOOL 6211if test -n "$OTOOL"; then 6212 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6213$as_echo "$OTOOL" >&6; } 6214else 6215 { $as_echo "$as_me:$LINENO: result: no" >&5 6216$as_echo "no" >&6; } 6217fi 6218 6219 6220fi 6221if test -z "$ac_cv_prog_OTOOL"; then 6222 ac_ct_OTOOL=$OTOOL 6223 # Extract the first word of "otool", so it can be a program name with args. 6224set dummy otool; ac_word=$2 6225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6226$as_echo_n "checking for $ac_word... " >&6; } 6227if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6228 $as_echo_n "(cached) " >&6 6229else 6230 if test -n "$ac_ct_OTOOL"; then 6231 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6232else 6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6234for as_dir in $PATH 6235do 6236 IFS=$as_save_IFS 6237 test -z "$as_dir" && as_dir=. 6238 for ac_exec_ext in '' $ac_executable_extensions; do 6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6240 ac_cv_prog_ac_ct_OTOOL="otool" 6241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6242 break 2 6243 fi 6244done 6245done 6246IFS=$as_save_IFS 6247 6248fi 6249fi 6250ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6251if test -n "$ac_ct_OTOOL"; then 6252 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6253$as_echo "$ac_ct_OTOOL" >&6; } 6254else 6255 { $as_echo "$as_me:$LINENO: result: no" >&5 6256$as_echo "no" >&6; } 6257fi 6258 6259 if test "x$ac_ct_OTOOL" = x; then 6260 OTOOL=":" 6261 else 6262 case $cross_compiling:$ac_tool_warned in 6263yes:) 6264{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6266ac_tool_warned=yes ;; 6267esac 6268 OTOOL=$ac_ct_OTOOL 6269 fi 6270else 6271 OTOOL="$ac_cv_prog_OTOOL" 6272fi 6273 6274 if test -n "$ac_tool_prefix"; then 6275 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6276set dummy ${ac_tool_prefix}otool64; ac_word=$2 6277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6278$as_echo_n "checking for $ac_word... " >&6; } 6279if test "${ac_cv_prog_OTOOL64+set}" = set; then 6280 $as_echo_n "(cached) " >&6 6281else 6282 if test -n "$OTOOL64"; then 6283 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6284else 6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286for as_dir in $PATH 6287do 6288 IFS=$as_save_IFS 6289 test -z "$as_dir" && as_dir=. 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6292 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296done 6297done 6298IFS=$as_save_IFS 6299 6300fi 6301fi 6302OTOOL64=$ac_cv_prog_OTOOL64 6303if test -n "$OTOOL64"; then 6304 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6305$as_echo "$OTOOL64" >&6; } 6306else 6307 { $as_echo "$as_me:$LINENO: result: no" >&5 6308$as_echo "no" >&6; } 6309fi 6310 6311 6312fi 6313if test -z "$ac_cv_prog_OTOOL64"; then 6314 ac_ct_OTOOL64=$OTOOL64 6315 # Extract the first word of "otool64", so it can be a program name with args. 6316set dummy otool64; ac_word=$2 6317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6318$as_echo_n "checking for $ac_word... " >&6; } 6319if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6320 $as_echo_n "(cached) " >&6 6321else 6322 if test -n "$ac_ct_OTOOL64"; then 6323 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6324else 6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326for as_dir in $PATH 6327do 6328 IFS=$as_save_IFS 6329 test -z "$as_dir" && as_dir=. 6330 for ac_exec_ext in '' $ac_executable_extensions; do 6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6332 ac_cv_prog_ac_ct_OTOOL64="otool64" 6333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6334 break 2 6335 fi 6336done 6337done 6338IFS=$as_save_IFS 6339 6340fi 6341fi 6342ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6343if test -n "$ac_ct_OTOOL64"; then 6344 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6345$as_echo "$ac_ct_OTOOL64" >&6; } 6346else 6347 { $as_echo "$as_me:$LINENO: result: no" >&5 6348$as_echo "no" >&6; } 6349fi 6350 6351 if test "x$ac_ct_OTOOL64" = x; then 6352 OTOOL64=":" 6353 else 6354 case $cross_compiling:$ac_tool_warned in 6355yes:) 6356{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6358ac_tool_warned=yes ;; 6359esac 6360 OTOOL64=$ac_ct_OTOOL64 6361 fi 6362else 6363 OTOOL64="$ac_cv_prog_OTOOL64" 6364fi 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6393$as_echo_n "checking for -single_module linker flag... " >&6; } 6394if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6395 $as_echo_n "(cached) " >&6 6396else 6397 lt_cv_apple_cc_single_mod=no 6398 if test -z "${LT_MULTI_MODULE}"; then 6399 # By default we will add the -single_module flag. You can override 6400 # by either setting the environment variable LT_MULTI_MODULE 6401 # non-empty at configure time, or by adding -multi_module to the 6402 # link flags. 6403 rm -rf libconftest.dylib* 6404 echo "int foo(void){return 1;}" > conftest.c 6405 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6406-dynamiclib -Wl,-single_module conftest.c" >&5 6407 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6408 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6409 _lt_result=$? 6410 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6411 lt_cv_apple_cc_single_mod=yes 6412 else 6413 cat conftest.err >&5 6414 fi 6415 rm -rf libconftest.dylib* 6416 rm -f conftest.* 6417 fi 6418fi 6419{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6420$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6421 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6422$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6423if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6424 $as_echo_n "(cached) " >&6 6425else 6426 lt_cv_ld_exported_symbols_list=no 6427 save_LDFLAGS=$LDFLAGS 6428 echo "_main" > conftest.sym 6429 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6430 cat >conftest.$ac_ext <<_ACEOF 6431/* confdefs.h. */ 6432_ACEOF 6433cat confdefs.h >>conftest.$ac_ext 6434cat >>conftest.$ac_ext <<_ACEOF 6435/* end confdefs.h. */ 6436 6437int 6438main () 6439{ 6440 6441 ; 6442 return 0; 6443} 6444_ACEOF 6445rm -f conftest.$ac_objext conftest$ac_exeext 6446if { (ac_try="$ac_link" 6447case "(($ac_try" in 6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6449 *) ac_try_echo=$ac_try;; 6450esac 6451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6452$as_echo "$ac_try_echo") >&5 6453 (eval "$ac_link") 2>conftest.er1 6454 ac_status=$? 6455 grep -v '^ *+' conftest.er1 >conftest.err 6456 rm -f conftest.er1 6457 cat conftest.err >&5 6458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6459 (exit $ac_status); } && { 6460 test -z "$ac_c_werror_flag" || 6461 test ! -s conftest.err 6462 } && test -s conftest$ac_exeext && { 6463 test "$cross_compiling" = yes || 6464 $as_test_x conftest$ac_exeext 6465 }; then 6466 lt_cv_ld_exported_symbols_list=yes 6467else 6468 $as_echo "$as_me: failed program was:" >&5 6469sed 's/^/| /' conftest.$ac_ext >&5 6470 6471 lt_cv_ld_exported_symbols_list=no 6472fi 6473 6474rm -rf conftest.dSYM 6475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6476 conftest$ac_exeext conftest.$ac_ext 6477 LDFLAGS="$save_LDFLAGS" 6478 6479fi 6480{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6481$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6482 case $host_os in 6483 rhapsody* | darwin1.[012]) 6484 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6485 darwin1.*) 6486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6487 darwin*) # darwin 5.x on 6488 # if running on 10.5 or later, the deployment target defaults 6489 # to the OS version, if on x86, and 10.4, the deployment 6490 # target defaults to 10.4. Don't you love it? 6491 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6492 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6493 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6494 10.[012]*) 6495 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6496 10.*) 6497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6498 esac 6499 ;; 6500 esac 6501 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6502 _lt_dar_single_mod='$single_module' 6503 fi 6504 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6505 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6506 else 6507 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6508 fi 6509 if test "$DSYMUTIL" != ":"; then 6510 _lt_dsymutil='~$DSYMUTIL $lib || :' 6511 else 6512 _lt_dsymutil= 6513 fi 6514 ;; 6515 esac 6516 6517ac_ext=c 6518ac_cpp='$CPP $CPPFLAGS' 6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6521ac_compiler_gnu=$ac_cv_c_compiler_gnu 6522{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6523$as_echo_n "checking how to run the C preprocessor... " >&6; } 6524# On Suns, sometimes $CPP names a directory. 6525if test -n "$CPP" && test -d "$CPP"; then 6526 CPP= 6527fi 6528if test -z "$CPP"; then 6529 if test "${ac_cv_prog_CPP+set}" = set; then 6530 $as_echo_n "(cached) " >&6 6531else 6532 # Double quotes because CPP needs to be expanded 6533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6534 do 6535 ac_preproc_ok=false 6536for ac_c_preproc_warn_flag in '' yes 6537do 6538 # Use a header file that comes with gcc, so configuring glibc 6539 # with a fresh cross-compiler works. 6540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6541 # <limits.h> exists even on freestanding compilers. 6542 # On the NeXT, cc -E runs the code through the compiler's parser, 6543 # not just through cpp. "Syntax error" is here to catch this case. 6544 cat >conftest.$ac_ext <<_ACEOF 6545/* confdefs.h. */ 6546_ACEOF 6547cat confdefs.h >>conftest.$ac_ext 6548cat >>conftest.$ac_ext <<_ACEOF 6549/* end confdefs.h. */ 6550#ifdef __STDC__ 6551# include <limits.h> 6552#else 6553# include <assert.h> 6554#endif 6555 Syntax error 6556_ACEOF 6557if { (ac_try="$ac_cpp conftest.$ac_ext" 6558case "(($ac_try" in 6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6560 *) ac_try_echo=$ac_try;; 6561esac 6562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6563$as_echo "$ac_try_echo") >&5 6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6565 ac_status=$? 6566 grep -v '^ *+' conftest.er1 >conftest.err 6567 rm -f conftest.er1 6568 cat conftest.err >&5 6569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6570 (exit $ac_status); } >/dev/null && { 6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6572 test ! -s conftest.err 6573 }; then 6574 : 6575else 6576 $as_echo "$as_me: failed program was:" >&5 6577sed 's/^/| /' conftest.$ac_ext >&5 6578 6579 # Broken: fails on valid input. 6580continue 6581fi 6582 6583rm -f conftest.err conftest.$ac_ext 6584 6585 # OK, works on sane cases. Now check whether nonexistent headers 6586 # can be detected and how. 6587 cat >conftest.$ac_ext <<_ACEOF 6588/* confdefs.h. */ 6589_ACEOF 6590cat confdefs.h >>conftest.$ac_ext 6591cat >>conftest.$ac_ext <<_ACEOF 6592/* end confdefs.h. */ 6593#include <ac_nonexistent.h> 6594_ACEOF 6595if { (ac_try="$ac_cpp conftest.$ac_ext" 6596case "(($ac_try" in 6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6598 *) ac_try_echo=$ac_try;; 6599esac 6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6601$as_echo "$ac_try_echo") >&5 6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6603 ac_status=$? 6604 grep -v '^ *+' conftest.er1 >conftest.err 6605 rm -f conftest.er1 6606 cat conftest.err >&5 6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6608 (exit $ac_status); } >/dev/null && { 6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6610 test ! -s conftest.err 6611 }; then 6612 # Broken: success on invalid input. 6613continue 6614else 6615 $as_echo "$as_me: failed program was:" >&5 6616sed 's/^/| /' conftest.$ac_ext >&5 6617 6618 # Passes both tests. 6619ac_preproc_ok=: 6620break 6621fi 6622 6623rm -f conftest.err conftest.$ac_ext 6624 6625done 6626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6627rm -f conftest.err conftest.$ac_ext 6628if $ac_preproc_ok; then 6629 break 6630fi 6631 6632 done 6633 ac_cv_prog_CPP=$CPP 6634 6635fi 6636 CPP=$ac_cv_prog_CPP 6637else 6638 ac_cv_prog_CPP=$CPP 6639fi 6640{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6641$as_echo "$CPP" >&6; } 6642ac_preproc_ok=false 6643for ac_c_preproc_warn_flag in '' yes 6644do 6645 # Use a header file that comes with gcc, so configuring glibc 6646 # with a fresh cross-compiler works. 6647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6648 # <limits.h> exists even on freestanding compilers. 6649 # On the NeXT, cc -E runs the code through the compiler's parser, 6650 # not just through cpp. "Syntax error" is here to catch this case. 6651 cat >conftest.$ac_ext <<_ACEOF 6652/* confdefs.h. */ 6653_ACEOF 6654cat confdefs.h >>conftest.$ac_ext 6655cat >>conftest.$ac_ext <<_ACEOF 6656/* end confdefs.h. */ 6657#ifdef __STDC__ 6658# include <limits.h> 6659#else 6660# include <assert.h> 6661#endif 6662 Syntax error 6663_ACEOF 6664if { (ac_try="$ac_cpp conftest.$ac_ext" 6665case "(($ac_try" in 6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6667 *) ac_try_echo=$ac_try;; 6668esac 6669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6670$as_echo "$ac_try_echo") >&5 6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6672 ac_status=$? 6673 grep -v '^ *+' conftest.er1 >conftest.err 6674 rm -f conftest.er1 6675 cat conftest.err >&5 6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6677 (exit $ac_status); } >/dev/null && { 6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6679 test ! -s conftest.err 6680 }; then 6681 : 6682else 6683 $as_echo "$as_me: failed program was:" >&5 6684sed 's/^/| /' conftest.$ac_ext >&5 6685 6686 # Broken: fails on valid input. 6687continue 6688fi 6689 6690rm -f conftest.err conftest.$ac_ext 6691 6692 # OK, works on sane cases. Now check whether nonexistent headers 6693 # can be detected and how. 6694 cat >conftest.$ac_ext <<_ACEOF 6695/* confdefs.h. */ 6696_ACEOF 6697cat confdefs.h >>conftest.$ac_ext 6698cat >>conftest.$ac_ext <<_ACEOF 6699/* end confdefs.h. */ 6700#include <ac_nonexistent.h> 6701_ACEOF 6702if { (ac_try="$ac_cpp conftest.$ac_ext" 6703case "(($ac_try" in 6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6705 *) ac_try_echo=$ac_try;; 6706esac 6707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6708$as_echo "$ac_try_echo") >&5 6709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6710 ac_status=$? 6711 grep -v '^ *+' conftest.er1 >conftest.err 6712 rm -f conftest.er1 6713 cat conftest.err >&5 6714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6715 (exit $ac_status); } >/dev/null && { 6716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6717 test ! -s conftest.err 6718 }; then 6719 # Broken: success on invalid input. 6720continue 6721else 6722 $as_echo "$as_me: failed program was:" >&5 6723sed 's/^/| /' conftest.$ac_ext >&5 6724 6725 # Passes both tests. 6726ac_preproc_ok=: 6727break 6728fi 6729 6730rm -f conftest.err conftest.$ac_ext 6731 6732done 6733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6734rm -f conftest.err conftest.$ac_ext 6735if $ac_preproc_ok; then 6736 : 6737else 6738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6740{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6741See \`config.log' for more details." >&5 6742$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6743See \`config.log' for more details." >&2;} 6744 { (exit 1); exit 1; }; }; } 6745fi 6746 6747ac_ext=c 6748ac_cpp='$CPP $CPPFLAGS' 6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6751ac_compiler_gnu=$ac_cv_c_compiler_gnu 6752 6753 6754{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6755$as_echo_n "checking for ANSI C header files... " >&6; } 6756if test "${ac_cv_header_stdc+set}" = set; then 6757 $as_echo_n "(cached) " >&6 6758else 6759 cat >conftest.$ac_ext <<_ACEOF 6760/* confdefs.h. */ 6761_ACEOF 6762cat confdefs.h >>conftest.$ac_ext 6763cat >>conftest.$ac_ext <<_ACEOF 6764/* end confdefs.h. */ 6765#include <stdlib.h> 6766#include <stdarg.h> 6767#include <string.h> 6768#include <float.h> 6769 6770int 6771main () 6772{ 6773 6774 ; 6775 return 0; 6776} 6777_ACEOF 6778rm -f conftest.$ac_objext 6779if { (ac_try="$ac_compile" 6780case "(($ac_try" in 6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6782 *) ac_try_echo=$ac_try;; 6783esac 6784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6785$as_echo "$ac_try_echo") >&5 6786 (eval "$ac_compile") 2>conftest.er1 6787 ac_status=$? 6788 grep -v '^ *+' conftest.er1 >conftest.err 6789 rm -f conftest.er1 6790 cat conftest.err >&5 6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6792 (exit $ac_status); } && { 6793 test -z "$ac_c_werror_flag" || 6794 test ! -s conftest.err 6795 } && test -s conftest.$ac_objext; then 6796 ac_cv_header_stdc=yes 6797else 6798 $as_echo "$as_me: failed program was:" >&5 6799sed 's/^/| /' conftest.$ac_ext >&5 6800 6801 ac_cv_header_stdc=no 6802fi 6803 6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6805 6806if test $ac_cv_header_stdc = yes; then 6807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6808 cat >conftest.$ac_ext <<_ACEOF 6809/* confdefs.h. */ 6810_ACEOF 6811cat confdefs.h >>conftest.$ac_ext 6812cat >>conftest.$ac_ext <<_ACEOF 6813/* end confdefs.h. */ 6814#include <string.h> 6815 6816_ACEOF 6817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6818 $EGREP "memchr" >/dev/null 2>&1; then 6819 : 6820else 6821 ac_cv_header_stdc=no 6822fi 6823rm -f conftest* 6824 6825fi 6826 6827if test $ac_cv_header_stdc = yes; then 6828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6829 cat >conftest.$ac_ext <<_ACEOF 6830/* confdefs.h. */ 6831_ACEOF 6832cat confdefs.h >>conftest.$ac_ext 6833cat >>conftest.$ac_ext <<_ACEOF 6834/* end confdefs.h. */ 6835#include <stdlib.h> 6836 6837_ACEOF 6838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6839 $EGREP "free" >/dev/null 2>&1; then 6840 : 6841else 6842 ac_cv_header_stdc=no 6843fi 6844rm -f conftest* 6845 6846fi 6847 6848if test $ac_cv_header_stdc = yes; then 6849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6850 if test "$cross_compiling" = yes; then 6851 : 6852else 6853 cat >conftest.$ac_ext <<_ACEOF 6854/* confdefs.h. */ 6855_ACEOF 6856cat confdefs.h >>conftest.$ac_ext 6857cat >>conftest.$ac_ext <<_ACEOF 6858/* end confdefs.h. */ 6859#include <ctype.h> 6860#include <stdlib.h> 6861#if ((' ' & 0x0FF) == 0x020) 6862# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6863# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6864#else 6865# define ISLOWER(c) \ 6866 (('a' <= (c) && (c) <= 'i') \ 6867 || ('j' <= (c) && (c) <= 'r') \ 6868 || ('s' <= (c) && (c) <= 'z')) 6869# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6870#endif 6871 6872#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6873int 6874main () 6875{ 6876 int i; 6877 for (i = 0; i < 256; i++) 6878 if (XOR (islower (i), ISLOWER (i)) 6879 || toupper (i) != TOUPPER (i)) 6880 return 2; 6881 return 0; 6882} 6883_ACEOF 6884rm -f conftest$ac_exeext 6885if { (ac_try="$ac_link" 6886case "(($ac_try" in 6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6888 *) ac_try_echo=$ac_try;; 6889esac 6890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6891$as_echo "$ac_try_echo") >&5 6892 (eval "$ac_link") 2>&5 6893 ac_status=$? 6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6896 { (case "(($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_try") 2>&5 6903 ac_status=$? 6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6905 (exit $ac_status); }; }; then 6906 : 6907else 6908 $as_echo "$as_me: program exited with status $ac_status" >&5 6909$as_echo "$as_me: failed program was:" >&5 6910sed 's/^/| /' conftest.$ac_ext >&5 6911 6912( exit $ac_status ) 6913ac_cv_header_stdc=no 6914fi 6915rm -rf conftest.dSYM 6916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6917fi 6918 6919 6920fi 6921fi 6922{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6923$as_echo "$ac_cv_header_stdc" >&6; } 6924if test $ac_cv_header_stdc = yes; then 6925 6926cat >>confdefs.h <<\_ACEOF 6927#define STDC_HEADERS 1 6928_ACEOF 6929 6930fi 6931 6932# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6943 inttypes.h stdint.h unistd.h 6944do 6945as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6946{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6947$as_echo_n "checking for $ac_header... " >&6; } 6948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6949 $as_echo_n "(cached) " >&6 6950else 6951 cat >conftest.$ac_ext <<_ACEOF 6952/* confdefs.h. */ 6953_ACEOF 6954cat confdefs.h >>conftest.$ac_ext 6955cat >>conftest.$ac_ext <<_ACEOF 6956/* end confdefs.h. */ 6957$ac_includes_default 6958 6959#include <$ac_header> 6960_ACEOF 6961rm -f conftest.$ac_objext 6962if { (ac_try="$ac_compile" 6963case "(($ac_try" in 6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6965 *) ac_try_echo=$ac_try;; 6966esac 6967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6968$as_echo "$ac_try_echo") >&5 6969 (eval "$ac_compile") 2>conftest.er1 6970 ac_status=$? 6971 grep -v '^ *+' conftest.er1 >conftest.err 6972 rm -f conftest.er1 6973 cat conftest.err >&5 6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6975 (exit $ac_status); } && { 6976 test -z "$ac_c_werror_flag" || 6977 test ! -s conftest.err 6978 } && test -s conftest.$ac_objext; then 6979 eval "$as_ac_Header=yes" 6980else 6981 $as_echo "$as_me: failed program was:" >&5 6982sed 's/^/| /' conftest.$ac_ext >&5 6983 6984 eval "$as_ac_Header=no" 6985fi 6986 6987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6988fi 6989ac_res=`eval 'as_val=${'$as_ac_Header'} 6990 $as_echo "$as_val"'` 6991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6992$as_echo "$ac_res" >&6; } 6993as_val=`eval 'as_val=${'$as_ac_Header'} 6994 $as_echo "$as_val"'` 6995 if test "x$as_val" = x""yes; then 6996 cat >>confdefs.h <<_ACEOF 6997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6998_ACEOF 6999 7000fi 7001 7002done 7003 7004 7005 7006for ac_header in dlfcn.h 7007do 7008as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7009{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7010$as_echo_n "checking for $ac_header... " >&6; } 7011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7012 $as_echo_n "(cached) " >&6 7013else 7014 cat >conftest.$ac_ext <<_ACEOF 7015/* confdefs.h. */ 7016_ACEOF 7017cat confdefs.h >>conftest.$ac_ext 7018cat >>conftest.$ac_ext <<_ACEOF 7019/* end confdefs.h. */ 7020$ac_includes_default 7021 7022#include <$ac_header> 7023_ACEOF 7024rm -f conftest.$ac_objext 7025if { (ac_try="$ac_compile" 7026case "(($ac_try" in 7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7028 *) ac_try_echo=$ac_try;; 7029esac 7030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7031$as_echo "$ac_try_echo") >&5 7032 (eval "$ac_compile") 2>conftest.er1 7033 ac_status=$? 7034 grep -v '^ *+' conftest.er1 >conftest.err 7035 rm -f conftest.er1 7036 cat conftest.err >&5 7037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 (exit $ac_status); } && { 7039 test -z "$ac_c_werror_flag" || 7040 test ! -s conftest.err 7041 } && test -s conftest.$ac_objext; then 7042 eval "$as_ac_Header=yes" 7043else 7044 $as_echo "$as_me: failed program was:" >&5 7045sed 's/^/| /' conftest.$ac_ext >&5 7046 7047 eval "$as_ac_Header=no" 7048fi 7049 7050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7051fi 7052ac_res=`eval 'as_val=${'$as_ac_Header'} 7053 $as_echo "$as_val"'` 7054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7055$as_echo "$ac_res" >&6; } 7056as_val=`eval 'as_val=${'$as_ac_Header'} 7057 $as_echo "$as_val"'` 7058 if test "x$as_val" = x""yes; then 7059 cat >>confdefs.h <<_ACEOF 7060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7061_ACEOF 7062 7063fi 7064 7065done 7066 7067 7068 7069# Set options 7070 7071 7072 7073 enable_dlopen=no 7074 7075 7076 enable_win32_dll=no 7077 7078 7079 # Check whether --enable-shared was given. 7080if test "${enable_shared+set}" = set; then 7081 enableval=$enable_shared; p=${PACKAGE-default} 7082 case $enableval in 7083 yes) enable_shared=yes ;; 7084 no) enable_shared=no ;; 7085 *) 7086 enable_shared=no 7087 # Look at the argument we got. We use all the common list separators. 7088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7089 for pkg in $enableval; do 7090 IFS="$lt_save_ifs" 7091 if test "X$pkg" = "X$p"; then 7092 enable_shared=yes 7093 fi 7094 done 7095 IFS="$lt_save_ifs" 7096 ;; 7097 esac 7098else 7099 enable_shared=yes 7100fi 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112# Check whether --with-pic was given. 7113if test "${with_pic+set}" = set; then 7114 withval=$with_pic; pic_mode="$withval" 7115else 7116 pic_mode=default 7117fi 7118 7119 7120test -z "$pic_mode" && pic_mode=default 7121 7122 7123 7124 7125 7126 7127 7128 # Check whether --enable-fast-install was given. 7129if test "${enable_fast_install+set}" = set; then 7130 enableval=$enable_fast_install; p=${PACKAGE-default} 7131 case $enableval in 7132 yes) enable_fast_install=yes ;; 7133 no) enable_fast_install=no ;; 7134 *) 7135 enable_fast_install=no 7136 # Look at the argument we got. We use all the common list separators. 7137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7138 for pkg in $enableval; do 7139 IFS="$lt_save_ifs" 7140 if test "X$pkg" = "X$p"; then 7141 enable_fast_install=yes 7142 fi 7143 done 7144 IFS="$lt_save_ifs" 7145 ;; 7146 esac 7147else 7148 enable_fast_install=yes 7149fi 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161# This can be used to rebuild libtool when needed 7162LIBTOOL_DEPS="$ltmain" 7163 7164# Always use our own libtool. 7165LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191test -z "$LN_S" && LN_S="ln -s" 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206if test -n "${ZSH_VERSION+set}" ; then 7207 setopt NO_GLOB_SUBST 7208fi 7209 7210{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7211$as_echo_n "checking for objdir... " >&6; } 7212if test "${lt_cv_objdir+set}" = set; then 7213 $as_echo_n "(cached) " >&6 7214else 7215 rm -f .libs 2>/dev/null 7216mkdir .libs 2>/dev/null 7217if test -d .libs; then 7218 lt_cv_objdir=.libs 7219else 7220 # MS-DOS does not allow filenames that begin with a dot. 7221 lt_cv_objdir=_libs 7222fi 7223rmdir .libs 2>/dev/null 7224fi 7225{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7226$as_echo "$lt_cv_objdir" >&6; } 7227objdir=$lt_cv_objdir 7228 7229 7230 7231 7232 7233cat >>confdefs.h <<_ACEOF 7234#define LT_OBJDIR "$lt_cv_objdir/" 7235_ACEOF 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253case $host_os in 7254aix3*) 7255 # AIX sometimes has problems with the GCC collect2 program. For some 7256 # reason, if we set the COLLECT_NAMES environment variable, the problems 7257 # vanish in a puff of smoke. 7258 if test "X${COLLECT_NAMES+set}" != Xset; then 7259 COLLECT_NAMES= 7260 export COLLECT_NAMES 7261 fi 7262 ;; 7263esac 7264 7265# Sed substitution that helps us do robust quoting. It backslashifies 7266# metacharacters that are still active within double-quoted strings. 7267sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7268 7269# Same as above, but do not quote variable references. 7270double_quote_subst='s/\(["`\\]\)/\\\1/g' 7271 7272# Sed substitution to delay expansion of an escaped shell variable in a 7273# double_quote_subst'ed string. 7274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7275 7276# Sed substitution to delay expansion of an escaped single quote. 7277delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7278 7279# Sed substitution to avoid accidental globbing in evaled expressions 7280no_glob_subst='s/\*/\\\*/g' 7281 7282# Global variables: 7283ofile=libtool 7284can_build_shared=yes 7285 7286# All known linkers require a `.a' archive for static linking (except MSVC, 7287# which needs '.lib'). 7288libext=a 7289 7290with_gnu_ld="$lt_cv_prog_gnu_ld" 7291 7292old_CC="$CC" 7293old_CFLAGS="$CFLAGS" 7294 7295# Set sane defaults for various variables 7296test -z "$CC" && CC=cc 7297test -z "$LTCC" && LTCC=$CC 7298test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7299test -z "$LD" && LD=ld 7300test -z "$ac_objext" && ac_objext=o 7301 7302for cc_temp in $compiler""; do 7303 case $cc_temp in 7304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7306 \-*) ;; 7307 *) break;; 7308 esac 7309done 7310cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7311 7312 7313# Only perform the check for file, if the check method requires it 7314test -z "$MAGIC_CMD" && MAGIC_CMD=file 7315case $deplibs_check_method in 7316file_magic*) 7317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7318 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7319$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7320if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7321 $as_echo_n "(cached) " >&6 7322else 7323 case $MAGIC_CMD in 7324[\\/*] | ?:[\\/]*) 7325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7326 ;; 7327*) 7328 lt_save_MAGIC_CMD="$MAGIC_CMD" 7329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7331 for ac_dir in $ac_dummy; do 7332 IFS="$lt_save_ifs" 7333 test -z "$ac_dir" && ac_dir=. 7334 if test -f $ac_dir/${ac_tool_prefix}file; then 7335 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7336 if test -n "$file_magic_test_file"; then 7337 case $deplibs_check_method in 7338 "file_magic "*) 7339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7342 $EGREP "$file_magic_regex" > /dev/null; then 7343 : 7344 else 7345 cat <<_LT_EOF 1>&2 7346 7347*** Warning: the command libtool uses to detect shared libraries, 7348*** $file_magic_cmd, produces output that libtool cannot recognize. 7349*** The result is that libtool may fail to recognize shared libraries 7350*** as such. This will affect the creation of libtool libraries that 7351*** depend on shared libraries, but programs linked with such libtool 7352*** libraries will work regardless of this problem. Nevertheless, you 7353*** may want to report the problem to your system manager and/or to 7354*** bug-libtool@gnu.org 7355 7356_LT_EOF 7357 fi ;; 7358 esac 7359 fi 7360 break 7361 fi 7362 done 7363 IFS="$lt_save_ifs" 7364 MAGIC_CMD="$lt_save_MAGIC_CMD" 7365 ;; 7366esac 7367fi 7368 7369MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7370if test -n "$MAGIC_CMD"; then 7371 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7372$as_echo "$MAGIC_CMD" >&6; } 7373else 7374 { $as_echo "$as_me:$LINENO: result: no" >&5 7375$as_echo "no" >&6; } 7376fi 7377 7378 7379 7380 7381 7382if test -z "$lt_cv_path_MAGIC_CMD"; then 7383 if test -n "$ac_tool_prefix"; then 7384 { $as_echo "$as_me:$LINENO: checking for file" >&5 7385$as_echo_n "checking for file... " >&6; } 7386if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7387 $as_echo_n "(cached) " >&6 7388else 7389 case $MAGIC_CMD in 7390[\\/*] | ?:[\\/]*) 7391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7392 ;; 7393*) 7394 lt_save_MAGIC_CMD="$MAGIC_CMD" 7395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7397 for ac_dir in $ac_dummy; do 7398 IFS="$lt_save_ifs" 7399 test -z "$ac_dir" && ac_dir=. 7400 if test -f $ac_dir/file; then 7401 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7402 if test -n "$file_magic_test_file"; then 7403 case $deplibs_check_method in 7404 "file_magic "*) 7405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7408 $EGREP "$file_magic_regex" > /dev/null; then 7409 : 7410 else 7411 cat <<_LT_EOF 1>&2 7412 7413*** Warning: the command libtool uses to detect shared libraries, 7414*** $file_magic_cmd, produces output that libtool cannot recognize. 7415*** The result is that libtool may fail to recognize shared libraries 7416*** as such. This will affect the creation of libtool libraries that 7417*** depend on shared libraries, but programs linked with such libtool 7418*** libraries will work regardless of this problem. Nevertheless, you 7419*** may want to report the problem to your system manager and/or to 7420*** bug-libtool@gnu.org 7421 7422_LT_EOF 7423 fi ;; 7424 esac 7425 fi 7426 break 7427 fi 7428 done 7429 IFS="$lt_save_ifs" 7430 MAGIC_CMD="$lt_save_MAGIC_CMD" 7431 ;; 7432esac 7433fi 7434 7435MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7436if test -n "$MAGIC_CMD"; then 7437 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7438$as_echo "$MAGIC_CMD" >&6; } 7439else 7440 { $as_echo "$as_me:$LINENO: result: no" >&5 7441$as_echo "no" >&6; } 7442fi 7443 7444 7445 else 7446 MAGIC_CMD=: 7447 fi 7448fi 7449 7450 fi 7451 ;; 7452esac 7453 7454# Use C for the default configuration in the libtool script 7455 7456lt_save_CC="$CC" 7457ac_ext=c 7458ac_cpp='$CPP $CPPFLAGS' 7459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7461ac_compiler_gnu=$ac_cv_c_compiler_gnu 7462 7463 7464# Source file extension for C test sources. 7465ac_ext=c 7466 7467# Object file extension for compiled C test sources. 7468objext=o 7469objext=$objext 7470 7471# Code to be used in simple compile tests 7472lt_simple_compile_test_code="int some_variable = 0;" 7473 7474# Code to be used in simple link tests 7475lt_simple_link_test_code='int main(){return(0);}' 7476 7477 7478 7479 7480 7481 7482 7483# If no C compiler was specified, use CC. 7484LTCC=${LTCC-"$CC"} 7485 7486# If no C compiler flags were specified, use CFLAGS. 7487LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7488 7489# Allow CC to be a program name with arguments. 7490compiler=$CC 7491 7492# Save the default compiler, since it gets overwritten when the other 7493# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7494compiler_DEFAULT=$CC 7495 7496# save warnings/boilerplate of simple test code 7497ac_outfile=conftest.$ac_objext 7498echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7499eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7500_lt_compiler_boilerplate=`cat conftest.err` 7501$RM conftest* 7502 7503ac_outfile=conftest.$ac_objext 7504echo "$lt_simple_link_test_code" >conftest.$ac_ext 7505eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7506_lt_linker_boilerplate=`cat conftest.err` 7507$RM -r conftest* 7508 7509 7510if test -n "$compiler"; then 7511 7512lt_prog_compiler_no_builtin_flag= 7513 7514if test "$GCC" = yes; then 7515 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7516 7517 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7518$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7519if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7520 $as_echo_n "(cached) " >&6 7521else 7522 lt_cv_prog_compiler_rtti_exceptions=no 7523 ac_outfile=conftest.$ac_objext 7524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7525 lt_compiler_flag="-fno-rtti -fno-exceptions" 7526 # Insert the option either (1) after the last *FLAGS variable, or 7527 # (2) before a word containing "conftest.", or (3) at the end. 7528 # Note that $ac_compile itself does not contain backslashes and begins 7529 # with a dollar sign (not a hyphen), so the echo should work correctly. 7530 # The option is referenced via a variable to avoid confusing sed. 7531 lt_compile=`echo "$ac_compile" | $SED \ 7532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7534 -e 's:$: $lt_compiler_flag:'` 7535 (eval echo "\"\$as_me:7535: $lt_compile\"" >&5) 7536 (eval "$lt_compile" 2>conftest.err) 7537 ac_status=$? 7538 cat conftest.err >&5 7539 echo "$as_me:7539: \$? = $ac_status" >&5 7540 if (exit $ac_status) && test -s "$ac_outfile"; then 7541 # The compiler can only warn and ignore the option if not recognized 7542 # So say no if there are warnings other than the usual output. 7543 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7546 lt_cv_prog_compiler_rtti_exceptions=yes 7547 fi 7548 fi 7549 $RM conftest* 7550 7551fi 7552{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7553$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7554 7555if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7556 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7557else 7558 : 7559fi 7560 7561fi 7562 7563 7564 7565 7566 7567 7568 lt_prog_compiler_wl= 7569lt_prog_compiler_pic= 7570lt_prog_compiler_static= 7571 7572{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7573$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7574 7575 if test "$GCC" = yes; then 7576 lt_prog_compiler_wl='-Wl,' 7577 lt_prog_compiler_static='-static' 7578 7579 case $host_os in 7580 aix*) 7581 # All AIX code is PIC. 7582 if test "$host_cpu" = ia64; then 7583 # AIX 5 now supports IA64 processor 7584 lt_prog_compiler_static='-Bstatic' 7585 fi 7586 ;; 7587 7588 amigaos*) 7589 case $host_cpu in 7590 powerpc) 7591 # see comment about AmigaOS4 .so support 7592 lt_prog_compiler_pic='-fPIC' 7593 ;; 7594 m68k) 7595 # FIXME: we need at least 68020 code to build shared libraries, but 7596 # adding the `-m68020' flag to GCC prevents building anything better, 7597 # like `-m68040'. 7598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7599 ;; 7600 esac 7601 ;; 7602 7603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7604 # PIC is the default for these OSes. 7605 ;; 7606 7607 mingw* | cygwin* | pw32* | os2* | cegcc*) 7608 # This hack is so that the source file can tell whether it is being 7609 # built for inclusion in a dll (and should export symbols for example). 7610 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7611 # (--disable-auto-import) libraries 7612 lt_prog_compiler_pic='-DDLL_EXPORT' 7613 ;; 7614 7615 darwin* | rhapsody*) 7616 # PIC is the default on this platform 7617 # Common symbols not allowed in MH_DYLIB files 7618 lt_prog_compiler_pic='-fno-common' 7619 ;; 7620 7621 hpux*) 7622 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7623 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7624 # sets the default TLS model and affects inlining. 7625 case $host_cpu in 7626 hppa*64*) 7627 # +Z the default 7628 ;; 7629 *) 7630 lt_prog_compiler_pic='-fPIC' 7631 ;; 7632 esac 7633 ;; 7634 7635 interix[3-9]*) 7636 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7637 # Instead, we relocate shared libraries at runtime. 7638 ;; 7639 7640 msdosdjgpp*) 7641 # Just because we use GCC doesn't mean we suddenly get shared libraries 7642 # on systems that don't support them. 7643 lt_prog_compiler_can_build_shared=no 7644 enable_shared=no 7645 ;; 7646 7647 *nto* | *qnx*) 7648 # QNX uses GNU C++, but need to define -shared option too, otherwise 7649 # it will coredump. 7650 lt_prog_compiler_pic='-fPIC -shared' 7651 ;; 7652 7653 sysv4*MP*) 7654 if test -d /usr/nec; then 7655 lt_prog_compiler_pic=-Kconform_pic 7656 fi 7657 ;; 7658 7659 *) 7660 lt_prog_compiler_pic='-fPIC' 7661 ;; 7662 esac 7663 else 7664 # PORTME Check for flag to pass linker flags through the system compiler. 7665 case $host_os in 7666 aix*) 7667 lt_prog_compiler_wl='-Wl,' 7668 if test "$host_cpu" = ia64; then 7669 # AIX 5 now supports IA64 processor 7670 lt_prog_compiler_static='-Bstatic' 7671 else 7672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7673 fi 7674 ;; 7675 7676 mingw* | cygwin* | pw32* | os2* | cegcc*) 7677 # This hack is so that the source file can tell whether it is being 7678 # built for inclusion in a dll (and should export symbols for example). 7679 lt_prog_compiler_pic='-DDLL_EXPORT' 7680 ;; 7681 7682 hpux9* | hpux10* | hpux11*) 7683 lt_prog_compiler_wl='-Wl,' 7684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7685 # not for PA HP-UX. 7686 case $host_cpu in 7687 hppa*64*|ia64*) 7688 # +Z the default 7689 ;; 7690 *) 7691 lt_prog_compiler_pic='+Z' 7692 ;; 7693 esac 7694 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7695 lt_prog_compiler_static='${wl}-a ${wl}archive' 7696 ;; 7697 7698 irix5* | irix6* | nonstopux*) 7699 lt_prog_compiler_wl='-Wl,' 7700 # PIC (with -KPIC) is the default. 7701 lt_prog_compiler_static='-non_shared' 7702 ;; 7703 7704 linux* | k*bsd*-gnu) 7705 case $cc_basename in 7706 # old Intel for x86_64 which still supported -KPIC. 7707 ecc*) 7708 lt_prog_compiler_wl='-Wl,' 7709 lt_prog_compiler_pic='-KPIC' 7710 lt_prog_compiler_static='-static' 7711 ;; 7712 # icc used to be incompatible with GCC. 7713 # ICC 10 doesn't accept -KPIC any more. 7714 icc* | ifort*) 7715 lt_prog_compiler_wl='-Wl,' 7716 lt_prog_compiler_pic='-fPIC' 7717 lt_prog_compiler_static='-static' 7718 ;; 7719 # Lahey Fortran 8.1. 7720 lf95*) 7721 lt_prog_compiler_wl='-Wl,' 7722 lt_prog_compiler_pic='--shared' 7723 lt_prog_compiler_static='--static' 7724 ;; 7725 pgcc* | pgf77* | pgf90* | pgf95*) 7726 # Portland Group compilers (*not* the Pentium gcc compiler, 7727 # which looks to be a dead project) 7728 lt_prog_compiler_wl='-Wl,' 7729 lt_prog_compiler_pic='-fpic' 7730 lt_prog_compiler_static='-Bstatic' 7731 ;; 7732 ccc*) 7733 lt_prog_compiler_wl='-Wl,' 7734 # All Alpha code is PIC. 7735 lt_prog_compiler_static='-non_shared' 7736 ;; 7737 xl*) 7738 # IBM XL C 8.0/Fortran 10.1 on PPC 7739 lt_prog_compiler_wl='-Wl,' 7740 lt_prog_compiler_pic='-qpic' 7741 lt_prog_compiler_static='-qstaticlink' 7742 ;; 7743 *) 7744 case `$CC -V 2>&1 | sed 5q` in 7745 *Sun\ C*) 7746 # Sun C 5.9 7747 lt_prog_compiler_pic='-KPIC' 7748 lt_prog_compiler_static='-Bstatic' 7749 lt_prog_compiler_wl='-Wl,' 7750 ;; 7751 *Sun\ F*) 7752 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7753 lt_prog_compiler_pic='-KPIC' 7754 lt_prog_compiler_static='-Bstatic' 7755 lt_prog_compiler_wl='' 7756 ;; 7757 esac 7758 ;; 7759 esac 7760 ;; 7761 7762 newsos6) 7763 lt_prog_compiler_pic='-KPIC' 7764 lt_prog_compiler_static='-Bstatic' 7765 ;; 7766 7767 *nto* | *qnx*) 7768 # QNX uses GNU C++, but need to define -shared option too, otherwise 7769 # it will coredump. 7770 lt_prog_compiler_pic='-fPIC -shared' 7771 ;; 7772 7773 osf3* | osf4* | osf5*) 7774 lt_prog_compiler_wl='-Wl,' 7775 # All OSF/1 code is PIC. 7776 lt_prog_compiler_static='-non_shared' 7777 ;; 7778 7779 rdos*) 7780 lt_prog_compiler_static='-non_shared' 7781 ;; 7782 7783 solaris*) 7784 lt_prog_compiler_pic='-KPIC' 7785 lt_prog_compiler_static='-Bstatic' 7786 case $cc_basename in 7787 f77* | f90* | f95*) 7788 lt_prog_compiler_wl='-Qoption ld ';; 7789 *) 7790 lt_prog_compiler_wl='-Wl,';; 7791 esac 7792 ;; 7793 7794 sunos4*) 7795 lt_prog_compiler_wl='-Qoption ld ' 7796 lt_prog_compiler_pic='-PIC' 7797 lt_prog_compiler_static='-Bstatic' 7798 ;; 7799 7800 sysv4 | sysv4.2uw2* | sysv4.3*) 7801 lt_prog_compiler_wl='-Wl,' 7802 lt_prog_compiler_pic='-KPIC' 7803 lt_prog_compiler_static='-Bstatic' 7804 ;; 7805 7806 sysv4*MP*) 7807 if test -d /usr/nec ;then 7808 lt_prog_compiler_pic='-Kconform_pic' 7809 lt_prog_compiler_static='-Bstatic' 7810 fi 7811 ;; 7812 7813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7814 lt_prog_compiler_wl='-Wl,' 7815 lt_prog_compiler_pic='-KPIC' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 7819 unicos*) 7820 lt_prog_compiler_wl='-Wl,' 7821 lt_prog_compiler_can_build_shared=no 7822 ;; 7823 7824 uts4*) 7825 lt_prog_compiler_pic='-pic' 7826 lt_prog_compiler_static='-Bstatic' 7827 ;; 7828 7829 *) 7830 lt_prog_compiler_can_build_shared=no 7831 ;; 7832 esac 7833 fi 7834 7835case $host_os in 7836 # For platforms which do not support PIC, -DPIC is meaningless: 7837 *djgpp*) 7838 lt_prog_compiler_pic= 7839 ;; 7840 *) 7841 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7842 ;; 7843esac 7844{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7845$as_echo "$lt_prog_compiler_pic" >&6; } 7846 7847 7848 7849 7850 7851 7852# 7853# Check to make sure the PIC flag actually works. 7854# 7855if test -n "$lt_prog_compiler_pic"; then 7856 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7857$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7858if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7859 $as_echo_n "(cached) " >&6 7860else 7861 lt_cv_prog_compiler_pic_works=no 7862 ac_outfile=conftest.$ac_objext 7863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7865 # Insert the option either (1) after the last *FLAGS variable, or 7866 # (2) before a word containing "conftest.", or (3) at the end. 7867 # Note that $ac_compile itself does not contain backslashes and begins 7868 # with a dollar sign (not a hyphen), so the echo should work correctly. 7869 # The option is referenced via a variable to avoid confusing sed. 7870 lt_compile=`echo "$ac_compile" | $SED \ 7871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7873 -e 's:$: $lt_compiler_flag:'` 7874 (eval echo "\"\$as_me:7874: $lt_compile\"" >&5) 7875 (eval "$lt_compile" 2>conftest.err) 7876 ac_status=$? 7877 cat conftest.err >&5 7878 echo "$as_me:7878: \$? = $ac_status" >&5 7879 if (exit $ac_status) && test -s "$ac_outfile"; then 7880 # The compiler can only warn and ignore the option if not recognized 7881 # So say no if there are warnings other than the usual output. 7882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7885 lt_cv_prog_compiler_pic_works=yes 7886 fi 7887 fi 7888 $RM conftest* 7889 7890fi 7891{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7892$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7893 7894if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7895 case $lt_prog_compiler_pic in 7896 "" | " "*) ;; 7897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7898 esac 7899else 7900 lt_prog_compiler_pic= 7901 lt_prog_compiler_can_build_shared=no 7902fi 7903 7904fi 7905 7906 7907 7908 7909 7910 7911# 7912# Check to make sure the static flag actually works. 7913# 7914wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7915{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7916$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7917if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7918 $as_echo_n "(cached) " >&6 7919else 7920 lt_cv_prog_compiler_static_works=no 7921 save_LDFLAGS="$LDFLAGS" 7922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7923 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7925 # The linker can only warn and ignore the option if not recognized 7926 # So say no if there are warnings 7927 if test -s conftest.err; then 7928 # Append any errors to the config.log. 7929 cat conftest.err 1>&5 7930 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7932 if diff conftest.exp conftest.er2 >/dev/null; then 7933 lt_cv_prog_compiler_static_works=yes 7934 fi 7935 else 7936 lt_cv_prog_compiler_static_works=yes 7937 fi 7938 fi 7939 $RM -r conftest* 7940 LDFLAGS="$save_LDFLAGS" 7941 7942fi 7943{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7944$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7945 7946if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7947 : 7948else 7949 lt_prog_compiler_static= 7950fi 7951 7952 7953 7954 7955 7956 7957 7958 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7959$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7960if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7961 $as_echo_n "(cached) " >&6 7962else 7963 lt_cv_prog_compiler_c_o=no 7964 $RM -r conftest 2>/dev/null 7965 mkdir conftest 7966 cd conftest 7967 mkdir out 7968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7969 7970 lt_compiler_flag="-o out/conftest2.$ac_objext" 7971 # Insert the option either (1) after the last *FLAGS variable, or 7972 # (2) before a word containing "conftest.", or (3) at the end. 7973 # Note that $ac_compile itself does not contain backslashes and begins 7974 # with a dollar sign (not a hyphen), so the echo should work correctly. 7975 lt_compile=`echo "$ac_compile" | $SED \ 7976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7978 -e 's:$: $lt_compiler_flag:'` 7979 (eval echo "\"\$as_me:7979: $lt_compile\"" >&5) 7980 (eval "$lt_compile" 2>out/conftest.err) 7981 ac_status=$? 7982 cat out/conftest.err >&5 7983 echo "$as_me:7983: \$? = $ac_status" >&5 7984 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7985 then 7986 # The compiler can only warn and ignore the option if not recognized 7987 # So say no if there are warnings 7988 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7991 lt_cv_prog_compiler_c_o=yes 7992 fi 7993 fi 7994 chmod u+w . 2>&5 7995 $RM conftest* 7996 # SGI C++ compiler will create directory out/ii_files/ for 7997 # template instantiation 7998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7999 $RM out/* && rmdir out 8000 cd .. 8001 $RM -r conftest 8002 $RM conftest* 8003 8004fi 8005{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8006$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8007 8008 8009 8010 8011 8012 8013 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8014$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8015if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8016 $as_echo_n "(cached) " >&6 8017else 8018 lt_cv_prog_compiler_c_o=no 8019 $RM -r conftest 2>/dev/null 8020 mkdir conftest 8021 cd conftest 8022 mkdir out 8023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8024 8025 lt_compiler_flag="-o out/conftest2.$ac_objext" 8026 # Insert the option either (1) after the last *FLAGS variable, or 8027 # (2) before a word containing "conftest.", or (3) at the end. 8028 # Note that $ac_compile itself does not contain backslashes and begins 8029 # with a dollar sign (not a hyphen), so the echo should work correctly. 8030 lt_compile=`echo "$ac_compile" | $SED \ 8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8033 -e 's:$: $lt_compiler_flag:'` 8034 (eval echo "\"\$as_me:8034: $lt_compile\"" >&5) 8035 (eval "$lt_compile" 2>out/conftest.err) 8036 ac_status=$? 8037 cat out/conftest.err >&5 8038 echo "$as_me:8038: \$? = $ac_status" >&5 8039 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8040 then 8041 # The compiler can only warn and ignore the option if not recognized 8042 # So say no if there are warnings 8043 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8046 lt_cv_prog_compiler_c_o=yes 8047 fi 8048 fi 8049 chmod u+w . 2>&5 8050 $RM conftest* 8051 # SGI C++ compiler will create directory out/ii_files/ for 8052 # template instantiation 8053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8054 $RM out/* && rmdir out 8055 cd .. 8056 $RM -r conftest 8057 $RM conftest* 8058 8059fi 8060{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8061$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8062 8063 8064 8065 8066hard_links="nottested" 8067if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8068 # do not overwrite the value of need_locks provided by the user 8069 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8070$as_echo_n "checking if we can lock with hard links... " >&6; } 8071 hard_links=yes 8072 $RM conftest* 8073 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8074 touch conftest.a 8075 ln conftest.a conftest.b 2>&5 || hard_links=no 8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8077 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8078$as_echo "$hard_links" >&6; } 8079 if test "$hard_links" = no; then 8080 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8081$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8082 need_locks=warn 8083 fi 8084else 8085 need_locks=no 8086fi 8087 8088 8089 8090 8091 8092 8093 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8094$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8095 8096 runpath_var= 8097 allow_undefined_flag= 8098 always_export_symbols=no 8099 archive_cmds= 8100 archive_expsym_cmds= 8101 compiler_needs_object=no 8102 enable_shared_with_static_runtimes=no 8103 export_dynamic_flag_spec= 8104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8105 hardcode_automatic=no 8106 hardcode_direct=no 8107 hardcode_direct_absolute=no 8108 hardcode_libdir_flag_spec= 8109 hardcode_libdir_flag_spec_ld= 8110 hardcode_libdir_separator= 8111 hardcode_minus_L=no 8112 hardcode_shlibpath_var=unsupported 8113 inherit_rpath=no 8114 link_all_deplibs=unknown 8115 module_cmds= 8116 module_expsym_cmds= 8117 old_archive_from_new_cmds= 8118 old_archive_from_expsyms_cmds= 8119 thread_safe_flag_spec= 8120 whole_archive_flag_spec= 8121 # include_expsyms should be a list of space-separated symbols to be *always* 8122 # included in the symbol list 8123 include_expsyms= 8124 # exclude_expsyms can be an extended regexp of symbols to exclude 8125 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8126 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8127 # as well as any symbol that contains `d'. 8128 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8130 # platforms (ab)use it in PIC code, but their linkers get confused if 8131 # the symbol is explicitly referenced. Since portable code cannot 8132 # rely on this symbol name, it's probably fine to never include it in 8133 # preloaded symbol tables. 8134 # Exclude shared library initialization/finalization symbols. 8135 extract_expsyms_cmds= 8136 8137 case $host_os in 8138 cygwin* | mingw* | pw32* | cegcc*) 8139 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8140 # When not using gcc, we currently assume that we are using 8141 # Microsoft Visual C++. 8142 if test "$GCC" != yes; then 8143 with_gnu_ld=no 8144 fi 8145 ;; 8146 interix*) 8147 # we just hope/assume this is gcc and not c89 (= MSVC++) 8148 with_gnu_ld=yes 8149 ;; 8150 openbsd*) 8151 with_gnu_ld=no 8152 ;; 8153 linux* | k*bsd*-gnu) 8154 link_all_deplibs=no 8155 ;; 8156 esac 8157 8158 ld_shlibs=yes 8159 if test "$with_gnu_ld" = yes; then 8160 # If archive_cmds runs LD, not CC, wlarc should be empty 8161 wlarc='${wl}' 8162 8163 # Set some defaults for GNU ld with shared library support. These 8164 # are reset later if shared libraries are not supported. Putting them 8165 # here allows them to be overridden if necessary. 8166 runpath_var=LD_RUN_PATH 8167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8168 export_dynamic_flag_spec='${wl}--export-dynamic' 8169 # ancient GNU ld didn't support --whole-archive et. al. 8170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8172 else 8173 whole_archive_flag_spec= 8174 fi 8175 supports_anon_versioning=no 8176 case `$LD -v 2>&1` in 8177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8180 *\ 2.11.*) ;; # other 2.11 versions 8181 *) supports_anon_versioning=yes ;; 8182 esac 8183 8184 # See if GNU ld supports shared libraries. 8185 case $host_os in 8186 aix[3-9]*) 8187 # On AIX/PPC, the GNU linker is very broken 8188 if test "$host_cpu" != ia64; then 8189 ld_shlibs=no 8190 cat <<_LT_EOF 1>&2 8191 8192*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8193*** to be unable to reliably create shared libraries on AIX. 8194*** Therefore, libtool is disabling shared libraries support. If you 8195*** really care for shared libraries, you may want to modify your PATH 8196*** so that a non-GNU linker is found, and then restart. 8197 8198_LT_EOF 8199 fi 8200 ;; 8201 8202 amigaos*) 8203 case $host_cpu in 8204 powerpc) 8205 # see comment about AmigaOS4 .so support 8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8207 archive_expsym_cmds='' 8208 ;; 8209 m68k) 8210 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)' 8211 hardcode_libdir_flag_spec='-L$libdir' 8212 hardcode_minus_L=yes 8213 ;; 8214 esac 8215 ;; 8216 8217 beos*) 8218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8219 allow_undefined_flag=unsupported 8220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8221 # support --undefined. This deserves some investigation. FIXME 8222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8223 else 8224 ld_shlibs=no 8225 fi 8226 ;; 8227 8228 cygwin* | mingw* | pw32* | cegcc*) 8229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8230 # as there is no search path for DLLs. 8231 hardcode_libdir_flag_spec='-L$libdir' 8232 allow_undefined_flag=unsupported 8233 always_export_symbols=no 8234 enable_shared_with_static_runtimes=yes 8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8236 8237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8239 # If the export-symbols file already is a .def file (1st line 8240 # is EXPORTS), use it as is; otherwise, prepend... 8241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8242 cp $export_symbols $output_objdir/$soname.def; 8243 else 8244 echo EXPORTS > $output_objdir/$soname.def; 8245 cat $export_symbols >> $output_objdir/$soname.def; 8246 fi~ 8247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8248 else 8249 ld_shlibs=no 8250 fi 8251 ;; 8252 8253 interix[3-9]*) 8254 hardcode_direct=no 8255 hardcode_shlibpath_var=no 8256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8257 export_dynamic_flag_spec='${wl}-E' 8258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8259 # Instead, shared libraries are loaded at an image base (0x10000000 by 8260 # default) and relocated if they conflict, which is a slow very memory 8261 # consuming and fragmenting process. To avoid this, we pick a random, 8262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8263 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8265 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' 8266 ;; 8267 8268 gnu* | linux* | tpf* | k*bsd*-gnu) 8269 tmp_diet=no 8270 if test "$host_os" = linux-dietlibc; then 8271 case $cc_basename in 8272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8273 esac 8274 fi 8275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8276 && test "$tmp_diet" = no 8277 then 8278 tmp_addflag= 8279 tmp_sharedflag='-shared' 8280 case $cc_basename,$host_cpu in 8281 pgcc*) # Portland Group C compiler 8282 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' 8283 tmp_addflag=' $pic_flag' 8284 ;; 8285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8286 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' 8287 tmp_addflag=' $pic_flag -Mnomain' ;; 8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8289 tmp_addflag=' -i_dynamic' ;; 8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8291 tmp_addflag=' -i_dynamic -nofor_main' ;; 8292 ifc* | ifort*) # Intel Fortran compiler 8293 tmp_addflag=' -nofor_main' ;; 8294 lf95*) # Lahey Fortran 8.1 8295 whole_archive_flag_spec= 8296 tmp_sharedflag='--shared' ;; 8297 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8298 tmp_sharedflag='-qmkshrobj' 8299 tmp_addflag= ;; 8300 esac 8301 case `$CC -V 2>&1 | sed 5q` in 8302 *Sun\ C*) # Sun C 5.9 8303 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' 8304 compiler_needs_object=yes 8305 tmp_sharedflag='-G' ;; 8306 *Sun\ F*) # Sun Fortran 8.3 8307 tmp_sharedflag='-G' ;; 8308 esac 8309 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8310 8311 if test "x$supports_anon_versioning" = xyes; then 8312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8314 echo "local: *; };" >> $output_objdir/$libname.ver~ 8315 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8316 fi 8317 8318 case $cc_basename in 8319 xlf*) 8320 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8321 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8322 hardcode_libdir_flag_spec= 8323 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8324 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8325 if test "x$supports_anon_versioning" = xyes; then 8326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8328 echo "local: *; };" >> $output_objdir/$libname.ver~ 8329 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8330 fi 8331 ;; 8332 esac 8333 else 8334 ld_shlibs=no 8335 fi 8336 ;; 8337 8338 netbsd* | netbsdelf*-gnu) 8339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8341 wlarc= 8342 else 8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8345 fi 8346 ;; 8347 8348 solaris*) 8349 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8350 ld_shlibs=no 8351 cat <<_LT_EOF 1>&2 8352 8353*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8354*** create shared libraries on Solaris systems. Therefore, libtool 8355*** is disabling shared libraries support. We urge you to upgrade GNU 8356*** binutils to release 2.9.1 or newer. Another option is to modify 8357*** your PATH or compiler configuration so that the native linker is 8358*** used, and then restart. 8359 8360_LT_EOF 8361 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8364 else 8365 ld_shlibs=no 8366 fi 8367 ;; 8368 8369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8370 case `$LD -v 2>&1` in 8371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8372 ld_shlibs=no 8373 cat <<_LT_EOF 1>&2 8374 8375*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8376*** reliably create shared libraries on SCO systems. Therefore, libtool 8377*** is disabling shared libraries support. We urge you to upgrade GNU 8378*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8379*** your PATH or compiler configuration so that the native linker is 8380*** used, and then restart. 8381 8382_LT_EOF 8383 ;; 8384 *) 8385 # For security reasons, it is highly recommended that you always 8386 # use absolute paths for naming shared libraries, and exclude the 8387 # DT_RUNPATH tag from executables and libraries. But doing so 8388 # requires that you compile everything twice, which is a pain. 8389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8393 else 8394 ld_shlibs=no 8395 fi 8396 ;; 8397 esac 8398 ;; 8399 8400 sunos4*) 8401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8402 wlarc= 8403 hardcode_direct=yes 8404 hardcode_shlibpath_var=no 8405 ;; 8406 8407 *) 8408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8411 else 8412 ld_shlibs=no 8413 fi 8414 ;; 8415 esac 8416 8417 if test "$ld_shlibs" = no; then 8418 runpath_var= 8419 hardcode_libdir_flag_spec= 8420 export_dynamic_flag_spec= 8421 whole_archive_flag_spec= 8422 fi 8423 else 8424 # PORTME fill in a description of your system's linker (not GNU ld) 8425 case $host_os in 8426 aix3*) 8427 allow_undefined_flag=unsupported 8428 always_export_symbols=yes 8429 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' 8430 # Note: this linker hardcodes the directories in LIBPATH if there 8431 # are no directories specified by -L. 8432 hardcode_minus_L=yes 8433 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8434 # Neither direct hardcoding nor static linking is supported with a 8435 # broken collect2. 8436 hardcode_direct=unsupported 8437 fi 8438 ;; 8439 8440 aix[4-9]*) 8441 if test "$host_cpu" = ia64; then 8442 # On IA64, the linker does run time linking by default, so we don't 8443 # have to do anything special. 8444 aix_use_runtimelinking=no 8445 exp_sym_flag='-Bexport' 8446 no_entry_flag="" 8447 else 8448 # If we're using GNU nm, then we don't want the "-C" option. 8449 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8450 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8451 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' 8452 else 8453 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' 8454 fi 8455 aix_use_runtimelinking=no 8456 8457 # Test if we are trying to use run time linking or normal 8458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8459 # need to do runtime linking. 8460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8461 for ld_flag in $LDFLAGS; do 8462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8463 aix_use_runtimelinking=yes 8464 break 8465 fi 8466 done 8467 ;; 8468 esac 8469 8470 exp_sym_flag='-bexport' 8471 no_entry_flag='-bnoentry' 8472 fi 8473 8474 # When large executables or shared objects are built, AIX ld can 8475 # have problems creating the table of contents. If linking a library 8476 # or program results in "error TOC overflow" add -mminimal-toc to 8477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8479 8480 archive_cmds='' 8481 hardcode_direct=yes 8482 hardcode_direct_absolute=yes 8483 hardcode_libdir_separator=':' 8484 link_all_deplibs=yes 8485 file_list_spec='${wl}-f,' 8486 8487 if test "$GCC" = yes; then 8488 case $host_os in aix4.[012]|aix4.[012].*) 8489 # We only want to do this on AIX 4.2 and lower, the check 8490 # below for broken collect2 doesn't work under 4.3+ 8491 collect2name=`${CC} -print-prog-name=collect2` 8492 if test -f "$collect2name" && 8493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8494 then 8495 # We have reworked collect2 8496 : 8497 else 8498 # We have old collect2 8499 hardcode_direct=unsupported 8500 # It fails to find uninstalled libraries when the uninstalled 8501 # path is not listed in the libpath. Setting hardcode_minus_L 8502 # to unsupported forces relinking 8503 hardcode_minus_L=yes 8504 hardcode_libdir_flag_spec='-L$libdir' 8505 hardcode_libdir_separator= 8506 fi 8507 ;; 8508 esac 8509 shared_flag='-shared' 8510 if test "$aix_use_runtimelinking" = yes; then 8511 shared_flag="$shared_flag "'${wl}-G' 8512 fi 8513 link_all_deplibs=no 8514 else 8515 # not using gcc 8516 if test "$host_cpu" = ia64; then 8517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8518 # chokes on -Wl,-G. The following line is correct: 8519 shared_flag='-G' 8520 else 8521 if test "$aix_use_runtimelinking" = yes; then 8522 shared_flag='${wl}-G' 8523 else 8524 shared_flag='${wl}-bM:SRE' 8525 fi 8526 fi 8527 fi 8528 8529 export_dynamic_flag_spec='${wl}-bexpall' 8530 # It seems that -bexpall does not export symbols beginning with 8531 # underscore (_), so it is better to generate a list of symbols to export. 8532 always_export_symbols=yes 8533 if test "$aix_use_runtimelinking" = yes; then 8534 # Warning - without using the other runtime loading flags (-brtl), 8535 # -berok will link without error, but may produce a broken library. 8536 allow_undefined_flag='-berok' 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 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" 8602 else 8603 if test "$host_cpu" = ia64; then 8604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8605 allow_undefined_flag="-z nodefs" 8606 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" 8607 else 8608 # Determine the default libpath from the value encoded in an 8609 # empty executable. 8610 cat >conftest.$ac_ext <<_ACEOF 8611/* confdefs.h. */ 8612_ACEOF 8613cat confdefs.h >>conftest.$ac_ext 8614cat >>conftest.$ac_ext <<_ACEOF 8615/* end confdefs.h. */ 8616 8617int 8618main () 8619{ 8620 8621 ; 8622 return 0; 8623} 8624_ACEOF 8625rm -f conftest.$ac_objext conftest$ac_exeext 8626if { (ac_try="$ac_link" 8627case "(($ac_try" in 8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8629 *) ac_try_echo=$ac_try;; 8630esac 8631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8632$as_echo "$ac_try_echo") >&5 8633 (eval "$ac_link") 2>conftest.er1 8634 ac_status=$? 8635 grep -v '^ *+' conftest.er1 >conftest.err 8636 rm -f conftest.er1 8637 cat conftest.err >&5 8638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); } && { 8640 test -z "$ac_c_werror_flag" || 8641 test ! -s conftest.err 8642 } && test -s conftest$ac_exeext && { 8643 test "$cross_compiling" = yes || 8644 $as_test_x conftest$ac_exeext 8645 }; then 8646 8647lt_aix_libpath_sed=' 8648 /Import File Strings/,/^$/ { 8649 /^0/ { 8650 s/^0 *\(.*\)$/\1/ 8651 p 8652 } 8653 }' 8654aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8655# Check for a 64-bit object if we didn't find anything. 8656if test -z "$aix_libpath"; then 8657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8658fi 8659else 8660 $as_echo "$as_me: failed program was:" >&5 8661sed 's/^/| /' conftest.$ac_ext >&5 8662 8663 8664fi 8665 8666rm -rf conftest.dSYM 8667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8668 conftest$ac_exeext conftest.$ac_ext 8669if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8670 8671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8672 # Warning - without using the other run time loading flags, 8673 # -berok will link without error, but may produce a broken library. 8674 no_undefined_flag=' ${wl}-bernotok' 8675 allow_undefined_flag=' ${wl}-berok' 8676 # Exported symbols can be pulled into shared objects from archives 8677 whole_archive_flag_spec='$convenience' 8678 archive_cmds_need_lc=yes 8679 # This is similar to how AIX traditionally builds its shared libraries. 8680 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' 8681 fi 8682 fi 8683 ;; 8684 8685 amigaos*) 8686 case $host_cpu in 8687 powerpc) 8688 # see comment about AmigaOS4 .so support 8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8690 archive_expsym_cmds='' 8691 ;; 8692 m68k) 8693 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)' 8694 hardcode_libdir_flag_spec='-L$libdir' 8695 hardcode_minus_L=yes 8696 ;; 8697 esac 8698 ;; 8699 8700 bsdi[45]*) 8701 export_dynamic_flag_spec=-rdynamic 8702 ;; 8703 8704 cygwin* | mingw* | pw32* | cegcc*) 8705 # When not using gcc, we currently assume that we are using 8706 # Microsoft Visual C++. 8707 # hardcode_libdir_flag_spec is actually meaningless, as there is 8708 # no search path for DLLs. 8709 hardcode_libdir_flag_spec=' ' 8710 allow_undefined_flag=unsupported 8711 # Tell ltmain to make .lib files, not .a files. 8712 libext=lib 8713 # Tell ltmain to make .dll files, not .so files. 8714 shrext_cmds=".dll" 8715 # FIXME: Setting linknames here is a bad hack. 8716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8717 # The linker will automatically build a .lib file if we build a DLL. 8718 old_archive_from_new_cmds='true' 8719 # FIXME: Should let the user specify the lib program. 8720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8721 fix_srcfile_path='`cygpath -w "$srcfile"`' 8722 enable_shared_with_static_runtimes=yes 8723 ;; 8724 8725 darwin* | rhapsody*) 8726 8727 8728 archive_cmds_need_lc=no 8729 hardcode_direct=no 8730 hardcode_automatic=yes 8731 hardcode_shlibpath_var=unsupported 8732 whole_archive_flag_spec='' 8733 link_all_deplibs=yes 8734 allow_undefined_flag="$_lt_dar_allow_undefined" 8735 case $cc_basename in 8736 ifort*) _lt_dar_can_shared=yes ;; 8737 *) _lt_dar_can_shared=$GCC ;; 8738 esac 8739 if test "$_lt_dar_can_shared" = "yes"; then 8740 output_verbose_link_cmd=echo 8741 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8742 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8743 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}" 8744 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}" 8745 8746 else 8747 ld_shlibs=no 8748 fi 8749 8750 ;; 8751 8752 dgux*) 8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8754 hardcode_libdir_flag_spec='-L$libdir' 8755 hardcode_shlibpath_var=no 8756 ;; 8757 8758 freebsd1*) 8759 ld_shlibs=no 8760 ;; 8761 8762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8763 # support. Future versions do this automatically, but an explicit c++rt0.o 8764 # does not break anything, and helps significantly (at the cost of a little 8765 # extra space). 8766 freebsd2.2*) 8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8768 hardcode_libdir_flag_spec='-R$libdir' 8769 hardcode_direct=yes 8770 hardcode_shlibpath_var=no 8771 ;; 8772 8773 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8774 freebsd2*) 8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8776 hardcode_direct=yes 8777 hardcode_minus_L=yes 8778 hardcode_shlibpath_var=no 8779 ;; 8780 8781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8782 freebsd* | dragonfly*) 8783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8784 hardcode_libdir_flag_spec='-R$libdir' 8785 hardcode_direct=yes 8786 hardcode_shlibpath_var=no 8787 ;; 8788 8789 hpux9*) 8790 if test "$GCC" = yes; then 8791 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' 8792 else 8793 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' 8794 fi 8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8796 hardcode_libdir_separator=: 8797 hardcode_direct=yes 8798 8799 # hardcode_minus_L: Not really in the search PATH, 8800 # but as the default location of the library. 8801 hardcode_minus_L=yes 8802 export_dynamic_flag_spec='${wl}-E' 8803 ;; 8804 8805 hpux10*) 8806 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8808 else 8809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8810 fi 8811 if test "$with_gnu_ld" = no; then 8812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8813 hardcode_libdir_flag_spec_ld='+b $libdir' 8814 hardcode_libdir_separator=: 8815 hardcode_direct=yes 8816 hardcode_direct_absolute=yes 8817 export_dynamic_flag_spec='${wl}-E' 8818 # hardcode_minus_L: Not really in the search PATH, 8819 # but as the default location of the library. 8820 hardcode_minus_L=yes 8821 fi 8822 ;; 8823 8824 hpux11*) 8825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8826 case $host_cpu in 8827 hppa*64*) 8828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8829 ;; 8830 ia64*) 8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8832 ;; 8833 *) 8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8835 ;; 8836 esac 8837 else 8838 case $host_cpu in 8839 hppa*64*) 8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8841 ;; 8842 ia64*) 8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8844 ;; 8845 *) 8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8847 ;; 8848 esac 8849 fi 8850 if test "$with_gnu_ld" = no; then 8851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8852 hardcode_libdir_separator=: 8853 8854 case $host_cpu in 8855 hppa*64*|ia64*) 8856 hardcode_direct=no 8857 hardcode_shlibpath_var=no 8858 ;; 8859 *) 8860 hardcode_direct=yes 8861 hardcode_direct_absolute=yes 8862 export_dynamic_flag_spec='${wl}-E' 8863 8864 # hardcode_minus_L: Not really in the search PATH, 8865 # but as the default location of the library. 8866 hardcode_minus_L=yes 8867 ;; 8868 esac 8869 fi 8870 ;; 8871 8872 irix5* | irix6* | nonstopux*) 8873 if test "$GCC" = yes; then 8874 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' 8875 # Try to use the -exported_symbol ld option, if it does not 8876 # work, assume that -exports_file does not work either and 8877 # implicitly export all symbols. 8878 save_LDFLAGS="$LDFLAGS" 8879 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8880 cat >conftest.$ac_ext <<_ACEOF 8881int foo(void) {} 8882_ACEOF 8883rm -f conftest.$ac_objext conftest$ac_exeext 8884if { (ac_try="$ac_link" 8885case "(($ac_try" in 8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8887 *) ac_try_echo=$ac_try;; 8888esac 8889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8890$as_echo "$ac_try_echo") >&5 8891 (eval "$ac_link") 2>conftest.er1 8892 ac_status=$? 8893 grep -v '^ *+' conftest.er1 >conftest.err 8894 rm -f conftest.er1 8895 cat conftest.err >&5 8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 (exit $ac_status); } && { 8898 test -z "$ac_c_werror_flag" || 8899 test ! -s conftest.err 8900 } && test -s conftest$ac_exeext && { 8901 test "$cross_compiling" = yes || 8902 $as_test_x conftest$ac_exeext 8903 }; then 8904 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' 8905 8906else 8907 $as_echo "$as_me: failed program was:" >&5 8908sed 's/^/| /' conftest.$ac_ext >&5 8909 8910 8911fi 8912 8913rm -rf conftest.dSYM 8914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8915 conftest$ac_exeext conftest.$ac_ext 8916 LDFLAGS="$save_LDFLAGS" 8917 else 8918 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' 8919 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' 8920 fi 8921 archive_cmds_need_lc='no' 8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8923 hardcode_libdir_separator=: 8924 inherit_rpath=yes 8925 link_all_deplibs=yes 8926 ;; 8927 8928 netbsd* | netbsdelf*-gnu) 8929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8931 else 8932 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8933 fi 8934 hardcode_libdir_flag_spec='-R$libdir' 8935 hardcode_direct=yes 8936 hardcode_shlibpath_var=no 8937 ;; 8938 8939 newsos6) 8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8941 hardcode_direct=yes 8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8943 hardcode_libdir_separator=: 8944 hardcode_shlibpath_var=no 8945 ;; 8946 8947 *nto* | *qnx*) 8948 ;; 8949 8950 openbsd*) 8951 if test -f /usr/libexec/ld.so; then 8952 hardcode_direct=yes 8953 hardcode_shlibpath_var=no 8954 hardcode_direct_absolute=yes 8955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8957 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8959 export_dynamic_flag_spec='${wl}-E' 8960 else 8961 case $host_os in 8962 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8964 hardcode_libdir_flag_spec='-R$libdir' 8965 ;; 8966 *) 8967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8969 ;; 8970 esac 8971 fi 8972 else 8973 ld_shlibs=no 8974 fi 8975 ;; 8976 8977 os2*) 8978 hardcode_libdir_flag_spec='-L$libdir' 8979 hardcode_minus_L=yes 8980 allow_undefined_flag=unsupported 8981 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' 8982 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8983 ;; 8984 8985 osf3*) 8986 if test "$GCC" = yes; then 8987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8988 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8989 else 8990 allow_undefined_flag=' -expect_unresolved \*' 8991 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' 8992 fi 8993 archive_cmds_need_lc='no' 8994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8995 hardcode_libdir_separator=: 8996 ;; 8997 8998 osf4* | osf5*) # as osf3* with the addition of -msym flag 8999 if test "$GCC" = yes; then 9000 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9001 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' 9002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9003 else 9004 allow_undefined_flag=' -expect_unresolved \*' 9005 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' 9006 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~ 9007 $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' 9008 9009 # Both c and cxx compiler support -rpath directly 9010 hardcode_libdir_flag_spec='-rpath $libdir' 9011 fi 9012 archive_cmds_need_lc='no' 9013 hardcode_libdir_separator=: 9014 ;; 9015 9016 solaris*) 9017 no_undefined_flag=' -z defs' 9018 if test "$GCC" = yes; then 9019 wlarc='${wl}' 9020 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9022 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9023 else 9024 case `$CC -V 2>&1` in 9025 *"Compilers 5.0"*) 9026 wlarc='' 9027 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9029 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9030 ;; 9031 *) 9032 wlarc='${wl}' 9033 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9035 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9036 ;; 9037 esac 9038 fi 9039 hardcode_libdir_flag_spec='-R$libdir' 9040 hardcode_shlibpath_var=no 9041 case $host_os in 9042 solaris2.[0-5] | solaris2.[0-5].*) ;; 9043 *) 9044 # The compiler driver will combine and reorder linker options, 9045 # but understands `-z linker_flag'. GCC discards it without `$wl', 9046 # but is careful enough not to reorder. 9047 # Supported since Solaris 2.6 (maybe 2.5.1?) 9048 if test "$GCC" = yes; then 9049 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9050 else 9051 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9052 fi 9053 ;; 9054 esac 9055 link_all_deplibs=yes 9056 ;; 9057 9058 sunos4*) 9059 if test "x$host_vendor" = xsequent; then 9060 # Use $CC to link under sequent, because it throws in some extra .o 9061 # files that make .init and .fini sections work. 9062 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9063 else 9064 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9065 fi 9066 hardcode_libdir_flag_spec='-L$libdir' 9067 hardcode_direct=yes 9068 hardcode_minus_L=yes 9069 hardcode_shlibpath_var=no 9070 ;; 9071 9072 sysv4) 9073 case $host_vendor in 9074 sni) 9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9076 hardcode_direct=yes # is this really true??? 9077 ;; 9078 siemens) 9079 ## LD is ld it makes a PLAMLIB 9080 ## CC just makes a GrossModule. 9081 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9082 reload_cmds='$CC -r -o $output$reload_objs' 9083 hardcode_direct=no 9084 ;; 9085 motorola) 9086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9087 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9088 ;; 9089 esac 9090 runpath_var='LD_RUN_PATH' 9091 hardcode_shlibpath_var=no 9092 ;; 9093 9094 sysv4.3*) 9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9096 hardcode_shlibpath_var=no 9097 export_dynamic_flag_spec='-Bexport' 9098 ;; 9099 9100 sysv4*MP*) 9101 if test -d /usr/nec; then 9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9103 hardcode_shlibpath_var=no 9104 runpath_var=LD_RUN_PATH 9105 hardcode_runpath_var=yes 9106 ld_shlibs=yes 9107 fi 9108 ;; 9109 9110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9111 no_undefined_flag='${wl}-z,text' 9112 archive_cmds_need_lc=no 9113 hardcode_shlibpath_var=no 9114 runpath_var='LD_RUN_PATH' 9115 9116 if test "$GCC" = yes; then 9117 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9119 else 9120 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9122 fi 9123 ;; 9124 9125 sysv5* | sco3.2v5* | sco5v6*) 9126 # Note: We can NOT use -z defs as we might desire, because we do not 9127 # link with -lc, and that would cause any symbols used from libc to 9128 # always be unresolved, which means just about no library would 9129 # ever link correctly. If we're not using GNU ld we use -z text 9130 # though, which does catch some bad symbols but isn't as heavy-handed 9131 # as -z defs. 9132 no_undefined_flag='${wl}-z,text' 9133 allow_undefined_flag='${wl}-z,nodefs' 9134 archive_cmds_need_lc=no 9135 hardcode_shlibpath_var=no 9136 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9137 hardcode_libdir_separator=':' 9138 link_all_deplibs=yes 9139 export_dynamic_flag_spec='${wl}-Bexport' 9140 runpath_var='LD_RUN_PATH' 9141 9142 if test "$GCC" = yes; then 9143 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9144 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9145 else 9146 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9147 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9148 fi 9149 ;; 9150 9151 uts4*) 9152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9153 hardcode_libdir_flag_spec='-L$libdir' 9154 hardcode_shlibpath_var=no 9155 ;; 9156 9157 *) 9158 ld_shlibs=no 9159 ;; 9160 esac 9161 9162 if test x$host_vendor = xsni; then 9163 case $host in 9164 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9165 export_dynamic_flag_spec='${wl}-Blargedynsym' 9166 ;; 9167 esac 9168 fi 9169 fi 9170 9171{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9172$as_echo "$ld_shlibs" >&6; } 9173test "$ld_shlibs" = no && can_build_shared=no 9174 9175with_gnu_ld=$with_gnu_ld 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191# 9192# Do we need to explicitly link libc? 9193# 9194case "x$archive_cmds_need_lc" in 9195x|xyes) 9196 # Assume -lc should be added 9197 archive_cmds_need_lc=yes 9198 9199 if test "$enable_shared" = yes && test "$GCC" = yes; then 9200 case $archive_cmds in 9201 *'~'*) 9202 # FIXME: we may have to deal with multi-command sequences. 9203 ;; 9204 '$CC '*) 9205 # Test whether the compiler implicitly links with -lc since on some 9206 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9207 # to ld, don't add -lc before -lgcc. 9208 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9209$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9210 $RM conftest* 9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9212 9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9214 (eval $ac_compile) 2>&5 9215 ac_status=$? 9216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9217 (exit $ac_status); } 2>conftest.err; then 9218 soname=conftest 9219 lib=conftest 9220 libobjs=conftest.$ac_objext 9221 deplibs= 9222 wl=$lt_prog_compiler_wl 9223 pic_flag=$lt_prog_compiler_pic 9224 compiler_flags=-v 9225 linker_flags=-v 9226 verstring= 9227 output_objdir=. 9228 libname=conftest 9229 lt_save_allow_undefined_flag=$allow_undefined_flag 9230 allow_undefined_flag= 9231 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9232 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9233 ac_status=$? 9234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 (exit $ac_status); } 9236 then 9237 archive_cmds_need_lc=no 9238 else 9239 archive_cmds_need_lc=yes 9240 fi 9241 allow_undefined_flag=$lt_save_allow_undefined_flag 9242 else 9243 cat conftest.err 1>&5 9244 fi 9245 $RM conftest* 9246 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9247$as_echo "$archive_cmds_need_lc" >&6; } 9248 ;; 9249 esac 9250 fi 9251 ;; 9252esac 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9411$as_echo_n "checking dynamic linker characteristics... " >&6; } 9412 9413if test "$GCC" = yes; then 9414 case $host_os in 9415 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9416 *) lt_awk_arg="/^libraries:/" ;; 9417 esac 9418 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9419 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9420 # if the path contains ";" then we assume it to be the separator 9421 # otherwise default to the standard path separator (i.e. ":") - it is 9422 # assumed that no part of a normal pathname contains ";" but that should 9423 # okay in the real world where ";" in dirpaths is itself problematic. 9424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9425 else 9426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9427 fi 9428 # Ok, now we have the path, separated by spaces, we can step through it 9429 # and add multilib dir if necessary. 9430 lt_tmp_lt_search_path_spec= 9431 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9432 for lt_sys_path in $lt_search_path_spec; do 9433 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9434 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9435 else 9436 test -d "$lt_sys_path" && \ 9437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9438 fi 9439 done 9440 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9441BEGIN {RS=" "; FS="/|\n";} { 9442 lt_foo=""; 9443 lt_count=0; 9444 for (lt_i = NF; lt_i > 0; lt_i--) { 9445 if ($lt_i != "" && $lt_i != ".") { 9446 if ($lt_i == "..") { 9447 lt_count++; 9448 } else { 9449 if (lt_count == 0) { 9450 lt_foo="/" $lt_i lt_foo; 9451 } else { 9452 lt_count--; 9453 } 9454 } 9455 } 9456 } 9457 if (lt_foo != "") { lt_freq[lt_foo]++; } 9458 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9459}'` 9460 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9461else 9462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9463fi 9464library_names_spec= 9465libname_spec='lib$name' 9466soname_spec= 9467shrext_cmds=".so" 9468postinstall_cmds= 9469postuninstall_cmds= 9470finish_cmds= 9471finish_eval= 9472shlibpath_var= 9473shlibpath_overrides_runpath=unknown 9474version_type=none 9475dynamic_linker="$host_os ld.so" 9476sys_lib_dlsearch_path_spec="/lib /usr/lib" 9477need_lib_prefix=unknown 9478hardcode_into_libs=no 9479 9480# when you set need_version to no, make sure it does not cause -set_version 9481# flags to be left without arguments 9482need_version=unknown 9483 9484case $host_os in 9485aix3*) 9486 version_type=linux 9487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9488 shlibpath_var=LIBPATH 9489 9490 # AIX 3 has no versioning support, so we append a major version to the name. 9491 soname_spec='${libname}${release}${shared_ext}$major' 9492 ;; 9493 9494aix[4-9]*) 9495 version_type=linux 9496 need_lib_prefix=no 9497 need_version=no 9498 hardcode_into_libs=yes 9499 if test "$host_cpu" = ia64; then 9500 # AIX 5 supports IA64 9501 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9502 shlibpath_var=LD_LIBRARY_PATH 9503 else 9504 # With GCC up to 2.95.x, collect2 would create an import file 9505 # for dependence libraries. The import file would start with 9506 # the line `#! .'. This would cause the generated library to 9507 # depend on `.', always an invalid library. This was fixed in 9508 # development snapshots of GCC prior to 3.0. 9509 case $host_os in 9510 aix4 | aix4.[01] | aix4.[01].*) 9511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9512 echo ' yes ' 9513 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9514 : 9515 else 9516 can_build_shared=no 9517 fi 9518 ;; 9519 esac 9520 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9521 # soname into executable. Probably we can add versioning support to 9522 # collect2, so additional links can be useful in future. 9523 if test "$aix_use_runtimelinking" = yes; then 9524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9525 # instead of lib<name>.a to let people know that these are not 9526 # typical AIX shared libraries. 9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9528 else 9529 # We preserve .a as extension for shared libraries through AIX4.2 9530 # and later when we are not doing run time linking. 9531 library_names_spec='${libname}${release}.a $libname.a' 9532 soname_spec='${libname}${release}${shared_ext}$major' 9533 fi 9534 shlibpath_var=LIBPATH 9535 fi 9536 ;; 9537 9538amigaos*) 9539 case $host_cpu in 9540 powerpc) 9541 # Since July 2007 AmigaOS4 officially supports .so libraries. 9542 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9544 ;; 9545 m68k) 9546 library_names_spec='$libname.ixlibrary $libname.a' 9547 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9548 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' 9549 ;; 9550 esac 9551 ;; 9552 9553beos*) 9554 library_names_spec='${libname}${shared_ext}' 9555 dynamic_linker="$host_os ld.so" 9556 shlibpath_var=LIBRARY_PATH 9557 ;; 9558 9559bsdi[45]*) 9560 version_type=linux 9561 need_version=no 9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9565 shlibpath_var=LD_LIBRARY_PATH 9566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9568 # the default ld.so.conf also contains /usr/contrib/lib and 9569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9570 # libtool to hard-code these into programs 9571 ;; 9572 9573cygwin* | mingw* | pw32* | cegcc*) 9574 version_type=windows 9575 shrext_cmds=".dll" 9576 need_version=no 9577 need_lib_prefix=no 9578 9579 case $GCC,$host_os in 9580 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9581 library_names_spec='$libname.dll.a' 9582 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9583 postinstall_cmds='base_file=`basename \${file}`~ 9584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9585 dldir=$destdir/`dirname \$dlpath`~ 9586 test -d \$dldir || mkdir -p \$dldir~ 9587 $install_prog $dir/$dlname \$dldir/$dlname~ 9588 chmod a+x \$dldir/$dlname~ 9589 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9590 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9591 fi' 9592 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9593 dlpath=$dir/\$dldll~ 9594 $RM \$dlpath' 9595 shlibpath_overrides_runpath=yes 9596 9597 case $host_os in 9598 cygwin*) 9599 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9600 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9601 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9602 ;; 9603 mingw* | cegcc*) 9604 # MinGW DLLs use traditional 'lib' prefix 9605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9606 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9607 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9608 # It is most probably a Windows format PATH printed by 9609 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9610 # path with ; separators, and with drive letters. We can handle the 9611 # drive letters (cygwin fileutils understands them), so leave them, 9612 # especially as we might pass files found there to a mingw objdump, 9613 # which wouldn't understand a cygwinified path. Ahh. 9614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9615 else 9616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9617 fi 9618 ;; 9619 pw32*) 9620 # pw32 DLLs use 'pw' prefix rather than 'lib' 9621 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9622 ;; 9623 esac 9624 ;; 9625 9626 *) 9627 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9628 ;; 9629 esac 9630 dynamic_linker='Win32 ld.exe' 9631 # FIXME: first we should search . and the directory the executable is in 9632 shlibpath_var=PATH 9633 ;; 9634 9635darwin* | rhapsody*) 9636 dynamic_linker="$host_os dyld" 9637 version_type=darwin 9638 need_lib_prefix=no 9639 need_version=no 9640 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9641 soname_spec='${libname}${release}${major}$shared_ext' 9642 shlibpath_overrides_runpath=yes 9643 shlibpath_var=DYLD_LIBRARY_PATH 9644 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9645 9646 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9648 ;; 9649 9650dgux*) 9651 version_type=linux 9652 need_lib_prefix=no 9653 need_version=no 9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9655 soname_spec='${libname}${release}${shared_ext}$major' 9656 shlibpath_var=LD_LIBRARY_PATH 9657 ;; 9658 9659freebsd1*) 9660 dynamic_linker=no 9661 ;; 9662 9663freebsd* | dragonfly*) 9664 # DragonFly does not have aout. When/if they implement a new 9665 # versioning mechanism, adjust this. 9666 if test -x /usr/bin/objformat; then 9667 objformat=`/usr/bin/objformat` 9668 else 9669 case $host_os in 9670 freebsd[123]*) objformat=aout ;; 9671 *) objformat=elf ;; 9672 esac 9673 fi 9674 version_type=freebsd-$objformat 9675 case $version_type in 9676 freebsd-elf*) 9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9678 need_version=no 9679 need_lib_prefix=no 9680 ;; 9681 freebsd-*) 9682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9683 need_version=yes 9684 ;; 9685 esac 9686 shlibpath_var=LD_LIBRARY_PATH 9687 case $host_os in 9688 freebsd2*) 9689 shlibpath_overrides_runpath=yes 9690 ;; 9691 freebsd3.[01]* | freebsdelf3.[01]*) 9692 shlibpath_overrides_runpath=yes 9693 hardcode_into_libs=yes 9694 ;; 9695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9697 shlibpath_overrides_runpath=no 9698 hardcode_into_libs=yes 9699 ;; 9700 *) # from 4.6 on, and DragonFly 9701 shlibpath_overrides_runpath=yes 9702 hardcode_into_libs=yes 9703 ;; 9704 esac 9705 ;; 9706 9707gnu*) 9708 version_type=linux 9709 need_lib_prefix=no 9710 need_version=no 9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9712 soname_spec='${libname}${release}${shared_ext}$major' 9713 shlibpath_var=LD_LIBRARY_PATH 9714 hardcode_into_libs=yes 9715 ;; 9716 9717hpux9* | hpux10* | hpux11*) 9718 # Give a soname corresponding to the major version so that dld.sl refuses to 9719 # link against other versions. 9720 version_type=sunos 9721 need_lib_prefix=no 9722 need_version=no 9723 case $host_cpu in 9724 ia64*) 9725 shrext_cmds='.so' 9726 hardcode_into_libs=yes 9727 dynamic_linker="$host_os dld.so" 9728 shlibpath_var=LD_LIBRARY_PATH 9729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9731 soname_spec='${libname}${release}${shared_ext}$major' 9732 if test "X$HPUX_IA64_MODE" = X32; then 9733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9734 else 9735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9736 fi 9737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9738 ;; 9739 hppa*64*) 9740 shrext_cmds='.sl' 9741 hardcode_into_libs=yes 9742 dynamic_linker="$host_os dld.sl" 9743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9746 soname_spec='${libname}${release}${shared_ext}$major' 9747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9749 ;; 9750 *) 9751 shrext_cmds='.sl' 9752 dynamic_linker="$host_os dld.sl" 9753 shlibpath_var=SHLIB_PATH 9754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9756 soname_spec='${libname}${release}${shared_ext}$major' 9757 ;; 9758 esac 9759 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9760 postinstall_cmds='chmod 555 $lib' 9761 ;; 9762 9763interix[3-9]*) 9764 version_type=linux 9765 need_lib_prefix=no 9766 need_version=no 9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9768 soname_spec='${libname}${release}${shared_ext}$major' 9769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9770 shlibpath_var=LD_LIBRARY_PATH 9771 shlibpath_overrides_runpath=no 9772 hardcode_into_libs=yes 9773 ;; 9774 9775irix5* | irix6* | nonstopux*) 9776 case $host_os in 9777 nonstopux*) version_type=nonstopux ;; 9778 *) 9779 if test "$lt_cv_prog_gnu_ld" = yes; then 9780 version_type=linux 9781 else 9782 version_type=irix 9783 fi ;; 9784 esac 9785 need_lib_prefix=no 9786 need_version=no 9787 soname_spec='${libname}${release}${shared_ext}$major' 9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9789 case $host_os in 9790 irix5* | nonstopux*) 9791 libsuff= shlibsuff= 9792 ;; 9793 *) 9794 case $LD in # libtool.m4 will add one of these switches to LD 9795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9796 libsuff= shlibsuff= libmagic=32-bit;; 9797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9798 libsuff=32 shlibsuff=N32 libmagic=N32;; 9799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9800 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9801 *) libsuff= shlibsuff= libmagic=never-match;; 9802 esac 9803 ;; 9804 esac 9805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9806 shlibpath_overrides_runpath=no 9807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9809 hardcode_into_libs=yes 9810 ;; 9811 9812# No shared lib support for Linux oldld, aout, or coff. 9813linux*oldld* | linux*aout* | linux*coff*) 9814 dynamic_linker=no 9815 ;; 9816 9817# This must be Linux ELF. 9818linux* | k*bsd*-gnu) 9819 version_type=linux 9820 need_lib_prefix=no 9821 need_version=no 9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9823 soname_spec='${libname}${release}${shared_ext}$major' 9824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9825 shlibpath_var=LD_LIBRARY_PATH 9826 shlibpath_overrides_runpath=no 9827 # Some binutils ld are patched to set DT_RUNPATH 9828 save_LDFLAGS=$LDFLAGS 9829 save_libdir=$libdir 9830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9832 cat >conftest.$ac_ext <<_ACEOF 9833/* confdefs.h. */ 9834_ACEOF 9835cat confdefs.h >>conftest.$ac_ext 9836cat >>conftest.$ac_ext <<_ACEOF 9837/* end confdefs.h. */ 9838 9839int 9840main () 9841{ 9842 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847rm -f conftest.$ac_objext conftest$ac_exeext 9848if { (ac_try="$ac_link" 9849case "(($ac_try" in 9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9851 *) ac_try_echo=$ac_try;; 9852esac 9853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9854$as_echo "$ac_try_echo") >&5 9855 (eval "$ac_link") 2>conftest.er1 9856 ac_status=$? 9857 grep -v '^ *+' conftest.er1 >conftest.err 9858 rm -f conftest.er1 9859 cat conftest.err >&5 9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9861 (exit $ac_status); } && { 9862 test -z "$ac_c_werror_flag" || 9863 test ! -s conftest.err 9864 } && test -s conftest$ac_exeext && { 9865 test "$cross_compiling" = yes || 9866 $as_test_x conftest$ac_exeext 9867 }; then 9868 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9869 shlibpath_overrides_runpath=yes 9870fi 9871 9872else 9873 $as_echo "$as_me: failed program was:" >&5 9874sed 's/^/| /' conftest.$ac_ext >&5 9875 9876 9877fi 9878 9879rm -rf conftest.dSYM 9880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9881 conftest$ac_exeext conftest.$ac_ext 9882 LDFLAGS=$save_LDFLAGS 9883 libdir=$save_libdir 9884 9885 # This implies no fast_install, which is unacceptable. 9886 # Some rework will be needed to allow for fast_install 9887 # before this can be enabled. 9888 hardcode_into_libs=yes 9889 9890 # Append ld.so.conf contents to the search path 9891 if test -f /etc/ld.so.conf; then 9892 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' ' '` 9893 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9894 fi 9895 9896 # We used to test for /lib/ld.so.1 and disable shared libraries on 9897 # powerpc, because MkLinux only supported shared libraries with the 9898 # GNU dynamic linker. Since this was broken with cross compilers, 9899 # most powerpc-linux boxes support dynamic linking these days and 9900 # people can always --disable-shared, the test was removed, and we 9901 # assume the GNU/Linux dynamic linker is in use. 9902 dynamic_linker='GNU/Linux ld.so' 9903 ;; 9904 9905netbsdelf*-gnu) 9906 version_type=linux 9907 need_lib_prefix=no 9908 need_version=no 9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9910 soname_spec='${libname}${release}${shared_ext}$major' 9911 shlibpath_var=LD_LIBRARY_PATH 9912 shlibpath_overrides_runpath=no 9913 hardcode_into_libs=yes 9914 dynamic_linker='NetBSD ld.elf_so' 9915 ;; 9916 9917netbsd*) 9918 version_type=sunos 9919 need_lib_prefix=no 9920 need_version=no 9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9924 dynamic_linker='NetBSD (a.out) ld.so' 9925 else 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 dynamic_linker='NetBSD ld.elf_so' 9929 fi 9930 shlibpath_var=LD_LIBRARY_PATH 9931 shlibpath_overrides_runpath=yes 9932 hardcode_into_libs=yes 9933 ;; 9934 9935newsos6) 9936 version_type=linux 9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9938 shlibpath_var=LD_LIBRARY_PATH 9939 shlibpath_overrides_runpath=yes 9940 ;; 9941 9942*nto* | *qnx*) 9943 version_type=qnx 9944 need_lib_prefix=no 9945 need_version=no 9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9947 soname_spec='${libname}${release}${shared_ext}$major' 9948 shlibpath_var=LD_LIBRARY_PATH 9949 shlibpath_overrides_runpath=no 9950 hardcode_into_libs=yes 9951 dynamic_linker='ldqnx.so' 9952 ;; 9953 9954openbsd*) 9955 version_type=sunos 9956 sys_lib_dlsearch_path_spec="/usr/lib" 9957 need_lib_prefix=no 9958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9959 case $host_os in 9960 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9961 *) need_version=no ;; 9962 esac 9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9965 shlibpath_var=LD_LIBRARY_PATH 9966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9967 case $host_os in 9968 openbsd2.[89] | openbsd2.[89].*) 9969 shlibpath_overrides_runpath=no 9970 ;; 9971 *) 9972 shlibpath_overrides_runpath=yes 9973 ;; 9974 esac 9975 else 9976 shlibpath_overrides_runpath=yes 9977 fi 9978 ;; 9979 9980os2*) 9981 libname_spec='$name' 9982 shrext_cmds=".dll" 9983 need_lib_prefix=no 9984 library_names_spec='$libname${shared_ext} $libname.a' 9985 dynamic_linker='OS/2 ld.exe' 9986 shlibpath_var=LIBPATH 9987 ;; 9988 9989osf3* | osf4* | osf5*) 9990 version_type=osf 9991 need_lib_prefix=no 9992 need_version=no 9993 soname_spec='${libname}${release}${shared_ext}$major' 9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9995 shlibpath_var=LD_LIBRARY_PATH 9996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9998 ;; 9999 10000rdos*) 10001 dynamic_linker=no 10002 ;; 10003 10004solaris*) 10005 version_type=linux 10006 need_lib_prefix=no 10007 need_version=no 10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10009 soname_spec='${libname}${release}${shared_ext}$major' 10010 shlibpath_var=LD_LIBRARY_PATH 10011 shlibpath_overrides_runpath=yes 10012 hardcode_into_libs=yes 10013 # ldd complains unless libraries are executable 10014 postinstall_cmds='chmod +x $lib' 10015 ;; 10016 10017sunos4*) 10018 version_type=sunos 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10021 shlibpath_var=LD_LIBRARY_PATH 10022 shlibpath_overrides_runpath=yes 10023 if test "$with_gnu_ld" = yes; then 10024 need_lib_prefix=no 10025 fi 10026 need_version=yes 10027 ;; 10028 10029sysv4 | sysv4.3*) 10030 version_type=linux 10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10032 soname_spec='${libname}${release}${shared_ext}$major' 10033 shlibpath_var=LD_LIBRARY_PATH 10034 case $host_vendor in 10035 sni) 10036 shlibpath_overrides_runpath=no 10037 need_lib_prefix=no 10038 runpath_var=LD_RUN_PATH 10039 ;; 10040 siemens) 10041 need_lib_prefix=no 10042 ;; 10043 motorola) 10044 need_lib_prefix=no 10045 need_version=no 10046 shlibpath_overrides_runpath=no 10047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10048 ;; 10049 esac 10050 ;; 10051 10052sysv4*MP*) 10053 if test -d /usr/nec ;then 10054 version_type=linux 10055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10056 soname_spec='$libname${shared_ext}.$major' 10057 shlibpath_var=LD_LIBRARY_PATH 10058 fi 10059 ;; 10060 10061sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10062 version_type=freebsd-elf 10063 need_lib_prefix=no 10064 need_version=no 10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10066 soname_spec='${libname}${release}${shared_ext}$major' 10067 shlibpath_var=LD_LIBRARY_PATH 10068 shlibpath_overrides_runpath=yes 10069 hardcode_into_libs=yes 10070 if test "$with_gnu_ld" = yes; then 10071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10072 else 10073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10074 case $host_os in 10075 sco3.2v5*) 10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10077 ;; 10078 esac 10079 fi 10080 sys_lib_dlsearch_path_spec='/usr/lib' 10081 ;; 10082 10083tpf*) 10084 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10085 version_type=linux 10086 need_lib_prefix=no 10087 need_version=no 10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10089 shlibpath_var=LD_LIBRARY_PATH 10090 shlibpath_overrides_runpath=no 10091 hardcode_into_libs=yes 10092 ;; 10093 10094uts4*) 10095 version_type=linux 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10097 soname_spec='${libname}${release}${shared_ext}$major' 10098 shlibpath_var=LD_LIBRARY_PATH 10099 ;; 10100 10101*) 10102 dynamic_linker=no 10103 ;; 10104esac 10105{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10106$as_echo "$dynamic_linker" >&6; } 10107test "$dynamic_linker" = no && can_build_shared=no 10108 10109variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10110if test "$GCC" = yes; then 10111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10112fi 10113 10114if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10116fi 10117if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10118 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10119fi 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10208$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10209hardcode_action= 10210if test -n "$hardcode_libdir_flag_spec" || 10211 test -n "$runpath_var" || 10212 test "X$hardcode_automatic" = "Xyes" ; then 10213 10214 # We can hardcode non-existent directories. 10215 if test "$hardcode_direct" != no && 10216 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10217 # have to relink, otherwise we might link with an installed library 10218 # when we should be linking with a yet-to-be-installed one 10219 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10220 test "$hardcode_minus_L" != no; then 10221 # Linking always hardcodes the temporary library directory. 10222 hardcode_action=relink 10223 else 10224 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10225 hardcode_action=immediate 10226 fi 10227else 10228 # We cannot hardcode anything, or else we can only hardcode existing 10229 # directories. 10230 hardcode_action=unsupported 10231fi 10232{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10233$as_echo "$hardcode_action" >&6; } 10234 10235if test "$hardcode_action" = relink || 10236 test "$inherit_rpath" = yes; then 10237 # Fast installation is not supported 10238 enable_fast_install=no 10239elif test "$shlibpath_overrides_runpath" = yes || 10240 test "$enable_shared" = no; then 10241 # Fast installation is not necessary 10242 enable_fast_install=needless 10243fi 10244 10245 10246 10247 10248 10249 10250 if test "x$enable_dlopen" != xyes; then 10251 enable_dlopen=unknown 10252 enable_dlopen_self=unknown 10253 enable_dlopen_self_static=unknown 10254else 10255 lt_cv_dlopen=no 10256 lt_cv_dlopen_libs= 10257 10258 case $host_os in 10259 beos*) 10260 lt_cv_dlopen="load_add_on" 10261 lt_cv_dlopen_libs= 10262 lt_cv_dlopen_self=yes 10263 ;; 10264 10265 mingw* | pw32* | cegcc*) 10266 lt_cv_dlopen="LoadLibrary" 10267 lt_cv_dlopen_libs= 10268 ;; 10269 10270 cygwin*) 10271 lt_cv_dlopen="dlopen" 10272 lt_cv_dlopen_libs= 10273 ;; 10274 10275 darwin*) 10276 # if libdl is installed we need to link against it 10277 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10278$as_echo_n "checking for dlopen in -ldl... " >&6; } 10279if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10280 $as_echo_n "(cached) " >&6 10281else 10282 ac_check_lib_save_LIBS=$LIBS 10283LIBS="-ldl $LIBS" 10284cat >conftest.$ac_ext <<_ACEOF 10285/* confdefs.h. */ 10286_ACEOF 10287cat confdefs.h >>conftest.$ac_ext 10288cat >>conftest.$ac_ext <<_ACEOF 10289/* end confdefs.h. */ 10290 10291/* Override any GCC internal prototype to avoid an error. 10292 Use char because int might match the return type of a GCC 10293 builtin and then its argument prototype would still apply. */ 10294#ifdef __cplusplus 10295extern "C" 10296#endif 10297char dlopen (); 10298int 10299main () 10300{ 10301return dlopen (); 10302 ; 10303 return 0; 10304} 10305_ACEOF 10306rm -f conftest.$ac_objext conftest$ac_exeext 10307if { (ac_try="$ac_link" 10308case "(($ac_try" in 10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10310 *) ac_try_echo=$ac_try;; 10311esac 10312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10313$as_echo "$ac_try_echo") >&5 10314 (eval "$ac_link") 2>conftest.er1 10315 ac_status=$? 10316 grep -v '^ *+' conftest.er1 >conftest.err 10317 rm -f conftest.er1 10318 cat conftest.err >&5 10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10320 (exit $ac_status); } && { 10321 test -z "$ac_c_werror_flag" || 10322 test ! -s conftest.err 10323 } && test -s conftest$ac_exeext && { 10324 test "$cross_compiling" = yes || 10325 $as_test_x conftest$ac_exeext 10326 }; then 10327 ac_cv_lib_dl_dlopen=yes 10328else 10329 $as_echo "$as_me: failed program was:" >&5 10330sed 's/^/| /' conftest.$ac_ext >&5 10331 10332 ac_cv_lib_dl_dlopen=no 10333fi 10334 10335rm -rf conftest.dSYM 10336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10337 conftest$ac_exeext conftest.$ac_ext 10338LIBS=$ac_check_lib_save_LIBS 10339fi 10340{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10341$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10342if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10344else 10345 10346 lt_cv_dlopen="dyld" 10347 lt_cv_dlopen_libs= 10348 lt_cv_dlopen_self=yes 10349 10350fi 10351 10352 ;; 10353 10354 *) 10355 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10356$as_echo_n "checking for shl_load... " >&6; } 10357if test "${ac_cv_func_shl_load+set}" = set; then 10358 $as_echo_n "(cached) " >&6 10359else 10360 cat >conftest.$ac_ext <<_ACEOF 10361/* confdefs.h. */ 10362_ACEOF 10363cat confdefs.h >>conftest.$ac_ext 10364cat >>conftest.$ac_ext <<_ACEOF 10365/* end confdefs.h. */ 10366/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10367 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10368#define shl_load innocuous_shl_load 10369 10370/* System header to define __stub macros and hopefully few prototypes, 10371 which can conflict with char shl_load (); below. 10372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10373 <limits.h> exists even on freestanding compilers. */ 10374 10375#ifdef __STDC__ 10376# include <limits.h> 10377#else 10378# include <assert.h> 10379#endif 10380 10381#undef shl_load 10382 10383/* Override any GCC internal prototype to avoid an error. 10384 Use char because int might match the return type of a GCC 10385 builtin and then its argument prototype would still apply. */ 10386#ifdef __cplusplus 10387extern "C" 10388#endif 10389char shl_load (); 10390/* The GNU C library defines this for functions which it implements 10391 to always fail with ENOSYS. Some functions are actually named 10392 something starting with __ and the normal name is an alias. */ 10393#if defined __stub_shl_load || defined __stub___shl_load 10394choke me 10395#endif 10396 10397int 10398main () 10399{ 10400return shl_load (); 10401 ; 10402 return 0; 10403} 10404_ACEOF 10405rm -f conftest.$ac_objext conftest$ac_exeext 10406if { (ac_try="$ac_link" 10407case "(($ac_try" in 10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10409 *) ac_try_echo=$ac_try;; 10410esac 10411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10412$as_echo "$ac_try_echo") >&5 10413 (eval "$ac_link") 2>conftest.er1 10414 ac_status=$? 10415 grep -v '^ *+' conftest.er1 >conftest.err 10416 rm -f conftest.er1 10417 cat conftest.err >&5 10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); } && { 10420 test -z "$ac_c_werror_flag" || 10421 test ! -s conftest.err 10422 } && test -s conftest$ac_exeext && { 10423 test "$cross_compiling" = yes || 10424 $as_test_x conftest$ac_exeext 10425 }; then 10426 ac_cv_func_shl_load=yes 10427else 10428 $as_echo "$as_me: failed program was:" >&5 10429sed 's/^/| /' conftest.$ac_ext >&5 10430 10431 ac_cv_func_shl_load=no 10432fi 10433 10434rm -rf conftest.dSYM 10435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10436 conftest$ac_exeext conftest.$ac_ext 10437fi 10438{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10439$as_echo "$ac_cv_func_shl_load" >&6; } 10440if test "x$ac_cv_func_shl_load" = x""yes; then 10441 lt_cv_dlopen="shl_load" 10442else 10443 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10444$as_echo_n "checking for shl_load in -ldld... " >&6; } 10445if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10446 $as_echo_n "(cached) " >&6 10447else 10448 ac_check_lib_save_LIBS=$LIBS 10449LIBS="-ldld $LIBS" 10450cat >conftest.$ac_ext <<_ACEOF 10451/* confdefs.h. */ 10452_ACEOF 10453cat confdefs.h >>conftest.$ac_ext 10454cat >>conftest.$ac_ext <<_ACEOF 10455/* end confdefs.h. */ 10456 10457/* Override any GCC internal prototype to avoid an error. 10458 Use char because int might match the return type of a GCC 10459 builtin and then its argument prototype would still apply. */ 10460#ifdef __cplusplus 10461extern "C" 10462#endif 10463char shl_load (); 10464int 10465main () 10466{ 10467return shl_load (); 10468 ; 10469 return 0; 10470} 10471_ACEOF 10472rm -f conftest.$ac_objext conftest$ac_exeext 10473if { (ac_try="$ac_link" 10474case "(($ac_try" in 10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10476 *) ac_try_echo=$ac_try;; 10477esac 10478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10479$as_echo "$ac_try_echo") >&5 10480 (eval "$ac_link") 2>conftest.er1 10481 ac_status=$? 10482 grep -v '^ *+' conftest.er1 >conftest.err 10483 rm -f conftest.er1 10484 cat conftest.err >&5 10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 (exit $ac_status); } && { 10487 test -z "$ac_c_werror_flag" || 10488 test ! -s conftest.err 10489 } && test -s conftest$ac_exeext && { 10490 test "$cross_compiling" = yes || 10491 $as_test_x conftest$ac_exeext 10492 }; then 10493 ac_cv_lib_dld_shl_load=yes 10494else 10495 $as_echo "$as_me: failed program was:" >&5 10496sed 's/^/| /' conftest.$ac_ext >&5 10497 10498 ac_cv_lib_dld_shl_load=no 10499fi 10500 10501rm -rf conftest.dSYM 10502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10503 conftest$ac_exeext conftest.$ac_ext 10504LIBS=$ac_check_lib_save_LIBS 10505fi 10506{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10507$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10508if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10509 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10510else 10511 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10512$as_echo_n "checking for dlopen... " >&6; } 10513if test "${ac_cv_func_dlopen+set}" = set; then 10514 $as_echo_n "(cached) " >&6 10515else 10516 cat >conftest.$ac_ext <<_ACEOF 10517/* confdefs.h. */ 10518_ACEOF 10519cat confdefs.h >>conftest.$ac_ext 10520cat >>conftest.$ac_ext <<_ACEOF 10521/* end confdefs.h. */ 10522/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10523 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10524#define dlopen innocuous_dlopen 10525 10526/* System header to define __stub macros and hopefully few prototypes, 10527 which can conflict with char dlopen (); below. 10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10529 <limits.h> exists even on freestanding compilers. */ 10530 10531#ifdef __STDC__ 10532# include <limits.h> 10533#else 10534# include <assert.h> 10535#endif 10536 10537#undef dlopen 10538 10539/* Override any GCC internal prototype to avoid an error. 10540 Use char because int might match the return type of a GCC 10541 builtin and then its argument prototype would still apply. */ 10542#ifdef __cplusplus 10543extern "C" 10544#endif 10545char dlopen (); 10546/* The GNU C library defines this for functions which it implements 10547 to always fail with ENOSYS. Some functions are actually named 10548 something starting with __ and the normal name is an alias. */ 10549#if defined __stub_dlopen || defined __stub___dlopen 10550choke me 10551#endif 10552 10553int 10554main () 10555{ 10556return dlopen (); 10557 ; 10558 return 0; 10559} 10560_ACEOF 10561rm -f conftest.$ac_objext conftest$ac_exeext 10562if { (ac_try="$ac_link" 10563case "(($ac_try" in 10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10565 *) ac_try_echo=$ac_try;; 10566esac 10567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10568$as_echo "$ac_try_echo") >&5 10569 (eval "$ac_link") 2>conftest.er1 10570 ac_status=$? 10571 grep -v '^ *+' conftest.er1 >conftest.err 10572 rm -f conftest.er1 10573 cat conftest.err >&5 10574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10575 (exit $ac_status); } && { 10576 test -z "$ac_c_werror_flag" || 10577 test ! -s conftest.err 10578 } && test -s conftest$ac_exeext && { 10579 test "$cross_compiling" = yes || 10580 $as_test_x conftest$ac_exeext 10581 }; then 10582 ac_cv_func_dlopen=yes 10583else 10584 $as_echo "$as_me: failed program was:" >&5 10585sed 's/^/| /' conftest.$ac_ext >&5 10586 10587 ac_cv_func_dlopen=no 10588fi 10589 10590rm -rf conftest.dSYM 10591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10592 conftest$ac_exeext conftest.$ac_ext 10593fi 10594{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10595$as_echo "$ac_cv_func_dlopen" >&6; } 10596if test "x$ac_cv_func_dlopen" = x""yes; then 10597 lt_cv_dlopen="dlopen" 10598else 10599 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10600$as_echo_n "checking for dlopen in -ldl... " >&6; } 10601if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10602 $as_echo_n "(cached) " >&6 10603else 10604 ac_check_lib_save_LIBS=$LIBS 10605LIBS="-ldl $LIBS" 10606cat >conftest.$ac_ext <<_ACEOF 10607/* confdefs.h. */ 10608_ACEOF 10609cat confdefs.h >>conftest.$ac_ext 10610cat >>conftest.$ac_ext <<_ACEOF 10611/* end confdefs.h. */ 10612 10613/* Override any GCC internal prototype to avoid an error. 10614 Use char because int might match the return type of a GCC 10615 builtin and then its argument prototype would still apply. */ 10616#ifdef __cplusplus 10617extern "C" 10618#endif 10619char dlopen (); 10620int 10621main () 10622{ 10623return dlopen (); 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628rm -f conftest.$ac_objext conftest$ac_exeext 10629if { (ac_try="$ac_link" 10630case "(($ac_try" in 10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10632 *) ac_try_echo=$ac_try;; 10633esac 10634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10635$as_echo "$ac_try_echo") >&5 10636 (eval "$ac_link") 2>conftest.er1 10637 ac_status=$? 10638 grep -v '^ *+' conftest.er1 >conftest.err 10639 rm -f conftest.er1 10640 cat conftest.err >&5 10641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10642 (exit $ac_status); } && { 10643 test -z "$ac_c_werror_flag" || 10644 test ! -s conftest.err 10645 } && test -s conftest$ac_exeext && { 10646 test "$cross_compiling" = yes || 10647 $as_test_x conftest$ac_exeext 10648 }; then 10649 ac_cv_lib_dl_dlopen=yes 10650else 10651 $as_echo "$as_me: failed program was:" >&5 10652sed 's/^/| /' conftest.$ac_ext >&5 10653 10654 ac_cv_lib_dl_dlopen=no 10655fi 10656 10657rm -rf conftest.dSYM 10658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10659 conftest$ac_exeext conftest.$ac_ext 10660LIBS=$ac_check_lib_save_LIBS 10661fi 10662{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10663$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10664if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10666else 10667 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10668$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10669if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10670 $as_echo_n "(cached) " >&6 10671else 10672 ac_check_lib_save_LIBS=$LIBS 10673LIBS="-lsvld $LIBS" 10674cat >conftest.$ac_ext <<_ACEOF 10675/* confdefs.h. */ 10676_ACEOF 10677cat confdefs.h >>conftest.$ac_ext 10678cat >>conftest.$ac_ext <<_ACEOF 10679/* end confdefs.h. */ 10680 10681/* Override any GCC internal prototype to avoid an error. 10682 Use char because int might match the return type of a GCC 10683 builtin and then its argument prototype would still apply. */ 10684#ifdef __cplusplus 10685extern "C" 10686#endif 10687char dlopen (); 10688int 10689main () 10690{ 10691return dlopen (); 10692 ; 10693 return 0; 10694} 10695_ACEOF 10696rm -f conftest.$ac_objext conftest$ac_exeext 10697if { (ac_try="$ac_link" 10698case "(($ac_try" in 10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10700 *) ac_try_echo=$ac_try;; 10701esac 10702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10703$as_echo "$ac_try_echo") >&5 10704 (eval "$ac_link") 2>conftest.er1 10705 ac_status=$? 10706 grep -v '^ *+' conftest.er1 >conftest.err 10707 rm -f conftest.er1 10708 cat conftest.err >&5 10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10710 (exit $ac_status); } && { 10711 test -z "$ac_c_werror_flag" || 10712 test ! -s conftest.err 10713 } && test -s conftest$ac_exeext && { 10714 test "$cross_compiling" = yes || 10715 $as_test_x conftest$ac_exeext 10716 }; then 10717 ac_cv_lib_svld_dlopen=yes 10718else 10719 $as_echo "$as_me: failed program was:" >&5 10720sed 's/^/| /' conftest.$ac_ext >&5 10721 10722 ac_cv_lib_svld_dlopen=no 10723fi 10724 10725rm -rf conftest.dSYM 10726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10727 conftest$ac_exeext conftest.$ac_ext 10728LIBS=$ac_check_lib_save_LIBS 10729fi 10730{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10731$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10732if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10734else 10735 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10736$as_echo_n "checking for dld_link in -ldld... " >&6; } 10737if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10738 $as_echo_n "(cached) " >&6 10739else 10740 ac_check_lib_save_LIBS=$LIBS 10741LIBS="-ldld $LIBS" 10742cat >conftest.$ac_ext <<_ACEOF 10743/* confdefs.h. */ 10744_ACEOF 10745cat confdefs.h >>conftest.$ac_ext 10746cat >>conftest.$ac_ext <<_ACEOF 10747/* end confdefs.h. */ 10748 10749/* Override any GCC internal prototype to avoid an error. 10750 Use char because int might match the return type of a GCC 10751 builtin and then its argument prototype would still apply. */ 10752#ifdef __cplusplus 10753extern "C" 10754#endif 10755char dld_link (); 10756int 10757main () 10758{ 10759return dld_link (); 10760 ; 10761 return 0; 10762} 10763_ACEOF 10764rm -f conftest.$ac_objext conftest$ac_exeext 10765if { (ac_try="$ac_link" 10766case "(($ac_try" in 10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10768 *) ac_try_echo=$ac_try;; 10769esac 10770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10771$as_echo "$ac_try_echo") >&5 10772 (eval "$ac_link") 2>conftest.er1 10773 ac_status=$? 10774 grep -v '^ *+' conftest.er1 >conftest.err 10775 rm -f conftest.er1 10776 cat conftest.err >&5 10777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10778 (exit $ac_status); } && { 10779 test -z "$ac_c_werror_flag" || 10780 test ! -s conftest.err 10781 } && test -s conftest$ac_exeext && { 10782 test "$cross_compiling" = yes || 10783 $as_test_x conftest$ac_exeext 10784 }; then 10785 ac_cv_lib_dld_dld_link=yes 10786else 10787 $as_echo "$as_me: failed program was:" >&5 10788sed 's/^/| /' conftest.$ac_ext >&5 10789 10790 ac_cv_lib_dld_dld_link=no 10791fi 10792 10793rm -rf conftest.dSYM 10794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10795 conftest$ac_exeext conftest.$ac_ext 10796LIBS=$ac_check_lib_save_LIBS 10797fi 10798{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10799$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10800if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10801 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10802fi 10803 10804 10805fi 10806 10807 10808fi 10809 10810 10811fi 10812 10813 10814fi 10815 10816 10817fi 10818 10819 ;; 10820 esac 10821 10822 if test "x$lt_cv_dlopen" != xno; then 10823 enable_dlopen=yes 10824 else 10825 enable_dlopen=no 10826 fi 10827 10828 case $lt_cv_dlopen in 10829 dlopen) 10830 save_CPPFLAGS="$CPPFLAGS" 10831 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10832 10833 save_LDFLAGS="$LDFLAGS" 10834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10835 10836 save_LIBS="$LIBS" 10837 LIBS="$lt_cv_dlopen_libs $LIBS" 10838 10839 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10840$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10841if test "${lt_cv_dlopen_self+set}" = set; then 10842 $as_echo_n "(cached) " >&6 10843else 10844 if test "$cross_compiling" = yes; then : 10845 lt_cv_dlopen_self=cross 10846else 10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10848 lt_status=$lt_dlunknown 10849 cat > conftest.$ac_ext <<_LT_EOF 10850#line 10850 "configure" 10851#include "confdefs.h" 10852 10853#if HAVE_DLFCN_H 10854#include <dlfcn.h> 10855#endif 10856 10857#include <stdio.h> 10858 10859#ifdef RTLD_GLOBAL 10860# define LT_DLGLOBAL RTLD_GLOBAL 10861#else 10862# ifdef DL_GLOBAL 10863# define LT_DLGLOBAL DL_GLOBAL 10864# else 10865# define LT_DLGLOBAL 0 10866# endif 10867#endif 10868 10869/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10870 find out it does not work in some platform. */ 10871#ifndef LT_DLLAZY_OR_NOW 10872# ifdef RTLD_LAZY 10873# define LT_DLLAZY_OR_NOW RTLD_LAZY 10874# else 10875# ifdef DL_LAZY 10876# define LT_DLLAZY_OR_NOW DL_LAZY 10877# else 10878# ifdef RTLD_NOW 10879# define LT_DLLAZY_OR_NOW RTLD_NOW 10880# else 10881# ifdef DL_NOW 10882# define LT_DLLAZY_OR_NOW DL_NOW 10883# else 10884# define LT_DLLAZY_OR_NOW 0 10885# endif 10886# endif 10887# endif 10888# endif 10889#endif 10890 10891void fnord() { int i=42;} 10892int main () 10893{ 10894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10895 int status = $lt_dlunknown; 10896 10897 if (self) 10898 { 10899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10901 /* dlclose (self); */ 10902 } 10903 else 10904 puts (dlerror ()); 10905 10906 return status; 10907} 10908_LT_EOF 10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10910 (eval $ac_link) 2>&5 10911 ac_status=$? 10912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10914 (./conftest; exit; ) >&5 2>/dev/null 10915 lt_status=$? 10916 case x$lt_status in 10917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10919 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10920 esac 10921 else : 10922 # compilation failed 10923 lt_cv_dlopen_self=no 10924 fi 10925fi 10926rm -fr conftest* 10927 10928 10929fi 10930{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10931$as_echo "$lt_cv_dlopen_self" >&6; } 10932 10933 if test "x$lt_cv_dlopen_self" = xyes; then 10934 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10935 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10936$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10937if test "${lt_cv_dlopen_self_static+set}" = set; then 10938 $as_echo_n "(cached) " >&6 10939else 10940 if test "$cross_compiling" = yes; then : 10941 lt_cv_dlopen_self_static=cross 10942else 10943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10944 lt_status=$lt_dlunknown 10945 cat > conftest.$ac_ext <<_LT_EOF 10946#line 10946 "configure" 10947#include "confdefs.h" 10948 10949#if HAVE_DLFCN_H 10950#include <dlfcn.h> 10951#endif 10952 10953#include <stdio.h> 10954 10955#ifdef RTLD_GLOBAL 10956# define LT_DLGLOBAL RTLD_GLOBAL 10957#else 10958# ifdef DL_GLOBAL 10959# define LT_DLGLOBAL DL_GLOBAL 10960# else 10961# define LT_DLGLOBAL 0 10962# endif 10963#endif 10964 10965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10966 find out it does not work in some platform. */ 10967#ifndef LT_DLLAZY_OR_NOW 10968# ifdef RTLD_LAZY 10969# define LT_DLLAZY_OR_NOW RTLD_LAZY 10970# else 10971# ifdef DL_LAZY 10972# define LT_DLLAZY_OR_NOW DL_LAZY 10973# else 10974# ifdef RTLD_NOW 10975# define LT_DLLAZY_OR_NOW RTLD_NOW 10976# else 10977# ifdef DL_NOW 10978# define LT_DLLAZY_OR_NOW DL_NOW 10979# else 10980# define LT_DLLAZY_OR_NOW 0 10981# endif 10982# endif 10983# endif 10984# endif 10985#endif 10986 10987void fnord() { int i=42;} 10988int main () 10989{ 10990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10991 int status = $lt_dlunknown; 10992 10993 if (self) 10994 { 10995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10997 /* dlclose (self); */ 10998 } 10999 else 11000 puts (dlerror ()); 11001 11002 return status; 11003} 11004_LT_EOF 11005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11006 (eval $ac_link) 2>&5 11007 ac_status=$? 11008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11010 (./conftest; exit; ) >&5 2>/dev/null 11011 lt_status=$? 11012 case x$lt_status in 11013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11015 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11016 esac 11017 else : 11018 # compilation failed 11019 lt_cv_dlopen_self_static=no 11020 fi 11021fi 11022rm -fr conftest* 11023 11024 11025fi 11026{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11027$as_echo "$lt_cv_dlopen_self_static" >&6; } 11028 fi 11029 11030 CPPFLAGS="$save_CPPFLAGS" 11031 LDFLAGS="$save_LDFLAGS" 11032 LIBS="$save_LIBS" 11033 ;; 11034 esac 11035 11036 case $lt_cv_dlopen_self in 11037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11038 *) enable_dlopen_self=unknown ;; 11039 esac 11040 11041 case $lt_cv_dlopen_self_static in 11042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11043 *) enable_dlopen_self_static=unknown ;; 11044 esac 11045fi 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063striplib= 11064old_striplib= 11065{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11066$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11067if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11069 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11070 { $as_echo "$as_me:$LINENO: result: yes" >&5 11071$as_echo "yes" >&6; } 11072else 11073# FIXME - insert some real tests, host_os isn't really good enough 11074 case $host_os in 11075 darwin*) 11076 if test -n "$STRIP" ; then 11077 striplib="$STRIP -x" 11078 old_striplib="$STRIP -S" 11079 { $as_echo "$as_me:$LINENO: result: yes" >&5 11080$as_echo "yes" >&6; } 11081 else 11082 { $as_echo "$as_me:$LINENO: result: no" >&5 11083$as_echo "no" >&6; } 11084 fi 11085 ;; 11086 *) 11087 { $as_echo "$as_me:$LINENO: result: no" >&5 11088$as_echo "no" >&6; } 11089 ;; 11090 esac 11091fi 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 # Report which library types will actually be built 11105 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11106$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11107 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11108$as_echo "$can_build_shared" >&6; } 11109 11110 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11111$as_echo_n "checking whether to build shared libraries... " >&6; } 11112 test "$can_build_shared" = "no" && enable_shared=no 11113 11114 # On AIX, shared libraries and static libraries use the same namespace, and 11115 # are all built from PIC. 11116 case $host_os in 11117 aix3*) 11118 test "$enable_shared" = yes && enable_static=no 11119 if test -n "$RANLIB"; then 11120 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11121 postinstall_cmds='$RANLIB $lib' 11122 fi 11123 ;; 11124 11125 aix[4-9]*) 11126 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11127 test "$enable_shared" = yes && enable_static=no 11128 fi 11129 ;; 11130 esac 11131 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11132$as_echo "$enable_shared" >&6; } 11133 11134 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11135$as_echo_n "checking whether to build static libraries... " >&6; } 11136 # Make sure either enable_shared or enable_static is yes. 11137 test "$enable_shared" = yes || enable_static=yes 11138 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11139$as_echo "$enable_static" >&6; } 11140 11141 11142 11143 11144fi 11145ac_ext=c 11146ac_cpp='$CPP $CPPFLAGS' 11147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11149ac_compiler_gnu=$ac_cv_c_compiler_gnu 11150 11151CC="$lt_save_CC" 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 ac_config_commands="$ac_config_commands libtool" 11166 11167 11168 11169 11170# Only expand once: 11171 11172 11173 11174 11175# dolt, a replacement for libtool 11176# Josh Triplett <josh@freedesktop.org> 11177# Extract the first word of "bash", so it can be a program name with args. 11178set dummy bash; ac_word=$2 11179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11180$as_echo_n "checking for $ac_word... " >&6; } 11181if test "${ac_cv_path_DOLT_BASH+set}" = set; then 11182 $as_echo_n "(cached) " >&6 11183else 11184 case $DOLT_BASH in 11185 [\\/]* | ?:[\\/]*) 11186 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path. 11187 ;; 11188 *) 11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11190for as_dir in $PATH 11191do 11192 IFS=$as_save_IFS 11193 test -z "$as_dir" && as_dir=. 11194 for ac_exec_ext in '' $ac_executable_extensions; do 11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11196 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext" 11197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11198 break 2 11199 fi 11200done 11201done 11202IFS=$as_save_IFS 11203 11204 ;; 11205esac 11206fi 11207DOLT_BASH=$ac_cv_path_DOLT_BASH 11208if test -n "$DOLT_BASH"; then 11209 { $as_echo "$as_me:$LINENO: result: $DOLT_BASH" >&5 11210$as_echo "$DOLT_BASH" >&6; } 11211else 11212 { $as_echo "$as_me:$LINENO: result: no" >&5 11213$as_echo "no" >&6; } 11214fi 11215 11216 11217{ $as_echo "$as_me:$LINENO: checking if libtool sucks" >&5 11218$as_echo_n "checking if libtool sucks... " >&6; } 11219{ $as_echo "$as_me:$LINENO: result: yup, it does" >&5 11220$as_echo "yup, it does" >&6; } 11221{ $as_echo "$as_me:$LINENO: checking if dolt supports this host" >&5 11222$as_echo_n "checking if dolt supports this host... " >&6; } 11223dolt_supported=yes 11224if test x$DOLT_BASH = x; then 11225 dolt_supported=no 11226fi 11227if test x$GCC != xyes; then 11228 dolt_supported=no 11229fi 11230case $host in 11231i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*) ;; 11232amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;; 11233*) dolt_supported=no ;; 11234esac 11235if test x$dolt_supported = xno ; then 11236 { $as_echo "$as_me:$LINENO: result: no, falling back to libtool" >&5 11237$as_echo "no, falling back to libtool" >&6; } 11238 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)' 11239 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)' 11240else 11241 { $as_echo "$as_me:$LINENO: result: yes, replacing libtool" >&5 11242$as_echo "yes, replacing libtool" >&6; } 11243 11244 cat <<__DOLTCOMPILE__EOF__ >doltcompile 11245#!$DOLT_BASH 11246__DOLTCOMPILE__EOF__ 11247 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11248args=("$@") 11249for ((arg=0; arg<${#args[@]}; arg++)) ; do 11250 if test x"${args[$arg]}" = x-o ; then 11251 objarg=$((arg+1)) 11252 break 11253 fi 11254done 11255if test x$objarg = x ; then 11256 echo 'Error: no -o on compiler command line' 1>&2 11257 exit 1 11258fi 11259lo="${args[$objarg]}" 11260obj="${lo%.lo}" 11261if test x"$lo" = x"$obj" ; then 11262 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2 11263 exit 1 11264fi 11265objbase="${obj##*/}" 11266__DOLTCOMPILE__EOF__ 11267 11268 if test x$enable_shared = xyes; then 11269 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11270libobjdir="${obj%$objbase}.libs" 11271if test ! -d "$libobjdir" ; then 11272 mkdir_out="$(mkdir "$libobjdir" 2>&1)" 11273 mkdir_ret=$? 11274 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then 11275 echo "$mkdir_out" 1>&2 11276 exit $mkdir_ret 11277 fi 11278fi 11279pic_object="$libobjdir/$objbase.o" 11280args[$objarg]="$pic_object" 11281"${args[@]}" -fPIC -DPIC || exit $? 11282__DOLTCOMPILE__EOF__ 11283 fi 11284 11285 if test x$enable_static = xyes; then 11286 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11287non_pic_object="$obj.o" 11288args[$objarg]="$non_pic_object" 11289__DOLTCOMPILE__EOF__ 11290 if test x$enable_shared = xyes; then 11291 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11292"${args[@]}" >/dev/null 2>&1 || exit $? 11293__DOLTCOMPILE__EOF__ 11294 else 11295 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11296"${args[@]}" || exit $? 11297__DOLTCOMPILE__EOF__ 11298 fi 11299 fi 11300 11301 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11302{ 11303echo "# $lo - a libtool object file" 11304echo "# Generated by doltcompile, not libtool" 11305__DOLTCOMPILE__EOF__ 11306 11307 if test x$enable_shared = xyes; then 11308 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11309echo "pic_object='$pic_object'" 11310__DOLTCOMPILE__EOF__ 11311 else 11312 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11313echo pic_object=none 11314__DOLTCOMPILE__EOF__ 11315 fi 11316 11317 if test x$enable_static = xyes; then 11318 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11319echo "non_pic_object='$non_pic_object'" 11320__DOLTCOMPILE__EOF__ 11321 else 11322 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11323echo non_pic_object=none 11324__DOLTCOMPILE__EOF__ 11325 fi 11326 11327 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11328} > "$lo" 11329__DOLTCOMPILE__EOF__ 11330 11331 chmod +x doltcompile 11332 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' 11333 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' 11334fi 11335 11336 11337# end dolt 11338 11339ac_ext=c 11340ac_cpp='$CPP $CPPFLAGS' 11341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11343ac_compiler_gnu=$ac_cv_c_compiler_gnu 11344if test -n "$ac_tool_prefix"; then 11345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11346set dummy ${ac_tool_prefix}gcc; ac_word=$2 11347{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11348$as_echo_n "checking for $ac_word... " >&6; } 11349if test "${ac_cv_prog_CC+set}" = set; then 11350 $as_echo_n "(cached) " >&6 11351else 11352 if test -n "$CC"; then 11353 ac_cv_prog_CC="$CC" # Let the user override the test. 11354else 11355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11356for as_dir in $PATH 11357do 11358 IFS=$as_save_IFS 11359 test -z "$as_dir" && as_dir=. 11360 for ac_exec_ext in '' $ac_executable_extensions; do 11361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11362 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11364 break 2 11365 fi 11366done 11367done 11368IFS=$as_save_IFS 11369 11370fi 11371fi 11372CC=$ac_cv_prog_CC 11373if test -n "$CC"; then 11374 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11375$as_echo "$CC" >&6; } 11376else 11377 { $as_echo "$as_me:$LINENO: result: no" >&5 11378$as_echo "no" >&6; } 11379fi 11380 11381 11382fi 11383if test -z "$ac_cv_prog_CC"; then 11384 ac_ct_CC=$CC 11385 # Extract the first word of "gcc", so it can be a program name with args. 11386set dummy gcc; ac_word=$2 11387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11388$as_echo_n "checking for $ac_word... " >&6; } 11389if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11390 $as_echo_n "(cached) " >&6 11391else 11392 if test -n "$ac_ct_CC"; then 11393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11394else 11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11396for as_dir in $PATH 11397do 11398 IFS=$as_save_IFS 11399 test -z "$as_dir" && as_dir=. 11400 for ac_exec_ext in '' $ac_executable_extensions; do 11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11402 ac_cv_prog_ac_ct_CC="gcc" 11403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11404 break 2 11405 fi 11406done 11407done 11408IFS=$as_save_IFS 11409 11410fi 11411fi 11412ac_ct_CC=$ac_cv_prog_ac_ct_CC 11413if test -n "$ac_ct_CC"; then 11414 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11415$as_echo "$ac_ct_CC" >&6; } 11416else 11417 { $as_echo "$as_me:$LINENO: result: no" >&5 11418$as_echo "no" >&6; } 11419fi 11420 11421 if test "x$ac_ct_CC" = x; then 11422 CC="" 11423 else 11424 case $cross_compiling:$ac_tool_warned in 11425yes:) 11426{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11428ac_tool_warned=yes ;; 11429esac 11430 CC=$ac_ct_CC 11431 fi 11432else 11433 CC="$ac_cv_prog_CC" 11434fi 11435 11436if test -z "$CC"; then 11437 if test -n "$ac_tool_prefix"; then 11438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11439set dummy ${ac_tool_prefix}cc; ac_word=$2 11440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11441$as_echo_n "checking for $ac_word... " >&6; } 11442if test "${ac_cv_prog_CC+set}" = set; then 11443 $as_echo_n "(cached) " >&6 11444else 11445 if test -n "$CC"; then 11446 ac_cv_prog_CC="$CC" # Let the user override the test. 11447else 11448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11449for as_dir in $PATH 11450do 11451 IFS=$as_save_IFS 11452 test -z "$as_dir" && as_dir=. 11453 for ac_exec_ext in '' $ac_executable_extensions; do 11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11455 ac_cv_prog_CC="${ac_tool_prefix}cc" 11456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11457 break 2 11458 fi 11459done 11460done 11461IFS=$as_save_IFS 11462 11463fi 11464fi 11465CC=$ac_cv_prog_CC 11466if test -n "$CC"; then 11467 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11468$as_echo "$CC" >&6; } 11469else 11470 { $as_echo "$as_me:$LINENO: result: no" >&5 11471$as_echo "no" >&6; } 11472fi 11473 11474 11475 fi 11476fi 11477if test -z "$CC"; then 11478 # Extract the first word of "cc", so it can be a program name with args. 11479set dummy cc; ac_word=$2 11480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11481$as_echo_n "checking for $ac_word... " >&6; } 11482if test "${ac_cv_prog_CC+set}" = set; then 11483 $as_echo_n "(cached) " >&6 11484else 11485 if test -n "$CC"; then 11486 ac_cv_prog_CC="$CC" # Let the user override the test. 11487else 11488 ac_prog_rejected=no 11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11490for as_dir in $PATH 11491do 11492 IFS=$as_save_IFS 11493 test -z "$as_dir" && as_dir=. 11494 for ac_exec_ext in '' $ac_executable_extensions; do 11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11497 ac_prog_rejected=yes 11498 continue 11499 fi 11500 ac_cv_prog_CC="cc" 11501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11502 break 2 11503 fi 11504done 11505done 11506IFS=$as_save_IFS 11507 11508if test $ac_prog_rejected = yes; then 11509 # We found a bogon in the path, so make sure we never use it. 11510 set dummy $ac_cv_prog_CC 11511 shift 11512 if test $# != 0; then 11513 # We chose a different compiler from the bogus one. 11514 # However, it has the same basename, so the bogon will be chosen 11515 # first if we set CC to just the basename; use the full file name. 11516 shift 11517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11518 fi 11519fi 11520fi 11521fi 11522CC=$ac_cv_prog_CC 11523if test -n "$CC"; then 11524 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11525$as_echo "$CC" >&6; } 11526else 11527 { $as_echo "$as_me:$LINENO: result: no" >&5 11528$as_echo "no" >&6; } 11529fi 11530 11531 11532fi 11533if test -z "$CC"; then 11534 if test -n "$ac_tool_prefix"; then 11535 for ac_prog in cl.exe 11536 do 11537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11538set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11540$as_echo_n "checking for $ac_word... " >&6; } 11541if test "${ac_cv_prog_CC+set}" = set; then 11542 $as_echo_n "(cached) " >&6 11543else 11544 if test -n "$CC"; then 11545 ac_cv_prog_CC="$CC" # Let the user override the test. 11546else 11547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11548for as_dir in $PATH 11549do 11550 IFS=$as_save_IFS 11551 test -z "$as_dir" && as_dir=. 11552 for ac_exec_ext in '' $ac_executable_extensions; do 11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11556 break 2 11557 fi 11558done 11559done 11560IFS=$as_save_IFS 11561 11562fi 11563fi 11564CC=$ac_cv_prog_CC 11565if test -n "$CC"; then 11566 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11567$as_echo "$CC" >&6; } 11568else 11569 { $as_echo "$as_me:$LINENO: result: no" >&5 11570$as_echo "no" >&6; } 11571fi 11572 11573 11574 test -n "$CC" && break 11575 done 11576fi 11577if test -z "$CC"; then 11578 ac_ct_CC=$CC 11579 for ac_prog in cl.exe 11580do 11581 # Extract the first word of "$ac_prog", so it can be a program name with args. 11582set dummy $ac_prog; ac_word=$2 11583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11584$as_echo_n "checking for $ac_word... " >&6; } 11585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11586 $as_echo_n "(cached) " >&6 11587else 11588 if test -n "$ac_ct_CC"; then 11589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11590else 11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11592for as_dir in $PATH 11593do 11594 IFS=$as_save_IFS 11595 test -z "$as_dir" && as_dir=. 11596 for ac_exec_ext in '' $ac_executable_extensions; do 11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11598 ac_cv_prog_ac_ct_CC="$ac_prog" 11599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11600 break 2 11601 fi 11602done 11603done 11604IFS=$as_save_IFS 11605 11606fi 11607fi 11608ac_ct_CC=$ac_cv_prog_ac_ct_CC 11609if test -n "$ac_ct_CC"; then 11610 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11611$as_echo "$ac_ct_CC" >&6; } 11612else 11613 { $as_echo "$as_me:$LINENO: result: no" >&5 11614$as_echo "no" >&6; } 11615fi 11616 11617 11618 test -n "$ac_ct_CC" && break 11619done 11620 11621 if test "x$ac_ct_CC" = x; then 11622 CC="" 11623 else 11624 case $cross_compiling:$ac_tool_warned in 11625yes:) 11626{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11628ac_tool_warned=yes ;; 11629esac 11630 CC=$ac_ct_CC 11631 fi 11632fi 11633 11634fi 11635 11636 11637test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11639{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11640See \`config.log' for more details." >&5 11641$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11642See \`config.log' for more details." >&2;} 11643 { (exit 1); exit 1; }; }; } 11644 11645# Provide some information about the compiler. 11646$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11647set X $ac_compile 11648ac_compiler=$2 11649{ (ac_try="$ac_compiler --version >&5" 11650case "(($ac_try" in 11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11652 *) ac_try_echo=$ac_try;; 11653esac 11654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11655$as_echo "$ac_try_echo") >&5 11656 (eval "$ac_compiler --version >&5") 2>&5 11657 ac_status=$? 11658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11659 (exit $ac_status); } 11660{ (ac_try="$ac_compiler -v >&5" 11661case "(($ac_try" in 11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11663 *) ac_try_echo=$ac_try;; 11664esac 11665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11666$as_echo "$ac_try_echo") >&5 11667 (eval "$ac_compiler -v >&5") 2>&5 11668 ac_status=$? 11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11670 (exit $ac_status); } 11671{ (ac_try="$ac_compiler -V >&5" 11672case "(($ac_try" in 11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11674 *) ac_try_echo=$ac_try;; 11675esac 11676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11677$as_echo "$ac_try_echo") >&5 11678 (eval "$ac_compiler -V >&5") 2>&5 11679 ac_status=$? 11680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11681 (exit $ac_status); } 11682 11683{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11684$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11685if test "${ac_cv_c_compiler_gnu+set}" = set; then 11686 $as_echo_n "(cached) " >&6 11687else 11688 cat >conftest.$ac_ext <<_ACEOF 11689/* confdefs.h. */ 11690_ACEOF 11691cat confdefs.h >>conftest.$ac_ext 11692cat >>conftest.$ac_ext <<_ACEOF 11693/* end confdefs.h. */ 11694 11695int 11696main () 11697{ 11698#ifndef __GNUC__ 11699 choke me 11700#endif 11701 11702 ; 11703 return 0; 11704} 11705_ACEOF 11706rm -f conftest.$ac_objext 11707if { (ac_try="$ac_compile" 11708case "(($ac_try" in 11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11710 *) ac_try_echo=$ac_try;; 11711esac 11712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11713$as_echo "$ac_try_echo") >&5 11714 (eval "$ac_compile") 2>conftest.er1 11715 ac_status=$? 11716 grep -v '^ *+' conftest.er1 >conftest.err 11717 rm -f conftest.er1 11718 cat conftest.err >&5 11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11720 (exit $ac_status); } && { 11721 test -z "$ac_c_werror_flag" || 11722 test ! -s conftest.err 11723 } && test -s conftest.$ac_objext; then 11724 ac_compiler_gnu=yes 11725else 11726 $as_echo "$as_me: failed program was:" >&5 11727sed 's/^/| /' conftest.$ac_ext >&5 11728 11729 ac_compiler_gnu=no 11730fi 11731 11732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11733ac_cv_c_compiler_gnu=$ac_compiler_gnu 11734 11735fi 11736{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11737$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11738if test $ac_compiler_gnu = yes; then 11739 GCC=yes 11740else 11741 GCC= 11742fi 11743ac_test_CFLAGS=${CFLAGS+set} 11744ac_save_CFLAGS=$CFLAGS 11745{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11746$as_echo_n "checking whether $CC accepts -g... " >&6; } 11747if test "${ac_cv_prog_cc_g+set}" = set; then 11748 $as_echo_n "(cached) " >&6 11749else 11750 ac_save_c_werror_flag=$ac_c_werror_flag 11751 ac_c_werror_flag=yes 11752 ac_cv_prog_cc_g=no 11753 CFLAGS="-g" 11754 cat >conftest.$ac_ext <<_ACEOF 11755/* confdefs.h. */ 11756_ACEOF 11757cat confdefs.h >>conftest.$ac_ext 11758cat >>conftest.$ac_ext <<_ACEOF 11759/* end confdefs.h. */ 11760 11761int 11762main () 11763{ 11764 11765 ; 11766 return 0; 11767} 11768_ACEOF 11769rm -f conftest.$ac_objext 11770if { (ac_try="$ac_compile" 11771case "(($ac_try" in 11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11773 *) ac_try_echo=$ac_try;; 11774esac 11775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11776$as_echo "$ac_try_echo") >&5 11777 (eval "$ac_compile") 2>conftest.er1 11778 ac_status=$? 11779 grep -v '^ *+' conftest.er1 >conftest.err 11780 rm -f conftest.er1 11781 cat conftest.err >&5 11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11783 (exit $ac_status); } && { 11784 test -z "$ac_c_werror_flag" || 11785 test ! -s conftest.err 11786 } && test -s conftest.$ac_objext; then 11787 ac_cv_prog_cc_g=yes 11788else 11789 $as_echo "$as_me: failed program was:" >&5 11790sed 's/^/| /' conftest.$ac_ext >&5 11791 11792 CFLAGS="" 11793 cat >conftest.$ac_ext <<_ACEOF 11794/* confdefs.h. */ 11795_ACEOF 11796cat confdefs.h >>conftest.$ac_ext 11797cat >>conftest.$ac_ext <<_ACEOF 11798/* end confdefs.h. */ 11799 11800int 11801main () 11802{ 11803 11804 ; 11805 return 0; 11806} 11807_ACEOF 11808rm -f conftest.$ac_objext 11809if { (ac_try="$ac_compile" 11810case "(($ac_try" in 11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11812 *) ac_try_echo=$ac_try;; 11813esac 11814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11815$as_echo "$ac_try_echo") >&5 11816 (eval "$ac_compile") 2>conftest.er1 11817 ac_status=$? 11818 grep -v '^ *+' conftest.er1 >conftest.err 11819 rm -f conftest.er1 11820 cat conftest.err >&5 11821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11822 (exit $ac_status); } && { 11823 test -z "$ac_c_werror_flag" || 11824 test ! -s conftest.err 11825 } && test -s conftest.$ac_objext; then 11826 : 11827else 11828 $as_echo "$as_me: failed program was:" >&5 11829sed 's/^/| /' conftest.$ac_ext >&5 11830 11831 ac_c_werror_flag=$ac_save_c_werror_flag 11832 CFLAGS="-g" 11833 cat >conftest.$ac_ext <<_ACEOF 11834/* confdefs.h. */ 11835_ACEOF 11836cat confdefs.h >>conftest.$ac_ext 11837cat >>conftest.$ac_ext <<_ACEOF 11838/* end confdefs.h. */ 11839 11840int 11841main () 11842{ 11843 11844 ; 11845 return 0; 11846} 11847_ACEOF 11848rm -f conftest.$ac_objext 11849if { (ac_try="$ac_compile" 11850case "(($ac_try" in 11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11852 *) ac_try_echo=$ac_try;; 11853esac 11854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11855$as_echo "$ac_try_echo") >&5 11856 (eval "$ac_compile") 2>conftest.er1 11857 ac_status=$? 11858 grep -v '^ *+' conftest.er1 >conftest.err 11859 rm -f conftest.er1 11860 cat conftest.err >&5 11861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11862 (exit $ac_status); } && { 11863 test -z "$ac_c_werror_flag" || 11864 test ! -s conftest.err 11865 } && test -s conftest.$ac_objext; then 11866 ac_cv_prog_cc_g=yes 11867else 11868 $as_echo "$as_me: failed program was:" >&5 11869sed 's/^/| /' conftest.$ac_ext >&5 11870 11871 11872fi 11873 11874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11875fi 11876 11877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11878fi 11879 11880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11881 ac_c_werror_flag=$ac_save_c_werror_flag 11882fi 11883{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11884$as_echo "$ac_cv_prog_cc_g" >&6; } 11885if test "$ac_test_CFLAGS" = set; then 11886 CFLAGS=$ac_save_CFLAGS 11887elif test $ac_cv_prog_cc_g = yes; then 11888 if test "$GCC" = yes; then 11889 CFLAGS="-g -O2" 11890 else 11891 CFLAGS="-g" 11892 fi 11893else 11894 if test "$GCC" = yes; then 11895 CFLAGS="-O2" 11896 else 11897 CFLAGS= 11898 fi 11899fi 11900{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11902if test "${ac_cv_prog_cc_c89+set}" = set; then 11903 $as_echo_n "(cached) " >&6 11904else 11905 ac_cv_prog_cc_c89=no 11906ac_save_CC=$CC 11907cat >conftest.$ac_ext <<_ACEOF 11908/* confdefs.h. */ 11909_ACEOF 11910cat confdefs.h >>conftest.$ac_ext 11911cat >>conftest.$ac_ext <<_ACEOF 11912/* end confdefs.h. */ 11913#include <stdarg.h> 11914#include <stdio.h> 11915#include <sys/types.h> 11916#include <sys/stat.h> 11917/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11918struct buf { int x; }; 11919FILE * (*rcsopen) (struct buf *, struct stat *, int); 11920static char *e (p, i) 11921 char **p; 11922 int i; 11923{ 11924 return p[i]; 11925} 11926static char *f (char * (*g) (char **, int), char **p, ...) 11927{ 11928 char *s; 11929 va_list v; 11930 va_start (v,p); 11931 s = g (p, va_arg (v,int)); 11932 va_end (v); 11933 return s; 11934} 11935 11936/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11937 function prototypes and stuff, but not '\xHH' hex character constants. 11938 These don't provoke an error unfortunately, instead are silently treated 11939 as 'x'. The following induces an error, until -std is added to get 11940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11941 array size at least. It's necessary to write '\x00'==0 to get something 11942 that's true only with -std. */ 11943int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11944 11945/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11946 inside strings and character constants. */ 11947#define FOO(x) 'x' 11948int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11949 11950int test (int i, double x); 11951struct s1 {int (*f) (int a);}; 11952struct s2 {int (*f) (double a);}; 11953int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11954int argc; 11955char **argv; 11956int 11957main () 11958{ 11959return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11960 ; 11961 return 0; 11962} 11963_ACEOF 11964for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11966do 11967 CC="$ac_save_CC $ac_arg" 11968 rm -f conftest.$ac_objext 11969if { (ac_try="$ac_compile" 11970case "(($ac_try" in 11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11972 *) ac_try_echo=$ac_try;; 11973esac 11974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11975$as_echo "$ac_try_echo") >&5 11976 (eval "$ac_compile") 2>conftest.er1 11977 ac_status=$? 11978 grep -v '^ *+' conftest.er1 >conftest.err 11979 rm -f conftest.er1 11980 cat conftest.err >&5 11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); } && { 11983 test -z "$ac_c_werror_flag" || 11984 test ! -s conftest.err 11985 } && test -s conftest.$ac_objext; then 11986 ac_cv_prog_cc_c89=$ac_arg 11987else 11988 $as_echo "$as_me: failed program was:" >&5 11989sed 's/^/| /' conftest.$ac_ext >&5 11990 11991 11992fi 11993 11994rm -f core conftest.err conftest.$ac_objext 11995 test "x$ac_cv_prog_cc_c89" != "xno" && break 11996done 11997rm -f conftest.$ac_ext 11998CC=$ac_save_CC 11999 12000fi 12001# AC_CACHE_VAL 12002case "x$ac_cv_prog_cc_c89" in 12003 x) 12004 { $as_echo "$as_me:$LINENO: result: none needed" >&5 12005$as_echo "none needed" >&6; } ;; 12006 xno) 12007 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 12008$as_echo "unsupported" >&6; } ;; 12009 *) 12010 CC="$CC $ac_cv_prog_cc_c89" 12011 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 12012$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12013esac 12014 12015 12016ac_ext=c 12017ac_cpp='$CPP $CPPFLAGS' 12018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12020ac_compiler_gnu=$ac_cv_c_compiler_gnu 12021 12022depcc="$CC" am_compiler_list= 12023 12024{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 12025$as_echo_n "checking dependency style of $depcc... " >&6; } 12026if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 12027 $as_echo_n "(cached) " >&6 12028else 12029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12030 # We make a subdir and do the tests there. Otherwise we can end up 12031 # making bogus files that we don't know about and never remove. For 12032 # instance it was reported that on HP-UX the gcc test will end up 12033 # making a dummy file named `D' -- because `-MD' means `put the output 12034 # in D'. 12035 mkdir conftest.dir 12036 # Copy depcomp to subdir because otherwise we won't find it if we're 12037 # using a relative directory. 12038 cp "$am_depcomp" conftest.dir 12039 cd conftest.dir 12040 # We will build objects and dependencies in a subdirectory because 12041 # it helps to detect inapplicable dependency modes. For instance 12042 # both Tru64's cc and ICC support -MD to output dependencies as a 12043 # side effect of compilation, but ICC will put the dependencies in 12044 # the current directory while Tru64 will put them in the object 12045 # directory. 12046 mkdir sub 12047 12048 am_cv_CC_dependencies_compiler_type=none 12049 if test "$am_compiler_list" = ""; then 12050 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12051 fi 12052 for depmode in $am_compiler_list; do 12053 # Setup a source with many dependencies, because some compilers 12054 # like to wrap large dependency lists on column 80 (with \), and 12055 # we should not choose a depcomp mode which is confused by this. 12056 # 12057 # We need to recreate these files for each test, as the compiler may 12058 # overwrite some of them when testing with obscure command lines. 12059 # This happens at least with the AIX C compiler. 12060 : > sub/conftest.c 12061 for i in 1 2 3 4 5 6; do 12062 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12064 # Solaris 8's {/usr,}/bin/sh. 12065 touch sub/conftst$i.h 12066 done 12067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12068 12069 case $depmode in 12070 nosideeffect) 12071 # after this tag, mechanisms are not by side-effect, so they'll 12072 # only be used when explicitly requested 12073 if test "x$enable_dependency_tracking" = xyes; then 12074 continue 12075 else 12076 break 12077 fi 12078 ;; 12079 none) break ;; 12080 esac 12081 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12082 # mode. It turns out that the SunPro C++ compiler does not properly 12083 # handle `-M -o', and we need to detect this. 12084 if depmode=$depmode \ 12085 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 12086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12087 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 12088 >/dev/null 2>conftest.err && 12089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12091 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 12092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12093 # icc doesn't choke on unknown options, it will just issue warnings 12094 # or remarks (even with -Werror). So we grep stderr for any message 12095 # that says an option was ignored or not supported. 12096 # When given -MP, icc 7.0 and 7.1 complain thusly: 12097 # icc: Command line warning: ignoring option '-M'; no argument required 12098 # The diagnosis changed in icc 8.0: 12099 # icc: Command line remark: option '-MP' not supported 12100 if (grep 'ignoring option' conftest.err || 12101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12102 am_cv_CC_dependencies_compiler_type=$depmode 12103 break 12104 fi 12105 fi 12106 done 12107 12108 cd .. 12109 rm -rf conftest.dir 12110else 12111 am_cv_CC_dependencies_compiler_type=none 12112fi 12113 12114fi 12115{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 12116$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12117CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12118 12119 if 12120 test "x$enable_dependency_tracking" != xno \ 12121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12122 am__fastdepCC_TRUE= 12123 am__fastdepCC_FALSE='#' 12124else 12125 am__fastdepCC_TRUE='#' 12126 am__fastdepCC_FALSE= 12127fi 12128 12129 12130if test "x$CC" != xcc; then 12131 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 12132$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 12133else 12134 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 12135$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 12136fi 12137set dummy $CC; ac_cc=`$as_echo "$2" | 12138 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12139if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 12140 $as_echo_n "(cached) " >&6 12141else 12142 cat >conftest.$ac_ext <<_ACEOF 12143/* confdefs.h. */ 12144_ACEOF 12145cat confdefs.h >>conftest.$ac_ext 12146cat >>conftest.$ac_ext <<_ACEOF 12147/* end confdefs.h. */ 12148 12149int 12150main () 12151{ 12152 12153 ; 12154 return 0; 12155} 12156_ACEOF 12157# Make sure it works both with $CC and with simple cc. 12158# We do the test twice because some compilers refuse to overwrite an 12159# existing .o file with -o, though they will create one. 12160ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 12161rm -f conftest2.* 12162if { (case "(($ac_try" in 12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12164 *) ac_try_echo=$ac_try;; 12165esac 12166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12167$as_echo "$ac_try_echo") >&5 12168 (eval "$ac_try") 2>&5 12169 ac_status=$? 12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12171 (exit $ac_status); } && 12172 test -f conftest2.$ac_objext && { (case "(($ac_try" in 12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12174 *) ac_try_echo=$ac_try;; 12175esac 12176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12177$as_echo "$ac_try_echo") >&5 12178 (eval "$ac_try") 2>&5 12179 ac_status=$? 12180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12181 (exit $ac_status); }; 12182then 12183 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 12184 if test "x$CC" != xcc; then 12185 # Test first that cc exists at all. 12186 if { ac_try='cc -c conftest.$ac_ext >&5' 12187 { (case "(($ac_try" in 12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12189 *) ac_try_echo=$ac_try;; 12190esac 12191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12192$as_echo "$ac_try_echo") >&5 12193 (eval "$ac_try") 2>&5 12194 ac_status=$? 12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12196 (exit $ac_status); }; }; then 12197 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 12198 rm -f conftest2.* 12199 if { (case "(($ac_try" in 12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12201 *) ac_try_echo=$ac_try;; 12202esac 12203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12204$as_echo "$ac_try_echo") >&5 12205 (eval "$ac_try") 2>&5 12206 ac_status=$? 12207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12208 (exit $ac_status); } && 12209 test -f conftest2.$ac_objext && { (case "(($ac_try" in 12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12211 *) ac_try_echo=$ac_try;; 12212esac 12213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12214$as_echo "$ac_try_echo") >&5 12215 (eval "$ac_try") 2>&5 12216 ac_status=$? 12217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); }; 12219 then 12220 # cc works too. 12221 : 12222 else 12223 # cc exists but doesn't like -o. 12224 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12225 fi 12226 fi 12227 fi 12228else 12229 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12230fi 12231rm -f core conftest* 12232 12233fi 12234if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 12235 { $as_echo "$as_me:$LINENO: result: yes" >&5 12236$as_echo "yes" >&6; } 12237else 12238 { $as_echo "$as_me:$LINENO: result: no" >&5 12239$as_echo "no" >&6; } 12240 12241cat >>confdefs.h <<\_ACEOF 12242#define NO_MINUS_C_MINUS_O 1 12243_ACEOF 12244 12245fi 12246 12247# FIXME: we rely on the cache variable name because 12248# there is no other way. 12249set dummy $CC 12250am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12251eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 12252if test "$am_t" != yes; then 12253 # Losing compiler, so override with the script. 12254 # FIXME: It is wrong to rewrite CC. 12255 # But if we don't then we get into trouble of one sort or another. 12256 # A longer-term fix would be to have automake use am__CC in this case, 12257 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12258 CC="$am_aux_dir/compile $CC" 12259fi 12260 12261 12262 12263# Extract the first word of "intel-gen4asm", so it can be a program name with args. 12264set dummy intel-gen4asm; ac_word=$2 12265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12266$as_echo_n "checking for $ac_word... " >&6; } 12267if test "${ac_cv_prog_gen4asm+set}" = set; then 12268 $as_echo_n "(cached) " >&6 12269else 12270 if test -n "$gen4asm"; then 12271 ac_cv_prog_gen4asm="$gen4asm" # Let the user override the test. 12272else 12273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12274for as_dir in $PATH 12275do 12276 IFS=$as_save_IFS 12277 test -z "$as_dir" && as_dir=. 12278 for ac_exec_ext in '' $ac_executable_extensions; do 12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12280 ac_cv_prog_gen4asm="yes" 12281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12282 break 2 12283 fi 12284done 12285done 12286IFS=$as_save_IFS 12287 12288 test -z "$ac_cv_prog_gen4asm" && ac_cv_prog_gen4asm="no" 12289fi 12290fi 12291gen4asm=$ac_cv_prog_gen4asm 12292if test -n "$gen4asm"; then 12293 { $as_echo "$as_me:$LINENO: result: $gen4asm" >&5 12294$as_echo "$gen4asm" >&6; } 12295else 12296 { $as_echo "$as_me:$LINENO: result: no" >&5 12297$as_echo "no" >&6; } 12298fi 12299 12300 12301 if test x$gen4asm = xyes; then 12302 HAVE_GEN4ASM_TRUE= 12303 HAVE_GEN4ASM_FALSE='#' 12304else 12305 HAVE_GEN4ASM_TRUE='#' 12306 HAVE_GEN4ASM_FALSE= 12307fi 12308 12309 12310 12311for ac_header in sys/mman.h 12312do 12313as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12316$as_echo_n "checking for $ac_header... " >&6; } 12317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12318 $as_echo_n "(cached) " >&6 12319fi 12320ac_res=`eval 'as_val=${'$as_ac_Header'} 12321 $as_echo "$as_val"'` 12322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12323$as_echo "$ac_res" >&6; } 12324else 12325 # Is the header compilable? 12326{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12327$as_echo_n "checking $ac_header usability... " >&6; } 12328cat >conftest.$ac_ext <<_ACEOF 12329/* confdefs.h. */ 12330_ACEOF 12331cat confdefs.h >>conftest.$ac_ext 12332cat >>conftest.$ac_ext <<_ACEOF 12333/* end confdefs.h. */ 12334$ac_includes_default 12335#include <$ac_header> 12336_ACEOF 12337rm -f conftest.$ac_objext 12338if { (ac_try="$ac_compile" 12339case "(($ac_try" in 12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12341 *) ac_try_echo=$ac_try;; 12342esac 12343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12344$as_echo "$ac_try_echo") >&5 12345 (eval "$ac_compile") 2>conftest.er1 12346 ac_status=$? 12347 grep -v '^ *+' conftest.er1 >conftest.err 12348 rm -f conftest.er1 12349 cat conftest.err >&5 12350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12351 (exit $ac_status); } && { 12352 test -z "$ac_c_werror_flag" || 12353 test ! -s conftest.err 12354 } && test -s conftest.$ac_objext; then 12355 ac_header_compiler=yes 12356else 12357 $as_echo "$as_me: failed program was:" >&5 12358sed 's/^/| /' conftest.$ac_ext >&5 12359 12360 ac_header_compiler=no 12361fi 12362 12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12364{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12365$as_echo "$ac_header_compiler" >&6; } 12366 12367# Is the header present? 12368{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12369$as_echo_n "checking $ac_header presence... " >&6; } 12370cat >conftest.$ac_ext <<_ACEOF 12371/* confdefs.h. */ 12372_ACEOF 12373cat confdefs.h >>conftest.$ac_ext 12374cat >>conftest.$ac_ext <<_ACEOF 12375/* end confdefs.h. */ 12376#include <$ac_header> 12377_ACEOF 12378if { (ac_try="$ac_cpp conftest.$ac_ext" 12379case "(($ac_try" in 12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12381 *) ac_try_echo=$ac_try;; 12382esac 12383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12384$as_echo "$ac_try_echo") >&5 12385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12386 ac_status=$? 12387 grep -v '^ *+' conftest.er1 >conftest.err 12388 rm -f conftest.er1 12389 cat conftest.err >&5 12390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12391 (exit $ac_status); } >/dev/null && { 12392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12393 test ! -s conftest.err 12394 }; then 12395 ac_header_preproc=yes 12396else 12397 $as_echo "$as_me: failed program was:" >&5 12398sed 's/^/| /' conftest.$ac_ext >&5 12399 12400 ac_header_preproc=no 12401fi 12402 12403rm -f conftest.err conftest.$ac_ext 12404{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12405$as_echo "$ac_header_preproc" >&6; } 12406 12407# So? What about this header? 12408case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12409 yes:no: ) 12410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12411$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12413$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12414 ac_header_preproc=yes 12415 ;; 12416 no:yes:* ) 12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12418$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12420$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12422$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12424$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12426$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12428$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12429 ( cat <<\_ASBOX 12430## ---------------------------------------------------------------------- ## 12431## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 12432## ---------------------------------------------------------------------- ## 12433_ASBOX 12434 ) | sed "s/^/$as_me: WARNING: /" >&2 12435 ;; 12436esac 12437{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12438$as_echo_n "checking for $ac_header... " >&6; } 12439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12440 $as_echo_n "(cached) " >&6 12441else 12442 eval "$as_ac_Header=\$ac_header_preproc" 12443fi 12444ac_res=`eval 'as_val=${'$as_ac_Header'} 12445 $as_echo "$as_val"'` 12446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12447$as_echo "$ac_res" >&6; } 12448 12449fi 12450as_val=`eval 'as_val=${'$as_ac_Header'} 12451 $as_echo "$as_val"'` 12452 if test "x$as_val" = x""yes; then 12453 cat >>confdefs.h <<_ACEOF 12454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12455_ACEOF 12456 12457fi 12458 12459done 12460 12461 12462for ac_func in mprotect 12463do 12464as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12465{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12466$as_echo_n "checking for $ac_func... " >&6; } 12467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12468 $as_echo_n "(cached) " >&6 12469else 12470 cat >conftest.$ac_ext <<_ACEOF 12471/* confdefs.h. */ 12472_ACEOF 12473cat confdefs.h >>conftest.$ac_ext 12474cat >>conftest.$ac_ext <<_ACEOF 12475/* end confdefs.h. */ 12476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12478#define $ac_func innocuous_$ac_func 12479 12480/* System header to define __stub macros and hopefully few prototypes, 12481 which can conflict with char $ac_func (); below. 12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12483 <limits.h> exists even on freestanding compilers. */ 12484 12485#ifdef __STDC__ 12486# include <limits.h> 12487#else 12488# include <assert.h> 12489#endif 12490 12491#undef $ac_func 12492 12493/* Override any GCC internal prototype to avoid an error. 12494 Use char because int might match the return type of a GCC 12495 builtin and then its argument prototype would still apply. */ 12496#ifdef __cplusplus 12497extern "C" 12498#endif 12499char $ac_func (); 12500/* The GNU C library defines this for functions which it implements 12501 to always fail with ENOSYS. Some functions are actually named 12502 something starting with __ and the normal name is an alias. */ 12503#if defined __stub_$ac_func || defined __stub___$ac_func 12504choke me 12505#endif 12506 12507int 12508main () 12509{ 12510return $ac_func (); 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515rm -f conftest.$ac_objext conftest$ac_exeext 12516if { (ac_try="$ac_link" 12517case "(($ac_try" in 12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12519 *) ac_try_echo=$ac_try;; 12520esac 12521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12522$as_echo "$ac_try_echo") >&5 12523 (eval "$ac_link") 2>conftest.er1 12524 ac_status=$? 12525 grep -v '^ *+' conftest.er1 >conftest.err 12526 rm -f conftest.er1 12527 cat conftest.err >&5 12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12529 (exit $ac_status); } && { 12530 test -z "$ac_c_werror_flag" || 12531 test ! -s conftest.err 12532 } && test -s conftest$ac_exeext && { 12533 test "$cross_compiling" = yes || 12534 $as_test_x conftest$ac_exeext 12535 }; then 12536 eval "$as_ac_var=yes" 12537else 12538 $as_echo "$as_me: failed program was:" >&5 12539sed 's/^/| /' conftest.$ac_ext >&5 12540 12541 eval "$as_ac_var=no" 12542fi 12543 12544rm -rf conftest.dSYM 12545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12546 conftest$ac_exeext conftest.$ac_ext 12547fi 12548ac_res=`eval 'as_val=${'$as_ac_var'} 12549 $as_echo "$as_val"'` 12550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12551$as_echo "$ac_res" >&6; } 12552as_val=`eval 'as_val=${'$as_ac_var'} 12553 $as_echo "$as_val"'` 12554 if test "x$as_val" = x""yes; then 12555 cat >>confdefs.h <<_ACEOF 12556#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12557_ACEOF 12558 12559fi 12560done 12561 12562 12563 12564 12565 12566 12567# Check whether --with-xorg-module-dir was given. 12568if test "${with_xorg_module_dir+set}" = set; then 12569 withval=$with_xorg_module_dir; moduledir="$withval" 12570else 12571 moduledir="$libdir/xorg/modules" 12572fi 12573 12574 12575# Check whether --enable-dri was given. 12576if test "${enable_dri+set}" = set; then 12577 enableval=$enable_dri; DRI="$enableval" 12578else 12579 DRI=auto 12580fi 12581 12582 12583# Check whether --enable-video-debug was given. 12584if test "${enable_video_debug+set}" = set; then 12585 enableval=$enable_video_debug; VIDEO_DEBUG="$enableval" 12586else 12587 VIDEO_DEBUG=no 12588fi 12589 12590 12591 12592# Check whether --with-xserver-source was given. 12593if test "${with_xserver_source+set}" = set; then 12594 withval=$with_xserver_source; XSERVER_SOURCE="$withval" 12595else 12596 XSERVER_SOURCE="" 12597fi 12598 12599 12600# Check whether --enable-xvmc was given. 12601if test "${enable_xvmc+set}" = set; then 12602 enableval=$enable_xvmc; XVMC="$enableval" 12603else 12604 XVMC=auto 12605fi 12606 12607 12608# Checks for extensions 12609 12610 SAVE_CFLAGS="$CFLAGS" 12611 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12612 cat >conftest.$ac_ext <<_ACEOF 12613/* confdefs.h. */ 12614_ACEOF 12615cat confdefs.h >>conftest.$ac_ext 12616cat >>conftest.$ac_ext <<_ACEOF 12617/* end confdefs.h. */ 12618 12619#include "xorg-server.h" 12620#if !defined XINERAMA 12621#error XINERAMA not defined 12622#endif 12623 12624int 12625main () 12626{ 12627 12628 ; 12629 return 0; 12630} 12631_ACEOF 12632rm -f conftest.$ac_objext 12633if { (ac_try="$ac_compile" 12634case "(($ac_try" in 12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12636 *) ac_try_echo=$ac_try;; 12637esac 12638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12639$as_echo "$ac_try_echo") >&5 12640 (eval "$ac_compile") 2>conftest.er1 12641 ac_status=$? 12642 grep -v '^ *+' conftest.er1 >conftest.err 12643 rm -f conftest.er1 12644 cat conftest.err >&5 12645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12646 (exit $ac_status); } && { 12647 test -z "$ac_c_werror_flag" || 12648 test ! -s conftest.err 12649 } && test -s conftest.$ac_objext; then 12650 _EXT_CHECK=yes 12651else 12652 $as_echo "$as_me: failed program was:" >&5 12653sed 's/^/| /' conftest.$ac_ext >&5 12654 12655 _EXT_CHECK=no 12656fi 12657 12658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12659 CFLAGS="$SAVE_CFLAGS" 12660 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5 12661$as_echo_n "checking if XINERAMA is defined... " >&6; } 12662 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12663$as_echo "$_EXT_CHECK" >&6; } 12664 if test "$_EXT_CHECK" != no; then 12665 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 12666 fi 12667 12668 12669 SAVE_CFLAGS="$CFLAGS" 12670 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12671 cat >conftest.$ac_ext <<_ACEOF 12672/* confdefs.h. */ 12673_ACEOF 12674cat confdefs.h >>conftest.$ac_ext 12675cat >>conftest.$ac_ext <<_ACEOF 12676/* end confdefs.h. */ 12677 12678#include "xorg-server.h" 12679#if !defined RANDR 12680#error RANDR not defined 12681#endif 12682 12683int 12684main () 12685{ 12686 12687 ; 12688 return 0; 12689} 12690_ACEOF 12691rm -f conftest.$ac_objext 12692if { (ac_try="$ac_compile" 12693case "(($ac_try" in 12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12695 *) ac_try_echo=$ac_try;; 12696esac 12697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12698$as_echo "$ac_try_echo") >&5 12699 (eval "$ac_compile") 2>conftest.er1 12700 ac_status=$? 12701 grep -v '^ *+' conftest.er1 >conftest.err 12702 rm -f conftest.er1 12703 cat conftest.err >&5 12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12705 (exit $ac_status); } && { 12706 test -z "$ac_c_werror_flag" || 12707 test ! -s conftest.err 12708 } && test -s conftest.$ac_objext; then 12709 _EXT_CHECK=yes 12710else 12711 $as_echo "$as_me: failed program was:" >&5 12712sed 's/^/| /' conftest.$ac_ext >&5 12713 12714 _EXT_CHECK=no 12715fi 12716 12717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12718 CFLAGS="$SAVE_CFLAGS" 12719 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12720$as_echo_n "checking if RANDR is defined... " >&6; } 12721 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12722$as_echo "$_EXT_CHECK" >&6; } 12723 if test "$_EXT_CHECK" != no; then 12724 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12725 fi 12726 12727 12728 SAVE_CFLAGS="$CFLAGS" 12729 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12730 cat >conftest.$ac_ext <<_ACEOF 12731/* confdefs.h. */ 12732_ACEOF 12733cat confdefs.h >>conftest.$ac_ext 12734cat >>conftest.$ac_ext <<_ACEOF 12735/* end confdefs.h. */ 12736 12737#include "xorg-server.h" 12738#if !defined RENDER 12739#error RENDER not defined 12740#endif 12741 12742int 12743main () 12744{ 12745 12746 ; 12747 return 0; 12748} 12749_ACEOF 12750rm -f conftest.$ac_objext 12751if { (ac_try="$ac_compile" 12752case "(($ac_try" in 12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12754 *) ac_try_echo=$ac_try;; 12755esac 12756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12757$as_echo "$ac_try_echo") >&5 12758 (eval "$ac_compile") 2>conftest.er1 12759 ac_status=$? 12760 grep -v '^ *+' conftest.er1 >conftest.err 12761 rm -f conftest.er1 12762 cat conftest.err >&5 12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12764 (exit $ac_status); } && { 12765 test -z "$ac_c_werror_flag" || 12766 test ! -s conftest.err 12767 } && test -s conftest.$ac_objext; then 12768 _EXT_CHECK=yes 12769else 12770 $as_echo "$as_me: failed program was:" >&5 12771sed 's/^/| /' conftest.$ac_ext >&5 12772 12773 _EXT_CHECK=no 12774fi 12775 12776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12777 CFLAGS="$SAVE_CFLAGS" 12778 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12779$as_echo_n "checking if RENDER is defined... " >&6; } 12780 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12781$as_echo "$_EXT_CHECK" >&6; } 12782 if test "$_EXT_CHECK" != no; then 12783 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12784 fi 12785 12786 12787 SAVE_CFLAGS="$CFLAGS" 12788 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12789 cat >conftest.$ac_ext <<_ACEOF 12790/* confdefs.h. */ 12791_ACEOF 12792cat confdefs.h >>conftest.$ac_ext 12793cat >>conftest.$ac_ext <<_ACEOF 12794/* end confdefs.h. */ 12795 12796#include "xorg-server.h" 12797#if !defined XF86DRI 12798#error XF86DRI not defined 12799#endif 12800 12801int 12802main () 12803{ 12804 12805 ; 12806 return 0; 12807} 12808_ACEOF 12809rm -f conftest.$ac_objext 12810if { (ac_try="$ac_compile" 12811case "(($ac_try" in 12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12813 *) ac_try_echo=$ac_try;; 12814esac 12815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12816$as_echo "$ac_try_echo") >&5 12817 (eval "$ac_compile") 2>conftest.er1 12818 ac_status=$? 12819 grep -v '^ *+' conftest.er1 >conftest.err 12820 rm -f conftest.er1 12821 cat conftest.err >&5 12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12823 (exit $ac_status); } && { 12824 test -z "$ac_c_werror_flag" || 12825 test ! -s conftest.err 12826 } && test -s conftest.$ac_objext; then 12827 _EXT_CHECK=yes 12828else 12829 $as_echo "$as_me: failed program was:" >&5 12830sed 's/^/| /' conftest.$ac_ext >&5 12831 12832 _EXT_CHECK=no 12833fi 12834 12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12836 CFLAGS="$SAVE_CFLAGS" 12837 { $as_echo "$as_me:$LINENO: checking if XF86DRI is defined" >&5 12838$as_echo_n "checking if XF86DRI is defined... " >&6; } 12839 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12840$as_echo "$_EXT_CHECK" >&6; } 12841 if test "$_EXT_CHECK" != no; then 12842 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11" 12843 fi 12844 12845 12846 SAVE_CFLAGS="$CFLAGS" 12847 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12848 cat >conftest.$ac_ext <<_ACEOF 12849/* confdefs.h. */ 12850_ACEOF 12851cat confdefs.h >>conftest.$ac_ext 12852cat >>conftest.$ac_ext <<_ACEOF 12853/* end confdefs.h. */ 12854 12855#include "xorg-server.h" 12856#if !defined DPMSExtension 12857#error DPMSExtension not defined 12858#endif 12859 12860int 12861main () 12862{ 12863 12864 ; 12865 return 0; 12866} 12867_ACEOF 12868rm -f conftest.$ac_objext 12869if { (ac_try="$ac_compile" 12870case "(($ac_try" in 12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12872 *) ac_try_echo=$ac_try;; 12873esac 12874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12875$as_echo "$ac_try_echo") >&5 12876 (eval "$ac_compile") 2>conftest.er1 12877 ac_status=$? 12878 grep -v '^ *+' conftest.er1 >conftest.err 12879 rm -f conftest.er1 12880 cat conftest.err >&5 12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12882 (exit $ac_status); } && { 12883 test -z "$ac_c_werror_flag" || 12884 test ! -s conftest.err 12885 } && test -s conftest.$ac_objext; then 12886 _EXT_CHECK=yes 12887else 12888 $as_echo "$as_me: failed program was:" >&5 12889sed 's/^/| /' conftest.$ac_ext >&5 12890 12891 _EXT_CHECK=no 12892fi 12893 12894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12895 CFLAGS="$SAVE_CFLAGS" 12896 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12897$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12898 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12899$as_echo "$_EXT_CHECK" >&6; } 12900 if test "$_EXT_CHECK" != no; then 12901 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12902 fi 12903 12904 12905# Checks for pkg-config packages 12906 12907 12908if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12909 if test -n "$ac_tool_prefix"; then 12910 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12911set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12912{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12913$as_echo_n "checking for $ac_word... " >&6; } 12914if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12915 $as_echo_n "(cached) " >&6 12916else 12917 case $PKG_CONFIG in 12918 [\\/]* | ?:[\\/]*) 12919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12920 ;; 12921 *) 12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12923for as_dir in $PATH 12924do 12925 IFS=$as_save_IFS 12926 test -z "$as_dir" && as_dir=. 12927 for ac_exec_ext in '' $ac_executable_extensions; do 12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12931 break 2 12932 fi 12933done 12934done 12935IFS=$as_save_IFS 12936 12937 ;; 12938esac 12939fi 12940PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12941if test -n "$PKG_CONFIG"; then 12942 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12943$as_echo "$PKG_CONFIG" >&6; } 12944else 12945 { $as_echo "$as_me:$LINENO: result: no" >&5 12946$as_echo "no" >&6; } 12947fi 12948 12949 12950fi 12951if test -z "$ac_cv_path_PKG_CONFIG"; then 12952 ac_pt_PKG_CONFIG=$PKG_CONFIG 12953 # Extract the first word of "pkg-config", so it can be a program name with args. 12954set dummy pkg-config; ac_word=$2 12955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12956$as_echo_n "checking for $ac_word... " >&6; } 12957if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12958 $as_echo_n "(cached) " >&6 12959else 12960 case $ac_pt_PKG_CONFIG in 12961 [\\/]* | ?:[\\/]*) 12962 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12963 ;; 12964 *) 12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12966for as_dir in $PATH 12967do 12968 IFS=$as_save_IFS 12969 test -z "$as_dir" && as_dir=. 12970 for ac_exec_ext in '' $ac_executable_extensions; do 12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12972 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12974 break 2 12975 fi 12976done 12977done 12978IFS=$as_save_IFS 12979 12980 ;; 12981esac 12982fi 12983ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12984if test -n "$ac_pt_PKG_CONFIG"; then 12985 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12986$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12987else 12988 { $as_echo "$as_me:$LINENO: result: no" >&5 12989$as_echo "no" >&6; } 12990fi 12991 12992 if test "x$ac_pt_PKG_CONFIG" = x; then 12993 PKG_CONFIG="" 12994 else 12995 case $cross_compiling:$ac_tool_warned in 12996yes:) 12997{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12999ac_tool_warned=yes ;; 13000esac 13001 PKG_CONFIG=$ac_pt_PKG_CONFIG 13002 fi 13003else 13004 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13005fi 13006 13007fi 13008if test -n "$PKG_CONFIG"; then 13009 _pkg_min_version=0.9.0 13010 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 13011$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13012 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13013 { $as_echo "$as_me:$LINENO: result: yes" >&5 13014$as_echo "yes" >&6; } 13015 else 13016 { $as_echo "$as_me:$LINENO: result: no" >&5 13017$as_echo "no" >&6; } 13018 PKG_CONFIG="" 13019 fi 13020 13021fi 13022 13023pkg_failed=no 13024{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 13025$as_echo_n "checking for XORG... " >&6; } 13026 13027if test -n "$PKG_CONFIG"; then 13028 if test -n "$XORG_CFLAGS"; then 13029 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 13030 else 13031 if test -n "$PKG_CONFIG" && \ 13032 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5 13033 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 13034 ac_status=$? 13035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13036 (exit $ac_status); }; then 13037 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 13038else 13039 pkg_failed=yes 13040fi 13041 fi 13042else 13043 pkg_failed=untried 13044fi 13045if test -n "$PKG_CONFIG"; then 13046 if test -n "$XORG_LIBS"; then 13047 pkg_cv_XORG_LIBS="$XORG_LIBS" 13048 else 13049 if test -n "$PKG_CONFIG" && \ 13050 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5 13051 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 13052 ac_status=$? 13053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13054 (exit $ac_status); }; then 13055 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 13056else 13057 pkg_failed=yes 13058fi 13059 fi 13060else 13061 pkg_failed=untried 13062fi 13063 13064 13065 13066if test $pkg_failed = yes; then 13067 13068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13069 _pkg_short_errors_supported=yes 13070else 13071 _pkg_short_errors_supported=no 13072fi 13073 if test $_pkg_short_errors_supported = yes; then 13074 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"` 13075 else 13076 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"` 13077 fi 13078 # Put the nasty error message in config.log where it belongs 13079 echo "$XORG_PKG_ERRORS" >&5 13080 13081 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met: 13082 13083$XORG_PKG_ERRORS 13084 13085Consider adjusting the PKG_CONFIG_PATH environment variable if you 13086installed software in a non-standard prefix. 13087 13088Alternatively, you may set the environment variables XORG_CFLAGS 13089and XORG_LIBS to avoid the need to call pkg-config. 13090See the pkg-config man page for more details. 13091" >&5 13092$as_echo "$as_me: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met: 13093 13094$XORG_PKG_ERRORS 13095 13096Consider adjusting the PKG_CONFIG_PATH environment variable if you 13097installed software in a non-standard prefix. 13098 13099Alternatively, you may set the environment variables XORG_CFLAGS 13100and XORG_LIBS to avoid the need to call pkg-config. 13101See the pkg-config man page for more details. 13102" >&2;} 13103 { (exit 1); exit 1; }; } 13104elif test $pkg_failed = untried; then 13105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13107{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13108is in your PATH or set the PKG_CONFIG environment variable to the full 13109path to pkg-config. 13110 13111Alternatively, you may set the environment variables XORG_CFLAGS 13112and XORG_LIBS to avoid the need to call pkg-config. 13113See the pkg-config man page for more details. 13114 13115To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13116See \`config.log' for more details." >&5 13117$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13118is in your PATH or set the PKG_CONFIG environment variable to the full 13119path to pkg-config. 13120 13121Alternatively, you may set the environment variables XORG_CFLAGS 13122and XORG_LIBS to avoid the need to call pkg-config. 13123See the pkg-config man page for more details. 13124 13125To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13126See \`config.log' for more details." >&2;} 13127 { (exit 1); exit 1; }; }; } 13128else 13129 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 13130 XORG_LIBS=$pkg_cv_XORG_LIBS 13131 { $as_echo "$as_me:$LINENO: result: yes" >&5 13132$as_echo "yes" >&6; } 13133 : 13134fi 13135 13136 13137pkg_failed=no 13138{ $as_echo "$as_me:$LINENO: checking for SERVER_1_5" >&5 13139$as_echo_n "checking for SERVER_1_5... " >&6; } 13140 13141if test -n "$PKG_CONFIG"; then 13142 if test -n "$SERVER_1_5_CFLAGS"; then 13143 pkg_cv_SERVER_1_5_CFLAGS="$SERVER_1_5_CFLAGS" 13144 else 13145 if test -n "$PKG_CONFIG" && \ 13146 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5 13147 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5 13148 ac_status=$? 13149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13150 (exit $ac_status); }; then 13151 pkg_cv_SERVER_1_5_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5" 2>/dev/null` 13152else 13153 pkg_failed=yes 13154fi 13155 fi 13156else 13157 pkg_failed=untried 13158fi 13159if test -n "$PKG_CONFIG"; then 13160 if test -n "$SERVER_1_5_LIBS"; then 13161 pkg_cv_SERVER_1_5_LIBS="$SERVER_1_5_LIBS" 13162 else 13163 if test -n "$PKG_CONFIG" && \ 13164 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5 13165 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5 13166 ac_status=$? 13167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13168 (exit $ac_status); }; then 13169 pkg_cv_SERVER_1_5_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5" 2>/dev/null` 13170else 13171 pkg_failed=yes 13172fi 13173 fi 13174else 13175 pkg_failed=untried 13176fi 13177 13178 13179 13180if test $pkg_failed = yes; then 13181 13182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13183 _pkg_short_errors_supported=yes 13184else 13185 _pkg_short_errors_supported=no 13186fi 13187 if test $_pkg_short_errors_supported = yes; then 13188 SERVER_1_5_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.5"` 13189 else 13190 SERVER_1_5_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.5"` 13191 fi 13192 # Put the nasty error message in config.log where it belongs 13193 echo "$SERVER_1_5_PKG_ERRORS" >&5 13194 13195 { $as_echo "$as_me:$LINENO: result: no" >&5 13196$as_echo "no" >&6; } 13197 SERVER_1_5=no 13198elif test $pkg_failed = untried; then 13199 SERVER_1_5=no 13200else 13201 SERVER_1_5_CFLAGS=$pkg_cv_SERVER_1_5_CFLAGS 13202 SERVER_1_5_LIBS=$pkg_cv_SERVER_1_5_LIBS 13203 { $as_echo "$as_me:$LINENO: result: yes" >&5 13204$as_echo "yes" >&6; } 13205 SERVER_1_5=yes 13206fi 13207 13208if test "$SERVER_1_5" = yes; then 13209 13210cat >>confdefs.h <<\_ACEOF 13211#define SERVER_1_5 1 13212_ACEOF 13213 13214fi 13215 13216sdkdir=$(pkg-config --variable=sdkdir xorg-server) 13217drm_cflags=$(pkg-config --cflags libdrm) 13218 13219# Checks for libraries. 13220 13221# Checks for header files. 13222{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13223$as_echo_n "checking for ANSI C header files... " >&6; } 13224if test "${ac_cv_header_stdc+set}" = set; then 13225 $as_echo_n "(cached) " >&6 13226else 13227 cat >conftest.$ac_ext <<_ACEOF 13228/* confdefs.h. */ 13229_ACEOF 13230cat confdefs.h >>conftest.$ac_ext 13231cat >>conftest.$ac_ext <<_ACEOF 13232/* end confdefs.h. */ 13233#include <stdlib.h> 13234#include <stdarg.h> 13235#include <string.h> 13236#include <float.h> 13237 13238int 13239main () 13240{ 13241 13242 ; 13243 return 0; 13244} 13245_ACEOF 13246rm -f conftest.$ac_objext 13247if { (ac_try="$ac_compile" 13248case "(($ac_try" in 13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13250 *) ac_try_echo=$ac_try;; 13251esac 13252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13253$as_echo "$ac_try_echo") >&5 13254 (eval "$ac_compile") 2>conftest.er1 13255 ac_status=$? 13256 grep -v '^ *+' conftest.er1 >conftest.err 13257 rm -f conftest.er1 13258 cat conftest.err >&5 13259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13260 (exit $ac_status); } && { 13261 test -z "$ac_c_werror_flag" || 13262 test ! -s conftest.err 13263 } && test -s conftest.$ac_objext; then 13264 ac_cv_header_stdc=yes 13265else 13266 $as_echo "$as_me: failed program was:" >&5 13267sed 's/^/| /' conftest.$ac_ext >&5 13268 13269 ac_cv_header_stdc=no 13270fi 13271 13272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13273 13274if test $ac_cv_header_stdc = yes; then 13275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13276 cat >conftest.$ac_ext <<_ACEOF 13277/* confdefs.h. */ 13278_ACEOF 13279cat confdefs.h >>conftest.$ac_ext 13280cat >>conftest.$ac_ext <<_ACEOF 13281/* end confdefs.h. */ 13282#include <string.h> 13283 13284_ACEOF 13285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13286 $EGREP "memchr" >/dev/null 2>&1; then 13287 : 13288else 13289 ac_cv_header_stdc=no 13290fi 13291rm -f conftest* 13292 13293fi 13294 13295if test $ac_cv_header_stdc = yes; then 13296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13297 cat >conftest.$ac_ext <<_ACEOF 13298/* confdefs.h. */ 13299_ACEOF 13300cat confdefs.h >>conftest.$ac_ext 13301cat >>conftest.$ac_ext <<_ACEOF 13302/* end confdefs.h. */ 13303#include <stdlib.h> 13304 13305_ACEOF 13306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13307 $EGREP "free" >/dev/null 2>&1; then 13308 : 13309else 13310 ac_cv_header_stdc=no 13311fi 13312rm -f conftest* 13313 13314fi 13315 13316if test $ac_cv_header_stdc = yes; then 13317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13318 if test "$cross_compiling" = yes; then 13319 : 13320else 13321 cat >conftest.$ac_ext <<_ACEOF 13322/* confdefs.h. */ 13323_ACEOF 13324cat confdefs.h >>conftest.$ac_ext 13325cat >>conftest.$ac_ext <<_ACEOF 13326/* end confdefs.h. */ 13327#include <ctype.h> 13328#include <stdlib.h> 13329#if ((' ' & 0x0FF) == 0x020) 13330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13332#else 13333# define ISLOWER(c) \ 13334 (('a' <= (c) && (c) <= 'i') \ 13335 || ('j' <= (c) && (c) <= 'r') \ 13336 || ('s' <= (c) && (c) <= 'z')) 13337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13338#endif 13339 13340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13341int 13342main () 13343{ 13344 int i; 13345 for (i = 0; i < 256; i++) 13346 if (XOR (islower (i), ISLOWER (i)) 13347 || toupper (i) != TOUPPER (i)) 13348 return 2; 13349 return 0; 13350} 13351_ACEOF 13352rm -f conftest$ac_exeext 13353if { (ac_try="$ac_link" 13354case "(($ac_try" in 13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13356 *) ac_try_echo=$ac_try;; 13357esac 13358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13359$as_echo "$ac_try_echo") >&5 13360 (eval "$ac_link") 2>&5 13361 ac_status=$? 13362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13364 { (case "(($ac_try" in 13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13366 *) ac_try_echo=$ac_try;; 13367esac 13368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13369$as_echo "$ac_try_echo") >&5 13370 (eval "$ac_try") 2>&5 13371 ac_status=$? 13372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13373 (exit $ac_status); }; }; then 13374 : 13375else 13376 $as_echo "$as_me: program exited with status $ac_status" >&5 13377$as_echo "$as_me: failed program was:" >&5 13378sed 's/^/| /' conftest.$ac_ext >&5 13379 13380( exit $ac_status ) 13381ac_cv_header_stdc=no 13382fi 13383rm -rf conftest.dSYM 13384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13385fi 13386 13387 13388fi 13389fi 13390{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13391$as_echo "$ac_cv_header_stdc" >&6; } 13392if test $ac_cv_header_stdc = yes; then 13393 13394cat >>confdefs.h <<\_ACEOF 13395#define STDC_HEADERS 1 13396_ACEOF 13397 13398fi 13399 13400 13401save_CFLAGS="$CFLAGS" 13402CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags" 13403CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags" 13404{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 13405$as_echo_n "checking whether to include DRI support... " >&6; } 13406if test x$DRI != xno; then 13407 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 13408{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 13409$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 13410if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13411 $as_echo_n "(cached) " >&6 13412else 13413 test "$cross_compiling" = yes && 13414 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13415$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13416 { (exit 1); exit 1; }; } 13417if test -r "${sdkdir}/dri.h"; then 13418 eval "$as_ac_File=yes" 13419else 13420 eval "$as_ac_File=no" 13421fi 13422fi 13423ac_res=`eval 'as_val=${'$as_ac_File'} 13424 $as_echo "$as_val"'` 13425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13426$as_echo "$ac_res" >&6; } 13427as_val=`eval 'as_val=${'$as_ac_File'} 13428 $as_echo "$as_val"'` 13429 if test "x$as_val" = x""yes; then 13430 have_dri_h="yes" 13431else 13432 have_dri_h="no" 13433fi 13434 13435 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 13436{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 13437$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 13438if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13439 $as_echo_n "(cached) " >&6 13440else 13441 test "$cross_compiling" = yes && 13442 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13443$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13444 { (exit 1); exit 1; }; } 13445if test -r "${sdkdir}/sarea.h"; then 13446 eval "$as_ac_File=yes" 13447else 13448 eval "$as_ac_File=no" 13449fi 13450fi 13451ac_res=`eval 'as_val=${'$as_ac_File'} 13452 $as_echo "$as_val"'` 13453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13454$as_echo "$ac_res" >&6; } 13455as_val=`eval 'as_val=${'$as_ac_File'} 13456 $as_echo "$as_val"'` 13457 if test "x$as_val" = x""yes; then 13458 have_sarea_h="yes" 13459else 13460 have_sarea_h="no" 13461fi 13462 13463 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 13464{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 13465$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 13466if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13467 $as_echo_n "(cached) " >&6 13468else 13469 test "$cross_compiling" = yes && 13470 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13471$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13472 { (exit 1); exit 1; }; } 13473if test -r "${sdkdir}/dristruct.h"; then 13474 eval "$as_ac_File=yes" 13475else 13476 eval "$as_ac_File=no" 13477fi 13478fi 13479ac_res=`eval 'as_val=${'$as_ac_File'} 13480 $as_echo "$as_val"'` 13481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13482$as_echo "$ac_res" >&6; } 13483as_val=`eval 'as_val=${'$as_ac_File'} 13484 $as_echo "$as_val"'` 13485 if test "x$as_val" = x""yes; then 13486 have_dristruct_h="yes" 13487else 13488 have_dristruct_h="no" 13489fi 13490 13491fi 13492{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 13493$as_echo_n "checking whether to include DRI support... " >&6; } 13494if test x$DRI = xauto; then 13495 if test "$have_dri_h" = yes -a \ 13496 "$have_sarea_h" = yes -a \ 13497 "$have_dristruct_h" = yes; then 13498 DRI="yes" 13499 else 13500 DRI="no" 13501 fi 13502fi 13503{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 13504$as_echo "$DRI" >&6; } 13505 13506{ $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5 13507$as_echo_n "checking for xf86Modes.h... " >&6; } 13508if test "${ac_cv_header_xf86Modes_h+set}" = set; then 13509 $as_echo_n "(cached) " >&6 13510else 13511 cat >conftest.$ac_ext <<_ACEOF 13512/* confdefs.h. */ 13513_ACEOF 13514cat confdefs.h >>conftest.$ac_ext 13515cat >>conftest.$ac_ext <<_ACEOF 13516/* end confdefs.h. */ 13517#include "xorg-server.h" 13518 13519#include <xf86Modes.h> 13520_ACEOF 13521rm -f conftest.$ac_objext 13522if { (ac_try="$ac_compile" 13523case "(($ac_try" in 13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13525 *) ac_try_echo=$ac_try;; 13526esac 13527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13528$as_echo "$ac_try_echo") >&5 13529 (eval "$ac_compile") 2>conftest.er1 13530 ac_status=$? 13531 grep -v '^ *+' conftest.er1 >conftest.err 13532 rm -f conftest.er1 13533 cat conftest.err >&5 13534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13535 (exit $ac_status); } && { 13536 test -z "$ac_c_werror_flag" || 13537 test ! -s conftest.err 13538 } && test -s conftest.$ac_objext; then 13539 ac_cv_header_xf86Modes_h=yes 13540else 13541 $as_echo "$as_me: failed program was:" >&5 13542sed 's/^/| /' conftest.$ac_ext >&5 13543 13544 ac_cv_header_xf86Modes_h=no 13545fi 13546 13547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13548fi 13549{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5 13550$as_echo "$ac_cv_header_xf86Modes_h" >&6; } 13551if test "x$ac_cv_header_xf86Modes_h" = x""yes; then 13552 XMODES=yes 13553else 13554 XMODES=no 13555fi 13556 13557 13558{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 13559$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 13560if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 13561 $as_echo_n "(cached) " >&6 13562else 13563 cat >conftest.$ac_ext <<_ACEOF 13564/* confdefs.h. */ 13565_ACEOF 13566cat confdefs.h >>conftest.$ac_ext 13567cat >>conftest.$ac_ext <<_ACEOF 13568/* end confdefs.h. */ 13569#include "xorg-server.h" 13570 13571int 13572main () 13573{ 13574#ifndef XSERVER_LIBPCIACCESS 13575 (void) XSERVER_LIBPCIACCESS; 13576#endif 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582rm -f conftest.$ac_objext 13583if { (ac_try="$ac_compile" 13584case "(($ac_try" in 13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13586 *) ac_try_echo=$ac_try;; 13587esac 13588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13589$as_echo "$ac_try_echo") >&5 13590 (eval "$ac_compile") 2>conftest.er1 13591 ac_status=$? 13592 grep -v '^ *+' conftest.er1 >conftest.err 13593 rm -f conftest.er1 13594 cat conftest.err >&5 13595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13596 (exit $ac_status); } && { 13597 test -z "$ac_c_werror_flag" || 13598 test ! -s conftest.err 13599 } && test -s conftest.$ac_objext; then 13600 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 13601else 13602 $as_echo "$as_me: failed program was:" >&5 13603sed 's/^/| /' conftest.$ac_ext >&5 13604 13605 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 13606fi 13607 13608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13609fi 13610{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 13611$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 13612if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 13613 XSERVER_LIBPCIACCESS=yes 13614else 13615 XSERVER_LIBPCIACCESS=no 13616fi 13617 13618CFLAGS="$save_CFLAGS" 13619 13620if test x$XSERVER_LIBPCIACCESS = xyes; then 13621 13622pkg_failed=no 13623{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 13624$as_echo_n "checking for PCIACCESS... " >&6; } 13625 13626if test -n "$PKG_CONFIG"; then 13627 if test -n "$PCIACCESS_CFLAGS"; then 13628 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 13629 else 13630 if test -n "$PKG_CONFIG" && \ 13631 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5 13632 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 13633 ac_status=$? 13634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13635 (exit $ac_status); }; then 13636 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 13637else 13638 pkg_failed=yes 13639fi 13640 fi 13641else 13642 pkg_failed=untried 13643fi 13644if test -n "$PKG_CONFIG"; then 13645 if test -n "$PCIACCESS_LIBS"; then 13646 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 13647 else 13648 if test -n "$PKG_CONFIG" && \ 13649 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5 13650 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 13651 ac_status=$? 13652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13653 (exit $ac_status); }; then 13654 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 13655else 13656 pkg_failed=yes 13657fi 13658 fi 13659else 13660 pkg_failed=untried 13661fi 13662 13663 13664 13665if test $pkg_failed = yes; then 13666 13667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13668 _pkg_short_errors_supported=yes 13669else 13670 _pkg_short_errors_supported=no 13671fi 13672 if test $_pkg_short_errors_supported = yes; then 13673 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"` 13674 else 13675 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"` 13676 fi 13677 # Put the nasty error message in config.log where it belongs 13678 echo "$PCIACCESS_PKG_ERRORS" >&5 13679 13680 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met: 13681 13682$PCIACCESS_PKG_ERRORS 13683 13684Consider adjusting the PKG_CONFIG_PATH environment variable if you 13685installed software in a non-standard prefix. 13686 13687Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13688and PCIACCESS_LIBS to avoid the need to call pkg-config. 13689See the pkg-config man page for more details. 13690" >&5 13691$as_echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met: 13692 13693$PCIACCESS_PKG_ERRORS 13694 13695Consider adjusting the PKG_CONFIG_PATH environment variable if you 13696installed software in a non-standard prefix. 13697 13698Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13699and PCIACCESS_LIBS to avoid the need to call pkg-config. 13700See the pkg-config man page for more details. 13701" >&2;} 13702 { (exit 1); exit 1; }; } 13703elif test $pkg_failed = untried; then 13704 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13706{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13707is in your PATH or set the PKG_CONFIG environment variable to the full 13708path to pkg-config. 13709 13710Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13711and PCIACCESS_LIBS to avoid the need to call pkg-config. 13712See the pkg-config man page for more details. 13713 13714To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13715See \`config.log' for more details." >&5 13716$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13717is in your PATH or set the PKG_CONFIG environment variable to the full 13718path to pkg-config. 13719 13720Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13721and PCIACCESS_LIBS to avoid the need to call pkg-config. 13722See the pkg-config man page for more details. 13723 13724To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13725See \`config.log' for more details." >&2;} 13726 { (exit 1); exit 1; }; }; } 13727else 13728 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 13729 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 13730 { $as_echo "$as_me:$LINENO: result: yes" >&5 13731$as_echo "yes" >&6; } 13732 : 13733fi 13734else 13735 13736pkg_failed=no 13737{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 13738$as_echo_n "checking for PCIACCESS... " >&6; } 13739 13740if test -n "$PKG_CONFIG"; then 13741 if test -n "$PCIACCESS_CFLAGS"; then 13742 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 13743 else 13744 if test -n "$PKG_CONFIG" && \ 13745 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5 13746 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 13747 ac_status=$? 13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13749 (exit $ac_status); }; then 13750 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 13751else 13752 pkg_failed=yes 13753fi 13754 fi 13755else 13756 pkg_failed=untried 13757fi 13758if test -n "$PKG_CONFIG"; then 13759 if test -n "$PCIACCESS_LIBS"; then 13760 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 13761 else 13762 if test -n "$PKG_CONFIG" && \ 13763 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5 13764 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 13765 ac_status=$? 13766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13767 (exit $ac_status); }; then 13768 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 13769else 13770 pkg_failed=yes 13771fi 13772 fi 13773else 13774 pkg_failed=untried 13775fi 13776 13777 13778 13779if test $pkg_failed = yes; then 13780 13781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13782 _pkg_short_errors_supported=yes 13783else 13784 _pkg_short_errors_supported=no 13785fi 13786 if test $_pkg_short_errors_supported = yes; then 13787 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"` 13788 else 13789 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"` 13790 fi 13791 # Put the nasty error message in config.log where it belongs 13792 echo "$PCIACCESS_PKG_ERRORS" >&5 13793 13794 { $as_echo "$as_me:$LINENO: result: no" >&5 13795$as_echo "no" >&6; } 13796 have_libpciaccess=no 13797elif test $pkg_failed = untried; then 13798 have_libpciaccess=no 13799else 13800 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 13801 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 13802 { $as_echo "$as_me:$LINENO: result: yes" >&5 13803$as_echo "yes" >&6; } 13804 have_libpciaccess=yes 13805fi 13806fi 13807 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 13808 XSERVER_LIBPCIACCESS_TRUE= 13809 XSERVER_LIBPCIACCESS_FALSE='#' 13810else 13811 XSERVER_LIBPCIACCESS_TRUE='#' 13812 XSERVER_LIBPCIACCESS_FALSE= 13813fi 13814 13815 if test "x$XSERVER_LIBPCIACCESS" = xyes -o "x$have_libpciaccess" = xyes; then 13816 LIBPCIACCESS_TRUE= 13817 LIBPCIACCESS_FALSE='#' 13818else 13819 LIBPCIACCESS_TRUE='#' 13820 LIBPCIACCESS_FALSE= 13821fi 13822 13823 if test "x$XMODES" = xno; then 13824 XMODES_TRUE= 13825 XMODES_FALSE='#' 13826else 13827 XMODES_TRUE='#' 13828 XMODES_FALSE= 13829fi 13830 13831 13832if test "x$XSERVER_SOURCE" = x; then 13833 if test -d ../../xserver; then 13834 XSERVER_SOURCE="`cd ../../xserver && pwd`" 13835 fi 13836fi 13837 13838if test -d "$XSERVER_SOURCE"; then 13839 case "$XSERVER_SOURCE" in 13840 /*) 13841 ;; 13842 *) 13843 XSERVER_SOURCE="`cd $XSERVER_SOURCE && pwd`" 13844 ;; 13845 esac 13846 if test -f $srcdir/src/modes/xf86Modes.h; then 13847 : 13848 else 13849 ln -sf $XSERVER_SOURCE/hw/xfree86/modes $srcdir/src/modes 13850 fi 13851 13852 if test -f $srcdir/src/parser/xf86Parser.h; then 13853 : 13854 else 13855 ln -sf $XSERVER_SOURCE/hw/xfree86/parser $srcdir/src/parser 13856 fi 13857fi 13858 13859if test "x$XMODES" = xyes; then 13860 { $as_echo "$as_me:$LINENO: X server has new mode code" >&5 13861$as_echo "$as_me: X server has new mode code" >&6;} 13862 13863cat >>confdefs.h <<\_ACEOF 13864#define XMODES 1 13865_ACEOF 13866 13867 XMODES_CFLAGS= 13868else 13869 if test -f $srcdir/src/modes/xf86Modes.h -a -f $srcdir/src/parser/xf86Parser.h; then 13870 { $as_echo "$as_me:$LINENO: X server is missing new mode code, using local copy" >&5 13871$as_echo "$as_me: X server is missing new mode code, using local copy" >&6;} 13872 else 13873 { { $as_echo "$as_me:$LINENO: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&5 13874$as_echo "$as_me: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&2;} 13875 { (exit 1); exit 1; }; } 13876 fi 13877 XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser' 13878fi 13879 13880 13881 13882SAVE_CPPFLAGS="$CPPFLAGS" 13883CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 13884 13885{ $as_echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5 13886$as_echo_n "checking whether xf86RotateFreeShadow is declared... " >&6; } 13887if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then 13888 $as_echo_n "(cached) " >&6 13889else 13890 cat >conftest.$ac_ext <<_ACEOF 13891/* confdefs.h. */ 13892_ACEOF 13893cat confdefs.h >>conftest.$ac_ext 13894cat >>conftest.$ac_ext <<_ACEOF 13895/* end confdefs.h. */ 13896#include <xorg-server.h> 13897 #include <windowstr.h> 13898 #include <xf86Crtc.h> 13899 13900int 13901main () 13902{ 13903#ifndef xf86RotateFreeShadow 13904 (void) xf86RotateFreeShadow; 13905#endif 13906 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911rm -f conftest.$ac_objext 13912if { (ac_try="$ac_compile" 13913case "(($ac_try" in 13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13915 *) ac_try_echo=$ac_try;; 13916esac 13917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13918$as_echo "$ac_try_echo") >&5 13919 (eval "$ac_compile") 2>conftest.er1 13920 ac_status=$? 13921 grep -v '^ *+' conftest.er1 >conftest.err 13922 rm -f conftest.er1 13923 cat conftest.err >&5 13924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13925 (exit $ac_status); } && { 13926 test -z "$ac_c_werror_flag" || 13927 test ! -s conftest.err 13928 } && test -s conftest.$ac_objext; then 13929 ac_cv_have_decl_xf86RotateFreeShadow=yes 13930else 13931 $as_echo "$as_me: failed program was:" >&5 13932sed 's/^/| /' conftest.$ac_ext >&5 13933 13934 ac_cv_have_decl_xf86RotateFreeShadow=no 13935fi 13936 13937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13938fi 13939{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5 13940$as_echo "$ac_cv_have_decl_xf86RotateFreeShadow" >&6; } 13941if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = x""yes; then 13942 13943cat >>confdefs.h <<\_ACEOF 13944#define HAVE_FREE_SHADOW 1 13945_ACEOF 13946 13947fi 13948 13949 13950CPPFLAGS="$SAVE_CPPFLAGS" 13951 13952 13953WARN_CFLAGS="" 13954 13955if test "x$GCC" = "xyes"; then 13956 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 13957 -Wmissing-prototypes -Wmissing-declarations \ 13958 -Wnested-externs -fno-strict-aliasing" 13959fi 13960 13961 13962pkg_failed=no 13963{ $as_echo "$as_me:$LINENO: checking for DRM" >&5 13964$as_echo_n "checking for DRM... " >&6; } 13965 13966if test -n "$PKG_CONFIG"; then 13967 if test -n "$DRM_CFLAGS"; then 13968 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 13969 else 13970 if test -n "$PKG_CONFIG" && \ 13971 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.6\"") >&5 13972 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.6") 2>&5 13973 ac_status=$? 13974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); }; then 13976 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.6" 2>/dev/null` 13977else 13978 pkg_failed=yes 13979fi 13980 fi 13981else 13982 pkg_failed=untried 13983fi 13984if test -n "$PKG_CONFIG"; then 13985 if test -n "$DRM_LIBS"; then 13986 pkg_cv_DRM_LIBS="$DRM_LIBS" 13987 else 13988 if test -n "$PKG_CONFIG" && \ 13989 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.6\"") >&5 13990 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.6") 2>&5 13991 ac_status=$? 13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13993 (exit $ac_status); }; then 13994 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.6" 2>/dev/null` 13995else 13996 pkg_failed=yes 13997fi 13998 fi 13999else 14000 pkg_failed=untried 14001fi 14002 14003 14004 14005if test $pkg_failed = yes; then 14006 14007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14008 _pkg_short_errors_supported=yes 14009else 14010 _pkg_short_errors_supported=no 14011fi 14012 if test $_pkg_short_errors_supported = yes; then 14013 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.4.6"` 14014 else 14015 DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.4.6"` 14016 fi 14017 # Put the nasty error message in config.log where it belongs 14018 echo "$DRM_PKG_ERRORS" >&5 14019 14020 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.4.6) were not met: 14021 14022$DRM_PKG_ERRORS 14023 14024Consider adjusting the PKG_CONFIG_PATH environment variable if you 14025installed software in a non-standard prefix. 14026 14027Alternatively, you may set the environment variables DRM_CFLAGS 14028and DRM_LIBS to avoid the need to call pkg-config. 14029See the pkg-config man page for more details. 14030" >&5 14031$as_echo "$as_me: error: Package requirements (libdrm >= 2.4.6) were not met: 14032 14033$DRM_PKG_ERRORS 14034 14035Consider adjusting the PKG_CONFIG_PATH environment variable if you 14036installed software in a non-standard prefix. 14037 14038Alternatively, you may set the environment variables DRM_CFLAGS 14039and DRM_LIBS to avoid the need to call pkg-config. 14040See the pkg-config man page for more details. 14041" >&2;} 14042 { (exit 1); exit 1; }; } 14043elif test $pkg_failed = untried; then 14044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 14045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14046{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 14047is in your PATH or set the PKG_CONFIG environment variable to the full 14048path to pkg-config. 14049 14050Alternatively, you may set the environment variables DRM_CFLAGS 14051and DRM_LIBS to avoid the need to call pkg-config. 14052See the pkg-config man page for more details. 14053 14054To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14055See \`config.log' for more details." >&5 14056$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 14057is in your PATH or set the PKG_CONFIG environment variable to the full 14058path to pkg-config. 14059 14060Alternatively, you may set the environment variables DRM_CFLAGS 14061and DRM_LIBS to avoid the need to call pkg-config. 14062See the pkg-config man page for more details. 14063 14064To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14065See \`config.log' for more details." >&2;} 14066 { (exit 1); exit 1; }; }; } 14067else 14068 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 14069 DRM_LIBS=$pkg_cv_DRM_LIBS 14070 { $as_echo "$as_me:$LINENO: result: yes" >&5 14071$as_echo "yes" >&6; } 14072 : 14073fi 14074 if test x$DRI = xyes; then 14075 DRI_TRUE= 14076 DRI_FALSE='#' 14077else 14078 DRI_TRUE='#' 14079 DRI_FALSE= 14080fi 14081 14082if test "$DRI" = yes; then 14083 14084pkg_failed=no 14085{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 14086$as_echo_n "checking for DRI... " >&6; } 14087 14088if test -n "$PKG_CONFIG"; then 14089 if test -n "$DRI_CFLAGS"; then 14090 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 14091 else 14092 if test -n "$PKG_CONFIG" && \ 14093 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86driproto glproto\"") >&5 14094 ($PKG_CONFIG --exists --print-errors "xf86driproto glproto") 2>&5 14095 ac_status=$? 14096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14097 (exit $ac_status); }; then 14098 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto glproto" 2>/dev/null` 14099else 14100 pkg_failed=yes 14101fi 14102 fi 14103else 14104 pkg_failed=untried 14105fi 14106if test -n "$PKG_CONFIG"; then 14107 if test -n "$DRI_LIBS"; then 14108 pkg_cv_DRI_LIBS="$DRI_LIBS" 14109 else 14110 if test -n "$PKG_CONFIG" && \ 14111 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86driproto glproto\"") >&5 14112 ($PKG_CONFIG --exists --print-errors "xf86driproto glproto") 2>&5 14113 ac_status=$? 14114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14115 (exit $ac_status); }; then 14116 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto glproto" 2>/dev/null` 14117else 14118 pkg_failed=yes 14119fi 14120 fi 14121else 14122 pkg_failed=untried 14123fi 14124 14125 14126 14127if test $pkg_failed = yes; then 14128 14129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14130 _pkg_short_errors_supported=yes 14131else 14132 _pkg_short_errors_supported=no 14133fi 14134 if test $_pkg_short_errors_supported = yes; then 14135 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86driproto glproto"` 14136 else 14137 DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86driproto glproto"` 14138 fi 14139 # Put the nasty error message in config.log where it belongs 14140 echo "$DRI_PKG_ERRORS" >&5 14141 14142 { { $as_echo "$as_me:$LINENO: error: Package requirements (xf86driproto glproto) were not met: 14143 14144$DRI_PKG_ERRORS 14145 14146Consider adjusting the PKG_CONFIG_PATH environment variable if you 14147installed software in a non-standard prefix. 14148 14149Alternatively, you may set the environment variables DRI_CFLAGS 14150and DRI_LIBS to avoid the need to call pkg-config. 14151See the pkg-config man page for more details. 14152" >&5 14153$as_echo "$as_me: error: Package requirements (xf86driproto glproto) were not met: 14154 14155$DRI_PKG_ERRORS 14156 14157Consider adjusting the PKG_CONFIG_PATH environment variable if you 14158installed software in a non-standard prefix. 14159 14160Alternatively, you may set the environment variables DRI_CFLAGS 14161and DRI_LIBS to avoid the need to call pkg-config. 14162See the pkg-config man page for more details. 14163" >&2;} 14164 { (exit 1); exit 1; }; } 14165elif test $pkg_failed = untried; then 14166 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 14167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14168{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 14169is in your PATH or set the PKG_CONFIG environment variable to the full 14170path to pkg-config. 14171 14172Alternatively, you may set the environment variables DRI_CFLAGS 14173and DRI_LIBS to avoid the need to call pkg-config. 14174See the pkg-config man page for more details. 14175 14176To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14177See \`config.log' for more details." >&5 14178$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 14179is in your PATH or set the PKG_CONFIG environment variable to the full 14180path to pkg-config. 14181 14182Alternatively, you may set the environment variables DRI_CFLAGS 14183and DRI_LIBS to avoid the need to call pkg-config. 14184See the pkg-config man page for more details. 14185 14186To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14187See \`config.log' for more details." >&2;} 14188 { (exit 1); exit 1; }; }; } 14189else 14190 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 14191 DRI_LIBS=$pkg_cv_DRI_LIBS 14192 { $as_echo "$as_me:$LINENO: result: yes" >&5 14193$as_echo "yes" >&6; } 14194 : 14195fi 14196 14197cat >>confdefs.h <<\_ACEOF 14198#define XF86DRI 1 14199_ACEOF 14200 14201 14202cat >>confdefs.h <<\_ACEOF 14203#define XF86DRI_DEVEL 1 14204_ACEOF 14205 14206fi 14207 14208 14209pkg_failed=no 14210{ $as_echo "$as_me:$LINENO: checking for DRM_MODE" >&5 14211$as_echo_n "checking for DRM_MODE... " >&6; } 14212 14213if test -n "$PKG_CONFIG"; then 14214 if test -n "$DRM_MODE_CFLAGS"; then 14215 pkg_cv_DRM_MODE_CFLAGS="$DRM_MODE_CFLAGS" 14216 else 14217 if test -n "$PKG_CONFIG" && \ 14218 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5 14219 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5 14220 ac_status=$? 14221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14222 (exit $ac_status); }; then 14223 pkg_cv_DRM_MODE_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5" 2>/dev/null` 14224else 14225 pkg_failed=yes 14226fi 14227 fi 14228else 14229 pkg_failed=untried 14230fi 14231if test -n "$PKG_CONFIG"; then 14232 if test -n "$DRM_MODE_LIBS"; then 14233 pkg_cv_DRM_MODE_LIBS="$DRM_MODE_LIBS" 14234 else 14235 if test -n "$PKG_CONFIG" && \ 14236 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5 14237 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5 14238 ac_status=$? 14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14240 (exit $ac_status); }; then 14241 pkg_cv_DRM_MODE_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5" 2>/dev/null` 14242else 14243 pkg_failed=yes 14244fi 14245 fi 14246else 14247 pkg_failed=untried 14248fi 14249 14250 14251 14252if test $pkg_failed = yes; then 14253 14254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14255 _pkg_short_errors_supported=yes 14256else 14257 _pkg_short_errors_supported=no 14258fi 14259 if test $_pkg_short_errors_supported = yes; then 14260 DRM_MODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.5"` 14261 else 14262 DRM_MODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.5"` 14263 fi 14264 # Put the nasty error message in config.log where it belongs 14265 echo "$DRM_MODE_PKG_ERRORS" >&5 14266 14267 { $as_echo "$as_me:$LINENO: result: no" >&5 14268$as_echo "no" >&6; } 14269 DRM_MODE=no 14270elif test $pkg_failed = untried; then 14271 DRM_MODE=no 14272else 14273 DRM_MODE_CFLAGS=$pkg_cv_DRM_MODE_CFLAGS 14274 DRM_MODE_LIBS=$pkg_cv_DRM_MODE_LIBS 14275 { $as_echo "$as_me:$LINENO: result: yes" >&5 14276$as_echo "yes" >&6; } 14277 DRM_MODE=yes 14278fi 14279if test "x$DRM_MODE" = xyes; then 14280 14281cat >>confdefs.h <<\_ACEOF 14282#define XF86DRM_MODE 1 14283_ACEOF 14284 14285fi 14286 14287 if test x$VIDEO_DEBUG = xyes; then 14288 VIDEO_DEBUG_TRUE= 14289 VIDEO_DEBUG_FALSE='#' 14290else 14291 VIDEO_DEBUG_TRUE='#' 14292 VIDEO_DEBUG_FALSE= 14293fi 14294 14295if test "$VIDEO_DEBUG" = yes; then 14296 14297cat >>confdefs.h <<\_ACEOF 14298#define VIDEO_DEBUG 1 14299_ACEOF 14300 14301fi 14302 14303if test "$XVMC" = auto; then 14304 XVMC="$DRI" 14305fi 14306if test "$XVMC" = yes && test "$DRI" = no; then 14307 { { $as_echo "$as_me:$LINENO: error: XvMC can't be enabled without DRI" >&5 14308$as_echo "$as_me: error: XvMC can't be enabled without DRI" >&2;} 14309 { (exit 1); exit 1; }; } 14310fi 14311if test "$XVMC" = yes; then 14312 14313pkg_failed=no 14314{ $as_echo "$as_me:$LINENO: checking for XVMCLIB" >&5 14315$as_echo_n "checking for XVMCLIB... " >&6; } 14316 14317if test -n "$PKG_CONFIG"; then 14318 if test -n "$XVMCLIB_CFLAGS"; then 14319 pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS" 14320 else 14321 if test -n "$PKG_CONFIG" && \ 14322 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xvmc\"") >&5 14323 ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5 14324 ac_status=$? 14325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14326 (exit $ac_status); }; then 14327 pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc" 2>/dev/null` 14328else 14329 pkg_failed=yes 14330fi 14331 fi 14332else 14333 pkg_failed=untried 14334fi 14335if test -n "$PKG_CONFIG"; then 14336 if test -n "$XVMCLIB_LIBS"; then 14337 pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS" 14338 else 14339 if test -n "$PKG_CONFIG" && \ 14340 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xvmc\"") >&5 14341 ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5 14342 ac_status=$? 14343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14344 (exit $ac_status); }; then 14345 pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc" 2>/dev/null` 14346else 14347 pkg_failed=yes 14348fi 14349 fi 14350else 14351 pkg_failed=untried 14352fi 14353 14354 14355 14356if test $pkg_failed = yes; then 14357 14358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14359 _pkg_short_errors_supported=yes 14360else 14361 _pkg_short_errors_supported=no 14362fi 14363 if test $_pkg_short_errors_supported = yes; then 14364 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xvmc"` 14365 else 14366 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xvmc"` 14367 fi 14368 # Put the nasty error message in config.log where it belongs 14369 echo "$XVMCLIB_PKG_ERRORS" >&5 14370 14371 { $as_echo "$as_me:$LINENO: result: no" >&5 14372$as_echo "no" >&6; } 14373 XVMC=no 14374elif test $pkg_failed = untried; then 14375 XVMC=no 14376else 14377 XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS 14378 XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS 14379 { $as_echo "$as_me:$LINENO: result: yes" >&5 14380$as_echo "yes" >&6; } 14381 XVMC=yes 14382fi 14383 14384pkg_failed=no 14385{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5 14386$as_echo_n "checking for XEXT... " >&6; } 14387 14388if test -n "$PKG_CONFIG"; then 14389 if test -n "$XEXT_CFLAGS"; then 14390 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 14391 else 14392 if test -n "$PKG_CONFIG" && \ 14393 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5 14394 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 14395 ac_status=$? 14396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14397 (exit $ac_status); }; then 14398 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 14399else 14400 pkg_failed=yes 14401fi 14402 fi 14403else 14404 pkg_failed=untried 14405fi 14406if test -n "$PKG_CONFIG"; then 14407 if test -n "$XEXT_LIBS"; then 14408 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 14409 else 14410 if test -n "$PKG_CONFIG" && \ 14411 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5 14412 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 14413 ac_status=$? 14414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14415 (exit $ac_status); }; then 14416 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 14417else 14418 pkg_failed=yes 14419fi 14420 fi 14421else 14422 pkg_failed=untried 14423fi 14424 14425 14426 14427if test $pkg_failed = yes; then 14428 14429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14430 _pkg_short_errors_supported=yes 14431else 14432 _pkg_short_errors_supported=no 14433fi 14434 if test $_pkg_short_errors_supported = yes; then 14435 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"` 14436 else 14437 XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"` 14438 fi 14439 # Put the nasty error message in config.log where it belongs 14440 echo "$XEXT_PKG_ERRORS" >&5 14441 14442 { { $as_echo "$as_me:$LINENO: error: Package requirements (xext) were not met: 14443 14444$XEXT_PKG_ERRORS 14445 14446Consider adjusting the PKG_CONFIG_PATH environment variable if you 14447installed software in a non-standard prefix. 14448 14449Alternatively, you may set the environment variables XEXT_CFLAGS 14450and XEXT_LIBS to avoid the need to call pkg-config. 14451See the pkg-config man page for more details. 14452" >&5 14453$as_echo "$as_me: error: Package requirements (xext) were not met: 14454 14455$XEXT_PKG_ERRORS 14456 14457Consider adjusting the PKG_CONFIG_PATH environment variable if you 14458installed software in a non-standard prefix. 14459 14460Alternatively, you may set the environment variables XEXT_CFLAGS 14461and XEXT_LIBS to avoid the need to call pkg-config. 14462See the pkg-config man page for more details. 14463" >&2;} 14464 { (exit 1); exit 1; }; } 14465elif test $pkg_failed = untried; then 14466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 14467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14468{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 14469is in your PATH or set the PKG_CONFIG environment variable to the full 14470path to pkg-config. 14471 14472Alternatively, you may set the environment variables XEXT_CFLAGS 14473and XEXT_LIBS to avoid the need to call pkg-config. 14474See the pkg-config man page for more details. 14475 14476To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14477See \`config.log' for more details." >&5 14478$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 14479is in your PATH or set the PKG_CONFIG environment variable to the full 14480path to pkg-config. 14481 14482Alternatively, you may set the environment variables XEXT_CFLAGS 14483and XEXT_LIBS to avoid the need to call pkg-config. 14484See the pkg-config man page for more details. 14485 14486To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14487See \`config.log' for more details." >&2;} 14488 { (exit 1); exit 1; }; }; } 14489else 14490 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 14491 XEXT_LIBS=$pkg_cv_XEXT_LIBS 14492 { $as_echo "$as_me:$LINENO: result: yes" >&5 14493$as_echo "yes" >&6; } 14494 : 14495fi 14496fi 14497{ $as_echo "$as_me:$LINENO: checking whether to include XvMC support" >&5 14498$as_echo_n "checking whether to include XvMC support... " >&6; } 14499{ $as_echo "$as_me:$LINENO: result: $XVMC" >&5 14500$as_echo "$XVMC" >&6; } 14501 if test x$XVMC = xyes; then 14502 XVMC_TRUE= 14503 XVMC_FALSE='#' 14504else 14505 XVMC_TRUE='#' 14506 XVMC_FALSE= 14507fi 14508 14509if test "$XVMC" = yes; then 14510 14511cat >>confdefs.h <<\_ACEOF 14512#define ENABLE_XVMC 1 14513_ACEOF 14514 14515 14516fi 14517 14518 14519 14520 14521 14522 14523DRIVER_NAME=intel 14524 14525 14526 14527 14528 XORG_MACROS_needed_version=1.1.3 14529 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 14530 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 14531 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 14532$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; } 14533 XORG_MACROS_version=1.2.1 14534 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 14535 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 14536 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 14537 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x" >&5 14538$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x" >&2;} 14539 { (exit 1); exit 1; }; } 14540 fi 14541 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 14542 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer" >&5 14543$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer" >&2;} 14544 { (exit 1); exit 1; }; } 14545 fi 14546 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 14547$as_echo "yes, $XORG_MACROS_version" >&6; } 14548 14549 14550 14551 14552if test x$APP_MAN_SUFFIX = x ; then 14553 APP_MAN_SUFFIX=1 14554fi 14555if test x$APP_MAN_DIR = x ; then 14556 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 14557fi 14558 14559if test x$LIB_MAN_SUFFIX = x ; then 14560 LIB_MAN_SUFFIX=3 14561fi 14562if test x$LIB_MAN_DIR = x ; then 14563 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 14564fi 14565 14566if test x$FILE_MAN_SUFFIX = x ; then 14567 case $host_os in 14568 solaris*) FILE_MAN_SUFFIX=4 ;; 14569 *) FILE_MAN_SUFFIX=5 ;; 14570 esac 14571fi 14572if test x$FILE_MAN_DIR = x ; then 14573 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 14574fi 14575 14576if test x$MISC_MAN_SUFFIX = x ; then 14577 case $host_os in 14578 solaris*) MISC_MAN_SUFFIX=5 ;; 14579 *) MISC_MAN_SUFFIX=7 ;; 14580 esac 14581fi 14582if test x$MISC_MAN_DIR = x ; then 14583 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 14584fi 14585 14586if test x$DRIVER_MAN_SUFFIX = x ; then 14587 case $host_os in 14588 solaris*) DRIVER_MAN_SUFFIX=7 ;; 14589 *) DRIVER_MAN_SUFFIX=4 ;; 14590 esac 14591fi 14592if test x$DRIVER_MAN_DIR = x ; then 14593 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 14594fi 14595 14596if test x$ADMIN_MAN_SUFFIX = x ; then 14597 case $host_os in 14598 solaris*) ADMIN_MAN_SUFFIX=1m ;; 14599 *) ADMIN_MAN_SUFFIX=8 ;; 14600 esac 14601fi 14602if test x$ADMIN_MAN_DIR = x ; then 14603 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 14604fi 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622# Check whether --with-release-version was given. 14623if test "${with_release_version+set}" = set; then 14624 withval=$with_release_version; RELEASE_VERSION="$withval" 14625else 14626 RELEASE_VERSION="" 14627fi 14628 14629 if test "x$RELEASE_VERSION" != "x"; then 14630 PACKAGE="$PACKAGE-$RELEASE_VERSION" 14631 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 14632 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 14633$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 14634 fi 14635 14636cat >>confdefs.h <<_ACEOF 14637#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 14638_ACEOF 14639 14640 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 14641 if test "x$PVM" = "x"; then 14642 PVM="0" 14643 fi 14644 14645cat >>confdefs.h <<_ACEOF 14646#define PACKAGE_VERSION_MINOR $PVM 14647_ACEOF 14648 14649 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 14650 if test "x$PVP" = "x"; then 14651 PVP="0" 14652 fi 14653 14654cat >>confdefs.h <<_ACEOF 14655#define PACKAGE_VERSION_PATCHLEVEL $PVP 14656_ACEOF 14657 14658 14659 14660 14661if test x$XORG_SGML_PATH = x ; then 14662 XORG_SGML_PATH=$prefix/share/sgml 14663fi 14664HAVE_DEFS_ENT= 14665 14666if test x"$cross_compiling" = x"yes" ; then 14667 HAVE_DEFS_ENT=no 14668else 14669 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 14670{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 14671$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; } 14672if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 14673 $as_echo_n "(cached) " >&6 14674else 14675 test "$cross_compiling" = yes && 14676 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 14677$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 14678 { (exit 1); exit 1; }; } 14679if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 14680 eval "$as_ac_File=yes" 14681else 14682 eval "$as_ac_File=no" 14683fi 14684fi 14685ac_res=`eval 'as_val=${'$as_ac_File'} 14686 $as_echo "$as_val"'` 14687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14688$as_echo "$ac_res" >&6; } 14689as_val=`eval 'as_val=${'$as_ac_File'} 14690 $as_echo "$as_val"'` 14691 if test "x$as_val" = x""yes; then 14692 HAVE_DEFS_ENT=yes 14693fi 14694 14695fi 14696 14697# Extract the first word of "linuxdoc", so it can be a program name with args. 14698set dummy linuxdoc; ac_word=$2 14699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 14700$as_echo_n "checking for $ac_word... " >&6; } 14701if test "${ac_cv_path_LINUXDOC+set}" = set; then 14702 $as_echo_n "(cached) " >&6 14703else 14704 case $LINUXDOC in 14705 [\\/]* | ?:[\\/]*) 14706 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 14707 ;; 14708 *) 14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14710for as_dir in $PATH 14711do 14712 IFS=$as_save_IFS 14713 test -z "$as_dir" && as_dir=. 14714 for ac_exec_ext in '' $ac_executable_extensions; do 14715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14716 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 14717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14718 break 2 14719 fi 14720done 14721done 14722IFS=$as_save_IFS 14723 14724 ;; 14725esac 14726fi 14727LINUXDOC=$ac_cv_path_LINUXDOC 14728if test -n "$LINUXDOC"; then 14729 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5 14730$as_echo "$LINUXDOC" >&6; } 14731else 14732 { $as_echo "$as_me:$LINENO: result: no" >&5 14733$as_echo "no" >&6; } 14734fi 14735 14736 14737# Extract the first word of "ps2pdf", so it can be a program name with args. 14738set dummy ps2pdf; ac_word=$2 14739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 14740$as_echo_n "checking for $ac_word... " >&6; } 14741if test "${ac_cv_path_PS2PDF+set}" = set; then 14742 $as_echo_n "(cached) " >&6 14743else 14744 case $PS2PDF in 14745 [\\/]* | ?:[\\/]*) 14746 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 14747 ;; 14748 *) 14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14750for as_dir in $PATH 14751do 14752 IFS=$as_save_IFS 14753 test -z "$as_dir" && as_dir=. 14754 for ac_exec_ext in '' $ac_executable_extensions; do 14755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14756 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 14757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14758 break 2 14759 fi 14760done 14761done 14762IFS=$as_save_IFS 14763 14764 ;; 14765esac 14766fi 14767PS2PDF=$ac_cv_path_PS2PDF 14768if test -n "$PS2PDF"; then 14769 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5 14770$as_echo "$PS2PDF" >&6; } 14771else 14772 { $as_echo "$as_me:$LINENO: result: no" >&5 14773$as_echo "no" >&6; } 14774fi 14775 14776 14777 14778{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5 14779$as_echo_n "checking Whether to build documentation... " >&6; } 14780 14781if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 14782 BUILDDOC=yes 14783else 14784 BUILDDOC=no 14785fi 14786 14787 if test x$BUILDDOC = xyes; then 14788 BUILD_LINUXDOC_TRUE= 14789 BUILD_LINUXDOC_FALSE='#' 14790else 14791 BUILD_LINUXDOC_TRUE='#' 14792 BUILD_LINUXDOC_FALSE= 14793fi 14794 14795 14796{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5 14797$as_echo "$BUILDDOC" >&6; } 14798 14799{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 14800$as_echo_n "checking Whether to build pdf documentation... " >&6; } 14801 14802if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 14803 BUILDPDFDOC=yes 14804else 14805 BUILDPDFDOC=no 14806fi 14807 14808 if test x$BUILDPDFDOC = xyes; then 14809 BUILD_PDFDOC_TRUE= 14810 BUILD_PDFDOC_FALSE='#' 14811else 14812 BUILD_PDFDOC_TRUE='#' 14813 BUILD_PDFDOC_FALSE= 14814fi 14815 14816 14817{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 14818$as_echo "$BUILDPDFDOC" >&6; } 14819 14820MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 14821MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 14822MAKE_PDF="$PS2PDF" 14823MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 14824 14825 14826 14827 14828 14829 14830 14831ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/bios_reader/Makefile src/ch7017/Makefile src/ch7xxx/Makefile src/ivch/Makefile src/reg_dumper/Makefile src/sil164/Makefile src/tfp410/Makefile man/Makefile" 14832 14833cat >confcache <<\_ACEOF 14834# This file is a shell script that caches the results of configure 14835# tests run on this system so they can be shared between configure 14836# scripts and configure runs, see configure's option --config-cache. 14837# It is not useful on other systems. If it contains results you don't 14838# want to keep, you may remove or edit it. 14839# 14840# config.status only pays attention to the cache file if you give it 14841# the --recheck option to rerun configure. 14842# 14843# `ac_cv_env_foo' variables (set or unset) will be overridden when 14844# loading this file, other *unset* `ac_cv_foo' will be assigned the 14845# following values. 14846 14847_ACEOF 14848 14849# The following way of writing the cache mishandles newlines in values, 14850# but we know of no workaround that is simple, portable, and efficient. 14851# So, we kill variables containing newlines. 14852# Ultrix sh set writes to stderr and can't be redirected directly, 14853# and sets the high bit in the cache file unless we assign to the vars. 14854( 14855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14856 eval ac_val=\$$ac_var 14857 case $ac_val in #( 14858 *${as_nl}*) 14859 case $ac_var in #( 14860 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 14861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14862 esac 14863 case $ac_var in #( 14864 _ | IFS | as_nl) ;; #( 14865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14866 *) $as_unset $ac_var ;; 14867 esac ;; 14868 esac 14869 done 14870 14871 (set) 2>&1 | 14872 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14873 *${as_nl}ac_space=\ *) 14874 # `set' does not quote correctly, so add quotes (double-quote 14875 # substitution turns \\\\ into \\, and sed turns \\ into \). 14876 sed -n \ 14877 "s/'/'\\\\''/g; 14878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14879 ;; #( 14880 *) 14881 # `set' quotes correctly as required by POSIX, so do not add quotes. 14882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14883 ;; 14884 esac | 14885 sort 14886) | 14887 sed ' 14888 /^ac_cv_env_/b end 14889 t clear 14890 :clear 14891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14892 t end 14893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14894 :end' >>confcache 14895if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14896 if test -w "$cache_file"; then 14897 test "x$cache_file" != "x/dev/null" && 14898 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14899$as_echo "$as_me: updating cache $cache_file" >&6;} 14900 cat confcache >$cache_file 14901 else 14902 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14903$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14904 fi 14905fi 14906rm -f confcache 14907 14908test "x$prefix" = xNONE && prefix=$ac_default_prefix 14909# Let make expand exec_prefix. 14910test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14911 14912DEFS=-DHAVE_CONFIG_H 14913 14914ac_libobjs= 14915ac_ltlibobjs= 14916for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14917 # 1. Remove the extension, and $U if already installed. 14918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14921 # will be set to the directory where LIBOBJS objects are built. 14922 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14923 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14924done 14925LIBOBJS=$ac_libobjs 14926 14927LTLIBOBJS=$ac_ltlibobjs 14928 14929 14930if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14931 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 14932Usually this means the macro was only invoked conditionally." >&5 14933$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 14934Usually this means the macro was only invoked conditionally." >&2;} 14935 { (exit 1); exit 1; }; } 14936fi 14937if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14938 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14939Usually this means the macro was only invoked conditionally." >&5 14940$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14941Usually this means the macro was only invoked conditionally." >&2;} 14942 { (exit 1); exit 1; }; } 14943fi 14944if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14945 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14946Usually this means the macro was only invoked conditionally." >&5 14947$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14948Usually this means the macro was only invoked conditionally." >&2;} 14949 { (exit 1); exit 1; }; } 14950fi 14951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14953Usually this means the macro was only invoked conditionally." >&5 14954$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14955Usually this means the macro was only invoked conditionally." >&2;} 14956 { (exit 1); exit 1; }; } 14957fi 14958if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then 14959 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GEN4ASM\" was never defined. 14960Usually this means the macro was only invoked conditionally." >&5 14961$as_echo "$as_me: error: conditional \"HAVE_GEN4ASM\" was never defined. 14962Usually this means the macro was only invoked conditionally." >&2;} 14963 { (exit 1); exit 1; }; } 14964fi 14965if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 14966 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 14967Usually this means the macro was only invoked conditionally." >&5 14968$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 14969Usually this means the macro was only invoked conditionally." >&2;} 14970 { (exit 1); exit 1; }; } 14971fi 14972if test -z "${LIBPCIACCESS_TRUE}" && test -z "${LIBPCIACCESS_FALSE}"; then 14973 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBPCIACCESS\" was never defined. 14974Usually this means the macro was only invoked conditionally." >&5 14975$as_echo "$as_me: error: conditional \"LIBPCIACCESS\" was never defined. 14976Usually this means the macro was only invoked conditionally." >&2;} 14977 { (exit 1); exit 1; }; } 14978fi 14979if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 14980 { { $as_echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined. 14981Usually this means the macro was only invoked conditionally." >&5 14982$as_echo "$as_me: error: conditional \"XMODES\" was never defined. 14983Usually this means the macro was only invoked conditionally." >&2;} 14984 { (exit 1); exit 1; }; } 14985fi 14986if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 14987 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 14988Usually this means the macro was only invoked conditionally." >&5 14989$as_echo "$as_me: error: conditional \"DRI\" was never defined. 14990Usually this means the macro was only invoked conditionally." >&2;} 14991 { (exit 1); exit 1; }; } 14992fi 14993if test -z "${VIDEO_DEBUG_TRUE}" && test -z "${VIDEO_DEBUG_FALSE}"; then 14994 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_DEBUG\" was never defined. 14995Usually this means the macro was only invoked conditionally." >&5 14996$as_echo "$as_me: error: conditional \"VIDEO_DEBUG\" was never defined. 14997Usually this means the macro was only invoked conditionally." >&2;} 14998 { (exit 1); exit 1; }; } 14999fi 15000if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 15001 { { $as_echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined. 15002Usually this means the macro was only invoked conditionally." >&5 15003$as_echo "$as_me: error: conditional \"XVMC\" was never defined. 15004Usually this means the macro was only invoked conditionally." >&2;} 15005 { (exit 1); exit 1; }; } 15006fi 15007if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 15008 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 15009Usually this means the macro was only invoked conditionally." >&5 15010$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 15011Usually this means the macro was only invoked conditionally." >&2;} 15012 { (exit 1); exit 1; }; } 15013fi 15014if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 15015 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 15016Usually this means the macro was only invoked conditionally." >&5 15017$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 15018Usually this means the macro was only invoked conditionally." >&2;} 15019 { (exit 1); exit 1; }; } 15020fi 15021 15022: ${CONFIG_STATUS=./config.status} 15023ac_write_fail=0 15024ac_clean_files_save=$ac_clean_files 15025ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15026{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15027$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15028cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15029#! $SHELL 15030# Generated by $as_me. 15031# Run this file to recreate the current configuration. 15032# Compiler output produced by configure, useful for debugging 15033# configure, is in config.log if it exists. 15034 15035debug=false 15036ac_cs_recheck=false 15037ac_cs_silent=false 15038SHELL=\${CONFIG_SHELL-$SHELL} 15039_ACEOF 15040 15041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15042## --------------------- ## 15043## M4sh Initialization. ## 15044## --------------------- ## 15045 15046# Be more Bourne compatible 15047DUALCASE=1; export DUALCASE # for MKS sh 15048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15049 emulate sh 15050 NULLCMD=: 15051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15052 # is contrary to our usage. Disable this feature. 15053 alias -g '${1+"$@"}'='"$@"' 15054 setopt NO_GLOB_SUBST 15055else 15056 case `(set -o) 2>/dev/null` in 15057 *posix*) set -o posix ;; 15058esac 15059 15060fi 15061 15062 15063 15064 15065# PATH needs CR 15066# Avoid depending upon Character Ranges. 15067as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15069as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15070as_cr_digits='0123456789' 15071as_cr_alnum=$as_cr_Letters$as_cr_digits 15072 15073as_nl=' 15074' 15075export as_nl 15076# Printing a long string crashes Solaris 7 /usr/bin/printf. 15077as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15078as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15079as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15080if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15081 as_echo='printf %s\n' 15082 as_echo_n='printf %s' 15083else 15084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15086 as_echo_n='/usr/ucb/echo -n' 15087 else 15088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15089 as_echo_n_body='eval 15090 arg=$1; 15091 case $arg in 15092 *"$as_nl"*) 15093 expr "X$arg" : "X\\(.*\\)$as_nl"; 15094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15095 esac; 15096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15097 ' 15098 export as_echo_n_body 15099 as_echo_n='sh -c $as_echo_n_body as_echo' 15100 fi 15101 export as_echo_body 15102 as_echo='sh -c $as_echo_body as_echo' 15103fi 15104 15105# The user is always right. 15106if test "${PATH_SEPARATOR+set}" != set; then 15107 PATH_SEPARATOR=: 15108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15110 PATH_SEPARATOR=';' 15111 } 15112fi 15113 15114# Support unset when possible. 15115if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15116 as_unset=unset 15117else 15118 as_unset=false 15119fi 15120 15121 15122# IFS 15123# We need space, tab and new line, in precisely that order. Quoting is 15124# there to prevent editors from complaining about space-tab. 15125# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15126# splitting by setting IFS to empty value.) 15127IFS=" "" $as_nl" 15128 15129# Find who we are. Look in the path if we contain no directory separator. 15130case $0 in 15131 *[\\/]* ) as_myself=$0 ;; 15132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15133for as_dir in $PATH 15134do 15135 IFS=$as_save_IFS 15136 test -z "$as_dir" && as_dir=. 15137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15138done 15139IFS=$as_save_IFS 15140 15141 ;; 15142esac 15143# We did not find ourselves, most probably we were run as `sh COMMAND' 15144# in which case we are not to be found in the path. 15145if test "x$as_myself" = x; then 15146 as_myself=$0 15147fi 15148if test ! -f "$as_myself"; then 15149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15150 { (exit 1); exit 1; } 15151fi 15152 15153# Work around bugs in pre-3.0 UWIN ksh. 15154for as_var in ENV MAIL MAILPATH 15155do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15156done 15157PS1='$ ' 15158PS2='> ' 15159PS4='+ ' 15160 15161# NLS nuisances. 15162LC_ALL=C 15163export LC_ALL 15164LANGUAGE=C 15165export LANGUAGE 15166 15167# Required to use basename. 15168if expr a : '\(a\)' >/dev/null 2>&1 && 15169 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15170 as_expr=expr 15171else 15172 as_expr=false 15173fi 15174 15175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15176 as_basename=basename 15177else 15178 as_basename=false 15179fi 15180 15181 15182# Name of the executable. 15183as_me=`$as_basename -- "$0" || 15184$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15185 X"$0" : 'X\(//\)$' \| \ 15186 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15187$as_echo X/"$0" | 15188 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15189 s//\1/ 15190 q 15191 } 15192 /^X\/\(\/\/\)$/{ 15193 s//\1/ 15194 q 15195 } 15196 /^X\/\(\/\).*/{ 15197 s//\1/ 15198 q 15199 } 15200 s/.*/./; q'` 15201 15202# CDPATH. 15203$as_unset CDPATH 15204 15205 15206 15207 as_lineno_1=$LINENO 15208 as_lineno_2=$LINENO 15209 test "x$as_lineno_1" != "x$as_lineno_2" && 15210 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 15211 15212 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 15213 # uniformly replaced by the line number. The first 'sed' inserts a 15214 # line-number line after each line using $LINENO; the second 'sed' 15215 # does the real work. The second script uses 'N' to pair each 15216 # line-number line with the line containing $LINENO, and appends 15217 # trailing '-' during substitution so that $LINENO is not a special 15218 # case at line end. 15219 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 15220 # scripts with optimization help from Paolo Bonzini. Blame Lee 15221 # E. McMahon (1931-1989) for sed's syntax. :-) 15222 sed -n ' 15223 p 15224 /[$]LINENO/= 15225 ' <$as_myself | 15226 sed ' 15227 s/[$]LINENO.*/&-/ 15228 t lineno 15229 b 15230 :lineno 15231 N 15232 :loop 15233 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 15234 t loop 15235 s/-\n.*// 15236 ' >$as_me.lineno && 15237 chmod +x "$as_me.lineno" || 15238 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 15239 { (exit 1); exit 1; }; } 15240 15241 # Don't try to exec as it changes $[0], causing all sort of problems 15242 # (the dirname of $[0] is not the place where we might find the 15243 # original and so on. Autoconf is especially sensitive to this). 15244 . "./$as_me.lineno" 15245 # Exit status is that of the last command. 15246 exit 15247} 15248 15249 15250if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15251 as_dirname=dirname 15252else 15253 as_dirname=false 15254fi 15255 15256ECHO_C= ECHO_N= ECHO_T= 15257case `echo -n x` in 15258-n*) 15259 case `echo 'x\c'` in 15260 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15261 *) ECHO_C='\c';; 15262 esac;; 15263*) 15264 ECHO_N='-n';; 15265esac 15266if expr a : '\(a\)' >/dev/null 2>&1 && 15267 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15268 as_expr=expr 15269else 15270 as_expr=false 15271fi 15272 15273rm -f conf$$ conf$$.exe conf$$.file 15274if test -d conf$$.dir; then 15275 rm -f conf$$.dir/conf$$.file 15276else 15277 rm -f conf$$.dir 15278 mkdir conf$$.dir 2>/dev/null 15279fi 15280if (echo >conf$$.file) 2>/dev/null; then 15281 if ln -s conf$$.file conf$$ 2>/dev/null; then 15282 as_ln_s='ln -s' 15283 # ... but there are two gotchas: 15284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15286 # In both cases, we have to default to `cp -p'. 15287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15288 as_ln_s='cp -p' 15289 elif ln conf$$.file conf$$ 2>/dev/null; then 15290 as_ln_s=ln 15291 else 15292 as_ln_s='cp -p' 15293 fi 15294else 15295 as_ln_s='cp -p' 15296fi 15297rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15298rmdir conf$$.dir 2>/dev/null 15299 15300if mkdir -p . 2>/dev/null; then 15301 as_mkdir_p=: 15302else 15303 test -d ./-p && rmdir ./-p 15304 as_mkdir_p=false 15305fi 15306 15307if test -x / >/dev/null 2>&1; then 15308 as_test_x='test -x' 15309else 15310 if ls -dL / >/dev/null 2>&1; then 15311 as_ls_L_option=L 15312 else 15313 as_ls_L_option= 15314 fi 15315 as_test_x=' 15316 eval sh -c '\'' 15317 if test -d "$1"; then 15318 test -d "$1/."; 15319 else 15320 case $1 in 15321 -*)set "./$1";; 15322 esac; 15323 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15324 ???[sx]*):;;*)false;;esac;fi 15325 '\'' sh 15326 ' 15327fi 15328as_executable_p=$as_test_x 15329 15330# Sed expression to map a string onto a valid CPP name. 15331as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15332 15333# Sed expression to map a string onto a valid variable name. 15334as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15335 15336 15337exec 6>&1 15338 15339# Save the log message, to keep $[0] and so on meaningful, and to 15340# report actual input values of CONFIG_FILES etc. instead of their 15341# values after options handling. 15342ac_log=" 15343This file was extended by xf86-video-intel $as_me 2.7.1, which was 15344generated by GNU Autoconf 2.63. Invocation command line was 15345 15346 CONFIG_FILES = $CONFIG_FILES 15347 CONFIG_HEADERS = $CONFIG_HEADERS 15348 CONFIG_LINKS = $CONFIG_LINKS 15349 CONFIG_COMMANDS = $CONFIG_COMMANDS 15350 $ $0 $@ 15351 15352on `(hostname || uname -n) 2>/dev/null | sed 1q` 15353" 15354 15355_ACEOF 15356 15357case $ac_config_files in *" 15358"*) set x $ac_config_files; shift; ac_config_files=$*;; 15359esac 15360 15361case $ac_config_headers in *" 15362"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15363esac 15364 15365 15366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15367# Files that config.status was made for. 15368config_files="$ac_config_files" 15369config_headers="$ac_config_headers" 15370config_commands="$ac_config_commands" 15371 15372_ACEOF 15373 15374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15375ac_cs_usage="\ 15376\`$as_me' instantiates files from templates according to the 15377current configuration. 15378 15379Usage: $0 [OPTION]... [FILE]... 15380 15381 -h, --help print this help, then exit 15382 -V, --version print version number and configuration settings, then exit 15383 -q, --quiet, --silent 15384 do not print progress messages 15385 -d, --debug don't remove temporary files 15386 --recheck update $as_me by reconfiguring in the same conditions 15387 --file=FILE[:TEMPLATE] 15388 instantiate the configuration file FILE 15389 --header=FILE[:TEMPLATE] 15390 instantiate the configuration header FILE 15391 15392Configuration files: 15393$config_files 15394 15395Configuration headers: 15396$config_headers 15397 15398Configuration commands: 15399$config_commands 15400 15401Report bugs to <bug-autoconf@gnu.org>." 15402 15403_ACEOF 15404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15405ac_cs_version="\\ 15406xf86-video-intel config.status 2.7.1 15407configured by $0, generated by GNU Autoconf 2.63, 15408 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15409 15410Copyright (C) 2008 Free Software Foundation, Inc. 15411This config.status script is free software; the Free Software Foundation 15412gives unlimited permission to copy, distribute and modify it." 15413 15414ac_pwd='$ac_pwd' 15415srcdir='$srcdir' 15416INSTALL='$INSTALL' 15417MKDIR_P='$MKDIR_P' 15418AWK='$AWK' 15419test -n "\$AWK" || AWK=awk 15420_ACEOF 15421 15422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15423# The default lists apply if the user does not specify any file. 15424ac_need_defaults=: 15425while test $# != 0 15426do 15427 case $1 in 15428 --*=*) 15429 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15431 ac_shift=: 15432 ;; 15433 *) 15434 ac_option=$1 15435 ac_optarg=$2 15436 ac_shift=shift 15437 ;; 15438 esac 15439 15440 case $ac_option in 15441 # Handling of the options. 15442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15443 ac_cs_recheck=: ;; 15444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15445 $as_echo "$ac_cs_version"; exit ;; 15446 --debug | --debu | --deb | --de | --d | -d ) 15447 debug=: ;; 15448 --file | --fil | --fi | --f ) 15449 $ac_shift 15450 case $ac_optarg in 15451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15452 esac 15453 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 15454 ac_need_defaults=false;; 15455 --header | --heade | --head | --hea ) 15456 $ac_shift 15457 case $ac_optarg in 15458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15459 esac 15460 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 15461 ac_need_defaults=false;; 15462 --he | --h) 15463 # Conflict between --help and --header 15464 { $as_echo "$as_me: error: ambiguous option: $1 15465Try \`$0 --help' for more information." >&2 15466 { (exit 1); exit 1; }; };; 15467 --help | --hel | -h ) 15468 $as_echo "$ac_cs_usage"; exit ;; 15469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15470 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15471 ac_cs_silent=: ;; 15472 15473 # This is an error. 15474 -*) { $as_echo "$as_me: error: unrecognized option: $1 15475Try \`$0 --help' for more information." >&2 15476 { (exit 1); exit 1; }; } ;; 15477 15478 *) ac_config_targets="$ac_config_targets $1" 15479 ac_need_defaults=false ;; 15480 15481 esac 15482 shift 15483done 15484 15485ac_configure_extra_args= 15486 15487if $ac_cs_silent; then 15488 exec 6>/dev/null 15489 ac_configure_extra_args="$ac_configure_extra_args --silent" 15490fi 15491 15492_ACEOF 15493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15494if \$ac_cs_recheck; then 15495 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15496 shift 15497 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15498 CONFIG_SHELL='$SHELL' 15499 export CONFIG_SHELL 15500 exec "\$@" 15501fi 15502 15503_ACEOF 15504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15505exec 5>>config.log 15506{ 15507 echo 15508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15509## Running $as_me. ## 15510_ASBOX 15511 $as_echo "$ac_log" 15512} >&5 15513 15514_ACEOF 15515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15516# 15517# INIT-COMMANDS 15518# 15519AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15520 15521 15522# The HP-UX ksh and POSIX shell print the target directory to stdout 15523# if CDPATH is set. 15524(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15525 15526sed_quote_subst='$sed_quote_subst' 15527double_quote_subst='$double_quote_subst' 15528delay_variable_subst='$delay_variable_subst' 15529enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 15530macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 15531macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 15532enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 15533pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15534enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15535host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15536host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15537host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15538build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15539build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15540build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15541SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15542Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15543GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15544EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15545FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15546LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15547NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15548LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15549max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15550ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15551exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15552lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15553lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15554lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15555reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15556reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15557OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 15558deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15559file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15560AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15561AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15562STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15563RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15564old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15565old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15566old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15567CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15568CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15569compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15570GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15571lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15572lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15573lt_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"`' 15574lt_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"`' 15575objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15576SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15577ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15578MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15579lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15580lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15581lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15582lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15583lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15584need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15585DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15586NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15587LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15588OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15589OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15590libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15591shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15592extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15593archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15594enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15595export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15596whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15597compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15598old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15599old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15600archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15601archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15602module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15603module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15604with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15605allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15606no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15607hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15608hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15609hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15610hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15611hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15612hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15613hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15614hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15615inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15616link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15617fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15618always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15619export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15620exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15621include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15622prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15623file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15624variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15625need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15626need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15627version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15628runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15629shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15630shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15631libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15632library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15633soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15634postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15635postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15636finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15637finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15638hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15639sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15640sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15641hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15642enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15643enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15644enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15645old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15646striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15647 15648LTCC='$LTCC' 15649LTCFLAGS='$LTCFLAGS' 15650compiler='$compiler_DEFAULT' 15651 15652# Quote evaled strings. 15653for var in SED \ 15654GREP \ 15655EGREP \ 15656FGREP \ 15657LD \ 15658NM \ 15659LN_S \ 15660lt_SP2NL \ 15661lt_NL2SP \ 15662reload_flag \ 15663OBJDUMP \ 15664deplibs_check_method \ 15665file_magic_cmd \ 15666AR \ 15667AR_FLAGS \ 15668STRIP \ 15669RANLIB \ 15670CC \ 15671CFLAGS \ 15672compiler \ 15673lt_cv_sys_global_symbol_pipe \ 15674lt_cv_sys_global_symbol_to_cdecl \ 15675lt_cv_sys_global_symbol_to_c_name_address \ 15676lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15677SHELL \ 15678ECHO \ 15679lt_prog_compiler_no_builtin_flag \ 15680lt_prog_compiler_wl \ 15681lt_prog_compiler_pic \ 15682lt_prog_compiler_static \ 15683lt_cv_prog_compiler_c_o \ 15684need_locks \ 15685DSYMUTIL \ 15686NMEDIT \ 15687LIPO \ 15688OTOOL \ 15689OTOOL64 \ 15690shrext_cmds \ 15691export_dynamic_flag_spec \ 15692whole_archive_flag_spec \ 15693compiler_needs_object \ 15694with_gnu_ld \ 15695allow_undefined_flag \ 15696no_undefined_flag \ 15697hardcode_libdir_flag_spec \ 15698hardcode_libdir_flag_spec_ld \ 15699hardcode_libdir_separator \ 15700fix_srcfile_path \ 15701exclude_expsyms \ 15702include_expsyms \ 15703file_list_spec \ 15704variables_saved_for_relink \ 15705libname_spec \ 15706library_names_spec \ 15707soname_spec \ 15708finish_eval \ 15709old_striplib \ 15710striplib; do 15711 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15712 *[\\\\\\\`\\"\\\$]*) 15713 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15714 ;; 15715 *) 15716 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15717 ;; 15718 esac 15719done 15720 15721# Double-quote double-evaled strings. 15722for var in reload_cmds \ 15723old_postinstall_cmds \ 15724old_postuninstall_cmds \ 15725old_archive_cmds \ 15726extract_expsyms_cmds \ 15727old_archive_from_new_cmds \ 15728old_archive_from_expsyms_cmds \ 15729archive_cmds \ 15730archive_expsym_cmds \ 15731module_cmds \ 15732module_expsym_cmds \ 15733export_symbols_cmds \ 15734prelink_cmds \ 15735postinstall_cmds \ 15736postuninstall_cmds \ 15737finish_cmds \ 15738sys_lib_search_path_spec \ 15739sys_lib_dlsearch_path_spec; do 15740 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15741 *[\\\\\\\`\\"\\\$]*) 15742 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15743 ;; 15744 *) 15745 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15746 ;; 15747 esac 15748done 15749 15750# Fix-up fallback echo if it was mangled by the above quoting rules. 15751case \$lt_ECHO in 15752*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 15753 ;; 15754esac 15755 15756ac_aux_dir='$ac_aux_dir' 15757xsi_shell='$xsi_shell' 15758lt_shell_append='$lt_shell_append' 15759 15760# See if we are running on zsh, and set the options which allow our 15761# commands through without removal of \ escapes INIT. 15762if test -n "\${ZSH_VERSION+set}" ; then 15763 setopt NO_GLOB_SUBST 15764fi 15765 15766 15767 PACKAGE='$PACKAGE' 15768 VERSION='$VERSION' 15769 TIMESTAMP='$TIMESTAMP' 15770 RM='$RM' 15771 ofile='$ofile' 15772 15773 15774 15775 15776_ACEOF 15777 15778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15779 15780# Handling of arguments. 15781for ac_config_target in $ac_config_targets 15782do 15783 case $ac_config_target in 15784 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15785 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15786 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15788 "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;; 15789 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15790 "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;; 15791 "src/bios_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/bios_reader/Makefile" ;; 15792 "src/ch7017/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7017/Makefile" ;; 15793 "src/ch7xxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7xxx/Makefile" ;; 15794 "src/ivch/Makefile") CONFIG_FILES="$CONFIG_FILES src/ivch/Makefile" ;; 15795 "src/reg_dumper/Makefile") CONFIG_FILES="$CONFIG_FILES src/reg_dumper/Makefile" ;; 15796 "src/sil164/Makefile") CONFIG_FILES="$CONFIG_FILES src/sil164/Makefile" ;; 15797 "src/tfp410/Makefile") CONFIG_FILES="$CONFIG_FILES src/tfp410/Makefile" ;; 15798 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 15799 15800 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15801$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15802 { (exit 1); exit 1; }; };; 15803 esac 15804done 15805 15806 15807# If the user did not use the arguments to specify the items to instantiate, 15808# then the envvar interface is used. Set only those that are not. 15809# We use the long form for the default assignment because of an extremely 15810# bizarre bug on SunOS 4.1.3. 15811if $ac_need_defaults; then 15812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15815fi 15816 15817# Have a temporary directory for convenience. Make it in the build tree 15818# simply because there is no reason against having it here, and in addition, 15819# creating and moving files from /tmp can sometimes cause problems. 15820# Hook for its removal unless debugging. 15821# Note that there is a small window in which the directory will not be cleaned: 15822# after its creation but before its name has been assigned to `$tmp'. 15823$debug || 15824{ 15825 tmp= 15826 trap 'exit_status=$? 15827 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15828' 0 15829 trap '{ (exit 1); exit 1; }' 1 2 13 15 15830} 15831# Create a (secure) tmp directory for tmp files. 15832 15833{ 15834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15835 test -n "$tmp" && test -d "$tmp" 15836} || 15837{ 15838 tmp=./conf$$-$RANDOM 15839 (umask 077 && mkdir "$tmp") 15840} || 15841{ 15842 $as_echo "$as_me: cannot create a temporary directory in ." >&2 15843 { (exit 1); exit 1; } 15844} 15845 15846# Set up the scripts for CONFIG_FILES section. 15847# No need to generate them if there are no CONFIG_FILES. 15848# This happens for instance with `./config.status config.h'. 15849if test -n "$CONFIG_FILES"; then 15850 15851 15852ac_cr=' 15853' 15854ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15855if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15856 ac_cs_awk_cr='\\r' 15857else 15858 ac_cs_awk_cr=$ac_cr 15859fi 15860 15861echo 'BEGIN {' >"$tmp/subs1.awk" && 15862_ACEOF 15863 15864 15865{ 15866 echo "cat >conf$$subs.awk <<_ACEOF" && 15867 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15868 echo "_ACEOF" 15869} >conf$$subs.sh || 15870 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15871$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15872 { (exit 1); exit 1; }; } 15873ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15874ac_delim='%!_!# ' 15875for ac_last_try in false false false false false :; do 15876 . ./conf$$subs.sh || 15877 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15878$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15879 { (exit 1); exit 1; }; } 15880 15881 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15882 if test $ac_delim_n = $ac_delim_num; then 15883 break 15884 elif $ac_last_try; then 15885 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15886$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15887 { (exit 1); exit 1; }; } 15888 else 15889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15890 fi 15891done 15892rm -f conf$$subs.sh 15893 15894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15895cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15896_ACEOF 15897sed -n ' 15898h 15899s/^/S["/; s/!.*/"]=/ 15900p 15901g 15902s/^[^!]*!// 15903:repl 15904t repl 15905s/'"$ac_delim"'$// 15906t delim 15907:nl 15908h 15909s/\(.\{148\}\).*/\1/ 15910t more1 15911s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15912p 15913n 15914b repl 15915:more1 15916s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15917p 15918g 15919s/.\{148\}// 15920t nl 15921:delim 15922h 15923s/\(.\{148\}\).*/\1/ 15924t more2 15925s/["\\]/\\&/g; s/^/"/; s/$/"/ 15926p 15927b 15928:more2 15929s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15930p 15931g 15932s/.\{148\}// 15933t delim 15934' <conf$$subs.awk | sed ' 15935/^[^""]/{ 15936 N 15937 s/\n// 15938} 15939' >>$CONFIG_STATUS || ac_write_fail=1 15940rm -f conf$$subs.awk 15941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15942_ACAWK 15943cat >>"\$tmp/subs1.awk" <<_ACAWK && 15944 for (key in S) S_is_set[key] = 1 15945 FS = "" 15946 15947} 15948{ 15949 line = $ 0 15950 nfields = split(line, field, "@") 15951 substed = 0 15952 len = length(field[1]) 15953 for (i = 2; i < nfields; i++) { 15954 key = field[i] 15955 keylen = length(key) 15956 if (S_is_set[key]) { 15957 value = S[key] 15958 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15959 len += length(value) + length(field[++i]) 15960 substed = 1 15961 } else 15962 len += 1 + keylen 15963 } 15964 15965 print line 15966} 15967 15968_ACAWK 15969_ACEOF 15970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15971if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15972 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15973else 15974 cat 15975fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15976 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15977$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15978 { (exit 1); exit 1; }; } 15979_ACEOF 15980 15981# VPATH may cause trouble with some makes, so we remove $(srcdir), 15982# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15983# trailing colons and then remove the whole line if VPATH becomes empty 15984# (actually we leave an empty line to preserve line numbers). 15985if test "x$srcdir" = x.; then 15986 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15987s/:*\$(srcdir):*/:/ 15988s/:*\${srcdir}:*/:/ 15989s/:*@srcdir@:*/:/ 15990s/^\([^=]*=[ ]*\):*/\1/ 15991s/:*$// 15992s/^[^=]*=[ ]*$// 15993}' 15994fi 15995 15996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15997fi # test -n "$CONFIG_FILES" 15998 15999# Set up the scripts for CONFIG_HEADERS section. 16000# No need to generate them if there are no CONFIG_HEADERS. 16001# This happens for instance with `./config.status Makefile'. 16002if test -n "$CONFIG_HEADERS"; then 16003cat >"$tmp/defines.awk" <<\_ACAWK || 16004BEGIN { 16005_ACEOF 16006 16007# Transform confdefs.h into an awk script `defines.awk', embedded as 16008# here-document in config.status, that substitutes the proper values into 16009# config.h.in to produce config.h. 16010 16011# Create a delimiter string that does not exist in confdefs.h, to ease 16012# handling of long lines. 16013ac_delim='%!_!# ' 16014for ac_last_try in false false :; do 16015 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16016 if test -z "$ac_t"; then 16017 break 16018 elif $ac_last_try; then 16019 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 16020$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 16021 { (exit 1); exit 1; }; } 16022 else 16023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16024 fi 16025done 16026 16027# For the awk script, D is an array of macro values keyed by name, 16028# likewise P contains macro parameters if any. Preserve backslash 16029# newline sequences. 16030 16031ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16032sed -n ' 16033s/.\{148\}/&'"$ac_delim"'/g 16034t rset 16035:rset 16036s/^[ ]*#[ ]*define[ ][ ]*/ / 16037t def 16038d 16039:def 16040s/\\$// 16041t bsnl 16042s/["\\]/\\&/g 16043s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16044D["\1"]=" \3"/p 16045s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16046d 16047:bsnl 16048s/["\\]/\\&/g 16049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16050D["\1"]=" \3\\\\\\n"\\/p 16051t cont 16052s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16053t cont 16054d 16055:cont 16056n 16057s/.\{148\}/&'"$ac_delim"'/g 16058t clear 16059:clear 16060s/\\$// 16061t bsnlc 16062s/["\\]/\\&/g; s/^/"/; s/$/"/p 16063d 16064:bsnlc 16065s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16066b cont 16067' <confdefs.h | sed ' 16068s/'"$ac_delim"'/"\\\ 16069"/g' >>$CONFIG_STATUS || ac_write_fail=1 16070 16071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16072 for (key in D) D_is_set[key] = 1 16073 FS = "" 16074} 16075/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16076 line = \$ 0 16077 split(line, arg, " ") 16078 if (arg[1] == "#") { 16079 defundef = arg[2] 16080 mac1 = arg[3] 16081 } else { 16082 defundef = substr(arg[1], 2) 16083 mac1 = arg[2] 16084 } 16085 split(mac1, mac2, "(") #) 16086 macro = mac2[1] 16087 prefix = substr(line, 1, index(line, defundef) - 1) 16088 if (D_is_set[macro]) { 16089 # Preserve the white space surrounding the "#". 16090 print prefix "define", macro P[macro] D[macro] 16091 next 16092 } else { 16093 # Replace #undef with comments. This is necessary, for example, 16094 # in the case of _POSIX_SOURCE, which is predefined and required 16095 # on some systems where configure will not decide to define it. 16096 if (defundef == "undef") { 16097 print "/*", prefix defundef, macro, "*/" 16098 next 16099 } 16100 } 16101} 16102{ print } 16103_ACAWK 16104_ACEOF 16105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16106 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 16107$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 16108 { (exit 1); exit 1; }; } 16109fi # test -n "$CONFIG_HEADERS" 16110 16111 16112eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16113shift 16114for ac_tag 16115do 16116 case $ac_tag in 16117 :[FHLC]) ac_mode=$ac_tag; continue;; 16118 esac 16119 case $ac_mode$ac_tag in 16120 :[FHL]*:*);; 16121 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 16122$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 16123 { (exit 1); exit 1; }; };; 16124 :[FH]-) ac_tag=-:-;; 16125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16126 esac 16127 ac_save_IFS=$IFS 16128 IFS=: 16129 set x $ac_tag 16130 IFS=$ac_save_IFS 16131 shift 16132 ac_file=$1 16133 shift 16134 16135 case $ac_mode in 16136 :L) ac_source=$1;; 16137 :[FH]) 16138 ac_file_inputs= 16139 for ac_f 16140 do 16141 case $ac_f in 16142 -) ac_f="$tmp/stdin";; 16143 *) # Look for the file first in the build tree, then in the source tree 16144 # (if the path is not absolute). The absolute path cannot be DOS-style, 16145 # because $ac_f cannot contain `:'. 16146 test -f "$ac_f" || 16147 case $ac_f in 16148 [\\/$]*) false;; 16149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16150 esac || 16151 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 16152$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 16153 { (exit 1); exit 1; }; };; 16154 esac 16155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16156 ac_file_inputs="$ac_file_inputs '$ac_f'" 16157 done 16158 16159 # Let's still pretend it is `configure' which instantiates (i.e., don't 16160 # use $as_me), people would be surprised to read: 16161 # /* config.h. Generated by config.status. */ 16162 configure_input='Generated from '` 16163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16164 `' by configure.' 16165 if test x"$ac_file" != x-; then 16166 configure_input="$ac_file. $configure_input" 16167 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 16168$as_echo "$as_me: creating $ac_file" >&6;} 16169 fi 16170 # Neutralize special characters interpreted by sed in replacement strings. 16171 case $configure_input in #( 16172 *\&* | *\|* | *\\* ) 16173 ac_sed_conf_input=`$as_echo "$configure_input" | 16174 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16175 *) ac_sed_conf_input=$configure_input;; 16176 esac 16177 16178 case $ac_tag in 16179 *:-:* | *:-) cat >"$tmp/stdin" \ 16180 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16181$as_echo "$as_me: error: could not create $ac_file" >&2;} 16182 { (exit 1); exit 1; }; } ;; 16183 esac 16184 ;; 16185 esac 16186 16187 ac_dir=`$as_dirname -- "$ac_file" || 16188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16189 X"$ac_file" : 'X\(//\)[^/]' \| \ 16190 X"$ac_file" : 'X\(//\)$' \| \ 16191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16192$as_echo X"$ac_file" | 16193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16194 s//\1/ 16195 q 16196 } 16197 /^X\(\/\/\)[^/].*/{ 16198 s//\1/ 16199 q 16200 } 16201 /^X\(\/\/\)$/{ 16202 s//\1/ 16203 q 16204 } 16205 /^X\(\/\).*/{ 16206 s//\1/ 16207 q 16208 } 16209 s/.*/./; q'` 16210 { as_dir="$ac_dir" 16211 case $as_dir in #( 16212 -*) as_dir=./$as_dir;; 16213 esac 16214 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16215 as_dirs= 16216 while :; do 16217 case $as_dir in #( 16218 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16219 *) as_qdir=$as_dir;; 16220 esac 16221 as_dirs="'$as_qdir' $as_dirs" 16222 as_dir=`$as_dirname -- "$as_dir" || 16223$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16224 X"$as_dir" : 'X\(//\)[^/]' \| \ 16225 X"$as_dir" : 'X\(//\)$' \| \ 16226 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16227$as_echo X"$as_dir" | 16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16229 s//\1/ 16230 q 16231 } 16232 /^X\(\/\/\)[^/].*/{ 16233 s//\1/ 16234 q 16235 } 16236 /^X\(\/\/\)$/{ 16237 s//\1/ 16238 q 16239 } 16240 /^X\(\/\).*/{ 16241 s//\1/ 16242 q 16243 } 16244 s/.*/./; q'` 16245 test -d "$as_dir" && break 16246 done 16247 test -z "$as_dirs" || eval "mkdir $as_dirs" 16248 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16249$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16250 { (exit 1); exit 1; }; }; } 16251 ac_builddir=. 16252 16253case "$ac_dir" in 16254.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16255*) 16256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16257 # A ".." for each directory in $ac_dir_suffix. 16258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16259 case $ac_top_builddir_sub in 16260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16262 esac ;; 16263esac 16264ac_abs_top_builddir=$ac_pwd 16265ac_abs_builddir=$ac_pwd$ac_dir_suffix 16266# for backward compatibility: 16267ac_top_builddir=$ac_top_build_prefix 16268 16269case $srcdir in 16270 .) # We are building in place. 16271 ac_srcdir=. 16272 ac_top_srcdir=$ac_top_builddir_sub 16273 ac_abs_top_srcdir=$ac_pwd ;; 16274 [\\/]* | ?:[\\/]* ) # Absolute name. 16275 ac_srcdir=$srcdir$ac_dir_suffix; 16276 ac_top_srcdir=$srcdir 16277 ac_abs_top_srcdir=$srcdir ;; 16278 *) # Relative name. 16279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16280 ac_top_srcdir=$ac_top_build_prefix$srcdir 16281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16282esac 16283ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16284 16285 16286 case $ac_mode in 16287 :F) 16288 # 16289 # CONFIG_FILE 16290 # 16291 16292 case $INSTALL in 16293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16295 esac 16296 ac_MKDIR_P=$MKDIR_P 16297 case $MKDIR_P in 16298 [\\/$]* | ?:[\\/]* ) ;; 16299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16300 esac 16301_ACEOF 16302 16303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16304# If the template does not know about datarootdir, expand it. 16305# FIXME: This hack should be removed a few years after 2.60. 16306ac_datarootdir_hack=; ac_datarootdir_seen= 16307 16308ac_sed_dataroot=' 16309/datarootdir/ { 16310 p 16311 q 16312} 16313/@datadir@/p 16314/@docdir@/p 16315/@infodir@/p 16316/@localedir@/p 16317/@mandir@/p 16318' 16319case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16320*datarootdir*) ac_datarootdir_seen=yes;; 16321*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16322 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16323$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16324_ACEOF 16325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16326 ac_datarootdir_hack=' 16327 s&@datadir@&$datadir&g 16328 s&@docdir@&$docdir&g 16329 s&@infodir@&$infodir&g 16330 s&@localedir@&$localedir&g 16331 s&@mandir@&$mandir&g 16332 s&\\\${datarootdir}&$datarootdir&g' ;; 16333esac 16334_ACEOF 16335 16336# Neutralize VPATH when `$srcdir' = `.'. 16337# Shell code in configure.ac might set extrasub. 16338# FIXME: do we really want to maintain this feature? 16339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16340ac_sed_extra="$ac_vpsub 16341$extrasub 16342_ACEOF 16343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16344:t 16345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16346s|@configure_input@|$ac_sed_conf_input|;t t 16347s&@top_builddir@&$ac_top_builddir_sub&;t t 16348s&@top_build_prefix@&$ac_top_build_prefix&;t t 16349s&@srcdir@&$ac_srcdir&;t t 16350s&@abs_srcdir@&$ac_abs_srcdir&;t t 16351s&@top_srcdir@&$ac_top_srcdir&;t t 16352s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16353s&@builddir@&$ac_builddir&;t t 16354s&@abs_builddir@&$ac_abs_builddir&;t t 16355s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16356s&@INSTALL@&$ac_INSTALL&;t t 16357s&@MKDIR_P@&$ac_MKDIR_P&;t t 16358$ac_datarootdir_hack 16359" 16360eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16361 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16362$as_echo "$as_me: error: could not create $ac_file" >&2;} 16363 { (exit 1); exit 1; }; } 16364 16365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16368 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16369which seems to be undefined. Please make sure it is defined." >&5 16370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16371which seems to be undefined. Please make sure it is defined." >&2;} 16372 16373 rm -f "$tmp/stdin" 16374 case $ac_file in 16375 -) cat "$tmp/out" && rm -f "$tmp/out";; 16376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16377 esac \ 16378 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16379$as_echo "$as_me: error: could not create $ac_file" >&2;} 16380 { (exit 1); exit 1; }; } 16381 ;; 16382 :H) 16383 # 16384 # CONFIG_HEADER 16385 # 16386 if test x"$ac_file" != x-; then 16387 { 16388 $as_echo "/* $configure_input */" \ 16389 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16390 } >"$tmp/config.h" \ 16391 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16392$as_echo "$as_me: error: could not create $ac_file" >&2;} 16393 { (exit 1); exit 1; }; } 16394 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16395 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 16396$as_echo "$as_me: $ac_file is unchanged" >&6;} 16397 else 16398 rm -f "$ac_file" 16399 mv "$tmp/config.h" "$ac_file" \ 16400 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16401$as_echo "$as_me: error: could not create $ac_file" >&2;} 16402 { (exit 1); exit 1; }; } 16403 fi 16404 else 16405 $as_echo "/* $configure_input */" \ 16406 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16407 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 16408$as_echo "$as_me: error: could not create -" >&2;} 16409 { (exit 1); exit 1; }; } 16410 fi 16411# Compute "$ac_file"'s index in $config_headers. 16412_am_arg="$ac_file" 16413_am_stamp_count=1 16414for _am_header in $config_headers :; do 16415 case $_am_header in 16416 $_am_arg | $_am_arg:* ) 16417 break ;; 16418 * ) 16419 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16420 esac 16421done 16422echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16423$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16424 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16425 X"$_am_arg" : 'X\(//\)$' \| \ 16426 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16427$as_echo X"$_am_arg" | 16428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16429 s//\1/ 16430 q 16431 } 16432 /^X\(\/\/\)[^/].*/{ 16433 s//\1/ 16434 q 16435 } 16436 /^X\(\/\/\)$/{ 16437 s//\1/ 16438 q 16439 } 16440 /^X\(\/\).*/{ 16441 s//\1/ 16442 q 16443 } 16444 s/.*/./; q'`/stamp-h$_am_stamp_count 16445 ;; 16446 16447 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 16448$as_echo "$as_me: executing $ac_file commands" >&6;} 16449 ;; 16450 esac 16451 16452 16453 case $ac_file$ac_mode in 16454 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 16455# are listed without --file. Let's play safe and only enable the eval 16456# if we detect the quoting. 16457case $CONFIG_FILES in 16458*\'*) eval set x "$CONFIG_FILES" ;; 16459*) set x $CONFIG_FILES ;; 16460esac 16461shift 16462for mf 16463do 16464 # Strip MF so we end up with the name of the file. 16465 mf=`echo "$mf" | sed -e 's/:.*$//'` 16466 # Check whether this is an Automake generated Makefile or not. 16467 # We used to match only the files named `Makefile.in', but 16468 # some people rename them; so instead we look at the file content. 16469 # Grep'ing the first line is not enough: some people post-process 16470 # each Makefile.in and add a new line on top of each file to say so. 16471 # Grep'ing the whole file is not good either: AIX grep has a line 16472 # limit of 2048, but all sed's we know have understand at least 4000. 16473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16474 dirpart=`$as_dirname -- "$mf" || 16475$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16476 X"$mf" : 'X\(//\)[^/]' \| \ 16477 X"$mf" : 'X\(//\)$' \| \ 16478 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16479$as_echo X"$mf" | 16480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16481 s//\1/ 16482 q 16483 } 16484 /^X\(\/\/\)[^/].*/{ 16485 s//\1/ 16486 q 16487 } 16488 /^X\(\/\/\)$/{ 16489 s//\1/ 16490 q 16491 } 16492 /^X\(\/\).*/{ 16493 s//\1/ 16494 q 16495 } 16496 s/.*/./; q'` 16497 else 16498 continue 16499 fi 16500 # Extract the definition of DEPDIR, am__include, and am__quote 16501 # from the Makefile without running `make'. 16502 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16503 test -z "$DEPDIR" && continue 16504 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16505 test -z "am__include" && continue 16506 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16507 # When using ansi2knr, U may be empty or an underscore; expand it 16508 U=`sed -n 's/^U = //p' < "$mf"` 16509 # Find all dependency output files, they are included files with 16510 # $(DEPDIR) in their names. We invoke sed twice because it is the 16511 # simplest approach to changing $(DEPDIR) to its actual value in the 16512 # expansion. 16513 for file in `sed -n " 16514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16516 # Make sure the directory exists. 16517 test -f "$dirpart/$file" && continue 16518 fdir=`$as_dirname -- "$file" || 16519$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16520 X"$file" : 'X\(//\)[^/]' \| \ 16521 X"$file" : 'X\(//\)$' \| \ 16522 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16523$as_echo X"$file" | 16524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16525 s//\1/ 16526 q 16527 } 16528 /^X\(\/\/\)[^/].*/{ 16529 s//\1/ 16530 q 16531 } 16532 /^X\(\/\/\)$/{ 16533 s//\1/ 16534 q 16535 } 16536 /^X\(\/\).*/{ 16537 s//\1/ 16538 q 16539 } 16540 s/.*/./; q'` 16541 { as_dir=$dirpart/$fdir 16542 case $as_dir in #( 16543 -*) as_dir=./$as_dir;; 16544 esac 16545 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16546 as_dirs= 16547 while :; do 16548 case $as_dir in #( 16549 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16550 *) as_qdir=$as_dir;; 16551 esac 16552 as_dirs="'$as_qdir' $as_dirs" 16553 as_dir=`$as_dirname -- "$as_dir" || 16554$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16555 X"$as_dir" : 'X\(//\)[^/]' \| \ 16556 X"$as_dir" : 'X\(//\)$' \| \ 16557 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16558$as_echo X"$as_dir" | 16559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16560 s//\1/ 16561 q 16562 } 16563 /^X\(\/\/\)[^/].*/{ 16564 s//\1/ 16565 q 16566 } 16567 /^X\(\/\/\)$/{ 16568 s//\1/ 16569 q 16570 } 16571 /^X\(\/\).*/{ 16572 s//\1/ 16573 q 16574 } 16575 s/.*/./; q'` 16576 test -d "$as_dir" && break 16577 done 16578 test -z "$as_dirs" || eval "mkdir $as_dirs" 16579 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16580$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16581 { (exit 1); exit 1; }; }; } 16582 # echo "creating $dirpart/$file" 16583 echo '# dummy' > "$dirpart/$file" 16584 done 16585done 16586 ;; 16587 "libtool":C) 16588 16589 # See if we are running on zsh, and set the options which allow our 16590 # commands through without removal of \ escapes. 16591 if test -n "${ZSH_VERSION+set}" ; then 16592 setopt NO_GLOB_SUBST 16593 fi 16594 16595 cfgfile="${ofile}T" 16596 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16597 $RM "$cfgfile" 16598 16599 cat <<_LT_EOF >> "$cfgfile" 16600#! $SHELL 16601 16602# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16603# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16605# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16606# 16607# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16608# 2006, 2007, 2008 Free Software Foundation, Inc. 16609# Written by Gordon Matzigkeit, 1996 16610# 16611# This file is part of GNU Libtool. 16612# 16613# GNU Libtool is free software; you can redistribute it and/or 16614# modify it under the terms of the GNU General Public License as 16615# published by the Free Software Foundation; either version 2 of 16616# the License, or (at your option) any later version. 16617# 16618# As a special exception to the GNU General Public License, 16619# if you distribute this file as part of a program or library that 16620# is built using GNU Libtool, you may include this file under the 16621# same distribution terms that you use for the rest of that program. 16622# 16623# GNU Libtool is distributed in the hope that it will be useful, 16624# but WITHOUT ANY WARRANTY; without even the implied warranty of 16625# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16626# GNU General Public License for more details. 16627# 16628# You should have received a copy of the GNU General Public License 16629# along with GNU Libtool; see the file COPYING. If not, a copy 16630# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16631# obtained by writing to the Free Software Foundation, Inc., 16632# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16633 16634 16635# The names of the tagged configurations supported by this script. 16636available_tags="" 16637 16638# ### BEGIN LIBTOOL CONFIG 16639 16640# Whether or not to build static libraries. 16641build_old_libs=$enable_static 16642 16643# Which release of libtool.m4 was used? 16644macro_version=$macro_version 16645macro_revision=$macro_revision 16646 16647# Whether or not to build shared libraries. 16648build_libtool_libs=$enable_shared 16649 16650# What type of objects to build. 16651pic_mode=$pic_mode 16652 16653# Whether or not to optimize for fast installation. 16654fast_install=$enable_fast_install 16655 16656# The host system. 16657host_alias=$host_alias 16658host=$host 16659host_os=$host_os 16660 16661# The build system. 16662build_alias=$build_alias 16663build=$build 16664build_os=$build_os 16665 16666# A sed program that does not truncate output. 16667SED=$lt_SED 16668 16669# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16670Xsed="\$SED -e 1s/^X//" 16671 16672# A grep program that handles long lines. 16673GREP=$lt_GREP 16674 16675# An ERE matcher. 16676EGREP=$lt_EGREP 16677 16678# A literal string matcher. 16679FGREP=$lt_FGREP 16680 16681# A BSD- or MS-compatible name lister. 16682NM=$lt_NM 16683 16684# Whether we need soft or hard links. 16685LN_S=$lt_LN_S 16686 16687# What is the maximum length of a command? 16688max_cmd_len=$max_cmd_len 16689 16690# Object file suffix (normally "o"). 16691objext=$ac_objext 16692 16693# Executable file suffix (normally ""). 16694exeext=$exeext 16695 16696# whether the shell understands "unset". 16697lt_unset=$lt_unset 16698 16699# turn spaces into newlines. 16700SP2NL=$lt_lt_SP2NL 16701 16702# turn newlines into spaces. 16703NL2SP=$lt_lt_NL2SP 16704 16705# How to create reloadable object files. 16706reload_flag=$lt_reload_flag 16707reload_cmds=$lt_reload_cmds 16708 16709# An object symbol dumper. 16710OBJDUMP=$lt_OBJDUMP 16711 16712# Method to check whether dependent libraries are shared objects. 16713deplibs_check_method=$lt_deplibs_check_method 16714 16715# Command to use when deplibs_check_method == "file_magic". 16716file_magic_cmd=$lt_file_magic_cmd 16717 16718# The archiver. 16719AR=$lt_AR 16720AR_FLAGS=$lt_AR_FLAGS 16721 16722# A symbol stripping program. 16723STRIP=$lt_STRIP 16724 16725# Commands used to install an old-style archive. 16726RANLIB=$lt_RANLIB 16727old_postinstall_cmds=$lt_old_postinstall_cmds 16728old_postuninstall_cmds=$lt_old_postuninstall_cmds 16729 16730# A C compiler. 16731LTCC=$lt_CC 16732 16733# LTCC compiler flags. 16734LTCFLAGS=$lt_CFLAGS 16735 16736# Take the output of nm and produce a listing of raw symbols and C names. 16737global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16738 16739# Transform the output of nm in a proper C declaration. 16740global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16741 16742# Transform the output of nm in a C name address pair. 16743global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16744 16745# Transform the output of nm in a C name address pair when lib prefix is needed. 16746global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16747 16748# The name of the directory that contains temporary libtool files. 16749objdir=$objdir 16750 16751# Shell to use when invoking shell scripts. 16752SHELL=$lt_SHELL 16753 16754# An echo program that does not interpret backslashes. 16755ECHO=$lt_ECHO 16756 16757# Used to examine libraries when file_magic_cmd begins with "file". 16758MAGIC_CMD=$MAGIC_CMD 16759 16760# Must we lock files when doing compilation? 16761need_locks=$lt_need_locks 16762 16763# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16764DSYMUTIL=$lt_DSYMUTIL 16765 16766# Tool to change global to local symbols on Mac OS X. 16767NMEDIT=$lt_NMEDIT 16768 16769# Tool to manipulate fat objects and archives on Mac OS X. 16770LIPO=$lt_LIPO 16771 16772# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16773OTOOL=$lt_OTOOL 16774 16775# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16776OTOOL64=$lt_OTOOL64 16777 16778# Old archive suffix (normally "a"). 16779libext=$libext 16780 16781# Shared library suffix (normally ".so"). 16782shrext_cmds=$lt_shrext_cmds 16783 16784# The commands to extract the exported symbol list from a shared archive. 16785extract_expsyms_cmds=$lt_extract_expsyms_cmds 16786 16787# Variables whose values should be saved in libtool wrapper scripts and 16788# restored at link time. 16789variables_saved_for_relink=$lt_variables_saved_for_relink 16790 16791# Do we need the "lib" prefix for modules? 16792need_lib_prefix=$need_lib_prefix 16793 16794# Do we need a version for libraries? 16795need_version=$need_version 16796 16797# Library versioning type. 16798version_type=$version_type 16799 16800# Shared library runtime path variable. 16801runpath_var=$runpath_var 16802 16803# Shared library path variable. 16804shlibpath_var=$shlibpath_var 16805 16806# Is shlibpath searched before the hard-coded library search path? 16807shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16808 16809# Format of library name prefix. 16810libname_spec=$lt_libname_spec 16811 16812# List of archive names. First name is the real one, the rest are links. 16813# The last name is the one that the linker finds with -lNAME 16814library_names_spec=$lt_library_names_spec 16815 16816# The coded name of the library, if different from the real name. 16817soname_spec=$lt_soname_spec 16818 16819# Command to use after installation of a shared archive. 16820postinstall_cmds=$lt_postinstall_cmds 16821 16822# Command to use after uninstallation of a shared archive. 16823postuninstall_cmds=$lt_postuninstall_cmds 16824 16825# Commands used to finish a libtool library installation in a directory. 16826finish_cmds=$lt_finish_cmds 16827 16828# As "finish_cmds", except a single script fragment to be evaled but 16829# not shown. 16830finish_eval=$lt_finish_eval 16831 16832# Whether we should hardcode library paths into libraries. 16833hardcode_into_libs=$hardcode_into_libs 16834 16835# Compile-time system search path for libraries. 16836sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16837 16838# Run-time system search path for libraries. 16839sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16840 16841# Whether dlopen is supported. 16842dlopen_support=$enable_dlopen 16843 16844# Whether dlopen of programs is supported. 16845dlopen_self=$enable_dlopen_self 16846 16847# Whether dlopen of statically linked programs is supported. 16848dlopen_self_static=$enable_dlopen_self_static 16849 16850# Commands to strip libraries. 16851old_striplib=$lt_old_striplib 16852striplib=$lt_striplib 16853 16854 16855# The linker used to build libraries. 16856LD=$lt_LD 16857 16858# Commands used to build an old-style archive. 16859old_archive_cmds=$lt_old_archive_cmds 16860 16861# A language specific compiler. 16862CC=$lt_compiler 16863 16864# Is the compiler the GNU compiler? 16865with_gcc=$GCC 16866 16867# Compiler flag to turn off builtin functions. 16868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16869 16870# How to pass a linker flag through the compiler. 16871wl=$lt_lt_prog_compiler_wl 16872 16873# Additional compiler flags for building library objects. 16874pic_flag=$lt_lt_prog_compiler_pic 16875 16876# Compiler flag to prevent dynamic linking. 16877link_static_flag=$lt_lt_prog_compiler_static 16878 16879# Does compiler simultaneously support -c and -o options? 16880compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16881 16882# Whether or not to add -lc for building shared libraries. 16883build_libtool_need_lc=$archive_cmds_need_lc 16884 16885# Whether or not to disallow shared libs when runtime libs are static. 16886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16887 16888# Compiler flag to allow reflexive dlopens. 16889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16890 16891# Compiler flag to generate shared objects directly from archives. 16892whole_archive_flag_spec=$lt_whole_archive_flag_spec 16893 16894# Whether the compiler copes with passing no objects directly. 16895compiler_needs_object=$lt_compiler_needs_object 16896 16897# Create an old-style archive from a shared archive. 16898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16899 16900# Create a temporary old-style archive to link instead of a shared archive. 16901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16902 16903# Commands used to build a shared archive. 16904archive_cmds=$lt_archive_cmds 16905archive_expsym_cmds=$lt_archive_expsym_cmds 16906 16907# Commands used to build a loadable module if different from building 16908# a shared archive. 16909module_cmds=$lt_module_cmds 16910module_expsym_cmds=$lt_module_expsym_cmds 16911 16912# Whether we are building with GNU ld or not. 16913with_gnu_ld=$lt_with_gnu_ld 16914 16915# Flag that allows shared libraries with undefined symbols to be built. 16916allow_undefined_flag=$lt_allow_undefined_flag 16917 16918# Flag that enforces no undefined symbols. 16919no_undefined_flag=$lt_no_undefined_flag 16920 16921# Flag to hardcode \$libdir into a binary during linking. 16922# This must work even if \$libdir does not exist 16923hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16924 16925# If ld is used when linking, flag to hardcode \$libdir into a binary 16926# during linking. This must work even if \$libdir does not exist. 16927hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16928 16929# Whether we need a single "-rpath" flag with a separated argument. 16930hardcode_libdir_separator=$lt_hardcode_libdir_separator 16931 16932# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16933# DIR into the resulting binary. 16934hardcode_direct=$hardcode_direct 16935 16936# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16937# DIR into the resulting binary and the resulting library dependency is 16938# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16939# library is relocated. 16940hardcode_direct_absolute=$hardcode_direct_absolute 16941 16942# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16943# into the resulting binary. 16944hardcode_minus_L=$hardcode_minus_L 16945 16946# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16947# into the resulting binary. 16948hardcode_shlibpath_var=$hardcode_shlibpath_var 16949 16950# Set to "yes" if building a shared library automatically hardcodes DIR 16951# into the library and all subsequent libraries and executables linked 16952# against it. 16953hardcode_automatic=$hardcode_automatic 16954 16955# Set to yes if linker adds runtime paths of dependent libraries 16956# to runtime path list. 16957inherit_rpath=$inherit_rpath 16958 16959# Whether libtool must link a program against all its dependency libraries. 16960link_all_deplibs=$link_all_deplibs 16961 16962# Fix the shell variable \$srcfile for the compiler. 16963fix_srcfile_path=$lt_fix_srcfile_path 16964 16965# Set to "yes" if exported symbols are required. 16966always_export_symbols=$always_export_symbols 16967 16968# The commands to list exported symbols. 16969export_symbols_cmds=$lt_export_symbols_cmds 16970 16971# Symbols that should not be listed in the preloaded symbols. 16972exclude_expsyms=$lt_exclude_expsyms 16973 16974# Symbols that must always be exported. 16975include_expsyms=$lt_include_expsyms 16976 16977# Commands necessary for linking programs (against libraries) with templates. 16978prelink_cmds=$lt_prelink_cmds 16979 16980# Specify filename containing input files. 16981file_list_spec=$lt_file_list_spec 16982 16983# How to hardcode a shared library path into an executable. 16984hardcode_action=$hardcode_action 16985 16986# ### END LIBTOOL CONFIG 16987 16988_LT_EOF 16989 16990 case $host_os in 16991 aix3*) 16992 cat <<\_LT_EOF >> "$cfgfile" 16993# AIX sometimes has problems with the GCC collect2 program. For some 16994# reason, if we set the COLLECT_NAMES environment variable, the problems 16995# vanish in a puff of smoke. 16996if test "X${COLLECT_NAMES+set}" != Xset; then 16997 COLLECT_NAMES= 16998 export COLLECT_NAMES 16999fi 17000_LT_EOF 17001 ;; 17002 esac 17003 17004 17005ltmain="$ac_aux_dir/ltmain.sh" 17006 17007 17008 # We use sed instead of cat because bash on DJGPP gets confused if 17009 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17010 # text mode, it properly converts lines to CR/LF. This bash problem 17011 # is reportedly fixed, but why not run on old versions too? 17012 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17013 || (rm -f "$cfgfile"; exit 1) 17014 17015 case $xsi_shell in 17016 yes) 17017 cat << \_LT_EOF >> "$cfgfile" 17018 17019# func_dirname file append nondir_replacement 17020# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17021# otherwise set result to NONDIR_REPLACEMENT. 17022func_dirname () 17023{ 17024 case ${1} in 17025 */*) func_dirname_result="${1%/*}${2}" ;; 17026 * ) func_dirname_result="${3}" ;; 17027 esac 17028} 17029 17030# func_basename file 17031func_basename () 17032{ 17033 func_basename_result="${1##*/}" 17034} 17035 17036# func_dirname_and_basename file append nondir_replacement 17037# perform func_basename and func_dirname in a single function 17038# call: 17039# dirname: Compute the dirname of FILE. If nonempty, 17040# add APPEND to the result, otherwise set result 17041# to NONDIR_REPLACEMENT. 17042# value returned in "$func_dirname_result" 17043# basename: Compute filename of FILE. 17044# value retuned in "$func_basename_result" 17045# Implementation must be kept synchronized with func_dirname 17046# and func_basename. For efficiency, we do not delegate to 17047# those functions but instead duplicate the functionality here. 17048func_dirname_and_basename () 17049{ 17050 case ${1} in 17051 */*) func_dirname_result="${1%/*}${2}" ;; 17052 * ) func_dirname_result="${3}" ;; 17053 esac 17054 func_basename_result="${1##*/}" 17055} 17056 17057# func_stripname prefix suffix name 17058# strip PREFIX and SUFFIX off of NAME. 17059# PREFIX and SUFFIX must not contain globbing or regex special 17060# characters, hashes, percent signs, but SUFFIX may contain a leading 17061# dot (in which case that matches only a dot). 17062func_stripname () 17063{ 17064 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17065 # positional parameters, so assign one to ordinary parameter first. 17066 func_stripname_result=${3} 17067 func_stripname_result=${func_stripname_result#"${1}"} 17068 func_stripname_result=${func_stripname_result%"${2}"} 17069} 17070 17071# func_opt_split 17072func_opt_split () 17073{ 17074 func_opt_split_opt=${1%%=*} 17075 func_opt_split_arg=${1#*=} 17076} 17077 17078# func_lo2o object 17079func_lo2o () 17080{ 17081 case ${1} in 17082 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17083 *) func_lo2o_result=${1} ;; 17084 esac 17085} 17086 17087# func_xform libobj-or-source 17088func_xform () 17089{ 17090 func_xform_result=${1%.*}.lo 17091} 17092 17093# func_arith arithmetic-term... 17094func_arith () 17095{ 17096 func_arith_result=$(( $* )) 17097} 17098 17099# func_len string 17100# STRING may not start with a hyphen. 17101func_len () 17102{ 17103 func_len_result=${#1} 17104} 17105 17106_LT_EOF 17107 ;; 17108 *) # Bourne compatible functions. 17109 cat << \_LT_EOF >> "$cfgfile" 17110 17111# func_dirname file append nondir_replacement 17112# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17113# otherwise set result to NONDIR_REPLACEMENT. 17114func_dirname () 17115{ 17116 # Extract subdirectory from the argument. 17117 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17118 if test "X$func_dirname_result" = "X${1}"; then 17119 func_dirname_result="${3}" 17120 else 17121 func_dirname_result="$func_dirname_result${2}" 17122 fi 17123} 17124 17125# func_basename file 17126func_basename () 17127{ 17128 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17129} 17130 17131 17132# func_stripname prefix suffix name 17133# strip PREFIX and SUFFIX off of NAME. 17134# PREFIX and SUFFIX must not contain globbing or regex special 17135# characters, hashes, percent signs, but SUFFIX may contain a leading 17136# dot (in which case that matches only a dot). 17137# func_strip_suffix prefix name 17138func_stripname () 17139{ 17140 case ${2} in 17141 .*) func_stripname_result=`$ECHO "X${3}" \ 17142 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17143 *) func_stripname_result=`$ECHO "X${3}" \ 17144 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17145 esac 17146} 17147 17148# sed scripts: 17149my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17150my_sed_long_arg='1s/^-[^=]*=//' 17151 17152# func_opt_split 17153func_opt_split () 17154{ 17155 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17156 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17157} 17158 17159# func_lo2o object 17160func_lo2o () 17161{ 17162 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17163} 17164 17165# func_xform libobj-or-source 17166func_xform () 17167{ 17168 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17169} 17170 17171# func_arith arithmetic-term... 17172func_arith () 17173{ 17174 func_arith_result=`expr "$@"` 17175} 17176 17177# func_len string 17178# STRING may not start with a hyphen. 17179func_len () 17180{ 17181 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17182} 17183 17184_LT_EOF 17185esac 17186 17187case $lt_shell_append in 17188 yes) 17189 cat << \_LT_EOF >> "$cfgfile" 17190 17191# func_append var value 17192# Append VALUE to the end of shell variable VAR. 17193func_append () 17194{ 17195 eval "$1+=\$2" 17196} 17197_LT_EOF 17198 ;; 17199 *) 17200 cat << \_LT_EOF >> "$cfgfile" 17201 17202# func_append var value 17203# Append VALUE to the end of shell variable VAR. 17204func_append () 17205{ 17206 eval "$1=\$$1\$2" 17207} 17208 17209_LT_EOF 17210 ;; 17211 esac 17212 17213 17214 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17215 || (rm -f "$cfgfile"; exit 1) 17216 17217 mv -f "$cfgfile" "$ofile" || 17218 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17219 chmod +x "$ofile" 17220 17221 ;; 17222 17223 esac 17224done # for ac_tag 17225 17226 17227{ (exit 0); exit 0; } 17228_ACEOF 17229chmod +x $CONFIG_STATUS 17230ac_clean_files=$ac_clean_files_save 17231 17232test $ac_write_fail = 0 || 17233 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 17234$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 17235 { (exit 1); exit 1; }; } 17236 17237 17238# configure is writing to config.log, and then calls config.status. 17239# config.status does its own redirection, appending to config.log. 17240# Unfortunately, on DOS this fails, as config.log is still kept open 17241# by configure, so config.status won't be able to write to it; its 17242# output is simply discarded. So we exec the FD to /dev/null, 17243# effectively closing config.log, so it can be properly (re)opened and 17244# appended to by config.status. When coming back to configure, we 17245# need to make the FD available again. 17246if test "$no_create" != yes; then 17247 ac_cs_success=: 17248 ac_config_status_args= 17249 test "$silent" = yes && 17250 ac_config_status_args="$ac_config_status_args --quiet" 17251 exec 5>/dev/null 17252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17253 exec 5>>config.log 17254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17255 # would make configure fail if this is the last instruction. 17256 $ac_cs_success || { (exit 1); exit 1; } 17257fi 17258if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17259 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17260$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17261fi 17262 17263