configure revision a31a186a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-mga 1.4.12. 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-mga' 747PACKAGE_TARNAME='xf86-video-mga' 748PACKAGE_VERSION='1.4.12' 749PACKAGE_STRING='xf86-video-mga 1.4.12' 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='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793DRIVER_NAME 794moduledir 795USE_EXA_FALSE 796USE_EXA_TRUE 797USE_XAA_FALSE 798USE_XAA_TRUE 799XSERVER_LIBPCIACCESS_FALSE 800XSERVER_LIBPCIACCESS_TRUE 801PCIACCESS_LIBS 802PCIACCESS_CFLAGS 803DRI_LIBS 804DRI_CFLAGS 805DRI_FALSE 806DRI_TRUE 807XORG_LIBS 808XORG_CFLAGS 809OTOOL64 810OTOOL 811LIPO 812NMEDIT 813DSYMUTIL 814lt_ECHO 815RANLIB 816AR 817OBJDUMP 818LN_S 819NM 820ac_ct_DUMPBIN 821DUMPBIN 822LD 823FGREP 824SED 825LIBTOOL 826MAINT 827MAINTAINER_MODE_FALSE 828MAINTAINER_MODE_TRUE 829am__fastdepCC_FALSE 830am__fastdepCC_TRUE 831CCDEPMODE 832AMDEPBACKSLASH 833AMDEP_FALSE 834AMDEP_TRUE 835am__quote 836am__include 837DEPDIR 838am__untar 839am__tar 840AMTAR 841am__leading_dot 842SET_MAKE 843AWK 844mkdir_p 845MKDIR_P 846INSTALL_STRIP_PROGRAM 847STRIP 848install_sh 849MAKEINFO 850AUTOHEADER 851AUTOMAKE 852AUTOCONF 853ACLOCAL 854VERSION 855PACKAGE 856CYGPATH_W 857am__isrc 858INSTALL_DATA 859INSTALL_SCRIPT 860INSTALL_PROGRAM 861ADMIN_MAN_DIR 862DRIVER_MAN_DIR 863MISC_MAN_DIR 864FILE_MAN_DIR 865LIB_MAN_DIR 866APP_MAN_DIR 867ADMIN_MAN_SUFFIX 868DRIVER_MAN_SUFFIX 869MISC_MAN_SUFFIX 870FILE_MAN_SUFFIX 871LIB_MAN_SUFFIX 872APP_MAN_SUFFIX 873host_os 874host_vendor 875host_cpu 876host 877build_os 878build_vendor 879build_cpu 880build 881INSTALL_CMD 882PKG_CONFIG 883CHANGELOG_CMD 884AM_BACKSLASH 885AM_DEFAULT_VERBOSITY 886CWARNFLAGS 887EGREP 888GREP 889CPP 890OBJEXT 891EXEEXT 892ac_ct_CC 893CPPFLAGS 894LDFLAGS 895CFLAGS 896CC 897target_alias 898host_alias 899build_alias 900LIBS 901ECHO_T 902ECHO_N 903ECHO_C 904DEFS 905mandir 906localedir 907libdir 908psdir 909pdfdir 910dvidir 911htmldir 912infodir 913docdir 914oldincludedir 915includedir 916localstatedir 917sharedstatedir 918sysconfdir 919datadir 920datarootdir 921libexecdir 922sbindir 923bindir 924program_transform_name 925prefix 926exec_prefix 927PACKAGE_BUGREPORT 928PACKAGE_STRING 929PACKAGE_VERSION 930PACKAGE_TARNAME 931PACKAGE_NAME 932PATH_SEPARATOR 933SHELL' 934ac_subst_files='' 935ac_user_opts=' 936enable_option_checking 937enable_silent_rules 938enable_strict_compilation 939with_release_version 940enable_dependency_tracking 941enable_maintainer_mode 942enable_static 943enable_shared 944with_pic 945enable_fast_install 946with_gnu_ld 947enable_libtool_lock 948with_xorg_module_dir 949enable_dri 950enable_exa 951' 952 ac_precious_vars='build_alias 953host_alias 954target_alias 955CC 956CFLAGS 957LDFLAGS 958LIBS 959CPPFLAGS 960CPP 961PKG_CONFIG 962XORG_CFLAGS 963XORG_LIBS 964DRI_CFLAGS 965DRI_LIBS 966PCIACCESS_CFLAGS 967PCIACCESS_LIBS' 968 969 970# Initialize some variables set by options. 971ac_init_help= 972ac_init_version=false 973ac_unrecognized_opts= 974ac_unrecognized_sep= 975# The variables have the same names as the options, with 976# dashes changed to underlines. 977cache_file=/dev/null 978exec_prefix=NONE 979no_create= 980no_recursion= 981prefix=NONE 982program_prefix=NONE 983program_suffix=NONE 984program_transform_name=s,x,x, 985silent= 986site= 987srcdir= 988verbose= 989x_includes=NONE 990x_libraries=NONE 991 992# Installation directory options. 993# These are left unexpanded so users can "make install exec_prefix=/foo" 994# and all the variables that are supposed to be based on exec_prefix 995# by default will actually change. 996# Use braces instead of parens because sh, perl, etc. also accept them. 997# (The list follows the same order as the GNU Coding Standards.) 998bindir='${exec_prefix}/bin' 999sbindir='${exec_prefix}/sbin' 1000libexecdir='${exec_prefix}/libexec' 1001datarootdir='${prefix}/share' 1002datadir='${datarootdir}' 1003sysconfdir='${prefix}/etc' 1004sharedstatedir='${prefix}/com' 1005localstatedir='${prefix}/var' 1006includedir='${prefix}/include' 1007oldincludedir='/usr/include' 1008docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1009infodir='${datarootdir}/info' 1010htmldir='${docdir}' 1011dvidir='${docdir}' 1012pdfdir='${docdir}' 1013psdir='${docdir}' 1014libdir='${exec_prefix}/lib' 1015localedir='${datarootdir}/locale' 1016mandir='${datarootdir}/man' 1017 1018ac_prev= 1019ac_dashdash= 1020for ac_option 1021do 1022 # If the previous option needs an argument, assign it. 1023 if test -n "$ac_prev"; then 1024 eval $ac_prev=\$ac_option 1025 ac_prev= 1026 continue 1027 fi 1028 1029 case $ac_option in 1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1031 *) ac_optarg=yes ;; 1032 esac 1033 1034 # Accept the important Cygnus configure options, so we can diagnose typos. 1035 1036 case $ac_dashdash$ac_option in 1037 --) 1038 ac_dashdash=yes ;; 1039 1040 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1041 ac_prev=bindir ;; 1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1043 bindir=$ac_optarg ;; 1044 1045 -build | --build | --buil | --bui | --bu) 1046 ac_prev=build_alias ;; 1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1048 build_alias=$ac_optarg ;; 1049 1050 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1052 ac_prev=cache_file ;; 1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1055 cache_file=$ac_optarg ;; 1056 1057 --config-cache | -C) 1058 cache_file=config.cache ;; 1059 1060 -datadir | --datadir | --datadi | --datad) 1061 ac_prev=datadir ;; 1062 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1063 datadir=$ac_optarg ;; 1064 1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1066 | --dataroo | --dataro | --datar) 1067 ac_prev=datarootdir ;; 1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1070 datarootdir=$ac_optarg ;; 1071 1072 -disable-* | --disable-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1077 { (exit 1); exit 1; }; } 1078 ac_useropt_orig=$ac_useropt 1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1080 case $ac_user_opts in 1081 *" 1082"enable_$ac_useropt" 1083"*) ;; 1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1085 ac_unrecognized_sep=', ';; 1086 esac 1087 eval enable_$ac_useropt=no ;; 1088 1089 -docdir | --docdir | --docdi | --doc | --do) 1090 ac_prev=docdir ;; 1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1092 docdir=$ac_optarg ;; 1093 1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1095 ac_prev=dvidir ;; 1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1097 dvidir=$ac_optarg ;; 1098 1099 -enable-* | --enable-*) 1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1101 # Reject names that are not valid shell variable names. 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1103 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1104 { (exit 1); exit 1; }; } 1105 ac_useropt_orig=$ac_useropt 1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1107 case $ac_user_opts in 1108 *" 1109"enable_$ac_useropt" 1110"*) ;; 1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1112 ac_unrecognized_sep=', ';; 1113 esac 1114 eval enable_$ac_useropt=\$ac_optarg ;; 1115 1116 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1117 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1118 | --exec | --exe | --ex) 1119 ac_prev=exec_prefix ;; 1120 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1121 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1122 | --exec=* | --exe=* | --ex=*) 1123 exec_prefix=$ac_optarg ;; 1124 1125 -gas | --gas | --ga | --g) 1126 # Obsolete; use --with-gas. 1127 with_gas=yes ;; 1128 1129 -help | --help | --hel | --he | -h) 1130 ac_init_help=long ;; 1131 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1132 ac_init_help=recursive ;; 1133 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1134 ac_init_help=short ;; 1135 1136 -host | --host | --hos | --ho) 1137 ac_prev=host_alias ;; 1138 -host=* | --host=* | --hos=* | --ho=*) 1139 host_alias=$ac_optarg ;; 1140 1141 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1142 ac_prev=htmldir ;; 1143 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1144 | --ht=*) 1145 htmldir=$ac_optarg ;; 1146 1147 -includedir | --includedir | --includedi | --included | --include \ 1148 | --includ | --inclu | --incl | --inc) 1149 ac_prev=includedir ;; 1150 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1151 | --includ=* | --inclu=* | --incl=* | --inc=*) 1152 includedir=$ac_optarg ;; 1153 1154 -infodir | --infodir | --infodi | --infod | --info | --inf) 1155 ac_prev=infodir ;; 1156 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1157 infodir=$ac_optarg ;; 1158 1159 -libdir | --libdir | --libdi | --libd) 1160 ac_prev=libdir ;; 1161 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1162 libdir=$ac_optarg ;; 1163 1164 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1165 | --libexe | --libex | --libe) 1166 ac_prev=libexecdir ;; 1167 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1168 | --libexe=* | --libex=* | --libe=*) 1169 libexecdir=$ac_optarg ;; 1170 1171 -localedir | --localedir | --localedi | --localed | --locale) 1172 ac_prev=localedir ;; 1173 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1174 localedir=$ac_optarg ;; 1175 1176 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1177 | --localstate | --localstat | --localsta | --localst | --locals) 1178 ac_prev=localstatedir ;; 1179 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1180 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1181 localstatedir=$ac_optarg ;; 1182 1183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1184 ac_prev=mandir ;; 1185 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1186 mandir=$ac_optarg ;; 1187 1188 -nfp | --nfp | --nf) 1189 # Obsolete; use --without-fp. 1190 with_fp=no ;; 1191 1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1193 | --no-cr | --no-c | -n) 1194 no_create=yes ;; 1195 1196 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1197 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1198 no_recursion=yes ;; 1199 1200 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1201 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1202 | --oldin | --oldi | --old | --ol | --o) 1203 ac_prev=oldincludedir ;; 1204 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1205 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1206 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1207 oldincludedir=$ac_optarg ;; 1208 1209 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1210 ac_prev=prefix ;; 1211 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1212 prefix=$ac_optarg ;; 1213 1214 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1215 | --program-pre | --program-pr | --program-p) 1216 ac_prev=program_prefix ;; 1217 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1218 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1219 program_prefix=$ac_optarg ;; 1220 1221 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1222 | --program-suf | --program-su | --program-s) 1223 ac_prev=program_suffix ;; 1224 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1225 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1226 program_suffix=$ac_optarg ;; 1227 1228 -program-transform-name | --program-transform-name \ 1229 | --program-transform-nam | --program-transform-na \ 1230 | --program-transform-n | --program-transform- \ 1231 | --program-transform | --program-transfor \ 1232 | --program-transfo | --program-transf \ 1233 | --program-trans | --program-tran \ 1234 | --progr-tra | --program-tr | --program-t) 1235 ac_prev=program_transform_name ;; 1236 -program-transform-name=* | --program-transform-name=* \ 1237 | --program-transform-nam=* | --program-transform-na=* \ 1238 | --program-transform-n=* | --program-transform-=* \ 1239 | --program-transform=* | --program-transfor=* \ 1240 | --program-transfo=* | --program-transf=* \ 1241 | --program-trans=* | --program-tran=* \ 1242 | --progr-tra=* | --program-tr=* | --program-t=*) 1243 program_transform_name=$ac_optarg ;; 1244 1245 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1246 ac_prev=pdfdir ;; 1247 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1248 pdfdir=$ac_optarg ;; 1249 1250 -psdir | --psdir | --psdi | --psd | --ps) 1251 ac_prev=psdir ;; 1252 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1253 psdir=$ac_optarg ;; 1254 1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1256 | -silent | --silent | --silen | --sile | --sil) 1257 silent=yes ;; 1258 1259 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1260 ac_prev=sbindir ;; 1261 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1262 | --sbi=* | --sb=*) 1263 sbindir=$ac_optarg ;; 1264 1265 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1266 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1267 | --sharedst | --shareds | --shared | --share | --shar \ 1268 | --sha | --sh) 1269 ac_prev=sharedstatedir ;; 1270 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1271 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1272 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1273 | --sha=* | --sh=*) 1274 sharedstatedir=$ac_optarg ;; 1275 1276 -site | --site | --sit) 1277 ac_prev=site ;; 1278 -site=* | --site=* | --sit=*) 1279 site=$ac_optarg ;; 1280 1281 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1282 ac_prev=srcdir ;; 1283 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1284 srcdir=$ac_optarg ;; 1285 1286 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1287 | --syscon | --sysco | --sysc | --sys | --sy) 1288 ac_prev=sysconfdir ;; 1289 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1290 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1291 sysconfdir=$ac_optarg ;; 1292 1293 -target | --target | --targe | --targ | --tar | --ta | --t) 1294 ac_prev=target_alias ;; 1295 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1296 target_alias=$ac_optarg ;; 1297 1298 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1299 verbose=yes ;; 1300 1301 -version | --version | --versio | --versi | --vers | -V) 1302 ac_init_version=: ;; 1303 1304 -with-* | --with-*) 1305 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1306 # Reject names that are not valid shell variable names. 1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1308 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1309 { (exit 1); exit 1; }; } 1310 ac_useropt_orig=$ac_useropt 1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1312 case $ac_user_opts in 1313 *" 1314"with_$ac_useropt" 1315"*) ;; 1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1317 ac_unrecognized_sep=', ';; 1318 esac 1319 eval with_$ac_useropt=\$ac_optarg ;; 1320 1321 -without-* | --without-*) 1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1323 # Reject names that are not valid shell variable names. 1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1325 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1326 { (exit 1); exit 1; }; } 1327 ac_useropt_orig=$ac_useropt 1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1329 case $ac_user_opts in 1330 *" 1331"with_$ac_useropt" 1332"*) ;; 1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1334 ac_unrecognized_sep=', ';; 1335 esac 1336 eval with_$ac_useropt=no ;; 1337 1338 --x) 1339 # Obsolete; use --with-x. 1340 with_x=yes ;; 1341 1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1343 | --x-incl | --x-inc | --x-in | --x-i) 1344 ac_prev=x_includes ;; 1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1347 x_includes=$ac_optarg ;; 1348 1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1351 ac_prev=x_libraries ;; 1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1354 x_libraries=$ac_optarg ;; 1355 1356 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1357Try \`$0 --help' for more information." >&2 1358 { (exit 1); exit 1; }; } 1359 ;; 1360 1361 *=*) 1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1363 # Reject names that are not valid shell variable names. 1364 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1365 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1366 { (exit 1); exit 1; }; } 1367 eval $ac_envvar=\$ac_optarg 1368 export $ac_envvar ;; 1369 1370 *) 1371 # FIXME: should be removed in autoconf 3.0. 1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1376 ;; 1377 1378 esac 1379done 1380 1381if test -n "$ac_prev"; then 1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1383 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1384 { (exit 1); exit 1; }; } 1385fi 1386 1387if test -n "$ac_unrecognized_opts"; then 1388 case $enable_option_checking in 1389 no) ;; 1390 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1391 { (exit 1); exit 1; }; } ;; 1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1393 esac 1394fi 1395 1396# Check all directory arguments for consistency. 1397for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1398 datadir sysconfdir sharedstatedir localstatedir includedir \ 1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1400 libdir localedir mandir 1401do 1402 eval ac_val=\$$ac_var 1403 # Remove trailing slashes. 1404 case $ac_val in 1405 */ ) 1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1407 eval $ac_var=\$ac_val;; 1408 esac 1409 # Be sure to have absolute directory names. 1410 case $ac_val in 1411 [\\/$]* | ?:[\\/]* ) continue;; 1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1413 esac 1414 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1415 { (exit 1); exit 1; }; } 1416done 1417 1418# There might be people who depend on the old broken behavior: `$host' 1419# used to hold the argument of --host etc. 1420# FIXME: To remove some day. 1421build=$build_alias 1422host=$host_alias 1423target=$target_alias 1424 1425# FIXME: To remove some day. 1426if test "x$host_alias" != x; then 1427 if test "x$build_alias" = x; then 1428 cross_compiling=maybe 1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1430 If a cross compiler is detected then cross compile mode will be used." >&2 1431 elif test "x$build_alias" != "x$host_alias"; then 1432 cross_compiling=yes 1433 fi 1434fi 1435 1436ac_tool_prefix= 1437test -n "$host_alias" && ac_tool_prefix=$host_alias- 1438 1439test "$silent" = yes && exec 6>/dev/null 1440 1441 1442ac_pwd=`pwd` && test -n "$ac_pwd" && 1443ac_ls_di=`ls -di .` && 1444ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1445 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1446 { (exit 1); exit 1; }; } 1447test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1448 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1449 { (exit 1); exit 1; }; } 1450 1451 1452# Find the source files, if location was not specified. 1453if test -z "$srcdir"; then 1454 ac_srcdir_defaulted=yes 1455 # Try the directory containing this script, then the parent directory. 1456 ac_confdir=`$as_dirname -- "$as_myself" || 1457$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1458 X"$as_myself" : 'X\(//\)[^/]' \| \ 1459 X"$as_myself" : 'X\(//\)$' \| \ 1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1461$as_echo X"$as_myself" | 1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\/\)[^/].*/{ 1467 s//\1/ 1468 q 1469 } 1470 /^X\(\/\/\)$/{ 1471 s//\1/ 1472 q 1473 } 1474 /^X\(\/\).*/{ 1475 s//\1/ 1476 q 1477 } 1478 s/.*/./; q'` 1479 srcdir=$ac_confdir 1480 if test ! -r "$srcdir/$ac_unique_file"; then 1481 srcdir=.. 1482 fi 1483else 1484 ac_srcdir_defaulted=no 1485fi 1486if test ! -r "$srcdir/$ac_unique_file"; then 1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1488 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1489 { (exit 1); exit 1; }; } 1490fi 1491ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1492ac_abs_confdir=`( 1493 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1494 { (exit 1); exit 1; }; } 1495 pwd)` 1496# When building in place, set srcdir=. 1497if test "$ac_abs_confdir" = "$ac_pwd"; then 1498 srcdir=. 1499fi 1500# Remove unnecessary trailing slashes from srcdir. 1501# Double slashes in file names in object file debugging info 1502# mess up M-x gdb in Emacs. 1503case $srcdir in 1504*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1505esac 1506for ac_var in $ac_precious_vars; do 1507 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1508 eval ac_env_${ac_var}_value=\$${ac_var} 1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1510 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1511done 1512 1513# 1514# Report the --help message. 1515# 1516if test "$ac_init_help" = "long"; then 1517 # Omit some internal or obsolete options to make the list less imposing. 1518 # This message is too long to be a string in the A/UX 3.1 sh. 1519 cat <<_ACEOF 1520\`configure' configures xf86-video-mga 1.4.12 to adapt to many kinds of systems. 1521 1522Usage: $0 [OPTION]... [VAR=VALUE]... 1523 1524To assign environment variables (e.g., CC, CFLAGS...), specify them as 1525VAR=VALUE. See below for descriptions of some of the useful variables. 1526 1527Defaults for the options are specified in brackets. 1528 1529Configuration: 1530 -h, --help display this help and exit 1531 --help=short display options specific to this package 1532 --help=recursive display the short help of all the included packages 1533 -V, --version display version information and exit 1534 -q, --quiet, --silent do not print \`checking...' messages 1535 --cache-file=FILE cache test results in FILE [disabled] 1536 -C, --config-cache alias for \`--cache-file=config.cache' 1537 -n, --no-create do not create output files 1538 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1539 1540Installation directories: 1541 --prefix=PREFIX install architecture-independent files in PREFIX 1542 [$ac_default_prefix] 1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1544 [PREFIX] 1545 1546By default, \`make install' will install all the files in 1547\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1548an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1549for instance \`--prefix=\$HOME'. 1550 1551For better control, use the options below. 1552 1553Fine tuning of the installation directories: 1554 --bindir=DIR user executables [EPREFIX/bin] 1555 --sbindir=DIR system admin executables [EPREFIX/sbin] 1556 --libexecdir=DIR program executables [EPREFIX/libexec] 1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1560 --libdir=DIR object code libraries [EPREFIX/lib] 1561 --includedir=DIR C header files [PREFIX/include] 1562 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1565 --infodir=DIR info documentation [DATAROOTDIR/info] 1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1567 --mandir=DIR man documentation [DATAROOTDIR/man] 1568 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga] 1569 --htmldir=DIR html documentation [DOCDIR] 1570 --dvidir=DIR dvi documentation [DOCDIR] 1571 --pdfdir=DIR pdf documentation [DOCDIR] 1572 --psdir=DIR ps documentation [DOCDIR] 1573_ACEOF 1574 1575 cat <<\_ACEOF 1576 1577Program names: 1578 --program-prefix=PREFIX prepend PREFIX to installed program names 1579 --program-suffix=SUFFIX append SUFFIX to installed program names 1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1581 1582System types: 1583 --build=BUILD configure for building on BUILD [guessed] 1584 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1585_ACEOF 1586fi 1587 1588if test -n "$ac_init_help"; then 1589 case $ac_init_help in 1590 short | recursive ) echo "Configuration of xf86-video-mga 1.4.12:";; 1591 esac 1592 cat <<\_ACEOF 1593 1594Optional Features: 1595 --disable-option-checking ignore unrecognized --enable/--with options 1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1598 --enable-silent-rules less verbose build output (undo: `make V=1') 1599 --disable-silent-rules verbose build output (undo: `make V=0') 1600 --enable-strict-compilation 1601 Enable all warnings from compiler and make them 1602 errors (default: disabled) 1603 --disable-dependency-tracking speeds up one-time build 1604 --enable-dependency-tracking do not reject slow dependency extractors 1605 --enable-maintainer-mode enable make rules and dependencies not useful 1606 (and sometimes confusing) to the casual installer 1607 --enable-static[=PKGS] build static libraries [default=no] 1608 --enable-shared[=PKGS] build shared libraries [default=yes] 1609 --enable-fast-install[=PKGS] 1610 optimize for fast installation [default=yes] 1611 --disable-libtool-lock avoid locking (might break parallel builds) 1612 --disable-dri Disable DRI support [default=auto] 1613 --disable-exa Disable EXA support [default=enabled] 1614 1615Optional Packages: 1616 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1617 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1618 --with-release-version=STRING 1619 Use release version string in package name 1620 --with-pic try to use only PIC/non-PIC objects [default=use 1621 both] 1622 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1623 --with-xorg-module-dir=DIR 1624 Default xorg module directory 1625 [default=$libdir/xorg/modules] 1626 1627Some influential environment variables: 1628 CC C compiler command 1629 CFLAGS C compiler flags 1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1631 nonstandard directory <lib dir> 1632 LIBS libraries to pass to the linker, e.g. -l<library> 1633 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1634 you have headers in a nonstandard directory <include dir> 1635 CPP C preprocessor 1636 PKG_CONFIG path to pkg-config utility 1637 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1638 XORG_LIBS linker flags for XORG, overriding pkg-config 1639 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1640 DRI_LIBS linker flags for DRI, overriding pkg-config 1641 PCIACCESS_CFLAGS 1642 C compiler flags for PCIACCESS, overriding pkg-config 1643 PCIACCESS_LIBS 1644 linker flags for PCIACCESS, overriding pkg-config 1645 1646Use these variables to override the choices made by `configure' or to help 1647it to find libraries and programs with nonstandard names/locations. 1648 1649Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1650_ACEOF 1651ac_status=$? 1652fi 1653 1654if test "$ac_init_help" = "recursive"; then 1655 # If there are subdirs, report their specific --help. 1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1657 test -d "$ac_dir" || 1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1659 continue 1660 ac_builddir=. 1661 1662case "$ac_dir" in 1663.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1664*) 1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1666 # A ".." for each directory in $ac_dir_suffix. 1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1668 case $ac_top_builddir_sub in 1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1671 esac ;; 1672esac 1673ac_abs_top_builddir=$ac_pwd 1674ac_abs_builddir=$ac_pwd$ac_dir_suffix 1675# for backward compatibility: 1676ac_top_builddir=$ac_top_build_prefix 1677 1678case $srcdir in 1679 .) # We are building in place. 1680 ac_srcdir=. 1681 ac_top_srcdir=$ac_top_builddir_sub 1682 ac_abs_top_srcdir=$ac_pwd ;; 1683 [\\/]* | ?:[\\/]* ) # Absolute name. 1684 ac_srcdir=$srcdir$ac_dir_suffix; 1685 ac_top_srcdir=$srcdir 1686 ac_abs_top_srcdir=$srcdir ;; 1687 *) # Relative name. 1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1689 ac_top_srcdir=$ac_top_build_prefix$srcdir 1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1691esac 1692ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1693 1694 cd "$ac_dir" || { ac_status=$?; continue; } 1695 # Check for guested configure. 1696 if test -f "$ac_srcdir/configure.gnu"; then 1697 echo && 1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1699 elif test -f "$ac_srcdir/configure"; then 1700 echo && 1701 $SHELL "$ac_srcdir/configure" --help=recursive 1702 else 1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1704 fi || ac_status=$? 1705 cd "$ac_pwd" || { ac_status=$?; break; } 1706 done 1707fi 1708 1709test -n "$ac_init_help" && exit $ac_status 1710if $ac_init_version; then 1711 cat <<\_ACEOF 1712xf86-video-mga configure 1.4.12 1713generated by GNU Autoconf 2.63 1714 1715Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17162002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1717This configure script is free software; the Free Software Foundation 1718gives unlimited permission to copy, distribute and modify it. 1719_ACEOF 1720 exit 1721fi 1722cat >config.log <<_ACEOF 1723This file contains any messages produced by compilers while 1724running configure, to aid debugging if configure makes a mistake. 1725 1726It was created by xf86-video-mga $as_me 1.4.12, which was 1727generated by GNU Autoconf 2.63. Invocation command line was 1728 1729 $ $0 $@ 1730 1731_ACEOF 1732exec 5>>config.log 1733{ 1734cat <<_ASUNAME 1735## --------- ## 1736## Platform. ## 1737## --------- ## 1738 1739hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1740uname -m = `(uname -m) 2>/dev/null || echo unknown` 1741uname -r = `(uname -r) 2>/dev/null || echo unknown` 1742uname -s = `(uname -s) 2>/dev/null || echo unknown` 1743uname -v = `(uname -v) 2>/dev/null || echo unknown` 1744 1745/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1746/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1747 1748/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1749/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1750/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1751/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1752/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1753/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1754/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1755 1756_ASUNAME 1757 1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1759for as_dir in $PATH 1760do 1761 IFS=$as_save_IFS 1762 test -z "$as_dir" && as_dir=. 1763 $as_echo "PATH: $as_dir" 1764done 1765IFS=$as_save_IFS 1766 1767} >&5 1768 1769cat >&5 <<_ACEOF 1770 1771 1772## ----------- ## 1773## Core tests. ## 1774## ----------- ## 1775 1776_ACEOF 1777 1778 1779# Keep a trace of the command line. 1780# Strip out --no-create and --no-recursion so they do not pile up. 1781# Strip out --silent because we don't want to record it for future runs. 1782# Also quote any args containing shell meta-characters. 1783# Make two passes to allow for proper duplicate-argument suppression. 1784ac_configure_args= 1785ac_configure_args0= 1786ac_configure_args1= 1787ac_must_keep_next=false 1788for ac_pass in 1 2 1789do 1790 for ac_arg 1791 do 1792 case $ac_arg in 1793 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1795 | -silent | --silent | --silen | --sile | --sil) 1796 continue ;; 1797 *\'*) 1798 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1799 esac 1800 case $ac_pass in 1801 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1802 2) 1803 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1804 if test $ac_must_keep_next = true; then 1805 ac_must_keep_next=false # Got value, back to normal. 1806 else 1807 case $ac_arg in 1808 *=* | --config-cache | -C | -disable-* | --disable-* \ 1809 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1810 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1811 | -with-* | --with-* | -without-* | --without-* | --x) 1812 case "$ac_configure_args0 " in 1813 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1814 esac 1815 ;; 1816 -* ) ac_must_keep_next=true ;; 1817 esac 1818 fi 1819 ac_configure_args="$ac_configure_args '$ac_arg'" 1820 ;; 1821 esac 1822 done 1823done 1824$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1825$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1826 1827# When interrupted or exit'd, cleanup temporary files, and complete 1828# config.log. We remove comments because anyway the quotes in there 1829# would cause problems or look ugly. 1830# WARNING: Use '\'' to represent an apostrophe within the trap. 1831# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1832trap 'exit_status=$? 1833 # Save into config.log some information that might help in debugging. 1834 { 1835 echo 1836 1837 cat <<\_ASBOX 1838## ---------------- ## 1839## Cache variables. ## 1840## ---------------- ## 1841_ASBOX 1842 echo 1843 # The following way of writing the cache mishandles newlines in values, 1844( 1845 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1846 eval ac_val=\$$ac_var 1847 case $ac_val in #( 1848 *${as_nl}*) 1849 case $ac_var in #( 1850 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1851$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1852 esac 1853 case $ac_var in #( 1854 _ | IFS | as_nl) ;; #( 1855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1856 *) $as_unset $ac_var ;; 1857 esac ;; 1858 esac 1859 done 1860 (set) 2>&1 | 1861 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1862 *${as_nl}ac_space=\ *) 1863 sed -n \ 1864 "s/'\''/'\''\\\\'\'''\''/g; 1865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1866 ;; #( 1867 *) 1868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1869 ;; 1870 esac | 1871 sort 1872) 1873 echo 1874 1875 cat <<\_ASBOX 1876## ----------------- ## 1877## Output variables. ## 1878## ----------------- ## 1879_ASBOX 1880 echo 1881 for ac_var in $ac_subst_vars 1882 do 1883 eval ac_val=\$$ac_var 1884 case $ac_val in 1885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1886 esac 1887 $as_echo "$ac_var='\''$ac_val'\''" 1888 done | sort 1889 echo 1890 1891 if test -n "$ac_subst_files"; then 1892 cat <<\_ASBOX 1893## ------------------- ## 1894## File substitutions. ## 1895## ------------------- ## 1896_ASBOX 1897 echo 1898 for ac_var in $ac_subst_files 1899 do 1900 eval ac_val=\$$ac_var 1901 case $ac_val in 1902 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1903 esac 1904 $as_echo "$ac_var='\''$ac_val'\''" 1905 done | sort 1906 echo 1907 fi 1908 1909 if test -s confdefs.h; then 1910 cat <<\_ASBOX 1911## ----------- ## 1912## confdefs.h. ## 1913## ----------- ## 1914_ASBOX 1915 echo 1916 cat confdefs.h 1917 echo 1918 fi 1919 test "$ac_signal" != 0 && 1920 $as_echo "$as_me: caught signal $ac_signal" 1921 $as_echo "$as_me: exit $exit_status" 1922 } >&5 1923 rm -f core *.core core.conftest.* && 1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1925 exit $exit_status 1926' 0 1927for ac_signal in 1 2 13 15; do 1928 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1929done 1930ac_signal=0 1931 1932# confdefs.h avoids OS command line length limits that DEFS can exceed. 1933rm -f -r conftest* confdefs.h 1934 1935# Predefined preprocessor variables. 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_NAME "$PACKAGE_NAME" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1944_ACEOF 1945 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_VERSION "$PACKAGE_VERSION" 1949_ACEOF 1950 1951 1952cat >>confdefs.h <<_ACEOF 1953#define PACKAGE_STRING "$PACKAGE_STRING" 1954_ACEOF 1955 1956 1957cat >>confdefs.h <<_ACEOF 1958#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1959_ACEOF 1960 1961 1962# Let the site file select an alternate cache file if it wants to. 1963# Prefer an explicitly selected file to automatically selected ones. 1964ac_site_file1=NONE 1965ac_site_file2=NONE 1966if test -n "$CONFIG_SITE"; then 1967 ac_site_file1=$CONFIG_SITE 1968elif test "x$prefix" != xNONE; then 1969 ac_site_file1=$prefix/share/config.site 1970 ac_site_file2=$prefix/etc/config.site 1971else 1972 ac_site_file1=$ac_default_prefix/share/config.site 1973 ac_site_file2=$ac_default_prefix/etc/config.site 1974fi 1975for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1976do 1977 test "x$ac_site_file" = xNONE && continue 1978 if test -r "$ac_site_file"; then 1979 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1980$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1981 sed 's/^/| /' "$ac_site_file" >&5 1982 . "$ac_site_file" 1983 fi 1984done 1985 1986if test -r "$cache_file"; then 1987 # Some versions of bash will fail to source /dev/null (special 1988 # files actually), so we avoid doing that. 1989 if test -f "$cache_file"; then 1990 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1991$as_echo "$as_me: loading cache $cache_file" >&6;} 1992 case $cache_file in 1993 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1994 *) . "./$cache_file";; 1995 esac 1996 fi 1997else 1998 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1999$as_echo "$as_me: creating cache $cache_file" >&6;} 2000 >$cache_file 2001fi 2002 2003# Check that the precious variables saved in the cache have kept the same 2004# value. 2005ac_cache_corrupted=false 2006for ac_var in $ac_precious_vars; do 2007 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2008 eval ac_new_set=\$ac_env_${ac_var}_set 2009 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2010 eval ac_new_val=\$ac_env_${ac_var}_value 2011 case $ac_old_set,$ac_new_set in 2012 set,) 2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2014$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2015 ac_cache_corrupted=: ;; 2016 ,set) 2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2018$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2019 ac_cache_corrupted=: ;; 2020 ,);; 2021 *) 2022 if test "x$ac_old_val" != "x$ac_new_val"; then 2023 # differences in whitespace do not lead to failure. 2024 ac_old_val_w=`echo x $ac_old_val` 2025 ac_new_val_w=`echo x $ac_new_val` 2026 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2028$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2029 ac_cache_corrupted=: 2030 else 2031 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2032$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2033 eval $ac_var=\$ac_old_val 2034 fi 2035 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2036$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2037 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2038$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2039 fi;; 2040 esac 2041 # Pass precious variables to config.status. 2042 if test "$ac_new_set" = set; then 2043 case $ac_new_val in 2044 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2045 *) ac_arg=$ac_var=$ac_new_val ;; 2046 esac 2047 case " $ac_configure_args " in 2048 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2049 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2050 esac 2051 fi 2052done 2053if $ac_cache_corrupted; then 2054 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2056 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2057$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2058 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2059$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2060 { (exit 1); exit 1; }; } 2061fi 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087ac_ext=c 2088ac_cpp='$CPP $CPPFLAGS' 2089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2091ac_compiler_gnu=$ac_cv_c_compiler_gnu 2092 2093 2094 2095 2096ac_config_headers="$ac_config_headers config.h" 2097 2098 2099# Require xorg-macros: XORG_DEFAULT_OPTIONS 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111ac_ext=c 2112ac_cpp='$CPP $CPPFLAGS' 2113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2115ac_compiler_gnu=$ac_cv_c_compiler_gnu 2116if test -n "$ac_tool_prefix"; then 2117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2118set dummy ${ac_tool_prefix}gcc; ac_word=$2 2119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2120$as_echo_n "checking for $ac_word... " >&6; } 2121if test "${ac_cv_prog_CC+set}" = set; then 2122 $as_echo_n "(cached) " >&6 2123else 2124 if test -n "$CC"; then 2125 ac_cv_prog_CC="$CC" # Let the user override the test. 2126else 2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2128for as_dir in $PATH 2129do 2130 IFS=$as_save_IFS 2131 test -z "$as_dir" && as_dir=. 2132 for ac_exec_ext in '' $ac_executable_extensions; do 2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2134 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2136 break 2 2137 fi 2138done 2139done 2140IFS=$as_save_IFS 2141 2142fi 2143fi 2144CC=$ac_cv_prog_CC 2145if test -n "$CC"; then 2146 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2147$as_echo "$CC" >&6; } 2148else 2149 { $as_echo "$as_me:$LINENO: result: no" >&5 2150$as_echo "no" >&6; } 2151fi 2152 2153 2154fi 2155if test -z "$ac_cv_prog_CC"; then 2156 ac_ct_CC=$CC 2157 # Extract the first word of "gcc", so it can be a program name with args. 2158set dummy gcc; ac_word=$2 2159{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2160$as_echo_n "checking for $ac_word... " >&6; } 2161if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2162 $as_echo_n "(cached) " >&6 2163else 2164 if test -n "$ac_ct_CC"; then 2165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2166else 2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2168for as_dir in $PATH 2169do 2170 IFS=$as_save_IFS 2171 test -z "$as_dir" && as_dir=. 2172 for ac_exec_ext in '' $ac_executable_extensions; do 2173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2174 ac_cv_prog_ac_ct_CC="gcc" 2175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2176 break 2 2177 fi 2178done 2179done 2180IFS=$as_save_IFS 2181 2182fi 2183fi 2184ac_ct_CC=$ac_cv_prog_ac_ct_CC 2185if test -n "$ac_ct_CC"; then 2186 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2187$as_echo "$ac_ct_CC" >&6; } 2188else 2189 { $as_echo "$as_me:$LINENO: result: no" >&5 2190$as_echo "no" >&6; } 2191fi 2192 2193 if test "x$ac_ct_CC" = x; then 2194 CC="" 2195 else 2196 case $cross_compiling:$ac_tool_warned in 2197yes:) 2198{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2200ac_tool_warned=yes ;; 2201esac 2202 CC=$ac_ct_CC 2203 fi 2204else 2205 CC="$ac_cv_prog_CC" 2206fi 2207 2208if test -z "$CC"; then 2209 if test -n "$ac_tool_prefix"; then 2210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2211set dummy ${ac_tool_prefix}cc; ac_word=$2 2212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2213$as_echo_n "checking for $ac_word... " >&6; } 2214if test "${ac_cv_prog_CC+set}" = set; then 2215 $as_echo_n "(cached) " >&6 2216else 2217 if test -n "$CC"; then 2218 ac_cv_prog_CC="$CC" # Let the user override the test. 2219else 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 for ac_exec_ext in '' $ac_executable_extensions; do 2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2227 ac_cv_prog_CC="${ac_tool_prefix}cc" 2228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2229 break 2 2230 fi 2231done 2232done 2233IFS=$as_save_IFS 2234 2235fi 2236fi 2237CC=$ac_cv_prog_CC 2238if test -n "$CC"; then 2239 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2240$as_echo "$CC" >&6; } 2241else 2242 { $as_echo "$as_me:$LINENO: result: no" >&5 2243$as_echo "no" >&6; } 2244fi 2245 2246 2247 fi 2248fi 2249if test -z "$CC"; then 2250 # Extract the first word of "cc", so it can be a program name with args. 2251set dummy cc; ac_word=$2 2252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2253$as_echo_n "checking for $ac_word... " >&6; } 2254if test "${ac_cv_prog_CC+set}" = set; then 2255 $as_echo_n "(cached) " >&6 2256else 2257 if test -n "$CC"; then 2258 ac_cv_prog_CC="$CC" # Let the user override the test. 2259else 2260 ac_prog_rejected=no 2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2262for as_dir in $PATH 2263do 2264 IFS=$as_save_IFS 2265 test -z "$as_dir" && as_dir=. 2266 for ac_exec_ext in '' $ac_executable_extensions; do 2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2269 ac_prog_rejected=yes 2270 continue 2271 fi 2272 ac_cv_prog_CC="cc" 2273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2274 break 2 2275 fi 2276done 2277done 2278IFS=$as_save_IFS 2279 2280if test $ac_prog_rejected = yes; then 2281 # We found a bogon in the path, so make sure we never use it. 2282 set dummy $ac_cv_prog_CC 2283 shift 2284 if test $# != 0; then 2285 # We chose a different compiler from the bogus one. 2286 # However, it has the same basename, so the bogon will be chosen 2287 # first if we set CC to just the basename; use the full file name. 2288 shift 2289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2290 fi 2291fi 2292fi 2293fi 2294CC=$ac_cv_prog_CC 2295if test -n "$CC"; then 2296 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2297$as_echo "$CC" >&6; } 2298else 2299 { $as_echo "$as_me:$LINENO: result: no" >&5 2300$as_echo "no" >&6; } 2301fi 2302 2303 2304fi 2305if test -z "$CC"; then 2306 if test -n "$ac_tool_prefix"; then 2307 for ac_prog in cl.exe 2308 do 2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2310set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2312$as_echo_n "checking for $ac_word... " >&6; } 2313if test "${ac_cv_prog_CC+set}" = set; then 2314 $as_echo_n "(cached) " >&6 2315else 2316 if test -n "$CC"; then 2317 ac_cv_prog_CC="$CC" # Let the user override the test. 2318else 2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2320for as_dir in $PATH 2321do 2322 IFS=$as_save_IFS 2323 test -z "$as_dir" && as_dir=. 2324 for ac_exec_ext in '' $ac_executable_extensions; do 2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2328 break 2 2329 fi 2330done 2331done 2332IFS=$as_save_IFS 2333 2334fi 2335fi 2336CC=$ac_cv_prog_CC 2337if test -n "$CC"; then 2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2339$as_echo "$CC" >&6; } 2340else 2341 { $as_echo "$as_me:$LINENO: result: no" >&5 2342$as_echo "no" >&6; } 2343fi 2344 2345 2346 test -n "$CC" && break 2347 done 2348fi 2349if test -z "$CC"; then 2350 ac_ct_CC=$CC 2351 for ac_prog in cl.exe 2352do 2353 # Extract the first word of "$ac_prog", so it can be a program name with args. 2354set dummy $ac_prog; ac_word=$2 2355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2356$as_echo_n "checking for $ac_word... " >&6; } 2357if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2358 $as_echo_n "(cached) " >&6 2359else 2360 if test -n "$ac_ct_CC"; then 2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2362else 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2370 ac_cv_prog_ac_ct_CC="$ac_prog" 2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 break 2 2373 fi 2374done 2375done 2376IFS=$as_save_IFS 2377 2378fi 2379fi 2380ac_ct_CC=$ac_cv_prog_ac_ct_CC 2381if test -n "$ac_ct_CC"; then 2382 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2383$as_echo "$ac_ct_CC" >&6; } 2384else 2385 { $as_echo "$as_me:$LINENO: result: no" >&5 2386$as_echo "no" >&6; } 2387fi 2388 2389 2390 test -n "$ac_ct_CC" && break 2391done 2392 2393 if test "x$ac_ct_CC" = x; then 2394 CC="" 2395 else 2396 case $cross_compiling:$ac_tool_warned in 2397yes:) 2398{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2400ac_tool_warned=yes ;; 2401esac 2402 CC=$ac_ct_CC 2403 fi 2404fi 2405 2406fi 2407 2408 2409test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2411{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2412See \`config.log' for more details." >&5 2413$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2414See \`config.log' for more details." >&2;} 2415 { (exit 1); exit 1; }; }; } 2416 2417# Provide some information about the compiler. 2418$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2419set X $ac_compile 2420ac_compiler=$2 2421{ (ac_try="$ac_compiler --version >&5" 2422case "(($ac_try" in 2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2424 *) ac_try_echo=$ac_try;; 2425esac 2426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2427$as_echo "$ac_try_echo") >&5 2428 (eval "$ac_compiler --version >&5") 2>&5 2429 ac_status=$? 2430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); } 2432{ (ac_try="$ac_compiler -v >&5" 2433case "(($ac_try" in 2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2435 *) ac_try_echo=$ac_try;; 2436esac 2437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2438$as_echo "$ac_try_echo") >&5 2439 (eval "$ac_compiler -v >&5") 2>&5 2440 ac_status=$? 2441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2442 (exit $ac_status); } 2443{ (ac_try="$ac_compiler -V >&5" 2444case "(($ac_try" in 2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2446 *) ac_try_echo=$ac_try;; 2447esac 2448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2449$as_echo "$ac_try_echo") >&5 2450 (eval "$ac_compiler -V >&5") 2>&5 2451 ac_status=$? 2452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453 (exit $ac_status); } 2454 2455cat >conftest.$ac_ext <<_ACEOF 2456/* confdefs.h. */ 2457_ACEOF 2458cat confdefs.h >>conftest.$ac_ext 2459cat >>conftest.$ac_ext <<_ACEOF 2460/* end confdefs.h. */ 2461 2462int 2463main () 2464{ 2465 2466 ; 2467 return 0; 2468} 2469_ACEOF 2470ac_clean_files_save=$ac_clean_files 2471ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2472# Try to create an executable without -o first, disregard a.out. 2473# It will help us diagnose broken compilers, and finding out an intuition 2474# of exeext. 2475{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2476$as_echo_n "checking for C compiler default output file name... " >&6; } 2477ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2478 2479# The possible output files: 2480ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2481 2482ac_rmfiles= 2483for ac_file in $ac_files 2484do 2485 case $ac_file in 2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2487 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2488 esac 2489done 2490rm -f $ac_rmfiles 2491 2492if { (ac_try="$ac_link_default" 2493case "(($ac_try" in 2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2495 *) ac_try_echo=$ac_try;; 2496esac 2497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2498$as_echo "$ac_try_echo") >&5 2499 (eval "$ac_link_default") 2>&5 2500 ac_status=$? 2501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); }; then 2503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2504# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2505# in a Makefile. We should not override ac_cv_exeext if it was cached, 2506# so that the user can short-circuit this test for compilers unknown to 2507# Autoconf. 2508for ac_file in $ac_files '' 2509do 2510 test -f "$ac_file" || continue 2511 case $ac_file in 2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2513 ;; 2514 [ab].out ) 2515 # We found the default executable, but exeext='' is most 2516 # certainly right. 2517 break;; 2518 *.* ) 2519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2520 then :; else 2521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2522 fi 2523 # We set ac_cv_exeext here because the later test for it is not 2524 # safe: cross compilers may not add the suffix if given an `-o' 2525 # argument, so we may need to know it at that point already. 2526 # Even if this section looks crufty: it has the advantage of 2527 # actually working. 2528 break;; 2529 * ) 2530 break;; 2531 esac 2532done 2533test "$ac_cv_exeext" = no && ac_cv_exeext= 2534 2535else 2536 ac_file='' 2537fi 2538 2539{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2540$as_echo "$ac_file" >&6; } 2541if test -z "$ac_file"; then 2542 $as_echo "$as_me: failed program was:" >&5 2543sed 's/^/| /' conftest.$ac_ext >&5 2544 2545{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2547{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2548See \`config.log' for more details." >&5 2549$as_echo "$as_me: error: C compiler cannot create executables 2550See \`config.log' for more details." >&2;} 2551 { (exit 77); exit 77; }; }; } 2552fi 2553 2554ac_exeext=$ac_cv_exeext 2555 2556# Check that the compiler produces executables we can run. If not, either 2557# the compiler is broken, or we cross compile. 2558{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2559$as_echo_n "checking whether the C compiler works... " >&6; } 2560# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2561# If not cross compiling, check that we can run a simple program. 2562if test "$cross_compiling" != yes; then 2563 if { ac_try='./$ac_file' 2564 { (case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567esac 2568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2569$as_echo "$ac_try_echo") >&5 2570 (eval "$ac_try") 2>&5 2571 ac_status=$? 2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); }; }; then 2574 cross_compiling=no 2575 else 2576 if test "$cross_compiling" = maybe; then 2577 cross_compiling=yes 2578 else 2579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2581{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2582If you meant to cross compile, use \`--host'. 2583See \`config.log' for more details." >&5 2584$as_echo "$as_me: error: cannot run C compiled programs. 2585If you meant to cross compile, use \`--host'. 2586See \`config.log' for more details." >&2;} 2587 { (exit 1); exit 1; }; }; } 2588 fi 2589 fi 2590fi 2591{ $as_echo "$as_me:$LINENO: result: yes" >&5 2592$as_echo "yes" >&6; } 2593 2594rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2595ac_clean_files=$ac_clean_files_save 2596# Check that the compiler produces executables we can run. If not, either 2597# the compiler is broken, or we cross compile. 2598{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2599$as_echo_n "checking whether we are cross compiling... " >&6; } 2600{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2601$as_echo "$cross_compiling" >&6; } 2602 2603{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2604$as_echo_n "checking for suffix of executables... " >&6; } 2605if { (ac_try="$ac_link" 2606case "(($ac_try" in 2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2608 *) ac_try_echo=$ac_try;; 2609esac 2610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2611$as_echo "$ac_try_echo") >&5 2612 (eval "$ac_link") 2>&5 2613 ac_status=$? 2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); }; then 2616 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2617# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2618# work properly (i.e., refer to `conftest.exe'), while it won't with 2619# `rm'. 2620for ac_file in conftest.exe conftest conftest.*; do 2621 test -f "$ac_file" || continue 2622 case $ac_file in 2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2625 break;; 2626 * ) break;; 2627 esac 2628done 2629else 2630 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2632{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2633See \`config.log' for more details." >&5 2634$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2635See \`config.log' for more details." >&2;} 2636 { (exit 1); exit 1; }; }; } 2637fi 2638 2639rm -f conftest$ac_cv_exeext 2640{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2641$as_echo "$ac_cv_exeext" >&6; } 2642 2643rm -f conftest.$ac_ext 2644EXEEXT=$ac_cv_exeext 2645ac_exeext=$EXEEXT 2646{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2647$as_echo_n "checking for suffix of object files... " >&6; } 2648if test "${ac_cv_objext+set}" = set; then 2649 $as_echo_n "(cached) " >&6 2650else 2651 cat >conftest.$ac_ext <<_ACEOF 2652/* confdefs.h. */ 2653_ACEOF 2654cat confdefs.h >>conftest.$ac_ext 2655cat >>conftest.$ac_ext <<_ACEOF 2656/* end confdefs.h. */ 2657 2658int 2659main () 2660{ 2661 2662 ; 2663 return 0; 2664} 2665_ACEOF 2666rm -f conftest.o conftest.obj 2667if { (ac_try="$ac_compile" 2668case "(($ac_try" in 2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2670 *) ac_try_echo=$ac_try;; 2671esac 2672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2673$as_echo "$ac_try_echo") >&5 2674 (eval "$ac_compile") 2>&5 2675 ac_status=$? 2676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2677 (exit $ac_status); }; then 2678 for ac_file in conftest.o conftest.obj conftest.*; do 2679 test -f "$ac_file" || continue; 2680 case $ac_file in 2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2683 break;; 2684 esac 2685done 2686else 2687 $as_echo "$as_me: failed program was:" >&5 2688sed 's/^/| /' conftest.$ac_ext >&5 2689 2690{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2692{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2693See \`config.log' for more details." >&5 2694$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2695See \`config.log' for more details." >&2;} 2696 { (exit 1); exit 1; }; }; } 2697fi 2698 2699rm -f conftest.$ac_cv_objext conftest.$ac_ext 2700fi 2701{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2702$as_echo "$ac_cv_objext" >&6; } 2703OBJEXT=$ac_cv_objext 2704ac_objext=$OBJEXT 2705{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2706$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2707if test "${ac_cv_c_compiler_gnu+set}" = set; then 2708 $as_echo_n "(cached) " >&6 2709else 2710 cat >conftest.$ac_ext <<_ACEOF 2711/* confdefs.h. */ 2712_ACEOF 2713cat confdefs.h >>conftest.$ac_ext 2714cat >>conftest.$ac_ext <<_ACEOF 2715/* end confdefs.h. */ 2716 2717int 2718main () 2719{ 2720#ifndef __GNUC__ 2721 choke me 2722#endif 2723 2724 ; 2725 return 0; 2726} 2727_ACEOF 2728rm -f conftest.$ac_objext 2729if { (ac_try="$ac_compile" 2730case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2735$as_echo "$ac_try_echo") >&5 2736 (eval "$ac_compile") 2>conftest.er1 2737 ac_status=$? 2738 grep -v '^ *+' conftest.er1 >conftest.err 2739 rm -f conftest.er1 2740 cat conftest.err >&5 2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); } && { 2743 test -z "$ac_c_werror_flag" || 2744 test ! -s conftest.err 2745 } && test -s conftest.$ac_objext; then 2746 ac_compiler_gnu=yes 2747else 2748 $as_echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751 ac_compiler_gnu=no 2752fi 2753 2754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2755ac_cv_c_compiler_gnu=$ac_compiler_gnu 2756 2757fi 2758{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2759$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2760if test $ac_compiler_gnu = yes; then 2761 GCC=yes 2762else 2763 GCC= 2764fi 2765ac_test_CFLAGS=${CFLAGS+set} 2766ac_save_CFLAGS=$CFLAGS 2767{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2768$as_echo_n "checking whether $CC accepts -g... " >&6; } 2769if test "${ac_cv_prog_cc_g+set}" = set; then 2770 $as_echo_n "(cached) " >&6 2771else 2772 ac_save_c_werror_flag=$ac_c_werror_flag 2773 ac_c_werror_flag=yes 2774 ac_cv_prog_cc_g=no 2775 CFLAGS="-g" 2776 cat >conftest.$ac_ext <<_ACEOF 2777/* confdefs.h. */ 2778_ACEOF 2779cat confdefs.h >>conftest.$ac_ext 2780cat >>conftest.$ac_ext <<_ACEOF 2781/* end confdefs.h. */ 2782 2783int 2784main () 2785{ 2786 2787 ; 2788 return 0; 2789} 2790_ACEOF 2791rm -f conftest.$ac_objext 2792if { (ac_try="$ac_compile" 2793case "(($ac_try" in 2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2795 *) ac_try_echo=$ac_try;; 2796esac 2797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2798$as_echo "$ac_try_echo") >&5 2799 (eval "$ac_compile") 2>conftest.er1 2800 ac_status=$? 2801 grep -v '^ *+' conftest.er1 >conftest.err 2802 rm -f conftest.er1 2803 cat conftest.err >&5 2804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); } && { 2806 test -z "$ac_c_werror_flag" || 2807 test ! -s conftest.err 2808 } && test -s conftest.$ac_objext; then 2809 ac_cv_prog_cc_g=yes 2810else 2811 $as_echo "$as_me: failed program was:" >&5 2812sed 's/^/| /' conftest.$ac_ext >&5 2813 2814 CFLAGS="" 2815 cat >conftest.$ac_ext <<_ACEOF 2816/* confdefs.h. */ 2817_ACEOF 2818cat confdefs.h >>conftest.$ac_ext 2819cat >>conftest.$ac_ext <<_ACEOF 2820/* end confdefs.h. */ 2821 2822int 2823main () 2824{ 2825 2826 ; 2827 return 0; 2828} 2829_ACEOF 2830rm -f conftest.$ac_objext 2831if { (ac_try="$ac_compile" 2832case "(($ac_try" in 2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2834 *) ac_try_echo=$ac_try;; 2835esac 2836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2837$as_echo "$ac_try_echo") >&5 2838 (eval "$ac_compile") 2>conftest.er1 2839 ac_status=$? 2840 grep -v '^ *+' conftest.er1 >conftest.err 2841 rm -f conftest.er1 2842 cat conftest.err >&5 2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } && { 2845 test -z "$ac_c_werror_flag" || 2846 test ! -s conftest.err 2847 } && test -s conftest.$ac_objext; then 2848 : 2849else 2850 $as_echo "$as_me: failed program was:" >&5 2851sed 's/^/| /' conftest.$ac_ext >&5 2852 2853 ac_c_werror_flag=$ac_save_c_werror_flag 2854 CFLAGS="-g" 2855 cat >conftest.$ac_ext <<_ACEOF 2856/* confdefs.h. */ 2857_ACEOF 2858cat confdefs.h >>conftest.$ac_ext 2859cat >>conftest.$ac_ext <<_ACEOF 2860/* end confdefs.h. */ 2861 2862int 2863main () 2864{ 2865 2866 ; 2867 return 0; 2868} 2869_ACEOF 2870rm -f conftest.$ac_objext 2871if { (ac_try="$ac_compile" 2872case "(($ac_try" in 2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2874 *) ac_try_echo=$ac_try;; 2875esac 2876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2877$as_echo "$ac_try_echo") >&5 2878 (eval "$ac_compile") 2>conftest.er1 2879 ac_status=$? 2880 grep -v '^ *+' conftest.er1 >conftest.err 2881 rm -f conftest.er1 2882 cat conftest.err >&5 2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2884 (exit $ac_status); } && { 2885 test -z "$ac_c_werror_flag" || 2886 test ! -s conftest.err 2887 } && test -s conftest.$ac_objext; then 2888 ac_cv_prog_cc_g=yes 2889else 2890 $as_echo "$as_me: failed program was:" >&5 2891sed 's/^/| /' conftest.$ac_ext >&5 2892 2893 2894fi 2895 2896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2897fi 2898 2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2900fi 2901 2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2903 ac_c_werror_flag=$ac_save_c_werror_flag 2904fi 2905{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2906$as_echo "$ac_cv_prog_cc_g" >&6; } 2907if test "$ac_test_CFLAGS" = set; then 2908 CFLAGS=$ac_save_CFLAGS 2909elif test $ac_cv_prog_cc_g = yes; then 2910 if test "$GCC" = yes; then 2911 CFLAGS="-g -O2" 2912 else 2913 CFLAGS="-g" 2914 fi 2915else 2916 if test "$GCC" = yes; then 2917 CFLAGS="-O2" 2918 else 2919 CFLAGS= 2920 fi 2921fi 2922{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2923$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2924if test "${ac_cv_prog_cc_c89+set}" = set; then 2925 $as_echo_n "(cached) " >&6 2926else 2927 ac_cv_prog_cc_c89=no 2928ac_save_CC=$CC 2929cat >conftest.$ac_ext <<_ACEOF 2930/* confdefs.h. */ 2931_ACEOF 2932cat confdefs.h >>conftest.$ac_ext 2933cat >>conftest.$ac_ext <<_ACEOF 2934/* end confdefs.h. */ 2935#include <stdarg.h> 2936#include <stdio.h> 2937#include <sys/types.h> 2938#include <sys/stat.h> 2939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2940struct buf { int x; }; 2941FILE * (*rcsopen) (struct buf *, struct stat *, int); 2942static char *e (p, i) 2943 char **p; 2944 int i; 2945{ 2946 return p[i]; 2947} 2948static char *f (char * (*g) (char **, int), char **p, ...) 2949{ 2950 char *s; 2951 va_list v; 2952 va_start (v,p); 2953 s = g (p, va_arg (v,int)); 2954 va_end (v); 2955 return s; 2956} 2957 2958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2959 function prototypes and stuff, but not '\xHH' hex character constants. 2960 These don't provoke an error unfortunately, instead are silently treated 2961 as 'x'. The following induces an error, until -std is added to get 2962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2963 array size at least. It's necessary to write '\x00'==0 to get something 2964 that's true only with -std. */ 2965int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2966 2967/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2968 inside strings and character constants. */ 2969#define FOO(x) 'x' 2970int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2971 2972int test (int i, double x); 2973struct s1 {int (*f) (int a);}; 2974struct s2 {int (*f) (double a);}; 2975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2976int argc; 2977char **argv; 2978int 2979main () 2980{ 2981return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2982 ; 2983 return 0; 2984} 2985_ACEOF 2986for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2988do 2989 CC="$ac_save_CC $ac_arg" 2990 rm -f conftest.$ac_objext 2991if { (ac_try="$ac_compile" 2992case "(($ac_try" in 2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2994 *) ac_try_echo=$ac_try;; 2995esac 2996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2997$as_echo "$ac_try_echo") >&5 2998 (eval "$ac_compile") 2>conftest.er1 2999 ac_status=$? 3000 grep -v '^ *+' conftest.er1 >conftest.err 3001 rm -f conftest.er1 3002 cat conftest.err >&5 3003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); } && { 3005 test -z "$ac_c_werror_flag" || 3006 test ! -s conftest.err 3007 } && test -s conftest.$ac_objext; then 3008 ac_cv_prog_cc_c89=$ac_arg 3009else 3010 $as_echo "$as_me: failed program was:" >&5 3011sed 's/^/| /' conftest.$ac_ext >&5 3012 3013 3014fi 3015 3016rm -f core conftest.err conftest.$ac_objext 3017 test "x$ac_cv_prog_cc_c89" != "xno" && break 3018done 3019rm -f conftest.$ac_ext 3020CC=$ac_save_CC 3021 3022fi 3023# AC_CACHE_VAL 3024case "x$ac_cv_prog_cc_c89" in 3025 x) 3026 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3027$as_echo "none needed" >&6; } ;; 3028 xno) 3029 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3030$as_echo "unsupported" >&6; } ;; 3031 *) 3032 CC="$CC $ac_cv_prog_cc_c89" 3033 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3034$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3035esac 3036 3037 3038ac_ext=c 3039ac_cpp='$CPP $CPPFLAGS' 3040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3042ac_compiler_gnu=$ac_cv_c_compiler_gnu 3043 3044 3045ac_ext=c 3046ac_cpp='$CPP $CPPFLAGS' 3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3049ac_compiler_gnu=$ac_cv_c_compiler_gnu 3050{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3051$as_echo_n "checking how to run the C preprocessor... " >&6; } 3052# On Suns, sometimes $CPP names a directory. 3053if test -n "$CPP" && test -d "$CPP"; then 3054 CPP= 3055fi 3056if test -z "$CPP"; then 3057 if test "${ac_cv_prog_CPP+set}" = set; then 3058 $as_echo_n "(cached) " >&6 3059else 3060 # Double quotes because CPP needs to be expanded 3061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3062 do 3063 ac_preproc_ok=false 3064for ac_c_preproc_warn_flag in '' yes 3065do 3066 # Use a header file that comes with gcc, so configuring glibc 3067 # with a fresh cross-compiler works. 3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3069 # <limits.h> exists even on freestanding compilers. 3070 # On the NeXT, cc -E runs the code through the compiler's parser, 3071 # not just through cpp. "Syntax error" is here to catch this case. 3072 cat >conftest.$ac_ext <<_ACEOF 3073/* confdefs.h. */ 3074_ACEOF 3075cat confdefs.h >>conftest.$ac_ext 3076cat >>conftest.$ac_ext <<_ACEOF 3077/* end confdefs.h. */ 3078#ifdef __STDC__ 3079# include <limits.h> 3080#else 3081# include <assert.h> 3082#endif 3083 Syntax error 3084_ACEOF 3085if { (ac_try="$ac_cpp conftest.$ac_ext" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3091$as_echo "$ac_try_echo") >&5 3092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3093 ac_status=$? 3094 grep -v '^ *+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } >/dev/null && { 3099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3100 test ! -s conftest.err 3101 }; then 3102 : 3103else 3104 $as_echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107 # Broken: fails on valid input. 3108continue 3109fi 3110 3111rm -f conftest.err conftest.$ac_ext 3112 3113 # OK, works on sane cases. Now check whether nonexistent headers 3114 # can be detected and how. 3115 cat >conftest.$ac_ext <<_ACEOF 3116/* confdefs.h. */ 3117_ACEOF 3118cat confdefs.h >>conftest.$ac_ext 3119cat >>conftest.$ac_ext <<_ACEOF 3120/* end confdefs.h. */ 3121#include <ac_nonexistent.h> 3122_ACEOF 3123if { (ac_try="$ac_cpp conftest.$ac_ext" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3129$as_echo "$ac_try_echo") >&5 3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3131 ac_status=$? 3132 grep -v '^ *+' conftest.er1 >conftest.err 3133 rm -f conftest.er1 3134 cat conftest.err >&5 3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); } >/dev/null && { 3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3138 test ! -s conftest.err 3139 }; then 3140 # Broken: success on invalid input. 3141continue 3142else 3143 $as_echo "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146 # Passes both tests. 3147ac_preproc_ok=: 3148break 3149fi 3150 3151rm -f conftest.err conftest.$ac_ext 3152 3153done 3154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3155rm -f conftest.err conftest.$ac_ext 3156if $ac_preproc_ok; then 3157 break 3158fi 3159 3160 done 3161 ac_cv_prog_CPP=$CPP 3162 3163fi 3164 CPP=$ac_cv_prog_CPP 3165else 3166 ac_cv_prog_CPP=$CPP 3167fi 3168{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3169$as_echo "$CPP" >&6; } 3170ac_preproc_ok=false 3171for ac_c_preproc_warn_flag in '' yes 3172do 3173 # Use a header file that comes with gcc, so configuring glibc 3174 # with a fresh cross-compiler works. 3175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3176 # <limits.h> exists even on freestanding compilers. 3177 # On the NeXT, cc -E runs the code through the compiler's parser, 3178 # not just through cpp. "Syntax error" is here to catch this case. 3179 cat >conftest.$ac_ext <<_ACEOF 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185#ifdef __STDC__ 3186# include <limits.h> 3187#else 3188# include <assert.h> 3189#endif 3190 Syntax error 3191_ACEOF 3192if { (ac_try="$ac_cpp conftest.$ac_ext" 3193case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3198$as_echo "$ac_try_echo") >&5 3199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3200 ac_status=$? 3201 grep -v '^ *+' conftest.er1 >conftest.err 3202 rm -f conftest.er1 3203 cat conftest.err >&5 3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); } >/dev/null && { 3206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3207 test ! -s conftest.err 3208 }; then 3209 : 3210else 3211 $as_echo "$as_me: failed program was:" >&5 3212sed 's/^/| /' conftest.$ac_ext >&5 3213 3214 # Broken: fails on valid input. 3215continue 3216fi 3217 3218rm -f conftest.err conftest.$ac_ext 3219 3220 # OK, works on sane cases. Now check whether nonexistent headers 3221 # can be detected and how. 3222 cat >conftest.$ac_ext <<_ACEOF 3223/* confdefs.h. */ 3224_ACEOF 3225cat confdefs.h >>conftest.$ac_ext 3226cat >>conftest.$ac_ext <<_ACEOF 3227/* end confdefs.h. */ 3228#include <ac_nonexistent.h> 3229_ACEOF 3230if { (ac_try="$ac_cpp conftest.$ac_ext" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3236$as_echo "$ac_try_echo") >&5 3237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3238 ac_status=$? 3239 grep -v '^ *+' conftest.er1 >conftest.err 3240 rm -f conftest.er1 3241 cat conftest.err >&5 3242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3243 (exit $ac_status); } >/dev/null && { 3244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3245 test ! -s conftest.err 3246 }; then 3247 # Broken: success on invalid input. 3248continue 3249else 3250 $as_echo "$as_me: failed program was:" >&5 3251sed 's/^/| /' conftest.$ac_ext >&5 3252 3253 # Passes both tests. 3254ac_preproc_ok=: 3255break 3256fi 3257 3258rm -f conftest.err conftest.$ac_ext 3259 3260done 3261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3262rm -f conftest.err conftest.$ac_ext 3263if $ac_preproc_ok; then 3264 : 3265else 3266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3269See \`config.log' for more details." >&5 3270$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3271See \`config.log' for more details." >&2;} 3272 { (exit 1); exit 1; }; }; } 3273fi 3274 3275ac_ext=c 3276ac_cpp='$CPP $CPPFLAGS' 3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3279ac_compiler_gnu=$ac_cv_c_compiler_gnu 3280 3281 3282{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3283$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3284if test "${ac_cv_path_GREP+set}" = set; then 3285 $as_echo_n "(cached) " >&6 3286else 3287 if test -z "$GREP"; then 3288 ac_path_GREP_found=false 3289 # Loop through the user's path and test for each of PROGNAME-LIST 3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_prog in grep ggrep; do 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3298 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3299# Check for GNU ac_path_GREP and select it if it is found. 3300 # Check for GNU $ac_path_GREP 3301case `"$ac_path_GREP" --version 2>&1` in 3302*GNU*) 3303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3304*) 3305 ac_count=0 3306 $as_echo_n 0123456789 >"conftest.in" 3307 while : 3308 do 3309 cat "conftest.in" "conftest.in" >"conftest.tmp" 3310 mv "conftest.tmp" "conftest.in" 3311 cp "conftest.in" "conftest.nl" 3312 $as_echo 'GREP' >> "conftest.nl" 3313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3315 ac_count=`expr $ac_count + 1` 3316 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3317 # Best one so far, save it but keep looking for a better one 3318 ac_cv_path_GREP="$ac_path_GREP" 3319 ac_path_GREP_max=$ac_count 3320 fi 3321 # 10*(2^10) chars as input seems more than enough 3322 test $ac_count -gt 10 && break 3323 done 3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3325esac 3326 3327 $ac_path_GREP_found && break 3 3328 done 3329 done 3330done 3331IFS=$as_save_IFS 3332 if test -z "$ac_cv_path_GREP"; then 3333 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3334$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3335 { (exit 1); exit 1; }; } 3336 fi 3337else 3338 ac_cv_path_GREP=$GREP 3339fi 3340 3341fi 3342{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3343$as_echo "$ac_cv_path_GREP" >&6; } 3344 GREP="$ac_cv_path_GREP" 3345 3346 3347{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3348$as_echo_n "checking for egrep... " >&6; } 3349if test "${ac_cv_path_EGREP+set}" = set; then 3350 $as_echo_n "(cached) " >&6 3351else 3352 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3353 then ac_cv_path_EGREP="$GREP -E" 3354 else 3355 if test -z "$EGREP"; then 3356 ac_path_EGREP_found=false 3357 # Loop through the user's path and test for each of PROGNAME-LIST 3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3360do 3361 IFS=$as_save_IFS 3362 test -z "$as_dir" && as_dir=. 3363 for ac_prog in egrep; do 3364 for ac_exec_ext in '' $ac_executable_extensions; do 3365 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3366 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3367# Check for GNU ac_path_EGREP and select it if it is found. 3368 # Check for GNU $ac_path_EGREP 3369case `"$ac_path_EGREP" --version 2>&1` in 3370*GNU*) 3371 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3372*) 3373 ac_count=0 3374 $as_echo_n 0123456789 >"conftest.in" 3375 while : 3376 do 3377 cat "conftest.in" "conftest.in" >"conftest.tmp" 3378 mv "conftest.tmp" "conftest.in" 3379 cp "conftest.in" "conftest.nl" 3380 $as_echo 'EGREP' >> "conftest.nl" 3381 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3383 ac_count=`expr $ac_count + 1` 3384 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3385 # Best one so far, save it but keep looking for a better one 3386 ac_cv_path_EGREP="$ac_path_EGREP" 3387 ac_path_EGREP_max=$ac_count 3388 fi 3389 # 10*(2^10) chars as input seems more than enough 3390 test $ac_count -gt 10 && break 3391 done 3392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3393esac 3394 3395 $ac_path_EGREP_found && break 3 3396 done 3397 done 3398done 3399IFS=$as_save_IFS 3400 if test -z "$ac_cv_path_EGREP"; then 3401 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3402$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3403 { (exit 1); exit 1; }; } 3404 fi 3405else 3406 ac_cv_path_EGREP=$EGREP 3407fi 3408 3409 fi 3410fi 3411{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3412$as_echo "$ac_cv_path_EGREP" >&6; } 3413 EGREP="$ac_cv_path_EGREP" 3414 3415 3416{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3417$as_echo_n "checking for ANSI C header files... " >&6; } 3418if test "${ac_cv_header_stdc+set}" = set; then 3419 $as_echo_n "(cached) " >&6 3420else 3421 cat >conftest.$ac_ext <<_ACEOF 3422/* confdefs.h. */ 3423_ACEOF 3424cat confdefs.h >>conftest.$ac_ext 3425cat >>conftest.$ac_ext <<_ACEOF 3426/* end confdefs.h. */ 3427#include <stdlib.h> 3428#include <stdarg.h> 3429#include <string.h> 3430#include <float.h> 3431 3432int 3433main () 3434{ 3435 3436 ; 3437 return 0; 3438} 3439_ACEOF 3440rm -f conftest.$ac_objext 3441if { (ac_try="$ac_compile" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3447$as_echo "$ac_try_echo") >&5 3448 (eval "$ac_compile") 2>conftest.er1 3449 ac_status=$? 3450 grep -v '^ *+' conftest.er1 >conftest.err 3451 rm -f conftest.er1 3452 cat conftest.err >&5 3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); } && { 3455 test -z "$ac_c_werror_flag" || 3456 test ! -s conftest.err 3457 } && test -s conftest.$ac_objext; then 3458 ac_cv_header_stdc=yes 3459else 3460 $as_echo "$as_me: failed program was:" >&5 3461sed 's/^/| /' conftest.$ac_ext >&5 3462 3463 ac_cv_header_stdc=no 3464fi 3465 3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3467 3468if test $ac_cv_header_stdc = yes; then 3469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3470 cat >conftest.$ac_ext <<_ACEOF 3471/* confdefs.h. */ 3472_ACEOF 3473cat confdefs.h >>conftest.$ac_ext 3474cat >>conftest.$ac_ext <<_ACEOF 3475/* end confdefs.h. */ 3476#include <string.h> 3477 3478_ACEOF 3479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3480 $EGREP "memchr" >/dev/null 2>&1; then 3481 : 3482else 3483 ac_cv_header_stdc=no 3484fi 3485rm -f conftest* 3486 3487fi 3488 3489if test $ac_cv_header_stdc = yes; then 3490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3491 cat >conftest.$ac_ext <<_ACEOF 3492/* confdefs.h. */ 3493_ACEOF 3494cat confdefs.h >>conftest.$ac_ext 3495cat >>conftest.$ac_ext <<_ACEOF 3496/* end confdefs.h. */ 3497#include <stdlib.h> 3498 3499_ACEOF 3500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3501 $EGREP "free" >/dev/null 2>&1; then 3502 : 3503else 3504 ac_cv_header_stdc=no 3505fi 3506rm -f conftest* 3507 3508fi 3509 3510if test $ac_cv_header_stdc = yes; then 3511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3512 if test "$cross_compiling" = yes; then 3513 : 3514else 3515 cat >conftest.$ac_ext <<_ACEOF 3516/* confdefs.h. */ 3517_ACEOF 3518cat confdefs.h >>conftest.$ac_ext 3519cat >>conftest.$ac_ext <<_ACEOF 3520/* end confdefs.h. */ 3521#include <ctype.h> 3522#include <stdlib.h> 3523#if ((' ' & 0x0FF) == 0x020) 3524# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3525# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3526#else 3527# define ISLOWER(c) \ 3528 (('a' <= (c) && (c) <= 'i') \ 3529 || ('j' <= (c) && (c) <= 'r') \ 3530 || ('s' <= (c) && (c) <= 'z')) 3531# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3532#endif 3533 3534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3535int 3536main () 3537{ 3538 int i; 3539 for (i = 0; i < 256; i++) 3540 if (XOR (islower (i), ISLOWER (i)) 3541 || toupper (i) != TOUPPER (i)) 3542 return 2; 3543 return 0; 3544} 3545_ACEOF 3546rm -f conftest$ac_exeext 3547if { (ac_try="$ac_link" 3548case "(($ac_try" in 3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3550 *) ac_try_echo=$ac_try;; 3551esac 3552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3553$as_echo "$ac_try_echo") >&5 3554 (eval "$ac_link") 2>&5 3555 ac_status=$? 3556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3558 { (case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3563$as_echo "$ac_try_echo") >&5 3564 (eval "$ac_try") 2>&5 3565 ac_status=$? 3566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3567 (exit $ac_status); }; }; then 3568 : 3569else 3570 $as_echo "$as_me: program exited with status $ac_status" >&5 3571$as_echo "$as_me: failed program was:" >&5 3572sed 's/^/| /' conftest.$ac_ext >&5 3573 3574( exit $ac_status ) 3575ac_cv_header_stdc=no 3576fi 3577rm -rf conftest.dSYM 3578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3579fi 3580 3581 3582fi 3583fi 3584{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3585$as_echo "$ac_cv_header_stdc" >&6; } 3586if test $ac_cv_header_stdc = yes; then 3587 3588cat >>confdefs.h <<\_ACEOF 3589#define STDC_HEADERS 1 3590_ACEOF 3591 3592fi 3593 3594# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3605 inttypes.h stdint.h unistd.h 3606do 3607as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3608{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3609$as_echo_n "checking for $ac_header... " >&6; } 3610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3611 $as_echo_n "(cached) " >&6 3612else 3613 cat >conftest.$ac_ext <<_ACEOF 3614/* confdefs.h. */ 3615_ACEOF 3616cat confdefs.h >>conftest.$ac_ext 3617cat >>conftest.$ac_ext <<_ACEOF 3618/* end confdefs.h. */ 3619$ac_includes_default 3620 3621#include <$ac_header> 3622_ACEOF 3623rm -f conftest.$ac_objext 3624if { (ac_try="$ac_compile" 3625case "(($ac_try" in 3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *) ac_try_echo=$ac_try;; 3628esac 3629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3630$as_echo "$ac_try_echo") >&5 3631 (eval "$ac_compile") 2>conftest.er1 3632 ac_status=$? 3633 grep -v '^ *+' conftest.er1 >conftest.err 3634 rm -f conftest.er1 3635 cat conftest.err >&5 3636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3637 (exit $ac_status); } && { 3638 test -z "$ac_c_werror_flag" || 3639 test ! -s conftest.err 3640 } && test -s conftest.$ac_objext; then 3641 eval "$as_ac_Header=yes" 3642else 3643 $as_echo "$as_me: failed program was:" >&5 3644sed 's/^/| /' conftest.$ac_ext >&5 3645 3646 eval "$as_ac_Header=no" 3647fi 3648 3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3650fi 3651ac_res=`eval 'as_val=${'$as_ac_Header'} 3652 $as_echo "$as_val"'` 3653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3654$as_echo "$ac_res" >&6; } 3655as_val=`eval 'as_val=${'$as_ac_Header'} 3656 $as_echo "$as_val"'` 3657 if test "x$as_val" = x""yes; then 3658 cat >>confdefs.h <<_ACEOF 3659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3660_ACEOF 3661 3662fi 3663 3664done 3665 3666 3667 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3668$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3669if test "${ac_cv_prog_cc_c99+set}" = set; then 3670 $as_echo_n "(cached) " >&6 3671else 3672 ac_cv_prog_cc_c99=no 3673ac_save_CC=$CC 3674cat >conftest.$ac_ext <<_ACEOF 3675/* confdefs.h. */ 3676_ACEOF 3677cat confdefs.h >>conftest.$ac_ext 3678cat >>conftest.$ac_ext <<_ACEOF 3679/* end confdefs.h. */ 3680#include <stdarg.h> 3681#include <stdbool.h> 3682#include <stdlib.h> 3683#include <wchar.h> 3684#include <stdio.h> 3685 3686// Check varargs macros. These examples are taken from C99 6.10.3.5. 3687#define debug(...) fprintf (stderr, __VA_ARGS__) 3688#define showlist(...) puts (#__VA_ARGS__) 3689#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3690static void 3691test_varargs_macros (void) 3692{ 3693 int x = 1234; 3694 int y = 5678; 3695 debug ("Flag"); 3696 debug ("X = %d\n", x); 3697 showlist (The first, second, and third items.); 3698 report (x>y, "x is %d but y is %d", x, y); 3699} 3700 3701// Check long long types. 3702#define BIG64 18446744073709551615ull 3703#define BIG32 4294967295ul 3704#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3705#if !BIG_OK 3706 your preprocessor is broken; 3707#endif 3708#if BIG_OK 3709#else 3710 your preprocessor is broken; 3711#endif 3712static long long int bignum = -9223372036854775807LL; 3713static unsigned long long int ubignum = BIG64; 3714 3715struct incomplete_array 3716{ 3717 int datasize; 3718 double data[]; 3719}; 3720 3721struct named_init { 3722 int number; 3723 const wchar_t *name; 3724 double average; 3725}; 3726 3727typedef const char *ccp; 3728 3729static inline int 3730test_restrict (ccp restrict text) 3731{ 3732 // See if C++-style comments work. 3733 // Iterate through items via the restricted pointer. 3734 // Also check for declarations in for loops. 3735 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3736 continue; 3737 return 0; 3738} 3739 3740// Check varargs and va_copy. 3741static void 3742test_varargs (const char *format, ...) 3743{ 3744 va_list args; 3745 va_start (args, format); 3746 va_list args_copy; 3747 va_copy (args_copy, args); 3748 3749 const char *str; 3750 int number; 3751 float fnumber; 3752 3753 while (*format) 3754 { 3755 switch (*format++) 3756 { 3757 case 's': // string 3758 str = va_arg (args_copy, const char *); 3759 break; 3760 case 'd': // int 3761 number = va_arg (args_copy, int); 3762 break; 3763 case 'f': // float 3764 fnumber = va_arg (args_copy, double); 3765 break; 3766 default: 3767 break; 3768 } 3769 } 3770 va_end (args_copy); 3771 va_end (args); 3772} 3773 3774int 3775main () 3776{ 3777 3778 // Check bool. 3779 _Bool success = false; 3780 3781 // Check restrict. 3782 if (test_restrict ("String literal") == 0) 3783 success = true; 3784 char *restrict newvar = "Another string"; 3785 3786 // Check varargs. 3787 test_varargs ("s, d' f .", "string", 65, 34.234); 3788 test_varargs_macros (); 3789 3790 // Check flexible array members. 3791 struct incomplete_array *ia = 3792 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3793 ia->datasize = 10; 3794 for (int i = 0; i < ia->datasize; ++i) 3795 ia->data[i] = i * 1.234; 3796 3797 // Check named initializers. 3798 struct named_init ni = { 3799 .number = 34, 3800 .name = L"Test wide string", 3801 .average = 543.34343, 3802 }; 3803 3804 ni.number = 58; 3805 3806 int dynamic_array[ni.number]; 3807 dynamic_array[ni.number - 1] = 543; 3808 3809 // work around unused variable warnings 3810 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3811 || dynamic_array[ni.number - 1] != 543); 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3818do 3819 CC="$ac_save_CC $ac_arg" 3820 rm -f conftest.$ac_objext 3821if { (ac_try="$ac_compile" 3822case "(($ac_try" in 3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3824 *) ac_try_echo=$ac_try;; 3825esac 3826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3827$as_echo "$ac_try_echo") >&5 3828 (eval "$ac_compile") 2>conftest.er1 3829 ac_status=$? 3830 grep -v '^ *+' conftest.er1 >conftest.err 3831 rm -f conftest.er1 3832 cat conftest.err >&5 3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3834 (exit $ac_status); } && { 3835 test -z "$ac_c_werror_flag" || 3836 test ! -s conftest.err 3837 } && test -s conftest.$ac_objext; then 3838 ac_cv_prog_cc_c99=$ac_arg 3839else 3840 $as_echo "$as_me: failed program was:" >&5 3841sed 's/^/| /' conftest.$ac_ext >&5 3842 3843 3844fi 3845 3846rm -f core conftest.err conftest.$ac_objext 3847 test "x$ac_cv_prog_cc_c99" != "xno" && break 3848done 3849rm -f conftest.$ac_ext 3850CC=$ac_save_CC 3851 3852fi 3853# AC_CACHE_VAL 3854case "x$ac_cv_prog_cc_c99" in 3855 x) 3856 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3857$as_echo "none needed" >&6; } ;; 3858 xno) 3859 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3860$as_echo "unsupported" >&6; } ;; 3861 *) 3862 CC="$CC $ac_cv_prog_cc_c99" 3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3864$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3865esac 3866 3867 3868 3869 3870 3871if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3872 if test -n "$ac_tool_prefix"; then 3873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3874set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3876$as_echo_n "checking for $ac_word... " >&6; } 3877if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 3878 $as_echo_n "(cached) " >&6 3879else 3880 case $PKG_CONFIG in 3881 [\\/]* | ?:[\\/]*) 3882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3883 ;; 3884 *) 3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3886for as_dir in $PATH 3887do 3888 IFS=$as_save_IFS 3889 test -z "$as_dir" && as_dir=. 3890 for ac_exec_ext in '' $ac_executable_extensions; do 3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3894 break 2 3895 fi 3896done 3897done 3898IFS=$as_save_IFS 3899 3900 ;; 3901esac 3902fi 3903PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3904if test -n "$PKG_CONFIG"; then 3905 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 3906$as_echo "$PKG_CONFIG" >&6; } 3907else 3908 { $as_echo "$as_me:$LINENO: result: no" >&5 3909$as_echo "no" >&6; } 3910fi 3911 3912 3913fi 3914if test -z "$ac_cv_path_PKG_CONFIG"; then 3915 ac_pt_PKG_CONFIG=$PKG_CONFIG 3916 # Extract the first word of "pkg-config", so it can be a program name with args. 3917set dummy pkg-config; ac_word=$2 3918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3919$as_echo_n "checking for $ac_word... " >&6; } 3920if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 3921 $as_echo_n "(cached) " >&6 3922else 3923 case $ac_pt_PKG_CONFIG in 3924 [\\/]* | ?:[\\/]*) 3925 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3926 ;; 3927 *) 3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3929for as_dir in $PATH 3930do 3931 IFS=$as_save_IFS 3932 test -z "$as_dir" && as_dir=. 3933 for ac_exec_ext in '' $ac_executable_extensions; do 3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3935 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3937 break 2 3938 fi 3939done 3940done 3941IFS=$as_save_IFS 3942 3943 ;; 3944esac 3945fi 3946ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3947if test -n "$ac_pt_PKG_CONFIG"; then 3948 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 3949$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3950else 3951 { $as_echo "$as_me:$LINENO: result: no" >&5 3952$as_echo "no" >&6; } 3953fi 3954 3955 if test "x$ac_pt_PKG_CONFIG" = x; then 3956 PKG_CONFIG="" 3957 else 3958 case $cross_compiling:$ac_tool_warned in 3959yes:) 3960{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3962ac_tool_warned=yes ;; 3963esac 3964 PKG_CONFIG=$ac_pt_PKG_CONFIG 3965 fi 3966else 3967 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3968fi 3969 3970fi 3971if test -n "$PKG_CONFIG"; then 3972 _pkg_min_version=0.9.0 3973 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 3974$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3975 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3976 { $as_echo "$as_me:$LINENO: result: yes" >&5 3977$as_echo "yes" >&6; } 3978 else 3979 { $as_echo "$as_me:$LINENO: result: no" >&5 3980$as_echo "no" >&6; } 3981 PKG_CONFIG="" 3982 fi 3983 3984fi 3985ac_aux_dir= 3986for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3987 if test -f "$ac_dir/install-sh"; then 3988 ac_aux_dir=$ac_dir 3989 ac_install_sh="$ac_aux_dir/install-sh -c" 3990 break 3991 elif test -f "$ac_dir/install.sh"; then 3992 ac_aux_dir=$ac_dir 3993 ac_install_sh="$ac_aux_dir/install.sh -c" 3994 break 3995 elif test -f "$ac_dir/shtool"; then 3996 ac_aux_dir=$ac_dir 3997 ac_install_sh="$ac_aux_dir/shtool install -c" 3998 break 3999 fi 4000done 4001if test -z "$ac_aux_dir"; then 4002 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 4003$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 4004 { (exit 1); exit 1; }; } 4005fi 4006 4007# These three variables are undocumented and unsupported, 4008# and are intended to be withdrawn in a future Autoconf release. 4009# They can cause serious problems if a builder's source tree is in a directory 4010# whose full name contains unusual characters. 4011ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4012ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4013ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4014 4015 4016# Make sure we can run config.sub. 4017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4018 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4019$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4020 { (exit 1); exit 1; }; } 4021 4022{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4023$as_echo_n "checking build system type... " >&6; } 4024if test "${ac_cv_build+set}" = set; then 4025 $as_echo_n "(cached) " >&6 4026else 4027 ac_build_alias=$build_alias 4028test "x$ac_build_alias" = x && 4029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4030test "x$ac_build_alias" = x && 4031 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4032$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4033 { (exit 1); exit 1; }; } 4034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4035 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4036$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4037 { (exit 1); exit 1; }; } 4038 4039fi 4040{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4041$as_echo "$ac_cv_build" >&6; } 4042case $ac_cv_build in 4043*-*-*) ;; 4044*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4045$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4046 { (exit 1); exit 1; }; };; 4047esac 4048build=$ac_cv_build 4049ac_save_IFS=$IFS; IFS='-' 4050set x $ac_cv_build 4051shift 4052build_cpu=$1 4053build_vendor=$2 4054shift; shift 4055# Remember, the first character of IFS is used to create $*, 4056# except with old shells: 4057build_os=$* 4058IFS=$ac_save_IFS 4059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4060 4061 4062{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4063$as_echo_n "checking host system type... " >&6; } 4064if test "${ac_cv_host+set}" = set; then 4065 $as_echo_n "(cached) " >&6 4066else 4067 if test "x$host_alias" = x; then 4068 ac_cv_host=$ac_cv_build 4069else 4070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4071 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4072$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4073 { (exit 1); exit 1; }; } 4074fi 4075 4076fi 4077{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4078$as_echo "$ac_cv_host" >&6; } 4079case $ac_cv_host in 4080*-*-*) ;; 4081*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4082$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4083 { (exit 1); exit 1; }; };; 4084esac 4085host=$ac_cv_host 4086ac_save_IFS=$IFS; IFS='-' 4087set x $ac_cv_host 4088shift 4089host_cpu=$1 4090host_vendor=$2 4091shift; shift 4092# Remember, the first character of IFS is used to create $*, 4093# except with old shells: 4094host_os=$* 4095IFS=$ac_save_IFS 4096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4097 4098 4099 4100 4101 4102if test "x$GCC" = xyes ; then 4103 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4104-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4105-Wbad-function-cast" 4106 case `$CC -dumpversion` in 4107 3.4.* | 4.*) 4108 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4109 ;; 4110 esac 4111else 4112 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4113$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4114if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4115 $as_echo_n "(cached) " >&6 4116else 4117 cat >conftest.$ac_ext <<_ACEOF 4118/* confdefs.h. */ 4119_ACEOF 4120cat confdefs.h >>conftest.$ac_ext 4121cat >>conftest.$ac_ext <<_ACEOF 4122/* end confdefs.h. */ 4123$ac_includes_default 4124int 4125main () 4126{ 4127#ifndef __SUNPRO_C 4128 (void) __SUNPRO_C; 4129#endif 4130 4131 ; 4132 return 0; 4133} 4134_ACEOF 4135rm -f conftest.$ac_objext 4136if { (ac_try="$ac_compile" 4137case "(($ac_try" in 4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4139 *) ac_try_echo=$ac_try;; 4140esac 4141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4142$as_echo "$ac_try_echo") >&5 4143 (eval "$ac_compile") 2>conftest.er1 4144 ac_status=$? 4145 grep -v '^ *+' conftest.er1 >conftest.err 4146 rm -f conftest.er1 4147 cat conftest.err >&5 4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4149 (exit $ac_status); } && { 4150 test -z "$ac_c_werror_flag" || 4151 test ! -s conftest.err 4152 } && test -s conftest.$ac_objext; then 4153 ac_cv_have_decl___SUNPRO_C=yes 4154else 4155 $as_echo "$as_me: failed program was:" >&5 4156sed 's/^/| /' conftest.$ac_ext >&5 4157 4158 ac_cv_have_decl___SUNPRO_C=no 4159fi 4160 4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4162fi 4163{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4164$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4165if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4166 SUNCC="yes" 4167else 4168 SUNCC="no" 4169fi 4170 4171 if test "x$SUNCC" = "xyes"; then 4172 CWARNFLAGS="-v" 4173 fi 4174fi 4175 4176# Check whether --enable-silent-rules was given. 4177if test "${enable_silent_rules+set}" = set; then 4178 enableval=$enable_silent_rules; 4179fi 4180 4181case $enable_silent_rules in 4182yes) AM_DEFAULT_VERBOSITY=0;; 4183no) AM_DEFAULT_VERBOSITY=1;; 4184*) AM_DEFAULT_VERBOSITY=0;; 4185esac 4186AM_BACKSLASH='\' 4187 4188 4189 4190 4191 4192 4193 4194# Check whether --enable-strict-compilation was given. 4195if test "${enable_strict_compilation+set}" = set; then 4196 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4197else 4198 STRICT_COMPILE=no 4199fi 4200 4201if test "x$STRICT_COMPILE" = "xyes"; then 4202 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4203$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4204if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4205 $as_echo_n "(cached) " >&6 4206else 4207 cat >conftest.$ac_ext <<_ACEOF 4208/* confdefs.h. */ 4209_ACEOF 4210cat confdefs.h >>conftest.$ac_ext 4211cat >>conftest.$ac_ext <<_ACEOF 4212/* end confdefs.h. */ 4213$ac_includes_default 4214int 4215main () 4216{ 4217#ifndef __SUNPRO_C 4218 (void) __SUNPRO_C; 4219#endif 4220 4221 ; 4222 return 0; 4223} 4224_ACEOF 4225rm -f conftest.$ac_objext 4226if { (ac_try="$ac_compile" 4227case "(($ac_try" in 4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4229 *) ac_try_echo=$ac_try;; 4230esac 4231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4232$as_echo "$ac_try_echo") >&5 4233 (eval "$ac_compile") 2>conftest.er1 4234 ac_status=$? 4235 grep -v '^ *+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); } && { 4240 test -z "$ac_c_werror_flag" || 4241 test ! -s conftest.err 4242 } && test -s conftest.$ac_objext; then 4243 ac_cv_have_decl___SUNPRO_C=yes 4244else 4245 $as_echo "$as_me: failed program was:" >&5 4246sed 's/^/| /' conftest.$ac_ext >&5 4247 4248 ac_cv_have_decl___SUNPRO_C=no 4249fi 4250 4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4252fi 4253{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4254$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4255if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4256 SUNCC="yes" 4257else 4258 SUNCC="no" 4259fi 4260 4261 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4262$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4263if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4264 $as_echo_n "(cached) " >&6 4265else 4266 cat >conftest.$ac_ext <<_ACEOF 4267/* confdefs.h. */ 4268_ACEOF 4269cat confdefs.h >>conftest.$ac_ext 4270cat >>conftest.$ac_ext <<_ACEOF 4271/* end confdefs.h. */ 4272$ac_includes_default 4273int 4274main () 4275{ 4276#ifndef __INTEL_COMPILER 4277 (void) __INTEL_COMPILER; 4278#endif 4279 4280 ; 4281 return 0; 4282} 4283_ACEOF 4284rm -f conftest.$ac_objext 4285if { (ac_try="$ac_compile" 4286case "(($ac_try" in 4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4288 *) ac_try_echo=$ac_try;; 4289esac 4290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4291$as_echo "$ac_try_echo") >&5 4292 (eval "$ac_compile") 2>conftest.er1 4293 ac_status=$? 4294 grep -v '^ *+' conftest.er1 >conftest.err 4295 rm -f conftest.er1 4296 cat conftest.err >&5 4297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); } && { 4299 test -z "$ac_c_werror_flag" || 4300 test ! -s conftest.err 4301 } && test -s conftest.$ac_objext; then 4302 ac_cv_have_decl___INTEL_COMPILER=yes 4303else 4304 $as_echo "$as_me: failed program was:" >&5 4305sed 's/^/| /' conftest.$ac_ext >&5 4306 4307 ac_cv_have_decl___INTEL_COMPILER=no 4308fi 4309 4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4311fi 4312{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4313$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4314if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4315 INTELCC="yes" 4316else 4317 INTELCC="no" 4318fi 4319 4320 if test "x$GCC" = xyes ; then 4321 STRICT_CFLAGS="-pedantic -Werror" 4322 elif test "x$SUNCC" = "xyes"; then 4323 STRICT_CFLAGS="-errwarn" 4324 elif test "x$INTELCC" = "xyes"; then 4325 STRICT_CFLAGS="-Werror" 4326 fi 4327fi 4328CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4329 4330 4331 4332 4333# Check whether --with-release-version was given. 4334if test "${with_release_version+set}" = set; then 4335 withval=$with_release_version; RELEASE_VERSION="$withval" 4336else 4337 RELEASE_VERSION="" 4338fi 4339 4340 if test "x$RELEASE_VERSION" != "x"; then 4341 PACKAGE="$PACKAGE-$RELEASE_VERSION" 4342 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4343 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4344$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4345 fi 4346 4347cat >>confdefs.h <<_ACEOF 4348#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4349_ACEOF 4350 4351 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4352 if test "x$PVM" = "x"; then 4353 PVM="0" 4354 fi 4355 4356cat >>confdefs.h <<_ACEOF 4357#define PACKAGE_VERSION_MINOR $PVM 4358_ACEOF 4359 4360 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4361 if test "x$PVP" = "x"; then 4362 PVP="0" 4363 fi 4364 4365cat >>confdefs.h <<_ACEOF 4366#define PACKAGE_VERSION_PATCHLEVEL $PVP 4367_ACEOF 4368 4369 4370 4371CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4372mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4373|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4374echo 'git directory not found: installing possibly empty changelog.' >&2)" 4375 4376 4377 4378 4379macros_docdir=$($PKG_CONFIG --print-errors --variable=docdir xorg-macros) 4380INSTALL_CMD="(cp -f "$macros_docdir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4381mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4382|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4383echo 'util-macros \"docdir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4384 4385 4386 4387 4388 4389if test x$APP_MAN_SUFFIX = x ; then 4390 APP_MAN_SUFFIX=1 4391fi 4392if test x$APP_MAN_DIR = x ; then 4393 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4394fi 4395 4396if test x$LIB_MAN_SUFFIX = x ; then 4397 LIB_MAN_SUFFIX=3 4398fi 4399if test x$LIB_MAN_DIR = x ; then 4400 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4401fi 4402 4403if test x$FILE_MAN_SUFFIX = x ; then 4404 case $host_os in 4405 solaris*) FILE_MAN_SUFFIX=4 ;; 4406 *) FILE_MAN_SUFFIX=5 ;; 4407 esac 4408fi 4409if test x$FILE_MAN_DIR = x ; then 4410 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4411fi 4412 4413if test x$MISC_MAN_SUFFIX = x ; then 4414 case $host_os in 4415 solaris*) MISC_MAN_SUFFIX=5 ;; 4416 *) MISC_MAN_SUFFIX=7 ;; 4417 esac 4418fi 4419if test x$MISC_MAN_DIR = x ; then 4420 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4421fi 4422 4423if test x$DRIVER_MAN_SUFFIX = x ; then 4424 case $host_os in 4425 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4426 *) DRIVER_MAN_SUFFIX=4 ;; 4427 esac 4428fi 4429if test x$DRIVER_MAN_DIR = x ; then 4430 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4431fi 4432 4433if test x$ADMIN_MAN_SUFFIX = x ; then 4434 case $host_os in 4435 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4436 *) ADMIN_MAN_SUFFIX=8 ;; 4437 esac 4438fi 4439if test x$ADMIN_MAN_DIR = x ; then 4440 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4441fi 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459ac_aux_dir= 4460for ac_dir in . "$srcdir"/.; do 4461 if test -f "$ac_dir/install-sh"; then 4462 ac_aux_dir=$ac_dir 4463 ac_install_sh="$ac_aux_dir/install-sh -c" 4464 break 4465 elif test -f "$ac_dir/install.sh"; then 4466 ac_aux_dir=$ac_dir 4467 ac_install_sh="$ac_aux_dir/install.sh -c" 4468 break 4469 elif test -f "$ac_dir/shtool"; then 4470 ac_aux_dir=$ac_dir 4471 ac_install_sh="$ac_aux_dir/shtool install -c" 4472 break 4473 fi 4474done 4475if test -z "$ac_aux_dir"; then 4476 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 4477$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 4478 { (exit 1); exit 1; }; } 4479fi 4480 4481# These three variables are undocumented and unsupported, 4482# and are intended to be withdrawn in a future Autoconf release. 4483# They can cause serious problems if a builder's source tree is in a directory 4484# whose full name contains unusual characters. 4485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4488 4489 4490 4491am__api_version='1.11' 4492 4493# Find a good install program. We prefer a C program (faster), 4494# so one script is as good as another. But avoid the broken or 4495# incompatible versions: 4496# SysV /etc/install, /usr/sbin/install 4497# SunOS /usr/etc/install 4498# IRIX /sbin/install 4499# AIX /bin/install 4500# AmigaOS /C/install, which installs bootblocks on floppy discs 4501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4502# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4504# OS/2's system install, which has a completely different semantic 4505# ./install, which can be erroneously created by make from ./install.sh. 4506# Reject install programs that cannot install multiple files. 4507{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4508$as_echo_n "checking for a BSD-compatible install... " >&6; } 4509if test -z "$INSTALL"; then 4510if test "${ac_cv_path_install+set}" = set; then 4511 $as_echo_n "(cached) " >&6 4512else 4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4514for as_dir in $PATH 4515do 4516 IFS=$as_save_IFS 4517 test -z "$as_dir" && as_dir=. 4518 # Account for people who put trailing slashes in PATH elements. 4519case $as_dir/ in 4520 ./ | .// | /cC/* | \ 4521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4523 /usr/ucb/* ) ;; 4524 *) 4525 # OSF1 and SCO ODT 3.0 have their own names for install. 4526 # Don't use installbsd from OSF since it installs stuff as root 4527 # by default. 4528 for ac_prog in ginstall scoinst install; do 4529 for ac_exec_ext in '' $ac_executable_extensions; do 4530 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4531 if test $ac_prog = install && 4532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4533 # AIX install. It has an incompatible calling convention. 4534 : 4535 elif test $ac_prog = install && 4536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4537 # program-specific install script used by HP pwplus--don't use. 4538 : 4539 else 4540 rm -rf conftest.one conftest.two conftest.dir 4541 echo one > conftest.one 4542 echo two > conftest.two 4543 mkdir conftest.dir 4544 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4545 test -s conftest.one && test -s conftest.two && 4546 test -s conftest.dir/conftest.one && 4547 test -s conftest.dir/conftest.two 4548 then 4549 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4550 break 3 4551 fi 4552 fi 4553 fi 4554 done 4555 done 4556 ;; 4557esac 4558 4559done 4560IFS=$as_save_IFS 4561 4562rm -rf conftest.one conftest.two conftest.dir 4563 4564fi 4565 if test "${ac_cv_path_install+set}" = set; then 4566 INSTALL=$ac_cv_path_install 4567 else 4568 # As a last resort, use the slow shell script. Don't cache a 4569 # value for INSTALL within a source directory, because that will 4570 # break other packages using the cache if that directory is 4571 # removed, or if the value is a relative name. 4572 INSTALL=$ac_install_sh 4573 fi 4574fi 4575{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4576$as_echo "$INSTALL" >&6; } 4577 4578# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4579# It thinks the first close brace ends the variable substitution. 4580test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4581 4582test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4583 4584test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4585 4586{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4587$as_echo_n "checking whether build environment is sane... " >&6; } 4588# Just in case 4589sleep 1 4590echo timestamp > conftest.file 4591# Reject unsafe characters in $srcdir or the absolute working directory 4592# name. Accept space and tab only in the latter. 4593am_lf=' 4594' 4595case `pwd` in 4596 *[\\\"\#\$\&\'\`$am_lf]*) 4597 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 4598$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 4599 { (exit 1); exit 1; }; };; 4600esac 4601case $srcdir in 4602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4603 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 4604$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 4605 { (exit 1); exit 1; }; };; 4606esac 4607 4608# Do `set' in a subshell so we don't clobber the current shell's 4609# arguments. Must try -L first in case configure is actually a 4610# symlink; some systems play weird games with the mod time of symlinks 4611# (eg FreeBSD returns the mod time of the symlink's containing 4612# directory). 4613if ( 4614 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4615 if test "$*" = "X"; then 4616 # -L didn't work. 4617 set X `ls -t "$srcdir/configure" conftest.file` 4618 fi 4619 rm -f conftest.file 4620 if test "$*" != "X $srcdir/configure conftest.file" \ 4621 && test "$*" != "X conftest.file $srcdir/configure"; then 4622 4623 # If neither matched, then we have a broken ls. This can happen 4624 # if, for instance, CONFIG_SHELL is bash and it inherits a 4625 # broken ls alias from the environment. This has actually 4626 # happened. Such a system could not be considered "sane". 4627 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4628alias in your environment" >&5 4629$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4630alias in your environment" >&2;} 4631 { (exit 1); exit 1; }; } 4632 fi 4633 4634 test "$2" = conftest.file 4635 ) 4636then 4637 # Ok. 4638 : 4639else 4640 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4641Check your system clock" >&5 4642$as_echo "$as_me: error: newly created file is older than distributed files! 4643Check your system clock" >&2;} 4644 { (exit 1); exit 1; }; } 4645fi 4646{ $as_echo "$as_me:$LINENO: result: yes" >&5 4647$as_echo "yes" >&6; } 4648test "$program_prefix" != NONE && 4649 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4650# Use a double $ so make ignores it. 4651test "$program_suffix" != NONE && 4652 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4653# Double any \ or $. 4654# By default was `s,x,x', remove it if useless. 4655ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4656program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4657 4658# expand $ac_aux_dir to an absolute path 4659am_aux_dir=`cd $ac_aux_dir && pwd` 4660 4661if test x"${MISSING+set}" != xset; then 4662 case $am_aux_dir in 4663 *\ * | *\ *) 4664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4665 *) 4666 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4667 esac 4668fi 4669# Use eval to expand $SHELL 4670if eval "$MISSING --run true"; then 4671 am_missing_run="$MISSING --run " 4672else 4673 am_missing_run= 4674 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4675$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4676fi 4677 4678if test x"${install_sh}" != xset; then 4679 case $am_aux_dir in 4680 *\ * | *\ *) 4681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4682 *) 4683 install_sh="\${SHELL} $am_aux_dir/install-sh" 4684 esac 4685fi 4686 4687# Installed binaries are usually stripped using `strip' when the user 4688# run `make install-strip'. However `strip' might not be the right 4689# tool to use in cross-compilation environments, therefore Automake 4690# will honor the `STRIP' environment variable to overrule this program. 4691if test "$cross_compiling" != no; then 4692 if test -n "$ac_tool_prefix"; then 4693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4694set dummy ${ac_tool_prefix}strip; ac_word=$2 4695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4696$as_echo_n "checking for $ac_word... " >&6; } 4697if test "${ac_cv_prog_STRIP+set}" = set; then 4698 $as_echo_n "(cached) " >&6 4699else 4700 if test -n "$STRIP"; then 4701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4702else 4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704for as_dir in $PATH 4705do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4710 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4712 break 2 4713 fi 4714done 4715done 4716IFS=$as_save_IFS 4717 4718fi 4719fi 4720STRIP=$ac_cv_prog_STRIP 4721if test -n "$STRIP"; then 4722 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4723$as_echo "$STRIP" >&6; } 4724else 4725 { $as_echo "$as_me:$LINENO: result: no" >&5 4726$as_echo "no" >&6; } 4727fi 4728 4729 4730fi 4731if test -z "$ac_cv_prog_STRIP"; then 4732 ac_ct_STRIP=$STRIP 4733 # Extract the first word of "strip", so it can be a program name with args. 4734set dummy strip; ac_word=$2 4735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4736$as_echo_n "checking for $ac_word... " >&6; } 4737if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4738 $as_echo_n "(cached) " >&6 4739else 4740 if test -n "$ac_ct_STRIP"; then 4741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4742else 4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4744for as_dir in $PATH 4745do 4746 IFS=$as_save_IFS 4747 test -z "$as_dir" && as_dir=. 4748 for ac_exec_ext in '' $ac_executable_extensions; do 4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4750 ac_cv_prog_ac_ct_STRIP="strip" 4751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4752 break 2 4753 fi 4754done 4755done 4756IFS=$as_save_IFS 4757 4758fi 4759fi 4760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4761if test -n "$ac_ct_STRIP"; then 4762 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4763$as_echo "$ac_ct_STRIP" >&6; } 4764else 4765 { $as_echo "$as_me:$LINENO: result: no" >&5 4766$as_echo "no" >&6; } 4767fi 4768 4769 if test "x$ac_ct_STRIP" = x; then 4770 STRIP=":" 4771 else 4772 case $cross_compiling:$ac_tool_warned in 4773yes:) 4774{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4776ac_tool_warned=yes ;; 4777esac 4778 STRIP=$ac_ct_STRIP 4779 fi 4780else 4781 STRIP="$ac_cv_prog_STRIP" 4782fi 4783 4784fi 4785INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4786 4787{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 4788$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4789if test -z "$MKDIR_P"; then 4790 if test "${ac_cv_path_mkdir+set}" = set; then 4791 $as_echo_n "(cached) " >&6 4792else 4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4794for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4795do 4796 IFS=$as_save_IFS 4797 test -z "$as_dir" && as_dir=. 4798 for ac_prog in mkdir gmkdir; do 4799 for ac_exec_ext in '' $ac_executable_extensions; do 4800 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4802 'mkdir (GNU coreutils) '* | \ 4803 'mkdir (coreutils) '* | \ 4804 'mkdir (fileutils) '4.1*) 4805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4806 break 3;; 4807 esac 4808 done 4809 done 4810done 4811IFS=$as_save_IFS 4812 4813fi 4814 4815 if test "${ac_cv_path_mkdir+set}" = set; then 4816 MKDIR_P="$ac_cv_path_mkdir -p" 4817 else 4818 # As a last resort, use the slow shell script. Don't cache a 4819 # value for MKDIR_P within a source directory, because that will 4820 # break other packages using the cache if that directory is 4821 # removed, or if the value is a relative name. 4822 test -d ./--version && rmdir ./--version 4823 MKDIR_P="$ac_install_sh -d" 4824 fi 4825fi 4826{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 4827$as_echo "$MKDIR_P" >&6; } 4828 4829mkdir_p="$MKDIR_P" 4830case $mkdir_p in 4831 [\\/$]* | ?:[\\/]*) ;; 4832 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4833esac 4834 4835for ac_prog in gawk mawk nawk awk 4836do 4837 # Extract the first word of "$ac_prog", so it can be a program name with args. 4838set dummy $ac_prog; ac_word=$2 4839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4840$as_echo_n "checking for $ac_word... " >&6; } 4841if test "${ac_cv_prog_AWK+set}" = set; then 4842 $as_echo_n "(cached) " >&6 4843else 4844 if test -n "$AWK"; then 4845 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4846else 4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 test -z "$as_dir" && as_dir=. 4852 for ac_exec_ext in '' $ac_executable_extensions; do 4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4854 ac_cv_prog_AWK="$ac_prog" 4855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4856 break 2 4857 fi 4858done 4859done 4860IFS=$as_save_IFS 4861 4862fi 4863fi 4864AWK=$ac_cv_prog_AWK 4865if test -n "$AWK"; then 4866 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 4867$as_echo "$AWK" >&6; } 4868else 4869 { $as_echo "$as_me:$LINENO: result: no" >&5 4870$as_echo "no" >&6; } 4871fi 4872 4873 4874 test -n "$AWK" && break 4875done 4876 4877{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4879set x ${MAKE-make} 4880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4881if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4882 $as_echo_n "(cached) " >&6 4883else 4884 cat >conftest.make <<\_ACEOF 4885SHELL = /bin/sh 4886all: 4887 @echo '@@@%%%=$(MAKE)=@@@%%%' 4888_ACEOF 4889# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4890case `${MAKE-make} -f conftest.make 2>/dev/null` in 4891 *@@@%%%=?*=@@@%%%*) 4892 eval ac_cv_prog_make_${ac_make}_set=yes;; 4893 *) 4894 eval ac_cv_prog_make_${ac_make}_set=no;; 4895esac 4896rm -f conftest.make 4897fi 4898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4899 { $as_echo "$as_me:$LINENO: result: yes" >&5 4900$as_echo "yes" >&6; } 4901 SET_MAKE= 4902else 4903 { $as_echo "$as_me:$LINENO: result: no" >&5 4904$as_echo "no" >&6; } 4905 SET_MAKE="MAKE=${MAKE-make}" 4906fi 4907 4908rm -rf .tst 2>/dev/null 4909mkdir .tst 2>/dev/null 4910if test -d .tst; then 4911 am__leading_dot=. 4912else 4913 am__leading_dot=_ 4914fi 4915rmdir .tst 2>/dev/null 4916 4917DEPDIR="${am__leading_dot}deps" 4918 4919ac_config_commands="$ac_config_commands depfiles" 4920 4921 4922am_make=${MAKE-make} 4923cat > confinc << 'END' 4924am__doit: 4925 @echo this is the am__doit target 4926.PHONY: am__doit 4927END 4928# If we don't find an include directive, just comment out the code. 4929{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4930$as_echo_n "checking for style of include used by $am_make... " >&6; } 4931am__include="#" 4932am__quote= 4933_am_result=none 4934# First try GNU make style include. 4935echo "include confinc" > confmf 4936# Ignore all kinds of additional output from `make'. 4937case `$am_make -s -f confmf 2> /dev/null` in #( 4938*the\ am__doit\ target*) 4939 am__include=include 4940 am__quote= 4941 _am_result=GNU 4942 ;; 4943esac 4944# Now try BSD make style include. 4945if test "$am__include" = "#"; then 4946 echo '.include "confinc"' > confmf 4947 case `$am_make -s -f confmf 2> /dev/null` in #( 4948 *the\ am__doit\ target*) 4949 am__include=.include 4950 am__quote="\"" 4951 _am_result=BSD 4952 ;; 4953 esac 4954fi 4955 4956 4957{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 4958$as_echo "$_am_result" >&6; } 4959rm -f confinc confmf 4960 4961# Check whether --enable-dependency-tracking was given. 4962if test "${enable_dependency_tracking+set}" = set; then 4963 enableval=$enable_dependency_tracking; 4964fi 4965 4966if test "x$enable_dependency_tracking" != xno; then 4967 am_depcomp="$ac_aux_dir/depcomp" 4968 AMDEPBACKSLASH='\' 4969fi 4970 if test "x$enable_dependency_tracking" != xno; then 4971 AMDEP_TRUE= 4972 AMDEP_FALSE='#' 4973else 4974 AMDEP_TRUE='#' 4975 AMDEP_FALSE= 4976fi 4977 4978 4979if test "`cd $srcdir && pwd`" != "`pwd`"; then 4980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4981 # is not polluted with repeated "-I." 4982 am__isrc=' -I$(srcdir)' 4983 # test to see if srcdir already configured 4984 if test -f $srcdir/config.status; then 4985 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 4986$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 4987 { (exit 1); exit 1; }; } 4988 fi 4989fi 4990 4991# test whether we have cygpath 4992if test -z "$CYGPATH_W"; then 4993 if (cygpath --version) >/dev/null 2>/dev/null; then 4994 CYGPATH_W='cygpath -w' 4995 else 4996 CYGPATH_W=echo 4997 fi 4998fi 4999 5000 5001# Define the identity of the package. 5002 PACKAGE='xf86-video-mga' 5003 VERSION='1.4.12' 5004 5005 5006cat >>confdefs.h <<_ACEOF 5007#define PACKAGE "$PACKAGE" 5008_ACEOF 5009 5010 5011cat >>confdefs.h <<_ACEOF 5012#define VERSION "$VERSION" 5013_ACEOF 5014 5015# Some tools Automake needs. 5016 5017ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5018 5019 5020AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5021 5022 5023AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5024 5025 5026AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5027 5028 5029MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5030 5031# We need awk for the "check" target. The system "awk" is bad on 5032# some platforms. 5033# Always define AMTAR for backward compatibility. 5034 5035AMTAR=${AMTAR-"${am_missing_run}tar"} 5036 5037am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5038 5039 5040 5041 5042depcc="$CC" am_compiler_list= 5043 5044{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5045$as_echo_n "checking dependency style of $depcc... " >&6; } 5046if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5047 $as_echo_n "(cached) " >&6 5048else 5049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5050 # We make a subdir and do the tests there. Otherwise we can end up 5051 # making bogus files that we don't know about and never remove. For 5052 # instance it was reported that on HP-UX the gcc test will end up 5053 # making a dummy file named `D' -- because `-MD' means `put the output 5054 # in D'. 5055 mkdir conftest.dir 5056 # Copy depcomp to subdir because otherwise we won't find it if we're 5057 # using a relative directory. 5058 cp "$am_depcomp" conftest.dir 5059 cd conftest.dir 5060 # We will build objects and dependencies in a subdirectory because 5061 # it helps to detect inapplicable dependency modes. For instance 5062 # both Tru64's cc and ICC support -MD to output dependencies as a 5063 # side effect of compilation, but ICC will put the dependencies in 5064 # the current directory while Tru64 will put them in the object 5065 # directory. 5066 mkdir sub 5067 5068 am_cv_CC_dependencies_compiler_type=none 5069 if test "$am_compiler_list" = ""; then 5070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5071 fi 5072 am__universal=false 5073 case " $depcc " in #( 5074 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5075 esac 5076 5077 for depmode in $am_compiler_list; do 5078 # Setup a source with many dependencies, because some compilers 5079 # like to wrap large dependency lists on column 80 (with \), and 5080 # we should not choose a depcomp mode which is confused by this. 5081 # 5082 # We need to recreate these files for each test, as the compiler may 5083 # overwrite some of them when testing with obscure command lines. 5084 # This happens at least with the AIX C compiler. 5085 : > sub/conftest.c 5086 for i in 1 2 3 4 5 6; do 5087 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5089 # Solaris 8's {/usr,}/bin/sh. 5090 touch sub/conftst$i.h 5091 done 5092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5093 5094 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5095 # mode. It turns out that the SunPro C++ compiler does not properly 5096 # handle `-M -o', and we need to detect this. Also, some Intel 5097 # versions had trouble with output in subdirs 5098 am__obj=sub/conftest.${OBJEXT-o} 5099 am__minus_obj="-o $am__obj" 5100 case $depmode in 5101 gcc) 5102 # This depmode causes a compiler race in universal mode. 5103 test "$am__universal" = false || continue 5104 ;; 5105 nosideeffect) 5106 # after this tag, mechanisms are not by side-effect, so they'll 5107 # only be used when explicitly requested 5108 if test "x$enable_dependency_tracking" = xyes; then 5109 continue 5110 else 5111 break 5112 fi 5113 ;; 5114 msvisualcpp | msvcmsys) 5115 # This compiler won't grok `-c -o', but also, the minuso test has 5116 # not run yet. These depmodes are late enough in the game, and 5117 # so weak that their functioning should not be impacted. 5118 am__obj=conftest.${OBJEXT-o} 5119 am__minus_obj= 5120 ;; 5121 none) break ;; 5122 esac 5123 if depmode=$depmode \ 5124 source=sub/conftest.c object=$am__obj \ 5125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5127 >/dev/null 2>conftest.err && 5128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5132 # icc doesn't choke on unknown options, it will just issue warnings 5133 # or remarks (even with -Werror). So we grep stderr for any message 5134 # that says an option was ignored or not supported. 5135 # When given -MP, icc 7.0 and 7.1 complain thusly: 5136 # icc: Command line warning: ignoring option '-M'; no argument required 5137 # The diagnosis changed in icc 8.0: 5138 # icc: Command line remark: option '-MP' not supported 5139 if (grep 'ignoring option' conftest.err || 5140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5141 am_cv_CC_dependencies_compiler_type=$depmode 5142 break 5143 fi 5144 fi 5145 done 5146 5147 cd .. 5148 rm -rf conftest.dir 5149else 5150 am_cv_CC_dependencies_compiler_type=none 5151fi 5152 5153fi 5154{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5155$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5157 5158 if 5159 test "x$enable_dependency_tracking" != xno \ 5160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5161 am__fastdepCC_TRUE= 5162 am__fastdepCC_FALSE='#' 5163else 5164 am__fastdepCC_TRUE='#' 5165 am__fastdepCC_FALSE= 5166fi 5167 5168 5169 5170 5171 5172{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5173$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5174 # Check whether --enable-maintainer-mode was given. 5175if test "${enable_maintainer_mode+set}" = set; then 5176 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5177else 5178 USE_MAINTAINER_MODE=no 5179fi 5180 5181 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5182$as_echo "$USE_MAINTAINER_MODE" >&6; } 5183 if test $USE_MAINTAINER_MODE = yes; then 5184 MAINTAINER_MODE_TRUE= 5185 MAINTAINER_MODE_FALSE='#' 5186else 5187 MAINTAINER_MODE_TRUE='#' 5188 MAINTAINER_MODE_FALSE= 5189fi 5190 5191 MAINT=$MAINTAINER_MODE_TRUE 5192 5193 5194 5195# Checks for programs. 5196# Check whether --enable-static was given. 5197if test "${enable_static+set}" = set; then 5198 enableval=$enable_static; p=${PACKAGE-default} 5199 case $enableval in 5200 yes) enable_static=yes ;; 5201 no) enable_static=no ;; 5202 *) 5203 enable_static=no 5204 # Look at the argument we got. We use all the common list separators. 5205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5206 for pkg in $enableval; do 5207 IFS="$lt_save_ifs" 5208 if test "X$pkg" = "X$p"; then 5209 enable_static=yes 5210 fi 5211 done 5212 IFS="$lt_save_ifs" 5213 ;; 5214 esac 5215else 5216 enable_static=no 5217fi 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227case `pwd` in 5228 *\ * | *\ *) 5229 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5230$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5231esac 5232 5233 5234 5235macro_version='2.2.6' 5236macro_revision='1.3012' 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250ltmain="$ac_aux_dir/ltmain.sh" 5251 5252{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5253$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5254if test "${ac_cv_path_SED+set}" = set; then 5255 $as_echo_n "(cached) " >&6 5256else 5257 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5258 for ac_i in 1 2 3 4 5 6 7; do 5259 ac_script="$ac_script$as_nl$ac_script" 5260 done 5261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5262 $as_unset ac_script || ac_script= 5263 if test -z "$SED"; then 5264 ac_path_SED_found=false 5265 # Loop through the user's path and test for each of PROGNAME-LIST 5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267for as_dir in $PATH 5268do 5269 IFS=$as_save_IFS 5270 test -z "$as_dir" && as_dir=. 5271 for ac_prog in sed gsed; do 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5274 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5275# Check for GNU ac_path_SED and select it if it is found. 5276 # Check for GNU $ac_path_SED 5277case `"$ac_path_SED" --version 2>&1` in 5278*GNU*) 5279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5280*) 5281 ac_count=0 5282 $as_echo_n 0123456789 >"conftest.in" 5283 while : 5284 do 5285 cat "conftest.in" "conftest.in" >"conftest.tmp" 5286 mv "conftest.tmp" "conftest.in" 5287 cp "conftest.in" "conftest.nl" 5288 $as_echo '' >> "conftest.nl" 5289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5291 ac_count=`expr $ac_count + 1` 5292 if test $ac_count -gt ${ac_path_SED_max-0}; then 5293 # Best one so far, save it but keep looking for a better one 5294 ac_cv_path_SED="$ac_path_SED" 5295 ac_path_SED_max=$ac_count 5296 fi 5297 # 10*(2^10) chars as input seems more than enough 5298 test $ac_count -gt 10 && break 5299 done 5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5301esac 5302 5303 $ac_path_SED_found && break 3 5304 done 5305 done 5306done 5307IFS=$as_save_IFS 5308 if test -z "$ac_cv_path_SED"; then 5309 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5310$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5311 { (exit 1); exit 1; }; } 5312 fi 5313else 5314 ac_cv_path_SED=$SED 5315fi 5316 5317fi 5318{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5319$as_echo "$ac_cv_path_SED" >&6; } 5320 SED="$ac_cv_path_SED" 5321 rm -f conftest.sed 5322 5323test -z "$SED" && SED=sed 5324Xsed="$SED -e 1s/^X//" 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5337$as_echo_n "checking for fgrep... " >&6; } 5338if test "${ac_cv_path_FGREP+set}" = set; then 5339 $as_echo_n "(cached) " >&6 5340else 5341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5342 then ac_cv_path_FGREP="$GREP -F" 5343 else 5344 if test -z "$FGREP"; then 5345 ac_path_FGREP_found=false 5346 # Loop through the user's path and test for each of PROGNAME-LIST 5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5349do 5350 IFS=$as_save_IFS 5351 test -z "$as_dir" && as_dir=. 5352 for ac_prog in fgrep; do 5353 for ac_exec_ext in '' $ac_executable_extensions; do 5354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5355 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5356# Check for GNU ac_path_FGREP and select it if it is found. 5357 # Check for GNU $ac_path_FGREP 5358case `"$ac_path_FGREP" --version 2>&1` in 5359*GNU*) 5360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5361*) 5362 ac_count=0 5363 $as_echo_n 0123456789 >"conftest.in" 5364 while : 5365 do 5366 cat "conftest.in" "conftest.in" >"conftest.tmp" 5367 mv "conftest.tmp" "conftest.in" 5368 cp "conftest.in" "conftest.nl" 5369 $as_echo 'FGREP' >> "conftest.nl" 5370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5372 ac_count=`expr $ac_count + 1` 5373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5374 # Best one so far, save it but keep looking for a better one 5375 ac_cv_path_FGREP="$ac_path_FGREP" 5376 ac_path_FGREP_max=$ac_count 5377 fi 5378 # 10*(2^10) chars as input seems more than enough 5379 test $ac_count -gt 10 && break 5380 done 5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5382esac 5383 5384 $ac_path_FGREP_found && break 3 5385 done 5386 done 5387done 5388IFS=$as_save_IFS 5389 if test -z "$ac_cv_path_FGREP"; then 5390 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5391$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5392 { (exit 1); exit 1; }; } 5393 fi 5394else 5395 ac_cv_path_FGREP=$FGREP 5396fi 5397 5398 fi 5399fi 5400{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5401$as_echo "$ac_cv_path_FGREP" >&6; } 5402 FGREP="$ac_cv_path_FGREP" 5403 5404 5405test -z "$GREP" && GREP=grep 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425# Check whether --with-gnu-ld was given. 5426if test "${with_gnu_ld+set}" = set; then 5427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5428else 5429 with_gnu_ld=no 5430fi 5431 5432ac_prog=ld 5433if test "$GCC" = yes; then 5434 # Check if gcc -print-prog-name=ld gives a path. 5435 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5436$as_echo_n "checking for ld used by $CC... " >&6; } 5437 case $host in 5438 *-*-mingw*) 5439 # gcc leaves a trailing carriage return which upsets mingw 5440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5441 *) 5442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5443 esac 5444 case $ac_prog in 5445 # Accept absolute paths. 5446 [\\/]* | ?:[\\/]*) 5447 re_direlt='/[^/][^/]*/\.\./' 5448 # Canonicalize the pathname of ld 5449 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5450 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5451 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5452 done 5453 test -z "$LD" && LD="$ac_prog" 5454 ;; 5455 "") 5456 # If it fails, then pretend we aren't using GCC. 5457 ac_prog=ld 5458 ;; 5459 *) 5460 # If it is relative, then search for the first ld in PATH. 5461 with_gnu_ld=unknown 5462 ;; 5463 esac 5464elif test "$with_gnu_ld" = yes; then 5465 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5466$as_echo_n "checking for GNU ld... " >&6; } 5467else 5468 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5469$as_echo_n "checking for non-GNU ld... " >&6; } 5470fi 5471if test "${lt_cv_path_LD+set}" = set; then 5472 $as_echo_n "(cached) " >&6 5473else 5474 if test -z "$LD"; then 5475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5476 for ac_dir in $PATH; do 5477 IFS="$lt_save_ifs" 5478 test -z "$ac_dir" && ac_dir=. 5479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5480 lt_cv_path_LD="$ac_dir/$ac_prog" 5481 # Check to see if the program is GNU ld. I'd rather use --version, 5482 # but apparently some variants of GNU ld only accept -v. 5483 # Break only if it was the GNU/non-GNU ld that we prefer. 5484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5485 *GNU* | *'with BFD'*) 5486 test "$with_gnu_ld" != no && break 5487 ;; 5488 *) 5489 test "$with_gnu_ld" != yes && break 5490 ;; 5491 esac 5492 fi 5493 done 5494 IFS="$lt_save_ifs" 5495else 5496 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5497fi 5498fi 5499 5500LD="$lt_cv_path_LD" 5501if test -n "$LD"; then 5502 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5503$as_echo "$LD" >&6; } 5504else 5505 { $as_echo "$as_me:$LINENO: result: no" >&5 5506$as_echo "no" >&6; } 5507fi 5508test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5509$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5510 { (exit 1); exit 1; }; } 5511{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5512$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5513if test "${lt_cv_prog_gnu_ld+set}" = set; then 5514 $as_echo_n "(cached) " >&6 5515else 5516 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5517case `$LD -v 2>&1 </dev/null` in 5518*GNU* | *'with BFD'*) 5519 lt_cv_prog_gnu_ld=yes 5520 ;; 5521*) 5522 lt_cv_prog_gnu_ld=no 5523 ;; 5524esac 5525fi 5526{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5527$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5528with_gnu_ld=$lt_cv_prog_gnu_ld 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5539$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5540if test "${lt_cv_path_NM+set}" = set; then 5541 $as_echo_n "(cached) " >&6 5542else 5543 if test -n "$NM"; then 5544 # Let the user override the test. 5545 lt_cv_path_NM="$NM" 5546else 5547 lt_nm_to_check="${ac_tool_prefix}nm" 5548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5549 lt_nm_to_check="$lt_nm_to_check nm" 5550 fi 5551 for lt_tmp_nm in $lt_nm_to_check; do 5552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5554 IFS="$lt_save_ifs" 5555 test -z "$ac_dir" && ac_dir=. 5556 tmp_nm="$ac_dir/$lt_tmp_nm" 5557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5558 # Check to see if the nm accepts a BSD-compat flag. 5559 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5560 # nm: unknown option "B" ignored 5561 # Tru64's nm complains that /dev/null is an invalid object file 5562 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5563 */dev/null* | *'Invalid file or object type'*) 5564 lt_cv_path_NM="$tmp_nm -B" 5565 break 5566 ;; 5567 *) 5568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5569 */dev/null*) 5570 lt_cv_path_NM="$tmp_nm -p" 5571 break 5572 ;; 5573 *) 5574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5575 continue # so that we can try to find one that supports BSD flags 5576 ;; 5577 esac 5578 ;; 5579 esac 5580 fi 5581 done 5582 IFS="$lt_save_ifs" 5583 done 5584 : ${lt_cv_path_NM=no} 5585fi 5586fi 5587{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5588$as_echo "$lt_cv_path_NM" >&6; } 5589if test "$lt_cv_path_NM" != "no"; then 5590 NM="$lt_cv_path_NM" 5591else 5592 # Didn't find any BSD compatible name lister, look for dumpbin. 5593 if test -n "$ac_tool_prefix"; then 5594 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5595 do 5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5597set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5599$as_echo_n "checking for $ac_word... " >&6; } 5600if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5601 $as_echo_n "(cached) " >&6 5602else 5603 if test -n "$DUMPBIN"; then 5604 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5605else 5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5607for as_dir in $PATH 5608do 5609 IFS=$as_save_IFS 5610 test -z "$as_dir" && as_dir=. 5611 for ac_exec_ext in '' $ac_executable_extensions; do 5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5613 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5615 break 2 5616 fi 5617done 5618done 5619IFS=$as_save_IFS 5620 5621fi 5622fi 5623DUMPBIN=$ac_cv_prog_DUMPBIN 5624if test -n "$DUMPBIN"; then 5625 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5626$as_echo "$DUMPBIN" >&6; } 5627else 5628 { $as_echo "$as_me:$LINENO: result: no" >&5 5629$as_echo "no" >&6; } 5630fi 5631 5632 5633 test -n "$DUMPBIN" && break 5634 done 5635fi 5636if test -z "$DUMPBIN"; then 5637 ac_ct_DUMPBIN=$DUMPBIN 5638 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5639do 5640 # Extract the first word of "$ac_prog", so it can be a program name with args. 5641set dummy $ac_prog; ac_word=$2 5642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5643$as_echo_n "checking for $ac_word... " >&6; } 5644if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5645 $as_echo_n "(cached) " >&6 5646else 5647 if test -n "$ac_ct_DUMPBIN"; then 5648 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5649else 5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 for ac_exec_ext in '' $ac_executable_extensions; do 5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 break 2 5660 fi 5661done 5662done 5663IFS=$as_save_IFS 5664 5665fi 5666fi 5667ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5668if test -n "$ac_ct_DUMPBIN"; then 5669 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5670$as_echo "$ac_ct_DUMPBIN" >&6; } 5671else 5672 { $as_echo "$as_me:$LINENO: result: no" >&5 5673$as_echo "no" >&6; } 5674fi 5675 5676 5677 test -n "$ac_ct_DUMPBIN" && break 5678done 5679 5680 if test "x$ac_ct_DUMPBIN" = x; then 5681 DUMPBIN=":" 5682 else 5683 case $cross_compiling:$ac_tool_warned in 5684yes:) 5685{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5687ac_tool_warned=yes ;; 5688esac 5689 DUMPBIN=$ac_ct_DUMPBIN 5690 fi 5691fi 5692 5693 5694 if test "$DUMPBIN" != ":"; then 5695 NM="$DUMPBIN" 5696 fi 5697fi 5698test -z "$NM" && NM=nm 5699 5700 5701 5702 5703 5704 5705{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5706$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5707if test "${lt_cv_nm_interface+set}" = set; then 5708 $as_echo_n "(cached) " >&6 5709else 5710 lt_cv_nm_interface="BSD nm" 5711 echo "int some_variable = 0;" > conftest.$ac_ext 5712 (eval echo "\"\$as_me:5712: $ac_compile\"" >&5) 5713 (eval "$ac_compile" 2>conftest.err) 5714 cat conftest.err >&5 5715 (eval echo "\"\$as_me:5715: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5716 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5717 cat conftest.err >&5 5718 (eval echo "\"\$as_me:5718: output\"" >&5) 5719 cat conftest.out >&5 5720 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5721 lt_cv_nm_interface="MS dumpbin" 5722 fi 5723 rm -f conftest* 5724fi 5725{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5726$as_echo "$lt_cv_nm_interface" >&6; } 5727 5728{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5729$as_echo_n "checking whether ln -s works... " >&6; } 5730LN_S=$as_ln_s 5731if test "$LN_S" = "ln -s"; then 5732 { $as_echo "$as_me:$LINENO: result: yes" >&5 5733$as_echo "yes" >&6; } 5734else 5735 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5736$as_echo "no, using $LN_S" >&6; } 5737fi 5738 5739# find the maximum length of command line arguments 5740{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5741$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5742if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5743 $as_echo_n "(cached) " >&6 5744else 5745 i=0 5746 teststring="ABCD" 5747 5748 case $build_os in 5749 msdosdjgpp*) 5750 # On DJGPP, this test can blow up pretty badly due to problems in libc 5751 # (any single argument exceeding 2000 bytes causes a buffer overrun 5752 # during glob expansion). Even if it were fixed, the result of this 5753 # check would be larger than it should be. 5754 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5755 ;; 5756 5757 gnu*) 5758 # Under GNU Hurd, this test is not required because there is 5759 # no limit to the length of command line arguments. 5760 # Libtool will interpret -1 as no limit whatsoever 5761 lt_cv_sys_max_cmd_len=-1; 5762 ;; 5763 5764 cygwin* | mingw* | cegcc*) 5765 # On Win9x/ME, this test blows up -- it succeeds, but takes 5766 # about 5 minutes as the teststring grows exponentially. 5767 # Worse, since 9x/ME are not pre-emptively multitasking, 5768 # you end up with a "frozen" computer, even though with patience 5769 # the test eventually succeeds (with a max line length of 256k). 5770 # Instead, let's just punt: use the minimum linelength reported by 5771 # all of the supported platforms: 8192 (on NT/2K/XP). 5772 lt_cv_sys_max_cmd_len=8192; 5773 ;; 5774 5775 amigaos*) 5776 # On AmigaOS with pdksh, this test takes hours, literally. 5777 # So we just punt and use a minimum line length of 8192. 5778 lt_cv_sys_max_cmd_len=8192; 5779 ;; 5780 5781 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5782 # This has been around since 386BSD, at least. Likely further. 5783 if test -x /sbin/sysctl; then 5784 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5785 elif test -x /usr/sbin/sysctl; then 5786 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5787 else 5788 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5789 fi 5790 # And add a safety zone 5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5793 ;; 5794 5795 interix*) 5796 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5797 lt_cv_sys_max_cmd_len=196608 5798 ;; 5799 5800 osf*) 5801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5803 # nice to cause kernel panics so lets avoid the loop below. 5804 # First set a reasonable default. 5805 lt_cv_sys_max_cmd_len=16384 5806 # 5807 if test -x /sbin/sysconfig; then 5808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5809 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5810 esac 5811 fi 5812 ;; 5813 sco3.2v5*) 5814 lt_cv_sys_max_cmd_len=102400 5815 ;; 5816 sysv5* | sco5v6* | sysv4.2uw2*) 5817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5818 if test -n "$kargmax"; then 5819 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5820 else 5821 lt_cv_sys_max_cmd_len=32768 5822 fi 5823 ;; 5824 *) 5825 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5826 if test -n "$lt_cv_sys_max_cmd_len"; then 5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5829 else 5830 # Make teststring a little bigger before we do anything with it. 5831 # a 1K string should be a reasonable start. 5832 for i in 1 2 3 4 5 6 7 8 ; do 5833 teststring=$teststring$teststring 5834 done 5835 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5836 # If test is not a shell built-in, we'll probably end up computing a 5837 # maximum length that is only half of the actual maximum length, but 5838 # we can't tell. 5839 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5840 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5841 test $i != 17 # 1/2 MB should be enough 5842 do 5843 i=`expr $i + 1` 5844 teststring=$teststring$teststring 5845 done 5846 # Only check the string length outside the loop. 5847 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5848 teststring= 5849 # Add a significant safety factor because C++ compilers can tack on 5850 # massive amounts of additional arguments before passing them to the 5851 # linker. It appears as though 1/2 is a usable value. 5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5853 fi 5854 ;; 5855 esac 5856 5857fi 5858 5859if test -n $lt_cv_sys_max_cmd_len ; then 5860 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5861$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5862else 5863 { $as_echo "$as_me:$LINENO: result: none" >&5 5864$as_echo "none" >&6; } 5865fi 5866max_cmd_len=$lt_cv_sys_max_cmd_len 5867 5868 5869 5870 5871 5872 5873: ${CP="cp -f"} 5874: ${MV="mv -f"} 5875: ${RM="rm -f"} 5876 5877{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5878$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5879# Try some XSI features 5880xsi_shell=no 5881( _lt_dummy="a/b/c" 5882 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5883 = c,a/b,, \ 5884 && eval 'test $(( 1 + 1 )) -eq 2 \ 5885 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5886 && xsi_shell=yes 5887{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5888$as_echo "$xsi_shell" >&6; } 5889 5890 5891{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5892$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5893lt_shell_append=no 5894( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5895 >/dev/null 2>&1 \ 5896 && lt_shell_append=yes 5897{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5898$as_echo "$lt_shell_append" >&6; } 5899 5900 5901if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5902 lt_unset=unset 5903else 5904 lt_unset=false 5905fi 5906 5907 5908 5909 5910 5911# test EBCDIC or ASCII 5912case `echo X|tr X '\101'` in 5913 A) # ASCII based system 5914 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5915 lt_SP2NL='tr \040 \012' 5916 lt_NL2SP='tr \015\012 \040\040' 5917 ;; 5918 *) # EBCDIC based system 5919 lt_SP2NL='tr \100 \n' 5920 lt_NL2SP='tr \r\n \100\100' 5921 ;; 5922esac 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5933$as_echo_n "checking for $LD option to reload object files... " >&6; } 5934if test "${lt_cv_ld_reload_flag+set}" = set; then 5935 $as_echo_n "(cached) " >&6 5936else 5937 lt_cv_ld_reload_flag='-r' 5938fi 5939{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5940$as_echo "$lt_cv_ld_reload_flag" >&6; } 5941reload_flag=$lt_cv_ld_reload_flag 5942case $reload_flag in 5943"" | " "*) ;; 5944*) reload_flag=" $reload_flag" ;; 5945esac 5946reload_cmds='$LD$reload_flag -o $output$reload_objs' 5947case $host_os in 5948 darwin*) 5949 if test "$GCC" = yes; then 5950 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5951 else 5952 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5953 fi 5954 ;; 5955esac 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965if test -n "$ac_tool_prefix"; then 5966 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5967set dummy ${ac_tool_prefix}objdump; ac_word=$2 5968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5969$as_echo_n "checking for $ac_word... " >&6; } 5970if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5971 $as_echo_n "(cached) " >&6 5972else 5973 if test -n "$OBJDUMP"; then 5974 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5975else 5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH 5978do 5979 IFS=$as_save_IFS 5980 test -z "$as_dir" && as_dir=. 5981 for ac_exec_ext in '' $ac_executable_extensions; do 5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5983 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5985 break 2 5986 fi 5987done 5988done 5989IFS=$as_save_IFS 5990 5991fi 5992fi 5993OBJDUMP=$ac_cv_prog_OBJDUMP 5994if test -n "$OBJDUMP"; then 5995 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5996$as_echo "$OBJDUMP" >&6; } 5997else 5998 { $as_echo "$as_me:$LINENO: result: no" >&5 5999$as_echo "no" >&6; } 6000fi 6001 6002 6003fi 6004if test -z "$ac_cv_prog_OBJDUMP"; then 6005 ac_ct_OBJDUMP=$OBJDUMP 6006 # Extract the first word of "objdump", so it can be a program name with args. 6007set dummy objdump; ac_word=$2 6008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6009$as_echo_n "checking for $ac_word... " >&6; } 6010if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6011 $as_echo_n "(cached) " >&6 6012else 6013 if test -n "$ac_ct_OBJDUMP"; then 6014 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6015else 6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017for as_dir in $PATH 6018do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6023 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027done 6028done 6029IFS=$as_save_IFS 6030 6031fi 6032fi 6033ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6034if test -n "$ac_ct_OBJDUMP"; then 6035 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6036$as_echo "$ac_ct_OBJDUMP" >&6; } 6037else 6038 { $as_echo "$as_me:$LINENO: result: no" >&5 6039$as_echo "no" >&6; } 6040fi 6041 6042 if test "x$ac_ct_OBJDUMP" = x; then 6043 OBJDUMP="false" 6044 else 6045 case $cross_compiling:$ac_tool_warned in 6046yes:) 6047{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6049ac_tool_warned=yes ;; 6050esac 6051 OBJDUMP=$ac_ct_OBJDUMP 6052 fi 6053else 6054 OBJDUMP="$ac_cv_prog_OBJDUMP" 6055fi 6056 6057test -z "$OBJDUMP" && OBJDUMP=objdump 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6068$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6069if test "${lt_cv_deplibs_check_method+set}" = set; then 6070 $as_echo_n "(cached) " >&6 6071else 6072 lt_cv_file_magic_cmd='$MAGIC_CMD' 6073lt_cv_file_magic_test_file= 6074lt_cv_deplibs_check_method='unknown' 6075# Need to set the preceding variable on all platforms that support 6076# interlibrary dependencies. 6077# 'none' -- dependencies not supported. 6078# `unknown' -- same as none, but documents that we really don't know. 6079# 'pass_all' -- all dependencies passed with no checks. 6080# 'test_compile' -- check by making test program. 6081# 'file_magic [[regex]]' -- check by looking for files in library path 6082# which responds to the $file_magic_cmd with a given extended regex. 6083# If you have `file' or equivalent on your system and you're not sure 6084# whether `pass_all' will *always* work, you probably want this one. 6085 6086case $host_os in 6087aix[4-9]*) 6088 lt_cv_deplibs_check_method=pass_all 6089 ;; 6090 6091beos*) 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095bsdi[45]*) 6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6097 lt_cv_file_magic_cmd='/usr/bin/file -L' 6098 lt_cv_file_magic_test_file=/shlib/libc.so 6099 ;; 6100 6101cygwin*) 6102 # func_win32_libid is a shell function defined in ltmain.sh 6103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6104 lt_cv_file_magic_cmd='func_win32_libid' 6105 ;; 6106 6107mingw* | pw32*) 6108 # Base MSYS/MinGW do not provide the 'file' command needed by 6109 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6110 # unless we find 'file', for example because we are cross-compiling. 6111 if ( file / ) >/dev/null 2>&1; then 6112 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6113 lt_cv_file_magic_cmd='func_win32_libid' 6114 else 6115 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6116 lt_cv_file_magic_cmd='$OBJDUMP -f' 6117 fi 6118 ;; 6119 6120cegcc) 6121 # use the weaker test based on 'objdump'. See mingw*. 6122 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6123 lt_cv_file_magic_cmd='$OBJDUMP -f' 6124 ;; 6125 6126darwin* | rhapsody*) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 6130freebsd* | dragonfly*) 6131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6132 case $host_cpu in 6133 i*86 ) 6134 # Not sure whether the presence of OpenBSD here was a mistake. 6135 # Let's accept both of them until this is cleared up. 6136 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6137 lt_cv_file_magic_cmd=/usr/bin/file 6138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6139 ;; 6140 esac 6141 else 6142 lt_cv_deplibs_check_method=pass_all 6143 fi 6144 ;; 6145 6146gnu*) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 6150hpux10.20* | hpux11*) 6151 lt_cv_file_magic_cmd=/usr/bin/file 6152 case $host_cpu in 6153 ia64*) 6154 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6155 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6156 ;; 6157 hppa*64*) 6158 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]' 6159 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6160 ;; 6161 *) 6162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6163 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6164 ;; 6165 esac 6166 ;; 6167 6168interix[3-9]*) 6169 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6171 ;; 6172 6173irix5* | irix6* | nonstopux*) 6174 case $LD in 6175 *-32|*"-32 ") libmagic=32-bit;; 6176 *-n32|*"-n32 ") libmagic=N32;; 6177 *-64|*"-64 ") libmagic=64-bit;; 6178 *) libmagic=never-match;; 6179 esac 6180 lt_cv_deplibs_check_method=pass_all 6181 ;; 6182 6183# This must be Linux ELF. 6184linux* | k*bsd*-gnu) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 6188netbsd*) 6189 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6191 else 6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6193 fi 6194 ;; 6195 6196newos6*) 6197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6198 lt_cv_file_magic_cmd=/usr/bin/file 6199 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6200 ;; 6201 6202*nto* | *qnx*) 6203 lt_cv_deplibs_check_method=pass_all 6204 ;; 6205 6206openbsd*) 6207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6209 else 6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6211 fi 6212 ;; 6213 6214osf3* | osf4* | osf5*) 6215 lt_cv_deplibs_check_method=pass_all 6216 ;; 6217 6218rdos*) 6219 lt_cv_deplibs_check_method=pass_all 6220 ;; 6221 6222solaris*) 6223 lt_cv_deplibs_check_method=pass_all 6224 ;; 6225 6226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6227 lt_cv_deplibs_check_method=pass_all 6228 ;; 6229 6230sysv4 | sysv4.3*) 6231 case $host_vendor in 6232 motorola) 6233 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]' 6234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6235 ;; 6236 ncr) 6237 lt_cv_deplibs_check_method=pass_all 6238 ;; 6239 sequent) 6240 lt_cv_file_magic_cmd='/bin/file' 6241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6242 ;; 6243 sni) 6244 lt_cv_file_magic_cmd='/bin/file' 6245 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6246 lt_cv_file_magic_test_file=/lib/libc.so 6247 ;; 6248 siemens) 6249 lt_cv_deplibs_check_method=pass_all 6250 ;; 6251 pc) 6252 lt_cv_deplibs_check_method=pass_all 6253 ;; 6254 esac 6255 ;; 6256 6257tpf*) 6258 lt_cv_deplibs_check_method=pass_all 6259 ;; 6260esac 6261 6262fi 6263{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6264$as_echo "$lt_cv_deplibs_check_method" >&6; } 6265file_magic_cmd=$lt_cv_file_magic_cmd 6266deplibs_check_method=$lt_cv_deplibs_check_method 6267test -z "$deplibs_check_method" && deplibs_check_method=unknown 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280if test -n "$ac_tool_prefix"; then 6281 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6282set dummy ${ac_tool_prefix}ar; ac_word=$2 6283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6284$as_echo_n "checking for $ac_word... " >&6; } 6285if test "${ac_cv_prog_AR+set}" = set; then 6286 $as_echo_n "(cached) " >&6 6287else 6288 if test -n "$AR"; then 6289 ac_cv_prog_AR="$AR" # Let the user override the test. 6290else 6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292for as_dir in $PATH 6293do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6298 ac_cv_prog_AR="${ac_tool_prefix}ar" 6299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303done 6304IFS=$as_save_IFS 6305 6306fi 6307fi 6308AR=$ac_cv_prog_AR 6309if test -n "$AR"; then 6310 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6311$as_echo "$AR" >&6; } 6312else 6313 { $as_echo "$as_me:$LINENO: result: no" >&5 6314$as_echo "no" >&6; } 6315fi 6316 6317 6318fi 6319if test -z "$ac_cv_prog_AR"; then 6320 ac_ct_AR=$AR 6321 # Extract the first word of "ar", so it can be a program name with args. 6322set dummy ar; ac_word=$2 6323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6324$as_echo_n "checking for $ac_word... " >&6; } 6325if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6326 $as_echo_n "(cached) " >&6 6327else 6328 if test -n "$ac_ct_AR"; then 6329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6330else 6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332for as_dir in $PATH 6333do 6334 IFS=$as_save_IFS 6335 test -z "$as_dir" && as_dir=. 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6338 ac_cv_prog_ac_ct_AR="ar" 6339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6340 break 2 6341 fi 6342done 6343done 6344IFS=$as_save_IFS 6345 6346fi 6347fi 6348ac_ct_AR=$ac_cv_prog_ac_ct_AR 6349if test -n "$ac_ct_AR"; then 6350 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6351$as_echo "$ac_ct_AR" >&6; } 6352else 6353 { $as_echo "$as_me:$LINENO: result: no" >&5 6354$as_echo "no" >&6; } 6355fi 6356 6357 if test "x$ac_ct_AR" = x; then 6358 AR="false" 6359 else 6360 case $cross_compiling:$ac_tool_warned in 6361yes:) 6362{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6364ac_tool_warned=yes ;; 6365esac 6366 AR=$ac_ct_AR 6367 fi 6368else 6369 AR="$ac_cv_prog_AR" 6370fi 6371 6372test -z "$AR" && AR=ar 6373test -z "$AR_FLAGS" && AR_FLAGS=cru 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385if test -n "$ac_tool_prefix"; then 6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6387set dummy ${ac_tool_prefix}strip; ac_word=$2 6388{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6389$as_echo_n "checking for $ac_word... " >&6; } 6390if test "${ac_cv_prog_STRIP+set}" = set; then 6391 $as_echo_n "(cached) " >&6 6392else 6393 if test -n "$STRIP"; then 6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6395else 6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6397for as_dir in $PATH 6398do 6399 IFS=$as_save_IFS 6400 test -z "$as_dir" && as_dir=. 6401 for ac_exec_ext in '' $ac_executable_extensions; do 6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6405 break 2 6406 fi 6407done 6408done 6409IFS=$as_save_IFS 6410 6411fi 6412fi 6413STRIP=$ac_cv_prog_STRIP 6414if test -n "$STRIP"; then 6415 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6416$as_echo "$STRIP" >&6; } 6417else 6418 { $as_echo "$as_me:$LINENO: result: no" >&5 6419$as_echo "no" >&6; } 6420fi 6421 6422 6423fi 6424if test -z "$ac_cv_prog_STRIP"; then 6425 ac_ct_STRIP=$STRIP 6426 # Extract the first word of "strip", so it can be a program name with args. 6427set dummy strip; ac_word=$2 6428{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6429$as_echo_n "checking for $ac_word... " >&6; } 6430if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6431 $as_echo_n "(cached) " >&6 6432else 6433 if test -n "$ac_ct_STRIP"; then 6434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6435else 6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6437for as_dir in $PATH 6438do 6439 IFS=$as_save_IFS 6440 test -z "$as_dir" && as_dir=. 6441 for ac_exec_ext in '' $ac_executable_extensions; do 6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6443 ac_cv_prog_ac_ct_STRIP="strip" 6444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6445 break 2 6446 fi 6447done 6448done 6449IFS=$as_save_IFS 6450 6451fi 6452fi 6453ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6454if test -n "$ac_ct_STRIP"; then 6455 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6456$as_echo "$ac_ct_STRIP" >&6; } 6457else 6458 { $as_echo "$as_me:$LINENO: result: no" >&5 6459$as_echo "no" >&6; } 6460fi 6461 6462 if test "x$ac_ct_STRIP" = x; then 6463 STRIP=":" 6464 else 6465 case $cross_compiling:$ac_tool_warned in 6466yes:) 6467{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6469ac_tool_warned=yes ;; 6470esac 6471 STRIP=$ac_ct_STRIP 6472 fi 6473else 6474 STRIP="$ac_cv_prog_STRIP" 6475fi 6476 6477test -z "$STRIP" && STRIP=: 6478 6479 6480 6481 6482 6483 6484if test -n "$ac_tool_prefix"; then 6485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6486set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6488$as_echo_n "checking for $ac_word... " >&6; } 6489if test "${ac_cv_prog_RANLIB+set}" = set; then 6490 $as_echo_n "(cached) " >&6 6491else 6492 if test -n "$RANLIB"; then 6493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6494else 6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496for as_dir in $PATH 6497do 6498 IFS=$as_save_IFS 6499 test -z "$as_dir" && as_dir=. 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506done 6507done 6508IFS=$as_save_IFS 6509 6510fi 6511fi 6512RANLIB=$ac_cv_prog_RANLIB 6513if test -n "$RANLIB"; then 6514 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6515$as_echo "$RANLIB" >&6; } 6516else 6517 { $as_echo "$as_me:$LINENO: result: no" >&5 6518$as_echo "no" >&6; } 6519fi 6520 6521 6522fi 6523if test -z "$ac_cv_prog_RANLIB"; then 6524 ac_ct_RANLIB=$RANLIB 6525 # Extract the first word of "ranlib", so it can be a program name with args. 6526set dummy ranlib; ac_word=$2 6527{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6528$as_echo_n "checking for $ac_word... " >&6; } 6529if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6530 $as_echo_n "(cached) " >&6 6531else 6532 if test -n "$ac_ct_RANLIB"; then 6533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6534else 6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536for as_dir in $PATH 6537do 6538 IFS=$as_save_IFS 6539 test -z "$as_dir" && as_dir=. 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6542 ac_cv_prog_ac_ct_RANLIB="ranlib" 6543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6544 break 2 6545 fi 6546done 6547done 6548IFS=$as_save_IFS 6549 6550fi 6551fi 6552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6553if test -n "$ac_ct_RANLIB"; then 6554 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6555$as_echo "$ac_ct_RANLIB" >&6; } 6556else 6557 { $as_echo "$as_me:$LINENO: result: no" >&5 6558$as_echo "no" >&6; } 6559fi 6560 6561 if test "x$ac_ct_RANLIB" = x; then 6562 RANLIB=":" 6563 else 6564 case $cross_compiling:$ac_tool_warned in 6565yes:) 6566{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6568ac_tool_warned=yes ;; 6569esac 6570 RANLIB=$ac_ct_RANLIB 6571 fi 6572else 6573 RANLIB="$ac_cv_prog_RANLIB" 6574fi 6575 6576test -z "$RANLIB" && RANLIB=: 6577 6578 6579 6580 6581 6582 6583# Determine commands to create old-style static archives. 6584old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6585old_postinstall_cmds='chmod 644 $oldlib' 6586old_postuninstall_cmds= 6587 6588if test -n "$RANLIB"; then 6589 case $host_os in 6590 openbsd*) 6591 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6592 ;; 6593 *) 6594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6595 ;; 6596 esac 6597 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6598fi 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633# If no C compiler was specified, use CC. 6634LTCC=${LTCC-"$CC"} 6635 6636# If no C compiler flags were specified, use CFLAGS. 6637LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6638 6639# Allow CC to be a program name with arguments. 6640compiler=$CC 6641 6642 6643# Check for command to grab the raw symbol name followed by C symbol from nm. 6644{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6645$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6646if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6647 $as_echo_n "(cached) " >&6 6648else 6649 6650# These are sane defaults that work on at least a few old systems. 6651# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6652 6653# Character class describing NM global symbol codes. 6654symcode='[BCDEGRST]' 6655 6656# Regexp to match symbols that can be accessed directly from C. 6657sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6658 6659# Define system-specific variables. 6660case $host_os in 6661aix*) 6662 symcode='[BCDT]' 6663 ;; 6664cygwin* | mingw* | pw32* | cegcc*) 6665 symcode='[ABCDGISTW]' 6666 ;; 6667hpux*) 6668 if test "$host_cpu" = ia64; then 6669 symcode='[ABCDEGRST]' 6670 fi 6671 ;; 6672irix* | nonstopux*) 6673 symcode='[BCDEGRST]' 6674 ;; 6675osf*) 6676 symcode='[BCDEGQRST]' 6677 ;; 6678solaris*) 6679 symcode='[BDRT]' 6680 ;; 6681sco3.2v5*) 6682 symcode='[DT]' 6683 ;; 6684sysv4.2uw2*) 6685 symcode='[DT]' 6686 ;; 6687sysv5* | sco5v6* | unixware* | OpenUNIX*) 6688 symcode='[ABDT]' 6689 ;; 6690sysv4) 6691 symcode='[DFNSTU]' 6692 ;; 6693esac 6694 6695# If we're using GNU nm, then use its standard symbol codes. 6696case `$NM -V 2>&1` in 6697*GNU* | *'with BFD'*) 6698 symcode='[ABCDGIRSTW]' ;; 6699esac 6700 6701# Transform an extracted symbol line into a proper C declaration. 6702# Some systems (esp. on ia64) link data and code symbols differently, 6703# so use this general approach. 6704lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6705 6706# Transform an extracted symbol line into symbol name and symbol address 6707lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6708lt_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'" 6709 6710# Handle CRLF in mingw tool chain 6711opt_cr= 6712case $build_os in 6713mingw*) 6714 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6715 ;; 6716esac 6717 6718# Try without a prefix underscore, then with it. 6719for ac_symprfx in "" "_"; do 6720 6721 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6722 symxfrm="\\1 $ac_symprfx\\2 \\2" 6723 6724 # Write the raw and C identifiers. 6725 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6726 # Fake it for dumpbin and say T for any non-static function 6727 # and D for any global variable. 6728 # Also find C++ and __fastcall symbols from MSVC++, 6729 # which start with @ or ?. 6730 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6731" {last_section=section; section=\$ 3};"\ 6732" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6733" \$ 0!~/External *\|/{next};"\ 6734" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6735" {if(hide[section]) next};"\ 6736" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6737" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6738" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6739" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6740" ' prfx=^$ac_symprfx" 6741 else 6742 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6743 fi 6744 6745 # Check to see that the pipe works correctly. 6746 pipe_works=no 6747 6748 rm -f conftest* 6749 cat > conftest.$ac_ext <<_LT_EOF 6750#ifdef __cplusplus 6751extern "C" { 6752#endif 6753char nm_test_var; 6754void nm_test_func(void); 6755void nm_test_func(void){} 6756#ifdef __cplusplus 6757} 6758#endif 6759int main(){nm_test_var='a';nm_test_func();return(0);} 6760_LT_EOF 6761 6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6763 (eval $ac_compile) 2>&5 6764 ac_status=$? 6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6766 (exit $ac_status); }; then 6767 # Now try to grab the symbols. 6768 nlist=conftest.nm 6769 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6770 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6771 ac_status=$? 6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6773 (exit $ac_status); } && test -s "$nlist"; then 6774 # Try sorting and uniquifying the output. 6775 if sort "$nlist" | uniq > "$nlist"T; then 6776 mv -f "$nlist"T "$nlist" 6777 else 6778 rm -f "$nlist"T 6779 fi 6780 6781 # Make sure that we snagged all the symbols we need. 6782 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6783 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6784 cat <<_LT_EOF > conftest.$ac_ext 6785#ifdef __cplusplus 6786extern "C" { 6787#endif 6788 6789_LT_EOF 6790 # Now generate the symbol file. 6791 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6792 6793 cat <<_LT_EOF >> conftest.$ac_ext 6794 6795/* The mapping between symbol names and symbols. */ 6796const struct { 6797 const char *name; 6798 void *address; 6799} 6800lt__PROGRAM__LTX_preloaded_symbols[] = 6801{ 6802 { "@PROGRAM@", (void *) 0 }, 6803_LT_EOF 6804 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6805 cat <<\_LT_EOF >> conftest.$ac_ext 6806 {0, (void *) 0} 6807}; 6808 6809/* This works around a problem in FreeBSD linker */ 6810#ifdef FREEBSD_WORKAROUND 6811static const void *lt_preloaded_setup() { 6812 return lt__PROGRAM__LTX_preloaded_symbols; 6813} 6814#endif 6815 6816#ifdef __cplusplus 6817} 6818#endif 6819_LT_EOF 6820 # Now try linking the two files. 6821 mv conftest.$ac_objext conftstm.$ac_objext 6822 lt_save_LIBS="$LIBS" 6823 lt_save_CFLAGS="$CFLAGS" 6824 LIBS="conftstm.$ac_objext" 6825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6827 (eval $ac_link) 2>&5 6828 ac_status=$? 6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6830 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6831 pipe_works=yes 6832 fi 6833 LIBS="$lt_save_LIBS" 6834 CFLAGS="$lt_save_CFLAGS" 6835 else 6836 echo "cannot find nm_test_func in $nlist" >&5 6837 fi 6838 else 6839 echo "cannot find nm_test_var in $nlist" >&5 6840 fi 6841 else 6842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6843 fi 6844 else 6845 echo "$progname: failed program was:" >&5 6846 cat conftest.$ac_ext >&5 6847 fi 6848 rm -rf conftest* conftst* 6849 6850 # Do not use the global_symbol_pipe unless it works. 6851 if test "$pipe_works" = yes; then 6852 break 6853 else 6854 lt_cv_sys_global_symbol_pipe= 6855 fi 6856done 6857 6858fi 6859 6860if test -z "$lt_cv_sys_global_symbol_pipe"; then 6861 lt_cv_sys_global_symbol_to_cdecl= 6862fi 6863if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6864 { $as_echo "$as_me:$LINENO: result: failed" >&5 6865$as_echo "failed" >&6; } 6866else 6867 { $as_echo "$as_me:$LINENO: result: ok" >&5 6868$as_echo "ok" >&6; } 6869fi 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892# Check whether --enable-libtool-lock was given. 6893if test "${enable_libtool_lock+set}" = set; then 6894 enableval=$enable_libtool_lock; 6895fi 6896 6897test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6898 6899# Some flags need to be propagated to the compiler or linker for good 6900# libtool support. 6901case $host in 6902ia64-*-hpux*) 6903 # Find out which ABI we are using. 6904 echo 'int i;' > conftest.$ac_ext 6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6906 (eval $ac_compile) 2>&5 6907 ac_status=$? 6908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); }; then 6910 case `/usr/bin/file conftest.$ac_objext` in 6911 *ELF-32*) 6912 HPUX_IA64_MODE="32" 6913 ;; 6914 *ELF-64*) 6915 HPUX_IA64_MODE="64" 6916 ;; 6917 esac 6918 fi 6919 rm -rf conftest* 6920 ;; 6921*-*-irix6*) 6922 # Find out which ABI we are using. 6923 echo '#line 6923 "configure"' > conftest.$ac_ext 6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6925 (eval $ac_compile) 2>&5 6926 ac_status=$? 6927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6928 (exit $ac_status); }; then 6929 if test "$lt_cv_prog_gnu_ld" = yes; then 6930 case `/usr/bin/file conftest.$ac_objext` in 6931 *32-bit*) 6932 LD="${LD-ld} -melf32bsmip" 6933 ;; 6934 *N32*) 6935 LD="${LD-ld} -melf32bmipn32" 6936 ;; 6937 *64-bit*) 6938 LD="${LD-ld} -melf64bmip" 6939 ;; 6940 esac 6941 else 6942 case `/usr/bin/file conftest.$ac_objext` in 6943 *32-bit*) 6944 LD="${LD-ld} -32" 6945 ;; 6946 *N32*) 6947 LD="${LD-ld} -n32" 6948 ;; 6949 *64-bit*) 6950 LD="${LD-ld} -64" 6951 ;; 6952 esac 6953 fi 6954 fi 6955 rm -rf conftest* 6956 ;; 6957 6958x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6959s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6960 # Find out which ABI we are using. 6961 echo 'int i;' > conftest.$ac_ext 6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6963 (eval $ac_compile) 2>&5 6964 ac_status=$? 6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6966 (exit $ac_status); }; then 6967 case `/usr/bin/file conftest.o` in 6968 *32-bit*) 6969 case $host in 6970 x86_64-*kfreebsd*-gnu) 6971 LD="${LD-ld} -m elf_i386_fbsd" 6972 ;; 6973 x86_64-*linux*) 6974 LD="${LD-ld} -m elf_i386" 6975 ;; 6976 ppc64-*linux*|powerpc64-*linux*) 6977 LD="${LD-ld} -m elf32ppclinux" 6978 ;; 6979 s390x-*linux*) 6980 LD="${LD-ld} -m elf_s390" 6981 ;; 6982 sparc64-*linux*) 6983 LD="${LD-ld} -m elf32_sparc" 6984 ;; 6985 esac 6986 ;; 6987 *64-bit*) 6988 case $host in 6989 x86_64-*kfreebsd*-gnu) 6990 LD="${LD-ld} -m elf_x86_64_fbsd" 6991 ;; 6992 x86_64-*linux*) 6993 LD="${LD-ld} -m elf_x86_64" 6994 ;; 6995 ppc*-*linux*|powerpc*-*linux*) 6996 LD="${LD-ld} -m elf64ppc" 6997 ;; 6998 s390*-*linux*|s390*-*tpf*) 6999 LD="${LD-ld} -m elf64_s390" 7000 ;; 7001 sparc*-*linux*) 7002 LD="${LD-ld} -m elf64_sparc" 7003 ;; 7004 esac 7005 ;; 7006 esac 7007 fi 7008 rm -rf conftest* 7009 ;; 7010 7011*-*-sco3.2v5*) 7012 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7013 SAVE_CFLAGS="$CFLAGS" 7014 CFLAGS="$CFLAGS -belf" 7015 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7016$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7017if test "${lt_cv_cc_needs_belf+set}" = set; then 7018 $as_echo_n "(cached) " >&6 7019else 7020 ac_ext=c 7021ac_cpp='$CPP $CPPFLAGS' 7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7024ac_compiler_gnu=$ac_cv_c_compiler_gnu 7025 7026 cat >conftest.$ac_ext <<_ACEOF 7027/* confdefs.h. */ 7028_ACEOF 7029cat confdefs.h >>conftest.$ac_ext 7030cat >>conftest.$ac_ext <<_ACEOF 7031/* end confdefs.h. */ 7032 7033int 7034main () 7035{ 7036 7037 ; 7038 return 0; 7039} 7040_ACEOF 7041rm -f conftest.$ac_objext conftest$ac_exeext 7042if { (ac_try="$ac_link" 7043case "(($ac_try" in 7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7045 *) ac_try_echo=$ac_try;; 7046esac 7047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7048$as_echo "$ac_try_echo") >&5 7049 (eval "$ac_link") 2>conftest.er1 7050 ac_status=$? 7051 grep -v '^ *+' conftest.er1 >conftest.err 7052 rm -f conftest.er1 7053 cat conftest.err >&5 7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7055 (exit $ac_status); } && { 7056 test -z "$ac_c_werror_flag" || 7057 test ! -s conftest.err 7058 } && test -s conftest$ac_exeext && { 7059 test "$cross_compiling" = yes || 7060 $as_test_x conftest$ac_exeext 7061 }; then 7062 lt_cv_cc_needs_belf=yes 7063else 7064 $as_echo "$as_me: failed program was:" >&5 7065sed 's/^/| /' conftest.$ac_ext >&5 7066 7067 lt_cv_cc_needs_belf=no 7068fi 7069 7070rm -rf conftest.dSYM 7071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7072 conftest$ac_exeext conftest.$ac_ext 7073 ac_ext=c 7074ac_cpp='$CPP $CPPFLAGS' 7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7077ac_compiler_gnu=$ac_cv_c_compiler_gnu 7078 7079fi 7080{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7081$as_echo "$lt_cv_cc_needs_belf" >&6; } 7082 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7083 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7084 CFLAGS="$SAVE_CFLAGS" 7085 fi 7086 ;; 7087sparc*-*solaris*) 7088 # Find out which ABI we are using. 7089 echo 'int i;' > conftest.$ac_ext 7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7091 (eval $ac_compile) 2>&5 7092 ac_status=$? 7093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7094 (exit $ac_status); }; then 7095 case `/usr/bin/file conftest.o` in 7096 *64-bit*) 7097 case $lt_cv_prog_gnu_ld in 7098 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7099 *) 7100 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7101 LD="${LD-ld} -64" 7102 fi 7103 ;; 7104 esac 7105 ;; 7106 esac 7107 fi 7108 rm -rf conftest* 7109 ;; 7110esac 7111 7112need_locks="$enable_libtool_lock" 7113 7114 7115 case $host_os in 7116 rhapsody* | darwin*) 7117 if test -n "$ac_tool_prefix"; then 7118 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7119set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7121$as_echo_n "checking for $ac_word... " >&6; } 7122if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7123 $as_echo_n "(cached) " >&6 7124else 7125 if test -n "$DSYMUTIL"; then 7126 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7127else 7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129for as_dir in $PATH 7130do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7135 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139done 7140done 7141IFS=$as_save_IFS 7142 7143fi 7144fi 7145DSYMUTIL=$ac_cv_prog_DSYMUTIL 7146if test -n "$DSYMUTIL"; then 7147 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7148$as_echo "$DSYMUTIL" >&6; } 7149else 7150 { $as_echo "$as_me:$LINENO: result: no" >&5 7151$as_echo "no" >&6; } 7152fi 7153 7154 7155fi 7156if test -z "$ac_cv_prog_DSYMUTIL"; then 7157 ac_ct_DSYMUTIL=$DSYMUTIL 7158 # Extract the first word of "dsymutil", so it can be a program name with args. 7159set dummy dsymutil; ac_word=$2 7160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$ac_ct_DSYMUTIL"; then 7166 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7175 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7186if test -n "$ac_ct_DSYMUTIL"; then 7187 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7188$as_echo "$ac_ct_DSYMUTIL" >&6; } 7189else 7190 { $as_echo "$as_me:$LINENO: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 if test "x$ac_ct_DSYMUTIL" = x; then 7195 DSYMUTIL=":" 7196 else 7197 case $cross_compiling:$ac_tool_warned in 7198yes:) 7199{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7201ac_tool_warned=yes ;; 7202esac 7203 DSYMUTIL=$ac_ct_DSYMUTIL 7204 fi 7205else 7206 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7207fi 7208 7209 if test -n "$ac_tool_prefix"; then 7210 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7211set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7213$as_echo_n "checking for $ac_word... " >&6; } 7214if test "${ac_cv_prog_NMEDIT+set}" = set; then 7215 $as_echo_n "(cached) " >&6 7216else 7217 if test -n "$NMEDIT"; then 7218 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7227 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237NMEDIT=$ac_cv_prog_NMEDIT 7238if test -n "$NMEDIT"; then 7239 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7240$as_echo "$NMEDIT" >&6; } 7241else 7242 { $as_echo "$as_me:$LINENO: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 7247fi 7248if test -z "$ac_cv_prog_NMEDIT"; then 7249 ac_ct_NMEDIT=$NMEDIT 7250 # Extract the first word of "nmedit", so it can be a program name with args. 7251set dummy nmedit; ac_word=$2 7252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$ac_ct_NMEDIT"; then 7258 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7267 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7278if test -n "$ac_ct_NMEDIT"; then 7279 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7280$as_echo "$ac_ct_NMEDIT" >&6; } 7281else 7282 { $as_echo "$as_me:$LINENO: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 if test "x$ac_ct_NMEDIT" = x; then 7287 NMEDIT=":" 7288 else 7289 case $cross_compiling:$ac_tool_warned in 7290yes:) 7291{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7293ac_tool_warned=yes ;; 7294esac 7295 NMEDIT=$ac_ct_NMEDIT 7296 fi 7297else 7298 NMEDIT="$ac_cv_prog_NMEDIT" 7299fi 7300 7301 if test -n "$ac_tool_prefix"; then 7302 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7303set dummy ${ac_tool_prefix}lipo; ac_word=$2 7304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7305$as_echo_n "checking for $ac_word... " >&6; } 7306if test "${ac_cv_prog_LIPO+set}" = set; then 7307 $as_echo_n "(cached) " >&6 7308else 7309 if test -n "$LIPO"; then 7310 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7311else 7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313for as_dir in $PATH 7314do 7315 IFS=$as_save_IFS 7316 test -z "$as_dir" && as_dir=. 7317 for ac_exec_ext in '' $ac_executable_extensions; do 7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7319 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7321 break 2 7322 fi 7323done 7324done 7325IFS=$as_save_IFS 7326 7327fi 7328fi 7329LIPO=$ac_cv_prog_LIPO 7330if test -n "$LIPO"; then 7331 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7332$as_echo "$LIPO" >&6; } 7333else 7334 { $as_echo "$as_me:$LINENO: result: no" >&5 7335$as_echo "no" >&6; } 7336fi 7337 7338 7339fi 7340if test -z "$ac_cv_prog_LIPO"; then 7341 ac_ct_LIPO=$LIPO 7342 # Extract the first word of "lipo", so it can be a program name with args. 7343set dummy lipo; ac_word=$2 7344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7345$as_echo_n "checking for $ac_word... " >&6; } 7346if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7347 $as_echo_n "(cached) " >&6 7348else 7349 if test -n "$ac_ct_LIPO"; then 7350 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7351else 7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7353for as_dir in $PATH 7354do 7355 IFS=$as_save_IFS 7356 test -z "$as_dir" && as_dir=. 7357 for ac_exec_ext in '' $ac_executable_extensions; do 7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7359 ac_cv_prog_ac_ct_LIPO="lipo" 7360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7361 break 2 7362 fi 7363done 7364done 7365IFS=$as_save_IFS 7366 7367fi 7368fi 7369ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7370if test -n "$ac_ct_LIPO"; then 7371 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7372$as_echo "$ac_ct_LIPO" >&6; } 7373else 7374 { $as_echo "$as_me:$LINENO: result: no" >&5 7375$as_echo "no" >&6; } 7376fi 7377 7378 if test "x$ac_ct_LIPO" = x; then 7379 LIPO=":" 7380 else 7381 case $cross_compiling:$ac_tool_warned in 7382yes:) 7383{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7385ac_tool_warned=yes ;; 7386esac 7387 LIPO=$ac_ct_LIPO 7388 fi 7389else 7390 LIPO="$ac_cv_prog_LIPO" 7391fi 7392 7393 if test -n "$ac_tool_prefix"; then 7394 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7395set dummy ${ac_tool_prefix}otool; ac_word=$2 7396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7397$as_echo_n "checking for $ac_word... " >&6; } 7398if test "${ac_cv_prog_OTOOL+set}" = set; then 7399 $as_echo_n "(cached) " >&6 7400else 7401 if test -n "$OTOOL"; then 7402 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7403else 7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7405for as_dir in $PATH 7406do 7407 IFS=$as_save_IFS 7408 test -z "$as_dir" && as_dir=. 7409 for ac_exec_ext in '' $ac_executable_extensions; do 7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7411 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7413 break 2 7414 fi 7415done 7416done 7417IFS=$as_save_IFS 7418 7419fi 7420fi 7421OTOOL=$ac_cv_prog_OTOOL 7422if test -n "$OTOOL"; then 7423 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7424$as_echo "$OTOOL" >&6; } 7425else 7426 { $as_echo "$as_me:$LINENO: result: no" >&5 7427$as_echo "no" >&6; } 7428fi 7429 7430 7431fi 7432if test -z "$ac_cv_prog_OTOOL"; then 7433 ac_ct_OTOOL=$OTOOL 7434 # Extract the first word of "otool", so it can be a program name with args. 7435set dummy otool; ac_word=$2 7436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7437$as_echo_n "checking for $ac_word... " >&6; } 7438if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7439 $as_echo_n "(cached) " >&6 7440else 7441 if test -n "$ac_ct_OTOOL"; then 7442 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7443else 7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7451 ac_cv_prog_ac_ct_OTOOL="otool" 7452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455done 7456done 7457IFS=$as_save_IFS 7458 7459fi 7460fi 7461ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7462if test -n "$ac_ct_OTOOL"; then 7463 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7464$as_echo "$ac_ct_OTOOL" >&6; } 7465else 7466 { $as_echo "$as_me:$LINENO: result: no" >&5 7467$as_echo "no" >&6; } 7468fi 7469 7470 if test "x$ac_ct_OTOOL" = x; then 7471 OTOOL=":" 7472 else 7473 case $cross_compiling:$ac_tool_warned in 7474yes:) 7475{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7477ac_tool_warned=yes ;; 7478esac 7479 OTOOL=$ac_ct_OTOOL 7480 fi 7481else 7482 OTOOL="$ac_cv_prog_OTOOL" 7483fi 7484 7485 if test -n "$ac_tool_prefix"; then 7486 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7487set dummy ${ac_tool_prefix}otool64; ac_word=$2 7488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7489$as_echo_n "checking for $ac_word... " >&6; } 7490if test "${ac_cv_prog_OTOOL64+set}" = set; then 7491 $as_echo_n "(cached) " >&6 7492else 7493 if test -n "$OTOOL64"; then 7494 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7495else 7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7497for as_dir in $PATH 7498do 7499 IFS=$as_save_IFS 7500 test -z "$as_dir" && as_dir=. 7501 for ac_exec_ext in '' $ac_executable_extensions; do 7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7503 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7505 break 2 7506 fi 7507done 7508done 7509IFS=$as_save_IFS 7510 7511fi 7512fi 7513OTOOL64=$ac_cv_prog_OTOOL64 7514if test -n "$OTOOL64"; then 7515 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7516$as_echo "$OTOOL64" >&6; } 7517else 7518 { $as_echo "$as_me:$LINENO: result: no" >&5 7519$as_echo "no" >&6; } 7520fi 7521 7522 7523fi 7524if test -z "$ac_cv_prog_OTOOL64"; then 7525 ac_ct_OTOOL64=$OTOOL64 7526 # Extract the first word of "otool64", so it can be a program name with args. 7527set dummy otool64; ac_word=$2 7528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7529$as_echo_n "checking for $ac_word... " >&6; } 7530if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7531 $as_echo_n "(cached) " >&6 7532else 7533 if test -n "$ac_ct_OTOOL64"; then 7534 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7535else 7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7537for as_dir in $PATH 7538do 7539 IFS=$as_save_IFS 7540 test -z "$as_dir" && as_dir=. 7541 for ac_exec_ext in '' $ac_executable_extensions; do 7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7543 ac_cv_prog_ac_ct_OTOOL64="otool64" 7544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7545 break 2 7546 fi 7547done 7548done 7549IFS=$as_save_IFS 7550 7551fi 7552fi 7553ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7554if test -n "$ac_ct_OTOOL64"; then 7555 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7556$as_echo "$ac_ct_OTOOL64" >&6; } 7557else 7558 { $as_echo "$as_me:$LINENO: result: no" >&5 7559$as_echo "no" >&6; } 7560fi 7561 7562 if test "x$ac_ct_OTOOL64" = x; then 7563 OTOOL64=":" 7564 else 7565 case $cross_compiling:$ac_tool_warned in 7566yes:) 7567{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7569ac_tool_warned=yes ;; 7570esac 7571 OTOOL64=$ac_ct_OTOOL64 7572 fi 7573else 7574 OTOOL64="$ac_cv_prog_OTOOL64" 7575fi 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7604$as_echo_n "checking for -single_module linker flag... " >&6; } 7605if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7606 $as_echo_n "(cached) " >&6 7607else 7608 lt_cv_apple_cc_single_mod=no 7609 if test -z "${LT_MULTI_MODULE}"; then 7610 # By default we will add the -single_module flag. You can override 7611 # by either setting the environment variable LT_MULTI_MODULE 7612 # non-empty at configure time, or by adding -multi_module to the 7613 # link flags. 7614 rm -rf libconftest.dylib* 7615 echo "int foo(void){return 1;}" > conftest.c 7616 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7617-dynamiclib -Wl,-single_module conftest.c" >&5 7618 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7619 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7620 _lt_result=$? 7621 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7622 lt_cv_apple_cc_single_mod=yes 7623 else 7624 cat conftest.err >&5 7625 fi 7626 rm -rf libconftest.dylib* 7627 rm -f conftest.* 7628 fi 7629fi 7630{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7631$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7632 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7633$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7634if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7635 $as_echo_n "(cached) " >&6 7636else 7637 lt_cv_ld_exported_symbols_list=no 7638 save_LDFLAGS=$LDFLAGS 7639 echo "_main" > conftest.sym 7640 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7641 cat >conftest.$ac_ext <<_ACEOF 7642/* confdefs.h. */ 7643_ACEOF 7644cat confdefs.h >>conftest.$ac_ext 7645cat >>conftest.$ac_ext <<_ACEOF 7646/* end confdefs.h. */ 7647 7648int 7649main () 7650{ 7651 7652 ; 7653 return 0; 7654} 7655_ACEOF 7656rm -f conftest.$ac_objext conftest$ac_exeext 7657if { (ac_try="$ac_link" 7658case "(($ac_try" in 7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7660 *) ac_try_echo=$ac_try;; 7661esac 7662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7663$as_echo "$ac_try_echo") >&5 7664 (eval "$ac_link") 2>conftest.er1 7665 ac_status=$? 7666 grep -v '^ *+' conftest.er1 >conftest.err 7667 rm -f conftest.er1 7668 cat conftest.err >&5 7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7670 (exit $ac_status); } && { 7671 test -z "$ac_c_werror_flag" || 7672 test ! -s conftest.err 7673 } && test -s conftest$ac_exeext && { 7674 test "$cross_compiling" = yes || 7675 $as_test_x conftest$ac_exeext 7676 }; then 7677 lt_cv_ld_exported_symbols_list=yes 7678else 7679 $as_echo "$as_me: failed program was:" >&5 7680sed 's/^/| /' conftest.$ac_ext >&5 7681 7682 lt_cv_ld_exported_symbols_list=no 7683fi 7684 7685rm -rf conftest.dSYM 7686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7687 conftest$ac_exeext conftest.$ac_ext 7688 LDFLAGS="$save_LDFLAGS" 7689 7690fi 7691{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7692$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7693 case $host_os in 7694 rhapsody* | darwin1.[012]) 7695 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7696 darwin1.*) 7697 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7698 darwin*) # darwin 5.x on 7699 # if running on 10.5 or later, the deployment target defaults 7700 # to the OS version, if on x86, and 10.4, the deployment 7701 # target defaults to 10.4. Don't you love it? 7702 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7703 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7704 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7705 10.[012]*) 7706 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7707 10.*) 7708 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7709 esac 7710 ;; 7711 esac 7712 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7713 _lt_dar_single_mod='$single_module' 7714 fi 7715 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7716 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7717 else 7718 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7719 fi 7720 if test "$DSYMUTIL" != ":"; then 7721 _lt_dsymutil='~$DSYMUTIL $lib || :' 7722 else 7723 _lt_dsymutil= 7724 fi 7725 ;; 7726 esac 7727 7728 7729for ac_header in dlfcn.h 7730do 7731as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7732{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7733$as_echo_n "checking for $ac_header... " >&6; } 7734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7735 $as_echo_n "(cached) " >&6 7736else 7737 cat >conftest.$ac_ext <<_ACEOF 7738/* confdefs.h. */ 7739_ACEOF 7740cat confdefs.h >>conftest.$ac_ext 7741cat >>conftest.$ac_ext <<_ACEOF 7742/* end confdefs.h. */ 7743$ac_includes_default 7744 7745#include <$ac_header> 7746_ACEOF 7747rm -f conftest.$ac_objext 7748if { (ac_try="$ac_compile" 7749case "(($ac_try" in 7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7751 *) ac_try_echo=$ac_try;; 7752esac 7753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7754$as_echo "$ac_try_echo") >&5 7755 (eval "$ac_compile") 2>conftest.er1 7756 ac_status=$? 7757 grep -v '^ *+' conftest.er1 >conftest.err 7758 rm -f conftest.er1 7759 cat conftest.err >&5 7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7761 (exit $ac_status); } && { 7762 test -z "$ac_c_werror_flag" || 7763 test ! -s conftest.err 7764 } && test -s conftest.$ac_objext; then 7765 eval "$as_ac_Header=yes" 7766else 7767 $as_echo "$as_me: failed program was:" >&5 7768sed 's/^/| /' conftest.$ac_ext >&5 7769 7770 eval "$as_ac_Header=no" 7771fi 7772 7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7774fi 7775ac_res=`eval 'as_val=${'$as_ac_Header'} 7776 $as_echo "$as_val"'` 7777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7778$as_echo "$ac_res" >&6; } 7779as_val=`eval 'as_val=${'$as_ac_Header'} 7780 $as_echo "$as_val"'` 7781 if test "x$as_val" = x""yes; then 7782 cat >>confdefs.h <<_ACEOF 7783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7784_ACEOF 7785 7786fi 7787 7788done 7789 7790 7791 7792# Set options 7793 7794 7795 7796 enable_dlopen=no 7797 7798 7799 enable_win32_dll=no 7800 7801 7802 # Check whether --enable-shared was given. 7803if test "${enable_shared+set}" = set; then 7804 enableval=$enable_shared; p=${PACKAGE-default} 7805 case $enableval in 7806 yes) enable_shared=yes ;; 7807 no) enable_shared=no ;; 7808 *) 7809 enable_shared=no 7810 # Look at the argument we got. We use all the common list separators. 7811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7812 for pkg in $enableval; do 7813 IFS="$lt_save_ifs" 7814 if test "X$pkg" = "X$p"; then 7815 enable_shared=yes 7816 fi 7817 done 7818 IFS="$lt_save_ifs" 7819 ;; 7820 esac 7821else 7822 enable_shared=yes 7823fi 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835# Check whether --with-pic was given. 7836if test "${with_pic+set}" = set; then 7837 withval=$with_pic; pic_mode="$withval" 7838else 7839 pic_mode=default 7840fi 7841 7842 7843test -z "$pic_mode" && pic_mode=default 7844 7845 7846 7847 7848 7849 7850 7851 # Check whether --enable-fast-install was given. 7852if test "${enable_fast_install+set}" = set; then 7853 enableval=$enable_fast_install; p=${PACKAGE-default} 7854 case $enableval in 7855 yes) enable_fast_install=yes ;; 7856 no) enable_fast_install=no ;; 7857 *) 7858 enable_fast_install=no 7859 # Look at the argument we got. We use all the common list separators. 7860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7861 for pkg in $enableval; do 7862 IFS="$lt_save_ifs" 7863 if test "X$pkg" = "X$p"; then 7864 enable_fast_install=yes 7865 fi 7866 done 7867 IFS="$lt_save_ifs" 7868 ;; 7869 esac 7870else 7871 enable_fast_install=yes 7872fi 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884# This can be used to rebuild libtool when needed 7885LIBTOOL_DEPS="$ltmain" 7886 7887# Always use our own libtool. 7888LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914test -z "$LN_S" && LN_S="ln -s" 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929if test -n "${ZSH_VERSION+set}" ; then 7930 setopt NO_GLOB_SUBST 7931fi 7932 7933{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7934$as_echo_n "checking for objdir... " >&6; } 7935if test "${lt_cv_objdir+set}" = set; then 7936 $as_echo_n "(cached) " >&6 7937else 7938 rm -f .libs 2>/dev/null 7939mkdir .libs 2>/dev/null 7940if test -d .libs; then 7941 lt_cv_objdir=.libs 7942else 7943 # MS-DOS does not allow filenames that begin with a dot. 7944 lt_cv_objdir=_libs 7945fi 7946rmdir .libs 2>/dev/null 7947fi 7948{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7949$as_echo "$lt_cv_objdir" >&6; } 7950objdir=$lt_cv_objdir 7951 7952 7953 7954 7955 7956cat >>confdefs.h <<_ACEOF 7957#define LT_OBJDIR "$lt_cv_objdir/" 7958_ACEOF 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976case $host_os in 7977aix3*) 7978 # AIX sometimes has problems with the GCC collect2 program. For some 7979 # reason, if we set the COLLECT_NAMES environment variable, the problems 7980 # vanish in a puff of smoke. 7981 if test "X${COLLECT_NAMES+set}" != Xset; then 7982 COLLECT_NAMES= 7983 export COLLECT_NAMES 7984 fi 7985 ;; 7986esac 7987 7988# Sed substitution that helps us do robust quoting. It backslashifies 7989# metacharacters that are still active within double-quoted strings. 7990sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7991 7992# Same as above, but do not quote variable references. 7993double_quote_subst='s/\(["`\\]\)/\\\1/g' 7994 7995# Sed substitution to delay expansion of an escaped shell variable in a 7996# double_quote_subst'ed string. 7997delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7998 7999# Sed substitution to delay expansion of an escaped single quote. 8000delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8001 8002# Sed substitution to avoid accidental globbing in evaled expressions 8003no_glob_subst='s/\*/\\\*/g' 8004 8005# Global variables: 8006ofile=libtool 8007can_build_shared=yes 8008 8009# All known linkers require a `.a' archive for static linking (except MSVC, 8010# which needs '.lib'). 8011libext=a 8012 8013with_gnu_ld="$lt_cv_prog_gnu_ld" 8014 8015old_CC="$CC" 8016old_CFLAGS="$CFLAGS" 8017 8018# Set sane defaults for various variables 8019test -z "$CC" && CC=cc 8020test -z "$LTCC" && LTCC=$CC 8021test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8022test -z "$LD" && LD=ld 8023test -z "$ac_objext" && ac_objext=o 8024 8025for cc_temp in $compiler""; do 8026 case $cc_temp in 8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8029 \-*) ;; 8030 *) break;; 8031 esac 8032done 8033cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8034 8035 8036# Only perform the check for file, if the check method requires it 8037test -z "$MAGIC_CMD" && MAGIC_CMD=file 8038case $deplibs_check_method in 8039file_magic*) 8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8041 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8042$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8043if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8044 $as_echo_n "(cached) " >&6 8045else 8046 case $MAGIC_CMD in 8047[\\/*] | ?:[\\/]*) 8048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8049 ;; 8050*) 8051 lt_save_MAGIC_CMD="$MAGIC_CMD" 8052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8054 for ac_dir in $ac_dummy; do 8055 IFS="$lt_save_ifs" 8056 test -z "$ac_dir" && ac_dir=. 8057 if test -f $ac_dir/${ac_tool_prefix}file; then 8058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8059 if test -n "$file_magic_test_file"; then 8060 case $deplibs_check_method in 8061 "file_magic "*) 8062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8065 $EGREP "$file_magic_regex" > /dev/null; then 8066 : 8067 else 8068 cat <<_LT_EOF 1>&2 8069 8070*** Warning: the command libtool uses to detect shared libraries, 8071*** $file_magic_cmd, produces output that libtool cannot recognize. 8072*** The result is that libtool may fail to recognize shared libraries 8073*** as such. This will affect the creation of libtool libraries that 8074*** depend on shared libraries, but programs linked with such libtool 8075*** libraries will work regardless of this problem. Nevertheless, you 8076*** may want to report the problem to your system manager and/or to 8077*** bug-libtool@gnu.org 8078 8079_LT_EOF 8080 fi ;; 8081 esac 8082 fi 8083 break 8084 fi 8085 done 8086 IFS="$lt_save_ifs" 8087 MAGIC_CMD="$lt_save_MAGIC_CMD" 8088 ;; 8089esac 8090fi 8091 8092MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8093if test -n "$MAGIC_CMD"; then 8094 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8095$as_echo "$MAGIC_CMD" >&6; } 8096else 8097 { $as_echo "$as_me:$LINENO: result: no" >&5 8098$as_echo "no" >&6; } 8099fi 8100 8101 8102 8103 8104 8105if test -z "$lt_cv_path_MAGIC_CMD"; then 8106 if test -n "$ac_tool_prefix"; then 8107 { $as_echo "$as_me:$LINENO: checking for file" >&5 8108$as_echo_n "checking for file... " >&6; } 8109if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8110 $as_echo_n "(cached) " >&6 8111else 8112 case $MAGIC_CMD in 8113[\\/*] | ?:[\\/]*) 8114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8115 ;; 8116*) 8117 lt_save_MAGIC_CMD="$MAGIC_CMD" 8118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8120 for ac_dir in $ac_dummy; do 8121 IFS="$lt_save_ifs" 8122 test -z "$ac_dir" && ac_dir=. 8123 if test -f $ac_dir/file; then 8124 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8125 if test -n "$file_magic_test_file"; then 8126 case $deplibs_check_method in 8127 "file_magic "*) 8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8131 $EGREP "$file_magic_regex" > /dev/null; then 8132 : 8133 else 8134 cat <<_LT_EOF 1>&2 8135 8136*** Warning: the command libtool uses to detect shared libraries, 8137*** $file_magic_cmd, produces output that libtool cannot recognize. 8138*** The result is that libtool may fail to recognize shared libraries 8139*** as such. This will affect the creation of libtool libraries that 8140*** depend on shared libraries, but programs linked with such libtool 8141*** libraries will work regardless of this problem. Nevertheless, you 8142*** may want to report the problem to your system manager and/or to 8143*** bug-libtool@gnu.org 8144 8145_LT_EOF 8146 fi ;; 8147 esac 8148 fi 8149 break 8150 fi 8151 done 8152 IFS="$lt_save_ifs" 8153 MAGIC_CMD="$lt_save_MAGIC_CMD" 8154 ;; 8155esac 8156fi 8157 8158MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8159if test -n "$MAGIC_CMD"; then 8160 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8161$as_echo "$MAGIC_CMD" >&6; } 8162else 8163 { $as_echo "$as_me:$LINENO: result: no" >&5 8164$as_echo "no" >&6; } 8165fi 8166 8167 8168 else 8169 MAGIC_CMD=: 8170 fi 8171fi 8172 8173 fi 8174 ;; 8175esac 8176 8177# Use C for the default configuration in the libtool script 8178 8179lt_save_CC="$CC" 8180ac_ext=c 8181ac_cpp='$CPP $CPPFLAGS' 8182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8184ac_compiler_gnu=$ac_cv_c_compiler_gnu 8185 8186 8187# Source file extension for C test sources. 8188ac_ext=c 8189 8190# Object file extension for compiled C test sources. 8191objext=o 8192objext=$objext 8193 8194# Code to be used in simple compile tests 8195lt_simple_compile_test_code="int some_variable = 0;" 8196 8197# Code to be used in simple link tests 8198lt_simple_link_test_code='int main(){return(0);}' 8199 8200 8201 8202 8203 8204 8205 8206# If no C compiler was specified, use CC. 8207LTCC=${LTCC-"$CC"} 8208 8209# If no C compiler flags were specified, use CFLAGS. 8210LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8211 8212# Allow CC to be a program name with arguments. 8213compiler=$CC 8214 8215# Save the default compiler, since it gets overwritten when the other 8216# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8217compiler_DEFAULT=$CC 8218 8219# save warnings/boilerplate of simple test code 8220ac_outfile=conftest.$ac_objext 8221echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8222eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8223_lt_compiler_boilerplate=`cat conftest.err` 8224$RM conftest* 8225 8226ac_outfile=conftest.$ac_objext 8227echo "$lt_simple_link_test_code" >conftest.$ac_ext 8228eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8229_lt_linker_boilerplate=`cat conftest.err` 8230$RM -r conftest* 8231 8232 8233if test -n "$compiler"; then 8234 8235lt_prog_compiler_no_builtin_flag= 8236 8237if test "$GCC" = yes; then 8238 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8239 8240 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8241$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8242if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8243 $as_echo_n "(cached) " >&6 8244else 8245 lt_cv_prog_compiler_rtti_exceptions=no 8246 ac_outfile=conftest.$ac_objext 8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8248 lt_compiler_flag="-fno-rtti -fno-exceptions" 8249 # Insert the option either (1) after the last *FLAGS variable, or 8250 # (2) before a word containing "conftest.", or (3) at the end. 8251 # Note that $ac_compile itself does not contain backslashes and begins 8252 # with a dollar sign (not a hyphen), so the echo should work correctly. 8253 # The option is referenced via a variable to avoid confusing sed. 8254 lt_compile=`echo "$ac_compile" | $SED \ 8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8257 -e 's:$: $lt_compiler_flag:'` 8258 (eval echo "\"\$as_me:8258: $lt_compile\"" >&5) 8259 (eval "$lt_compile" 2>conftest.err) 8260 ac_status=$? 8261 cat conftest.err >&5 8262 echo "$as_me:8262: \$? = $ac_status" >&5 8263 if (exit $ac_status) && test -s "$ac_outfile"; then 8264 # The compiler can only warn and ignore the option if not recognized 8265 # So say no if there are warnings other than the usual output. 8266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8269 lt_cv_prog_compiler_rtti_exceptions=yes 8270 fi 8271 fi 8272 $RM conftest* 8273 8274fi 8275{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8276$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8277 8278if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8280else 8281 : 8282fi 8283 8284fi 8285 8286 8287 8288 8289 8290 8291 lt_prog_compiler_wl= 8292lt_prog_compiler_pic= 8293lt_prog_compiler_static= 8294 8295{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8296$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8297 8298 if test "$GCC" = yes; then 8299 lt_prog_compiler_wl='-Wl,' 8300 lt_prog_compiler_static='-static' 8301 8302 case $host_os in 8303 aix*) 8304 # All AIX code is PIC. 8305 if test "$host_cpu" = ia64; then 8306 # AIX 5 now supports IA64 processor 8307 lt_prog_compiler_static='-Bstatic' 8308 fi 8309 ;; 8310 8311 amigaos*) 8312 case $host_cpu in 8313 powerpc) 8314 # see comment about AmigaOS4 .so support 8315 lt_prog_compiler_pic='-fPIC' 8316 ;; 8317 m68k) 8318 # FIXME: we need at least 68020 code to build shared libraries, but 8319 # adding the `-m68020' flag to GCC prevents building anything better, 8320 # like `-m68040'. 8321 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8322 ;; 8323 esac 8324 ;; 8325 8326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8327 # PIC is the default for these OSes. 8328 ;; 8329 8330 mingw* | cygwin* | pw32* | os2* | cegcc*) 8331 # This hack is so that the source file can tell whether it is being 8332 # built for inclusion in a dll (and should export symbols for example). 8333 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8334 # (--disable-auto-import) libraries 8335 lt_prog_compiler_pic='-DDLL_EXPORT' 8336 ;; 8337 8338 darwin* | rhapsody*) 8339 # PIC is the default on this platform 8340 # Common symbols not allowed in MH_DYLIB files 8341 lt_prog_compiler_pic='-fno-common' 8342 ;; 8343 8344 hpux*) 8345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8347 # sets the default TLS model and affects inlining. 8348 case $host_cpu in 8349 hppa*64*) 8350 # +Z the default 8351 ;; 8352 *) 8353 lt_prog_compiler_pic='-fPIC' 8354 ;; 8355 esac 8356 ;; 8357 8358 interix[3-9]*) 8359 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8360 # Instead, we relocate shared libraries at runtime. 8361 ;; 8362 8363 msdosdjgpp*) 8364 # Just because we use GCC doesn't mean we suddenly get shared libraries 8365 # on systems that don't support them. 8366 lt_prog_compiler_can_build_shared=no 8367 enable_shared=no 8368 ;; 8369 8370 *nto* | *qnx*) 8371 # QNX uses GNU C++, but need to define -shared option too, otherwise 8372 # it will coredump. 8373 lt_prog_compiler_pic='-fPIC -shared' 8374 ;; 8375 8376 sysv4*MP*) 8377 if test -d /usr/nec; then 8378 lt_prog_compiler_pic=-Kconform_pic 8379 fi 8380 ;; 8381 8382 *) 8383 lt_prog_compiler_pic='-fPIC' 8384 ;; 8385 esac 8386 else 8387 # PORTME Check for flag to pass linker flags through the system compiler. 8388 case $host_os in 8389 aix*) 8390 lt_prog_compiler_wl='-Wl,' 8391 if test "$host_cpu" = ia64; then 8392 # AIX 5 now supports IA64 processor 8393 lt_prog_compiler_static='-Bstatic' 8394 else 8395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8396 fi 8397 ;; 8398 8399 mingw* | cygwin* | pw32* | os2* | cegcc*) 8400 # This hack is so that the source file can tell whether it is being 8401 # built for inclusion in a dll (and should export symbols for example). 8402 lt_prog_compiler_pic='-DDLL_EXPORT' 8403 ;; 8404 8405 hpux9* | hpux10* | hpux11*) 8406 lt_prog_compiler_wl='-Wl,' 8407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8408 # not for PA HP-UX. 8409 case $host_cpu in 8410 hppa*64*|ia64*) 8411 # +Z the default 8412 ;; 8413 *) 8414 lt_prog_compiler_pic='+Z' 8415 ;; 8416 esac 8417 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8418 lt_prog_compiler_static='${wl}-a ${wl}archive' 8419 ;; 8420 8421 irix5* | irix6* | nonstopux*) 8422 lt_prog_compiler_wl='-Wl,' 8423 # PIC (with -KPIC) is the default. 8424 lt_prog_compiler_static='-non_shared' 8425 ;; 8426 8427 linux* | k*bsd*-gnu) 8428 case $cc_basename in 8429 # old Intel for x86_64 which still supported -KPIC. 8430 ecc*) 8431 lt_prog_compiler_wl='-Wl,' 8432 lt_prog_compiler_pic='-KPIC' 8433 lt_prog_compiler_static='-static' 8434 ;; 8435 # icc used to be incompatible with GCC. 8436 # ICC 10 doesn't accept -KPIC any more. 8437 icc* | ifort*) 8438 lt_prog_compiler_wl='-Wl,' 8439 lt_prog_compiler_pic='-fPIC' 8440 lt_prog_compiler_static='-static' 8441 ;; 8442 # Lahey Fortran 8.1. 8443 lf95*) 8444 lt_prog_compiler_wl='-Wl,' 8445 lt_prog_compiler_pic='--shared' 8446 lt_prog_compiler_static='--static' 8447 ;; 8448 pgcc* | pgf77* | pgf90* | pgf95*) 8449 # Portland Group compilers (*not* the Pentium gcc compiler, 8450 # which looks to be a dead project) 8451 lt_prog_compiler_wl='-Wl,' 8452 lt_prog_compiler_pic='-fpic' 8453 lt_prog_compiler_static='-Bstatic' 8454 ;; 8455 ccc*) 8456 lt_prog_compiler_wl='-Wl,' 8457 # All Alpha code is PIC. 8458 lt_prog_compiler_static='-non_shared' 8459 ;; 8460 xl*) 8461 # IBM XL C 8.0/Fortran 10.1 on PPC 8462 lt_prog_compiler_wl='-Wl,' 8463 lt_prog_compiler_pic='-qpic' 8464 lt_prog_compiler_static='-qstaticlink' 8465 ;; 8466 *) 8467 case `$CC -V 2>&1 | sed 5q` in 8468 *Sun\ C*) 8469 # Sun C 5.9 8470 lt_prog_compiler_pic='-KPIC' 8471 lt_prog_compiler_static='-Bstatic' 8472 lt_prog_compiler_wl='-Wl,' 8473 ;; 8474 *Sun\ F*) 8475 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8476 lt_prog_compiler_pic='-KPIC' 8477 lt_prog_compiler_static='-Bstatic' 8478 lt_prog_compiler_wl='' 8479 ;; 8480 esac 8481 ;; 8482 esac 8483 ;; 8484 8485 newsos6) 8486 lt_prog_compiler_pic='-KPIC' 8487 lt_prog_compiler_static='-Bstatic' 8488 ;; 8489 8490 *nto* | *qnx*) 8491 # QNX uses GNU C++, but need to define -shared option too, otherwise 8492 # it will coredump. 8493 lt_prog_compiler_pic='-fPIC -shared' 8494 ;; 8495 8496 osf3* | osf4* | osf5*) 8497 lt_prog_compiler_wl='-Wl,' 8498 # All OSF/1 code is PIC. 8499 lt_prog_compiler_static='-non_shared' 8500 ;; 8501 8502 rdos*) 8503 lt_prog_compiler_static='-non_shared' 8504 ;; 8505 8506 solaris*) 8507 lt_prog_compiler_pic='-KPIC' 8508 lt_prog_compiler_static='-Bstatic' 8509 case $cc_basename in 8510 f77* | f90* | f95*) 8511 lt_prog_compiler_wl='-Qoption ld ';; 8512 *) 8513 lt_prog_compiler_wl='-Wl,';; 8514 esac 8515 ;; 8516 8517 sunos4*) 8518 lt_prog_compiler_wl='-Qoption ld ' 8519 lt_prog_compiler_pic='-PIC' 8520 lt_prog_compiler_static='-Bstatic' 8521 ;; 8522 8523 sysv4 | sysv4.2uw2* | sysv4.3*) 8524 lt_prog_compiler_wl='-Wl,' 8525 lt_prog_compiler_pic='-KPIC' 8526 lt_prog_compiler_static='-Bstatic' 8527 ;; 8528 8529 sysv4*MP*) 8530 if test -d /usr/nec ;then 8531 lt_prog_compiler_pic='-Kconform_pic' 8532 lt_prog_compiler_static='-Bstatic' 8533 fi 8534 ;; 8535 8536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8537 lt_prog_compiler_wl='-Wl,' 8538 lt_prog_compiler_pic='-KPIC' 8539 lt_prog_compiler_static='-Bstatic' 8540 ;; 8541 8542 unicos*) 8543 lt_prog_compiler_wl='-Wl,' 8544 lt_prog_compiler_can_build_shared=no 8545 ;; 8546 8547 uts4*) 8548 lt_prog_compiler_pic='-pic' 8549 lt_prog_compiler_static='-Bstatic' 8550 ;; 8551 8552 *) 8553 lt_prog_compiler_can_build_shared=no 8554 ;; 8555 esac 8556 fi 8557 8558case $host_os in 8559 # For platforms which do not support PIC, -DPIC is meaningless: 8560 *djgpp*) 8561 lt_prog_compiler_pic= 8562 ;; 8563 *) 8564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8565 ;; 8566esac 8567{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8568$as_echo "$lt_prog_compiler_pic" >&6; } 8569 8570 8571 8572 8573 8574 8575# 8576# Check to make sure the PIC flag actually works. 8577# 8578if test -n "$lt_prog_compiler_pic"; then 8579 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8580$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8581if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8582 $as_echo_n "(cached) " >&6 8583else 8584 lt_cv_prog_compiler_pic_works=no 8585 ac_outfile=conftest.$ac_objext 8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8588 # Insert the option either (1) after the last *FLAGS variable, or 8589 # (2) before a word containing "conftest.", or (3) at the end. 8590 # Note that $ac_compile itself does not contain backslashes and begins 8591 # with a dollar sign (not a hyphen), so the echo should work correctly. 8592 # The option is referenced via a variable to avoid confusing sed. 8593 lt_compile=`echo "$ac_compile" | $SED \ 8594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8596 -e 's:$: $lt_compiler_flag:'` 8597 (eval echo "\"\$as_me:8597: $lt_compile\"" >&5) 8598 (eval "$lt_compile" 2>conftest.err) 8599 ac_status=$? 8600 cat conftest.err >&5 8601 echo "$as_me:8601: \$? = $ac_status" >&5 8602 if (exit $ac_status) && test -s "$ac_outfile"; then 8603 # The compiler can only warn and ignore the option if not recognized 8604 # So say no if there are warnings other than the usual output. 8605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8608 lt_cv_prog_compiler_pic_works=yes 8609 fi 8610 fi 8611 $RM conftest* 8612 8613fi 8614{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8615$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8616 8617if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8618 case $lt_prog_compiler_pic in 8619 "" | " "*) ;; 8620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8621 esac 8622else 8623 lt_prog_compiler_pic= 8624 lt_prog_compiler_can_build_shared=no 8625fi 8626 8627fi 8628 8629 8630 8631 8632 8633 8634# 8635# Check to make sure the static flag actually works. 8636# 8637wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8638{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8639$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8640if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8641 $as_echo_n "(cached) " >&6 8642else 8643 lt_cv_prog_compiler_static_works=no 8644 save_LDFLAGS="$LDFLAGS" 8645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8646 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8648 # The linker can only warn and ignore the option if not recognized 8649 # So say no if there are warnings 8650 if test -s conftest.err; then 8651 # Append any errors to the config.log. 8652 cat conftest.err 1>&5 8653 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8655 if diff conftest.exp conftest.er2 >/dev/null; then 8656 lt_cv_prog_compiler_static_works=yes 8657 fi 8658 else 8659 lt_cv_prog_compiler_static_works=yes 8660 fi 8661 fi 8662 $RM -r conftest* 8663 LDFLAGS="$save_LDFLAGS" 8664 8665fi 8666{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8667$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8668 8669if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8670 : 8671else 8672 lt_prog_compiler_static= 8673fi 8674 8675 8676 8677 8678 8679 8680 8681 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8682$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8683if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8684 $as_echo_n "(cached) " >&6 8685else 8686 lt_cv_prog_compiler_c_o=no 8687 $RM -r conftest 2>/dev/null 8688 mkdir conftest 8689 cd conftest 8690 mkdir out 8691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8692 8693 lt_compiler_flag="-o out/conftest2.$ac_objext" 8694 # Insert the option either (1) after the last *FLAGS variable, or 8695 # (2) before a word containing "conftest.", or (3) at the end. 8696 # Note that $ac_compile itself does not contain backslashes and begins 8697 # with a dollar sign (not a hyphen), so the echo should work correctly. 8698 lt_compile=`echo "$ac_compile" | $SED \ 8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8701 -e 's:$: $lt_compiler_flag:'` 8702 (eval echo "\"\$as_me:8702: $lt_compile\"" >&5) 8703 (eval "$lt_compile" 2>out/conftest.err) 8704 ac_status=$? 8705 cat out/conftest.err >&5 8706 echo "$as_me:8706: \$? = $ac_status" >&5 8707 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8708 then 8709 # The compiler can only warn and ignore the option if not recognized 8710 # So say no if there are warnings 8711 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8714 lt_cv_prog_compiler_c_o=yes 8715 fi 8716 fi 8717 chmod u+w . 2>&5 8718 $RM conftest* 8719 # SGI C++ compiler will create directory out/ii_files/ for 8720 # template instantiation 8721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8722 $RM out/* && rmdir out 8723 cd .. 8724 $RM -r conftest 8725 $RM conftest* 8726 8727fi 8728{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8729$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8730 8731 8732 8733 8734 8735 8736 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8737$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8738if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8739 $as_echo_n "(cached) " >&6 8740else 8741 lt_cv_prog_compiler_c_o=no 8742 $RM -r conftest 2>/dev/null 8743 mkdir conftest 8744 cd conftest 8745 mkdir out 8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8747 8748 lt_compiler_flag="-o out/conftest2.$ac_objext" 8749 # Insert the option either (1) after the last *FLAGS variable, or 8750 # (2) before a word containing "conftest.", or (3) at the end. 8751 # Note that $ac_compile itself does not contain backslashes and begins 8752 # with a dollar sign (not a hyphen), so the echo should work correctly. 8753 lt_compile=`echo "$ac_compile" | $SED \ 8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8756 -e 's:$: $lt_compiler_flag:'` 8757 (eval echo "\"\$as_me:8757: $lt_compile\"" >&5) 8758 (eval "$lt_compile" 2>out/conftest.err) 8759 ac_status=$? 8760 cat out/conftest.err >&5 8761 echo "$as_me:8761: \$? = $ac_status" >&5 8762 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8763 then 8764 # The compiler can only warn and ignore the option if not recognized 8765 # So say no if there are warnings 8766 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8769 lt_cv_prog_compiler_c_o=yes 8770 fi 8771 fi 8772 chmod u+w . 2>&5 8773 $RM conftest* 8774 # SGI C++ compiler will create directory out/ii_files/ for 8775 # template instantiation 8776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8777 $RM out/* && rmdir out 8778 cd .. 8779 $RM -r conftest 8780 $RM conftest* 8781 8782fi 8783{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8784$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8785 8786 8787 8788 8789hard_links="nottested" 8790if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8791 # do not overwrite the value of need_locks provided by the user 8792 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8793$as_echo_n "checking if we can lock with hard links... " >&6; } 8794 hard_links=yes 8795 $RM conftest* 8796 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8797 touch conftest.a 8798 ln conftest.a conftest.b 2>&5 || hard_links=no 8799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8800 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8801$as_echo "$hard_links" >&6; } 8802 if test "$hard_links" = no; then 8803 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8804$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8805 need_locks=warn 8806 fi 8807else 8808 need_locks=no 8809fi 8810 8811 8812 8813 8814 8815 8816 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8817$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8818 8819 runpath_var= 8820 allow_undefined_flag= 8821 always_export_symbols=no 8822 archive_cmds= 8823 archive_expsym_cmds= 8824 compiler_needs_object=no 8825 enable_shared_with_static_runtimes=no 8826 export_dynamic_flag_spec= 8827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8828 hardcode_automatic=no 8829 hardcode_direct=no 8830 hardcode_direct_absolute=no 8831 hardcode_libdir_flag_spec= 8832 hardcode_libdir_flag_spec_ld= 8833 hardcode_libdir_separator= 8834 hardcode_minus_L=no 8835 hardcode_shlibpath_var=unsupported 8836 inherit_rpath=no 8837 link_all_deplibs=unknown 8838 module_cmds= 8839 module_expsym_cmds= 8840 old_archive_from_new_cmds= 8841 old_archive_from_expsyms_cmds= 8842 thread_safe_flag_spec= 8843 whole_archive_flag_spec= 8844 # include_expsyms should be a list of space-separated symbols to be *always* 8845 # included in the symbol list 8846 include_expsyms= 8847 # exclude_expsyms can be an extended regexp of symbols to exclude 8848 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8850 # as well as any symbol that contains `d'. 8851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8853 # platforms (ab)use it in PIC code, but their linkers get confused if 8854 # the symbol is explicitly referenced. Since portable code cannot 8855 # rely on this symbol name, it's probably fine to never include it in 8856 # preloaded symbol tables. 8857 # Exclude shared library initialization/finalization symbols. 8858 extract_expsyms_cmds= 8859 8860 case $host_os in 8861 cygwin* | mingw* | pw32* | cegcc*) 8862 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8863 # When not using gcc, we currently assume that we are using 8864 # Microsoft Visual C++. 8865 if test "$GCC" != yes; then 8866 with_gnu_ld=no 8867 fi 8868 ;; 8869 interix*) 8870 # we just hope/assume this is gcc and not c89 (= MSVC++) 8871 with_gnu_ld=yes 8872 ;; 8873 openbsd*) 8874 with_gnu_ld=no 8875 ;; 8876 esac 8877 8878 ld_shlibs=yes 8879 if test "$with_gnu_ld" = yes; then 8880 # If archive_cmds runs LD, not CC, wlarc should be empty 8881 wlarc='${wl}' 8882 8883 # Set some defaults for GNU ld with shared library support. These 8884 # are reset later if shared libraries are not supported. Putting them 8885 # here allows them to be overridden if necessary. 8886 runpath_var=LD_RUN_PATH 8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8888 export_dynamic_flag_spec='${wl}--export-dynamic' 8889 # ancient GNU ld didn't support --whole-archive et. al. 8890 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8891 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8892 else 8893 whole_archive_flag_spec= 8894 fi 8895 supports_anon_versioning=no 8896 case `$LD -v 2>&1` in 8897 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8900 *\ 2.11.*) ;; # other 2.11 versions 8901 *) supports_anon_versioning=yes ;; 8902 esac 8903 8904 # See if GNU ld supports shared libraries. 8905 case $host_os in 8906 aix[3-9]*) 8907 # On AIX/PPC, the GNU linker is very broken 8908 if test "$host_cpu" != ia64; then 8909 ld_shlibs=no 8910 cat <<_LT_EOF 1>&2 8911 8912*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8913*** to be unable to reliably create shared libraries on AIX. 8914*** Therefore, libtool is disabling shared libraries support. If you 8915*** really care for shared libraries, you may want to modify your PATH 8916*** so that a non-GNU linker is found, and then restart. 8917 8918_LT_EOF 8919 fi 8920 ;; 8921 8922 amigaos*) 8923 case $host_cpu in 8924 powerpc) 8925 # see comment about AmigaOS4 .so support 8926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8927 archive_expsym_cmds='' 8928 ;; 8929 m68k) 8930 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)' 8931 hardcode_libdir_flag_spec='-L$libdir' 8932 hardcode_minus_L=yes 8933 ;; 8934 esac 8935 ;; 8936 8937 beos*) 8938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8939 allow_undefined_flag=unsupported 8940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8941 # support --undefined. This deserves some investigation. FIXME 8942 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8943 else 8944 ld_shlibs=no 8945 fi 8946 ;; 8947 8948 cygwin* | mingw* | pw32* | cegcc*) 8949 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8950 # as there is no search path for DLLs. 8951 hardcode_libdir_flag_spec='-L$libdir' 8952 allow_undefined_flag=unsupported 8953 always_export_symbols=no 8954 enable_shared_with_static_runtimes=yes 8955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8956 8957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8959 # If the export-symbols file already is a .def file (1st line 8960 # is EXPORTS), use it as is; otherwise, prepend... 8961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8962 cp $export_symbols $output_objdir/$soname.def; 8963 else 8964 echo EXPORTS > $output_objdir/$soname.def; 8965 cat $export_symbols >> $output_objdir/$soname.def; 8966 fi~ 8967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8968 else 8969 ld_shlibs=no 8970 fi 8971 ;; 8972 8973 interix[3-9]*) 8974 hardcode_direct=no 8975 hardcode_shlibpath_var=no 8976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8977 export_dynamic_flag_spec='${wl}-E' 8978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8979 # Instead, shared libraries are loaded at an image base (0x10000000 by 8980 # default) and relocated if they conflict, which is a slow very memory 8981 # consuming and fragmenting process. To avoid this, we pick a random, 8982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8983 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8985 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' 8986 ;; 8987 8988 gnu* | linux* | tpf* | k*bsd*-gnu) 8989 tmp_diet=no 8990 if test "$host_os" = linux-dietlibc; then 8991 case $cc_basename in 8992 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8993 esac 8994 fi 8995 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8996 && test "$tmp_diet" = no 8997 then 8998 tmp_addflag= 8999 tmp_sharedflag='-shared' 9000 case $cc_basename,$host_cpu in 9001 pgcc*) # Portland Group C compiler 9002 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' 9003 tmp_addflag=' $pic_flag' 9004 ;; 9005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9006 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' 9007 tmp_addflag=' $pic_flag -Mnomain' ;; 9008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9009 tmp_addflag=' -i_dynamic' ;; 9010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9011 tmp_addflag=' -i_dynamic -nofor_main' ;; 9012 ifc* | ifort*) # Intel Fortran compiler 9013 tmp_addflag=' -nofor_main' ;; 9014 lf95*) # Lahey Fortran 8.1 9015 whole_archive_flag_spec= 9016 tmp_sharedflag='--shared' ;; 9017 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9018 tmp_sharedflag='-qmkshrobj' 9019 tmp_addflag= ;; 9020 esac 9021 case `$CC -V 2>&1 | sed 5q` in 9022 *Sun\ C*) # Sun C 5.9 9023 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' 9024 compiler_needs_object=yes 9025 tmp_sharedflag='-G' ;; 9026 *Sun\ F*) # Sun Fortran 8.3 9027 tmp_sharedflag='-G' ;; 9028 esac 9029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9030 9031 if test "x$supports_anon_versioning" = xyes; then 9032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9034 echo "local: *; };" >> $output_objdir/$libname.ver~ 9035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9036 fi 9037 9038 case $cc_basename in 9039 xlf*) 9040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9042 hardcode_libdir_flag_spec= 9043 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9044 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9045 if test "x$supports_anon_versioning" = xyes; then 9046 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9048 echo "local: *; };" >> $output_objdir/$libname.ver~ 9049 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9050 fi 9051 ;; 9052 esac 9053 else 9054 ld_shlibs=no 9055 fi 9056 ;; 9057 9058 netbsd*) 9059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9060 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9061 wlarc= 9062 else 9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9065 fi 9066 ;; 9067 9068 solaris*) 9069 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9070 ld_shlibs=no 9071 cat <<_LT_EOF 1>&2 9072 9073*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9074*** create shared libraries on Solaris systems. Therefore, libtool 9075*** is disabling shared libraries support. We urge you to upgrade GNU 9076*** binutils to release 2.9.1 or newer. Another option is to modify 9077*** your PATH or compiler configuration so that the native linker is 9078*** used, and then restart. 9079 9080_LT_EOF 9081 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9084 else 9085 ld_shlibs=no 9086 fi 9087 ;; 9088 9089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9090 case `$LD -v 2>&1` in 9091 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9092 ld_shlibs=no 9093 cat <<_LT_EOF 1>&2 9094 9095*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9096*** reliably create shared libraries on SCO systems. Therefore, libtool 9097*** is disabling shared libraries support. We urge you to upgrade GNU 9098*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9099*** your PATH or compiler configuration so that the native linker is 9100*** used, and then restart. 9101 9102_LT_EOF 9103 ;; 9104 *) 9105 # For security reasons, it is highly recommended that you always 9106 # use absolute paths for naming shared libraries, and exclude the 9107 # DT_RUNPATH tag from executables and libraries. But doing so 9108 # requires that you compile everything twice, which is a pain. 9109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9113 else 9114 ld_shlibs=no 9115 fi 9116 ;; 9117 esac 9118 ;; 9119 9120 sunos4*) 9121 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9122 wlarc= 9123 hardcode_direct=yes 9124 hardcode_shlibpath_var=no 9125 ;; 9126 9127 *) 9128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9131 else 9132 ld_shlibs=no 9133 fi 9134 ;; 9135 esac 9136 9137 if test "$ld_shlibs" = no; then 9138 runpath_var= 9139 hardcode_libdir_flag_spec= 9140 export_dynamic_flag_spec= 9141 whole_archive_flag_spec= 9142 fi 9143 else 9144 # PORTME fill in a description of your system's linker (not GNU ld) 9145 case $host_os in 9146 aix3*) 9147 allow_undefined_flag=unsupported 9148 always_export_symbols=yes 9149 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' 9150 # Note: this linker hardcodes the directories in LIBPATH if there 9151 # are no directories specified by -L. 9152 hardcode_minus_L=yes 9153 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9154 # Neither direct hardcoding nor static linking is supported with a 9155 # broken collect2. 9156 hardcode_direct=unsupported 9157 fi 9158 ;; 9159 9160 aix[4-9]*) 9161 if test "$host_cpu" = ia64; then 9162 # On IA64, the linker does run time linking by default, so we don't 9163 # have to do anything special. 9164 aix_use_runtimelinking=no 9165 exp_sym_flag='-Bexport' 9166 no_entry_flag="" 9167 else 9168 # If we're using GNU nm, then we don't want the "-C" option. 9169 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9171 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' 9172 else 9173 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' 9174 fi 9175 aix_use_runtimelinking=no 9176 9177 # Test if we are trying to use run time linking or normal 9178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9179 # need to do runtime linking. 9180 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9181 for ld_flag in $LDFLAGS; do 9182 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9183 aix_use_runtimelinking=yes 9184 break 9185 fi 9186 done 9187 ;; 9188 esac 9189 9190 exp_sym_flag='-bexport' 9191 no_entry_flag='-bnoentry' 9192 fi 9193 9194 # When large executables or shared objects are built, AIX ld can 9195 # have problems creating the table of contents. If linking a library 9196 # or program results in "error TOC overflow" add -mminimal-toc to 9197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9199 9200 archive_cmds='' 9201 hardcode_direct=yes 9202 hardcode_direct_absolute=yes 9203 hardcode_libdir_separator=':' 9204 link_all_deplibs=yes 9205 file_list_spec='${wl}-f,' 9206 9207 if test "$GCC" = yes; then 9208 case $host_os in aix4.[012]|aix4.[012].*) 9209 # We only want to do this on AIX 4.2 and lower, the check 9210 # below for broken collect2 doesn't work under 4.3+ 9211 collect2name=`${CC} -print-prog-name=collect2` 9212 if test -f "$collect2name" && 9213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9214 then 9215 # We have reworked collect2 9216 : 9217 else 9218 # We have old collect2 9219 hardcode_direct=unsupported 9220 # It fails to find uninstalled libraries when the uninstalled 9221 # path is not listed in the libpath. Setting hardcode_minus_L 9222 # to unsupported forces relinking 9223 hardcode_minus_L=yes 9224 hardcode_libdir_flag_spec='-L$libdir' 9225 hardcode_libdir_separator= 9226 fi 9227 ;; 9228 esac 9229 shared_flag='-shared' 9230 if test "$aix_use_runtimelinking" = yes; then 9231 shared_flag="$shared_flag "'${wl}-G' 9232 fi 9233 else 9234 # not using gcc 9235 if test "$host_cpu" = ia64; then 9236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9237 # chokes on -Wl,-G. The following line is correct: 9238 shared_flag='-G' 9239 else 9240 if test "$aix_use_runtimelinking" = yes; then 9241 shared_flag='${wl}-G' 9242 else 9243 shared_flag='${wl}-bM:SRE' 9244 fi 9245 fi 9246 fi 9247 9248 export_dynamic_flag_spec='${wl}-bexpall' 9249 # It seems that -bexpall does not export symbols beginning with 9250 # underscore (_), so it is better to generate a list of symbols to export. 9251 always_export_symbols=yes 9252 if test "$aix_use_runtimelinking" = yes; then 9253 # Warning - without using the other runtime loading flags (-brtl), 9254 # -berok will link without error, but may produce a broken library. 9255 allow_undefined_flag='-berok' 9256 # Determine the default libpath from the value encoded in an 9257 # empty executable. 9258 cat >conftest.$ac_ext <<_ACEOF 9259/* confdefs.h. */ 9260_ACEOF 9261cat confdefs.h >>conftest.$ac_ext 9262cat >>conftest.$ac_ext <<_ACEOF 9263/* end confdefs.h. */ 9264 9265int 9266main () 9267{ 9268 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273rm -f conftest.$ac_objext conftest$ac_exeext 9274if { (ac_try="$ac_link" 9275case "(($ac_try" in 9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9277 *) ac_try_echo=$ac_try;; 9278esac 9279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9280$as_echo "$ac_try_echo") >&5 9281 (eval "$ac_link") 2>conftest.er1 9282 ac_status=$? 9283 grep -v '^ *+' conftest.er1 >conftest.err 9284 rm -f conftest.er1 9285 cat conftest.err >&5 9286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9287 (exit $ac_status); } && { 9288 test -z "$ac_c_werror_flag" || 9289 test ! -s conftest.err 9290 } && test -s conftest$ac_exeext && { 9291 test "$cross_compiling" = yes || 9292 $as_test_x conftest$ac_exeext 9293 }; then 9294 9295lt_aix_libpath_sed=' 9296 /Import File Strings/,/^$/ { 9297 /^0/ { 9298 s/^0 *\(.*\)$/\1/ 9299 p 9300 } 9301 }' 9302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9303# Check for a 64-bit object if we didn't find anything. 9304if test -z "$aix_libpath"; then 9305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9306fi 9307else 9308 $as_echo "$as_me: failed program was:" >&5 9309sed 's/^/| /' conftest.$ac_ext >&5 9310 9311 9312fi 9313 9314rm -rf conftest.dSYM 9315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9316 conftest$ac_exeext conftest.$ac_ext 9317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9318 9319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9320 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" 9321 else 9322 if test "$host_cpu" = ia64; then 9323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9324 allow_undefined_flag="-z nodefs" 9325 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" 9326 else 9327 # Determine the default libpath from the value encoded in an 9328 # empty executable. 9329 cat >conftest.$ac_ext <<_ACEOF 9330/* confdefs.h. */ 9331_ACEOF 9332cat confdefs.h >>conftest.$ac_ext 9333cat >>conftest.$ac_ext <<_ACEOF 9334/* end confdefs.h. */ 9335 9336int 9337main () 9338{ 9339 9340 ; 9341 return 0; 9342} 9343_ACEOF 9344rm -f conftest.$ac_objext conftest$ac_exeext 9345if { (ac_try="$ac_link" 9346case "(($ac_try" in 9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9348 *) ac_try_echo=$ac_try;; 9349esac 9350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9351$as_echo "$ac_try_echo") >&5 9352 (eval "$ac_link") 2>conftest.er1 9353 ac_status=$? 9354 grep -v '^ *+' conftest.er1 >conftest.err 9355 rm -f conftest.er1 9356 cat conftest.err >&5 9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9358 (exit $ac_status); } && { 9359 test -z "$ac_c_werror_flag" || 9360 test ! -s conftest.err 9361 } && test -s conftest$ac_exeext && { 9362 test "$cross_compiling" = yes || 9363 $as_test_x conftest$ac_exeext 9364 }; then 9365 9366lt_aix_libpath_sed=' 9367 /Import File Strings/,/^$/ { 9368 /^0/ { 9369 s/^0 *\(.*\)$/\1/ 9370 p 9371 } 9372 }' 9373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9374# Check for a 64-bit object if we didn't find anything. 9375if test -z "$aix_libpath"; then 9376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9377fi 9378else 9379 $as_echo "$as_me: failed program was:" >&5 9380sed 's/^/| /' conftest.$ac_ext >&5 9381 9382 9383fi 9384 9385rm -rf conftest.dSYM 9386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9387 conftest$ac_exeext conftest.$ac_ext 9388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9389 9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9391 # Warning - without using the other run time loading flags, 9392 # -berok will link without error, but may produce a broken library. 9393 no_undefined_flag=' ${wl}-bernotok' 9394 allow_undefined_flag=' ${wl}-berok' 9395 # Exported symbols can be pulled into shared objects from archives 9396 whole_archive_flag_spec='$convenience' 9397 archive_cmds_need_lc=yes 9398 # This is similar to how AIX traditionally builds its shared libraries. 9399 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' 9400 fi 9401 fi 9402 ;; 9403 9404 amigaos*) 9405 case $host_cpu in 9406 powerpc) 9407 # see comment about AmigaOS4 .so support 9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9409 archive_expsym_cmds='' 9410 ;; 9411 m68k) 9412 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)' 9413 hardcode_libdir_flag_spec='-L$libdir' 9414 hardcode_minus_L=yes 9415 ;; 9416 esac 9417 ;; 9418 9419 bsdi[45]*) 9420 export_dynamic_flag_spec=-rdynamic 9421 ;; 9422 9423 cygwin* | mingw* | pw32* | cegcc*) 9424 # When not using gcc, we currently assume that we are using 9425 # Microsoft Visual C++. 9426 # hardcode_libdir_flag_spec is actually meaningless, as there is 9427 # no search path for DLLs. 9428 hardcode_libdir_flag_spec=' ' 9429 allow_undefined_flag=unsupported 9430 # Tell ltmain to make .lib files, not .a files. 9431 libext=lib 9432 # Tell ltmain to make .dll files, not .so files. 9433 shrext_cmds=".dll" 9434 # FIXME: Setting linknames here is a bad hack. 9435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9436 # The linker will automatically build a .lib file if we build a DLL. 9437 old_archive_from_new_cmds='true' 9438 # FIXME: Should let the user specify the lib program. 9439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9440 fix_srcfile_path='`cygpath -w "$srcfile"`' 9441 enable_shared_with_static_runtimes=yes 9442 ;; 9443 9444 darwin* | rhapsody*) 9445 9446 9447 archive_cmds_need_lc=no 9448 hardcode_direct=no 9449 hardcode_automatic=yes 9450 hardcode_shlibpath_var=unsupported 9451 whole_archive_flag_spec='' 9452 link_all_deplibs=yes 9453 allow_undefined_flag="$_lt_dar_allow_undefined" 9454 case $cc_basename in 9455 ifort*) _lt_dar_can_shared=yes ;; 9456 *) _lt_dar_can_shared=$GCC ;; 9457 esac 9458 if test "$_lt_dar_can_shared" = "yes"; then 9459 output_verbose_link_cmd=echo 9460 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9461 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9462 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}" 9463 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}" 9464 9465 else 9466 ld_shlibs=no 9467 fi 9468 9469 ;; 9470 9471 dgux*) 9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9473 hardcode_libdir_flag_spec='-L$libdir' 9474 hardcode_shlibpath_var=no 9475 ;; 9476 9477 freebsd1*) 9478 ld_shlibs=no 9479 ;; 9480 9481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9482 # support. Future versions do this automatically, but an explicit c++rt0.o 9483 # does not break anything, and helps significantly (at the cost of a little 9484 # extra space). 9485 freebsd2.2*) 9486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9487 hardcode_libdir_flag_spec='-R$libdir' 9488 hardcode_direct=yes 9489 hardcode_shlibpath_var=no 9490 ;; 9491 9492 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9493 freebsd2*) 9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9495 hardcode_direct=yes 9496 hardcode_minus_L=yes 9497 hardcode_shlibpath_var=no 9498 ;; 9499 9500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9501 freebsd* | dragonfly*) 9502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9503 hardcode_libdir_flag_spec='-R$libdir' 9504 hardcode_direct=yes 9505 hardcode_shlibpath_var=no 9506 ;; 9507 9508 hpux9*) 9509 if test "$GCC" = yes; then 9510 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' 9511 else 9512 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' 9513 fi 9514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9515 hardcode_libdir_separator=: 9516 hardcode_direct=yes 9517 9518 # hardcode_minus_L: Not really in the search PATH, 9519 # but as the default location of the library. 9520 hardcode_minus_L=yes 9521 export_dynamic_flag_spec='${wl}-E' 9522 ;; 9523 9524 hpux10*) 9525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9527 else 9528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9529 fi 9530 if test "$with_gnu_ld" = no; then 9531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9532 hardcode_libdir_flag_spec_ld='+b $libdir' 9533 hardcode_libdir_separator=: 9534 hardcode_direct=yes 9535 hardcode_direct_absolute=yes 9536 export_dynamic_flag_spec='${wl}-E' 9537 # hardcode_minus_L: Not really in the search PATH, 9538 # but as the default location of the library. 9539 hardcode_minus_L=yes 9540 fi 9541 ;; 9542 9543 hpux11*) 9544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9545 case $host_cpu in 9546 hppa*64*) 9547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9548 ;; 9549 ia64*) 9550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9551 ;; 9552 *) 9553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9554 ;; 9555 esac 9556 else 9557 case $host_cpu in 9558 hppa*64*) 9559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9560 ;; 9561 ia64*) 9562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9563 ;; 9564 *) 9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9566 ;; 9567 esac 9568 fi 9569 if test "$with_gnu_ld" = no; then 9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9571 hardcode_libdir_separator=: 9572 9573 case $host_cpu in 9574 hppa*64*|ia64*) 9575 hardcode_direct=no 9576 hardcode_shlibpath_var=no 9577 ;; 9578 *) 9579 hardcode_direct=yes 9580 hardcode_direct_absolute=yes 9581 export_dynamic_flag_spec='${wl}-E' 9582 9583 # hardcode_minus_L: Not really in the search PATH, 9584 # but as the default location of the library. 9585 hardcode_minus_L=yes 9586 ;; 9587 esac 9588 fi 9589 ;; 9590 9591 irix5* | irix6* | nonstopux*) 9592 if test "$GCC" = yes; then 9593 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' 9594 # Try to use the -exported_symbol ld option, if it does not 9595 # work, assume that -exports_file does not work either and 9596 # implicitly export all symbols. 9597 save_LDFLAGS="$LDFLAGS" 9598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9599 cat >conftest.$ac_ext <<_ACEOF 9600int foo(void) {} 9601_ACEOF 9602rm -f conftest.$ac_objext conftest$ac_exeext 9603if { (ac_try="$ac_link" 9604case "(($ac_try" in 9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9606 *) ac_try_echo=$ac_try;; 9607esac 9608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9609$as_echo "$ac_try_echo") >&5 9610 (eval "$ac_link") 2>conftest.er1 9611 ac_status=$? 9612 grep -v '^ *+' conftest.er1 >conftest.err 9613 rm -f conftest.er1 9614 cat conftest.err >&5 9615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); } && { 9617 test -z "$ac_c_werror_flag" || 9618 test ! -s conftest.err 9619 } && test -s conftest$ac_exeext && { 9620 test "$cross_compiling" = yes || 9621 $as_test_x conftest$ac_exeext 9622 }; then 9623 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' 9624 9625else 9626 $as_echo "$as_me: failed program was:" >&5 9627sed 's/^/| /' conftest.$ac_ext >&5 9628 9629 9630fi 9631 9632rm -rf conftest.dSYM 9633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9634 conftest$ac_exeext conftest.$ac_ext 9635 LDFLAGS="$save_LDFLAGS" 9636 else 9637 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' 9638 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' 9639 fi 9640 archive_cmds_need_lc='no' 9641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9642 hardcode_libdir_separator=: 9643 inherit_rpath=yes 9644 link_all_deplibs=yes 9645 ;; 9646 9647 netbsd*) 9648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9650 else 9651 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9652 fi 9653 hardcode_libdir_flag_spec='-R$libdir' 9654 hardcode_direct=yes 9655 hardcode_shlibpath_var=no 9656 ;; 9657 9658 newsos6) 9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9660 hardcode_direct=yes 9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9662 hardcode_libdir_separator=: 9663 hardcode_shlibpath_var=no 9664 ;; 9665 9666 *nto* | *qnx*) 9667 ;; 9668 9669 openbsd*) 9670 if test -f /usr/libexec/ld.so; then 9671 hardcode_direct=yes 9672 hardcode_shlibpath_var=no 9673 hardcode_direct_absolute=yes 9674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9676 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9678 export_dynamic_flag_spec='${wl}-E' 9679 else 9680 case $host_os in 9681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9683 hardcode_libdir_flag_spec='-R$libdir' 9684 ;; 9685 *) 9686 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9688 ;; 9689 esac 9690 fi 9691 else 9692 ld_shlibs=no 9693 fi 9694 ;; 9695 9696 os2*) 9697 hardcode_libdir_flag_spec='-L$libdir' 9698 hardcode_minus_L=yes 9699 allow_undefined_flag=unsupported 9700 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' 9701 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9702 ;; 9703 9704 osf3*) 9705 if test "$GCC" = yes; then 9706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9707 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' 9708 else 9709 allow_undefined_flag=' -expect_unresolved \*' 9710 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' 9711 fi 9712 archive_cmds_need_lc='no' 9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9714 hardcode_libdir_separator=: 9715 ;; 9716 9717 osf4* | osf5*) # as osf3* with the addition of -msym flag 9718 if test "$GCC" = yes; then 9719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9720 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' 9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9722 else 9723 allow_undefined_flag=' -expect_unresolved \*' 9724 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' 9725 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~ 9726 $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' 9727 9728 # Both c and cxx compiler support -rpath directly 9729 hardcode_libdir_flag_spec='-rpath $libdir' 9730 fi 9731 archive_cmds_need_lc='no' 9732 hardcode_libdir_separator=: 9733 ;; 9734 9735 solaris*) 9736 no_undefined_flag=' -z defs' 9737 if test "$GCC" = yes; then 9738 wlarc='${wl}' 9739 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9741 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9742 else 9743 case `$CC -V 2>&1` in 9744 *"Compilers 5.0"*) 9745 wlarc='' 9746 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9749 ;; 9750 *) 9751 wlarc='${wl}' 9752 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9754 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9755 ;; 9756 esac 9757 fi 9758 hardcode_libdir_flag_spec='-R$libdir' 9759 hardcode_shlibpath_var=no 9760 case $host_os in 9761 solaris2.[0-5] | solaris2.[0-5].*) ;; 9762 *) 9763 # The compiler driver will combine and reorder linker options, 9764 # but understands `-z linker_flag'. GCC discards it without `$wl', 9765 # but is careful enough not to reorder. 9766 # Supported since Solaris 2.6 (maybe 2.5.1?) 9767 if test "$GCC" = yes; then 9768 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9769 else 9770 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9771 fi 9772 ;; 9773 esac 9774 link_all_deplibs=yes 9775 ;; 9776 9777 sunos4*) 9778 if test "x$host_vendor" = xsequent; then 9779 # Use $CC to link under sequent, because it throws in some extra .o 9780 # files that make .init and .fini sections work. 9781 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9782 else 9783 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9784 fi 9785 hardcode_libdir_flag_spec='-L$libdir' 9786 hardcode_direct=yes 9787 hardcode_minus_L=yes 9788 hardcode_shlibpath_var=no 9789 ;; 9790 9791 sysv4) 9792 case $host_vendor in 9793 sni) 9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9795 hardcode_direct=yes # is this really true??? 9796 ;; 9797 siemens) 9798 ## LD is ld it makes a PLAMLIB 9799 ## CC just makes a GrossModule. 9800 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9801 reload_cmds='$CC -r -o $output$reload_objs' 9802 hardcode_direct=no 9803 ;; 9804 motorola) 9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9806 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9807 ;; 9808 esac 9809 runpath_var='LD_RUN_PATH' 9810 hardcode_shlibpath_var=no 9811 ;; 9812 9813 sysv4.3*) 9814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9815 hardcode_shlibpath_var=no 9816 export_dynamic_flag_spec='-Bexport' 9817 ;; 9818 9819 sysv4*MP*) 9820 if test -d /usr/nec; then 9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9822 hardcode_shlibpath_var=no 9823 runpath_var=LD_RUN_PATH 9824 hardcode_runpath_var=yes 9825 ld_shlibs=yes 9826 fi 9827 ;; 9828 9829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9830 no_undefined_flag='${wl}-z,text' 9831 archive_cmds_need_lc=no 9832 hardcode_shlibpath_var=no 9833 runpath_var='LD_RUN_PATH' 9834 9835 if test "$GCC" = yes; then 9836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9838 else 9839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 fi 9842 ;; 9843 9844 sysv5* | sco3.2v5* | sco5v6*) 9845 # Note: We can NOT use -z defs as we might desire, because we do not 9846 # link with -lc, and that would cause any symbols used from libc to 9847 # always be unresolved, which means just about no library would 9848 # ever link correctly. If we're not using GNU ld we use -z text 9849 # though, which does catch some bad symbols but isn't as heavy-handed 9850 # as -z defs. 9851 no_undefined_flag='${wl}-z,text' 9852 allow_undefined_flag='${wl}-z,nodefs' 9853 archive_cmds_need_lc=no 9854 hardcode_shlibpath_var=no 9855 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9856 hardcode_libdir_separator=':' 9857 link_all_deplibs=yes 9858 export_dynamic_flag_spec='${wl}-Bexport' 9859 runpath_var='LD_RUN_PATH' 9860 9861 if test "$GCC" = yes; then 9862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9864 else 9865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9867 fi 9868 ;; 9869 9870 uts4*) 9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9872 hardcode_libdir_flag_spec='-L$libdir' 9873 hardcode_shlibpath_var=no 9874 ;; 9875 9876 *) 9877 ld_shlibs=no 9878 ;; 9879 esac 9880 9881 if test x$host_vendor = xsni; then 9882 case $host in 9883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9884 export_dynamic_flag_spec='${wl}-Blargedynsym' 9885 ;; 9886 esac 9887 fi 9888 fi 9889 9890{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9891$as_echo "$ld_shlibs" >&6; } 9892test "$ld_shlibs" = no && can_build_shared=no 9893 9894with_gnu_ld=$with_gnu_ld 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910# 9911# Do we need to explicitly link libc? 9912# 9913case "x$archive_cmds_need_lc" in 9914x|xyes) 9915 # Assume -lc should be added 9916 archive_cmds_need_lc=yes 9917 9918 if test "$enable_shared" = yes && test "$GCC" = yes; then 9919 case $archive_cmds in 9920 *'~'*) 9921 # FIXME: we may have to deal with multi-command sequences. 9922 ;; 9923 '$CC '*) 9924 # Test whether the compiler implicitly links with -lc since on some 9925 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9926 # to ld, don't add -lc before -lgcc. 9927 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9928$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9929 $RM conftest* 9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9931 9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9933 (eval $ac_compile) 2>&5 9934 ac_status=$? 9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9936 (exit $ac_status); } 2>conftest.err; then 9937 soname=conftest 9938 lib=conftest 9939 libobjs=conftest.$ac_objext 9940 deplibs= 9941 wl=$lt_prog_compiler_wl 9942 pic_flag=$lt_prog_compiler_pic 9943 compiler_flags=-v 9944 linker_flags=-v 9945 verstring= 9946 output_objdir=. 9947 libname=conftest 9948 lt_save_allow_undefined_flag=$allow_undefined_flag 9949 allow_undefined_flag= 9950 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9951 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9952 ac_status=$? 9953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9954 (exit $ac_status); } 9955 then 9956 archive_cmds_need_lc=no 9957 else 9958 archive_cmds_need_lc=yes 9959 fi 9960 allow_undefined_flag=$lt_save_allow_undefined_flag 9961 else 9962 cat conftest.err 1>&5 9963 fi 9964 $RM conftest* 9965 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9966$as_echo "$archive_cmds_need_lc" >&6; } 9967 ;; 9968 esac 9969 fi 9970 ;; 9971esac 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10130$as_echo_n "checking dynamic linker characteristics... " >&6; } 10131 10132if test "$GCC" = yes; then 10133 case $host_os in 10134 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10135 *) lt_awk_arg="/^libraries:/" ;; 10136 esac 10137 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10138 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10139 # if the path contains ";" then we assume it to be the separator 10140 # otherwise default to the standard path separator (i.e. ":") - it is 10141 # assumed that no part of a normal pathname contains ";" but that should 10142 # okay in the real world where ";" in dirpaths is itself problematic. 10143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10144 else 10145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10146 fi 10147 # Ok, now we have the path, separated by spaces, we can step through it 10148 # and add multilib dir if necessary. 10149 lt_tmp_lt_search_path_spec= 10150 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10151 for lt_sys_path in $lt_search_path_spec; do 10152 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10154 else 10155 test -d "$lt_sys_path" && \ 10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10157 fi 10158 done 10159 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10160BEGIN {RS=" "; FS="/|\n";} { 10161 lt_foo=""; 10162 lt_count=0; 10163 for (lt_i = NF; lt_i > 0; lt_i--) { 10164 if ($lt_i != "" && $lt_i != ".") { 10165 if ($lt_i == "..") { 10166 lt_count++; 10167 } else { 10168 if (lt_count == 0) { 10169 lt_foo="/" $lt_i lt_foo; 10170 } else { 10171 lt_count--; 10172 } 10173 } 10174 } 10175 } 10176 if (lt_foo != "") { lt_freq[lt_foo]++; } 10177 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10178}'` 10179 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10180else 10181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10182fi 10183library_names_spec= 10184libname_spec='lib$name' 10185soname_spec= 10186shrext_cmds=".so" 10187postinstall_cmds= 10188postuninstall_cmds= 10189finish_cmds= 10190finish_eval= 10191shlibpath_var= 10192shlibpath_overrides_runpath=unknown 10193version_type=none 10194dynamic_linker="$host_os ld.so" 10195sys_lib_dlsearch_path_spec="/lib /usr/lib" 10196need_lib_prefix=unknown 10197hardcode_into_libs=no 10198 10199# when you set need_version to no, make sure it does not cause -set_version 10200# flags to be left without arguments 10201need_version=unknown 10202 10203case $host_os in 10204aix3*) 10205 version_type=linux 10206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10207 shlibpath_var=LIBPATH 10208 10209 # AIX 3 has no versioning support, so we append a major version to the name. 10210 soname_spec='${libname}${release}${shared_ext}$major' 10211 ;; 10212 10213aix[4-9]*) 10214 version_type=linux 10215 need_lib_prefix=no 10216 need_version=no 10217 hardcode_into_libs=yes 10218 if test "$host_cpu" = ia64; then 10219 # AIX 5 supports IA64 10220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10221 shlibpath_var=LD_LIBRARY_PATH 10222 else 10223 # With GCC up to 2.95.x, collect2 would create an import file 10224 # for dependence libraries. The import file would start with 10225 # the line `#! .'. This would cause the generated library to 10226 # depend on `.', always an invalid library. This was fixed in 10227 # development snapshots of GCC prior to 3.0. 10228 case $host_os in 10229 aix4 | aix4.[01] | aix4.[01].*) 10230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10231 echo ' yes ' 10232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10233 : 10234 else 10235 can_build_shared=no 10236 fi 10237 ;; 10238 esac 10239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10240 # soname into executable. Probably we can add versioning support to 10241 # collect2, so additional links can be useful in future. 10242 if test "$aix_use_runtimelinking" = yes; then 10243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10244 # instead of lib<name>.a to let people know that these are not 10245 # typical AIX shared libraries. 10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10247 else 10248 # We preserve .a as extension for shared libraries through AIX4.2 10249 # and later when we are not doing run time linking. 10250 library_names_spec='${libname}${release}.a $libname.a' 10251 soname_spec='${libname}${release}${shared_ext}$major' 10252 fi 10253 shlibpath_var=LIBPATH 10254 fi 10255 ;; 10256 10257amigaos*) 10258 case $host_cpu in 10259 powerpc) 10260 # Since July 2007 AmigaOS4 officially supports .so libraries. 10261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10263 ;; 10264 m68k) 10265 library_names_spec='$libname.ixlibrary $libname.a' 10266 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10267 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' 10268 ;; 10269 esac 10270 ;; 10271 10272beos*) 10273 library_names_spec='${libname}${shared_ext}' 10274 dynamic_linker="$host_os ld.so" 10275 shlibpath_var=LIBRARY_PATH 10276 ;; 10277 10278bsdi[45]*) 10279 version_type=linux 10280 need_version=no 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10282 soname_spec='${libname}${release}${shared_ext}$major' 10283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10284 shlibpath_var=LD_LIBRARY_PATH 10285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10287 # the default ld.so.conf also contains /usr/contrib/lib and 10288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10289 # libtool to hard-code these into programs 10290 ;; 10291 10292cygwin* | mingw* | pw32* | cegcc*) 10293 version_type=windows 10294 shrext_cmds=".dll" 10295 need_version=no 10296 need_lib_prefix=no 10297 10298 case $GCC,$host_os in 10299 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10300 library_names_spec='$libname.dll.a' 10301 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10302 postinstall_cmds='base_file=`basename \${file}`~ 10303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10304 dldir=$destdir/`dirname \$dlpath`~ 10305 test -d \$dldir || mkdir -p \$dldir~ 10306 $install_prog $dir/$dlname \$dldir/$dlname~ 10307 chmod a+x \$dldir/$dlname~ 10308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10310 fi' 10311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10312 dlpath=$dir/\$dldll~ 10313 $RM \$dlpath' 10314 shlibpath_overrides_runpath=yes 10315 10316 case $host_os in 10317 cygwin*) 10318 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10320 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10321 ;; 10322 mingw* | cegcc*) 10323 # MinGW DLLs use traditional 'lib' prefix 10324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10325 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10326 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10327 # It is most probably a Windows format PATH printed by 10328 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10329 # path with ; separators, and with drive letters. We can handle the 10330 # drive letters (cygwin fileutils understands them), so leave them, 10331 # especially as we might pass files found there to a mingw objdump, 10332 # which wouldn't understand a cygwinified path. Ahh. 10333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10334 else 10335 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10336 fi 10337 ;; 10338 pw32*) 10339 # pw32 DLLs use 'pw' prefix rather than 'lib' 10340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10341 ;; 10342 esac 10343 ;; 10344 10345 *) 10346 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10347 ;; 10348 esac 10349 dynamic_linker='Win32 ld.exe' 10350 # FIXME: first we should search . and the directory the executable is in 10351 shlibpath_var=PATH 10352 ;; 10353 10354darwin* | rhapsody*) 10355 dynamic_linker="$host_os dyld" 10356 version_type=darwin 10357 need_lib_prefix=no 10358 need_version=no 10359 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10360 soname_spec='${libname}${release}${major}$shared_ext' 10361 shlibpath_overrides_runpath=yes 10362 shlibpath_var=DYLD_LIBRARY_PATH 10363 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10364 10365 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10367 ;; 10368 10369dgux*) 10370 version_type=linux 10371 need_lib_prefix=no 10372 need_version=no 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10374 soname_spec='${libname}${release}${shared_ext}$major' 10375 shlibpath_var=LD_LIBRARY_PATH 10376 ;; 10377 10378freebsd1*) 10379 dynamic_linker=no 10380 ;; 10381 10382freebsd* | dragonfly*) 10383 # DragonFly does not have aout. When/if they implement a new 10384 # versioning mechanism, adjust this. 10385 if test -x /usr/bin/objformat; then 10386 objformat=`/usr/bin/objformat` 10387 else 10388 case $host_os in 10389 freebsd[123]*) objformat=aout ;; 10390 *) objformat=elf ;; 10391 esac 10392 fi 10393 version_type=freebsd-$objformat 10394 case $version_type in 10395 freebsd-elf*) 10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10397 need_version=no 10398 need_lib_prefix=no 10399 ;; 10400 freebsd-*) 10401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10402 need_version=yes 10403 ;; 10404 esac 10405 shlibpath_var=LD_LIBRARY_PATH 10406 case $host_os in 10407 freebsd2*) 10408 shlibpath_overrides_runpath=yes 10409 ;; 10410 freebsd3.[01]* | freebsdelf3.[01]*) 10411 shlibpath_overrides_runpath=yes 10412 hardcode_into_libs=yes 10413 ;; 10414 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10415 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10416 shlibpath_overrides_runpath=no 10417 hardcode_into_libs=yes 10418 ;; 10419 *) # from 4.6 on, and DragonFly 10420 shlibpath_overrides_runpath=yes 10421 hardcode_into_libs=yes 10422 ;; 10423 esac 10424 ;; 10425 10426gnu*) 10427 version_type=linux 10428 need_lib_prefix=no 10429 need_version=no 10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10431 soname_spec='${libname}${release}${shared_ext}$major' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 hardcode_into_libs=yes 10434 ;; 10435 10436hpux9* | hpux10* | hpux11*) 10437 # Give a soname corresponding to the major version so that dld.sl refuses to 10438 # link against other versions. 10439 version_type=sunos 10440 need_lib_prefix=no 10441 need_version=no 10442 case $host_cpu in 10443 ia64*) 10444 shrext_cmds='.so' 10445 hardcode_into_libs=yes 10446 dynamic_linker="$host_os dld.so" 10447 shlibpath_var=LD_LIBRARY_PATH 10448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10450 soname_spec='${libname}${release}${shared_ext}$major' 10451 if test "X$HPUX_IA64_MODE" = X32; then 10452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10453 else 10454 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10455 fi 10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10457 ;; 10458 hppa*64*) 10459 shrext_cmds='.sl' 10460 hardcode_into_libs=yes 10461 dynamic_linker="$host_os dld.sl" 10462 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10465 soname_spec='${libname}${release}${shared_ext}$major' 10466 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10468 ;; 10469 *) 10470 shrext_cmds='.sl' 10471 dynamic_linker="$host_os dld.sl" 10472 shlibpath_var=SHLIB_PATH 10473 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10475 soname_spec='${libname}${release}${shared_ext}$major' 10476 ;; 10477 esac 10478 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10479 postinstall_cmds='chmod 555 $lib' 10480 ;; 10481 10482interix[3-9]*) 10483 version_type=linux 10484 need_lib_prefix=no 10485 need_version=no 10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10487 soname_spec='${libname}${release}${shared_ext}$major' 10488 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10489 shlibpath_var=LD_LIBRARY_PATH 10490 shlibpath_overrides_runpath=no 10491 hardcode_into_libs=yes 10492 ;; 10493 10494irix5* | irix6* | nonstopux*) 10495 case $host_os in 10496 nonstopux*) version_type=nonstopux ;; 10497 *) 10498 if test "$lt_cv_prog_gnu_ld" = yes; then 10499 version_type=linux 10500 else 10501 version_type=irix 10502 fi ;; 10503 esac 10504 need_lib_prefix=no 10505 need_version=no 10506 soname_spec='${libname}${release}${shared_ext}$major' 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10508 case $host_os in 10509 irix5* | nonstopux*) 10510 libsuff= shlibsuff= 10511 ;; 10512 *) 10513 case $LD in # libtool.m4 will add one of these switches to LD 10514 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10515 libsuff= shlibsuff= libmagic=32-bit;; 10516 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10517 libsuff=32 shlibsuff=N32 libmagic=N32;; 10518 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10519 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10520 *) libsuff= shlibsuff= libmagic=never-match;; 10521 esac 10522 ;; 10523 esac 10524 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10525 shlibpath_overrides_runpath=no 10526 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10527 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10528 hardcode_into_libs=yes 10529 ;; 10530 10531# No shared lib support for Linux oldld, aout, or coff. 10532linux*oldld* | linux*aout* | linux*coff*) 10533 dynamic_linker=no 10534 ;; 10535 10536# This must be Linux ELF. 10537linux* | k*bsd*-gnu) 10538 version_type=linux 10539 need_lib_prefix=no 10540 need_version=no 10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10542 soname_spec='${libname}${release}${shared_ext}$major' 10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10544 shlibpath_var=LD_LIBRARY_PATH 10545 shlibpath_overrides_runpath=no 10546 # Some binutils ld are patched to set DT_RUNPATH 10547 save_LDFLAGS=$LDFLAGS 10548 save_libdir=$libdir 10549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10551 cat >conftest.$ac_ext <<_ACEOF 10552/* confdefs.h. */ 10553_ACEOF 10554cat confdefs.h >>conftest.$ac_ext 10555cat >>conftest.$ac_ext <<_ACEOF 10556/* end confdefs.h. */ 10557 10558int 10559main () 10560{ 10561 10562 ; 10563 return 0; 10564} 10565_ACEOF 10566rm -f conftest.$ac_objext conftest$ac_exeext 10567if { (ac_try="$ac_link" 10568case "(($ac_try" in 10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10570 *) ac_try_echo=$ac_try;; 10571esac 10572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10573$as_echo "$ac_try_echo") >&5 10574 (eval "$ac_link") 2>conftest.er1 10575 ac_status=$? 10576 grep -v '^ *+' conftest.er1 >conftest.err 10577 rm -f conftest.er1 10578 cat conftest.err >&5 10579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10580 (exit $ac_status); } && { 10581 test -z "$ac_c_werror_flag" || 10582 test ! -s conftest.err 10583 } && test -s conftest$ac_exeext && { 10584 test "$cross_compiling" = yes || 10585 $as_test_x conftest$ac_exeext 10586 }; then 10587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10588 shlibpath_overrides_runpath=yes 10589fi 10590 10591else 10592 $as_echo "$as_me: failed program was:" >&5 10593sed 's/^/| /' conftest.$ac_ext >&5 10594 10595 10596fi 10597 10598rm -rf conftest.dSYM 10599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10600 conftest$ac_exeext conftest.$ac_ext 10601 LDFLAGS=$save_LDFLAGS 10602 libdir=$save_libdir 10603 10604 # This implies no fast_install, which is unacceptable. 10605 # Some rework will be needed to allow for fast_install 10606 # before this can be enabled. 10607 hardcode_into_libs=yes 10608 10609 # Add ABI-specific directories to the system library path. 10610 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10611 10612 # Append ld.so.conf contents to the search path 10613 if test -f /etc/ld.so.conf; then 10614 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' ' '` 10615 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10616 fi 10617 10618 # We used to test for /lib/ld.so.1 and disable shared libraries on 10619 # powerpc, because MkLinux only supported shared libraries with the 10620 # GNU dynamic linker. Since this was broken with cross compilers, 10621 # most powerpc-linux boxes support dynamic linking these days and 10622 # people can always --disable-shared, the test was removed, and we 10623 # assume the GNU/Linux dynamic linker is in use. 10624 dynamic_linker='GNU/Linux ld.so' 10625 ;; 10626 10627netbsd*) 10628 version_type=sunos 10629 need_lib_prefix=no 10630 need_version=no 10631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10634 dynamic_linker='NetBSD (a.out) ld.so' 10635 else 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10637 soname_spec='${libname}${release}${shared_ext}$major' 10638 dynamic_linker='NetBSD ld.elf_so' 10639 fi 10640 shlibpath_var=LD_LIBRARY_PATH 10641 shlibpath_overrides_runpath=yes 10642 hardcode_into_libs=yes 10643 ;; 10644 10645newsos6) 10646 version_type=linux 10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10648 shlibpath_var=LD_LIBRARY_PATH 10649 shlibpath_overrides_runpath=yes 10650 ;; 10651 10652*nto* | *qnx*) 10653 version_type=qnx 10654 need_lib_prefix=no 10655 need_version=no 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10657 soname_spec='${libname}${release}${shared_ext}$major' 10658 shlibpath_var=LD_LIBRARY_PATH 10659 shlibpath_overrides_runpath=no 10660 hardcode_into_libs=yes 10661 dynamic_linker='ldqnx.so' 10662 ;; 10663 10664openbsd*) 10665 version_type=sunos 10666 sys_lib_dlsearch_path_spec="/usr/lib" 10667 need_lib_prefix=no 10668 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10669 case $host_os in 10670 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10671 *) need_version=no ;; 10672 esac 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10675 shlibpath_var=LD_LIBRARY_PATH 10676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10677 case $host_os in 10678 openbsd2.[89] | openbsd2.[89].*) 10679 shlibpath_overrides_runpath=no 10680 ;; 10681 *) 10682 shlibpath_overrides_runpath=yes 10683 ;; 10684 esac 10685 else 10686 shlibpath_overrides_runpath=yes 10687 fi 10688 ;; 10689 10690os2*) 10691 libname_spec='$name' 10692 shrext_cmds=".dll" 10693 need_lib_prefix=no 10694 library_names_spec='$libname${shared_ext} $libname.a' 10695 dynamic_linker='OS/2 ld.exe' 10696 shlibpath_var=LIBPATH 10697 ;; 10698 10699osf3* | osf4* | osf5*) 10700 version_type=osf 10701 need_lib_prefix=no 10702 need_version=no 10703 soname_spec='${libname}${release}${shared_ext}$major' 10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10705 shlibpath_var=LD_LIBRARY_PATH 10706 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10707 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10708 ;; 10709 10710rdos*) 10711 dynamic_linker=no 10712 ;; 10713 10714solaris*) 10715 version_type=linux 10716 need_lib_prefix=no 10717 need_version=no 10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10719 soname_spec='${libname}${release}${shared_ext}$major' 10720 shlibpath_var=LD_LIBRARY_PATH 10721 shlibpath_overrides_runpath=yes 10722 hardcode_into_libs=yes 10723 # ldd complains unless libraries are executable 10724 postinstall_cmds='chmod +x $lib' 10725 ;; 10726 10727sunos4*) 10728 version_type=sunos 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10730 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10731 shlibpath_var=LD_LIBRARY_PATH 10732 shlibpath_overrides_runpath=yes 10733 if test "$with_gnu_ld" = yes; then 10734 need_lib_prefix=no 10735 fi 10736 need_version=yes 10737 ;; 10738 10739sysv4 | sysv4.3*) 10740 version_type=linux 10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10742 soname_spec='${libname}${release}${shared_ext}$major' 10743 shlibpath_var=LD_LIBRARY_PATH 10744 case $host_vendor in 10745 sni) 10746 shlibpath_overrides_runpath=no 10747 need_lib_prefix=no 10748 runpath_var=LD_RUN_PATH 10749 ;; 10750 siemens) 10751 need_lib_prefix=no 10752 ;; 10753 motorola) 10754 need_lib_prefix=no 10755 need_version=no 10756 shlibpath_overrides_runpath=no 10757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10758 ;; 10759 esac 10760 ;; 10761 10762sysv4*MP*) 10763 if test -d /usr/nec ;then 10764 version_type=linux 10765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10766 soname_spec='$libname${shared_ext}.$major' 10767 shlibpath_var=LD_LIBRARY_PATH 10768 fi 10769 ;; 10770 10771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10772 version_type=freebsd-elf 10773 need_lib_prefix=no 10774 need_version=no 10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10776 soname_spec='${libname}${release}${shared_ext}$major' 10777 shlibpath_var=LD_LIBRARY_PATH 10778 shlibpath_overrides_runpath=yes 10779 hardcode_into_libs=yes 10780 if test "$with_gnu_ld" = yes; then 10781 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10782 else 10783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10784 case $host_os in 10785 sco3.2v5*) 10786 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10787 ;; 10788 esac 10789 fi 10790 sys_lib_dlsearch_path_spec='/usr/lib' 10791 ;; 10792 10793tpf*) 10794 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10795 version_type=linux 10796 need_lib_prefix=no 10797 need_version=no 10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10799 shlibpath_var=LD_LIBRARY_PATH 10800 shlibpath_overrides_runpath=no 10801 hardcode_into_libs=yes 10802 ;; 10803 10804uts4*) 10805 version_type=linux 10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10807 soname_spec='${libname}${release}${shared_ext}$major' 10808 shlibpath_var=LD_LIBRARY_PATH 10809 ;; 10810 10811*) 10812 dynamic_linker=no 10813 ;; 10814esac 10815{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10816$as_echo "$dynamic_linker" >&6; } 10817test "$dynamic_linker" = no && can_build_shared=no 10818 10819variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10820if test "$GCC" = yes; then 10821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10822fi 10823 10824if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10825 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10826fi 10827if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10828 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10829fi 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10918$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10919hardcode_action= 10920if test -n "$hardcode_libdir_flag_spec" || 10921 test -n "$runpath_var" || 10922 test "X$hardcode_automatic" = "Xyes" ; then 10923 10924 # We can hardcode non-existent directories. 10925 if test "$hardcode_direct" != no && 10926 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10927 # have to relink, otherwise we might link with an installed library 10928 # when we should be linking with a yet-to-be-installed one 10929 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10930 test "$hardcode_minus_L" != no; then 10931 # Linking always hardcodes the temporary library directory. 10932 hardcode_action=relink 10933 else 10934 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10935 hardcode_action=immediate 10936 fi 10937else 10938 # We cannot hardcode anything, or else we can only hardcode existing 10939 # directories. 10940 hardcode_action=unsupported 10941fi 10942{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10943$as_echo "$hardcode_action" >&6; } 10944 10945if test "$hardcode_action" = relink || 10946 test "$inherit_rpath" = yes; then 10947 # Fast installation is not supported 10948 enable_fast_install=no 10949elif test "$shlibpath_overrides_runpath" = yes || 10950 test "$enable_shared" = no; then 10951 # Fast installation is not necessary 10952 enable_fast_install=needless 10953fi 10954 10955 10956 10957 10958 10959 10960 if test "x$enable_dlopen" != xyes; then 10961 enable_dlopen=unknown 10962 enable_dlopen_self=unknown 10963 enable_dlopen_self_static=unknown 10964else 10965 lt_cv_dlopen=no 10966 lt_cv_dlopen_libs= 10967 10968 case $host_os in 10969 beos*) 10970 lt_cv_dlopen="load_add_on" 10971 lt_cv_dlopen_libs= 10972 lt_cv_dlopen_self=yes 10973 ;; 10974 10975 mingw* | pw32* | cegcc*) 10976 lt_cv_dlopen="LoadLibrary" 10977 lt_cv_dlopen_libs= 10978 ;; 10979 10980 cygwin*) 10981 lt_cv_dlopen="dlopen" 10982 lt_cv_dlopen_libs= 10983 ;; 10984 10985 darwin*) 10986 # if libdl is installed we need to link against it 10987 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10988$as_echo_n "checking for dlopen in -ldl... " >&6; } 10989if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10990 $as_echo_n "(cached) " >&6 10991else 10992 ac_check_lib_save_LIBS=$LIBS 10993LIBS="-ldl $LIBS" 10994cat >conftest.$ac_ext <<_ACEOF 10995/* confdefs.h. */ 10996_ACEOF 10997cat confdefs.h >>conftest.$ac_ext 10998cat >>conftest.$ac_ext <<_ACEOF 10999/* end confdefs.h. */ 11000 11001/* Override any GCC internal prototype to avoid an error. 11002 Use char because int might match the return type of a GCC 11003 builtin and then its argument prototype would still apply. */ 11004#ifdef __cplusplus 11005extern "C" 11006#endif 11007char dlopen (); 11008int 11009main () 11010{ 11011return dlopen (); 11012 ; 11013 return 0; 11014} 11015_ACEOF 11016rm -f conftest.$ac_objext conftest$ac_exeext 11017if { (ac_try="$ac_link" 11018case "(($ac_try" in 11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11020 *) ac_try_echo=$ac_try;; 11021esac 11022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11023$as_echo "$ac_try_echo") >&5 11024 (eval "$ac_link") 2>conftest.er1 11025 ac_status=$? 11026 grep -v '^ *+' conftest.er1 >conftest.err 11027 rm -f conftest.er1 11028 cat conftest.err >&5 11029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11030 (exit $ac_status); } && { 11031 test -z "$ac_c_werror_flag" || 11032 test ! -s conftest.err 11033 } && test -s conftest$ac_exeext && { 11034 test "$cross_compiling" = yes || 11035 $as_test_x conftest$ac_exeext 11036 }; then 11037 ac_cv_lib_dl_dlopen=yes 11038else 11039 $as_echo "$as_me: failed program was:" >&5 11040sed 's/^/| /' conftest.$ac_ext >&5 11041 11042 ac_cv_lib_dl_dlopen=no 11043fi 11044 11045rm -rf conftest.dSYM 11046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11047 conftest$ac_exeext conftest.$ac_ext 11048LIBS=$ac_check_lib_save_LIBS 11049fi 11050{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11051$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11052if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11054else 11055 11056 lt_cv_dlopen="dyld" 11057 lt_cv_dlopen_libs= 11058 lt_cv_dlopen_self=yes 11059 11060fi 11061 11062 ;; 11063 11064 *) 11065 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11066$as_echo_n "checking for shl_load... " >&6; } 11067if test "${ac_cv_func_shl_load+set}" = set; then 11068 $as_echo_n "(cached) " >&6 11069else 11070 cat >conftest.$ac_ext <<_ACEOF 11071/* confdefs.h. */ 11072_ACEOF 11073cat confdefs.h >>conftest.$ac_ext 11074cat >>conftest.$ac_ext <<_ACEOF 11075/* end confdefs.h. */ 11076/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11077 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11078#define shl_load innocuous_shl_load 11079 11080/* System header to define __stub macros and hopefully few prototypes, 11081 which can conflict with char shl_load (); below. 11082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11083 <limits.h> exists even on freestanding compilers. */ 11084 11085#ifdef __STDC__ 11086# include <limits.h> 11087#else 11088# include <assert.h> 11089#endif 11090 11091#undef shl_load 11092 11093/* Override any GCC internal prototype to avoid an error. 11094 Use char because int might match the return type of a GCC 11095 builtin and then its argument prototype would still apply. */ 11096#ifdef __cplusplus 11097extern "C" 11098#endif 11099char shl_load (); 11100/* The GNU C library defines this for functions which it implements 11101 to always fail with ENOSYS. Some functions are actually named 11102 something starting with __ and the normal name is an alias. */ 11103#if defined __stub_shl_load || defined __stub___shl_load 11104choke me 11105#endif 11106 11107int 11108main () 11109{ 11110return shl_load (); 11111 ; 11112 return 0; 11113} 11114_ACEOF 11115rm -f conftest.$ac_objext conftest$ac_exeext 11116if { (ac_try="$ac_link" 11117case "(($ac_try" in 11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11119 *) ac_try_echo=$ac_try;; 11120esac 11121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11122$as_echo "$ac_try_echo") >&5 11123 (eval "$ac_link") 2>conftest.er1 11124 ac_status=$? 11125 grep -v '^ *+' conftest.er1 >conftest.err 11126 rm -f conftest.er1 11127 cat conftest.err >&5 11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && { 11130 test -z "$ac_c_werror_flag" || 11131 test ! -s conftest.err 11132 } && test -s conftest$ac_exeext && { 11133 test "$cross_compiling" = yes || 11134 $as_test_x conftest$ac_exeext 11135 }; then 11136 ac_cv_func_shl_load=yes 11137else 11138 $as_echo "$as_me: failed program was:" >&5 11139sed 's/^/| /' conftest.$ac_ext >&5 11140 11141 ac_cv_func_shl_load=no 11142fi 11143 11144rm -rf conftest.dSYM 11145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11146 conftest$ac_exeext conftest.$ac_ext 11147fi 11148{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11149$as_echo "$ac_cv_func_shl_load" >&6; } 11150if test "x$ac_cv_func_shl_load" = x""yes; then 11151 lt_cv_dlopen="shl_load" 11152else 11153 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11154$as_echo_n "checking for shl_load in -ldld... " >&6; } 11155if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11156 $as_echo_n "(cached) " >&6 11157else 11158 ac_check_lib_save_LIBS=$LIBS 11159LIBS="-ldld $LIBS" 11160cat >conftest.$ac_ext <<_ACEOF 11161/* confdefs.h. */ 11162_ACEOF 11163cat confdefs.h >>conftest.$ac_ext 11164cat >>conftest.$ac_ext <<_ACEOF 11165/* end confdefs.h. */ 11166 11167/* Override any GCC internal prototype to avoid an error. 11168 Use char because int might match the return type of a GCC 11169 builtin and then its argument prototype would still apply. */ 11170#ifdef __cplusplus 11171extern "C" 11172#endif 11173char shl_load (); 11174int 11175main () 11176{ 11177return shl_load (); 11178 ; 11179 return 0; 11180} 11181_ACEOF 11182rm -f conftest.$ac_objext conftest$ac_exeext 11183if { (ac_try="$ac_link" 11184case "(($ac_try" in 11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11186 *) ac_try_echo=$ac_try;; 11187esac 11188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11189$as_echo "$ac_try_echo") >&5 11190 (eval "$ac_link") 2>conftest.er1 11191 ac_status=$? 11192 grep -v '^ *+' conftest.er1 >conftest.err 11193 rm -f conftest.er1 11194 cat conftest.err >&5 11195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11196 (exit $ac_status); } && { 11197 test -z "$ac_c_werror_flag" || 11198 test ! -s conftest.err 11199 } && test -s conftest$ac_exeext && { 11200 test "$cross_compiling" = yes || 11201 $as_test_x conftest$ac_exeext 11202 }; then 11203 ac_cv_lib_dld_shl_load=yes 11204else 11205 $as_echo "$as_me: failed program was:" >&5 11206sed 's/^/| /' conftest.$ac_ext >&5 11207 11208 ac_cv_lib_dld_shl_load=no 11209fi 11210 11211rm -rf conftest.dSYM 11212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11213 conftest$ac_exeext conftest.$ac_ext 11214LIBS=$ac_check_lib_save_LIBS 11215fi 11216{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11217$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11218if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11220else 11221 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11222$as_echo_n "checking for dlopen... " >&6; } 11223if test "${ac_cv_func_dlopen+set}" = set; then 11224 $as_echo_n "(cached) " >&6 11225else 11226 cat >conftest.$ac_ext <<_ACEOF 11227/* confdefs.h. */ 11228_ACEOF 11229cat confdefs.h >>conftest.$ac_ext 11230cat >>conftest.$ac_ext <<_ACEOF 11231/* end confdefs.h. */ 11232/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11234#define dlopen innocuous_dlopen 11235 11236/* System header to define __stub macros and hopefully few prototypes, 11237 which can conflict with char dlopen (); below. 11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11239 <limits.h> exists even on freestanding compilers. */ 11240 11241#ifdef __STDC__ 11242# include <limits.h> 11243#else 11244# include <assert.h> 11245#endif 11246 11247#undef dlopen 11248 11249/* Override any GCC internal prototype to avoid an error. 11250 Use char because int might match the return type of a GCC 11251 builtin and then its argument prototype would still apply. */ 11252#ifdef __cplusplus 11253extern "C" 11254#endif 11255char dlopen (); 11256/* The GNU C library defines this for functions which it implements 11257 to always fail with ENOSYS. Some functions are actually named 11258 something starting with __ and the normal name is an alias. */ 11259#if defined __stub_dlopen || defined __stub___dlopen 11260choke me 11261#endif 11262 11263int 11264main () 11265{ 11266return dlopen (); 11267 ; 11268 return 0; 11269} 11270_ACEOF 11271rm -f conftest.$ac_objext conftest$ac_exeext 11272if { (ac_try="$ac_link" 11273case "(($ac_try" in 11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11275 *) ac_try_echo=$ac_try;; 11276esac 11277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11278$as_echo "$ac_try_echo") >&5 11279 (eval "$ac_link") 2>conftest.er1 11280 ac_status=$? 11281 grep -v '^ *+' conftest.er1 >conftest.err 11282 rm -f conftest.er1 11283 cat conftest.err >&5 11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11285 (exit $ac_status); } && { 11286 test -z "$ac_c_werror_flag" || 11287 test ! -s conftest.err 11288 } && test -s conftest$ac_exeext && { 11289 test "$cross_compiling" = yes || 11290 $as_test_x conftest$ac_exeext 11291 }; then 11292 ac_cv_func_dlopen=yes 11293else 11294 $as_echo "$as_me: failed program was:" >&5 11295sed 's/^/| /' conftest.$ac_ext >&5 11296 11297 ac_cv_func_dlopen=no 11298fi 11299 11300rm -rf conftest.dSYM 11301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11302 conftest$ac_exeext conftest.$ac_ext 11303fi 11304{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11305$as_echo "$ac_cv_func_dlopen" >&6; } 11306if test "x$ac_cv_func_dlopen" = x""yes; then 11307 lt_cv_dlopen="dlopen" 11308else 11309 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11310$as_echo_n "checking for dlopen in -ldl... " >&6; } 11311if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11312 $as_echo_n "(cached) " >&6 11313else 11314 ac_check_lib_save_LIBS=$LIBS 11315LIBS="-ldl $LIBS" 11316cat >conftest.$ac_ext <<_ACEOF 11317/* confdefs.h. */ 11318_ACEOF 11319cat confdefs.h >>conftest.$ac_ext 11320cat >>conftest.$ac_ext <<_ACEOF 11321/* end confdefs.h. */ 11322 11323/* Override any GCC internal prototype to avoid an error. 11324 Use char because int might match the return type of a GCC 11325 builtin and then its argument prototype would still apply. */ 11326#ifdef __cplusplus 11327extern "C" 11328#endif 11329char dlopen (); 11330int 11331main () 11332{ 11333return dlopen (); 11334 ; 11335 return 0; 11336} 11337_ACEOF 11338rm -f conftest.$ac_objext conftest$ac_exeext 11339if { (ac_try="$ac_link" 11340case "(($ac_try" in 11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11342 *) ac_try_echo=$ac_try;; 11343esac 11344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11345$as_echo "$ac_try_echo") >&5 11346 (eval "$ac_link") 2>conftest.er1 11347 ac_status=$? 11348 grep -v '^ *+' conftest.er1 >conftest.err 11349 rm -f conftest.er1 11350 cat conftest.err >&5 11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 (exit $ac_status); } && { 11353 test -z "$ac_c_werror_flag" || 11354 test ! -s conftest.err 11355 } && test -s conftest$ac_exeext && { 11356 test "$cross_compiling" = yes || 11357 $as_test_x conftest$ac_exeext 11358 }; then 11359 ac_cv_lib_dl_dlopen=yes 11360else 11361 $as_echo "$as_me: failed program was:" >&5 11362sed 's/^/| /' conftest.$ac_ext >&5 11363 11364 ac_cv_lib_dl_dlopen=no 11365fi 11366 11367rm -rf conftest.dSYM 11368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11369 conftest$ac_exeext conftest.$ac_ext 11370LIBS=$ac_check_lib_save_LIBS 11371fi 11372{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11373$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11374if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11376else 11377 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11378$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11379if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11380 $as_echo_n "(cached) " >&6 11381else 11382 ac_check_lib_save_LIBS=$LIBS 11383LIBS="-lsvld $LIBS" 11384cat >conftest.$ac_ext <<_ACEOF 11385/* confdefs.h. */ 11386_ACEOF 11387cat confdefs.h >>conftest.$ac_ext 11388cat >>conftest.$ac_ext <<_ACEOF 11389/* end confdefs.h. */ 11390 11391/* Override any GCC internal prototype to avoid an error. 11392 Use char because int might match the return type of a GCC 11393 builtin and then its argument prototype would still apply. */ 11394#ifdef __cplusplus 11395extern "C" 11396#endif 11397char dlopen (); 11398int 11399main () 11400{ 11401return dlopen (); 11402 ; 11403 return 0; 11404} 11405_ACEOF 11406rm -f conftest.$ac_objext conftest$ac_exeext 11407if { (ac_try="$ac_link" 11408case "(($ac_try" in 11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11410 *) ac_try_echo=$ac_try;; 11411esac 11412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11413$as_echo "$ac_try_echo") >&5 11414 (eval "$ac_link") 2>conftest.er1 11415 ac_status=$? 11416 grep -v '^ *+' conftest.er1 >conftest.err 11417 rm -f conftest.er1 11418 cat conftest.err >&5 11419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11420 (exit $ac_status); } && { 11421 test -z "$ac_c_werror_flag" || 11422 test ! -s conftest.err 11423 } && test -s conftest$ac_exeext && { 11424 test "$cross_compiling" = yes || 11425 $as_test_x conftest$ac_exeext 11426 }; then 11427 ac_cv_lib_svld_dlopen=yes 11428else 11429 $as_echo "$as_me: failed program was:" >&5 11430sed 's/^/| /' conftest.$ac_ext >&5 11431 11432 ac_cv_lib_svld_dlopen=no 11433fi 11434 11435rm -rf conftest.dSYM 11436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11437 conftest$ac_exeext conftest.$ac_ext 11438LIBS=$ac_check_lib_save_LIBS 11439fi 11440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11441$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11442if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11444else 11445 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11446$as_echo_n "checking for dld_link in -ldld... " >&6; } 11447if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11448 $as_echo_n "(cached) " >&6 11449else 11450 ac_check_lib_save_LIBS=$LIBS 11451LIBS="-ldld $LIBS" 11452cat >conftest.$ac_ext <<_ACEOF 11453/* confdefs.h. */ 11454_ACEOF 11455cat confdefs.h >>conftest.$ac_ext 11456cat >>conftest.$ac_ext <<_ACEOF 11457/* end confdefs.h. */ 11458 11459/* Override any GCC internal prototype to avoid an error. 11460 Use char because int might match the return type of a GCC 11461 builtin and then its argument prototype would still apply. */ 11462#ifdef __cplusplus 11463extern "C" 11464#endif 11465char dld_link (); 11466int 11467main () 11468{ 11469return dld_link (); 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474rm -f conftest.$ac_objext conftest$ac_exeext 11475if { (ac_try="$ac_link" 11476case "(($ac_try" in 11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11478 *) ac_try_echo=$ac_try;; 11479esac 11480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11481$as_echo "$ac_try_echo") >&5 11482 (eval "$ac_link") 2>conftest.er1 11483 ac_status=$? 11484 grep -v '^ *+' conftest.er1 >conftest.err 11485 rm -f conftest.er1 11486 cat conftest.err >&5 11487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11488 (exit $ac_status); } && { 11489 test -z "$ac_c_werror_flag" || 11490 test ! -s conftest.err 11491 } && test -s conftest$ac_exeext && { 11492 test "$cross_compiling" = yes || 11493 $as_test_x conftest$ac_exeext 11494 }; then 11495 ac_cv_lib_dld_dld_link=yes 11496else 11497 $as_echo "$as_me: failed program was:" >&5 11498sed 's/^/| /' conftest.$ac_ext >&5 11499 11500 ac_cv_lib_dld_dld_link=no 11501fi 11502 11503rm -rf conftest.dSYM 11504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11505 conftest$ac_exeext conftest.$ac_ext 11506LIBS=$ac_check_lib_save_LIBS 11507fi 11508{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11509$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11510if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11512fi 11513 11514 11515fi 11516 11517 11518fi 11519 11520 11521fi 11522 11523 11524fi 11525 11526 11527fi 11528 11529 ;; 11530 esac 11531 11532 if test "x$lt_cv_dlopen" != xno; then 11533 enable_dlopen=yes 11534 else 11535 enable_dlopen=no 11536 fi 11537 11538 case $lt_cv_dlopen in 11539 dlopen) 11540 save_CPPFLAGS="$CPPFLAGS" 11541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11542 11543 save_LDFLAGS="$LDFLAGS" 11544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11545 11546 save_LIBS="$LIBS" 11547 LIBS="$lt_cv_dlopen_libs $LIBS" 11548 11549 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11550$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11551if test "${lt_cv_dlopen_self+set}" = set; then 11552 $as_echo_n "(cached) " >&6 11553else 11554 if test "$cross_compiling" = yes; then : 11555 lt_cv_dlopen_self=cross 11556else 11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11558 lt_status=$lt_dlunknown 11559 cat > conftest.$ac_ext <<_LT_EOF 11560#line 11560 "configure" 11561#include "confdefs.h" 11562 11563#if HAVE_DLFCN_H 11564#include <dlfcn.h> 11565#endif 11566 11567#include <stdio.h> 11568 11569#ifdef RTLD_GLOBAL 11570# define LT_DLGLOBAL RTLD_GLOBAL 11571#else 11572# ifdef DL_GLOBAL 11573# define LT_DLGLOBAL DL_GLOBAL 11574# else 11575# define LT_DLGLOBAL 0 11576# endif 11577#endif 11578 11579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11580 find out it does not work in some platform. */ 11581#ifndef LT_DLLAZY_OR_NOW 11582# ifdef RTLD_LAZY 11583# define LT_DLLAZY_OR_NOW RTLD_LAZY 11584# else 11585# ifdef DL_LAZY 11586# define LT_DLLAZY_OR_NOW DL_LAZY 11587# else 11588# ifdef RTLD_NOW 11589# define LT_DLLAZY_OR_NOW RTLD_NOW 11590# else 11591# ifdef DL_NOW 11592# define LT_DLLAZY_OR_NOW DL_NOW 11593# else 11594# define LT_DLLAZY_OR_NOW 0 11595# endif 11596# endif 11597# endif 11598# endif 11599#endif 11600 11601void fnord() { int i=42;} 11602int main () 11603{ 11604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11605 int status = $lt_dlunknown; 11606 11607 if (self) 11608 { 11609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11611 /* dlclose (self); */ 11612 } 11613 else 11614 puts (dlerror ()); 11615 11616 return status; 11617} 11618_LT_EOF 11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11620 (eval $ac_link) 2>&5 11621 ac_status=$? 11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11624 (./conftest; exit; ) >&5 2>/dev/null 11625 lt_status=$? 11626 case x$lt_status in 11627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11630 esac 11631 else : 11632 # compilation failed 11633 lt_cv_dlopen_self=no 11634 fi 11635fi 11636rm -fr conftest* 11637 11638 11639fi 11640{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11641$as_echo "$lt_cv_dlopen_self" >&6; } 11642 11643 if test "x$lt_cv_dlopen_self" = xyes; then 11644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11645 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11646$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11647if test "${lt_cv_dlopen_self_static+set}" = set; then 11648 $as_echo_n "(cached) " >&6 11649else 11650 if test "$cross_compiling" = yes; then : 11651 lt_cv_dlopen_self_static=cross 11652else 11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11654 lt_status=$lt_dlunknown 11655 cat > conftest.$ac_ext <<_LT_EOF 11656#line 11656 "configure" 11657#include "confdefs.h" 11658 11659#if HAVE_DLFCN_H 11660#include <dlfcn.h> 11661#endif 11662 11663#include <stdio.h> 11664 11665#ifdef RTLD_GLOBAL 11666# define LT_DLGLOBAL RTLD_GLOBAL 11667#else 11668# ifdef DL_GLOBAL 11669# define LT_DLGLOBAL DL_GLOBAL 11670# else 11671# define LT_DLGLOBAL 0 11672# endif 11673#endif 11674 11675/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11676 find out it does not work in some platform. */ 11677#ifndef LT_DLLAZY_OR_NOW 11678# ifdef RTLD_LAZY 11679# define LT_DLLAZY_OR_NOW RTLD_LAZY 11680# else 11681# ifdef DL_LAZY 11682# define LT_DLLAZY_OR_NOW DL_LAZY 11683# else 11684# ifdef RTLD_NOW 11685# define LT_DLLAZY_OR_NOW RTLD_NOW 11686# else 11687# ifdef DL_NOW 11688# define LT_DLLAZY_OR_NOW DL_NOW 11689# else 11690# define LT_DLLAZY_OR_NOW 0 11691# endif 11692# endif 11693# endif 11694# endif 11695#endif 11696 11697void fnord() { int i=42;} 11698int main () 11699{ 11700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11701 int status = $lt_dlunknown; 11702 11703 if (self) 11704 { 11705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11706 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11707 /* dlclose (self); */ 11708 } 11709 else 11710 puts (dlerror ()); 11711 11712 return status; 11713} 11714_LT_EOF 11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11716 (eval $ac_link) 2>&5 11717 ac_status=$? 11718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11720 (./conftest; exit; ) >&5 2>/dev/null 11721 lt_status=$? 11722 case x$lt_status in 11723 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11724 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11725 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11726 esac 11727 else : 11728 # compilation failed 11729 lt_cv_dlopen_self_static=no 11730 fi 11731fi 11732rm -fr conftest* 11733 11734 11735fi 11736{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11737$as_echo "$lt_cv_dlopen_self_static" >&6; } 11738 fi 11739 11740 CPPFLAGS="$save_CPPFLAGS" 11741 LDFLAGS="$save_LDFLAGS" 11742 LIBS="$save_LIBS" 11743 ;; 11744 esac 11745 11746 case $lt_cv_dlopen_self in 11747 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11748 *) enable_dlopen_self=unknown ;; 11749 esac 11750 11751 case $lt_cv_dlopen_self_static in 11752 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11753 *) enable_dlopen_self_static=unknown ;; 11754 esac 11755fi 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773striplib= 11774old_striplib= 11775{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11776$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11777if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11778 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11779 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11780 { $as_echo "$as_me:$LINENO: result: yes" >&5 11781$as_echo "yes" >&6; } 11782else 11783# FIXME - insert some real tests, host_os isn't really good enough 11784 case $host_os in 11785 darwin*) 11786 if test -n "$STRIP" ; then 11787 striplib="$STRIP -x" 11788 old_striplib="$STRIP -S" 11789 { $as_echo "$as_me:$LINENO: result: yes" >&5 11790$as_echo "yes" >&6; } 11791 else 11792 { $as_echo "$as_me:$LINENO: result: no" >&5 11793$as_echo "no" >&6; } 11794 fi 11795 ;; 11796 *) 11797 { $as_echo "$as_me:$LINENO: result: no" >&5 11798$as_echo "no" >&6; } 11799 ;; 11800 esac 11801fi 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 # Report which library types will actually be built 11815 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11816$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11817 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11818$as_echo "$can_build_shared" >&6; } 11819 11820 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11821$as_echo_n "checking whether to build shared libraries... " >&6; } 11822 test "$can_build_shared" = "no" && enable_shared=no 11823 11824 # On AIX, shared libraries and static libraries use the same namespace, and 11825 # are all built from PIC. 11826 case $host_os in 11827 aix3*) 11828 test "$enable_shared" = yes && enable_static=no 11829 if test -n "$RANLIB"; then 11830 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11831 postinstall_cmds='$RANLIB $lib' 11832 fi 11833 ;; 11834 11835 aix[4-9]*) 11836 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11837 test "$enable_shared" = yes && enable_static=no 11838 fi 11839 ;; 11840 esac 11841 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11842$as_echo "$enable_shared" >&6; } 11843 11844 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11845$as_echo_n "checking whether to build static libraries... " >&6; } 11846 # Make sure either enable_shared or enable_static is yes. 11847 test "$enable_shared" = yes || enable_static=yes 11848 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11849$as_echo "$enable_static" >&6; } 11850 11851 11852 11853 11854fi 11855ac_ext=c 11856ac_cpp='$CPP $CPPFLAGS' 11857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11859ac_compiler_gnu=$ac_cv_c_compiler_gnu 11860 11861CC="$lt_save_CC" 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 ac_config_commands="$ac_config_commands libtool" 11876 11877 11878 11879 11880# Only expand once: 11881 11882 11883ac_ext=c 11884ac_cpp='$CPP $CPPFLAGS' 11885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11887ac_compiler_gnu=$ac_cv_c_compiler_gnu 11888if test -n "$ac_tool_prefix"; then 11889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11890set dummy ${ac_tool_prefix}gcc; ac_word=$2 11891{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11892$as_echo_n "checking for $ac_word... " >&6; } 11893if test "${ac_cv_prog_CC+set}" = set; then 11894 $as_echo_n "(cached) " >&6 11895else 11896 if test -n "$CC"; then 11897 ac_cv_prog_CC="$CC" # Let the user override the test. 11898else 11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11900for as_dir in $PATH 11901do 11902 IFS=$as_save_IFS 11903 test -z "$as_dir" && as_dir=. 11904 for ac_exec_ext in '' $ac_executable_extensions; do 11905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11906 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11908 break 2 11909 fi 11910done 11911done 11912IFS=$as_save_IFS 11913 11914fi 11915fi 11916CC=$ac_cv_prog_CC 11917if test -n "$CC"; then 11918 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11919$as_echo "$CC" >&6; } 11920else 11921 { $as_echo "$as_me:$LINENO: result: no" >&5 11922$as_echo "no" >&6; } 11923fi 11924 11925 11926fi 11927if test -z "$ac_cv_prog_CC"; then 11928 ac_ct_CC=$CC 11929 # Extract the first word of "gcc", so it can be a program name with args. 11930set dummy gcc; ac_word=$2 11931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11932$as_echo_n "checking for $ac_word... " >&6; } 11933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11934 $as_echo_n "(cached) " >&6 11935else 11936 if test -n "$ac_ct_CC"; then 11937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11938else 11939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11940for as_dir in $PATH 11941do 11942 IFS=$as_save_IFS 11943 test -z "$as_dir" && as_dir=. 11944 for ac_exec_ext in '' $ac_executable_extensions; do 11945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11946 ac_cv_prog_ac_ct_CC="gcc" 11947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11948 break 2 11949 fi 11950done 11951done 11952IFS=$as_save_IFS 11953 11954fi 11955fi 11956ac_ct_CC=$ac_cv_prog_ac_ct_CC 11957if test -n "$ac_ct_CC"; then 11958 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11959$as_echo "$ac_ct_CC" >&6; } 11960else 11961 { $as_echo "$as_me:$LINENO: result: no" >&5 11962$as_echo "no" >&6; } 11963fi 11964 11965 if test "x$ac_ct_CC" = x; then 11966 CC="" 11967 else 11968 case $cross_compiling:$ac_tool_warned in 11969yes:) 11970{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11972ac_tool_warned=yes ;; 11973esac 11974 CC=$ac_ct_CC 11975 fi 11976else 11977 CC="$ac_cv_prog_CC" 11978fi 11979 11980if test -z "$CC"; then 11981 if test -n "$ac_tool_prefix"; then 11982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11983set dummy ${ac_tool_prefix}cc; ac_word=$2 11984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11985$as_echo_n "checking for $ac_word... " >&6; } 11986if test "${ac_cv_prog_CC+set}" = set; then 11987 $as_echo_n "(cached) " >&6 11988else 11989 if test -n "$CC"; then 11990 ac_cv_prog_CC="$CC" # Let the user override the test. 11991else 11992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11993for as_dir in $PATH 11994do 11995 IFS=$as_save_IFS 11996 test -z "$as_dir" && as_dir=. 11997 for ac_exec_ext in '' $ac_executable_extensions; do 11998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11999 ac_cv_prog_CC="${ac_tool_prefix}cc" 12000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12001 break 2 12002 fi 12003done 12004done 12005IFS=$as_save_IFS 12006 12007fi 12008fi 12009CC=$ac_cv_prog_CC 12010if test -n "$CC"; then 12011 { $as_echo "$as_me:$LINENO: result: $CC" >&5 12012$as_echo "$CC" >&6; } 12013else 12014 { $as_echo "$as_me:$LINENO: result: no" >&5 12015$as_echo "no" >&6; } 12016fi 12017 12018 12019 fi 12020fi 12021if test -z "$CC"; then 12022 # Extract the first word of "cc", so it can be a program name with args. 12023set dummy cc; ac_word=$2 12024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12025$as_echo_n "checking for $ac_word... " >&6; } 12026if test "${ac_cv_prog_CC+set}" = set; then 12027 $as_echo_n "(cached) " >&6 12028else 12029 if test -n "$CC"; then 12030 ac_cv_prog_CC="$CC" # Let the user override the test. 12031else 12032 ac_prog_rejected=no 12033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12034for as_dir in $PATH 12035do 12036 IFS=$as_save_IFS 12037 test -z "$as_dir" && as_dir=. 12038 for ac_exec_ext in '' $ac_executable_extensions; do 12039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12041 ac_prog_rejected=yes 12042 continue 12043 fi 12044 ac_cv_prog_CC="cc" 12045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12046 break 2 12047 fi 12048done 12049done 12050IFS=$as_save_IFS 12051 12052if test $ac_prog_rejected = yes; then 12053 # We found a bogon in the path, so make sure we never use it. 12054 set dummy $ac_cv_prog_CC 12055 shift 12056 if test $# != 0; then 12057 # We chose a different compiler from the bogus one. 12058 # However, it has the same basename, so the bogon will be chosen 12059 # first if we set CC to just the basename; use the full file name. 12060 shift 12061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12062 fi 12063fi 12064fi 12065fi 12066CC=$ac_cv_prog_CC 12067if test -n "$CC"; then 12068 { $as_echo "$as_me:$LINENO: result: $CC" >&5 12069$as_echo "$CC" >&6; } 12070else 12071 { $as_echo "$as_me:$LINENO: result: no" >&5 12072$as_echo "no" >&6; } 12073fi 12074 12075 12076fi 12077if test -z "$CC"; then 12078 if test -n "$ac_tool_prefix"; then 12079 for ac_prog in cl.exe 12080 do 12081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12082set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12084$as_echo_n "checking for $ac_word... " >&6; } 12085if test "${ac_cv_prog_CC+set}" = set; then 12086 $as_echo_n "(cached) " >&6 12087else 12088 if test -n "$CC"; then 12089 ac_cv_prog_CC="$CC" # Let the user override the test. 12090else 12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12092for as_dir in $PATH 12093do 12094 IFS=$as_save_IFS 12095 test -z "$as_dir" && as_dir=. 12096 for ac_exec_ext in '' $ac_executable_extensions; do 12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12100 break 2 12101 fi 12102done 12103done 12104IFS=$as_save_IFS 12105 12106fi 12107fi 12108CC=$ac_cv_prog_CC 12109if test -n "$CC"; then 12110 { $as_echo "$as_me:$LINENO: result: $CC" >&5 12111$as_echo "$CC" >&6; } 12112else 12113 { $as_echo "$as_me:$LINENO: result: no" >&5 12114$as_echo "no" >&6; } 12115fi 12116 12117 12118 test -n "$CC" && break 12119 done 12120fi 12121if test -z "$CC"; then 12122 ac_ct_CC=$CC 12123 for ac_prog in cl.exe 12124do 12125 # Extract the first word of "$ac_prog", so it can be a program name with args. 12126set dummy $ac_prog; ac_word=$2 12127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12128$as_echo_n "checking for $ac_word... " >&6; } 12129if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 12130 $as_echo_n "(cached) " >&6 12131else 12132 if test -n "$ac_ct_CC"; then 12133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12134else 12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12136for as_dir in $PATH 12137do 12138 IFS=$as_save_IFS 12139 test -z "$as_dir" && as_dir=. 12140 for ac_exec_ext in '' $ac_executable_extensions; do 12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12142 ac_cv_prog_ac_ct_CC="$ac_prog" 12143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12144 break 2 12145 fi 12146done 12147done 12148IFS=$as_save_IFS 12149 12150fi 12151fi 12152ac_ct_CC=$ac_cv_prog_ac_ct_CC 12153if test -n "$ac_ct_CC"; then 12154 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 12155$as_echo "$ac_ct_CC" >&6; } 12156else 12157 { $as_echo "$as_me:$LINENO: result: no" >&5 12158$as_echo "no" >&6; } 12159fi 12160 12161 12162 test -n "$ac_ct_CC" && break 12163done 12164 12165 if test "x$ac_ct_CC" = x; then 12166 CC="" 12167 else 12168 case $cross_compiling:$ac_tool_warned in 12169yes:) 12170{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12172ac_tool_warned=yes ;; 12173esac 12174 CC=$ac_ct_CC 12175 fi 12176fi 12177 12178fi 12179 12180 12181test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12183{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 12184See \`config.log' for more details." >&5 12185$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 12186See \`config.log' for more details." >&2;} 12187 { (exit 1); exit 1; }; }; } 12188 12189# Provide some information about the compiler. 12190$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 12191set X $ac_compile 12192ac_compiler=$2 12193{ (ac_try="$ac_compiler --version >&5" 12194case "(($ac_try" in 12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12196 *) ac_try_echo=$ac_try;; 12197esac 12198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12199$as_echo "$ac_try_echo") >&5 12200 (eval "$ac_compiler --version >&5") 2>&5 12201 ac_status=$? 12202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12203 (exit $ac_status); } 12204{ (ac_try="$ac_compiler -v >&5" 12205case "(($ac_try" in 12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12207 *) ac_try_echo=$ac_try;; 12208esac 12209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12210$as_echo "$ac_try_echo") >&5 12211 (eval "$ac_compiler -v >&5") 2>&5 12212 ac_status=$? 12213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12214 (exit $ac_status); } 12215{ (ac_try="$ac_compiler -V >&5" 12216case "(($ac_try" in 12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12218 *) ac_try_echo=$ac_try;; 12219esac 12220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12221$as_echo "$ac_try_echo") >&5 12222 (eval "$ac_compiler -V >&5") 2>&5 12223 ac_status=$? 12224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12225 (exit $ac_status); } 12226 12227{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 12228$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12229if test "${ac_cv_c_compiler_gnu+set}" = set; then 12230 $as_echo_n "(cached) " >&6 12231else 12232 cat >conftest.$ac_ext <<_ACEOF 12233/* confdefs.h. */ 12234_ACEOF 12235cat confdefs.h >>conftest.$ac_ext 12236cat >>conftest.$ac_ext <<_ACEOF 12237/* end confdefs.h. */ 12238 12239int 12240main () 12241{ 12242#ifndef __GNUC__ 12243 choke me 12244#endif 12245 12246 ; 12247 return 0; 12248} 12249_ACEOF 12250rm -f conftest.$ac_objext 12251if { (ac_try="$ac_compile" 12252case "(($ac_try" in 12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12254 *) ac_try_echo=$ac_try;; 12255esac 12256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12257$as_echo "$ac_try_echo") >&5 12258 (eval "$ac_compile") 2>conftest.er1 12259 ac_status=$? 12260 grep -v '^ *+' conftest.er1 >conftest.err 12261 rm -f conftest.er1 12262 cat conftest.err >&5 12263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12264 (exit $ac_status); } && { 12265 test -z "$ac_c_werror_flag" || 12266 test ! -s conftest.err 12267 } && test -s conftest.$ac_objext; then 12268 ac_compiler_gnu=yes 12269else 12270 $as_echo "$as_me: failed program was:" >&5 12271sed 's/^/| /' conftest.$ac_ext >&5 12272 12273 ac_compiler_gnu=no 12274fi 12275 12276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12277ac_cv_c_compiler_gnu=$ac_compiler_gnu 12278 12279fi 12280{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 12281$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12282if test $ac_compiler_gnu = yes; then 12283 GCC=yes 12284else 12285 GCC= 12286fi 12287ac_test_CFLAGS=${CFLAGS+set} 12288ac_save_CFLAGS=$CFLAGS 12289{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 12290$as_echo_n "checking whether $CC accepts -g... " >&6; } 12291if test "${ac_cv_prog_cc_g+set}" = set; then 12292 $as_echo_n "(cached) " >&6 12293else 12294 ac_save_c_werror_flag=$ac_c_werror_flag 12295 ac_c_werror_flag=yes 12296 ac_cv_prog_cc_g=no 12297 CFLAGS="-g" 12298 cat >conftest.$ac_ext <<_ACEOF 12299/* confdefs.h. */ 12300_ACEOF 12301cat confdefs.h >>conftest.$ac_ext 12302cat >>conftest.$ac_ext <<_ACEOF 12303/* end confdefs.h. */ 12304 12305int 12306main () 12307{ 12308 12309 ; 12310 return 0; 12311} 12312_ACEOF 12313rm -f conftest.$ac_objext 12314if { (ac_try="$ac_compile" 12315case "(($ac_try" in 12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12317 *) ac_try_echo=$ac_try;; 12318esac 12319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12320$as_echo "$ac_try_echo") >&5 12321 (eval "$ac_compile") 2>conftest.er1 12322 ac_status=$? 12323 grep -v '^ *+' conftest.er1 >conftest.err 12324 rm -f conftest.er1 12325 cat conftest.err >&5 12326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12327 (exit $ac_status); } && { 12328 test -z "$ac_c_werror_flag" || 12329 test ! -s conftest.err 12330 } && test -s conftest.$ac_objext; then 12331 ac_cv_prog_cc_g=yes 12332else 12333 $as_echo "$as_me: failed program was:" >&5 12334sed 's/^/| /' conftest.$ac_ext >&5 12335 12336 CFLAGS="" 12337 cat >conftest.$ac_ext <<_ACEOF 12338/* confdefs.h. */ 12339_ACEOF 12340cat confdefs.h >>conftest.$ac_ext 12341cat >>conftest.$ac_ext <<_ACEOF 12342/* end confdefs.h. */ 12343 12344int 12345main () 12346{ 12347 12348 ; 12349 return 0; 12350} 12351_ACEOF 12352rm -f conftest.$ac_objext 12353if { (ac_try="$ac_compile" 12354case "(($ac_try" in 12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12356 *) ac_try_echo=$ac_try;; 12357esac 12358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12359$as_echo "$ac_try_echo") >&5 12360 (eval "$ac_compile") 2>conftest.er1 12361 ac_status=$? 12362 grep -v '^ *+' conftest.er1 >conftest.err 12363 rm -f conftest.er1 12364 cat conftest.err >&5 12365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12366 (exit $ac_status); } && { 12367 test -z "$ac_c_werror_flag" || 12368 test ! -s conftest.err 12369 } && test -s conftest.$ac_objext; then 12370 : 12371else 12372 $as_echo "$as_me: failed program was:" >&5 12373sed 's/^/| /' conftest.$ac_ext >&5 12374 12375 ac_c_werror_flag=$ac_save_c_werror_flag 12376 CFLAGS="-g" 12377 cat >conftest.$ac_ext <<_ACEOF 12378/* confdefs.h. */ 12379_ACEOF 12380cat confdefs.h >>conftest.$ac_ext 12381cat >>conftest.$ac_ext <<_ACEOF 12382/* end confdefs.h. */ 12383 12384int 12385main () 12386{ 12387 12388 ; 12389 return 0; 12390} 12391_ACEOF 12392rm -f conftest.$ac_objext 12393if { (ac_try="$ac_compile" 12394case "(($ac_try" in 12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12396 *) ac_try_echo=$ac_try;; 12397esac 12398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12399$as_echo "$ac_try_echo") >&5 12400 (eval "$ac_compile") 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } && { 12407 test -z "$ac_c_werror_flag" || 12408 test ! -s conftest.err 12409 } && test -s conftest.$ac_objext; then 12410 ac_cv_prog_cc_g=yes 12411else 12412 $as_echo "$as_me: failed program was:" >&5 12413sed 's/^/| /' conftest.$ac_ext >&5 12414 12415 12416fi 12417 12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12419fi 12420 12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12422fi 12423 12424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12425 ac_c_werror_flag=$ac_save_c_werror_flag 12426fi 12427{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 12428$as_echo "$ac_cv_prog_cc_g" >&6; } 12429if test "$ac_test_CFLAGS" = set; then 12430 CFLAGS=$ac_save_CFLAGS 12431elif test $ac_cv_prog_cc_g = yes; then 12432 if test "$GCC" = yes; then 12433 CFLAGS="-g -O2" 12434 else 12435 CFLAGS="-g" 12436 fi 12437else 12438 if test "$GCC" = yes; then 12439 CFLAGS="-O2" 12440 else 12441 CFLAGS= 12442 fi 12443fi 12444{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 12445$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12446if test "${ac_cv_prog_cc_c89+set}" = set; then 12447 $as_echo_n "(cached) " >&6 12448else 12449 ac_cv_prog_cc_c89=no 12450ac_save_CC=$CC 12451cat >conftest.$ac_ext <<_ACEOF 12452/* confdefs.h. */ 12453_ACEOF 12454cat confdefs.h >>conftest.$ac_ext 12455cat >>conftest.$ac_ext <<_ACEOF 12456/* end confdefs.h. */ 12457#include <stdarg.h> 12458#include <stdio.h> 12459#include <sys/types.h> 12460#include <sys/stat.h> 12461/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12462struct buf { int x; }; 12463FILE * (*rcsopen) (struct buf *, struct stat *, int); 12464static char *e (p, i) 12465 char **p; 12466 int i; 12467{ 12468 return p[i]; 12469} 12470static char *f (char * (*g) (char **, int), char **p, ...) 12471{ 12472 char *s; 12473 va_list v; 12474 va_start (v,p); 12475 s = g (p, va_arg (v,int)); 12476 va_end (v); 12477 return s; 12478} 12479 12480/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12481 function prototypes and stuff, but not '\xHH' hex character constants. 12482 These don't provoke an error unfortunately, instead are silently treated 12483 as 'x'. The following induces an error, until -std is added to get 12484 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12485 array size at least. It's necessary to write '\x00'==0 to get something 12486 that's true only with -std. */ 12487int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12488 12489/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12490 inside strings and character constants. */ 12491#define FOO(x) 'x' 12492int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12493 12494int test (int i, double x); 12495struct s1 {int (*f) (int a);}; 12496struct s2 {int (*f) (double a);}; 12497int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12498int argc; 12499char **argv; 12500int 12501main () 12502{ 12503return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12509 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12510do 12511 CC="$ac_save_CC $ac_arg" 12512 rm -f conftest.$ac_objext 12513if { (ac_try="$ac_compile" 12514case "(($ac_try" in 12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12516 *) ac_try_echo=$ac_try;; 12517esac 12518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12519$as_echo "$ac_try_echo") >&5 12520 (eval "$ac_compile") 2>conftest.er1 12521 ac_status=$? 12522 grep -v '^ *+' conftest.er1 >conftest.err 12523 rm -f conftest.er1 12524 cat conftest.err >&5 12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12526 (exit $ac_status); } && { 12527 test -z "$ac_c_werror_flag" || 12528 test ! -s conftest.err 12529 } && test -s conftest.$ac_objext; then 12530 ac_cv_prog_cc_c89=$ac_arg 12531else 12532 $as_echo "$as_me: failed program was:" >&5 12533sed 's/^/| /' conftest.$ac_ext >&5 12534 12535 12536fi 12537 12538rm -f core conftest.err conftest.$ac_objext 12539 test "x$ac_cv_prog_cc_c89" != "xno" && break 12540done 12541rm -f conftest.$ac_ext 12542CC=$ac_save_CC 12543 12544fi 12545# AC_CACHE_VAL 12546case "x$ac_cv_prog_cc_c89" in 12547 x) 12548 { $as_echo "$as_me:$LINENO: result: none needed" >&5 12549$as_echo "none needed" >&6; } ;; 12550 xno) 12551 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 12552$as_echo "unsupported" >&6; } ;; 12553 *) 12554 CC="$CC $ac_cv_prog_cc_c89" 12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 12556$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12557esac 12558 12559 12560ac_ext=c 12561ac_cpp='$CPP $CPPFLAGS' 12562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12564ac_compiler_gnu=$ac_cv_c_compiler_gnu 12565 12566 12567 12568 12569 12570 12571# Check whether --with-xorg-module-dir was given. 12572if test "${with_xorg_module_dir+set}" = set; then 12573 withval=$with_xorg_module_dir; moduledir="$withval" 12574else 12575 moduledir="$libdir/xorg/modules" 12576fi 12577 12578 12579# Check whether --enable-dri was given. 12580if test "${enable_dri+set}" = set; then 12581 enableval=$enable_dri; DRI="$enableval" 12582else 12583 DRI=auto 12584fi 12585 12586# Check whether --enable-exa was given. 12587if test "${enable_exa+set}" = set; then 12588 enableval=$enable_exa; EXA="$enableval" 12589else 12590 EXA=yes 12591fi 12592 12593 12594# Checks for extensions 12595 12596 SAVE_CFLAGS="$CFLAGS" 12597 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12598 cat >conftest.$ac_ext <<_ACEOF 12599/* confdefs.h. */ 12600_ACEOF 12601cat confdefs.h >>conftest.$ac_ext 12602cat >>conftest.$ac_ext <<_ACEOF 12603/* end confdefs.h. */ 12604 12605#include "xorg-server.h" 12606#if !defined RANDR 12607#error RANDR not defined 12608#endif 12609 12610int 12611main () 12612{ 12613 12614 ; 12615 return 0; 12616} 12617_ACEOF 12618rm -f conftest.$ac_objext 12619if { (ac_try="$ac_compile" 12620case "(($ac_try" in 12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12622 *) ac_try_echo=$ac_try;; 12623esac 12624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12625$as_echo "$ac_try_echo") >&5 12626 (eval "$ac_compile") 2>conftest.er1 12627 ac_status=$? 12628 grep -v '^ *+' conftest.er1 >conftest.err 12629 rm -f conftest.er1 12630 cat conftest.err >&5 12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12632 (exit $ac_status); } && { 12633 test -z "$ac_c_werror_flag" || 12634 test ! -s conftest.err 12635 } && test -s conftest.$ac_objext; then 12636 _EXT_CHECK=yes 12637else 12638 $as_echo "$as_me: failed program was:" >&5 12639sed 's/^/| /' conftest.$ac_ext >&5 12640 12641 _EXT_CHECK=no 12642fi 12643 12644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12645 CFLAGS="$SAVE_CFLAGS" 12646 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12647$as_echo_n "checking if RANDR is defined... " >&6; } 12648 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12649$as_echo "$_EXT_CHECK" >&6; } 12650 if test "$_EXT_CHECK" != no; then 12651 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12652 fi 12653 12654 12655 SAVE_CFLAGS="$CFLAGS" 12656 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12657 cat >conftest.$ac_ext <<_ACEOF 12658/* confdefs.h. */ 12659_ACEOF 12660cat confdefs.h >>conftest.$ac_ext 12661cat >>conftest.$ac_ext <<_ACEOF 12662/* end confdefs.h. */ 12663 12664#include "xorg-server.h" 12665#if !defined RENDER 12666#error RENDER not defined 12667#endif 12668 12669int 12670main () 12671{ 12672 12673 ; 12674 return 0; 12675} 12676_ACEOF 12677rm -f conftest.$ac_objext 12678if { (ac_try="$ac_compile" 12679case "(($ac_try" in 12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12681 *) ac_try_echo=$ac_try;; 12682esac 12683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12684$as_echo "$ac_try_echo") >&5 12685 (eval "$ac_compile") 2>conftest.er1 12686 ac_status=$? 12687 grep -v '^ *+' conftest.er1 >conftest.err 12688 rm -f conftest.er1 12689 cat conftest.err >&5 12690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12691 (exit $ac_status); } && { 12692 test -z "$ac_c_werror_flag" || 12693 test ! -s conftest.err 12694 } && test -s conftest.$ac_objext; then 12695 _EXT_CHECK=yes 12696else 12697 $as_echo "$as_me: failed program was:" >&5 12698sed 's/^/| /' conftest.$ac_ext >&5 12699 12700 _EXT_CHECK=no 12701fi 12702 12703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12704 CFLAGS="$SAVE_CFLAGS" 12705 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12706$as_echo_n "checking if RENDER is defined... " >&6; } 12707 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12708$as_echo "$_EXT_CHECK" >&6; } 12709 if test "$_EXT_CHECK" != no; then 12710 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12711 fi 12712 12713 12714 SAVE_CFLAGS="$CFLAGS" 12715 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12716 cat >conftest.$ac_ext <<_ACEOF 12717/* confdefs.h. */ 12718_ACEOF 12719cat confdefs.h >>conftest.$ac_ext 12720cat >>conftest.$ac_ext <<_ACEOF 12721/* end confdefs.h. */ 12722 12723#include "xorg-server.h" 12724#if !defined XV 12725#error XV not defined 12726#endif 12727 12728int 12729main () 12730{ 12731 12732 ; 12733 return 0; 12734} 12735_ACEOF 12736rm -f conftest.$ac_objext 12737if { (ac_try="$ac_compile" 12738case "(($ac_try" in 12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12740 *) ac_try_echo=$ac_try;; 12741esac 12742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12743$as_echo "$ac_try_echo") >&5 12744 (eval "$ac_compile") 2>conftest.er1 12745 ac_status=$? 12746 grep -v '^ *+' conftest.er1 >conftest.err 12747 rm -f conftest.er1 12748 cat conftest.err >&5 12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12750 (exit $ac_status); } && { 12751 test -z "$ac_c_werror_flag" || 12752 test ! -s conftest.err 12753 } && test -s conftest.$ac_objext; then 12754 _EXT_CHECK=yes 12755else 12756 $as_echo "$as_me: failed program was:" >&5 12757sed 's/^/| /' conftest.$ac_ext >&5 12758 12759 _EXT_CHECK=no 12760fi 12761 12762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12763 CFLAGS="$SAVE_CFLAGS" 12764 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12765$as_echo_n "checking if XV is defined... " >&6; } 12766 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12767$as_echo "$_EXT_CHECK" >&6; } 12768 if test "$_EXT_CHECK" != no; then 12769 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12770 fi 12771 12772 12773 SAVE_CFLAGS="$CFLAGS" 12774 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12775 cat >conftest.$ac_ext <<_ACEOF 12776/* confdefs.h. */ 12777_ACEOF 12778cat confdefs.h >>conftest.$ac_ext 12779cat >>conftest.$ac_ext <<_ACEOF 12780/* end confdefs.h. */ 12781 12782#include "xorg-server.h" 12783#if !defined DPMSExtension 12784#error DPMSExtension not defined 12785#endif 12786 12787int 12788main () 12789{ 12790 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795rm -f conftest.$ac_objext 12796if { (ac_try="$ac_compile" 12797case "(($ac_try" in 12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12799 *) ac_try_echo=$ac_try;; 12800esac 12801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12802$as_echo "$ac_try_echo") >&5 12803 (eval "$ac_compile") 2>conftest.er1 12804 ac_status=$? 12805 grep -v '^ *+' conftest.er1 >conftest.err 12806 rm -f conftest.er1 12807 cat conftest.err >&5 12808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12809 (exit $ac_status); } && { 12810 test -z "$ac_c_werror_flag" || 12811 test ! -s conftest.err 12812 } && test -s conftest.$ac_objext; then 12813 _EXT_CHECK=yes 12814else 12815 $as_echo "$as_me: failed program was:" >&5 12816sed 's/^/| /' conftest.$ac_ext >&5 12817 12818 _EXT_CHECK=no 12819fi 12820 12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12822 CFLAGS="$SAVE_CFLAGS" 12823 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12824$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12825 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12826$as_echo "$_EXT_CHECK" >&6; } 12827 if test "$_EXT_CHECK" != no; then 12828 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12829 fi 12830 12831 12832# Checks for pkg-config packages 12833 12834pkg_failed=no 12835{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12836$as_echo_n "checking for XORG... " >&6; } 12837 12838if test -n "$XORG_CFLAGS"; then 12839 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12840 elif test -n "$PKG_CONFIG"; then 12841 if test -n "$PKG_CONFIG" && \ 12842 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12843 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 12844 ac_status=$? 12845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12846 (exit $ac_status); }; then 12847 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12848else 12849 pkg_failed=yes 12850fi 12851 else 12852 pkg_failed=untried 12853fi 12854if test -n "$XORG_LIBS"; then 12855 pkg_cv_XORG_LIBS="$XORG_LIBS" 12856 elif test -n "$PKG_CONFIG"; then 12857 if test -n "$PKG_CONFIG" && \ 12858 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12859 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 12860 ac_status=$? 12861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12862 (exit $ac_status); }; then 12863 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12864else 12865 pkg_failed=yes 12866fi 12867 else 12868 pkg_failed=untried 12869fi 12870 12871 12872 12873if test $pkg_failed = yes; then 12874 12875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12876 _pkg_short_errors_supported=yes 12877else 12878 _pkg_short_errors_supported=no 12879fi 12880 if test $_pkg_short_errors_supported = yes; then 12881 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12882 else 12883 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12884 fi 12885 # Put the nasty error message in config.log where it belongs 12886 echo "$XORG_PKG_ERRORS" >&5 12887 12888 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 12889 12890$XORG_PKG_ERRORS 12891 12892Consider adjusting the PKG_CONFIG_PATH environment variable if you 12893installed software in a non-standard prefix. 12894 12895Alternatively, you may set the environment variables XORG_CFLAGS 12896and XORG_LIBS to avoid the need to call pkg-config. 12897See the pkg-config man page for more details. 12898" >&5 12899$as_echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 12900 12901$XORG_PKG_ERRORS 12902 12903Consider adjusting the PKG_CONFIG_PATH environment variable if you 12904installed software in a non-standard prefix. 12905 12906Alternatively, you may set the environment variables XORG_CFLAGS 12907and XORG_LIBS to avoid the need to call pkg-config. 12908See the pkg-config man page for more details. 12909" >&2;} 12910 { (exit 1); exit 1; }; } 12911elif test $pkg_failed = untried; then 12912 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12914{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12915is in your PATH or set the PKG_CONFIG environment variable to the full 12916path to pkg-config. 12917 12918Alternatively, you may set the environment variables XORG_CFLAGS 12919and XORG_LIBS to avoid the need to call pkg-config. 12920See the pkg-config man page for more details. 12921 12922To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12923See \`config.log' for more details." >&5 12924$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12925is in your PATH or set the PKG_CONFIG environment variable to the full 12926path to pkg-config. 12927 12928Alternatively, you may set the environment variables XORG_CFLAGS 12929and XORG_LIBS to avoid the need to call pkg-config. 12930See the pkg-config man page for more details. 12931 12932To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12933See \`config.log' for more details." >&2;} 12934 { (exit 1); exit 1; }; }; } 12935else 12936 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12937 XORG_LIBS=$pkg_cv_XORG_LIBS 12938 { $as_echo "$as_me:$LINENO: result: yes" >&5 12939$as_echo "yes" >&6; } 12940 : 12941fi 12942sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 12943 12944# Checks for libraries. 12945 12946# Checks for header files. 12947{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12948$as_echo_n "checking for ANSI C header files... " >&6; } 12949if test "${ac_cv_header_stdc+set}" = set; then 12950 $as_echo_n "(cached) " >&6 12951else 12952 cat >conftest.$ac_ext <<_ACEOF 12953/* confdefs.h. */ 12954_ACEOF 12955cat confdefs.h >>conftest.$ac_ext 12956cat >>conftest.$ac_ext <<_ACEOF 12957/* end confdefs.h. */ 12958#include <stdlib.h> 12959#include <stdarg.h> 12960#include <string.h> 12961#include <float.h> 12962 12963int 12964main () 12965{ 12966 12967 ; 12968 return 0; 12969} 12970_ACEOF 12971rm -f conftest.$ac_objext 12972if { (ac_try="$ac_compile" 12973case "(($ac_try" in 12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12975 *) ac_try_echo=$ac_try;; 12976esac 12977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12978$as_echo "$ac_try_echo") >&5 12979 (eval "$ac_compile") 2>conftest.er1 12980 ac_status=$? 12981 grep -v '^ *+' conftest.er1 >conftest.err 12982 rm -f conftest.er1 12983 cat conftest.err >&5 12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12985 (exit $ac_status); } && { 12986 test -z "$ac_c_werror_flag" || 12987 test ! -s conftest.err 12988 } && test -s conftest.$ac_objext; then 12989 ac_cv_header_stdc=yes 12990else 12991 $as_echo "$as_me: failed program was:" >&5 12992sed 's/^/| /' conftest.$ac_ext >&5 12993 12994 ac_cv_header_stdc=no 12995fi 12996 12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12998 12999if test $ac_cv_header_stdc = yes; then 13000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13001 cat >conftest.$ac_ext <<_ACEOF 13002/* confdefs.h. */ 13003_ACEOF 13004cat confdefs.h >>conftest.$ac_ext 13005cat >>conftest.$ac_ext <<_ACEOF 13006/* end confdefs.h. */ 13007#include <string.h> 13008 13009_ACEOF 13010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13011 $EGREP "memchr" >/dev/null 2>&1; then 13012 : 13013else 13014 ac_cv_header_stdc=no 13015fi 13016rm -f conftest* 13017 13018fi 13019 13020if test $ac_cv_header_stdc = yes; then 13021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13022 cat >conftest.$ac_ext <<_ACEOF 13023/* confdefs.h. */ 13024_ACEOF 13025cat confdefs.h >>conftest.$ac_ext 13026cat >>conftest.$ac_ext <<_ACEOF 13027/* end confdefs.h. */ 13028#include <stdlib.h> 13029 13030_ACEOF 13031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13032 $EGREP "free" >/dev/null 2>&1; then 13033 : 13034else 13035 ac_cv_header_stdc=no 13036fi 13037rm -f conftest* 13038 13039fi 13040 13041if test $ac_cv_header_stdc = yes; then 13042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13043 if test "$cross_compiling" = yes; then 13044 : 13045else 13046 cat >conftest.$ac_ext <<_ACEOF 13047/* confdefs.h. */ 13048_ACEOF 13049cat confdefs.h >>conftest.$ac_ext 13050cat >>conftest.$ac_ext <<_ACEOF 13051/* end confdefs.h. */ 13052#include <ctype.h> 13053#include <stdlib.h> 13054#if ((' ' & 0x0FF) == 0x020) 13055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13057#else 13058# define ISLOWER(c) \ 13059 (('a' <= (c) && (c) <= 'i') \ 13060 || ('j' <= (c) && (c) <= 'r') \ 13061 || ('s' <= (c) && (c) <= 'z')) 13062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13063#endif 13064 13065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13066int 13067main () 13068{ 13069 int i; 13070 for (i = 0; i < 256; i++) 13071 if (XOR (islower (i), ISLOWER (i)) 13072 || toupper (i) != TOUPPER (i)) 13073 return 2; 13074 return 0; 13075} 13076_ACEOF 13077rm -f conftest$ac_exeext 13078if { (ac_try="$ac_link" 13079case "(($ac_try" in 13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13081 *) ac_try_echo=$ac_try;; 13082esac 13083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13084$as_echo "$ac_try_echo") >&5 13085 (eval "$ac_link") 2>&5 13086 ac_status=$? 13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13089 { (case "(($ac_try" in 13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13091 *) ac_try_echo=$ac_try;; 13092esac 13093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13094$as_echo "$ac_try_echo") >&5 13095 (eval "$ac_try") 2>&5 13096 ac_status=$? 13097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13098 (exit $ac_status); }; }; then 13099 : 13100else 13101 $as_echo "$as_me: program exited with status $ac_status" >&5 13102$as_echo "$as_me: failed program was:" >&5 13103sed 's/^/| /' conftest.$ac_ext >&5 13104 13105( exit $ac_status ) 13106ac_cv_header_stdc=no 13107fi 13108rm -rf conftest.dSYM 13109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13110fi 13111 13112 13113fi 13114fi 13115{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13116$as_echo "$ac_cv_header_stdc" >&6; } 13117if test $ac_cv_header_stdc = yes; then 13118 13119cat >>confdefs.h <<\_ACEOF 13120#define STDC_HEADERS 1 13121_ACEOF 13122 13123fi 13124 13125 13126if test "x$DRI" != xno; then 13127 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 13128{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 13129$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 13130if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13131 $as_echo_n "(cached) " >&6 13132else 13133 test "$cross_compiling" = yes && 13134 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13135$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13136 { (exit 1); exit 1; }; } 13137if test -r "${sdkdir}/dri.h"; then 13138 eval "$as_ac_File=yes" 13139else 13140 eval "$as_ac_File=no" 13141fi 13142fi 13143ac_res=`eval 'as_val=${'$as_ac_File'} 13144 $as_echo "$as_val"'` 13145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13146$as_echo "$ac_res" >&6; } 13147as_val=`eval 'as_val=${'$as_ac_File'} 13148 $as_echo "$as_val"'` 13149 if test "x$as_val" = x""yes; then 13150 have_dri_h="yes" 13151else 13152 have_dri_h="no" 13153fi 13154 13155 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 13156{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 13157$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 13158if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13159 $as_echo_n "(cached) " >&6 13160else 13161 test "$cross_compiling" = yes && 13162 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13163$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13164 { (exit 1); exit 1; }; } 13165if test -r "${sdkdir}/sarea.h"; then 13166 eval "$as_ac_File=yes" 13167else 13168 eval "$as_ac_File=no" 13169fi 13170fi 13171ac_res=`eval 'as_val=${'$as_ac_File'} 13172 $as_echo "$as_val"'` 13173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13174$as_echo "$ac_res" >&6; } 13175as_val=`eval 'as_val=${'$as_ac_File'} 13176 $as_echo "$as_val"'` 13177 if test "x$as_val" = x""yes; then 13178 have_sarea_h="yes" 13179else 13180 have_sarea_h="no" 13181fi 13182 13183 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 13184{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 13185$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 13186if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13187 $as_echo_n "(cached) " >&6 13188else 13189 test "$cross_compiling" = yes && 13190 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13191$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13192 { (exit 1); exit 1; }; } 13193if test -r "${sdkdir}/dristruct.h"; then 13194 eval "$as_ac_File=yes" 13195else 13196 eval "$as_ac_File=no" 13197fi 13198fi 13199ac_res=`eval 'as_val=${'$as_ac_File'} 13200 $as_echo "$as_val"'` 13201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13202$as_echo "$ac_res" >&6; } 13203as_val=`eval 'as_val=${'$as_ac_File'} 13204 $as_echo "$as_val"'` 13205 if test "x$as_val" = x""yes; then 13206 have_dristruct_h="yes" 13207else 13208 have_dristruct_h="no" 13209fi 13210 13211fi 13212 13213{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 13214$as_echo_n "checking whether to include DRI support... " >&6; } 13215if test "x$DRI" = xauto; then 13216 if test "x$have_dri_h" = xyes && \ 13217 test "x$have_sarea_h" = xyes && \ 13218 test "x$have_dristruct_h" = xyes; then 13219 DRI="yes" 13220 else 13221 DRI="no" 13222 fi 13223fi 13224{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 13225$as_echo "$DRI" >&6; } 13226 13227 if test "x$DRI" = xyes; then 13228 DRI_TRUE= 13229 DRI_FALSE='#' 13230else 13231 DRI_TRUE='#' 13232 DRI_FALSE= 13233fi 13234 13235if test "x$DRI" = xyes; then 13236 13237pkg_failed=no 13238{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 13239$as_echo_n "checking for DRI... " >&6; } 13240 13241if test -n "$DRI_CFLAGS"; then 13242 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 13243 elif test -n "$PKG_CONFIG"; then 13244 if test -n "$PKG_CONFIG" && \ 13245 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 13246 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 13247 ac_status=$? 13248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13249 (exit $ac_status); }; then 13250 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 13251else 13252 pkg_failed=yes 13253fi 13254 else 13255 pkg_failed=untried 13256fi 13257if test -n "$DRI_LIBS"; then 13258 pkg_cv_DRI_LIBS="$DRI_LIBS" 13259 elif test -n "$PKG_CONFIG"; then 13260 if test -n "$PKG_CONFIG" && \ 13261 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 13262 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 13263 ac_status=$? 13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13265 (exit $ac_status); }; then 13266 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 13267else 13268 pkg_failed=yes 13269fi 13270 else 13271 pkg_failed=untried 13272fi 13273 13274 13275 13276if test $pkg_failed = yes; then 13277 13278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13279 _pkg_short_errors_supported=yes 13280else 13281 _pkg_short_errors_supported=no 13282fi 13283 if test $_pkg_short_errors_supported = yes; then 13284 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 13285 else 13286 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 13287 fi 13288 # Put the nasty error message in config.log where it belongs 13289 echo "$DRI_PKG_ERRORS" >&5 13290 13291 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 13292 13293$DRI_PKG_ERRORS 13294 13295Consider adjusting the PKG_CONFIG_PATH environment variable if you 13296installed software in a non-standard prefix. 13297 13298Alternatively, you may set the environment variables DRI_CFLAGS 13299and DRI_LIBS to avoid the need to call pkg-config. 13300See the pkg-config man page for more details. 13301" >&5 13302$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 13303 13304$DRI_PKG_ERRORS 13305 13306Consider adjusting the PKG_CONFIG_PATH environment variable if you 13307installed software in a non-standard prefix. 13308 13309Alternatively, you may set the environment variables DRI_CFLAGS 13310and DRI_LIBS to avoid the need to call pkg-config. 13311See the pkg-config man page for more details. 13312" >&2;} 13313 { (exit 1); exit 1; }; } 13314elif test $pkg_failed = untried; then 13315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13317{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13318is in your PATH or set the PKG_CONFIG environment variable to the full 13319path to pkg-config. 13320 13321Alternatively, you may set the environment variables DRI_CFLAGS 13322and DRI_LIBS to avoid the need to call pkg-config. 13323See the pkg-config man page for more details. 13324 13325To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13326See \`config.log' for more details." >&5 13327$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13328is in your PATH or set the PKG_CONFIG environment variable to the full 13329path to pkg-config. 13330 13331Alternatively, you may set the environment variables DRI_CFLAGS 13332and DRI_LIBS to avoid the need to call pkg-config. 13333See the pkg-config man page for more details. 13334 13335To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13336See \`config.log' for more details." >&2;} 13337 { (exit 1); exit 1; }; }; } 13338else 13339 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 13340 DRI_LIBS=$pkg_cv_DRI_LIBS 13341 { $as_echo "$as_me:$LINENO: result: yes" >&5 13342$as_echo "yes" >&6; } 13343 : 13344fi 13345 13346cat >>confdefs.h <<\_ACEOF 13347#define XF86DRI 1 13348_ACEOF 13349 13350 13351cat >>confdefs.h <<\_ACEOF 13352#define XF86DRI_DEVEL 1 13353_ACEOF 13354 13355fi 13356 13357save_CFLAGS="$CFLAGS" 13358CFLAGS="$XORG_CFLAGS" 13359{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 13360$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 13361if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 13362 $as_echo_n "(cached) " >&6 13363else 13364 cat >conftest.$ac_ext <<_ACEOF 13365/* confdefs.h. */ 13366_ACEOF 13367cat confdefs.h >>conftest.$ac_ext 13368cat >>conftest.$ac_ext <<_ACEOF 13369/* end confdefs.h. */ 13370#include "xorg-server.h" 13371 13372int 13373main () 13374{ 13375#ifndef XSERVER_LIBPCIACCESS 13376 (void) XSERVER_LIBPCIACCESS; 13377#endif 13378 13379 ; 13380 return 0; 13381} 13382_ACEOF 13383rm -f conftest.$ac_objext 13384if { (ac_try="$ac_compile" 13385case "(($ac_try" in 13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13387 *) ac_try_echo=$ac_try;; 13388esac 13389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13390$as_echo "$ac_try_echo") >&5 13391 (eval "$ac_compile") 2>conftest.er1 13392 ac_status=$? 13393 grep -v '^ *+' conftest.er1 >conftest.err 13394 rm -f conftest.er1 13395 cat conftest.err >&5 13396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13397 (exit $ac_status); } && { 13398 test -z "$ac_c_werror_flag" || 13399 test ! -s conftest.err 13400 } && test -s conftest.$ac_objext; then 13401 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 13402else 13403 $as_echo "$as_me: failed program was:" >&5 13404sed 's/^/| /' conftest.$ac_ext >&5 13405 13406 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 13407fi 13408 13409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13410fi 13411{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 13412$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 13413if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 13414 XSERVER_LIBPCIACCESS=yes 13415else 13416 XSERVER_LIBPCIACCESS=no 13417fi 13418 13419CFLAGS="$save_CFLAGS" 13420 13421save_CFLAGS="$CFLAGS" 13422CFLAGS="$XORG_CFLAGS" 13423{ $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5 13424$as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; } 13425if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then 13426 $as_echo_n "(cached) " >&6 13427else 13428 cat >conftest.$ac_ext <<_ACEOF 13429/* confdefs.h. */ 13430_ACEOF 13431cat confdefs.h >>conftest.$ac_ext 13432cat >>conftest.$ac_ext <<_ACEOF 13433/* end confdefs.h. */ 13434#include <X11/extensions/randr.h> 13435 #include "xorg-server.h" 13436 #include "xf86Modes.h" 13437 13438int 13439main () 13440{ 13441#ifndef xf86ModeBandwidth 13442 (void) xf86ModeBandwidth; 13443#endif 13444 13445 ; 13446 return 0; 13447} 13448_ACEOF 13449rm -f conftest.$ac_objext 13450if { (ac_try="$ac_compile" 13451case "(($ac_try" in 13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13453 *) ac_try_echo=$ac_try;; 13454esac 13455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13456$as_echo "$ac_try_echo") >&5 13457 (eval "$ac_compile") 2>conftest.er1 13458 ac_status=$? 13459 grep -v '^ *+' conftest.er1 >conftest.err 13460 rm -f conftest.er1 13461 cat conftest.err >&5 13462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13463 (exit $ac_status); } && { 13464 test -z "$ac_c_werror_flag" || 13465 test ! -s conftest.err 13466 } && test -s conftest.$ac_objext; then 13467 ac_cv_have_decl_xf86ModeBandwidth=yes 13468else 13469 $as_echo "$as_me: failed program was:" >&5 13470sed 's/^/| /' conftest.$ac_ext >&5 13471 13472 ac_cv_have_decl_xf86ModeBandwidth=no 13473fi 13474 13475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13476fi 13477{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5 13478$as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; } 13479if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then 13480 13481cat >>confdefs.h <<\_ACEOF 13482#define HAVE_XF86MODEBANDWIDTH 1 13483_ACEOF 13484 13485fi 13486 13487CFLAGS="$save_CFLAGS" 13488 13489if test "x$XSERVER_LIBPCIACCESS" = xyes; then 13490 13491pkg_failed=no 13492{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 13493$as_echo_n "checking for PCIACCESS... " >&6; } 13494 13495if test -n "$PCIACCESS_CFLAGS"; then 13496 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 13497 elif test -n "$PKG_CONFIG"; then 13498 if test -n "$PKG_CONFIG" && \ 13499 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 13500 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 13501 ac_status=$? 13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13503 (exit $ac_status); }; then 13504 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 13505else 13506 pkg_failed=yes 13507fi 13508 else 13509 pkg_failed=untried 13510fi 13511if test -n "$PCIACCESS_LIBS"; then 13512 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 13513 elif test -n "$PKG_CONFIG"; then 13514 if test -n "$PKG_CONFIG" && \ 13515 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 13516 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 13517 ac_status=$? 13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13519 (exit $ac_status); }; then 13520 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 13521else 13522 pkg_failed=yes 13523fi 13524 else 13525 pkg_failed=untried 13526fi 13527 13528 13529 13530if test $pkg_failed = yes; then 13531 13532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13533 _pkg_short_errors_supported=yes 13534else 13535 _pkg_short_errors_supported=no 13536fi 13537 if test $_pkg_short_errors_supported = yes; then 13538 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 13539 else 13540 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 13541 fi 13542 # Put the nasty error message in config.log where it belongs 13543 echo "$PCIACCESS_PKG_ERRORS" >&5 13544 13545 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 13546 13547$PCIACCESS_PKG_ERRORS 13548 13549Consider adjusting the PKG_CONFIG_PATH environment variable if you 13550installed software in a non-standard prefix. 13551 13552Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13553and PCIACCESS_LIBS to avoid the need to call pkg-config. 13554See the pkg-config man page for more details. 13555" >&5 13556$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 13557 13558$PCIACCESS_PKG_ERRORS 13559 13560Consider adjusting the PKG_CONFIG_PATH environment variable if you 13561installed software in a non-standard prefix. 13562 13563Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13564and PCIACCESS_LIBS to avoid the need to call pkg-config. 13565See the pkg-config man page for more details. 13566" >&2;} 13567 { (exit 1); exit 1; }; } 13568elif test $pkg_failed = untried; then 13569 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13571{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13572is in your PATH or set the PKG_CONFIG environment variable to the full 13573path to pkg-config. 13574 13575Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13576and PCIACCESS_LIBS to avoid the need to call pkg-config. 13577See the pkg-config man page for more details. 13578 13579To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13580See \`config.log' for more details." >&5 13581$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13582is in your PATH or set the PKG_CONFIG environment variable to the full 13583path to pkg-config. 13584 13585Alternatively, you may set the environment variables PCIACCESS_CFLAGS 13586and PCIACCESS_LIBS to avoid the need to call pkg-config. 13587See the pkg-config man page for more details. 13588 13589To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13590See \`config.log' for more details." >&2;} 13591 { (exit 1); exit 1; }; }; } 13592else 13593 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 13594 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 13595 { $as_echo "$as_me:$LINENO: result: yes" >&5 13596$as_echo "yes" >&6; } 13597 : 13598fi 13599fi 13600 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 13601 XSERVER_LIBPCIACCESS_TRUE= 13602 XSERVER_LIBPCIACCESS_FALSE='#' 13603else 13604 XSERVER_LIBPCIACCESS_TRUE='#' 13605 XSERVER_LIBPCIACCESS_FALSE= 13606fi 13607 13608 13609 if true; then 13610 USE_XAA_TRUE= 13611 USE_XAA_FALSE='#' 13612else 13613 USE_XAA_TRUE='#' 13614 USE_XAA_FALSE= 13615fi 13616 13617 13618cat >>confdefs.h <<\_ACEOF 13619#define USE_XAA 1 13620_ACEOF 13621 13622 13623# Properly handle EXA. 13624{ $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5 13625$as_echo_n "checking whether to enable EXA support... " >&6; } 13626if test "x$EXA" = xyes; then 13627 { $as_echo "$as_me:$LINENO: result: yes" >&5 13628$as_echo "yes" >&6; } 13629 13630 SAVE_CPPFLAGS="$CPPFLAGS" 13631 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 13632 if test "${ac_cv_header_exa_h+set}" = set; then 13633 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5 13634$as_echo_n "checking for exa.h... " >&6; } 13635if test "${ac_cv_header_exa_h+set}" = set; then 13636 $as_echo_n "(cached) " >&6 13637fi 13638{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 13639$as_echo "$ac_cv_header_exa_h" >&6; } 13640else 13641 # Is the header compilable? 13642{ $as_echo "$as_me:$LINENO: checking exa.h usability" >&5 13643$as_echo_n "checking exa.h usability... " >&6; } 13644cat >conftest.$ac_ext <<_ACEOF 13645/* confdefs.h. */ 13646_ACEOF 13647cat confdefs.h >>conftest.$ac_ext 13648cat >>conftest.$ac_ext <<_ACEOF 13649/* end confdefs.h. */ 13650$ac_includes_default 13651#include <exa.h> 13652_ACEOF 13653rm -f conftest.$ac_objext 13654if { (ac_try="$ac_compile" 13655case "(($ac_try" in 13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13657 *) ac_try_echo=$ac_try;; 13658esac 13659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13660$as_echo "$ac_try_echo") >&5 13661 (eval "$ac_compile") 2>conftest.er1 13662 ac_status=$? 13663 grep -v '^ *+' conftest.er1 >conftest.err 13664 rm -f conftest.er1 13665 cat conftest.err >&5 13666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13667 (exit $ac_status); } && { 13668 test -z "$ac_c_werror_flag" || 13669 test ! -s conftest.err 13670 } && test -s conftest.$ac_objext; then 13671 ac_header_compiler=yes 13672else 13673 $as_echo "$as_me: failed program was:" >&5 13674sed 's/^/| /' conftest.$ac_ext >&5 13675 13676 ac_header_compiler=no 13677fi 13678 13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13680{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13681$as_echo "$ac_header_compiler" >&6; } 13682 13683# Is the header present? 13684{ $as_echo "$as_me:$LINENO: checking exa.h presence" >&5 13685$as_echo_n "checking exa.h presence... " >&6; } 13686cat >conftest.$ac_ext <<_ACEOF 13687/* confdefs.h. */ 13688_ACEOF 13689cat confdefs.h >>conftest.$ac_ext 13690cat >>conftest.$ac_ext <<_ACEOF 13691/* end confdefs.h. */ 13692#include <exa.h> 13693_ACEOF 13694if { (ac_try="$ac_cpp conftest.$ac_ext" 13695case "(($ac_try" in 13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13697 *) ac_try_echo=$ac_try;; 13698esac 13699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13700$as_echo "$ac_try_echo") >&5 13701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13702 ac_status=$? 13703 grep -v '^ *+' conftest.er1 >conftest.err 13704 rm -f conftest.er1 13705 cat conftest.err >&5 13706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13707 (exit $ac_status); } >/dev/null && { 13708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13709 test ! -s conftest.err 13710 }; then 13711 ac_header_preproc=yes 13712else 13713 $as_echo "$as_me: failed program was:" >&5 13714sed 's/^/| /' conftest.$ac_ext >&5 13715 13716 ac_header_preproc=no 13717fi 13718 13719rm -f conftest.err conftest.$ac_ext 13720{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13721$as_echo "$ac_header_preproc" >&6; } 13722 13723# So? What about this header? 13724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13725 yes:no: ) 13726 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5 13727$as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13728 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5 13729$as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;} 13730 ac_header_preproc=yes 13731 ;; 13732 no:yes:* ) 13733 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5 13734$as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;} 13735 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5 13736$as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;} 13737 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5 13738$as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;} 13739 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5 13740$as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;} 13741 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5 13742$as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;} 13743 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5 13744$as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;} 13745 ( cat <<\_ASBOX 13746## ---------------------------------------------------------------------- ## 13747## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 13748## ---------------------------------------------------------------------- ## 13749_ASBOX 13750 ) | sed "s/^/$as_me: WARNING: /" >&2 13751 ;; 13752esac 13753{ $as_echo "$as_me:$LINENO: checking for exa.h" >&5 13754$as_echo_n "checking for exa.h... " >&6; } 13755if test "${ac_cv_header_exa_h+set}" = set; then 13756 $as_echo_n "(cached) " >&6 13757else 13758 ac_cv_header_exa_h=$ac_header_preproc 13759fi 13760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 13761$as_echo "$ac_cv_header_exa_h" >&6; } 13762 13763fi 13764if test "x$ac_cv_header_exa_h" = x""yes; then 13765 have_exa_h="yes" 13766else 13767 have_exa_h="no" 13768fi 13769 13770 13771 CPPFLAGS="$SAVE_CPPFLAGS" 13772else 13773 { $as_echo "$as_me:$LINENO: result: no" >&5 13774$as_echo "no" >&6; } 13775fi 13776 13777SAVE_CPPFLAGS="$CPPFLAGS" 13778CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 13779if test "x$have_exa_h" = xyes; then 13780 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5 13781$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; } 13782 cat >conftest.$ac_ext <<_ACEOF 13783/* confdefs.h. */ 13784_ACEOF 13785cat confdefs.h >>conftest.$ac_ext 13786cat >>conftest.$ac_ext <<_ACEOF 13787/* end confdefs.h. */ 13788 13789#include "exa.h" 13790#if EXA_VERSION_MAJOR < 2 13791#error OLD EXA! 13792#endif 13793 13794int 13795main () 13796{ 13797 13798 ; 13799 return 0; 13800} 13801_ACEOF 13802if { (ac_try="$ac_cpp conftest.$ac_ext" 13803case "(($ac_try" in 13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13805 *) ac_try_echo=$ac_try;; 13806esac 13807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13808$as_echo "$ac_try_echo") >&5 13809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13810 ac_status=$? 13811 grep -v '^ *+' conftest.er1 >conftest.err 13812 rm -f conftest.er1 13813 cat conftest.err >&5 13814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13815 (exit $ac_status); } >/dev/null && { 13816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13817 test ! -s conftest.err 13818 }; then 13819 USE_EXA=yes 13820else 13821 $as_echo "$as_me: failed program was:" >&5 13822sed 's/^/| /' conftest.$ac_ext >&5 13823 13824 USE_EXA=no 13825fi 13826 13827rm -f conftest.err conftest.$ac_ext 13828 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5 13829$as_echo "$USE_EXA" >&6; } 13830 13831 if test "x$USE_EXA" = xyes; then 13832 13833cat >>confdefs.h <<\_ACEOF 13834#define USE_EXA 1 13835_ACEOF 13836 13837 fi 13838fi 13839CPPFLAGS="$SAVE_CPPFLAGS" 13840 13841 if test "x$USE_EXA" = xyes; then 13842 USE_EXA_TRUE= 13843 USE_EXA_FALSE='#' 13844else 13845 USE_EXA_TRUE='#' 13846 USE_EXA_FALSE= 13847fi 13848 13849 13850 13851 13852 13853 13854DRIVER_NAME=mga 13855 13856 13857ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 13858 13859cat >confcache <<\_ACEOF 13860# This file is a shell script that caches the results of configure 13861# tests run on this system so they can be shared between configure 13862# scripts and configure runs, see configure's option --config-cache. 13863# It is not useful on other systems. If it contains results you don't 13864# want to keep, you may remove or edit it. 13865# 13866# config.status only pays attention to the cache file if you give it 13867# the --recheck option to rerun configure. 13868# 13869# `ac_cv_env_foo' variables (set or unset) will be overridden when 13870# loading this file, other *unset* `ac_cv_foo' will be assigned the 13871# following values. 13872 13873_ACEOF 13874 13875# The following way of writing the cache mishandles newlines in values, 13876# but we know of no workaround that is simple, portable, and efficient. 13877# So, we kill variables containing newlines. 13878# Ultrix sh set writes to stderr and can't be redirected directly, 13879# and sets the high bit in the cache file unless we assign to the vars. 13880( 13881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13882 eval ac_val=\$$ac_var 13883 case $ac_val in #( 13884 *${as_nl}*) 13885 case $ac_var in #( 13886 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13887$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13888 esac 13889 case $ac_var in #( 13890 _ | IFS | as_nl) ;; #( 13891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13892 *) $as_unset $ac_var ;; 13893 esac ;; 13894 esac 13895 done 13896 13897 (set) 2>&1 | 13898 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13899 *${as_nl}ac_space=\ *) 13900 # `set' does not quote correctly, so add quotes (double-quote 13901 # substitution turns \\\\ into \\, and sed turns \\ into \). 13902 sed -n \ 13903 "s/'/'\\\\''/g; 13904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13905 ;; #( 13906 *) 13907 # `set' quotes correctly as required by POSIX, so do not add quotes. 13908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13909 ;; 13910 esac | 13911 sort 13912) | 13913 sed ' 13914 /^ac_cv_env_/b end 13915 t clear 13916 :clear 13917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13918 t end 13919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13920 :end' >>confcache 13921if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13922 if test -w "$cache_file"; then 13923 test "x$cache_file" != "x/dev/null" && 13924 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13925$as_echo "$as_me: updating cache $cache_file" >&6;} 13926 cat confcache >$cache_file 13927 else 13928 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13929$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13930 fi 13931fi 13932rm -f confcache 13933 13934test "x$prefix" = xNONE && prefix=$ac_default_prefix 13935# Let make expand exec_prefix. 13936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13937 13938DEFS=-DHAVE_CONFIG_H 13939 13940ac_libobjs= 13941ac_ltlibobjs= 13942for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13943 # 1. Remove the extension, and $U if already installed. 13944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13947 # will be set to the directory where LIBOBJS objects are built. 13948 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13949 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13950done 13951LIBOBJS=$ac_libobjs 13952 13953LTLIBOBJS=$ac_ltlibobjs 13954 13955 13956if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13957 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13958Usually this means the macro was only invoked conditionally." >&5 13959$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13960Usually this means the macro was only invoked conditionally." >&2;} 13961 { (exit 1); exit 1; }; } 13962fi 13963if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13964 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13965Usually this means the macro was only invoked conditionally." >&5 13966$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13967Usually this means the macro was only invoked conditionally." >&2;} 13968 { (exit 1); exit 1; }; } 13969fi 13970 if test -n "$EXEEXT"; then 13971 am__EXEEXT_TRUE= 13972 am__EXEEXT_FALSE='#' 13973else 13974 am__EXEEXT_TRUE='#' 13975 am__EXEEXT_FALSE= 13976fi 13977 13978if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13979 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13980Usually this means the macro was only invoked conditionally." >&5 13981$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13982Usually this means the macro was only invoked conditionally." >&2;} 13983 { (exit 1); exit 1; }; } 13984fi 13985if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 13986 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 13987Usually this means the macro was only invoked conditionally." >&5 13988$as_echo "$as_me: error: conditional \"DRI\" was never defined. 13989Usually this means the macro was only invoked conditionally." >&2;} 13990 { (exit 1); exit 1; }; } 13991fi 13992if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 13993 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13994Usually this means the macro was only invoked conditionally." >&5 13995$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13996Usually this means the macro was only invoked conditionally." >&2;} 13997 { (exit 1); exit 1; }; } 13998fi 13999if test -z "${USE_XAA_TRUE}" && test -z "${USE_XAA_FALSE}"; then 14000 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XAA\" was never defined. 14001Usually this means the macro was only invoked conditionally." >&5 14002$as_echo "$as_me: error: conditional \"USE_XAA\" was never defined. 14003Usually this means the macro was only invoked conditionally." >&2;} 14004 { (exit 1); exit 1; }; } 14005fi 14006if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 14007 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined. 14008Usually this means the macro was only invoked conditionally." >&5 14009$as_echo "$as_me: error: conditional \"USE_EXA\" was never defined. 14010Usually this means the macro was only invoked conditionally." >&2;} 14011 { (exit 1); exit 1; }; } 14012fi 14013 14014: ${CONFIG_STATUS=./config.status} 14015ac_write_fail=0 14016ac_clean_files_save=$ac_clean_files 14017ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14018{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14019$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14020cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14021#! $SHELL 14022# Generated by $as_me. 14023# Run this file to recreate the current configuration. 14024# Compiler output produced by configure, useful for debugging 14025# configure, is in config.log if it exists. 14026 14027debug=false 14028ac_cs_recheck=false 14029ac_cs_silent=false 14030SHELL=\${CONFIG_SHELL-$SHELL} 14031_ACEOF 14032 14033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14034## --------------------- ## 14035## M4sh Initialization. ## 14036## --------------------- ## 14037 14038# Be more Bourne compatible 14039DUALCASE=1; export DUALCASE # for MKS sh 14040if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14041 emulate sh 14042 NULLCMD=: 14043 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14044 # is contrary to our usage. Disable this feature. 14045 alias -g '${1+"$@"}'='"$@"' 14046 setopt NO_GLOB_SUBST 14047else 14048 case `(set -o) 2>/dev/null` in 14049 *posix*) set -o posix ;; 14050esac 14051 14052fi 14053 14054 14055 14056 14057# PATH needs CR 14058# Avoid depending upon Character Ranges. 14059as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14060as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14061as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14062as_cr_digits='0123456789' 14063as_cr_alnum=$as_cr_Letters$as_cr_digits 14064 14065as_nl=' 14066' 14067export as_nl 14068# Printing a long string crashes Solaris 7 /usr/bin/printf. 14069as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14072if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14073 as_echo='printf %s\n' 14074 as_echo_n='printf %s' 14075else 14076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14078 as_echo_n='/usr/ucb/echo -n' 14079 else 14080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14081 as_echo_n_body='eval 14082 arg=$1; 14083 case $arg in 14084 *"$as_nl"*) 14085 expr "X$arg" : "X\\(.*\\)$as_nl"; 14086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14087 esac; 14088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14089 ' 14090 export as_echo_n_body 14091 as_echo_n='sh -c $as_echo_n_body as_echo' 14092 fi 14093 export as_echo_body 14094 as_echo='sh -c $as_echo_body as_echo' 14095fi 14096 14097# The user is always right. 14098if test "${PATH_SEPARATOR+set}" != set; then 14099 PATH_SEPARATOR=: 14100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14102 PATH_SEPARATOR=';' 14103 } 14104fi 14105 14106# Support unset when possible. 14107if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14108 as_unset=unset 14109else 14110 as_unset=false 14111fi 14112 14113 14114# IFS 14115# We need space, tab and new line, in precisely that order. Quoting is 14116# there to prevent editors from complaining about space-tab. 14117# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14118# splitting by setting IFS to empty value.) 14119IFS=" "" $as_nl" 14120 14121# Find who we are. Look in the path if we contain no directory separator. 14122case $0 in 14123 *[\\/]* ) as_myself=$0 ;; 14124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14125for as_dir in $PATH 14126do 14127 IFS=$as_save_IFS 14128 test -z "$as_dir" && as_dir=. 14129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14130done 14131IFS=$as_save_IFS 14132 14133 ;; 14134esac 14135# We did not find ourselves, most probably we were run as `sh COMMAND' 14136# in which case we are not to be found in the path. 14137if test "x$as_myself" = x; then 14138 as_myself=$0 14139fi 14140if test ! -f "$as_myself"; then 14141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14142 { (exit 1); exit 1; } 14143fi 14144 14145# Work around bugs in pre-3.0 UWIN ksh. 14146for as_var in ENV MAIL MAILPATH 14147do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14148done 14149PS1='$ ' 14150PS2='> ' 14151PS4='+ ' 14152 14153# NLS nuisances. 14154LC_ALL=C 14155export LC_ALL 14156LANGUAGE=C 14157export LANGUAGE 14158 14159# Required to use basename. 14160if expr a : '\(a\)' >/dev/null 2>&1 && 14161 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14162 as_expr=expr 14163else 14164 as_expr=false 14165fi 14166 14167if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14168 as_basename=basename 14169else 14170 as_basename=false 14171fi 14172 14173 14174# Name of the executable. 14175as_me=`$as_basename -- "$0" || 14176$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14177 X"$0" : 'X\(//\)$' \| \ 14178 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14179$as_echo X/"$0" | 14180 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14181 s//\1/ 14182 q 14183 } 14184 /^X\/\(\/\/\)$/{ 14185 s//\1/ 14186 q 14187 } 14188 /^X\/\(\/\).*/{ 14189 s//\1/ 14190 q 14191 } 14192 s/.*/./; q'` 14193 14194# CDPATH. 14195$as_unset CDPATH 14196 14197 14198 14199 as_lineno_1=$LINENO 14200 as_lineno_2=$LINENO 14201 test "x$as_lineno_1" != "x$as_lineno_2" && 14202 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14203 14204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14205 # uniformly replaced by the line number. The first 'sed' inserts a 14206 # line-number line after each line using $LINENO; the second 'sed' 14207 # does the real work. The second script uses 'N' to pair each 14208 # line-number line with the line containing $LINENO, and appends 14209 # trailing '-' during substitution so that $LINENO is not a special 14210 # case at line end. 14211 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14212 # scripts with optimization help from Paolo Bonzini. Blame Lee 14213 # E. McMahon (1931-1989) for sed's syntax. :-) 14214 sed -n ' 14215 p 14216 /[$]LINENO/= 14217 ' <$as_myself | 14218 sed ' 14219 s/[$]LINENO.*/&-/ 14220 t lineno 14221 b 14222 :lineno 14223 N 14224 :loop 14225 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14226 t loop 14227 s/-\n.*// 14228 ' >$as_me.lineno && 14229 chmod +x "$as_me.lineno" || 14230 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14231 { (exit 1); exit 1; }; } 14232 14233 # Don't try to exec as it changes $[0], causing all sort of problems 14234 # (the dirname of $[0] is not the place where we might find the 14235 # original and so on. Autoconf is especially sensitive to this). 14236 . "./$as_me.lineno" 14237 # Exit status is that of the last command. 14238 exit 14239} 14240 14241 14242if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14243 as_dirname=dirname 14244else 14245 as_dirname=false 14246fi 14247 14248ECHO_C= ECHO_N= ECHO_T= 14249case `echo -n x` in 14250-n*) 14251 case `echo 'x\c'` in 14252 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14253 *) ECHO_C='\c';; 14254 esac;; 14255*) 14256 ECHO_N='-n';; 14257esac 14258if expr a : '\(a\)' >/dev/null 2>&1 && 14259 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14260 as_expr=expr 14261else 14262 as_expr=false 14263fi 14264 14265rm -f conf$$ conf$$.exe conf$$.file 14266if test -d conf$$.dir; then 14267 rm -f conf$$.dir/conf$$.file 14268else 14269 rm -f conf$$.dir 14270 mkdir conf$$.dir 2>/dev/null 14271fi 14272if (echo >conf$$.file) 2>/dev/null; then 14273 if ln -s conf$$.file conf$$ 2>/dev/null; then 14274 as_ln_s='ln -s' 14275 # ... but there are two gotchas: 14276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14278 # In both cases, we have to default to `cp -p'. 14279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14280 as_ln_s='cp -p' 14281 elif ln conf$$.file conf$$ 2>/dev/null; then 14282 as_ln_s=ln 14283 else 14284 as_ln_s='cp -p' 14285 fi 14286else 14287 as_ln_s='cp -p' 14288fi 14289rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14290rmdir conf$$.dir 2>/dev/null 14291 14292if mkdir -p . 2>/dev/null; then 14293 as_mkdir_p=: 14294else 14295 test -d ./-p && rmdir ./-p 14296 as_mkdir_p=false 14297fi 14298 14299if test -x / >/dev/null 2>&1; then 14300 as_test_x='test -x' 14301else 14302 if ls -dL / >/dev/null 2>&1; then 14303 as_ls_L_option=L 14304 else 14305 as_ls_L_option= 14306 fi 14307 as_test_x=' 14308 eval sh -c '\'' 14309 if test -d "$1"; then 14310 test -d "$1/."; 14311 else 14312 case $1 in 14313 -*)set "./$1";; 14314 esac; 14315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14316 ???[sx]*):;;*)false;;esac;fi 14317 '\'' sh 14318 ' 14319fi 14320as_executable_p=$as_test_x 14321 14322# Sed expression to map a string onto a valid CPP name. 14323as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14324 14325# Sed expression to map a string onto a valid variable name. 14326as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14327 14328 14329exec 6>&1 14330 14331# Save the log message, to keep $[0] and so on meaningful, and to 14332# report actual input values of CONFIG_FILES etc. instead of their 14333# values after options handling. 14334ac_log=" 14335This file was extended by xf86-video-mga $as_me 1.4.12, which was 14336generated by GNU Autoconf 2.63. Invocation command line was 14337 14338 CONFIG_FILES = $CONFIG_FILES 14339 CONFIG_HEADERS = $CONFIG_HEADERS 14340 CONFIG_LINKS = $CONFIG_LINKS 14341 CONFIG_COMMANDS = $CONFIG_COMMANDS 14342 $ $0 $@ 14343 14344on `(hostname || uname -n) 2>/dev/null | sed 1q` 14345" 14346 14347_ACEOF 14348 14349case $ac_config_files in *" 14350"*) set x $ac_config_files; shift; ac_config_files=$*;; 14351esac 14352 14353case $ac_config_headers in *" 14354"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14355esac 14356 14357 14358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14359# Files that config.status was made for. 14360config_files="$ac_config_files" 14361config_headers="$ac_config_headers" 14362config_commands="$ac_config_commands" 14363 14364_ACEOF 14365 14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14367ac_cs_usage="\ 14368\`$as_me' instantiates files from templates according to the 14369current configuration. 14370 14371Usage: $0 [OPTION]... [FILE]... 14372 14373 -h, --help print this help, then exit 14374 -V, --version print version number and configuration settings, then exit 14375 -q, --quiet, --silent 14376 do not print progress messages 14377 -d, --debug don't remove temporary files 14378 --recheck update $as_me by reconfiguring in the same conditions 14379 --file=FILE[:TEMPLATE] 14380 instantiate the configuration file FILE 14381 --header=FILE[:TEMPLATE] 14382 instantiate the configuration header FILE 14383 14384Configuration files: 14385$config_files 14386 14387Configuration headers: 14388$config_headers 14389 14390Configuration commands: 14391$config_commands 14392 14393Report bugs to <bug-autoconf@gnu.org>." 14394 14395_ACEOF 14396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14397ac_cs_version="\\ 14398xf86-video-mga config.status 1.4.12 14399configured by $0, generated by GNU Autoconf 2.63, 14400 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14401 14402Copyright (C) 2008 Free Software Foundation, Inc. 14403This config.status script is free software; the Free Software Foundation 14404gives unlimited permission to copy, distribute and modify it." 14405 14406ac_pwd='$ac_pwd' 14407srcdir='$srcdir' 14408INSTALL='$INSTALL' 14409MKDIR_P='$MKDIR_P' 14410AWK='$AWK' 14411test -n "\$AWK" || AWK=awk 14412_ACEOF 14413 14414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14415# The default lists apply if the user does not specify any file. 14416ac_need_defaults=: 14417while test $# != 0 14418do 14419 case $1 in 14420 --*=*) 14421 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14423 ac_shift=: 14424 ;; 14425 *) 14426 ac_option=$1 14427 ac_optarg=$2 14428 ac_shift=shift 14429 ;; 14430 esac 14431 14432 case $ac_option in 14433 # Handling of the options. 14434 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14435 ac_cs_recheck=: ;; 14436 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14437 $as_echo "$ac_cs_version"; exit ;; 14438 --debug | --debu | --deb | --de | --d | -d ) 14439 debug=: ;; 14440 --file | --fil | --fi | --f ) 14441 $ac_shift 14442 case $ac_optarg in 14443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14444 esac 14445 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14446 ac_need_defaults=false;; 14447 --header | --heade | --head | --hea ) 14448 $ac_shift 14449 case $ac_optarg in 14450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14451 esac 14452 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14453 ac_need_defaults=false;; 14454 --he | --h) 14455 # Conflict between --help and --header 14456 { $as_echo "$as_me: error: ambiguous option: $1 14457Try \`$0 --help' for more information." >&2 14458 { (exit 1); exit 1; }; };; 14459 --help | --hel | -h ) 14460 $as_echo "$ac_cs_usage"; exit ;; 14461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14462 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14463 ac_cs_silent=: ;; 14464 14465 # This is an error. 14466 -*) { $as_echo "$as_me: error: unrecognized option: $1 14467Try \`$0 --help' for more information." >&2 14468 { (exit 1); exit 1; }; } ;; 14469 14470 *) ac_config_targets="$ac_config_targets $1" 14471 ac_need_defaults=false ;; 14472 14473 esac 14474 shift 14475done 14476 14477ac_configure_extra_args= 14478 14479if $ac_cs_silent; then 14480 exec 6>/dev/null 14481 ac_configure_extra_args="$ac_configure_extra_args --silent" 14482fi 14483 14484_ACEOF 14485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14486if \$ac_cs_recheck; then 14487 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14488 shift 14489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14490 CONFIG_SHELL='$SHELL' 14491 export CONFIG_SHELL 14492 exec "\$@" 14493fi 14494 14495_ACEOF 14496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14497exec 5>>config.log 14498{ 14499 echo 14500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14501## Running $as_me. ## 14502_ASBOX 14503 $as_echo "$ac_log" 14504} >&5 14505 14506_ACEOF 14507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14508# 14509# INIT-COMMANDS 14510# 14511AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14512 14513 14514# The HP-UX ksh and POSIX shell print the target directory to stdout 14515# if CDPATH is set. 14516(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14517 14518sed_quote_subst='$sed_quote_subst' 14519double_quote_subst='$double_quote_subst' 14520delay_variable_subst='$delay_variable_subst' 14521enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14522macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14523macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14524enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14525pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14526enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14527host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14528host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14529host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14530build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14531build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14532build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14533SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14534Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14535GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14536EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14537FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14538LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14539NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14540LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14541max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14542ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14543exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14544lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14545lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14546lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14547reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14548reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14549OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14550deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14551file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14552AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14553AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14554STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14555RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14556old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14557old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14558old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14559CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14560CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14561compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14562GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14563lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14564lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14565lt_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"`' 14566lt_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"`' 14567objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14568SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14569ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14570MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14571lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14572lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14573lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14574lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14575lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14576need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14577DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14578NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14579LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14580OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14581OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14582libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14583shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14584extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14585archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14586enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14587export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14588whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14589compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14590old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14591old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14592archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14593archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14594module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14595module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14596with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14597allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14598no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14599hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14600hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14601hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14602hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14603hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14604hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14605hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14606hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14607inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14608link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14609fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14610always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14611export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14612exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14613include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14614prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14615file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14616variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14617need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14618need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14619version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14620runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14621shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14622shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14623libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14624library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14625soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14626postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14627postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14628finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14629finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14630hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14631sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14632sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14633hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14634enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14635enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14636enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14637old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14638striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14639 14640LTCC='$LTCC' 14641LTCFLAGS='$LTCFLAGS' 14642compiler='$compiler_DEFAULT' 14643 14644# Quote evaled strings. 14645for var in SED \ 14646GREP \ 14647EGREP \ 14648FGREP \ 14649LD \ 14650NM \ 14651LN_S \ 14652lt_SP2NL \ 14653lt_NL2SP \ 14654reload_flag \ 14655OBJDUMP \ 14656deplibs_check_method \ 14657file_magic_cmd \ 14658AR \ 14659AR_FLAGS \ 14660STRIP \ 14661RANLIB \ 14662CC \ 14663CFLAGS \ 14664compiler \ 14665lt_cv_sys_global_symbol_pipe \ 14666lt_cv_sys_global_symbol_to_cdecl \ 14667lt_cv_sys_global_symbol_to_c_name_address \ 14668lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14669SHELL \ 14670ECHO \ 14671lt_prog_compiler_no_builtin_flag \ 14672lt_prog_compiler_wl \ 14673lt_prog_compiler_pic \ 14674lt_prog_compiler_static \ 14675lt_cv_prog_compiler_c_o \ 14676need_locks \ 14677DSYMUTIL \ 14678NMEDIT \ 14679LIPO \ 14680OTOOL \ 14681OTOOL64 \ 14682shrext_cmds \ 14683export_dynamic_flag_spec \ 14684whole_archive_flag_spec \ 14685compiler_needs_object \ 14686with_gnu_ld \ 14687allow_undefined_flag \ 14688no_undefined_flag \ 14689hardcode_libdir_flag_spec \ 14690hardcode_libdir_flag_spec_ld \ 14691hardcode_libdir_separator \ 14692fix_srcfile_path \ 14693exclude_expsyms \ 14694include_expsyms \ 14695file_list_spec \ 14696variables_saved_for_relink \ 14697libname_spec \ 14698library_names_spec \ 14699soname_spec \ 14700finish_eval \ 14701old_striplib \ 14702striplib; do 14703 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14704 *[\\\\\\\`\\"\\\$]*) 14705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14706 ;; 14707 *) 14708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14709 ;; 14710 esac 14711done 14712 14713# Double-quote double-evaled strings. 14714for var in reload_cmds \ 14715old_postinstall_cmds \ 14716old_postuninstall_cmds \ 14717old_archive_cmds \ 14718extract_expsyms_cmds \ 14719old_archive_from_new_cmds \ 14720old_archive_from_expsyms_cmds \ 14721archive_cmds \ 14722archive_expsym_cmds \ 14723module_cmds \ 14724module_expsym_cmds \ 14725export_symbols_cmds \ 14726prelink_cmds \ 14727postinstall_cmds \ 14728postuninstall_cmds \ 14729finish_cmds \ 14730sys_lib_search_path_spec \ 14731sys_lib_dlsearch_path_spec; do 14732 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14733 *[\\\\\\\`\\"\\\$]*) 14734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14735 ;; 14736 *) 14737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14738 ;; 14739 esac 14740done 14741 14742# Fix-up fallback echo if it was mangled by the above quoting rules. 14743case \$lt_ECHO in 14744*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14745 ;; 14746esac 14747 14748ac_aux_dir='$ac_aux_dir' 14749xsi_shell='$xsi_shell' 14750lt_shell_append='$lt_shell_append' 14751 14752# See if we are running on zsh, and set the options which allow our 14753# commands through without removal of \ escapes INIT. 14754if test -n "\${ZSH_VERSION+set}" ; then 14755 setopt NO_GLOB_SUBST 14756fi 14757 14758 14759 PACKAGE='$PACKAGE' 14760 VERSION='$VERSION' 14761 TIMESTAMP='$TIMESTAMP' 14762 RM='$RM' 14763 ofile='$ofile' 14764 14765 14766 14767 14768_ACEOF 14769 14770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14771 14772# Handling of arguments. 14773for ac_config_target in $ac_config_targets 14774do 14775 case $ac_config_target in 14776 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14777 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14778 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14780 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14781 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14782 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 14783 14784 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14785$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14786 { (exit 1); exit 1; }; };; 14787 esac 14788done 14789 14790 14791# If the user did not use the arguments to specify the items to instantiate, 14792# then the envvar interface is used. Set only those that are not. 14793# We use the long form for the default assignment because of an extremely 14794# bizarre bug on SunOS 4.1.3. 14795if $ac_need_defaults; then 14796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14798 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14799fi 14800 14801# Have a temporary directory for convenience. Make it in the build tree 14802# simply because there is no reason against having it here, and in addition, 14803# creating and moving files from /tmp can sometimes cause problems. 14804# Hook for its removal unless debugging. 14805# Note that there is a small window in which the directory will not be cleaned: 14806# after its creation but before its name has been assigned to `$tmp'. 14807$debug || 14808{ 14809 tmp= 14810 trap 'exit_status=$? 14811 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14812' 0 14813 trap '{ (exit 1); exit 1; }' 1 2 13 15 14814} 14815# Create a (secure) tmp directory for tmp files. 14816 14817{ 14818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14819 test -n "$tmp" && test -d "$tmp" 14820} || 14821{ 14822 tmp=./conf$$-$RANDOM 14823 (umask 077 && mkdir "$tmp") 14824} || 14825{ 14826 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14827 { (exit 1); exit 1; } 14828} 14829 14830# Set up the scripts for CONFIG_FILES section. 14831# No need to generate them if there are no CONFIG_FILES. 14832# This happens for instance with `./config.status config.h'. 14833if test -n "$CONFIG_FILES"; then 14834 14835 14836ac_cr=' 14837' 14838ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14839if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14840 ac_cs_awk_cr='\\r' 14841else 14842 ac_cs_awk_cr=$ac_cr 14843fi 14844 14845echo 'BEGIN {' >"$tmp/subs1.awk" && 14846_ACEOF 14847 14848 14849{ 14850 echo "cat >conf$$subs.awk <<_ACEOF" && 14851 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14852 echo "_ACEOF" 14853} >conf$$subs.sh || 14854 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14855$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14856 { (exit 1); exit 1; }; } 14857ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14858ac_delim='%!_!# ' 14859for ac_last_try in false false false false false :; do 14860 . ./conf$$subs.sh || 14861 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14862$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14863 { (exit 1); exit 1; }; } 14864 14865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14866 if test $ac_delim_n = $ac_delim_num; then 14867 break 14868 elif $ac_last_try; then 14869 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14870$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14871 { (exit 1); exit 1; }; } 14872 else 14873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14874 fi 14875done 14876rm -f conf$$subs.sh 14877 14878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14879cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14880_ACEOF 14881sed -n ' 14882h 14883s/^/S["/; s/!.*/"]=/ 14884p 14885g 14886s/^[^!]*!// 14887:repl 14888t repl 14889s/'"$ac_delim"'$// 14890t delim 14891:nl 14892h 14893s/\(.\{148\}\).*/\1/ 14894t more1 14895s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14896p 14897n 14898b repl 14899:more1 14900s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14901p 14902g 14903s/.\{148\}// 14904t nl 14905:delim 14906h 14907s/\(.\{148\}\).*/\1/ 14908t more2 14909s/["\\]/\\&/g; s/^/"/; s/$/"/ 14910p 14911b 14912:more2 14913s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14914p 14915g 14916s/.\{148\}// 14917t delim 14918' <conf$$subs.awk | sed ' 14919/^[^""]/{ 14920 N 14921 s/\n// 14922} 14923' >>$CONFIG_STATUS || ac_write_fail=1 14924rm -f conf$$subs.awk 14925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14926_ACAWK 14927cat >>"\$tmp/subs1.awk" <<_ACAWK && 14928 for (key in S) S_is_set[key] = 1 14929 FS = "" 14930 14931} 14932{ 14933 line = $ 0 14934 nfields = split(line, field, "@") 14935 substed = 0 14936 len = length(field[1]) 14937 for (i = 2; i < nfields; i++) { 14938 key = field[i] 14939 keylen = length(key) 14940 if (S_is_set[key]) { 14941 value = S[key] 14942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14943 len += length(value) + length(field[++i]) 14944 substed = 1 14945 } else 14946 len += 1 + keylen 14947 } 14948 14949 print line 14950} 14951 14952_ACAWK 14953_ACEOF 14954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14955if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14957else 14958 cat 14959fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14960 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14961$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14962 { (exit 1); exit 1; }; } 14963_ACEOF 14964 14965# VPATH may cause trouble with some makes, so we remove $(srcdir), 14966# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14967# trailing colons and then remove the whole line if VPATH becomes empty 14968# (actually we leave an empty line to preserve line numbers). 14969if test "x$srcdir" = x.; then 14970 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14971s/:*\$(srcdir):*/:/ 14972s/:*\${srcdir}:*/:/ 14973s/:*@srcdir@:*/:/ 14974s/^\([^=]*=[ ]*\):*/\1/ 14975s/:*$// 14976s/^[^=]*=[ ]*$// 14977}' 14978fi 14979 14980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14981fi # test -n "$CONFIG_FILES" 14982 14983# Set up the scripts for CONFIG_HEADERS section. 14984# No need to generate them if there are no CONFIG_HEADERS. 14985# This happens for instance with `./config.status Makefile'. 14986if test -n "$CONFIG_HEADERS"; then 14987cat >"$tmp/defines.awk" <<\_ACAWK || 14988BEGIN { 14989_ACEOF 14990 14991# Transform confdefs.h into an awk script `defines.awk', embedded as 14992# here-document in config.status, that substitutes the proper values into 14993# config.h.in to produce config.h. 14994 14995# Create a delimiter string that does not exist in confdefs.h, to ease 14996# handling of long lines. 14997ac_delim='%!_!# ' 14998for ac_last_try in false false :; do 14999 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15000 if test -z "$ac_t"; then 15001 break 15002 elif $ac_last_try; then 15003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 15004$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 15005 { (exit 1); exit 1; }; } 15006 else 15007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15008 fi 15009done 15010 15011# For the awk script, D is an array of macro values keyed by name, 15012# likewise P contains macro parameters if any. Preserve backslash 15013# newline sequences. 15014 15015ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15016sed -n ' 15017s/.\{148\}/&'"$ac_delim"'/g 15018t rset 15019:rset 15020s/^[ ]*#[ ]*define[ ][ ]*/ / 15021t def 15022d 15023:def 15024s/\\$// 15025t bsnl 15026s/["\\]/\\&/g 15027s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15028D["\1"]=" \3"/p 15029s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15030d 15031:bsnl 15032s/["\\]/\\&/g 15033s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15034D["\1"]=" \3\\\\\\n"\\/p 15035t cont 15036s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15037t cont 15038d 15039:cont 15040n 15041s/.\{148\}/&'"$ac_delim"'/g 15042t clear 15043:clear 15044s/\\$// 15045t bsnlc 15046s/["\\]/\\&/g; s/^/"/; s/$/"/p 15047d 15048:bsnlc 15049s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15050b cont 15051' <confdefs.h | sed ' 15052s/'"$ac_delim"'/"\\\ 15053"/g' >>$CONFIG_STATUS || ac_write_fail=1 15054 15055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15056 for (key in D) D_is_set[key] = 1 15057 FS = "" 15058} 15059/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15060 line = \$ 0 15061 split(line, arg, " ") 15062 if (arg[1] == "#") { 15063 defundef = arg[2] 15064 mac1 = arg[3] 15065 } else { 15066 defundef = substr(arg[1], 2) 15067 mac1 = arg[2] 15068 } 15069 split(mac1, mac2, "(") #) 15070 macro = mac2[1] 15071 prefix = substr(line, 1, index(line, defundef) - 1) 15072 if (D_is_set[macro]) { 15073 # Preserve the white space surrounding the "#". 15074 print prefix "define", macro P[macro] D[macro] 15075 next 15076 } else { 15077 # Replace #undef with comments. This is necessary, for example, 15078 # in the case of _POSIX_SOURCE, which is predefined and required 15079 # on some systems where configure will not decide to define it. 15080 if (defundef == "undef") { 15081 print "/*", prefix defundef, macro, "*/" 15082 next 15083 } 15084 } 15085} 15086{ print } 15087_ACAWK 15088_ACEOF 15089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15090 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 15091$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 15092 { (exit 1); exit 1; }; } 15093fi # test -n "$CONFIG_HEADERS" 15094 15095 15096eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15097shift 15098for ac_tag 15099do 15100 case $ac_tag in 15101 :[FHLC]) ac_mode=$ac_tag; continue;; 15102 esac 15103 case $ac_mode$ac_tag in 15104 :[FHL]*:*);; 15105 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 15106$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 15107 { (exit 1); exit 1; }; };; 15108 :[FH]-) ac_tag=-:-;; 15109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15110 esac 15111 ac_save_IFS=$IFS 15112 IFS=: 15113 set x $ac_tag 15114 IFS=$ac_save_IFS 15115 shift 15116 ac_file=$1 15117 shift 15118 15119 case $ac_mode in 15120 :L) ac_source=$1;; 15121 :[FH]) 15122 ac_file_inputs= 15123 for ac_f 15124 do 15125 case $ac_f in 15126 -) ac_f="$tmp/stdin";; 15127 *) # Look for the file first in the build tree, then in the source tree 15128 # (if the path is not absolute). The absolute path cannot be DOS-style, 15129 # because $ac_f cannot contain `:'. 15130 test -f "$ac_f" || 15131 case $ac_f in 15132 [\\/$]*) false;; 15133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15134 esac || 15135 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15136$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15137 { (exit 1); exit 1; }; };; 15138 esac 15139 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15140 ac_file_inputs="$ac_file_inputs '$ac_f'" 15141 done 15142 15143 # Let's still pretend it is `configure' which instantiates (i.e., don't 15144 # use $as_me), people would be surprised to read: 15145 # /* config.h. Generated by config.status. */ 15146 configure_input='Generated from '` 15147 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15148 `' by configure.' 15149 if test x"$ac_file" != x-; then 15150 configure_input="$ac_file. $configure_input" 15151 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 15152$as_echo "$as_me: creating $ac_file" >&6;} 15153 fi 15154 # Neutralize special characters interpreted by sed in replacement strings. 15155 case $configure_input in #( 15156 *\&* | *\|* | *\\* ) 15157 ac_sed_conf_input=`$as_echo "$configure_input" | 15158 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15159 *) ac_sed_conf_input=$configure_input;; 15160 esac 15161 15162 case $ac_tag in 15163 *:-:* | *:-) cat >"$tmp/stdin" \ 15164 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15165$as_echo "$as_me: error: could not create $ac_file" >&2;} 15166 { (exit 1); exit 1; }; } ;; 15167 esac 15168 ;; 15169 esac 15170 15171 ac_dir=`$as_dirname -- "$ac_file" || 15172$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15173 X"$ac_file" : 'X\(//\)[^/]' \| \ 15174 X"$ac_file" : 'X\(//\)$' \| \ 15175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15176$as_echo X"$ac_file" | 15177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15178 s//\1/ 15179 q 15180 } 15181 /^X\(\/\/\)[^/].*/{ 15182 s//\1/ 15183 q 15184 } 15185 /^X\(\/\/\)$/{ 15186 s//\1/ 15187 q 15188 } 15189 /^X\(\/\).*/{ 15190 s//\1/ 15191 q 15192 } 15193 s/.*/./; q'` 15194 { as_dir="$ac_dir" 15195 case $as_dir in #( 15196 -*) as_dir=./$as_dir;; 15197 esac 15198 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15199 as_dirs= 15200 while :; do 15201 case $as_dir in #( 15202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15203 *) as_qdir=$as_dir;; 15204 esac 15205 as_dirs="'$as_qdir' $as_dirs" 15206 as_dir=`$as_dirname -- "$as_dir" || 15207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15208 X"$as_dir" : 'X\(//\)[^/]' \| \ 15209 X"$as_dir" : 'X\(//\)$' \| \ 15210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15211$as_echo X"$as_dir" | 15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15213 s//\1/ 15214 q 15215 } 15216 /^X\(\/\/\)[^/].*/{ 15217 s//\1/ 15218 q 15219 } 15220 /^X\(\/\/\)$/{ 15221 s//\1/ 15222 q 15223 } 15224 /^X\(\/\).*/{ 15225 s//\1/ 15226 q 15227 } 15228 s/.*/./; q'` 15229 test -d "$as_dir" && break 15230 done 15231 test -z "$as_dirs" || eval "mkdir $as_dirs" 15232 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15233$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15234 { (exit 1); exit 1; }; }; } 15235 ac_builddir=. 15236 15237case "$ac_dir" in 15238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15239*) 15240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15241 # A ".." for each directory in $ac_dir_suffix. 15242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15243 case $ac_top_builddir_sub in 15244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15246 esac ;; 15247esac 15248ac_abs_top_builddir=$ac_pwd 15249ac_abs_builddir=$ac_pwd$ac_dir_suffix 15250# for backward compatibility: 15251ac_top_builddir=$ac_top_build_prefix 15252 15253case $srcdir in 15254 .) # We are building in place. 15255 ac_srcdir=. 15256 ac_top_srcdir=$ac_top_builddir_sub 15257 ac_abs_top_srcdir=$ac_pwd ;; 15258 [\\/]* | ?:[\\/]* ) # Absolute name. 15259 ac_srcdir=$srcdir$ac_dir_suffix; 15260 ac_top_srcdir=$srcdir 15261 ac_abs_top_srcdir=$srcdir ;; 15262 *) # Relative name. 15263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15264 ac_top_srcdir=$ac_top_build_prefix$srcdir 15265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15266esac 15267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15268 15269 15270 case $ac_mode in 15271 :F) 15272 # 15273 # CONFIG_FILE 15274 # 15275 15276 case $INSTALL in 15277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15279 esac 15280 ac_MKDIR_P=$MKDIR_P 15281 case $MKDIR_P in 15282 [\\/$]* | ?:[\\/]* ) ;; 15283 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15284 esac 15285_ACEOF 15286 15287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15288# If the template does not know about datarootdir, expand it. 15289# FIXME: This hack should be removed a few years after 2.60. 15290ac_datarootdir_hack=; ac_datarootdir_seen= 15291 15292ac_sed_dataroot=' 15293/datarootdir/ { 15294 p 15295 q 15296} 15297/@datadir@/p 15298/@docdir@/p 15299/@infodir@/p 15300/@localedir@/p 15301/@mandir@/p 15302' 15303case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15304*datarootdir*) ac_datarootdir_seen=yes;; 15305*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15306 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15307$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15308_ACEOF 15309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15310 ac_datarootdir_hack=' 15311 s&@datadir@&$datadir&g 15312 s&@docdir@&$docdir&g 15313 s&@infodir@&$infodir&g 15314 s&@localedir@&$localedir&g 15315 s&@mandir@&$mandir&g 15316 s&\\\${datarootdir}&$datarootdir&g' ;; 15317esac 15318_ACEOF 15319 15320# Neutralize VPATH when `$srcdir' = `.'. 15321# Shell code in configure.ac might set extrasub. 15322# FIXME: do we really want to maintain this feature? 15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15324ac_sed_extra="$ac_vpsub 15325$extrasub 15326_ACEOF 15327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15328:t 15329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15330s|@configure_input@|$ac_sed_conf_input|;t t 15331s&@top_builddir@&$ac_top_builddir_sub&;t t 15332s&@top_build_prefix@&$ac_top_build_prefix&;t t 15333s&@srcdir@&$ac_srcdir&;t t 15334s&@abs_srcdir@&$ac_abs_srcdir&;t t 15335s&@top_srcdir@&$ac_top_srcdir&;t t 15336s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15337s&@builddir@&$ac_builddir&;t t 15338s&@abs_builddir@&$ac_abs_builddir&;t t 15339s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15340s&@INSTALL@&$ac_INSTALL&;t t 15341s&@MKDIR_P@&$ac_MKDIR_P&;t t 15342$ac_datarootdir_hack 15343" 15344eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15346$as_echo "$as_me: error: could not create $ac_file" >&2;} 15347 { (exit 1); exit 1; }; } 15348 15349test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15350 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15352 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15353which seems to be undefined. Please make sure it is defined." >&5 15354$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15355which seems to be undefined. Please make sure it is defined." >&2;} 15356 15357 rm -f "$tmp/stdin" 15358 case $ac_file in 15359 -) cat "$tmp/out" && rm -f "$tmp/out";; 15360 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15361 esac \ 15362 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15363$as_echo "$as_me: error: could not create $ac_file" >&2;} 15364 { (exit 1); exit 1; }; } 15365 ;; 15366 :H) 15367 # 15368 # CONFIG_HEADER 15369 # 15370 if test x"$ac_file" != x-; then 15371 { 15372 $as_echo "/* $configure_input */" \ 15373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15374 } >"$tmp/config.h" \ 15375 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15376$as_echo "$as_me: error: could not create $ac_file" >&2;} 15377 { (exit 1); exit 1; }; } 15378 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15379 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15380$as_echo "$as_me: $ac_file is unchanged" >&6;} 15381 else 15382 rm -f "$ac_file" 15383 mv "$tmp/config.h" "$ac_file" \ 15384 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15385$as_echo "$as_me: error: could not create $ac_file" >&2;} 15386 { (exit 1); exit 1; }; } 15387 fi 15388 else 15389 $as_echo "/* $configure_input */" \ 15390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15391 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15392$as_echo "$as_me: error: could not create -" >&2;} 15393 { (exit 1); exit 1; }; } 15394 fi 15395# Compute "$ac_file"'s index in $config_headers. 15396_am_arg="$ac_file" 15397_am_stamp_count=1 15398for _am_header in $config_headers :; do 15399 case $_am_header in 15400 $_am_arg | $_am_arg:* ) 15401 break ;; 15402 * ) 15403 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15404 esac 15405done 15406echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15407$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15408 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15409 X"$_am_arg" : 'X\(//\)$' \| \ 15410 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15411$as_echo X"$_am_arg" | 15412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15413 s//\1/ 15414 q 15415 } 15416 /^X\(\/\/\)[^/].*/{ 15417 s//\1/ 15418 q 15419 } 15420 /^X\(\/\/\)$/{ 15421 s//\1/ 15422 q 15423 } 15424 /^X\(\/\).*/{ 15425 s//\1/ 15426 q 15427 } 15428 s/.*/./; q'`/stamp-h$_am_stamp_count 15429 ;; 15430 15431 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15432$as_echo "$as_me: executing $ac_file commands" >&6;} 15433 ;; 15434 esac 15435 15436 15437 case $ac_file$ac_mode in 15438 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15439 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15440 # are listed without --file. Let's play safe and only enable the eval 15441 # if we detect the quoting. 15442 case $CONFIG_FILES in 15443 *\'*) eval set x "$CONFIG_FILES" ;; 15444 *) set x $CONFIG_FILES ;; 15445 esac 15446 shift 15447 for mf 15448 do 15449 # Strip MF so we end up with the name of the file. 15450 mf=`echo "$mf" | sed -e 's/:.*$//'` 15451 # Check whether this is an Automake generated Makefile or not. 15452 # We used to match only the files named `Makefile.in', but 15453 # some people rename them; so instead we look at the file content. 15454 # Grep'ing the first line is not enough: some people post-process 15455 # each Makefile.in and add a new line on top of each file to say so. 15456 # Grep'ing the whole file is not good either: AIX grep has a line 15457 # limit of 2048, but all sed's we know have understand at least 4000. 15458 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15459 dirpart=`$as_dirname -- "$mf" || 15460$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15461 X"$mf" : 'X\(//\)[^/]' \| \ 15462 X"$mf" : 'X\(//\)$' \| \ 15463 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15464$as_echo X"$mf" | 15465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15466 s//\1/ 15467 q 15468 } 15469 /^X\(\/\/\)[^/].*/{ 15470 s//\1/ 15471 q 15472 } 15473 /^X\(\/\/\)$/{ 15474 s//\1/ 15475 q 15476 } 15477 /^X\(\/\).*/{ 15478 s//\1/ 15479 q 15480 } 15481 s/.*/./; q'` 15482 else 15483 continue 15484 fi 15485 # Extract the definition of DEPDIR, am__include, and am__quote 15486 # from the Makefile without running `make'. 15487 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15488 test -z "$DEPDIR" && continue 15489 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15490 test -z "am__include" && continue 15491 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15492 # When using ansi2knr, U may be empty or an underscore; expand it 15493 U=`sed -n 's/^U = //p' < "$mf"` 15494 # Find all dependency output files, they are included files with 15495 # $(DEPDIR) in their names. We invoke sed twice because it is the 15496 # simplest approach to changing $(DEPDIR) to its actual value in the 15497 # expansion. 15498 for file in `sed -n " 15499 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15500 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15501 # Make sure the directory exists. 15502 test -f "$dirpart/$file" && continue 15503 fdir=`$as_dirname -- "$file" || 15504$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15505 X"$file" : 'X\(//\)[^/]' \| \ 15506 X"$file" : 'X\(//\)$' \| \ 15507 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15508$as_echo X"$file" | 15509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15510 s//\1/ 15511 q 15512 } 15513 /^X\(\/\/\)[^/].*/{ 15514 s//\1/ 15515 q 15516 } 15517 /^X\(\/\/\)$/{ 15518 s//\1/ 15519 q 15520 } 15521 /^X\(\/\).*/{ 15522 s//\1/ 15523 q 15524 } 15525 s/.*/./; q'` 15526 { as_dir=$dirpart/$fdir 15527 case $as_dir in #( 15528 -*) as_dir=./$as_dir;; 15529 esac 15530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15531 as_dirs= 15532 while :; do 15533 case $as_dir in #( 15534 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15535 *) as_qdir=$as_dir;; 15536 esac 15537 as_dirs="'$as_qdir' $as_dirs" 15538 as_dir=`$as_dirname -- "$as_dir" || 15539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15540 X"$as_dir" : 'X\(//\)[^/]' \| \ 15541 X"$as_dir" : 'X\(//\)$' \| \ 15542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15543$as_echo X"$as_dir" | 15544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15545 s//\1/ 15546 q 15547 } 15548 /^X\(\/\/\)[^/].*/{ 15549 s//\1/ 15550 q 15551 } 15552 /^X\(\/\/\)$/{ 15553 s//\1/ 15554 q 15555 } 15556 /^X\(\/\).*/{ 15557 s//\1/ 15558 q 15559 } 15560 s/.*/./; q'` 15561 test -d "$as_dir" && break 15562 done 15563 test -z "$as_dirs" || eval "mkdir $as_dirs" 15564 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15565$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15566 { (exit 1); exit 1; }; }; } 15567 # echo "creating $dirpart/$file" 15568 echo '# dummy' > "$dirpart/$file" 15569 done 15570 done 15571} 15572 ;; 15573 "libtool":C) 15574 15575 # See if we are running on zsh, and set the options which allow our 15576 # commands through without removal of \ escapes. 15577 if test -n "${ZSH_VERSION+set}" ; then 15578 setopt NO_GLOB_SUBST 15579 fi 15580 15581 cfgfile="${ofile}T" 15582 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15583 $RM "$cfgfile" 15584 15585 cat <<_LT_EOF >> "$cfgfile" 15586#! $SHELL 15587 15588# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15589# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15591# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15592# 15593# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15594# 2006, 2007, 2008 Free Software Foundation, Inc. 15595# Written by Gordon Matzigkeit, 1996 15596# 15597# This file is part of GNU Libtool. 15598# 15599# GNU Libtool is free software; you can redistribute it and/or 15600# modify it under the terms of the GNU General Public License as 15601# published by the Free Software Foundation; either version 2 of 15602# the License, or (at your option) any later version. 15603# 15604# As a special exception to the GNU General Public License, 15605# if you distribute this file as part of a program or library that 15606# is built using GNU Libtool, you may include this file under the 15607# same distribution terms that you use for the rest of that program. 15608# 15609# GNU Libtool is distributed in the hope that it will be useful, 15610# but WITHOUT ANY WARRANTY; without even the implied warranty of 15611# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15612# GNU General Public License for more details. 15613# 15614# You should have received a copy of the GNU General Public License 15615# along with GNU Libtool; see the file COPYING. If not, a copy 15616# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15617# obtained by writing to the Free Software Foundation, Inc., 15618# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15619 15620 15621# The names of the tagged configurations supported by this script. 15622available_tags="" 15623 15624# ### BEGIN LIBTOOL CONFIG 15625 15626# Whether or not to build static libraries. 15627build_old_libs=$enable_static 15628 15629# Which release of libtool.m4 was used? 15630macro_version=$macro_version 15631macro_revision=$macro_revision 15632 15633# Whether or not to build shared libraries. 15634build_libtool_libs=$enable_shared 15635 15636# What type of objects to build. 15637pic_mode=$pic_mode 15638 15639# Whether or not to optimize for fast installation. 15640fast_install=$enable_fast_install 15641 15642# The host system. 15643host_alias=$host_alias 15644host=$host 15645host_os=$host_os 15646 15647# The build system. 15648build_alias=$build_alias 15649build=$build 15650build_os=$build_os 15651 15652# A sed program that does not truncate output. 15653SED=$lt_SED 15654 15655# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15656Xsed="\$SED -e 1s/^X//" 15657 15658# A grep program that handles long lines. 15659GREP=$lt_GREP 15660 15661# An ERE matcher. 15662EGREP=$lt_EGREP 15663 15664# A literal string matcher. 15665FGREP=$lt_FGREP 15666 15667# A BSD- or MS-compatible name lister. 15668NM=$lt_NM 15669 15670# Whether we need soft or hard links. 15671LN_S=$lt_LN_S 15672 15673# What is the maximum length of a command? 15674max_cmd_len=$max_cmd_len 15675 15676# Object file suffix (normally "o"). 15677objext=$ac_objext 15678 15679# Executable file suffix (normally ""). 15680exeext=$exeext 15681 15682# whether the shell understands "unset". 15683lt_unset=$lt_unset 15684 15685# turn spaces into newlines. 15686SP2NL=$lt_lt_SP2NL 15687 15688# turn newlines into spaces. 15689NL2SP=$lt_lt_NL2SP 15690 15691# How to create reloadable object files. 15692reload_flag=$lt_reload_flag 15693reload_cmds=$lt_reload_cmds 15694 15695# An object symbol dumper. 15696OBJDUMP=$lt_OBJDUMP 15697 15698# Method to check whether dependent libraries are shared objects. 15699deplibs_check_method=$lt_deplibs_check_method 15700 15701# Command to use when deplibs_check_method == "file_magic". 15702file_magic_cmd=$lt_file_magic_cmd 15703 15704# The archiver. 15705AR=$lt_AR 15706AR_FLAGS=$lt_AR_FLAGS 15707 15708# A symbol stripping program. 15709STRIP=$lt_STRIP 15710 15711# Commands used to install an old-style archive. 15712RANLIB=$lt_RANLIB 15713old_postinstall_cmds=$lt_old_postinstall_cmds 15714old_postuninstall_cmds=$lt_old_postuninstall_cmds 15715 15716# A C compiler. 15717LTCC=$lt_CC 15718 15719# LTCC compiler flags. 15720LTCFLAGS=$lt_CFLAGS 15721 15722# Take the output of nm and produce a listing of raw symbols and C names. 15723global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15724 15725# Transform the output of nm in a proper C declaration. 15726global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15727 15728# Transform the output of nm in a C name address pair. 15729global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15730 15731# Transform the output of nm in a C name address pair when lib prefix is needed. 15732global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15733 15734# The name of the directory that contains temporary libtool files. 15735objdir=$objdir 15736 15737# Shell to use when invoking shell scripts. 15738SHELL=$lt_SHELL 15739 15740# An echo program that does not interpret backslashes. 15741ECHO=$lt_ECHO 15742 15743# Used to examine libraries when file_magic_cmd begins with "file". 15744MAGIC_CMD=$MAGIC_CMD 15745 15746# Must we lock files when doing compilation? 15747need_locks=$lt_need_locks 15748 15749# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15750DSYMUTIL=$lt_DSYMUTIL 15751 15752# Tool to change global to local symbols on Mac OS X. 15753NMEDIT=$lt_NMEDIT 15754 15755# Tool to manipulate fat objects and archives on Mac OS X. 15756LIPO=$lt_LIPO 15757 15758# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15759OTOOL=$lt_OTOOL 15760 15761# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15762OTOOL64=$lt_OTOOL64 15763 15764# Old archive suffix (normally "a"). 15765libext=$libext 15766 15767# Shared library suffix (normally ".so"). 15768shrext_cmds=$lt_shrext_cmds 15769 15770# The commands to extract the exported symbol list from a shared archive. 15771extract_expsyms_cmds=$lt_extract_expsyms_cmds 15772 15773# Variables whose values should be saved in libtool wrapper scripts and 15774# restored at link time. 15775variables_saved_for_relink=$lt_variables_saved_for_relink 15776 15777# Do we need the "lib" prefix for modules? 15778need_lib_prefix=$need_lib_prefix 15779 15780# Do we need a version for libraries? 15781need_version=$need_version 15782 15783# Library versioning type. 15784version_type=$version_type 15785 15786# Shared library runtime path variable. 15787runpath_var=$runpath_var 15788 15789# Shared library path variable. 15790shlibpath_var=$shlibpath_var 15791 15792# Is shlibpath searched before the hard-coded library search path? 15793shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15794 15795# Format of library name prefix. 15796libname_spec=$lt_libname_spec 15797 15798# List of archive names. First name is the real one, the rest are links. 15799# The last name is the one that the linker finds with -lNAME 15800library_names_spec=$lt_library_names_spec 15801 15802# The coded name of the library, if different from the real name. 15803soname_spec=$lt_soname_spec 15804 15805# Command to use after installation of a shared archive. 15806postinstall_cmds=$lt_postinstall_cmds 15807 15808# Command to use after uninstallation of a shared archive. 15809postuninstall_cmds=$lt_postuninstall_cmds 15810 15811# Commands used to finish a libtool library installation in a directory. 15812finish_cmds=$lt_finish_cmds 15813 15814# As "finish_cmds", except a single script fragment to be evaled but 15815# not shown. 15816finish_eval=$lt_finish_eval 15817 15818# Whether we should hardcode library paths into libraries. 15819hardcode_into_libs=$hardcode_into_libs 15820 15821# Compile-time system search path for libraries. 15822sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15823 15824# Run-time system search path for libraries. 15825sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15826 15827# Whether dlopen is supported. 15828dlopen_support=$enable_dlopen 15829 15830# Whether dlopen of programs is supported. 15831dlopen_self=$enable_dlopen_self 15832 15833# Whether dlopen of statically linked programs is supported. 15834dlopen_self_static=$enable_dlopen_self_static 15835 15836# Commands to strip libraries. 15837old_striplib=$lt_old_striplib 15838striplib=$lt_striplib 15839 15840 15841# The linker used to build libraries. 15842LD=$lt_LD 15843 15844# Commands used to build an old-style archive. 15845old_archive_cmds=$lt_old_archive_cmds 15846 15847# A language specific compiler. 15848CC=$lt_compiler 15849 15850# Is the compiler the GNU compiler? 15851with_gcc=$GCC 15852 15853# Compiler flag to turn off builtin functions. 15854no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15855 15856# How to pass a linker flag through the compiler. 15857wl=$lt_lt_prog_compiler_wl 15858 15859# Additional compiler flags for building library objects. 15860pic_flag=$lt_lt_prog_compiler_pic 15861 15862# Compiler flag to prevent dynamic linking. 15863link_static_flag=$lt_lt_prog_compiler_static 15864 15865# Does compiler simultaneously support -c and -o options? 15866compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15867 15868# Whether or not to add -lc for building shared libraries. 15869build_libtool_need_lc=$archive_cmds_need_lc 15870 15871# Whether or not to disallow shared libs when runtime libs are static. 15872allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15873 15874# Compiler flag to allow reflexive dlopens. 15875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15876 15877# Compiler flag to generate shared objects directly from archives. 15878whole_archive_flag_spec=$lt_whole_archive_flag_spec 15879 15880# Whether the compiler copes with passing no objects directly. 15881compiler_needs_object=$lt_compiler_needs_object 15882 15883# Create an old-style archive from a shared archive. 15884old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15885 15886# Create a temporary old-style archive to link instead of a shared archive. 15887old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15888 15889# Commands used to build a shared archive. 15890archive_cmds=$lt_archive_cmds 15891archive_expsym_cmds=$lt_archive_expsym_cmds 15892 15893# Commands used to build a loadable module if different from building 15894# a shared archive. 15895module_cmds=$lt_module_cmds 15896module_expsym_cmds=$lt_module_expsym_cmds 15897 15898# Whether we are building with GNU ld or not. 15899with_gnu_ld=$lt_with_gnu_ld 15900 15901# Flag that allows shared libraries with undefined symbols to be built. 15902allow_undefined_flag=$lt_allow_undefined_flag 15903 15904# Flag that enforces no undefined symbols. 15905no_undefined_flag=$lt_no_undefined_flag 15906 15907# Flag to hardcode \$libdir into a binary during linking. 15908# This must work even if \$libdir does not exist 15909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15910 15911# If ld is used when linking, flag to hardcode \$libdir into a binary 15912# during linking. This must work even if \$libdir does not exist. 15913hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15914 15915# Whether we need a single "-rpath" flag with a separated argument. 15916hardcode_libdir_separator=$lt_hardcode_libdir_separator 15917 15918# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15919# DIR into the resulting binary. 15920hardcode_direct=$hardcode_direct 15921 15922# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15923# DIR into the resulting binary and the resulting library dependency is 15924# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15925# library is relocated. 15926hardcode_direct_absolute=$hardcode_direct_absolute 15927 15928# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15929# into the resulting binary. 15930hardcode_minus_L=$hardcode_minus_L 15931 15932# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15933# into the resulting binary. 15934hardcode_shlibpath_var=$hardcode_shlibpath_var 15935 15936# Set to "yes" if building a shared library automatically hardcodes DIR 15937# into the library and all subsequent libraries and executables linked 15938# against it. 15939hardcode_automatic=$hardcode_automatic 15940 15941# Set to yes if linker adds runtime paths of dependent libraries 15942# to runtime path list. 15943inherit_rpath=$inherit_rpath 15944 15945# Whether libtool must link a program against all its dependency libraries. 15946link_all_deplibs=$link_all_deplibs 15947 15948# Fix the shell variable \$srcfile for the compiler. 15949fix_srcfile_path=$lt_fix_srcfile_path 15950 15951# Set to "yes" if exported symbols are required. 15952always_export_symbols=$always_export_symbols 15953 15954# The commands to list exported symbols. 15955export_symbols_cmds=$lt_export_symbols_cmds 15956 15957# Symbols that should not be listed in the preloaded symbols. 15958exclude_expsyms=$lt_exclude_expsyms 15959 15960# Symbols that must always be exported. 15961include_expsyms=$lt_include_expsyms 15962 15963# Commands necessary for linking programs (against libraries) with templates. 15964prelink_cmds=$lt_prelink_cmds 15965 15966# Specify filename containing input files. 15967file_list_spec=$lt_file_list_spec 15968 15969# How to hardcode a shared library path into an executable. 15970hardcode_action=$hardcode_action 15971 15972# ### END LIBTOOL CONFIG 15973 15974_LT_EOF 15975 15976 case $host_os in 15977 aix3*) 15978 cat <<\_LT_EOF >> "$cfgfile" 15979# AIX sometimes has problems with the GCC collect2 program. For some 15980# reason, if we set the COLLECT_NAMES environment variable, the problems 15981# vanish in a puff of smoke. 15982if test "X${COLLECT_NAMES+set}" != Xset; then 15983 COLLECT_NAMES= 15984 export COLLECT_NAMES 15985fi 15986_LT_EOF 15987 ;; 15988 esac 15989 15990 15991ltmain="$ac_aux_dir/ltmain.sh" 15992 15993 15994 # We use sed instead of cat because bash on DJGPP gets confused if 15995 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15996 # text mode, it properly converts lines to CR/LF. This bash problem 15997 # is reportedly fixed, but why not run on old versions too? 15998 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15999 || (rm -f "$cfgfile"; exit 1) 16000 16001 case $xsi_shell in 16002 yes) 16003 cat << \_LT_EOF >> "$cfgfile" 16004 16005# func_dirname file append nondir_replacement 16006# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16007# otherwise set result to NONDIR_REPLACEMENT. 16008func_dirname () 16009{ 16010 case ${1} in 16011 */*) func_dirname_result="${1%/*}${2}" ;; 16012 * ) func_dirname_result="${3}" ;; 16013 esac 16014} 16015 16016# func_basename file 16017func_basename () 16018{ 16019 func_basename_result="${1##*/}" 16020} 16021 16022# func_dirname_and_basename file append nondir_replacement 16023# perform func_basename and func_dirname in a single function 16024# call: 16025# dirname: Compute the dirname of FILE. If nonempty, 16026# add APPEND to the result, otherwise set result 16027# to NONDIR_REPLACEMENT. 16028# value returned in "$func_dirname_result" 16029# basename: Compute filename of FILE. 16030# value retuned in "$func_basename_result" 16031# Implementation must be kept synchronized with func_dirname 16032# and func_basename. For efficiency, we do not delegate to 16033# those functions but instead duplicate the functionality here. 16034func_dirname_and_basename () 16035{ 16036 case ${1} in 16037 */*) func_dirname_result="${1%/*}${2}" ;; 16038 * ) func_dirname_result="${3}" ;; 16039 esac 16040 func_basename_result="${1##*/}" 16041} 16042 16043# func_stripname prefix suffix name 16044# strip PREFIX and SUFFIX off of NAME. 16045# PREFIX and SUFFIX must not contain globbing or regex special 16046# characters, hashes, percent signs, but SUFFIX may contain a leading 16047# dot (in which case that matches only a dot). 16048func_stripname () 16049{ 16050 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16051 # positional parameters, so assign one to ordinary parameter first. 16052 func_stripname_result=${3} 16053 func_stripname_result=${func_stripname_result#"${1}"} 16054 func_stripname_result=${func_stripname_result%"${2}"} 16055} 16056 16057# func_opt_split 16058func_opt_split () 16059{ 16060 func_opt_split_opt=${1%%=*} 16061 func_opt_split_arg=${1#*=} 16062} 16063 16064# func_lo2o object 16065func_lo2o () 16066{ 16067 case ${1} in 16068 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16069 *) func_lo2o_result=${1} ;; 16070 esac 16071} 16072 16073# func_xform libobj-or-source 16074func_xform () 16075{ 16076 func_xform_result=${1%.*}.lo 16077} 16078 16079# func_arith arithmetic-term... 16080func_arith () 16081{ 16082 func_arith_result=$(( $* )) 16083} 16084 16085# func_len string 16086# STRING may not start with a hyphen. 16087func_len () 16088{ 16089 func_len_result=${#1} 16090} 16091 16092_LT_EOF 16093 ;; 16094 *) # Bourne compatible functions. 16095 cat << \_LT_EOF >> "$cfgfile" 16096 16097# func_dirname file append nondir_replacement 16098# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16099# otherwise set result to NONDIR_REPLACEMENT. 16100func_dirname () 16101{ 16102 # Extract subdirectory from the argument. 16103 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 16104 if test "X$func_dirname_result" = "X${1}"; then 16105 func_dirname_result="${3}" 16106 else 16107 func_dirname_result="$func_dirname_result${2}" 16108 fi 16109} 16110 16111# func_basename file 16112func_basename () 16113{ 16114 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 16115} 16116 16117 16118# func_stripname prefix suffix name 16119# strip PREFIX and SUFFIX off of NAME. 16120# PREFIX and SUFFIX must not contain globbing or regex special 16121# characters, hashes, percent signs, but SUFFIX may contain a leading 16122# dot (in which case that matches only a dot). 16123# func_strip_suffix prefix name 16124func_stripname () 16125{ 16126 case ${2} in 16127 .*) func_stripname_result=`$ECHO "X${3}" \ 16128 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 16129 *) func_stripname_result=`$ECHO "X${3}" \ 16130 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 16131 esac 16132} 16133 16134# sed scripts: 16135my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16136my_sed_long_arg='1s/^-[^=]*=//' 16137 16138# func_opt_split 16139func_opt_split () 16140{ 16141 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 16142 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 16143} 16144 16145# func_lo2o object 16146func_lo2o () 16147{ 16148 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 16149} 16150 16151# func_xform libobj-or-source 16152func_xform () 16153{ 16154 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 16155} 16156 16157# func_arith arithmetic-term... 16158func_arith () 16159{ 16160 func_arith_result=`expr "$@"` 16161} 16162 16163# func_len string 16164# STRING may not start with a hyphen. 16165func_len () 16166{ 16167 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16168} 16169 16170_LT_EOF 16171esac 16172 16173case $lt_shell_append in 16174 yes) 16175 cat << \_LT_EOF >> "$cfgfile" 16176 16177# func_append var value 16178# Append VALUE to the end of shell variable VAR. 16179func_append () 16180{ 16181 eval "$1+=\$2" 16182} 16183_LT_EOF 16184 ;; 16185 *) 16186 cat << \_LT_EOF >> "$cfgfile" 16187 16188# func_append var value 16189# Append VALUE to the end of shell variable VAR. 16190func_append () 16191{ 16192 eval "$1=\$$1\$2" 16193} 16194 16195_LT_EOF 16196 ;; 16197 esac 16198 16199 16200 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16201 || (rm -f "$cfgfile"; exit 1) 16202 16203 mv -f "$cfgfile" "$ofile" || 16204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16205 chmod +x "$ofile" 16206 16207 ;; 16208 16209 esac 16210done # for ac_tag 16211 16212 16213{ (exit 0); exit 0; } 16214_ACEOF 16215chmod +x $CONFIG_STATUS 16216ac_clean_files=$ac_clean_files_save 16217 16218test $ac_write_fail = 0 || 16219 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 16220$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 16221 { (exit 1); exit 1; }; } 16222 16223 16224# configure is writing to config.log, and then calls config.status. 16225# config.status does its own redirection, appending to config.log. 16226# Unfortunately, on DOS this fails, as config.log is still kept open 16227# by configure, so config.status won't be able to write to it; its 16228# output is simply discarded. So we exec the FD to /dev/null, 16229# effectively closing config.log, so it can be properly (re)opened and 16230# appended to by config.status. When coming back to configure, we 16231# need to make the FD available again. 16232if test "$no_create" != yes; then 16233 ac_cs_success=: 16234 ac_config_status_args= 16235 test "$silent" = yes && 16236 ac_config_status_args="$ac_config_status_args --quiet" 16237 exec 5>/dev/null 16238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16239 exec 5>>config.log 16240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16241 # would make configure fail if this is the last instruction. 16242 $ac_cs_success || { (exit 1); exit 1; } 16243fi 16244if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16245 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16246$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16247fi 16248 16249