configure revision 34977a2f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-input-keyboard 1.4.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='xf86-input-keyboard' 747PACKAGE_TARNAME='xf86-input-keyboard' 748PACKAGE_VERSION='1.4.0' 749PACKAGE_STRING='xf86-input-keyboard 1.4.0' 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 793ADMIN_MAN_DIR 794DRIVER_MAN_DIR 795MISC_MAN_DIR 796FILE_MAN_DIR 797LIB_MAN_DIR 798APP_MAN_DIR 799ADMIN_MAN_SUFFIX 800DRIVER_MAN_SUFFIX 801MISC_MAN_SUFFIX 802FILE_MAN_SUFFIX 803LIB_MAN_SUFFIX 804APP_MAN_SUFFIX 805distcleancheck_listfiles 806CHANGELOG_CMD 807AM_BACKSLASH 808AM_DEFAULT_VERBOSITY 809CWARNFLAGS 810XORG_LIBS 811XORG_CFLAGS 812PKG_CONFIG 813moduledir 814SCO_FALSE 815SCO_TRUE 816HURD_FALSE 817HURD_TRUE 818SOLARIS_FALSE 819SOLARIS_TRUE 820BSD_FALSE 821BSD_TRUE 822LINUX_FALSE 823LINUX_TRUE 824CPP 825OTOOL64 826OTOOL 827LIPO 828NMEDIT 829DSYMUTIL 830lt_ECHO 831RANLIB 832AR 833OBJDUMP 834LN_S 835NM 836ac_ct_DUMPBIN 837DUMPBIN 838LD 839FGREP 840EGREP 841GREP 842SED 843am__fastdepCC_FALSE 844am__fastdepCC_TRUE 845CCDEPMODE 846AMDEPBACKSLASH 847AMDEP_FALSE 848AMDEP_TRUE 849am__quote 850am__include 851DEPDIR 852OBJEXT 853EXEEXT 854ac_ct_CC 855CPPFLAGS 856LDFLAGS 857CFLAGS 858CC 859host_os 860host_vendor 861host_cpu 862host 863build_os 864build_vendor 865build_cpu 866build 867LIBTOOL 868DRIVER_NAME 869MAINT 870MAINTAINER_MODE_FALSE 871MAINTAINER_MODE_TRUE 872am__untar 873am__tar 874AMTAR 875am__leading_dot 876SET_MAKE 877AWK 878mkdir_p 879MKDIR_P 880INSTALL_STRIP_PROGRAM 881STRIP 882install_sh 883MAKEINFO 884AUTOHEADER 885AUTOMAKE 886AUTOCONF 887ACLOCAL 888VERSION 889PACKAGE 890CYGPATH_W 891am__isrc 892INSTALL_DATA 893INSTALL_SCRIPT 894INSTALL_PROGRAM 895target_alias 896host_alias 897build_alias 898LIBS 899ECHO_T 900ECHO_N 901ECHO_C 902DEFS 903mandir 904localedir 905libdir 906psdir 907pdfdir 908dvidir 909htmldir 910infodir 911docdir 912oldincludedir 913includedir 914localstatedir 915sharedstatedir 916sysconfdir 917datadir 918datarootdir 919libexecdir 920sbindir 921bindir 922program_transform_name 923prefix 924exec_prefix 925PACKAGE_BUGREPORT 926PACKAGE_STRING 927PACKAGE_VERSION 928PACKAGE_TARNAME 929PACKAGE_NAME 930PATH_SEPARATOR 931SHELL' 932ac_subst_files='' 933ac_user_opts=' 934enable_option_checking 935enable_maintainer_mode 936enable_static 937enable_shared 938with_pic 939enable_fast_install 940enable_dependency_tracking 941with_gnu_ld 942enable_libtool_lock 943with_xorg_module_dir 944enable_silent_rules 945enable_strict_compilation 946with_release_version 947' 948 ac_precious_vars='build_alias 949host_alias 950target_alias 951CC 952CFLAGS 953LDFLAGS 954LIBS 955CPPFLAGS 956CPP 957PKG_CONFIG 958XORG_CFLAGS 959XORG_LIBS' 960 961 962# Initialize some variables set by options. 963ac_init_help= 964ac_init_version=false 965ac_unrecognized_opts= 966ac_unrecognized_sep= 967# The variables have the same names as the options, with 968# dashes changed to underlines. 969cache_file=/dev/null 970exec_prefix=NONE 971no_create= 972no_recursion= 973prefix=NONE 974program_prefix=NONE 975program_suffix=NONE 976program_transform_name=s,x,x, 977silent= 978site= 979srcdir= 980verbose= 981x_includes=NONE 982x_libraries=NONE 983 984# Installation directory options. 985# These are left unexpanded so users can "make install exec_prefix=/foo" 986# and all the variables that are supposed to be based on exec_prefix 987# by default will actually change. 988# Use braces instead of parens because sh, perl, etc. also accept them. 989# (The list follows the same order as the GNU Coding Standards.) 990bindir='${exec_prefix}/bin' 991sbindir='${exec_prefix}/sbin' 992libexecdir='${exec_prefix}/libexec' 993datarootdir='${prefix}/share' 994datadir='${datarootdir}' 995sysconfdir='${prefix}/etc' 996sharedstatedir='${prefix}/com' 997localstatedir='${prefix}/var' 998includedir='${prefix}/include' 999oldincludedir='/usr/include' 1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1001infodir='${datarootdir}/info' 1002htmldir='${docdir}' 1003dvidir='${docdir}' 1004pdfdir='${docdir}' 1005psdir='${docdir}' 1006libdir='${exec_prefix}/lib' 1007localedir='${datarootdir}/locale' 1008mandir='${datarootdir}/man' 1009 1010ac_prev= 1011ac_dashdash= 1012for ac_option 1013do 1014 # If the previous option needs an argument, assign it. 1015 if test -n "$ac_prev"; then 1016 eval $ac_prev=\$ac_option 1017 ac_prev= 1018 continue 1019 fi 1020 1021 case $ac_option in 1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1023 *) ac_optarg=yes ;; 1024 esac 1025 1026 # Accept the important Cygnus configure options, so we can diagnose typos. 1027 1028 case $ac_dashdash$ac_option in 1029 --) 1030 ac_dashdash=yes ;; 1031 1032 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1033 ac_prev=bindir ;; 1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1035 bindir=$ac_optarg ;; 1036 1037 -build | --build | --buil | --bui | --bu) 1038 ac_prev=build_alias ;; 1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1040 build_alias=$ac_optarg ;; 1041 1042 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1044 ac_prev=cache_file ;; 1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1047 cache_file=$ac_optarg ;; 1048 1049 --config-cache | -C) 1050 cache_file=config.cache ;; 1051 1052 -datadir | --datadir | --datadi | --datad) 1053 ac_prev=datadir ;; 1054 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1055 datadir=$ac_optarg ;; 1056 1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1058 | --dataroo | --dataro | --datar) 1059 ac_prev=datarootdir ;; 1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1062 datarootdir=$ac_optarg ;; 1063 1064 -disable-* | --disable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_useropt_orig=$ac_useropt 1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1072 case $ac_user_opts in 1073 *" 1074"enable_$ac_useropt" 1075"*) ;; 1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1077 ac_unrecognized_sep=', ';; 1078 esac 1079 eval enable_$ac_useropt=no ;; 1080 1081 -docdir | --docdir | --docdi | --doc | --do) 1082 ac_prev=docdir ;; 1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1084 docdir=$ac_optarg ;; 1085 1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1087 ac_prev=dvidir ;; 1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1089 dvidir=$ac_optarg ;; 1090 1091 -enable-* | --enable-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1096 { (exit 1); exit 1; }; } 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"enable_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval enable_$ac_useropt=\$ac_optarg ;; 1107 1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1110 | --exec | --exe | --ex) 1111 ac_prev=exec_prefix ;; 1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1114 | --exec=* | --exe=* | --ex=*) 1115 exec_prefix=$ac_optarg ;; 1116 1117 -gas | --gas | --ga | --g) 1118 # Obsolete; use --with-gas. 1119 with_gas=yes ;; 1120 1121 -help | --help | --hel | --he | -h) 1122 ac_init_help=long ;; 1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1124 ac_init_help=recursive ;; 1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1126 ac_init_help=short ;; 1127 1128 -host | --host | --hos | --ho) 1129 ac_prev=host_alias ;; 1130 -host=* | --host=* | --hos=* | --ho=*) 1131 host_alias=$ac_optarg ;; 1132 1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1134 ac_prev=htmldir ;; 1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1136 | --ht=*) 1137 htmldir=$ac_optarg ;; 1138 1139 -includedir | --includedir | --includedi | --included | --include \ 1140 | --includ | --inclu | --incl | --inc) 1141 ac_prev=includedir ;; 1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1143 | --includ=* | --inclu=* | --incl=* | --inc=*) 1144 includedir=$ac_optarg ;; 1145 1146 -infodir | --infodir | --infodi | --infod | --info | --inf) 1147 ac_prev=infodir ;; 1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1149 infodir=$ac_optarg ;; 1150 1151 -libdir | --libdir | --libdi | --libd) 1152 ac_prev=libdir ;; 1153 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1154 libdir=$ac_optarg ;; 1155 1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1157 | --libexe | --libex | --libe) 1158 ac_prev=libexecdir ;; 1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1160 | --libexe=* | --libex=* | --libe=*) 1161 libexecdir=$ac_optarg ;; 1162 1163 -localedir | --localedir | --localedi | --localed | --locale) 1164 ac_prev=localedir ;; 1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1166 localedir=$ac_optarg ;; 1167 1168 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1169 | --localstate | --localstat | --localsta | --localst | --locals) 1170 ac_prev=localstatedir ;; 1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1173 localstatedir=$ac_optarg ;; 1174 1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1176 ac_prev=mandir ;; 1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1178 mandir=$ac_optarg ;; 1179 1180 -nfp | --nfp | --nf) 1181 # Obsolete; use --without-fp. 1182 with_fp=no ;; 1183 1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1185 | --no-cr | --no-c | -n) 1186 no_create=yes ;; 1187 1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1190 no_recursion=yes ;; 1191 1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1194 | --oldin | --oldi | --old | --ol | --o) 1195 ac_prev=oldincludedir ;; 1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1199 oldincludedir=$ac_optarg ;; 1200 1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1202 ac_prev=prefix ;; 1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1204 prefix=$ac_optarg ;; 1205 1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1207 | --program-pre | --program-pr | --program-p) 1208 ac_prev=program_prefix ;; 1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1211 program_prefix=$ac_optarg ;; 1212 1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1214 | --program-suf | --program-su | --program-s) 1215 ac_prev=program_suffix ;; 1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1218 program_suffix=$ac_optarg ;; 1219 1220 -program-transform-name | --program-transform-name \ 1221 | --program-transform-nam | --program-transform-na \ 1222 | --program-transform-n | --program-transform- \ 1223 | --program-transform | --program-transfor \ 1224 | --program-transfo | --program-transf \ 1225 | --program-trans | --program-tran \ 1226 | --progr-tra | --program-tr | --program-t) 1227 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1236 1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1238 ac_prev=pdfdir ;; 1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1240 pdfdir=$ac_optarg ;; 1241 1242 -psdir | --psdir | --psdi | --psd | --ps) 1243 ac_prev=psdir ;; 1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1245 psdir=$ac_optarg ;; 1246 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 silent=yes ;; 1250 1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1252 ac_prev=sbindir ;; 1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1254 | --sbi=* | --sb=*) 1255 sbindir=$ac_optarg ;; 1256 1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1259 | --sharedst | --shareds | --shared | --share | --shar \ 1260 | --sha | --sh) 1261 ac_prev=sharedstatedir ;; 1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1265 | --sha=* | --sh=*) 1266 sharedstatedir=$ac_optarg ;; 1267 1268 -site | --site | --sit) 1269 ac_prev=site ;; 1270 -site=* | --site=* | --sit=*) 1271 site=$ac_optarg ;; 1272 1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1274 ac_prev=srcdir ;; 1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1276 srcdir=$ac_optarg ;; 1277 1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1279 | --syscon | --sysco | --sysc | --sys | --sy) 1280 ac_prev=sysconfdir ;; 1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1283 sysconfdir=$ac_optarg ;; 1284 1285 -target | --target | --targe | --targ | --tar | --ta | --t) 1286 ac_prev=target_alias ;; 1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1288 target_alias=$ac_optarg ;; 1289 1290 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1291 verbose=yes ;; 1292 1293 -version | --version | --versio | --versi | --vers | -V) 1294 ac_init_version=: ;; 1295 1296 -with-* | --with-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1301 { (exit 1); exit 1; }; } 1302 ac_useropt_orig=$ac_useropt 1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1304 case $ac_user_opts in 1305 *" 1306"with_$ac_useropt" 1307"*) ;; 1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1309 ac_unrecognized_sep=', ';; 1310 esac 1311 eval with_$ac_useropt=\$ac_optarg ;; 1312 1313 -without-* | --without-*) 1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1315 # Reject names that are not valid shell variable names. 1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1318 { (exit 1); exit 1; }; } 1319 ac_useropt_orig=$ac_useropt 1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1321 case $ac_user_opts in 1322 *" 1323"with_$ac_useropt" 1324"*) ;; 1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1326 ac_unrecognized_sep=', ';; 1327 esac 1328 eval with_$ac_useropt=no ;; 1329 1330 --x) 1331 # Obsolete; use --with-x. 1332 with_x=yes ;; 1333 1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1335 | --x-incl | --x-inc | --x-in | --x-i) 1336 ac_prev=x_includes ;; 1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1339 x_includes=$ac_optarg ;; 1340 1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1343 ac_prev=x_libraries ;; 1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1346 x_libraries=$ac_optarg ;; 1347 1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1349Try \`$0 --help' for more information." >&2 1350 { (exit 1); exit 1; }; } 1351 ;; 1352 1353 *=*) 1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1358 { (exit 1); exit 1; }; } 1359 eval $ac_envvar=\$ac_optarg 1360 export $ac_envvar ;; 1361 1362 *) 1363 # FIXME: should be removed in autoconf 3.0. 1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1368 ;; 1369 1370 esac 1371done 1372 1373if test -n "$ac_prev"; then 1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1376 { (exit 1); exit 1; }; } 1377fi 1378 1379if test -n "$ac_unrecognized_opts"; then 1380 case $enable_option_checking in 1381 no) ;; 1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1383 { (exit 1); exit 1; }; } ;; 1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1385 esac 1386fi 1387 1388# Check all directory arguments for consistency. 1389for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1390 datadir sysconfdir sharedstatedir localstatedir includedir \ 1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1392 libdir localedir mandir 1393do 1394 eval ac_val=\$$ac_var 1395 # Remove trailing slashes. 1396 case $ac_val in 1397 */ ) 1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1399 eval $ac_var=\$ac_val;; 1400 esac 1401 # Be sure to have absolute directory names. 1402 case $ac_val in 1403 [\\/$]* | ?:[\\/]* ) continue;; 1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1405 esac 1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1407 { (exit 1); exit 1; }; } 1408done 1409 1410# There might be people who depend on the old broken behavior: `$host' 1411# used to hold the argument of --host etc. 1412# FIXME: To remove some day. 1413build=$build_alias 1414host=$host_alias 1415target=$target_alias 1416 1417# FIXME: To remove some day. 1418if test "x$host_alias" != x; then 1419 if test "x$build_alias" = x; then 1420 cross_compiling=maybe 1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1422 If a cross compiler is detected then cross compile mode will be used." >&2 1423 elif test "x$build_alias" != "x$host_alias"; then 1424 cross_compiling=yes 1425 fi 1426fi 1427 1428ac_tool_prefix= 1429test -n "$host_alias" && ac_tool_prefix=$host_alias- 1430 1431test "$silent" = yes && exec 6>/dev/null 1432 1433 1434ac_pwd=`pwd` && test -n "$ac_pwd" && 1435ac_ls_di=`ls -di .` && 1436ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1438 { (exit 1); exit 1; }; } 1439test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1441 { (exit 1); exit 1; }; } 1442 1443 1444# Find the source files, if location was not specified. 1445if test -z "$srcdir"; then 1446 ac_srcdir_defaulted=yes 1447 # Try the directory containing this script, then the parent directory. 1448 ac_confdir=`$as_dirname -- "$as_myself" || 1449$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1450 X"$as_myself" : 'X\(//\)[^/]' \| \ 1451 X"$as_myself" : 'X\(//\)$' \| \ 1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1453$as_echo X"$as_myself" | 1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1455 s//\1/ 1456 q 1457 } 1458 /^X\(\/\/\)[^/].*/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\/\)$/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\).*/{ 1467 s//\1/ 1468 q 1469 } 1470 s/.*/./; q'` 1471 srcdir=$ac_confdir 1472 if test ! -r "$srcdir/$ac_unique_file"; then 1473 srcdir=.. 1474 fi 1475else 1476 ac_srcdir_defaulted=no 1477fi 1478if test ! -r "$srcdir/$ac_unique_file"; then 1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1481 { (exit 1); exit 1; }; } 1482fi 1483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1484ac_abs_confdir=`( 1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1486 { (exit 1); exit 1; }; } 1487 pwd)` 1488# When building in place, set srcdir=. 1489if test "$ac_abs_confdir" = "$ac_pwd"; then 1490 srcdir=. 1491fi 1492# Remove unnecessary trailing slashes from srcdir. 1493# Double slashes in file names in object file debugging info 1494# mess up M-x gdb in Emacs. 1495case $srcdir in 1496*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1497esac 1498for ac_var in $ac_precious_vars; do 1499 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1500 eval ac_env_${ac_var}_value=\$${ac_var} 1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1502 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1503done 1504 1505# 1506# Report the --help message. 1507# 1508if test "$ac_init_help" = "long"; then 1509 # Omit some internal or obsolete options to make the list less imposing. 1510 # This message is too long to be a string in the A/UX 3.1 sh. 1511 cat <<_ACEOF 1512\`configure' configures xf86-input-keyboard 1.4.0 to adapt to many kinds of systems. 1513 1514Usage: $0 [OPTION]... [VAR=VALUE]... 1515 1516To assign environment variables (e.g., CC, CFLAGS...), specify them as 1517VAR=VALUE. See below for descriptions of some of the useful variables. 1518 1519Defaults for the options are specified in brackets. 1520 1521Configuration: 1522 -h, --help display this help and exit 1523 --help=short display options specific to this package 1524 --help=recursive display the short help of all the included packages 1525 -V, --version display version information and exit 1526 -q, --quiet, --silent do not print \`checking...' messages 1527 --cache-file=FILE cache test results in FILE [disabled] 1528 -C, --config-cache alias for \`--cache-file=config.cache' 1529 -n, --no-create do not create output files 1530 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1531 1532Installation directories: 1533 --prefix=PREFIX install architecture-independent files in PREFIX 1534 [$ac_default_prefix] 1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1536 [PREFIX] 1537 1538By default, \`make install' will install all the files in 1539\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1540an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1541for instance \`--prefix=\$HOME'. 1542 1543For better control, use the options below. 1544 1545Fine tuning of the installation directories: 1546 --bindir=DIR user executables [EPREFIX/bin] 1547 --sbindir=DIR system admin executables [EPREFIX/sbin] 1548 --libexecdir=DIR program executables [EPREFIX/libexec] 1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1552 --libdir=DIR object code libraries [EPREFIX/lib] 1553 --includedir=DIR C header files [PREFIX/include] 1554 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1557 --infodir=DIR info documentation [DATAROOTDIR/info] 1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1559 --mandir=DIR man documentation [DATAROOTDIR/man] 1560 --docdir=DIR documentation root 1561 [DATAROOTDIR/doc/xf86-input-keyboard] 1562 --htmldir=DIR html documentation [DOCDIR] 1563 --dvidir=DIR dvi documentation [DOCDIR] 1564 --pdfdir=DIR pdf documentation [DOCDIR] 1565 --psdir=DIR ps documentation [DOCDIR] 1566_ACEOF 1567 1568 cat <<\_ACEOF 1569 1570Program names: 1571 --program-prefix=PREFIX prepend PREFIX to installed program names 1572 --program-suffix=SUFFIX append SUFFIX to installed program names 1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1574 1575System types: 1576 --build=BUILD configure for building on BUILD [guessed] 1577 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1578_ACEOF 1579fi 1580 1581if test -n "$ac_init_help"; then 1582 case $ac_init_help in 1583 short | recursive ) echo "Configuration of xf86-input-keyboard 1.4.0:";; 1584 esac 1585 cat <<\_ACEOF 1586 1587Optional Features: 1588 --disable-option-checking ignore unrecognized --enable/--with options 1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1591 --enable-maintainer-mode enable make rules and dependencies not useful 1592 (and sometimes confusing) to the casual installer 1593 --enable-static[=PKGS] build static libraries [default=no] 1594 --enable-shared[=PKGS] build shared libraries [default=yes] 1595 --enable-fast-install[=PKGS] 1596 optimize for fast installation [default=yes] 1597 --disable-dependency-tracking speeds up one-time build 1598 --enable-dependency-tracking do not reject slow dependency extractors 1599 --disable-libtool-lock avoid locking (might break parallel builds) 1600 --enable-silent-rules less verbose build output (undo: `make V=1') 1601 --disable-silent-rules verbose build output (undo: `make V=0') 1602 --enable-strict-compilation 1603 Enable all warnings from compiler and make them 1604 errors (default: disabled) 1605 1606Optional Packages: 1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1609 --with-pic try to use only PIC/non-PIC objects [default=use 1610 both] 1611 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1612 --with-xorg-module-dir=DIR 1613 Default xorg module directory 1614 [default=$libdir/xorg/modules] 1615 --with-release-version=STRING 1616 Use release version string in package name 1617 1618Some influential environment variables: 1619 CC C compiler command 1620 CFLAGS C compiler flags 1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1622 nonstandard directory <lib dir> 1623 LIBS libraries to pass to the linker, e.g. -l<library> 1624 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1625 you have headers in a nonstandard directory <include dir> 1626 CPP C preprocessor 1627 PKG_CONFIG path to pkg-config utility 1628 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1629 XORG_LIBS linker flags for XORG, overriding pkg-config 1630 1631Use these variables to override the choices made by `configure' or to help 1632it to find libraries and programs with nonstandard names/locations. 1633 1634Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1635_ACEOF 1636ac_status=$? 1637fi 1638 1639if test "$ac_init_help" = "recursive"; then 1640 # If there are subdirs, report their specific --help. 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1642 test -d "$ac_dir" || 1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1644 continue 1645 ac_builddir=. 1646 1647case "$ac_dir" in 1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649*) 1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1651 # A ".." for each directory in $ac_dir_suffix. 1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1653 case $ac_top_builddir_sub in 1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1656 esac ;; 1657esac 1658ac_abs_top_builddir=$ac_pwd 1659ac_abs_builddir=$ac_pwd$ac_dir_suffix 1660# for backward compatibility: 1661ac_top_builddir=$ac_top_build_prefix 1662 1663case $srcdir in 1664 .) # We are building in place. 1665 ac_srcdir=. 1666 ac_top_srcdir=$ac_top_builddir_sub 1667 ac_abs_top_srcdir=$ac_pwd ;; 1668 [\\/]* | ?:[\\/]* ) # Absolute name. 1669 ac_srcdir=$srcdir$ac_dir_suffix; 1670 ac_top_srcdir=$srcdir 1671 ac_abs_top_srcdir=$srcdir ;; 1672 *) # Relative name. 1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1674 ac_top_srcdir=$ac_top_build_prefix$srcdir 1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1676esac 1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1678 1679 cd "$ac_dir" || { ac_status=$?; continue; } 1680 # Check for guested configure. 1681 if test -f "$ac_srcdir/configure.gnu"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1684 elif test -f "$ac_srcdir/configure"; then 1685 echo && 1686 $SHELL "$ac_srcdir/configure" --help=recursive 1687 else 1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1689 fi || ac_status=$? 1690 cd "$ac_pwd" || { ac_status=$?; break; } 1691 done 1692fi 1693 1694test -n "$ac_init_help" && exit $ac_status 1695if $ac_init_version; then 1696 cat <<\_ACEOF 1697xf86-input-keyboard configure 1.4.0 1698generated by GNU Autoconf 2.63 1699 1700Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17012002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1702This configure script is free software; the Free Software Foundation 1703gives unlimited permission to copy, distribute and modify it. 1704_ACEOF 1705 exit 1706fi 1707cat >config.log <<_ACEOF 1708This file contains any messages produced by compilers while 1709running configure, to aid debugging if configure makes a mistake. 1710 1711It was created by xf86-input-keyboard $as_me 1.4.0, which was 1712generated by GNU Autoconf 2.63. Invocation command line was 1713 1714 $ $0 $@ 1715 1716_ACEOF 1717exec 5>>config.log 1718{ 1719cat <<_ASUNAME 1720## --------- ## 1721## Platform. ## 1722## --------- ## 1723 1724hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1725uname -m = `(uname -m) 2>/dev/null || echo unknown` 1726uname -r = `(uname -r) 2>/dev/null || echo unknown` 1727uname -s = `(uname -s) 2>/dev/null || echo unknown` 1728uname -v = `(uname -v) 2>/dev/null || echo unknown` 1729 1730/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1731/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1732 1733/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1734/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1735/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1736/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1737/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1738/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1739/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1740 1741_ASUNAME 1742 1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1744for as_dir in $PATH 1745do 1746 IFS=$as_save_IFS 1747 test -z "$as_dir" && as_dir=. 1748 $as_echo "PATH: $as_dir" 1749done 1750IFS=$as_save_IFS 1751 1752} >&5 1753 1754cat >&5 <<_ACEOF 1755 1756 1757## ----------- ## 1758## Core tests. ## 1759## ----------- ## 1760 1761_ACEOF 1762 1763 1764# Keep a trace of the command line. 1765# Strip out --no-create and --no-recursion so they do not pile up. 1766# Strip out --silent because we don't want to record it for future runs. 1767# Also quote any args containing shell meta-characters. 1768# Make two passes to allow for proper duplicate-argument suppression. 1769ac_configure_args= 1770ac_configure_args0= 1771ac_configure_args1= 1772ac_must_keep_next=false 1773for ac_pass in 1 2 1774do 1775 for ac_arg 1776 do 1777 case $ac_arg in 1778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1780 | -silent | --silent | --silen | --sile | --sil) 1781 continue ;; 1782 *\'*) 1783 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784 esac 1785 case $ac_pass in 1786 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1787 2) 1788 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1789 if test $ac_must_keep_next = true; then 1790 ac_must_keep_next=false # Got value, back to normal. 1791 else 1792 case $ac_arg in 1793 *=* | --config-cache | -C | -disable-* | --disable-* \ 1794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1796 | -with-* | --with-* | -without-* | --without-* | --x) 1797 case "$ac_configure_args0 " in 1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1799 esac 1800 ;; 1801 -* ) ac_must_keep_next=true ;; 1802 esac 1803 fi 1804 ac_configure_args="$ac_configure_args '$ac_arg'" 1805 ;; 1806 esac 1807 done 1808done 1809$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1810$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1811 1812# When interrupted or exit'd, cleanup temporary files, and complete 1813# config.log. We remove comments because anyway the quotes in there 1814# would cause problems or look ugly. 1815# WARNING: Use '\'' to represent an apostrophe within the trap. 1816# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1817trap 'exit_status=$? 1818 # Save into config.log some information that might help in debugging. 1819 { 1820 echo 1821 1822 cat <<\_ASBOX 1823## ---------------- ## 1824## Cache variables. ## 1825## ---------------- ## 1826_ASBOX 1827 echo 1828 # The following way of writing the cache mishandles newlines in values, 1829( 1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1831 eval ac_val=\$$ac_var 1832 case $ac_val in #( 1833 *${as_nl}*) 1834 case $ac_var in #( 1835 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1837 esac 1838 case $ac_var in #( 1839 _ | IFS | as_nl) ;; #( 1840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1841 *) $as_unset $ac_var ;; 1842 esac ;; 1843 esac 1844 done 1845 (set) 2>&1 | 1846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1847 *${as_nl}ac_space=\ *) 1848 sed -n \ 1849 "s/'\''/'\''\\\\'\'''\''/g; 1850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1851 ;; #( 1852 *) 1853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1854 ;; 1855 esac | 1856 sort 1857) 1858 echo 1859 1860 cat <<\_ASBOX 1861## ----------------- ## 1862## Output variables. ## 1863## ----------------- ## 1864_ASBOX 1865 echo 1866 for ac_var in $ac_subst_vars 1867 do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in 1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1871 esac 1872 $as_echo "$ac_var='\''$ac_val'\''" 1873 done | sort 1874 echo 1875 1876 if test -n "$ac_subst_files"; then 1877 cat <<\_ASBOX 1878## ------------------- ## 1879## File substitutions. ## 1880## ------------------- ## 1881_ASBOX 1882 echo 1883 for ac_var in $ac_subst_files 1884 do 1885 eval ac_val=\$$ac_var 1886 case $ac_val in 1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1888 esac 1889 $as_echo "$ac_var='\''$ac_val'\''" 1890 done | sort 1891 echo 1892 fi 1893 1894 if test -s confdefs.h; then 1895 cat <<\_ASBOX 1896## ----------- ## 1897## confdefs.h. ## 1898## ----------- ## 1899_ASBOX 1900 echo 1901 cat confdefs.h 1902 echo 1903 fi 1904 test "$ac_signal" != 0 && 1905 $as_echo "$as_me: caught signal $ac_signal" 1906 $as_echo "$as_me: exit $exit_status" 1907 } >&5 1908 rm -f core *.core core.conftest.* && 1909 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1910 exit $exit_status 1911' 0 1912for ac_signal in 1 2 13 15; do 1913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1914done 1915ac_signal=0 1916 1917# confdefs.h avoids OS command line length limits that DEFS can exceed. 1918rm -f -r conftest* confdefs.h 1919 1920# Predefined preprocessor variables. 1921 1922cat >>confdefs.h <<_ACEOF 1923#define PACKAGE_NAME "$PACKAGE_NAME" 1924_ACEOF 1925 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_VERSION "$PACKAGE_VERSION" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_STRING "$PACKAGE_STRING" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1944_ACEOF 1945 1946 1947# Let the site file select an alternate cache file if it wants to. 1948# Prefer an explicitly selected file to automatically selected ones. 1949ac_site_file1=NONE 1950ac_site_file2=NONE 1951if test -n "$CONFIG_SITE"; then 1952 ac_site_file1=$CONFIG_SITE 1953elif test "x$prefix" != xNONE; then 1954 ac_site_file1=$prefix/share/config.site 1955 ac_site_file2=$prefix/etc/config.site 1956else 1957 ac_site_file1=$ac_default_prefix/share/config.site 1958 ac_site_file2=$ac_default_prefix/etc/config.site 1959fi 1960for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1961do 1962 test "x$ac_site_file" = xNONE && continue 1963 if test -r "$ac_site_file"; then 1964 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1965$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1966 sed 's/^/| /' "$ac_site_file" >&5 1967 . "$ac_site_file" 1968 fi 1969done 1970 1971if test -r "$cache_file"; then 1972 # Some versions of bash will fail to source /dev/null (special 1973 # files actually), so we avoid doing that. 1974 if test -f "$cache_file"; then 1975 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1976$as_echo "$as_me: loading cache $cache_file" >&6;} 1977 case $cache_file in 1978 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1979 *) . "./$cache_file";; 1980 esac 1981 fi 1982else 1983 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1984$as_echo "$as_me: creating cache $cache_file" >&6;} 1985 >$cache_file 1986fi 1987 1988# Check that the precious variables saved in the cache have kept the same 1989# value. 1990ac_cache_corrupted=false 1991for ac_var in $ac_precious_vars; do 1992 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1993 eval ac_new_set=\$ac_env_${ac_var}_set 1994 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1995 eval ac_new_val=\$ac_env_${ac_var}_value 1996 case $ac_old_set,$ac_new_set in 1997 set,) 1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1999$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2000 ac_cache_corrupted=: ;; 2001 ,set) 2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2003$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2004 ac_cache_corrupted=: ;; 2005 ,);; 2006 *) 2007 if test "x$ac_old_val" != "x$ac_new_val"; then 2008 # differences in whitespace do not lead to failure. 2009 ac_old_val_w=`echo x $ac_old_val` 2010 ac_new_val_w=`echo x $ac_new_val` 2011 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2013$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2014 ac_cache_corrupted=: 2015 else 2016 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2017$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2018 eval $ac_var=\$ac_old_val 2019 fi 2020 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2021$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2022 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2023$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2024 fi;; 2025 esac 2026 # Pass precious variables to config.status. 2027 if test "$ac_new_set" = set; then 2028 case $ac_new_val in 2029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 *) ac_arg=$ac_var=$ac_new_val ;; 2031 esac 2032 case " $ac_configure_args " in 2033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2034 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2035 esac 2036 fi 2037done 2038if $ac_cache_corrupted; then 2039 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2041 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2042$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2043 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2044$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2045 { (exit 1); exit 1; }; } 2046fi 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072ac_ext=c 2073ac_cpp='$CPP $CPPFLAGS' 2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2076ac_compiler_gnu=$ac_cv_c_compiler_gnu 2077 2078 2079 2080# Require xorg-macros version 1.3 or newer for XORG_DEFAULT_OPTIONS 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094ac_aux_dir= 2095for ac_dir in . "$srcdir"/.; do 2096 if test -f "$ac_dir/install-sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install-sh -c" 2099 break 2100 elif test -f "$ac_dir/install.sh"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/install.sh -c" 2103 break 2104 elif test -f "$ac_dir/shtool"; then 2105 ac_aux_dir=$ac_dir 2106 ac_install_sh="$ac_aux_dir/shtool install -c" 2107 break 2108 fi 2109done 2110if test -z "$ac_aux_dir"; then 2111 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2112$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2113 { (exit 1); exit 1; }; } 2114fi 2115 2116# These three variables are undocumented and unsupported, 2117# and are intended to be withdrawn in a future Autoconf release. 2118# They can cause serious problems if a builder's source tree is in a directory 2119# whose full name contains unusual characters. 2120ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2121ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2122ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2123 2124 2125am__api_version='1.11' 2126 2127# Find a good install program. We prefer a C program (faster), 2128# so one script is as good as another. But avoid the broken or 2129# incompatible versions: 2130# SysV /etc/install, /usr/sbin/install 2131# SunOS /usr/etc/install 2132# IRIX /sbin/install 2133# AIX /bin/install 2134# AmigaOS /C/install, which installs bootblocks on floppy discs 2135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2136# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2138# OS/2's system install, which has a completely different semantic 2139# ./install, which can be erroneously created by make from ./install.sh. 2140# Reject install programs that cannot install multiple files. 2141{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2142$as_echo_n "checking for a BSD-compatible install... " >&6; } 2143if test -z "$INSTALL"; then 2144if test "${ac_cv_path_install+set}" = set; then 2145 $as_echo_n "(cached) " >&6 2146else 2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2148for as_dir in $PATH 2149do 2150 IFS=$as_save_IFS 2151 test -z "$as_dir" && as_dir=. 2152 # Account for people who put trailing slashes in PATH elements. 2153case $as_dir/ in 2154 ./ | .// | /cC/* | \ 2155 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2156 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2157 /usr/ucb/* ) ;; 2158 *) 2159 # OSF1 and SCO ODT 3.0 have their own names for install. 2160 # Don't use installbsd from OSF since it installs stuff as root 2161 # by default. 2162 for ac_prog in ginstall scoinst install; do 2163 for ac_exec_ext in '' $ac_executable_extensions; do 2164 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2165 if test $ac_prog = install && 2166 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2167 # AIX install. It has an incompatible calling convention. 2168 : 2169 elif test $ac_prog = install && 2170 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2171 # program-specific install script used by HP pwplus--don't use. 2172 : 2173 else 2174 rm -rf conftest.one conftest.two conftest.dir 2175 echo one > conftest.one 2176 echo two > conftest.two 2177 mkdir conftest.dir 2178 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2179 test -s conftest.one && test -s conftest.two && 2180 test -s conftest.dir/conftest.one && 2181 test -s conftest.dir/conftest.two 2182 then 2183 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2184 break 3 2185 fi 2186 fi 2187 fi 2188 done 2189 done 2190 ;; 2191esac 2192 2193done 2194IFS=$as_save_IFS 2195 2196rm -rf conftest.one conftest.two conftest.dir 2197 2198fi 2199 if test "${ac_cv_path_install+set}" = set; then 2200 INSTALL=$ac_cv_path_install 2201 else 2202 # As a last resort, use the slow shell script. Don't cache a 2203 # value for INSTALL within a source directory, because that will 2204 # break other packages using the cache if that directory is 2205 # removed, or if the value is a relative name. 2206 INSTALL=$ac_install_sh 2207 fi 2208fi 2209{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2210$as_echo "$INSTALL" >&6; } 2211 2212# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2213# It thinks the first close brace ends the variable substitution. 2214test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2215 2216test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2217 2218test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2219 2220{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2221$as_echo_n "checking whether build environment is sane... " >&6; } 2222# Just in case 2223sleep 1 2224echo timestamp > conftest.file 2225# Reject unsafe characters in $srcdir or the absolute working directory 2226# name. Accept space and tab only in the latter. 2227am_lf=' 2228' 2229case `pwd` in 2230 *[\\\"\#\$\&\'\`$am_lf]*) 2231 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2232$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2233 { (exit 1); exit 1; }; };; 2234esac 2235case $srcdir in 2236 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2237 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2238$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2239 { (exit 1); exit 1; }; };; 2240esac 2241 2242# Do `set' in a subshell so we don't clobber the current shell's 2243# arguments. Must try -L first in case configure is actually a 2244# symlink; some systems play weird games with the mod time of symlinks 2245# (eg FreeBSD returns the mod time of the symlink's containing 2246# directory). 2247if ( 2248 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2249 if test "$*" = "X"; then 2250 # -L didn't work. 2251 set X `ls -t "$srcdir/configure" conftest.file` 2252 fi 2253 rm -f conftest.file 2254 if test "$*" != "X $srcdir/configure conftest.file" \ 2255 && test "$*" != "X conftest.file $srcdir/configure"; then 2256 2257 # If neither matched, then we have a broken ls. This can happen 2258 # if, for instance, CONFIG_SHELL is bash and it inherits a 2259 # broken ls alias from the environment. This has actually 2260 # happened. Such a system could not be considered "sane". 2261 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2262alias in your environment" >&5 2263$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2264alias in your environment" >&2;} 2265 { (exit 1); exit 1; }; } 2266 fi 2267 2268 test "$2" = conftest.file 2269 ) 2270then 2271 # Ok. 2272 : 2273else 2274 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2275Check your system clock" >&5 2276$as_echo "$as_me: error: newly created file is older than distributed files! 2277Check your system clock" >&2;} 2278 { (exit 1); exit 1; }; } 2279fi 2280{ $as_echo "$as_me:$LINENO: result: yes" >&5 2281$as_echo "yes" >&6; } 2282test "$program_prefix" != NONE && 2283 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2284# Use a double $ so make ignores it. 2285test "$program_suffix" != NONE && 2286 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2287# Double any \ or $. 2288# By default was `s,x,x', remove it if useless. 2289ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2290program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2291 2292# expand $ac_aux_dir to an absolute path 2293am_aux_dir=`cd $ac_aux_dir && pwd` 2294 2295if test x"${MISSING+set}" != xset; then 2296 case $am_aux_dir in 2297 *\ * | *\ *) 2298 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2299 *) 2300 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2301 esac 2302fi 2303# Use eval to expand $SHELL 2304if eval "$MISSING --run true"; then 2305 am_missing_run="$MISSING --run " 2306else 2307 am_missing_run= 2308 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2309$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2310fi 2311 2312if test x"${install_sh}" != xset; then 2313 case $am_aux_dir in 2314 *\ * | *\ *) 2315 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2316 *) 2317 install_sh="\${SHELL} $am_aux_dir/install-sh" 2318 esac 2319fi 2320 2321# Installed binaries are usually stripped using `strip' when the user 2322# run `make install-strip'. However `strip' might not be the right 2323# tool to use in cross-compilation environments, therefore Automake 2324# will honor the `STRIP' environment variable to overrule this program. 2325if test "$cross_compiling" != no; then 2326 if test -n "$ac_tool_prefix"; then 2327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2328set dummy ${ac_tool_prefix}strip; ac_word=$2 2329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2330$as_echo_n "checking for $ac_word... " >&6; } 2331if test "${ac_cv_prog_STRIP+set}" = set; then 2332 $as_echo_n "(cached) " >&6 2333else 2334 if test -n "$STRIP"; then 2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2336else 2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2344 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2346 break 2 2347 fi 2348done 2349done 2350IFS=$as_save_IFS 2351 2352fi 2353fi 2354STRIP=$ac_cv_prog_STRIP 2355if test -n "$STRIP"; then 2356 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2357$as_echo "$STRIP" >&6; } 2358else 2359 { $as_echo "$as_me:$LINENO: result: no" >&5 2360$as_echo "no" >&6; } 2361fi 2362 2363 2364fi 2365if test -z "$ac_cv_prog_STRIP"; then 2366 ac_ct_STRIP=$STRIP 2367 # Extract the first word of "strip", so it can be a program name with args. 2368set dummy strip; ac_word=$2 2369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2370$as_echo_n "checking for $ac_word... " >&6; } 2371if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2372 $as_echo_n "(cached) " >&6 2373else 2374 if test -n "$ac_ct_STRIP"; then 2375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2376else 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2384 ac_cv_prog_ac_ct_STRIP="strip" 2385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2386 break 2 2387 fi 2388done 2389done 2390IFS=$as_save_IFS 2391 2392fi 2393fi 2394ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2395if test -n "$ac_ct_STRIP"; then 2396 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2397$as_echo "$ac_ct_STRIP" >&6; } 2398else 2399 { $as_echo "$as_me:$LINENO: result: no" >&5 2400$as_echo "no" >&6; } 2401fi 2402 2403 if test "x$ac_ct_STRIP" = x; then 2404 STRIP=":" 2405 else 2406 case $cross_compiling:$ac_tool_warned in 2407yes:) 2408{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2410ac_tool_warned=yes ;; 2411esac 2412 STRIP=$ac_ct_STRIP 2413 fi 2414else 2415 STRIP="$ac_cv_prog_STRIP" 2416fi 2417 2418fi 2419INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2420 2421{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2422$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2423if test -z "$MKDIR_P"; then 2424 if test "${ac_cv_path_mkdir+set}" = set; then 2425 $as_echo_n "(cached) " >&6 2426else 2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2428for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2429do 2430 IFS=$as_save_IFS 2431 test -z "$as_dir" && as_dir=. 2432 for ac_prog in mkdir gmkdir; do 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2436 'mkdir (GNU coreutils) '* | \ 2437 'mkdir (coreutils) '* | \ 2438 'mkdir (fileutils) '4.1*) 2439 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2440 break 3;; 2441 esac 2442 done 2443 done 2444done 2445IFS=$as_save_IFS 2446 2447fi 2448 2449 if test "${ac_cv_path_mkdir+set}" = set; then 2450 MKDIR_P="$ac_cv_path_mkdir -p" 2451 else 2452 # As a last resort, use the slow shell script. Don't cache a 2453 # value for MKDIR_P within a source directory, because that will 2454 # break other packages using the cache if that directory is 2455 # removed, or if the value is a relative name. 2456 test -d ./--version && rmdir ./--version 2457 MKDIR_P="$ac_install_sh -d" 2458 fi 2459fi 2460{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2461$as_echo "$MKDIR_P" >&6; } 2462 2463mkdir_p="$MKDIR_P" 2464case $mkdir_p in 2465 [\\/$]* | ?:[\\/]*) ;; 2466 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2467esac 2468 2469for ac_prog in gawk mawk nawk awk 2470do 2471 # Extract the first word of "$ac_prog", so it can be a program name with args. 2472set dummy $ac_prog; ac_word=$2 2473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2474$as_echo_n "checking for $ac_word... " >&6; } 2475if test "${ac_cv_prog_AWK+set}" = set; then 2476 $as_echo_n "(cached) " >&6 2477else 2478 if test -n "$AWK"; then 2479 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2480else 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 for ac_exec_ext in '' $ac_executable_extensions; do 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2488 ac_cv_prog_AWK="$ac_prog" 2489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2490 break 2 2491 fi 2492done 2493done 2494IFS=$as_save_IFS 2495 2496fi 2497fi 2498AWK=$ac_cv_prog_AWK 2499if test -n "$AWK"; then 2500 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2501$as_echo "$AWK" >&6; } 2502else 2503 { $as_echo "$as_me:$LINENO: result: no" >&5 2504$as_echo "no" >&6; } 2505fi 2506 2507 2508 test -n "$AWK" && break 2509done 2510 2511{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2512$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2513set x ${MAKE-make} 2514ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2515if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2516 $as_echo_n "(cached) " >&6 2517else 2518 cat >conftest.make <<\_ACEOF 2519SHELL = /bin/sh 2520all: 2521 @echo '@@@%%%=$(MAKE)=@@@%%%' 2522_ACEOF 2523# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2524case `${MAKE-make} -f conftest.make 2>/dev/null` in 2525 *@@@%%%=?*=@@@%%%*) 2526 eval ac_cv_prog_make_${ac_make}_set=yes;; 2527 *) 2528 eval ac_cv_prog_make_${ac_make}_set=no;; 2529esac 2530rm -f conftest.make 2531fi 2532if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2533 { $as_echo "$as_me:$LINENO: result: yes" >&5 2534$as_echo "yes" >&6; } 2535 SET_MAKE= 2536else 2537 { $as_echo "$as_me:$LINENO: result: no" >&5 2538$as_echo "no" >&6; } 2539 SET_MAKE="MAKE=${MAKE-make}" 2540fi 2541 2542rm -rf .tst 2>/dev/null 2543mkdir .tst 2>/dev/null 2544if test -d .tst; then 2545 am__leading_dot=. 2546else 2547 am__leading_dot=_ 2548fi 2549rmdir .tst 2>/dev/null 2550 2551if test "`cd $srcdir && pwd`" != "`pwd`"; then 2552 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2553 # is not polluted with repeated "-I." 2554 am__isrc=' -I$(srcdir)' 2555 # test to see if srcdir already configured 2556 if test -f $srcdir/config.status; then 2557 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2558$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2559 { (exit 1); exit 1; }; } 2560 fi 2561fi 2562 2563# test whether we have cygpath 2564if test -z "$CYGPATH_W"; then 2565 if (cygpath --version) >/dev/null 2>/dev/null; then 2566 CYGPATH_W='cygpath -w' 2567 else 2568 CYGPATH_W=echo 2569 fi 2570fi 2571 2572 2573# Define the identity of the package. 2574 PACKAGE='xf86-input-keyboard' 2575 VERSION='1.4.0' 2576 2577 2578cat >>confdefs.h <<_ACEOF 2579#define PACKAGE "$PACKAGE" 2580_ACEOF 2581 2582 2583cat >>confdefs.h <<_ACEOF 2584#define VERSION "$VERSION" 2585_ACEOF 2586 2587# Some tools Automake needs. 2588 2589ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2590 2591 2592AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2593 2594 2595AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2596 2597 2598AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2599 2600 2601MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2602 2603# We need awk for the "check" target. The system "awk" is bad on 2604# some platforms. 2605# Always define AMTAR for backward compatibility. 2606 2607AMTAR=${AMTAR-"${am_missing_run}tar"} 2608 2609am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2610 2611 2612 2613 2614 2615 2616 2617{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2618$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2619 # Check whether --enable-maintainer-mode was given. 2620if test "${enable_maintainer_mode+set}" = set; then 2621 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2622else 2623 USE_MAINTAINER_MODE=no 2624fi 2625 2626 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2627$as_echo "$USE_MAINTAINER_MODE" >&6; } 2628 if test $USE_MAINTAINER_MODE = yes; then 2629 MAINTAINER_MODE_TRUE= 2630 MAINTAINER_MODE_FALSE='#' 2631else 2632 MAINTAINER_MODE_TRUE='#' 2633 MAINTAINER_MODE_FALSE= 2634fi 2635 2636 MAINT=$MAINTAINER_MODE_TRUE 2637 2638 2639 2640DRIVER_NAME=kbd 2641 2642 2643ac_config_headers="$ac_config_headers config.h" 2644 2645 2646# Checks for programs. 2647# Check whether --enable-static was given. 2648if test "${enable_static+set}" = set; then 2649 enableval=$enable_static; p=${PACKAGE-default} 2650 case $enableval in 2651 yes) enable_static=yes ;; 2652 no) enable_static=no ;; 2653 *) 2654 enable_static=no 2655 # Look at the argument we got. We use all the common list separators. 2656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2657 for pkg in $enableval; do 2658 IFS="$lt_save_ifs" 2659 if test "X$pkg" = "X$p"; then 2660 enable_static=yes 2661 fi 2662 done 2663 IFS="$lt_save_ifs" 2664 ;; 2665 esac 2666else 2667 enable_static=no 2668fi 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678case `pwd` in 2679 *\ * | *\ *) 2680 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2681$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2682esac 2683 2684 2685 2686macro_version='2.2.6' 2687macro_revision='1.3012' 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701ltmain="$ac_aux_dir/ltmain.sh" 2702 2703# Make sure we can run config.sub. 2704$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2705 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2706$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2707 { (exit 1); exit 1; }; } 2708 2709{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2710$as_echo_n "checking build system type... " >&6; } 2711if test "${ac_cv_build+set}" = set; then 2712 $as_echo_n "(cached) " >&6 2713else 2714 ac_build_alias=$build_alias 2715test "x$ac_build_alias" = x && 2716 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2717test "x$ac_build_alias" = x && 2718 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2719$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2720 { (exit 1); exit 1; }; } 2721ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2722 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2723$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2724 { (exit 1); exit 1; }; } 2725 2726fi 2727{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2728$as_echo "$ac_cv_build" >&6; } 2729case $ac_cv_build in 2730*-*-*) ;; 2731*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2732$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2733 { (exit 1); exit 1; }; };; 2734esac 2735build=$ac_cv_build 2736ac_save_IFS=$IFS; IFS='-' 2737set x $ac_cv_build 2738shift 2739build_cpu=$1 2740build_vendor=$2 2741shift; shift 2742# Remember, the first character of IFS is used to create $*, 2743# except with old shells: 2744build_os=$* 2745IFS=$ac_save_IFS 2746case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2747 2748 2749{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2750$as_echo_n "checking host system type... " >&6; } 2751if test "${ac_cv_host+set}" = set; then 2752 $as_echo_n "(cached) " >&6 2753else 2754 if test "x$host_alias" = x; then 2755 ac_cv_host=$ac_cv_build 2756else 2757 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2758 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2759$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2760 { (exit 1); exit 1; }; } 2761fi 2762 2763fi 2764{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2765$as_echo "$ac_cv_host" >&6; } 2766case $ac_cv_host in 2767*-*-*) ;; 2768*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2769$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2770 { (exit 1); exit 1; }; };; 2771esac 2772host=$ac_cv_host 2773ac_save_IFS=$IFS; IFS='-' 2774set x $ac_cv_host 2775shift 2776host_cpu=$1 2777host_vendor=$2 2778shift; shift 2779# Remember, the first character of IFS is used to create $*, 2780# except with old shells: 2781host_os=$* 2782IFS=$ac_save_IFS 2783case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2784 2785 2786DEPDIR="${am__leading_dot}deps" 2787 2788ac_config_commands="$ac_config_commands depfiles" 2789 2790 2791am_make=${MAKE-make} 2792cat > confinc << 'END' 2793am__doit: 2794 @echo this is the am__doit target 2795.PHONY: am__doit 2796END 2797# If we don't find an include directive, just comment out the code. 2798{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2799$as_echo_n "checking for style of include used by $am_make... " >&6; } 2800am__include="#" 2801am__quote= 2802_am_result=none 2803# First try GNU make style include. 2804echo "include confinc" > confmf 2805# Ignore all kinds of additional output from `make'. 2806case `$am_make -s -f confmf 2> /dev/null` in #( 2807*the\ am__doit\ target*) 2808 am__include=include 2809 am__quote= 2810 _am_result=GNU 2811 ;; 2812esac 2813# Now try BSD make style include. 2814if test "$am__include" = "#"; then 2815 echo '.include "confinc"' > confmf 2816 case `$am_make -s -f confmf 2> /dev/null` in #( 2817 *the\ am__doit\ target*) 2818 am__include=.include 2819 am__quote="\"" 2820 _am_result=BSD 2821 ;; 2822 esac 2823fi 2824 2825 2826{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2827$as_echo "$_am_result" >&6; } 2828rm -f confinc confmf 2829 2830# Check whether --enable-dependency-tracking was given. 2831if test "${enable_dependency_tracking+set}" = set; then 2832 enableval=$enable_dependency_tracking; 2833fi 2834 2835if test "x$enable_dependency_tracking" != xno; then 2836 am_depcomp="$ac_aux_dir/depcomp" 2837 AMDEPBACKSLASH='\' 2838fi 2839 if test "x$enable_dependency_tracking" != xno; then 2840 AMDEP_TRUE= 2841 AMDEP_FALSE='#' 2842else 2843 AMDEP_TRUE='#' 2844 AMDEP_FALSE= 2845fi 2846 2847 2848ac_ext=c 2849ac_cpp='$CPP $CPPFLAGS' 2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2852ac_compiler_gnu=$ac_cv_c_compiler_gnu 2853if test -n "$ac_tool_prefix"; then 2854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2855set dummy ${ac_tool_prefix}gcc; ac_word=$2 2856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2857$as_echo_n "checking for $ac_word... " >&6; } 2858if test "${ac_cv_prog_CC+set}" = set; then 2859 $as_echo_n "(cached) " >&6 2860else 2861 if test -n "$CC"; then 2862 ac_cv_prog_CC="$CC" # Let the user override the test. 2863else 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_exec_ext in '' $ac_executable_extensions; do 2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2871 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2873 break 2 2874 fi 2875done 2876done 2877IFS=$as_save_IFS 2878 2879fi 2880fi 2881CC=$ac_cv_prog_CC 2882if test -n "$CC"; then 2883 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2884$as_echo "$CC" >&6; } 2885else 2886 { $as_echo "$as_me:$LINENO: result: no" >&5 2887$as_echo "no" >&6; } 2888fi 2889 2890 2891fi 2892if test -z "$ac_cv_prog_CC"; then 2893 ac_ct_CC=$CC 2894 # Extract the first word of "gcc", so it can be a program name with args. 2895set dummy gcc; ac_word=$2 2896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2897$as_echo_n "checking for $ac_word... " >&6; } 2898if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2899 $as_echo_n "(cached) " >&6 2900else 2901 if test -n "$ac_ct_CC"; then 2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2911 ac_cv_prog_ac_ct_CC="gcc" 2912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921ac_ct_CC=$ac_cv_prog_ac_ct_CC 2922if test -n "$ac_ct_CC"; then 2923 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2924$as_echo "$ac_ct_CC" >&6; } 2925else 2926 { $as_echo "$as_me:$LINENO: result: no" >&5 2927$as_echo "no" >&6; } 2928fi 2929 2930 if test "x$ac_ct_CC" = x; then 2931 CC="" 2932 else 2933 case $cross_compiling:$ac_tool_warned in 2934yes:) 2935{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2937ac_tool_warned=yes ;; 2938esac 2939 CC=$ac_ct_CC 2940 fi 2941else 2942 CC="$ac_cv_prog_CC" 2943fi 2944 2945if test -z "$CC"; then 2946 if test -n "$ac_tool_prefix"; then 2947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2948set dummy ${ac_tool_prefix}cc; ac_word=$2 2949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2950$as_echo_n "checking for $ac_word... " >&6; } 2951if test "${ac_cv_prog_CC+set}" = set; then 2952 $as_echo_n "(cached) " >&6 2953else 2954 if test -n "$CC"; then 2955 ac_cv_prog_CC="$CC" # Let the user override the test. 2956else 2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958for as_dir in $PATH 2959do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2964 ac_cv_prog_CC="${ac_tool_prefix}cc" 2965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969done 2970IFS=$as_save_IFS 2971 2972fi 2973fi 2974CC=$ac_cv_prog_CC 2975if test -n "$CC"; then 2976 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2977$as_echo "$CC" >&6; } 2978else 2979 { $as_echo "$as_me:$LINENO: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 2984 fi 2985fi 2986if test -z "$CC"; then 2987 # Extract the first word of "cc", so it can be a program name with args. 2988set dummy cc; ac_word=$2 2989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2990$as_echo_n "checking for $ac_word... " >&6; } 2991if test "${ac_cv_prog_CC+set}" = set; then 2992 $as_echo_n "(cached) " >&6 2993else 2994 if test -n "$CC"; then 2995 ac_cv_prog_CC="$CC" # Let the user override the test. 2996else 2997 ac_prog_rejected=no 2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999for as_dir in $PATH 3000do 3001 IFS=$as_save_IFS 3002 test -z "$as_dir" && as_dir=. 3003 for ac_exec_ext in '' $ac_executable_extensions; do 3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3006 ac_prog_rejected=yes 3007 continue 3008 fi 3009 ac_cv_prog_CC="cc" 3010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013done 3014done 3015IFS=$as_save_IFS 3016 3017if test $ac_prog_rejected = yes; then 3018 # We found a bogon in the path, so make sure we never use it. 3019 set dummy $ac_cv_prog_CC 3020 shift 3021 if test $# != 0; then 3022 # We chose a different compiler from the bogus one. 3023 # However, it has the same basename, so the bogon will be chosen 3024 # first if we set CC to just the basename; use the full file name. 3025 shift 3026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3027 fi 3028fi 3029fi 3030fi 3031CC=$ac_cv_prog_CC 3032if test -n "$CC"; then 3033 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3034$as_echo "$CC" >&6; } 3035else 3036 { $as_echo "$as_me:$LINENO: result: no" >&5 3037$as_echo "no" >&6; } 3038fi 3039 3040 3041fi 3042if test -z "$CC"; then 3043 if test -n "$ac_tool_prefix"; then 3044 for ac_prog in cl.exe 3045 do 3046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3047set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3048{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3049$as_echo_n "checking for $ac_word... " >&6; } 3050if test "${ac_cv_prog_CC+set}" = set; then 3051 $as_echo_n "(cached) " >&6 3052else 3053 if test -n "$CC"; then 3054 ac_cv_prog_CC="$CC" # Let the user override the test. 3055else 3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH 3058do 3059 IFS=$as_save_IFS 3060 test -z "$as_dir" && as_dir=. 3061 for ac_exec_ext in '' $ac_executable_extensions; do 3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3065 break 2 3066 fi 3067done 3068done 3069IFS=$as_save_IFS 3070 3071fi 3072fi 3073CC=$ac_cv_prog_CC 3074if test -n "$CC"; then 3075 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3076$as_echo "$CC" >&6; } 3077else 3078 { $as_echo "$as_me:$LINENO: result: no" >&5 3079$as_echo "no" >&6; } 3080fi 3081 3082 3083 test -n "$CC" && break 3084 done 3085fi 3086if test -z "$CC"; then 3087 ac_ct_CC=$CC 3088 for ac_prog in cl.exe 3089do 3090 # Extract the first word of "$ac_prog", so it can be a program name with args. 3091set dummy $ac_prog; ac_word=$2 3092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3093$as_echo_n "checking for $ac_word... " >&6; } 3094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3095 $as_echo_n "(cached) " >&6 3096else 3097 if test -n "$ac_ct_CC"; then 3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3099else 3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH 3102do 3103 IFS=$as_save_IFS 3104 test -z "$as_dir" && as_dir=. 3105 for ac_exec_ext in '' $ac_executable_extensions; do 3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3107 ac_cv_prog_ac_ct_CC="$ac_prog" 3108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112done 3113IFS=$as_save_IFS 3114 3115fi 3116fi 3117ac_ct_CC=$ac_cv_prog_ac_ct_CC 3118if test -n "$ac_ct_CC"; then 3119 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3120$as_echo "$ac_ct_CC" >&6; } 3121else 3122 { $as_echo "$as_me:$LINENO: result: no" >&5 3123$as_echo "no" >&6; } 3124fi 3125 3126 3127 test -n "$ac_ct_CC" && break 3128done 3129 3130 if test "x$ac_ct_CC" = x; then 3131 CC="" 3132 else 3133 case $cross_compiling:$ac_tool_warned in 3134yes:) 3135{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3137ac_tool_warned=yes ;; 3138esac 3139 CC=$ac_ct_CC 3140 fi 3141fi 3142 3143fi 3144 3145 3146test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3148{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3149See \`config.log' for more details." >&5 3150$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3151See \`config.log' for more details." >&2;} 3152 { (exit 1); exit 1; }; }; } 3153 3154# Provide some information about the compiler. 3155$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3156set X $ac_compile 3157ac_compiler=$2 3158{ (ac_try="$ac_compiler --version >&5" 3159case "(($ac_try" in 3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3161 *) ac_try_echo=$ac_try;; 3162esac 3163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3164$as_echo "$ac_try_echo") >&5 3165 (eval "$ac_compiler --version >&5") 2>&5 3166 ac_status=$? 3167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); } 3169{ (ac_try="$ac_compiler -v >&5" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3175$as_echo "$ac_try_echo") >&5 3176 (eval "$ac_compiler -v >&5") 2>&5 3177 ac_status=$? 3178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3179 (exit $ac_status); } 3180{ (ac_try="$ac_compiler -V >&5" 3181case "(($ac_try" in 3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3183 *) ac_try_echo=$ac_try;; 3184esac 3185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3186$as_echo "$ac_try_echo") >&5 3187 (eval "$ac_compiler -V >&5") 2>&5 3188 ac_status=$? 3189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3190 (exit $ac_status); } 3191 3192cat >conftest.$ac_ext <<_ACEOF 3193/* confdefs.h. */ 3194_ACEOF 3195cat confdefs.h >>conftest.$ac_ext 3196cat >>conftest.$ac_ext <<_ACEOF 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207ac_clean_files_save=$ac_clean_files 3208ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3209# Try to create an executable without -o first, disregard a.out. 3210# It will help us diagnose broken compilers, and finding out an intuition 3211# of exeext. 3212{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3213$as_echo_n "checking for C compiler default output file name... " >&6; } 3214ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3215 3216# The possible output files: 3217ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3218 3219ac_rmfiles= 3220for ac_file in $ac_files 3221do 3222 case $ac_file in 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3224 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3225 esac 3226done 3227rm -f $ac_rmfiles 3228 3229if { (ac_try="$ac_link_default" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3235$as_echo "$ac_try_echo") >&5 3236 (eval "$ac_link_default") 2>&5 3237 ac_status=$? 3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 (exit $ac_status); }; then 3240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3241# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3242# in a Makefile. We should not override ac_cv_exeext if it was cached, 3243# so that the user can short-circuit this test for compilers unknown to 3244# Autoconf. 3245for ac_file in $ac_files '' 3246do 3247 test -f "$ac_file" || continue 3248 case $ac_file in 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3250 ;; 3251 [ab].out ) 3252 # We found the default executable, but exeext='' is most 3253 # certainly right. 3254 break;; 3255 *.* ) 3256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3257 then :; else 3258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3259 fi 3260 # We set ac_cv_exeext here because the later test for it is not 3261 # safe: cross compilers may not add the suffix if given an `-o' 3262 # argument, so we may need to know it at that point already. 3263 # Even if this section looks crufty: it has the advantage of 3264 # actually working. 3265 break;; 3266 * ) 3267 break;; 3268 esac 3269done 3270test "$ac_cv_exeext" = no && ac_cv_exeext= 3271 3272else 3273 ac_file='' 3274fi 3275 3276{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3277$as_echo "$ac_file" >&6; } 3278if test -z "$ac_file"; then 3279 $as_echo "$as_me: failed program was:" >&5 3280sed 's/^/| /' conftest.$ac_ext >&5 3281 3282{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3284{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3285See \`config.log' for more details." >&5 3286$as_echo "$as_me: error: C compiler cannot create executables 3287See \`config.log' for more details." >&2;} 3288 { (exit 77); exit 77; }; }; } 3289fi 3290 3291ac_exeext=$ac_cv_exeext 3292 3293# Check that the compiler produces executables we can run. If not, either 3294# the compiler is broken, or we cross compile. 3295{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3296$as_echo_n "checking whether the C compiler works... " >&6; } 3297# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3298# If not cross compiling, check that we can run a simple program. 3299if test "$cross_compiling" != yes; then 3300 if { ac_try='./$ac_file' 3301 { (case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3306$as_echo "$ac_try_echo") >&5 3307 (eval "$ac_try") 2>&5 3308 ac_status=$? 3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3310 (exit $ac_status); }; }; then 3311 cross_compiling=no 3312 else 3313 if test "$cross_compiling" = maybe; then 3314 cross_compiling=yes 3315 else 3316 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3318{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3319If you meant to cross compile, use \`--host'. 3320See \`config.log' for more details." >&5 3321$as_echo "$as_me: error: cannot run C compiled programs. 3322If you meant to cross compile, use \`--host'. 3323See \`config.log' for more details." >&2;} 3324 { (exit 1); exit 1; }; }; } 3325 fi 3326 fi 3327fi 3328{ $as_echo "$as_me:$LINENO: result: yes" >&5 3329$as_echo "yes" >&6; } 3330 3331rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3332ac_clean_files=$ac_clean_files_save 3333# Check that the compiler produces executables we can run. If not, either 3334# the compiler is broken, or we cross compile. 3335{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3336$as_echo_n "checking whether we are cross compiling... " >&6; } 3337{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3338$as_echo "$cross_compiling" >&6; } 3339 3340{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3341$as_echo_n "checking for suffix of executables... " >&6; } 3342if { (ac_try="$ac_link" 3343case "(($ac_try" in 3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *) ac_try_echo=$ac_try;; 3346esac 3347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3348$as_echo "$ac_try_echo") >&5 3349 (eval "$ac_link") 2>&5 3350 ac_status=$? 3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3352 (exit $ac_status); }; then 3353 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3354# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3355# work properly (i.e., refer to `conftest.exe'), while it won't with 3356# `rm'. 3357for ac_file in conftest.exe conftest conftest.*; do 3358 test -f "$ac_file" || continue 3359 case $ac_file in 3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3361 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3362 break;; 3363 * ) break;; 3364 esac 3365done 3366else 3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3369{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3370See \`config.log' for more details." >&5 3371$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3372See \`config.log' for more details." >&2;} 3373 { (exit 1); exit 1; }; }; } 3374fi 3375 3376rm -f conftest$ac_cv_exeext 3377{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3378$as_echo "$ac_cv_exeext" >&6; } 3379 3380rm -f conftest.$ac_ext 3381EXEEXT=$ac_cv_exeext 3382ac_exeext=$EXEEXT 3383{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3384$as_echo_n "checking for suffix of object files... " >&6; } 3385if test "${ac_cv_objext+set}" = set; then 3386 $as_echo_n "(cached) " >&6 3387else 3388 cat >conftest.$ac_ext <<_ACEOF 3389/* confdefs.h. */ 3390_ACEOF 3391cat confdefs.h >>conftest.$ac_ext 3392cat >>conftest.$ac_ext <<_ACEOF 3393/* end confdefs.h. */ 3394 3395int 3396main () 3397{ 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403rm -f conftest.o conftest.obj 3404if { (ac_try="$ac_compile" 3405case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408esac 3409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3410$as_echo "$ac_try_echo") >&5 3411 (eval "$ac_compile") 2>&5 3412 ac_status=$? 3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); }; then 3415 for ac_file in conftest.o conftest.obj conftest.*; do 3416 test -f "$ac_file" || continue; 3417 case $ac_file in 3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3419 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3420 break;; 3421 esac 3422done 3423else 3424 $as_echo "$as_me: failed program was:" >&5 3425sed 's/^/| /' conftest.$ac_ext >&5 3426 3427{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3430See \`config.log' for more details." >&5 3431$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3432See \`config.log' for more details." >&2;} 3433 { (exit 1); exit 1; }; }; } 3434fi 3435 3436rm -f conftest.$ac_cv_objext conftest.$ac_ext 3437fi 3438{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3439$as_echo "$ac_cv_objext" >&6; } 3440OBJEXT=$ac_cv_objext 3441ac_objext=$OBJEXT 3442{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3443$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3444if test "${ac_cv_c_compiler_gnu+set}" = set; then 3445 $as_echo_n "(cached) " >&6 3446else 3447 cat >conftest.$ac_ext <<_ACEOF 3448/* confdefs.h. */ 3449_ACEOF 3450cat confdefs.h >>conftest.$ac_ext 3451cat >>conftest.$ac_ext <<_ACEOF 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457#ifndef __GNUC__ 3458 choke me 3459#endif 3460 3461 ; 3462 return 0; 3463} 3464_ACEOF 3465rm -f conftest.$ac_objext 3466if { (ac_try="$ac_compile" 3467case "(($ac_try" in 3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3469 *) ac_try_echo=$ac_try;; 3470esac 3471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3472$as_echo "$ac_try_echo") >&5 3473 (eval "$ac_compile") 2>conftest.er1 3474 ac_status=$? 3475 grep -v '^ *+' conftest.er1 >conftest.err 3476 rm -f conftest.er1 3477 cat conftest.err >&5 3478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3479 (exit $ac_status); } && { 3480 test -z "$ac_c_werror_flag" || 3481 test ! -s conftest.err 3482 } && test -s conftest.$ac_objext; then 3483 ac_compiler_gnu=yes 3484else 3485 $as_echo "$as_me: failed program was:" >&5 3486sed 's/^/| /' conftest.$ac_ext >&5 3487 3488 ac_compiler_gnu=no 3489fi 3490 3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3492ac_cv_c_compiler_gnu=$ac_compiler_gnu 3493 3494fi 3495{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3496$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3497if test $ac_compiler_gnu = yes; then 3498 GCC=yes 3499else 3500 GCC= 3501fi 3502ac_test_CFLAGS=${CFLAGS+set} 3503ac_save_CFLAGS=$CFLAGS 3504{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3505$as_echo_n "checking whether $CC accepts -g... " >&6; } 3506if test "${ac_cv_prog_cc_g+set}" = set; then 3507 $as_echo_n "(cached) " >&6 3508else 3509 ac_save_c_werror_flag=$ac_c_werror_flag 3510 ac_c_werror_flag=yes 3511 ac_cv_prog_cc_g=no 3512 CFLAGS="-g" 3513 cat >conftest.$ac_ext <<_ACEOF 3514/* confdefs.h. */ 3515_ACEOF 3516cat confdefs.h >>conftest.$ac_ext 3517cat >>conftest.$ac_ext <<_ACEOF 3518/* end confdefs.h. */ 3519 3520int 3521main () 3522{ 3523 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528rm -f conftest.$ac_objext 3529if { (ac_try="$ac_compile" 3530case "(($ac_try" in 3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *) ac_try_echo=$ac_try;; 3533esac 3534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3535$as_echo "$ac_try_echo") >&5 3536 (eval "$ac_compile") 2>conftest.er1 3537 ac_status=$? 3538 grep -v '^ *+' conftest.er1 >conftest.err 3539 rm -f conftest.er1 3540 cat conftest.err >&5 3541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && { 3543 test -z "$ac_c_werror_flag" || 3544 test ! -s conftest.err 3545 } && test -s conftest.$ac_objext; then 3546 ac_cv_prog_cc_g=yes 3547else 3548 $as_echo "$as_me: failed program was:" >&5 3549sed 's/^/| /' conftest.$ac_ext >&5 3550 3551 CFLAGS="" 3552 cat >conftest.$ac_ext <<_ACEOF 3553/* confdefs.h. */ 3554_ACEOF 3555cat confdefs.h >>conftest.$ac_ext 3556cat >>conftest.$ac_ext <<_ACEOF 3557/* end confdefs.h. */ 3558 3559int 3560main () 3561{ 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567rm -f conftest.$ac_objext 3568if { (ac_try="$ac_compile" 3569case "(($ac_try" in 3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3571 *) ac_try_echo=$ac_try;; 3572esac 3573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3574$as_echo "$ac_try_echo") >&5 3575 (eval "$ac_compile") 2>conftest.er1 3576 ac_status=$? 3577 grep -v '^ *+' conftest.er1 >conftest.err 3578 rm -f conftest.er1 3579 cat conftest.err >&5 3580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3581 (exit $ac_status); } && { 3582 test -z "$ac_c_werror_flag" || 3583 test ! -s conftest.err 3584 } && test -s conftest.$ac_objext; then 3585 : 3586else 3587 $as_echo "$as_me: failed program was:" >&5 3588sed 's/^/| /' conftest.$ac_ext >&5 3589 3590 ac_c_werror_flag=$ac_save_c_werror_flag 3591 CFLAGS="-g" 3592 cat >conftest.$ac_ext <<_ACEOF 3593/* confdefs.h. */ 3594_ACEOF 3595cat confdefs.h >>conftest.$ac_ext 3596cat >>conftest.$ac_ext <<_ACEOF 3597/* end confdefs.h. */ 3598 3599int 3600main () 3601{ 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607rm -f conftest.$ac_objext 3608if { (ac_try="$ac_compile" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3614$as_echo "$ac_try_echo") >&5 3615 (eval "$ac_compile") 2>conftest.er1 3616 ac_status=$? 3617 grep -v '^ *+' conftest.er1 >conftest.err 3618 rm -f conftest.er1 3619 cat conftest.err >&5 3620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); } && { 3622 test -z "$ac_c_werror_flag" || 3623 test ! -s conftest.err 3624 } && test -s conftest.$ac_objext; then 3625 ac_cv_prog_cc_g=yes 3626else 3627 $as_echo "$as_me: failed program was:" >&5 3628sed 's/^/| /' conftest.$ac_ext >&5 3629 3630 3631fi 3632 3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3634fi 3635 3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3637fi 3638 3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3640 ac_c_werror_flag=$ac_save_c_werror_flag 3641fi 3642{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3643$as_echo "$ac_cv_prog_cc_g" >&6; } 3644if test "$ac_test_CFLAGS" = set; then 3645 CFLAGS=$ac_save_CFLAGS 3646elif test $ac_cv_prog_cc_g = yes; then 3647 if test "$GCC" = yes; then 3648 CFLAGS="-g -O2" 3649 else 3650 CFLAGS="-g" 3651 fi 3652else 3653 if test "$GCC" = yes; then 3654 CFLAGS="-O2" 3655 else 3656 CFLAGS= 3657 fi 3658fi 3659{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3660$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3661if test "${ac_cv_prog_cc_c89+set}" = set; then 3662 $as_echo_n "(cached) " >&6 3663else 3664 ac_cv_prog_cc_c89=no 3665ac_save_CC=$CC 3666cat >conftest.$ac_ext <<_ACEOF 3667/* confdefs.h. */ 3668_ACEOF 3669cat confdefs.h >>conftest.$ac_ext 3670cat >>conftest.$ac_ext <<_ACEOF 3671/* end confdefs.h. */ 3672#include <stdarg.h> 3673#include <stdio.h> 3674#include <sys/types.h> 3675#include <sys/stat.h> 3676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3677struct buf { int x; }; 3678FILE * (*rcsopen) (struct buf *, struct stat *, int); 3679static char *e (p, i) 3680 char **p; 3681 int i; 3682{ 3683 return p[i]; 3684} 3685static char *f (char * (*g) (char **, int), char **p, ...) 3686{ 3687 char *s; 3688 va_list v; 3689 va_start (v,p); 3690 s = g (p, va_arg (v,int)); 3691 va_end (v); 3692 return s; 3693} 3694 3695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3696 function prototypes and stuff, but not '\xHH' hex character constants. 3697 These don't provoke an error unfortunately, instead are silently treated 3698 as 'x'. The following induces an error, until -std is added to get 3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3700 array size at least. It's necessary to write '\x00'==0 to get something 3701 that's true only with -std. */ 3702int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3703 3704/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3705 inside strings and character constants. */ 3706#define FOO(x) 'x' 3707int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3708 3709int test (int i, double x); 3710struct s1 {int (*f) (int a);}; 3711struct s2 {int (*f) (double a);}; 3712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3713int argc; 3714char **argv; 3715int 3716main () 3717{ 3718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3725do 3726 CC="$ac_save_CC $ac_arg" 3727 rm -f conftest.$ac_objext 3728if { (ac_try="$ac_compile" 3729case "(($ac_try" in 3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3731 *) ac_try_echo=$ac_try;; 3732esac 3733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3734$as_echo "$ac_try_echo") >&5 3735 (eval "$ac_compile") 2>conftest.er1 3736 ac_status=$? 3737 grep -v '^ *+' conftest.er1 >conftest.err 3738 rm -f conftest.er1 3739 cat conftest.err >&5 3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); } && { 3742 test -z "$ac_c_werror_flag" || 3743 test ! -s conftest.err 3744 } && test -s conftest.$ac_objext; then 3745 ac_cv_prog_cc_c89=$ac_arg 3746else 3747 $as_echo "$as_me: failed program was:" >&5 3748sed 's/^/| /' conftest.$ac_ext >&5 3749 3750 3751fi 3752 3753rm -f core conftest.err conftest.$ac_objext 3754 test "x$ac_cv_prog_cc_c89" != "xno" && break 3755done 3756rm -f conftest.$ac_ext 3757CC=$ac_save_CC 3758 3759fi 3760# AC_CACHE_VAL 3761case "x$ac_cv_prog_cc_c89" in 3762 x) 3763 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3764$as_echo "none needed" >&6; } ;; 3765 xno) 3766 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3767$as_echo "unsupported" >&6; } ;; 3768 *) 3769 CC="$CC $ac_cv_prog_cc_c89" 3770 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3771$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3772esac 3773 3774 3775ac_ext=c 3776ac_cpp='$CPP $CPPFLAGS' 3777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3779ac_compiler_gnu=$ac_cv_c_compiler_gnu 3780 3781depcc="$CC" am_compiler_list= 3782 3783{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3784$as_echo_n "checking dependency style of $depcc... " >&6; } 3785if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3786 $as_echo_n "(cached) " >&6 3787else 3788 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3789 # We make a subdir and do the tests there. Otherwise we can end up 3790 # making bogus files that we don't know about and never remove. For 3791 # instance it was reported that on HP-UX the gcc test will end up 3792 # making a dummy file named `D' -- because `-MD' means `put the output 3793 # in D'. 3794 mkdir conftest.dir 3795 # Copy depcomp to subdir because otherwise we won't find it if we're 3796 # using a relative directory. 3797 cp "$am_depcomp" conftest.dir 3798 cd conftest.dir 3799 # We will build objects and dependencies in a subdirectory because 3800 # it helps to detect inapplicable dependency modes. For instance 3801 # both Tru64's cc and ICC support -MD to output dependencies as a 3802 # side effect of compilation, but ICC will put the dependencies in 3803 # the current directory while Tru64 will put them in the object 3804 # directory. 3805 mkdir sub 3806 3807 am_cv_CC_dependencies_compiler_type=none 3808 if test "$am_compiler_list" = ""; then 3809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3810 fi 3811 am__universal=false 3812 case " $depcc " in #( 3813 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3814 esac 3815 3816 for depmode in $am_compiler_list; do 3817 # Setup a source with many dependencies, because some compilers 3818 # like to wrap large dependency lists on column 80 (with \), and 3819 # we should not choose a depcomp mode which is confused by this. 3820 # 3821 # We need to recreate these files for each test, as the compiler may 3822 # overwrite some of them when testing with obscure command lines. 3823 # This happens at least with the AIX C compiler. 3824 : > sub/conftest.c 3825 for i in 1 2 3 4 5 6; do 3826 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3827 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3828 # Solaris 8's {/usr,}/bin/sh. 3829 touch sub/conftst$i.h 3830 done 3831 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3832 3833 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3834 # mode. It turns out that the SunPro C++ compiler does not properly 3835 # handle `-M -o', and we need to detect this. Also, some Intel 3836 # versions had trouble with output in subdirs 3837 am__obj=sub/conftest.${OBJEXT-o} 3838 am__minus_obj="-o $am__obj" 3839 case $depmode in 3840 gcc) 3841 # This depmode causes a compiler race in universal mode. 3842 test "$am__universal" = false || continue 3843 ;; 3844 nosideeffect) 3845 # after this tag, mechanisms are not by side-effect, so they'll 3846 # only be used when explicitly requested 3847 if test "x$enable_dependency_tracking" = xyes; then 3848 continue 3849 else 3850 break 3851 fi 3852 ;; 3853 msvisualcpp | msvcmsys) 3854 # This compiler won't grok `-c -o', but also, the minuso test has 3855 # not run yet. These depmodes are late enough in the game, and 3856 # so weak that their functioning should not be impacted. 3857 am__obj=conftest.${OBJEXT-o} 3858 am__minus_obj= 3859 ;; 3860 none) break ;; 3861 esac 3862 if depmode=$depmode \ 3863 source=sub/conftest.c object=$am__obj \ 3864 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3865 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3866 >/dev/null 2>conftest.err && 3867 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3869 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3871 # icc doesn't choke on unknown options, it will just issue warnings 3872 # or remarks (even with -Werror). So we grep stderr for any message 3873 # that says an option was ignored or not supported. 3874 # When given -MP, icc 7.0 and 7.1 complain thusly: 3875 # icc: Command line warning: ignoring option '-M'; no argument required 3876 # The diagnosis changed in icc 8.0: 3877 # icc: Command line remark: option '-MP' not supported 3878 if (grep 'ignoring option' conftest.err || 3879 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3880 am_cv_CC_dependencies_compiler_type=$depmode 3881 break 3882 fi 3883 fi 3884 done 3885 3886 cd .. 3887 rm -rf conftest.dir 3888else 3889 am_cv_CC_dependencies_compiler_type=none 3890fi 3891 3892fi 3893{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3894$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3895CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3896 3897 if 3898 test "x$enable_dependency_tracking" != xno \ 3899 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3900 am__fastdepCC_TRUE= 3901 am__fastdepCC_FALSE='#' 3902else 3903 am__fastdepCC_TRUE='#' 3904 am__fastdepCC_FALSE= 3905fi 3906 3907 3908{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3909$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3910if test "${ac_cv_path_SED+set}" = set; then 3911 $as_echo_n "(cached) " >&6 3912else 3913 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3914 for ac_i in 1 2 3 4 5 6 7; do 3915 ac_script="$ac_script$as_nl$ac_script" 3916 done 3917 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3918 $as_unset ac_script || ac_script= 3919 if test -z "$SED"; then 3920 ac_path_SED_found=false 3921 # Loop through the user's path and test for each of PROGNAME-LIST 3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH 3924do 3925 IFS=$as_save_IFS 3926 test -z "$as_dir" && as_dir=. 3927 for ac_prog in sed gsed; do 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3930 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3931# Check for GNU ac_path_SED and select it if it is found. 3932 # Check for GNU $ac_path_SED 3933case `"$ac_path_SED" --version 2>&1` in 3934*GNU*) 3935 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3936*) 3937 ac_count=0 3938 $as_echo_n 0123456789 >"conftest.in" 3939 while : 3940 do 3941 cat "conftest.in" "conftest.in" >"conftest.tmp" 3942 mv "conftest.tmp" "conftest.in" 3943 cp "conftest.in" "conftest.nl" 3944 $as_echo '' >> "conftest.nl" 3945 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3947 ac_count=`expr $ac_count + 1` 3948 if test $ac_count -gt ${ac_path_SED_max-0}; then 3949 # Best one so far, save it but keep looking for a better one 3950 ac_cv_path_SED="$ac_path_SED" 3951 ac_path_SED_max=$ac_count 3952 fi 3953 # 10*(2^10) chars as input seems more than enough 3954 test $ac_count -gt 10 && break 3955 done 3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3957esac 3958 3959 $ac_path_SED_found && break 3 3960 done 3961 done 3962done 3963IFS=$as_save_IFS 3964 if test -z "$ac_cv_path_SED"; then 3965 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3966$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3967 { (exit 1); exit 1; }; } 3968 fi 3969else 3970 ac_cv_path_SED=$SED 3971fi 3972 3973fi 3974{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3975$as_echo "$ac_cv_path_SED" >&6; } 3976 SED="$ac_cv_path_SED" 3977 rm -f conftest.sed 3978 3979test -z "$SED" && SED=sed 3980Xsed="$SED -e 1s/^X//" 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3993$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3994if test "${ac_cv_path_GREP+set}" = set; then 3995 $as_echo_n "(cached) " >&6 3996else 3997 if test -z "$GREP"; then 3998 ac_path_GREP_found=false 3999 # Loop through the user's path and test for each of PROGNAME-LIST 4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_prog in grep ggrep; do 4006 for ac_exec_ext in '' $ac_executable_extensions; do 4007 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4008 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4009# Check for GNU ac_path_GREP and select it if it is found. 4010 # Check for GNU $ac_path_GREP 4011case `"$ac_path_GREP" --version 2>&1` in 4012*GNU*) 4013 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4014*) 4015 ac_count=0 4016 $as_echo_n 0123456789 >"conftest.in" 4017 while : 4018 do 4019 cat "conftest.in" "conftest.in" >"conftest.tmp" 4020 mv "conftest.tmp" "conftest.in" 4021 cp "conftest.in" "conftest.nl" 4022 $as_echo 'GREP' >> "conftest.nl" 4023 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4025 ac_count=`expr $ac_count + 1` 4026 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4027 # Best one so far, save it but keep looking for a better one 4028 ac_cv_path_GREP="$ac_path_GREP" 4029 ac_path_GREP_max=$ac_count 4030 fi 4031 # 10*(2^10) chars as input seems more than enough 4032 test $ac_count -gt 10 && break 4033 done 4034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4035esac 4036 4037 $ac_path_GREP_found && break 3 4038 done 4039 done 4040done 4041IFS=$as_save_IFS 4042 if test -z "$ac_cv_path_GREP"; then 4043 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4044$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4045 { (exit 1); exit 1; }; } 4046 fi 4047else 4048 ac_cv_path_GREP=$GREP 4049fi 4050 4051fi 4052{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4053$as_echo "$ac_cv_path_GREP" >&6; } 4054 GREP="$ac_cv_path_GREP" 4055 4056 4057{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4058$as_echo_n "checking for egrep... " >&6; } 4059if test "${ac_cv_path_EGREP+set}" = set; then 4060 $as_echo_n "(cached) " >&6 4061else 4062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4063 then ac_cv_path_EGREP="$GREP -E" 4064 else 4065 if test -z "$EGREP"; then 4066 ac_path_EGREP_found=false 4067 # Loop through the user's path and test for each of PROGNAME-LIST 4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4070do 4071 IFS=$as_save_IFS 4072 test -z "$as_dir" && as_dir=. 4073 for ac_prog in egrep; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4077# Check for GNU ac_path_EGREP and select it if it is found. 4078 # Check for GNU $ac_path_EGREP 4079case `"$ac_path_EGREP" --version 2>&1` in 4080*GNU*) 4081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4082*) 4083 ac_count=0 4084 $as_echo_n 0123456789 >"conftest.in" 4085 while : 4086 do 4087 cat "conftest.in" "conftest.in" >"conftest.tmp" 4088 mv "conftest.tmp" "conftest.in" 4089 cp "conftest.in" "conftest.nl" 4090 $as_echo 'EGREP' >> "conftest.nl" 4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4093 ac_count=`expr $ac_count + 1` 4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4095 # Best one so far, save it but keep looking for a better one 4096 ac_cv_path_EGREP="$ac_path_EGREP" 4097 ac_path_EGREP_max=$ac_count 4098 fi 4099 # 10*(2^10) chars as input seems more than enough 4100 test $ac_count -gt 10 && break 4101 done 4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4103esac 4104 4105 $ac_path_EGREP_found && break 3 4106 done 4107 done 4108done 4109IFS=$as_save_IFS 4110 if test -z "$ac_cv_path_EGREP"; then 4111 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4112$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4113 { (exit 1); exit 1; }; } 4114 fi 4115else 4116 ac_cv_path_EGREP=$EGREP 4117fi 4118 4119 fi 4120fi 4121{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4122$as_echo "$ac_cv_path_EGREP" >&6; } 4123 EGREP="$ac_cv_path_EGREP" 4124 4125 4126{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4127$as_echo_n "checking for fgrep... " >&6; } 4128if test "${ac_cv_path_FGREP+set}" = set; then 4129 $as_echo_n "(cached) " >&6 4130else 4131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4132 then ac_cv_path_FGREP="$GREP -F" 4133 else 4134 if test -z "$FGREP"; then 4135 ac_path_FGREP_found=false 4136 # Loop through the user's path and test for each of PROGNAME-LIST 4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4139do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_prog in fgrep; do 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4145 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4146# Check for GNU ac_path_FGREP and select it if it is found. 4147 # Check for GNU $ac_path_FGREP 4148case `"$ac_path_FGREP" --version 2>&1` in 4149*GNU*) 4150 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4151*) 4152 ac_count=0 4153 $as_echo_n 0123456789 >"conftest.in" 4154 while : 4155 do 4156 cat "conftest.in" "conftest.in" >"conftest.tmp" 4157 mv "conftest.tmp" "conftest.in" 4158 cp "conftest.in" "conftest.nl" 4159 $as_echo 'FGREP' >> "conftest.nl" 4160 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4162 ac_count=`expr $ac_count + 1` 4163 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4164 # Best one so far, save it but keep looking for a better one 4165 ac_cv_path_FGREP="$ac_path_FGREP" 4166 ac_path_FGREP_max=$ac_count 4167 fi 4168 # 10*(2^10) chars as input seems more than enough 4169 test $ac_count -gt 10 && break 4170 done 4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4172esac 4173 4174 $ac_path_FGREP_found && break 3 4175 done 4176 done 4177done 4178IFS=$as_save_IFS 4179 if test -z "$ac_cv_path_FGREP"; then 4180 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4181$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4182 { (exit 1); exit 1; }; } 4183 fi 4184else 4185 ac_cv_path_FGREP=$FGREP 4186fi 4187 4188 fi 4189fi 4190{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4191$as_echo "$ac_cv_path_FGREP" >&6; } 4192 FGREP="$ac_cv_path_FGREP" 4193 4194 4195test -z "$GREP" && GREP=grep 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215# Check whether --with-gnu-ld was given. 4216if test "${with_gnu_ld+set}" = set; then 4217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4218else 4219 with_gnu_ld=no 4220fi 4221 4222ac_prog=ld 4223if test "$GCC" = yes; then 4224 # Check if gcc -print-prog-name=ld gives a path. 4225 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4226$as_echo_n "checking for ld used by $CC... " >&6; } 4227 case $host in 4228 *-*-mingw*) 4229 # gcc leaves a trailing carriage return which upsets mingw 4230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4231 *) 4232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4233 esac 4234 case $ac_prog in 4235 # Accept absolute paths. 4236 [\\/]* | ?:[\\/]*) 4237 re_direlt='/[^/][^/]*/\.\./' 4238 # Canonicalize the pathname of ld 4239 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4240 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4241 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4242 done 4243 test -z "$LD" && LD="$ac_prog" 4244 ;; 4245 "") 4246 # If it fails, then pretend we aren't using GCC. 4247 ac_prog=ld 4248 ;; 4249 *) 4250 # If it is relative, then search for the first ld in PATH. 4251 with_gnu_ld=unknown 4252 ;; 4253 esac 4254elif test "$with_gnu_ld" = yes; then 4255 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4256$as_echo_n "checking for GNU ld... " >&6; } 4257else 4258 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4259$as_echo_n "checking for non-GNU ld... " >&6; } 4260fi 4261if test "${lt_cv_path_LD+set}" = set; then 4262 $as_echo_n "(cached) " >&6 4263else 4264 if test -z "$LD"; then 4265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4266 for ac_dir in $PATH; do 4267 IFS="$lt_save_ifs" 4268 test -z "$ac_dir" && ac_dir=. 4269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4270 lt_cv_path_LD="$ac_dir/$ac_prog" 4271 # Check to see if the program is GNU ld. I'd rather use --version, 4272 # but apparently some variants of GNU ld only accept -v. 4273 # Break only if it was the GNU/non-GNU ld that we prefer. 4274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4275 *GNU* | *'with BFD'*) 4276 test "$with_gnu_ld" != no && break 4277 ;; 4278 *) 4279 test "$with_gnu_ld" != yes && break 4280 ;; 4281 esac 4282 fi 4283 done 4284 IFS="$lt_save_ifs" 4285else 4286 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4287fi 4288fi 4289 4290LD="$lt_cv_path_LD" 4291if test -n "$LD"; then 4292 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4293$as_echo "$LD" >&6; } 4294else 4295 { $as_echo "$as_me:$LINENO: result: no" >&5 4296$as_echo "no" >&6; } 4297fi 4298test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4299$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4300 { (exit 1); exit 1; }; } 4301{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4302$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4303if test "${lt_cv_prog_gnu_ld+set}" = set; then 4304 $as_echo_n "(cached) " >&6 4305else 4306 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4307case `$LD -v 2>&1 </dev/null` in 4308*GNU* | *'with BFD'*) 4309 lt_cv_prog_gnu_ld=yes 4310 ;; 4311*) 4312 lt_cv_prog_gnu_ld=no 4313 ;; 4314esac 4315fi 4316{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4317$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4318with_gnu_ld=$lt_cv_prog_gnu_ld 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4329$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4330if test "${lt_cv_path_NM+set}" = set; then 4331 $as_echo_n "(cached) " >&6 4332else 4333 if test -n "$NM"; then 4334 # Let the user override the test. 4335 lt_cv_path_NM="$NM" 4336else 4337 lt_nm_to_check="${ac_tool_prefix}nm" 4338 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4339 lt_nm_to_check="$lt_nm_to_check nm" 4340 fi 4341 for lt_tmp_nm in $lt_nm_to_check; do 4342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4344 IFS="$lt_save_ifs" 4345 test -z "$ac_dir" && ac_dir=. 4346 tmp_nm="$ac_dir/$lt_tmp_nm" 4347 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4348 # Check to see if the nm accepts a BSD-compat flag. 4349 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4350 # nm: unknown option "B" ignored 4351 # Tru64's nm complains that /dev/null is an invalid object file 4352 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4353 */dev/null* | *'Invalid file or object type'*) 4354 lt_cv_path_NM="$tmp_nm -B" 4355 break 4356 ;; 4357 *) 4358 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4359 */dev/null*) 4360 lt_cv_path_NM="$tmp_nm -p" 4361 break 4362 ;; 4363 *) 4364 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4365 continue # so that we can try to find one that supports BSD flags 4366 ;; 4367 esac 4368 ;; 4369 esac 4370 fi 4371 done 4372 IFS="$lt_save_ifs" 4373 done 4374 : ${lt_cv_path_NM=no} 4375fi 4376fi 4377{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4378$as_echo "$lt_cv_path_NM" >&6; } 4379if test "$lt_cv_path_NM" != "no"; then 4380 NM="$lt_cv_path_NM" 4381else 4382 # Didn't find any BSD compatible name lister, look for dumpbin. 4383 if test -n "$ac_tool_prefix"; then 4384 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4385 do 4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4387set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4388{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4389$as_echo_n "checking for $ac_word... " >&6; } 4390if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4391 $as_echo_n "(cached) " >&6 4392else 4393 if test -n "$DUMPBIN"; then 4394 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4395else 4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4397for as_dir in $PATH 4398do 4399 IFS=$as_save_IFS 4400 test -z "$as_dir" && as_dir=. 4401 for ac_exec_ext in '' $ac_executable_extensions; do 4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4403 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4405 break 2 4406 fi 4407done 4408done 4409IFS=$as_save_IFS 4410 4411fi 4412fi 4413DUMPBIN=$ac_cv_prog_DUMPBIN 4414if test -n "$DUMPBIN"; then 4415 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4416$as_echo "$DUMPBIN" >&6; } 4417else 4418 { $as_echo "$as_me:$LINENO: result: no" >&5 4419$as_echo "no" >&6; } 4420fi 4421 4422 4423 test -n "$DUMPBIN" && break 4424 done 4425fi 4426if test -z "$DUMPBIN"; then 4427 ac_ct_DUMPBIN=$DUMPBIN 4428 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4429do 4430 # Extract the first word of "$ac_prog", so it can be a program name with args. 4431set dummy $ac_prog; ac_word=$2 4432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4433$as_echo_n "checking for $ac_word... " >&6; } 4434if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4435 $as_echo_n "(cached) " >&6 4436else 4437 if test -n "$ac_ct_DUMPBIN"; then 4438 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4439else 4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_exec_ext in '' $ac_executable_extensions; do 4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4447 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4449 break 2 4450 fi 4451done 4452done 4453IFS=$as_save_IFS 4454 4455fi 4456fi 4457ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4458if test -n "$ac_ct_DUMPBIN"; then 4459 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4460$as_echo "$ac_ct_DUMPBIN" >&6; } 4461else 4462 { $as_echo "$as_me:$LINENO: result: no" >&5 4463$as_echo "no" >&6; } 4464fi 4465 4466 4467 test -n "$ac_ct_DUMPBIN" && break 4468done 4469 4470 if test "x$ac_ct_DUMPBIN" = x; then 4471 DUMPBIN=":" 4472 else 4473 case $cross_compiling:$ac_tool_warned in 4474yes:) 4475{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4477ac_tool_warned=yes ;; 4478esac 4479 DUMPBIN=$ac_ct_DUMPBIN 4480 fi 4481fi 4482 4483 4484 if test "$DUMPBIN" != ":"; then 4485 NM="$DUMPBIN" 4486 fi 4487fi 4488test -z "$NM" && NM=nm 4489 4490 4491 4492 4493 4494 4495{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4496$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4497if test "${lt_cv_nm_interface+set}" = set; then 4498 $as_echo_n "(cached) " >&6 4499else 4500 lt_cv_nm_interface="BSD nm" 4501 echo "int some_variable = 0;" > conftest.$ac_ext 4502 (eval echo "\"\$as_me:4502: $ac_compile\"" >&5) 4503 (eval "$ac_compile" 2>conftest.err) 4504 cat conftest.err >&5 4505 (eval echo "\"\$as_me:4505: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4506 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4507 cat conftest.err >&5 4508 (eval echo "\"\$as_me:4508: output\"" >&5) 4509 cat conftest.out >&5 4510 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4511 lt_cv_nm_interface="MS dumpbin" 4512 fi 4513 rm -f conftest* 4514fi 4515{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4516$as_echo "$lt_cv_nm_interface" >&6; } 4517 4518{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4519$as_echo_n "checking whether ln -s works... " >&6; } 4520LN_S=$as_ln_s 4521if test "$LN_S" = "ln -s"; then 4522 { $as_echo "$as_me:$LINENO: result: yes" >&5 4523$as_echo "yes" >&6; } 4524else 4525 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4526$as_echo "no, using $LN_S" >&6; } 4527fi 4528 4529# find the maximum length of command line arguments 4530{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4531$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4532if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4533 $as_echo_n "(cached) " >&6 4534else 4535 i=0 4536 teststring="ABCD" 4537 4538 case $build_os in 4539 msdosdjgpp*) 4540 # On DJGPP, this test can blow up pretty badly due to problems in libc 4541 # (any single argument exceeding 2000 bytes causes a buffer overrun 4542 # during glob expansion). Even if it were fixed, the result of this 4543 # check would be larger than it should be. 4544 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4545 ;; 4546 4547 gnu*) 4548 # Under GNU Hurd, this test is not required because there is 4549 # no limit to the length of command line arguments. 4550 # Libtool will interpret -1 as no limit whatsoever 4551 lt_cv_sys_max_cmd_len=-1; 4552 ;; 4553 4554 cygwin* | mingw* | cegcc*) 4555 # On Win9x/ME, this test blows up -- it succeeds, but takes 4556 # about 5 minutes as the teststring grows exponentially. 4557 # Worse, since 9x/ME are not pre-emptively multitasking, 4558 # you end up with a "frozen" computer, even though with patience 4559 # the test eventually succeeds (with a max line length of 256k). 4560 # Instead, let's just punt: use the minimum linelength reported by 4561 # all of the supported platforms: 8192 (on NT/2K/XP). 4562 lt_cv_sys_max_cmd_len=8192; 4563 ;; 4564 4565 amigaos*) 4566 # On AmigaOS with pdksh, this test takes hours, literally. 4567 # So we just punt and use a minimum line length of 8192. 4568 lt_cv_sys_max_cmd_len=8192; 4569 ;; 4570 4571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4572 # This has been around since 386BSD, at least. Likely further. 4573 if test -x /sbin/sysctl; then 4574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4575 elif test -x /usr/sbin/sysctl; then 4576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4577 else 4578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4579 fi 4580 # And add a safety zone 4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4583 ;; 4584 4585 interix*) 4586 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4587 lt_cv_sys_max_cmd_len=196608 4588 ;; 4589 4590 osf*) 4591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4593 # nice to cause kernel panics so lets avoid the loop below. 4594 # First set a reasonable default. 4595 lt_cv_sys_max_cmd_len=16384 4596 # 4597 if test -x /sbin/sysconfig; then 4598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4599 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4600 esac 4601 fi 4602 ;; 4603 sco3.2v5*) 4604 lt_cv_sys_max_cmd_len=102400 4605 ;; 4606 sysv5* | sco5v6* | sysv4.2uw2*) 4607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4608 if test -n "$kargmax"; then 4609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4610 else 4611 lt_cv_sys_max_cmd_len=32768 4612 fi 4613 ;; 4614 *) 4615 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4616 if test -n "$lt_cv_sys_max_cmd_len"; then 4617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4619 else 4620 # Make teststring a little bigger before we do anything with it. 4621 # a 1K string should be a reasonable start. 4622 for i in 1 2 3 4 5 6 7 8 ; do 4623 teststring=$teststring$teststring 4624 done 4625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4626 # If test is not a shell built-in, we'll probably end up computing a 4627 # maximum length that is only half of the actual maximum length, but 4628 # we can't tell. 4629 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4630 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4631 test $i != 17 # 1/2 MB should be enough 4632 do 4633 i=`expr $i + 1` 4634 teststring=$teststring$teststring 4635 done 4636 # Only check the string length outside the loop. 4637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4638 teststring= 4639 # Add a significant safety factor because C++ compilers can tack on 4640 # massive amounts of additional arguments before passing them to the 4641 # linker. It appears as though 1/2 is a usable value. 4642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4643 fi 4644 ;; 4645 esac 4646 4647fi 4648 4649if test -n $lt_cv_sys_max_cmd_len ; then 4650 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4651$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4652else 4653 { $as_echo "$as_me:$LINENO: result: none" >&5 4654$as_echo "none" >&6; } 4655fi 4656max_cmd_len=$lt_cv_sys_max_cmd_len 4657 4658 4659 4660 4661 4662 4663: ${CP="cp -f"} 4664: ${MV="mv -f"} 4665: ${RM="rm -f"} 4666 4667{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4668$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4669# Try some XSI features 4670xsi_shell=no 4671( _lt_dummy="a/b/c" 4672 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4673 = c,a/b,, \ 4674 && eval 'test $(( 1 + 1 )) -eq 2 \ 4675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4676 && xsi_shell=yes 4677{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4678$as_echo "$xsi_shell" >&6; } 4679 4680 4681{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4682$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4683lt_shell_append=no 4684( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4685 >/dev/null 2>&1 \ 4686 && lt_shell_append=yes 4687{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4688$as_echo "$lt_shell_append" >&6; } 4689 4690 4691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4692 lt_unset=unset 4693else 4694 lt_unset=false 4695fi 4696 4697 4698 4699 4700 4701# test EBCDIC or ASCII 4702case `echo X|tr X '\101'` in 4703 A) # ASCII based system 4704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4705 lt_SP2NL='tr \040 \012' 4706 lt_NL2SP='tr \015\012 \040\040' 4707 ;; 4708 *) # EBCDIC based system 4709 lt_SP2NL='tr \100 \n' 4710 lt_NL2SP='tr \r\n \100\100' 4711 ;; 4712esac 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4723$as_echo_n "checking for $LD option to reload object files... " >&6; } 4724if test "${lt_cv_ld_reload_flag+set}" = set; then 4725 $as_echo_n "(cached) " >&6 4726else 4727 lt_cv_ld_reload_flag='-r' 4728fi 4729{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4730$as_echo "$lt_cv_ld_reload_flag" >&6; } 4731reload_flag=$lt_cv_ld_reload_flag 4732case $reload_flag in 4733"" | " "*) ;; 4734*) reload_flag=" $reload_flag" ;; 4735esac 4736reload_cmds='$LD$reload_flag -o $output$reload_objs' 4737case $host_os in 4738 darwin*) 4739 if test "$GCC" = yes; then 4740 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4741 else 4742 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4743 fi 4744 ;; 4745esac 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755if test -n "$ac_tool_prefix"; then 4756 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4757set dummy ${ac_tool_prefix}objdump; ac_word=$2 4758{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4759$as_echo_n "checking for $ac_word... " >&6; } 4760if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4761 $as_echo_n "(cached) " >&6 4762else 4763 if test -n "$OBJDUMP"; then 4764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4765else 4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4767for as_dir in $PATH 4768do 4769 IFS=$as_save_IFS 4770 test -z "$as_dir" && as_dir=. 4771 for ac_exec_ext in '' $ac_executable_extensions; do 4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4773 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4775 break 2 4776 fi 4777done 4778done 4779IFS=$as_save_IFS 4780 4781fi 4782fi 4783OBJDUMP=$ac_cv_prog_OBJDUMP 4784if test -n "$OBJDUMP"; then 4785 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4786$as_echo "$OBJDUMP" >&6; } 4787else 4788 { $as_echo "$as_me:$LINENO: result: no" >&5 4789$as_echo "no" >&6; } 4790fi 4791 4792 4793fi 4794if test -z "$ac_cv_prog_OBJDUMP"; then 4795 ac_ct_OBJDUMP=$OBJDUMP 4796 # Extract the first word of "objdump", so it can be a program name with args. 4797set dummy objdump; ac_word=$2 4798{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4799$as_echo_n "checking for $ac_word... " >&6; } 4800if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4801 $as_echo_n "(cached) " >&6 4802else 4803 if test -n "$ac_ct_OBJDUMP"; then 4804 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4805else 4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4807for as_dir in $PATH 4808do 4809 IFS=$as_save_IFS 4810 test -z "$as_dir" && as_dir=. 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4813 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4815 break 2 4816 fi 4817done 4818done 4819IFS=$as_save_IFS 4820 4821fi 4822fi 4823ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4824if test -n "$ac_ct_OBJDUMP"; then 4825 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4826$as_echo "$ac_ct_OBJDUMP" >&6; } 4827else 4828 { $as_echo "$as_me:$LINENO: result: no" >&5 4829$as_echo "no" >&6; } 4830fi 4831 4832 if test "x$ac_ct_OBJDUMP" = x; then 4833 OBJDUMP="false" 4834 else 4835 case $cross_compiling:$ac_tool_warned in 4836yes:) 4837{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4839ac_tool_warned=yes ;; 4840esac 4841 OBJDUMP=$ac_ct_OBJDUMP 4842 fi 4843else 4844 OBJDUMP="$ac_cv_prog_OBJDUMP" 4845fi 4846 4847test -z "$OBJDUMP" && OBJDUMP=objdump 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4858$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4859if test "${lt_cv_deplibs_check_method+set}" = set; then 4860 $as_echo_n "(cached) " >&6 4861else 4862 lt_cv_file_magic_cmd='$MAGIC_CMD' 4863lt_cv_file_magic_test_file= 4864lt_cv_deplibs_check_method='unknown' 4865# Need to set the preceding variable on all platforms that support 4866# interlibrary dependencies. 4867# 'none' -- dependencies not supported. 4868# `unknown' -- same as none, but documents that we really don't know. 4869# 'pass_all' -- all dependencies passed with no checks. 4870# 'test_compile' -- check by making test program. 4871# 'file_magic [[regex]]' -- check by looking for files in library path 4872# which responds to the $file_magic_cmd with a given extended regex. 4873# If you have `file' or equivalent on your system and you're not sure 4874# whether `pass_all' will *always* work, you probably want this one. 4875 4876case $host_os in 4877aix[4-9]*) 4878 lt_cv_deplibs_check_method=pass_all 4879 ;; 4880 4881beos*) 4882 lt_cv_deplibs_check_method=pass_all 4883 ;; 4884 4885bsdi[45]*) 4886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4887 lt_cv_file_magic_cmd='/usr/bin/file -L' 4888 lt_cv_file_magic_test_file=/shlib/libc.so 4889 ;; 4890 4891cygwin*) 4892 # func_win32_libid is a shell function defined in ltmain.sh 4893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4894 lt_cv_file_magic_cmd='func_win32_libid' 4895 ;; 4896 4897mingw* | pw32*) 4898 # Base MSYS/MinGW do not provide the 'file' command needed by 4899 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4900 # unless we find 'file', for example because we are cross-compiling. 4901 if ( file / ) >/dev/null 2>&1; then 4902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4903 lt_cv_file_magic_cmd='func_win32_libid' 4904 else 4905 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4906 lt_cv_file_magic_cmd='$OBJDUMP -f' 4907 fi 4908 ;; 4909 4910cegcc) 4911 # use the weaker test based on 'objdump'. See mingw*. 4912 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4913 lt_cv_file_magic_cmd='$OBJDUMP -f' 4914 ;; 4915 4916darwin* | rhapsody*) 4917 lt_cv_deplibs_check_method=pass_all 4918 ;; 4919 4920freebsd* | dragonfly*) 4921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4922 case $host_cpu in 4923 i*86 ) 4924 # Not sure whether the presence of OpenBSD here was a mistake. 4925 # Let's accept both of them until this is cleared up. 4926 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4927 lt_cv_file_magic_cmd=/usr/bin/file 4928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4929 ;; 4930 esac 4931 else 4932 lt_cv_deplibs_check_method=pass_all 4933 fi 4934 ;; 4935 4936gnu*) 4937 lt_cv_deplibs_check_method=pass_all 4938 ;; 4939 4940hpux10.20* | hpux11*) 4941 lt_cv_file_magic_cmd=/usr/bin/file 4942 case $host_cpu in 4943 ia64*) 4944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4945 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4946 ;; 4947 hppa*64*) 4948 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]' 4949 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4950 ;; 4951 *) 4952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4953 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4954 ;; 4955 esac 4956 ;; 4957 4958interix[3-9]*) 4959 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4961 ;; 4962 4963irix5* | irix6* | nonstopux*) 4964 case $LD in 4965 *-32|*"-32 ") libmagic=32-bit;; 4966 *-n32|*"-n32 ") libmagic=N32;; 4967 *-64|*"-64 ") libmagic=64-bit;; 4968 *) libmagic=never-match;; 4969 esac 4970 lt_cv_deplibs_check_method=pass_all 4971 ;; 4972 4973# This must be Linux ELF. 4974linux* | k*bsd*-gnu) 4975 lt_cv_deplibs_check_method=pass_all 4976 ;; 4977 4978netbsd*) 4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4981 else 4982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4983 fi 4984 ;; 4985 4986newos6*) 4987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4988 lt_cv_file_magic_cmd=/usr/bin/file 4989 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4990 ;; 4991 4992*nto* | *qnx*) 4993 lt_cv_deplibs_check_method=pass_all 4994 ;; 4995 4996openbsd*) 4997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4999 else 5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5001 fi 5002 ;; 5003 5004osf3* | osf4* | osf5*) 5005 lt_cv_deplibs_check_method=pass_all 5006 ;; 5007 5008rdos*) 5009 lt_cv_deplibs_check_method=pass_all 5010 ;; 5011 5012solaris*) 5013 lt_cv_deplibs_check_method=pass_all 5014 ;; 5015 5016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5017 lt_cv_deplibs_check_method=pass_all 5018 ;; 5019 5020sysv4 | sysv4.3*) 5021 case $host_vendor in 5022 motorola) 5023 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]' 5024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5025 ;; 5026 ncr) 5027 lt_cv_deplibs_check_method=pass_all 5028 ;; 5029 sequent) 5030 lt_cv_file_magic_cmd='/bin/file' 5031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5032 ;; 5033 sni) 5034 lt_cv_file_magic_cmd='/bin/file' 5035 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5036 lt_cv_file_magic_test_file=/lib/libc.so 5037 ;; 5038 siemens) 5039 lt_cv_deplibs_check_method=pass_all 5040 ;; 5041 pc) 5042 lt_cv_deplibs_check_method=pass_all 5043 ;; 5044 esac 5045 ;; 5046 5047tpf*) 5048 lt_cv_deplibs_check_method=pass_all 5049 ;; 5050esac 5051 5052fi 5053{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5054$as_echo "$lt_cv_deplibs_check_method" >&6; } 5055file_magic_cmd=$lt_cv_file_magic_cmd 5056deplibs_check_method=$lt_cv_deplibs_check_method 5057test -z "$deplibs_check_method" && deplibs_check_method=unknown 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070if test -n "$ac_tool_prefix"; then 5071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5072set dummy ${ac_tool_prefix}ar; ac_word=$2 5073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5074$as_echo_n "checking for $ac_word... " >&6; } 5075if test "${ac_cv_prog_AR+set}" = set; then 5076 $as_echo_n "(cached) " >&6 5077else 5078 if test -n "$AR"; then 5079 ac_cv_prog_AR="$AR" # Let the user override the test. 5080else 5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5082for as_dir in $PATH 5083do 5084 IFS=$as_save_IFS 5085 test -z "$as_dir" && as_dir=. 5086 for ac_exec_ext in '' $ac_executable_extensions; do 5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5088 ac_cv_prog_AR="${ac_tool_prefix}ar" 5089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5090 break 2 5091 fi 5092done 5093done 5094IFS=$as_save_IFS 5095 5096fi 5097fi 5098AR=$ac_cv_prog_AR 5099if test -n "$AR"; then 5100 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5101$as_echo "$AR" >&6; } 5102else 5103 { $as_echo "$as_me:$LINENO: result: no" >&5 5104$as_echo "no" >&6; } 5105fi 5106 5107 5108fi 5109if test -z "$ac_cv_prog_AR"; then 5110 ac_ct_AR=$AR 5111 # Extract the first word of "ar", so it can be a program name with args. 5112set dummy ar; ac_word=$2 5113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5114$as_echo_n "checking for $ac_word... " >&6; } 5115if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5116 $as_echo_n "(cached) " >&6 5117else 5118 if test -n "$ac_ct_AR"; then 5119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5120else 5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5122for as_dir in $PATH 5123do 5124 IFS=$as_save_IFS 5125 test -z "$as_dir" && as_dir=. 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5128 ac_cv_prog_ac_ct_AR="ar" 5129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5130 break 2 5131 fi 5132done 5133done 5134IFS=$as_save_IFS 5135 5136fi 5137fi 5138ac_ct_AR=$ac_cv_prog_ac_ct_AR 5139if test -n "$ac_ct_AR"; then 5140 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5141$as_echo "$ac_ct_AR" >&6; } 5142else 5143 { $as_echo "$as_me:$LINENO: result: no" >&5 5144$as_echo "no" >&6; } 5145fi 5146 5147 if test "x$ac_ct_AR" = x; then 5148 AR="false" 5149 else 5150 case $cross_compiling:$ac_tool_warned in 5151yes:) 5152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5154ac_tool_warned=yes ;; 5155esac 5156 AR=$ac_ct_AR 5157 fi 5158else 5159 AR="$ac_cv_prog_AR" 5160fi 5161 5162test -z "$AR" && AR=ar 5163test -z "$AR_FLAGS" && AR_FLAGS=cru 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175if test -n "$ac_tool_prefix"; then 5176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5177set dummy ${ac_tool_prefix}strip; ac_word=$2 5178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5179$as_echo_n "checking for $ac_word... " >&6; } 5180if test "${ac_cv_prog_STRIP+set}" = set; then 5181 $as_echo_n "(cached) " >&6 5182else 5183 if test -n "$STRIP"; then 5184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5185else 5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5187for as_dir in $PATH 5188do 5189 IFS=$as_save_IFS 5190 test -z "$as_dir" && as_dir=. 5191 for ac_exec_ext in '' $ac_executable_extensions; do 5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5193 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5195 break 2 5196 fi 5197done 5198done 5199IFS=$as_save_IFS 5200 5201fi 5202fi 5203STRIP=$ac_cv_prog_STRIP 5204if test -n "$STRIP"; then 5205 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5206$as_echo "$STRIP" >&6; } 5207else 5208 { $as_echo "$as_me:$LINENO: result: no" >&5 5209$as_echo "no" >&6; } 5210fi 5211 5212 5213fi 5214if test -z "$ac_cv_prog_STRIP"; then 5215 ac_ct_STRIP=$STRIP 5216 # Extract the first word of "strip", so it can be a program name with args. 5217set dummy strip; ac_word=$2 5218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5219$as_echo_n "checking for $ac_word... " >&6; } 5220if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5221 $as_echo_n "(cached) " >&6 5222else 5223 if test -n "$ac_ct_STRIP"; then 5224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5225else 5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5227for as_dir in $PATH 5228do 5229 IFS=$as_save_IFS 5230 test -z "$as_dir" && as_dir=. 5231 for ac_exec_ext in '' $ac_executable_extensions; do 5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5233 ac_cv_prog_ac_ct_STRIP="strip" 5234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5235 break 2 5236 fi 5237done 5238done 5239IFS=$as_save_IFS 5240 5241fi 5242fi 5243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5244if test -n "$ac_ct_STRIP"; then 5245 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5246$as_echo "$ac_ct_STRIP" >&6; } 5247else 5248 { $as_echo "$as_me:$LINENO: result: no" >&5 5249$as_echo "no" >&6; } 5250fi 5251 5252 if test "x$ac_ct_STRIP" = x; then 5253 STRIP=":" 5254 else 5255 case $cross_compiling:$ac_tool_warned in 5256yes:) 5257{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5259ac_tool_warned=yes ;; 5260esac 5261 STRIP=$ac_ct_STRIP 5262 fi 5263else 5264 STRIP="$ac_cv_prog_STRIP" 5265fi 5266 5267test -z "$STRIP" && STRIP=: 5268 5269 5270 5271 5272 5273 5274if test -n "$ac_tool_prefix"; then 5275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5276set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5278$as_echo_n "checking for $ac_word... " >&6; } 5279if test "${ac_cv_prog_RANLIB+set}" = set; then 5280 $as_echo_n "(cached) " >&6 5281else 5282 if test -n "$RANLIB"; then 5283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5284else 5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5286for as_dir in $PATH 5287do 5288 IFS=$as_save_IFS 5289 test -z "$as_dir" && as_dir=. 5290 for ac_exec_ext in '' $ac_executable_extensions; do 5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5294 break 2 5295 fi 5296done 5297done 5298IFS=$as_save_IFS 5299 5300fi 5301fi 5302RANLIB=$ac_cv_prog_RANLIB 5303if test -n "$RANLIB"; then 5304 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5305$as_echo "$RANLIB" >&6; } 5306else 5307 { $as_echo "$as_me:$LINENO: result: no" >&5 5308$as_echo "no" >&6; } 5309fi 5310 5311 5312fi 5313if test -z "$ac_cv_prog_RANLIB"; then 5314 ac_ct_RANLIB=$RANLIB 5315 # Extract the first word of "ranlib", so it can be a program name with args. 5316set dummy ranlib; ac_word=$2 5317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5318$as_echo_n "checking for $ac_word... " >&6; } 5319if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5320 $as_echo_n "(cached) " >&6 5321else 5322 if test -n "$ac_ct_RANLIB"; then 5323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5324else 5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5326for as_dir in $PATH 5327do 5328 IFS=$as_save_IFS 5329 test -z "$as_dir" && as_dir=. 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5332 ac_cv_prog_ac_ct_RANLIB="ranlib" 5333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5334 break 2 5335 fi 5336done 5337done 5338IFS=$as_save_IFS 5339 5340fi 5341fi 5342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5343if test -n "$ac_ct_RANLIB"; then 5344 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5345$as_echo "$ac_ct_RANLIB" >&6; } 5346else 5347 { $as_echo "$as_me:$LINENO: result: no" >&5 5348$as_echo "no" >&6; } 5349fi 5350 5351 if test "x$ac_ct_RANLIB" = x; then 5352 RANLIB=":" 5353 else 5354 case $cross_compiling:$ac_tool_warned in 5355yes:) 5356{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5358ac_tool_warned=yes ;; 5359esac 5360 RANLIB=$ac_ct_RANLIB 5361 fi 5362else 5363 RANLIB="$ac_cv_prog_RANLIB" 5364fi 5365 5366test -z "$RANLIB" && RANLIB=: 5367 5368 5369 5370 5371 5372 5373# Determine commands to create old-style static archives. 5374old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5375old_postinstall_cmds='chmod 644 $oldlib' 5376old_postuninstall_cmds= 5377 5378if test -n "$RANLIB"; then 5379 case $host_os in 5380 openbsd*) 5381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5382 ;; 5383 *) 5384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5385 ;; 5386 esac 5387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5388fi 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423# If no C compiler was specified, use CC. 5424LTCC=${LTCC-"$CC"} 5425 5426# If no C compiler flags were specified, use CFLAGS. 5427LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5428 5429# Allow CC to be a program name with arguments. 5430compiler=$CC 5431 5432 5433# Check for command to grab the raw symbol name followed by C symbol from nm. 5434{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5435$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5436if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5437 $as_echo_n "(cached) " >&6 5438else 5439 5440# These are sane defaults that work on at least a few old systems. 5441# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5442 5443# Character class describing NM global symbol codes. 5444symcode='[BCDEGRST]' 5445 5446# Regexp to match symbols that can be accessed directly from C. 5447sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5448 5449# Define system-specific variables. 5450case $host_os in 5451aix*) 5452 symcode='[BCDT]' 5453 ;; 5454cygwin* | mingw* | pw32* | cegcc*) 5455 symcode='[ABCDGISTW]' 5456 ;; 5457hpux*) 5458 if test "$host_cpu" = ia64; then 5459 symcode='[ABCDEGRST]' 5460 fi 5461 ;; 5462irix* | nonstopux*) 5463 symcode='[BCDEGRST]' 5464 ;; 5465osf*) 5466 symcode='[BCDEGQRST]' 5467 ;; 5468solaris*) 5469 symcode='[BDRT]' 5470 ;; 5471sco3.2v5*) 5472 symcode='[DT]' 5473 ;; 5474sysv4.2uw2*) 5475 symcode='[DT]' 5476 ;; 5477sysv5* | sco5v6* | unixware* | OpenUNIX*) 5478 symcode='[ABDT]' 5479 ;; 5480sysv4) 5481 symcode='[DFNSTU]' 5482 ;; 5483esac 5484 5485# If we're using GNU nm, then use its standard symbol codes. 5486case `$NM -V 2>&1` in 5487*GNU* | *'with BFD'*) 5488 symcode='[ABCDGIRSTW]' ;; 5489esac 5490 5491# Transform an extracted symbol line into a proper C declaration. 5492# Some systems (esp. on ia64) link data and code symbols differently, 5493# so use this general approach. 5494lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5495 5496# Transform an extracted symbol line into symbol name and symbol address 5497lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5498lt_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'" 5499 5500# Handle CRLF in mingw tool chain 5501opt_cr= 5502case $build_os in 5503mingw*) 5504 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5505 ;; 5506esac 5507 5508# Try without a prefix underscore, then with it. 5509for ac_symprfx in "" "_"; do 5510 5511 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5512 symxfrm="\\1 $ac_symprfx\\2 \\2" 5513 5514 # Write the raw and C identifiers. 5515 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5516 # Fake it for dumpbin and say T for any non-static function 5517 # and D for any global variable. 5518 # Also find C++ and __fastcall symbols from MSVC++, 5519 # which start with @ or ?. 5520 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5521" {last_section=section; section=\$ 3};"\ 5522" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5523" \$ 0!~/External *\|/{next};"\ 5524" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5525" {if(hide[section]) next};"\ 5526" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5527" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5528" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5529" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5530" ' prfx=^$ac_symprfx" 5531 else 5532 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5533 fi 5534 5535 # Check to see that the pipe works correctly. 5536 pipe_works=no 5537 5538 rm -f conftest* 5539 cat > conftest.$ac_ext <<_LT_EOF 5540#ifdef __cplusplus 5541extern "C" { 5542#endif 5543char nm_test_var; 5544void nm_test_func(void); 5545void nm_test_func(void){} 5546#ifdef __cplusplus 5547} 5548#endif 5549int main(){nm_test_var='a';nm_test_func();return(0);} 5550_LT_EOF 5551 5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5553 (eval $ac_compile) 2>&5 5554 ac_status=$? 5555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); }; then 5557 # Now try to grab the symbols. 5558 nlist=conftest.nm 5559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5561 ac_status=$? 5562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 (exit $ac_status); } && test -s "$nlist"; then 5564 # Try sorting and uniquifying the output. 5565 if sort "$nlist" | uniq > "$nlist"T; then 5566 mv -f "$nlist"T "$nlist" 5567 else 5568 rm -f "$nlist"T 5569 fi 5570 5571 # Make sure that we snagged all the symbols we need. 5572 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5573 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5574 cat <<_LT_EOF > conftest.$ac_ext 5575#ifdef __cplusplus 5576extern "C" { 5577#endif 5578 5579_LT_EOF 5580 # Now generate the symbol file. 5581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5582 5583 cat <<_LT_EOF >> conftest.$ac_ext 5584 5585/* The mapping between symbol names and symbols. */ 5586const struct { 5587 const char *name; 5588 void *address; 5589} 5590lt__PROGRAM__LTX_preloaded_symbols[] = 5591{ 5592 { "@PROGRAM@", (void *) 0 }, 5593_LT_EOF 5594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5595 cat <<\_LT_EOF >> conftest.$ac_ext 5596 {0, (void *) 0} 5597}; 5598 5599/* This works around a problem in FreeBSD linker */ 5600#ifdef FREEBSD_WORKAROUND 5601static const void *lt_preloaded_setup() { 5602 return lt__PROGRAM__LTX_preloaded_symbols; 5603} 5604#endif 5605 5606#ifdef __cplusplus 5607} 5608#endif 5609_LT_EOF 5610 # Now try linking the two files. 5611 mv conftest.$ac_objext conftstm.$ac_objext 5612 lt_save_LIBS="$LIBS" 5613 lt_save_CFLAGS="$CFLAGS" 5614 LIBS="conftstm.$ac_objext" 5615 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5617 (eval $ac_link) 2>&5 5618 ac_status=$? 5619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5620 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5621 pipe_works=yes 5622 fi 5623 LIBS="$lt_save_LIBS" 5624 CFLAGS="$lt_save_CFLAGS" 5625 else 5626 echo "cannot find nm_test_func in $nlist" >&5 5627 fi 5628 else 5629 echo "cannot find nm_test_var in $nlist" >&5 5630 fi 5631 else 5632 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5633 fi 5634 else 5635 echo "$progname: failed program was:" >&5 5636 cat conftest.$ac_ext >&5 5637 fi 5638 rm -rf conftest* conftst* 5639 5640 # Do not use the global_symbol_pipe unless it works. 5641 if test "$pipe_works" = yes; then 5642 break 5643 else 5644 lt_cv_sys_global_symbol_pipe= 5645 fi 5646done 5647 5648fi 5649 5650if test -z "$lt_cv_sys_global_symbol_pipe"; then 5651 lt_cv_sys_global_symbol_to_cdecl= 5652fi 5653if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5654 { $as_echo "$as_me:$LINENO: result: failed" >&5 5655$as_echo "failed" >&6; } 5656else 5657 { $as_echo "$as_me:$LINENO: result: ok" >&5 5658$as_echo "ok" >&6; } 5659fi 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683# Check whether --enable-libtool-lock was given. 5684if test "${enable_libtool_lock+set}" = set; then 5685 enableval=$enable_libtool_lock; 5686fi 5687 5688test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5689 5690# Some flags need to be propagated to the compiler or linker for good 5691# libtool support. 5692case $host in 5693ia64-*-hpux*) 5694 # Find out which ABI we are using. 5695 echo 'int i;' > conftest.$ac_ext 5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5697 (eval $ac_compile) 2>&5 5698 ac_status=$? 5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5700 (exit $ac_status); }; then 5701 case `/usr/bin/file conftest.$ac_objext` in 5702 *ELF-32*) 5703 HPUX_IA64_MODE="32" 5704 ;; 5705 *ELF-64*) 5706 HPUX_IA64_MODE="64" 5707 ;; 5708 esac 5709 fi 5710 rm -rf conftest* 5711 ;; 5712*-*-irix6*) 5713 # Find out which ABI we are using. 5714 echo '#line 5714 "configure"' > conftest.$ac_ext 5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5716 (eval $ac_compile) 2>&5 5717 ac_status=$? 5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); }; then 5720 if test "$lt_cv_prog_gnu_ld" = yes; then 5721 case `/usr/bin/file conftest.$ac_objext` in 5722 *32-bit*) 5723 LD="${LD-ld} -melf32bsmip" 5724 ;; 5725 *N32*) 5726 LD="${LD-ld} -melf32bmipn32" 5727 ;; 5728 *64-bit*) 5729 LD="${LD-ld} -melf64bmip" 5730 ;; 5731 esac 5732 else 5733 case `/usr/bin/file conftest.$ac_objext` in 5734 *32-bit*) 5735 LD="${LD-ld} -32" 5736 ;; 5737 *N32*) 5738 LD="${LD-ld} -n32" 5739 ;; 5740 *64-bit*) 5741 LD="${LD-ld} -64" 5742 ;; 5743 esac 5744 fi 5745 fi 5746 rm -rf conftest* 5747 ;; 5748 5749x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5750s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5751 # Find out which ABI we are using. 5752 echo 'int i;' > conftest.$ac_ext 5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5754 (eval $ac_compile) 2>&5 5755 ac_status=$? 5756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5757 (exit $ac_status); }; then 5758 case `/usr/bin/file conftest.o` in 5759 *32-bit*) 5760 case $host in 5761 x86_64-*kfreebsd*-gnu) 5762 LD="${LD-ld} -m elf_i386_fbsd" 5763 ;; 5764 x86_64-*linux*) 5765 LD="${LD-ld} -m elf_i386" 5766 ;; 5767 ppc64-*linux*|powerpc64-*linux*) 5768 LD="${LD-ld} -m elf32ppclinux" 5769 ;; 5770 s390x-*linux*) 5771 LD="${LD-ld} -m elf_s390" 5772 ;; 5773 sparc64-*linux*) 5774 LD="${LD-ld} -m elf32_sparc" 5775 ;; 5776 esac 5777 ;; 5778 *64-bit*) 5779 case $host in 5780 x86_64-*kfreebsd*-gnu) 5781 LD="${LD-ld} -m elf_x86_64_fbsd" 5782 ;; 5783 x86_64-*linux*) 5784 LD="${LD-ld} -m elf_x86_64" 5785 ;; 5786 ppc*-*linux*|powerpc*-*linux*) 5787 LD="${LD-ld} -m elf64ppc" 5788 ;; 5789 s390*-*linux*|s390*-*tpf*) 5790 LD="${LD-ld} -m elf64_s390" 5791 ;; 5792 sparc*-*linux*) 5793 LD="${LD-ld} -m elf64_sparc" 5794 ;; 5795 esac 5796 ;; 5797 esac 5798 fi 5799 rm -rf conftest* 5800 ;; 5801 5802*-*-sco3.2v5*) 5803 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5804 SAVE_CFLAGS="$CFLAGS" 5805 CFLAGS="$CFLAGS -belf" 5806 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5807$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5808if test "${lt_cv_cc_needs_belf+set}" = set; then 5809 $as_echo_n "(cached) " >&6 5810else 5811 ac_ext=c 5812ac_cpp='$CPP $CPPFLAGS' 5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5815ac_compiler_gnu=$ac_cv_c_compiler_gnu 5816 5817 cat >conftest.$ac_ext <<_ACEOF 5818/* confdefs.h. */ 5819_ACEOF 5820cat confdefs.h >>conftest.$ac_ext 5821cat >>conftest.$ac_ext <<_ACEOF 5822/* end confdefs.h. */ 5823 5824int 5825main () 5826{ 5827 5828 ; 5829 return 0; 5830} 5831_ACEOF 5832rm -f conftest.$ac_objext conftest$ac_exeext 5833if { (ac_try="$ac_link" 5834case "(($ac_try" in 5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5836 *) ac_try_echo=$ac_try;; 5837esac 5838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5839$as_echo "$ac_try_echo") >&5 5840 (eval "$ac_link") 2>conftest.er1 5841 ac_status=$? 5842 grep -v '^ *+' conftest.er1 >conftest.err 5843 rm -f conftest.er1 5844 cat conftest.err >&5 5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); } && { 5847 test -z "$ac_c_werror_flag" || 5848 test ! -s conftest.err 5849 } && test -s conftest$ac_exeext && { 5850 test "$cross_compiling" = yes || 5851 $as_test_x conftest$ac_exeext 5852 }; then 5853 lt_cv_cc_needs_belf=yes 5854else 5855 $as_echo "$as_me: failed program was:" >&5 5856sed 's/^/| /' conftest.$ac_ext >&5 5857 5858 lt_cv_cc_needs_belf=no 5859fi 5860 5861rm -rf conftest.dSYM 5862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5863 conftest$ac_exeext conftest.$ac_ext 5864 ac_ext=c 5865ac_cpp='$CPP $CPPFLAGS' 5866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5868ac_compiler_gnu=$ac_cv_c_compiler_gnu 5869 5870fi 5871{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5872$as_echo "$lt_cv_cc_needs_belf" >&6; } 5873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5875 CFLAGS="$SAVE_CFLAGS" 5876 fi 5877 ;; 5878sparc*-*solaris*) 5879 # Find out which ABI we are using. 5880 echo 'int i;' > conftest.$ac_ext 5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5882 (eval $ac_compile) 2>&5 5883 ac_status=$? 5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5885 (exit $ac_status); }; then 5886 case `/usr/bin/file conftest.o` in 5887 *64-bit*) 5888 case $lt_cv_prog_gnu_ld in 5889 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5890 *) 5891 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5892 LD="${LD-ld} -64" 5893 fi 5894 ;; 5895 esac 5896 ;; 5897 esac 5898 fi 5899 rm -rf conftest* 5900 ;; 5901esac 5902 5903need_locks="$enable_libtool_lock" 5904 5905 5906 case $host_os in 5907 rhapsody* | darwin*) 5908 if test -n "$ac_tool_prefix"; then 5909 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5910set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5912$as_echo_n "checking for $ac_word... " >&6; } 5913if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5914 $as_echo_n "(cached) " >&6 5915else 5916 if test -n "$DSYMUTIL"; then 5917 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5918else 5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5920for as_dir in $PATH 5921do 5922 IFS=$as_save_IFS 5923 test -z "$as_dir" && as_dir=. 5924 for ac_exec_ext in '' $ac_executable_extensions; do 5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5928 break 2 5929 fi 5930done 5931done 5932IFS=$as_save_IFS 5933 5934fi 5935fi 5936DSYMUTIL=$ac_cv_prog_DSYMUTIL 5937if test -n "$DSYMUTIL"; then 5938 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5939$as_echo "$DSYMUTIL" >&6; } 5940else 5941 { $as_echo "$as_me:$LINENO: result: no" >&5 5942$as_echo "no" >&6; } 5943fi 5944 5945 5946fi 5947if test -z "$ac_cv_prog_DSYMUTIL"; then 5948 ac_ct_DSYMUTIL=$DSYMUTIL 5949 # Extract the first word of "dsymutil", so it can be a program name with args. 5950set dummy dsymutil; ac_word=$2 5951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5952$as_echo_n "checking for $ac_word... " >&6; } 5953if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5954 $as_echo_n "(cached) " >&6 5955else 5956 if test -n "$ac_ct_DSYMUTIL"; then 5957 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5958else 5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5960for as_dir in $PATH 5961do 5962 IFS=$as_save_IFS 5963 test -z "$as_dir" && as_dir=. 5964 for ac_exec_ext in '' $ac_executable_extensions; do 5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5968 break 2 5969 fi 5970done 5971done 5972IFS=$as_save_IFS 5973 5974fi 5975fi 5976ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5977if test -n "$ac_ct_DSYMUTIL"; then 5978 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5979$as_echo "$ac_ct_DSYMUTIL" >&6; } 5980else 5981 { $as_echo "$as_me:$LINENO: result: no" >&5 5982$as_echo "no" >&6; } 5983fi 5984 5985 if test "x$ac_ct_DSYMUTIL" = x; then 5986 DSYMUTIL=":" 5987 else 5988 case $cross_compiling:$ac_tool_warned in 5989yes:) 5990{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5992ac_tool_warned=yes ;; 5993esac 5994 DSYMUTIL=$ac_ct_DSYMUTIL 5995 fi 5996else 5997 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5998fi 5999 6000 if test -n "$ac_tool_prefix"; then 6001 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6002set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6003{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6004$as_echo_n "checking for $ac_word... " >&6; } 6005if test "${ac_cv_prog_NMEDIT+set}" = set; then 6006 $as_echo_n "(cached) " >&6 6007else 6008 if test -n "$NMEDIT"; then 6009 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6010else 6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6012for as_dir in $PATH 6013do 6014 IFS=$as_save_IFS 6015 test -z "$as_dir" && as_dir=. 6016 for ac_exec_ext in '' $ac_executable_extensions; do 6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6020 break 2 6021 fi 6022done 6023done 6024IFS=$as_save_IFS 6025 6026fi 6027fi 6028NMEDIT=$ac_cv_prog_NMEDIT 6029if test -n "$NMEDIT"; then 6030 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6031$as_echo "$NMEDIT" >&6; } 6032else 6033 { $as_echo "$as_me:$LINENO: result: no" >&5 6034$as_echo "no" >&6; } 6035fi 6036 6037 6038fi 6039if test -z "$ac_cv_prog_NMEDIT"; then 6040 ac_ct_NMEDIT=$NMEDIT 6041 # Extract the first word of "nmedit", so it can be a program name with args. 6042set dummy nmedit; ac_word=$2 6043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6044$as_echo_n "checking for $ac_word... " >&6; } 6045if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6046 $as_echo_n "(cached) " >&6 6047else 6048 if test -n "$ac_ct_NMEDIT"; then 6049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6050else 6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6052for as_dir in $PATH 6053do 6054 IFS=$as_save_IFS 6055 test -z "$as_dir" && as_dir=. 6056 for ac_exec_ext in '' $ac_executable_extensions; do 6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6058 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6060 break 2 6061 fi 6062done 6063done 6064IFS=$as_save_IFS 6065 6066fi 6067fi 6068ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6069if test -n "$ac_ct_NMEDIT"; then 6070 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6071$as_echo "$ac_ct_NMEDIT" >&6; } 6072else 6073 { $as_echo "$as_me:$LINENO: result: no" >&5 6074$as_echo "no" >&6; } 6075fi 6076 6077 if test "x$ac_ct_NMEDIT" = x; then 6078 NMEDIT=":" 6079 else 6080 case $cross_compiling:$ac_tool_warned in 6081yes:) 6082{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6084ac_tool_warned=yes ;; 6085esac 6086 NMEDIT=$ac_ct_NMEDIT 6087 fi 6088else 6089 NMEDIT="$ac_cv_prog_NMEDIT" 6090fi 6091 6092 if test -n "$ac_tool_prefix"; then 6093 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6094set dummy ${ac_tool_prefix}lipo; ac_word=$2 6095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6096$as_echo_n "checking for $ac_word... " >&6; } 6097if test "${ac_cv_prog_LIPO+set}" = set; then 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$LIPO"; then 6101 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6102else 6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6110 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120LIPO=$ac_cv_prog_LIPO 6121if test -n "$LIPO"; then 6122 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6123$as_echo "$LIPO" >&6; } 6124else 6125 { $as_echo "$as_me:$LINENO: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 6130fi 6131if test -z "$ac_cv_prog_LIPO"; then 6132 ac_ct_LIPO=$LIPO 6133 # Extract the first word of "lipo", so it can be a program name with args. 6134set dummy lipo; ac_word=$2 6135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6136$as_echo_n "checking for $ac_word... " >&6; } 6137if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6138 $as_echo_n "(cached) " >&6 6139else 6140 if test -n "$ac_ct_LIPO"; then 6141 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6142else 6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144for as_dir in $PATH 6145do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6150 ac_cv_prog_ac_ct_LIPO="lipo" 6151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155done 6156IFS=$as_save_IFS 6157 6158fi 6159fi 6160ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6161if test -n "$ac_ct_LIPO"; then 6162 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6163$as_echo "$ac_ct_LIPO" >&6; } 6164else 6165 { $as_echo "$as_me:$LINENO: result: no" >&5 6166$as_echo "no" >&6; } 6167fi 6168 6169 if test "x$ac_ct_LIPO" = x; then 6170 LIPO=":" 6171 else 6172 case $cross_compiling:$ac_tool_warned in 6173yes:) 6174{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176ac_tool_warned=yes ;; 6177esac 6178 LIPO=$ac_ct_LIPO 6179 fi 6180else 6181 LIPO="$ac_cv_prog_LIPO" 6182fi 6183 6184 if test -n "$ac_tool_prefix"; then 6185 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6186set dummy ${ac_tool_prefix}otool; ac_word=$2 6187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if test "${ac_cv_prog_OTOOL+set}" = set; then 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$OTOOL"; then 6193 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6202 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212OTOOL=$ac_cv_prog_OTOOL 6213if test -n "$OTOOL"; then 6214 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6215$as_echo "$OTOOL" >&6; } 6216else 6217 { $as_echo "$as_me:$LINENO: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 6222fi 6223if test -z "$ac_cv_prog_OTOOL"; then 6224 ac_ct_OTOOL=$OTOOL 6225 # Extract the first word of "otool", so it can be a program name with args. 6226set dummy otool; ac_word=$2 6227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$ac_ct_OTOOL"; then 6233 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6242 ac_cv_prog_ac_ct_OTOOL="otool" 6243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6253if test -n "$ac_ct_OTOOL"; then 6254 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6255$as_echo "$ac_ct_OTOOL" >&6; } 6256else 6257 { $as_echo "$as_me:$LINENO: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 if test "x$ac_ct_OTOOL" = x; then 6262 OTOOL=":" 6263 else 6264 case $cross_compiling:$ac_tool_warned in 6265yes:) 6266{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6268ac_tool_warned=yes ;; 6269esac 6270 OTOOL=$ac_ct_OTOOL 6271 fi 6272else 6273 OTOOL="$ac_cv_prog_OTOOL" 6274fi 6275 6276 if test -n "$ac_tool_prefix"; then 6277 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6278set dummy ${ac_tool_prefix}otool64; ac_word=$2 6279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6280$as_echo_n "checking for $ac_word... " >&6; } 6281if test "${ac_cv_prog_OTOOL64+set}" = set; then 6282 $as_echo_n "(cached) " >&6 6283else 6284 if test -n "$OTOOL64"; then 6285 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6286else 6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6294 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299done 6300IFS=$as_save_IFS 6301 6302fi 6303fi 6304OTOOL64=$ac_cv_prog_OTOOL64 6305if test -n "$OTOOL64"; then 6306 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6307$as_echo "$OTOOL64" >&6; } 6308else 6309 { $as_echo "$as_me:$LINENO: result: no" >&5 6310$as_echo "no" >&6; } 6311fi 6312 6313 6314fi 6315if test -z "$ac_cv_prog_OTOOL64"; then 6316 ac_ct_OTOOL64=$OTOOL64 6317 # Extract the first word of "otool64", so it can be a program name with args. 6318set dummy otool64; ac_word=$2 6319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6320$as_echo_n "checking for $ac_word... " >&6; } 6321if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6322 $as_echo_n "(cached) " >&6 6323else 6324 if test -n "$ac_ct_OTOOL64"; then 6325 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6326else 6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6328for as_dir in $PATH 6329do 6330 IFS=$as_save_IFS 6331 test -z "$as_dir" && as_dir=. 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6334 ac_cv_prog_ac_ct_OTOOL64="otool64" 6335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338done 6339done 6340IFS=$as_save_IFS 6341 6342fi 6343fi 6344ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6345if test -n "$ac_ct_OTOOL64"; then 6346 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6347$as_echo "$ac_ct_OTOOL64" >&6; } 6348else 6349 { $as_echo "$as_me:$LINENO: result: no" >&5 6350$as_echo "no" >&6; } 6351fi 6352 6353 if test "x$ac_ct_OTOOL64" = x; then 6354 OTOOL64=":" 6355 else 6356 case $cross_compiling:$ac_tool_warned in 6357yes:) 6358{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6360ac_tool_warned=yes ;; 6361esac 6362 OTOOL64=$ac_ct_OTOOL64 6363 fi 6364else 6365 OTOOL64="$ac_cv_prog_OTOOL64" 6366fi 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6395$as_echo_n "checking for -single_module linker flag... " >&6; } 6396if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6397 $as_echo_n "(cached) " >&6 6398else 6399 lt_cv_apple_cc_single_mod=no 6400 if test -z "${LT_MULTI_MODULE}"; then 6401 # By default we will add the -single_module flag. You can override 6402 # by either setting the environment variable LT_MULTI_MODULE 6403 # non-empty at configure time, or by adding -multi_module to the 6404 # link flags. 6405 rm -rf libconftest.dylib* 6406 echo "int foo(void){return 1;}" > conftest.c 6407 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6408-dynamiclib -Wl,-single_module conftest.c" >&5 6409 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6410 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6411 _lt_result=$? 6412 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6413 lt_cv_apple_cc_single_mod=yes 6414 else 6415 cat conftest.err >&5 6416 fi 6417 rm -rf libconftest.dylib* 6418 rm -f conftest.* 6419 fi 6420fi 6421{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6422$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6423 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6424$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6425if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6426 $as_echo_n "(cached) " >&6 6427else 6428 lt_cv_ld_exported_symbols_list=no 6429 save_LDFLAGS=$LDFLAGS 6430 echo "_main" > conftest.sym 6431 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6432 cat >conftest.$ac_ext <<_ACEOF 6433/* confdefs.h. */ 6434_ACEOF 6435cat confdefs.h >>conftest.$ac_ext 6436cat >>conftest.$ac_ext <<_ACEOF 6437/* end confdefs.h. */ 6438 6439int 6440main () 6441{ 6442 6443 ; 6444 return 0; 6445} 6446_ACEOF 6447rm -f conftest.$ac_objext conftest$ac_exeext 6448if { (ac_try="$ac_link" 6449case "(($ac_try" in 6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6451 *) ac_try_echo=$ac_try;; 6452esac 6453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6454$as_echo "$ac_try_echo") >&5 6455 (eval "$ac_link") 2>conftest.er1 6456 ac_status=$? 6457 grep -v '^ *+' conftest.er1 >conftest.err 6458 rm -f conftest.er1 6459 cat conftest.err >&5 6460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6461 (exit $ac_status); } && { 6462 test -z "$ac_c_werror_flag" || 6463 test ! -s conftest.err 6464 } && test -s conftest$ac_exeext && { 6465 test "$cross_compiling" = yes || 6466 $as_test_x conftest$ac_exeext 6467 }; then 6468 lt_cv_ld_exported_symbols_list=yes 6469else 6470 $as_echo "$as_me: failed program was:" >&5 6471sed 's/^/| /' conftest.$ac_ext >&5 6472 6473 lt_cv_ld_exported_symbols_list=no 6474fi 6475 6476rm -rf conftest.dSYM 6477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6478 conftest$ac_exeext conftest.$ac_ext 6479 LDFLAGS="$save_LDFLAGS" 6480 6481fi 6482{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6483$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6484 case $host_os in 6485 rhapsody* | darwin1.[012]) 6486 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6487 darwin1.*) 6488 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6489 darwin*) # darwin 5.x on 6490 # if running on 10.5 or later, the deployment target defaults 6491 # to the OS version, if on x86, and 10.4, the deployment 6492 # target defaults to 10.4. Don't you love it? 6493 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6494 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6495 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6496 10.[012]*) 6497 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6498 10.*) 6499 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6500 esac 6501 ;; 6502 esac 6503 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6504 _lt_dar_single_mod='$single_module' 6505 fi 6506 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6507 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6508 else 6509 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6510 fi 6511 if test "$DSYMUTIL" != ":"; then 6512 _lt_dsymutil='~$DSYMUTIL $lib || :' 6513 else 6514 _lt_dsymutil= 6515 fi 6516 ;; 6517 esac 6518 6519ac_ext=c 6520ac_cpp='$CPP $CPPFLAGS' 6521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6523ac_compiler_gnu=$ac_cv_c_compiler_gnu 6524{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6525$as_echo_n "checking how to run the C preprocessor... " >&6; } 6526# On Suns, sometimes $CPP names a directory. 6527if test -n "$CPP" && test -d "$CPP"; then 6528 CPP= 6529fi 6530if test -z "$CPP"; then 6531 if test "${ac_cv_prog_CPP+set}" = set; then 6532 $as_echo_n "(cached) " >&6 6533else 6534 # Double quotes because CPP needs to be expanded 6535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6536 do 6537 ac_preproc_ok=false 6538for ac_c_preproc_warn_flag in '' yes 6539do 6540 # Use a header file that comes with gcc, so configuring glibc 6541 # with a fresh cross-compiler works. 6542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6543 # <limits.h> exists even on freestanding compilers. 6544 # On the NeXT, cc -E runs the code through the compiler's parser, 6545 # not just through cpp. "Syntax error" is here to catch this case. 6546 cat >conftest.$ac_ext <<_ACEOF 6547/* confdefs.h. */ 6548_ACEOF 6549cat confdefs.h >>conftest.$ac_ext 6550cat >>conftest.$ac_ext <<_ACEOF 6551/* end confdefs.h. */ 6552#ifdef __STDC__ 6553# include <limits.h> 6554#else 6555# include <assert.h> 6556#endif 6557 Syntax error 6558_ACEOF 6559if { (ac_try="$ac_cpp conftest.$ac_ext" 6560case "(($ac_try" in 6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6562 *) ac_try_echo=$ac_try;; 6563esac 6564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6565$as_echo "$ac_try_echo") >&5 6566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6567 ac_status=$? 6568 grep -v '^ *+' conftest.er1 >conftest.err 6569 rm -f conftest.er1 6570 cat conftest.err >&5 6571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6572 (exit $ac_status); } >/dev/null && { 6573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6574 test ! -s conftest.err 6575 }; then 6576 : 6577else 6578 $as_echo "$as_me: failed program was:" >&5 6579sed 's/^/| /' conftest.$ac_ext >&5 6580 6581 # Broken: fails on valid input. 6582continue 6583fi 6584 6585rm -f conftest.err conftest.$ac_ext 6586 6587 # OK, works on sane cases. Now check whether nonexistent headers 6588 # can be detected and how. 6589 cat >conftest.$ac_ext <<_ACEOF 6590/* confdefs.h. */ 6591_ACEOF 6592cat confdefs.h >>conftest.$ac_ext 6593cat >>conftest.$ac_ext <<_ACEOF 6594/* end confdefs.h. */ 6595#include <ac_nonexistent.h> 6596_ACEOF 6597if { (ac_try="$ac_cpp conftest.$ac_ext" 6598case "(($ac_try" in 6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6600 *) ac_try_echo=$ac_try;; 6601esac 6602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6603$as_echo "$ac_try_echo") >&5 6604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6605 ac_status=$? 6606 grep -v '^ *+' conftest.er1 >conftest.err 6607 rm -f conftest.er1 6608 cat conftest.err >&5 6609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610 (exit $ac_status); } >/dev/null && { 6611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6612 test ! -s conftest.err 6613 }; then 6614 # Broken: success on invalid input. 6615continue 6616else 6617 $as_echo "$as_me: failed program was:" >&5 6618sed 's/^/| /' conftest.$ac_ext >&5 6619 6620 # Passes both tests. 6621ac_preproc_ok=: 6622break 6623fi 6624 6625rm -f conftest.err conftest.$ac_ext 6626 6627done 6628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6629rm -f conftest.err conftest.$ac_ext 6630if $ac_preproc_ok; then 6631 break 6632fi 6633 6634 done 6635 ac_cv_prog_CPP=$CPP 6636 6637fi 6638 CPP=$ac_cv_prog_CPP 6639else 6640 ac_cv_prog_CPP=$CPP 6641fi 6642{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6643$as_echo "$CPP" >&6; } 6644ac_preproc_ok=false 6645for ac_c_preproc_warn_flag in '' yes 6646do 6647 # Use a header file that comes with gcc, so configuring glibc 6648 # with a fresh cross-compiler works. 6649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6650 # <limits.h> exists even on freestanding compilers. 6651 # On the NeXT, cc -E runs the code through the compiler's parser, 6652 # not just through cpp. "Syntax error" is here to catch this case. 6653 cat >conftest.$ac_ext <<_ACEOF 6654/* confdefs.h. */ 6655_ACEOF 6656cat confdefs.h >>conftest.$ac_ext 6657cat >>conftest.$ac_ext <<_ACEOF 6658/* end confdefs.h. */ 6659#ifdef __STDC__ 6660# include <limits.h> 6661#else 6662# include <assert.h> 6663#endif 6664 Syntax error 6665_ACEOF 6666if { (ac_try="$ac_cpp conftest.$ac_ext" 6667case "(($ac_try" in 6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6669 *) ac_try_echo=$ac_try;; 6670esac 6671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6672$as_echo "$ac_try_echo") >&5 6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6674 ac_status=$? 6675 grep -v '^ *+' conftest.er1 >conftest.err 6676 rm -f conftest.er1 6677 cat conftest.err >&5 6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); } >/dev/null && { 6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6681 test ! -s conftest.err 6682 }; then 6683 : 6684else 6685 $as_echo "$as_me: failed program was:" >&5 6686sed 's/^/| /' conftest.$ac_ext >&5 6687 6688 # Broken: fails on valid input. 6689continue 6690fi 6691 6692rm -f conftest.err conftest.$ac_ext 6693 6694 # OK, works on sane cases. Now check whether nonexistent headers 6695 # can be detected and how. 6696 cat >conftest.$ac_ext <<_ACEOF 6697/* confdefs.h. */ 6698_ACEOF 6699cat confdefs.h >>conftest.$ac_ext 6700cat >>conftest.$ac_ext <<_ACEOF 6701/* end confdefs.h. */ 6702#include <ac_nonexistent.h> 6703_ACEOF 6704if { (ac_try="$ac_cpp conftest.$ac_ext" 6705case "(($ac_try" in 6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6707 *) ac_try_echo=$ac_try;; 6708esac 6709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6710$as_echo "$ac_try_echo") >&5 6711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6712 ac_status=$? 6713 grep -v '^ *+' conftest.er1 >conftest.err 6714 rm -f conftest.er1 6715 cat conftest.err >&5 6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6717 (exit $ac_status); } >/dev/null && { 6718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6719 test ! -s conftest.err 6720 }; then 6721 # Broken: success on invalid input. 6722continue 6723else 6724 $as_echo "$as_me: failed program was:" >&5 6725sed 's/^/| /' conftest.$ac_ext >&5 6726 6727 # Passes both tests. 6728ac_preproc_ok=: 6729break 6730fi 6731 6732rm -f conftest.err conftest.$ac_ext 6733 6734done 6735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6736rm -f conftest.err conftest.$ac_ext 6737if $ac_preproc_ok; then 6738 : 6739else 6740 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6742{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6743See \`config.log' for more details." >&5 6744$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6745See \`config.log' for more details." >&2;} 6746 { (exit 1); exit 1; }; }; } 6747fi 6748 6749ac_ext=c 6750ac_cpp='$CPP $CPPFLAGS' 6751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6753ac_compiler_gnu=$ac_cv_c_compiler_gnu 6754 6755 6756{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6757$as_echo_n "checking for ANSI C header files... " >&6; } 6758if test "${ac_cv_header_stdc+set}" = set; then 6759 $as_echo_n "(cached) " >&6 6760else 6761 cat >conftest.$ac_ext <<_ACEOF 6762/* confdefs.h. */ 6763_ACEOF 6764cat confdefs.h >>conftest.$ac_ext 6765cat >>conftest.$ac_ext <<_ACEOF 6766/* end confdefs.h. */ 6767#include <stdlib.h> 6768#include <stdarg.h> 6769#include <string.h> 6770#include <float.h> 6771 6772int 6773main () 6774{ 6775 6776 ; 6777 return 0; 6778} 6779_ACEOF 6780rm -f conftest.$ac_objext 6781if { (ac_try="$ac_compile" 6782case "(($ac_try" in 6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6784 *) ac_try_echo=$ac_try;; 6785esac 6786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6787$as_echo "$ac_try_echo") >&5 6788 (eval "$ac_compile") 2>conftest.er1 6789 ac_status=$? 6790 grep -v '^ *+' conftest.er1 >conftest.err 6791 rm -f conftest.er1 6792 cat conftest.err >&5 6793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6794 (exit $ac_status); } && { 6795 test -z "$ac_c_werror_flag" || 6796 test ! -s conftest.err 6797 } && test -s conftest.$ac_objext; then 6798 ac_cv_header_stdc=yes 6799else 6800 $as_echo "$as_me: failed program was:" >&5 6801sed 's/^/| /' conftest.$ac_ext >&5 6802 6803 ac_cv_header_stdc=no 6804fi 6805 6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6807 6808if test $ac_cv_header_stdc = yes; then 6809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6810 cat >conftest.$ac_ext <<_ACEOF 6811/* confdefs.h. */ 6812_ACEOF 6813cat confdefs.h >>conftest.$ac_ext 6814cat >>conftest.$ac_ext <<_ACEOF 6815/* end confdefs.h. */ 6816#include <string.h> 6817 6818_ACEOF 6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6820 $EGREP "memchr" >/dev/null 2>&1; then 6821 : 6822else 6823 ac_cv_header_stdc=no 6824fi 6825rm -f conftest* 6826 6827fi 6828 6829if test $ac_cv_header_stdc = yes; then 6830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6831 cat >conftest.$ac_ext <<_ACEOF 6832/* confdefs.h. */ 6833_ACEOF 6834cat confdefs.h >>conftest.$ac_ext 6835cat >>conftest.$ac_ext <<_ACEOF 6836/* end confdefs.h. */ 6837#include <stdlib.h> 6838 6839_ACEOF 6840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6841 $EGREP "free" >/dev/null 2>&1; then 6842 : 6843else 6844 ac_cv_header_stdc=no 6845fi 6846rm -f conftest* 6847 6848fi 6849 6850if test $ac_cv_header_stdc = yes; then 6851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6852 if test "$cross_compiling" = yes; then 6853 : 6854else 6855 cat >conftest.$ac_ext <<_ACEOF 6856/* confdefs.h. */ 6857_ACEOF 6858cat confdefs.h >>conftest.$ac_ext 6859cat >>conftest.$ac_ext <<_ACEOF 6860/* end confdefs.h. */ 6861#include <ctype.h> 6862#include <stdlib.h> 6863#if ((' ' & 0x0FF) == 0x020) 6864# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6865# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6866#else 6867# define ISLOWER(c) \ 6868 (('a' <= (c) && (c) <= 'i') \ 6869 || ('j' <= (c) && (c) <= 'r') \ 6870 || ('s' <= (c) && (c) <= 'z')) 6871# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6872#endif 6873 6874#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6875int 6876main () 6877{ 6878 int i; 6879 for (i = 0; i < 256; i++) 6880 if (XOR (islower (i), ISLOWER (i)) 6881 || toupper (i) != TOUPPER (i)) 6882 return 2; 6883 return 0; 6884} 6885_ACEOF 6886rm -f conftest$ac_exeext 6887if { (ac_try="$ac_link" 6888case "(($ac_try" in 6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6890 *) ac_try_echo=$ac_try;; 6891esac 6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6893$as_echo "$ac_try_echo") >&5 6894 (eval "$ac_link") 2>&5 6895 ac_status=$? 6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6898 { (case "(($ac_try" in 6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6900 *) ac_try_echo=$ac_try;; 6901esac 6902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6903$as_echo "$ac_try_echo") >&5 6904 (eval "$ac_try") 2>&5 6905 ac_status=$? 6906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6907 (exit $ac_status); }; }; then 6908 : 6909else 6910 $as_echo "$as_me: program exited with status $ac_status" >&5 6911$as_echo "$as_me: failed program was:" >&5 6912sed 's/^/| /' conftest.$ac_ext >&5 6913 6914( exit $ac_status ) 6915ac_cv_header_stdc=no 6916fi 6917rm -rf conftest.dSYM 6918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6919fi 6920 6921 6922fi 6923fi 6924{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6925$as_echo "$ac_cv_header_stdc" >&6; } 6926if test $ac_cv_header_stdc = yes; then 6927 6928cat >>confdefs.h <<\_ACEOF 6929#define STDC_HEADERS 1 6930_ACEOF 6931 6932fi 6933 6934# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6945 inttypes.h stdint.h unistd.h 6946do 6947as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6948{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6949$as_echo_n "checking for $ac_header... " >&6; } 6950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6951 $as_echo_n "(cached) " >&6 6952else 6953 cat >conftest.$ac_ext <<_ACEOF 6954/* confdefs.h. */ 6955_ACEOF 6956cat confdefs.h >>conftest.$ac_ext 6957cat >>conftest.$ac_ext <<_ACEOF 6958/* end confdefs.h. */ 6959$ac_includes_default 6960 6961#include <$ac_header> 6962_ACEOF 6963rm -f conftest.$ac_objext 6964if { (ac_try="$ac_compile" 6965case "(($ac_try" in 6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6967 *) ac_try_echo=$ac_try;; 6968esac 6969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6970$as_echo "$ac_try_echo") >&5 6971 (eval "$ac_compile") 2>conftest.er1 6972 ac_status=$? 6973 grep -v '^ *+' conftest.er1 >conftest.err 6974 rm -f conftest.er1 6975 cat conftest.err >&5 6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); } && { 6978 test -z "$ac_c_werror_flag" || 6979 test ! -s conftest.err 6980 } && test -s conftest.$ac_objext; then 6981 eval "$as_ac_Header=yes" 6982else 6983 $as_echo "$as_me: failed program was:" >&5 6984sed 's/^/| /' conftest.$ac_ext >&5 6985 6986 eval "$as_ac_Header=no" 6987fi 6988 6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6990fi 6991ac_res=`eval 'as_val=${'$as_ac_Header'} 6992 $as_echo "$as_val"'` 6993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6994$as_echo "$ac_res" >&6; } 6995as_val=`eval 'as_val=${'$as_ac_Header'} 6996 $as_echo "$as_val"'` 6997 if test "x$as_val" = x""yes; then 6998 cat >>confdefs.h <<_ACEOF 6999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7000_ACEOF 7001 7002fi 7003 7004done 7005 7006 7007 7008for ac_header in dlfcn.h 7009do 7010as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7011{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7012$as_echo_n "checking for $ac_header... " >&6; } 7013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7014 $as_echo_n "(cached) " >&6 7015else 7016 cat >conftest.$ac_ext <<_ACEOF 7017/* confdefs.h. */ 7018_ACEOF 7019cat confdefs.h >>conftest.$ac_ext 7020cat >>conftest.$ac_ext <<_ACEOF 7021/* end confdefs.h. */ 7022$ac_includes_default 7023 7024#include <$ac_header> 7025_ACEOF 7026rm -f conftest.$ac_objext 7027if { (ac_try="$ac_compile" 7028case "(($ac_try" in 7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7030 *) ac_try_echo=$ac_try;; 7031esac 7032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7033$as_echo "$ac_try_echo") >&5 7034 (eval "$ac_compile") 2>conftest.er1 7035 ac_status=$? 7036 grep -v '^ *+' conftest.er1 >conftest.err 7037 rm -f conftest.er1 7038 cat conftest.err >&5 7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7040 (exit $ac_status); } && { 7041 test -z "$ac_c_werror_flag" || 7042 test ! -s conftest.err 7043 } && test -s conftest.$ac_objext; then 7044 eval "$as_ac_Header=yes" 7045else 7046 $as_echo "$as_me: failed program was:" >&5 7047sed 's/^/| /' conftest.$ac_ext >&5 7048 7049 eval "$as_ac_Header=no" 7050fi 7051 7052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7053fi 7054ac_res=`eval 'as_val=${'$as_ac_Header'} 7055 $as_echo "$as_val"'` 7056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7057$as_echo "$ac_res" >&6; } 7058as_val=`eval 'as_val=${'$as_ac_Header'} 7059 $as_echo "$as_val"'` 7060 if test "x$as_val" = x""yes; then 7061 cat >>confdefs.h <<_ACEOF 7062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7063_ACEOF 7064 7065fi 7066 7067done 7068 7069 7070 7071# Set options 7072 7073 7074 7075 enable_dlopen=no 7076 7077 7078 enable_win32_dll=no 7079 7080 7081 # Check whether --enable-shared was given. 7082if test "${enable_shared+set}" = set; then 7083 enableval=$enable_shared; p=${PACKAGE-default} 7084 case $enableval in 7085 yes) enable_shared=yes ;; 7086 no) enable_shared=no ;; 7087 *) 7088 enable_shared=no 7089 # Look at the argument we got. We use all the common list separators. 7090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7091 for pkg in $enableval; do 7092 IFS="$lt_save_ifs" 7093 if test "X$pkg" = "X$p"; then 7094 enable_shared=yes 7095 fi 7096 done 7097 IFS="$lt_save_ifs" 7098 ;; 7099 esac 7100else 7101 enable_shared=yes 7102fi 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114# Check whether --with-pic was given. 7115if test "${with_pic+set}" = set; then 7116 withval=$with_pic; pic_mode="$withval" 7117else 7118 pic_mode=default 7119fi 7120 7121 7122test -z "$pic_mode" && pic_mode=default 7123 7124 7125 7126 7127 7128 7129 7130 # Check whether --enable-fast-install was given. 7131if test "${enable_fast_install+set}" = set; then 7132 enableval=$enable_fast_install; p=${PACKAGE-default} 7133 case $enableval in 7134 yes) enable_fast_install=yes ;; 7135 no) enable_fast_install=no ;; 7136 *) 7137 enable_fast_install=no 7138 # Look at the argument we got. We use all the common list separators. 7139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7140 for pkg in $enableval; do 7141 IFS="$lt_save_ifs" 7142 if test "X$pkg" = "X$p"; then 7143 enable_fast_install=yes 7144 fi 7145 done 7146 IFS="$lt_save_ifs" 7147 ;; 7148 esac 7149else 7150 enable_fast_install=yes 7151fi 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163# This can be used to rebuild libtool when needed 7164LIBTOOL_DEPS="$ltmain" 7165 7166# Always use our own libtool. 7167LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193test -z "$LN_S" && LN_S="ln -s" 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208if test -n "${ZSH_VERSION+set}" ; then 7209 setopt NO_GLOB_SUBST 7210fi 7211 7212{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7213$as_echo_n "checking for objdir... " >&6; } 7214if test "${lt_cv_objdir+set}" = set; then 7215 $as_echo_n "(cached) " >&6 7216else 7217 rm -f .libs 2>/dev/null 7218mkdir .libs 2>/dev/null 7219if test -d .libs; then 7220 lt_cv_objdir=.libs 7221else 7222 # MS-DOS does not allow filenames that begin with a dot. 7223 lt_cv_objdir=_libs 7224fi 7225rmdir .libs 2>/dev/null 7226fi 7227{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7228$as_echo "$lt_cv_objdir" >&6; } 7229objdir=$lt_cv_objdir 7230 7231 7232 7233 7234 7235cat >>confdefs.h <<_ACEOF 7236#define LT_OBJDIR "$lt_cv_objdir/" 7237_ACEOF 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255case $host_os in 7256aix3*) 7257 # AIX sometimes has problems with the GCC collect2 program. For some 7258 # reason, if we set the COLLECT_NAMES environment variable, the problems 7259 # vanish in a puff of smoke. 7260 if test "X${COLLECT_NAMES+set}" != Xset; then 7261 COLLECT_NAMES= 7262 export COLLECT_NAMES 7263 fi 7264 ;; 7265esac 7266 7267# Sed substitution that helps us do robust quoting. It backslashifies 7268# metacharacters that are still active within double-quoted strings. 7269sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7270 7271# Same as above, but do not quote variable references. 7272double_quote_subst='s/\(["`\\]\)/\\\1/g' 7273 7274# Sed substitution to delay expansion of an escaped shell variable in a 7275# double_quote_subst'ed string. 7276delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7277 7278# Sed substitution to delay expansion of an escaped single quote. 7279delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7280 7281# Sed substitution to avoid accidental globbing in evaled expressions 7282no_glob_subst='s/\*/\\\*/g' 7283 7284# Global variables: 7285ofile=libtool 7286can_build_shared=yes 7287 7288# All known linkers require a `.a' archive for static linking (except MSVC, 7289# which needs '.lib'). 7290libext=a 7291 7292with_gnu_ld="$lt_cv_prog_gnu_ld" 7293 7294old_CC="$CC" 7295old_CFLAGS="$CFLAGS" 7296 7297# Set sane defaults for various variables 7298test -z "$CC" && CC=cc 7299test -z "$LTCC" && LTCC=$CC 7300test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7301test -z "$LD" && LD=ld 7302test -z "$ac_objext" && ac_objext=o 7303 7304for cc_temp in $compiler""; do 7305 case $cc_temp in 7306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7308 \-*) ;; 7309 *) break;; 7310 esac 7311done 7312cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7313 7314 7315# Only perform the check for file, if the check method requires it 7316test -z "$MAGIC_CMD" && MAGIC_CMD=file 7317case $deplibs_check_method in 7318file_magic*) 7319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7320 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7321$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7322if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7323 $as_echo_n "(cached) " >&6 7324else 7325 case $MAGIC_CMD in 7326[\\/*] | ?:[\\/]*) 7327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7328 ;; 7329*) 7330 lt_save_MAGIC_CMD="$MAGIC_CMD" 7331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7333 for ac_dir in $ac_dummy; do 7334 IFS="$lt_save_ifs" 7335 test -z "$ac_dir" && ac_dir=. 7336 if test -f $ac_dir/${ac_tool_prefix}file; then 7337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7338 if test -n "$file_magic_test_file"; then 7339 case $deplibs_check_method in 7340 "file_magic "*) 7341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7344 $EGREP "$file_magic_regex" > /dev/null; then 7345 : 7346 else 7347 cat <<_LT_EOF 1>&2 7348 7349*** Warning: the command libtool uses to detect shared libraries, 7350*** $file_magic_cmd, produces output that libtool cannot recognize. 7351*** The result is that libtool may fail to recognize shared libraries 7352*** as such. This will affect the creation of libtool libraries that 7353*** depend on shared libraries, but programs linked with such libtool 7354*** libraries will work regardless of this problem. Nevertheless, you 7355*** may want to report the problem to your system manager and/or to 7356*** bug-libtool@gnu.org 7357 7358_LT_EOF 7359 fi ;; 7360 esac 7361 fi 7362 break 7363 fi 7364 done 7365 IFS="$lt_save_ifs" 7366 MAGIC_CMD="$lt_save_MAGIC_CMD" 7367 ;; 7368esac 7369fi 7370 7371MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7372if test -n "$MAGIC_CMD"; then 7373 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7374$as_echo "$MAGIC_CMD" >&6; } 7375else 7376 { $as_echo "$as_me:$LINENO: result: no" >&5 7377$as_echo "no" >&6; } 7378fi 7379 7380 7381 7382 7383 7384if test -z "$lt_cv_path_MAGIC_CMD"; then 7385 if test -n "$ac_tool_prefix"; then 7386 { $as_echo "$as_me:$LINENO: checking for file" >&5 7387$as_echo_n "checking for file... " >&6; } 7388if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7389 $as_echo_n "(cached) " >&6 7390else 7391 case $MAGIC_CMD in 7392[\\/*] | ?:[\\/]*) 7393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7394 ;; 7395*) 7396 lt_save_MAGIC_CMD="$MAGIC_CMD" 7397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7399 for ac_dir in $ac_dummy; do 7400 IFS="$lt_save_ifs" 7401 test -z "$ac_dir" && ac_dir=. 7402 if test -f $ac_dir/file; then 7403 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7404 if test -n "$file_magic_test_file"; then 7405 case $deplibs_check_method in 7406 "file_magic "*) 7407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7410 $EGREP "$file_magic_regex" > /dev/null; then 7411 : 7412 else 7413 cat <<_LT_EOF 1>&2 7414 7415*** Warning: the command libtool uses to detect shared libraries, 7416*** $file_magic_cmd, produces output that libtool cannot recognize. 7417*** The result is that libtool may fail to recognize shared libraries 7418*** as such. This will affect the creation of libtool libraries that 7419*** depend on shared libraries, but programs linked with such libtool 7420*** libraries will work regardless of this problem. Nevertheless, you 7421*** may want to report the problem to your system manager and/or to 7422*** bug-libtool@gnu.org 7423 7424_LT_EOF 7425 fi ;; 7426 esac 7427 fi 7428 break 7429 fi 7430 done 7431 IFS="$lt_save_ifs" 7432 MAGIC_CMD="$lt_save_MAGIC_CMD" 7433 ;; 7434esac 7435fi 7436 7437MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7438if test -n "$MAGIC_CMD"; then 7439 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7440$as_echo "$MAGIC_CMD" >&6; } 7441else 7442 { $as_echo "$as_me:$LINENO: result: no" >&5 7443$as_echo "no" >&6; } 7444fi 7445 7446 7447 else 7448 MAGIC_CMD=: 7449 fi 7450fi 7451 7452 fi 7453 ;; 7454esac 7455 7456# Use C for the default configuration in the libtool script 7457 7458lt_save_CC="$CC" 7459ac_ext=c 7460ac_cpp='$CPP $CPPFLAGS' 7461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7463ac_compiler_gnu=$ac_cv_c_compiler_gnu 7464 7465 7466# Source file extension for C test sources. 7467ac_ext=c 7468 7469# Object file extension for compiled C test sources. 7470objext=o 7471objext=$objext 7472 7473# Code to be used in simple compile tests 7474lt_simple_compile_test_code="int some_variable = 0;" 7475 7476# Code to be used in simple link tests 7477lt_simple_link_test_code='int main(){return(0);}' 7478 7479 7480 7481 7482 7483 7484 7485# If no C compiler was specified, use CC. 7486LTCC=${LTCC-"$CC"} 7487 7488# If no C compiler flags were specified, use CFLAGS. 7489LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7490 7491# Allow CC to be a program name with arguments. 7492compiler=$CC 7493 7494# Save the default compiler, since it gets overwritten when the other 7495# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7496compiler_DEFAULT=$CC 7497 7498# save warnings/boilerplate of simple test code 7499ac_outfile=conftest.$ac_objext 7500echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7502_lt_compiler_boilerplate=`cat conftest.err` 7503$RM conftest* 7504 7505ac_outfile=conftest.$ac_objext 7506echo "$lt_simple_link_test_code" >conftest.$ac_ext 7507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7508_lt_linker_boilerplate=`cat conftest.err` 7509$RM -r conftest* 7510 7511 7512if test -n "$compiler"; then 7513 7514lt_prog_compiler_no_builtin_flag= 7515 7516if test "$GCC" = yes; then 7517 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7518 7519 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7520$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7521if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7522 $as_echo_n "(cached) " >&6 7523else 7524 lt_cv_prog_compiler_rtti_exceptions=no 7525 ac_outfile=conftest.$ac_objext 7526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7527 lt_compiler_flag="-fno-rtti -fno-exceptions" 7528 # Insert the option either (1) after the last *FLAGS variable, or 7529 # (2) before a word containing "conftest.", or (3) at the end. 7530 # Note that $ac_compile itself does not contain backslashes and begins 7531 # with a dollar sign (not a hyphen), so the echo should work correctly. 7532 # The option is referenced via a variable to avoid confusing sed. 7533 lt_compile=`echo "$ac_compile" | $SED \ 7534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7536 -e 's:$: $lt_compiler_flag:'` 7537 (eval echo "\"\$as_me:7537: $lt_compile\"" >&5) 7538 (eval "$lt_compile" 2>conftest.err) 7539 ac_status=$? 7540 cat conftest.err >&5 7541 echo "$as_me:7541: \$? = $ac_status" >&5 7542 if (exit $ac_status) && test -s "$ac_outfile"; then 7543 # The compiler can only warn and ignore the option if not recognized 7544 # So say no if there are warnings other than the usual output. 7545 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7548 lt_cv_prog_compiler_rtti_exceptions=yes 7549 fi 7550 fi 7551 $RM conftest* 7552 7553fi 7554{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7555$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7556 7557if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7558 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7559else 7560 : 7561fi 7562 7563fi 7564 7565 7566 7567 7568 7569 7570 lt_prog_compiler_wl= 7571lt_prog_compiler_pic= 7572lt_prog_compiler_static= 7573 7574{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7575$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7576 7577 if test "$GCC" = yes; then 7578 lt_prog_compiler_wl='-Wl,' 7579 lt_prog_compiler_static='-static' 7580 7581 case $host_os in 7582 aix*) 7583 # All AIX code is PIC. 7584 if test "$host_cpu" = ia64; then 7585 # AIX 5 now supports IA64 processor 7586 lt_prog_compiler_static='-Bstatic' 7587 fi 7588 ;; 7589 7590 amigaos*) 7591 case $host_cpu in 7592 powerpc) 7593 # see comment about AmigaOS4 .so support 7594 lt_prog_compiler_pic='-fPIC' 7595 ;; 7596 m68k) 7597 # FIXME: we need at least 68020 code to build shared libraries, but 7598 # adding the `-m68020' flag to GCC prevents building anything better, 7599 # like `-m68040'. 7600 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7601 ;; 7602 esac 7603 ;; 7604 7605 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7606 # PIC is the default for these OSes. 7607 ;; 7608 7609 mingw* | cygwin* | pw32* | os2* | cegcc*) 7610 # This hack is so that the source file can tell whether it is being 7611 # built for inclusion in a dll (and should export symbols for example). 7612 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7613 # (--disable-auto-import) libraries 7614 lt_prog_compiler_pic='-DDLL_EXPORT' 7615 ;; 7616 7617 darwin* | rhapsody*) 7618 # PIC is the default on this platform 7619 # Common symbols not allowed in MH_DYLIB files 7620 lt_prog_compiler_pic='-fno-common' 7621 ;; 7622 7623 hpux*) 7624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7626 # sets the default TLS model and affects inlining. 7627 case $host_cpu in 7628 hppa*64*) 7629 # +Z the default 7630 ;; 7631 *) 7632 lt_prog_compiler_pic='-fPIC' 7633 ;; 7634 esac 7635 ;; 7636 7637 interix[3-9]*) 7638 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7639 # Instead, we relocate shared libraries at runtime. 7640 ;; 7641 7642 msdosdjgpp*) 7643 # Just because we use GCC doesn't mean we suddenly get shared libraries 7644 # on systems that don't support them. 7645 lt_prog_compiler_can_build_shared=no 7646 enable_shared=no 7647 ;; 7648 7649 *nto* | *qnx*) 7650 # QNX uses GNU C++, but need to define -shared option too, otherwise 7651 # it will coredump. 7652 lt_prog_compiler_pic='-fPIC -shared' 7653 ;; 7654 7655 sysv4*MP*) 7656 if test -d /usr/nec; then 7657 lt_prog_compiler_pic=-Kconform_pic 7658 fi 7659 ;; 7660 7661 *) 7662 lt_prog_compiler_pic='-fPIC' 7663 ;; 7664 esac 7665 else 7666 # PORTME Check for flag to pass linker flags through the system compiler. 7667 case $host_os in 7668 aix*) 7669 lt_prog_compiler_wl='-Wl,' 7670 if test "$host_cpu" = ia64; then 7671 # AIX 5 now supports IA64 processor 7672 lt_prog_compiler_static='-Bstatic' 7673 else 7674 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7675 fi 7676 ;; 7677 7678 mingw* | cygwin* | pw32* | os2* | cegcc*) 7679 # This hack is so that the source file can tell whether it is being 7680 # built for inclusion in a dll (and should export symbols for example). 7681 lt_prog_compiler_pic='-DDLL_EXPORT' 7682 ;; 7683 7684 hpux9* | hpux10* | hpux11*) 7685 lt_prog_compiler_wl='-Wl,' 7686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7687 # not for PA HP-UX. 7688 case $host_cpu in 7689 hppa*64*|ia64*) 7690 # +Z the default 7691 ;; 7692 *) 7693 lt_prog_compiler_pic='+Z' 7694 ;; 7695 esac 7696 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7697 lt_prog_compiler_static='${wl}-a ${wl}archive' 7698 ;; 7699 7700 irix5* | irix6* | nonstopux*) 7701 lt_prog_compiler_wl='-Wl,' 7702 # PIC (with -KPIC) is the default. 7703 lt_prog_compiler_static='-non_shared' 7704 ;; 7705 7706 linux* | k*bsd*-gnu) 7707 case $cc_basename in 7708 # old Intel for x86_64 which still supported -KPIC. 7709 ecc*) 7710 lt_prog_compiler_wl='-Wl,' 7711 lt_prog_compiler_pic='-KPIC' 7712 lt_prog_compiler_static='-static' 7713 ;; 7714 # icc used to be incompatible with GCC. 7715 # ICC 10 doesn't accept -KPIC any more. 7716 icc* | ifort*) 7717 lt_prog_compiler_wl='-Wl,' 7718 lt_prog_compiler_pic='-fPIC' 7719 lt_prog_compiler_static='-static' 7720 ;; 7721 # Lahey Fortran 8.1. 7722 lf95*) 7723 lt_prog_compiler_wl='-Wl,' 7724 lt_prog_compiler_pic='--shared' 7725 lt_prog_compiler_static='--static' 7726 ;; 7727 pgcc* | pgf77* | pgf90* | pgf95*) 7728 # Portland Group compilers (*not* the Pentium gcc compiler, 7729 # which looks to be a dead project) 7730 lt_prog_compiler_wl='-Wl,' 7731 lt_prog_compiler_pic='-fpic' 7732 lt_prog_compiler_static='-Bstatic' 7733 ;; 7734 ccc*) 7735 lt_prog_compiler_wl='-Wl,' 7736 # All Alpha code is PIC. 7737 lt_prog_compiler_static='-non_shared' 7738 ;; 7739 xl*) 7740 # IBM XL C 8.0/Fortran 10.1 on PPC 7741 lt_prog_compiler_wl='-Wl,' 7742 lt_prog_compiler_pic='-qpic' 7743 lt_prog_compiler_static='-qstaticlink' 7744 ;; 7745 *) 7746 case `$CC -V 2>&1 | sed 5q` in 7747 *Sun\ C*) 7748 # Sun C 5.9 7749 lt_prog_compiler_pic='-KPIC' 7750 lt_prog_compiler_static='-Bstatic' 7751 lt_prog_compiler_wl='-Wl,' 7752 ;; 7753 *Sun\ F*) 7754 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7755 lt_prog_compiler_pic='-KPIC' 7756 lt_prog_compiler_static='-Bstatic' 7757 lt_prog_compiler_wl='' 7758 ;; 7759 esac 7760 ;; 7761 esac 7762 ;; 7763 7764 newsos6) 7765 lt_prog_compiler_pic='-KPIC' 7766 lt_prog_compiler_static='-Bstatic' 7767 ;; 7768 7769 *nto* | *qnx*) 7770 # QNX uses GNU C++, but need to define -shared option too, otherwise 7771 # it will coredump. 7772 lt_prog_compiler_pic='-fPIC -shared' 7773 ;; 7774 7775 osf3* | osf4* | osf5*) 7776 lt_prog_compiler_wl='-Wl,' 7777 # All OSF/1 code is PIC. 7778 lt_prog_compiler_static='-non_shared' 7779 ;; 7780 7781 rdos*) 7782 lt_prog_compiler_static='-non_shared' 7783 ;; 7784 7785 solaris*) 7786 lt_prog_compiler_pic='-KPIC' 7787 lt_prog_compiler_static='-Bstatic' 7788 case $cc_basename in 7789 f77* | f90* | f95*) 7790 lt_prog_compiler_wl='-Qoption ld ';; 7791 *) 7792 lt_prog_compiler_wl='-Wl,';; 7793 esac 7794 ;; 7795 7796 sunos4*) 7797 lt_prog_compiler_wl='-Qoption ld ' 7798 lt_prog_compiler_pic='-PIC' 7799 lt_prog_compiler_static='-Bstatic' 7800 ;; 7801 7802 sysv4 | sysv4.2uw2* | sysv4.3*) 7803 lt_prog_compiler_wl='-Wl,' 7804 lt_prog_compiler_pic='-KPIC' 7805 lt_prog_compiler_static='-Bstatic' 7806 ;; 7807 7808 sysv4*MP*) 7809 if test -d /usr/nec ;then 7810 lt_prog_compiler_pic='-Kconform_pic' 7811 lt_prog_compiler_static='-Bstatic' 7812 fi 7813 ;; 7814 7815 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7816 lt_prog_compiler_wl='-Wl,' 7817 lt_prog_compiler_pic='-KPIC' 7818 lt_prog_compiler_static='-Bstatic' 7819 ;; 7820 7821 unicos*) 7822 lt_prog_compiler_wl='-Wl,' 7823 lt_prog_compiler_can_build_shared=no 7824 ;; 7825 7826 uts4*) 7827 lt_prog_compiler_pic='-pic' 7828 lt_prog_compiler_static='-Bstatic' 7829 ;; 7830 7831 *) 7832 lt_prog_compiler_can_build_shared=no 7833 ;; 7834 esac 7835 fi 7836 7837case $host_os in 7838 # For platforms which do not support PIC, -DPIC is meaningless: 7839 *djgpp*) 7840 lt_prog_compiler_pic= 7841 ;; 7842 *) 7843 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7844 ;; 7845esac 7846{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7847$as_echo "$lt_prog_compiler_pic" >&6; } 7848 7849 7850 7851 7852 7853 7854# 7855# Check to make sure the PIC flag actually works. 7856# 7857if test -n "$lt_prog_compiler_pic"; then 7858 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7859$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7860if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7861 $as_echo_n "(cached) " >&6 7862else 7863 lt_cv_prog_compiler_pic_works=no 7864 ac_outfile=conftest.$ac_objext 7865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7866 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7867 # Insert the option either (1) after the last *FLAGS variable, or 7868 # (2) before a word containing "conftest.", or (3) at the end. 7869 # Note that $ac_compile itself does not contain backslashes and begins 7870 # with a dollar sign (not a hyphen), so the echo should work correctly. 7871 # The option is referenced via a variable to avoid confusing sed. 7872 lt_compile=`echo "$ac_compile" | $SED \ 7873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7875 -e 's:$: $lt_compiler_flag:'` 7876 (eval echo "\"\$as_me:7876: $lt_compile\"" >&5) 7877 (eval "$lt_compile" 2>conftest.err) 7878 ac_status=$? 7879 cat conftest.err >&5 7880 echo "$as_me:7880: \$? = $ac_status" >&5 7881 if (exit $ac_status) && test -s "$ac_outfile"; then 7882 # The compiler can only warn and ignore the option if not recognized 7883 # So say no if there are warnings other than the usual output. 7884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7887 lt_cv_prog_compiler_pic_works=yes 7888 fi 7889 fi 7890 $RM conftest* 7891 7892fi 7893{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7894$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7895 7896if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7897 case $lt_prog_compiler_pic in 7898 "" | " "*) ;; 7899 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7900 esac 7901else 7902 lt_prog_compiler_pic= 7903 lt_prog_compiler_can_build_shared=no 7904fi 7905 7906fi 7907 7908 7909 7910 7911 7912 7913# 7914# Check to make sure the static flag actually works. 7915# 7916wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7917{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7918$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7919if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7920 $as_echo_n "(cached) " >&6 7921else 7922 lt_cv_prog_compiler_static_works=no 7923 save_LDFLAGS="$LDFLAGS" 7924 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7925 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7927 # The linker can only warn and ignore the option if not recognized 7928 # So say no if there are warnings 7929 if test -s conftest.err; then 7930 # Append any errors to the config.log. 7931 cat conftest.err 1>&5 7932 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7934 if diff conftest.exp conftest.er2 >/dev/null; then 7935 lt_cv_prog_compiler_static_works=yes 7936 fi 7937 else 7938 lt_cv_prog_compiler_static_works=yes 7939 fi 7940 fi 7941 $RM -r conftest* 7942 LDFLAGS="$save_LDFLAGS" 7943 7944fi 7945{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7946$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7947 7948if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7949 : 7950else 7951 lt_prog_compiler_static= 7952fi 7953 7954 7955 7956 7957 7958 7959 7960 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7962if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7963 $as_echo_n "(cached) " >&6 7964else 7965 lt_cv_prog_compiler_c_o=no 7966 $RM -r conftest 2>/dev/null 7967 mkdir conftest 7968 cd conftest 7969 mkdir out 7970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7971 7972 lt_compiler_flag="-o out/conftest2.$ac_objext" 7973 # Insert the option either (1) after the last *FLAGS variable, or 7974 # (2) before a word containing "conftest.", or (3) at the end. 7975 # Note that $ac_compile itself does not contain backslashes and begins 7976 # with a dollar sign (not a hyphen), so the echo should work correctly. 7977 lt_compile=`echo "$ac_compile" | $SED \ 7978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7980 -e 's:$: $lt_compiler_flag:'` 7981 (eval echo "\"\$as_me:7981: $lt_compile\"" >&5) 7982 (eval "$lt_compile" 2>out/conftest.err) 7983 ac_status=$? 7984 cat out/conftest.err >&5 7985 echo "$as_me:7985: \$? = $ac_status" >&5 7986 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7987 then 7988 # The compiler can only warn and ignore the option if not recognized 7989 # So say no if there are warnings 7990 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7993 lt_cv_prog_compiler_c_o=yes 7994 fi 7995 fi 7996 chmod u+w . 2>&5 7997 $RM conftest* 7998 # SGI C++ compiler will create directory out/ii_files/ for 7999 # template instantiation 8000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8001 $RM out/* && rmdir out 8002 cd .. 8003 $RM -r conftest 8004 $RM conftest* 8005 8006fi 8007{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8008$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8009 8010 8011 8012 8013 8014 8015 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8016$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8017if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8018 $as_echo_n "(cached) " >&6 8019else 8020 lt_cv_prog_compiler_c_o=no 8021 $RM -r conftest 2>/dev/null 8022 mkdir conftest 8023 cd conftest 8024 mkdir out 8025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8026 8027 lt_compiler_flag="-o out/conftest2.$ac_objext" 8028 # Insert the option either (1) after the last *FLAGS variable, or 8029 # (2) before a word containing "conftest.", or (3) at the end. 8030 # Note that $ac_compile itself does not contain backslashes and begins 8031 # with a dollar sign (not a hyphen), so the echo should work correctly. 8032 lt_compile=`echo "$ac_compile" | $SED \ 8033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8035 -e 's:$: $lt_compiler_flag:'` 8036 (eval echo "\"\$as_me:8036: $lt_compile\"" >&5) 8037 (eval "$lt_compile" 2>out/conftest.err) 8038 ac_status=$? 8039 cat out/conftest.err >&5 8040 echo "$as_me:8040: \$? = $ac_status" >&5 8041 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8042 then 8043 # The compiler can only warn and ignore the option if not recognized 8044 # So say no if there are warnings 8045 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8048 lt_cv_prog_compiler_c_o=yes 8049 fi 8050 fi 8051 chmod u+w . 2>&5 8052 $RM conftest* 8053 # SGI C++ compiler will create directory out/ii_files/ for 8054 # template instantiation 8055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8056 $RM out/* && rmdir out 8057 cd .. 8058 $RM -r conftest 8059 $RM conftest* 8060 8061fi 8062{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8063$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8064 8065 8066 8067 8068hard_links="nottested" 8069if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8070 # do not overwrite the value of need_locks provided by the user 8071 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8072$as_echo_n "checking if we can lock with hard links... " >&6; } 8073 hard_links=yes 8074 $RM conftest* 8075 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8076 touch conftest.a 8077 ln conftest.a conftest.b 2>&5 || hard_links=no 8078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8079 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8080$as_echo "$hard_links" >&6; } 8081 if test "$hard_links" = no; then 8082 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8083$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8084 need_locks=warn 8085 fi 8086else 8087 need_locks=no 8088fi 8089 8090 8091 8092 8093 8094 8095 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8096$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8097 8098 runpath_var= 8099 allow_undefined_flag= 8100 always_export_symbols=no 8101 archive_cmds= 8102 archive_expsym_cmds= 8103 compiler_needs_object=no 8104 enable_shared_with_static_runtimes=no 8105 export_dynamic_flag_spec= 8106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8107 hardcode_automatic=no 8108 hardcode_direct=no 8109 hardcode_direct_absolute=no 8110 hardcode_libdir_flag_spec= 8111 hardcode_libdir_flag_spec_ld= 8112 hardcode_libdir_separator= 8113 hardcode_minus_L=no 8114 hardcode_shlibpath_var=unsupported 8115 inherit_rpath=no 8116 link_all_deplibs=unknown 8117 module_cmds= 8118 module_expsym_cmds= 8119 old_archive_from_new_cmds= 8120 old_archive_from_expsyms_cmds= 8121 thread_safe_flag_spec= 8122 whole_archive_flag_spec= 8123 # include_expsyms should be a list of space-separated symbols to be *always* 8124 # included in the symbol list 8125 include_expsyms= 8126 # exclude_expsyms can be an extended regexp of symbols to exclude 8127 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8129 # as well as any symbol that contains `d'. 8130 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8132 # platforms (ab)use it in PIC code, but their linkers get confused if 8133 # the symbol is explicitly referenced. Since portable code cannot 8134 # rely on this symbol name, it's probably fine to never include it in 8135 # preloaded symbol tables. 8136 # Exclude shared library initialization/finalization symbols. 8137 extract_expsyms_cmds= 8138 8139 case $host_os in 8140 cygwin* | mingw* | pw32* | cegcc*) 8141 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8142 # When not using gcc, we currently assume that we are using 8143 # Microsoft Visual C++. 8144 if test "$GCC" != yes; then 8145 with_gnu_ld=no 8146 fi 8147 ;; 8148 interix*) 8149 # we just hope/assume this is gcc and not c89 (= MSVC++) 8150 with_gnu_ld=yes 8151 ;; 8152 openbsd*) 8153 with_gnu_ld=no 8154 ;; 8155 esac 8156 8157 ld_shlibs=yes 8158 if test "$with_gnu_ld" = yes; then 8159 # If archive_cmds runs LD, not CC, wlarc should be empty 8160 wlarc='${wl}' 8161 8162 # Set some defaults for GNU ld with shared library support. These 8163 # are reset later if shared libraries are not supported. Putting them 8164 # here allows them to be overridden if necessary. 8165 runpath_var=LD_RUN_PATH 8166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8167 export_dynamic_flag_spec='${wl}--export-dynamic' 8168 # ancient GNU ld didn't support --whole-archive et. al. 8169 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8170 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8171 else 8172 whole_archive_flag_spec= 8173 fi 8174 supports_anon_versioning=no 8175 case `$LD -v 2>&1` in 8176 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8178 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8179 *\ 2.11.*) ;; # other 2.11 versions 8180 *) supports_anon_versioning=yes ;; 8181 esac 8182 8183 # See if GNU ld supports shared libraries. 8184 case $host_os in 8185 aix[3-9]*) 8186 # On AIX/PPC, the GNU linker is very broken 8187 if test "$host_cpu" != ia64; then 8188 ld_shlibs=no 8189 cat <<_LT_EOF 1>&2 8190 8191*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8192*** to be unable to reliably create shared libraries on AIX. 8193*** Therefore, libtool is disabling shared libraries support. If you 8194*** really care for shared libraries, you may want to modify your PATH 8195*** so that a non-GNU linker is found, and then restart. 8196 8197_LT_EOF 8198 fi 8199 ;; 8200 8201 amigaos*) 8202 case $host_cpu in 8203 powerpc) 8204 # see comment about AmigaOS4 .so support 8205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8206 archive_expsym_cmds='' 8207 ;; 8208 m68k) 8209 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)' 8210 hardcode_libdir_flag_spec='-L$libdir' 8211 hardcode_minus_L=yes 8212 ;; 8213 esac 8214 ;; 8215 8216 beos*) 8217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8218 allow_undefined_flag=unsupported 8219 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8220 # support --undefined. This deserves some investigation. FIXME 8221 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8222 else 8223 ld_shlibs=no 8224 fi 8225 ;; 8226 8227 cygwin* | mingw* | pw32* | cegcc*) 8228 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8229 # as there is no search path for DLLs. 8230 hardcode_libdir_flag_spec='-L$libdir' 8231 allow_undefined_flag=unsupported 8232 always_export_symbols=no 8233 enable_shared_with_static_runtimes=yes 8234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8235 8236 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8238 # If the export-symbols file already is a .def file (1st line 8239 # is EXPORTS), use it as is; otherwise, prepend... 8240 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8241 cp $export_symbols $output_objdir/$soname.def; 8242 else 8243 echo EXPORTS > $output_objdir/$soname.def; 8244 cat $export_symbols >> $output_objdir/$soname.def; 8245 fi~ 8246 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8247 else 8248 ld_shlibs=no 8249 fi 8250 ;; 8251 8252 interix[3-9]*) 8253 hardcode_direct=no 8254 hardcode_shlibpath_var=no 8255 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8256 export_dynamic_flag_spec='${wl}-E' 8257 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8258 # Instead, shared libraries are loaded at an image base (0x10000000 by 8259 # default) and relocated if they conflict, which is a slow very memory 8260 # consuming and fragmenting process. To avoid this, we pick a random, 8261 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8262 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8264 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' 8265 ;; 8266 8267 gnu* | linux* | tpf* | k*bsd*-gnu) 8268 tmp_diet=no 8269 if test "$host_os" = linux-dietlibc; then 8270 case $cc_basename in 8271 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8272 esac 8273 fi 8274 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8275 && test "$tmp_diet" = no 8276 then 8277 tmp_addflag= 8278 tmp_sharedflag='-shared' 8279 case $cc_basename,$host_cpu in 8280 pgcc*) # Portland Group C compiler 8281 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' 8282 tmp_addflag=' $pic_flag' 8283 ;; 8284 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8285 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' 8286 tmp_addflag=' $pic_flag -Mnomain' ;; 8287 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8288 tmp_addflag=' -i_dynamic' ;; 8289 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8290 tmp_addflag=' -i_dynamic -nofor_main' ;; 8291 ifc* | ifort*) # Intel Fortran compiler 8292 tmp_addflag=' -nofor_main' ;; 8293 lf95*) # Lahey Fortran 8.1 8294 whole_archive_flag_spec= 8295 tmp_sharedflag='--shared' ;; 8296 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8297 tmp_sharedflag='-qmkshrobj' 8298 tmp_addflag= ;; 8299 esac 8300 case `$CC -V 2>&1 | sed 5q` in 8301 *Sun\ C*) # Sun C 5.9 8302 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' 8303 compiler_needs_object=yes 8304 tmp_sharedflag='-G' ;; 8305 *Sun\ F*) # Sun Fortran 8.3 8306 tmp_sharedflag='-G' ;; 8307 esac 8308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8309 8310 if test "x$supports_anon_versioning" = xyes; then 8311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8313 echo "local: *; };" >> $output_objdir/$libname.ver~ 8314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8315 fi 8316 8317 case $cc_basename in 8318 xlf*) 8319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8321 hardcode_libdir_flag_spec= 8322 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8323 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8324 if test "x$supports_anon_versioning" = xyes; then 8325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8327 echo "local: *; };" >> $output_objdir/$libname.ver~ 8328 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8329 fi 8330 ;; 8331 esac 8332 else 8333 ld_shlibs=no 8334 fi 8335 ;; 8336 8337 netbsd*) 8338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8340 wlarc= 8341 else 8342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8344 fi 8345 ;; 8346 8347 solaris*) 8348 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8349 ld_shlibs=no 8350 cat <<_LT_EOF 1>&2 8351 8352*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8353*** create shared libraries on Solaris systems. Therefore, libtool 8354*** is disabling shared libraries support. We urge you to upgrade GNU 8355*** binutils to release 2.9.1 or newer. Another option is to modify 8356*** your PATH or compiler configuration so that the native linker is 8357*** used, and then restart. 8358 8359_LT_EOF 8360 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8363 else 8364 ld_shlibs=no 8365 fi 8366 ;; 8367 8368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8369 case `$LD -v 2>&1` in 8370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8371 ld_shlibs=no 8372 cat <<_LT_EOF 1>&2 8373 8374*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8375*** reliably create shared libraries on SCO systems. Therefore, libtool 8376*** is disabling shared libraries support. We urge you to upgrade GNU 8377*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8378*** your PATH or compiler configuration so that the native linker is 8379*** used, and then restart. 8380 8381_LT_EOF 8382 ;; 8383 *) 8384 # For security reasons, it is highly recommended that you always 8385 # use absolute paths for naming shared libraries, and exclude the 8386 # DT_RUNPATH tag from executables and libraries. But doing so 8387 # requires that you compile everything twice, which is a pain. 8388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8392 else 8393 ld_shlibs=no 8394 fi 8395 ;; 8396 esac 8397 ;; 8398 8399 sunos4*) 8400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8401 wlarc= 8402 hardcode_direct=yes 8403 hardcode_shlibpath_var=no 8404 ;; 8405 8406 *) 8407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8410 else 8411 ld_shlibs=no 8412 fi 8413 ;; 8414 esac 8415 8416 if test "$ld_shlibs" = no; then 8417 runpath_var= 8418 hardcode_libdir_flag_spec= 8419 export_dynamic_flag_spec= 8420 whole_archive_flag_spec= 8421 fi 8422 else 8423 # PORTME fill in a description of your system's linker (not GNU ld) 8424 case $host_os in 8425 aix3*) 8426 allow_undefined_flag=unsupported 8427 always_export_symbols=yes 8428 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' 8429 # Note: this linker hardcodes the directories in LIBPATH if there 8430 # are no directories specified by -L. 8431 hardcode_minus_L=yes 8432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8433 # Neither direct hardcoding nor static linking is supported with a 8434 # broken collect2. 8435 hardcode_direct=unsupported 8436 fi 8437 ;; 8438 8439 aix[4-9]*) 8440 if test "$host_cpu" = ia64; then 8441 # On IA64, the linker does run time linking by default, so we don't 8442 # have to do anything special. 8443 aix_use_runtimelinking=no 8444 exp_sym_flag='-Bexport' 8445 no_entry_flag="" 8446 else 8447 # If we're using GNU nm, then we don't want the "-C" option. 8448 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8449 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8450 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' 8451 else 8452 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' 8453 fi 8454 aix_use_runtimelinking=no 8455 8456 # Test if we are trying to use run time linking or normal 8457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8458 # need to do runtime linking. 8459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8460 for ld_flag in $LDFLAGS; do 8461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8462 aix_use_runtimelinking=yes 8463 break 8464 fi 8465 done 8466 ;; 8467 esac 8468 8469 exp_sym_flag='-bexport' 8470 no_entry_flag='-bnoentry' 8471 fi 8472 8473 # When large executables or shared objects are built, AIX ld can 8474 # have problems creating the table of contents. If linking a library 8475 # or program results in "error TOC overflow" add -mminimal-toc to 8476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8478 8479 archive_cmds='' 8480 hardcode_direct=yes 8481 hardcode_direct_absolute=yes 8482 hardcode_libdir_separator=':' 8483 link_all_deplibs=yes 8484 file_list_spec='${wl}-f,' 8485 8486 if test "$GCC" = yes; then 8487 case $host_os in aix4.[012]|aix4.[012].*) 8488 # We only want to do this on AIX 4.2 and lower, the check 8489 # below for broken collect2 doesn't work under 4.3+ 8490 collect2name=`${CC} -print-prog-name=collect2` 8491 if test -f "$collect2name" && 8492 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8493 then 8494 # We have reworked collect2 8495 : 8496 else 8497 # We have old collect2 8498 hardcode_direct=unsupported 8499 # It fails to find uninstalled libraries when the uninstalled 8500 # path is not listed in the libpath. Setting hardcode_minus_L 8501 # to unsupported forces relinking 8502 hardcode_minus_L=yes 8503 hardcode_libdir_flag_spec='-L$libdir' 8504 hardcode_libdir_separator= 8505 fi 8506 ;; 8507 esac 8508 shared_flag='-shared' 8509 if test "$aix_use_runtimelinking" = yes; then 8510 shared_flag="$shared_flag "'${wl}-G' 8511 fi 8512 else 8513 # not using gcc 8514 if test "$host_cpu" = ia64; then 8515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8516 # chokes on -Wl,-G. The following line is correct: 8517 shared_flag='-G' 8518 else 8519 if test "$aix_use_runtimelinking" = yes; then 8520 shared_flag='${wl}-G' 8521 else 8522 shared_flag='${wl}-bM:SRE' 8523 fi 8524 fi 8525 fi 8526 8527 export_dynamic_flag_spec='${wl}-bexpall' 8528 # It seems that -bexpall does not export symbols beginning with 8529 # underscore (_), so it is better to generate a list of symbols to export. 8530 always_export_symbols=yes 8531 if test "$aix_use_runtimelinking" = yes; then 8532 # Warning - without using the other runtime loading flags (-brtl), 8533 # -berok will link without error, but may produce a broken library. 8534 allow_undefined_flag='-berok' 8535 # Determine the default libpath from the value encoded in an 8536 # empty executable. 8537 cat >conftest.$ac_ext <<_ACEOF 8538/* confdefs.h. */ 8539_ACEOF 8540cat confdefs.h >>conftest.$ac_ext 8541cat >>conftest.$ac_ext <<_ACEOF 8542/* end confdefs.h. */ 8543 8544int 8545main () 8546{ 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552rm -f conftest.$ac_objext conftest$ac_exeext 8553if { (ac_try="$ac_link" 8554case "(($ac_try" in 8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8556 *) ac_try_echo=$ac_try;; 8557esac 8558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8559$as_echo "$ac_try_echo") >&5 8560 (eval "$ac_link") 2>conftest.er1 8561 ac_status=$? 8562 grep -v '^ *+' conftest.er1 >conftest.err 8563 rm -f conftest.er1 8564 cat conftest.err >&5 8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8566 (exit $ac_status); } && { 8567 test -z "$ac_c_werror_flag" || 8568 test ! -s conftest.err 8569 } && test -s conftest$ac_exeext && { 8570 test "$cross_compiling" = yes || 8571 $as_test_x conftest$ac_exeext 8572 }; then 8573 8574lt_aix_libpath_sed=' 8575 /Import File Strings/,/^$/ { 8576 /^0/ { 8577 s/^0 *\(.*\)$/\1/ 8578 p 8579 } 8580 }' 8581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8582# Check for a 64-bit object if we didn't find anything. 8583if test -z "$aix_libpath"; then 8584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8585fi 8586else 8587 $as_echo "$as_me: failed program was:" >&5 8588sed 's/^/| /' conftest.$ac_ext >&5 8589 8590 8591fi 8592 8593rm -rf conftest.dSYM 8594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8595 conftest$ac_exeext conftest.$ac_ext 8596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8597 8598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8599 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" 8600 else 8601 if test "$host_cpu" = ia64; then 8602 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8603 allow_undefined_flag="-z nodefs" 8604 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" 8605 else 8606 # Determine the default libpath from the value encoded in an 8607 # empty executable. 8608 cat >conftest.$ac_ext <<_ACEOF 8609/* confdefs.h. */ 8610_ACEOF 8611cat confdefs.h >>conftest.$ac_ext 8612cat >>conftest.$ac_ext <<_ACEOF 8613/* end confdefs.h. */ 8614 8615int 8616main () 8617{ 8618 8619 ; 8620 return 0; 8621} 8622_ACEOF 8623rm -f conftest.$ac_objext conftest$ac_exeext 8624if { (ac_try="$ac_link" 8625case "(($ac_try" in 8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8627 *) ac_try_echo=$ac_try;; 8628esac 8629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8630$as_echo "$ac_try_echo") >&5 8631 (eval "$ac_link") 2>conftest.er1 8632 ac_status=$? 8633 grep -v '^ *+' conftest.er1 >conftest.err 8634 rm -f conftest.er1 8635 cat conftest.err >&5 8636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8637 (exit $ac_status); } && { 8638 test -z "$ac_c_werror_flag" || 8639 test ! -s conftest.err 8640 } && test -s conftest$ac_exeext && { 8641 test "$cross_compiling" = yes || 8642 $as_test_x conftest$ac_exeext 8643 }; then 8644 8645lt_aix_libpath_sed=' 8646 /Import File Strings/,/^$/ { 8647 /^0/ { 8648 s/^0 *\(.*\)$/\1/ 8649 p 8650 } 8651 }' 8652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8653# Check for a 64-bit object if we didn't find anything. 8654if test -z "$aix_libpath"; then 8655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8656fi 8657else 8658 $as_echo "$as_me: failed program was:" >&5 8659sed 's/^/| /' conftest.$ac_ext >&5 8660 8661 8662fi 8663 8664rm -rf conftest.dSYM 8665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8666 conftest$ac_exeext conftest.$ac_ext 8667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8668 8669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8670 # Warning - without using the other run time loading flags, 8671 # -berok will link without error, but may produce a broken library. 8672 no_undefined_flag=' ${wl}-bernotok' 8673 allow_undefined_flag=' ${wl}-berok' 8674 # Exported symbols can be pulled into shared objects from archives 8675 whole_archive_flag_spec='$convenience' 8676 archive_cmds_need_lc=yes 8677 # This is similar to how AIX traditionally builds its shared libraries. 8678 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' 8679 fi 8680 fi 8681 ;; 8682 8683 amigaos*) 8684 case $host_cpu in 8685 powerpc) 8686 # see comment about AmigaOS4 .so support 8687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8688 archive_expsym_cmds='' 8689 ;; 8690 m68k) 8691 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)' 8692 hardcode_libdir_flag_spec='-L$libdir' 8693 hardcode_minus_L=yes 8694 ;; 8695 esac 8696 ;; 8697 8698 bsdi[45]*) 8699 export_dynamic_flag_spec=-rdynamic 8700 ;; 8701 8702 cygwin* | mingw* | pw32* | cegcc*) 8703 # When not using gcc, we currently assume that we are using 8704 # Microsoft Visual C++. 8705 # hardcode_libdir_flag_spec is actually meaningless, as there is 8706 # no search path for DLLs. 8707 hardcode_libdir_flag_spec=' ' 8708 allow_undefined_flag=unsupported 8709 # Tell ltmain to make .lib files, not .a files. 8710 libext=lib 8711 # Tell ltmain to make .dll files, not .so files. 8712 shrext_cmds=".dll" 8713 # FIXME: Setting linknames here is a bad hack. 8714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8715 # The linker will automatically build a .lib file if we build a DLL. 8716 old_archive_from_new_cmds='true' 8717 # FIXME: Should let the user specify the lib program. 8718 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8719 fix_srcfile_path='`cygpath -w "$srcfile"`' 8720 enable_shared_with_static_runtimes=yes 8721 ;; 8722 8723 darwin* | rhapsody*) 8724 8725 8726 archive_cmds_need_lc=no 8727 hardcode_direct=no 8728 hardcode_automatic=yes 8729 hardcode_shlibpath_var=unsupported 8730 whole_archive_flag_spec='' 8731 link_all_deplibs=yes 8732 allow_undefined_flag="$_lt_dar_allow_undefined" 8733 case $cc_basename in 8734 ifort*) _lt_dar_can_shared=yes ;; 8735 *) _lt_dar_can_shared=$GCC ;; 8736 esac 8737 if test "$_lt_dar_can_shared" = "yes"; then 8738 output_verbose_link_cmd=echo 8739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8741 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}" 8742 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}" 8743 8744 else 8745 ld_shlibs=no 8746 fi 8747 8748 ;; 8749 8750 dgux*) 8751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8752 hardcode_libdir_flag_spec='-L$libdir' 8753 hardcode_shlibpath_var=no 8754 ;; 8755 8756 freebsd1*) 8757 ld_shlibs=no 8758 ;; 8759 8760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8761 # support. Future versions do this automatically, but an explicit c++rt0.o 8762 # does not break anything, and helps significantly (at the cost of a little 8763 # extra space). 8764 freebsd2.2*) 8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8766 hardcode_libdir_flag_spec='-R$libdir' 8767 hardcode_direct=yes 8768 hardcode_shlibpath_var=no 8769 ;; 8770 8771 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8772 freebsd2*) 8773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8774 hardcode_direct=yes 8775 hardcode_minus_L=yes 8776 hardcode_shlibpath_var=no 8777 ;; 8778 8779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8780 freebsd* | dragonfly*) 8781 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8782 hardcode_libdir_flag_spec='-R$libdir' 8783 hardcode_direct=yes 8784 hardcode_shlibpath_var=no 8785 ;; 8786 8787 hpux9*) 8788 if test "$GCC" = yes; then 8789 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' 8790 else 8791 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' 8792 fi 8793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8794 hardcode_libdir_separator=: 8795 hardcode_direct=yes 8796 8797 # hardcode_minus_L: Not really in the search PATH, 8798 # but as the default location of the library. 8799 hardcode_minus_L=yes 8800 export_dynamic_flag_spec='${wl}-E' 8801 ;; 8802 8803 hpux10*) 8804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8805 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8806 else 8807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8808 fi 8809 if test "$with_gnu_ld" = no; then 8810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8811 hardcode_libdir_flag_spec_ld='+b $libdir' 8812 hardcode_libdir_separator=: 8813 hardcode_direct=yes 8814 hardcode_direct_absolute=yes 8815 export_dynamic_flag_spec='${wl}-E' 8816 # hardcode_minus_L: Not really in the search PATH, 8817 # but as the default location of the library. 8818 hardcode_minus_L=yes 8819 fi 8820 ;; 8821 8822 hpux11*) 8823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8824 case $host_cpu in 8825 hppa*64*) 8826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 ia64*) 8829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 *) 8832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8833 ;; 8834 esac 8835 else 8836 case $host_cpu in 8837 hppa*64*) 8838 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8839 ;; 8840 ia64*) 8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8842 ;; 8843 *) 8844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8845 ;; 8846 esac 8847 fi 8848 if test "$with_gnu_ld" = no; then 8849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8850 hardcode_libdir_separator=: 8851 8852 case $host_cpu in 8853 hppa*64*|ia64*) 8854 hardcode_direct=no 8855 hardcode_shlibpath_var=no 8856 ;; 8857 *) 8858 hardcode_direct=yes 8859 hardcode_direct_absolute=yes 8860 export_dynamic_flag_spec='${wl}-E' 8861 8862 # hardcode_minus_L: Not really in the search PATH, 8863 # but as the default location of the library. 8864 hardcode_minus_L=yes 8865 ;; 8866 esac 8867 fi 8868 ;; 8869 8870 irix5* | irix6* | nonstopux*) 8871 if test "$GCC" = yes; then 8872 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' 8873 # Try to use the -exported_symbol ld option, if it does not 8874 # work, assume that -exports_file does not work either and 8875 # implicitly export all symbols. 8876 save_LDFLAGS="$LDFLAGS" 8877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8878 cat >conftest.$ac_ext <<_ACEOF 8879int foo(void) {} 8880_ACEOF 8881rm -f conftest.$ac_objext conftest$ac_exeext 8882if { (ac_try="$ac_link" 8883case "(($ac_try" in 8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8885 *) ac_try_echo=$ac_try;; 8886esac 8887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8888$as_echo "$ac_try_echo") >&5 8889 (eval "$ac_link") 2>conftest.er1 8890 ac_status=$? 8891 grep -v '^ *+' conftest.er1 >conftest.err 8892 rm -f conftest.er1 8893 cat conftest.err >&5 8894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 (exit $ac_status); } && { 8896 test -z "$ac_c_werror_flag" || 8897 test ! -s conftest.err 8898 } && test -s conftest$ac_exeext && { 8899 test "$cross_compiling" = yes || 8900 $as_test_x conftest$ac_exeext 8901 }; then 8902 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' 8903 8904else 8905 $as_echo "$as_me: failed program was:" >&5 8906sed 's/^/| /' conftest.$ac_ext >&5 8907 8908 8909fi 8910 8911rm -rf conftest.dSYM 8912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8913 conftest$ac_exeext conftest.$ac_ext 8914 LDFLAGS="$save_LDFLAGS" 8915 else 8916 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' 8917 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' 8918 fi 8919 archive_cmds_need_lc='no' 8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8921 hardcode_libdir_separator=: 8922 inherit_rpath=yes 8923 link_all_deplibs=yes 8924 ;; 8925 8926 netbsd*) 8927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8929 else 8930 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8931 fi 8932 hardcode_libdir_flag_spec='-R$libdir' 8933 hardcode_direct=yes 8934 hardcode_shlibpath_var=no 8935 ;; 8936 8937 newsos6) 8938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8939 hardcode_direct=yes 8940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8941 hardcode_libdir_separator=: 8942 hardcode_shlibpath_var=no 8943 ;; 8944 8945 *nto* | *qnx*) 8946 ;; 8947 8948 openbsd*) 8949 if test -f /usr/libexec/ld.so; then 8950 hardcode_direct=yes 8951 hardcode_shlibpath_var=no 8952 hardcode_direct_absolute=yes 8953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8955 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8957 export_dynamic_flag_spec='${wl}-E' 8958 else 8959 case $host_os in 8960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8962 hardcode_libdir_flag_spec='-R$libdir' 8963 ;; 8964 *) 8965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8967 ;; 8968 esac 8969 fi 8970 else 8971 ld_shlibs=no 8972 fi 8973 ;; 8974 8975 os2*) 8976 hardcode_libdir_flag_spec='-L$libdir' 8977 hardcode_minus_L=yes 8978 allow_undefined_flag=unsupported 8979 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' 8980 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8981 ;; 8982 8983 osf3*) 8984 if test "$GCC" = yes; then 8985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8986 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' 8987 else 8988 allow_undefined_flag=' -expect_unresolved \*' 8989 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' 8990 fi 8991 archive_cmds_need_lc='no' 8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8993 hardcode_libdir_separator=: 8994 ;; 8995 8996 osf4* | osf5*) # as osf3* with the addition of -msym flag 8997 if test "$GCC" = yes; then 8998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8999 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' 9000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9001 else 9002 allow_undefined_flag=' -expect_unresolved \*' 9003 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' 9004 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~ 9005 $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' 9006 9007 # Both c and cxx compiler support -rpath directly 9008 hardcode_libdir_flag_spec='-rpath $libdir' 9009 fi 9010 archive_cmds_need_lc='no' 9011 hardcode_libdir_separator=: 9012 ;; 9013 9014 solaris*) 9015 no_undefined_flag=' -z defs' 9016 if test "$GCC" = yes; then 9017 wlarc='${wl}' 9018 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9020 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9021 else 9022 case `$CC -V 2>&1` in 9023 *"Compilers 5.0"*) 9024 wlarc='' 9025 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9028 ;; 9029 *) 9030 wlarc='${wl}' 9031 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9033 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9034 ;; 9035 esac 9036 fi 9037 hardcode_libdir_flag_spec='-R$libdir' 9038 hardcode_shlibpath_var=no 9039 case $host_os in 9040 solaris2.[0-5] | solaris2.[0-5].*) ;; 9041 *) 9042 # The compiler driver will combine and reorder linker options, 9043 # but understands `-z linker_flag'. GCC discards it without `$wl', 9044 # but is careful enough not to reorder. 9045 # Supported since Solaris 2.6 (maybe 2.5.1?) 9046 if test "$GCC" = yes; then 9047 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9048 else 9049 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9050 fi 9051 ;; 9052 esac 9053 link_all_deplibs=yes 9054 ;; 9055 9056 sunos4*) 9057 if test "x$host_vendor" = xsequent; then 9058 # Use $CC to link under sequent, because it throws in some extra .o 9059 # files that make .init and .fini sections work. 9060 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9061 else 9062 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9063 fi 9064 hardcode_libdir_flag_spec='-L$libdir' 9065 hardcode_direct=yes 9066 hardcode_minus_L=yes 9067 hardcode_shlibpath_var=no 9068 ;; 9069 9070 sysv4) 9071 case $host_vendor in 9072 sni) 9073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9074 hardcode_direct=yes # is this really true??? 9075 ;; 9076 siemens) 9077 ## LD is ld it makes a PLAMLIB 9078 ## CC just makes a GrossModule. 9079 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9080 reload_cmds='$CC -r -o $output$reload_objs' 9081 hardcode_direct=no 9082 ;; 9083 motorola) 9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9085 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9086 ;; 9087 esac 9088 runpath_var='LD_RUN_PATH' 9089 hardcode_shlibpath_var=no 9090 ;; 9091 9092 sysv4.3*) 9093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9094 hardcode_shlibpath_var=no 9095 export_dynamic_flag_spec='-Bexport' 9096 ;; 9097 9098 sysv4*MP*) 9099 if test -d /usr/nec; then 9100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9101 hardcode_shlibpath_var=no 9102 runpath_var=LD_RUN_PATH 9103 hardcode_runpath_var=yes 9104 ld_shlibs=yes 9105 fi 9106 ;; 9107 9108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9109 no_undefined_flag='${wl}-z,text' 9110 archive_cmds_need_lc=no 9111 hardcode_shlibpath_var=no 9112 runpath_var='LD_RUN_PATH' 9113 9114 if test "$GCC" = yes; then 9115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9117 else 9118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9120 fi 9121 ;; 9122 9123 sysv5* | sco3.2v5* | sco5v6*) 9124 # Note: We can NOT use -z defs as we might desire, because we do not 9125 # link with -lc, and that would cause any symbols used from libc to 9126 # always be unresolved, which means just about no library would 9127 # ever link correctly. If we're not using GNU ld we use -z text 9128 # though, which does catch some bad symbols but isn't as heavy-handed 9129 # as -z defs. 9130 no_undefined_flag='${wl}-z,text' 9131 allow_undefined_flag='${wl}-z,nodefs' 9132 archive_cmds_need_lc=no 9133 hardcode_shlibpath_var=no 9134 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9135 hardcode_libdir_separator=':' 9136 link_all_deplibs=yes 9137 export_dynamic_flag_spec='${wl}-Bexport' 9138 runpath_var='LD_RUN_PATH' 9139 9140 if test "$GCC" = yes; then 9141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9143 else 9144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9146 fi 9147 ;; 9148 9149 uts4*) 9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9151 hardcode_libdir_flag_spec='-L$libdir' 9152 hardcode_shlibpath_var=no 9153 ;; 9154 9155 *) 9156 ld_shlibs=no 9157 ;; 9158 esac 9159 9160 if test x$host_vendor = xsni; then 9161 case $host in 9162 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9163 export_dynamic_flag_spec='${wl}-Blargedynsym' 9164 ;; 9165 esac 9166 fi 9167 fi 9168 9169{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9170$as_echo "$ld_shlibs" >&6; } 9171test "$ld_shlibs" = no && can_build_shared=no 9172 9173with_gnu_ld=$with_gnu_ld 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189# 9190# Do we need to explicitly link libc? 9191# 9192case "x$archive_cmds_need_lc" in 9193x|xyes) 9194 # Assume -lc should be added 9195 archive_cmds_need_lc=yes 9196 9197 if test "$enable_shared" = yes && test "$GCC" = yes; then 9198 case $archive_cmds in 9199 *'~'*) 9200 # FIXME: we may have to deal with multi-command sequences. 9201 ;; 9202 '$CC '*) 9203 # Test whether the compiler implicitly links with -lc since on some 9204 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9205 # to ld, don't add -lc before -lgcc. 9206 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9207$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9208 $RM conftest* 9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9210 9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9212 (eval $ac_compile) 2>&5 9213 ac_status=$? 9214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9215 (exit $ac_status); } 2>conftest.err; then 9216 soname=conftest 9217 lib=conftest 9218 libobjs=conftest.$ac_objext 9219 deplibs= 9220 wl=$lt_prog_compiler_wl 9221 pic_flag=$lt_prog_compiler_pic 9222 compiler_flags=-v 9223 linker_flags=-v 9224 verstring= 9225 output_objdir=. 9226 libname=conftest 9227 lt_save_allow_undefined_flag=$allow_undefined_flag 9228 allow_undefined_flag= 9229 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9230 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9231 ac_status=$? 9232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9233 (exit $ac_status); } 9234 then 9235 archive_cmds_need_lc=no 9236 else 9237 archive_cmds_need_lc=yes 9238 fi 9239 allow_undefined_flag=$lt_save_allow_undefined_flag 9240 else 9241 cat conftest.err 1>&5 9242 fi 9243 $RM conftest* 9244 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9245$as_echo "$archive_cmds_need_lc" >&6; } 9246 ;; 9247 esac 9248 fi 9249 ;; 9250esac 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9409$as_echo_n "checking dynamic linker characteristics... " >&6; } 9410 9411if test "$GCC" = yes; then 9412 case $host_os in 9413 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9414 *) lt_awk_arg="/^libraries:/" ;; 9415 esac 9416 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9417 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9418 # if the path contains ";" then we assume it to be the separator 9419 # otherwise default to the standard path separator (i.e. ":") - it is 9420 # assumed that no part of a normal pathname contains ";" but that should 9421 # okay in the real world where ";" in dirpaths is itself problematic. 9422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9423 else 9424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9425 fi 9426 # Ok, now we have the path, separated by spaces, we can step through it 9427 # and add multilib dir if necessary. 9428 lt_tmp_lt_search_path_spec= 9429 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9430 for lt_sys_path in $lt_search_path_spec; do 9431 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9433 else 9434 test -d "$lt_sys_path" && \ 9435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9436 fi 9437 done 9438 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9439BEGIN {RS=" "; FS="/|\n";} { 9440 lt_foo=""; 9441 lt_count=0; 9442 for (lt_i = NF; lt_i > 0; lt_i--) { 9443 if ($lt_i != "" && $lt_i != ".") { 9444 if ($lt_i == "..") { 9445 lt_count++; 9446 } else { 9447 if (lt_count == 0) { 9448 lt_foo="/" $lt_i lt_foo; 9449 } else { 9450 lt_count--; 9451 } 9452 } 9453 } 9454 } 9455 if (lt_foo != "") { lt_freq[lt_foo]++; } 9456 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9457}'` 9458 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9459else 9460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9461fi 9462library_names_spec= 9463libname_spec='lib$name' 9464soname_spec= 9465shrext_cmds=".so" 9466postinstall_cmds= 9467postuninstall_cmds= 9468finish_cmds= 9469finish_eval= 9470shlibpath_var= 9471shlibpath_overrides_runpath=unknown 9472version_type=none 9473dynamic_linker="$host_os ld.so" 9474sys_lib_dlsearch_path_spec="/lib /usr/lib" 9475need_lib_prefix=unknown 9476hardcode_into_libs=no 9477 9478# when you set need_version to no, make sure it does not cause -set_version 9479# flags to be left without arguments 9480need_version=unknown 9481 9482case $host_os in 9483aix3*) 9484 version_type=linux 9485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9486 shlibpath_var=LIBPATH 9487 9488 # AIX 3 has no versioning support, so we append a major version to the name. 9489 soname_spec='${libname}${release}${shared_ext}$major' 9490 ;; 9491 9492aix[4-9]*) 9493 version_type=linux 9494 need_lib_prefix=no 9495 need_version=no 9496 hardcode_into_libs=yes 9497 if test "$host_cpu" = ia64; then 9498 # AIX 5 supports IA64 9499 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9500 shlibpath_var=LD_LIBRARY_PATH 9501 else 9502 # With GCC up to 2.95.x, collect2 would create an import file 9503 # for dependence libraries. The import file would start with 9504 # the line `#! .'. This would cause the generated library to 9505 # depend on `.', always an invalid library. This was fixed in 9506 # development snapshots of GCC prior to 3.0. 9507 case $host_os in 9508 aix4 | aix4.[01] | aix4.[01].*) 9509 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9510 echo ' yes ' 9511 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9512 : 9513 else 9514 can_build_shared=no 9515 fi 9516 ;; 9517 esac 9518 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9519 # soname into executable. Probably we can add versioning support to 9520 # collect2, so additional links can be useful in future. 9521 if test "$aix_use_runtimelinking" = yes; then 9522 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9523 # instead of lib<name>.a to let people know that these are not 9524 # typical AIX shared libraries. 9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9526 else 9527 # We preserve .a as extension for shared libraries through AIX4.2 9528 # and later when we are not doing run time linking. 9529 library_names_spec='${libname}${release}.a $libname.a' 9530 soname_spec='${libname}${release}${shared_ext}$major' 9531 fi 9532 shlibpath_var=LIBPATH 9533 fi 9534 ;; 9535 9536amigaos*) 9537 case $host_cpu in 9538 powerpc) 9539 # Since July 2007 AmigaOS4 officially supports .so libraries. 9540 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9542 ;; 9543 m68k) 9544 library_names_spec='$libname.ixlibrary $libname.a' 9545 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9546 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' 9547 ;; 9548 esac 9549 ;; 9550 9551beos*) 9552 library_names_spec='${libname}${shared_ext}' 9553 dynamic_linker="$host_os ld.so" 9554 shlibpath_var=LIBRARY_PATH 9555 ;; 9556 9557bsdi[45]*) 9558 version_type=linux 9559 need_version=no 9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9561 soname_spec='${libname}${release}${shared_ext}$major' 9562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9563 shlibpath_var=LD_LIBRARY_PATH 9564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9566 # the default ld.so.conf also contains /usr/contrib/lib and 9567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9568 # libtool to hard-code these into programs 9569 ;; 9570 9571cygwin* | mingw* | pw32* | cegcc*) 9572 version_type=windows 9573 shrext_cmds=".dll" 9574 need_version=no 9575 need_lib_prefix=no 9576 9577 case $GCC,$host_os in 9578 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9579 library_names_spec='$libname.dll.a' 9580 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9581 postinstall_cmds='base_file=`basename \${file}`~ 9582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9583 dldir=$destdir/`dirname \$dlpath`~ 9584 test -d \$dldir || mkdir -p \$dldir~ 9585 $install_prog $dir/$dlname \$dldir/$dlname~ 9586 chmod a+x \$dldir/$dlname~ 9587 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9588 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9589 fi' 9590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9591 dlpath=$dir/\$dldll~ 9592 $RM \$dlpath' 9593 shlibpath_overrides_runpath=yes 9594 9595 case $host_os in 9596 cygwin*) 9597 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9599 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9600 ;; 9601 mingw* | cegcc*) 9602 # MinGW DLLs use traditional 'lib' prefix 9603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9604 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9605 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9606 # It is most probably a Windows format PATH printed by 9607 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9608 # path with ; separators, and with drive letters. We can handle the 9609 # drive letters (cygwin fileutils understands them), so leave them, 9610 # especially as we might pass files found there to a mingw objdump, 9611 # which wouldn't understand a cygwinified path. Ahh. 9612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9613 else 9614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9615 fi 9616 ;; 9617 pw32*) 9618 # pw32 DLLs use 'pw' prefix rather than 'lib' 9619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9620 ;; 9621 esac 9622 ;; 9623 9624 *) 9625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9626 ;; 9627 esac 9628 dynamic_linker='Win32 ld.exe' 9629 # FIXME: first we should search . and the directory the executable is in 9630 shlibpath_var=PATH 9631 ;; 9632 9633darwin* | rhapsody*) 9634 dynamic_linker="$host_os dyld" 9635 version_type=darwin 9636 need_lib_prefix=no 9637 need_version=no 9638 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9639 soname_spec='${libname}${release}${major}$shared_ext' 9640 shlibpath_overrides_runpath=yes 9641 shlibpath_var=DYLD_LIBRARY_PATH 9642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9643 9644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9646 ;; 9647 9648dgux*) 9649 version_type=linux 9650 need_lib_prefix=no 9651 need_version=no 9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9653 soname_spec='${libname}${release}${shared_ext}$major' 9654 shlibpath_var=LD_LIBRARY_PATH 9655 ;; 9656 9657freebsd1*) 9658 dynamic_linker=no 9659 ;; 9660 9661freebsd* | dragonfly*) 9662 # DragonFly does not have aout. When/if they implement a new 9663 # versioning mechanism, adjust this. 9664 if test -x /usr/bin/objformat; then 9665 objformat=`/usr/bin/objformat` 9666 else 9667 case $host_os in 9668 freebsd[123]*) objformat=aout ;; 9669 *) objformat=elf ;; 9670 esac 9671 fi 9672 version_type=freebsd-$objformat 9673 case $version_type in 9674 freebsd-elf*) 9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9676 need_version=no 9677 need_lib_prefix=no 9678 ;; 9679 freebsd-*) 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9681 need_version=yes 9682 ;; 9683 esac 9684 shlibpath_var=LD_LIBRARY_PATH 9685 case $host_os in 9686 freebsd2*) 9687 shlibpath_overrides_runpath=yes 9688 ;; 9689 freebsd3.[01]* | freebsdelf3.[01]*) 9690 shlibpath_overrides_runpath=yes 9691 hardcode_into_libs=yes 9692 ;; 9693 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9694 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9695 shlibpath_overrides_runpath=no 9696 hardcode_into_libs=yes 9697 ;; 9698 *) # from 4.6 on, and DragonFly 9699 shlibpath_overrides_runpath=yes 9700 hardcode_into_libs=yes 9701 ;; 9702 esac 9703 ;; 9704 9705gnu*) 9706 version_type=linux 9707 need_lib_prefix=no 9708 need_version=no 9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9710 soname_spec='${libname}${release}${shared_ext}$major' 9711 shlibpath_var=LD_LIBRARY_PATH 9712 hardcode_into_libs=yes 9713 ;; 9714 9715hpux9* | hpux10* | hpux11*) 9716 # Give a soname corresponding to the major version so that dld.sl refuses to 9717 # link against other versions. 9718 version_type=sunos 9719 need_lib_prefix=no 9720 need_version=no 9721 case $host_cpu in 9722 ia64*) 9723 shrext_cmds='.so' 9724 hardcode_into_libs=yes 9725 dynamic_linker="$host_os dld.so" 9726 shlibpath_var=LD_LIBRARY_PATH 9727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 if test "X$HPUX_IA64_MODE" = X32; then 9731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9732 else 9733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9734 fi 9735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9736 ;; 9737 hppa*64*) 9738 shrext_cmds='.sl' 9739 hardcode_into_libs=yes 9740 dynamic_linker="$host_os dld.sl" 9741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9744 soname_spec='${libname}${release}${shared_ext}$major' 9745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9747 ;; 9748 *) 9749 shrext_cmds='.sl' 9750 dynamic_linker="$host_os dld.sl" 9751 shlibpath_var=SHLIB_PATH 9752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9754 soname_spec='${libname}${release}${shared_ext}$major' 9755 ;; 9756 esac 9757 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9758 postinstall_cmds='chmod 555 $lib' 9759 ;; 9760 9761interix[3-9]*) 9762 version_type=linux 9763 need_lib_prefix=no 9764 need_version=no 9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9766 soname_spec='${libname}${release}${shared_ext}$major' 9767 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9768 shlibpath_var=LD_LIBRARY_PATH 9769 shlibpath_overrides_runpath=no 9770 hardcode_into_libs=yes 9771 ;; 9772 9773irix5* | irix6* | nonstopux*) 9774 case $host_os in 9775 nonstopux*) version_type=nonstopux ;; 9776 *) 9777 if test "$lt_cv_prog_gnu_ld" = yes; then 9778 version_type=linux 9779 else 9780 version_type=irix 9781 fi ;; 9782 esac 9783 need_lib_prefix=no 9784 need_version=no 9785 soname_spec='${libname}${release}${shared_ext}$major' 9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9787 case $host_os in 9788 irix5* | nonstopux*) 9789 libsuff= shlibsuff= 9790 ;; 9791 *) 9792 case $LD in # libtool.m4 will add one of these switches to LD 9793 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9794 libsuff= shlibsuff= libmagic=32-bit;; 9795 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9796 libsuff=32 shlibsuff=N32 libmagic=N32;; 9797 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9798 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9799 *) libsuff= shlibsuff= libmagic=never-match;; 9800 esac 9801 ;; 9802 esac 9803 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9804 shlibpath_overrides_runpath=no 9805 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9806 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9807 hardcode_into_libs=yes 9808 ;; 9809 9810# No shared lib support for Linux oldld, aout, or coff. 9811linux*oldld* | linux*aout* | linux*coff*) 9812 dynamic_linker=no 9813 ;; 9814 9815# This must be Linux ELF. 9816linux* | k*bsd*-gnu) 9817 version_type=linux 9818 need_lib_prefix=no 9819 need_version=no 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9821 soname_spec='${libname}${release}${shared_ext}$major' 9822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9823 shlibpath_var=LD_LIBRARY_PATH 9824 shlibpath_overrides_runpath=no 9825 # Some binutils ld are patched to set DT_RUNPATH 9826 save_LDFLAGS=$LDFLAGS 9827 save_libdir=$libdir 9828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9830 cat >conftest.$ac_ext <<_ACEOF 9831/* confdefs.h. */ 9832_ACEOF 9833cat confdefs.h >>conftest.$ac_ext 9834cat >>conftest.$ac_ext <<_ACEOF 9835/* end confdefs.h. */ 9836 9837int 9838main () 9839{ 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845rm -f conftest.$ac_objext conftest$ac_exeext 9846if { (ac_try="$ac_link" 9847case "(($ac_try" in 9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9849 *) ac_try_echo=$ac_try;; 9850esac 9851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9852$as_echo "$ac_try_echo") >&5 9853 (eval "$ac_link") 2>conftest.er1 9854 ac_status=$? 9855 grep -v '^ *+' conftest.er1 >conftest.err 9856 rm -f conftest.er1 9857 cat conftest.err >&5 9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9859 (exit $ac_status); } && { 9860 test -z "$ac_c_werror_flag" || 9861 test ! -s conftest.err 9862 } && test -s conftest$ac_exeext && { 9863 test "$cross_compiling" = yes || 9864 $as_test_x conftest$ac_exeext 9865 }; then 9866 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9867 shlibpath_overrides_runpath=yes 9868fi 9869 9870else 9871 $as_echo "$as_me: failed program was:" >&5 9872sed 's/^/| /' conftest.$ac_ext >&5 9873 9874 9875fi 9876 9877rm -rf conftest.dSYM 9878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9879 conftest$ac_exeext conftest.$ac_ext 9880 LDFLAGS=$save_LDFLAGS 9881 libdir=$save_libdir 9882 9883 # This implies no fast_install, which is unacceptable. 9884 # Some rework will be needed to allow for fast_install 9885 # before this can be enabled. 9886 hardcode_into_libs=yes 9887 9888 # Add ABI-specific directories to the system library path. 9889 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9890 9891 # Append ld.so.conf contents to the search path 9892 if test -f /etc/ld.so.conf; then 9893 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' ' '` 9894 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9895 fi 9896 9897 # We used to test for /lib/ld.so.1 and disable shared libraries on 9898 # powerpc, because MkLinux only supported shared libraries with the 9899 # GNU dynamic linker. Since this was broken with cross compilers, 9900 # most powerpc-linux boxes support dynamic linking these days and 9901 # people can always --disable-shared, the test was removed, and we 9902 # assume the GNU/Linux dynamic linker is in use. 9903 dynamic_linker='GNU/Linux ld.so' 9904 ;; 9905 9906netbsd*) 9907 version_type=sunos 9908 need_lib_prefix=no 9909 need_version=no 9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9913 dynamic_linker='NetBSD (a.out) ld.so' 9914 else 9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9916 soname_spec='${libname}${release}${shared_ext}$major' 9917 dynamic_linker='NetBSD ld.elf_so' 9918 fi 9919 shlibpath_var=LD_LIBRARY_PATH 9920 shlibpath_overrides_runpath=yes 9921 hardcode_into_libs=yes 9922 ;; 9923 9924newsos6) 9925 version_type=linux 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9927 shlibpath_var=LD_LIBRARY_PATH 9928 shlibpath_overrides_runpath=yes 9929 ;; 9930 9931*nto* | *qnx*) 9932 version_type=qnx 9933 need_lib_prefix=no 9934 need_version=no 9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9936 soname_spec='${libname}${release}${shared_ext}$major' 9937 shlibpath_var=LD_LIBRARY_PATH 9938 shlibpath_overrides_runpath=no 9939 hardcode_into_libs=yes 9940 dynamic_linker='ldqnx.so' 9941 ;; 9942 9943openbsd*) 9944 version_type=sunos 9945 sys_lib_dlsearch_path_spec="/usr/lib" 9946 need_lib_prefix=no 9947 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9948 case $host_os in 9949 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9950 *) need_version=no ;; 9951 esac 9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9954 shlibpath_var=LD_LIBRARY_PATH 9955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9956 case $host_os in 9957 openbsd2.[89] | openbsd2.[89].*) 9958 shlibpath_overrides_runpath=no 9959 ;; 9960 *) 9961 shlibpath_overrides_runpath=yes 9962 ;; 9963 esac 9964 else 9965 shlibpath_overrides_runpath=yes 9966 fi 9967 ;; 9968 9969os2*) 9970 libname_spec='$name' 9971 shrext_cmds=".dll" 9972 need_lib_prefix=no 9973 library_names_spec='$libname${shared_ext} $libname.a' 9974 dynamic_linker='OS/2 ld.exe' 9975 shlibpath_var=LIBPATH 9976 ;; 9977 9978osf3* | osf4* | osf5*) 9979 version_type=osf 9980 need_lib_prefix=no 9981 need_version=no 9982 soname_spec='${libname}${release}${shared_ext}$major' 9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9984 shlibpath_var=LD_LIBRARY_PATH 9985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9986 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9987 ;; 9988 9989rdos*) 9990 dynamic_linker=no 9991 ;; 9992 9993solaris*) 9994 version_type=linux 9995 need_lib_prefix=no 9996 need_version=no 9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9998 soname_spec='${libname}${release}${shared_ext}$major' 9999 shlibpath_var=LD_LIBRARY_PATH 10000 shlibpath_overrides_runpath=yes 10001 hardcode_into_libs=yes 10002 # ldd complains unless libraries are executable 10003 postinstall_cmds='chmod +x $lib' 10004 ;; 10005 10006sunos4*) 10007 version_type=sunos 10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10010 shlibpath_var=LD_LIBRARY_PATH 10011 shlibpath_overrides_runpath=yes 10012 if test "$with_gnu_ld" = yes; then 10013 need_lib_prefix=no 10014 fi 10015 need_version=yes 10016 ;; 10017 10018sysv4 | sysv4.3*) 10019 version_type=linux 10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10021 soname_spec='${libname}${release}${shared_ext}$major' 10022 shlibpath_var=LD_LIBRARY_PATH 10023 case $host_vendor in 10024 sni) 10025 shlibpath_overrides_runpath=no 10026 need_lib_prefix=no 10027 runpath_var=LD_RUN_PATH 10028 ;; 10029 siemens) 10030 need_lib_prefix=no 10031 ;; 10032 motorola) 10033 need_lib_prefix=no 10034 need_version=no 10035 shlibpath_overrides_runpath=no 10036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10037 ;; 10038 esac 10039 ;; 10040 10041sysv4*MP*) 10042 if test -d /usr/nec ;then 10043 version_type=linux 10044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10045 soname_spec='$libname${shared_ext}.$major' 10046 shlibpath_var=LD_LIBRARY_PATH 10047 fi 10048 ;; 10049 10050sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10051 version_type=freebsd-elf 10052 need_lib_prefix=no 10053 need_version=no 10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10055 soname_spec='${libname}${release}${shared_ext}$major' 10056 shlibpath_var=LD_LIBRARY_PATH 10057 shlibpath_overrides_runpath=yes 10058 hardcode_into_libs=yes 10059 if test "$with_gnu_ld" = yes; then 10060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10061 else 10062 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10063 case $host_os in 10064 sco3.2v5*) 10065 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10066 ;; 10067 esac 10068 fi 10069 sys_lib_dlsearch_path_spec='/usr/lib' 10070 ;; 10071 10072tpf*) 10073 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10074 version_type=linux 10075 need_lib_prefix=no 10076 need_version=no 10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10078 shlibpath_var=LD_LIBRARY_PATH 10079 shlibpath_overrides_runpath=no 10080 hardcode_into_libs=yes 10081 ;; 10082 10083uts4*) 10084 version_type=linux 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10086 soname_spec='${libname}${release}${shared_ext}$major' 10087 shlibpath_var=LD_LIBRARY_PATH 10088 ;; 10089 10090*) 10091 dynamic_linker=no 10092 ;; 10093esac 10094{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10095$as_echo "$dynamic_linker" >&6; } 10096test "$dynamic_linker" = no && can_build_shared=no 10097 10098variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10099if test "$GCC" = yes; then 10100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10101fi 10102 10103if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10104 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10105fi 10106if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10107 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10108fi 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10197$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10198hardcode_action= 10199if test -n "$hardcode_libdir_flag_spec" || 10200 test -n "$runpath_var" || 10201 test "X$hardcode_automatic" = "Xyes" ; then 10202 10203 # We can hardcode non-existent directories. 10204 if test "$hardcode_direct" != no && 10205 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10206 # have to relink, otherwise we might link with an installed library 10207 # when we should be linking with a yet-to-be-installed one 10208 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10209 test "$hardcode_minus_L" != no; then 10210 # Linking always hardcodes the temporary library directory. 10211 hardcode_action=relink 10212 else 10213 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10214 hardcode_action=immediate 10215 fi 10216else 10217 # We cannot hardcode anything, or else we can only hardcode existing 10218 # directories. 10219 hardcode_action=unsupported 10220fi 10221{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10222$as_echo "$hardcode_action" >&6; } 10223 10224if test "$hardcode_action" = relink || 10225 test "$inherit_rpath" = yes; then 10226 # Fast installation is not supported 10227 enable_fast_install=no 10228elif test "$shlibpath_overrides_runpath" = yes || 10229 test "$enable_shared" = no; then 10230 # Fast installation is not necessary 10231 enable_fast_install=needless 10232fi 10233 10234 10235 10236 10237 10238 10239 if test "x$enable_dlopen" != xyes; then 10240 enable_dlopen=unknown 10241 enable_dlopen_self=unknown 10242 enable_dlopen_self_static=unknown 10243else 10244 lt_cv_dlopen=no 10245 lt_cv_dlopen_libs= 10246 10247 case $host_os in 10248 beos*) 10249 lt_cv_dlopen="load_add_on" 10250 lt_cv_dlopen_libs= 10251 lt_cv_dlopen_self=yes 10252 ;; 10253 10254 mingw* | pw32* | cegcc*) 10255 lt_cv_dlopen="LoadLibrary" 10256 lt_cv_dlopen_libs= 10257 ;; 10258 10259 cygwin*) 10260 lt_cv_dlopen="dlopen" 10261 lt_cv_dlopen_libs= 10262 ;; 10263 10264 darwin*) 10265 # if libdl is installed we need to link against it 10266 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10267$as_echo_n "checking for dlopen in -ldl... " >&6; } 10268if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10269 $as_echo_n "(cached) " >&6 10270else 10271 ac_check_lib_save_LIBS=$LIBS 10272LIBS="-ldl $LIBS" 10273cat >conftest.$ac_ext <<_ACEOF 10274/* confdefs.h. */ 10275_ACEOF 10276cat confdefs.h >>conftest.$ac_ext 10277cat >>conftest.$ac_ext <<_ACEOF 10278/* end confdefs.h. */ 10279 10280/* Override any GCC internal prototype to avoid an error. 10281 Use char because int might match the return type of a GCC 10282 builtin and then its argument prototype would still apply. */ 10283#ifdef __cplusplus 10284extern "C" 10285#endif 10286char dlopen (); 10287int 10288main () 10289{ 10290return dlopen (); 10291 ; 10292 return 0; 10293} 10294_ACEOF 10295rm -f conftest.$ac_objext conftest$ac_exeext 10296if { (ac_try="$ac_link" 10297case "(($ac_try" in 10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10299 *) ac_try_echo=$ac_try;; 10300esac 10301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10302$as_echo "$ac_try_echo") >&5 10303 (eval "$ac_link") 2>conftest.er1 10304 ac_status=$? 10305 grep -v '^ *+' conftest.er1 >conftest.err 10306 rm -f conftest.er1 10307 cat conftest.err >&5 10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10309 (exit $ac_status); } && { 10310 test -z "$ac_c_werror_flag" || 10311 test ! -s conftest.err 10312 } && test -s conftest$ac_exeext && { 10313 test "$cross_compiling" = yes || 10314 $as_test_x conftest$ac_exeext 10315 }; then 10316 ac_cv_lib_dl_dlopen=yes 10317else 10318 $as_echo "$as_me: failed program was:" >&5 10319sed 's/^/| /' conftest.$ac_ext >&5 10320 10321 ac_cv_lib_dl_dlopen=no 10322fi 10323 10324rm -rf conftest.dSYM 10325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10326 conftest$ac_exeext conftest.$ac_ext 10327LIBS=$ac_check_lib_save_LIBS 10328fi 10329{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10330$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10331if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10333else 10334 10335 lt_cv_dlopen="dyld" 10336 lt_cv_dlopen_libs= 10337 lt_cv_dlopen_self=yes 10338 10339fi 10340 10341 ;; 10342 10343 *) 10344 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10345$as_echo_n "checking for shl_load... " >&6; } 10346if test "${ac_cv_func_shl_load+set}" = set; then 10347 $as_echo_n "(cached) " >&6 10348else 10349 cat >conftest.$ac_ext <<_ACEOF 10350/* confdefs.h. */ 10351_ACEOF 10352cat confdefs.h >>conftest.$ac_ext 10353cat >>conftest.$ac_ext <<_ACEOF 10354/* end confdefs.h. */ 10355/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10356 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10357#define shl_load innocuous_shl_load 10358 10359/* System header to define __stub macros and hopefully few prototypes, 10360 which can conflict with char shl_load (); below. 10361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10362 <limits.h> exists even on freestanding compilers. */ 10363 10364#ifdef __STDC__ 10365# include <limits.h> 10366#else 10367# include <assert.h> 10368#endif 10369 10370#undef shl_load 10371 10372/* Override any GCC internal prototype to avoid an error. 10373 Use char because int might match the return type of a GCC 10374 builtin and then its argument prototype would still apply. */ 10375#ifdef __cplusplus 10376extern "C" 10377#endif 10378char shl_load (); 10379/* The GNU C library defines this for functions which it implements 10380 to always fail with ENOSYS. Some functions are actually named 10381 something starting with __ and the normal name is an alias. */ 10382#if defined __stub_shl_load || defined __stub___shl_load 10383choke me 10384#endif 10385 10386int 10387main () 10388{ 10389return shl_load (); 10390 ; 10391 return 0; 10392} 10393_ACEOF 10394rm -f conftest.$ac_objext conftest$ac_exeext 10395if { (ac_try="$ac_link" 10396case "(($ac_try" in 10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10398 *) ac_try_echo=$ac_try;; 10399esac 10400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10401$as_echo "$ac_try_echo") >&5 10402 (eval "$ac_link") 2>conftest.er1 10403 ac_status=$? 10404 grep -v '^ *+' conftest.er1 >conftest.err 10405 rm -f conftest.er1 10406 cat conftest.err >&5 10407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10408 (exit $ac_status); } && { 10409 test -z "$ac_c_werror_flag" || 10410 test ! -s conftest.err 10411 } && test -s conftest$ac_exeext && { 10412 test "$cross_compiling" = yes || 10413 $as_test_x conftest$ac_exeext 10414 }; then 10415 ac_cv_func_shl_load=yes 10416else 10417 $as_echo "$as_me: failed program was:" >&5 10418sed 's/^/| /' conftest.$ac_ext >&5 10419 10420 ac_cv_func_shl_load=no 10421fi 10422 10423rm -rf conftest.dSYM 10424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10425 conftest$ac_exeext conftest.$ac_ext 10426fi 10427{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10428$as_echo "$ac_cv_func_shl_load" >&6; } 10429if test "x$ac_cv_func_shl_load" = x""yes; then 10430 lt_cv_dlopen="shl_load" 10431else 10432 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10433$as_echo_n "checking for shl_load in -ldld... " >&6; } 10434if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10435 $as_echo_n "(cached) " >&6 10436else 10437 ac_check_lib_save_LIBS=$LIBS 10438LIBS="-ldld $LIBS" 10439cat >conftest.$ac_ext <<_ACEOF 10440/* confdefs.h. */ 10441_ACEOF 10442cat confdefs.h >>conftest.$ac_ext 10443cat >>conftest.$ac_ext <<_ACEOF 10444/* end confdefs.h. */ 10445 10446/* Override any GCC internal prototype to avoid an error. 10447 Use char because int might match the return type of a GCC 10448 builtin and then its argument prototype would still apply. */ 10449#ifdef __cplusplus 10450extern "C" 10451#endif 10452char shl_load (); 10453int 10454main () 10455{ 10456return shl_load (); 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461rm -f conftest.$ac_objext conftest$ac_exeext 10462if { (ac_try="$ac_link" 10463case "(($ac_try" in 10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10465 *) ac_try_echo=$ac_try;; 10466esac 10467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10468$as_echo "$ac_try_echo") >&5 10469 (eval "$ac_link") 2>conftest.er1 10470 ac_status=$? 10471 grep -v '^ *+' conftest.er1 >conftest.err 10472 rm -f conftest.er1 10473 cat conftest.err >&5 10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 (exit $ac_status); } && { 10476 test -z "$ac_c_werror_flag" || 10477 test ! -s conftest.err 10478 } && test -s conftest$ac_exeext && { 10479 test "$cross_compiling" = yes || 10480 $as_test_x conftest$ac_exeext 10481 }; then 10482 ac_cv_lib_dld_shl_load=yes 10483else 10484 $as_echo "$as_me: failed program was:" >&5 10485sed 's/^/| /' conftest.$ac_ext >&5 10486 10487 ac_cv_lib_dld_shl_load=no 10488fi 10489 10490rm -rf conftest.dSYM 10491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10492 conftest$ac_exeext conftest.$ac_ext 10493LIBS=$ac_check_lib_save_LIBS 10494fi 10495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10496$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10497if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10498 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10499else 10500 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10501$as_echo_n "checking for dlopen... " >&6; } 10502if test "${ac_cv_func_dlopen+set}" = set; then 10503 $as_echo_n "(cached) " >&6 10504else 10505 cat >conftest.$ac_ext <<_ACEOF 10506/* confdefs.h. */ 10507_ACEOF 10508cat confdefs.h >>conftest.$ac_ext 10509cat >>conftest.$ac_ext <<_ACEOF 10510/* end confdefs.h. */ 10511/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10512 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10513#define dlopen innocuous_dlopen 10514 10515/* System header to define __stub macros and hopefully few prototypes, 10516 which can conflict with char dlopen (); below. 10517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10518 <limits.h> exists even on freestanding compilers. */ 10519 10520#ifdef __STDC__ 10521# include <limits.h> 10522#else 10523# include <assert.h> 10524#endif 10525 10526#undef dlopen 10527 10528/* Override any GCC internal prototype to avoid an error. 10529 Use char because int might match the return type of a GCC 10530 builtin and then its argument prototype would still apply. */ 10531#ifdef __cplusplus 10532extern "C" 10533#endif 10534char dlopen (); 10535/* The GNU C library defines this for functions which it implements 10536 to always fail with ENOSYS. Some functions are actually named 10537 something starting with __ and the normal name is an alias. */ 10538#if defined __stub_dlopen || defined __stub___dlopen 10539choke me 10540#endif 10541 10542int 10543main () 10544{ 10545return dlopen (); 10546 ; 10547 return 0; 10548} 10549_ACEOF 10550rm -f conftest.$ac_objext conftest$ac_exeext 10551if { (ac_try="$ac_link" 10552case "(($ac_try" in 10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10554 *) ac_try_echo=$ac_try;; 10555esac 10556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10557$as_echo "$ac_try_echo") >&5 10558 (eval "$ac_link") 2>conftest.er1 10559 ac_status=$? 10560 grep -v '^ *+' conftest.er1 >conftest.err 10561 rm -f conftest.er1 10562 cat conftest.err >&5 10563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10564 (exit $ac_status); } && { 10565 test -z "$ac_c_werror_flag" || 10566 test ! -s conftest.err 10567 } && test -s conftest$ac_exeext && { 10568 test "$cross_compiling" = yes || 10569 $as_test_x conftest$ac_exeext 10570 }; then 10571 ac_cv_func_dlopen=yes 10572else 10573 $as_echo "$as_me: failed program was:" >&5 10574sed 's/^/| /' conftest.$ac_ext >&5 10575 10576 ac_cv_func_dlopen=no 10577fi 10578 10579rm -rf conftest.dSYM 10580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10581 conftest$ac_exeext conftest.$ac_ext 10582fi 10583{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10584$as_echo "$ac_cv_func_dlopen" >&6; } 10585if test "x$ac_cv_func_dlopen" = x""yes; then 10586 lt_cv_dlopen="dlopen" 10587else 10588 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10589$as_echo_n "checking for dlopen in -ldl... " >&6; } 10590if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10591 $as_echo_n "(cached) " >&6 10592else 10593 ac_check_lib_save_LIBS=$LIBS 10594LIBS="-ldl $LIBS" 10595cat >conftest.$ac_ext <<_ACEOF 10596/* confdefs.h. */ 10597_ACEOF 10598cat confdefs.h >>conftest.$ac_ext 10599cat >>conftest.$ac_ext <<_ACEOF 10600/* end confdefs.h. */ 10601 10602/* Override any GCC internal prototype to avoid an error. 10603 Use char because int might match the return type of a GCC 10604 builtin and then its argument prototype would still apply. */ 10605#ifdef __cplusplus 10606extern "C" 10607#endif 10608char dlopen (); 10609int 10610main () 10611{ 10612return dlopen (); 10613 ; 10614 return 0; 10615} 10616_ACEOF 10617rm -f conftest.$ac_objext conftest$ac_exeext 10618if { (ac_try="$ac_link" 10619case "(($ac_try" in 10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10621 *) ac_try_echo=$ac_try;; 10622esac 10623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10624$as_echo "$ac_try_echo") >&5 10625 (eval "$ac_link") 2>conftest.er1 10626 ac_status=$? 10627 grep -v '^ *+' conftest.er1 >conftest.err 10628 rm -f conftest.er1 10629 cat conftest.err >&5 10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10631 (exit $ac_status); } && { 10632 test -z "$ac_c_werror_flag" || 10633 test ! -s conftest.err 10634 } && test -s conftest$ac_exeext && { 10635 test "$cross_compiling" = yes || 10636 $as_test_x conftest$ac_exeext 10637 }; then 10638 ac_cv_lib_dl_dlopen=yes 10639else 10640 $as_echo "$as_me: failed program was:" >&5 10641sed 's/^/| /' conftest.$ac_ext >&5 10642 10643 ac_cv_lib_dl_dlopen=no 10644fi 10645 10646rm -rf conftest.dSYM 10647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10648 conftest$ac_exeext conftest.$ac_ext 10649LIBS=$ac_check_lib_save_LIBS 10650fi 10651{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10652$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10653if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10655else 10656 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10657$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10658if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10659 $as_echo_n "(cached) " >&6 10660else 10661 ac_check_lib_save_LIBS=$LIBS 10662LIBS="-lsvld $LIBS" 10663cat >conftest.$ac_ext <<_ACEOF 10664/* confdefs.h. */ 10665_ACEOF 10666cat confdefs.h >>conftest.$ac_ext 10667cat >>conftest.$ac_ext <<_ACEOF 10668/* end confdefs.h. */ 10669 10670/* Override any GCC internal prototype to avoid an error. 10671 Use char because int might match the return type of a GCC 10672 builtin and then its argument prototype would still apply. */ 10673#ifdef __cplusplus 10674extern "C" 10675#endif 10676char dlopen (); 10677int 10678main () 10679{ 10680return dlopen (); 10681 ; 10682 return 0; 10683} 10684_ACEOF 10685rm -f conftest.$ac_objext conftest$ac_exeext 10686if { (ac_try="$ac_link" 10687case "(($ac_try" in 10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10689 *) ac_try_echo=$ac_try;; 10690esac 10691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10692$as_echo "$ac_try_echo") >&5 10693 (eval "$ac_link") 2>conftest.er1 10694 ac_status=$? 10695 grep -v '^ *+' conftest.er1 >conftest.err 10696 rm -f conftest.er1 10697 cat conftest.err >&5 10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10699 (exit $ac_status); } && { 10700 test -z "$ac_c_werror_flag" || 10701 test ! -s conftest.err 10702 } && test -s conftest$ac_exeext && { 10703 test "$cross_compiling" = yes || 10704 $as_test_x conftest$ac_exeext 10705 }; then 10706 ac_cv_lib_svld_dlopen=yes 10707else 10708 $as_echo "$as_me: failed program was:" >&5 10709sed 's/^/| /' conftest.$ac_ext >&5 10710 10711 ac_cv_lib_svld_dlopen=no 10712fi 10713 10714rm -rf conftest.dSYM 10715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10716 conftest$ac_exeext conftest.$ac_ext 10717LIBS=$ac_check_lib_save_LIBS 10718fi 10719{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10720$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10721if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10722 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10723else 10724 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10725$as_echo_n "checking for dld_link in -ldld... " >&6; } 10726if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10727 $as_echo_n "(cached) " >&6 10728else 10729 ac_check_lib_save_LIBS=$LIBS 10730LIBS="-ldld $LIBS" 10731cat >conftest.$ac_ext <<_ACEOF 10732/* confdefs.h. */ 10733_ACEOF 10734cat confdefs.h >>conftest.$ac_ext 10735cat >>conftest.$ac_ext <<_ACEOF 10736/* end confdefs.h. */ 10737 10738/* Override any GCC internal prototype to avoid an error. 10739 Use char because int might match the return type of a GCC 10740 builtin and then its argument prototype would still apply. */ 10741#ifdef __cplusplus 10742extern "C" 10743#endif 10744char dld_link (); 10745int 10746main () 10747{ 10748return dld_link (); 10749 ; 10750 return 0; 10751} 10752_ACEOF 10753rm -f conftest.$ac_objext conftest$ac_exeext 10754if { (ac_try="$ac_link" 10755case "(($ac_try" in 10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10757 *) ac_try_echo=$ac_try;; 10758esac 10759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10760$as_echo "$ac_try_echo") >&5 10761 (eval "$ac_link") 2>conftest.er1 10762 ac_status=$? 10763 grep -v '^ *+' conftest.er1 >conftest.err 10764 rm -f conftest.er1 10765 cat conftest.err >&5 10766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10767 (exit $ac_status); } && { 10768 test -z "$ac_c_werror_flag" || 10769 test ! -s conftest.err 10770 } && test -s conftest$ac_exeext && { 10771 test "$cross_compiling" = yes || 10772 $as_test_x conftest$ac_exeext 10773 }; then 10774 ac_cv_lib_dld_dld_link=yes 10775else 10776 $as_echo "$as_me: failed program was:" >&5 10777sed 's/^/| /' conftest.$ac_ext >&5 10778 10779 ac_cv_lib_dld_dld_link=no 10780fi 10781 10782rm -rf conftest.dSYM 10783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10784 conftest$ac_exeext conftest.$ac_ext 10785LIBS=$ac_check_lib_save_LIBS 10786fi 10787{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10788$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10789if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10791fi 10792 10793 10794fi 10795 10796 10797fi 10798 10799 10800fi 10801 10802 10803fi 10804 10805 10806fi 10807 10808 ;; 10809 esac 10810 10811 if test "x$lt_cv_dlopen" != xno; then 10812 enable_dlopen=yes 10813 else 10814 enable_dlopen=no 10815 fi 10816 10817 case $lt_cv_dlopen in 10818 dlopen) 10819 save_CPPFLAGS="$CPPFLAGS" 10820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10821 10822 save_LDFLAGS="$LDFLAGS" 10823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10824 10825 save_LIBS="$LIBS" 10826 LIBS="$lt_cv_dlopen_libs $LIBS" 10827 10828 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10829$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10830if test "${lt_cv_dlopen_self+set}" = set; then 10831 $as_echo_n "(cached) " >&6 10832else 10833 if test "$cross_compiling" = yes; then : 10834 lt_cv_dlopen_self=cross 10835else 10836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10837 lt_status=$lt_dlunknown 10838 cat > conftest.$ac_ext <<_LT_EOF 10839#line 10839 "configure" 10840#include "confdefs.h" 10841 10842#if HAVE_DLFCN_H 10843#include <dlfcn.h> 10844#endif 10845 10846#include <stdio.h> 10847 10848#ifdef RTLD_GLOBAL 10849# define LT_DLGLOBAL RTLD_GLOBAL 10850#else 10851# ifdef DL_GLOBAL 10852# define LT_DLGLOBAL DL_GLOBAL 10853# else 10854# define LT_DLGLOBAL 0 10855# endif 10856#endif 10857 10858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10859 find out it does not work in some platform. */ 10860#ifndef LT_DLLAZY_OR_NOW 10861# ifdef RTLD_LAZY 10862# define LT_DLLAZY_OR_NOW RTLD_LAZY 10863# else 10864# ifdef DL_LAZY 10865# define LT_DLLAZY_OR_NOW DL_LAZY 10866# else 10867# ifdef RTLD_NOW 10868# define LT_DLLAZY_OR_NOW RTLD_NOW 10869# else 10870# ifdef DL_NOW 10871# define LT_DLLAZY_OR_NOW DL_NOW 10872# else 10873# define LT_DLLAZY_OR_NOW 0 10874# endif 10875# endif 10876# endif 10877# endif 10878#endif 10879 10880void fnord() { int i=42;} 10881int main () 10882{ 10883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10884 int status = $lt_dlunknown; 10885 10886 if (self) 10887 { 10888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10889 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10890 /* dlclose (self); */ 10891 } 10892 else 10893 puts (dlerror ()); 10894 10895 return status; 10896} 10897_LT_EOF 10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10899 (eval $ac_link) 2>&5 10900 ac_status=$? 10901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10902 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10903 (./conftest; exit; ) >&5 2>/dev/null 10904 lt_status=$? 10905 case x$lt_status in 10906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10909 esac 10910 else : 10911 # compilation failed 10912 lt_cv_dlopen_self=no 10913 fi 10914fi 10915rm -fr conftest* 10916 10917 10918fi 10919{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10920$as_echo "$lt_cv_dlopen_self" >&6; } 10921 10922 if test "x$lt_cv_dlopen_self" = xyes; then 10923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10924 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10925$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10926if test "${lt_cv_dlopen_self_static+set}" = set; then 10927 $as_echo_n "(cached) " >&6 10928else 10929 if test "$cross_compiling" = yes; then : 10930 lt_cv_dlopen_self_static=cross 10931else 10932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10933 lt_status=$lt_dlunknown 10934 cat > conftest.$ac_ext <<_LT_EOF 10935#line 10935 "configure" 10936#include "confdefs.h" 10937 10938#if HAVE_DLFCN_H 10939#include <dlfcn.h> 10940#endif 10941 10942#include <stdio.h> 10943 10944#ifdef RTLD_GLOBAL 10945# define LT_DLGLOBAL RTLD_GLOBAL 10946#else 10947# ifdef DL_GLOBAL 10948# define LT_DLGLOBAL DL_GLOBAL 10949# else 10950# define LT_DLGLOBAL 0 10951# endif 10952#endif 10953 10954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10955 find out it does not work in some platform. */ 10956#ifndef LT_DLLAZY_OR_NOW 10957# ifdef RTLD_LAZY 10958# define LT_DLLAZY_OR_NOW RTLD_LAZY 10959# else 10960# ifdef DL_LAZY 10961# define LT_DLLAZY_OR_NOW DL_LAZY 10962# else 10963# ifdef RTLD_NOW 10964# define LT_DLLAZY_OR_NOW RTLD_NOW 10965# else 10966# ifdef DL_NOW 10967# define LT_DLLAZY_OR_NOW DL_NOW 10968# else 10969# define LT_DLLAZY_OR_NOW 0 10970# endif 10971# endif 10972# endif 10973# endif 10974#endif 10975 10976void fnord() { int i=42;} 10977int main () 10978{ 10979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10980 int status = $lt_dlunknown; 10981 10982 if (self) 10983 { 10984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10985 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10986 /* dlclose (self); */ 10987 } 10988 else 10989 puts (dlerror ()); 10990 10991 return status; 10992} 10993_LT_EOF 10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10995 (eval $ac_link) 2>&5 10996 ac_status=$? 10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10998 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10999 (./conftest; exit; ) >&5 2>/dev/null 11000 lt_status=$? 11001 case x$lt_status in 11002 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11003 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11004 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11005 esac 11006 else : 11007 # compilation failed 11008 lt_cv_dlopen_self_static=no 11009 fi 11010fi 11011rm -fr conftest* 11012 11013 11014fi 11015{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11016$as_echo "$lt_cv_dlopen_self_static" >&6; } 11017 fi 11018 11019 CPPFLAGS="$save_CPPFLAGS" 11020 LDFLAGS="$save_LDFLAGS" 11021 LIBS="$save_LIBS" 11022 ;; 11023 esac 11024 11025 case $lt_cv_dlopen_self in 11026 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11027 *) enable_dlopen_self=unknown ;; 11028 esac 11029 11030 case $lt_cv_dlopen_self_static in 11031 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11032 *) enable_dlopen_self_static=unknown ;; 11033 esac 11034fi 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052striplib= 11053old_striplib= 11054{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11055$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11056if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11058 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11059 { $as_echo "$as_me:$LINENO: result: yes" >&5 11060$as_echo "yes" >&6; } 11061else 11062# FIXME - insert some real tests, host_os isn't really good enough 11063 case $host_os in 11064 darwin*) 11065 if test -n "$STRIP" ; then 11066 striplib="$STRIP -x" 11067 old_striplib="$STRIP -S" 11068 { $as_echo "$as_me:$LINENO: result: yes" >&5 11069$as_echo "yes" >&6; } 11070 else 11071 { $as_echo "$as_me:$LINENO: result: no" >&5 11072$as_echo "no" >&6; } 11073 fi 11074 ;; 11075 *) 11076 { $as_echo "$as_me:$LINENO: result: no" >&5 11077$as_echo "no" >&6; } 11078 ;; 11079 esac 11080fi 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 # Report which library types will actually be built 11094 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11095$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11096 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11097$as_echo "$can_build_shared" >&6; } 11098 11099 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11100$as_echo_n "checking whether to build shared libraries... " >&6; } 11101 test "$can_build_shared" = "no" && enable_shared=no 11102 11103 # On AIX, shared libraries and static libraries use the same namespace, and 11104 # are all built from PIC. 11105 case $host_os in 11106 aix3*) 11107 test "$enable_shared" = yes && enable_static=no 11108 if test -n "$RANLIB"; then 11109 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11110 postinstall_cmds='$RANLIB $lib' 11111 fi 11112 ;; 11113 11114 aix[4-9]*) 11115 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11116 test "$enable_shared" = yes && enable_static=no 11117 fi 11118 ;; 11119 esac 11120 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11121$as_echo "$enable_shared" >&6; } 11122 11123 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11124$as_echo_n "checking whether to build static libraries... " >&6; } 11125 # Make sure either enable_shared or enable_static is yes. 11126 test "$enable_shared" = yes || enable_static=yes 11127 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11128$as_echo "$enable_static" >&6; } 11129 11130 11131 11132 11133fi 11134ac_ext=c 11135ac_cpp='$CPP $CPPFLAGS' 11136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11138ac_compiler_gnu=$ac_cv_c_compiler_gnu 11139 11140CC="$lt_save_CC" 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 ac_config_commands="$ac_config_commands libtool" 11155 11156 11157 11158 11159# Only expand once: 11160 11161 11162ac_ext=c 11163ac_cpp='$CPP $CPPFLAGS' 11164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11166ac_compiler_gnu=$ac_cv_c_compiler_gnu 11167if test -n "$ac_tool_prefix"; then 11168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11169set dummy ${ac_tool_prefix}gcc; ac_word=$2 11170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11171$as_echo_n "checking for $ac_word... " >&6; } 11172if test "${ac_cv_prog_CC+set}" = set; then 11173 $as_echo_n "(cached) " >&6 11174else 11175 if test -n "$CC"; then 11176 ac_cv_prog_CC="$CC" # Let the user override the test. 11177else 11178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11179for as_dir in $PATH 11180do 11181 IFS=$as_save_IFS 11182 test -z "$as_dir" && as_dir=. 11183 for ac_exec_ext in '' $ac_executable_extensions; do 11184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11185 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11187 break 2 11188 fi 11189done 11190done 11191IFS=$as_save_IFS 11192 11193fi 11194fi 11195CC=$ac_cv_prog_CC 11196if test -n "$CC"; then 11197 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11198$as_echo "$CC" >&6; } 11199else 11200 { $as_echo "$as_me:$LINENO: result: no" >&5 11201$as_echo "no" >&6; } 11202fi 11203 11204 11205fi 11206if test -z "$ac_cv_prog_CC"; then 11207 ac_ct_CC=$CC 11208 # Extract the first word of "gcc", so it can be a program name with args. 11209set dummy gcc; ac_word=$2 11210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11211$as_echo_n "checking for $ac_word... " >&6; } 11212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11213 $as_echo_n "(cached) " >&6 11214else 11215 if test -n "$ac_ct_CC"; then 11216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11217else 11218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11219for as_dir in $PATH 11220do 11221 IFS=$as_save_IFS 11222 test -z "$as_dir" && as_dir=. 11223 for ac_exec_ext in '' $ac_executable_extensions; do 11224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11225 ac_cv_prog_ac_ct_CC="gcc" 11226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11227 break 2 11228 fi 11229done 11230done 11231IFS=$as_save_IFS 11232 11233fi 11234fi 11235ac_ct_CC=$ac_cv_prog_ac_ct_CC 11236if test -n "$ac_ct_CC"; then 11237 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11238$as_echo "$ac_ct_CC" >&6; } 11239else 11240 { $as_echo "$as_me:$LINENO: result: no" >&5 11241$as_echo "no" >&6; } 11242fi 11243 11244 if test "x$ac_ct_CC" = x; then 11245 CC="" 11246 else 11247 case $cross_compiling:$ac_tool_warned in 11248yes:) 11249{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11251ac_tool_warned=yes ;; 11252esac 11253 CC=$ac_ct_CC 11254 fi 11255else 11256 CC="$ac_cv_prog_CC" 11257fi 11258 11259if test -z "$CC"; then 11260 if test -n "$ac_tool_prefix"; then 11261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11262set dummy ${ac_tool_prefix}cc; ac_word=$2 11263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11264$as_echo_n "checking for $ac_word... " >&6; } 11265if test "${ac_cv_prog_CC+set}" = set; then 11266 $as_echo_n "(cached) " >&6 11267else 11268 if test -n "$CC"; then 11269 ac_cv_prog_CC="$CC" # Let the user override the test. 11270else 11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11272for as_dir in $PATH 11273do 11274 IFS=$as_save_IFS 11275 test -z "$as_dir" && as_dir=. 11276 for ac_exec_ext in '' $ac_executable_extensions; do 11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11278 ac_cv_prog_CC="${ac_tool_prefix}cc" 11279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11280 break 2 11281 fi 11282done 11283done 11284IFS=$as_save_IFS 11285 11286fi 11287fi 11288CC=$ac_cv_prog_CC 11289if test -n "$CC"; then 11290 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11291$as_echo "$CC" >&6; } 11292else 11293 { $as_echo "$as_me:$LINENO: result: no" >&5 11294$as_echo "no" >&6; } 11295fi 11296 11297 11298 fi 11299fi 11300if test -z "$CC"; then 11301 # Extract the first word of "cc", so it can be a program name with args. 11302set dummy cc; ac_word=$2 11303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11304$as_echo_n "checking for $ac_word... " >&6; } 11305if test "${ac_cv_prog_CC+set}" = set; then 11306 $as_echo_n "(cached) " >&6 11307else 11308 if test -n "$CC"; then 11309 ac_cv_prog_CC="$CC" # Let the user override the test. 11310else 11311 ac_prog_rejected=no 11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11313for as_dir in $PATH 11314do 11315 IFS=$as_save_IFS 11316 test -z "$as_dir" && as_dir=. 11317 for ac_exec_ext in '' $ac_executable_extensions; do 11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11320 ac_prog_rejected=yes 11321 continue 11322 fi 11323 ac_cv_prog_CC="cc" 11324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11325 break 2 11326 fi 11327done 11328done 11329IFS=$as_save_IFS 11330 11331if test $ac_prog_rejected = yes; then 11332 # We found a bogon in the path, so make sure we never use it. 11333 set dummy $ac_cv_prog_CC 11334 shift 11335 if test $# != 0; then 11336 # We chose a different compiler from the bogus one. 11337 # However, it has the same basename, so the bogon will be chosen 11338 # first if we set CC to just the basename; use the full file name. 11339 shift 11340 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11341 fi 11342fi 11343fi 11344fi 11345CC=$ac_cv_prog_CC 11346if test -n "$CC"; then 11347 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11348$as_echo "$CC" >&6; } 11349else 11350 { $as_echo "$as_me:$LINENO: result: no" >&5 11351$as_echo "no" >&6; } 11352fi 11353 11354 11355fi 11356if test -z "$CC"; then 11357 if test -n "$ac_tool_prefix"; then 11358 for ac_prog in cl.exe 11359 do 11360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11361set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11363$as_echo_n "checking for $ac_word... " >&6; } 11364if test "${ac_cv_prog_CC+set}" = set; then 11365 $as_echo_n "(cached) " >&6 11366else 11367 if test -n "$CC"; then 11368 ac_cv_prog_CC="$CC" # Let the user override the test. 11369else 11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11371for as_dir in $PATH 11372do 11373 IFS=$as_save_IFS 11374 test -z "$as_dir" && as_dir=. 11375 for ac_exec_ext in '' $ac_executable_extensions; do 11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11379 break 2 11380 fi 11381done 11382done 11383IFS=$as_save_IFS 11384 11385fi 11386fi 11387CC=$ac_cv_prog_CC 11388if test -n "$CC"; then 11389 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11390$as_echo "$CC" >&6; } 11391else 11392 { $as_echo "$as_me:$LINENO: result: no" >&5 11393$as_echo "no" >&6; } 11394fi 11395 11396 11397 test -n "$CC" && break 11398 done 11399fi 11400if test -z "$CC"; then 11401 ac_ct_CC=$CC 11402 for ac_prog in cl.exe 11403do 11404 # Extract the first word of "$ac_prog", so it can be a program name with args. 11405set dummy $ac_prog; ac_word=$2 11406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11407$as_echo_n "checking for $ac_word... " >&6; } 11408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11409 $as_echo_n "(cached) " >&6 11410else 11411 if test -n "$ac_ct_CC"; then 11412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11413else 11414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11415for as_dir in $PATH 11416do 11417 IFS=$as_save_IFS 11418 test -z "$as_dir" && as_dir=. 11419 for ac_exec_ext in '' $ac_executable_extensions; do 11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11421 ac_cv_prog_ac_ct_CC="$ac_prog" 11422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11423 break 2 11424 fi 11425done 11426done 11427IFS=$as_save_IFS 11428 11429fi 11430fi 11431ac_ct_CC=$ac_cv_prog_ac_ct_CC 11432if test -n "$ac_ct_CC"; then 11433 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11434$as_echo "$ac_ct_CC" >&6; } 11435else 11436 { $as_echo "$as_me:$LINENO: result: no" >&5 11437$as_echo "no" >&6; } 11438fi 11439 11440 11441 test -n "$ac_ct_CC" && break 11442done 11443 11444 if test "x$ac_ct_CC" = x; then 11445 CC="" 11446 else 11447 case $cross_compiling:$ac_tool_warned in 11448yes:) 11449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11451ac_tool_warned=yes ;; 11452esac 11453 CC=$ac_ct_CC 11454 fi 11455fi 11456 11457fi 11458 11459 11460test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11462{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11463See \`config.log' for more details." >&5 11464$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11465See \`config.log' for more details." >&2;} 11466 { (exit 1); exit 1; }; }; } 11467 11468# Provide some information about the compiler. 11469$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11470set X $ac_compile 11471ac_compiler=$2 11472{ (ac_try="$ac_compiler --version >&5" 11473case "(($ac_try" in 11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11475 *) ac_try_echo=$ac_try;; 11476esac 11477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11478$as_echo "$ac_try_echo") >&5 11479 (eval "$ac_compiler --version >&5") 2>&5 11480 ac_status=$? 11481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11482 (exit $ac_status); } 11483{ (ac_try="$ac_compiler -v >&5" 11484case "(($ac_try" in 11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11486 *) ac_try_echo=$ac_try;; 11487esac 11488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11489$as_echo "$ac_try_echo") >&5 11490 (eval "$ac_compiler -v >&5") 2>&5 11491 ac_status=$? 11492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11493 (exit $ac_status); } 11494{ (ac_try="$ac_compiler -V >&5" 11495case "(($ac_try" in 11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11497 *) ac_try_echo=$ac_try;; 11498esac 11499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11500$as_echo "$ac_try_echo") >&5 11501 (eval "$ac_compiler -V >&5") 2>&5 11502 ac_status=$? 11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11504 (exit $ac_status); } 11505 11506{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11507$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11508if test "${ac_cv_c_compiler_gnu+set}" = set; then 11509 $as_echo_n "(cached) " >&6 11510else 11511 cat >conftest.$ac_ext <<_ACEOF 11512/* confdefs.h. */ 11513_ACEOF 11514cat confdefs.h >>conftest.$ac_ext 11515cat >>conftest.$ac_ext <<_ACEOF 11516/* end confdefs.h. */ 11517 11518int 11519main () 11520{ 11521#ifndef __GNUC__ 11522 choke me 11523#endif 11524 11525 ; 11526 return 0; 11527} 11528_ACEOF 11529rm -f conftest.$ac_objext 11530if { (ac_try="$ac_compile" 11531case "(($ac_try" in 11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11533 *) ac_try_echo=$ac_try;; 11534esac 11535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11536$as_echo "$ac_try_echo") >&5 11537 (eval "$ac_compile") 2>conftest.er1 11538 ac_status=$? 11539 grep -v '^ *+' conftest.er1 >conftest.err 11540 rm -f conftest.er1 11541 cat conftest.err >&5 11542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11543 (exit $ac_status); } && { 11544 test -z "$ac_c_werror_flag" || 11545 test ! -s conftest.err 11546 } && test -s conftest.$ac_objext; then 11547 ac_compiler_gnu=yes 11548else 11549 $as_echo "$as_me: failed program was:" >&5 11550sed 's/^/| /' conftest.$ac_ext >&5 11551 11552 ac_compiler_gnu=no 11553fi 11554 11555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11556ac_cv_c_compiler_gnu=$ac_compiler_gnu 11557 11558fi 11559{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11560$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11561if test $ac_compiler_gnu = yes; then 11562 GCC=yes 11563else 11564 GCC= 11565fi 11566ac_test_CFLAGS=${CFLAGS+set} 11567ac_save_CFLAGS=$CFLAGS 11568{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11569$as_echo_n "checking whether $CC accepts -g... " >&6; } 11570if test "${ac_cv_prog_cc_g+set}" = set; then 11571 $as_echo_n "(cached) " >&6 11572else 11573 ac_save_c_werror_flag=$ac_c_werror_flag 11574 ac_c_werror_flag=yes 11575 ac_cv_prog_cc_g=no 11576 CFLAGS="-g" 11577 cat >conftest.$ac_ext <<_ACEOF 11578/* confdefs.h. */ 11579_ACEOF 11580cat confdefs.h >>conftest.$ac_ext 11581cat >>conftest.$ac_ext <<_ACEOF 11582/* end confdefs.h. */ 11583 11584int 11585main () 11586{ 11587 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592rm -f conftest.$ac_objext 11593if { (ac_try="$ac_compile" 11594case "(($ac_try" in 11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11596 *) ac_try_echo=$ac_try;; 11597esac 11598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11599$as_echo "$ac_try_echo") >&5 11600 (eval "$ac_compile") 2>conftest.er1 11601 ac_status=$? 11602 grep -v '^ *+' conftest.er1 >conftest.err 11603 rm -f conftest.er1 11604 cat conftest.err >&5 11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11606 (exit $ac_status); } && { 11607 test -z "$ac_c_werror_flag" || 11608 test ! -s conftest.err 11609 } && test -s conftest.$ac_objext; then 11610 ac_cv_prog_cc_g=yes 11611else 11612 $as_echo "$as_me: failed program was:" >&5 11613sed 's/^/| /' conftest.$ac_ext >&5 11614 11615 CFLAGS="" 11616 cat >conftest.$ac_ext <<_ACEOF 11617/* confdefs.h. */ 11618_ACEOF 11619cat confdefs.h >>conftest.$ac_ext 11620cat >>conftest.$ac_ext <<_ACEOF 11621/* end confdefs.h. */ 11622 11623int 11624main () 11625{ 11626 11627 ; 11628 return 0; 11629} 11630_ACEOF 11631rm -f conftest.$ac_objext 11632if { (ac_try="$ac_compile" 11633case "(($ac_try" in 11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11635 *) ac_try_echo=$ac_try;; 11636esac 11637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11638$as_echo "$ac_try_echo") >&5 11639 (eval "$ac_compile") 2>conftest.er1 11640 ac_status=$? 11641 grep -v '^ *+' conftest.er1 >conftest.err 11642 rm -f conftest.er1 11643 cat conftest.err >&5 11644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11645 (exit $ac_status); } && { 11646 test -z "$ac_c_werror_flag" || 11647 test ! -s conftest.err 11648 } && test -s conftest.$ac_objext; then 11649 : 11650else 11651 $as_echo "$as_me: failed program was:" >&5 11652sed 's/^/| /' conftest.$ac_ext >&5 11653 11654 ac_c_werror_flag=$ac_save_c_werror_flag 11655 CFLAGS="-g" 11656 cat >conftest.$ac_ext <<_ACEOF 11657/* confdefs.h. */ 11658_ACEOF 11659cat confdefs.h >>conftest.$ac_ext 11660cat >>conftest.$ac_ext <<_ACEOF 11661/* end confdefs.h. */ 11662 11663int 11664main () 11665{ 11666 11667 ; 11668 return 0; 11669} 11670_ACEOF 11671rm -f conftest.$ac_objext 11672if { (ac_try="$ac_compile" 11673case "(($ac_try" in 11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11675 *) ac_try_echo=$ac_try;; 11676esac 11677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11678$as_echo "$ac_try_echo") >&5 11679 (eval "$ac_compile") 2>conftest.er1 11680 ac_status=$? 11681 grep -v '^ *+' conftest.er1 >conftest.err 11682 rm -f conftest.er1 11683 cat conftest.err >&5 11684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11685 (exit $ac_status); } && { 11686 test -z "$ac_c_werror_flag" || 11687 test ! -s conftest.err 11688 } && test -s conftest.$ac_objext; then 11689 ac_cv_prog_cc_g=yes 11690else 11691 $as_echo "$as_me: failed program was:" >&5 11692sed 's/^/| /' conftest.$ac_ext >&5 11693 11694 11695fi 11696 11697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11698fi 11699 11700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11701fi 11702 11703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11704 ac_c_werror_flag=$ac_save_c_werror_flag 11705fi 11706{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11707$as_echo "$ac_cv_prog_cc_g" >&6; } 11708if test "$ac_test_CFLAGS" = set; then 11709 CFLAGS=$ac_save_CFLAGS 11710elif test $ac_cv_prog_cc_g = yes; then 11711 if test "$GCC" = yes; then 11712 CFLAGS="-g -O2" 11713 else 11714 CFLAGS="-g" 11715 fi 11716else 11717 if test "$GCC" = yes; then 11718 CFLAGS="-O2" 11719 else 11720 CFLAGS= 11721 fi 11722fi 11723{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11724$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11725if test "${ac_cv_prog_cc_c89+set}" = set; then 11726 $as_echo_n "(cached) " >&6 11727else 11728 ac_cv_prog_cc_c89=no 11729ac_save_CC=$CC 11730cat >conftest.$ac_ext <<_ACEOF 11731/* confdefs.h. */ 11732_ACEOF 11733cat confdefs.h >>conftest.$ac_ext 11734cat >>conftest.$ac_ext <<_ACEOF 11735/* end confdefs.h. */ 11736#include <stdarg.h> 11737#include <stdio.h> 11738#include <sys/types.h> 11739#include <sys/stat.h> 11740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11741struct buf { int x; }; 11742FILE * (*rcsopen) (struct buf *, struct stat *, int); 11743static char *e (p, i) 11744 char **p; 11745 int i; 11746{ 11747 return p[i]; 11748} 11749static char *f (char * (*g) (char **, int), char **p, ...) 11750{ 11751 char *s; 11752 va_list v; 11753 va_start (v,p); 11754 s = g (p, va_arg (v,int)); 11755 va_end (v); 11756 return s; 11757} 11758 11759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11760 function prototypes and stuff, but not '\xHH' hex character constants. 11761 These don't provoke an error unfortunately, instead are silently treated 11762 as 'x'. The following induces an error, until -std is added to get 11763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11764 array size at least. It's necessary to write '\x00'==0 to get something 11765 that's true only with -std. */ 11766int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11767 11768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11769 inside strings and character constants. */ 11770#define FOO(x) 'x' 11771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11772 11773int test (int i, double x); 11774struct s1 {int (*f) (int a);}; 11775struct s2 {int (*f) (double a);}; 11776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11777int argc; 11778char **argv; 11779int 11780main () 11781{ 11782return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11783 ; 11784 return 0; 11785} 11786_ACEOF 11787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11789do 11790 CC="$ac_save_CC $ac_arg" 11791 rm -f conftest.$ac_objext 11792if { (ac_try="$ac_compile" 11793case "(($ac_try" in 11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11795 *) ac_try_echo=$ac_try;; 11796esac 11797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11798$as_echo "$ac_try_echo") >&5 11799 (eval "$ac_compile") 2>conftest.er1 11800 ac_status=$? 11801 grep -v '^ *+' conftest.er1 >conftest.err 11802 rm -f conftest.er1 11803 cat conftest.err >&5 11804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11805 (exit $ac_status); } && { 11806 test -z "$ac_c_werror_flag" || 11807 test ! -s conftest.err 11808 } && test -s conftest.$ac_objext; then 11809 ac_cv_prog_cc_c89=$ac_arg 11810else 11811 $as_echo "$as_me: failed program was:" >&5 11812sed 's/^/| /' conftest.$ac_ext >&5 11813 11814 11815fi 11816 11817rm -f core conftest.err conftest.$ac_objext 11818 test "x$ac_cv_prog_cc_c89" != "xno" && break 11819done 11820rm -f conftest.$ac_ext 11821CC=$ac_save_CC 11822 11823fi 11824# AC_CACHE_VAL 11825case "x$ac_cv_prog_cc_c89" in 11826 x) 11827 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11828$as_echo "none needed" >&6; } ;; 11829 xno) 11830 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11831$as_echo "unsupported" >&6; } ;; 11832 *) 11833 CC="$CC $ac_cv_prog_cc_c89" 11834 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11835$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11836esac 11837 11838 11839ac_ext=c 11840ac_cpp='$CPP $CPPFLAGS' 11841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11843ac_compiler_gnu=$ac_cv_c_compiler_gnu 11844 11845depcc="$CC" am_compiler_list= 11846 11847{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11848$as_echo_n "checking dependency style of $depcc... " >&6; } 11849if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11850 $as_echo_n "(cached) " >&6 11851else 11852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11853 # We make a subdir and do the tests there. Otherwise we can end up 11854 # making bogus files that we don't know about and never remove. For 11855 # instance it was reported that on HP-UX the gcc test will end up 11856 # making a dummy file named `D' -- because `-MD' means `put the output 11857 # in D'. 11858 mkdir conftest.dir 11859 # Copy depcomp to subdir because otherwise we won't find it if we're 11860 # using a relative directory. 11861 cp "$am_depcomp" conftest.dir 11862 cd conftest.dir 11863 # We will build objects and dependencies in a subdirectory because 11864 # it helps to detect inapplicable dependency modes. For instance 11865 # both Tru64's cc and ICC support -MD to output dependencies as a 11866 # side effect of compilation, but ICC will put the dependencies in 11867 # the current directory while Tru64 will put them in the object 11868 # directory. 11869 mkdir sub 11870 11871 am_cv_CC_dependencies_compiler_type=none 11872 if test "$am_compiler_list" = ""; then 11873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11874 fi 11875 am__universal=false 11876 case " $depcc " in #( 11877 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11878 esac 11879 11880 for depmode in $am_compiler_list; do 11881 # Setup a source with many dependencies, because some compilers 11882 # like to wrap large dependency lists on column 80 (with \), and 11883 # we should not choose a depcomp mode which is confused by this. 11884 # 11885 # We need to recreate these files for each test, as the compiler may 11886 # overwrite some of them when testing with obscure command lines. 11887 # This happens at least with the AIX C compiler. 11888 : > sub/conftest.c 11889 for i in 1 2 3 4 5 6; do 11890 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11892 # Solaris 8's {/usr,}/bin/sh. 11893 touch sub/conftst$i.h 11894 done 11895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11896 11897 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11898 # mode. It turns out that the SunPro C++ compiler does not properly 11899 # handle `-M -o', and we need to detect this. Also, some Intel 11900 # versions had trouble with output in subdirs 11901 am__obj=sub/conftest.${OBJEXT-o} 11902 am__minus_obj="-o $am__obj" 11903 case $depmode in 11904 gcc) 11905 # This depmode causes a compiler race in universal mode. 11906 test "$am__universal" = false || continue 11907 ;; 11908 nosideeffect) 11909 # after this tag, mechanisms are not by side-effect, so they'll 11910 # only be used when explicitly requested 11911 if test "x$enable_dependency_tracking" = xyes; then 11912 continue 11913 else 11914 break 11915 fi 11916 ;; 11917 msvisualcpp | msvcmsys) 11918 # This compiler won't grok `-c -o', but also, the minuso test has 11919 # not run yet. These depmodes are late enough in the game, and 11920 # so weak that their functioning should not be impacted. 11921 am__obj=conftest.${OBJEXT-o} 11922 am__minus_obj= 11923 ;; 11924 none) break ;; 11925 esac 11926 if depmode=$depmode \ 11927 source=sub/conftest.c object=$am__obj \ 11928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11930 >/dev/null 2>conftest.err && 11931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11935 # icc doesn't choke on unknown options, it will just issue warnings 11936 # or remarks (even with -Werror). So we grep stderr for any message 11937 # that says an option was ignored or not supported. 11938 # When given -MP, icc 7.0 and 7.1 complain thusly: 11939 # icc: Command line warning: ignoring option '-M'; no argument required 11940 # The diagnosis changed in icc 8.0: 11941 # icc: Command line remark: option '-MP' not supported 11942 if (grep 'ignoring option' conftest.err || 11943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11944 am_cv_CC_dependencies_compiler_type=$depmode 11945 break 11946 fi 11947 fi 11948 done 11949 11950 cd .. 11951 rm -rf conftest.dir 11952else 11953 am_cv_CC_dependencies_compiler_type=none 11954fi 11955 11956fi 11957{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11958$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11959CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11960 11961 if 11962 test "x$enable_dependency_tracking" != xno \ 11963 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11964 am__fastdepCC_TRUE= 11965 am__fastdepCC_FALSE='#' 11966else 11967 am__fastdepCC_TRUE='#' 11968 am__fastdepCC_FALSE= 11969fi 11970 11971 11972 11973 11974 11975 11976case $host_os in 11977 linux*) 11978 IS_LINUX="yes" 11979 # check whether struct kbd_repeat has the 'period' field. 11980 # on kernels < 2.5.42 it's called 'rate' instead. 11981 cat >conftest.$ac_ext <<_ACEOF 11982/* confdefs.h. */ 11983_ACEOF 11984cat confdefs.h >>conftest.$ac_ext 11985cat >>conftest.$ac_ext <<_ACEOF 11986/* end confdefs.h. */ 11987 11988#include <linux/kd.h> 11989#ifdef __sparc__ 11990#include <asm/param.h> 11991#include <asm/kbio.h> 11992#endif 11993 11994int 11995main () 11996{ 11997 11998int main () { 11999 struct kbd_repeat k; 12000 k.period = 0; 12001 return 0; 12002} 12003 ; 12004 return 0; 12005} 12006_ACEOF 12007rm -f conftest.$ac_objext 12008if { (ac_try="$ac_compile" 12009case "(($ac_try" in 12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12011 *) ac_try_echo=$ac_try;; 12012esac 12013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12014$as_echo "$ac_try_echo") >&5 12015 (eval "$ac_compile") 2>conftest.er1 12016 ac_status=$? 12017 grep -v '^ *+' conftest.er1 >conftest.err 12018 rm -f conftest.er1 12019 cat conftest.err >&5 12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12021 (exit $ac_status); } && { 12022 test -z "$ac_c_werror_flag" || 12023 test ! -s conftest.err 12024 } && test -s conftest.$ac_objext; then 12025 period_field="period" 12026else 12027 $as_echo "$as_me: failed program was:" >&5 12028sed 's/^/| /' conftest.$ac_ext >&5 12029 12030 period_field="rate" 12031fi 12032 12033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12034 12035cat >>confdefs.h <<_ACEOF 12036#define LNX_KBD_PERIOD_NAME $period_field 12037_ACEOF 12038 12039 ;; 12040 12041 freebsd* | kfreebsd-gnu* | netbsd* | openbsd*) 12042 IS_BSD="yes" 12043 ;; 12044 12045 solaris*) 12046 IS_SOLARIS="yes" 12047 ;; 12048 12049 gnu*) 12050 IS_HURD="yes" 12051 ;; 12052 12053 *) 12054 { { $as_echo "$as_me:$LINENO: error: Your operating system is not supported by the kbd driver. 12055 Contact xorg@lists.freedesktop.org if you are interested in 12056 porting it." >&5 12057$as_echo "$as_me: error: Your operating system is not supported by the kbd driver. 12058 Contact xorg@lists.freedesktop.org if you are interested in 12059 porting it." >&2;} 12060 { (exit 1); exit 1; }; } 12061 ;; 12062esac 12063 if test "x$IS_LINUX" = xyes; then 12064 LINUX_TRUE= 12065 LINUX_FALSE='#' 12066else 12067 LINUX_TRUE='#' 12068 LINUX_FALSE= 12069fi 12070 12071 if test "x$IS_BSD" = xyes; then 12072 BSD_TRUE= 12073 BSD_FALSE='#' 12074else 12075 BSD_TRUE='#' 12076 BSD_FALSE= 12077fi 12078 12079 if test "x$IS_SOLARIS" = xyes; then 12080 SOLARIS_TRUE= 12081 SOLARIS_FALSE='#' 12082else 12083 SOLARIS_TRUE='#' 12084 SOLARIS_FALSE= 12085fi 12086 12087 if test "x$IS_HURD" = xyes; then 12088 HURD_TRUE= 12089 HURD_FALSE='#' 12090else 12091 HURD_TRUE='#' 12092 HURD_FALSE= 12093fi 12094 12095 if test "x$IS_SCO" = xyes; then 12096 SCO_TRUE= 12097 SCO_FALSE='#' 12098else 12099 SCO_TRUE='#' 12100 SCO_FALSE= 12101fi 12102 12103 12104 12105# Check whether --with-xorg-module-dir was given. 12106if test "${with_xorg_module_dir+set}" = set; then 12107 withval=$with_xorg_module_dir; moduledir="$withval" 12108else 12109 moduledir="$libdir/xorg/modules" 12110fi 12111 12112 12113 12114# Checks for extensions 12115 12116 SAVE_CFLAGS="$CFLAGS" 12117 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12118 cat >conftest.$ac_ext <<_ACEOF 12119/* confdefs.h. */ 12120_ACEOF 12121cat confdefs.h >>conftest.$ac_ext 12122cat >>conftest.$ac_ext <<_ACEOF 12123/* end confdefs.h. */ 12124 12125#include "xorg-server.h" 12126#if !defined RANDR 12127#error RANDR not defined 12128#endif 12129 12130int 12131main () 12132{ 12133 12134 ; 12135 return 0; 12136} 12137_ACEOF 12138rm -f conftest.$ac_objext 12139if { (ac_try="$ac_compile" 12140case "(($ac_try" in 12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12142 *) ac_try_echo=$ac_try;; 12143esac 12144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12145$as_echo "$ac_try_echo") >&5 12146 (eval "$ac_compile") 2>conftest.er1 12147 ac_status=$? 12148 grep -v '^ *+' conftest.er1 >conftest.err 12149 rm -f conftest.er1 12150 cat conftest.err >&5 12151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12152 (exit $ac_status); } && { 12153 test -z "$ac_c_werror_flag" || 12154 test ! -s conftest.err 12155 } && test -s conftest.$ac_objext; then 12156 _EXT_CHECK=yes 12157else 12158 $as_echo "$as_me: failed program was:" >&5 12159sed 's/^/| /' conftest.$ac_ext >&5 12160 12161 _EXT_CHECK=no 12162fi 12163 12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12165 CFLAGS="$SAVE_CFLAGS" 12166 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12167$as_echo_n "checking if RANDR is defined... " >&6; } 12168 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12169$as_echo "$_EXT_CHECK" >&6; } 12170 if test "$_EXT_CHECK" != no; then 12171 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12172 fi 12173 12174 12175 SAVE_CFLAGS="$CFLAGS" 12176 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12177 cat >conftest.$ac_ext <<_ACEOF 12178/* confdefs.h. */ 12179_ACEOF 12180cat confdefs.h >>conftest.$ac_ext 12181cat >>conftest.$ac_ext <<_ACEOF 12182/* end confdefs.h. */ 12183 12184#include "xorg-server.h" 12185#if !defined XINPUT 12186#error XINPUT not defined 12187#endif 12188 12189int 12190main () 12191{ 12192 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197rm -f conftest.$ac_objext 12198if { (ac_try="$ac_compile" 12199case "(($ac_try" in 12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12201 *) ac_try_echo=$ac_try;; 12202esac 12203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12204$as_echo "$ac_try_echo") >&5 12205 (eval "$ac_compile") 2>conftest.er1 12206 ac_status=$? 12207 grep -v '^ *+' conftest.er1 >conftest.err 12208 rm -f conftest.er1 12209 cat conftest.err >&5 12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12211 (exit $ac_status); } && { 12212 test -z "$ac_c_werror_flag" || 12213 test ! -s conftest.err 12214 } && test -s conftest.$ac_objext; then 12215 _EXT_CHECK=yes 12216else 12217 $as_echo "$as_me: failed program was:" >&5 12218sed 's/^/| /' conftest.$ac_ext >&5 12219 12220 _EXT_CHECK=no 12221fi 12222 12223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12224 CFLAGS="$SAVE_CFLAGS" 12225 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 12226$as_echo_n "checking if XINPUT is defined... " >&6; } 12227 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12228$as_echo "$_EXT_CHECK" >&6; } 12229 if test "$_EXT_CHECK" != no; then 12230 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 12231 fi 12232 12233 12234 SAVE_CFLAGS="$CFLAGS" 12235 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12236 cat >conftest.$ac_ext <<_ACEOF 12237/* confdefs.h. */ 12238_ACEOF 12239cat confdefs.h >>conftest.$ac_ext 12240cat >>conftest.$ac_ext <<_ACEOF 12241/* end confdefs.h. */ 12242 12243#include "xorg-server.h" 12244#if !defined XKB 12245#error XKB not defined 12246#endif 12247 12248int 12249main () 12250{ 12251 12252 ; 12253 return 0; 12254} 12255_ACEOF 12256rm -f conftest.$ac_objext 12257if { (ac_try="$ac_compile" 12258case "(($ac_try" in 12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12260 *) ac_try_echo=$ac_try;; 12261esac 12262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12263$as_echo "$ac_try_echo") >&5 12264 (eval "$ac_compile") 2>conftest.er1 12265 ac_status=$? 12266 grep -v '^ *+' conftest.er1 >conftest.err 12267 rm -f conftest.er1 12268 cat conftest.err >&5 12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12270 (exit $ac_status); } && { 12271 test -z "$ac_c_werror_flag" || 12272 test ! -s conftest.err 12273 } && test -s conftest.$ac_objext; then 12274 _EXT_CHECK=yes 12275else 12276 $as_echo "$as_me: failed program was:" >&5 12277sed 's/^/| /' conftest.$ac_ext >&5 12278 12279 _EXT_CHECK=no 12280fi 12281 12282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12283 CFLAGS="$SAVE_CFLAGS" 12284 { $as_echo "$as_me:$LINENO: checking if XKB is defined" >&5 12285$as_echo_n "checking if XKB is defined... " >&6; } 12286 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12287$as_echo "$_EXT_CHECK" >&6; } 12288 if test "$_EXT_CHECK" != no; then 12289 REQUIRED_MODULES="$REQUIRED_MODULES kbproto" 12290 fi 12291 12292 12293# Checks for pkg-config packages 12294 12295 12296if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12297 if test -n "$ac_tool_prefix"; then 12298 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12299set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12301$as_echo_n "checking for $ac_word... " >&6; } 12302if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12303 $as_echo_n "(cached) " >&6 12304else 12305 case $PKG_CONFIG in 12306 [\\/]* | ?:[\\/]*) 12307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12308 ;; 12309 *) 12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12311for as_dir in $PATH 12312do 12313 IFS=$as_save_IFS 12314 test -z "$as_dir" && as_dir=. 12315 for ac_exec_ext in '' $ac_executable_extensions; do 12316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12319 break 2 12320 fi 12321done 12322done 12323IFS=$as_save_IFS 12324 12325 ;; 12326esac 12327fi 12328PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12329if test -n "$PKG_CONFIG"; then 12330 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12331$as_echo "$PKG_CONFIG" >&6; } 12332else 12333 { $as_echo "$as_me:$LINENO: result: no" >&5 12334$as_echo "no" >&6; } 12335fi 12336 12337 12338fi 12339if test -z "$ac_cv_path_PKG_CONFIG"; then 12340 ac_pt_PKG_CONFIG=$PKG_CONFIG 12341 # Extract the first word of "pkg-config", so it can be a program name with args. 12342set dummy pkg-config; ac_word=$2 12343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12344$as_echo_n "checking for $ac_word... " >&6; } 12345if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12346 $as_echo_n "(cached) " >&6 12347else 12348 case $ac_pt_PKG_CONFIG in 12349 [\\/]* | ?:[\\/]*) 12350 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12351 ;; 12352 *) 12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12354for as_dir in $PATH 12355do 12356 IFS=$as_save_IFS 12357 test -z "$as_dir" && as_dir=. 12358 for ac_exec_ext in '' $ac_executable_extensions; do 12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12360 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12362 break 2 12363 fi 12364done 12365done 12366IFS=$as_save_IFS 12367 12368 ;; 12369esac 12370fi 12371ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12372if test -n "$ac_pt_PKG_CONFIG"; then 12373 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12374$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12375else 12376 { $as_echo "$as_me:$LINENO: result: no" >&5 12377$as_echo "no" >&6; } 12378fi 12379 12380 if test "x$ac_pt_PKG_CONFIG" = x; then 12381 PKG_CONFIG="" 12382 else 12383 case $cross_compiling:$ac_tool_warned in 12384yes:) 12385{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12387ac_tool_warned=yes ;; 12388esac 12389 PKG_CONFIG=$ac_pt_PKG_CONFIG 12390 fi 12391else 12392 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12393fi 12394 12395fi 12396if test -n "$PKG_CONFIG"; then 12397 _pkg_min_version=0.9.0 12398 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12399$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12400 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12401 { $as_echo "$as_me:$LINENO: result: yes" >&5 12402$as_echo "yes" >&6; } 12403 else 12404 { $as_echo "$as_me:$LINENO: result: no" >&5 12405$as_echo "no" >&6; } 12406 PKG_CONFIG="" 12407 fi 12408 12409fi 12410 12411pkg_failed=no 12412{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12413$as_echo_n "checking for XORG... " >&6; } 12414 12415if test -n "$XORG_CFLAGS"; then 12416 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12417 elif test -n "$PKG_CONFIG"; then 12418 if test -n "$PKG_CONFIG" && \ 12419 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5 12420 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5 12421 ac_status=$? 12422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12423 (exit $ac_status); }; then 12424 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null` 12425else 12426 pkg_failed=yes 12427fi 12428 else 12429 pkg_failed=untried 12430fi 12431if test -n "$XORG_LIBS"; then 12432 pkg_cv_XORG_LIBS="$XORG_LIBS" 12433 elif test -n "$PKG_CONFIG"; then 12434 if test -n "$PKG_CONFIG" && \ 12435 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5 12436 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5 12437 ac_status=$? 12438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12439 (exit $ac_status); }; then 12440 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null` 12441else 12442 pkg_failed=yes 12443fi 12444 else 12445 pkg_failed=untried 12446fi 12447 12448 12449 12450if test $pkg_failed = yes; then 12451 12452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12453 _pkg_short_errors_supported=yes 12454else 12455 _pkg_short_errors_supported=no 12456fi 12457 if test $_pkg_short_errors_supported = yes; then 12458 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1` 12459 else 12460 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1` 12461 fi 12462 # Put the nasty error message in config.log where it belongs 12463 echo "$XORG_PKG_ERRORS" >&5 12464 12465 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met: 12466 12467$XORG_PKG_ERRORS 12468 12469Consider adjusting the PKG_CONFIG_PATH environment variable if you 12470installed software in a non-standard prefix. 12471 12472Alternatively, you may set the environment variables XORG_CFLAGS 12473and XORG_LIBS to avoid the need to call pkg-config. 12474See the pkg-config man page for more details. 12475" >&5 12476$as_echo "$as_me: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met: 12477 12478$XORG_PKG_ERRORS 12479 12480Consider adjusting the PKG_CONFIG_PATH environment variable if you 12481installed software in a non-standard prefix. 12482 12483Alternatively, you may set the environment variables XORG_CFLAGS 12484and XORG_LIBS to avoid the need to call pkg-config. 12485See the pkg-config man page for more details. 12486" >&2;} 12487 { (exit 1); exit 1; }; } 12488elif test $pkg_failed = untried; then 12489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12491{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12492is in your PATH or set the PKG_CONFIG environment variable to the full 12493path to pkg-config. 12494 12495Alternatively, you may set the environment variables XORG_CFLAGS 12496and XORG_LIBS to avoid the need to call pkg-config. 12497See the pkg-config man page for more details. 12498 12499To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12500See \`config.log' for more details." >&5 12501$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12502is in your PATH or set the PKG_CONFIG environment variable to the full 12503path to pkg-config. 12504 12505Alternatively, you may set the environment variables XORG_CFLAGS 12506and XORG_LIBS to avoid the need to call pkg-config. 12507See the pkg-config man page for more details. 12508 12509To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12510See \`config.log' for more details." >&2;} 12511 { (exit 1); exit 1; }; }; } 12512else 12513 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12514 XORG_LIBS=$pkg_cv_XORG_LIBS 12515 { $as_echo "$as_me:$LINENO: result: yes" >&5 12516$as_echo "yes" >&6; } 12517 : 12518fi 12519sdkdir=$(pkg-config --variable=sdkdir xorg-server) 12520 12521 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 12522$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12523if test "${ac_cv_prog_cc_c99+set}" = set; then 12524 $as_echo_n "(cached) " >&6 12525else 12526 ac_cv_prog_cc_c99=no 12527ac_save_CC=$CC 12528cat >conftest.$ac_ext <<_ACEOF 12529/* confdefs.h. */ 12530_ACEOF 12531cat confdefs.h >>conftest.$ac_ext 12532cat >>conftest.$ac_ext <<_ACEOF 12533/* end confdefs.h. */ 12534#include <stdarg.h> 12535#include <stdbool.h> 12536#include <stdlib.h> 12537#include <wchar.h> 12538#include <stdio.h> 12539 12540// Check varargs macros. These examples are taken from C99 6.10.3.5. 12541#define debug(...) fprintf (stderr, __VA_ARGS__) 12542#define showlist(...) puts (#__VA_ARGS__) 12543#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12544static void 12545test_varargs_macros (void) 12546{ 12547 int x = 1234; 12548 int y = 5678; 12549 debug ("Flag"); 12550 debug ("X = %d\n", x); 12551 showlist (The first, second, and third items.); 12552 report (x>y, "x is %d but y is %d", x, y); 12553} 12554 12555// Check long long types. 12556#define BIG64 18446744073709551615ull 12557#define BIG32 4294967295ul 12558#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12559#if !BIG_OK 12560 your preprocessor is broken; 12561#endif 12562#if BIG_OK 12563#else 12564 your preprocessor is broken; 12565#endif 12566static long long int bignum = -9223372036854775807LL; 12567static unsigned long long int ubignum = BIG64; 12568 12569struct incomplete_array 12570{ 12571 int datasize; 12572 double data[]; 12573}; 12574 12575struct named_init { 12576 int number; 12577 const wchar_t *name; 12578 double average; 12579}; 12580 12581typedef const char *ccp; 12582 12583static inline int 12584test_restrict (ccp restrict text) 12585{ 12586 // See if C++-style comments work. 12587 // Iterate through items via the restricted pointer. 12588 // Also check for declarations in for loops. 12589 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12590 continue; 12591 return 0; 12592} 12593 12594// Check varargs and va_copy. 12595static void 12596test_varargs (const char *format, ...) 12597{ 12598 va_list args; 12599 va_start (args, format); 12600 va_list args_copy; 12601 va_copy (args_copy, args); 12602 12603 const char *str; 12604 int number; 12605 float fnumber; 12606 12607 while (*format) 12608 { 12609 switch (*format++) 12610 { 12611 case 's': // string 12612 str = va_arg (args_copy, const char *); 12613 break; 12614 case 'd': // int 12615 number = va_arg (args_copy, int); 12616 break; 12617 case 'f': // float 12618 fnumber = va_arg (args_copy, double); 12619 break; 12620 default: 12621 break; 12622 } 12623 } 12624 va_end (args_copy); 12625 va_end (args); 12626} 12627 12628int 12629main () 12630{ 12631 12632 // Check bool. 12633 _Bool success = false; 12634 12635 // Check restrict. 12636 if (test_restrict ("String literal") == 0) 12637 success = true; 12638 char *restrict newvar = "Another string"; 12639 12640 // Check varargs. 12641 test_varargs ("s, d' f .", "string", 65, 34.234); 12642 test_varargs_macros (); 12643 12644 // Check flexible array members. 12645 struct incomplete_array *ia = 12646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12647 ia->datasize = 10; 12648 for (int i = 0; i < ia->datasize; ++i) 12649 ia->data[i] = i * 1.234; 12650 12651 // Check named initializers. 12652 struct named_init ni = { 12653 .number = 34, 12654 .name = L"Test wide string", 12655 .average = 543.34343, 12656 }; 12657 12658 ni.number = 58; 12659 12660 int dynamic_array[ni.number]; 12661 dynamic_array[ni.number - 1] = 543; 12662 12663 // work around unused variable warnings 12664 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12665 || dynamic_array[ni.number - 1] != 543); 12666 12667 ; 12668 return 0; 12669} 12670_ACEOF 12671for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 12672do 12673 CC="$ac_save_CC $ac_arg" 12674 rm -f conftest.$ac_objext 12675if { (ac_try="$ac_compile" 12676case "(($ac_try" in 12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12678 *) ac_try_echo=$ac_try;; 12679esac 12680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12681$as_echo "$ac_try_echo") >&5 12682 (eval "$ac_compile") 2>conftest.er1 12683 ac_status=$? 12684 grep -v '^ *+' conftest.er1 >conftest.err 12685 rm -f conftest.er1 12686 cat conftest.err >&5 12687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12688 (exit $ac_status); } && { 12689 test -z "$ac_c_werror_flag" || 12690 test ! -s conftest.err 12691 } && test -s conftest.$ac_objext; then 12692 ac_cv_prog_cc_c99=$ac_arg 12693else 12694 $as_echo "$as_me: failed program was:" >&5 12695sed 's/^/| /' conftest.$ac_ext >&5 12696 12697 12698fi 12699 12700rm -f core conftest.err conftest.$ac_objext 12701 test "x$ac_cv_prog_cc_c99" != "xno" && break 12702done 12703rm -f conftest.$ac_ext 12704CC=$ac_save_CC 12705 12706fi 12707# AC_CACHE_VAL 12708case "x$ac_cv_prog_cc_c99" in 12709 x) 12710 { $as_echo "$as_me:$LINENO: result: none needed" >&5 12711$as_echo "none needed" >&6; } ;; 12712 xno) 12713 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 12714$as_echo "unsupported" >&6; } ;; 12715 *) 12716 CC="$CC $ac_cv_prog_cc_c99" 12717 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 12718$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12719esac 12720 12721 12722 12723 12724 12725 12726if test "x$GCC" = xyes ; then 12727 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 12728-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 12729-Wbad-function-cast" 12730 case `$CC -dumpversion` in 12731 3.4.* | 4.*) 12732 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 12733 ;; 12734 esac 12735else 12736 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 12737$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 12738if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 12739 $as_echo_n "(cached) " >&6 12740else 12741 cat >conftest.$ac_ext <<_ACEOF 12742/* confdefs.h. */ 12743_ACEOF 12744cat confdefs.h >>conftest.$ac_ext 12745cat >>conftest.$ac_ext <<_ACEOF 12746/* end confdefs.h. */ 12747$ac_includes_default 12748int 12749main () 12750{ 12751#ifndef __SUNPRO_C 12752 (void) __SUNPRO_C; 12753#endif 12754 12755 ; 12756 return 0; 12757} 12758_ACEOF 12759rm -f conftest.$ac_objext 12760if { (ac_try="$ac_compile" 12761case "(($ac_try" in 12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12763 *) ac_try_echo=$ac_try;; 12764esac 12765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12766$as_echo "$ac_try_echo") >&5 12767 (eval "$ac_compile") 2>conftest.er1 12768 ac_status=$? 12769 grep -v '^ *+' conftest.er1 >conftest.err 12770 rm -f conftest.er1 12771 cat conftest.err >&5 12772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12773 (exit $ac_status); } && { 12774 test -z "$ac_c_werror_flag" || 12775 test ! -s conftest.err 12776 } && test -s conftest.$ac_objext; then 12777 ac_cv_have_decl___SUNPRO_C=yes 12778else 12779 $as_echo "$as_me: failed program was:" >&5 12780sed 's/^/| /' conftest.$ac_ext >&5 12781 12782 ac_cv_have_decl___SUNPRO_C=no 12783fi 12784 12785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12786fi 12787{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 12788$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 12789if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 12790 SUNCC="yes" 12791else 12792 SUNCC="no" 12793fi 12794 12795 if test "x$SUNCC" = "xyes"; then 12796 CWARNFLAGS="-v" 12797 fi 12798fi 12799 12800# Check whether --enable-silent-rules was given. 12801if test "${enable_silent_rules+set}" = set; then 12802 enableval=$enable_silent_rules; 12803fi 12804 12805case $enable_silent_rules in 12806yes) AM_DEFAULT_VERBOSITY=0;; 12807no) AM_DEFAULT_VERBOSITY=1;; 12808*) AM_DEFAULT_VERBOSITY=0;; 12809esac 12810AM_BACKSLASH='\' 12811 12812 12813 12814 12815 12816 12817 12818# Check whether --enable-strict-compilation was given. 12819if test "${enable_strict_compilation+set}" = set; then 12820 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 12821else 12822 STRICT_COMPILE=no 12823fi 12824 12825if test "x$STRICT_COMPILE" = "xyes"; then 12826 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 12827$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 12828if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 12829 $as_echo_n "(cached) " >&6 12830else 12831 cat >conftest.$ac_ext <<_ACEOF 12832/* confdefs.h. */ 12833_ACEOF 12834cat confdefs.h >>conftest.$ac_ext 12835cat >>conftest.$ac_ext <<_ACEOF 12836/* end confdefs.h. */ 12837$ac_includes_default 12838int 12839main () 12840{ 12841#ifndef __SUNPRO_C 12842 (void) __SUNPRO_C; 12843#endif 12844 12845 ; 12846 return 0; 12847} 12848_ACEOF 12849rm -f conftest.$ac_objext 12850if { (ac_try="$ac_compile" 12851case "(($ac_try" in 12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12853 *) ac_try_echo=$ac_try;; 12854esac 12855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12856$as_echo "$ac_try_echo") >&5 12857 (eval "$ac_compile") 2>conftest.er1 12858 ac_status=$? 12859 grep -v '^ *+' conftest.er1 >conftest.err 12860 rm -f conftest.er1 12861 cat conftest.err >&5 12862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12863 (exit $ac_status); } && { 12864 test -z "$ac_c_werror_flag" || 12865 test ! -s conftest.err 12866 } && test -s conftest.$ac_objext; then 12867 ac_cv_have_decl___SUNPRO_C=yes 12868else 12869 $as_echo "$as_me: failed program was:" >&5 12870sed 's/^/| /' conftest.$ac_ext >&5 12871 12872 ac_cv_have_decl___SUNPRO_C=no 12873fi 12874 12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12876fi 12877{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 12878$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 12879if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 12880 SUNCC="yes" 12881else 12882 SUNCC="no" 12883fi 12884 12885 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 12886$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 12887if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 12888 $as_echo_n "(cached) " >&6 12889else 12890 cat >conftest.$ac_ext <<_ACEOF 12891/* confdefs.h. */ 12892_ACEOF 12893cat confdefs.h >>conftest.$ac_ext 12894cat >>conftest.$ac_ext <<_ACEOF 12895/* end confdefs.h. */ 12896$ac_includes_default 12897int 12898main () 12899{ 12900#ifndef __INTEL_COMPILER 12901 (void) __INTEL_COMPILER; 12902#endif 12903 12904 ; 12905 return 0; 12906} 12907_ACEOF 12908rm -f conftest.$ac_objext 12909if { (ac_try="$ac_compile" 12910case "(($ac_try" in 12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12912 *) ac_try_echo=$ac_try;; 12913esac 12914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12915$as_echo "$ac_try_echo") >&5 12916 (eval "$ac_compile") 2>conftest.er1 12917 ac_status=$? 12918 grep -v '^ *+' conftest.er1 >conftest.err 12919 rm -f conftest.er1 12920 cat conftest.err >&5 12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 (exit $ac_status); } && { 12923 test -z "$ac_c_werror_flag" || 12924 test ! -s conftest.err 12925 } && test -s conftest.$ac_objext; then 12926 ac_cv_have_decl___INTEL_COMPILER=yes 12927else 12928 $as_echo "$as_me: failed program was:" >&5 12929sed 's/^/| /' conftest.$ac_ext >&5 12930 12931 ac_cv_have_decl___INTEL_COMPILER=no 12932fi 12933 12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12935fi 12936{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 12937$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 12938if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 12939 INTELCC="yes" 12940else 12941 INTELCC="no" 12942fi 12943 12944 if test "x$GCC" = xyes ; then 12945 STRICT_CFLAGS="-pedantic -Werror" 12946 elif test "x$SUNCC" = "xyes"; then 12947 STRICT_CFLAGS="-errwarn" 12948 elif test "x$INTELCC" = "xyes"; then 12949 STRICT_CFLAGS="-Werror" 12950 fi 12951fi 12952CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12953 12954 12955 12956 12957# Check whether --with-release-version was given. 12958if test "${with_release_version+set}" = set; then 12959 withval=$with_release_version; RELEASE_VERSION="$withval" 12960else 12961 RELEASE_VERSION="" 12962fi 12963 12964 if test "x$RELEASE_VERSION" != "x"; then 12965 PACKAGE="$PACKAGE-$RELEASE_VERSION" 12966 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 12967 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 12968$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 12969 fi 12970 12971cat >>confdefs.h <<_ACEOF 12972#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12973_ACEOF 12974 12975 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12976 if test "x$PVM" = "x"; then 12977 PVM="0" 12978 fi 12979 12980cat >>confdefs.h <<_ACEOF 12981#define PACKAGE_VERSION_MINOR $PVM 12982_ACEOF 12983 12984 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12985 if test "x$PVP" = "x"; then 12986 PVP="0" 12987 fi 12988 12989cat >>confdefs.h <<_ACEOF 12990#define PACKAGE_VERSION_PATCHLEVEL $PVP 12991_ACEOF 12992 12993 12994 12995CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 12996mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 12997echo 'git directory not found: installing possibly empty changelog.' >&2)" 12998 12999distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 13000 13001 13002 13003 13004 13005if test x$APP_MAN_SUFFIX = x ; then 13006 APP_MAN_SUFFIX=1 13007fi 13008if test x$APP_MAN_DIR = x ; then 13009 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 13010fi 13011 13012if test x$LIB_MAN_SUFFIX = x ; then 13013 LIB_MAN_SUFFIX=3 13014fi 13015if test x$LIB_MAN_DIR = x ; then 13016 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 13017fi 13018 13019if test x$FILE_MAN_SUFFIX = x ; then 13020 case $host_os in 13021 solaris*) FILE_MAN_SUFFIX=4 ;; 13022 *) FILE_MAN_SUFFIX=5 ;; 13023 esac 13024fi 13025if test x$FILE_MAN_DIR = x ; then 13026 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 13027fi 13028 13029if test x$MISC_MAN_SUFFIX = x ; then 13030 case $host_os in 13031 solaris*) MISC_MAN_SUFFIX=5 ;; 13032 *) MISC_MAN_SUFFIX=7 ;; 13033 esac 13034fi 13035if test x$MISC_MAN_DIR = x ; then 13036 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 13037fi 13038 13039if test x$DRIVER_MAN_SUFFIX = x ; then 13040 case $host_os in 13041 solaris*) DRIVER_MAN_SUFFIX=7 ;; 13042 *) DRIVER_MAN_SUFFIX=4 ;; 13043 esac 13044fi 13045if test x$DRIVER_MAN_DIR = x ; then 13046 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 13047fi 13048 13049if test x$ADMIN_MAN_SUFFIX = x ; then 13050 case $host_os in 13051 solaris*) ADMIN_MAN_SUFFIX=1m ;; 13052 *) ADMIN_MAN_SUFFIX=8 ;; 13053 esac 13054fi 13055if test x$ADMIN_MAN_DIR = x ; then 13056 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 13057fi 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS" 13075 13076 13077# Checks for libraries. 13078 13079# Checks for header files. 13080{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13081$as_echo_n "checking for ANSI C header files... " >&6; } 13082if test "${ac_cv_header_stdc+set}" = set; then 13083 $as_echo_n "(cached) " >&6 13084else 13085 cat >conftest.$ac_ext <<_ACEOF 13086/* confdefs.h. */ 13087_ACEOF 13088cat confdefs.h >>conftest.$ac_ext 13089cat >>conftest.$ac_ext <<_ACEOF 13090/* end confdefs.h. */ 13091#include <stdlib.h> 13092#include <stdarg.h> 13093#include <string.h> 13094#include <float.h> 13095 13096int 13097main () 13098{ 13099 13100 ; 13101 return 0; 13102} 13103_ACEOF 13104rm -f conftest.$ac_objext 13105if { (ac_try="$ac_compile" 13106case "(($ac_try" in 13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13108 *) ac_try_echo=$ac_try;; 13109esac 13110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13111$as_echo "$ac_try_echo") >&5 13112 (eval "$ac_compile") 2>conftest.er1 13113 ac_status=$? 13114 grep -v '^ *+' conftest.er1 >conftest.err 13115 rm -f conftest.er1 13116 cat conftest.err >&5 13117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13118 (exit $ac_status); } && { 13119 test -z "$ac_c_werror_flag" || 13120 test ! -s conftest.err 13121 } && test -s conftest.$ac_objext; then 13122 ac_cv_header_stdc=yes 13123else 13124 $as_echo "$as_me: failed program was:" >&5 13125sed 's/^/| /' conftest.$ac_ext >&5 13126 13127 ac_cv_header_stdc=no 13128fi 13129 13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13131 13132if test $ac_cv_header_stdc = yes; then 13133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13134 cat >conftest.$ac_ext <<_ACEOF 13135/* confdefs.h. */ 13136_ACEOF 13137cat confdefs.h >>conftest.$ac_ext 13138cat >>conftest.$ac_ext <<_ACEOF 13139/* end confdefs.h. */ 13140#include <string.h> 13141 13142_ACEOF 13143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13144 $EGREP "memchr" >/dev/null 2>&1; then 13145 : 13146else 13147 ac_cv_header_stdc=no 13148fi 13149rm -f conftest* 13150 13151fi 13152 13153if test $ac_cv_header_stdc = yes; then 13154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13155 cat >conftest.$ac_ext <<_ACEOF 13156/* confdefs.h. */ 13157_ACEOF 13158cat confdefs.h >>conftest.$ac_ext 13159cat >>conftest.$ac_ext <<_ACEOF 13160/* end confdefs.h. */ 13161#include <stdlib.h> 13162 13163_ACEOF 13164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13165 $EGREP "free" >/dev/null 2>&1; then 13166 : 13167else 13168 ac_cv_header_stdc=no 13169fi 13170rm -f conftest* 13171 13172fi 13173 13174if test $ac_cv_header_stdc = yes; then 13175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13176 if test "$cross_compiling" = yes; then 13177 : 13178else 13179 cat >conftest.$ac_ext <<_ACEOF 13180/* confdefs.h. */ 13181_ACEOF 13182cat confdefs.h >>conftest.$ac_ext 13183cat >>conftest.$ac_ext <<_ACEOF 13184/* end confdefs.h. */ 13185#include <ctype.h> 13186#include <stdlib.h> 13187#if ((' ' & 0x0FF) == 0x020) 13188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13190#else 13191# define ISLOWER(c) \ 13192 (('a' <= (c) && (c) <= 'i') \ 13193 || ('j' <= (c) && (c) <= 'r') \ 13194 || ('s' <= (c) && (c) <= 'z')) 13195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13196#endif 13197 13198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13199int 13200main () 13201{ 13202 int i; 13203 for (i = 0; i < 256; i++) 13204 if (XOR (islower (i), ISLOWER (i)) 13205 || toupper (i) != TOUPPER (i)) 13206 return 2; 13207 return 0; 13208} 13209_ACEOF 13210rm -f conftest$ac_exeext 13211if { (ac_try="$ac_link" 13212case "(($ac_try" in 13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13214 *) ac_try_echo=$ac_try;; 13215esac 13216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13217$as_echo "$ac_try_echo") >&5 13218 (eval "$ac_link") 2>&5 13219 ac_status=$? 13220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13222 { (case "(($ac_try" in 13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13224 *) ac_try_echo=$ac_try;; 13225esac 13226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13227$as_echo "$ac_try_echo") >&5 13228 (eval "$ac_try") 2>&5 13229 ac_status=$? 13230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13231 (exit $ac_status); }; }; then 13232 : 13233else 13234 $as_echo "$as_me: program exited with status $ac_status" >&5 13235$as_echo "$as_me: failed program was:" >&5 13236sed 's/^/| /' conftest.$ac_ext >&5 13237 13238( exit $ac_status ) 13239ac_cv_header_stdc=no 13240fi 13241rm -rf conftest.dSYM 13242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13243fi 13244 13245 13246fi 13247fi 13248{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13249$as_echo "$ac_cv_header_stdc" >&6; } 13250if test $ac_cv_header_stdc = yes; then 13251 13252cat >>confdefs.h <<\_ACEOF 13253#define STDC_HEADERS 1 13254_ACEOF 13255 13256fi 13257 13258 13259ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 13260 13261cat >confcache <<\_ACEOF 13262# This file is a shell script that caches the results of configure 13263# tests run on this system so they can be shared between configure 13264# scripts and configure runs, see configure's option --config-cache. 13265# It is not useful on other systems. If it contains results you don't 13266# want to keep, you may remove or edit it. 13267# 13268# config.status only pays attention to the cache file if you give it 13269# the --recheck option to rerun configure. 13270# 13271# `ac_cv_env_foo' variables (set or unset) will be overridden when 13272# loading this file, other *unset* `ac_cv_foo' will be assigned the 13273# following values. 13274 13275_ACEOF 13276 13277# The following way of writing the cache mishandles newlines in values, 13278# but we know of no workaround that is simple, portable, and efficient. 13279# So, we kill variables containing newlines. 13280# Ultrix sh set writes to stderr and can't be redirected directly, 13281# and sets the high bit in the cache file unless we assign to the vars. 13282( 13283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13284 eval ac_val=\$$ac_var 13285 case $ac_val in #( 13286 *${as_nl}*) 13287 case $ac_var in #( 13288 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13289$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13290 esac 13291 case $ac_var in #( 13292 _ | IFS | as_nl) ;; #( 13293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13294 *) $as_unset $ac_var ;; 13295 esac ;; 13296 esac 13297 done 13298 13299 (set) 2>&1 | 13300 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13301 *${as_nl}ac_space=\ *) 13302 # `set' does not quote correctly, so add quotes (double-quote 13303 # substitution turns \\\\ into \\, and sed turns \\ into \). 13304 sed -n \ 13305 "s/'/'\\\\''/g; 13306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13307 ;; #( 13308 *) 13309 # `set' quotes correctly as required by POSIX, so do not add quotes. 13310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13311 ;; 13312 esac | 13313 sort 13314) | 13315 sed ' 13316 /^ac_cv_env_/b end 13317 t clear 13318 :clear 13319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13320 t end 13321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13322 :end' >>confcache 13323if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13324 if test -w "$cache_file"; then 13325 test "x$cache_file" != "x/dev/null" && 13326 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13327$as_echo "$as_me: updating cache $cache_file" >&6;} 13328 cat confcache >$cache_file 13329 else 13330 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13331$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13332 fi 13333fi 13334rm -f confcache 13335 13336test "x$prefix" = xNONE && prefix=$ac_default_prefix 13337# Let make expand exec_prefix. 13338test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13339 13340DEFS=-DHAVE_CONFIG_H 13341 13342ac_libobjs= 13343ac_ltlibobjs= 13344for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13345 # 1. Remove the extension, and $U if already installed. 13346 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13347 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13348 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13349 # will be set to the directory where LIBOBJS objects are built. 13350 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13351 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13352done 13353LIBOBJS=$ac_libobjs 13354 13355LTLIBOBJS=$ac_ltlibobjs 13356 13357 13358 if test -n "$EXEEXT"; then 13359 am__EXEEXT_TRUE= 13360 am__EXEEXT_FALSE='#' 13361else 13362 am__EXEEXT_TRUE='#' 13363 am__EXEEXT_FALSE= 13364fi 13365 13366if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13367 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13368Usually this means the macro was only invoked conditionally." >&5 13369$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13370Usually this means the macro was only invoked conditionally." >&2;} 13371 { (exit 1); exit 1; }; } 13372fi 13373if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13374 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13375Usually this means the macro was only invoked conditionally." >&5 13376$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13377Usually this means the macro was only invoked conditionally." >&2;} 13378 { (exit 1); exit 1; }; } 13379fi 13380if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13381 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13382Usually this means the macro was only invoked conditionally." >&5 13383$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13384Usually this means the macro was only invoked conditionally." >&2;} 13385 { (exit 1); exit 1; }; } 13386fi 13387if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13388 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13389Usually this means the macro was only invoked conditionally." >&5 13390$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13391Usually this means the macro was only invoked conditionally." >&2;} 13392 { (exit 1); exit 1; }; } 13393fi 13394if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 13395 { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined. 13396Usually this means the macro was only invoked conditionally." >&5 13397$as_echo "$as_me: error: conditional \"LINUX\" was never defined. 13398Usually this means the macro was only invoked conditionally." >&2;} 13399 { (exit 1); exit 1; }; } 13400fi 13401if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then 13402 { { $as_echo "$as_me:$LINENO: error: conditional \"BSD\" was never defined. 13403Usually this means the macro was only invoked conditionally." >&5 13404$as_echo "$as_me: error: conditional \"BSD\" was never defined. 13405Usually this means the macro was only invoked conditionally." >&2;} 13406 { (exit 1); exit 1; }; } 13407fi 13408if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 13409 { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined. 13410Usually this means the macro was only invoked conditionally." >&5 13411$as_echo "$as_me: error: conditional \"SOLARIS\" was never defined. 13412Usually this means the macro was only invoked conditionally." >&2;} 13413 { (exit 1); exit 1; }; } 13414fi 13415if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then 13416 { { $as_echo "$as_me:$LINENO: error: conditional \"HURD\" was never defined. 13417Usually this means the macro was only invoked conditionally." >&5 13418$as_echo "$as_me: error: conditional \"HURD\" was never defined. 13419Usually this means the macro was only invoked conditionally." >&2;} 13420 { (exit 1); exit 1; }; } 13421fi 13422if test -z "${SCO_TRUE}" && test -z "${SCO_FALSE}"; then 13423 { { $as_echo "$as_me:$LINENO: error: conditional \"SCO\" was never defined. 13424Usually this means the macro was only invoked conditionally." >&5 13425$as_echo "$as_me: error: conditional \"SCO\" was never defined. 13426Usually this means the macro was only invoked conditionally." >&2;} 13427 { (exit 1); exit 1; }; } 13428fi 13429 13430: ${CONFIG_STATUS=./config.status} 13431ac_write_fail=0 13432ac_clean_files_save=$ac_clean_files 13433ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13434{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13435$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13436cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13437#! $SHELL 13438# Generated by $as_me. 13439# Run this file to recreate the current configuration. 13440# Compiler output produced by configure, useful for debugging 13441# configure, is in config.log if it exists. 13442 13443debug=false 13444ac_cs_recheck=false 13445ac_cs_silent=false 13446SHELL=\${CONFIG_SHELL-$SHELL} 13447_ACEOF 13448 13449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13450## --------------------- ## 13451## M4sh Initialization. ## 13452## --------------------- ## 13453 13454# Be more Bourne compatible 13455DUALCASE=1; export DUALCASE # for MKS sh 13456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13457 emulate sh 13458 NULLCMD=: 13459 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13460 # is contrary to our usage. Disable this feature. 13461 alias -g '${1+"$@"}'='"$@"' 13462 setopt NO_GLOB_SUBST 13463else 13464 case `(set -o) 2>/dev/null` in 13465 *posix*) set -o posix ;; 13466esac 13467 13468fi 13469 13470 13471 13472 13473# PATH needs CR 13474# Avoid depending upon Character Ranges. 13475as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13477as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13478as_cr_digits='0123456789' 13479as_cr_alnum=$as_cr_Letters$as_cr_digits 13480 13481as_nl=' 13482' 13483export as_nl 13484# Printing a long string crashes Solaris 7 /usr/bin/printf. 13485as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13486as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13487as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13488if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13489 as_echo='printf %s\n' 13490 as_echo_n='printf %s' 13491else 13492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13493 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13494 as_echo_n='/usr/ucb/echo -n' 13495 else 13496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13497 as_echo_n_body='eval 13498 arg=$1; 13499 case $arg in 13500 *"$as_nl"*) 13501 expr "X$arg" : "X\\(.*\\)$as_nl"; 13502 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13503 esac; 13504 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13505 ' 13506 export as_echo_n_body 13507 as_echo_n='sh -c $as_echo_n_body as_echo' 13508 fi 13509 export as_echo_body 13510 as_echo='sh -c $as_echo_body as_echo' 13511fi 13512 13513# The user is always right. 13514if test "${PATH_SEPARATOR+set}" != set; then 13515 PATH_SEPARATOR=: 13516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13518 PATH_SEPARATOR=';' 13519 } 13520fi 13521 13522# Support unset when possible. 13523if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13524 as_unset=unset 13525else 13526 as_unset=false 13527fi 13528 13529 13530# IFS 13531# We need space, tab and new line, in precisely that order. Quoting is 13532# there to prevent editors from complaining about space-tab. 13533# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13534# splitting by setting IFS to empty value.) 13535IFS=" "" $as_nl" 13536 13537# Find who we are. Look in the path if we contain no directory separator. 13538case $0 in 13539 *[\\/]* ) as_myself=$0 ;; 13540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13541for as_dir in $PATH 13542do 13543 IFS=$as_save_IFS 13544 test -z "$as_dir" && as_dir=. 13545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13546done 13547IFS=$as_save_IFS 13548 13549 ;; 13550esac 13551# We did not find ourselves, most probably we were run as `sh COMMAND' 13552# in which case we are not to be found in the path. 13553if test "x$as_myself" = x; then 13554 as_myself=$0 13555fi 13556if test ! -f "$as_myself"; then 13557 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13558 { (exit 1); exit 1; } 13559fi 13560 13561# Work around bugs in pre-3.0 UWIN ksh. 13562for as_var in ENV MAIL MAILPATH 13563do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13564done 13565PS1='$ ' 13566PS2='> ' 13567PS4='+ ' 13568 13569# NLS nuisances. 13570LC_ALL=C 13571export LC_ALL 13572LANGUAGE=C 13573export LANGUAGE 13574 13575# Required to use basename. 13576if expr a : '\(a\)' >/dev/null 2>&1 && 13577 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13578 as_expr=expr 13579else 13580 as_expr=false 13581fi 13582 13583if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13584 as_basename=basename 13585else 13586 as_basename=false 13587fi 13588 13589 13590# Name of the executable. 13591as_me=`$as_basename -- "$0" || 13592$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13593 X"$0" : 'X\(//\)$' \| \ 13594 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13595$as_echo X/"$0" | 13596 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13597 s//\1/ 13598 q 13599 } 13600 /^X\/\(\/\/\)$/{ 13601 s//\1/ 13602 q 13603 } 13604 /^X\/\(\/\).*/{ 13605 s//\1/ 13606 q 13607 } 13608 s/.*/./; q'` 13609 13610# CDPATH. 13611$as_unset CDPATH 13612 13613 13614 13615 as_lineno_1=$LINENO 13616 as_lineno_2=$LINENO 13617 test "x$as_lineno_1" != "x$as_lineno_2" && 13618 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13619 13620 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13621 # uniformly replaced by the line number. The first 'sed' inserts a 13622 # line-number line after each line using $LINENO; the second 'sed' 13623 # does the real work. The second script uses 'N' to pair each 13624 # line-number line with the line containing $LINENO, and appends 13625 # trailing '-' during substitution so that $LINENO is not a special 13626 # case at line end. 13627 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13628 # scripts with optimization help from Paolo Bonzini. Blame Lee 13629 # E. McMahon (1931-1989) for sed's syntax. :-) 13630 sed -n ' 13631 p 13632 /[$]LINENO/= 13633 ' <$as_myself | 13634 sed ' 13635 s/[$]LINENO.*/&-/ 13636 t lineno 13637 b 13638 :lineno 13639 N 13640 :loop 13641 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13642 t loop 13643 s/-\n.*// 13644 ' >$as_me.lineno && 13645 chmod +x "$as_me.lineno" || 13646 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13647 { (exit 1); exit 1; }; } 13648 13649 # Don't try to exec as it changes $[0], causing all sort of problems 13650 # (the dirname of $[0] is not the place where we might find the 13651 # original and so on. Autoconf is especially sensitive to this). 13652 . "./$as_me.lineno" 13653 # Exit status is that of the last command. 13654 exit 13655} 13656 13657 13658if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13659 as_dirname=dirname 13660else 13661 as_dirname=false 13662fi 13663 13664ECHO_C= ECHO_N= ECHO_T= 13665case `echo -n x` in 13666-n*) 13667 case `echo 'x\c'` in 13668 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13669 *) ECHO_C='\c';; 13670 esac;; 13671*) 13672 ECHO_N='-n';; 13673esac 13674if expr a : '\(a\)' >/dev/null 2>&1 && 13675 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13676 as_expr=expr 13677else 13678 as_expr=false 13679fi 13680 13681rm -f conf$$ conf$$.exe conf$$.file 13682if test -d conf$$.dir; then 13683 rm -f conf$$.dir/conf$$.file 13684else 13685 rm -f conf$$.dir 13686 mkdir conf$$.dir 2>/dev/null 13687fi 13688if (echo >conf$$.file) 2>/dev/null; then 13689 if ln -s conf$$.file conf$$ 2>/dev/null; then 13690 as_ln_s='ln -s' 13691 # ... but there are two gotchas: 13692 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13693 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13694 # In both cases, we have to default to `cp -p'. 13695 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13696 as_ln_s='cp -p' 13697 elif ln conf$$.file conf$$ 2>/dev/null; then 13698 as_ln_s=ln 13699 else 13700 as_ln_s='cp -p' 13701 fi 13702else 13703 as_ln_s='cp -p' 13704fi 13705rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13706rmdir conf$$.dir 2>/dev/null 13707 13708if mkdir -p . 2>/dev/null; then 13709 as_mkdir_p=: 13710else 13711 test -d ./-p && rmdir ./-p 13712 as_mkdir_p=false 13713fi 13714 13715if test -x / >/dev/null 2>&1; then 13716 as_test_x='test -x' 13717else 13718 if ls -dL / >/dev/null 2>&1; then 13719 as_ls_L_option=L 13720 else 13721 as_ls_L_option= 13722 fi 13723 as_test_x=' 13724 eval sh -c '\'' 13725 if test -d "$1"; then 13726 test -d "$1/."; 13727 else 13728 case $1 in 13729 -*)set "./$1";; 13730 esac; 13731 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13732 ???[sx]*):;;*)false;;esac;fi 13733 '\'' sh 13734 ' 13735fi 13736as_executable_p=$as_test_x 13737 13738# Sed expression to map a string onto a valid CPP name. 13739as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13740 13741# Sed expression to map a string onto a valid variable name. 13742as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13743 13744 13745exec 6>&1 13746 13747# Save the log message, to keep $[0] and so on meaningful, and to 13748# report actual input values of CONFIG_FILES etc. instead of their 13749# values after options handling. 13750ac_log=" 13751This file was extended by xf86-input-keyboard $as_me 1.4.0, which was 13752generated by GNU Autoconf 2.63. Invocation command line was 13753 13754 CONFIG_FILES = $CONFIG_FILES 13755 CONFIG_HEADERS = $CONFIG_HEADERS 13756 CONFIG_LINKS = $CONFIG_LINKS 13757 CONFIG_COMMANDS = $CONFIG_COMMANDS 13758 $ $0 $@ 13759 13760on `(hostname || uname -n) 2>/dev/null | sed 1q` 13761" 13762 13763_ACEOF 13764 13765case $ac_config_files in *" 13766"*) set x $ac_config_files; shift; ac_config_files=$*;; 13767esac 13768 13769case $ac_config_headers in *" 13770"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13771esac 13772 13773 13774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13775# Files that config.status was made for. 13776config_files="$ac_config_files" 13777config_headers="$ac_config_headers" 13778config_commands="$ac_config_commands" 13779 13780_ACEOF 13781 13782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13783ac_cs_usage="\ 13784\`$as_me' instantiates files from templates according to the 13785current configuration. 13786 13787Usage: $0 [OPTION]... [FILE]... 13788 13789 -h, --help print this help, then exit 13790 -V, --version print version number and configuration settings, then exit 13791 -q, --quiet, --silent 13792 do not print progress messages 13793 -d, --debug don't remove temporary files 13794 --recheck update $as_me by reconfiguring in the same conditions 13795 --file=FILE[:TEMPLATE] 13796 instantiate the configuration file FILE 13797 --header=FILE[:TEMPLATE] 13798 instantiate the configuration header FILE 13799 13800Configuration files: 13801$config_files 13802 13803Configuration headers: 13804$config_headers 13805 13806Configuration commands: 13807$config_commands 13808 13809Report bugs to <bug-autoconf@gnu.org>." 13810 13811_ACEOF 13812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13813ac_cs_version="\\ 13814xf86-input-keyboard config.status 1.4.0 13815configured by $0, generated by GNU Autoconf 2.63, 13816 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13817 13818Copyright (C) 2008 Free Software Foundation, Inc. 13819This config.status script is free software; the Free Software Foundation 13820gives unlimited permission to copy, distribute and modify it." 13821 13822ac_pwd='$ac_pwd' 13823srcdir='$srcdir' 13824INSTALL='$INSTALL' 13825MKDIR_P='$MKDIR_P' 13826AWK='$AWK' 13827test -n "\$AWK" || AWK=awk 13828_ACEOF 13829 13830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13831# The default lists apply if the user does not specify any file. 13832ac_need_defaults=: 13833while test $# != 0 13834do 13835 case $1 in 13836 --*=*) 13837 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13839 ac_shift=: 13840 ;; 13841 *) 13842 ac_option=$1 13843 ac_optarg=$2 13844 ac_shift=shift 13845 ;; 13846 esac 13847 13848 case $ac_option in 13849 # Handling of the options. 13850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13851 ac_cs_recheck=: ;; 13852 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13853 $as_echo "$ac_cs_version"; exit ;; 13854 --debug | --debu | --deb | --de | --d | -d ) 13855 debug=: ;; 13856 --file | --fil | --fi | --f ) 13857 $ac_shift 13858 case $ac_optarg in 13859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13860 esac 13861 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13862 ac_need_defaults=false;; 13863 --header | --heade | --head | --hea ) 13864 $ac_shift 13865 case $ac_optarg in 13866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13867 esac 13868 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13869 ac_need_defaults=false;; 13870 --he | --h) 13871 # Conflict between --help and --header 13872 { $as_echo "$as_me: error: ambiguous option: $1 13873Try \`$0 --help' for more information." >&2 13874 { (exit 1); exit 1; }; };; 13875 --help | --hel | -h ) 13876 $as_echo "$ac_cs_usage"; exit ;; 13877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13878 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13879 ac_cs_silent=: ;; 13880 13881 # This is an error. 13882 -*) { $as_echo "$as_me: error: unrecognized option: $1 13883Try \`$0 --help' for more information." >&2 13884 { (exit 1); exit 1; }; } ;; 13885 13886 *) ac_config_targets="$ac_config_targets $1" 13887 ac_need_defaults=false ;; 13888 13889 esac 13890 shift 13891done 13892 13893ac_configure_extra_args= 13894 13895if $ac_cs_silent; then 13896 exec 6>/dev/null 13897 ac_configure_extra_args="$ac_configure_extra_args --silent" 13898fi 13899 13900_ACEOF 13901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13902if \$ac_cs_recheck; then 13903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13904 shift 13905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13906 CONFIG_SHELL='$SHELL' 13907 export CONFIG_SHELL 13908 exec "\$@" 13909fi 13910 13911_ACEOF 13912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13913exec 5>>config.log 13914{ 13915 echo 13916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13917## Running $as_me. ## 13918_ASBOX 13919 $as_echo "$ac_log" 13920} >&5 13921 13922_ACEOF 13923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13924# 13925# INIT-COMMANDS 13926# 13927AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13928 13929 13930# The HP-UX ksh and POSIX shell print the target directory to stdout 13931# if CDPATH is set. 13932(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13933 13934sed_quote_subst='$sed_quote_subst' 13935double_quote_subst='$double_quote_subst' 13936delay_variable_subst='$delay_variable_subst' 13937enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13938macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13939macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13940enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13941pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13942enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13943host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13944host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13945host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13946build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13947build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13948build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13949SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13950Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13951GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13952EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13953FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13954LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13955NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13956LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13957max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13958ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13959exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13960lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13961lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13962lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13963reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13964reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13965OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13966deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13967file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13968AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13969AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13970STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13971RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13972old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13973old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13974old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13975CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13976CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13977compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13978GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13979lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13980lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13981lt_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"`' 13982lt_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"`' 13983objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13984SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13985ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13986MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13987lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13988lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13989lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13990lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13991lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13992need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13993DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13994NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13995LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13996OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13997OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13998libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13999shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14000extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14001archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14002enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14003export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14004whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14005compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14006old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14007old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14008archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14009archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14010module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14011module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14012with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14013allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14014no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14015hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14016hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14017hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14018hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14019hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14020hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14021hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14022hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14023inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14024link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14025fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14026always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14027export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14028exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14029include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14030prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14031file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14032variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14033need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14034need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14035version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14036runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14037shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14038shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14039libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14040library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14041soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14042postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14043postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14044finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14045finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14046hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14047sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14048sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14049hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14050enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14051enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14052enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14053old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14054striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14055 14056LTCC='$LTCC' 14057LTCFLAGS='$LTCFLAGS' 14058compiler='$compiler_DEFAULT' 14059 14060# Quote evaled strings. 14061for var in SED \ 14062GREP \ 14063EGREP \ 14064FGREP \ 14065LD \ 14066NM \ 14067LN_S \ 14068lt_SP2NL \ 14069lt_NL2SP \ 14070reload_flag \ 14071OBJDUMP \ 14072deplibs_check_method \ 14073file_magic_cmd \ 14074AR \ 14075AR_FLAGS \ 14076STRIP \ 14077RANLIB \ 14078CC \ 14079CFLAGS \ 14080compiler \ 14081lt_cv_sys_global_symbol_pipe \ 14082lt_cv_sys_global_symbol_to_cdecl \ 14083lt_cv_sys_global_symbol_to_c_name_address \ 14084lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14085SHELL \ 14086ECHO \ 14087lt_prog_compiler_no_builtin_flag \ 14088lt_prog_compiler_wl \ 14089lt_prog_compiler_pic \ 14090lt_prog_compiler_static \ 14091lt_cv_prog_compiler_c_o \ 14092need_locks \ 14093DSYMUTIL \ 14094NMEDIT \ 14095LIPO \ 14096OTOOL \ 14097OTOOL64 \ 14098shrext_cmds \ 14099export_dynamic_flag_spec \ 14100whole_archive_flag_spec \ 14101compiler_needs_object \ 14102with_gnu_ld \ 14103allow_undefined_flag \ 14104no_undefined_flag \ 14105hardcode_libdir_flag_spec \ 14106hardcode_libdir_flag_spec_ld \ 14107hardcode_libdir_separator \ 14108fix_srcfile_path \ 14109exclude_expsyms \ 14110include_expsyms \ 14111file_list_spec \ 14112variables_saved_for_relink \ 14113libname_spec \ 14114library_names_spec \ 14115soname_spec \ 14116finish_eval \ 14117old_striplib \ 14118striplib; do 14119 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14120 *[\\\\\\\`\\"\\\$]*) 14121 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14122 ;; 14123 *) 14124 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14125 ;; 14126 esac 14127done 14128 14129# Double-quote double-evaled strings. 14130for var in reload_cmds \ 14131old_postinstall_cmds \ 14132old_postuninstall_cmds \ 14133old_archive_cmds \ 14134extract_expsyms_cmds \ 14135old_archive_from_new_cmds \ 14136old_archive_from_expsyms_cmds \ 14137archive_cmds \ 14138archive_expsym_cmds \ 14139module_cmds \ 14140module_expsym_cmds \ 14141export_symbols_cmds \ 14142prelink_cmds \ 14143postinstall_cmds \ 14144postuninstall_cmds \ 14145finish_cmds \ 14146sys_lib_search_path_spec \ 14147sys_lib_dlsearch_path_spec; do 14148 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14149 *[\\\\\\\`\\"\\\$]*) 14150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14151 ;; 14152 *) 14153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14154 ;; 14155 esac 14156done 14157 14158# Fix-up fallback echo if it was mangled by the above quoting rules. 14159case \$lt_ECHO in 14160*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14161 ;; 14162esac 14163 14164ac_aux_dir='$ac_aux_dir' 14165xsi_shell='$xsi_shell' 14166lt_shell_append='$lt_shell_append' 14167 14168# See if we are running on zsh, and set the options which allow our 14169# commands through without removal of \ escapes INIT. 14170if test -n "\${ZSH_VERSION+set}" ; then 14171 setopt NO_GLOB_SUBST 14172fi 14173 14174 14175 PACKAGE='$PACKAGE' 14176 VERSION='$VERSION' 14177 TIMESTAMP='$TIMESTAMP' 14178 RM='$RM' 14179 ofile='$ofile' 14180 14181 14182 14183 14184_ACEOF 14185 14186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14187 14188# Handling of arguments. 14189for ac_config_target in $ac_config_targets 14190do 14191 case $ac_config_target in 14192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14194 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14196 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14197 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14198 14199 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14200$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14201 { (exit 1); exit 1; }; };; 14202 esac 14203done 14204 14205 14206# If the user did not use the arguments to specify the items to instantiate, 14207# then the envvar interface is used. Set only those that are not. 14208# We use the long form for the default assignment because of an extremely 14209# bizarre bug on SunOS 4.1.3. 14210if $ac_need_defaults; then 14211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14214fi 14215 14216# Have a temporary directory for convenience. Make it in the build tree 14217# simply because there is no reason against having it here, and in addition, 14218# creating and moving files from /tmp can sometimes cause problems. 14219# Hook for its removal unless debugging. 14220# Note that there is a small window in which the directory will not be cleaned: 14221# after its creation but before its name has been assigned to `$tmp'. 14222$debug || 14223{ 14224 tmp= 14225 trap 'exit_status=$? 14226 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14227' 0 14228 trap '{ (exit 1); exit 1; }' 1 2 13 15 14229} 14230# Create a (secure) tmp directory for tmp files. 14231 14232{ 14233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14234 test -n "$tmp" && test -d "$tmp" 14235} || 14236{ 14237 tmp=./conf$$-$RANDOM 14238 (umask 077 && mkdir "$tmp") 14239} || 14240{ 14241 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14242 { (exit 1); exit 1; } 14243} 14244 14245# Set up the scripts for CONFIG_FILES section. 14246# No need to generate them if there are no CONFIG_FILES. 14247# This happens for instance with `./config.status config.h'. 14248if test -n "$CONFIG_FILES"; then 14249 14250 14251ac_cr=' 14252' 14253ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14254if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14255 ac_cs_awk_cr='\\r' 14256else 14257 ac_cs_awk_cr=$ac_cr 14258fi 14259 14260echo 'BEGIN {' >"$tmp/subs1.awk" && 14261_ACEOF 14262 14263 14264{ 14265 echo "cat >conf$$subs.awk <<_ACEOF" && 14266 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14267 echo "_ACEOF" 14268} >conf$$subs.sh || 14269 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14270$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14271 { (exit 1); exit 1; }; } 14272ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14273ac_delim='%!_!# ' 14274for ac_last_try in false false false false false :; do 14275 . ./conf$$subs.sh || 14276 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14277$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14278 { (exit 1); exit 1; }; } 14279 14280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14281 if test $ac_delim_n = $ac_delim_num; then 14282 break 14283 elif $ac_last_try; then 14284 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14285$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14286 { (exit 1); exit 1; }; } 14287 else 14288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14289 fi 14290done 14291rm -f conf$$subs.sh 14292 14293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14294cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14295_ACEOF 14296sed -n ' 14297h 14298s/^/S["/; s/!.*/"]=/ 14299p 14300g 14301s/^[^!]*!// 14302:repl 14303t repl 14304s/'"$ac_delim"'$// 14305t delim 14306:nl 14307h 14308s/\(.\{148\}\).*/\1/ 14309t more1 14310s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14311p 14312n 14313b repl 14314:more1 14315s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14316p 14317g 14318s/.\{148\}// 14319t nl 14320:delim 14321h 14322s/\(.\{148\}\).*/\1/ 14323t more2 14324s/["\\]/\\&/g; s/^/"/; s/$/"/ 14325p 14326b 14327:more2 14328s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14329p 14330g 14331s/.\{148\}// 14332t delim 14333' <conf$$subs.awk | sed ' 14334/^[^""]/{ 14335 N 14336 s/\n// 14337} 14338' >>$CONFIG_STATUS || ac_write_fail=1 14339rm -f conf$$subs.awk 14340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14341_ACAWK 14342cat >>"\$tmp/subs1.awk" <<_ACAWK && 14343 for (key in S) S_is_set[key] = 1 14344 FS = "" 14345 14346} 14347{ 14348 line = $ 0 14349 nfields = split(line, field, "@") 14350 substed = 0 14351 len = length(field[1]) 14352 for (i = 2; i < nfields; i++) { 14353 key = field[i] 14354 keylen = length(key) 14355 if (S_is_set[key]) { 14356 value = S[key] 14357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14358 len += length(value) + length(field[++i]) 14359 substed = 1 14360 } else 14361 len += 1 + keylen 14362 } 14363 14364 print line 14365} 14366 14367_ACAWK 14368_ACEOF 14369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14370if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14372else 14373 cat 14374fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14375 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14376$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14377 { (exit 1); exit 1; }; } 14378_ACEOF 14379 14380# VPATH may cause trouble with some makes, so we remove $(srcdir), 14381# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14382# trailing colons and then remove the whole line if VPATH becomes empty 14383# (actually we leave an empty line to preserve line numbers). 14384if test "x$srcdir" = x.; then 14385 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14386s/:*\$(srcdir):*/:/ 14387s/:*\${srcdir}:*/:/ 14388s/:*@srcdir@:*/:/ 14389s/^\([^=]*=[ ]*\):*/\1/ 14390s/:*$// 14391s/^[^=]*=[ ]*$// 14392}' 14393fi 14394 14395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14396fi # test -n "$CONFIG_FILES" 14397 14398# Set up the scripts for CONFIG_HEADERS section. 14399# No need to generate them if there are no CONFIG_HEADERS. 14400# This happens for instance with `./config.status Makefile'. 14401if test -n "$CONFIG_HEADERS"; then 14402cat >"$tmp/defines.awk" <<\_ACAWK || 14403BEGIN { 14404_ACEOF 14405 14406# Transform confdefs.h into an awk script `defines.awk', embedded as 14407# here-document in config.status, that substitutes the proper values into 14408# config.h.in to produce config.h. 14409 14410# Create a delimiter string that does not exist in confdefs.h, to ease 14411# handling of long lines. 14412ac_delim='%!_!# ' 14413for ac_last_try in false false :; do 14414 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14415 if test -z "$ac_t"; then 14416 break 14417 elif $ac_last_try; then 14418 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14419$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14420 { (exit 1); exit 1; }; } 14421 else 14422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14423 fi 14424done 14425 14426# For the awk script, D is an array of macro values keyed by name, 14427# likewise P contains macro parameters if any. Preserve backslash 14428# newline sequences. 14429 14430ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14431sed -n ' 14432s/.\{148\}/&'"$ac_delim"'/g 14433t rset 14434:rset 14435s/^[ ]*#[ ]*define[ ][ ]*/ / 14436t def 14437d 14438:def 14439s/\\$// 14440t bsnl 14441s/["\\]/\\&/g 14442s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14443D["\1"]=" \3"/p 14444s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14445d 14446:bsnl 14447s/["\\]/\\&/g 14448s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14449D["\1"]=" \3\\\\\\n"\\/p 14450t cont 14451s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14452t cont 14453d 14454:cont 14455n 14456s/.\{148\}/&'"$ac_delim"'/g 14457t clear 14458:clear 14459s/\\$// 14460t bsnlc 14461s/["\\]/\\&/g; s/^/"/; s/$/"/p 14462d 14463:bsnlc 14464s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14465b cont 14466' <confdefs.h | sed ' 14467s/'"$ac_delim"'/"\\\ 14468"/g' >>$CONFIG_STATUS || ac_write_fail=1 14469 14470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14471 for (key in D) D_is_set[key] = 1 14472 FS = "" 14473} 14474/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14475 line = \$ 0 14476 split(line, arg, " ") 14477 if (arg[1] == "#") { 14478 defundef = arg[2] 14479 mac1 = arg[3] 14480 } else { 14481 defundef = substr(arg[1], 2) 14482 mac1 = arg[2] 14483 } 14484 split(mac1, mac2, "(") #) 14485 macro = mac2[1] 14486 prefix = substr(line, 1, index(line, defundef) - 1) 14487 if (D_is_set[macro]) { 14488 # Preserve the white space surrounding the "#". 14489 print prefix "define", macro P[macro] D[macro] 14490 next 14491 } else { 14492 # Replace #undef with comments. This is necessary, for example, 14493 # in the case of _POSIX_SOURCE, which is predefined and required 14494 # on some systems where configure will not decide to define it. 14495 if (defundef == "undef") { 14496 print "/*", prefix defundef, macro, "*/" 14497 next 14498 } 14499 } 14500} 14501{ print } 14502_ACAWK 14503_ACEOF 14504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14505 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14506$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14507 { (exit 1); exit 1; }; } 14508fi # test -n "$CONFIG_HEADERS" 14509 14510 14511eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14512shift 14513for ac_tag 14514do 14515 case $ac_tag in 14516 :[FHLC]) ac_mode=$ac_tag; continue;; 14517 esac 14518 case $ac_mode$ac_tag in 14519 :[FHL]*:*);; 14520 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14521$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14522 { (exit 1); exit 1; }; };; 14523 :[FH]-) ac_tag=-:-;; 14524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14525 esac 14526 ac_save_IFS=$IFS 14527 IFS=: 14528 set x $ac_tag 14529 IFS=$ac_save_IFS 14530 shift 14531 ac_file=$1 14532 shift 14533 14534 case $ac_mode in 14535 :L) ac_source=$1;; 14536 :[FH]) 14537 ac_file_inputs= 14538 for ac_f 14539 do 14540 case $ac_f in 14541 -) ac_f="$tmp/stdin";; 14542 *) # Look for the file first in the build tree, then in the source tree 14543 # (if the path is not absolute). The absolute path cannot be DOS-style, 14544 # because $ac_f cannot contain `:'. 14545 test -f "$ac_f" || 14546 case $ac_f in 14547 [\\/$]*) false;; 14548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14549 esac || 14550 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14551$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14552 { (exit 1); exit 1; }; };; 14553 esac 14554 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14555 ac_file_inputs="$ac_file_inputs '$ac_f'" 14556 done 14557 14558 # Let's still pretend it is `configure' which instantiates (i.e., don't 14559 # use $as_me), people would be surprised to read: 14560 # /* config.h. Generated by config.status. */ 14561 configure_input='Generated from '` 14562 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14563 `' by configure.' 14564 if test x"$ac_file" != x-; then 14565 configure_input="$ac_file. $configure_input" 14566 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14567$as_echo "$as_me: creating $ac_file" >&6;} 14568 fi 14569 # Neutralize special characters interpreted by sed in replacement strings. 14570 case $configure_input in #( 14571 *\&* | *\|* | *\\* ) 14572 ac_sed_conf_input=`$as_echo "$configure_input" | 14573 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14574 *) ac_sed_conf_input=$configure_input;; 14575 esac 14576 14577 case $ac_tag in 14578 *:-:* | *:-) cat >"$tmp/stdin" \ 14579 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14580$as_echo "$as_me: error: could not create $ac_file" >&2;} 14581 { (exit 1); exit 1; }; } ;; 14582 esac 14583 ;; 14584 esac 14585 14586 ac_dir=`$as_dirname -- "$ac_file" || 14587$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14588 X"$ac_file" : 'X\(//\)[^/]' \| \ 14589 X"$ac_file" : 'X\(//\)$' \| \ 14590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14591$as_echo X"$ac_file" | 14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14593 s//\1/ 14594 q 14595 } 14596 /^X\(\/\/\)[^/].*/{ 14597 s//\1/ 14598 q 14599 } 14600 /^X\(\/\/\)$/{ 14601 s//\1/ 14602 q 14603 } 14604 /^X\(\/\).*/{ 14605 s//\1/ 14606 q 14607 } 14608 s/.*/./; q'` 14609 { as_dir="$ac_dir" 14610 case $as_dir in #( 14611 -*) as_dir=./$as_dir;; 14612 esac 14613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14614 as_dirs= 14615 while :; do 14616 case $as_dir in #( 14617 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14618 *) as_qdir=$as_dir;; 14619 esac 14620 as_dirs="'$as_qdir' $as_dirs" 14621 as_dir=`$as_dirname -- "$as_dir" || 14622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14623 X"$as_dir" : 'X\(//\)[^/]' \| \ 14624 X"$as_dir" : 'X\(//\)$' \| \ 14625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14626$as_echo X"$as_dir" | 14627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14628 s//\1/ 14629 q 14630 } 14631 /^X\(\/\/\)[^/].*/{ 14632 s//\1/ 14633 q 14634 } 14635 /^X\(\/\/\)$/{ 14636 s//\1/ 14637 q 14638 } 14639 /^X\(\/\).*/{ 14640 s//\1/ 14641 q 14642 } 14643 s/.*/./; q'` 14644 test -d "$as_dir" && break 14645 done 14646 test -z "$as_dirs" || eval "mkdir $as_dirs" 14647 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14648$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14649 { (exit 1); exit 1; }; }; } 14650 ac_builddir=. 14651 14652case "$ac_dir" in 14653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14654*) 14655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14656 # A ".." for each directory in $ac_dir_suffix. 14657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14658 case $ac_top_builddir_sub in 14659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14661 esac ;; 14662esac 14663ac_abs_top_builddir=$ac_pwd 14664ac_abs_builddir=$ac_pwd$ac_dir_suffix 14665# for backward compatibility: 14666ac_top_builddir=$ac_top_build_prefix 14667 14668case $srcdir in 14669 .) # We are building in place. 14670 ac_srcdir=. 14671 ac_top_srcdir=$ac_top_builddir_sub 14672 ac_abs_top_srcdir=$ac_pwd ;; 14673 [\\/]* | ?:[\\/]* ) # Absolute name. 14674 ac_srcdir=$srcdir$ac_dir_suffix; 14675 ac_top_srcdir=$srcdir 14676 ac_abs_top_srcdir=$srcdir ;; 14677 *) # Relative name. 14678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14679 ac_top_srcdir=$ac_top_build_prefix$srcdir 14680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14681esac 14682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14683 14684 14685 case $ac_mode in 14686 :F) 14687 # 14688 # CONFIG_FILE 14689 # 14690 14691 case $INSTALL in 14692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14694 esac 14695 ac_MKDIR_P=$MKDIR_P 14696 case $MKDIR_P in 14697 [\\/$]* | ?:[\\/]* ) ;; 14698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14699 esac 14700_ACEOF 14701 14702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14703# If the template does not know about datarootdir, expand it. 14704# FIXME: This hack should be removed a few years after 2.60. 14705ac_datarootdir_hack=; ac_datarootdir_seen= 14706 14707ac_sed_dataroot=' 14708/datarootdir/ { 14709 p 14710 q 14711} 14712/@datadir@/p 14713/@docdir@/p 14714/@infodir@/p 14715/@localedir@/p 14716/@mandir@/p 14717' 14718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14719*datarootdir*) ac_datarootdir_seen=yes;; 14720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14721 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14722$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14723_ACEOF 14724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14725 ac_datarootdir_hack=' 14726 s&@datadir@&$datadir&g 14727 s&@docdir@&$docdir&g 14728 s&@infodir@&$infodir&g 14729 s&@localedir@&$localedir&g 14730 s&@mandir@&$mandir&g 14731 s&\\\${datarootdir}&$datarootdir&g' ;; 14732esac 14733_ACEOF 14734 14735# Neutralize VPATH when `$srcdir' = `.'. 14736# Shell code in configure.ac might set extrasub. 14737# FIXME: do we really want to maintain this feature? 14738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14739ac_sed_extra="$ac_vpsub 14740$extrasub 14741_ACEOF 14742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14743:t 14744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14745s|@configure_input@|$ac_sed_conf_input|;t t 14746s&@top_builddir@&$ac_top_builddir_sub&;t t 14747s&@top_build_prefix@&$ac_top_build_prefix&;t t 14748s&@srcdir@&$ac_srcdir&;t t 14749s&@abs_srcdir@&$ac_abs_srcdir&;t t 14750s&@top_srcdir@&$ac_top_srcdir&;t t 14751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14752s&@builddir@&$ac_builddir&;t t 14753s&@abs_builddir@&$ac_abs_builddir&;t t 14754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14755s&@INSTALL@&$ac_INSTALL&;t t 14756s&@MKDIR_P@&$ac_MKDIR_P&;t t 14757$ac_datarootdir_hack 14758" 14759eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14760 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14761$as_echo "$as_me: error: could not create $ac_file" >&2;} 14762 { (exit 1); exit 1; }; } 14763 14764test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14767 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14768which seems to be undefined. Please make sure it is defined." >&5 14769$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14770which seems to be undefined. Please make sure it is defined." >&2;} 14771 14772 rm -f "$tmp/stdin" 14773 case $ac_file in 14774 -) cat "$tmp/out" && rm -f "$tmp/out";; 14775 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14776 esac \ 14777 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14778$as_echo "$as_me: error: could not create $ac_file" >&2;} 14779 { (exit 1); exit 1; }; } 14780 ;; 14781 :H) 14782 # 14783 # CONFIG_HEADER 14784 # 14785 if test x"$ac_file" != x-; then 14786 { 14787 $as_echo "/* $configure_input */" \ 14788 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14789 } >"$tmp/config.h" \ 14790 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14791$as_echo "$as_me: error: could not create $ac_file" >&2;} 14792 { (exit 1); exit 1; }; } 14793 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14794 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14795$as_echo "$as_me: $ac_file is unchanged" >&6;} 14796 else 14797 rm -f "$ac_file" 14798 mv "$tmp/config.h" "$ac_file" \ 14799 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14800$as_echo "$as_me: error: could not create $ac_file" >&2;} 14801 { (exit 1); exit 1; }; } 14802 fi 14803 else 14804 $as_echo "/* $configure_input */" \ 14805 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14806 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14807$as_echo "$as_me: error: could not create -" >&2;} 14808 { (exit 1); exit 1; }; } 14809 fi 14810# Compute "$ac_file"'s index in $config_headers. 14811_am_arg="$ac_file" 14812_am_stamp_count=1 14813for _am_header in $config_headers :; do 14814 case $_am_header in 14815 $_am_arg | $_am_arg:* ) 14816 break ;; 14817 * ) 14818 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14819 esac 14820done 14821echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14822$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14823 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14824 X"$_am_arg" : 'X\(//\)$' \| \ 14825 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14826$as_echo X"$_am_arg" | 14827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14828 s//\1/ 14829 q 14830 } 14831 /^X\(\/\/\)[^/].*/{ 14832 s//\1/ 14833 q 14834 } 14835 /^X\(\/\/\)$/{ 14836 s//\1/ 14837 q 14838 } 14839 /^X\(\/\).*/{ 14840 s//\1/ 14841 q 14842 } 14843 s/.*/./; q'`/stamp-h$_am_stamp_count 14844 ;; 14845 14846 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14847$as_echo "$as_me: executing $ac_file commands" >&6;} 14848 ;; 14849 esac 14850 14851 14852 case $ac_file$ac_mode in 14853 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14854 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14855 # are listed without --file. Let's play safe and only enable the eval 14856 # if we detect the quoting. 14857 case $CONFIG_FILES in 14858 *\'*) eval set x "$CONFIG_FILES" ;; 14859 *) set x $CONFIG_FILES ;; 14860 esac 14861 shift 14862 for mf 14863 do 14864 # Strip MF so we end up with the name of the file. 14865 mf=`echo "$mf" | sed -e 's/:.*$//'` 14866 # Check whether this is an Automake generated Makefile or not. 14867 # We used to match only the files named `Makefile.in', but 14868 # some people rename them; so instead we look at the file content. 14869 # Grep'ing the first line is not enough: some people post-process 14870 # each Makefile.in and add a new line on top of each file to say so. 14871 # Grep'ing the whole file is not good either: AIX grep has a line 14872 # limit of 2048, but all sed's we know have understand at least 4000. 14873 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14874 dirpart=`$as_dirname -- "$mf" || 14875$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14876 X"$mf" : 'X\(//\)[^/]' \| \ 14877 X"$mf" : 'X\(//\)$' \| \ 14878 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14879$as_echo X"$mf" | 14880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14881 s//\1/ 14882 q 14883 } 14884 /^X\(\/\/\)[^/].*/{ 14885 s//\1/ 14886 q 14887 } 14888 /^X\(\/\/\)$/{ 14889 s//\1/ 14890 q 14891 } 14892 /^X\(\/\).*/{ 14893 s//\1/ 14894 q 14895 } 14896 s/.*/./; q'` 14897 else 14898 continue 14899 fi 14900 # Extract the definition of DEPDIR, am__include, and am__quote 14901 # from the Makefile without running `make'. 14902 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14903 test -z "$DEPDIR" && continue 14904 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14905 test -z "am__include" && continue 14906 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14907 # When using ansi2knr, U may be empty or an underscore; expand it 14908 U=`sed -n 's/^U = //p' < "$mf"` 14909 # Find all dependency output files, they are included files with 14910 # $(DEPDIR) in their names. We invoke sed twice because it is the 14911 # simplest approach to changing $(DEPDIR) to its actual value in the 14912 # expansion. 14913 for file in `sed -n " 14914 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14915 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14916 # Make sure the directory exists. 14917 test -f "$dirpart/$file" && continue 14918 fdir=`$as_dirname -- "$file" || 14919$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14920 X"$file" : 'X\(//\)[^/]' \| \ 14921 X"$file" : 'X\(//\)$' \| \ 14922 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14923$as_echo X"$file" | 14924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14925 s//\1/ 14926 q 14927 } 14928 /^X\(\/\/\)[^/].*/{ 14929 s//\1/ 14930 q 14931 } 14932 /^X\(\/\/\)$/{ 14933 s//\1/ 14934 q 14935 } 14936 /^X\(\/\).*/{ 14937 s//\1/ 14938 q 14939 } 14940 s/.*/./; q'` 14941 { as_dir=$dirpart/$fdir 14942 case $as_dir in #( 14943 -*) as_dir=./$as_dir;; 14944 esac 14945 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14946 as_dirs= 14947 while :; do 14948 case $as_dir in #( 14949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14950 *) as_qdir=$as_dir;; 14951 esac 14952 as_dirs="'$as_qdir' $as_dirs" 14953 as_dir=`$as_dirname -- "$as_dir" || 14954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14955 X"$as_dir" : 'X\(//\)[^/]' \| \ 14956 X"$as_dir" : 'X\(//\)$' \| \ 14957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14958$as_echo X"$as_dir" | 14959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14960 s//\1/ 14961 q 14962 } 14963 /^X\(\/\/\)[^/].*/{ 14964 s//\1/ 14965 q 14966 } 14967 /^X\(\/\/\)$/{ 14968 s//\1/ 14969 q 14970 } 14971 /^X\(\/\).*/{ 14972 s//\1/ 14973 q 14974 } 14975 s/.*/./; q'` 14976 test -d "$as_dir" && break 14977 done 14978 test -z "$as_dirs" || eval "mkdir $as_dirs" 14979 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14980$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14981 { (exit 1); exit 1; }; }; } 14982 # echo "creating $dirpart/$file" 14983 echo '# dummy' > "$dirpart/$file" 14984 done 14985 done 14986} 14987 ;; 14988 "libtool":C) 14989 14990 # See if we are running on zsh, and set the options which allow our 14991 # commands through without removal of \ escapes. 14992 if test -n "${ZSH_VERSION+set}" ; then 14993 setopt NO_GLOB_SUBST 14994 fi 14995 14996 cfgfile="${ofile}T" 14997 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14998 $RM "$cfgfile" 14999 15000 cat <<_LT_EOF >> "$cfgfile" 15001#! $SHELL 15002 15003# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15004# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15005# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15006# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15007# 15008# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15009# 2006, 2007, 2008 Free Software Foundation, Inc. 15010# Written by Gordon Matzigkeit, 1996 15011# 15012# This file is part of GNU Libtool. 15013# 15014# GNU Libtool is free software; you can redistribute it and/or 15015# modify it under the terms of the GNU General Public License as 15016# published by the Free Software Foundation; either version 2 of 15017# the License, or (at your option) any later version. 15018# 15019# As a special exception to the GNU General Public License, 15020# if you distribute this file as part of a program or library that 15021# is built using GNU Libtool, you may include this file under the 15022# same distribution terms that you use for the rest of that program. 15023# 15024# GNU Libtool is distributed in the hope that it will be useful, 15025# but WITHOUT ANY WARRANTY; without even the implied warranty of 15026# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15027# GNU General Public License for more details. 15028# 15029# You should have received a copy of the GNU General Public License 15030# along with GNU Libtool; see the file COPYING. If not, a copy 15031# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15032# obtained by writing to the Free Software Foundation, Inc., 15033# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15034 15035 15036# The names of the tagged configurations supported by this script. 15037available_tags="" 15038 15039# ### BEGIN LIBTOOL CONFIG 15040 15041# Whether or not to build static libraries. 15042build_old_libs=$enable_static 15043 15044# Which release of libtool.m4 was used? 15045macro_version=$macro_version 15046macro_revision=$macro_revision 15047 15048# Whether or not to build shared libraries. 15049build_libtool_libs=$enable_shared 15050 15051# What type of objects to build. 15052pic_mode=$pic_mode 15053 15054# Whether or not to optimize for fast installation. 15055fast_install=$enable_fast_install 15056 15057# The host system. 15058host_alias=$host_alias 15059host=$host 15060host_os=$host_os 15061 15062# The build system. 15063build_alias=$build_alias 15064build=$build 15065build_os=$build_os 15066 15067# A sed program that does not truncate output. 15068SED=$lt_SED 15069 15070# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15071Xsed="\$SED -e 1s/^X//" 15072 15073# A grep program that handles long lines. 15074GREP=$lt_GREP 15075 15076# An ERE matcher. 15077EGREP=$lt_EGREP 15078 15079# A literal string matcher. 15080FGREP=$lt_FGREP 15081 15082# A BSD- or MS-compatible name lister. 15083NM=$lt_NM 15084 15085# Whether we need soft or hard links. 15086LN_S=$lt_LN_S 15087 15088# What is the maximum length of a command? 15089max_cmd_len=$max_cmd_len 15090 15091# Object file suffix (normally "o"). 15092objext=$ac_objext 15093 15094# Executable file suffix (normally ""). 15095exeext=$exeext 15096 15097# whether the shell understands "unset". 15098lt_unset=$lt_unset 15099 15100# turn spaces into newlines. 15101SP2NL=$lt_lt_SP2NL 15102 15103# turn newlines into spaces. 15104NL2SP=$lt_lt_NL2SP 15105 15106# How to create reloadable object files. 15107reload_flag=$lt_reload_flag 15108reload_cmds=$lt_reload_cmds 15109 15110# An object symbol dumper. 15111OBJDUMP=$lt_OBJDUMP 15112 15113# Method to check whether dependent libraries are shared objects. 15114deplibs_check_method=$lt_deplibs_check_method 15115 15116# Command to use when deplibs_check_method == "file_magic". 15117file_magic_cmd=$lt_file_magic_cmd 15118 15119# The archiver. 15120AR=$lt_AR 15121AR_FLAGS=$lt_AR_FLAGS 15122 15123# A symbol stripping program. 15124STRIP=$lt_STRIP 15125 15126# Commands used to install an old-style archive. 15127RANLIB=$lt_RANLIB 15128old_postinstall_cmds=$lt_old_postinstall_cmds 15129old_postuninstall_cmds=$lt_old_postuninstall_cmds 15130 15131# A C compiler. 15132LTCC=$lt_CC 15133 15134# LTCC compiler flags. 15135LTCFLAGS=$lt_CFLAGS 15136 15137# Take the output of nm and produce a listing of raw symbols and C names. 15138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15139 15140# Transform the output of nm in a proper C declaration. 15141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15142 15143# Transform the output of nm in a C name address pair. 15144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15145 15146# Transform the output of nm in a C name address pair when lib prefix is needed. 15147global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15148 15149# The name of the directory that contains temporary libtool files. 15150objdir=$objdir 15151 15152# Shell to use when invoking shell scripts. 15153SHELL=$lt_SHELL 15154 15155# An echo program that does not interpret backslashes. 15156ECHO=$lt_ECHO 15157 15158# Used to examine libraries when file_magic_cmd begins with "file". 15159MAGIC_CMD=$MAGIC_CMD 15160 15161# Must we lock files when doing compilation? 15162need_locks=$lt_need_locks 15163 15164# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15165DSYMUTIL=$lt_DSYMUTIL 15166 15167# Tool to change global to local symbols on Mac OS X. 15168NMEDIT=$lt_NMEDIT 15169 15170# Tool to manipulate fat objects and archives on Mac OS X. 15171LIPO=$lt_LIPO 15172 15173# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15174OTOOL=$lt_OTOOL 15175 15176# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15177OTOOL64=$lt_OTOOL64 15178 15179# Old archive suffix (normally "a"). 15180libext=$libext 15181 15182# Shared library suffix (normally ".so"). 15183shrext_cmds=$lt_shrext_cmds 15184 15185# The commands to extract the exported symbol list from a shared archive. 15186extract_expsyms_cmds=$lt_extract_expsyms_cmds 15187 15188# Variables whose values should be saved in libtool wrapper scripts and 15189# restored at link time. 15190variables_saved_for_relink=$lt_variables_saved_for_relink 15191 15192# Do we need the "lib" prefix for modules? 15193need_lib_prefix=$need_lib_prefix 15194 15195# Do we need a version for libraries? 15196need_version=$need_version 15197 15198# Library versioning type. 15199version_type=$version_type 15200 15201# Shared library runtime path variable. 15202runpath_var=$runpath_var 15203 15204# Shared library path variable. 15205shlibpath_var=$shlibpath_var 15206 15207# Is shlibpath searched before the hard-coded library search path? 15208shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15209 15210# Format of library name prefix. 15211libname_spec=$lt_libname_spec 15212 15213# List of archive names. First name is the real one, the rest are links. 15214# The last name is the one that the linker finds with -lNAME 15215library_names_spec=$lt_library_names_spec 15216 15217# The coded name of the library, if different from the real name. 15218soname_spec=$lt_soname_spec 15219 15220# Command to use after installation of a shared archive. 15221postinstall_cmds=$lt_postinstall_cmds 15222 15223# Command to use after uninstallation of a shared archive. 15224postuninstall_cmds=$lt_postuninstall_cmds 15225 15226# Commands used to finish a libtool library installation in a directory. 15227finish_cmds=$lt_finish_cmds 15228 15229# As "finish_cmds", except a single script fragment to be evaled but 15230# not shown. 15231finish_eval=$lt_finish_eval 15232 15233# Whether we should hardcode library paths into libraries. 15234hardcode_into_libs=$hardcode_into_libs 15235 15236# Compile-time system search path for libraries. 15237sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15238 15239# Run-time system search path for libraries. 15240sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15241 15242# Whether dlopen is supported. 15243dlopen_support=$enable_dlopen 15244 15245# Whether dlopen of programs is supported. 15246dlopen_self=$enable_dlopen_self 15247 15248# Whether dlopen of statically linked programs is supported. 15249dlopen_self_static=$enable_dlopen_self_static 15250 15251# Commands to strip libraries. 15252old_striplib=$lt_old_striplib 15253striplib=$lt_striplib 15254 15255 15256# The linker used to build libraries. 15257LD=$lt_LD 15258 15259# Commands used to build an old-style archive. 15260old_archive_cmds=$lt_old_archive_cmds 15261 15262# A language specific compiler. 15263CC=$lt_compiler 15264 15265# Is the compiler the GNU compiler? 15266with_gcc=$GCC 15267 15268# Compiler flag to turn off builtin functions. 15269no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15270 15271# How to pass a linker flag through the compiler. 15272wl=$lt_lt_prog_compiler_wl 15273 15274# Additional compiler flags for building library objects. 15275pic_flag=$lt_lt_prog_compiler_pic 15276 15277# Compiler flag to prevent dynamic linking. 15278link_static_flag=$lt_lt_prog_compiler_static 15279 15280# Does compiler simultaneously support -c and -o options? 15281compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15282 15283# Whether or not to add -lc for building shared libraries. 15284build_libtool_need_lc=$archive_cmds_need_lc 15285 15286# Whether or not to disallow shared libs when runtime libs are static. 15287allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15288 15289# Compiler flag to allow reflexive dlopens. 15290export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15291 15292# Compiler flag to generate shared objects directly from archives. 15293whole_archive_flag_spec=$lt_whole_archive_flag_spec 15294 15295# Whether the compiler copes with passing no objects directly. 15296compiler_needs_object=$lt_compiler_needs_object 15297 15298# Create an old-style archive from a shared archive. 15299old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15300 15301# Create a temporary old-style archive to link instead of a shared archive. 15302old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15303 15304# Commands used to build a shared archive. 15305archive_cmds=$lt_archive_cmds 15306archive_expsym_cmds=$lt_archive_expsym_cmds 15307 15308# Commands used to build a loadable module if different from building 15309# a shared archive. 15310module_cmds=$lt_module_cmds 15311module_expsym_cmds=$lt_module_expsym_cmds 15312 15313# Whether we are building with GNU ld or not. 15314with_gnu_ld=$lt_with_gnu_ld 15315 15316# Flag that allows shared libraries with undefined symbols to be built. 15317allow_undefined_flag=$lt_allow_undefined_flag 15318 15319# Flag that enforces no undefined symbols. 15320no_undefined_flag=$lt_no_undefined_flag 15321 15322# Flag to hardcode \$libdir into a binary during linking. 15323# This must work even if \$libdir does not exist 15324hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15325 15326# If ld is used when linking, flag to hardcode \$libdir into a binary 15327# during linking. This must work even if \$libdir does not exist. 15328hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15329 15330# Whether we need a single "-rpath" flag with a separated argument. 15331hardcode_libdir_separator=$lt_hardcode_libdir_separator 15332 15333# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15334# DIR into the resulting binary. 15335hardcode_direct=$hardcode_direct 15336 15337# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15338# DIR into the resulting binary and the resulting library dependency is 15339# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15340# library is relocated. 15341hardcode_direct_absolute=$hardcode_direct_absolute 15342 15343# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15344# into the resulting binary. 15345hardcode_minus_L=$hardcode_minus_L 15346 15347# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15348# into the resulting binary. 15349hardcode_shlibpath_var=$hardcode_shlibpath_var 15350 15351# Set to "yes" if building a shared library automatically hardcodes DIR 15352# into the library and all subsequent libraries and executables linked 15353# against it. 15354hardcode_automatic=$hardcode_automatic 15355 15356# Set to yes if linker adds runtime paths of dependent libraries 15357# to runtime path list. 15358inherit_rpath=$inherit_rpath 15359 15360# Whether libtool must link a program against all its dependency libraries. 15361link_all_deplibs=$link_all_deplibs 15362 15363# Fix the shell variable \$srcfile for the compiler. 15364fix_srcfile_path=$lt_fix_srcfile_path 15365 15366# Set to "yes" if exported symbols are required. 15367always_export_symbols=$always_export_symbols 15368 15369# The commands to list exported symbols. 15370export_symbols_cmds=$lt_export_symbols_cmds 15371 15372# Symbols that should not be listed in the preloaded symbols. 15373exclude_expsyms=$lt_exclude_expsyms 15374 15375# Symbols that must always be exported. 15376include_expsyms=$lt_include_expsyms 15377 15378# Commands necessary for linking programs (against libraries) with templates. 15379prelink_cmds=$lt_prelink_cmds 15380 15381# Specify filename containing input files. 15382file_list_spec=$lt_file_list_spec 15383 15384# How to hardcode a shared library path into an executable. 15385hardcode_action=$hardcode_action 15386 15387# ### END LIBTOOL CONFIG 15388 15389_LT_EOF 15390 15391 case $host_os in 15392 aix3*) 15393 cat <<\_LT_EOF >> "$cfgfile" 15394# AIX sometimes has problems with the GCC collect2 program. For some 15395# reason, if we set the COLLECT_NAMES environment variable, the problems 15396# vanish in a puff of smoke. 15397if test "X${COLLECT_NAMES+set}" != Xset; then 15398 COLLECT_NAMES= 15399 export COLLECT_NAMES 15400fi 15401_LT_EOF 15402 ;; 15403 esac 15404 15405 15406ltmain="$ac_aux_dir/ltmain.sh" 15407 15408 15409 # We use sed instead of cat because bash on DJGPP gets confused if 15410 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15411 # text mode, it properly converts lines to CR/LF. This bash problem 15412 # is reportedly fixed, but why not run on old versions too? 15413 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15414 || (rm -f "$cfgfile"; exit 1) 15415 15416 case $xsi_shell in 15417 yes) 15418 cat << \_LT_EOF >> "$cfgfile" 15419 15420# func_dirname file append nondir_replacement 15421# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15422# otherwise set result to NONDIR_REPLACEMENT. 15423func_dirname () 15424{ 15425 case ${1} in 15426 */*) func_dirname_result="${1%/*}${2}" ;; 15427 * ) func_dirname_result="${3}" ;; 15428 esac 15429} 15430 15431# func_basename file 15432func_basename () 15433{ 15434 func_basename_result="${1##*/}" 15435} 15436 15437# func_dirname_and_basename file append nondir_replacement 15438# perform func_basename and func_dirname in a single function 15439# call: 15440# dirname: Compute the dirname of FILE. If nonempty, 15441# add APPEND to the result, otherwise set result 15442# to NONDIR_REPLACEMENT. 15443# value returned in "$func_dirname_result" 15444# basename: Compute filename of FILE. 15445# value retuned in "$func_basename_result" 15446# Implementation must be kept synchronized with func_dirname 15447# and func_basename. For efficiency, we do not delegate to 15448# those functions but instead duplicate the functionality here. 15449func_dirname_and_basename () 15450{ 15451 case ${1} in 15452 */*) func_dirname_result="${1%/*}${2}" ;; 15453 * ) func_dirname_result="${3}" ;; 15454 esac 15455 func_basename_result="${1##*/}" 15456} 15457 15458# func_stripname prefix suffix name 15459# strip PREFIX and SUFFIX off of NAME. 15460# PREFIX and SUFFIX must not contain globbing or regex special 15461# characters, hashes, percent signs, but SUFFIX may contain a leading 15462# dot (in which case that matches only a dot). 15463func_stripname () 15464{ 15465 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15466 # positional parameters, so assign one to ordinary parameter first. 15467 func_stripname_result=${3} 15468 func_stripname_result=${func_stripname_result#"${1}"} 15469 func_stripname_result=${func_stripname_result%"${2}"} 15470} 15471 15472# func_opt_split 15473func_opt_split () 15474{ 15475 func_opt_split_opt=${1%%=*} 15476 func_opt_split_arg=${1#*=} 15477} 15478 15479# func_lo2o object 15480func_lo2o () 15481{ 15482 case ${1} in 15483 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15484 *) func_lo2o_result=${1} ;; 15485 esac 15486} 15487 15488# func_xform libobj-or-source 15489func_xform () 15490{ 15491 func_xform_result=${1%.*}.lo 15492} 15493 15494# func_arith arithmetic-term... 15495func_arith () 15496{ 15497 func_arith_result=$(( $* )) 15498} 15499 15500# func_len string 15501# STRING may not start with a hyphen. 15502func_len () 15503{ 15504 func_len_result=${#1} 15505} 15506 15507_LT_EOF 15508 ;; 15509 *) # Bourne compatible functions. 15510 cat << \_LT_EOF >> "$cfgfile" 15511 15512# func_dirname file append nondir_replacement 15513# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15514# otherwise set result to NONDIR_REPLACEMENT. 15515func_dirname () 15516{ 15517 # Extract subdirectory from the argument. 15518 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15519 if test "X$func_dirname_result" = "X${1}"; then 15520 func_dirname_result="${3}" 15521 else 15522 func_dirname_result="$func_dirname_result${2}" 15523 fi 15524} 15525 15526# func_basename file 15527func_basename () 15528{ 15529 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15530} 15531 15532 15533# func_stripname prefix suffix name 15534# strip PREFIX and SUFFIX off of NAME. 15535# PREFIX and SUFFIX must not contain globbing or regex special 15536# characters, hashes, percent signs, but SUFFIX may contain a leading 15537# dot (in which case that matches only a dot). 15538# func_strip_suffix prefix name 15539func_stripname () 15540{ 15541 case ${2} in 15542 .*) func_stripname_result=`$ECHO "X${3}" \ 15543 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15544 *) func_stripname_result=`$ECHO "X${3}" \ 15545 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15546 esac 15547} 15548 15549# sed scripts: 15550my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15551my_sed_long_arg='1s/^-[^=]*=//' 15552 15553# func_opt_split 15554func_opt_split () 15555{ 15556 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15557 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15558} 15559 15560# func_lo2o object 15561func_lo2o () 15562{ 15563 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15564} 15565 15566# func_xform libobj-or-source 15567func_xform () 15568{ 15569 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15570} 15571 15572# func_arith arithmetic-term... 15573func_arith () 15574{ 15575 func_arith_result=`expr "$@"` 15576} 15577 15578# func_len string 15579# STRING may not start with a hyphen. 15580func_len () 15581{ 15582 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15583} 15584 15585_LT_EOF 15586esac 15587 15588case $lt_shell_append in 15589 yes) 15590 cat << \_LT_EOF >> "$cfgfile" 15591 15592# func_append var value 15593# Append VALUE to the end of shell variable VAR. 15594func_append () 15595{ 15596 eval "$1+=\$2" 15597} 15598_LT_EOF 15599 ;; 15600 *) 15601 cat << \_LT_EOF >> "$cfgfile" 15602 15603# func_append var value 15604# Append VALUE to the end of shell variable VAR. 15605func_append () 15606{ 15607 eval "$1=\$$1\$2" 15608} 15609 15610_LT_EOF 15611 ;; 15612 esac 15613 15614 15615 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15616 || (rm -f "$cfgfile"; exit 1) 15617 15618 mv -f "$cfgfile" "$ofile" || 15619 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15620 chmod +x "$ofile" 15621 15622 ;; 15623 15624 esac 15625done # for ac_tag 15626 15627 15628{ (exit 0); exit 0; } 15629_ACEOF 15630chmod +x $CONFIG_STATUS 15631ac_clean_files=$ac_clean_files_save 15632 15633test $ac_write_fail = 0 || 15634 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15635$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15636 { (exit 1); exit 1; }; } 15637 15638 15639# configure is writing to config.log, and then calls config.status. 15640# config.status does its own redirection, appending to config.log. 15641# Unfortunately, on DOS this fails, as config.log is still kept open 15642# by configure, so config.status won't be able to write to it; its 15643# output is simply discarded. So we exec the FD to /dev/null, 15644# effectively closing config.log, so it can be properly (re)opened and 15645# appended to by config.status. When coming back to configure, we 15646# need to make the FD available again. 15647if test "$no_create" != yes; then 15648 ac_cs_success=: 15649 ac_config_status_args= 15650 test "$silent" = yes && 15651 ac_config_status_args="$ac_config_status_args --quiet" 15652 exec 5>/dev/null 15653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15654 exec 5>>config.log 15655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15656 # would make configure fail if this is the last instruction. 15657 $ac_cs_success || { (exit 1); exit 1; } 15658fi 15659if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15660 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15661$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15662fi 15663 15664