configure revision d656433a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libSM 1.1.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='libSM' 747PACKAGE_TARNAME='libSM' 748PACKAGE_VERSION='1.1.1' 749PACKAGE_STRING='libSM 1.1.1' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793distcleancheck_listfiles 794CHANGELOG_CMD 795WITH_LIBUUID_FALSE 796WITH_LIBUUID_TRUE 797LIBUUID_LIBS 798LIBUUID_CFLAGS 799XTRANS_LIBS 800XTRANS_CFLAGS 801SM_LIBS 802SM_CFLAGS 803PKG_CONFIG 804CWARNFLAGS 805CPP 806OTOOL64 807OTOOL 808LIPO 809NMEDIT 810DSYMUTIL 811lt_ECHO 812RANLIB 813AR 814OBJDUMP 815LN_S 816NM 817ac_ct_DUMPBIN 818DUMPBIN 819LD 820FGREP 821EGREP 822GREP 823SED 824am__fastdepCC_FALSE 825am__fastdepCC_TRUE 826CCDEPMODE 827AMDEPBACKSLASH 828AMDEP_FALSE 829AMDEP_TRUE 830am__quote 831am__include 832DEPDIR 833OBJEXT 834EXEEXT 835ac_ct_CC 836CPPFLAGS 837LDFLAGS 838CFLAGS 839CC 840host_os 841host_vendor 842host_cpu 843host 844build_os 845build_vendor 846build_cpu 847build 848LIBTOOL 849MAINT 850MAINTAINER_MODE_FALSE 851MAINTAINER_MODE_TRUE 852am__untar 853am__tar 854AMTAR 855am__leading_dot 856SET_MAKE 857AWK 858mkdir_p 859MKDIR_P 860INSTALL_STRIP_PROGRAM 861STRIP 862install_sh 863MAKEINFO 864AUTOHEADER 865AUTOMAKE 866AUTOCONF 867ACLOCAL 868VERSION 869PACKAGE 870CYGPATH_W 871am__isrc 872INSTALL_DATA 873INSTALL_SCRIPT 874INSTALL_PROGRAM 875target_alias 876host_alias 877build_alias 878LIBS 879ECHO_T 880ECHO_N 881ECHO_C 882DEFS 883mandir 884localedir 885libdir 886psdir 887pdfdir 888dvidir 889htmldir 890infodir 891docdir 892oldincludedir 893includedir 894localstatedir 895sharedstatedir 896sysconfdir 897datadir 898datarootdir 899libexecdir 900sbindir 901bindir 902program_transform_name 903prefix 904exec_prefix 905PACKAGE_BUGREPORT 906PACKAGE_STRING 907PACKAGE_VERSION 908PACKAGE_TARNAME 909PACKAGE_NAME 910PATH_SEPARATOR 911SHELL' 912ac_subst_files='' 913ac_user_opts=' 914enable_option_checking 915enable_maintainer_mode 916enable_shared 917enable_static 918with_pic 919enable_fast_install 920enable_dependency_tracking 921with_gnu_ld 922enable_libtool_lock 923enable_unix_transport 924enable_tcp_transport 925enable_ipv6 926enable_local_transport 927with_libuuid 928with_release_version 929' 930 ac_precious_vars='build_alias 931host_alias 932target_alias 933CC 934CFLAGS 935LDFLAGS 936LIBS 937CPPFLAGS 938CPP 939PKG_CONFIG 940SM_CFLAGS 941SM_LIBS 942XTRANS_CFLAGS 943XTRANS_LIBS 944LIBUUID_CFLAGS 945LIBUUID_LIBS' 946 947 948# Initialize some variables set by options. 949ac_init_help= 950ac_init_version=false 951ac_unrecognized_opts= 952ac_unrecognized_sep= 953# The variables have the same names as the options, with 954# dashes changed to underlines. 955cache_file=/dev/null 956exec_prefix=NONE 957no_create= 958no_recursion= 959prefix=NONE 960program_prefix=NONE 961program_suffix=NONE 962program_transform_name=s,x,x, 963silent= 964site= 965srcdir= 966verbose= 967x_includes=NONE 968x_libraries=NONE 969 970# Installation directory options. 971# These are left unexpanded so users can "make install exec_prefix=/foo" 972# and all the variables that are supposed to be based on exec_prefix 973# by default will actually change. 974# Use braces instead of parens because sh, perl, etc. also accept them. 975# (The list follows the same order as the GNU Coding Standards.) 976bindir='${exec_prefix}/bin' 977sbindir='${exec_prefix}/sbin' 978libexecdir='${exec_prefix}/libexec' 979datarootdir='${prefix}/share' 980datadir='${datarootdir}' 981sysconfdir='${prefix}/etc' 982sharedstatedir='${prefix}/com' 983localstatedir='${prefix}/var' 984includedir='${prefix}/include' 985oldincludedir='/usr/include' 986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 987infodir='${datarootdir}/info' 988htmldir='${docdir}' 989dvidir='${docdir}' 990pdfdir='${docdir}' 991psdir='${docdir}' 992libdir='${exec_prefix}/lib' 993localedir='${datarootdir}/locale' 994mandir='${datarootdir}/man' 995 996ac_prev= 997ac_dashdash= 998for ac_option 999do 1000 # If the previous option needs an argument, assign it. 1001 if test -n "$ac_prev"; then 1002 eval $ac_prev=\$ac_option 1003 ac_prev= 1004 continue 1005 fi 1006 1007 case $ac_option in 1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1009 *) ac_optarg=yes ;; 1010 esac 1011 1012 # Accept the important Cygnus configure options, so we can diagnose typos. 1013 1014 case $ac_dashdash$ac_option in 1015 --) 1016 ac_dashdash=yes ;; 1017 1018 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1019 ac_prev=bindir ;; 1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1021 bindir=$ac_optarg ;; 1022 1023 -build | --build | --buil | --bui | --bu) 1024 ac_prev=build_alias ;; 1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1026 build_alias=$ac_optarg ;; 1027 1028 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1030 ac_prev=cache_file ;; 1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1033 cache_file=$ac_optarg ;; 1034 1035 --config-cache | -C) 1036 cache_file=config.cache ;; 1037 1038 -datadir | --datadir | --datadi | --datad) 1039 ac_prev=datadir ;; 1040 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1041 datadir=$ac_optarg ;; 1042 1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1044 | --dataroo | --dataro | --datar) 1045 ac_prev=datarootdir ;; 1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1048 datarootdir=$ac_optarg ;; 1049 1050 -disable-* | --disable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1055 { (exit 1); exit 1; }; } 1056 ac_useropt_orig=$ac_useropt 1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1058 case $ac_user_opts in 1059 *" 1060"enable_$ac_useropt" 1061"*) ;; 1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1063 ac_unrecognized_sep=', ';; 1064 esac 1065 eval enable_$ac_useropt=no ;; 1066 1067 -docdir | --docdir | --docdi | --doc | --do) 1068 ac_prev=docdir ;; 1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1070 docdir=$ac_optarg ;; 1071 1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1073 ac_prev=dvidir ;; 1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1075 dvidir=$ac_optarg ;; 1076 1077 -enable-* | --enable-*) 1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1079 # Reject names that are not valid shell variable names. 1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1081 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1082 { (exit 1); exit 1; }; } 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087"enable_$ac_useropt" 1088"*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval enable_$ac_useropt=\$ac_optarg ;; 1093 1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1096 | --exec | --exe | --ex) 1097 ac_prev=exec_prefix ;; 1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1100 | --exec=* | --exe=* | --ex=*) 1101 exec_prefix=$ac_optarg ;; 1102 1103 -gas | --gas | --ga | --g) 1104 # Obsolete; use --with-gas. 1105 with_gas=yes ;; 1106 1107 -help | --help | --hel | --he | -h) 1108 ac_init_help=long ;; 1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1110 ac_init_help=recursive ;; 1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1112 ac_init_help=short ;; 1113 1114 -host | --host | --hos | --ho) 1115 ac_prev=host_alias ;; 1116 -host=* | --host=* | --hos=* | --ho=*) 1117 host_alias=$ac_optarg ;; 1118 1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1120 ac_prev=htmldir ;; 1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1122 | --ht=*) 1123 htmldir=$ac_optarg ;; 1124 1125 -includedir | --includedir | --includedi | --included | --include \ 1126 | --includ | --inclu | --incl | --inc) 1127 ac_prev=includedir ;; 1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1129 | --includ=* | --inclu=* | --incl=* | --inc=*) 1130 includedir=$ac_optarg ;; 1131 1132 -infodir | --infodir | --infodi | --infod | --info | --inf) 1133 ac_prev=infodir ;; 1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1135 infodir=$ac_optarg ;; 1136 1137 -libdir | --libdir | --libdi | --libd) 1138 ac_prev=libdir ;; 1139 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1140 libdir=$ac_optarg ;; 1141 1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1143 | --libexe | --libex | --libe) 1144 ac_prev=libexecdir ;; 1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1146 | --libexe=* | --libex=* | --libe=*) 1147 libexecdir=$ac_optarg ;; 1148 1149 -localedir | --localedir | --localedi | --localed | --locale) 1150 ac_prev=localedir ;; 1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1152 localedir=$ac_optarg ;; 1153 1154 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1155 | --localstate | --localstat | --localsta | --localst | --locals) 1156 ac_prev=localstatedir ;; 1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1159 localstatedir=$ac_optarg ;; 1160 1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1162 ac_prev=mandir ;; 1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1164 mandir=$ac_optarg ;; 1165 1166 -nfp | --nfp | --nf) 1167 # Obsolete; use --without-fp. 1168 with_fp=no ;; 1169 1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1171 | --no-cr | --no-c | -n) 1172 no_create=yes ;; 1173 1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1176 no_recursion=yes ;; 1177 1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1180 | --oldin | --oldi | --old | --ol | --o) 1181 ac_prev=oldincludedir ;; 1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1185 oldincludedir=$ac_optarg ;; 1186 1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1188 ac_prev=prefix ;; 1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1190 prefix=$ac_optarg ;; 1191 1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1193 | --program-pre | --program-pr | --program-p) 1194 ac_prev=program_prefix ;; 1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1197 program_prefix=$ac_optarg ;; 1198 1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1200 | --program-suf | --program-su | --program-s) 1201 ac_prev=program_suffix ;; 1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1204 program_suffix=$ac_optarg ;; 1205 1206 -program-transform-name | --program-transform-name \ 1207 | --program-transform-nam | --program-transform-na \ 1208 | --program-transform-n | --program-transform- \ 1209 | --program-transform | --program-transfor \ 1210 | --program-transfo | --program-transf \ 1211 | --program-trans | --program-tran \ 1212 | --progr-tra | --program-tr | --program-t) 1213 ac_prev=program_transform_name ;; 1214 -program-transform-name=* | --program-transform-name=* \ 1215 | --program-transform-nam=* | --program-transform-na=* \ 1216 | --program-transform-n=* | --program-transform-=* \ 1217 | --program-transform=* | --program-transfor=* \ 1218 | --program-transfo=* | --program-transf=* \ 1219 | --program-trans=* | --program-tran=* \ 1220 | --progr-tra=* | --program-tr=* | --program-t=*) 1221 program_transform_name=$ac_optarg ;; 1222 1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1224 ac_prev=pdfdir ;; 1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1226 pdfdir=$ac_optarg ;; 1227 1228 -psdir | --psdir | --psdi | --psd | --ps) 1229 ac_prev=psdir ;; 1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1231 psdir=$ac_optarg ;; 1232 1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1234 | -silent | --silent | --silen | --sile | --sil) 1235 silent=yes ;; 1236 1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1238 ac_prev=sbindir ;; 1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1240 | --sbi=* | --sb=*) 1241 sbindir=$ac_optarg ;; 1242 1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1245 | --sharedst | --shareds | --shared | --share | --shar \ 1246 | --sha | --sh) 1247 ac_prev=sharedstatedir ;; 1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1251 | --sha=* | --sh=*) 1252 sharedstatedir=$ac_optarg ;; 1253 1254 -site | --site | --sit) 1255 ac_prev=site ;; 1256 -site=* | --site=* | --sit=*) 1257 site=$ac_optarg ;; 1258 1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1260 ac_prev=srcdir ;; 1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1262 srcdir=$ac_optarg ;; 1263 1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1265 | --syscon | --sysco | --sysc | --sys | --sy) 1266 ac_prev=sysconfdir ;; 1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1269 sysconfdir=$ac_optarg ;; 1270 1271 -target | --target | --targe | --targ | --tar | --ta | --t) 1272 ac_prev=target_alias ;; 1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1274 target_alias=$ac_optarg ;; 1275 1276 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1277 verbose=yes ;; 1278 1279 -version | --version | --versio | --versi | --vers | -V) 1280 ac_init_version=: ;; 1281 1282 -with-* | --with-*) 1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1284 # Reject names that are not valid shell variable names. 1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1286 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1287 { (exit 1); exit 1; }; } 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=\$ac_optarg ;; 1298 1299 -without-* | --without-*) 1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1301 # Reject names that are not valid shell variable names. 1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1303 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1304 { (exit 1); exit 1; }; } 1305 ac_useropt_orig=$ac_useropt 1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1307 case $ac_user_opts in 1308 *" 1309"with_$ac_useropt" 1310"*) ;; 1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1312 ac_unrecognized_sep=', ';; 1313 esac 1314 eval with_$ac_useropt=no ;; 1315 1316 --x) 1317 # Obsolete; use --with-x. 1318 with_x=yes ;; 1319 1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1321 | --x-incl | --x-inc | --x-in | --x-i) 1322 ac_prev=x_includes ;; 1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1325 x_includes=$ac_optarg ;; 1326 1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1329 ac_prev=x_libraries ;; 1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1332 x_libraries=$ac_optarg ;; 1333 1334 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1335Try \`$0 --help' for more information." >&2 1336 { (exit 1); exit 1; }; } 1337 ;; 1338 1339 *=*) 1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1341 # Reject names that are not valid shell variable names. 1342 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1343 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1344 { (exit 1); exit 1; }; } 1345 eval $ac_envvar=\$ac_optarg 1346 export $ac_envvar ;; 1347 1348 *) 1349 # FIXME: should be removed in autoconf 3.0. 1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1354 ;; 1355 1356 esac 1357done 1358 1359if test -n "$ac_prev"; then 1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1361 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1362 { (exit 1); exit 1; }; } 1363fi 1364 1365if test -n "$ac_unrecognized_opts"; then 1366 case $enable_option_checking in 1367 no) ;; 1368 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1369 { (exit 1); exit 1; }; } ;; 1370 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1371 esac 1372fi 1373 1374# Check all directory arguments for consistency. 1375for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1376 datadir sysconfdir sharedstatedir localstatedir includedir \ 1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1378 libdir localedir mandir 1379do 1380 eval ac_val=\$$ac_var 1381 # Remove trailing slashes. 1382 case $ac_val in 1383 */ ) 1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1385 eval $ac_var=\$ac_val;; 1386 esac 1387 # Be sure to have absolute directory names. 1388 case $ac_val in 1389 [\\/$]* | ?:[\\/]* ) continue;; 1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1391 esac 1392 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1393 { (exit 1); exit 1; }; } 1394done 1395 1396# There might be people who depend on the old broken behavior: `$host' 1397# used to hold the argument of --host etc. 1398# FIXME: To remove some day. 1399build=$build_alias 1400host=$host_alias 1401target=$target_alias 1402 1403# FIXME: To remove some day. 1404if test "x$host_alias" != x; then 1405 if test "x$build_alias" = x; then 1406 cross_compiling=maybe 1407 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1408 If a cross compiler is detected then cross compile mode will be used." >&2 1409 elif test "x$build_alias" != "x$host_alias"; then 1410 cross_compiling=yes 1411 fi 1412fi 1413 1414ac_tool_prefix= 1415test -n "$host_alias" && ac_tool_prefix=$host_alias- 1416 1417test "$silent" = yes && exec 6>/dev/null 1418 1419 1420ac_pwd=`pwd` && test -n "$ac_pwd" && 1421ac_ls_di=`ls -di .` && 1422ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1423 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1424 { (exit 1); exit 1; }; } 1425test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1426 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1427 { (exit 1); exit 1; }; } 1428 1429 1430# Find the source files, if location was not specified. 1431if test -z "$srcdir"; then 1432 ac_srcdir_defaulted=yes 1433 # Try the directory containing this script, then the parent directory. 1434 ac_confdir=`$as_dirname -- "$as_myself" || 1435$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1436 X"$as_myself" : 'X\(//\)[^/]' \| \ 1437 X"$as_myself" : 'X\(//\)$' \| \ 1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1439$as_echo X"$as_myself" | 1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\/\)[^/].*/{ 1445 s//\1/ 1446 q 1447 } 1448 /^X\(\/\/\)$/{ 1449 s//\1/ 1450 q 1451 } 1452 /^X\(\/\).*/{ 1453 s//\1/ 1454 q 1455 } 1456 s/.*/./; q'` 1457 srcdir=$ac_confdir 1458 if test ! -r "$srcdir/$ac_unique_file"; then 1459 srcdir=.. 1460 fi 1461else 1462 ac_srcdir_defaulted=no 1463fi 1464if test ! -r "$srcdir/$ac_unique_file"; then 1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1466 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1467 { (exit 1); exit 1; }; } 1468fi 1469ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1470ac_abs_confdir=`( 1471 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1472 { (exit 1); exit 1; }; } 1473 pwd)` 1474# When building in place, set srcdir=. 1475if test "$ac_abs_confdir" = "$ac_pwd"; then 1476 srcdir=. 1477fi 1478# Remove unnecessary trailing slashes from srcdir. 1479# Double slashes in file names in object file debugging info 1480# mess up M-x gdb in Emacs. 1481case $srcdir in 1482*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1483esac 1484for ac_var in $ac_precious_vars; do 1485 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1486 eval ac_env_${ac_var}_value=\$${ac_var} 1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1488 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1489done 1490 1491# 1492# Report the --help message. 1493# 1494if test "$ac_init_help" = "long"; then 1495 # Omit some internal or obsolete options to make the list less imposing. 1496 # This message is too long to be a string in the A/UX 3.1 sh. 1497 cat <<_ACEOF 1498\`configure' configures libSM 1.1.1 to adapt to many kinds of systems. 1499 1500Usage: $0 [OPTION]... [VAR=VALUE]... 1501 1502To assign environment variables (e.g., CC, CFLAGS...), specify them as 1503VAR=VALUE. See below for descriptions of some of the useful variables. 1504 1505Defaults for the options are specified in brackets. 1506 1507Configuration: 1508 -h, --help display this help and exit 1509 --help=short display options specific to this package 1510 --help=recursive display the short help of all the included packages 1511 -V, --version display version information and exit 1512 -q, --quiet, --silent do not print \`checking...' messages 1513 --cache-file=FILE cache test results in FILE [disabled] 1514 -C, --config-cache alias for \`--cache-file=config.cache' 1515 -n, --no-create do not create output files 1516 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1517 1518Installation directories: 1519 --prefix=PREFIX install architecture-independent files in PREFIX 1520 [$ac_default_prefix] 1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1522 [PREFIX] 1523 1524By default, \`make install' will install all the files in 1525\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1526an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1527for instance \`--prefix=\$HOME'. 1528 1529For better control, use the options below. 1530 1531Fine tuning of the installation directories: 1532 --bindir=DIR user executables [EPREFIX/bin] 1533 --sbindir=DIR system admin executables [EPREFIX/sbin] 1534 --libexecdir=DIR program executables [EPREFIX/libexec] 1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1538 --libdir=DIR object code libraries [EPREFIX/lib] 1539 --includedir=DIR C header files [PREFIX/include] 1540 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1543 --infodir=DIR info documentation [DATAROOTDIR/info] 1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1545 --mandir=DIR man documentation [DATAROOTDIR/man] 1546 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM] 1547 --htmldir=DIR html documentation [DOCDIR] 1548 --dvidir=DIR dvi documentation [DOCDIR] 1549 --pdfdir=DIR pdf documentation [DOCDIR] 1550 --psdir=DIR ps documentation [DOCDIR] 1551_ACEOF 1552 1553 cat <<\_ACEOF 1554 1555Program names: 1556 --program-prefix=PREFIX prepend PREFIX to installed program names 1557 --program-suffix=SUFFIX append SUFFIX to installed program names 1558 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1559 1560System types: 1561 --build=BUILD configure for building on BUILD [guessed] 1562 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1563_ACEOF 1564fi 1565 1566if test -n "$ac_init_help"; then 1567 case $ac_init_help in 1568 short | recursive ) echo "Configuration of libSM 1.1.1:";; 1569 esac 1570 cat <<\_ACEOF 1571 1572Optional Features: 1573 --disable-option-checking ignore unrecognized --enable/--with options 1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1576 --enable-maintainer-mode enable make rules and dependencies not useful 1577 (and sometimes confusing) to the casual installer 1578 --enable-shared[=PKGS] build shared libraries [default=yes] 1579 --enable-static[=PKGS] build static libraries [default=yes] 1580 --enable-fast-install[=PKGS] 1581 optimize for fast installation [default=yes] 1582 --disable-dependency-tracking speeds up one-time build 1583 --enable-dependency-tracking do not reject slow dependency extractors 1584 --disable-libtool-lock avoid locking (might break parallel builds) 1585 --enable-unix-transport Enable UNIX domain socket transport 1586 --enable-tcp-transport Enable TCP socket transport 1587 --enable-ipv6 Enable IPv6 support 1588 --enable-local-transport 1589 Enable os-specific local transport 1590 1591Optional Packages: 1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1594 --with-pic try to use only PIC/non-PIC objects [default=use 1595 both] 1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1597 --with-libuuid Build with libuuid support for client IDs 1598 --with-release-version=STRING 1599 Use release version string in package name 1600 1601Some influential environment variables: 1602 CC C compiler command 1603 CFLAGS C compiler flags 1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1605 nonstandard directory <lib dir> 1606 LIBS libraries to pass to the linker, e.g. -l<library> 1607 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1608 you have headers in a nonstandard directory <include dir> 1609 CPP C preprocessor 1610 PKG_CONFIG path to pkg-config utility 1611 SM_CFLAGS C compiler flags for SM, overriding pkg-config 1612 SM_LIBS linker flags for SM, overriding pkg-config 1613 XTRANS_CFLAGS 1614 C compiler flags for XTRANS, overriding pkg-config 1615 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config 1616 LIBUUID_CFLAGS 1617 C compiler flags for LIBUUID, overriding pkg-config 1618 LIBUUID_LIBS 1619 linker flags for LIBUUID, overriding pkg-config 1620 1621Use these variables to override the choices made by `configure' or to help 1622it to find libraries and programs with nonstandard names/locations. 1623 1624Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1625_ACEOF 1626ac_status=$? 1627fi 1628 1629if test "$ac_init_help" = "recursive"; then 1630 # If there are subdirs, report their specific --help. 1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1632 test -d "$ac_dir" || 1633 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1634 continue 1635 ac_builddir=. 1636 1637case "$ac_dir" in 1638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1639*) 1640 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1641 # A ".." for each directory in $ac_dir_suffix. 1642 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1643 case $ac_top_builddir_sub in 1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1646 esac ;; 1647esac 1648ac_abs_top_builddir=$ac_pwd 1649ac_abs_builddir=$ac_pwd$ac_dir_suffix 1650# for backward compatibility: 1651ac_top_builddir=$ac_top_build_prefix 1652 1653case $srcdir in 1654 .) # We are building in place. 1655 ac_srcdir=. 1656 ac_top_srcdir=$ac_top_builddir_sub 1657 ac_abs_top_srcdir=$ac_pwd ;; 1658 [\\/]* | ?:[\\/]* ) # Absolute name. 1659 ac_srcdir=$srcdir$ac_dir_suffix; 1660 ac_top_srcdir=$srcdir 1661 ac_abs_top_srcdir=$srcdir ;; 1662 *) # Relative name. 1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1664 ac_top_srcdir=$ac_top_build_prefix$srcdir 1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1666esac 1667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1668 1669 cd "$ac_dir" || { ac_status=$?; continue; } 1670 # Check for guested configure. 1671 if test -f "$ac_srcdir/configure.gnu"; then 1672 echo && 1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1674 elif test -f "$ac_srcdir/configure"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure" --help=recursive 1677 else 1678 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1679 fi || ac_status=$? 1680 cd "$ac_pwd" || { ac_status=$?; break; } 1681 done 1682fi 1683 1684test -n "$ac_init_help" && exit $ac_status 1685if $ac_init_version; then 1686 cat <<\_ACEOF 1687libSM configure 1.1.1 1688generated by GNU Autoconf 2.63 1689 1690Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16912002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1692This configure script is free software; the Free Software Foundation 1693gives unlimited permission to copy, distribute and modify it. 1694_ACEOF 1695 exit 1696fi 1697cat >config.log <<_ACEOF 1698This file contains any messages produced by compilers while 1699running configure, to aid debugging if configure makes a mistake. 1700 1701It was created by libSM $as_me 1.1.1, which was 1702generated by GNU Autoconf 2.63. Invocation command line was 1703 1704 $ $0 $@ 1705 1706_ACEOF 1707exec 5>>config.log 1708{ 1709cat <<_ASUNAME 1710## --------- ## 1711## Platform. ## 1712## --------- ## 1713 1714hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1715uname -m = `(uname -m) 2>/dev/null || echo unknown` 1716uname -r = `(uname -r) 2>/dev/null || echo unknown` 1717uname -s = `(uname -s) 2>/dev/null || echo unknown` 1718uname -v = `(uname -v) 2>/dev/null || echo unknown` 1719 1720/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1721/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1722 1723/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1724/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1725/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1726/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1727/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1728/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1729/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1730 1731_ASUNAME 1732 1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1734for as_dir in $PATH 1735do 1736 IFS=$as_save_IFS 1737 test -z "$as_dir" && as_dir=. 1738 $as_echo "PATH: $as_dir" 1739done 1740IFS=$as_save_IFS 1741 1742} >&5 1743 1744cat >&5 <<_ACEOF 1745 1746 1747## ----------- ## 1748## Core tests. ## 1749## ----------- ## 1750 1751_ACEOF 1752 1753 1754# Keep a trace of the command line. 1755# Strip out --no-create and --no-recursion so they do not pile up. 1756# Strip out --silent because we don't want to record it for future runs. 1757# Also quote any args containing shell meta-characters. 1758# Make two passes to allow for proper duplicate-argument suppression. 1759ac_configure_args= 1760ac_configure_args0= 1761ac_configure_args1= 1762ac_must_keep_next=false 1763for ac_pass in 1 2 1764do 1765 for ac_arg 1766 do 1767 case $ac_arg in 1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1770 | -silent | --silent | --silen | --sile | --sil) 1771 continue ;; 1772 *\'*) 1773 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1774 esac 1775 case $ac_pass in 1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1777 2) 1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1779 if test $ac_must_keep_next = true; then 1780 ac_must_keep_next=false # Got value, back to normal. 1781 else 1782 case $ac_arg in 1783 *=* | --config-cache | -C | -disable-* | --disable-* \ 1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1786 | -with-* | --with-* | -without-* | --without-* | --x) 1787 case "$ac_configure_args0 " in 1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1789 esac 1790 ;; 1791 -* ) ac_must_keep_next=true ;; 1792 esac 1793 fi 1794 ac_configure_args="$ac_configure_args '$ac_arg'" 1795 ;; 1796 esac 1797 done 1798done 1799$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1800$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1801 1802# When interrupted or exit'd, cleanup temporary files, and complete 1803# config.log. We remove comments because anyway the quotes in there 1804# would cause problems or look ugly. 1805# WARNING: Use '\'' to represent an apostrophe within the trap. 1806# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1807trap 'exit_status=$? 1808 # Save into config.log some information that might help in debugging. 1809 { 1810 echo 1811 1812 cat <<\_ASBOX 1813## ---------------- ## 1814## Cache variables. ## 1815## ---------------- ## 1816_ASBOX 1817 echo 1818 # The following way of writing the cache mishandles newlines in values, 1819( 1820 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1821 eval ac_val=\$$ac_var 1822 case $ac_val in #( 1823 *${as_nl}*) 1824 case $ac_var in #( 1825 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1826$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1827 esac 1828 case $ac_var in #( 1829 _ | IFS | as_nl) ;; #( 1830 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1831 *) $as_unset $ac_var ;; 1832 esac ;; 1833 esac 1834 done 1835 (set) 2>&1 | 1836 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1837 *${as_nl}ac_space=\ *) 1838 sed -n \ 1839 "s/'\''/'\''\\\\'\'''\''/g; 1840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1841 ;; #( 1842 *) 1843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1844 ;; 1845 esac | 1846 sort 1847) 1848 echo 1849 1850 cat <<\_ASBOX 1851## ----------------- ## 1852## Output variables. ## 1853## ----------------- ## 1854_ASBOX 1855 echo 1856 for ac_var in $ac_subst_vars 1857 do 1858 eval ac_val=\$$ac_var 1859 case $ac_val in 1860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1861 esac 1862 $as_echo "$ac_var='\''$ac_val'\''" 1863 done | sort 1864 echo 1865 1866 if test -n "$ac_subst_files"; then 1867 cat <<\_ASBOX 1868## ------------------- ## 1869## File substitutions. ## 1870## ------------------- ## 1871_ASBOX 1872 echo 1873 for ac_var in $ac_subst_files 1874 do 1875 eval ac_val=\$$ac_var 1876 case $ac_val in 1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1878 esac 1879 $as_echo "$ac_var='\''$ac_val'\''" 1880 done | sort 1881 echo 1882 fi 1883 1884 if test -s confdefs.h; then 1885 cat <<\_ASBOX 1886## ----------- ## 1887## confdefs.h. ## 1888## ----------- ## 1889_ASBOX 1890 echo 1891 cat confdefs.h 1892 echo 1893 fi 1894 test "$ac_signal" != 0 && 1895 $as_echo "$as_me: caught signal $ac_signal" 1896 $as_echo "$as_me: exit $exit_status" 1897 } >&5 1898 rm -f core *.core core.conftest.* && 1899 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1900 exit $exit_status 1901' 0 1902for ac_signal in 1 2 13 15; do 1903 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1904done 1905ac_signal=0 1906 1907# confdefs.h avoids OS command line length limits that DEFS can exceed. 1908rm -f -r conftest* confdefs.h 1909 1910# Predefined preprocessor variables. 1911 1912cat >>confdefs.h <<_ACEOF 1913#define PACKAGE_NAME "$PACKAGE_NAME" 1914_ACEOF 1915 1916 1917cat >>confdefs.h <<_ACEOF 1918#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1919_ACEOF 1920 1921 1922cat >>confdefs.h <<_ACEOF 1923#define PACKAGE_VERSION "$PACKAGE_VERSION" 1924_ACEOF 1925 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_STRING "$PACKAGE_STRING" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1934_ACEOF 1935 1936 1937# Let the site file select an alternate cache file if it wants to. 1938# Prefer an explicitly selected file to automatically selected ones. 1939ac_site_file1=NONE 1940ac_site_file2=NONE 1941if test -n "$CONFIG_SITE"; then 1942 ac_site_file1=$CONFIG_SITE 1943elif test "x$prefix" != xNONE; then 1944 ac_site_file1=$prefix/share/config.site 1945 ac_site_file2=$prefix/etc/config.site 1946else 1947 ac_site_file1=$ac_default_prefix/share/config.site 1948 ac_site_file2=$ac_default_prefix/etc/config.site 1949fi 1950for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1951do 1952 test "x$ac_site_file" = xNONE && continue 1953 if test -r "$ac_site_file"; then 1954 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1955$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1956 sed 's/^/| /' "$ac_site_file" >&5 1957 . "$ac_site_file" 1958 fi 1959done 1960 1961if test -r "$cache_file"; then 1962 # Some versions of bash will fail to source /dev/null (special 1963 # files actually), so we avoid doing that. 1964 if test -f "$cache_file"; then 1965 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1966$as_echo "$as_me: loading cache $cache_file" >&6;} 1967 case $cache_file in 1968 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1969 *) . "./$cache_file";; 1970 esac 1971 fi 1972else 1973 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1974$as_echo "$as_me: creating cache $cache_file" >&6;} 1975 >$cache_file 1976fi 1977 1978# Check that the precious variables saved in the cache have kept the same 1979# value. 1980ac_cache_corrupted=false 1981for ac_var in $ac_precious_vars; do 1982 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1983 eval ac_new_set=\$ac_env_${ac_var}_set 1984 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1985 eval ac_new_val=\$ac_env_${ac_var}_value 1986 case $ac_old_set,$ac_new_set in 1987 set,) 1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1989$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1990 ac_cache_corrupted=: ;; 1991 ,set) 1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1993$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1994 ac_cache_corrupted=: ;; 1995 ,);; 1996 *) 1997 if test "x$ac_old_val" != "x$ac_new_val"; then 1998 # differences in whitespace do not lead to failure. 1999 ac_old_val_w=`echo x $ac_old_val` 2000 ac_new_val_w=`echo x $ac_new_val` 2001 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2003$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2004 ac_cache_corrupted=: 2005 else 2006 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2007$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2008 eval $ac_var=\$ac_old_val 2009 fi 2010 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2011$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2012 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2013$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2014 fi;; 2015 esac 2016 # Pass precious variables to config.status. 2017 if test "$ac_new_set" = set; then 2018 case $ac_new_val in 2019 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2020 *) ac_arg=$ac_var=$ac_new_val ;; 2021 esac 2022 case " $ac_configure_args " in 2023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2024 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2025 esac 2026 fi 2027done 2028if $ac_cache_corrupted; then 2029 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2031 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2032$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2033 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2034$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2035 { (exit 1); exit 1; }; } 2036fi 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062ac_ext=c 2063ac_cpp='$CPP $CPPFLAGS' 2064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2066ac_compiler_gnu=$ac_cv_c_compiler_gnu 2067 2068 2069 2070 2071am__api_version='1.11' 2072 2073ac_aux_dir= 2074for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2075 if test -f "$ac_dir/install-sh"; then 2076 ac_aux_dir=$ac_dir 2077 ac_install_sh="$ac_aux_dir/install-sh -c" 2078 break 2079 elif test -f "$ac_dir/install.sh"; then 2080 ac_aux_dir=$ac_dir 2081 ac_install_sh="$ac_aux_dir/install.sh -c" 2082 break 2083 elif test -f "$ac_dir/shtool"; then 2084 ac_aux_dir=$ac_dir 2085 ac_install_sh="$ac_aux_dir/shtool install -c" 2086 break 2087 fi 2088done 2089if test -z "$ac_aux_dir"; then 2090 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2091$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2092 { (exit 1); exit 1; }; } 2093fi 2094 2095# These three variables are undocumented and unsupported, 2096# and are intended to be withdrawn in a future Autoconf release. 2097# They can cause serious problems if a builder's source tree is in a directory 2098# whose full name contains unusual characters. 2099ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2100ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2101ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2102 2103 2104# Find a good install program. We prefer a C program (faster), 2105# so one script is as good as another. But avoid the broken or 2106# incompatible versions: 2107# SysV /etc/install, /usr/sbin/install 2108# SunOS /usr/etc/install 2109# IRIX /sbin/install 2110# AIX /bin/install 2111# AmigaOS /C/install, which installs bootblocks on floppy discs 2112# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2113# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2114# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2115# OS/2's system install, which has a completely different semantic 2116# ./install, which can be erroneously created by make from ./install.sh. 2117# Reject install programs that cannot install multiple files. 2118{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2119$as_echo_n "checking for a BSD-compatible install... " >&6; } 2120if test -z "$INSTALL"; then 2121if test "${ac_cv_path_install+set}" = set; then 2122 $as_echo_n "(cached) " >&6 2123else 2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2125for as_dir in $PATH 2126do 2127 IFS=$as_save_IFS 2128 test -z "$as_dir" && as_dir=. 2129 # Account for people who put trailing slashes in PATH elements. 2130case $as_dir/ in 2131 ./ | .// | /cC/* | \ 2132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2133 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2134 /usr/ucb/* ) ;; 2135 *) 2136 # OSF1 and SCO ODT 3.0 have their own names for install. 2137 # Don't use installbsd from OSF since it installs stuff as root 2138 # by default. 2139 for ac_prog in ginstall scoinst install; do 2140 for ac_exec_ext in '' $ac_executable_extensions; do 2141 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2142 if test $ac_prog = install && 2143 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2144 # AIX install. It has an incompatible calling convention. 2145 : 2146 elif test $ac_prog = install && 2147 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2148 # program-specific install script used by HP pwplus--don't use. 2149 : 2150 else 2151 rm -rf conftest.one conftest.two conftest.dir 2152 echo one > conftest.one 2153 echo two > conftest.two 2154 mkdir conftest.dir 2155 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2156 test -s conftest.one && test -s conftest.two && 2157 test -s conftest.dir/conftest.one && 2158 test -s conftest.dir/conftest.two 2159 then 2160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2161 break 3 2162 fi 2163 fi 2164 fi 2165 done 2166 done 2167 ;; 2168esac 2169 2170done 2171IFS=$as_save_IFS 2172 2173rm -rf conftest.one conftest.two conftest.dir 2174 2175fi 2176 if test "${ac_cv_path_install+set}" = set; then 2177 INSTALL=$ac_cv_path_install 2178 else 2179 # As a last resort, use the slow shell script. Don't cache a 2180 # value for INSTALL within a source directory, because that will 2181 # break other packages using the cache if that directory is 2182 # removed, or if the value is a relative name. 2183 INSTALL=$ac_install_sh 2184 fi 2185fi 2186{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2187$as_echo "$INSTALL" >&6; } 2188 2189# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2190# It thinks the first close brace ends the variable substitution. 2191test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2192 2193test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2194 2195test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2196 2197{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2198$as_echo_n "checking whether build environment is sane... " >&6; } 2199# Just in case 2200sleep 1 2201echo timestamp > conftest.file 2202# Reject unsafe characters in $srcdir or the absolute working directory 2203# name. Accept space and tab only in the latter. 2204am_lf=' 2205' 2206case `pwd` in 2207 *[\\\"\#\$\&\'\`$am_lf]*) 2208 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2209$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2210 { (exit 1); exit 1; }; };; 2211esac 2212case $srcdir in 2213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2214 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2215$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2216 { (exit 1); exit 1; }; };; 2217esac 2218 2219# Do `set' in a subshell so we don't clobber the current shell's 2220# arguments. Must try -L first in case configure is actually a 2221# symlink; some systems play weird games with the mod time of symlinks 2222# (eg FreeBSD returns the mod time of the symlink's containing 2223# directory). 2224if ( 2225 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2226 if test "$*" = "X"; then 2227 # -L didn't work. 2228 set X `ls -t "$srcdir/configure" conftest.file` 2229 fi 2230 rm -f conftest.file 2231 if test "$*" != "X $srcdir/configure conftest.file" \ 2232 && test "$*" != "X conftest.file $srcdir/configure"; then 2233 2234 # If neither matched, then we have a broken ls. This can happen 2235 # if, for instance, CONFIG_SHELL is bash and it inherits a 2236 # broken ls alias from the environment. This has actually 2237 # happened. Such a system could not be considered "sane". 2238 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2239alias in your environment" >&5 2240$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2241alias in your environment" >&2;} 2242 { (exit 1); exit 1; }; } 2243 fi 2244 2245 test "$2" = conftest.file 2246 ) 2247then 2248 # Ok. 2249 : 2250else 2251 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2252Check your system clock" >&5 2253$as_echo "$as_me: error: newly created file is older than distributed files! 2254Check your system clock" >&2;} 2255 { (exit 1); exit 1; }; } 2256fi 2257{ $as_echo "$as_me:$LINENO: result: yes" >&5 2258$as_echo "yes" >&6; } 2259test "$program_prefix" != NONE && 2260 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2261# Use a double $ so make ignores it. 2262test "$program_suffix" != NONE && 2263 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2264# Double any \ or $. 2265# By default was `s,x,x', remove it if useless. 2266ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2267program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2268 2269# expand $ac_aux_dir to an absolute path 2270am_aux_dir=`cd $ac_aux_dir && pwd` 2271 2272if test x"${MISSING+set}" != xset; then 2273 case $am_aux_dir in 2274 *\ * | *\ *) 2275 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2276 *) 2277 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2278 esac 2279fi 2280# Use eval to expand $SHELL 2281if eval "$MISSING --run true"; then 2282 am_missing_run="$MISSING --run " 2283else 2284 am_missing_run= 2285 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2286$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2287fi 2288 2289if test x"${install_sh}" != xset; then 2290 case $am_aux_dir in 2291 *\ * | *\ *) 2292 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2293 *) 2294 install_sh="\${SHELL} $am_aux_dir/install-sh" 2295 esac 2296fi 2297 2298# Installed binaries are usually stripped using `strip' when the user 2299# run `make install-strip'. However `strip' might not be the right 2300# tool to use in cross-compilation environments, therefore Automake 2301# will honor the `STRIP' environment variable to overrule this program. 2302if test "$cross_compiling" != no; then 2303 if test -n "$ac_tool_prefix"; then 2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2305set dummy ${ac_tool_prefix}strip; ac_word=$2 2306{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2307$as_echo_n "checking for $ac_word... " >&6; } 2308if test "${ac_cv_prog_STRIP+set}" = set; then 2309 $as_echo_n "(cached) " >&6 2310else 2311 if test -n "$STRIP"; then 2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2313else 2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2315for as_dir in $PATH 2316do 2317 IFS=$as_save_IFS 2318 test -z "$as_dir" && as_dir=. 2319 for ac_exec_ext in '' $ac_executable_extensions; do 2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2323 break 2 2324 fi 2325done 2326done 2327IFS=$as_save_IFS 2328 2329fi 2330fi 2331STRIP=$ac_cv_prog_STRIP 2332if test -n "$STRIP"; then 2333 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2334$as_echo "$STRIP" >&6; } 2335else 2336 { $as_echo "$as_me:$LINENO: result: no" >&5 2337$as_echo "no" >&6; } 2338fi 2339 2340 2341fi 2342if test -z "$ac_cv_prog_STRIP"; then 2343 ac_ct_STRIP=$STRIP 2344 # Extract the first word of "strip", so it can be a program name with args. 2345set dummy strip; ac_word=$2 2346{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2347$as_echo_n "checking for $ac_word... " >&6; } 2348if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2349 $as_echo_n "(cached) " >&6 2350else 2351 if test -n "$ac_ct_STRIP"; then 2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2353else 2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2355for as_dir in $PATH 2356do 2357 IFS=$as_save_IFS 2358 test -z "$as_dir" && as_dir=. 2359 for ac_exec_ext in '' $ac_executable_extensions; do 2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2361 ac_cv_prog_ac_ct_STRIP="strip" 2362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2363 break 2 2364 fi 2365done 2366done 2367IFS=$as_save_IFS 2368 2369fi 2370fi 2371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2372if test -n "$ac_ct_STRIP"; then 2373 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2374$as_echo "$ac_ct_STRIP" >&6; } 2375else 2376 { $as_echo "$as_me:$LINENO: result: no" >&5 2377$as_echo "no" >&6; } 2378fi 2379 2380 if test "x$ac_ct_STRIP" = x; then 2381 STRIP=":" 2382 else 2383 case $cross_compiling:$ac_tool_warned in 2384yes:) 2385{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2387ac_tool_warned=yes ;; 2388esac 2389 STRIP=$ac_ct_STRIP 2390 fi 2391else 2392 STRIP="$ac_cv_prog_STRIP" 2393fi 2394 2395fi 2396INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2397 2398{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2399$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2400if test -z "$MKDIR_P"; then 2401 if test "${ac_cv_path_mkdir+set}" = set; then 2402 $as_echo_n "(cached) " >&6 2403else 2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2405for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2406do 2407 IFS=$as_save_IFS 2408 test -z "$as_dir" && as_dir=. 2409 for ac_prog in mkdir gmkdir; do 2410 for ac_exec_ext in '' $ac_executable_extensions; do 2411 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2412 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2413 'mkdir (GNU coreutils) '* | \ 2414 'mkdir (coreutils) '* | \ 2415 'mkdir (fileutils) '4.1*) 2416 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2417 break 3;; 2418 esac 2419 done 2420 done 2421done 2422IFS=$as_save_IFS 2423 2424fi 2425 2426 if test "${ac_cv_path_mkdir+set}" = set; then 2427 MKDIR_P="$ac_cv_path_mkdir -p" 2428 else 2429 # As a last resort, use the slow shell script. Don't cache a 2430 # value for MKDIR_P within a source directory, because that will 2431 # break other packages using the cache if that directory is 2432 # removed, or if the value is a relative name. 2433 test -d ./--version && rmdir ./--version 2434 MKDIR_P="$ac_install_sh -d" 2435 fi 2436fi 2437{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2438$as_echo "$MKDIR_P" >&6; } 2439 2440mkdir_p="$MKDIR_P" 2441case $mkdir_p in 2442 [\\/$]* | ?:[\\/]*) ;; 2443 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2444esac 2445 2446for ac_prog in gawk mawk nawk awk 2447do 2448 # Extract the first word of "$ac_prog", so it can be a program name with args. 2449set dummy $ac_prog; ac_word=$2 2450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2451$as_echo_n "checking for $ac_word... " >&6; } 2452if test "${ac_cv_prog_AWK+set}" = set; then 2453 $as_echo_n "(cached) " >&6 2454else 2455 if test -n "$AWK"; then 2456 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2457else 2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 test -z "$as_dir" && as_dir=. 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2465 ac_cv_prog_AWK="$ac_prog" 2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2467 break 2 2468 fi 2469done 2470done 2471IFS=$as_save_IFS 2472 2473fi 2474fi 2475AWK=$ac_cv_prog_AWK 2476if test -n "$AWK"; then 2477 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2478$as_echo "$AWK" >&6; } 2479else 2480 { $as_echo "$as_me:$LINENO: result: no" >&5 2481$as_echo "no" >&6; } 2482fi 2483 2484 2485 test -n "$AWK" && break 2486done 2487 2488{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2489$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2490set x ${MAKE-make} 2491ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2492if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2493 $as_echo_n "(cached) " >&6 2494else 2495 cat >conftest.make <<\_ACEOF 2496SHELL = /bin/sh 2497all: 2498 @echo '@@@%%%=$(MAKE)=@@@%%%' 2499_ACEOF 2500# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2501case `${MAKE-make} -f conftest.make 2>/dev/null` in 2502 *@@@%%%=?*=@@@%%%*) 2503 eval ac_cv_prog_make_${ac_make}_set=yes;; 2504 *) 2505 eval ac_cv_prog_make_${ac_make}_set=no;; 2506esac 2507rm -f conftest.make 2508fi 2509if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2510 { $as_echo "$as_me:$LINENO: result: yes" >&5 2511$as_echo "yes" >&6; } 2512 SET_MAKE= 2513else 2514 { $as_echo "$as_me:$LINENO: result: no" >&5 2515$as_echo "no" >&6; } 2516 SET_MAKE="MAKE=${MAKE-make}" 2517fi 2518 2519rm -rf .tst 2>/dev/null 2520mkdir .tst 2>/dev/null 2521if test -d .tst; then 2522 am__leading_dot=. 2523else 2524 am__leading_dot=_ 2525fi 2526rmdir .tst 2>/dev/null 2527 2528if test "`cd $srcdir && pwd`" != "`pwd`"; then 2529 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2530 # is not polluted with repeated "-I." 2531 am__isrc=' -I$(srcdir)' 2532 # test to see if srcdir already configured 2533 if test -f $srcdir/config.status; then 2534 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2535$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2536 { (exit 1); exit 1; }; } 2537 fi 2538fi 2539 2540# test whether we have cygpath 2541if test -z "$CYGPATH_W"; then 2542 if (cygpath --version) >/dev/null 2>/dev/null; then 2543 CYGPATH_W='cygpath -w' 2544 else 2545 CYGPATH_W=echo 2546 fi 2547fi 2548 2549 2550# Define the identity of the package. 2551 PACKAGE='libSM' 2552 VERSION='1.1.1' 2553 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE "$PACKAGE" 2557_ACEOF 2558 2559 2560cat >>confdefs.h <<_ACEOF 2561#define VERSION "$VERSION" 2562_ACEOF 2563 2564# Some tools Automake needs. 2565 2566ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2567 2568 2569AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2570 2571 2572AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2573 2574 2575AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2576 2577 2578MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2579 2580# We need awk for the "check" target. The system "awk" is bad on 2581# some platforms. 2582# Always define AMTAR for backward compatibility. 2583 2584AMTAR=${AMTAR-"${am_missing_run}tar"} 2585 2586am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2587 2588 2589 2590 2591 2592 2593 2594{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2595$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2596 # Check whether --enable-maintainer-mode was given. 2597if test "${enable_maintainer_mode+set}" = set; then 2598 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2599else 2600 USE_MAINTAINER_MODE=no 2601fi 2602 2603 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2604$as_echo "$USE_MAINTAINER_MODE" >&6; } 2605 if test $USE_MAINTAINER_MODE = yes; then 2606 MAINTAINER_MODE_TRUE= 2607 MAINTAINER_MODE_FALSE='#' 2608else 2609 MAINTAINER_MODE_TRUE='#' 2610 MAINTAINER_MODE_FALSE= 2611fi 2612 2613 MAINT=$MAINTAINER_MODE_TRUE 2614 2615 2616 2617# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629ac_config_headers="$ac_config_headers config.h" 2630 2631 2632# Checks for programs. 2633case `pwd` in 2634 *\ * | *\ *) 2635 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2636$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2637esac 2638 2639 2640 2641macro_version='2.2.6' 2642macro_revision='1.3012' 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656ltmain="$ac_aux_dir/ltmain.sh" 2657 2658# Make sure we can run config.sub. 2659$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2660 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2661$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2662 { (exit 1); exit 1; }; } 2663 2664{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2665$as_echo_n "checking build system type... " >&6; } 2666if test "${ac_cv_build+set}" = set; then 2667 $as_echo_n "(cached) " >&6 2668else 2669 ac_build_alias=$build_alias 2670test "x$ac_build_alias" = x && 2671 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2672test "x$ac_build_alias" = x && 2673 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2674$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2675 { (exit 1); exit 1; }; } 2676ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2677 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2678$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2679 { (exit 1); exit 1; }; } 2680 2681fi 2682{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2683$as_echo "$ac_cv_build" >&6; } 2684case $ac_cv_build in 2685*-*-*) ;; 2686*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2687$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2688 { (exit 1); exit 1; }; };; 2689esac 2690build=$ac_cv_build 2691ac_save_IFS=$IFS; IFS='-' 2692set x $ac_cv_build 2693shift 2694build_cpu=$1 2695build_vendor=$2 2696shift; shift 2697# Remember, the first character of IFS is used to create $*, 2698# except with old shells: 2699build_os=$* 2700IFS=$ac_save_IFS 2701case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2702 2703 2704{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2705$as_echo_n "checking host system type... " >&6; } 2706if test "${ac_cv_host+set}" = set; then 2707 $as_echo_n "(cached) " >&6 2708else 2709 if test "x$host_alias" = x; then 2710 ac_cv_host=$ac_cv_build 2711else 2712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2713 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2714$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2715 { (exit 1); exit 1; }; } 2716fi 2717 2718fi 2719{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2720$as_echo "$ac_cv_host" >&6; } 2721case $ac_cv_host in 2722*-*-*) ;; 2723*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2724$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2725 { (exit 1); exit 1; }; };; 2726esac 2727host=$ac_cv_host 2728ac_save_IFS=$IFS; IFS='-' 2729set x $ac_cv_host 2730shift 2731host_cpu=$1 2732host_vendor=$2 2733shift; shift 2734# Remember, the first character of IFS is used to create $*, 2735# except with old shells: 2736host_os=$* 2737IFS=$ac_save_IFS 2738case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2739 2740 2741DEPDIR="${am__leading_dot}deps" 2742 2743ac_config_commands="$ac_config_commands depfiles" 2744 2745 2746am_make=${MAKE-make} 2747cat > confinc << 'END' 2748am__doit: 2749 @echo this is the am__doit target 2750.PHONY: am__doit 2751END 2752# If we don't find an include directive, just comment out the code. 2753{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2754$as_echo_n "checking for style of include used by $am_make... " >&6; } 2755am__include="#" 2756am__quote= 2757_am_result=none 2758# First try GNU make style include. 2759echo "include confinc" > confmf 2760# Ignore all kinds of additional output from `make'. 2761case `$am_make -s -f confmf 2> /dev/null` in #( 2762*the\ am__doit\ target*) 2763 am__include=include 2764 am__quote= 2765 _am_result=GNU 2766 ;; 2767esac 2768# Now try BSD make style include. 2769if test "$am__include" = "#"; then 2770 echo '.include "confinc"' > confmf 2771 case `$am_make -s -f confmf 2> /dev/null` in #( 2772 *the\ am__doit\ target*) 2773 am__include=.include 2774 am__quote="\"" 2775 _am_result=BSD 2776 ;; 2777 esac 2778fi 2779 2780 2781{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2782$as_echo "$_am_result" >&6; } 2783rm -f confinc confmf 2784 2785# Check whether --enable-dependency-tracking was given. 2786if test "${enable_dependency_tracking+set}" = set; then 2787 enableval=$enable_dependency_tracking; 2788fi 2789 2790if test "x$enable_dependency_tracking" != xno; then 2791 am_depcomp="$ac_aux_dir/depcomp" 2792 AMDEPBACKSLASH='\' 2793fi 2794 if test "x$enable_dependency_tracking" != xno; then 2795 AMDEP_TRUE= 2796 AMDEP_FALSE='#' 2797else 2798 AMDEP_TRUE='#' 2799 AMDEP_FALSE= 2800fi 2801 2802 2803ac_ext=c 2804ac_cpp='$CPP $CPPFLAGS' 2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2807ac_compiler_gnu=$ac_cv_c_compiler_gnu 2808if test -n "$ac_tool_prefix"; then 2809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2810set dummy ${ac_tool_prefix}gcc; ac_word=$2 2811{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2812$as_echo_n "checking for $ac_word... " >&6; } 2813if test "${ac_cv_prog_CC+set}" = set; then 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test -n "$CC"; then 2817 ac_cv_prog_CC="$CC" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2826 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831done 2832IFS=$as_save_IFS 2833 2834fi 2835fi 2836CC=$ac_cv_prog_CC 2837if test -n "$CC"; then 2838 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2839$as_echo "$CC" >&6; } 2840else 2841 { $as_echo "$as_me:$LINENO: result: no" >&5 2842$as_echo "no" >&6; } 2843fi 2844 2845 2846fi 2847if test -z "$ac_cv_prog_CC"; then 2848 ac_ct_CC=$CC 2849 # Extract the first word of "gcc", so it can be a program name with args. 2850set dummy gcc; ac_word=$2 2851{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2852$as_echo_n "checking for $ac_word... " >&6; } 2853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2854 $as_echo_n "(cached) " >&6 2855else 2856 if test -n "$ac_ct_CC"; then 2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2858else 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860for as_dir in $PATH 2861do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2866 ac_cv_prog_ac_ct_CC="gcc" 2867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870done 2871done 2872IFS=$as_save_IFS 2873 2874fi 2875fi 2876ac_ct_CC=$ac_cv_prog_ac_ct_CC 2877if test -n "$ac_ct_CC"; then 2878 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2879$as_echo "$ac_ct_CC" >&6; } 2880else 2881 { $as_echo "$as_me:$LINENO: result: no" >&5 2882$as_echo "no" >&6; } 2883fi 2884 2885 if test "x$ac_ct_CC" = x; then 2886 CC="" 2887 else 2888 case $cross_compiling:$ac_tool_warned in 2889yes:) 2890{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2892ac_tool_warned=yes ;; 2893esac 2894 CC=$ac_ct_CC 2895 fi 2896else 2897 CC="$ac_cv_prog_CC" 2898fi 2899 2900if test -z "$CC"; then 2901 if test -n "$ac_tool_prefix"; then 2902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2903set dummy ${ac_tool_prefix}cc; ac_word=$2 2904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2905$as_echo_n "checking for $ac_word... " >&6; } 2906if test "${ac_cv_prog_CC+set}" = set; then 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test -n "$CC"; then 2910 ac_cv_prog_CC="$CC" # Let the user override the test. 2911else 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2919 ac_cv_prog_CC="${ac_tool_prefix}cc" 2920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924done 2925IFS=$as_save_IFS 2926 2927fi 2928fi 2929CC=$ac_cv_prog_CC 2930if test -n "$CC"; then 2931 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2932$as_echo "$CC" >&6; } 2933else 2934 { $as_echo "$as_me:$LINENO: result: no" >&5 2935$as_echo "no" >&6; } 2936fi 2937 2938 2939 fi 2940fi 2941if test -z "$CC"; then 2942 # Extract the first word of "cc", so it can be a program name with args. 2943set dummy cc; ac_word=$2 2944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2945$as_echo_n "checking for $ac_word... " >&6; } 2946if test "${ac_cv_prog_CC+set}" = set; then 2947 $as_echo_n "(cached) " >&6 2948else 2949 if test -n "$CC"; then 2950 ac_cv_prog_CC="$CC" # Let the user override the test. 2951else 2952 ac_prog_rejected=no 2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954for as_dir in $PATH 2955do 2956 IFS=$as_save_IFS 2957 test -z "$as_dir" && as_dir=. 2958 for ac_exec_ext in '' $ac_executable_extensions; do 2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2961 ac_prog_rejected=yes 2962 continue 2963 fi 2964 ac_cv_prog_CC="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 2972if test $ac_prog_rejected = yes; then 2973 # We found a bogon in the path, so make sure we never use it. 2974 set dummy $ac_cv_prog_CC 2975 shift 2976 if test $# != 0; then 2977 # We chose a different compiler from the bogus one. 2978 # However, it has the same basename, so the bogon will be chosen 2979 # first if we set CC to just the basename; use the full file name. 2980 shift 2981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2982 fi 2983fi 2984fi 2985fi 2986CC=$ac_cv_prog_CC 2987if test -n "$CC"; then 2988 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2989$as_echo "$CC" >&6; } 2990else 2991 { $as_echo "$as_me:$LINENO: result: no" >&5 2992$as_echo "no" >&6; } 2993fi 2994 2995 2996fi 2997if test -z "$CC"; then 2998 if test -n "$ac_tool_prefix"; then 2999 for ac_prog in cl.exe 3000 do 3001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3002set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3003{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if test "${ac_cv_prog_CC+set}" = set; then 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$CC"; then 3009 ac_cv_prog_CC="$CC" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023done 3024IFS=$as_save_IFS 3025 3026fi 3027fi 3028CC=$ac_cv_prog_CC 3029if test -n "$CC"; then 3030 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3031$as_echo "$CC" >&6; } 3032else 3033 { $as_echo "$as_me:$LINENO: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 3038 test -n "$CC" && break 3039 done 3040fi 3041if test -z "$CC"; then 3042 ac_ct_CC=$CC 3043 for ac_prog in cl.exe 3044do 3045 # Extract the first word of "$ac_prog", so it can be a program name with args. 3046set dummy $ac_prog; ac_word=$2 3047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3048$as_echo_n "checking for $ac_word... " >&6; } 3049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3050 $as_echo_n "(cached) " >&6 3051else 3052 if test -n "$ac_ct_CC"; then 3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3054else 3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3056for as_dir in $PATH 3057do 3058 IFS=$as_save_IFS 3059 test -z "$as_dir" && as_dir=. 3060 for ac_exec_ext in '' $ac_executable_extensions; do 3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3062 ac_cv_prog_ac_ct_CC="$ac_prog" 3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067done 3068IFS=$as_save_IFS 3069 3070fi 3071fi 3072ac_ct_CC=$ac_cv_prog_ac_ct_CC 3073if test -n "$ac_ct_CC"; then 3074 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3075$as_echo "$ac_ct_CC" >&6; } 3076else 3077 { $as_echo "$as_me:$LINENO: result: no" >&5 3078$as_echo "no" >&6; } 3079fi 3080 3081 3082 test -n "$ac_ct_CC" && break 3083done 3084 3085 if test "x$ac_ct_CC" = x; then 3086 CC="" 3087 else 3088 case $cross_compiling:$ac_tool_warned in 3089yes:) 3090{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3092ac_tool_warned=yes ;; 3093esac 3094 CC=$ac_ct_CC 3095 fi 3096fi 3097 3098fi 3099 3100 3101test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3103{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3104See \`config.log' for more details." >&5 3105$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3106See \`config.log' for more details." >&2;} 3107 { (exit 1); exit 1; }; }; } 3108 3109# Provide some information about the compiler. 3110$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3111set X $ac_compile 3112ac_compiler=$2 3113{ (ac_try="$ac_compiler --version >&5" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3119$as_echo "$ac_try_echo") >&5 3120 (eval "$ac_compiler --version >&5") 2>&5 3121 ac_status=$? 3122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } 3124{ (ac_try="$ac_compiler -v >&5" 3125case "(($ac_try" in 3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3127 *) ac_try_echo=$ac_try;; 3128esac 3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3130$as_echo "$ac_try_echo") >&5 3131 (eval "$ac_compiler -v >&5") 2>&5 3132 ac_status=$? 3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } 3135{ (ac_try="$ac_compiler -V >&5" 3136case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139esac 3140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3141$as_echo "$ac_try_echo") >&5 3142 (eval "$ac_compiler -V >&5") 2>&5 3143 ac_status=$? 3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); } 3146 3147cat >conftest.$ac_ext <<_ACEOF 3148/* confdefs.h. */ 3149_ACEOF 3150cat confdefs.h >>conftest.$ac_ext 3151cat >>conftest.$ac_ext <<_ACEOF 3152/* end confdefs.h. */ 3153 3154int 3155main () 3156{ 3157 3158 ; 3159 return 0; 3160} 3161_ACEOF 3162ac_clean_files_save=$ac_clean_files 3163ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3164# Try to create an executable without -o first, disregard a.out. 3165# It will help us diagnose broken compilers, and finding out an intuition 3166# of exeext. 3167{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3168$as_echo_n "checking for C compiler default output file name... " >&6; } 3169ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3170 3171# The possible output files: 3172ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3173 3174ac_rmfiles= 3175for ac_file in $ac_files 3176do 3177 case $ac_file in 3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3179 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3180 esac 3181done 3182rm -f $ac_rmfiles 3183 3184if { (ac_try="$ac_link_default" 3185case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3190$as_echo "$ac_try_echo") >&5 3191 (eval "$ac_link_default") 2>&5 3192 ac_status=$? 3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); }; then 3195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3196# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3197# in a Makefile. We should not override ac_cv_exeext if it was cached, 3198# so that the user can short-circuit this test for compilers unknown to 3199# Autoconf. 3200for ac_file in $ac_files '' 3201do 3202 test -f "$ac_file" || continue 3203 case $ac_file in 3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3205 ;; 3206 [ab].out ) 3207 # We found the default executable, but exeext='' is most 3208 # certainly right. 3209 break;; 3210 *.* ) 3211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3212 then :; else 3213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3214 fi 3215 # We set ac_cv_exeext here because the later test for it is not 3216 # safe: cross compilers may not add the suffix if given an `-o' 3217 # argument, so we may need to know it at that point already. 3218 # Even if this section looks crufty: it has the advantage of 3219 # actually working. 3220 break;; 3221 * ) 3222 break;; 3223 esac 3224done 3225test "$ac_cv_exeext" = no && ac_cv_exeext= 3226 3227else 3228 ac_file='' 3229fi 3230 3231{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3232$as_echo "$ac_file" >&6; } 3233if test -z "$ac_file"; then 3234 $as_echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3240See \`config.log' for more details." >&5 3241$as_echo "$as_me: error: C compiler cannot create executables 3242See \`config.log' for more details." >&2;} 3243 { (exit 77); exit 77; }; }; } 3244fi 3245 3246ac_exeext=$ac_cv_exeext 3247 3248# Check that the compiler produces executables we can run. If not, either 3249# the compiler is broken, or we cross compile. 3250{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3251$as_echo_n "checking whether the C compiler works... " >&6; } 3252# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3253# If not cross compiling, check that we can run a simple program. 3254if test "$cross_compiling" != yes; then 3255 if { ac_try='./$ac_file' 3256 { (case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3261$as_echo "$ac_try_echo") >&5 3262 (eval "$ac_try") 2>&5 3263 ac_status=$? 3264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); }; }; then 3266 cross_compiling=no 3267 else 3268 if test "$cross_compiling" = maybe; then 3269 cross_compiling=yes 3270 else 3271 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3273{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3274If you meant to cross compile, use \`--host'. 3275See \`config.log' for more details." >&5 3276$as_echo "$as_me: error: cannot run C compiled programs. 3277If you meant to cross compile, use \`--host'. 3278See \`config.log' for more details." >&2;} 3279 { (exit 1); exit 1; }; }; } 3280 fi 3281 fi 3282fi 3283{ $as_echo "$as_me:$LINENO: result: yes" >&5 3284$as_echo "yes" >&6; } 3285 3286rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3287ac_clean_files=$ac_clean_files_save 3288# Check that the compiler produces executables we can run. If not, either 3289# the compiler is broken, or we cross compile. 3290{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3291$as_echo_n "checking whether we are cross compiling... " >&6; } 3292{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3293$as_echo "$cross_compiling" >&6; } 3294 3295{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3296$as_echo_n "checking for suffix of executables... " >&6; } 3297if { (ac_try="$ac_link" 3298case "(($ac_try" in 3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3300 *) ac_try_echo=$ac_try;; 3301esac 3302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3303$as_echo "$ac_try_echo") >&5 3304 (eval "$ac_link") 2>&5 3305 ac_status=$? 3306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); }; then 3308 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3309# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3310# work properly (i.e., refer to `conftest.exe'), while it won't with 3311# `rm'. 3312for ac_file in conftest.exe conftest conftest.*; do 3313 test -f "$ac_file" || continue 3314 case $ac_file in 3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3317 break;; 3318 * ) break;; 3319 esac 3320done 3321else 3322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3324{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3325See \`config.log' for more details." >&5 3326$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3327See \`config.log' for more details." >&2;} 3328 { (exit 1); exit 1; }; }; } 3329fi 3330 3331rm -f conftest$ac_cv_exeext 3332{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3333$as_echo "$ac_cv_exeext" >&6; } 3334 3335rm -f conftest.$ac_ext 3336EXEEXT=$ac_cv_exeext 3337ac_exeext=$EXEEXT 3338{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3339$as_echo_n "checking for suffix of object files... " >&6; } 3340if test "${ac_cv_objext+set}" = set; then 3341 $as_echo_n "(cached) " >&6 3342else 3343 cat >conftest.$ac_ext <<_ACEOF 3344/* confdefs.h. */ 3345_ACEOF 3346cat confdefs.h >>conftest.$ac_ext 3347cat >>conftest.$ac_ext <<_ACEOF 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.o conftest.obj 3359if { (ac_try="$ac_compile" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3365$as_echo "$ac_try_echo") >&5 3366 (eval "$ac_compile") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); }; then 3370 for ac_file in conftest.o conftest.obj conftest.*; do 3371 test -f "$ac_file" || continue; 3372 case $ac_file in 3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3375 break;; 3376 esac 3377done 3378else 3379 $as_echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3384{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3385See \`config.log' for more details." >&5 3386$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3387See \`config.log' for more details." >&2;} 3388 { (exit 1); exit 1; }; }; } 3389fi 3390 3391rm -f conftest.$ac_cv_objext conftest.$ac_ext 3392fi 3393{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3394$as_echo "$ac_cv_objext" >&6; } 3395OBJEXT=$ac_cv_objext 3396ac_objext=$OBJEXT 3397{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3398$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3399if test "${ac_cv_c_compiler_gnu+set}" = set; then 3400 $as_echo_n "(cached) " >&6 3401else 3402 cat >conftest.$ac_ext <<_ACEOF 3403/* confdefs.h. */ 3404_ACEOF 3405cat confdefs.h >>conftest.$ac_ext 3406cat >>conftest.$ac_ext <<_ACEOF 3407/* end confdefs.h. */ 3408 3409int 3410main () 3411{ 3412#ifndef __GNUC__ 3413 choke me 3414#endif 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420rm -f conftest.$ac_objext 3421if { (ac_try="$ac_compile" 3422case "(($ac_try" in 3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3424 *) ac_try_echo=$ac_try;; 3425esac 3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3427$as_echo "$ac_try_echo") >&5 3428 (eval "$ac_compile") 2>conftest.er1 3429 ac_status=$? 3430 grep -v '^ *+' conftest.er1 >conftest.err 3431 rm -f conftest.er1 3432 cat conftest.err >&5 3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } && { 3435 test -z "$ac_c_werror_flag" || 3436 test ! -s conftest.err 3437 } && test -s conftest.$ac_objext; then 3438 ac_compiler_gnu=yes 3439else 3440 $as_echo "$as_me: failed program was:" >&5 3441sed 's/^/| /' conftest.$ac_ext >&5 3442 3443 ac_compiler_gnu=no 3444fi 3445 3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3447ac_cv_c_compiler_gnu=$ac_compiler_gnu 3448 3449fi 3450{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3451$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3452if test $ac_compiler_gnu = yes; then 3453 GCC=yes 3454else 3455 GCC= 3456fi 3457ac_test_CFLAGS=${CFLAGS+set} 3458ac_save_CFLAGS=$CFLAGS 3459{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3460$as_echo_n "checking whether $CC accepts -g... " >&6; } 3461if test "${ac_cv_prog_cc_g+set}" = set; then 3462 $as_echo_n "(cached) " >&6 3463else 3464 ac_save_c_werror_flag=$ac_c_werror_flag 3465 ac_c_werror_flag=yes 3466 ac_cv_prog_cc_g=no 3467 CFLAGS="-g" 3468 cat >conftest.$ac_ext <<_ACEOF 3469/* confdefs.h. */ 3470_ACEOF 3471cat confdefs.h >>conftest.$ac_ext 3472cat >>conftest.$ac_ext <<_ACEOF 3473/* end confdefs.h. */ 3474 3475int 3476main () 3477{ 3478 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483rm -f conftest.$ac_objext 3484if { (ac_try="$ac_compile" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3490$as_echo "$ac_try_echo") >&5 3491 (eval "$ac_compile") 2>conftest.er1 3492 ac_status=$? 3493 grep -v '^ *+' conftest.er1 >conftest.err 3494 rm -f conftest.er1 3495 cat conftest.err >&5 3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3497 (exit $ac_status); } && { 3498 test -z "$ac_c_werror_flag" || 3499 test ! -s conftest.err 3500 } && test -s conftest.$ac_objext; then 3501 ac_cv_prog_cc_g=yes 3502else 3503 $as_echo "$as_me: failed program was:" >&5 3504sed 's/^/| /' conftest.$ac_ext >&5 3505 3506 CFLAGS="" 3507 cat >conftest.$ac_ext <<_ACEOF 3508/* confdefs.h. */ 3509_ACEOF 3510cat confdefs.h >>conftest.$ac_ext 3511cat >>conftest.$ac_ext <<_ACEOF 3512/* end confdefs.h. */ 3513 3514int 3515main () 3516{ 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522rm -f conftest.$ac_objext 3523if { (ac_try="$ac_compile" 3524case "(($ac_try" in 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3526 *) ac_try_echo=$ac_try;; 3527esac 3528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3529$as_echo "$ac_try_echo") >&5 3530 (eval "$ac_compile") 2>conftest.er1 3531 ac_status=$? 3532 grep -v '^ *+' conftest.er1 >conftest.err 3533 rm -f conftest.er1 3534 cat conftest.err >&5 3535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); } && { 3537 test -z "$ac_c_werror_flag" || 3538 test ! -s conftest.err 3539 } && test -s conftest.$ac_objext; then 3540 : 3541else 3542 $as_echo "$as_me: failed program was:" >&5 3543sed 's/^/| /' conftest.$ac_ext >&5 3544 3545 ac_c_werror_flag=$ac_save_c_werror_flag 3546 CFLAGS="-g" 3547 cat >conftest.$ac_ext <<_ACEOF 3548/* confdefs.h. */ 3549_ACEOF 3550cat confdefs.h >>conftest.$ac_ext 3551cat >>conftest.$ac_ext <<_ACEOF 3552/* end confdefs.h. */ 3553 3554int 3555main () 3556{ 3557 3558 ; 3559 return 0; 3560} 3561_ACEOF 3562rm -f conftest.$ac_objext 3563if { (ac_try="$ac_compile" 3564case "(($ac_try" in 3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566 *) ac_try_echo=$ac_try;; 3567esac 3568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3569$as_echo "$ac_try_echo") >&5 3570 (eval "$ac_compile") 2>conftest.er1 3571 ac_status=$? 3572 grep -v '^ *+' conftest.er1 >conftest.err 3573 rm -f conftest.er1 3574 cat conftest.err >&5 3575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3576 (exit $ac_status); } && { 3577 test -z "$ac_c_werror_flag" || 3578 test ! -s conftest.err 3579 } && test -s conftest.$ac_objext; then 3580 ac_cv_prog_cc_g=yes 3581else 3582 $as_echo "$as_me: failed program was:" >&5 3583sed 's/^/| /' conftest.$ac_ext >&5 3584 3585 3586fi 3587 3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3589fi 3590 3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3592fi 3593 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596fi 3597{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3598$as_echo "$ac_cv_prog_cc_g" >&6; } 3599if test "$ac_test_CFLAGS" = set; then 3600 CFLAGS=$ac_save_CFLAGS 3601elif test $ac_cv_prog_cc_g = yes; then 3602 if test "$GCC" = yes; then 3603 CFLAGS="-g -O2" 3604 else 3605 CFLAGS="-g" 3606 fi 3607else 3608 if test "$GCC" = yes; then 3609 CFLAGS="-O2" 3610 else 3611 CFLAGS= 3612 fi 3613fi 3614{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3616if test "${ac_cv_prog_cc_c89+set}" = set; then 3617 $as_echo_n "(cached) " >&6 3618else 3619 ac_cv_prog_cc_c89=no 3620ac_save_CC=$CC 3621cat >conftest.$ac_ext <<_ACEOF 3622/* confdefs.h. */ 3623_ACEOF 3624cat confdefs.h >>conftest.$ac_ext 3625cat >>conftest.$ac_ext <<_ACEOF 3626/* end confdefs.h. */ 3627#include <stdarg.h> 3628#include <stdio.h> 3629#include <sys/types.h> 3630#include <sys/stat.h> 3631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3632struct buf { int x; }; 3633FILE * (*rcsopen) (struct buf *, struct stat *, int); 3634static char *e (p, i) 3635 char **p; 3636 int i; 3637{ 3638 return p[i]; 3639} 3640static char *f (char * (*g) (char **, int), char **p, ...) 3641{ 3642 char *s; 3643 va_list v; 3644 va_start (v,p); 3645 s = g (p, va_arg (v,int)); 3646 va_end (v); 3647 return s; 3648} 3649 3650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3651 function prototypes and stuff, but not '\xHH' hex character constants. 3652 These don't provoke an error unfortunately, instead are silently treated 3653 as 'x'. The following induces an error, until -std is added to get 3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3655 array size at least. It's necessary to write '\x00'==0 to get something 3656 that's true only with -std. */ 3657int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3658 3659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3660 inside strings and character constants. */ 3661#define FOO(x) 'x' 3662int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3663 3664int test (int i, double x); 3665struct s1 {int (*f) (int a);}; 3666struct s2 {int (*f) (double a);}; 3667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3668int argc; 3669char **argv; 3670int 3671main () 3672{ 3673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3680do 3681 CC="$ac_save_CC $ac_arg" 3682 rm -f conftest.$ac_objext 3683if { (ac_try="$ac_compile" 3684case "(($ac_try" in 3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3686 *) ac_try_echo=$ac_try;; 3687esac 3688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3689$as_echo "$ac_try_echo") >&5 3690 (eval "$ac_compile") 2>conftest.er1 3691 ac_status=$? 3692 grep -v '^ *+' conftest.er1 >conftest.err 3693 rm -f conftest.er1 3694 cat conftest.err >&5 3695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3696 (exit $ac_status); } && { 3697 test -z "$ac_c_werror_flag" || 3698 test ! -s conftest.err 3699 } && test -s conftest.$ac_objext; then 3700 ac_cv_prog_cc_c89=$ac_arg 3701else 3702 $as_echo "$as_me: failed program was:" >&5 3703sed 's/^/| /' conftest.$ac_ext >&5 3704 3705 3706fi 3707 3708rm -f core conftest.err conftest.$ac_objext 3709 test "x$ac_cv_prog_cc_c89" != "xno" && break 3710done 3711rm -f conftest.$ac_ext 3712CC=$ac_save_CC 3713 3714fi 3715# AC_CACHE_VAL 3716case "x$ac_cv_prog_cc_c89" in 3717 x) 3718 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3719$as_echo "none needed" >&6; } ;; 3720 xno) 3721 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3722$as_echo "unsupported" >&6; } ;; 3723 *) 3724 CC="$CC $ac_cv_prog_cc_c89" 3725 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3726$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3727esac 3728 3729 3730ac_ext=c 3731ac_cpp='$CPP $CPPFLAGS' 3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3734ac_compiler_gnu=$ac_cv_c_compiler_gnu 3735 3736depcc="$CC" am_compiler_list= 3737 3738{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3739$as_echo_n "checking dependency style of $depcc... " >&6; } 3740if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3744 # We make a subdir and do the tests there. Otherwise we can end up 3745 # making bogus files that we don't know about and never remove. For 3746 # instance it was reported that on HP-UX the gcc test will end up 3747 # making a dummy file named `D' -- because `-MD' means `put the output 3748 # in D'. 3749 mkdir conftest.dir 3750 # Copy depcomp to subdir because otherwise we won't find it if we're 3751 # using a relative directory. 3752 cp "$am_depcomp" conftest.dir 3753 cd conftest.dir 3754 # We will build objects and dependencies in a subdirectory because 3755 # it helps to detect inapplicable dependency modes. For instance 3756 # both Tru64's cc and ICC support -MD to output dependencies as a 3757 # side effect of compilation, but ICC will put the dependencies in 3758 # the current directory while Tru64 will put them in the object 3759 # directory. 3760 mkdir sub 3761 3762 am_cv_CC_dependencies_compiler_type=none 3763 if test "$am_compiler_list" = ""; then 3764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3765 fi 3766 am__universal=false 3767 case " $depcc " in #( 3768 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3769 esac 3770 3771 for depmode in $am_compiler_list; do 3772 # Setup a source with many dependencies, because some compilers 3773 # like to wrap large dependency lists on column 80 (with \), and 3774 # we should not choose a depcomp mode which is confused by this. 3775 # 3776 # We need to recreate these files for each test, as the compiler may 3777 # overwrite some of them when testing with obscure command lines. 3778 # This happens at least with the AIX C compiler. 3779 : > sub/conftest.c 3780 for i in 1 2 3 4 5 6; do 3781 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3783 # Solaris 8's {/usr,}/bin/sh. 3784 touch sub/conftst$i.h 3785 done 3786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3787 3788 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3789 # mode. It turns out that the SunPro C++ compiler does not properly 3790 # handle `-M -o', and we need to detect this. Also, some Intel 3791 # versions had trouble with output in subdirs 3792 am__obj=sub/conftest.${OBJEXT-o} 3793 am__minus_obj="-o $am__obj" 3794 case $depmode in 3795 gcc) 3796 # This depmode causes a compiler race in universal mode. 3797 test "$am__universal" = false || continue 3798 ;; 3799 nosideeffect) 3800 # after this tag, mechanisms are not by side-effect, so they'll 3801 # only be used when explicitly requested 3802 if test "x$enable_dependency_tracking" = xyes; then 3803 continue 3804 else 3805 break 3806 fi 3807 ;; 3808 msvisualcpp | msvcmsys) 3809 # This compiler won't grok `-c -o', but also, the minuso test has 3810 # not run yet. These depmodes are late enough in the game, and 3811 # so weak that their functioning should not be impacted. 3812 am__obj=conftest.${OBJEXT-o} 3813 am__minus_obj= 3814 ;; 3815 none) break ;; 3816 esac 3817 if depmode=$depmode \ 3818 source=sub/conftest.c object=$am__obj \ 3819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3820 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3821 >/dev/null 2>conftest.err && 3822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3824 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3826 # icc doesn't choke on unknown options, it will just issue warnings 3827 # or remarks (even with -Werror). So we grep stderr for any message 3828 # that says an option was ignored or not supported. 3829 # When given -MP, icc 7.0 and 7.1 complain thusly: 3830 # icc: Command line warning: ignoring option '-M'; no argument required 3831 # The diagnosis changed in icc 8.0: 3832 # icc: Command line remark: option '-MP' not supported 3833 if (grep 'ignoring option' conftest.err || 3834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3835 am_cv_CC_dependencies_compiler_type=$depmode 3836 break 3837 fi 3838 fi 3839 done 3840 3841 cd .. 3842 rm -rf conftest.dir 3843else 3844 am_cv_CC_dependencies_compiler_type=none 3845fi 3846 3847fi 3848{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3849$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3850CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3851 3852 if 3853 test "x$enable_dependency_tracking" != xno \ 3854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3855 am__fastdepCC_TRUE= 3856 am__fastdepCC_FALSE='#' 3857else 3858 am__fastdepCC_TRUE='#' 3859 am__fastdepCC_FALSE= 3860fi 3861 3862 3863{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3864$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3865if test "${ac_cv_path_SED+set}" = set; then 3866 $as_echo_n "(cached) " >&6 3867else 3868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3869 for ac_i in 1 2 3 4 5 6 7; do 3870 ac_script="$ac_script$as_nl$ac_script" 3871 done 3872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3873 $as_unset ac_script || ac_script= 3874 if test -z "$SED"; then 3875 ac_path_SED_found=false 3876 # Loop through the user's path and test for each of PROGNAME-LIST 3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH 3879do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for ac_prog in sed gsed; do 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3885 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3886# Check for GNU ac_path_SED and select it if it is found. 3887 # Check for GNU $ac_path_SED 3888case `"$ac_path_SED" --version 2>&1` in 3889*GNU*) 3890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3891*) 3892 ac_count=0 3893 $as_echo_n 0123456789 >"conftest.in" 3894 while : 3895 do 3896 cat "conftest.in" "conftest.in" >"conftest.tmp" 3897 mv "conftest.tmp" "conftest.in" 3898 cp "conftest.in" "conftest.nl" 3899 $as_echo '' >> "conftest.nl" 3900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3902 ac_count=`expr $ac_count + 1` 3903 if test $ac_count -gt ${ac_path_SED_max-0}; then 3904 # Best one so far, save it but keep looking for a better one 3905 ac_cv_path_SED="$ac_path_SED" 3906 ac_path_SED_max=$ac_count 3907 fi 3908 # 10*(2^10) chars as input seems more than enough 3909 test $ac_count -gt 10 && break 3910 done 3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3912esac 3913 3914 $ac_path_SED_found && break 3 3915 done 3916 done 3917done 3918IFS=$as_save_IFS 3919 if test -z "$ac_cv_path_SED"; then 3920 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3921$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3922 { (exit 1); exit 1; }; } 3923 fi 3924else 3925 ac_cv_path_SED=$SED 3926fi 3927 3928fi 3929{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3930$as_echo "$ac_cv_path_SED" >&6; } 3931 SED="$ac_cv_path_SED" 3932 rm -f conftest.sed 3933 3934test -z "$SED" && SED=sed 3935Xsed="$SED -e 1s/^X//" 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3948$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3949if test "${ac_cv_path_GREP+set}" = set; then 3950 $as_echo_n "(cached) " >&6 3951else 3952 if test -z "$GREP"; then 3953 ac_path_GREP_found=false 3954 # Loop through the user's path and test for each of PROGNAME-LIST 3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3957do 3958 IFS=$as_save_IFS 3959 test -z "$as_dir" && as_dir=. 3960 for ac_prog in grep ggrep; do 3961 for ac_exec_ext in '' $ac_executable_extensions; do 3962 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3963 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3964# Check for GNU ac_path_GREP and select it if it is found. 3965 # Check for GNU $ac_path_GREP 3966case `"$ac_path_GREP" --version 2>&1` in 3967*GNU*) 3968 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3969*) 3970 ac_count=0 3971 $as_echo_n 0123456789 >"conftest.in" 3972 while : 3973 do 3974 cat "conftest.in" "conftest.in" >"conftest.tmp" 3975 mv "conftest.tmp" "conftest.in" 3976 cp "conftest.in" "conftest.nl" 3977 $as_echo 'GREP' >> "conftest.nl" 3978 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3980 ac_count=`expr $ac_count + 1` 3981 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3982 # Best one so far, save it but keep looking for a better one 3983 ac_cv_path_GREP="$ac_path_GREP" 3984 ac_path_GREP_max=$ac_count 3985 fi 3986 # 10*(2^10) chars as input seems more than enough 3987 test $ac_count -gt 10 && break 3988 done 3989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3990esac 3991 3992 $ac_path_GREP_found && break 3 3993 done 3994 done 3995done 3996IFS=$as_save_IFS 3997 if test -z "$ac_cv_path_GREP"; then 3998 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3999$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4000 { (exit 1); exit 1; }; } 4001 fi 4002else 4003 ac_cv_path_GREP=$GREP 4004fi 4005 4006fi 4007{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4008$as_echo "$ac_cv_path_GREP" >&6; } 4009 GREP="$ac_cv_path_GREP" 4010 4011 4012{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4013$as_echo_n "checking for egrep... " >&6; } 4014if test "${ac_cv_path_EGREP+set}" = set; then 4015 $as_echo_n "(cached) " >&6 4016else 4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4018 then ac_cv_path_EGREP="$GREP -E" 4019 else 4020 if test -z "$EGREP"; then 4021 ac_path_EGREP_found=false 4022 # Loop through the user's path and test for each of PROGNAME-LIST 4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4025do 4026 IFS=$as_save_IFS 4027 test -z "$as_dir" && as_dir=. 4028 for ac_prog in egrep; do 4029 for ac_exec_ext in '' $ac_executable_extensions; do 4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4031 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4032# Check for GNU ac_path_EGREP and select it if it is found. 4033 # Check for GNU $ac_path_EGREP 4034case `"$ac_path_EGREP" --version 2>&1` in 4035*GNU*) 4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4037*) 4038 ac_count=0 4039 $as_echo_n 0123456789 >"conftest.in" 4040 while : 4041 do 4042 cat "conftest.in" "conftest.in" >"conftest.tmp" 4043 mv "conftest.tmp" "conftest.in" 4044 cp "conftest.in" "conftest.nl" 4045 $as_echo 'EGREP' >> "conftest.nl" 4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4048 ac_count=`expr $ac_count + 1` 4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4050 # Best one so far, save it but keep looking for a better one 4051 ac_cv_path_EGREP="$ac_path_EGREP" 4052 ac_path_EGREP_max=$ac_count 4053 fi 4054 # 10*(2^10) chars as input seems more than enough 4055 test $ac_count -gt 10 && break 4056 done 4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4058esac 4059 4060 $ac_path_EGREP_found && break 3 4061 done 4062 done 4063done 4064IFS=$as_save_IFS 4065 if test -z "$ac_cv_path_EGREP"; then 4066 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4067$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4068 { (exit 1); exit 1; }; } 4069 fi 4070else 4071 ac_cv_path_EGREP=$EGREP 4072fi 4073 4074 fi 4075fi 4076{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4077$as_echo "$ac_cv_path_EGREP" >&6; } 4078 EGREP="$ac_cv_path_EGREP" 4079 4080 4081{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4082$as_echo_n "checking for fgrep... " >&6; } 4083if test "${ac_cv_path_FGREP+set}" = set; then 4084 $as_echo_n "(cached) " >&6 4085else 4086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4087 then ac_cv_path_FGREP="$GREP -F" 4088 else 4089 if test -z "$FGREP"; then 4090 ac_path_FGREP_found=false 4091 # Loop through the user's path and test for each of PROGNAME-LIST 4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4094do 4095 IFS=$as_save_IFS 4096 test -z "$as_dir" && as_dir=. 4097 for ac_prog in fgrep; do 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4101# Check for GNU ac_path_FGREP and select it if it is found. 4102 # Check for GNU $ac_path_FGREP 4103case `"$ac_path_FGREP" --version 2>&1` in 4104*GNU*) 4105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4106*) 4107 ac_count=0 4108 $as_echo_n 0123456789 >"conftest.in" 4109 while : 4110 do 4111 cat "conftest.in" "conftest.in" >"conftest.tmp" 4112 mv "conftest.tmp" "conftest.in" 4113 cp "conftest.in" "conftest.nl" 4114 $as_echo 'FGREP' >> "conftest.nl" 4115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4117 ac_count=`expr $ac_count + 1` 4118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4119 # Best one so far, save it but keep looking for a better one 4120 ac_cv_path_FGREP="$ac_path_FGREP" 4121 ac_path_FGREP_max=$ac_count 4122 fi 4123 # 10*(2^10) chars as input seems more than enough 4124 test $ac_count -gt 10 && break 4125 done 4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4127esac 4128 4129 $ac_path_FGREP_found && break 3 4130 done 4131 done 4132done 4133IFS=$as_save_IFS 4134 if test -z "$ac_cv_path_FGREP"; then 4135 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4136$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4137 { (exit 1); exit 1; }; } 4138 fi 4139else 4140 ac_cv_path_FGREP=$FGREP 4141fi 4142 4143 fi 4144fi 4145{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4146$as_echo "$ac_cv_path_FGREP" >&6; } 4147 FGREP="$ac_cv_path_FGREP" 4148 4149 4150test -z "$GREP" && GREP=grep 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170# Check whether --with-gnu-ld was given. 4171if test "${with_gnu_ld+set}" = set; then 4172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4173else 4174 with_gnu_ld=no 4175fi 4176 4177ac_prog=ld 4178if test "$GCC" = yes; then 4179 # Check if gcc -print-prog-name=ld gives a path. 4180 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4181$as_echo_n "checking for ld used by $CC... " >&6; } 4182 case $host in 4183 *-*-mingw*) 4184 # gcc leaves a trailing carriage return which upsets mingw 4185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4186 *) 4187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4188 esac 4189 case $ac_prog in 4190 # Accept absolute paths. 4191 [\\/]* | ?:[\\/]*) 4192 re_direlt='/[^/][^/]*/\.\./' 4193 # Canonicalize the pathname of ld 4194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4197 done 4198 test -z "$LD" && LD="$ac_prog" 4199 ;; 4200 "") 4201 # If it fails, then pretend we aren't using GCC. 4202 ac_prog=ld 4203 ;; 4204 *) 4205 # If it is relative, then search for the first ld in PATH. 4206 with_gnu_ld=unknown 4207 ;; 4208 esac 4209elif test "$with_gnu_ld" = yes; then 4210 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4211$as_echo_n "checking for GNU ld... " >&6; } 4212else 4213 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4214$as_echo_n "checking for non-GNU ld... " >&6; } 4215fi 4216if test "${lt_cv_path_LD+set}" = set; then 4217 $as_echo_n "(cached) " >&6 4218else 4219 if test -z "$LD"; then 4220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4221 for ac_dir in $PATH; do 4222 IFS="$lt_save_ifs" 4223 test -z "$ac_dir" && ac_dir=. 4224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4225 lt_cv_path_LD="$ac_dir/$ac_prog" 4226 # Check to see if the program is GNU ld. I'd rather use --version, 4227 # but apparently some variants of GNU ld only accept -v. 4228 # Break only if it was the GNU/non-GNU ld that we prefer. 4229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4230 *GNU* | *'with BFD'*) 4231 test "$with_gnu_ld" != no && break 4232 ;; 4233 *) 4234 test "$with_gnu_ld" != yes && break 4235 ;; 4236 esac 4237 fi 4238 done 4239 IFS="$lt_save_ifs" 4240else 4241 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4242fi 4243fi 4244 4245LD="$lt_cv_path_LD" 4246if test -n "$LD"; then 4247 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4248$as_echo "$LD" >&6; } 4249else 4250 { $as_echo "$as_me:$LINENO: result: no" >&5 4251$as_echo "no" >&6; } 4252fi 4253test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4254$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4255 { (exit 1); exit 1; }; } 4256{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4257$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4258if test "${lt_cv_prog_gnu_ld+set}" = set; then 4259 $as_echo_n "(cached) " >&6 4260else 4261 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4262case `$LD -v 2>&1 </dev/null` in 4263*GNU* | *'with BFD'*) 4264 lt_cv_prog_gnu_ld=yes 4265 ;; 4266*) 4267 lt_cv_prog_gnu_ld=no 4268 ;; 4269esac 4270fi 4271{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4272$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4273with_gnu_ld=$lt_cv_prog_gnu_ld 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4284$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4285if test "${lt_cv_path_NM+set}" = set; then 4286 $as_echo_n "(cached) " >&6 4287else 4288 if test -n "$NM"; then 4289 # Let the user override the test. 4290 lt_cv_path_NM="$NM" 4291else 4292 lt_nm_to_check="${ac_tool_prefix}nm" 4293 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4294 lt_nm_to_check="$lt_nm_to_check nm" 4295 fi 4296 for lt_tmp_nm in $lt_nm_to_check; do 4297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4298 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4299 IFS="$lt_save_ifs" 4300 test -z "$ac_dir" && ac_dir=. 4301 tmp_nm="$ac_dir/$lt_tmp_nm" 4302 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4303 # Check to see if the nm accepts a BSD-compat flag. 4304 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4305 # nm: unknown option "B" ignored 4306 # Tru64's nm complains that /dev/null is an invalid object file 4307 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4308 */dev/null* | *'Invalid file or object type'*) 4309 lt_cv_path_NM="$tmp_nm -B" 4310 break 4311 ;; 4312 *) 4313 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4314 */dev/null*) 4315 lt_cv_path_NM="$tmp_nm -p" 4316 break 4317 ;; 4318 *) 4319 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4320 continue # so that we can try to find one that supports BSD flags 4321 ;; 4322 esac 4323 ;; 4324 esac 4325 fi 4326 done 4327 IFS="$lt_save_ifs" 4328 done 4329 : ${lt_cv_path_NM=no} 4330fi 4331fi 4332{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4333$as_echo "$lt_cv_path_NM" >&6; } 4334if test "$lt_cv_path_NM" != "no"; then 4335 NM="$lt_cv_path_NM" 4336else 4337 # Didn't find any BSD compatible name lister, look for dumpbin. 4338 if test -n "$ac_tool_prefix"; then 4339 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4340 do 4341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4342set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4344$as_echo_n "checking for $ac_word... " >&6; } 4345if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4346 $as_echo_n "(cached) " >&6 4347else 4348 if test -n "$DUMPBIN"; then 4349 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4350else 4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4352for as_dir in $PATH 4353do 4354 IFS=$as_save_IFS 4355 test -z "$as_dir" && as_dir=. 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4358 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4360 break 2 4361 fi 4362done 4363done 4364IFS=$as_save_IFS 4365 4366fi 4367fi 4368DUMPBIN=$ac_cv_prog_DUMPBIN 4369if test -n "$DUMPBIN"; then 4370 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4371$as_echo "$DUMPBIN" >&6; } 4372else 4373 { $as_echo "$as_me:$LINENO: result: no" >&5 4374$as_echo "no" >&6; } 4375fi 4376 4377 4378 test -n "$DUMPBIN" && break 4379 done 4380fi 4381if test -z "$DUMPBIN"; then 4382 ac_ct_DUMPBIN=$DUMPBIN 4383 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4384do 4385 # Extract the first word of "$ac_prog", so it can be a program name with args. 4386set dummy $ac_prog; ac_word=$2 4387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4388$as_echo_n "checking for $ac_word... " >&6; } 4389if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4390 $as_echo_n "(cached) " >&6 4391else 4392 if test -n "$ac_ct_DUMPBIN"; then 4393 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4394else 4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4396for as_dir in $PATH 4397do 4398 IFS=$as_save_IFS 4399 test -z "$as_dir" && as_dir=. 4400 for ac_exec_ext in '' $ac_executable_extensions; do 4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4402 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4404 break 2 4405 fi 4406done 4407done 4408IFS=$as_save_IFS 4409 4410fi 4411fi 4412ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4413if test -n "$ac_ct_DUMPBIN"; then 4414 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4415$as_echo "$ac_ct_DUMPBIN" >&6; } 4416else 4417 { $as_echo "$as_me:$LINENO: result: no" >&5 4418$as_echo "no" >&6; } 4419fi 4420 4421 4422 test -n "$ac_ct_DUMPBIN" && break 4423done 4424 4425 if test "x$ac_ct_DUMPBIN" = x; then 4426 DUMPBIN=":" 4427 else 4428 case $cross_compiling:$ac_tool_warned in 4429yes:) 4430{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4432ac_tool_warned=yes ;; 4433esac 4434 DUMPBIN=$ac_ct_DUMPBIN 4435 fi 4436fi 4437 4438 4439 if test "$DUMPBIN" != ":"; then 4440 NM="$DUMPBIN" 4441 fi 4442fi 4443test -z "$NM" && NM=nm 4444 4445 4446 4447 4448 4449 4450{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4451$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4452if test "${lt_cv_nm_interface+set}" = set; then 4453 $as_echo_n "(cached) " >&6 4454else 4455 lt_cv_nm_interface="BSD nm" 4456 echo "int some_variable = 0;" > conftest.$ac_ext 4457 (eval echo "\"\$as_me:4457: $ac_compile\"" >&5) 4458 (eval "$ac_compile" 2>conftest.err) 4459 cat conftest.err >&5 4460 (eval echo "\"\$as_me:4460: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4461 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4462 cat conftest.err >&5 4463 (eval echo "\"\$as_me:4463: output\"" >&5) 4464 cat conftest.out >&5 4465 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4466 lt_cv_nm_interface="MS dumpbin" 4467 fi 4468 rm -f conftest* 4469fi 4470{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4471$as_echo "$lt_cv_nm_interface" >&6; } 4472 4473{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4474$as_echo_n "checking whether ln -s works... " >&6; } 4475LN_S=$as_ln_s 4476if test "$LN_S" = "ln -s"; then 4477 { $as_echo "$as_me:$LINENO: result: yes" >&5 4478$as_echo "yes" >&6; } 4479else 4480 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4481$as_echo "no, using $LN_S" >&6; } 4482fi 4483 4484# find the maximum length of command line arguments 4485{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4486$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4487if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4488 $as_echo_n "(cached) " >&6 4489else 4490 i=0 4491 teststring="ABCD" 4492 4493 case $build_os in 4494 msdosdjgpp*) 4495 # On DJGPP, this test can blow up pretty badly due to problems in libc 4496 # (any single argument exceeding 2000 bytes causes a buffer overrun 4497 # during glob expansion). Even if it were fixed, the result of this 4498 # check would be larger than it should be. 4499 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4500 ;; 4501 4502 gnu*) 4503 # Under GNU Hurd, this test is not required because there is 4504 # no limit to the length of command line arguments. 4505 # Libtool will interpret -1 as no limit whatsoever 4506 lt_cv_sys_max_cmd_len=-1; 4507 ;; 4508 4509 cygwin* | mingw* | cegcc*) 4510 # On Win9x/ME, this test blows up -- it succeeds, but takes 4511 # about 5 minutes as the teststring grows exponentially. 4512 # Worse, since 9x/ME are not pre-emptively multitasking, 4513 # you end up with a "frozen" computer, even though with patience 4514 # the test eventually succeeds (with a max line length of 256k). 4515 # Instead, let's just punt: use the minimum linelength reported by 4516 # all of the supported platforms: 8192 (on NT/2K/XP). 4517 lt_cv_sys_max_cmd_len=8192; 4518 ;; 4519 4520 amigaos*) 4521 # On AmigaOS with pdksh, this test takes hours, literally. 4522 # So we just punt and use a minimum line length of 8192. 4523 lt_cv_sys_max_cmd_len=8192; 4524 ;; 4525 4526 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4527 # This has been around since 386BSD, at least. Likely further. 4528 if test -x /sbin/sysctl; then 4529 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4530 elif test -x /usr/sbin/sysctl; then 4531 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4532 else 4533 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4534 fi 4535 # And add a safety zone 4536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4538 ;; 4539 4540 interix*) 4541 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4542 lt_cv_sys_max_cmd_len=196608 4543 ;; 4544 4545 osf*) 4546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4548 # nice to cause kernel panics so lets avoid the loop below. 4549 # First set a reasonable default. 4550 lt_cv_sys_max_cmd_len=16384 4551 # 4552 if test -x /sbin/sysconfig; then 4553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4554 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4555 esac 4556 fi 4557 ;; 4558 sco3.2v5*) 4559 lt_cv_sys_max_cmd_len=102400 4560 ;; 4561 sysv5* | sco5v6* | sysv4.2uw2*) 4562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4563 if test -n "$kargmax"; then 4564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4565 else 4566 lt_cv_sys_max_cmd_len=32768 4567 fi 4568 ;; 4569 *) 4570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4571 if test -n "$lt_cv_sys_max_cmd_len"; then 4572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4574 else 4575 # Make teststring a little bigger before we do anything with it. 4576 # a 1K string should be a reasonable start. 4577 for i in 1 2 3 4 5 6 7 8 ; do 4578 teststring=$teststring$teststring 4579 done 4580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4581 # If test is not a shell built-in, we'll probably end up computing a 4582 # maximum length that is only half of the actual maximum length, but 4583 # we can't tell. 4584 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4585 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4586 test $i != 17 # 1/2 MB should be enough 4587 do 4588 i=`expr $i + 1` 4589 teststring=$teststring$teststring 4590 done 4591 # Only check the string length outside the loop. 4592 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4593 teststring= 4594 # Add a significant safety factor because C++ compilers can tack on 4595 # massive amounts of additional arguments before passing them to the 4596 # linker. It appears as though 1/2 is a usable value. 4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4598 fi 4599 ;; 4600 esac 4601 4602fi 4603 4604if test -n $lt_cv_sys_max_cmd_len ; then 4605 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4606$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4607else 4608 { $as_echo "$as_me:$LINENO: result: none" >&5 4609$as_echo "none" >&6; } 4610fi 4611max_cmd_len=$lt_cv_sys_max_cmd_len 4612 4613 4614 4615 4616 4617 4618: ${CP="cp -f"} 4619: ${MV="mv -f"} 4620: ${RM="rm -f"} 4621 4622{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4623$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4624# Try some XSI features 4625xsi_shell=no 4626( _lt_dummy="a/b/c" 4627 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4628 = c,a/b,, \ 4629 && eval 'test $(( 1 + 1 )) -eq 2 \ 4630 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4631 && xsi_shell=yes 4632{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4633$as_echo "$xsi_shell" >&6; } 4634 4635 4636{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4637$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4638lt_shell_append=no 4639( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4640 >/dev/null 2>&1 \ 4641 && lt_shell_append=yes 4642{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4643$as_echo "$lt_shell_append" >&6; } 4644 4645 4646if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4647 lt_unset=unset 4648else 4649 lt_unset=false 4650fi 4651 4652 4653 4654 4655 4656# test EBCDIC or ASCII 4657case `echo X|tr X '\101'` in 4658 A) # ASCII based system 4659 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4660 lt_SP2NL='tr \040 \012' 4661 lt_NL2SP='tr \015\012 \040\040' 4662 ;; 4663 *) # EBCDIC based system 4664 lt_SP2NL='tr \100 \n' 4665 lt_NL2SP='tr \r\n \100\100' 4666 ;; 4667esac 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4678$as_echo_n "checking for $LD option to reload object files... " >&6; } 4679if test "${lt_cv_ld_reload_flag+set}" = set; then 4680 $as_echo_n "(cached) " >&6 4681else 4682 lt_cv_ld_reload_flag='-r' 4683fi 4684{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4685$as_echo "$lt_cv_ld_reload_flag" >&6; } 4686reload_flag=$lt_cv_ld_reload_flag 4687case $reload_flag in 4688"" | " "*) ;; 4689*) reload_flag=" $reload_flag" ;; 4690esac 4691reload_cmds='$LD$reload_flag -o $output$reload_objs' 4692case $host_os in 4693 darwin*) 4694 if test "$GCC" = yes; then 4695 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4696 else 4697 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4698 fi 4699 ;; 4700esac 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710if test -n "$ac_tool_prefix"; then 4711 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4712set dummy ${ac_tool_prefix}objdump; ac_word=$2 4713{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4714$as_echo_n "checking for $ac_word... " >&6; } 4715if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4716 $as_echo_n "(cached) " >&6 4717else 4718 if test -n "$OBJDUMP"; then 4719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4720else 4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4722for as_dir in $PATH 4723do 4724 IFS=$as_save_IFS 4725 test -z "$as_dir" && as_dir=. 4726 for ac_exec_ext in '' $ac_executable_extensions; do 4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4728 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4730 break 2 4731 fi 4732done 4733done 4734IFS=$as_save_IFS 4735 4736fi 4737fi 4738OBJDUMP=$ac_cv_prog_OBJDUMP 4739if test -n "$OBJDUMP"; then 4740 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4741$as_echo "$OBJDUMP" >&6; } 4742else 4743 { $as_echo "$as_me:$LINENO: result: no" >&5 4744$as_echo "no" >&6; } 4745fi 4746 4747 4748fi 4749if test -z "$ac_cv_prog_OBJDUMP"; then 4750 ac_ct_OBJDUMP=$OBJDUMP 4751 # Extract the first word of "objdump", so it can be a program name with args. 4752set dummy objdump; ac_word=$2 4753{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4754$as_echo_n "checking for $ac_word... " >&6; } 4755if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4756 $as_echo_n "(cached) " >&6 4757else 4758 if test -n "$ac_ct_OBJDUMP"; then 4759 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4760else 4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4762for as_dir in $PATH 4763do 4764 IFS=$as_save_IFS 4765 test -z "$as_dir" && as_dir=. 4766 for ac_exec_ext in '' $ac_executable_extensions; do 4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4768 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4770 break 2 4771 fi 4772done 4773done 4774IFS=$as_save_IFS 4775 4776fi 4777fi 4778ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4779if test -n "$ac_ct_OBJDUMP"; then 4780 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4781$as_echo "$ac_ct_OBJDUMP" >&6; } 4782else 4783 { $as_echo "$as_me:$LINENO: result: no" >&5 4784$as_echo "no" >&6; } 4785fi 4786 4787 if test "x$ac_ct_OBJDUMP" = x; then 4788 OBJDUMP="false" 4789 else 4790 case $cross_compiling:$ac_tool_warned in 4791yes:) 4792{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4794ac_tool_warned=yes ;; 4795esac 4796 OBJDUMP=$ac_ct_OBJDUMP 4797 fi 4798else 4799 OBJDUMP="$ac_cv_prog_OBJDUMP" 4800fi 4801 4802test -z "$OBJDUMP" && OBJDUMP=objdump 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4813$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4814if test "${lt_cv_deplibs_check_method+set}" = set; then 4815 $as_echo_n "(cached) " >&6 4816else 4817 lt_cv_file_magic_cmd='$MAGIC_CMD' 4818lt_cv_file_magic_test_file= 4819lt_cv_deplibs_check_method='unknown' 4820# Need to set the preceding variable on all platforms that support 4821# interlibrary dependencies. 4822# 'none' -- dependencies not supported. 4823# `unknown' -- same as none, but documents that we really don't know. 4824# 'pass_all' -- all dependencies passed with no checks. 4825# 'test_compile' -- check by making test program. 4826# 'file_magic [[regex]]' -- check by looking for files in library path 4827# which responds to the $file_magic_cmd with a given extended regex. 4828# If you have `file' or equivalent on your system and you're not sure 4829# whether `pass_all' will *always* work, you probably want this one. 4830 4831case $host_os in 4832aix[4-9]*) 4833 lt_cv_deplibs_check_method=pass_all 4834 ;; 4835 4836beos*) 4837 lt_cv_deplibs_check_method=pass_all 4838 ;; 4839 4840bsdi[45]*) 4841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4842 lt_cv_file_magic_cmd='/usr/bin/file -L' 4843 lt_cv_file_magic_test_file=/shlib/libc.so 4844 ;; 4845 4846cygwin*) 4847 # func_win32_libid is a shell function defined in ltmain.sh 4848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4849 lt_cv_file_magic_cmd='func_win32_libid' 4850 ;; 4851 4852mingw* | pw32*) 4853 # Base MSYS/MinGW do not provide the 'file' command needed by 4854 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4855 # unless we find 'file', for example because we are cross-compiling. 4856 if ( file / ) >/dev/null 2>&1; then 4857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4858 lt_cv_file_magic_cmd='func_win32_libid' 4859 else 4860 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4861 lt_cv_file_magic_cmd='$OBJDUMP -f' 4862 fi 4863 ;; 4864 4865cegcc) 4866 # use the weaker test based on 'objdump'. See mingw*. 4867 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4868 lt_cv_file_magic_cmd='$OBJDUMP -f' 4869 ;; 4870 4871darwin* | rhapsody*) 4872 lt_cv_deplibs_check_method=pass_all 4873 ;; 4874 4875freebsd* | dragonfly*) 4876 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4877 case $host_cpu in 4878 i*86 ) 4879 # Not sure whether the presence of OpenBSD here was a mistake. 4880 # Let's accept both of them until this is cleared up. 4881 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4882 lt_cv_file_magic_cmd=/usr/bin/file 4883 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4884 ;; 4885 esac 4886 else 4887 lt_cv_deplibs_check_method=pass_all 4888 fi 4889 ;; 4890 4891gnu*) 4892 lt_cv_deplibs_check_method=pass_all 4893 ;; 4894 4895hpux10.20* | hpux11*) 4896 lt_cv_file_magic_cmd=/usr/bin/file 4897 case $host_cpu in 4898 ia64*) 4899 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4900 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4901 ;; 4902 hppa*64*) 4903 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]' 4904 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4905 ;; 4906 *) 4907 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4908 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4909 ;; 4910 esac 4911 ;; 4912 4913interix[3-9]*) 4914 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4916 ;; 4917 4918irix5* | irix6* | nonstopux*) 4919 case $LD in 4920 *-32|*"-32 ") libmagic=32-bit;; 4921 *-n32|*"-n32 ") libmagic=N32;; 4922 *-64|*"-64 ") libmagic=64-bit;; 4923 *) libmagic=never-match;; 4924 esac 4925 lt_cv_deplibs_check_method=pass_all 4926 ;; 4927 4928# This must be Linux ELF. 4929linux* | k*bsd*-gnu) 4930 lt_cv_deplibs_check_method=pass_all 4931 ;; 4932 4933netbsd*) 4934 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4936 else 4937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4938 fi 4939 ;; 4940 4941newos6*) 4942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4943 lt_cv_file_magic_cmd=/usr/bin/file 4944 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4945 ;; 4946 4947*nto* | *qnx*) 4948 lt_cv_deplibs_check_method=pass_all 4949 ;; 4950 4951openbsd*) 4952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4954 else 4955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4956 fi 4957 ;; 4958 4959osf3* | osf4* | osf5*) 4960 lt_cv_deplibs_check_method=pass_all 4961 ;; 4962 4963rdos*) 4964 lt_cv_deplibs_check_method=pass_all 4965 ;; 4966 4967solaris*) 4968 lt_cv_deplibs_check_method=pass_all 4969 ;; 4970 4971sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4972 lt_cv_deplibs_check_method=pass_all 4973 ;; 4974 4975sysv4 | sysv4.3*) 4976 case $host_vendor in 4977 motorola) 4978 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]' 4979 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4980 ;; 4981 ncr) 4982 lt_cv_deplibs_check_method=pass_all 4983 ;; 4984 sequent) 4985 lt_cv_file_magic_cmd='/bin/file' 4986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4987 ;; 4988 sni) 4989 lt_cv_file_magic_cmd='/bin/file' 4990 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4991 lt_cv_file_magic_test_file=/lib/libc.so 4992 ;; 4993 siemens) 4994 lt_cv_deplibs_check_method=pass_all 4995 ;; 4996 pc) 4997 lt_cv_deplibs_check_method=pass_all 4998 ;; 4999 esac 5000 ;; 5001 5002tpf*) 5003 lt_cv_deplibs_check_method=pass_all 5004 ;; 5005esac 5006 5007fi 5008{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5009$as_echo "$lt_cv_deplibs_check_method" >&6; } 5010file_magic_cmd=$lt_cv_file_magic_cmd 5011deplibs_check_method=$lt_cv_deplibs_check_method 5012test -z "$deplibs_check_method" && deplibs_check_method=unknown 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025if test -n "$ac_tool_prefix"; then 5026 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5027set dummy ${ac_tool_prefix}ar; ac_word=$2 5028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5029$as_echo_n "checking for $ac_word... " >&6; } 5030if test "${ac_cv_prog_AR+set}" = set; then 5031 $as_echo_n "(cached) " >&6 5032else 5033 if test -n "$AR"; then 5034 ac_cv_prog_AR="$AR" # Let the user override the test. 5035else 5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5037for as_dir in $PATH 5038do 5039 IFS=$as_save_IFS 5040 test -z "$as_dir" && as_dir=. 5041 for ac_exec_ext in '' $ac_executable_extensions; do 5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5043 ac_cv_prog_AR="${ac_tool_prefix}ar" 5044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5045 break 2 5046 fi 5047done 5048done 5049IFS=$as_save_IFS 5050 5051fi 5052fi 5053AR=$ac_cv_prog_AR 5054if test -n "$AR"; then 5055 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5056$as_echo "$AR" >&6; } 5057else 5058 { $as_echo "$as_me:$LINENO: result: no" >&5 5059$as_echo "no" >&6; } 5060fi 5061 5062 5063fi 5064if test -z "$ac_cv_prog_AR"; then 5065 ac_ct_AR=$AR 5066 # Extract the first word of "ar", so it can be a program name with args. 5067set dummy ar; ac_word=$2 5068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5069$as_echo_n "checking for $ac_word... " >&6; } 5070if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5071 $as_echo_n "(cached) " >&6 5072else 5073 if test -n "$ac_ct_AR"; then 5074 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5075else 5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077for as_dir in $PATH 5078do 5079 IFS=$as_save_IFS 5080 test -z "$as_dir" && as_dir=. 5081 for ac_exec_ext in '' $ac_executable_extensions; do 5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5083 ac_cv_prog_ac_ct_AR="ar" 5084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5085 break 2 5086 fi 5087done 5088done 5089IFS=$as_save_IFS 5090 5091fi 5092fi 5093ac_ct_AR=$ac_cv_prog_ac_ct_AR 5094if test -n "$ac_ct_AR"; then 5095 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5096$as_echo "$ac_ct_AR" >&6; } 5097else 5098 { $as_echo "$as_me:$LINENO: result: no" >&5 5099$as_echo "no" >&6; } 5100fi 5101 5102 if test "x$ac_ct_AR" = x; then 5103 AR="false" 5104 else 5105 case $cross_compiling:$ac_tool_warned in 5106yes:) 5107{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5109ac_tool_warned=yes ;; 5110esac 5111 AR=$ac_ct_AR 5112 fi 5113else 5114 AR="$ac_cv_prog_AR" 5115fi 5116 5117test -z "$AR" && AR=ar 5118test -z "$AR_FLAGS" && AR_FLAGS=cru 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130if test -n "$ac_tool_prefix"; then 5131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5132set dummy ${ac_tool_prefix}strip; ac_word=$2 5133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5134$as_echo_n "checking for $ac_word... " >&6; } 5135if test "${ac_cv_prog_STRIP+set}" = set; then 5136 $as_echo_n "(cached) " >&6 5137else 5138 if test -n "$STRIP"; then 5139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5140else 5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5148 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5150 break 2 5151 fi 5152done 5153done 5154IFS=$as_save_IFS 5155 5156fi 5157fi 5158STRIP=$ac_cv_prog_STRIP 5159if test -n "$STRIP"; then 5160 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5161$as_echo "$STRIP" >&6; } 5162else 5163 { $as_echo "$as_me:$LINENO: result: no" >&5 5164$as_echo "no" >&6; } 5165fi 5166 5167 5168fi 5169if test -z "$ac_cv_prog_STRIP"; then 5170 ac_ct_STRIP=$STRIP 5171 # Extract the first word of "strip", so it can be a program name with args. 5172set dummy strip; ac_word=$2 5173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5174$as_echo_n "checking for $ac_word... " >&6; } 5175if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5176 $as_echo_n "(cached) " >&6 5177else 5178 if test -n "$ac_ct_STRIP"; then 5179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5180else 5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5188 ac_cv_prog_ac_ct_STRIP="strip" 5189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193done 5194IFS=$as_save_IFS 5195 5196fi 5197fi 5198ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5199if test -n "$ac_ct_STRIP"; then 5200 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5201$as_echo "$ac_ct_STRIP" >&6; } 5202else 5203 { $as_echo "$as_me:$LINENO: result: no" >&5 5204$as_echo "no" >&6; } 5205fi 5206 5207 if test "x$ac_ct_STRIP" = x; then 5208 STRIP=":" 5209 else 5210 case $cross_compiling:$ac_tool_warned in 5211yes:) 5212{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5214ac_tool_warned=yes ;; 5215esac 5216 STRIP=$ac_ct_STRIP 5217 fi 5218else 5219 STRIP="$ac_cv_prog_STRIP" 5220fi 5221 5222test -z "$STRIP" && STRIP=: 5223 5224 5225 5226 5227 5228 5229if test -n "$ac_tool_prefix"; then 5230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5231set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5233$as_echo_n "checking for $ac_word... " >&6; } 5234if test "${ac_cv_prog_RANLIB+set}" = set; then 5235 $as_echo_n "(cached) " >&6 5236else 5237 if test -n "$RANLIB"; then 5238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5239else 5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5241for as_dir in $PATH 5242do 5243 IFS=$as_save_IFS 5244 test -z "$as_dir" && as_dir=. 5245 for ac_exec_ext in '' $ac_executable_extensions; do 5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5249 break 2 5250 fi 5251done 5252done 5253IFS=$as_save_IFS 5254 5255fi 5256fi 5257RANLIB=$ac_cv_prog_RANLIB 5258if test -n "$RANLIB"; then 5259 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5260$as_echo "$RANLIB" >&6; } 5261else 5262 { $as_echo "$as_me:$LINENO: result: no" >&5 5263$as_echo "no" >&6; } 5264fi 5265 5266 5267fi 5268if test -z "$ac_cv_prog_RANLIB"; then 5269 ac_ct_RANLIB=$RANLIB 5270 # Extract the first word of "ranlib", so it can be a program name with args. 5271set dummy ranlib; ac_word=$2 5272{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5273$as_echo_n "checking for $ac_word... " >&6; } 5274if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5275 $as_echo_n "(cached) " >&6 5276else 5277 if test -n "$ac_ct_RANLIB"; then 5278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5279else 5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281for as_dir in $PATH 5282do 5283 IFS=$as_save_IFS 5284 test -z "$as_dir" && as_dir=. 5285 for ac_exec_ext in '' $ac_executable_extensions; do 5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5287 ac_cv_prog_ac_ct_RANLIB="ranlib" 5288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5289 break 2 5290 fi 5291done 5292done 5293IFS=$as_save_IFS 5294 5295fi 5296fi 5297ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5298if test -n "$ac_ct_RANLIB"; then 5299 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5300$as_echo "$ac_ct_RANLIB" >&6; } 5301else 5302 { $as_echo "$as_me:$LINENO: result: no" >&5 5303$as_echo "no" >&6; } 5304fi 5305 5306 if test "x$ac_ct_RANLIB" = x; then 5307 RANLIB=":" 5308 else 5309 case $cross_compiling:$ac_tool_warned in 5310yes:) 5311{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5313ac_tool_warned=yes ;; 5314esac 5315 RANLIB=$ac_ct_RANLIB 5316 fi 5317else 5318 RANLIB="$ac_cv_prog_RANLIB" 5319fi 5320 5321test -z "$RANLIB" && RANLIB=: 5322 5323 5324 5325 5326 5327 5328# Determine commands to create old-style static archives. 5329old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5330old_postinstall_cmds='chmod 644 $oldlib' 5331old_postuninstall_cmds= 5332 5333if test -n "$RANLIB"; then 5334 case $host_os in 5335 openbsd*) 5336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5337 ;; 5338 *) 5339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5340 ;; 5341 esac 5342 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5343fi 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378# If no C compiler was specified, use CC. 5379LTCC=${LTCC-"$CC"} 5380 5381# If no C compiler flags were specified, use CFLAGS. 5382LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5383 5384# Allow CC to be a program name with arguments. 5385compiler=$CC 5386 5387 5388# Check for command to grab the raw symbol name followed by C symbol from nm. 5389{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5390$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5391if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5392 $as_echo_n "(cached) " >&6 5393else 5394 5395# These are sane defaults that work on at least a few old systems. 5396# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5397 5398# Character class describing NM global symbol codes. 5399symcode='[BCDEGRST]' 5400 5401# Regexp to match symbols that can be accessed directly from C. 5402sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5403 5404# Define system-specific variables. 5405case $host_os in 5406aix*) 5407 symcode='[BCDT]' 5408 ;; 5409cygwin* | mingw* | pw32* | cegcc*) 5410 symcode='[ABCDGISTW]' 5411 ;; 5412hpux*) 5413 if test "$host_cpu" = ia64; then 5414 symcode='[ABCDEGRST]' 5415 fi 5416 ;; 5417irix* | nonstopux*) 5418 symcode='[BCDEGRST]' 5419 ;; 5420osf*) 5421 symcode='[BCDEGQRST]' 5422 ;; 5423solaris*) 5424 symcode='[BDRT]' 5425 ;; 5426sco3.2v5*) 5427 symcode='[DT]' 5428 ;; 5429sysv4.2uw2*) 5430 symcode='[DT]' 5431 ;; 5432sysv5* | sco5v6* | unixware* | OpenUNIX*) 5433 symcode='[ABDT]' 5434 ;; 5435sysv4) 5436 symcode='[DFNSTU]' 5437 ;; 5438esac 5439 5440# If we're using GNU nm, then use its standard symbol codes. 5441case `$NM -V 2>&1` in 5442*GNU* | *'with BFD'*) 5443 symcode='[ABCDGIRSTW]' ;; 5444esac 5445 5446# Transform an extracted symbol line into a proper C declaration. 5447# Some systems (esp. on ia64) link data and code symbols differently, 5448# so use this general approach. 5449lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5450 5451# Transform an extracted symbol line into symbol name and symbol address 5452lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5453lt_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'" 5454 5455# Handle CRLF in mingw tool chain 5456opt_cr= 5457case $build_os in 5458mingw*) 5459 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5460 ;; 5461esac 5462 5463# Try without a prefix underscore, then with it. 5464for ac_symprfx in "" "_"; do 5465 5466 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5467 symxfrm="\\1 $ac_symprfx\\2 \\2" 5468 5469 # Write the raw and C identifiers. 5470 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5471 # Fake it for dumpbin and say T for any non-static function 5472 # and D for any global variable. 5473 # Also find C++ and __fastcall symbols from MSVC++, 5474 # which start with @ or ?. 5475 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5476" {last_section=section; section=\$ 3};"\ 5477" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5478" \$ 0!~/External *\|/{next};"\ 5479" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5480" {if(hide[section]) next};"\ 5481" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5482" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5483" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5484" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5485" ' prfx=^$ac_symprfx" 5486 else 5487 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5488 fi 5489 5490 # Check to see that the pipe works correctly. 5491 pipe_works=no 5492 5493 rm -f conftest* 5494 cat > conftest.$ac_ext <<_LT_EOF 5495#ifdef __cplusplus 5496extern "C" { 5497#endif 5498char nm_test_var; 5499void nm_test_func(void); 5500void nm_test_func(void){} 5501#ifdef __cplusplus 5502} 5503#endif 5504int main(){nm_test_var='a';nm_test_func();return(0);} 5505_LT_EOF 5506 5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5508 (eval $ac_compile) 2>&5 5509 ac_status=$? 5510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5511 (exit $ac_status); }; then 5512 # Now try to grab the symbols. 5513 nlist=conftest.nm 5514 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5516 ac_status=$? 5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } && test -s "$nlist"; then 5519 # Try sorting and uniquifying the output. 5520 if sort "$nlist" | uniq > "$nlist"T; then 5521 mv -f "$nlist"T "$nlist" 5522 else 5523 rm -f "$nlist"T 5524 fi 5525 5526 # Make sure that we snagged all the symbols we need. 5527 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5528 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5529 cat <<_LT_EOF > conftest.$ac_ext 5530#ifdef __cplusplus 5531extern "C" { 5532#endif 5533 5534_LT_EOF 5535 # Now generate the symbol file. 5536 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5537 5538 cat <<_LT_EOF >> conftest.$ac_ext 5539 5540/* The mapping between symbol names and symbols. */ 5541const struct { 5542 const char *name; 5543 void *address; 5544} 5545lt__PROGRAM__LTX_preloaded_symbols[] = 5546{ 5547 { "@PROGRAM@", (void *) 0 }, 5548_LT_EOF 5549 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5550 cat <<\_LT_EOF >> conftest.$ac_ext 5551 {0, (void *) 0} 5552}; 5553 5554/* This works around a problem in FreeBSD linker */ 5555#ifdef FREEBSD_WORKAROUND 5556static const void *lt_preloaded_setup() { 5557 return lt__PROGRAM__LTX_preloaded_symbols; 5558} 5559#endif 5560 5561#ifdef __cplusplus 5562} 5563#endif 5564_LT_EOF 5565 # Now try linking the two files. 5566 mv conftest.$ac_objext conftstm.$ac_objext 5567 lt_save_LIBS="$LIBS" 5568 lt_save_CFLAGS="$CFLAGS" 5569 LIBS="conftstm.$ac_objext" 5570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5572 (eval $ac_link) 2>&5 5573 ac_status=$? 5574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5575 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5576 pipe_works=yes 5577 fi 5578 LIBS="$lt_save_LIBS" 5579 CFLAGS="$lt_save_CFLAGS" 5580 else 5581 echo "cannot find nm_test_func in $nlist" >&5 5582 fi 5583 else 5584 echo "cannot find nm_test_var in $nlist" >&5 5585 fi 5586 else 5587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5588 fi 5589 else 5590 echo "$progname: failed program was:" >&5 5591 cat conftest.$ac_ext >&5 5592 fi 5593 rm -rf conftest* conftst* 5594 5595 # Do not use the global_symbol_pipe unless it works. 5596 if test "$pipe_works" = yes; then 5597 break 5598 else 5599 lt_cv_sys_global_symbol_pipe= 5600 fi 5601done 5602 5603fi 5604 5605if test -z "$lt_cv_sys_global_symbol_pipe"; then 5606 lt_cv_sys_global_symbol_to_cdecl= 5607fi 5608if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5609 { $as_echo "$as_me:$LINENO: result: failed" >&5 5610$as_echo "failed" >&6; } 5611else 5612 { $as_echo "$as_me:$LINENO: result: ok" >&5 5613$as_echo "ok" >&6; } 5614fi 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638# Check whether --enable-libtool-lock was given. 5639if test "${enable_libtool_lock+set}" = set; then 5640 enableval=$enable_libtool_lock; 5641fi 5642 5643test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5644 5645# Some flags need to be propagated to the compiler or linker for good 5646# libtool support. 5647case $host in 5648ia64-*-hpux*) 5649 # Find out which ABI we are using. 5650 echo 'int i;' > conftest.$ac_ext 5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5652 (eval $ac_compile) 2>&5 5653 ac_status=$? 5654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5655 (exit $ac_status); }; then 5656 case `/usr/bin/file conftest.$ac_objext` in 5657 *ELF-32*) 5658 HPUX_IA64_MODE="32" 5659 ;; 5660 *ELF-64*) 5661 HPUX_IA64_MODE="64" 5662 ;; 5663 esac 5664 fi 5665 rm -rf conftest* 5666 ;; 5667*-*-irix6*) 5668 # Find out which ABI we are using. 5669 echo '#line 5669 "configure"' > conftest.$ac_ext 5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5671 (eval $ac_compile) 2>&5 5672 ac_status=$? 5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; then 5675 if test "$lt_cv_prog_gnu_ld" = yes; then 5676 case `/usr/bin/file conftest.$ac_objext` in 5677 *32-bit*) 5678 LD="${LD-ld} -melf32bsmip" 5679 ;; 5680 *N32*) 5681 LD="${LD-ld} -melf32bmipn32" 5682 ;; 5683 *64-bit*) 5684 LD="${LD-ld} -melf64bmip" 5685 ;; 5686 esac 5687 else 5688 case `/usr/bin/file conftest.$ac_objext` in 5689 *32-bit*) 5690 LD="${LD-ld} -32" 5691 ;; 5692 *N32*) 5693 LD="${LD-ld} -n32" 5694 ;; 5695 *64-bit*) 5696 LD="${LD-ld} -64" 5697 ;; 5698 esac 5699 fi 5700 fi 5701 rm -rf conftest* 5702 ;; 5703 5704x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5705s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5706 # Find out which ABI we are using. 5707 echo 'int i;' > conftest.$ac_ext 5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5709 (eval $ac_compile) 2>&5 5710 ac_status=$? 5711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); }; then 5713 case `/usr/bin/file conftest.o` in 5714 *32-bit*) 5715 case $host in 5716 x86_64-*kfreebsd*-gnu) 5717 LD="${LD-ld} -m elf_i386_fbsd" 5718 ;; 5719 x86_64-*linux*) 5720 LD="${LD-ld} -m elf_i386" 5721 ;; 5722 ppc64-*linux*|powerpc64-*linux*) 5723 LD="${LD-ld} -m elf32ppclinux" 5724 ;; 5725 s390x-*linux*) 5726 LD="${LD-ld} -m elf_s390" 5727 ;; 5728 sparc64-*linux*) 5729 LD="${LD-ld} -m elf32_sparc" 5730 ;; 5731 esac 5732 ;; 5733 *64-bit*) 5734 case $host in 5735 x86_64-*kfreebsd*-gnu) 5736 LD="${LD-ld} -m elf_x86_64_fbsd" 5737 ;; 5738 x86_64-*linux*) 5739 LD="${LD-ld} -m elf_x86_64" 5740 ;; 5741 ppc*-*linux*|powerpc*-*linux*) 5742 LD="${LD-ld} -m elf64ppc" 5743 ;; 5744 s390*-*linux*|s390*-*tpf*) 5745 LD="${LD-ld} -m elf64_s390" 5746 ;; 5747 sparc*-*linux*) 5748 LD="${LD-ld} -m elf64_sparc" 5749 ;; 5750 esac 5751 ;; 5752 esac 5753 fi 5754 rm -rf conftest* 5755 ;; 5756 5757*-*-sco3.2v5*) 5758 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5759 SAVE_CFLAGS="$CFLAGS" 5760 CFLAGS="$CFLAGS -belf" 5761 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5762$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5763if test "${lt_cv_cc_needs_belf+set}" = set; then 5764 $as_echo_n "(cached) " >&6 5765else 5766 ac_ext=c 5767ac_cpp='$CPP $CPPFLAGS' 5768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5770ac_compiler_gnu=$ac_cv_c_compiler_gnu 5771 5772 cat >conftest.$ac_ext <<_ACEOF 5773/* confdefs.h. */ 5774_ACEOF 5775cat confdefs.h >>conftest.$ac_ext 5776cat >>conftest.$ac_ext <<_ACEOF 5777/* end confdefs.h. */ 5778 5779int 5780main () 5781{ 5782 5783 ; 5784 return 0; 5785} 5786_ACEOF 5787rm -f conftest.$ac_objext conftest$ac_exeext 5788if { (ac_try="$ac_link" 5789case "(($ac_try" in 5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5791 *) ac_try_echo=$ac_try;; 5792esac 5793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5794$as_echo "$ac_try_echo") >&5 5795 (eval "$ac_link") 2>conftest.er1 5796 ac_status=$? 5797 grep -v '^ *+' conftest.er1 >conftest.err 5798 rm -f conftest.er1 5799 cat conftest.err >&5 5800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5801 (exit $ac_status); } && { 5802 test -z "$ac_c_werror_flag" || 5803 test ! -s conftest.err 5804 } && test -s conftest$ac_exeext && { 5805 test "$cross_compiling" = yes || 5806 $as_test_x conftest$ac_exeext 5807 }; then 5808 lt_cv_cc_needs_belf=yes 5809else 5810 $as_echo "$as_me: failed program was:" >&5 5811sed 's/^/| /' conftest.$ac_ext >&5 5812 5813 lt_cv_cc_needs_belf=no 5814fi 5815 5816rm -rf conftest.dSYM 5817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5818 conftest$ac_exeext conftest.$ac_ext 5819 ac_ext=c 5820ac_cpp='$CPP $CPPFLAGS' 5821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5823ac_compiler_gnu=$ac_cv_c_compiler_gnu 5824 5825fi 5826{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5827$as_echo "$lt_cv_cc_needs_belf" >&6; } 5828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5830 CFLAGS="$SAVE_CFLAGS" 5831 fi 5832 ;; 5833sparc*-*solaris*) 5834 # Find out which ABI we are using. 5835 echo 'int i;' > conftest.$ac_ext 5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5837 (eval $ac_compile) 2>&5 5838 ac_status=$? 5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5840 (exit $ac_status); }; then 5841 case `/usr/bin/file conftest.o` in 5842 *64-bit*) 5843 case $lt_cv_prog_gnu_ld in 5844 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5845 *) 5846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5847 LD="${LD-ld} -64" 5848 fi 5849 ;; 5850 esac 5851 ;; 5852 esac 5853 fi 5854 rm -rf conftest* 5855 ;; 5856esac 5857 5858need_locks="$enable_libtool_lock" 5859 5860 5861 case $host_os in 5862 rhapsody* | darwin*) 5863 if test -n "$ac_tool_prefix"; then 5864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5865set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5866{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5867$as_echo_n "checking for $ac_word... " >&6; } 5868if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5869 $as_echo_n "(cached) " >&6 5870else 5871 if test -n "$DSYMUTIL"; then 5872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5873else 5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5875for as_dir in $PATH 5876do 5877 IFS=$as_save_IFS 5878 test -z "$as_dir" && as_dir=. 5879 for ac_exec_ext in '' $ac_executable_extensions; do 5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5883 break 2 5884 fi 5885done 5886done 5887IFS=$as_save_IFS 5888 5889fi 5890fi 5891DSYMUTIL=$ac_cv_prog_DSYMUTIL 5892if test -n "$DSYMUTIL"; then 5893 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5894$as_echo "$DSYMUTIL" >&6; } 5895else 5896 { $as_echo "$as_me:$LINENO: result: no" >&5 5897$as_echo "no" >&6; } 5898fi 5899 5900 5901fi 5902if test -z "$ac_cv_prog_DSYMUTIL"; then 5903 ac_ct_DSYMUTIL=$DSYMUTIL 5904 # Extract the first word of "dsymutil", so it can be a program name with args. 5905set dummy dsymutil; ac_word=$2 5906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5907$as_echo_n "checking for $ac_word... " >&6; } 5908if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5909 $as_echo_n "(cached) " >&6 5910else 5911 if test -n "$ac_ct_DSYMUTIL"; then 5912 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5913else 5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915for as_dir in $PATH 5916do 5917 IFS=$as_save_IFS 5918 test -z "$as_dir" && as_dir=. 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925done 5926done 5927IFS=$as_save_IFS 5928 5929fi 5930fi 5931ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5932if test -n "$ac_ct_DSYMUTIL"; then 5933 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5934$as_echo "$ac_ct_DSYMUTIL" >&6; } 5935else 5936 { $as_echo "$as_me:$LINENO: result: no" >&5 5937$as_echo "no" >&6; } 5938fi 5939 5940 if test "x$ac_ct_DSYMUTIL" = x; then 5941 DSYMUTIL=":" 5942 else 5943 case $cross_compiling:$ac_tool_warned in 5944yes:) 5945{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5947ac_tool_warned=yes ;; 5948esac 5949 DSYMUTIL=$ac_ct_DSYMUTIL 5950 fi 5951else 5952 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5953fi 5954 5955 if test -n "$ac_tool_prefix"; then 5956 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5957set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5958{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5959$as_echo_n "checking for $ac_word... " >&6; } 5960if test "${ac_cv_prog_NMEDIT+set}" = set; then 5961 $as_echo_n "(cached) " >&6 5962else 5963 if test -n "$NMEDIT"; then 5964 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5965else 5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5967for as_dir in $PATH 5968do 5969 IFS=$as_save_IFS 5970 test -z "$as_dir" && as_dir=. 5971 for ac_exec_ext in '' $ac_executable_extensions; do 5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5973 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5975 break 2 5976 fi 5977done 5978done 5979IFS=$as_save_IFS 5980 5981fi 5982fi 5983NMEDIT=$ac_cv_prog_NMEDIT 5984if test -n "$NMEDIT"; then 5985 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5986$as_echo "$NMEDIT" >&6; } 5987else 5988 { $as_echo "$as_me:$LINENO: result: no" >&5 5989$as_echo "no" >&6; } 5990fi 5991 5992 5993fi 5994if test -z "$ac_cv_prog_NMEDIT"; then 5995 ac_ct_NMEDIT=$NMEDIT 5996 # Extract the first word of "nmedit", so it can be a program name with args. 5997set dummy nmedit; ac_word=$2 5998{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5999$as_echo_n "checking for $ac_word... " >&6; } 6000if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6001 $as_echo_n "(cached) " >&6 6002else 6003 if test -n "$ac_ct_NMEDIT"; then 6004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6005else 6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6007for as_dir in $PATH 6008do 6009 IFS=$as_save_IFS 6010 test -z "$as_dir" && as_dir=. 6011 for ac_exec_ext in '' $ac_executable_extensions; do 6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6013 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6015 break 2 6016 fi 6017done 6018done 6019IFS=$as_save_IFS 6020 6021fi 6022fi 6023ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6024if test -n "$ac_ct_NMEDIT"; then 6025 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6026$as_echo "$ac_ct_NMEDIT" >&6; } 6027else 6028 { $as_echo "$as_me:$LINENO: result: no" >&5 6029$as_echo "no" >&6; } 6030fi 6031 6032 if test "x$ac_ct_NMEDIT" = x; then 6033 NMEDIT=":" 6034 else 6035 case $cross_compiling:$ac_tool_warned in 6036yes:) 6037{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6039ac_tool_warned=yes ;; 6040esac 6041 NMEDIT=$ac_ct_NMEDIT 6042 fi 6043else 6044 NMEDIT="$ac_cv_prog_NMEDIT" 6045fi 6046 6047 if test -n "$ac_tool_prefix"; then 6048 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6049set dummy ${ac_tool_prefix}lipo; ac_word=$2 6050{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6051$as_echo_n "checking for $ac_word... " >&6; } 6052if test "${ac_cv_prog_LIPO+set}" = set; then 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$LIPO"; then 6056 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6057else 6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6059for as_dir in $PATH 6060do 6061 IFS=$as_save_IFS 6062 test -z "$as_dir" && as_dir=. 6063 for ac_exec_ext in '' $ac_executable_extensions; do 6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6065 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6067 break 2 6068 fi 6069done 6070done 6071IFS=$as_save_IFS 6072 6073fi 6074fi 6075LIPO=$ac_cv_prog_LIPO 6076if test -n "$LIPO"; then 6077 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6078$as_echo "$LIPO" >&6; } 6079else 6080 { $as_echo "$as_me:$LINENO: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083 6084 6085fi 6086if test -z "$ac_cv_prog_LIPO"; then 6087 ac_ct_LIPO=$LIPO 6088 # Extract the first word of "lipo", so it can be a program name with args. 6089set dummy lipo; ac_word=$2 6090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6091$as_echo_n "checking for $ac_word... " >&6; } 6092if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6093 $as_echo_n "(cached) " >&6 6094else 6095 if test -n "$ac_ct_LIPO"; then 6096 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6105 ac_cv_prog_ac_ct_LIPO="lipo" 6106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6116if test -n "$ac_ct_LIPO"; then 6117 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6118$as_echo "$ac_ct_LIPO" >&6; } 6119else 6120 { $as_echo "$as_me:$LINENO: result: no" >&5 6121$as_echo "no" >&6; } 6122fi 6123 6124 if test "x$ac_ct_LIPO" = x; then 6125 LIPO=":" 6126 else 6127 case $cross_compiling:$ac_tool_warned in 6128yes:) 6129{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6131ac_tool_warned=yes ;; 6132esac 6133 LIPO=$ac_ct_LIPO 6134 fi 6135else 6136 LIPO="$ac_cv_prog_LIPO" 6137fi 6138 6139 if test -n "$ac_tool_prefix"; then 6140 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6141set dummy ${ac_tool_prefix}otool; ac_word=$2 6142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6143$as_echo_n "checking for $ac_word... " >&6; } 6144if test "${ac_cv_prog_OTOOL+set}" = set; then 6145 $as_echo_n "(cached) " >&6 6146else 6147 if test -n "$OTOOL"; then 6148 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6149else 6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151for as_dir in $PATH 6152do 6153 IFS=$as_save_IFS 6154 test -z "$as_dir" && as_dir=. 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6157 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6159 break 2 6160 fi 6161done 6162done 6163IFS=$as_save_IFS 6164 6165fi 6166fi 6167OTOOL=$ac_cv_prog_OTOOL 6168if test -n "$OTOOL"; then 6169 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6170$as_echo "$OTOOL" >&6; } 6171else 6172 { $as_echo "$as_me:$LINENO: result: no" >&5 6173$as_echo "no" >&6; } 6174fi 6175 6176 6177fi 6178if test -z "$ac_cv_prog_OTOOL"; then 6179 ac_ct_OTOOL=$OTOOL 6180 # Extract the first word of "otool", so it can be a program name with args. 6181set dummy otool; ac_word=$2 6182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6183$as_echo_n "checking for $ac_word... " >&6; } 6184if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6185 $as_echo_n "(cached) " >&6 6186else 6187 if test -n "$ac_ct_OTOOL"; then 6188 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6189else 6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6191for as_dir in $PATH 6192do 6193 IFS=$as_save_IFS 6194 test -z "$as_dir" && as_dir=. 6195 for ac_exec_ext in '' $ac_executable_extensions; do 6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6197 ac_cv_prog_ac_ct_OTOOL="otool" 6198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6199 break 2 6200 fi 6201done 6202done 6203IFS=$as_save_IFS 6204 6205fi 6206fi 6207ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6208if test -n "$ac_ct_OTOOL"; then 6209 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6210$as_echo "$ac_ct_OTOOL" >&6; } 6211else 6212 { $as_echo "$as_me:$LINENO: result: no" >&5 6213$as_echo "no" >&6; } 6214fi 6215 6216 if test "x$ac_ct_OTOOL" = x; then 6217 OTOOL=":" 6218 else 6219 case $cross_compiling:$ac_tool_warned in 6220yes:) 6221{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6223ac_tool_warned=yes ;; 6224esac 6225 OTOOL=$ac_ct_OTOOL 6226 fi 6227else 6228 OTOOL="$ac_cv_prog_OTOOL" 6229fi 6230 6231 if test -n "$ac_tool_prefix"; then 6232 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6233set dummy ${ac_tool_prefix}otool64; ac_word=$2 6234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6235$as_echo_n "checking for $ac_word... " >&6; } 6236if test "${ac_cv_prog_OTOOL64+set}" = set; then 6237 $as_echo_n "(cached) " >&6 6238else 6239 if test -n "$OTOOL64"; then 6240 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6241else 6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6243for as_dir in $PATH 6244do 6245 IFS=$as_save_IFS 6246 test -z "$as_dir" && as_dir=. 6247 for ac_exec_ext in '' $ac_executable_extensions; do 6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6249 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6251 break 2 6252 fi 6253done 6254done 6255IFS=$as_save_IFS 6256 6257fi 6258fi 6259OTOOL64=$ac_cv_prog_OTOOL64 6260if test -n "$OTOOL64"; then 6261 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6262$as_echo "$OTOOL64" >&6; } 6263else 6264 { $as_echo "$as_me:$LINENO: result: no" >&5 6265$as_echo "no" >&6; } 6266fi 6267 6268 6269fi 6270if test -z "$ac_cv_prog_OTOOL64"; then 6271 ac_ct_OTOOL64=$OTOOL64 6272 # Extract the first word of "otool64", so it can be a program name with args. 6273set dummy otool64; ac_word=$2 6274{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6275$as_echo_n "checking for $ac_word... " >&6; } 6276if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6277 $as_echo_n "(cached) " >&6 6278else 6279 if test -n "$ac_ct_OTOOL64"; then 6280 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6281else 6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6289 ac_cv_prog_ac_ct_OTOOL64="otool64" 6290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6291 break 2 6292 fi 6293done 6294done 6295IFS=$as_save_IFS 6296 6297fi 6298fi 6299ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6300if test -n "$ac_ct_OTOOL64"; then 6301 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6302$as_echo "$ac_ct_OTOOL64" >&6; } 6303else 6304 { $as_echo "$as_me:$LINENO: result: no" >&5 6305$as_echo "no" >&6; } 6306fi 6307 6308 if test "x$ac_ct_OTOOL64" = x; then 6309 OTOOL64=":" 6310 else 6311 case $cross_compiling:$ac_tool_warned in 6312yes:) 6313{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6315ac_tool_warned=yes ;; 6316esac 6317 OTOOL64=$ac_ct_OTOOL64 6318 fi 6319else 6320 OTOOL64="$ac_cv_prog_OTOOL64" 6321fi 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6350$as_echo_n "checking for -single_module linker flag... " >&6; } 6351if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6352 $as_echo_n "(cached) " >&6 6353else 6354 lt_cv_apple_cc_single_mod=no 6355 if test -z "${LT_MULTI_MODULE}"; then 6356 # By default we will add the -single_module flag. You can override 6357 # by either setting the environment variable LT_MULTI_MODULE 6358 # non-empty at configure time, or by adding -multi_module to the 6359 # link flags. 6360 rm -rf libconftest.dylib* 6361 echo "int foo(void){return 1;}" > conftest.c 6362 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6363-dynamiclib -Wl,-single_module conftest.c" >&5 6364 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6365 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6366 _lt_result=$? 6367 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6368 lt_cv_apple_cc_single_mod=yes 6369 else 6370 cat conftest.err >&5 6371 fi 6372 rm -rf libconftest.dylib* 6373 rm -f conftest.* 6374 fi 6375fi 6376{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6377$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6378 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6379$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6380if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6381 $as_echo_n "(cached) " >&6 6382else 6383 lt_cv_ld_exported_symbols_list=no 6384 save_LDFLAGS=$LDFLAGS 6385 echo "_main" > conftest.sym 6386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6387 cat >conftest.$ac_ext <<_ACEOF 6388/* confdefs.h. */ 6389_ACEOF 6390cat confdefs.h >>conftest.$ac_ext 6391cat >>conftest.$ac_ext <<_ACEOF 6392/* end confdefs.h. */ 6393 6394int 6395main () 6396{ 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402rm -f conftest.$ac_objext conftest$ac_exeext 6403if { (ac_try="$ac_link" 6404case "(($ac_try" in 6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6406 *) ac_try_echo=$ac_try;; 6407esac 6408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6409$as_echo "$ac_try_echo") >&5 6410 (eval "$ac_link") 2>conftest.er1 6411 ac_status=$? 6412 grep -v '^ *+' conftest.er1 >conftest.err 6413 rm -f conftest.er1 6414 cat conftest.err >&5 6415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6416 (exit $ac_status); } && { 6417 test -z "$ac_c_werror_flag" || 6418 test ! -s conftest.err 6419 } && test -s conftest$ac_exeext && { 6420 test "$cross_compiling" = yes || 6421 $as_test_x conftest$ac_exeext 6422 }; then 6423 lt_cv_ld_exported_symbols_list=yes 6424else 6425 $as_echo "$as_me: failed program was:" >&5 6426sed 's/^/| /' conftest.$ac_ext >&5 6427 6428 lt_cv_ld_exported_symbols_list=no 6429fi 6430 6431rm -rf conftest.dSYM 6432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6433 conftest$ac_exeext conftest.$ac_ext 6434 LDFLAGS="$save_LDFLAGS" 6435 6436fi 6437{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6438$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6439 case $host_os in 6440 rhapsody* | darwin1.[012]) 6441 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6442 darwin1.*) 6443 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6444 darwin*) # darwin 5.x on 6445 # if running on 10.5 or later, the deployment target defaults 6446 # to the OS version, if on x86, and 10.4, the deployment 6447 # target defaults to 10.4. Don't you love it? 6448 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6449 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6450 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6451 10.[012]*) 6452 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6453 10.*) 6454 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6455 esac 6456 ;; 6457 esac 6458 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6459 _lt_dar_single_mod='$single_module' 6460 fi 6461 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6462 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6463 else 6464 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6465 fi 6466 if test "$DSYMUTIL" != ":"; then 6467 _lt_dsymutil='~$DSYMUTIL $lib || :' 6468 else 6469 _lt_dsymutil= 6470 fi 6471 ;; 6472 esac 6473 6474ac_ext=c 6475ac_cpp='$CPP $CPPFLAGS' 6476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6478ac_compiler_gnu=$ac_cv_c_compiler_gnu 6479{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6480$as_echo_n "checking how to run the C preprocessor... " >&6; } 6481# On Suns, sometimes $CPP names a directory. 6482if test -n "$CPP" && test -d "$CPP"; then 6483 CPP= 6484fi 6485if test -z "$CPP"; then 6486 if test "${ac_cv_prog_CPP+set}" = set; then 6487 $as_echo_n "(cached) " >&6 6488else 6489 # Double quotes because CPP needs to be expanded 6490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6491 do 6492 ac_preproc_ok=false 6493for ac_c_preproc_warn_flag in '' yes 6494do 6495 # Use a header file that comes with gcc, so configuring glibc 6496 # with a fresh cross-compiler works. 6497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6498 # <limits.h> exists even on freestanding compilers. 6499 # On the NeXT, cc -E runs the code through the compiler's parser, 6500 # not just through cpp. "Syntax error" is here to catch this case. 6501 cat >conftest.$ac_ext <<_ACEOF 6502/* confdefs.h. */ 6503_ACEOF 6504cat confdefs.h >>conftest.$ac_ext 6505cat >>conftest.$ac_ext <<_ACEOF 6506/* end confdefs.h. */ 6507#ifdef __STDC__ 6508# include <limits.h> 6509#else 6510# include <assert.h> 6511#endif 6512 Syntax error 6513_ACEOF 6514if { (ac_try="$ac_cpp conftest.$ac_ext" 6515case "(($ac_try" in 6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6517 *) ac_try_echo=$ac_try;; 6518esac 6519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6520$as_echo "$ac_try_echo") >&5 6521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6522 ac_status=$? 6523 grep -v '^ *+' conftest.er1 >conftest.err 6524 rm -f conftest.er1 6525 cat conftest.err >&5 6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6527 (exit $ac_status); } >/dev/null && { 6528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6529 test ! -s conftest.err 6530 }; then 6531 : 6532else 6533 $as_echo "$as_me: failed program was:" >&5 6534sed 's/^/| /' conftest.$ac_ext >&5 6535 6536 # Broken: fails on valid input. 6537continue 6538fi 6539 6540rm -f conftest.err conftest.$ac_ext 6541 6542 # OK, works on sane cases. Now check whether nonexistent headers 6543 # can be detected and how. 6544 cat >conftest.$ac_ext <<_ACEOF 6545/* confdefs.h. */ 6546_ACEOF 6547cat confdefs.h >>conftest.$ac_ext 6548cat >>conftest.$ac_ext <<_ACEOF 6549/* end confdefs.h. */ 6550#include <ac_nonexistent.h> 6551_ACEOF 6552if { (ac_try="$ac_cpp conftest.$ac_ext" 6553case "(($ac_try" in 6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6555 *) ac_try_echo=$ac_try;; 6556esac 6557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6558$as_echo "$ac_try_echo") >&5 6559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6560 ac_status=$? 6561 grep -v '^ *+' conftest.er1 >conftest.err 6562 rm -f conftest.er1 6563 cat conftest.err >&5 6564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6565 (exit $ac_status); } >/dev/null && { 6566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6567 test ! -s conftest.err 6568 }; then 6569 # Broken: success on invalid input. 6570continue 6571else 6572 $as_echo "$as_me: failed program was:" >&5 6573sed 's/^/| /' conftest.$ac_ext >&5 6574 6575 # Passes both tests. 6576ac_preproc_ok=: 6577break 6578fi 6579 6580rm -f conftest.err conftest.$ac_ext 6581 6582done 6583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6584rm -f conftest.err conftest.$ac_ext 6585if $ac_preproc_ok; then 6586 break 6587fi 6588 6589 done 6590 ac_cv_prog_CPP=$CPP 6591 6592fi 6593 CPP=$ac_cv_prog_CPP 6594else 6595 ac_cv_prog_CPP=$CPP 6596fi 6597{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6598$as_echo "$CPP" >&6; } 6599ac_preproc_ok=false 6600for ac_c_preproc_warn_flag in '' yes 6601do 6602 # Use a header file that comes with gcc, so configuring glibc 6603 # with a fresh cross-compiler works. 6604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6605 # <limits.h> exists even on freestanding compilers. 6606 # On the NeXT, cc -E runs the code through the compiler's parser, 6607 # not just through cpp. "Syntax error" is here to catch this case. 6608 cat >conftest.$ac_ext <<_ACEOF 6609/* confdefs.h. */ 6610_ACEOF 6611cat confdefs.h >>conftest.$ac_ext 6612cat >>conftest.$ac_ext <<_ACEOF 6613/* end confdefs.h. */ 6614#ifdef __STDC__ 6615# include <limits.h> 6616#else 6617# include <assert.h> 6618#endif 6619 Syntax error 6620_ACEOF 6621if { (ac_try="$ac_cpp conftest.$ac_ext" 6622case "(($ac_try" in 6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6624 *) ac_try_echo=$ac_try;; 6625esac 6626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6627$as_echo "$ac_try_echo") >&5 6628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6629 ac_status=$? 6630 grep -v '^ *+' conftest.er1 >conftest.err 6631 rm -f conftest.er1 6632 cat conftest.err >&5 6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); } >/dev/null && { 6635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6636 test ! -s conftest.err 6637 }; then 6638 : 6639else 6640 $as_echo "$as_me: failed program was:" >&5 6641sed 's/^/| /' conftest.$ac_ext >&5 6642 6643 # Broken: fails on valid input. 6644continue 6645fi 6646 6647rm -f conftest.err conftest.$ac_ext 6648 6649 # OK, works on sane cases. Now check whether nonexistent headers 6650 # can be detected and how. 6651 cat >conftest.$ac_ext <<_ACEOF 6652/* confdefs.h. */ 6653_ACEOF 6654cat confdefs.h >>conftest.$ac_ext 6655cat >>conftest.$ac_ext <<_ACEOF 6656/* end confdefs.h. */ 6657#include <ac_nonexistent.h> 6658_ACEOF 6659if { (ac_try="$ac_cpp conftest.$ac_ext" 6660case "(($ac_try" in 6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6662 *) ac_try_echo=$ac_try;; 6663esac 6664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6665$as_echo "$ac_try_echo") >&5 6666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6667 ac_status=$? 6668 grep -v '^ *+' conftest.er1 >conftest.err 6669 rm -f conftest.er1 6670 cat conftest.err >&5 6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); } >/dev/null && { 6673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6674 test ! -s conftest.err 6675 }; then 6676 # Broken: success on invalid input. 6677continue 6678else 6679 $as_echo "$as_me: failed program was:" >&5 6680sed 's/^/| /' conftest.$ac_ext >&5 6681 6682 # Passes both tests. 6683ac_preproc_ok=: 6684break 6685fi 6686 6687rm -f conftest.err conftest.$ac_ext 6688 6689done 6690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6691rm -f conftest.err conftest.$ac_ext 6692if $ac_preproc_ok; then 6693 : 6694else 6695 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6697{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6698See \`config.log' for more details." >&5 6699$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6700See \`config.log' for more details." >&2;} 6701 { (exit 1); exit 1; }; }; } 6702fi 6703 6704ac_ext=c 6705ac_cpp='$CPP $CPPFLAGS' 6706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6708ac_compiler_gnu=$ac_cv_c_compiler_gnu 6709 6710 6711{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6712$as_echo_n "checking for ANSI C header files... " >&6; } 6713if test "${ac_cv_header_stdc+set}" = set; then 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat >conftest.$ac_ext <<_ACEOF 6717/* confdefs.h. */ 6718_ACEOF 6719cat confdefs.h >>conftest.$ac_ext 6720cat >>conftest.$ac_ext <<_ACEOF 6721/* end confdefs.h. */ 6722#include <stdlib.h> 6723#include <stdarg.h> 6724#include <string.h> 6725#include <float.h> 6726 6727int 6728main () 6729{ 6730 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735rm -f conftest.$ac_objext 6736if { (ac_try="$ac_compile" 6737case "(($ac_try" in 6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6739 *) ac_try_echo=$ac_try;; 6740esac 6741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6742$as_echo "$ac_try_echo") >&5 6743 (eval "$ac_compile") 2>conftest.er1 6744 ac_status=$? 6745 grep -v '^ *+' conftest.er1 >conftest.err 6746 rm -f conftest.er1 6747 cat conftest.err >&5 6748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6749 (exit $ac_status); } && { 6750 test -z "$ac_c_werror_flag" || 6751 test ! -s conftest.err 6752 } && test -s conftest.$ac_objext; then 6753 ac_cv_header_stdc=yes 6754else 6755 $as_echo "$as_me: failed program was:" >&5 6756sed 's/^/| /' conftest.$ac_ext >&5 6757 6758 ac_cv_header_stdc=no 6759fi 6760 6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6762 6763if test $ac_cv_header_stdc = yes; then 6764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6765 cat >conftest.$ac_ext <<_ACEOF 6766/* confdefs.h. */ 6767_ACEOF 6768cat confdefs.h >>conftest.$ac_ext 6769cat >>conftest.$ac_ext <<_ACEOF 6770/* end confdefs.h. */ 6771#include <string.h> 6772 6773_ACEOF 6774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6775 $EGREP "memchr" >/dev/null 2>&1; then 6776 : 6777else 6778 ac_cv_header_stdc=no 6779fi 6780rm -f conftest* 6781 6782fi 6783 6784if test $ac_cv_header_stdc = yes; then 6785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6786 cat >conftest.$ac_ext <<_ACEOF 6787/* confdefs.h. */ 6788_ACEOF 6789cat confdefs.h >>conftest.$ac_ext 6790cat >>conftest.$ac_ext <<_ACEOF 6791/* end confdefs.h. */ 6792#include <stdlib.h> 6793 6794_ACEOF 6795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6796 $EGREP "free" >/dev/null 2>&1; then 6797 : 6798else 6799 ac_cv_header_stdc=no 6800fi 6801rm -f conftest* 6802 6803fi 6804 6805if test $ac_cv_header_stdc = yes; then 6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6807 if test "$cross_compiling" = yes; then 6808 : 6809else 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 <ctype.h> 6817#include <stdlib.h> 6818#if ((' ' & 0x0FF) == 0x020) 6819# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6820# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6821#else 6822# define ISLOWER(c) \ 6823 (('a' <= (c) && (c) <= 'i') \ 6824 || ('j' <= (c) && (c) <= 'r') \ 6825 || ('s' <= (c) && (c) <= 'z')) 6826# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6827#endif 6828 6829#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6830int 6831main () 6832{ 6833 int i; 6834 for (i = 0; i < 256; i++) 6835 if (XOR (islower (i), ISLOWER (i)) 6836 || toupper (i) != TOUPPER (i)) 6837 return 2; 6838 return 0; 6839} 6840_ACEOF 6841rm -f conftest$ac_exeext 6842if { (ac_try="$ac_link" 6843case "(($ac_try" in 6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6845 *) ac_try_echo=$ac_try;; 6846esac 6847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6848$as_echo "$ac_try_echo") >&5 6849 (eval "$ac_link") 2>&5 6850 ac_status=$? 6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6853 { (case "(($ac_try" in 6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6855 *) ac_try_echo=$ac_try;; 6856esac 6857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6858$as_echo "$ac_try_echo") >&5 6859 (eval "$ac_try") 2>&5 6860 ac_status=$? 6861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6862 (exit $ac_status); }; }; then 6863 : 6864else 6865 $as_echo "$as_me: program exited with status $ac_status" >&5 6866$as_echo "$as_me: failed program was:" >&5 6867sed 's/^/| /' conftest.$ac_ext >&5 6868 6869( exit $ac_status ) 6870ac_cv_header_stdc=no 6871fi 6872rm -rf conftest.dSYM 6873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6874fi 6875 6876 6877fi 6878fi 6879{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6880$as_echo "$ac_cv_header_stdc" >&6; } 6881if test $ac_cv_header_stdc = yes; then 6882 6883cat >>confdefs.h <<\_ACEOF 6884#define STDC_HEADERS 1 6885_ACEOF 6886 6887fi 6888 6889# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6900 inttypes.h stdint.h unistd.h 6901do 6902as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6903{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6904$as_echo_n "checking for $ac_header... " >&6; } 6905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6906 $as_echo_n "(cached) " >&6 6907else 6908 cat >conftest.$ac_ext <<_ACEOF 6909/* confdefs.h. */ 6910_ACEOF 6911cat confdefs.h >>conftest.$ac_ext 6912cat >>conftest.$ac_ext <<_ACEOF 6913/* end confdefs.h. */ 6914$ac_includes_default 6915 6916#include <$ac_header> 6917_ACEOF 6918rm -f conftest.$ac_objext 6919if { (ac_try="$ac_compile" 6920case "(($ac_try" in 6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6922 *) ac_try_echo=$ac_try;; 6923esac 6924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6925$as_echo "$ac_try_echo") >&5 6926 (eval "$ac_compile") 2>conftest.er1 6927 ac_status=$? 6928 grep -v '^ *+' conftest.er1 >conftest.err 6929 rm -f conftest.er1 6930 cat conftest.err >&5 6931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6932 (exit $ac_status); } && { 6933 test -z "$ac_c_werror_flag" || 6934 test ! -s conftest.err 6935 } && test -s conftest.$ac_objext; then 6936 eval "$as_ac_Header=yes" 6937else 6938 $as_echo "$as_me: failed program was:" >&5 6939sed 's/^/| /' conftest.$ac_ext >&5 6940 6941 eval "$as_ac_Header=no" 6942fi 6943 6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6945fi 6946ac_res=`eval 'as_val=${'$as_ac_Header'} 6947 $as_echo "$as_val"'` 6948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6949$as_echo "$ac_res" >&6; } 6950as_val=`eval 'as_val=${'$as_ac_Header'} 6951 $as_echo "$as_val"'` 6952 if test "x$as_val" = x""yes; then 6953 cat >>confdefs.h <<_ACEOF 6954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6955_ACEOF 6956 6957fi 6958 6959done 6960 6961 6962 6963for ac_header in dlfcn.h 6964do 6965as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6966{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6967$as_echo_n "checking for $ac_header... " >&6; } 6968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6969 $as_echo_n "(cached) " >&6 6970else 6971 cat >conftest.$ac_ext <<_ACEOF 6972/* confdefs.h. */ 6973_ACEOF 6974cat confdefs.h >>conftest.$ac_ext 6975cat >>conftest.$ac_ext <<_ACEOF 6976/* end confdefs.h. */ 6977$ac_includes_default 6978 6979#include <$ac_header> 6980_ACEOF 6981rm -f conftest.$ac_objext 6982if { (ac_try="$ac_compile" 6983case "(($ac_try" in 6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6985 *) ac_try_echo=$ac_try;; 6986esac 6987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6988$as_echo "$ac_try_echo") >&5 6989 (eval "$ac_compile") 2>conftest.er1 6990 ac_status=$? 6991 grep -v '^ *+' conftest.er1 >conftest.err 6992 rm -f conftest.er1 6993 cat conftest.err >&5 6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6995 (exit $ac_status); } && { 6996 test -z "$ac_c_werror_flag" || 6997 test ! -s conftest.err 6998 } && test -s conftest.$ac_objext; then 6999 eval "$as_ac_Header=yes" 7000else 7001 $as_echo "$as_me: failed program was:" >&5 7002sed 's/^/| /' conftest.$ac_ext >&5 7003 7004 eval "$as_ac_Header=no" 7005fi 7006 7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7008fi 7009ac_res=`eval 'as_val=${'$as_ac_Header'} 7010 $as_echo "$as_val"'` 7011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7012$as_echo "$ac_res" >&6; } 7013as_val=`eval 'as_val=${'$as_ac_Header'} 7014 $as_echo "$as_val"'` 7015 if test "x$as_val" = x""yes; then 7016 cat >>confdefs.h <<_ACEOF 7017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7018_ACEOF 7019 7020fi 7021 7022done 7023 7024 7025 7026# Set options 7027 7028 7029 7030 enable_dlopen=no 7031 7032 7033 enable_win32_dll=no 7034 7035 7036 # Check whether --enable-shared was given. 7037if test "${enable_shared+set}" = set; then 7038 enableval=$enable_shared; p=${PACKAGE-default} 7039 case $enableval in 7040 yes) enable_shared=yes ;; 7041 no) enable_shared=no ;; 7042 *) 7043 enable_shared=no 7044 # Look at the argument we got. We use all the common list separators. 7045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7046 for pkg in $enableval; do 7047 IFS="$lt_save_ifs" 7048 if test "X$pkg" = "X$p"; then 7049 enable_shared=yes 7050 fi 7051 done 7052 IFS="$lt_save_ifs" 7053 ;; 7054 esac 7055else 7056 enable_shared=yes 7057fi 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 # Check whether --enable-static was given. 7068if test "${enable_static+set}" = set; then 7069 enableval=$enable_static; p=${PACKAGE-default} 7070 case $enableval in 7071 yes) enable_static=yes ;; 7072 no) enable_static=no ;; 7073 *) 7074 enable_static=no 7075 # Look at the argument we got. We use all the common list separators. 7076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7077 for pkg in $enableval; do 7078 IFS="$lt_save_ifs" 7079 if test "X$pkg" = "X$p"; then 7080 enable_static=yes 7081 fi 7082 done 7083 IFS="$lt_save_ifs" 7084 ;; 7085 esac 7086else 7087 enable_static=yes 7088fi 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099# Check whether --with-pic was given. 7100if test "${with_pic+set}" = set; then 7101 withval=$with_pic; pic_mode="$withval" 7102else 7103 pic_mode=default 7104fi 7105 7106 7107test -z "$pic_mode" && pic_mode=default 7108 7109 7110 7111 7112 7113 7114 7115 # Check whether --enable-fast-install was given. 7116if test "${enable_fast_install+set}" = set; then 7117 enableval=$enable_fast_install; p=${PACKAGE-default} 7118 case $enableval in 7119 yes) enable_fast_install=yes ;; 7120 no) enable_fast_install=no ;; 7121 *) 7122 enable_fast_install=no 7123 # Look at the argument we got. We use all the common list separators. 7124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7125 for pkg in $enableval; do 7126 IFS="$lt_save_ifs" 7127 if test "X$pkg" = "X$p"; then 7128 enable_fast_install=yes 7129 fi 7130 done 7131 IFS="$lt_save_ifs" 7132 ;; 7133 esac 7134else 7135 enable_fast_install=yes 7136fi 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148# This can be used to rebuild libtool when needed 7149LIBTOOL_DEPS="$ltmain" 7150 7151# Always use our own libtool. 7152LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178test -z "$LN_S" && LN_S="ln -s" 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193if test -n "${ZSH_VERSION+set}" ; then 7194 setopt NO_GLOB_SUBST 7195fi 7196 7197{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7198$as_echo_n "checking for objdir... " >&6; } 7199if test "${lt_cv_objdir+set}" = set; then 7200 $as_echo_n "(cached) " >&6 7201else 7202 rm -f .libs 2>/dev/null 7203mkdir .libs 2>/dev/null 7204if test -d .libs; then 7205 lt_cv_objdir=.libs 7206else 7207 # MS-DOS does not allow filenames that begin with a dot. 7208 lt_cv_objdir=_libs 7209fi 7210rmdir .libs 2>/dev/null 7211fi 7212{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7213$as_echo "$lt_cv_objdir" >&6; } 7214objdir=$lt_cv_objdir 7215 7216 7217 7218 7219 7220cat >>confdefs.h <<_ACEOF 7221#define LT_OBJDIR "$lt_cv_objdir/" 7222_ACEOF 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240case $host_os in 7241aix3*) 7242 # AIX sometimes has problems with the GCC collect2 program. For some 7243 # reason, if we set the COLLECT_NAMES environment variable, the problems 7244 # vanish in a puff of smoke. 7245 if test "X${COLLECT_NAMES+set}" != Xset; then 7246 COLLECT_NAMES= 7247 export COLLECT_NAMES 7248 fi 7249 ;; 7250esac 7251 7252# Sed substitution that helps us do robust quoting. It backslashifies 7253# metacharacters that are still active within double-quoted strings. 7254sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7255 7256# Same as above, but do not quote variable references. 7257double_quote_subst='s/\(["`\\]\)/\\\1/g' 7258 7259# Sed substitution to delay expansion of an escaped shell variable in a 7260# double_quote_subst'ed string. 7261delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7262 7263# Sed substitution to delay expansion of an escaped single quote. 7264delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7265 7266# Sed substitution to avoid accidental globbing in evaled expressions 7267no_glob_subst='s/\*/\\\*/g' 7268 7269# Global variables: 7270ofile=libtool 7271can_build_shared=yes 7272 7273# All known linkers require a `.a' archive for static linking (except MSVC, 7274# which needs '.lib'). 7275libext=a 7276 7277with_gnu_ld="$lt_cv_prog_gnu_ld" 7278 7279old_CC="$CC" 7280old_CFLAGS="$CFLAGS" 7281 7282# Set sane defaults for various variables 7283test -z "$CC" && CC=cc 7284test -z "$LTCC" && LTCC=$CC 7285test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7286test -z "$LD" && LD=ld 7287test -z "$ac_objext" && ac_objext=o 7288 7289for cc_temp in $compiler""; do 7290 case $cc_temp in 7291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7293 \-*) ;; 7294 *) break;; 7295 esac 7296done 7297cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7298 7299 7300# Only perform the check for file, if the check method requires it 7301test -z "$MAGIC_CMD" && MAGIC_CMD=file 7302case $deplibs_check_method in 7303file_magic*) 7304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7305 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7306$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7307if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7308 $as_echo_n "(cached) " >&6 7309else 7310 case $MAGIC_CMD in 7311[\\/*] | ?:[\\/]*) 7312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7313 ;; 7314*) 7315 lt_save_MAGIC_CMD="$MAGIC_CMD" 7316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7318 for ac_dir in $ac_dummy; do 7319 IFS="$lt_save_ifs" 7320 test -z "$ac_dir" && ac_dir=. 7321 if test -f $ac_dir/${ac_tool_prefix}file; then 7322 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7323 if test -n "$file_magic_test_file"; then 7324 case $deplibs_check_method in 7325 "file_magic "*) 7326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7329 $EGREP "$file_magic_regex" > /dev/null; then 7330 : 7331 else 7332 cat <<_LT_EOF 1>&2 7333 7334*** Warning: the command libtool uses to detect shared libraries, 7335*** $file_magic_cmd, produces output that libtool cannot recognize. 7336*** The result is that libtool may fail to recognize shared libraries 7337*** as such. This will affect the creation of libtool libraries that 7338*** depend on shared libraries, but programs linked with such libtool 7339*** libraries will work regardless of this problem. Nevertheless, you 7340*** may want to report the problem to your system manager and/or to 7341*** bug-libtool@gnu.org 7342 7343_LT_EOF 7344 fi ;; 7345 esac 7346 fi 7347 break 7348 fi 7349 done 7350 IFS="$lt_save_ifs" 7351 MAGIC_CMD="$lt_save_MAGIC_CMD" 7352 ;; 7353esac 7354fi 7355 7356MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7357if test -n "$MAGIC_CMD"; then 7358 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7359$as_echo "$MAGIC_CMD" >&6; } 7360else 7361 { $as_echo "$as_me:$LINENO: result: no" >&5 7362$as_echo "no" >&6; } 7363fi 7364 7365 7366 7367 7368 7369if test -z "$lt_cv_path_MAGIC_CMD"; then 7370 if test -n "$ac_tool_prefix"; then 7371 { $as_echo "$as_me:$LINENO: checking for file" >&5 7372$as_echo_n "checking for file... " >&6; } 7373if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7374 $as_echo_n "(cached) " >&6 7375else 7376 case $MAGIC_CMD in 7377[\\/*] | ?:[\\/]*) 7378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7379 ;; 7380*) 7381 lt_save_MAGIC_CMD="$MAGIC_CMD" 7382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7384 for ac_dir in $ac_dummy; do 7385 IFS="$lt_save_ifs" 7386 test -z "$ac_dir" && ac_dir=. 7387 if test -f $ac_dir/file; then 7388 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7389 if test -n "$file_magic_test_file"; then 7390 case $deplibs_check_method in 7391 "file_magic "*) 7392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7395 $EGREP "$file_magic_regex" > /dev/null; then 7396 : 7397 else 7398 cat <<_LT_EOF 1>&2 7399 7400*** Warning: the command libtool uses to detect shared libraries, 7401*** $file_magic_cmd, produces output that libtool cannot recognize. 7402*** The result is that libtool may fail to recognize shared libraries 7403*** as such. This will affect the creation of libtool libraries that 7404*** depend on shared libraries, but programs linked with such libtool 7405*** libraries will work regardless of this problem. Nevertheless, you 7406*** may want to report the problem to your system manager and/or to 7407*** bug-libtool@gnu.org 7408 7409_LT_EOF 7410 fi ;; 7411 esac 7412 fi 7413 break 7414 fi 7415 done 7416 IFS="$lt_save_ifs" 7417 MAGIC_CMD="$lt_save_MAGIC_CMD" 7418 ;; 7419esac 7420fi 7421 7422MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7423if test -n "$MAGIC_CMD"; then 7424 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7425$as_echo "$MAGIC_CMD" >&6; } 7426else 7427 { $as_echo "$as_me:$LINENO: result: no" >&5 7428$as_echo "no" >&6; } 7429fi 7430 7431 7432 else 7433 MAGIC_CMD=: 7434 fi 7435fi 7436 7437 fi 7438 ;; 7439esac 7440 7441# Use C for the default configuration in the libtool script 7442 7443lt_save_CC="$CC" 7444ac_ext=c 7445ac_cpp='$CPP $CPPFLAGS' 7446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7448ac_compiler_gnu=$ac_cv_c_compiler_gnu 7449 7450 7451# Source file extension for C test sources. 7452ac_ext=c 7453 7454# Object file extension for compiled C test sources. 7455objext=o 7456objext=$objext 7457 7458# Code to be used in simple compile tests 7459lt_simple_compile_test_code="int some_variable = 0;" 7460 7461# Code to be used in simple link tests 7462lt_simple_link_test_code='int main(){return(0);}' 7463 7464 7465 7466 7467 7468 7469 7470# If no C compiler was specified, use CC. 7471LTCC=${LTCC-"$CC"} 7472 7473# If no C compiler flags were specified, use CFLAGS. 7474LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7475 7476# Allow CC to be a program name with arguments. 7477compiler=$CC 7478 7479# Save the default compiler, since it gets overwritten when the other 7480# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7481compiler_DEFAULT=$CC 7482 7483# save warnings/boilerplate of simple test code 7484ac_outfile=conftest.$ac_objext 7485echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7486eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7487_lt_compiler_boilerplate=`cat conftest.err` 7488$RM conftest* 7489 7490ac_outfile=conftest.$ac_objext 7491echo "$lt_simple_link_test_code" >conftest.$ac_ext 7492eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7493_lt_linker_boilerplate=`cat conftest.err` 7494$RM -r conftest* 7495 7496 7497if test -n "$compiler"; then 7498 7499lt_prog_compiler_no_builtin_flag= 7500 7501if test "$GCC" = yes; then 7502 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7503 7504 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7505$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7506if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7507 $as_echo_n "(cached) " >&6 7508else 7509 lt_cv_prog_compiler_rtti_exceptions=no 7510 ac_outfile=conftest.$ac_objext 7511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7512 lt_compiler_flag="-fno-rtti -fno-exceptions" 7513 # Insert the option either (1) after the last *FLAGS variable, or 7514 # (2) before a word containing "conftest.", or (3) at the end. 7515 # Note that $ac_compile itself does not contain backslashes and begins 7516 # with a dollar sign (not a hyphen), so the echo should work correctly. 7517 # The option is referenced via a variable to avoid confusing sed. 7518 lt_compile=`echo "$ac_compile" | $SED \ 7519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7521 -e 's:$: $lt_compiler_flag:'` 7522 (eval echo "\"\$as_me:7522: $lt_compile\"" >&5) 7523 (eval "$lt_compile" 2>conftest.err) 7524 ac_status=$? 7525 cat conftest.err >&5 7526 echo "$as_me:7526: \$? = $ac_status" >&5 7527 if (exit $ac_status) && test -s "$ac_outfile"; then 7528 # The compiler can only warn and ignore the option if not recognized 7529 # So say no if there are warnings other than the usual output. 7530 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7533 lt_cv_prog_compiler_rtti_exceptions=yes 7534 fi 7535 fi 7536 $RM conftest* 7537 7538fi 7539{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7540$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7541 7542if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7543 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7544else 7545 : 7546fi 7547 7548fi 7549 7550 7551 7552 7553 7554 7555 lt_prog_compiler_wl= 7556lt_prog_compiler_pic= 7557lt_prog_compiler_static= 7558 7559{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7560$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7561 7562 if test "$GCC" = yes; then 7563 lt_prog_compiler_wl='-Wl,' 7564 lt_prog_compiler_static='-static' 7565 7566 case $host_os in 7567 aix*) 7568 # All AIX code is PIC. 7569 if test "$host_cpu" = ia64; then 7570 # AIX 5 now supports IA64 processor 7571 lt_prog_compiler_static='-Bstatic' 7572 fi 7573 ;; 7574 7575 amigaos*) 7576 case $host_cpu in 7577 powerpc) 7578 # see comment about AmigaOS4 .so support 7579 lt_prog_compiler_pic='-fPIC' 7580 ;; 7581 m68k) 7582 # FIXME: we need at least 68020 code to build shared libraries, but 7583 # adding the `-m68020' flag to GCC prevents building anything better, 7584 # like `-m68040'. 7585 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7586 ;; 7587 esac 7588 ;; 7589 7590 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7591 # PIC is the default for these OSes. 7592 ;; 7593 7594 mingw* | cygwin* | pw32* | os2* | cegcc*) 7595 # This hack is so that the source file can tell whether it is being 7596 # built for inclusion in a dll (and should export symbols for example). 7597 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7598 # (--disable-auto-import) libraries 7599 lt_prog_compiler_pic='-DDLL_EXPORT' 7600 ;; 7601 7602 darwin* | rhapsody*) 7603 # PIC is the default on this platform 7604 # Common symbols not allowed in MH_DYLIB files 7605 lt_prog_compiler_pic='-fno-common' 7606 ;; 7607 7608 hpux*) 7609 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7610 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7611 # sets the default TLS model and affects inlining. 7612 case $host_cpu in 7613 hppa*64*) 7614 # +Z the default 7615 ;; 7616 *) 7617 lt_prog_compiler_pic='-fPIC' 7618 ;; 7619 esac 7620 ;; 7621 7622 interix[3-9]*) 7623 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7624 # Instead, we relocate shared libraries at runtime. 7625 ;; 7626 7627 msdosdjgpp*) 7628 # Just because we use GCC doesn't mean we suddenly get shared libraries 7629 # on systems that don't support them. 7630 lt_prog_compiler_can_build_shared=no 7631 enable_shared=no 7632 ;; 7633 7634 *nto* | *qnx*) 7635 # QNX uses GNU C++, but need to define -shared option too, otherwise 7636 # it will coredump. 7637 lt_prog_compiler_pic='-fPIC -shared' 7638 ;; 7639 7640 sysv4*MP*) 7641 if test -d /usr/nec; then 7642 lt_prog_compiler_pic=-Kconform_pic 7643 fi 7644 ;; 7645 7646 *) 7647 lt_prog_compiler_pic='-fPIC' 7648 ;; 7649 esac 7650 else 7651 # PORTME Check for flag to pass linker flags through the system compiler. 7652 case $host_os in 7653 aix*) 7654 lt_prog_compiler_wl='-Wl,' 7655 if test "$host_cpu" = ia64; then 7656 # AIX 5 now supports IA64 processor 7657 lt_prog_compiler_static='-Bstatic' 7658 else 7659 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7660 fi 7661 ;; 7662 7663 mingw* | cygwin* | pw32* | os2* | cegcc*) 7664 # This hack is so that the source file can tell whether it is being 7665 # built for inclusion in a dll (and should export symbols for example). 7666 lt_prog_compiler_pic='-DDLL_EXPORT' 7667 ;; 7668 7669 hpux9* | hpux10* | hpux11*) 7670 lt_prog_compiler_wl='-Wl,' 7671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7672 # not for PA HP-UX. 7673 case $host_cpu in 7674 hppa*64*|ia64*) 7675 # +Z the default 7676 ;; 7677 *) 7678 lt_prog_compiler_pic='+Z' 7679 ;; 7680 esac 7681 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7682 lt_prog_compiler_static='${wl}-a ${wl}archive' 7683 ;; 7684 7685 irix5* | irix6* | nonstopux*) 7686 lt_prog_compiler_wl='-Wl,' 7687 # PIC (with -KPIC) is the default. 7688 lt_prog_compiler_static='-non_shared' 7689 ;; 7690 7691 linux* | k*bsd*-gnu) 7692 case $cc_basename in 7693 # old Intel for x86_64 which still supported -KPIC. 7694 ecc*) 7695 lt_prog_compiler_wl='-Wl,' 7696 lt_prog_compiler_pic='-KPIC' 7697 lt_prog_compiler_static='-static' 7698 ;; 7699 # icc used to be incompatible with GCC. 7700 # ICC 10 doesn't accept -KPIC any more. 7701 icc* | ifort*) 7702 lt_prog_compiler_wl='-Wl,' 7703 lt_prog_compiler_pic='-fPIC' 7704 lt_prog_compiler_static='-static' 7705 ;; 7706 # Lahey Fortran 8.1. 7707 lf95*) 7708 lt_prog_compiler_wl='-Wl,' 7709 lt_prog_compiler_pic='--shared' 7710 lt_prog_compiler_static='--static' 7711 ;; 7712 pgcc* | pgf77* | pgf90* | pgf95*) 7713 # Portland Group compilers (*not* the Pentium gcc compiler, 7714 # which looks to be a dead project) 7715 lt_prog_compiler_wl='-Wl,' 7716 lt_prog_compiler_pic='-fpic' 7717 lt_prog_compiler_static='-Bstatic' 7718 ;; 7719 ccc*) 7720 lt_prog_compiler_wl='-Wl,' 7721 # All Alpha code is PIC. 7722 lt_prog_compiler_static='-non_shared' 7723 ;; 7724 xl*) 7725 # IBM XL C 8.0/Fortran 10.1 on PPC 7726 lt_prog_compiler_wl='-Wl,' 7727 lt_prog_compiler_pic='-qpic' 7728 lt_prog_compiler_static='-qstaticlink' 7729 ;; 7730 *) 7731 case `$CC -V 2>&1 | sed 5q` in 7732 *Sun\ C*) 7733 # Sun C 5.9 7734 lt_prog_compiler_pic='-KPIC' 7735 lt_prog_compiler_static='-Bstatic' 7736 lt_prog_compiler_wl='-Wl,' 7737 ;; 7738 *Sun\ F*) 7739 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7740 lt_prog_compiler_pic='-KPIC' 7741 lt_prog_compiler_static='-Bstatic' 7742 lt_prog_compiler_wl='' 7743 ;; 7744 esac 7745 ;; 7746 esac 7747 ;; 7748 7749 newsos6) 7750 lt_prog_compiler_pic='-KPIC' 7751 lt_prog_compiler_static='-Bstatic' 7752 ;; 7753 7754 *nto* | *qnx*) 7755 # QNX uses GNU C++, but need to define -shared option too, otherwise 7756 # it will coredump. 7757 lt_prog_compiler_pic='-fPIC -shared' 7758 ;; 7759 7760 osf3* | osf4* | osf5*) 7761 lt_prog_compiler_wl='-Wl,' 7762 # All OSF/1 code is PIC. 7763 lt_prog_compiler_static='-non_shared' 7764 ;; 7765 7766 rdos*) 7767 lt_prog_compiler_static='-non_shared' 7768 ;; 7769 7770 solaris*) 7771 lt_prog_compiler_pic='-KPIC' 7772 lt_prog_compiler_static='-Bstatic' 7773 case $cc_basename in 7774 f77* | f90* | f95*) 7775 lt_prog_compiler_wl='-Qoption ld ';; 7776 *) 7777 lt_prog_compiler_wl='-Wl,';; 7778 esac 7779 ;; 7780 7781 sunos4*) 7782 lt_prog_compiler_wl='-Qoption ld ' 7783 lt_prog_compiler_pic='-PIC' 7784 lt_prog_compiler_static='-Bstatic' 7785 ;; 7786 7787 sysv4 | sysv4.2uw2* | sysv4.3*) 7788 lt_prog_compiler_wl='-Wl,' 7789 lt_prog_compiler_pic='-KPIC' 7790 lt_prog_compiler_static='-Bstatic' 7791 ;; 7792 7793 sysv4*MP*) 7794 if test -d /usr/nec ;then 7795 lt_prog_compiler_pic='-Kconform_pic' 7796 lt_prog_compiler_static='-Bstatic' 7797 fi 7798 ;; 7799 7800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7801 lt_prog_compiler_wl='-Wl,' 7802 lt_prog_compiler_pic='-KPIC' 7803 lt_prog_compiler_static='-Bstatic' 7804 ;; 7805 7806 unicos*) 7807 lt_prog_compiler_wl='-Wl,' 7808 lt_prog_compiler_can_build_shared=no 7809 ;; 7810 7811 uts4*) 7812 lt_prog_compiler_pic='-pic' 7813 lt_prog_compiler_static='-Bstatic' 7814 ;; 7815 7816 *) 7817 lt_prog_compiler_can_build_shared=no 7818 ;; 7819 esac 7820 fi 7821 7822case $host_os in 7823 # For platforms which do not support PIC, -DPIC is meaningless: 7824 *djgpp*) 7825 lt_prog_compiler_pic= 7826 ;; 7827 *) 7828 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7829 ;; 7830esac 7831{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7832$as_echo "$lt_prog_compiler_pic" >&6; } 7833 7834 7835 7836 7837 7838 7839# 7840# Check to make sure the PIC flag actually works. 7841# 7842if test -n "$lt_prog_compiler_pic"; then 7843 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7845if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7846 $as_echo_n "(cached) " >&6 7847else 7848 lt_cv_prog_compiler_pic_works=no 7849 ac_outfile=conftest.$ac_objext 7850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7851 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7852 # Insert the option either (1) after the last *FLAGS variable, or 7853 # (2) before a word containing "conftest.", or (3) at the end. 7854 # Note that $ac_compile itself does not contain backslashes and begins 7855 # with a dollar sign (not a hyphen), so the echo should work correctly. 7856 # The option is referenced via a variable to avoid confusing sed. 7857 lt_compile=`echo "$ac_compile" | $SED \ 7858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7860 -e 's:$: $lt_compiler_flag:'` 7861 (eval echo "\"\$as_me:7861: $lt_compile\"" >&5) 7862 (eval "$lt_compile" 2>conftest.err) 7863 ac_status=$? 7864 cat conftest.err >&5 7865 echo "$as_me:7865: \$? = $ac_status" >&5 7866 if (exit $ac_status) && test -s "$ac_outfile"; then 7867 # The compiler can only warn and ignore the option if not recognized 7868 # So say no if there are warnings other than the usual output. 7869 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7872 lt_cv_prog_compiler_pic_works=yes 7873 fi 7874 fi 7875 $RM conftest* 7876 7877fi 7878{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7879$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7880 7881if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7882 case $lt_prog_compiler_pic in 7883 "" | " "*) ;; 7884 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7885 esac 7886else 7887 lt_prog_compiler_pic= 7888 lt_prog_compiler_can_build_shared=no 7889fi 7890 7891fi 7892 7893 7894 7895 7896 7897 7898# 7899# Check to make sure the static flag actually works. 7900# 7901wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7902{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7903$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7904if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7905 $as_echo_n "(cached) " >&6 7906else 7907 lt_cv_prog_compiler_static_works=no 7908 save_LDFLAGS="$LDFLAGS" 7909 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7910 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7912 # The linker can only warn and ignore the option if not recognized 7913 # So say no if there are warnings 7914 if test -s conftest.err; then 7915 # Append any errors to the config.log. 7916 cat conftest.err 1>&5 7917 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7919 if diff conftest.exp conftest.er2 >/dev/null; then 7920 lt_cv_prog_compiler_static_works=yes 7921 fi 7922 else 7923 lt_cv_prog_compiler_static_works=yes 7924 fi 7925 fi 7926 $RM -r conftest* 7927 LDFLAGS="$save_LDFLAGS" 7928 7929fi 7930{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7931$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7932 7933if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7934 : 7935else 7936 lt_prog_compiler_static= 7937fi 7938 7939 7940 7941 7942 7943 7944 7945 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7946$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7947if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7948 $as_echo_n "(cached) " >&6 7949else 7950 lt_cv_prog_compiler_c_o=no 7951 $RM -r conftest 2>/dev/null 7952 mkdir conftest 7953 cd conftest 7954 mkdir out 7955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7956 7957 lt_compiler_flag="-o out/conftest2.$ac_objext" 7958 # Insert the option either (1) after the last *FLAGS variable, or 7959 # (2) before a word containing "conftest.", or (3) at the end. 7960 # Note that $ac_compile itself does not contain backslashes and begins 7961 # with a dollar sign (not a hyphen), so the echo should work correctly. 7962 lt_compile=`echo "$ac_compile" | $SED \ 7963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7965 -e 's:$: $lt_compiler_flag:'` 7966 (eval echo "\"\$as_me:7966: $lt_compile\"" >&5) 7967 (eval "$lt_compile" 2>out/conftest.err) 7968 ac_status=$? 7969 cat out/conftest.err >&5 7970 echo "$as_me:7970: \$? = $ac_status" >&5 7971 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7972 then 7973 # The compiler can only warn and ignore the option if not recognized 7974 # So say no if there are warnings 7975 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7978 lt_cv_prog_compiler_c_o=yes 7979 fi 7980 fi 7981 chmod u+w . 2>&5 7982 $RM conftest* 7983 # SGI C++ compiler will create directory out/ii_files/ for 7984 # template instantiation 7985 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7986 $RM out/* && rmdir out 7987 cd .. 7988 $RM -r conftest 7989 $RM conftest* 7990 7991fi 7992{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7993$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7994 7995 7996 7997 7998 7999 8000 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8001$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8002if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8003 $as_echo_n "(cached) " >&6 8004else 8005 lt_cv_prog_compiler_c_o=no 8006 $RM -r conftest 2>/dev/null 8007 mkdir conftest 8008 cd conftest 8009 mkdir out 8010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8011 8012 lt_compiler_flag="-o out/conftest2.$ac_objext" 8013 # Insert the option either (1) after the last *FLAGS variable, or 8014 # (2) before a word containing "conftest.", or (3) at the end. 8015 # Note that $ac_compile itself does not contain backslashes and begins 8016 # with a dollar sign (not a hyphen), so the echo should work correctly. 8017 lt_compile=`echo "$ac_compile" | $SED \ 8018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8020 -e 's:$: $lt_compiler_flag:'` 8021 (eval echo "\"\$as_me:8021: $lt_compile\"" >&5) 8022 (eval "$lt_compile" 2>out/conftest.err) 8023 ac_status=$? 8024 cat out/conftest.err >&5 8025 echo "$as_me:8025: \$? = $ac_status" >&5 8026 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8027 then 8028 # The compiler can only warn and ignore the option if not recognized 8029 # So say no if there are warnings 8030 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8033 lt_cv_prog_compiler_c_o=yes 8034 fi 8035 fi 8036 chmod u+w . 2>&5 8037 $RM conftest* 8038 # SGI C++ compiler will create directory out/ii_files/ for 8039 # template instantiation 8040 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8041 $RM out/* && rmdir out 8042 cd .. 8043 $RM -r conftest 8044 $RM conftest* 8045 8046fi 8047{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8048$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8049 8050 8051 8052 8053hard_links="nottested" 8054if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8055 # do not overwrite the value of need_locks provided by the user 8056 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8057$as_echo_n "checking if we can lock with hard links... " >&6; } 8058 hard_links=yes 8059 $RM conftest* 8060 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8061 touch conftest.a 8062 ln conftest.a conftest.b 2>&5 || hard_links=no 8063 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8064 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8065$as_echo "$hard_links" >&6; } 8066 if test "$hard_links" = no; then 8067 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8068$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8069 need_locks=warn 8070 fi 8071else 8072 need_locks=no 8073fi 8074 8075 8076 8077 8078 8079 8080 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8081$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8082 8083 runpath_var= 8084 allow_undefined_flag= 8085 always_export_symbols=no 8086 archive_cmds= 8087 archive_expsym_cmds= 8088 compiler_needs_object=no 8089 enable_shared_with_static_runtimes=no 8090 export_dynamic_flag_spec= 8091 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8092 hardcode_automatic=no 8093 hardcode_direct=no 8094 hardcode_direct_absolute=no 8095 hardcode_libdir_flag_spec= 8096 hardcode_libdir_flag_spec_ld= 8097 hardcode_libdir_separator= 8098 hardcode_minus_L=no 8099 hardcode_shlibpath_var=unsupported 8100 inherit_rpath=no 8101 link_all_deplibs=unknown 8102 module_cmds= 8103 module_expsym_cmds= 8104 old_archive_from_new_cmds= 8105 old_archive_from_expsyms_cmds= 8106 thread_safe_flag_spec= 8107 whole_archive_flag_spec= 8108 # include_expsyms should be a list of space-separated symbols to be *always* 8109 # included in the symbol list 8110 include_expsyms= 8111 # exclude_expsyms can be an extended regexp of symbols to exclude 8112 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8113 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8114 # as well as any symbol that contains `d'. 8115 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8116 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8117 # platforms (ab)use it in PIC code, but their linkers get confused if 8118 # the symbol is explicitly referenced. Since portable code cannot 8119 # rely on this symbol name, it's probably fine to never include it in 8120 # preloaded symbol tables. 8121 # Exclude shared library initialization/finalization symbols. 8122 extract_expsyms_cmds= 8123 8124 case $host_os in 8125 cygwin* | mingw* | pw32* | cegcc*) 8126 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8127 # When not using gcc, we currently assume that we are using 8128 # Microsoft Visual C++. 8129 if test "$GCC" != yes; then 8130 with_gnu_ld=no 8131 fi 8132 ;; 8133 interix*) 8134 # we just hope/assume this is gcc and not c89 (= MSVC++) 8135 with_gnu_ld=yes 8136 ;; 8137 openbsd*) 8138 with_gnu_ld=no 8139 ;; 8140 esac 8141 8142 ld_shlibs=yes 8143 if test "$with_gnu_ld" = yes; then 8144 # If archive_cmds runs LD, not CC, wlarc should be empty 8145 wlarc='${wl}' 8146 8147 # Set some defaults for GNU ld with shared library support. These 8148 # are reset later if shared libraries are not supported. Putting them 8149 # here allows them to be overridden if necessary. 8150 runpath_var=LD_RUN_PATH 8151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8152 export_dynamic_flag_spec='${wl}--export-dynamic' 8153 # ancient GNU ld didn't support --whole-archive et. al. 8154 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8155 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8156 else 8157 whole_archive_flag_spec= 8158 fi 8159 supports_anon_versioning=no 8160 case `$LD -v 2>&1` in 8161 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8162 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8163 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8164 *\ 2.11.*) ;; # other 2.11 versions 8165 *) supports_anon_versioning=yes ;; 8166 esac 8167 8168 # See if GNU ld supports shared libraries. 8169 case $host_os in 8170 aix[3-9]*) 8171 # On AIX/PPC, the GNU linker is very broken 8172 if test "$host_cpu" != ia64; then 8173 ld_shlibs=no 8174 cat <<_LT_EOF 1>&2 8175 8176*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8177*** to be unable to reliably create shared libraries on AIX. 8178*** Therefore, libtool is disabling shared libraries support. If you 8179*** really care for shared libraries, you may want to modify your PATH 8180*** so that a non-GNU linker is found, and then restart. 8181 8182_LT_EOF 8183 fi 8184 ;; 8185 8186 amigaos*) 8187 case $host_cpu in 8188 powerpc) 8189 # see comment about AmigaOS4 .so support 8190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8191 archive_expsym_cmds='' 8192 ;; 8193 m68k) 8194 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)' 8195 hardcode_libdir_flag_spec='-L$libdir' 8196 hardcode_minus_L=yes 8197 ;; 8198 esac 8199 ;; 8200 8201 beos*) 8202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8203 allow_undefined_flag=unsupported 8204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8205 # support --undefined. This deserves some investigation. FIXME 8206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8207 else 8208 ld_shlibs=no 8209 fi 8210 ;; 8211 8212 cygwin* | mingw* | pw32* | cegcc*) 8213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8214 # as there is no search path for DLLs. 8215 hardcode_libdir_flag_spec='-L$libdir' 8216 allow_undefined_flag=unsupported 8217 always_export_symbols=no 8218 enable_shared_with_static_runtimes=yes 8219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8220 8221 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8223 # If the export-symbols file already is a .def file (1st line 8224 # is EXPORTS), use it as is; otherwise, prepend... 8225 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8226 cp $export_symbols $output_objdir/$soname.def; 8227 else 8228 echo EXPORTS > $output_objdir/$soname.def; 8229 cat $export_symbols >> $output_objdir/$soname.def; 8230 fi~ 8231 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8232 else 8233 ld_shlibs=no 8234 fi 8235 ;; 8236 8237 interix[3-9]*) 8238 hardcode_direct=no 8239 hardcode_shlibpath_var=no 8240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8241 export_dynamic_flag_spec='${wl}-E' 8242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8243 # Instead, shared libraries are loaded at an image base (0x10000000 by 8244 # default) and relocated if they conflict, which is a slow very memory 8245 # consuming and fragmenting process. To avoid this, we pick a random, 8246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8247 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8249 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' 8250 ;; 8251 8252 gnu* | linux* | tpf* | k*bsd*-gnu) 8253 tmp_diet=no 8254 if test "$host_os" = linux-dietlibc; then 8255 case $cc_basename in 8256 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8257 esac 8258 fi 8259 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8260 && test "$tmp_diet" = no 8261 then 8262 tmp_addflag= 8263 tmp_sharedflag='-shared' 8264 case $cc_basename,$host_cpu in 8265 pgcc*) # Portland Group C compiler 8266 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' 8267 tmp_addflag=' $pic_flag' 8268 ;; 8269 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8270 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8271 tmp_addflag=' $pic_flag -Mnomain' ;; 8272 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8273 tmp_addflag=' -i_dynamic' ;; 8274 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8275 tmp_addflag=' -i_dynamic -nofor_main' ;; 8276 ifc* | ifort*) # Intel Fortran compiler 8277 tmp_addflag=' -nofor_main' ;; 8278 lf95*) # Lahey Fortran 8.1 8279 whole_archive_flag_spec= 8280 tmp_sharedflag='--shared' ;; 8281 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8282 tmp_sharedflag='-qmkshrobj' 8283 tmp_addflag= ;; 8284 esac 8285 case `$CC -V 2>&1 | sed 5q` in 8286 *Sun\ C*) # Sun C 5.9 8287 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' 8288 compiler_needs_object=yes 8289 tmp_sharedflag='-G' ;; 8290 *Sun\ F*) # Sun Fortran 8.3 8291 tmp_sharedflag='-G' ;; 8292 esac 8293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8294 8295 if test "x$supports_anon_versioning" = xyes; then 8296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8298 echo "local: *; };" >> $output_objdir/$libname.ver~ 8299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8300 fi 8301 8302 case $cc_basename in 8303 xlf*) 8304 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8305 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8306 hardcode_libdir_flag_spec= 8307 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8308 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8309 if test "x$supports_anon_versioning" = xyes; then 8310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8312 echo "local: *; };" >> $output_objdir/$libname.ver~ 8313 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8314 fi 8315 ;; 8316 esac 8317 else 8318 ld_shlibs=no 8319 fi 8320 ;; 8321 8322 netbsd*) 8323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8324 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8325 wlarc= 8326 else 8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8329 fi 8330 ;; 8331 8332 solaris*) 8333 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8334 ld_shlibs=no 8335 cat <<_LT_EOF 1>&2 8336 8337*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8338*** create shared libraries on Solaris systems. Therefore, libtool 8339*** is disabling shared libraries support. We urge you to upgrade GNU 8340*** binutils to release 2.9.1 or newer. Another option is to modify 8341*** your PATH or compiler configuration so that the native linker is 8342*** used, and then restart. 8343 8344_LT_EOF 8345 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8348 else 8349 ld_shlibs=no 8350 fi 8351 ;; 8352 8353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8354 case `$LD -v 2>&1` in 8355 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8356 ld_shlibs=no 8357 cat <<_LT_EOF 1>&2 8358 8359*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8360*** reliably create shared libraries on SCO systems. Therefore, libtool 8361*** is disabling shared libraries support. We urge you to upgrade GNU 8362*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8363*** your PATH or compiler configuration so that the native linker is 8364*** used, and then restart. 8365 8366_LT_EOF 8367 ;; 8368 *) 8369 # For security reasons, it is highly recommended that you always 8370 # use absolute paths for naming shared libraries, and exclude the 8371 # DT_RUNPATH tag from executables and libraries. But doing so 8372 # requires that you compile everything twice, which is a pain. 8373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8377 else 8378 ld_shlibs=no 8379 fi 8380 ;; 8381 esac 8382 ;; 8383 8384 sunos4*) 8385 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8386 wlarc= 8387 hardcode_direct=yes 8388 hardcode_shlibpath_var=no 8389 ;; 8390 8391 *) 8392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8395 else 8396 ld_shlibs=no 8397 fi 8398 ;; 8399 esac 8400 8401 if test "$ld_shlibs" = no; then 8402 runpath_var= 8403 hardcode_libdir_flag_spec= 8404 export_dynamic_flag_spec= 8405 whole_archive_flag_spec= 8406 fi 8407 else 8408 # PORTME fill in a description of your system's linker (not GNU ld) 8409 case $host_os in 8410 aix3*) 8411 allow_undefined_flag=unsupported 8412 always_export_symbols=yes 8413 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' 8414 # Note: this linker hardcodes the directories in LIBPATH if there 8415 # are no directories specified by -L. 8416 hardcode_minus_L=yes 8417 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8418 # Neither direct hardcoding nor static linking is supported with a 8419 # broken collect2. 8420 hardcode_direct=unsupported 8421 fi 8422 ;; 8423 8424 aix[4-9]*) 8425 if test "$host_cpu" = ia64; then 8426 # On IA64, the linker does run time linking by default, so we don't 8427 # have to do anything special. 8428 aix_use_runtimelinking=no 8429 exp_sym_flag='-Bexport' 8430 no_entry_flag="" 8431 else 8432 # If we're using GNU nm, then we don't want the "-C" option. 8433 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8434 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8435 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' 8436 else 8437 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' 8438 fi 8439 aix_use_runtimelinking=no 8440 8441 # Test if we are trying to use run time linking or normal 8442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8443 # need to do runtime linking. 8444 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8445 for ld_flag in $LDFLAGS; do 8446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8447 aix_use_runtimelinking=yes 8448 break 8449 fi 8450 done 8451 ;; 8452 esac 8453 8454 exp_sym_flag='-bexport' 8455 no_entry_flag='-bnoentry' 8456 fi 8457 8458 # When large executables or shared objects are built, AIX ld can 8459 # have problems creating the table of contents. If linking a library 8460 # or program results in "error TOC overflow" add -mminimal-toc to 8461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8463 8464 archive_cmds='' 8465 hardcode_direct=yes 8466 hardcode_direct_absolute=yes 8467 hardcode_libdir_separator=':' 8468 link_all_deplibs=yes 8469 file_list_spec='${wl}-f,' 8470 8471 if test "$GCC" = yes; then 8472 case $host_os in aix4.[012]|aix4.[012].*) 8473 # We only want to do this on AIX 4.2 and lower, the check 8474 # below for broken collect2 doesn't work under 4.3+ 8475 collect2name=`${CC} -print-prog-name=collect2` 8476 if test -f "$collect2name" && 8477 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8478 then 8479 # We have reworked collect2 8480 : 8481 else 8482 # We have old collect2 8483 hardcode_direct=unsupported 8484 # It fails to find uninstalled libraries when the uninstalled 8485 # path is not listed in the libpath. Setting hardcode_minus_L 8486 # to unsupported forces relinking 8487 hardcode_minus_L=yes 8488 hardcode_libdir_flag_spec='-L$libdir' 8489 hardcode_libdir_separator= 8490 fi 8491 ;; 8492 esac 8493 shared_flag='-shared' 8494 if test "$aix_use_runtimelinking" = yes; then 8495 shared_flag="$shared_flag "'${wl}-G' 8496 fi 8497 else 8498 # not using gcc 8499 if test "$host_cpu" = ia64; then 8500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8501 # chokes on -Wl,-G. The following line is correct: 8502 shared_flag='-G' 8503 else 8504 if test "$aix_use_runtimelinking" = yes; then 8505 shared_flag='${wl}-G' 8506 else 8507 shared_flag='${wl}-bM:SRE' 8508 fi 8509 fi 8510 fi 8511 8512 export_dynamic_flag_spec='${wl}-bexpall' 8513 # It seems that -bexpall does not export symbols beginning with 8514 # underscore (_), so it is better to generate a list of symbols to export. 8515 always_export_symbols=yes 8516 if test "$aix_use_runtimelinking" = yes; then 8517 # Warning - without using the other runtime loading flags (-brtl), 8518 # -berok will link without error, but may produce a broken library. 8519 allow_undefined_flag='-berok' 8520 # Determine the default libpath from the value encoded in an 8521 # empty executable. 8522 cat >conftest.$ac_ext <<_ACEOF 8523/* confdefs.h. */ 8524_ACEOF 8525cat confdefs.h >>conftest.$ac_ext 8526cat >>conftest.$ac_ext <<_ACEOF 8527/* end confdefs.h. */ 8528 8529int 8530main () 8531{ 8532 8533 ; 8534 return 0; 8535} 8536_ACEOF 8537rm -f conftest.$ac_objext conftest$ac_exeext 8538if { (ac_try="$ac_link" 8539case "(($ac_try" in 8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8541 *) ac_try_echo=$ac_try;; 8542esac 8543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8544$as_echo "$ac_try_echo") >&5 8545 (eval "$ac_link") 2>conftest.er1 8546 ac_status=$? 8547 grep -v '^ *+' conftest.er1 >conftest.err 8548 rm -f conftest.er1 8549 cat conftest.err >&5 8550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8551 (exit $ac_status); } && { 8552 test -z "$ac_c_werror_flag" || 8553 test ! -s conftest.err 8554 } && test -s conftest$ac_exeext && { 8555 test "$cross_compiling" = yes || 8556 $as_test_x conftest$ac_exeext 8557 }; then 8558 8559lt_aix_libpath_sed=' 8560 /Import File Strings/,/^$/ { 8561 /^0/ { 8562 s/^0 *\(.*\)$/\1/ 8563 p 8564 } 8565 }' 8566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8567# Check for a 64-bit object if we didn't find anything. 8568if test -z "$aix_libpath"; then 8569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8570fi 8571else 8572 $as_echo "$as_me: failed program was:" >&5 8573sed 's/^/| /' conftest.$ac_ext >&5 8574 8575 8576fi 8577 8578rm -rf conftest.dSYM 8579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8580 conftest$ac_exeext conftest.$ac_ext 8581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8582 8583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8584 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" 8585 else 8586 if test "$host_cpu" = ia64; then 8587 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8588 allow_undefined_flag="-z nodefs" 8589 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" 8590 else 8591 # Determine the default libpath from the value encoded in an 8592 # empty executable. 8593 cat >conftest.$ac_ext <<_ACEOF 8594/* confdefs.h. */ 8595_ACEOF 8596cat confdefs.h >>conftest.$ac_ext 8597cat >>conftest.$ac_ext <<_ACEOF 8598/* end confdefs.h. */ 8599 8600int 8601main () 8602{ 8603 8604 ; 8605 return 0; 8606} 8607_ACEOF 8608rm -f conftest.$ac_objext conftest$ac_exeext 8609if { (ac_try="$ac_link" 8610case "(($ac_try" in 8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8612 *) ac_try_echo=$ac_try;; 8613esac 8614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8615$as_echo "$ac_try_echo") >&5 8616 (eval "$ac_link") 2>conftest.er1 8617 ac_status=$? 8618 grep -v '^ *+' conftest.er1 >conftest.err 8619 rm -f conftest.er1 8620 cat conftest.err >&5 8621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8622 (exit $ac_status); } && { 8623 test -z "$ac_c_werror_flag" || 8624 test ! -s conftest.err 8625 } && test -s conftest$ac_exeext && { 8626 test "$cross_compiling" = yes || 8627 $as_test_x conftest$ac_exeext 8628 }; then 8629 8630lt_aix_libpath_sed=' 8631 /Import File Strings/,/^$/ { 8632 /^0/ { 8633 s/^0 *\(.*\)$/\1/ 8634 p 8635 } 8636 }' 8637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8638# Check for a 64-bit object if we didn't find anything. 8639if test -z "$aix_libpath"; then 8640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8641fi 8642else 8643 $as_echo "$as_me: failed program was:" >&5 8644sed 's/^/| /' conftest.$ac_ext >&5 8645 8646 8647fi 8648 8649rm -rf conftest.dSYM 8650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8651 conftest$ac_exeext conftest.$ac_ext 8652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8653 8654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8655 # Warning - without using the other run time loading flags, 8656 # -berok will link without error, but may produce a broken library. 8657 no_undefined_flag=' ${wl}-bernotok' 8658 allow_undefined_flag=' ${wl}-berok' 8659 # Exported symbols can be pulled into shared objects from archives 8660 whole_archive_flag_spec='$convenience' 8661 archive_cmds_need_lc=yes 8662 # This is similar to how AIX traditionally builds its shared libraries. 8663 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' 8664 fi 8665 fi 8666 ;; 8667 8668 amigaos*) 8669 case $host_cpu in 8670 powerpc) 8671 # see comment about AmigaOS4 .so support 8672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8673 archive_expsym_cmds='' 8674 ;; 8675 m68k) 8676 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)' 8677 hardcode_libdir_flag_spec='-L$libdir' 8678 hardcode_minus_L=yes 8679 ;; 8680 esac 8681 ;; 8682 8683 bsdi[45]*) 8684 export_dynamic_flag_spec=-rdynamic 8685 ;; 8686 8687 cygwin* | mingw* | pw32* | cegcc*) 8688 # When not using gcc, we currently assume that we are using 8689 # Microsoft Visual C++. 8690 # hardcode_libdir_flag_spec is actually meaningless, as there is 8691 # no search path for DLLs. 8692 hardcode_libdir_flag_spec=' ' 8693 allow_undefined_flag=unsupported 8694 # Tell ltmain to make .lib files, not .a files. 8695 libext=lib 8696 # Tell ltmain to make .dll files, not .so files. 8697 shrext_cmds=".dll" 8698 # FIXME: Setting linknames here is a bad hack. 8699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8700 # The linker will automatically build a .lib file if we build a DLL. 8701 old_archive_from_new_cmds='true' 8702 # FIXME: Should let the user specify the lib program. 8703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8704 fix_srcfile_path='`cygpath -w "$srcfile"`' 8705 enable_shared_with_static_runtimes=yes 8706 ;; 8707 8708 darwin* | rhapsody*) 8709 8710 8711 archive_cmds_need_lc=no 8712 hardcode_direct=no 8713 hardcode_automatic=yes 8714 hardcode_shlibpath_var=unsupported 8715 whole_archive_flag_spec='' 8716 link_all_deplibs=yes 8717 allow_undefined_flag="$_lt_dar_allow_undefined" 8718 case $cc_basename in 8719 ifort*) _lt_dar_can_shared=yes ;; 8720 *) _lt_dar_can_shared=$GCC ;; 8721 esac 8722 if test "$_lt_dar_can_shared" = "yes"; then 8723 output_verbose_link_cmd=echo 8724 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8725 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8726 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}" 8727 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}" 8728 8729 else 8730 ld_shlibs=no 8731 fi 8732 8733 ;; 8734 8735 dgux*) 8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8737 hardcode_libdir_flag_spec='-L$libdir' 8738 hardcode_shlibpath_var=no 8739 ;; 8740 8741 freebsd1*) 8742 ld_shlibs=no 8743 ;; 8744 8745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8746 # support. Future versions do this automatically, but an explicit c++rt0.o 8747 # does not break anything, and helps significantly (at the cost of a little 8748 # extra space). 8749 freebsd2.2*) 8750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8751 hardcode_libdir_flag_spec='-R$libdir' 8752 hardcode_direct=yes 8753 hardcode_shlibpath_var=no 8754 ;; 8755 8756 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8757 freebsd2*) 8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8759 hardcode_direct=yes 8760 hardcode_minus_L=yes 8761 hardcode_shlibpath_var=no 8762 ;; 8763 8764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8765 freebsd* | dragonfly*) 8766 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8767 hardcode_libdir_flag_spec='-R$libdir' 8768 hardcode_direct=yes 8769 hardcode_shlibpath_var=no 8770 ;; 8771 8772 hpux9*) 8773 if test "$GCC" = yes; then 8774 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' 8775 else 8776 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' 8777 fi 8778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8779 hardcode_libdir_separator=: 8780 hardcode_direct=yes 8781 8782 # hardcode_minus_L: Not really in the search PATH, 8783 # but as the default location of the library. 8784 hardcode_minus_L=yes 8785 export_dynamic_flag_spec='${wl}-E' 8786 ;; 8787 8788 hpux10*) 8789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8791 else 8792 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8793 fi 8794 if test "$with_gnu_ld" = no; then 8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8796 hardcode_libdir_flag_spec_ld='+b $libdir' 8797 hardcode_libdir_separator=: 8798 hardcode_direct=yes 8799 hardcode_direct_absolute=yes 8800 export_dynamic_flag_spec='${wl}-E' 8801 # hardcode_minus_L: Not really in the search PATH, 8802 # but as the default location of the library. 8803 hardcode_minus_L=yes 8804 fi 8805 ;; 8806 8807 hpux11*) 8808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8809 case $host_cpu in 8810 hppa*64*) 8811 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8812 ;; 8813 ia64*) 8814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8815 ;; 8816 *) 8817 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 esac 8820 else 8821 case $host_cpu in 8822 hppa*64*) 8823 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8824 ;; 8825 ia64*) 8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 *) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 esac 8832 fi 8833 if test "$with_gnu_ld" = no; then 8834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8835 hardcode_libdir_separator=: 8836 8837 case $host_cpu in 8838 hppa*64*|ia64*) 8839 hardcode_direct=no 8840 hardcode_shlibpath_var=no 8841 ;; 8842 *) 8843 hardcode_direct=yes 8844 hardcode_direct_absolute=yes 8845 export_dynamic_flag_spec='${wl}-E' 8846 8847 # hardcode_minus_L: Not really in the search PATH, 8848 # but as the default location of the library. 8849 hardcode_minus_L=yes 8850 ;; 8851 esac 8852 fi 8853 ;; 8854 8855 irix5* | irix6* | nonstopux*) 8856 if test "$GCC" = yes; then 8857 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' 8858 # Try to use the -exported_symbol ld option, if it does not 8859 # work, assume that -exports_file does not work either and 8860 # implicitly export all symbols. 8861 save_LDFLAGS="$LDFLAGS" 8862 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8863 cat >conftest.$ac_ext <<_ACEOF 8864int foo(void) {} 8865_ACEOF 8866rm -f conftest.$ac_objext conftest$ac_exeext 8867if { (ac_try="$ac_link" 8868case "(($ac_try" in 8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8870 *) ac_try_echo=$ac_try;; 8871esac 8872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8873$as_echo "$ac_try_echo") >&5 8874 (eval "$ac_link") 2>conftest.er1 8875 ac_status=$? 8876 grep -v '^ *+' conftest.er1 >conftest.err 8877 rm -f conftest.er1 8878 cat conftest.err >&5 8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8880 (exit $ac_status); } && { 8881 test -z "$ac_c_werror_flag" || 8882 test ! -s conftest.err 8883 } && test -s conftest$ac_exeext && { 8884 test "$cross_compiling" = yes || 8885 $as_test_x conftest$ac_exeext 8886 }; then 8887 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' 8888 8889else 8890 $as_echo "$as_me: failed program was:" >&5 8891sed 's/^/| /' conftest.$ac_ext >&5 8892 8893 8894fi 8895 8896rm -rf conftest.dSYM 8897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8898 conftest$ac_exeext conftest.$ac_ext 8899 LDFLAGS="$save_LDFLAGS" 8900 else 8901 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' 8902 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' 8903 fi 8904 archive_cmds_need_lc='no' 8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8906 hardcode_libdir_separator=: 8907 inherit_rpath=yes 8908 link_all_deplibs=yes 8909 ;; 8910 8911 netbsd*) 8912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8914 else 8915 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8916 fi 8917 hardcode_libdir_flag_spec='-R$libdir' 8918 hardcode_direct=yes 8919 hardcode_shlibpath_var=no 8920 ;; 8921 8922 newsos6) 8923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8924 hardcode_direct=yes 8925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8926 hardcode_libdir_separator=: 8927 hardcode_shlibpath_var=no 8928 ;; 8929 8930 *nto* | *qnx*) 8931 ;; 8932 8933 openbsd*) 8934 if test -f /usr/libexec/ld.so; then 8935 hardcode_direct=yes 8936 hardcode_shlibpath_var=no 8937 hardcode_direct_absolute=yes 8938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8940 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8942 export_dynamic_flag_spec='${wl}-E' 8943 else 8944 case $host_os in 8945 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8947 hardcode_libdir_flag_spec='-R$libdir' 8948 ;; 8949 *) 8950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8951 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8952 ;; 8953 esac 8954 fi 8955 else 8956 ld_shlibs=no 8957 fi 8958 ;; 8959 8960 os2*) 8961 hardcode_libdir_flag_spec='-L$libdir' 8962 hardcode_minus_L=yes 8963 allow_undefined_flag=unsupported 8964 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' 8965 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8966 ;; 8967 8968 osf3*) 8969 if test "$GCC" = yes; then 8970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8971 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' 8972 else 8973 allow_undefined_flag=' -expect_unresolved \*' 8974 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' 8975 fi 8976 archive_cmds_need_lc='no' 8977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8978 hardcode_libdir_separator=: 8979 ;; 8980 8981 osf4* | osf5*) # as osf3* with the addition of -msym flag 8982 if test "$GCC" = yes; then 8983 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8984 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' 8985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8986 else 8987 allow_undefined_flag=' -expect_unresolved \*' 8988 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' 8989 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~ 8990 $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' 8991 8992 # Both c and cxx compiler support -rpath directly 8993 hardcode_libdir_flag_spec='-rpath $libdir' 8994 fi 8995 archive_cmds_need_lc='no' 8996 hardcode_libdir_separator=: 8997 ;; 8998 8999 solaris*) 9000 no_undefined_flag=' -z defs' 9001 if test "$GCC" = yes; then 9002 wlarc='${wl}' 9003 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9005 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9006 else 9007 case `$CC -V 2>&1` in 9008 *"Compilers 5.0"*) 9009 wlarc='' 9010 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9012 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9013 ;; 9014 *) 9015 wlarc='${wl}' 9016 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9018 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9019 ;; 9020 esac 9021 fi 9022 hardcode_libdir_flag_spec='-R$libdir' 9023 hardcode_shlibpath_var=no 9024 case $host_os in 9025 solaris2.[0-5] | solaris2.[0-5].*) ;; 9026 *) 9027 # The compiler driver will combine and reorder linker options, 9028 # but understands `-z linker_flag'. GCC discards it without `$wl', 9029 # but is careful enough not to reorder. 9030 # Supported since Solaris 2.6 (maybe 2.5.1?) 9031 if test "$GCC" = yes; then 9032 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9033 else 9034 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9035 fi 9036 ;; 9037 esac 9038 link_all_deplibs=yes 9039 ;; 9040 9041 sunos4*) 9042 if test "x$host_vendor" = xsequent; then 9043 # Use $CC to link under sequent, because it throws in some extra .o 9044 # files that make .init and .fini sections work. 9045 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9046 else 9047 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9048 fi 9049 hardcode_libdir_flag_spec='-L$libdir' 9050 hardcode_direct=yes 9051 hardcode_minus_L=yes 9052 hardcode_shlibpath_var=no 9053 ;; 9054 9055 sysv4) 9056 case $host_vendor in 9057 sni) 9058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9059 hardcode_direct=yes # is this really true??? 9060 ;; 9061 siemens) 9062 ## LD is ld it makes a PLAMLIB 9063 ## CC just makes a GrossModule. 9064 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9065 reload_cmds='$CC -r -o $output$reload_objs' 9066 hardcode_direct=no 9067 ;; 9068 motorola) 9069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9070 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9071 ;; 9072 esac 9073 runpath_var='LD_RUN_PATH' 9074 hardcode_shlibpath_var=no 9075 ;; 9076 9077 sysv4.3*) 9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9079 hardcode_shlibpath_var=no 9080 export_dynamic_flag_spec='-Bexport' 9081 ;; 9082 9083 sysv4*MP*) 9084 if test -d /usr/nec; then 9085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9086 hardcode_shlibpath_var=no 9087 runpath_var=LD_RUN_PATH 9088 hardcode_runpath_var=yes 9089 ld_shlibs=yes 9090 fi 9091 ;; 9092 9093 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9094 no_undefined_flag='${wl}-z,text' 9095 archive_cmds_need_lc=no 9096 hardcode_shlibpath_var=no 9097 runpath_var='LD_RUN_PATH' 9098 9099 if test "$GCC" = yes; then 9100 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9101 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9102 else 9103 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9104 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9105 fi 9106 ;; 9107 9108 sysv5* | sco3.2v5* | sco5v6*) 9109 # Note: We can NOT use -z defs as we might desire, because we do not 9110 # link with -lc, and that would cause any symbols used from libc to 9111 # always be unresolved, which means just about no library would 9112 # ever link correctly. If we're not using GNU ld we use -z text 9113 # though, which does catch some bad symbols but isn't as heavy-handed 9114 # as -z defs. 9115 no_undefined_flag='${wl}-z,text' 9116 allow_undefined_flag='${wl}-z,nodefs' 9117 archive_cmds_need_lc=no 9118 hardcode_shlibpath_var=no 9119 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9120 hardcode_libdir_separator=':' 9121 link_all_deplibs=yes 9122 export_dynamic_flag_spec='${wl}-Bexport' 9123 runpath_var='LD_RUN_PATH' 9124 9125 if test "$GCC" = yes; then 9126 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9127 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9128 else 9129 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9130 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9131 fi 9132 ;; 9133 9134 uts4*) 9135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9136 hardcode_libdir_flag_spec='-L$libdir' 9137 hardcode_shlibpath_var=no 9138 ;; 9139 9140 *) 9141 ld_shlibs=no 9142 ;; 9143 esac 9144 9145 if test x$host_vendor = xsni; then 9146 case $host in 9147 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9148 export_dynamic_flag_spec='${wl}-Blargedynsym' 9149 ;; 9150 esac 9151 fi 9152 fi 9153 9154{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9155$as_echo "$ld_shlibs" >&6; } 9156test "$ld_shlibs" = no && can_build_shared=no 9157 9158with_gnu_ld=$with_gnu_ld 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174# 9175# Do we need to explicitly link libc? 9176# 9177case "x$archive_cmds_need_lc" in 9178x|xyes) 9179 # Assume -lc should be added 9180 archive_cmds_need_lc=yes 9181 9182 if test "$enable_shared" = yes && test "$GCC" = yes; then 9183 case $archive_cmds in 9184 *'~'*) 9185 # FIXME: we may have to deal with multi-command sequences. 9186 ;; 9187 '$CC '*) 9188 # Test whether the compiler implicitly links with -lc since on some 9189 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9190 # to ld, don't add -lc before -lgcc. 9191 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9192$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9193 $RM conftest* 9194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9195 9196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9197 (eval $ac_compile) 2>&5 9198 ac_status=$? 9199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 (exit $ac_status); } 2>conftest.err; then 9201 soname=conftest 9202 lib=conftest 9203 libobjs=conftest.$ac_objext 9204 deplibs= 9205 wl=$lt_prog_compiler_wl 9206 pic_flag=$lt_prog_compiler_pic 9207 compiler_flags=-v 9208 linker_flags=-v 9209 verstring= 9210 output_objdir=. 9211 libname=conftest 9212 lt_save_allow_undefined_flag=$allow_undefined_flag 9213 allow_undefined_flag= 9214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9215 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9216 ac_status=$? 9217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 (exit $ac_status); } 9219 then 9220 archive_cmds_need_lc=no 9221 else 9222 archive_cmds_need_lc=yes 9223 fi 9224 allow_undefined_flag=$lt_save_allow_undefined_flag 9225 else 9226 cat conftest.err 1>&5 9227 fi 9228 $RM conftest* 9229 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9230$as_echo "$archive_cmds_need_lc" >&6; } 9231 ;; 9232 esac 9233 fi 9234 ;; 9235esac 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9394$as_echo_n "checking dynamic linker characteristics... " >&6; } 9395 9396if test "$GCC" = yes; then 9397 case $host_os in 9398 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9399 *) lt_awk_arg="/^libraries:/" ;; 9400 esac 9401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9402 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9403 # if the path contains ";" then we assume it to be the separator 9404 # otherwise default to the standard path separator (i.e. ":") - it is 9405 # assumed that no part of a normal pathname contains ";" but that should 9406 # okay in the real world where ";" in dirpaths is itself problematic. 9407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9408 else 9409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9410 fi 9411 # Ok, now we have the path, separated by spaces, we can step through it 9412 # and add multilib dir if necessary. 9413 lt_tmp_lt_search_path_spec= 9414 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9415 for lt_sys_path in $lt_search_path_spec; do 9416 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9418 else 9419 test -d "$lt_sys_path" && \ 9420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9421 fi 9422 done 9423 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9424BEGIN {RS=" "; FS="/|\n";} { 9425 lt_foo=""; 9426 lt_count=0; 9427 for (lt_i = NF; lt_i > 0; lt_i--) { 9428 if ($lt_i != "" && $lt_i != ".") { 9429 if ($lt_i == "..") { 9430 lt_count++; 9431 } else { 9432 if (lt_count == 0) { 9433 lt_foo="/" $lt_i lt_foo; 9434 } else { 9435 lt_count--; 9436 } 9437 } 9438 } 9439 } 9440 if (lt_foo != "") { lt_freq[lt_foo]++; } 9441 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9442}'` 9443 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9444else 9445 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9446fi 9447library_names_spec= 9448libname_spec='lib$name' 9449soname_spec= 9450shrext_cmds=".so" 9451postinstall_cmds= 9452postuninstall_cmds= 9453finish_cmds= 9454finish_eval= 9455shlibpath_var= 9456shlibpath_overrides_runpath=unknown 9457version_type=none 9458dynamic_linker="$host_os ld.so" 9459sys_lib_dlsearch_path_spec="/lib /usr/lib" 9460need_lib_prefix=unknown 9461hardcode_into_libs=no 9462 9463# when you set need_version to no, make sure it does not cause -set_version 9464# flags to be left without arguments 9465need_version=unknown 9466 9467case $host_os in 9468aix3*) 9469 version_type=linux 9470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9471 shlibpath_var=LIBPATH 9472 9473 # AIX 3 has no versioning support, so we append a major version to the name. 9474 soname_spec='${libname}${release}${shared_ext}$major' 9475 ;; 9476 9477aix[4-9]*) 9478 version_type=linux 9479 need_lib_prefix=no 9480 need_version=no 9481 hardcode_into_libs=yes 9482 if test "$host_cpu" = ia64; then 9483 # AIX 5 supports IA64 9484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9485 shlibpath_var=LD_LIBRARY_PATH 9486 else 9487 # With GCC up to 2.95.x, collect2 would create an import file 9488 # for dependence libraries. The import file would start with 9489 # the line `#! .'. This would cause the generated library to 9490 # depend on `.', always an invalid library. This was fixed in 9491 # development snapshots of GCC prior to 3.0. 9492 case $host_os in 9493 aix4 | aix4.[01] | aix4.[01].*) 9494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9495 echo ' yes ' 9496 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9497 : 9498 else 9499 can_build_shared=no 9500 fi 9501 ;; 9502 esac 9503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9504 # soname into executable. Probably we can add versioning support to 9505 # collect2, so additional links can be useful in future. 9506 if test "$aix_use_runtimelinking" = yes; then 9507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9508 # instead of lib<name>.a to let people know that these are not 9509 # typical AIX shared libraries. 9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9511 else 9512 # We preserve .a as extension for shared libraries through AIX4.2 9513 # and later when we are not doing run time linking. 9514 library_names_spec='${libname}${release}.a $libname.a' 9515 soname_spec='${libname}${release}${shared_ext}$major' 9516 fi 9517 shlibpath_var=LIBPATH 9518 fi 9519 ;; 9520 9521amigaos*) 9522 case $host_cpu in 9523 powerpc) 9524 # Since July 2007 AmigaOS4 officially supports .so libraries. 9525 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9527 ;; 9528 m68k) 9529 library_names_spec='$libname.ixlibrary $libname.a' 9530 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9531 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' 9532 ;; 9533 esac 9534 ;; 9535 9536beos*) 9537 library_names_spec='${libname}${shared_ext}' 9538 dynamic_linker="$host_os ld.so" 9539 shlibpath_var=LIBRARY_PATH 9540 ;; 9541 9542bsdi[45]*) 9543 version_type=linux 9544 need_version=no 9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9546 soname_spec='${libname}${release}${shared_ext}$major' 9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9548 shlibpath_var=LD_LIBRARY_PATH 9549 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9550 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9551 # the default ld.so.conf also contains /usr/contrib/lib and 9552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9553 # libtool to hard-code these into programs 9554 ;; 9555 9556cygwin* | mingw* | pw32* | cegcc*) 9557 version_type=windows 9558 shrext_cmds=".dll" 9559 need_version=no 9560 need_lib_prefix=no 9561 9562 case $GCC,$host_os in 9563 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9564 library_names_spec='$libname.dll.a' 9565 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9566 postinstall_cmds='base_file=`basename \${file}`~ 9567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9568 dldir=$destdir/`dirname \$dlpath`~ 9569 test -d \$dldir || mkdir -p \$dldir~ 9570 $install_prog $dir/$dlname \$dldir/$dlname~ 9571 chmod a+x \$dldir/$dlname~ 9572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9574 fi' 9575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9576 dlpath=$dir/\$dldll~ 9577 $RM \$dlpath' 9578 shlibpath_overrides_runpath=yes 9579 9580 case $host_os in 9581 cygwin*) 9582 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9583 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9584 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9585 ;; 9586 mingw* | cegcc*) 9587 # MinGW DLLs use traditional 'lib' prefix 9588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9589 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9590 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9591 # It is most probably a Windows format PATH printed by 9592 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9593 # path with ; separators, and with drive letters. We can handle the 9594 # drive letters (cygwin fileutils understands them), so leave them, 9595 # especially as we might pass files found there to a mingw objdump, 9596 # which wouldn't understand a cygwinified path. Ahh. 9597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9598 else 9599 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9600 fi 9601 ;; 9602 pw32*) 9603 # pw32 DLLs use 'pw' prefix rather than 'lib' 9604 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9605 ;; 9606 esac 9607 ;; 9608 9609 *) 9610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9611 ;; 9612 esac 9613 dynamic_linker='Win32 ld.exe' 9614 # FIXME: first we should search . and the directory the executable is in 9615 shlibpath_var=PATH 9616 ;; 9617 9618darwin* | rhapsody*) 9619 dynamic_linker="$host_os dyld" 9620 version_type=darwin 9621 need_lib_prefix=no 9622 need_version=no 9623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9624 soname_spec='${libname}${release}${major}$shared_ext' 9625 shlibpath_overrides_runpath=yes 9626 shlibpath_var=DYLD_LIBRARY_PATH 9627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9628 9629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9631 ;; 9632 9633dgux*) 9634 version_type=linux 9635 need_lib_prefix=no 9636 need_version=no 9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9638 soname_spec='${libname}${release}${shared_ext}$major' 9639 shlibpath_var=LD_LIBRARY_PATH 9640 ;; 9641 9642freebsd1*) 9643 dynamic_linker=no 9644 ;; 9645 9646freebsd* | dragonfly*) 9647 # DragonFly does not have aout. When/if they implement a new 9648 # versioning mechanism, adjust this. 9649 if test -x /usr/bin/objformat; then 9650 objformat=`/usr/bin/objformat` 9651 else 9652 case $host_os in 9653 freebsd[123]*) objformat=aout ;; 9654 *) objformat=elf ;; 9655 esac 9656 fi 9657 # Handle Gentoo/FreeBSD as it was Linux 9658 case $host_vendor in 9659 gentoo) 9660 version_type=linux ;; 9661 *) 9662 version_type=freebsd-$objformat ;; 9663 esac 9664 9665 case $version_type in 9666 freebsd-elf*) 9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9668 need_version=no 9669 need_lib_prefix=no 9670 ;; 9671 freebsd-*) 9672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9673 need_version=yes 9674 ;; 9675 linux) 9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9677 soname_spec='${libname}${release}${shared_ext}$major' 9678 need_lib_prefix=no 9679 need_version=no 9680 ;; 9681 esac 9682 shlibpath_var=LD_LIBRARY_PATH 9683 case $host_os in 9684 freebsd2*) 9685 shlibpath_overrides_runpath=yes 9686 ;; 9687 freebsd3.[01]* | freebsdelf3.[01]*) 9688 shlibpath_overrides_runpath=yes 9689 hardcode_into_libs=yes 9690 ;; 9691 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9692 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9693 shlibpath_overrides_runpath=no 9694 hardcode_into_libs=yes 9695 ;; 9696 *) # from 4.6 on, and DragonFly 9697 shlibpath_overrides_runpath=yes 9698 hardcode_into_libs=yes 9699 ;; 9700 esac 9701 ;; 9702 9703gnu*) 9704 version_type=linux 9705 need_lib_prefix=no 9706 need_version=no 9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9708 soname_spec='${libname}${release}${shared_ext}$major' 9709 shlibpath_var=LD_LIBRARY_PATH 9710 hardcode_into_libs=yes 9711 ;; 9712 9713hpux9* | hpux10* | hpux11*) 9714 # Give a soname corresponding to the major version so that dld.sl refuses to 9715 # link against other versions. 9716 version_type=sunos 9717 need_lib_prefix=no 9718 need_version=no 9719 case $host_cpu in 9720 ia64*) 9721 shrext_cmds='.so' 9722 hardcode_into_libs=yes 9723 dynamic_linker="$host_os dld.so" 9724 shlibpath_var=LD_LIBRARY_PATH 9725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9727 soname_spec='${libname}${release}${shared_ext}$major' 9728 if test "X$HPUX_IA64_MODE" = X32; then 9729 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9730 else 9731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9732 fi 9733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9734 ;; 9735 hppa*64*) 9736 shrext_cmds='.sl' 9737 hardcode_into_libs=yes 9738 dynamic_linker="$host_os dld.sl" 9739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9742 soname_spec='${libname}${release}${shared_ext}$major' 9743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9745 ;; 9746 *) 9747 shrext_cmds='.sl' 9748 dynamic_linker="$host_os dld.sl" 9749 shlibpath_var=SHLIB_PATH 9750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9752 soname_spec='${libname}${release}${shared_ext}$major' 9753 ;; 9754 esac 9755 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9756 postinstall_cmds='chmod 555 $lib' 9757 ;; 9758 9759interix[3-9]*) 9760 version_type=linux 9761 need_lib_prefix=no 9762 need_version=no 9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9764 soname_spec='${libname}${release}${shared_ext}$major' 9765 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9766 shlibpath_var=LD_LIBRARY_PATH 9767 shlibpath_overrides_runpath=no 9768 hardcode_into_libs=yes 9769 ;; 9770 9771irix5* | irix6* | nonstopux*) 9772 case $host_os in 9773 nonstopux*) version_type=nonstopux ;; 9774 *) 9775 if test "$lt_cv_prog_gnu_ld" = yes; then 9776 version_type=linux 9777 else 9778 version_type=irix 9779 fi ;; 9780 esac 9781 need_lib_prefix=no 9782 need_version=no 9783 soname_spec='${libname}${release}${shared_ext}$major' 9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9785 case $host_os in 9786 irix5* | nonstopux*) 9787 libsuff= shlibsuff= 9788 ;; 9789 *) 9790 case $LD in # libtool.m4 will add one of these switches to LD 9791 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9792 libsuff= shlibsuff= libmagic=32-bit;; 9793 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9794 libsuff=32 shlibsuff=N32 libmagic=N32;; 9795 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9796 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9797 *) libsuff= shlibsuff= libmagic=never-match;; 9798 esac 9799 ;; 9800 esac 9801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9802 shlibpath_overrides_runpath=no 9803 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9804 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9805 hardcode_into_libs=yes 9806 ;; 9807 9808# No shared lib support for Linux oldld, aout, or coff. 9809linux*oldld* | linux*aout* | linux*coff*) 9810 dynamic_linker=no 9811 ;; 9812 9813# This must be Linux ELF. 9814linux* | k*bsd*-gnu) 9815 version_type=linux 9816 need_lib_prefix=no 9817 need_version=no 9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9819 soname_spec='${libname}${release}${shared_ext}$major' 9820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9821 shlibpath_var=LD_LIBRARY_PATH 9822 shlibpath_overrides_runpath=no 9823 # Some binutils ld are patched to set DT_RUNPATH 9824 save_LDFLAGS=$LDFLAGS 9825 save_libdir=$libdir 9826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9828 cat >conftest.$ac_ext <<_ACEOF 9829/* confdefs.h. */ 9830_ACEOF 9831cat confdefs.h >>conftest.$ac_ext 9832cat >>conftest.$ac_ext <<_ACEOF 9833/* end confdefs.h. */ 9834 9835int 9836main () 9837{ 9838 9839 ; 9840 return 0; 9841} 9842_ACEOF 9843rm -f conftest.$ac_objext conftest$ac_exeext 9844if { (ac_try="$ac_link" 9845case "(($ac_try" in 9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9847 *) ac_try_echo=$ac_try;; 9848esac 9849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9850$as_echo "$ac_try_echo") >&5 9851 (eval "$ac_link") 2>conftest.er1 9852 ac_status=$? 9853 grep -v '^ *+' conftest.er1 >conftest.err 9854 rm -f conftest.er1 9855 cat conftest.err >&5 9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9857 (exit $ac_status); } && { 9858 test -z "$ac_c_werror_flag" || 9859 test ! -s conftest.err 9860 } && test -s conftest$ac_exeext && { 9861 test "$cross_compiling" = yes || 9862 $as_test_x conftest$ac_exeext 9863 }; then 9864 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9865 shlibpath_overrides_runpath=yes 9866fi 9867 9868else 9869 $as_echo "$as_me: failed program was:" >&5 9870sed 's/^/| /' conftest.$ac_ext >&5 9871 9872 9873fi 9874 9875rm -rf conftest.dSYM 9876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9877 conftest$ac_exeext conftest.$ac_ext 9878 LDFLAGS=$save_LDFLAGS 9879 libdir=$save_libdir 9880 9881 # This implies no fast_install, which is unacceptable. 9882 # Some rework will be needed to allow for fast_install 9883 # before this can be enabled. 9884 hardcode_into_libs=yes 9885 9886 # Append ld.so.conf contents to the search path 9887 if test -f /etc/ld.so.conf; then 9888 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' ' '` 9889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9890 fi 9891 9892 # We used to test for /lib/ld.so.1 and disable shared libraries on 9893 # powerpc, because MkLinux only supported shared libraries with the 9894 # GNU dynamic linker. Since this was broken with cross compilers, 9895 # most powerpc-linux boxes support dynamic linking these days and 9896 # people can always --disable-shared, the test was removed, and we 9897 # assume the GNU/Linux dynamic linker is in use. 9898 dynamic_linker='GNU/Linux ld.so' 9899 ;; 9900 9901netbsd*) 9902 version_type=sunos 9903 need_lib_prefix=no 9904 need_version=no 9905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9908 dynamic_linker='NetBSD (a.out) ld.so' 9909 else 9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9911 soname_spec='${libname}${release}${shared_ext}$major' 9912 dynamic_linker='NetBSD ld.elf_so' 9913 fi 9914 shlibpath_var=LD_LIBRARY_PATH 9915 shlibpath_overrides_runpath=yes 9916 hardcode_into_libs=yes 9917 ;; 9918 9919newsos6) 9920 version_type=linux 9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9922 shlibpath_var=LD_LIBRARY_PATH 9923 shlibpath_overrides_runpath=yes 9924 ;; 9925 9926*nto* | *qnx*) 9927 version_type=qnx 9928 need_lib_prefix=no 9929 need_version=no 9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9931 soname_spec='${libname}${release}${shared_ext}$major' 9932 shlibpath_var=LD_LIBRARY_PATH 9933 shlibpath_overrides_runpath=no 9934 hardcode_into_libs=yes 9935 dynamic_linker='ldqnx.so' 9936 ;; 9937 9938openbsd*) 9939 version_type=sunos 9940 sys_lib_dlsearch_path_spec="/usr/lib" 9941 need_lib_prefix=no 9942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9943 case $host_os in 9944 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9945 *) need_version=no ;; 9946 esac 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9949 shlibpath_var=LD_LIBRARY_PATH 9950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9951 case $host_os in 9952 openbsd2.[89] | openbsd2.[89].*) 9953 shlibpath_overrides_runpath=no 9954 ;; 9955 *) 9956 shlibpath_overrides_runpath=yes 9957 ;; 9958 esac 9959 else 9960 shlibpath_overrides_runpath=yes 9961 fi 9962 ;; 9963 9964os2*) 9965 libname_spec='$name' 9966 shrext_cmds=".dll" 9967 need_lib_prefix=no 9968 library_names_spec='$libname${shared_ext} $libname.a' 9969 dynamic_linker='OS/2 ld.exe' 9970 shlibpath_var=LIBPATH 9971 ;; 9972 9973osf3* | osf4* | osf5*) 9974 version_type=osf 9975 need_lib_prefix=no 9976 need_version=no 9977 soname_spec='${libname}${release}${shared_ext}$major' 9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9979 shlibpath_var=LD_LIBRARY_PATH 9980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9982 ;; 9983 9984rdos*) 9985 dynamic_linker=no 9986 ;; 9987 9988solaris*) 9989 version_type=linux 9990 need_lib_prefix=no 9991 need_version=no 9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9993 soname_spec='${libname}${release}${shared_ext}$major' 9994 shlibpath_var=LD_LIBRARY_PATH 9995 shlibpath_overrides_runpath=yes 9996 hardcode_into_libs=yes 9997 # ldd complains unless libraries are executable 9998 postinstall_cmds='chmod +x $lib' 9999 ;; 10000 10001sunos4*) 10002 version_type=sunos 10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10005 shlibpath_var=LD_LIBRARY_PATH 10006 shlibpath_overrides_runpath=yes 10007 if test "$with_gnu_ld" = yes; then 10008 need_lib_prefix=no 10009 fi 10010 need_version=yes 10011 ;; 10012 10013sysv4 | sysv4.3*) 10014 version_type=linux 10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10016 soname_spec='${libname}${release}${shared_ext}$major' 10017 shlibpath_var=LD_LIBRARY_PATH 10018 case $host_vendor in 10019 sni) 10020 shlibpath_overrides_runpath=no 10021 need_lib_prefix=no 10022 runpath_var=LD_RUN_PATH 10023 ;; 10024 siemens) 10025 need_lib_prefix=no 10026 ;; 10027 motorola) 10028 need_lib_prefix=no 10029 need_version=no 10030 shlibpath_overrides_runpath=no 10031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10032 ;; 10033 esac 10034 ;; 10035 10036sysv4*MP*) 10037 if test -d /usr/nec ;then 10038 version_type=linux 10039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10040 soname_spec='$libname${shared_ext}.$major' 10041 shlibpath_var=LD_LIBRARY_PATH 10042 fi 10043 ;; 10044 10045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10046 version_type=freebsd-elf 10047 need_lib_prefix=no 10048 need_version=no 10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10050 soname_spec='${libname}${release}${shared_ext}$major' 10051 shlibpath_var=LD_LIBRARY_PATH 10052 shlibpath_overrides_runpath=yes 10053 hardcode_into_libs=yes 10054 if test "$with_gnu_ld" = yes; then 10055 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10056 else 10057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10058 case $host_os in 10059 sco3.2v5*) 10060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10061 ;; 10062 esac 10063 fi 10064 sys_lib_dlsearch_path_spec='/usr/lib' 10065 ;; 10066 10067tpf*) 10068 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10069 version_type=linux 10070 need_lib_prefix=no 10071 need_version=no 10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10073 shlibpath_var=LD_LIBRARY_PATH 10074 shlibpath_overrides_runpath=no 10075 hardcode_into_libs=yes 10076 ;; 10077 10078uts4*) 10079 version_type=linux 10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10081 soname_spec='${libname}${release}${shared_ext}$major' 10082 shlibpath_var=LD_LIBRARY_PATH 10083 ;; 10084 10085*) 10086 dynamic_linker=no 10087 ;; 10088esac 10089{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10090$as_echo "$dynamic_linker" >&6; } 10091test "$dynamic_linker" = no && can_build_shared=no 10092 10093variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10094if test "$GCC" = yes; then 10095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10096fi 10097 10098if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10099 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10100fi 10101if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10102 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10103fi 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10192$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10193hardcode_action= 10194if test -n "$hardcode_libdir_flag_spec" || 10195 test -n "$runpath_var" || 10196 test "X$hardcode_automatic" = "Xyes" ; then 10197 10198 # We can hardcode non-existent directories. 10199 if test "$hardcode_direct" != no && 10200 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10201 # have to relink, otherwise we might link with an installed library 10202 # when we should be linking with a yet-to-be-installed one 10203 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10204 test "$hardcode_minus_L" != no; then 10205 # Linking always hardcodes the temporary library directory. 10206 hardcode_action=relink 10207 else 10208 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10209 hardcode_action=immediate 10210 fi 10211else 10212 # We cannot hardcode anything, or else we can only hardcode existing 10213 # directories. 10214 hardcode_action=unsupported 10215fi 10216{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10217$as_echo "$hardcode_action" >&6; } 10218 10219if test "$hardcode_action" = relink || 10220 test "$inherit_rpath" = yes; then 10221 # Fast installation is not supported 10222 enable_fast_install=no 10223elif test "$shlibpath_overrides_runpath" = yes || 10224 test "$enable_shared" = no; then 10225 # Fast installation is not necessary 10226 enable_fast_install=needless 10227fi 10228 10229 10230 10231 10232 10233 10234 if test "x$enable_dlopen" != xyes; then 10235 enable_dlopen=unknown 10236 enable_dlopen_self=unknown 10237 enable_dlopen_self_static=unknown 10238else 10239 lt_cv_dlopen=no 10240 lt_cv_dlopen_libs= 10241 10242 case $host_os in 10243 beos*) 10244 lt_cv_dlopen="load_add_on" 10245 lt_cv_dlopen_libs= 10246 lt_cv_dlopen_self=yes 10247 ;; 10248 10249 mingw* | pw32* | cegcc*) 10250 lt_cv_dlopen="LoadLibrary" 10251 lt_cv_dlopen_libs= 10252 ;; 10253 10254 cygwin*) 10255 lt_cv_dlopen="dlopen" 10256 lt_cv_dlopen_libs= 10257 ;; 10258 10259 darwin*) 10260 # if libdl is installed we need to link against it 10261 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10262$as_echo_n "checking for dlopen in -ldl... " >&6; } 10263if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10264 $as_echo_n "(cached) " >&6 10265else 10266 ac_check_lib_save_LIBS=$LIBS 10267LIBS="-ldl $LIBS" 10268cat >conftest.$ac_ext <<_ACEOF 10269/* confdefs.h. */ 10270_ACEOF 10271cat confdefs.h >>conftest.$ac_ext 10272cat >>conftest.$ac_ext <<_ACEOF 10273/* end confdefs.h. */ 10274 10275/* Override any GCC internal prototype to avoid an error. 10276 Use char because int might match the return type of a GCC 10277 builtin and then its argument prototype would still apply. */ 10278#ifdef __cplusplus 10279extern "C" 10280#endif 10281char dlopen (); 10282int 10283main () 10284{ 10285return dlopen (); 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290rm -f conftest.$ac_objext conftest$ac_exeext 10291if { (ac_try="$ac_link" 10292case "(($ac_try" in 10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10294 *) ac_try_echo=$ac_try;; 10295esac 10296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10297$as_echo "$ac_try_echo") >&5 10298 (eval "$ac_link") 2>conftest.er1 10299 ac_status=$? 10300 grep -v '^ *+' conftest.er1 >conftest.err 10301 rm -f conftest.er1 10302 cat conftest.err >&5 10303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); } && { 10305 test -z "$ac_c_werror_flag" || 10306 test ! -s conftest.err 10307 } && test -s conftest$ac_exeext && { 10308 test "$cross_compiling" = yes || 10309 $as_test_x conftest$ac_exeext 10310 }; then 10311 ac_cv_lib_dl_dlopen=yes 10312else 10313 $as_echo "$as_me: failed program was:" >&5 10314sed 's/^/| /' conftest.$ac_ext >&5 10315 10316 ac_cv_lib_dl_dlopen=no 10317fi 10318 10319rm -rf conftest.dSYM 10320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10321 conftest$ac_exeext conftest.$ac_ext 10322LIBS=$ac_check_lib_save_LIBS 10323fi 10324{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10325$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10326if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10328else 10329 10330 lt_cv_dlopen="dyld" 10331 lt_cv_dlopen_libs= 10332 lt_cv_dlopen_self=yes 10333 10334fi 10335 10336 ;; 10337 10338 *) 10339 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10340$as_echo_n "checking for shl_load... " >&6; } 10341if test "${ac_cv_func_shl_load+set}" = set; then 10342 $as_echo_n "(cached) " >&6 10343else 10344 cat >conftest.$ac_ext <<_ACEOF 10345/* confdefs.h. */ 10346_ACEOF 10347cat confdefs.h >>conftest.$ac_ext 10348cat >>conftest.$ac_ext <<_ACEOF 10349/* end confdefs.h. */ 10350/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10351 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10352#define shl_load innocuous_shl_load 10353 10354/* System header to define __stub macros and hopefully few prototypes, 10355 which can conflict with char shl_load (); below. 10356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10357 <limits.h> exists even on freestanding compilers. */ 10358 10359#ifdef __STDC__ 10360# include <limits.h> 10361#else 10362# include <assert.h> 10363#endif 10364 10365#undef shl_load 10366 10367/* Override any GCC internal prototype to avoid an error. 10368 Use char because int might match the return type of a GCC 10369 builtin and then its argument prototype would still apply. */ 10370#ifdef __cplusplus 10371extern "C" 10372#endif 10373char shl_load (); 10374/* The GNU C library defines this for functions which it implements 10375 to always fail with ENOSYS. Some functions are actually named 10376 something starting with __ and the normal name is an alias. */ 10377#if defined __stub_shl_load || defined __stub___shl_load 10378choke me 10379#endif 10380 10381int 10382main () 10383{ 10384return shl_load (); 10385 ; 10386 return 0; 10387} 10388_ACEOF 10389rm -f conftest.$ac_objext conftest$ac_exeext 10390if { (ac_try="$ac_link" 10391case "(($ac_try" in 10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10393 *) ac_try_echo=$ac_try;; 10394esac 10395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10396$as_echo "$ac_try_echo") >&5 10397 (eval "$ac_link") 2>conftest.er1 10398 ac_status=$? 10399 grep -v '^ *+' conftest.er1 >conftest.err 10400 rm -f conftest.er1 10401 cat conftest.err >&5 10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10403 (exit $ac_status); } && { 10404 test -z "$ac_c_werror_flag" || 10405 test ! -s conftest.err 10406 } && test -s conftest$ac_exeext && { 10407 test "$cross_compiling" = yes || 10408 $as_test_x conftest$ac_exeext 10409 }; then 10410 ac_cv_func_shl_load=yes 10411else 10412 $as_echo "$as_me: failed program was:" >&5 10413sed 's/^/| /' conftest.$ac_ext >&5 10414 10415 ac_cv_func_shl_load=no 10416fi 10417 10418rm -rf conftest.dSYM 10419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10420 conftest$ac_exeext conftest.$ac_ext 10421fi 10422{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10423$as_echo "$ac_cv_func_shl_load" >&6; } 10424if test "x$ac_cv_func_shl_load" = x""yes; then 10425 lt_cv_dlopen="shl_load" 10426else 10427 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10428$as_echo_n "checking for shl_load in -ldld... " >&6; } 10429if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10430 $as_echo_n "(cached) " >&6 10431else 10432 ac_check_lib_save_LIBS=$LIBS 10433LIBS="-ldld $LIBS" 10434cat >conftest.$ac_ext <<_ACEOF 10435/* confdefs.h. */ 10436_ACEOF 10437cat confdefs.h >>conftest.$ac_ext 10438cat >>conftest.$ac_ext <<_ACEOF 10439/* end confdefs.h. */ 10440 10441/* Override any GCC internal prototype to avoid an error. 10442 Use char because int might match the return type of a GCC 10443 builtin and then its argument prototype would still apply. */ 10444#ifdef __cplusplus 10445extern "C" 10446#endif 10447char shl_load (); 10448int 10449main () 10450{ 10451return shl_load (); 10452 ; 10453 return 0; 10454} 10455_ACEOF 10456rm -f conftest.$ac_objext conftest$ac_exeext 10457if { (ac_try="$ac_link" 10458case "(($ac_try" in 10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10460 *) ac_try_echo=$ac_try;; 10461esac 10462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10463$as_echo "$ac_try_echo") >&5 10464 (eval "$ac_link") 2>conftest.er1 10465 ac_status=$? 10466 grep -v '^ *+' conftest.er1 >conftest.err 10467 rm -f conftest.er1 10468 cat conftest.err >&5 10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10470 (exit $ac_status); } && { 10471 test -z "$ac_c_werror_flag" || 10472 test ! -s conftest.err 10473 } && test -s conftest$ac_exeext && { 10474 test "$cross_compiling" = yes || 10475 $as_test_x conftest$ac_exeext 10476 }; then 10477 ac_cv_lib_dld_shl_load=yes 10478else 10479 $as_echo "$as_me: failed program was:" >&5 10480sed 's/^/| /' conftest.$ac_ext >&5 10481 10482 ac_cv_lib_dld_shl_load=no 10483fi 10484 10485rm -rf conftest.dSYM 10486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10487 conftest$ac_exeext conftest.$ac_ext 10488LIBS=$ac_check_lib_save_LIBS 10489fi 10490{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10491$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10492if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10494else 10495 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10496$as_echo_n "checking for dlopen... " >&6; } 10497if test "${ac_cv_func_dlopen+set}" = set; then 10498 $as_echo_n "(cached) " >&6 10499else 10500 cat >conftest.$ac_ext <<_ACEOF 10501/* confdefs.h. */ 10502_ACEOF 10503cat confdefs.h >>conftest.$ac_ext 10504cat >>conftest.$ac_ext <<_ACEOF 10505/* end confdefs.h. */ 10506/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10507 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10508#define dlopen innocuous_dlopen 10509 10510/* System header to define __stub macros and hopefully few prototypes, 10511 which can conflict with char dlopen (); below. 10512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10513 <limits.h> exists even on freestanding compilers. */ 10514 10515#ifdef __STDC__ 10516# include <limits.h> 10517#else 10518# include <assert.h> 10519#endif 10520 10521#undef dlopen 10522 10523/* Override any GCC internal prototype to avoid an error. 10524 Use char because int might match the return type of a GCC 10525 builtin and then its argument prototype would still apply. */ 10526#ifdef __cplusplus 10527extern "C" 10528#endif 10529char dlopen (); 10530/* The GNU C library defines this for functions which it implements 10531 to always fail with ENOSYS. Some functions are actually named 10532 something starting with __ and the normal name is an alias. */ 10533#if defined __stub_dlopen || defined __stub___dlopen 10534choke me 10535#endif 10536 10537int 10538main () 10539{ 10540return dlopen (); 10541 ; 10542 return 0; 10543} 10544_ACEOF 10545rm -f conftest.$ac_objext conftest$ac_exeext 10546if { (ac_try="$ac_link" 10547case "(($ac_try" in 10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10549 *) ac_try_echo=$ac_try;; 10550esac 10551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10552$as_echo "$ac_try_echo") >&5 10553 (eval "$ac_link") 2>conftest.er1 10554 ac_status=$? 10555 grep -v '^ *+' conftest.er1 >conftest.err 10556 rm -f conftest.er1 10557 cat conftest.err >&5 10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 (exit $ac_status); } && { 10560 test -z "$ac_c_werror_flag" || 10561 test ! -s conftest.err 10562 } && test -s conftest$ac_exeext && { 10563 test "$cross_compiling" = yes || 10564 $as_test_x conftest$ac_exeext 10565 }; then 10566 ac_cv_func_dlopen=yes 10567else 10568 $as_echo "$as_me: failed program was:" >&5 10569sed 's/^/| /' conftest.$ac_ext >&5 10570 10571 ac_cv_func_dlopen=no 10572fi 10573 10574rm -rf conftest.dSYM 10575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10576 conftest$ac_exeext conftest.$ac_ext 10577fi 10578{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10579$as_echo "$ac_cv_func_dlopen" >&6; } 10580if test "x$ac_cv_func_dlopen" = x""yes; then 10581 lt_cv_dlopen="dlopen" 10582else 10583 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10584$as_echo_n "checking for dlopen in -ldl... " >&6; } 10585if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10586 $as_echo_n "(cached) " >&6 10587else 10588 ac_check_lib_save_LIBS=$LIBS 10589LIBS="-ldl $LIBS" 10590cat >conftest.$ac_ext <<_ACEOF 10591/* confdefs.h. */ 10592_ACEOF 10593cat confdefs.h >>conftest.$ac_ext 10594cat >>conftest.$ac_ext <<_ACEOF 10595/* end confdefs.h. */ 10596 10597/* Override any GCC internal prototype to avoid an error. 10598 Use char because int might match the return type of a GCC 10599 builtin and then its argument prototype would still apply. */ 10600#ifdef __cplusplus 10601extern "C" 10602#endif 10603char dlopen (); 10604int 10605main () 10606{ 10607return dlopen (); 10608 ; 10609 return 0; 10610} 10611_ACEOF 10612rm -f conftest.$ac_objext conftest$ac_exeext 10613if { (ac_try="$ac_link" 10614case "(($ac_try" in 10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10616 *) ac_try_echo=$ac_try;; 10617esac 10618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10619$as_echo "$ac_try_echo") >&5 10620 (eval "$ac_link") 2>conftest.er1 10621 ac_status=$? 10622 grep -v '^ *+' conftest.er1 >conftest.err 10623 rm -f conftest.er1 10624 cat conftest.err >&5 10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10626 (exit $ac_status); } && { 10627 test -z "$ac_c_werror_flag" || 10628 test ! -s conftest.err 10629 } && test -s conftest$ac_exeext && { 10630 test "$cross_compiling" = yes || 10631 $as_test_x conftest$ac_exeext 10632 }; then 10633 ac_cv_lib_dl_dlopen=yes 10634else 10635 $as_echo "$as_me: failed program was:" >&5 10636sed 's/^/| /' conftest.$ac_ext >&5 10637 10638 ac_cv_lib_dl_dlopen=no 10639fi 10640 10641rm -rf conftest.dSYM 10642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10643 conftest$ac_exeext conftest.$ac_ext 10644LIBS=$ac_check_lib_save_LIBS 10645fi 10646{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10647$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10648if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10650else 10651 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10652$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10653if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10654 $as_echo_n "(cached) " >&6 10655else 10656 ac_check_lib_save_LIBS=$LIBS 10657LIBS="-lsvld $LIBS" 10658cat >conftest.$ac_ext <<_ACEOF 10659/* confdefs.h. */ 10660_ACEOF 10661cat confdefs.h >>conftest.$ac_ext 10662cat >>conftest.$ac_ext <<_ACEOF 10663/* end confdefs.h. */ 10664 10665/* Override any GCC internal prototype to avoid an error. 10666 Use char because int might match the return type of a GCC 10667 builtin and then its argument prototype would still apply. */ 10668#ifdef __cplusplus 10669extern "C" 10670#endif 10671char dlopen (); 10672int 10673main () 10674{ 10675return dlopen (); 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680rm -f conftest.$ac_objext conftest$ac_exeext 10681if { (ac_try="$ac_link" 10682case "(($ac_try" in 10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10684 *) ac_try_echo=$ac_try;; 10685esac 10686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10687$as_echo "$ac_try_echo") >&5 10688 (eval "$ac_link") 2>conftest.er1 10689 ac_status=$? 10690 grep -v '^ *+' conftest.er1 >conftest.err 10691 rm -f conftest.er1 10692 cat conftest.err >&5 10693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10694 (exit $ac_status); } && { 10695 test -z "$ac_c_werror_flag" || 10696 test ! -s conftest.err 10697 } && test -s conftest$ac_exeext && { 10698 test "$cross_compiling" = yes || 10699 $as_test_x conftest$ac_exeext 10700 }; then 10701 ac_cv_lib_svld_dlopen=yes 10702else 10703 $as_echo "$as_me: failed program was:" >&5 10704sed 's/^/| /' conftest.$ac_ext >&5 10705 10706 ac_cv_lib_svld_dlopen=no 10707fi 10708 10709rm -rf conftest.dSYM 10710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10711 conftest$ac_exeext conftest.$ac_ext 10712LIBS=$ac_check_lib_save_LIBS 10713fi 10714{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10715$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10716if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10718else 10719 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10720$as_echo_n "checking for dld_link in -ldld... " >&6; } 10721if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10722 $as_echo_n "(cached) " >&6 10723else 10724 ac_check_lib_save_LIBS=$LIBS 10725LIBS="-ldld $LIBS" 10726cat >conftest.$ac_ext <<_ACEOF 10727/* confdefs.h. */ 10728_ACEOF 10729cat confdefs.h >>conftest.$ac_ext 10730cat >>conftest.$ac_ext <<_ACEOF 10731/* end confdefs.h. */ 10732 10733/* Override any GCC internal prototype to avoid an error. 10734 Use char because int might match the return type of a GCC 10735 builtin and then its argument prototype would still apply. */ 10736#ifdef __cplusplus 10737extern "C" 10738#endif 10739char dld_link (); 10740int 10741main () 10742{ 10743return dld_link (); 10744 ; 10745 return 0; 10746} 10747_ACEOF 10748rm -f conftest.$ac_objext conftest$ac_exeext 10749if { (ac_try="$ac_link" 10750case "(($ac_try" in 10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10752 *) ac_try_echo=$ac_try;; 10753esac 10754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10755$as_echo "$ac_try_echo") >&5 10756 (eval "$ac_link") 2>conftest.er1 10757 ac_status=$? 10758 grep -v '^ *+' conftest.er1 >conftest.err 10759 rm -f conftest.er1 10760 cat conftest.err >&5 10761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10762 (exit $ac_status); } && { 10763 test -z "$ac_c_werror_flag" || 10764 test ! -s conftest.err 10765 } && test -s conftest$ac_exeext && { 10766 test "$cross_compiling" = yes || 10767 $as_test_x conftest$ac_exeext 10768 }; then 10769 ac_cv_lib_dld_dld_link=yes 10770else 10771 $as_echo "$as_me: failed program was:" >&5 10772sed 's/^/| /' conftest.$ac_ext >&5 10773 10774 ac_cv_lib_dld_dld_link=no 10775fi 10776 10777rm -rf conftest.dSYM 10778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10779 conftest$ac_exeext conftest.$ac_ext 10780LIBS=$ac_check_lib_save_LIBS 10781fi 10782{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10783$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10784if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10785 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10786fi 10787 10788 10789fi 10790 10791 10792fi 10793 10794 10795fi 10796 10797 10798fi 10799 10800 10801fi 10802 10803 ;; 10804 esac 10805 10806 if test "x$lt_cv_dlopen" != xno; then 10807 enable_dlopen=yes 10808 else 10809 enable_dlopen=no 10810 fi 10811 10812 case $lt_cv_dlopen in 10813 dlopen) 10814 save_CPPFLAGS="$CPPFLAGS" 10815 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10816 10817 save_LDFLAGS="$LDFLAGS" 10818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10819 10820 save_LIBS="$LIBS" 10821 LIBS="$lt_cv_dlopen_libs $LIBS" 10822 10823 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10824$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10825if test "${lt_cv_dlopen_self+set}" = set; then 10826 $as_echo_n "(cached) " >&6 10827else 10828 if test "$cross_compiling" = yes; then : 10829 lt_cv_dlopen_self=cross 10830else 10831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10832 lt_status=$lt_dlunknown 10833 cat > conftest.$ac_ext <<_LT_EOF 10834#line 10834 "configure" 10835#include "confdefs.h" 10836 10837#if HAVE_DLFCN_H 10838#include <dlfcn.h> 10839#endif 10840 10841#include <stdio.h> 10842 10843#ifdef RTLD_GLOBAL 10844# define LT_DLGLOBAL RTLD_GLOBAL 10845#else 10846# ifdef DL_GLOBAL 10847# define LT_DLGLOBAL DL_GLOBAL 10848# else 10849# define LT_DLGLOBAL 0 10850# endif 10851#endif 10852 10853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10854 find out it does not work in some platform. */ 10855#ifndef LT_DLLAZY_OR_NOW 10856# ifdef RTLD_LAZY 10857# define LT_DLLAZY_OR_NOW RTLD_LAZY 10858# else 10859# ifdef DL_LAZY 10860# define LT_DLLAZY_OR_NOW DL_LAZY 10861# else 10862# ifdef RTLD_NOW 10863# define LT_DLLAZY_OR_NOW RTLD_NOW 10864# else 10865# ifdef DL_NOW 10866# define LT_DLLAZY_OR_NOW DL_NOW 10867# else 10868# define LT_DLLAZY_OR_NOW 0 10869# endif 10870# endif 10871# endif 10872# endif 10873#endif 10874 10875void fnord() { int i=42;} 10876int main () 10877{ 10878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10879 int status = $lt_dlunknown; 10880 10881 if (self) 10882 { 10883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10884 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10885 /* dlclose (self); */ 10886 } 10887 else 10888 puts (dlerror ()); 10889 10890 return status; 10891} 10892_LT_EOF 10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10894 (eval $ac_link) 2>&5 10895 ac_status=$? 10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10897 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10898 (./conftest; exit; ) >&5 2>/dev/null 10899 lt_status=$? 10900 case x$lt_status in 10901 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10902 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10903 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10904 esac 10905 else : 10906 # compilation failed 10907 lt_cv_dlopen_self=no 10908 fi 10909fi 10910rm -fr conftest* 10911 10912 10913fi 10914{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10915$as_echo "$lt_cv_dlopen_self" >&6; } 10916 10917 if test "x$lt_cv_dlopen_self" = xyes; then 10918 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10919 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10920$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10921if test "${lt_cv_dlopen_self_static+set}" = set; then 10922 $as_echo_n "(cached) " >&6 10923else 10924 if test "$cross_compiling" = yes; then : 10925 lt_cv_dlopen_self_static=cross 10926else 10927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10928 lt_status=$lt_dlunknown 10929 cat > conftest.$ac_ext <<_LT_EOF 10930#line 10930 "configure" 10931#include "confdefs.h" 10932 10933#if HAVE_DLFCN_H 10934#include <dlfcn.h> 10935#endif 10936 10937#include <stdio.h> 10938 10939#ifdef RTLD_GLOBAL 10940# define LT_DLGLOBAL RTLD_GLOBAL 10941#else 10942# ifdef DL_GLOBAL 10943# define LT_DLGLOBAL DL_GLOBAL 10944# else 10945# define LT_DLGLOBAL 0 10946# endif 10947#endif 10948 10949/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10950 find out it does not work in some platform. */ 10951#ifndef LT_DLLAZY_OR_NOW 10952# ifdef RTLD_LAZY 10953# define LT_DLLAZY_OR_NOW RTLD_LAZY 10954# else 10955# ifdef DL_LAZY 10956# define LT_DLLAZY_OR_NOW DL_LAZY 10957# else 10958# ifdef RTLD_NOW 10959# define LT_DLLAZY_OR_NOW RTLD_NOW 10960# else 10961# ifdef DL_NOW 10962# define LT_DLLAZY_OR_NOW DL_NOW 10963# else 10964# define LT_DLLAZY_OR_NOW 0 10965# endif 10966# endif 10967# endif 10968# endif 10969#endif 10970 10971void fnord() { int i=42;} 10972int main () 10973{ 10974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10975 int status = $lt_dlunknown; 10976 10977 if (self) 10978 { 10979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10980 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10981 /* dlclose (self); */ 10982 } 10983 else 10984 puts (dlerror ()); 10985 10986 return status; 10987} 10988_LT_EOF 10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10990 (eval $ac_link) 2>&5 10991 ac_status=$? 10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10993 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10994 (./conftest; exit; ) >&5 2>/dev/null 10995 lt_status=$? 10996 case x$lt_status in 10997 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10998 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10999 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11000 esac 11001 else : 11002 # compilation failed 11003 lt_cv_dlopen_self_static=no 11004 fi 11005fi 11006rm -fr conftest* 11007 11008 11009fi 11010{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11011$as_echo "$lt_cv_dlopen_self_static" >&6; } 11012 fi 11013 11014 CPPFLAGS="$save_CPPFLAGS" 11015 LDFLAGS="$save_LDFLAGS" 11016 LIBS="$save_LIBS" 11017 ;; 11018 esac 11019 11020 case $lt_cv_dlopen_self in 11021 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11022 *) enable_dlopen_self=unknown ;; 11023 esac 11024 11025 case $lt_cv_dlopen_self_static in 11026 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11027 *) enable_dlopen_self_static=unknown ;; 11028 esac 11029fi 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047striplib= 11048old_striplib= 11049{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11050$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11051if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11052 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11053 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11054 { $as_echo "$as_me:$LINENO: result: yes" >&5 11055$as_echo "yes" >&6; } 11056else 11057# FIXME - insert some real tests, host_os isn't really good enough 11058 case $host_os in 11059 darwin*) 11060 if test -n "$STRIP" ; then 11061 striplib="$STRIP -x" 11062 old_striplib="$STRIP -S" 11063 { $as_echo "$as_me:$LINENO: result: yes" >&5 11064$as_echo "yes" >&6; } 11065 else 11066 { $as_echo "$as_me:$LINENO: result: no" >&5 11067$as_echo "no" >&6; } 11068 fi 11069 ;; 11070 *) 11071 { $as_echo "$as_me:$LINENO: result: no" >&5 11072$as_echo "no" >&6; } 11073 ;; 11074 esac 11075fi 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 # Report which library types will actually be built 11089 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11090$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11091 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11092$as_echo "$can_build_shared" >&6; } 11093 11094 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11095$as_echo_n "checking whether to build shared libraries... " >&6; } 11096 test "$can_build_shared" = "no" && enable_shared=no 11097 11098 # On AIX, shared libraries and static libraries use the same namespace, and 11099 # are all built from PIC. 11100 case $host_os in 11101 aix3*) 11102 test "$enable_shared" = yes && enable_static=no 11103 if test -n "$RANLIB"; then 11104 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11105 postinstall_cmds='$RANLIB $lib' 11106 fi 11107 ;; 11108 11109 aix[4-9]*) 11110 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11111 test "$enable_shared" = yes && enable_static=no 11112 fi 11113 ;; 11114 esac 11115 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11116$as_echo "$enable_shared" >&6; } 11117 11118 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11119$as_echo_n "checking whether to build static libraries... " >&6; } 11120 # Make sure either enable_shared or enable_static is yes. 11121 test "$enable_shared" = yes || enable_static=yes 11122 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11123$as_echo "$enable_static" >&6; } 11124 11125 11126 11127 11128fi 11129ac_ext=c 11130ac_cpp='$CPP $CPPFLAGS' 11131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11133ac_compiler_gnu=$ac_cv_c_compiler_gnu 11134 11135CC="$lt_save_CC" 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 ac_config_commands="$ac_config_commands libtool" 11150 11151 11152 11153 11154# Only expand once: 11155 11156 11157ac_ext=c 11158ac_cpp='$CPP $CPPFLAGS' 11159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11161ac_compiler_gnu=$ac_cv_c_compiler_gnu 11162if test -n "$ac_tool_prefix"; then 11163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11164set dummy ${ac_tool_prefix}gcc; ac_word=$2 11165{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11166$as_echo_n "checking for $ac_word... " >&6; } 11167if test "${ac_cv_prog_CC+set}" = set; then 11168 $as_echo_n "(cached) " >&6 11169else 11170 if test -n "$CC"; then 11171 ac_cv_prog_CC="$CC" # Let the user override the test. 11172else 11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11174for as_dir in $PATH 11175do 11176 IFS=$as_save_IFS 11177 test -z "$as_dir" && as_dir=. 11178 for ac_exec_ext in '' $ac_executable_extensions; do 11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11180 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11182 break 2 11183 fi 11184done 11185done 11186IFS=$as_save_IFS 11187 11188fi 11189fi 11190CC=$ac_cv_prog_CC 11191if test -n "$CC"; then 11192 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11193$as_echo "$CC" >&6; } 11194else 11195 { $as_echo "$as_me:$LINENO: result: no" >&5 11196$as_echo "no" >&6; } 11197fi 11198 11199 11200fi 11201if test -z "$ac_cv_prog_CC"; then 11202 ac_ct_CC=$CC 11203 # Extract the first word of "gcc", so it can be a program name with args. 11204set dummy gcc; ac_word=$2 11205{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11206$as_echo_n "checking for $ac_word... " >&6; } 11207if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11208 $as_echo_n "(cached) " >&6 11209else 11210 if test -n "$ac_ct_CC"; then 11211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11212else 11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11214for as_dir in $PATH 11215do 11216 IFS=$as_save_IFS 11217 test -z "$as_dir" && as_dir=. 11218 for ac_exec_ext in '' $ac_executable_extensions; do 11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11220 ac_cv_prog_ac_ct_CC="gcc" 11221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11222 break 2 11223 fi 11224done 11225done 11226IFS=$as_save_IFS 11227 11228fi 11229fi 11230ac_ct_CC=$ac_cv_prog_ac_ct_CC 11231if test -n "$ac_ct_CC"; then 11232 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11233$as_echo "$ac_ct_CC" >&6; } 11234else 11235 { $as_echo "$as_me:$LINENO: result: no" >&5 11236$as_echo "no" >&6; } 11237fi 11238 11239 if test "x$ac_ct_CC" = x; then 11240 CC="" 11241 else 11242 case $cross_compiling:$ac_tool_warned in 11243yes:) 11244{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11246ac_tool_warned=yes ;; 11247esac 11248 CC=$ac_ct_CC 11249 fi 11250else 11251 CC="$ac_cv_prog_CC" 11252fi 11253 11254if test -z "$CC"; then 11255 if test -n "$ac_tool_prefix"; then 11256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11257set dummy ${ac_tool_prefix}cc; ac_word=$2 11258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11259$as_echo_n "checking for $ac_word... " >&6; } 11260if test "${ac_cv_prog_CC+set}" = set; then 11261 $as_echo_n "(cached) " >&6 11262else 11263 if test -n "$CC"; then 11264 ac_cv_prog_CC="$CC" # Let the user override the test. 11265else 11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11267for as_dir in $PATH 11268do 11269 IFS=$as_save_IFS 11270 test -z "$as_dir" && as_dir=. 11271 for ac_exec_ext in '' $ac_executable_extensions; do 11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11273 ac_cv_prog_CC="${ac_tool_prefix}cc" 11274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11275 break 2 11276 fi 11277done 11278done 11279IFS=$as_save_IFS 11280 11281fi 11282fi 11283CC=$ac_cv_prog_CC 11284if test -n "$CC"; then 11285 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11286$as_echo "$CC" >&6; } 11287else 11288 { $as_echo "$as_me:$LINENO: result: no" >&5 11289$as_echo "no" >&6; } 11290fi 11291 11292 11293 fi 11294fi 11295if test -z "$CC"; then 11296 # Extract the first word of "cc", so it can be a program name with args. 11297set dummy cc; ac_word=$2 11298{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11299$as_echo_n "checking for $ac_word... " >&6; } 11300if test "${ac_cv_prog_CC+set}" = set; then 11301 $as_echo_n "(cached) " >&6 11302else 11303 if test -n "$CC"; then 11304 ac_cv_prog_CC="$CC" # Let the user override the test. 11305else 11306 ac_prog_rejected=no 11307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11308for as_dir in $PATH 11309do 11310 IFS=$as_save_IFS 11311 test -z "$as_dir" && as_dir=. 11312 for ac_exec_ext in '' $ac_executable_extensions; do 11313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11315 ac_prog_rejected=yes 11316 continue 11317 fi 11318 ac_cv_prog_CC="cc" 11319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11320 break 2 11321 fi 11322done 11323done 11324IFS=$as_save_IFS 11325 11326if test $ac_prog_rejected = yes; then 11327 # We found a bogon in the path, so make sure we never use it. 11328 set dummy $ac_cv_prog_CC 11329 shift 11330 if test $# != 0; then 11331 # We chose a different compiler from the bogus one. 11332 # However, it has the same basename, so the bogon will be chosen 11333 # first if we set CC to just the basename; use the full file name. 11334 shift 11335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11336 fi 11337fi 11338fi 11339fi 11340CC=$ac_cv_prog_CC 11341if test -n "$CC"; then 11342 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11343$as_echo "$CC" >&6; } 11344else 11345 { $as_echo "$as_me:$LINENO: result: no" >&5 11346$as_echo "no" >&6; } 11347fi 11348 11349 11350fi 11351if test -z "$CC"; then 11352 if test -n "$ac_tool_prefix"; then 11353 for ac_prog in cl.exe 11354 do 11355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11356set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11358$as_echo_n "checking for $ac_word... " >&6; } 11359if test "${ac_cv_prog_CC+set}" = set; then 11360 $as_echo_n "(cached) " >&6 11361else 11362 if test -n "$CC"; then 11363 ac_cv_prog_CC="$CC" # Let the user override the test. 11364else 11365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11366for as_dir in $PATH 11367do 11368 IFS=$as_save_IFS 11369 test -z "$as_dir" && as_dir=. 11370 for ac_exec_ext in '' $ac_executable_extensions; do 11371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11374 break 2 11375 fi 11376done 11377done 11378IFS=$as_save_IFS 11379 11380fi 11381fi 11382CC=$ac_cv_prog_CC 11383if test -n "$CC"; then 11384 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11385$as_echo "$CC" >&6; } 11386else 11387 { $as_echo "$as_me:$LINENO: result: no" >&5 11388$as_echo "no" >&6; } 11389fi 11390 11391 11392 test -n "$CC" && break 11393 done 11394fi 11395if test -z "$CC"; then 11396 ac_ct_CC=$CC 11397 for ac_prog in cl.exe 11398do 11399 # Extract the first word of "$ac_prog", so it can be a program name with args. 11400set dummy $ac_prog; ac_word=$2 11401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11402$as_echo_n "checking for $ac_word... " >&6; } 11403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11404 $as_echo_n "(cached) " >&6 11405else 11406 if test -n "$ac_ct_CC"; then 11407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11408else 11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11410for as_dir in $PATH 11411do 11412 IFS=$as_save_IFS 11413 test -z "$as_dir" && as_dir=. 11414 for ac_exec_ext in '' $ac_executable_extensions; do 11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11416 ac_cv_prog_ac_ct_CC="$ac_prog" 11417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11418 break 2 11419 fi 11420done 11421done 11422IFS=$as_save_IFS 11423 11424fi 11425fi 11426ac_ct_CC=$ac_cv_prog_ac_ct_CC 11427if test -n "$ac_ct_CC"; then 11428 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11429$as_echo "$ac_ct_CC" >&6; } 11430else 11431 { $as_echo "$as_me:$LINENO: result: no" >&5 11432$as_echo "no" >&6; } 11433fi 11434 11435 11436 test -n "$ac_ct_CC" && break 11437done 11438 11439 if test "x$ac_ct_CC" = x; then 11440 CC="" 11441 else 11442 case $cross_compiling:$ac_tool_warned in 11443yes:) 11444{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11446ac_tool_warned=yes ;; 11447esac 11448 CC=$ac_ct_CC 11449 fi 11450fi 11451 11452fi 11453 11454 11455test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11457{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11458See \`config.log' for more details." >&5 11459$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11460See \`config.log' for more details." >&2;} 11461 { (exit 1); exit 1; }; }; } 11462 11463# Provide some information about the compiler. 11464$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11465set X $ac_compile 11466ac_compiler=$2 11467{ (ac_try="$ac_compiler --version >&5" 11468case "(($ac_try" in 11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11470 *) ac_try_echo=$ac_try;; 11471esac 11472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11473$as_echo "$ac_try_echo") >&5 11474 (eval "$ac_compiler --version >&5") 2>&5 11475 ac_status=$? 11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11477 (exit $ac_status); } 11478{ (ac_try="$ac_compiler -v >&5" 11479case "(($ac_try" in 11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11481 *) ac_try_echo=$ac_try;; 11482esac 11483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11484$as_echo "$ac_try_echo") >&5 11485 (eval "$ac_compiler -v >&5") 2>&5 11486 ac_status=$? 11487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11488 (exit $ac_status); } 11489{ (ac_try="$ac_compiler -V >&5" 11490case "(($ac_try" in 11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11492 *) ac_try_echo=$ac_try;; 11493esac 11494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11495$as_echo "$ac_try_echo") >&5 11496 (eval "$ac_compiler -V >&5") 2>&5 11497 ac_status=$? 11498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11499 (exit $ac_status); } 11500 11501{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11502$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11503if test "${ac_cv_c_compiler_gnu+set}" = set; then 11504 $as_echo_n "(cached) " >&6 11505else 11506 cat >conftest.$ac_ext <<_ACEOF 11507/* confdefs.h. */ 11508_ACEOF 11509cat confdefs.h >>conftest.$ac_ext 11510cat >>conftest.$ac_ext <<_ACEOF 11511/* end confdefs.h. */ 11512 11513int 11514main () 11515{ 11516#ifndef __GNUC__ 11517 choke me 11518#endif 11519 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524rm -f conftest.$ac_objext 11525if { (ac_try="$ac_compile" 11526case "(($ac_try" in 11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11528 *) ac_try_echo=$ac_try;; 11529esac 11530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11531$as_echo "$ac_try_echo") >&5 11532 (eval "$ac_compile") 2>conftest.er1 11533 ac_status=$? 11534 grep -v '^ *+' conftest.er1 >conftest.err 11535 rm -f conftest.er1 11536 cat conftest.err >&5 11537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11538 (exit $ac_status); } && { 11539 test -z "$ac_c_werror_flag" || 11540 test ! -s conftest.err 11541 } && test -s conftest.$ac_objext; then 11542 ac_compiler_gnu=yes 11543else 11544 $as_echo "$as_me: failed program was:" >&5 11545sed 's/^/| /' conftest.$ac_ext >&5 11546 11547 ac_compiler_gnu=no 11548fi 11549 11550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11551ac_cv_c_compiler_gnu=$ac_compiler_gnu 11552 11553fi 11554{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11555$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11556if test $ac_compiler_gnu = yes; then 11557 GCC=yes 11558else 11559 GCC= 11560fi 11561ac_test_CFLAGS=${CFLAGS+set} 11562ac_save_CFLAGS=$CFLAGS 11563{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11564$as_echo_n "checking whether $CC accepts -g... " >&6; } 11565if test "${ac_cv_prog_cc_g+set}" = set; then 11566 $as_echo_n "(cached) " >&6 11567else 11568 ac_save_c_werror_flag=$ac_c_werror_flag 11569 ac_c_werror_flag=yes 11570 ac_cv_prog_cc_g=no 11571 CFLAGS="-g" 11572 cat >conftest.$ac_ext <<_ACEOF 11573/* confdefs.h. */ 11574_ACEOF 11575cat confdefs.h >>conftest.$ac_ext 11576cat >>conftest.$ac_ext <<_ACEOF 11577/* end confdefs.h. */ 11578 11579int 11580main () 11581{ 11582 11583 ; 11584 return 0; 11585} 11586_ACEOF 11587rm -f conftest.$ac_objext 11588if { (ac_try="$ac_compile" 11589case "(($ac_try" in 11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11591 *) ac_try_echo=$ac_try;; 11592esac 11593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11594$as_echo "$ac_try_echo") >&5 11595 (eval "$ac_compile") 2>conftest.er1 11596 ac_status=$? 11597 grep -v '^ *+' conftest.er1 >conftest.err 11598 rm -f conftest.er1 11599 cat conftest.err >&5 11600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11601 (exit $ac_status); } && { 11602 test -z "$ac_c_werror_flag" || 11603 test ! -s conftest.err 11604 } && test -s conftest.$ac_objext; then 11605 ac_cv_prog_cc_g=yes 11606else 11607 $as_echo "$as_me: failed program was:" >&5 11608sed 's/^/| /' conftest.$ac_ext >&5 11609 11610 CFLAGS="" 11611 cat >conftest.$ac_ext <<_ACEOF 11612/* confdefs.h. */ 11613_ACEOF 11614cat confdefs.h >>conftest.$ac_ext 11615cat >>conftest.$ac_ext <<_ACEOF 11616/* end confdefs.h. */ 11617 11618int 11619main () 11620{ 11621 11622 ; 11623 return 0; 11624} 11625_ACEOF 11626rm -f conftest.$ac_objext 11627if { (ac_try="$ac_compile" 11628case "(($ac_try" in 11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11630 *) ac_try_echo=$ac_try;; 11631esac 11632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11633$as_echo "$ac_try_echo") >&5 11634 (eval "$ac_compile") 2>conftest.er1 11635 ac_status=$? 11636 grep -v '^ *+' conftest.er1 >conftest.err 11637 rm -f conftest.er1 11638 cat conftest.err >&5 11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && { 11641 test -z "$ac_c_werror_flag" || 11642 test ! -s conftest.err 11643 } && test -s conftest.$ac_objext; then 11644 : 11645else 11646 $as_echo "$as_me: failed program was:" >&5 11647sed 's/^/| /' conftest.$ac_ext >&5 11648 11649 ac_c_werror_flag=$ac_save_c_werror_flag 11650 CFLAGS="-g" 11651 cat >conftest.$ac_ext <<_ACEOF 11652/* confdefs.h. */ 11653_ACEOF 11654cat confdefs.h >>conftest.$ac_ext 11655cat >>conftest.$ac_ext <<_ACEOF 11656/* end confdefs.h. */ 11657 11658int 11659main () 11660{ 11661 11662 ; 11663 return 0; 11664} 11665_ACEOF 11666rm -f conftest.$ac_objext 11667if { (ac_try="$ac_compile" 11668case "(($ac_try" in 11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11670 *) ac_try_echo=$ac_try;; 11671esac 11672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11673$as_echo "$ac_try_echo") >&5 11674 (eval "$ac_compile") 2>conftest.er1 11675 ac_status=$? 11676 grep -v '^ *+' conftest.er1 >conftest.err 11677 rm -f conftest.er1 11678 cat conftest.err >&5 11679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); } && { 11681 test -z "$ac_c_werror_flag" || 11682 test ! -s conftest.err 11683 } && test -s conftest.$ac_objext; then 11684 ac_cv_prog_cc_g=yes 11685else 11686 $as_echo "$as_me: failed program was:" >&5 11687sed 's/^/| /' conftest.$ac_ext >&5 11688 11689 11690fi 11691 11692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11693fi 11694 11695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11696fi 11697 11698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11699 ac_c_werror_flag=$ac_save_c_werror_flag 11700fi 11701{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11702$as_echo "$ac_cv_prog_cc_g" >&6; } 11703if test "$ac_test_CFLAGS" = set; then 11704 CFLAGS=$ac_save_CFLAGS 11705elif test $ac_cv_prog_cc_g = yes; then 11706 if test "$GCC" = yes; then 11707 CFLAGS="-g -O2" 11708 else 11709 CFLAGS="-g" 11710 fi 11711else 11712 if test "$GCC" = yes; then 11713 CFLAGS="-O2" 11714 else 11715 CFLAGS= 11716 fi 11717fi 11718{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11719$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11720if test "${ac_cv_prog_cc_c89+set}" = set; then 11721 $as_echo_n "(cached) " >&6 11722else 11723 ac_cv_prog_cc_c89=no 11724ac_save_CC=$CC 11725cat >conftest.$ac_ext <<_ACEOF 11726/* confdefs.h. */ 11727_ACEOF 11728cat confdefs.h >>conftest.$ac_ext 11729cat >>conftest.$ac_ext <<_ACEOF 11730/* end confdefs.h. */ 11731#include <stdarg.h> 11732#include <stdio.h> 11733#include <sys/types.h> 11734#include <sys/stat.h> 11735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11736struct buf { int x; }; 11737FILE * (*rcsopen) (struct buf *, struct stat *, int); 11738static char *e (p, i) 11739 char **p; 11740 int i; 11741{ 11742 return p[i]; 11743} 11744static char *f (char * (*g) (char **, int), char **p, ...) 11745{ 11746 char *s; 11747 va_list v; 11748 va_start (v,p); 11749 s = g (p, va_arg (v,int)); 11750 va_end (v); 11751 return s; 11752} 11753 11754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11755 function prototypes and stuff, but not '\xHH' hex character constants. 11756 These don't provoke an error unfortunately, instead are silently treated 11757 as 'x'. The following induces an error, until -std is added to get 11758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11759 array size at least. It's necessary to write '\x00'==0 to get something 11760 that's true only with -std. */ 11761int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11762 11763/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11764 inside strings and character constants. */ 11765#define FOO(x) 'x' 11766int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11767 11768int test (int i, double x); 11769struct s1 {int (*f) (int a);}; 11770struct s2 {int (*f) (double a);}; 11771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11772int argc; 11773char **argv; 11774int 11775main () 11776{ 11777return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11778 ; 11779 return 0; 11780} 11781_ACEOF 11782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11784do 11785 CC="$ac_save_CC $ac_arg" 11786 rm -f conftest.$ac_objext 11787if { (ac_try="$ac_compile" 11788case "(($ac_try" in 11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11790 *) ac_try_echo=$ac_try;; 11791esac 11792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11793$as_echo "$ac_try_echo") >&5 11794 (eval "$ac_compile") 2>conftest.er1 11795 ac_status=$? 11796 grep -v '^ *+' conftest.er1 >conftest.err 11797 rm -f conftest.er1 11798 cat conftest.err >&5 11799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); } && { 11801 test -z "$ac_c_werror_flag" || 11802 test ! -s conftest.err 11803 } && test -s conftest.$ac_objext; then 11804 ac_cv_prog_cc_c89=$ac_arg 11805else 11806 $as_echo "$as_me: failed program was:" >&5 11807sed 's/^/| /' conftest.$ac_ext >&5 11808 11809 11810fi 11811 11812rm -f core conftest.err conftest.$ac_objext 11813 test "x$ac_cv_prog_cc_c89" != "xno" && break 11814done 11815rm -f conftest.$ac_ext 11816CC=$ac_save_CC 11817 11818fi 11819# AC_CACHE_VAL 11820case "x$ac_cv_prog_cc_c89" in 11821 x) 11822 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11823$as_echo "none needed" >&6; } ;; 11824 xno) 11825 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11826$as_echo "unsupported" >&6; } ;; 11827 *) 11828 CC="$CC $ac_cv_prog_cc_c89" 11829 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11830$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11831esac 11832 11833 11834ac_ext=c 11835ac_cpp='$CPP $CPPFLAGS' 11836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11838ac_compiler_gnu=$ac_cv_c_compiler_gnu 11839 11840depcc="$CC" am_compiler_list= 11841 11842{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11843$as_echo_n "checking dependency style of $depcc... " >&6; } 11844if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11845 $as_echo_n "(cached) " >&6 11846else 11847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11848 # We make a subdir and do the tests there. Otherwise we can end up 11849 # making bogus files that we don't know about and never remove. For 11850 # instance it was reported that on HP-UX the gcc test will end up 11851 # making a dummy file named `D' -- because `-MD' means `put the output 11852 # in D'. 11853 mkdir conftest.dir 11854 # Copy depcomp to subdir because otherwise we won't find it if we're 11855 # using a relative directory. 11856 cp "$am_depcomp" conftest.dir 11857 cd conftest.dir 11858 # We will build objects and dependencies in a subdirectory because 11859 # it helps to detect inapplicable dependency modes. For instance 11860 # both Tru64's cc and ICC support -MD to output dependencies as a 11861 # side effect of compilation, but ICC will put the dependencies in 11862 # the current directory while Tru64 will put them in the object 11863 # directory. 11864 mkdir sub 11865 11866 am_cv_CC_dependencies_compiler_type=none 11867 if test "$am_compiler_list" = ""; then 11868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11869 fi 11870 am__universal=false 11871 case " $depcc " in #( 11872 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11873 esac 11874 11875 for depmode in $am_compiler_list; do 11876 # Setup a source with many dependencies, because some compilers 11877 # like to wrap large dependency lists on column 80 (with \), and 11878 # we should not choose a depcomp mode which is confused by this. 11879 # 11880 # We need to recreate these files for each test, as the compiler may 11881 # overwrite some of them when testing with obscure command lines. 11882 # This happens at least with the AIX C compiler. 11883 : > sub/conftest.c 11884 for i in 1 2 3 4 5 6; do 11885 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11886 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11887 # Solaris 8's {/usr,}/bin/sh. 11888 touch sub/conftst$i.h 11889 done 11890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11891 11892 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11893 # mode. It turns out that the SunPro C++ compiler does not properly 11894 # handle `-M -o', and we need to detect this. Also, some Intel 11895 # versions had trouble with output in subdirs 11896 am__obj=sub/conftest.${OBJEXT-o} 11897 am__minus_obj="-o $am__obj" 11898 case $depmode in 11899 gcc) 11900 # This depmode causes a compiler race in universal mode. 11901 test "$am__universal" = false || continue 11902 ;; 11903 nosideeffect) 11904 # after this tag, mechanisms are not by side-effect, so they'll 11905 # only be used when explicitly requested 11906 if test "x$enable_dependency_tracking" = xyes; then 11907 continue 11908 else 11909 break 11910 fi 11911 ;; 11912 msvisualcpp | msvcmsys) 11913 # This compiler won't grok `-c -o', but also, the minuso test has 11914 # not run yet. These depmodes are late enough in the game, and 11915 # so weak that their functioning should not be impacted. 11916 am__obj=conftest.${OBJEXT-o} 11917 am__minus_obj= 11918 ;; 11919 none) break ;; 11920 esac 11921 if depmode=$depmode \ 11922 source=sub/conftest.c object=$am__obj \ 11923 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11924 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11925 >/dev/null 2>conftest.err && 11926 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11927 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11928 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11929 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11930 # icc doesn't choke on unknown options, it will just issue warnings 11931 # or remarks (even with -Werror). So we grep stderr for any message 11932 # that says an option was ignored or not supported. 11933 # When given -MP, icc 7.0 and 7.1 complain thusly: 11934 # icc: Command line warning: ignoring option '-M'; no argument required 11935 # The diagnosis changed in icc 8.0: 11936 # icc: Command line remark: option '-MP' not supported 11937 if (grep 'ignoring option' conftest.err || 11938 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11939 am_cv_CC_dependencies_compiler_type=$depmode 11940 break 11941 fi 11942 fi 11943 done 11944 11945 cd .. 11946 rm -rf conftest.dir 11947else 11948 am_cv_CC_dependencies_compiler_type=none 11949fi 11950 11951fi 11952{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11953$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11954CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11955 11956 if 11957 test "x$enable_dependency_tracking" != xno \ 11958 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11959 am__fastdepCC_TRUE= 11960 am__fastdepCC_FALSE='#' 11961else 11962 am__fastdepCC_TRUE='#' 11963 am__fastdepCC_FALSE= 11964fi 11965 11966 11967 11968 11969if test "x$GCC" = xyes ; then 11970 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 11971-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 11972-Wbad-function-cast" 11973 case `$CC -dumpversion` in 11974 3.4.* | 4.*) 11975 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 11976 ;; 11977 esac 11978else 11979 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 11980$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 11981if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 11982 $as_echo_n "(cached) " >&6 11983else 11984 cat >conftest.$ac_ext <<_ACEOF 11985/* confdefs.h. */ 11986_ACEOF 11987cat confdefs.h >>conftest.$ac_ext 11988cat >>conftest.$ac_ext <<_ACEOF 11989/* end confdefs.h. */ 11990$ac_includes_default 11991int 11992main () 11993{ 11994#ifndef __SUNPRO_C 11995 (void) __SUNPRO_C; 11996#endif 11997 11998 ; 11999 return 0; 12000} 12001_ACEOF 12002rm -f conftest.$ac_objext 12003if { (ac_try="$ac_compile" 12004case "(($ac_try" in 12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12006 *) ac_try_echo=$ac_try;; 12007esac 12008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12009$as_echo "$ac_try_echo") >&5 12010 (eval "$ac_compile") 2>conftest.er1 12011 ac_status=$? 12012 grep -v '^ *+' conftest.er1 >conftest.err 12013 rm -f conftest.er1 12014 cat conftest.err >&5 12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12016 (exit $ac_status); } && { 12017 test -z "$ac_c_werror_flag" || 12018 test ! -s conftest.err 12019 } && test -s conftest.$ac_objext; then 12020 ac_cv_have_decl___SUNPRO_C=yes 12021else 12022 $as_echo "$as_me: failed program was:" >&5 12023sed 's/^/| /' conftest.$ac_ext >&5 12024 12025 ac_cv_have_decl___SUNPRO_C=no 12026fi 12027 12028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12029fi 12030{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 12031$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 12032if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 12033 SUNCC="yes" 12034else 12035 SUNCC="no" 12036fi 12037 12038 if test "x$SUNCC" = "xyes"; then 12039 CWARNFLAGS="-v" 12040 fi 12041fi 12042 12043 12044 12045# Checks for pkg-config packages 12046 12047 12048if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12049 if test -n "$ac_tool_prefix"; then 12050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12053$as_echo_n "checking for $ac_word... " >&6; } 12054if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12055 $as_echo_n "(cached) " >&6 12056else 12057 case $PKG_CONFIG in 12058 [\\/]* | ?:[\\/]*) 12059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12060 ;; 12061 *) 12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12063for as_dir in $PATH 12064do 12065 IFS=$as_save_IFS 12066 test -z "$as_dir" && as_dir=. 12067 for ac_exec_ext in '' $ac_executable_extensions; do 12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12071 break 2 12072 fi 12073done 12074done 12075IFS=$as_save_IFS 12076 12077 ;; 12078esac 12079fi 12080PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12081if test -n "$PKG_CONFIG"; then 12082 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12083$as_echo "$PKG_CONFIG" >&6; } 12084else 12085 { $as_echo "$as_me:$LINENO: result: no" >&5 12086$as_echo "no" >&6; } 12087fi 12088 12089 12090fi 12091if test -z "$ac_cv_path_PKG_CONFIG"; then 12092 ac_pt_PKG_CONFIG=$PKG_CONFIG 12093 # Extract the first word of "pkg-config", so it can be a program name with args. 12094set dummy pkg-config; ac_word=$2 12095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12096$as_echo_n "checking for $ac_word... " >&6; } 12097if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12098 $as_echo_n "(cached) " >&6 12099else 12100 case $ac_pt_PKG_CONFIG in 12101 [\\/]* | ?:[\\/]*) 12102 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12103 ;; 12104 *) 12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12106for as_dir in $PATH 12107do 12108 IFS=$as_save_IFS 12109 test -z "$as_dir" && as_dir=. 12110 for ac_exec_ext in '' $ac_executable_extensions; do 12111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12112 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12114 break 2 12115 fi 12116done 12117done 12118IFS=$as_save_IFS 12119 12120 ;; 12121esac 12122fi 12123ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12124if test -n "$ac_pt_PKG_CONFIG"; then 12125 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12126$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12127else 12128 { $as_echo "$as_me:$LINENO: result: no" >&5 12129$as_echo "no" >&6; } 12130fi 12131 12132 if test "x$ac_pt_PKG_CONFIG" = x; then 12133 PKG_CONFIG="" 12134 else 12135 case $cross_compiling:$ac_tool_warned in 12136yes:) 12137{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12139ac_tool_warned=yes ;; 12140esac 12141 PKG_CONFIG=$ac_pt_PKG_CONFIG 12142 fi 12143else 12144 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12145fi 12146 12147fi 12148if test -n "$PKG_CONFIG"; then 12149 _pkg_min_version=0.9.0 12150 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12151$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12152 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12153 { $as_echo "$as_me:$LINENO: result: yes" >&5 12154$as_echo "yes" >&6; } 12155 else 12156 { $as_echo "$as_me:$LINENO: result: no" >&5 12157$as_echo "no" >&6; } 12158 PKG_CONFIG="" 12159 fi 12160 12161fi 12162 12163pkg_failed=no 12164{ $as_echo "$as_me:$LINENO: checking for SM" >&5 12165$as_echo_n "checking for SM... " >&6; } 12166 12167if test -n "$SM_CFLAGS"; then 12168 pkg_cv_SM_CFLAGS="$SM_CFLAGS" 12169 elif test -n "$PKG_CONFIG"; then 12170 if test -n "$PKG_CONFIG" && \ 12171 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ice xproto\"") >&5 12172 ($PKG_CONFIG --exists --print-errors "ice xproto") 2>&5 12173 ac_status=$? 12174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12175 (exit $ac_status); }; then 12176 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice xproto" 2>/dev/null` 12177else 12178 pkg_failed=yes 12179fi 12180 else 12181 pkg_failed=untried 12182fi 12183if test -n "$SM_LIBS"; then 12184 pkg_cv_SM_LIBS="$SM_LIBS" 12185 elif test -n "$PKG_CONFIG"; then 12186 if test -n "$PKG_CONFIG" && \ 12187 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ice xproto\"") >&5 12188 ($PKG_CONFIG --exists --print-errors "ice xproto") 2>&5 12189 ac_status=$? 12190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12191 (exit $ac_status); }; then 12192 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice xproto" 2>/dev/null` 12193else 12194 pkg_failed=yes 12195fi 12196 else 12197 pkg_failed=untried 12198fi 12199 12200 12201 12202if test $pkg_failed = yes; then 12203 12204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12205 _pkg_short_errors_supported=yes 12206else 12207 _pkg_short_errors_supported=no 12208fi 12209 if test $_pkg_short_errors_supported = yes; then 12210 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice xproto" 2>&1` 12211 else 12212 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice xproto" 2>&1` 12213 fi 12214 # Put the nasty error message in config.log where it belongs 12215 echo "$SM_PKG_ERRORS" >&5 12216 12217 { { $as_echo "$as_me:$LINENO: error: Package requirements (ice xproto) were not met: 12218 12219$SM_PKG_ERRORS 12220 12221Consider adjusting the PKG_CONFIG_PATH environment variable if you 12222installed software in a non-standard prefix. 12223 12224Alternatively, you may set the environment variables SM_CFLAGS 12225and SM_LIBS to avoid the need to call pkg-config. 12226See the pkg-config man page for more details. 12227" >&5 12228$as_echo "$as_me: error: Package requirements (ice xproto) were not met: 12229 12230$SM_PKG_ERRORS 12231 12232Consider adjusting the PKG_CONFIG_PATH environment variable if you 12233installed software in a non-standard prefix. 12234 12235Alternatively, you may set the environment variables SM_CFLAGS 12236and SM_LIBS to avoid the need to call pkg-config. 12237See the pkg-config man page for more details. 12238" >&2;} 12239 { (exit 1); exit 1; }; } 12240elif test $pkg_failed = untried; then 12241 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12243{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12244is in your PATH or set the PKG_CONFIG environment variable to the full 12245path to pkg-config. 12246 12247Alternatively, you may set the environment variables SM_CFLAGS 12248and SM_LIBS to avoid the need to call pkg-config. 12249See the pkg-config man page for more details. 12250 12251To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12252See \`config.log' for more details." >&5 12253$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12254is in your PATH or set the PKG_CONFIG environment variable to the full 12255path to pkg-config. 12256 12257Alternatively, you may set the environment variables SM_CFLAGS 12258and SM_LIBS to avoid the need to call pkg-config. 12259See the pkg-config man page for more details. 12260 12261To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12262See \`config.log' for more details." >&2;} 12263 { (exit 1); exit 1; }; }; } 12264else 12265 SM_CFLAGS=$pkg_cv_SM_CFLAGS 12266 SM_LIBS=$pkg_cv_SM_LIBS 12267 { $as_echo "$as_me:$LINENO: result: yes" >&5 12268$as_echo "yes" >&6; } 12269 : 12270fi 12271SM_CFLAGS="$CWARNFLAGS $SM_CFLAGS" 12272 12273 12274 12275 12276pkg_failed=no 12277{ $as_echo "$as_me:$LINENO: checking for XTRANS" >&5 12278$as_echo_n "checking for XTRANS... " >&6; } 12279 12280if test -n "$XTRANS_CFLAGS"; then 12281 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS" 12282 elif test -n "$PKG_CONFIG"; then 12283 if test -n "$PKG_CONFIG" && \ 12284 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5 12285 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 12286 ac_status=$? 12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12288 (exit $ac_status); }; then 12289 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null` 12290else 12291 pkg_failed=yes 12292fi 12293 else 12294 pkg_failed=untried 12295fi 12296if test -n "$XTRANS_LIBS"; then 12297 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS" 12298 elif test -n "$PKG_CONFIG"; then 12299 if test -n "$PKG_CONFIG" && \ 12300 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5 12301 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 12302 ac_status=$? 12303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); }; then 12305 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null` 12306else 12307 pkg_failed=yes 12308fi 12309 else 12310 pkg_failed=untried 12311fi 12312 12313 12314 12315if test $pkg_failed = yes; then 12316 12317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12318 _pkg_short_errors_supported=yes 12319else 12320 _pkg_short_errors_supported=no 12321fi 12322 if test $_pkg_short_errors_supported = yes; then 12323 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1` 12324 else 12325 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1` 12326 fi 12327 # Put the nasty error message in config.log where it belongs 12328 echo "$XTRANS_PKG_ERRORS" >&5 12329 12330 { { $as_echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met: 12331 12332$XTRANS_PKG_ERRORS 12333 12334Consider adjusting the PKG_CONFIG_PATH environment variable if you 12335installed software in a non-standard prefix. 12336 12337Alternatively, you may set the environment variables XTRANS_CFLAGS 12338and XTRANS_LIBS to avoid the need to call pkg-config. 12339See the pkg-config man page for more details. 12340" >&5 12341$as_echo "$as_me: error: Package requirements (xtrans) were not met: 12342 12343$XTRANS_PKG_ERRORS 12344 12345Consider adjusting the PKG_CONFIG_PATH environment variable if you 12346installed software in a non-standard prefix. 12347 12348Alternatively, you may set the environment variables XTRANS_CFLAGS 12349and XTRANS_LIBS to avoid the need to call pkg-config. 12350See the pkg-config man page for more details. 12351" >&2;} 12352 { (exit 1); exit 1; }; } 12353elif test $pkg_failed = untried; then 12354 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12356{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12357is in your PATH or set the PKG_CONFIG environment variable to the full 12358path to pkg-config. 12359 12360Alternatively, you may set the environment variables XTRANS_CFLAGS 12361and XTRANS_LIBS to avoid the need to call pkg-config. 12362See the pkg-config man page for more details. 12363 12364To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12365See \`config.log' for more details." >&5 12366$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12367is in your PATH or set the PKG_CONFIG environment variable to the full 12368path to pkg-config. 12369 12370Alternatively, you may set the environment variables XTRANS_CFLAGS 12371and XTRANS_LIBS to avoid the need to call pkg-config. 12372See the pkg-config man page for more details. 12373 12374To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12375See \`config.log' for more details." >&2;} 12376 { (exit 1); exit 1; }; }; } 12377else 12378 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS 12379 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS 12380 { $as_echo "$as_me:$LINENO: result: yes" >&5 12381$as_echo "yes" >&6; } 12382 : 12383fi 12384 12385 12386 12387# Checks for libraries. 12388 12389# Checks for header files. 12390{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12391$as_echo_n "checking for ANSI C header files... " >&6; } 12392if test "${ac_cv_header_stdc+set}" = set; then 12393 $as_echo_n "(cached) " >&6 12394else 12395 cat >conftest.$ac_ext <<_ACEOF 12396/* confdefs.h. */ 12397_ACEOF 12398cat confdefs.h >>conftest.$ac_ext 12399cat >>conftest.$ac_ext <<_ACEOF 12400/* end confdefs.h. */ 12401#include <stdlib.h> 12402#include <stdarg.h> 12403#include <string.h> 12404#include <float.h> 12405 12406int 12407main () 12408{ 12409 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414rm -f conftest.$ac_objext 12415if { (ac_try="$ac_compile" 12416case "(($ac_try" in 12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12418 *) ac_try_echo=$ac_try;; 12419esac 12420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12421$as_echo "$ac_try_echo") >&5 12422 (eval "$ac_compile") 2>conftest.er1 12423 ac_status=$? 12424 grep -v '^ *+' conftest.er1 >conftest.err 12425 rm -f conftest.er1 12426 cat conftest.err >&5 12427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12428 (exit $ac_status); } && { 12429 test -z "$ac_c_werror_flag" || 12430 test ! -s conftest.err 12431 } && test -s conftest.$ac_objext; then 12432 ac_cv_header_stdc=yes 12433else 12434 $as_echo "$as_me: failed program was:" >&5 12435sed 's/^/| /' conftest.$ac_ext >&5 12436 12437 ac_cv_header_stdc=no 12438fi 12439 12440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12441 12442if test $ac_cv_header_stdc = yes; then 12443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12444 cat >conftest.$ac_ext <<_ACEOF 12445/* confdefs.h. */ 12446_ACEOF 12447cat confdefs.h >>conftest.$ac_ext 12448cat >>conftest.$ac_ext <<_ACEOF 12449/* end confdefs.h. */ 12450#include <string.h> 12451 12452_ACEOF 12453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12454 $EGREP "memchr" >/dev/null 2>&1; then 12455 : 12456else 12457 ac_cv_header_stdc=no 12458fi 12459rm -f conftest* 12460 12461fi 12462 12463if test $ac_cv_header_stdc = yes; then 12464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12465 cat >conftest.$ac_ext <<_ACEOF 12466/* confdefs.h. */ 12467_ACEOF 12468cat confdefs.h >>conftest.$ac_ext 12469cat >>conftest.$ac_ext <<_ACEOF 12470/* end confdefs.h. */ 12471#include <stdlib.h> 12472 12473_ACEOF 12474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12475 $EGREP "free" >/dev/null 2>&1; then 12476 : 12477else 12478 ac_cv_header_stdc=no 12479fi 12480rm -f conftest* 12481 12482fi 12483 12484if test $ac_cv_header_stdc = yes; then 12485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12486 if test "$cross_compiling" = yes; then 12487 : 12488else 12489 cat >conftest.$ac_ext <<_ACEOF 12490/* confdefs.h. */ 12491_ACEOF 12492cat confdefs.h >>conftest.$ac_ext 12493cat >>conftest.$ac_ext <<_ACEOF 12494/* end confdefs.h. */ 12495#include <ctype.h> 12496#include <stdlib.h> 12497#if ((' ' & 0x0FF) == 0x020) 12498# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12499# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12500#else 12501# define ISLOWER(c) \ 12502 (('a' <= (c) && (c) <= 'i') \ 12503 || ('j' <= (c) && (c) <= 'r') \ 12504 || ('s' <= (c) && (c) <= 'z')) 12505# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12506#endif 12507 12508#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12509int 12510main () 12511{ 12512 int i; 12513 for (i = 0; i < 256; i++) 12514 if (XOR (islower (i), ISLOWER (i)) 12515 || toupper (i) != TOUPPER (i)) 12516 return 2; 12517 return 0; 12518} 12519_ACEOF 12520rm -f conftest$ac_exeext 12521if { (ac_try="$ac_link" 12522case "(($ac_try" in 12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12524 *) ac_try_echo=$ac_try;; 12525esac 12526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12527$as_echo "$ac_try_echo") >&5 12528 (eval "$ac_link") 2>&5 12529 ac_status=$? 12530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12532 { (case "(($ac_try" in 12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12534 *) ac_try_echo=$ac_try;; 12535esac 12536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12537$as_echo "$ac_try_echo") >&5 12538 (eval "$ac_try") 2>&5 12539 ac_status=$? 12540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12541 (exit $ac_status); }; }; then 12542 : 12543else 12544 $as_echo "$as_me: program exited with status $ac_status" >&5 12545$as_echo "$as_me: failed program was:" >&5 12546sed 's/^/| /' conftest.$ac_ext >&5 12547 12548( exit $ac_status ) 12549ac_cv_header_stdc=no 12550fi 12551rm -rf conftest.dSYM 12552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12553fi 12554 12555 12556fi 12557fi 12558{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12559$as_echo "$ac_cv_header_stdc" >&6; } 12560if test $ac_cv_header_stdc = yes; then 12561 12562cat >>confdefs.h <<\_ACEOF 12563#define STDC_HEADERS 1 12564_ACEOF 12565 12566fi 12567 12568 12569# Needed to check for TCP & IPv6 support and set flags appropriately 12570{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 12571$as_echo_n "checking return type of signal handlers... " >&6; } 12572if test "${ac_cv_type_signal+set}" = set; then 12573 $as_echo_n "(cached) " >&6 12574else 12575 cat >conftest.$ac_ext <<_ACEOF 12576/* confdefs.h. */ 12577_ACEOF 12578cat confdefs.h >>conftest.$ac_ext 12579cat >>conftest.$ac_ext <<_ACEOF 12580/* end confdefs.h. */ 12581#include <sys/types.h> 12582#include <signal.h> 12583 12584int 12585main () 12586{ 12587return *(signal (0, 0)) (0) == 1; 12588 ; 12589 return 0; 12590} 12591_ACEOF 12592rm -f conftest.$ac_objext 12593if { (ac_try="$ac_compile" 12594case "(($ac_try" in 12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12596 *) ac_try_echo=$ac_try;; 12597esac 12598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12599$as_echo "$ac_try_echo") >&5 12600 (eval "$ac_compile") 2>conftest.er1 12601 ac_status=$? 12602 grep -v '^ *+' conftest.er1 >conftest.err 12603 rm -f conftest.er1 12604 cat conftest.err >&5 12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12606 (exit $ac_status); } && { 12607 test -z "$ac_c_werror_flag" || 12608 test ! -s conftest.err 12609 } && test -s conftest.$ac_objext; then 12610 ac_cv_type_signal=int 12611else 12612 $as_echo "$as_me: failed program was:" >&5 12613sed 's/^/| /' conftest.$ac_ext >&5 12614 12615 ac_cv_type_signal=void 12616fi 12617 12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12619fi 12620{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 12621$as_echo "$ac_cv_type_signal" >&6; } 12622 12623cat >>confdefs.h <<_ACEOF 12624#define RETSIGTYPE $ac_cv_type_signal 12625_ACEOF 12626 12627 12628 12629 12630 12631 case $host_os in 12632 mingw*) unixdef="no" ;; 12633 *) unixdef="yes" ;; 12634 esac 12635 # Check whether --enable-unix-transport was given. 12636if test "${enable_unix_transport+set}" = set; then 12637 enableval=$enable_unix_transport; UNIXCONN=$enableval 12638else 12639 UNIXCONN=$unixdef 12640fi 12641 12642 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5 12643$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 12644 if test "$UNIXCONN" = "yes"; then 12645 12646cat >>confdefs.h <<\_ACEOF 12647#define UNIXCONN 1 12648_ACEOF 12649 12650 fi 12651 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5 12652$as_echo "$UNIXCONN" >&6; } 12653 # Check whether --enable-tcp-transport was given. 12654if test "${enable_tcp_transport+set}" = set; then 12655 enableval=$enable_tcp_transport; TCPCONN=$enableval 12656else 12657 TCPCONN=yes 12658fi 12659 12660 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5 12661$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 12662 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5 12663$as_echo "$TCPCONN" >&6; } 12664 if test "$TCPCONN" = "yes"; then 12665 12666cat >>confdefs.h <<\_ACEOF 12667#define TCPCONN 1 12668_ACEOF 12669 12670 12671 # SVR4 hides these in libraries other than libc 12672 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5 12673$as_echo_n "checking for library containing socket... " >&6; } 12674if test "${ac_cv_search_socket+set}" = set; then 12675 $as_echo_n "(cached) " >&6 12676else 12677 ac_func_search_save_LIBS=$LIBS 12678cat >conftest.$ac_ext <<_ACEOF 12679/* confdefs.h. */ 12680_ACEOF 12681cat confdefs.h >>conftest.$ac_ext 12682cat >>conftest.$ac_ext <<_ACEOF 12683/* end confdefs.h. */ 12684 12685/* Override any GCC internal prototype to avoid an error. 12686 Use char because int might match the return type of a GCC 12687 builtin and then its argument prototype would still apply. */ 12688#ifdef __cplusplus 12689extern "C" 12690#endif 12691char socket (); 12692int 12693main () 12694{ 12695return socket (); 12696 ; 12697 return 0; 12698} 12699_ACEOF 12700for ac_lib in '' socket; do 12701 if test -z "$ac_lib"; then 12702 ac_res="none required" 12703 else 12704 ac_res=-l$ac_lib 12705 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12706 fi 12707 rm -f conftest.$ac_objext conftest$ac_exeext 12708if { (ac_try="$ac_link" 12709case "(($ac_try" in 12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12711 *) ac_try_echo=$ac_try;; 12712esac 12713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12714$as_echo "$ac_try_echo") >&5 12715 (eval "$ac_link") 2>conftest.er1 12716 ac_status=$? 12717 grep -v '^ *+' conftest.er1 >conftest.err 12718 rm -f conftest.er1 12719 cat conftest.err >&5 12720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12721 (exit $ac_status); } && { 12722 test -z "$ac_c_werror_flag" || 12723 test ! -s conftest.err 12724 } && test -s conftest$ac_exeext && { 12725 test "$cross_compiling" = yes || 12726 $as_test_x conftest$ac_exeext 12727 }; then 12728 ac_cv_search_socket=$ac_res 12729else 12730 $as_echo "$as_me: failed program was:" >&5 12731sed 's/^/| /' conftest.$ac_ext >&5 12732 12733 12734fi 12735 12736rm -rf conftest.dSYM 12737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12738 conftest$ac_exeext 12739 if test "${ac_cv_search_socket+set}" = set; then 12740 break 12741fi 12742done 12743if test "${ac_cv_search_socket+set}" = set; then 12744 : 12745else 12746 ac_cv_search_socket=no 12747fi 12748rm conftest.$ac_ext 12749LIBS=$ac_func_search_save_LIBS 12750fi 12751{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 12752$as_echo "$ac_cv_search_socket" >&6; } 12753ac_res=$ac_cv_search_socket 12754if test "$ac_res" != no; then 12755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12756 12757fi 12758 12759 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 12760$as_echo_n "checking for library containing gethostbyname... " >&6; } 12761if test "${ac_cv_search_gethostbyname+set}" = set; then 12762 $as_echo_n "(cached) " >&6 12763else 12764 ac_func_search_save_LIBS=$LIBS 12765cat >conftest.$ac_ext <<_ACEOF 12766/* confdefs.h. */ 12767_ACEOF 12768cat confdefs.h >>conftest.$ac_ext 12769cat >>conftest.$ac_ext <<_ACEOF 12770/* end confdefs.h. */ 12771 12772/* Override any GCC internal prototype to avoid an error. 12773 Use char because int might match the return type of a GCC 12774 builtin and then its argument prototype would still apply. */ 12775#ifdef __cplusplus 12776extern "C" 12777#endif 12778char gethostbyname (); 12779int 12780main () 12781{ 12782return gethostbyname (); 12783 ; 12784 return 0; 12785} 12786_ACEOF 12787for ac_lib in '' nsl; do 12788 if test -z "$ac_lib"; then 12789 ac_res="none required" 12790 else 12791 ac_res=-l$ac_lib 12792 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12793 fi 12794 rm -f conftest.$ac_objext conftest$ac_exeext 12795if { (ac_try="$ac_link" 12796case "(($ac_try" in 12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12798 *) ac_try_echo=$ac_try;; 12799esac 12800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12801$as_echo "$ac_try_echo") >&5 12802 (eval "$ac_link") 2>conftest.er1 12803 ac_status=$? 12804 grep -v '^ *+' conftest.er1 >conftest.err 12805 rm -f conftest.er1 12806 cat conftest.err >&5 12807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12808 (exit $ac_status); } && { 12809 test -z "$ac_c_werror_flag" || 12810 test ! -s conftest.err 12811 } && test -s conftest$ac_exeext && { 12812 test "$cross_compiling" = yes || 12813 $as_test_x conftest$ac_exeext 12814 }; then 12815 ac_cv_search_gethostbyname=$ac_res 12816else 12817 $as_echo "$as_me: failed program was:" >&5 12818sed 's/^/| /' conftest.$ac_ext >&5 12819 12820 12821fi 12822 12823rm -rf conftest.dSYM 12824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12825 conftest$ac_exeext 12826 if test "${ac_cv_search_gethostbyname+set}" = set; then 12827 break 12828fi 12829done 12830if test "${ac_cv_search_gethostbyname+set}" = set; then 12831 : 12832else 12833 ac_cv_search_gethostbyname=no 12834fi 12835rm conftest.$ac_ext 12836LIBS=$ac_func_search_save_LIBS 12837fi 12838{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 12839$as_echo "$ac_cv_search_gethostbyname" >&6; } 12840ac_res=$ac_cv_search_gethostbyname 12841if test "$ac_res" != no; then 12842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12843 12844fi 12845 12846 12847{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5 12848$as_echo_n "checking for main in -lws2_32... " >&6; } 12849if test "${ac_cv_lib_ws2_32_main+set}" = set; then 12850 $as_echo_n "(cached) " >&6 12851else 12852 ac_check_lib_save_LIBS=$LIBS 12853LIBS="-lws2_32 $LIBS" 12854cat >conftest.$ac_ext <<_ACEOF 12855/* confdefs.h. */ 12856_ACEOF 12857cat confdefs.h >>conftest.$ac_ext 12858cat >>conftest.$ac_ext <<_ACEOF 12859/* end confdefs.h. */ 12860 12861 12862int 12863main () 12864{ 12865return main (); 12866 ; 12867 return 0; 12868} 12869_ACEOF 12870rm -f conftest.$ac_objext conftest$ac_exeext 12871if { (ac_try="$ac_link" 12872case "(($ac_try" in 12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12874 *) ac_try_echo=$ac_try;; 12875esac 12876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12877$as_echo "$ac_try_echo") >&5 12878 (eval "$ac_link") 2>conftest.er1 12879 ac_status=$? 12880 grep -v '^ *+' conftest.er1 >conftest.err 12881 rm -f conftest.er1 12882 cat conftest.err >&5 12883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12884 (exit $ac_status); } && { 12885 test -z "$ac_c_werror_flag" || 12886 test ! -s conftest.err 12887 } && test -s conftest$ac_exeext && { 12888 test "$cross_compiling" = yes || 12889 $as_test_x conftest$ac_exeext 12890 }; then 12891 ac_cv_lib_ws2_32_main=yes 12892else 12893 $as_echo "$as_me: failed program was:" >&5 12894sed 's/^/| /' conftest.$ac_ext >&5 12895 12896 ac_cv_lib_ws2_32_main=no 12897fi 12898 12899rm -rf conftest.dSYM 12900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12901 conftest$ac_exeext conftest.$ac_ext 12902LIBS=$ac_check_lib_save_LIBS 12903fi 12904{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5 12905$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 12906if test "x$ac_cv_lib_ws2_32_main" = x""yes; then 12907 cat >>confdefs.h <<_ACEOF 12908#define HAVE_LIBWS2_32 1 12909_ACEOF 12910 12911 LIBS="-lws2_32 $LIBS" 12912 12913fi 12914ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 12915 12916 12917 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 12918 # Check whether --enable-ipv6 was given. 12919if test "${enable_ipv6+set}" = set; then 12920 enableval=$enable_ipv6; IPV6CONN=$enableval 12921else 12922 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 12923$as_echo_n "checking for getaddrinfo... " >&6; } 12924if test "${ac_cv_func_getaddrinfo+set}" = set; then 12925 $as_echo_n "(cached) " >&6 12926else 12927 cat >conftest.$ac_ext <<_ACEOF 12928/* confdefs.h. */ 12929_ACEOF 12930cat confdefs.h >>conftest.$ac_ext 12931cat >>conftest.$ac_ext <<_ACEOF 12932/* end confdefs.h. */ 12933/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12935#define getaddrinfo innocuous_getaddrinfo 12936 12937/* System header to define __stub macros and hopefully few prototypes, 12938 which can conflict with char getaddrinfo (); below. 12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12940 <limits.h> exists even on freestanding compilers. */ 12941 12942#ifdef __STDC__ 12943# include <limits.h> 12944#else 12945# include <assert.h> 12946#endif 12947 12948#undef getaddrinfo 12949 12950/* Override any GCC internal prototype to avoid an error. 12951 Use char because int might match the return type of a GCC 12952 builtin and then its argument prototype would still apply. */ 12953#ifdef __cplusplus 12954extern "C" 12955#endif 12956char getaddrinfo (); 12957/* The GNU C library defines this for functions which it implements 12958 to always fail with ENOSYS. Some functions are actually named 12959 something starting with __ and the normal name is an alias. */ 12960#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 12961choke me 12962#endif 12963 12964int 12965main () 12966{ 12967return getaddrinfo (); 12968 ; 12969 return 0; 12970} 12971_ACEOF 12972rm -f conftest.$ac_objext conftest$ac_exeext 12973if { (ac_try="$ac_link" 12974case "(($ac_try" in 12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12976 *) ac_try_echo=$ac_try;; 12977esac 12978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12979$as_echo "$ac_try_echo") >&5 12980 (eval "$ac_link") 2>conftest.er1 12981 ac_status=$? 12982 grep -v '^ *+' conftest.er1 >conftest.err 12983 rm -f conftest.er1 12984 cat conftest.err >&5 12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12986 (exit $ac_status); } && { 12987 test -z "$ac_c_werror_flag" || 12988 test ! -s conftest.err 12989 } && test -s conftest$ac_exeext && { 12990 test "$cross_compiling" = yes || 12991 $as_test_x conftest$ac_exeext 12992 }; then 12993 ac_cv_func_getaddrinfo=yes 12994else 12995 $as_echo "$as_me: failed program was:" >&5 12996sed 's/^/| /' conftest.$ac_ext >&5 12997 12998 ac_cv_func_getaddrinfo=no 12999fi 13000 13001rm -rf conftest.dSYM 13002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13003 conftest$ac_exeext conftest.$ac_ext 13004fi 13005{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 13006$as_echo "$ac_cv_func_getaddrinfo" >&6; } 13007if test "x$ac_cv_func_getaddrinfo" = x""yes; then 13008 IPV6CONN=yes 13009else 13010 IPV6CONN=no 13011fi 13012 13013fi 13014 13015 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5 13016$as_echo_n "checking if IPv6 support should be built... " >&6; } 13017 if test "$IPV6CONN" = "yes"; then 13018 13019cat >>confdefs.h <<\_ACEOF 13020#define IPv6 1 13021_ACEOF 13022 13023 fi 13024 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5 13025$as_echo "$IPV6CONN" >&6; } 13026 13027 # 4.3BSD-Reno added a new member to struct sockaddr_in 13028 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 13029$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; } 13030if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then 13031 $as_echo_n "(cached) " >&6 13032else 13033 cat >conftest.$ac_ext <<_ACEOF 13034/* confdefs.h. */ 13035_ACEOF 13036cat confdefs.h >>conftest.$ac_ext 13037cat >>conftest.$ac_ext <<_ACEOF 13038/* end confdefs.h. */ 13039 13040#include <sys/types.h> 13041#include <sys/socket.h> 13042#include <netinet/in.h> 13043 13044 13045int 13046main () 13047{ 13048static struct sockaddr_in ac_aggr; 13049if (ac_aggr.sin_len) 13050return 0; 13051 ; 13052 return 0; 13053} 13054_ACEOF 13055rm -f conftest.$ac_objext 13056if { (ac_try="$ac_compile" 13057case "(($ac_try" in 13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13059 *) ac_try_echo=$ac_try;; 13060esac 13061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13062$as_echo "$ac_try_echo") >&5 13063 (eval "$ac_compile") 2>conftest.er1 13064 ac_status=$? 13065 grep -v '^ *+' conftest.er1 >conftest.err 13066 rm -f conftest.er1 13067 cat conftest.err >&5 13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13069 (exit $ac_status); } && { 13070 test -z "$ac_c_werror_flag" || 13071 test ! -s conftest.err 13072 } && test -s conftest.$ac_objext; then 13073 ac_cv_member_struct_sockaddr_in_sin_len=yes 13074else 13075 $as_echo "$as_me: failed program was:" >&5 13076sed 's/^/| /' conftest.$ac_ext >&5 13077 13078 cat >conftest.$ac_ext <<_ACEOF 13079/* confdefs.h. */ 13080_ACEOF 13081cat confdefs.h >>conftest.$ac_ext 13082cat >>conftest.$ac_ext <<_ACEOF 13083/* end confdefs.h. */ 13084 13085#include <sys/types.h> 13086#include <sys/socket.h> 13087#include <netinet/in.h> 13088 13089 13090int 13091main () 13092{ 13093static struct sockaddr_in ac_aggr; 13094if (sizeof ac_aggr.sin_len) 13095return 0; 13096 ; 13097 return 0; 13098} 13099_ACEOF 13100rm -f conftest.$ac_objext 13101if { (ac_try="$ac_compile" 13102case "(($ac_try" in 13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13104 *) ac_try_echo=$ac_try;; 13105esac 13106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13107$as_echo "$ac_try_echo") >&5 13108 (eval "$ac_compile") 2>conftest.er1 13109 ac_status=$? 13110 grep -v '^ *+' conftest.er1 >conftest.err 13111 rm -f conftest.er1 13112 cat conftest.err >&5 13113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13114 (exit $ac_status); } && { 13115 test -z "$ac_c_werror_flag" || 13116 test ! -s conftest.err 13117 } && test -s conftest.$ac_objext; then 13118 ac_cv_member_struct_sockaddr_in_sin_len=yes 13119else 13120 $as_echo "$as_me: failed program was:" >&5 13121sed 's/^/| /' conftest.$ac_ext >&5 13122 13123 ac_cv_member_struct_sockaddr_in_sin_len=no 13124fi 13125 13126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13127fi 13128 13129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13130fi 13131{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 13132$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } 13133if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then 13134 13135cat >>confdefs.h <<\_ACEOF 13136#define BSD44SOCKETS 1 13137_ACEOF 13138 13139fi 13140 13141 13142 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 13143 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 13144$as_echo_n "checking for socklen_t... " >&6; } 13145if test "${ac_cv_type_socklen_t+set}" = set; then 13146 $as_echo_n "(cached) " >&6 13147else 13148 ac_cv_type_socklen_t=no 13149cat >conftest.$ac_ext <<_ACEOF 13150/* confdefs.h. */ 13151_ACEOF 13152cat confdefs.h >>conftest.$ac_ext 13153cat >>conftest.$ac_ext <<_ACEOF 13154/* end confdefs.h. */ 13155 13156$ac_includes_default 13157#include <sys/socket.h> 13158 13159int 13160main () 13161{ 13162if (sizeof (socklen_t)) 13163 return 0; 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168rm -f conftest.$ac_objext 13169if { (ac_try="$ac_compile" 13170case "(($ac_try" in 13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13172 *) ac_try_echo=$ac_try;; 13173esac 13174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13175$as_echo "$ac_try_echo") >&5 13176 (eval "$ac_compile") 2>conftest.er1 13177 ac_status=$? 13178 grep -v '^ *+' conftest.er1 >conftest.err 13179 rm -f conftest.er1 13180 cat conftest.err >&5 13181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); } && { 13183 test -z "$ac_c_werror_flag" || 13184 test ! -s conftest.err 13185 } && test -s conftest.$ac_objext; then 13186 cat >conftest.$ac_ext <<_ACEOF 13187/* confdefs.h. */ 13188_ACEOF 13189cat confdefs.h >>conftest.$ac_ext 13190cat >>conftest.$ac_ext <<_ACEOF 13191/* end confdefs.h. */ 13192 13193$ac_includes_default 13194#include <sys/socket.h> 13195 13196int 13197main () 13198{ 13199if (sizeof ((socklen_t))) 13200 return 0; 13201 ; 13202 return 0; 13203} 13204_ACEOF 13205rm -f conftest.$ac_objext 13206if { (ac_try="$ac_compile" 13207case "(($ac_try" in 13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13209 *) ac_try_echo=$ac_try;; 13210esac 13211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13212$as_echo "$ac_try_echo") >&5 13213 (eval "$ac_compile") 2>conftest.er1 13214 ac_status=$? 13215 grep -v '^ *+' conftest.er1 >conftest.err 13216 rm -f conftest.er1 13217 cat conftest.err >&5 13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13219 (exit $ac_status); } && { 13220 test -z "$ac_c_werror_flag" || 13221 test ! -s conftest.err 13222 } && test -s conftest.$ac_objext; then 13223 : 13224else 13225 $as_echo "$as_me: failed program was:" >&5 13226sed 's/^/| /' conftest.$ac_ext >&5 13227 13228 ac_cv_type_socklen_t=yes 13229fi 13230 13231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13232else 13233 $as_echo "$as_me: failed program was:" >&5 13234sed 's/^/| /' conftest.$ac_ext >&5 13235 13236 13237fi 13238 13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13240fi 13241{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 13242$as_echo "$ac_cv_type_socklen_t" >&6; } 13243if test "x$ac_cv_type_socklen_t" = x""yes; then 13244 13245cat >>confdefs.h <<_ACEOF 13246#define HAVE_SOCKLEN_T 1 13247_ACEOF 13248 13249 13250fi 13251 13252 13253 13254 fi 13255 case $host_os in 13256 solaris*|sco*|sysv4*) localdef="yes" ;; 13257 *) localdef="no" ;; 13258 esac 13259 # Check whether --enable-local-transport was given. 13260if test "${enable_local_transport+set}" = set; then 13261 enableval=$enable_local_transport; LOCALCONN=$enableval 13262else 13263 LOCALCONN=$localdef 13264fi 13265 13266 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5 13267$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 13268 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5 13269$as_echo "$LOCALCONN" >&6; } 13270 if test "$LOCALCONN" = "yes"; then 13271 13272cat >>confdefs.h <<\_ACEOF 13273#define LOCALCONN 1 13274_ACEOF 13275 13276 fi 13277 13278 13279 13280 13281# Check whether --with-libuuid was given. 13282if test "${with_libuuid+set}" = set; then 13283 withval=$with_libuuid; 13284fi 13285 13286 13287 13288for ac_func in uuid_create 13289do 13290as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13291{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13292$as_echo_n "checking for $ac_func... " >&6; } 13293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13294 $as_echo_n "(cached) " >&6 13295else 13296 cat >conftest.$ac_ext <<_ACEOF 13297/* confdefs.h. */ 13298_ACEOF 13299cat confdefs.h >>conftest.$ac_ext 13300cat >>conftest.$ac_ext <<_ACEOF 13301/* end confdefs.h. */ 13302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13303 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13304#define $ac_func innocuous_$ac_func 13305 13306/* System header to define __stub macros and hopefully few prototypes, 13307 which can conflict with char $ac_func (); below. 13308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13309 <limits.h> exists even on freestanding compilers. */ 13310 13311#ifdef __STDC__ 13312# include <limits.h> 13313#else 13314# include <assert.h> 13315#endif 13316 13317#undef $ac_func 13318 13319/* Override any GCC internal prototype to avoid an error. 13320 Use char because int might match the return type of a GCC 13321 builtin and then its argument prototype would still apply. */ 13322#ifdef __cplusplus 13323extern "C" 13324#endif 13325char $ac_func (); 13326/* The GNU C library defines this for functions which it implements 13327 to always fail with ENOSYS. Some functions are actually named 13328 something starting with __ and the normal name is an alias. */ 13329#if defined __stub_$ac_func || defined __stub___$ac_func 13330choke me 13331#endif 13332 13333int 13334main () 13335{ 13336return $ac_func (); 13337 ; 13338 return 0; 13339} 13340_ACEOF 13341rm -f conftest.$ac_objext conftest$ac_exeext 13342if { (ac_try="$ac_link" 13343case "(($ac_try" in 13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13345 *) ac_try_echo=$ac_try;; 13346esac 13347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13348$as_echo "$ac_try_echo") >&5 13349 (eval "$ac_link") 2>conftest.er1 13350 ac_status=$? 13351 grep -v '^ *+' conftest.er1 >conftest.err 13352 rm -f conftest.er1 13353 cat conftest.err >&5 13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13355 (exit $ac_status); } && { 13356 test -z "$ac_c_werror_flag" || 13357 test ! -s conftest.err 13358 } && test -s conftest$ac_exeext && { 13359 test "$cross_compiling" = yes || 13360 $as_test_x conftest$ac_exeext 13361 }; then 13362 eval "$as_ac_var=yes" 13363else 13364 $as_echo "$as_me: failed program was:" >&5 13365sed 's/^/| /' conftest.$ac_ext >&5 13366 13367 eval "$as_ac_var=no" 13368fi 13369 13370rm -rf conftest.dSYM 13371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13372 conftest$ac_exeext conftest.$ac_ext 13373fi 13374ac_res=`eval 'as_val=${'$as_ac_var'} 13375 $as_echo "$as_val"'` 13376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13377$as_echo "$ac_res" >&6; } 13378as_val=`eval 'as_val=${'$as_ac_var'} 13379 $as_echo "$as_val"'` 13380 if test "x$as_val" = x""yes; then 13381 cat >>confdefs.h <<_ACEOF 13382#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13383_ACEOF 13384 13385else 13386 13387 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then 13388 13389pkg_failed=no 13390{ $as_echo "$as_me:$LINENO: checking for LIBUUID" >&5 13391$as_echo_n "checking for LIBUUID... " >&6; } 13392 13393if test -n "$LIBUUID_CFLAGS"; then 13394 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 13395 elif test -n "$PKG_CONFIG"; then 13396 if test -n "$PKG_CONFIG" && \ 13397 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uuid\"") >&5 13398 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 13399 ac_status=$? 13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13401 (exit $ac_status); }; then 13402 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null` 13403else 13404 pkg_failed=yes 13405fi 13406 else 13407 pkg_failed=untried 13408fi 13409if test -n "$LIBUUID_LIBS"; then 13410 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 13411 elif test -n "$PKG_CONFIG"; then 13412 if test -n "$PKG_CONFIG" && \ 13413 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uuid\"") >&5 13414 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 13415 ac_status=$? 13416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13417 (exit $ac_status); }; then 13418 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null` 13419else 13420 pkg_failed=yes 13421fi 13422 else 13423 pkg_failed=untried 13424fi 13425 13426 13427 13428if test $pkg_failed = yes; then 13429 13430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13431 _pkg_short_errors_supported=yes 13432else 13433 _pkg_short_errors_supported=no 13434fi 13435 if test $_pkg_short_errors_supported = yes; then 13436 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1` 13437 else 13438 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1` 13439 fi 13440 # Put the nasty error message in config.log where it belongs 13441 echo "$LIBUUID_PKG_ERRORS" >&5 13442 13443 { $as_echo "$as_me:$LINENO: result: no" >&5 13444$as_echo "no" >&6; } 13445 HAVE_LIBUUID=no 13446elif test $pkg_failed = untried; then 13447 HAVE_LIBUUID=no 13448else 13449 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 13450 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 13451 { $as_echo "$as_me:$LINENO: result: yes" >&5 13452$as_echo "yes" >&6; } 13453 HAVE_LIBUUID=yes 13454fi 13455 fi 13456 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then 13457 { { $as_echo "$as_me:$LINENO: error: requested libuuid support but uuid.pc not found" >&5 13458$as_echo "$as_me: error: requested libuuid support but uuid.pc not found" >&2;} 13459 { (exit 1); exit 1; }; } 13460 fi 13461 13462fi 13463done 13464 13465 13466 if test x"$HAVE_LIBUUID" = xyes; then 13467 WITH_LIBUUID_TRUE= 13468 WITH_LIBUUID_FALSE='#' 13469else 13470 WITH_LIBUUID_TRUE='#' 13471 WITH_LIBUUID_FALSE= 13472fi 13473 13474 13475 13476 13477# Check whether --with-release-version was given. 13478if test "${with_release_version+set}" = set; then 13479 withval=$with_release_version; RELEASE_VERSION="$withval" 13480else 13481 RELEASE_VERSION="" 13482fi 13483 13484 if test "x$RELEASE_VERSION" != "x"; then 13485 PACKAGE="$PACKAGE-$RELEASE_VERSION" 13486 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 13487 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 13488$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 13489 fi 13490 13491cat >>confdefs.h <<_ACEOF 13492#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 13493_ACEOF 13494 13495 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 13496 if test "x$PVM" = "x"; then 13497 PVM="0" 13498 fi 13499 13500cat >>confdefs.h <<_ACEOF 13501#define PACKAGE_VERSION_MINOR $PVM 13502_ACEOF 13503 13504 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 13505 if test "x$PVP" = "x"; then 13506 PVP="0" 13507 fi 13508 13509cat >>confdefs.h <<_ACEOF 13510#define PACKAGE_VERSION_PATCHLEVEL $PVP 13511_ACEOF 13512 13513 13514 13515CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 13516mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 13517echo 'git directory not found: installing possibly empty changelog.' >&2)" 13518 13519distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 13520 13521 13522 13523ac_config_files="$ac_config_files Makefile src/Makefile sm.pc" 13524 13525cat >confcache <<\_ACEOF 13526# This file is a shell script that caches the results of configure 13527# tests run on this system so they can be shared between configure 13528# scripts and configure runs, see configure's option --config-cache. 13529# It is not useful on other systems. If it contains results you don't 13530# want to keep, you may remove or edit it. 13531# 13532# config.status only pays attention to the cache file if you give it 13533# the --recheck option to rerun configure. 13534# 13535# `ac_cv_env_foo' variables (set or unset) will be overridden when 13536# loading this file, other *unset* `ac_cv_foo' will be assigned the 13537# following values. 13538 13539_ACEOF 13540 13541# The following way of writing the cache mishandles newlines in values, 13542# but we know of no workaround that is simple, portable, and efficient. 13543# So, we kill variables containing newlines. 13544# Ultrix sh set writes to stderr and can't be redirected directly, 13545# and sets the high bit in the cache file unless we assign to the vars. 13546( 13547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13548 eval ac_val=\$$ac_var 13549 case $ac_val in #( 13550 *${as_nl}*) 13551 case $ac_var in #( 13552 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13553$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13554 esac 13555 case $ac_var in #( 13556 _ | IFS | as_nl) ;; #( 13557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13558 *) $as_unset $ac_var ;; 13559 esac ;; 13560 esac 13561 done 13562 13563 (set) 2>&1 | 13564 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13565 *${as_nl}ac_space=\ *) 13566 # `set' does not quote correctly, so add quotes (double-quote 13567 # substitution turns \\\\ into \\, and sed turns \\ into \). 13568 sed -n \ 13569 "s/'/'\\\\''/g; 13570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13571 ;; #( 13572 *) 13573 # `set' quotes correctly as required by POSIX, so do not add quotes. 13574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13575 ;; 13576 esac | 13577 sort 13578) | 13579 sed ' 13580 /^ac_cv_env_/b end 13581 t clear 13582 :clear 13583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13584 t end 13585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13586 :end' >>confcache 13587if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13588 if test -w "$cache_file"; then 13589 test "x$cache_file" != "x/dev/null" && 13590 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13591$as_echo "$as_me: updating cache $cache_file" >&6;} 13592 cat confcache >$cache_file 13593 else 13594 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13595$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13596 fi 13597fi 13598rm -f confcache 13599 13600test "x$prefix" = xNONE && prefix=$ac_default_prefix 13601# Let make expand exec_prefix. 13602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13603 13604DEFS=-DHAVE_CONFIG_H 13605 13606ac_libobjs= 13607ac_ltlibobjs= 13608for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13609 # 1. Remove the extension, and $U if already installed. 13610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13613 # will be set to the directory where LIBOBJS objects are built. 13614 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13615 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13616done 13617LIBOBJS=$ac_libobjs 13618 13619LTLIBOBJS=$ac_ltlibobjs 13620 13621 13622 if test -n "$EXEEXT"; then 13623 am__EXEEXT_TRUE= 13624 am__EXEEXT_FALSE='#' 13625else 13626 am__EXEEXT_TRUE='#' 13627 am__EXEEXT_FALSE= 13628fi 13629 13630if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13631 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13632Usually this means the macro was only invoked conditionally." >&5 13633$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13634Usually this means the macro was only invoked conditionally." >&2;} 13635 { (exit 1); exit 1; }; } 13636fi 13637if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13638 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13639Usually this means the macro was only invoked conditionally." >&5 13640$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13641Usually this means the macro was only invoked conditionally." >&2;} 13642 { (exit 1); exit 1; }; } 13643fi 13644if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13645 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13646Usually this means the macro was only invoked conditionally." >&5 13647$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13648Usually this means the macro was only invoked conditionally." >&2;} 13649 { (exit 1); exit 1; }; } 13650fi 13651if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13652 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13653Usually this means the macro was only invoked conditionally." >&5 13654$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13655Usually this means the macro was only invoked conditionally." >&2;} 13656 { (exit 1); exit 1; }; } 13657fi 13658if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then 13659 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LIBUUID\" was never defined. 13660Usually this means the macro was only invoked conditionally." >&5 13661$as_echo "$as_me: error: conditional \"WITH_LIBUUID\" was never defined. 13662Usually this means the macro was only invoked conditionally." >&2;} 13663 { (exit 1); exit 1; }; } 13664fi 13665 13666: ${CONFIG_STATUS=./config.status} 13667ac_write_fail=0 13668ac_clean_files_save=$ac_clean_files 13669ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13670{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13671$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13672cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13673#! $SHELL 13674# Generated by $as_me. 13675# Run this file to recreate the current configuration. 13676# Compiler output produced by configure, useful for debugging 13677# configure, is in config.log if it exists. 13678 13679debug=false 13680ac_cs_recheck=false 13681ac_cs_silent=false 13682SHELL=\${CONFIG_SHELL-$SHELL} 13683_ACEOF 13684 13685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13686## --------------------- ## 13687## M4sh Initialization. ## 13688## --------------------- ## 13689 13690# Be more Bourne compatible 13691DUALCASE=1; export DUALCASE # for MKS sh 13692if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13693 emulate sh 13694 NULLCMD=: 13695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13696 # is contrary to our usage. Disable this feature. 13697 alias -g '${1+"$@"}'='"$@"' 13698 setopt NO_GLOB_SUBST 13699else 13700 case `(set -o) 2>/dev/null` in 13701 *posix*) set -o posix ;; 13702esac 13703 13704fi 13705 13706 13707 13708 13709# PATH needs CR 13710# Avoid depending upon Character Ranges. 13711as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13712as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13713as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13714as_cr_digits='0123456789' 13715as_cr_alnum=$as_cr_Letters$as_cr_digits 13716 13717as_nl=' 13718' 13719export as_nl 13720# Printing a long string crashes Solaris 7 /usr/bin/printf. 13721as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13723as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13724if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13725 as_echo='printf %s\n' 13726 as_echo_n='printf %s' 13727else 13728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13729 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13730 as_echo_n='/usr/ucb/echo -n' 13731 else 13732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13733 as_echo_n_body='eval 13734 arg=$1; 13735 case $arg in 13736 *"$as_nl"*) 13737 expr "X$arg" : "X\\(.*\\)$as_nl"; 13738 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13739 esac; 13740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13741 ' 13742 export as_echo_n_body 13743 as_echo_n='sh -c $as_echo_n_body as_echo' 13744 fi 13745 export as_echo_body 13746 as_echo='sh -c $as_echo_body as_echo' 13747fi 13748 13749# The user is always right. 13750if test "${PATH_SEPARATOR+set}" != set; then 13751 PATH_SEPARATOR=: 13752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13754 PATH_SEPARATOR=';' 13755 } 13756fi 13757 13758# Support unset when possible. 13759if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13760 as_unset=unset 13761else 13762 as_unset=false 13763fi 13764 13765 13766# IFS 13767# We need space, tab and new line, in precisely that order. Quoting is 13768# there to prevent editors from complaining about space-tab. 13769# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13770# splitting by setting IFS to empty value.) 13771IFS=" "" $as_nl" 13772 13773# Find who we are. Look in the path if we contain no directory separator. 13774case $0 in 13775 *[\\/]* ) as_myself=$0 ;; 13776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13777for as_dir in $PATH 13778do 13779 IFS=$as_save_IFS 13780 test -z "$as_dir" && as_dir=. 13781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13782done 13783IFS=$as_save_IFS 13784 13785 ;; 13786esac 13787# We did not find ourselves, most probably we were run as `sh COMMAND' 13788# in which case we are not to be found in the path. 13789if test "x$as_myself" = x; then 13790 as_myself=$0 13791fi 13792if test ! -f "$as_myself"; then 13793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13794 { (exit 1); exit 1; } 13795fi 13796 13797# Work around bugs in pre-3.0 UWIN ksh. 13798for as_var in ENV MAIL MAILPATH 13799do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13800done 13801PS1='$ ' 13802PS2='> ' 13803PS4='+ ' 13804 13805# NLS nuisances. 13806LC_ALL=C 13807export LC_ALL 13808LANGUAGE=C 13809export LANGUAGE 13810 13811# Required to use basename. 13812if expr a : '\(a\)' >/dev/null 2>&1 && 13813 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13814 as_expr=expr 13815else 13816 as_expr=false 13817fi 13818 13819if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13820 as_basename=basename 13821else 13822 as_basename=false 13823fi 13824 13825 13826# Name of the executable. 13827as_me=`$as_basename -- "$0" || 13828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13829 X"$0" : 'X\(//\)$' \| \ 13830 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13831$as_echo X/"$0" | 13832 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13833 s//\1/ 13834 q 13835 } 13836 /^X\/\(\/\/\)$/{ 13837 s//\1/ 13838 q 13839 } 13840 /^X\/\(\/\).*/{ 13841 s//\1/ 13842 q 13843 } 13844 s/.*/./; q'` 13845 13846# CDPATH. 13847$as_unset CDPATH 13848 13849 13850 13851 as_lineno_1=$LINENO 13852 as_lineno_2=$LINENO 13853 test "x$as_lineno_1" != "x$as_lineno_2" && 13854 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13855 13856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13857 # uniformly replaced by the line number. The first 'sed' inserts a 13858 # line-number line after each line using $LINENO; the second 'sed' 13859 # does the real work. The second script uses 'N' to pair each 13860 # line-number line with the line containing $LINENO, and appends 13861 # trailing '-' during substitution so that $LINENO is not a special 13862 # case at line end. 13863 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13864 # scripts with optimization help from Paolo Bonzini. Blame Lee 13865 # E. McMahon (1931-1989) for sed's syntax. :-) 13866 sed -n ' 13867 p 13868 /[$]LINENO/= 13869 ' <$as_myself | 13870 sed ' 13871 s/[$]LINENO.*/&-/ 13872 t lineno 13873 b 13874 :lineno 13875 N 13876 :loop 13877 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13878 t loop 13879 s/-\n.*// 13880 ' >$as_me.lineno && 13881 chmod +x "$as_me.lineno" || 13882 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13883 { (exit 1); exit 1; }; } 13884 13885 # Don't try to exec as it changes $[0], causing all sort of problems 13886 # (the dirname of $[0] is not the place where we might find the 13887 # original and so on. Autoconf is especially sensitive to this). 13888 . "./$as_me.lineno" 13889 # Exit status is that of the last command. 13890 exit 13891} 13892 13893 13894if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13895 as_dirname=dirname 13896else 13897 as_dirname=false 13898fi 13899 13900ECHO_C= ECHO_N= ECHO_T= 13901case `echo -n x` in 13902-n*) 13903 case `echo 'x\c'` in 13904 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13905 *) ECHO_C='\c';; 13906 esac;; 13907*) 13908 ECHO_N='-n';; 13909esac 13910if expr a : '\(a\)' >/dev/null 2>&1 && 13911 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13912 as_expr=expr 13913else 13914 as_expr=false 13915fi 13916 13917rm -f conf$$ conf$$.exe conf$$.file 13918if test -d conf$$.dir; then 13919 rm -f conf$$.dir/conf$$.file 13920else 13921 rm -f conf$$.dir 13922 mkdir conf$$.dir 2>/dev/null 13923fi 13924if (echo >conf$$.file) 2>/dev/null; then 13925 if ln -s conf$$.file conf$$ 2>/dev/null; then 13926 as_ln_s='ln -s' 13927 # ... but there are two gotchas: 13928 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13929 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13930 # In both cases, we have to default to `cp -p'. 13931 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13932 as_ln_s='cp -p' 13933 elif ln conf$$.file conf$$ 2>/dev/null; then 13934 as_ln_s=ln 13935 else 13936 as_ln_s='cp -p' 13937 fi 13938else 13939 as_ln_s='cp -p' 13940fi 13941rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13942rmdir conf$$.dir 2>/dev/null 13943 13944if mkdir -p . 2>/dev/null; then 13945 as_mkdir_p=: 13946else 13947 test -d ./-p && rmdir ./-p 13948 as_mkdir_p=false 13949fi 13950 13951if test -x / >/dev/null 2>&1; then 13952 as_test_x='test -x' 13953else 13954 if ls -dL / >/dev/null 2>&1; then 13955 as_ls_L_option=L 13956 else 13957 as_ls_L_option= 13958 fi 13959 as_test_x=' 13960 eval sh -c '\'' 13961 if test -d "$1"; then 13962 test -d "$1/."; 13963 else 13964 case $1 in 13965 -*)set "./$1";; 13966 esac; 13967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13968 ???[sx]*):;;*)false;;esac;fi 13969 '\'' sh 13970 ' 13971fi 13972as_executable_p=$as_test_x 13973 13974# Sed expression to map a string onto a valid CPP name. 13975as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13976 13977# Sed expression to map a string onto a valid variable name. 13978as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13979 13980 13981exec 6>&1 13982 13983# Save the log message, to keep $[0] and so on meaningful, and to 13984# report actual input values of CONFIG_FILES etc. instead of their 13985# values after options handling. 13986ac_log=" 13987This file was extended by libSM $as_me 1.1.1, which was 13988generated by GNU Autoconf 2.63. Invocation command line was 13989 13990 CONFIG_FILES = $CONFIG_FILES 13991 CONFIG_HEADERS = $CONFIG_HEADERS 13992 CONFIG_LINKS = $CONFIG_LINKS 13993 CONFIG_COMMANDS = $CONFIG_COMMANDS 13994 $ $0 $@ 13995 13996on `(hostname || uname -n) 2>/dev/null | sed 1q` 13997" 13998 13999_ACEOF 14000 14001case $ac_config_files in *" 14002"*) set x $ac_config_files; shift; ac_config_files=$*;; 14003esac 14004 14005case $ac_config_headers in *" 14006"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14007esac 14008 14009 14010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14011# Files that config.status was made for. 14012config_files="$ac_config_files" 14013config_headers="$ac_config_headers" 14014config_commands="$ac_config_commands" 14015 14016_ACEOF 14017 14018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14019ac_cs_usage="\ 14020\`$as_me' instantiates files from templates according to the 14021current configuration. 14022 14023Usage: $0 [OPTION]... [FILE]... 14024 14025 -h, --help print this help, then exit 14026 -V, --version print version number and configuration settings, then exit 14027 -q, --quiet, --silent 14028 do not print progress messages 14029 -d, --debug don't remove temporary files 14030 --recheck update $as_me by reconfiguring in the same conditions 14031 --file=FILE[:TEMPLATE] 14032 instantiate the configuration file FILE 14033 --header=FILE[:TEMPLATE] 14034 instantiate the configuration header FILE 14035 14036Configuration files: 14037$config_files 14038 14039Configuration headers: 14040$config_headers 14041 14042Configuration commands: 14043$config_commands 14044 14045Report bugs to <bug-autoconf@gnu.org>." 14046 14047_ACEOF 14048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14049ac_cs_version="\\ 14050libSM config.status 1.1.1 14051configured by $0, generated by GNU Autoconf 2.63, 14052 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14053 14054Copyright (C) 2008 Free Software Foundation, Inc. 14055This config.status script is free software; the Free Software Foundation 14056gives unlimited permission to copy, distribute and modify it." 14057 14058ac_pwd='$ac_pwd' 14059srcdir='$srcdir' 14060INSTALL='$INSTALL' 14061MKDIR_P='$MKDIR_P' 14062AWK='$AWK' 14063test -n "\$AWK" || AWK=awk 14064_ACEOF 14065 14066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14067# The default lists apply if the user does not specify any file. 14068ac_need_defaults=: 14069while test $# != 0 14070do 14071 case $1 in 14072 --*=*) 14073 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14074 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14075 ac_shift=: 14076 ;; 14077 *) 14078 ac_option=$1 14079 ac_optarg=$2 14080 ac_shift=shift 14081 ;; 14082 esac 14083 14084 case $ac_option in 14085 # Handling of the options. 14086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14087 ac_cs_recheck=: ;; 14088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14089 $as_echo "$ac_cs_version"; exit ;; 14090 --debug | --debu | --deb | --de | --d | -d ) 14091 debug=: ;; 14092 --file | --fil | --fi | --f ) 14093 $ac_shift 14094 case $ac_optarg in 14095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14096 esac 14097 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14098 ac_need_defaults=false;; 14099 --header | --heade | --head | --hea ) 14100 $ac_shift 14101 case $ac_optarg in 14102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14103 esac 14104 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14105 ac_need_defaults=false;; 14106 --he | --h) 14107 # Conflict between --help and --header 14108 { $as_echo "$as_me: error: ambiguous option: $1 14109Try \`$0 --help' for more information." >&2 14110 { (exit 1); exit 1; }; };; 14111 --help | --hel | -h ) 14112 $as_echo "$ac_cs_usage"; exit ;; 14113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14114 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14115 ac_cs_silent=: ;; 14116 14117 # This is an error. 14118 -*) { $as_echo "$as_me: error: unrecognized option: $1 14119Try \`$0 --help' for more information." >&2 14120 { (exit 1); exit 1; }; } ;; 14121 14122 *) ac_config_targets="$ac_config_targets $1" 14123 ac_need_defaults=false ;; 14124 14125 esac 14126 shift 14127done 14128 14129ac_configure_extra_args= 14130 14131if $ac_cs_silent; then 14132 exec 6>/dev/null 14133 ac_configure_extra_args="$ac_configure_extra_args --silent" 14134fi 14135 14136_ACEOF 14137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14138if \$ac_cs_recheck; then 14139 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14140 shift 14141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14142 CONFIG_SHELL='$SHELL' 14143 export CONFIG_SHELL 14144 exec "\$@" 14145fi 14146 14147_ACEOF 14148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14149exec 5>>config.log 14150{ 14151 echo 14152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14153## Running $as_me. ## 14154_ASBOX 14155 $as_echo "$ac_log" 14156} >&5 14157 14158_ACEOF 14159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14160# 14161# INIT-COMMANDS 14162# 14163AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14164 14165 14166# The HP-UX ksh and POSIX shell print the target directory to stdout 14167# if CDPATH is set. 14168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14169 14170sed_quote_subst='$sed_quote_subst' 14171double_quote_subst='$double_quote_subst' 14172delay_variable_subst='$delay_variable_subst' 14173macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14174macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14175enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14176enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14177pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14178enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14179host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14180host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14181host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14182build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14183build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14184build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14185SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14186Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14187GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14188EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14189FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14190LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14191NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14192LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14193max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14194ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14195exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14196lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14197lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14198lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14199reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14200reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14201OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14202deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14203file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14204AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14205AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14206STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14207RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14208old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14209old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14210old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14211CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14212CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14213compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14214GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14215lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14216lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14217lt_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"`' 14218lt_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"`' 14219objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14220SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14221ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14222MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14223lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14224lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14225lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14226lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14227lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14228need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14229DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14230NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14231LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14232OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14233OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14234libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14235shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14236extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14237archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14238enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14239export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14240whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14241compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14242old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14243old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14244archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14245archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14246module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14247module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14248with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14249allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14250no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14251hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14252hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14253hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14254hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14255hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14256hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14257hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14258hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14259inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14260link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14261fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14262always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14263export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14264exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14265include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14266prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14267file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14268variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14269need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14270need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14271version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14272runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14273shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14274shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14275libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14276library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14277soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14278postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14279postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14280finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14281finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14282hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14283sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14284sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14285hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14286enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14287enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14288enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14289old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14290striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14291 14292LTCC='$LTCC' 14293LTCFLAGS='$LTCFLAGS' 14294compiler='$compiler_DEFAULT' 14295 14296# Quote evaled strings. 14297for var in SED \ 14298GREP \ 14299EGREP \ 14300FGREP \ 14301LD \ 14302NM \ 14303LN_S \ 14304lt_SP2NL \ 14305lt_NL2SP \ 14306reload_flag \ 14307OBJDUMP \ 14308deplibs_check_method \ 14309file_magic_cmd \ 14310AR \ 14311AR_FLAGS \ 14312STRIP \ 14313RANLIB \ 14314CC \ 14315CFLAGS \ 14316compiler \ 14317lt_cv_sys_global_symbol_pipe \ 14318lt_cv_sys_global_symbol_to_cdecl \ 14319lt_cv_sys_global_symbol_to_c_name_address \ 14320lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14321SHELL \ 14322ECHO \ 14323lt_prog_compiler_no_builtin_flag \ 14324lt_prog_compiler_wl \ 14325lt_prog_compiler_pic \ 14326lt_prog_compiler_static \ 14327lt_cv_prog_compiler_c_o \ 14328need_locks \ 14329DSYMUTIL \ 14330NMEDIT \ 14331LIPO \ 14332OTOOL \ 14333OTOOL64 \ 14334shrext_cmds \ 14335export_dynamic_flag_spec \ 14336whole_archive_flag_spec \ 14337compiler_needs_object \ 14338with_gnu_ld \ 14339allow_undefined_flag \ 14340no_undefined_flag \ 14341hardcode_libdir_flag_spec \ 14342hardcode_libdir_flag_spec_ld \ 14343hardcode_libdir_separator \ 14344fix_srcfile_path \ 14345exclude_expsyms \ 14346include_expsyms \ 14347file_list_spec \ 14348variables_saved_for_relink \ 14349libname_spec \ 14350library_names_spec \ 14351soname_spec \ 14352finish_eval \ 14353old_striplib \ 14354striplib; do 14355 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14356 *[\\\\\\\`\\"\\\$]*) 14357 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14358 ;; 14359 *) 14360 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14361 ;; 14362 esac 14363done 14364 14365# Double-quote double-evaled strings. 14366for var in reload_cmds \ 14367old_postinstall_cmds \ 14368old_postuninstall_cmds \ 14369old_archive_cmds \ 14370extract_expsyms_cmds \ 14371old_archive_from_new_cmds \ 14372old_archive_from_expsyms_cmds \ 14373archive_cmds \ 14374archive_expsym_cmds \ 14375module_cmds \ 14376module_expsym_cmds \ 14377export_symbols_cmds \ 14378prelink_cmds \ 14379postinstall_cmds \ 14380postuninstall_cmds \ 14381finish_cmds \ 14382sys_lib_search_path_spec \ 14383sys_lib_dlsearch_path_spec; do 14384 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14385 *[\\\\\\\`\\"\\\$]*) 14386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14387 ;; 14388 *) 14389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14390 ;; 14391 esac 14392done 14393 14394# Fix-up fallback echo if it was mangled by the above quoting rules. 14395case \$lt_ECHO in 14396*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14397 ;; 14398esac 14399 14400ac_aux_dir='$ac_aux_dir' 14401xsi_shell='$xsi_shell' 14402lt_shell_append='$lt_shell_append' 14403 14404# See if we are running on zsh, and set the options which allow our 14405# commands through without removal of \ escapes INIT. 14406if test -n "\${ZSH_VERSION+set}" ; then 14407 setopt NO_GLOB_SUBST 14408fi 14409 14410 14411 PACKAGE='$PACKAGE' 14412 VERSION='$VERSION' 14413 TIMESTAMP='$TIMESTAMP' 14414 RM='$RM' 14415 ofile='$ofile' 14416 14417 14418 14419 14420_ACEOF 14421 14422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14423 14424# Handling of arguments. 14425for ac_config_target in $ac_config_targets 14426do 14427 case $ac_config_target in 14428 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14429 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14430 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14432 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14433 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;; 14434 14435 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14436$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14437 { (exit 1); exit 1; }; };; 14438 esac 14439done 14440 14441 14442# If the user did not use the arguments to specify the items to instantiate, 14443# then the envvar interface is used. Set only those that are not. 14444# We use the long form for the default assignment because of an extremely 14445# bizarre bug on SunOS 4.1.3. 14446if $ac_need_defaults; then 14447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14450fi 14451 14452# Have a temporary directory for convenience. Make it in the build tree 14453# simply because there is no reason against having it here, and in addition, 14454# creating and moving files from /tmp can sometimes cause problems. 14455# Hook for its removal unless debugging. 14456# Note that there is a small window in which the directory will not be cleaned: 14457# after its creation but before its name has been assigned to `$tmp'. 14458$debug || 14459{ 14460 tmp= 14461 trap 'exit_status=$? 14462 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14463' 0 14464 trap '{ (exit 1); exit 1; }' 1 2 13 15 14465} 14466# Create a (secure) tmp directory for tmp files. 14467 14468{ 14469 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14470 test -n "$tmp" && test -d "$tmp" 14471} || 14472{ 14473 tmp=./conf$$-$RANDOM 14474 (umask 077 && mkdir "$tmp") 14475} || 14476{ 14477 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14478 { (exit 1); exit 1; } 14479} 14480 14481# Set up the scripts for CONFIG_FILES section. 14482# No need to generate them if there are no CONFIG_FILES. 14483# This happens for instance with `./config.status config.h'. 14484if test -n "$CONFIG_FILES"; then 14485 14486 14487ac_cr=' 14488' 14489ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14490if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14491 ac_cs_awk_cr='\\r' 14492else 14493 ac_cs_awk_cr=$ac_cr 14494fi 14495 14496echo 'BEGIN {' >"$tmp/subs1.awk" && 14497_ACEOF 14498 14499 14500{ 14501 echo "cat >conf$$subs.awk <<_ACEOF" && 14502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14503 echo "_ACEOF" 14504} >conf$$subs.sh || 14505 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14506$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14507 { (exit 1); exit 1; }; } 14508ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14509ac_delim='%!_!# ' 14510for ac_last_try in false false false false false :; do 14511 . ./conf$$subs.sh || 14512 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14513$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14514 { (exit 1); exit 1; }; } 14515 14516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14517 if test $ac_delim_n = $ac_delim_num; then 14518 break 14519 elif $ac_last_try; then 14520 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14521$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14522 { (exit 1); exit 1; }; } 14523 else 14524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14525 fi 14526done 14527rm -f conf$$subs.sh 14528 14529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14530cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14531_ACEOF 14532sed -n ' 14533h 14534s/^/S["/; s/!.*/"]=/ 14535p 14536g 14537s/^[^!]*!// 14538:repl 14539t repl 14540s/'"$ac_delim"'$// 14541t delim 14542:nl 14543h 14544s/\(.\{148\}\).*/\1/ 14545t more1 14546s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14547p 14548n 14549b repl 14550:more1 14551s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14552p 14553g 14554s/.\{148\}// 14555t nl 14556:delim 14557h 14558s/\(.\{148\}\).*/\1/ 14559t more2 14560s/["\\]/\\&/g; s/^/"/; s/$/"/ 14561p 14562b 14563:more2 14564s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14565p 14566g 14567s/.\{148\}// 14568t delim 14569' <conf$$subs.awk | sed ' 14570/^[^""]/{ 14571 N 14572 s/\n// 14573} 14574' >>$CONFIG_STATUS || ac_write_fail=1 14575rm -f conf$$subs.awk 14576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14577_ACAWK 14578cat >>"\$tmp/subs1.awk" <<_ACAWK && 14579 for (key in S) S_is_set[key] = 1 14580 FS = "" 14581 14582} 14583{ 14584 line = $ 0 14585 nfields = split(line, field, "@") 14586 substed = 0 14587 len = length(field[1]) 14588 for (i = 2; i < nfields; i++) { 14589 key = field[i] 14590 keylen = length(key) 14591 if (S_is_set[key]) { 14592 value = S[key] 14593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14594 len += length(value) + length(field[++i]) 14595 substed = 1 14596 } else 14597 len += 1 + keylen 14598 } 14599 14600 print line 14601} 14602 14603_ACAWK 14604_ACEOF 14605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14606if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14608else 14609 cat 14610fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14611 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14612$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14613 { (exit 1); exit 1; }; } 14614_ACEOF 14615 14616# VPATH may cause trouble with some makes, so we remove $(srcdir), 14617# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14618# trailing colons and then remove the whole line if VPATH becomes empty 14619# (actually we leave an empty line to preserve line numbers). 14620if test "x$srcdir" = x.; then 14621 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14622s/:*\$(srcdir):*/:/ 14623s/:*\${srcdir}:*/:/ 14624s/:*@srcdir@:*/:/ 14625s/^\([^=]*=[ ]*\):*/\1/ 14626s/:*$// 14627s/^[^=]*=[ ]*$// 14628}' 14629fi 14630 14631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14632fi # test -n "$CONFIG_FILES" 14633 14634# Set up the scripts for CONFIG_HEADERS section. 14635# No need to generate them if there are no CONFIG_HEADERS. 14636# This happens for instance with `./config.status Makefile'. 14637if test -n "$CONFIG_HEADERS"; then 14638cat >"$tmp/defines.awk" <<\_ACAWK || 14639BEGIN { 14640_ACEOF 14641 14642# Transform confdefs.h into an awk script `defines.awk', embedded as 14643# here-document in config.status, that substitutes the proper values into 14644# config.h.in to produce config.h. 14645 14646# Create a delimiter string that does not exist in confdefs.h, to ease 14647# handling of long lines. 14648ac_delim='%!_!# ' 14649for ac_last_try in false false :; do 14650 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14651 if test -z "$ac_t"; then 14652 break 14653 elif $ac_last_try; then 14654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14655$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14656 { (exit 1); exit 1; }; } 14657 else 14658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14659 fi 14660done 14661 14662# For the awk script, D is an array of macro values keyed by name, 14663# likewise P contains macro parameters if any. Preserve backslash 14664# newline sequences. 14665 14666ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14667sed -n ' 14668s/.\{148\}/&'"$ac_delim"'/g 14669t rset 14670:rset 14671s/^[ ]*#[ ]*define[ ][ ]*/ / 14672t def 14673d 14674:def 14675s/\\$// 14676t bsnl 14677s/["\\]/\\&/g 14678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14679D["\1"]=" \3"/p 14680s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14681d 14682:bsnl 14683s/["\\]/\\&/g 14684s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14685D["\1"]=" \3\\\\\\n"\\/p 14686t cont 14687s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14688t cont 14689d 14690:cont 14691n 14692s/.\{148\}/&'"$ac_delim"'/g 14693t clear 14694:clear 14695s/\\$// 14696t bsnlc 14697s/["\\]/\\&/g; s/^/"/; s/$/"/p 14698d 14699:bsnlc 14700s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14701b cont 14702' <confdefs.h | sed ' 14703s/'"$ac_delim"'/"\\\ 14704"/g' >>$CONFIG_STATUS || ac_write_fail=1 14705 14706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14707 for (key in D) D_is_set[key] = 1 14708 FS = "" 14709} 14710/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14711 line = \$ 0 14712 split(line, arg, " ") 14713 if (arg[1] == "#") { 14714 defundef = arg[2] 14715 mac1 = arg[3] 14716 } else { 14717 defundef = substr(arg[1], 2) 14718 mac1 = arg[2] 14719 } 14720 split(mac1, mac2, "(") #) 14721 macro = mac2[1] 14722 prefix = substr(line, 1, index(line, defundef) - 1) 14723 if (D_is_set[macro]) { 14724 # Preserve the white space surrounding the "#". 14725 print prefix "define", macro P[macro] D[macro] 14726 next 14727 } else { 14728 # Replace #undef with comments. This is necessary, for example, 14729 # in the case of _POSIX_SOURCE, which is predefined and required 14730 # on some systems where configure will not decide to define it. 14731 if (defundef == "undef") { 14732 print "/*", prefix defundef, macro, "*/" 14733 next 14734 } 14735 } 14736} 14737{ print } 14738_ACAWK 14739_ACEOF 14740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14741 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14742$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14743 { (exit 1); exit 1; }; } 14744fi # test -n "$CONFIG_HEADERS" 14745 14746 14747eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14748shift 14749for ac_tag 14750do 14751 case $ac_tag in 14752 :[FHLC]) ac_mode=$ac_tag; continue;; 14753 esac 14754 case $ac_mode$ac_tag in 14755 :[FHL]*:*);; 14756 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14757$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14758 { (exit 1); exit 1; }; };; 14759 :[FH]-) ac_tag=-:-;; 14760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14761 esac 14762 ac_save_IFS=$IFS 14763 IFS=: 14764 set x $ac_tag 14765 IFS=$ac_save_IFS 14766 shift 14767 ac_file=$1 14768 shift 14769 14770 case $ac_mode in 14771 :L) ac_source=$1;; 14772 :[FH]) 14773 ac_file_inputs= 14774 for ac_f 14775 do 14776 case $ac_f in 14777 -) ac_f="$tmp/stdin";; 14778 *) # Look for the file first in the build tree, then in the source tree 14779 # (if the path is not absolute). The absolute path cannot be DOS-style, 14780 # because $ac_f cannot contain `:'. 14781 test -f "$ac_f" || 14782 case $ac_f in 14783 [\\/$]*) false;; 14784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14785 esac || 14786 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14787$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14788 { (exit 1); exit 1; }; };; 14789 esac 14790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14791 ac_file_inputs="$ac_file_inputs '$ac_f'" 14792 done 14793 14794 # Let's still pretend it is `configure' which instantiates (i.e., don't 14795 # use $as_me), people would be surprised to read: 14796 # /* config.h. Generated by config.status. */ 14797 configure_input='Generated from '` 14798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14799 `' by configure.' 14800 if test x"$ac_file" != x-; then 14801 configure_input="$ac_file. $configure_input" 14802 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14803$as_echo "$as_me: creating $ac_file" >&6;} 14804 fi 14805 # Neutralize special characters interpreted by sed in replacement strings. 14806 case $configure_input in #( 14807 *\&* | *\|* | *\\* ) 14808 ac_sed_conf_input=`$as_echo "$configure_input" | 14809 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14810 *) ac_sed_conf_input=$configure_input;; 14811 esac 14812 14813 case $ac_tag in 14814 *:-:* | *:-) cat >"$tmp/stdin" \ 14815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14816$as_echo "$as_me: error: could not create $ac_file" >&2;} 14817 { (exit 1); exit 1; }; } ;; 14818 esac 14819 ;; 14820 esac 14821 14822 ac_dir=`$as_dirname -- "$ac_file" || 14823$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14824 X"$ac_file" : 'X\(//\)[^/]' \| \ 14825 X"$ac_file" : 'X\(//\)$' \| \ 14826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14827$as_echo X"$ac_file" | 14828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14829 s//\1/ 14830 q 14831 } 14832 /^X\(\/\/\)[^/].*/{ 14833 s//\1/ 14834 q 14835 } 14836 /^X\(\/\/\)$/{ 14837 s//\1/ 14838 q 14839 } 14840 /^X\(\/\).*/{ 14841 s//\1/ 14842 q 14843 } 14844 s/.*/./; q'` 14845 { as_dir="$ac_dir" 14846 case $as_dir in #( 14847 -*) as_dir=./$as_dir;; 14848 esac 14849 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14850 as_dirs= 14851 while :; do 14852 case $as_dir in #( 14853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14854 *) as_qdir=$as_dir;; 14855 esac 14856 as_dirs="'$as_qdir' $as_dirs" 14857 as_dir=`$as_dirname -- "$as_dir" || 14858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14859 X"$as_dir" : 'X\(//\)[^/]' \| \ 14860 X"$as_dir" : 'X\(//\)$' \| \ 14861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14862$as_echo X"$as_dir" | 14863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14864 s//\1/ 14865 q 14866 } 14867 /^X\(\/\/\)[^/].*/{ 14868 s//\1/ 14869 q 14870 } 14871 /^X\(\/\/\)$/{ 14872 s//\1/ 14873 q 14874 } 14875 /^X\(\/\).*/{ 14876 s//\1/ 14877 q 14878 } 14879 s/.*/./; q'` 14880 test -d "$as_dir" && break 14881 done 14882 test -z "$as_dirs" || eval "mkdir $as_dirs" 14883 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14884$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14885 { (exit 1); exit 1; }; }; } 14886 ac_builddir=. 14887 14888case "$ac_dir" in 14889.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14890*) 14891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14892 # A ".." for each directory in $ac_dir_suffix. 14893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14894 case $ac_top_builddir_sub in 14895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14897 esac ;; 14898esac 14899ac_abs_top_builddir=$ac_pwd 14900ac_abs_builddir=$ac_pwd$ac_dir_suffix 14901# for backward compatibility: 14902ac_top_builddir=$ac_top_build_prefix 14903 14904case $srcdir in 14905 .) # We are building in place. 14906 ac_srcdir=. 14907 ac_top_srcdir=$ac_top_builddir_sub 14908 ac_abs_top_srcdir=$ac_pwd ;; 14909 [\\/]* | ?:[\\/]* ) # Absolute name. 14910 ac_srcdir=$srcdir$ac_dir_suffix; 14911 ac_top_srcdir=$srcdir 14912 ac_abs_top_srcdir=$srcdir ;; 14913 *) # Relative name. 14914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14915 ac_top_srcdir=$ac_top_build_prefix$srcdir 14916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14917esac 14918ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14919 14920 14921 case $ac_mode in 14922 :F) 14923 # 14924 # CONFIG_FILE 14925 # 14926 14927 case $INSTALL in 14928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14930 esac 14931 ac_MKDIR_P=$MKDIR_P 14932 case $MKDIR_P in 14933 [\\/$]* | ?:[\\/]* ) ;; 14934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14935 esac 14936_ACEOF 14937 14938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14939# If the template does not know about datarootdir, expand it. 14940# FIXME: This hack should be removed a few years after 2.60. 14941ac_datarootdir_hack=; ac_datarootdir_seen= 14942 14943ac_sed_dataroot=' 14944/datarootdir/ { 14945 p 14946 q 14947} 14948/@datadir@/p 14949/@docdir@/p 14950/@infodir@/p 14951/@localedir@/p 14952/@mandir@/p 14953' 14954case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14955*datarootdir*) ac_datarootdir_seen=yes;; 14956*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14957 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14958$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14959_ACEOF 14960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14961 ac_datarootdir_hack=' 14962 s&@datadir@&$datadir&g 14963 s&@docdir@&$docdir&g 14964 s&@infodir@&$infodir&g 14965 s&@localedir@&$localedir&g 14966 s&@mandir@&$mandir&g 14967 s&\\\${datarootdir}&$datarootdir&g' ;; 14968esac 14969_ACEOF 14970 14971# Neutralize VPATH when `$srcdir' = `.'. 14972# Shell code in configure.ac might set extrasub. 14973# FIXME: do we really want to maintain this feature? 14974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14975ac_sed_extra="$ac_vpsub 14976$extrasub 14977_ACEOF 14978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14979:t 14980/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14981s|@configure_input@|$ac_sed_conf_input|;t t 14982s&@top_builddir@&$ac_top_builddir_sub&;t t 14983s&@top_build_prefix@&$ac_top_build_prefix&;t t 14984s&@srcdir@&$ac_srcdir&;t t 14985s&@abs_srcdir@&$ac_abs_srcdir&;t t 14986s&@top_srcdir@&$ac_top_srcdir&;t t 14987s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14988s&@builddir@&$ac_builddir&;t t 14989s&@abs_builddir@&$ac_abs_builddir&;t t 14990s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14991s&@INSTALL@&$ac_INSTALL&;t t 14992s&@MKDIR_P@&$ac_MKDIR_P&;t t 14993$ac_datarootdir_hack 14994" 14995eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14996 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14997$as_echo "$as_me: error: could not create $ac_file" >&2;} 14998 { (exit 1); exit 1; }; } 14999 15000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15001 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15003 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15004which seems to be undefined. Please make sure it is defined." >&5 15005$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15006which seems to be undefined. Please make sure it is defined." >&2;} 15007 15008 rm -f "$tmp/stdin" 15009 case $ac_file in 15010 -) cat "$tmp/out" && rm -f "$tmp/out";; 15011 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15012 esac \ 15013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15014$as_echo "$as_me: error: could not create $ac_file" >&2;} 15015 { (exit 1); exit 1; }; } 15016 ;; 15017 :H) 15018 # 15019 # CONFIG_HEADER 15020 # 15021 if test x"$ac_file" != x-; then 15022 { 15023 $as_echo "/* $configure_input */" \ 15024 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15025 } >"$tmp/config.h" \ 15026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15027$as_echo "$as_me: error: could not create $ac_file" >&2;} 15028 { (exit 1); exit 1; }; } 15029 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15030 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15031$as_echo "$as_me: $ac_file is unchanged" >&6;} 15032 else 15033 rm -f "$ac_file" 15034 mv "$tmp/config.h" "$ac_file" \ 15035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15036$as_echo "$as_me: error: could not create $ac_file" >&2;} 15037 { (exit 1); exit 1; }; } 15038 fi 15039 else 15040 $as_echo "/* $configure_input */" \ 15041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15042 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15043$as_echo "$as_me: error: could not create -" >&2;} 15044 { (exit 1); exit 1; }; } 15045 fi 15046# Compute "$ac_file"'s index in $config_headers. 15047_am_arg="$ac_file" 15048_am_stamp_count=1 15049for _am_header in $config_headers :; do 15050 case $_am_header in 15051 $_am_arg | $_am_arg:* ) 15052 break ;; 15053 * ) 15054 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15055 esac 15056done 15057echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15058$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15059 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15060 X"$_am_arg" : 'X\(//\)$' \| \ 15061 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15062$as_echo X"$_am_arg" | 15063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15064 s//\1/ 15065 q 15066 } 15067 /^X\(\/\/\)[^/].*/{ 15068 s//\1/ 15069 q 15070 } 15071 /^X\(\/\/\)$/{ 15072 s//\1/ 15073 q 15074 } 15075 /^X\(\/\).*/{ 15076 s//\1/ 15077 q 15078 } 15079 s/.*/./; q'`/stamp-h$_am_stamp_count 15080 ;; 15081 15082 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15083$as_echo "$as_me: executing $ac_file commands" >&6;} 15084 ;; 15085 esac 15086 15087 15088 case $ac_file$ac_mode in 15089 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15090 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15091 # are listed without --file. Let's play safe and only enable the eval 15092 # if we detect the quoting. 15093 case $CONFIG_FILES in 15094 *\'*) eval set x "$CONFIG_FILES" ;; 15095 *) set x $CONFIG_FILES ;; 15096 esac 15097 shift 15098 for mf 15099 do 15100 # Strip MF so we end up with the name of the file. 15101 mf=`echo "$mf" | sed -e 's/:.*$//'` 15102 # Check whether this is an Automake generated Makefile or not. 15103 # We used to match only the files named `Makefile.in', but 15104 # some people rename them; so instead we look at the file content. 15105 # Grep'ing the first line is not enough: some people post-process 15106 # each Makefile.in and add a new line on top of each file to say so. 15107 # Grep'ing the whole file is not good either: AIX grep has a line 15108 # limit of 2048, but all sed's we know have understand at least 4000. 15109 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15110 dirpart=`$as_dirname -- "$mf" || 15111$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15112 X"$mf" : 'X\(//\)[^/]' \| \ 15113 X"$mf" : 'X\(//\)$' \| \ 15114 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15115$as_echo X"$mf" | 15116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15117 s//\1/ 15118 q 15119 } 15120 /^X\(\/\/\)[^/].*/{ 15121 s//\1/ 15122 q 15123 } 15124 /^X\(\/\/\)$/{ 15125 s//\1/ 15126 q 15127 } 15128 /^X\(\/\).*/{ 15129 s//\1/ 15130 q 15131 } 15132 s/.*/./; q'` 15133 else 15134 continue 15135 fi 15136 # Extract the definition of DEPDIR, am__include, and am__quote 15137 # from the Makefile without running `make'. 15138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15139 test -z "$DEPDIR" && continue 15140 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15141 test -z "am__include" && continue 15142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15143 # When using ansi2knr, U may be empty or an underscore; expand it 15144 U=`sed -n 's/^U = //p' < "$mf"` 15145 # Find all dependency output files, they are included files with 15146 # $(DEPDIR) in their names. We invoke sed twice because it is the 15147 # simplest approach to changing $(DEPDIR) to its actual value in the 15148 # expansion. 15149 for file in `sed -n " 15150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15152 # Make sure the directory exists. 15153 test -f "$dirpart/$file" && continue 15154 fdir=`$as_dirname -- "$file" || 15155$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15156 X"$file" : 'X\(//\)[^/]' \| \ 15157 X"$file" : 'X\(//\)$' \| \ 15158 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15159$as_echo X"$file" | 15160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15161 s//\1/ 15162 q 15163 } 15164 /^X\(\/\/\)[^/].*/{ 15165 s//\1/ 15166 q 15167 } 15168 /^X\(\/\/\)$/{ 15169 s//\1/ 15170 q 15171 } 15172 /^X\(\/\).*/{ 15173 s//\1/ 15174 q 15175 } 15176 s/.*/./; q'` 15177 { as_dir=$dirpart/$fdir 15178 case $as_dir in #( 15179 -*) as_dir=./$as_dir;; 15180 esac 15181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15182 as_dirs= 15183 while :; do 15184 case $as_dir in #( 15185 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15186 *) as_qdir=$as_dir;; 15187 esac 15188 as_dirs="'$as_qdir' $as_dirs" 15189 as_dir=`$as_dirname -- "$as_dir" || 15190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15191 X"$as_dir" : 'X\(//\)[^/]' \| \ 15192 X"$as_dir" : 'X\(//\)$' \| \ 15193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15194$as_echo X"$as_dir" | 15195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15196 s//\1/ 15197 q 15198 } 15199 /^X\(\/\/\)[^/].*/{ 15200 s//\1/ 15201 q 15202 } 15203 /^X\(\/\/\)$/{ 15204 s//\1/ 15205 q 15206 } 15207 /^X\(\/\).*/{ 15208 s//\1/ 15209 q 15210 } 15211 s/.*/./; q'` 15212 test -d "$as_dir" && break 15213 done 15214 test -z "$as_dirs" || eval "mkdir $as_dirs" 15215 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15216$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15217 { (exit 1); exit 1; }; }; } 15218 # echo "creating $dirpart/$file" 15219 echo '# dummy' > "$dirpart/$file" 15220 done 15221 done 15222} 15223 ;; 15224 "libtool":C) 15225 15226 # See if we are running on zsh, and set the options which allow our 15227 # commands through without removal of \ escapes. 15228 if test -n "${ZSH_VERSION+set}" ; then 15229 setopt NO_GLOB_SUBST 15230 fi 15231 15232 cfgfile="${ofile}T" 15233 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15234 $RM "$cfgfile" 15235 15236 cat <<_LT_EOF >> "$cfgfile" 15237#! $SHELL 15238 15239# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15240# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15242# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15243# 15244# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15245# 2006, 2007, 2008 Free Software Foundation, Inc. 15246# Written by Gordon Matzigkeit, 1996 15247# 15248# This file is part of GNU Libtool. 15249# 15250# GNU Libtool is free software; you can redistribute it and/or 15251# modify it under the terms of the GNU General Public License as 15252# published by the Free Software Foundation; either version 2 of 15253# the License, or (at your option) any later version. 15254# 15255# As a special exception to the GNU General Public License, 15256# if you distribute this file as part of a program or library that 15257# is built using GNU Libtool, you may include this file under the 15258# same distribution terms that you use for the rest of that program. 15259# 15260# GNU Libtool is distributed in the hope that it will be useful, 15261# but WITHOUT ANY WARRANTY; without even the implied warranty of 15262# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15263# GNU General Public License for more details. 15264# 15265# You should have received a copy of the GNU General Public License 15266# along with GNU Libtool; see the file COPYING. If not, a copy 15267# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15268# obtained by writing to the Free Software Foundation, Inc., 15269# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15270 15271 15272# The names of the tagged configurations supported by this script. 15273available_tags="" 15274 15275# ### BEGIN LIBTOOL CONFIG 15276 15277# Which release of libtool.m4 was used? 15278macro_version=$macro_version 15279macro_revision=$macro_revision 15280 15281# Whether or not to build shared libraries. 15282build_libtool_libs=$enable_shared 15283 15284# Whether or not to build static libraries. 15285build_old_libs=$enable_static 15286 15287# What type of objects to build. 15288pic_mode=$pic_mode 15289 15290# Whether or not to optimize for fast installation. 15291fast_install=$enable_fast_install 15292 15293# The host system. 15294host_alias=$host_alias 15295host=$host 15296host_os=$host_os 15297 15298# The build system. 15299build_alias=$build_alias 15300build=$build 15301build_os=$build_os 15302 15303# A sed program that does not truncate output. 15304SED=$lt_SED 15305 15306# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15307Xsed="\$SED -e 1s/^X//" 15308 15309# A grep program that handles long lines. 15310GREP=$lt_GREP 15311 15312# An ERE matcher. 15313EGREP=$lt_EGREP 15314 15315# A literal string matcher. 15316FGREP=$lt_FGREP 15317 15318# A BSD- or MS-compatible name lister. 15319NM=$lt_NM 15320 15321# Whether we need soft or hard links. 15322LN_S=$lt_LN_S 15323 15324# What is the maximum length of a command? 15325max_cmd_len=$max_cmd_len 15326 15327# Object file suffix (normally "o"). 15328objext=$ac_objext 15329 15330# Executable file suffix (normally ""). 15331exeext=$exeext 15332 15333# whether the shell understands "unset". 15334lt_unset=$lt_unset 15335 15336# turn spaces into newlines. 15337SP2NL=$lt_lt_SP2NL 15338 15339# turn newlines into spaces. 15340NL2SP=$lt_lt_NL2SP 15341 15342# How to create reloadable object files. 15343reload_flag=$lt_reload_flag 15344reload_cmds=$lt_reload_cmds 15345 15346# An object symbol dumper. 15347OBJDUMP=$lt_OBJDUMP 15348 15349# Method to check whether dependent libraries are shared objects. 15350deplibs_check_method=$lt_deplibs_check_method 15351 15352# Command to use when deplibs_check_method == "file_magic". 15353file_magic_cmd=$lt_file_magic_cmd 15354 15355# The archiver. 15356AR=$lt_AR 15357AR_FLAGS=$lt_AR_FLAGS 15358 15359# A symbol stripping program. 15360STRIP=$lt_STRIP 15361 15362# Commands used to install an old-style archive. 15363RANLIB=$lt_RANLIB 15364old_postinstall_cmds=$lt_old_postinstall_cmds 15365old_postuninstall_cmds=$lt_old_postuninstall_cmds 15366 15367# A C compiler. 15368LTCC=$lt_CC 15369 15370# LTCC compiler flags. 15371LTCFLAGS=$lt_CFLAGS 15372 15373# Take the output of nm and produce a listing of raw symbols and C names. 15374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15375 15376# Transform the output of nm in a proper C declaration. 15377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15378 15379# Transform the output of nm in a C name address pair. 15380global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15381 15382# Transform the output of nm in a C name address pair when lib prefix is needed. 15383global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15384 15385# The name of the directory that contains temporary libtool files. 15386objdir=$objdir 15387 15388# Shell to use when invoking shell scripts. 15389SHELL=$lt_SHELL 15390 15391# An echo program that does not interpret backslashes. 15392ECHO=$lt_ECHO 15393 15394# Used to examine libraries when file_magic_cmd begins with "file". 15395MAGIC_CMD=$MAGIC_CMD 15396 15397# Must we lock files when doing compilation? 15398need_locks=$lt_need_locks 15399 15400# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15401DSYMUTIL=$lt_DSYMUTIL 15402 15403# Tool to change global to local symbols on Mac OS X. 15404NMEDIT=$lt_NMEDIT 15405 15406# Tool to manipulate fat objects and archives on Mac OS X. 15407LIPO=$lt_LIPO 15408 15409# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15410OTOOL=$lt_OTOOL 15411 15412# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15413OTOOL64=$lt_OTOOL64 15414 15415# Old archive suffix (normally "a"). 15416libext=$libext 15417 15418# Shared library suffix (normally ".so"). 15419shrext_cmds=$lt_shrext_cmds 15420 15421# The commands to extract the exported symbol list from a shared archive. 15422extract_expsyms_cmds=$lt_extract_expsyms_cmds 15423 15424# Variables whose values should be saved in libtool wrapper scripts and 15425# restored at link time. 15426variables_saved_for_relink=$lt_variables_saved_for_relink 15427 15428# Do we need the "lib" prefix for modules? 15429need_lib_prefix=$need_lib_prefix 15430 15431# Do we need a version for libraries? 15432need_version=$need_version 15433 15434# Library versioning type. 15435version_type=$version_type 15436 15437# Shared library runtime path variable. 15438runpath_var=$runpath_var 15439 15440# Shared library path variable. 15441shlibpath_var=$shlibpath_var 15442 15443# Is shlibpath searched before the hard-coded library search path? 15444shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15445 15446# Format of library name prefix. 15447libname_spec=$lt_libname_spec 15448 15449# List of archive names. First name is the real one, the rest are links. 15450# The last name is the one that the linker finds with -lNAME 15451library_names_spec=$lt_library_names_spec 15452 15453# The coded name of the library, if different from the real name. 15454soname_spec=$lt_soname_spec 15455 15456# Command to use after installation of a shared archive. 15457postinstall_cmds=$lt_postinstall_cmds 15458 15459# Command to use after uninstallation of a shared archive. 15460postuninstall_cmds=$lt_postuninstall_cmds 15461 15462# Commands used to finish a libtool library installation in a directory. 15463finish_cmds=$lt_finish_cmds 15464 15465# As "finish_cmds", except a single script fragment to be evaled but 15466# not shown. 15467finish_eval=$lt_finish_eval 15468 15469# Whether we should hardcode library paths into libraries. 15470hardcode_into_libs=$hardcode_into_libs 15471 15472# Compile-time system search path for libraries. 15473sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15474 15475# Run-time system search path for libraries. 15476sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15477 15478# Whether dlopen is supported. 15479dlopen_support=$enable_dlopen 15480 15481# Whether dlopen of programs is supported. 15482dlopen_self=$enable_dlopen_self 15483 15484# Whether dlopen of statically linked programs is supported. 15485dlopen_self_static=$enable_dlopen_self_static 15486 15487# Commands to strip libraries. 15488old_striplib=$lt_old_striplib 15489striplib=$lt_striplib 15490 15491 15492# The linker used to build libraries. 15493LD=$lt_LD 15494 15495# Commands used to build an old-style archive. 15496old_archive_cmds=$lt_old_archive_cmds 15497 15498# A language specific compiler. 15499CC=$lt_compiler 15500 15501# Is the compiler the GNU compiler? 15502with_gcc=$GCC 15503 15504# Compiler flag to turn off builtin functions. 15505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15506 15507# How to pass a linker flag through the compiler. 15508wl=$lt_lt_prog_compiler_wl 15509 15510# Additional compiler flags for building library objects. 15511pic_flag=$lt_lt_prog_compiler_pic 15512 15513# Compiler flag to prevent dynamic linking. 15514link_static_flag=$lt_lt_prog_compiler_static 15515 15516# Does compiler simultaneously support -c and -o options? 15517compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15518 15519# Whether or not to add -lc for building shared libraries. 15520build_libtool_need_lc=$archive_cmds_need_lc 15521 15522# Whether or not to disallow shared libs when runtime libs are static. 15523allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15524 15525# Compiler flag to allow reflexive dlopens. 15526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15527 15528# Compiler flag to generate shared objects directly from archives. 15529whole_archive_flag_spec=$lt_whole_archive_flag_spec 15530 15531# Whether the compiler copes with passing no objects directly. 15532compiler_needs_object=$lt_compiler_needs_object 15533 15534# Create an old-style archive from a shared archive. 15535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15536 15537# Create a temporary old-style archive to link instead of a shared archive. 15538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15539 15540# Commands used to build a shared archive. 15541archive_cmds=$lt_archive_cmds 15542archive_expsym_cmds=$lt_archive_expsym_cmds 15543 15544# Commands used to build a loadable module if different from building 15545# a shared archive. 15546module_cmds=$lt_module_cmds 15547module_expsym_cmds=$lt_module_expsym_cmds 15548 15549# Whether we are building with GNU ld or not. 15550with_gnu_ld=$lt_with_gnu_ld 15551 15552# Flag that allows shared libraries with undefined symbols to be built. 15553allow_undefined_flag=$lt_allow_undefined_flag 15554 15555# Flag that enforces no undefined symbols. 15556no_undefined_flag=$lt_no_undefined_flag 15557 15558# Flag to hardcode \$libdir into a binary during linking. 15559# This must work even if \$libdir does not exist 15560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15561 15562# If ld is used when linking, flag to hardcode \$libdir into a binary 15563# during linking. This must work even if \$libdir does not exist. 15564hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15565 15566# Whether we need a single "-rpath" flag with a separated argument. 15567hardcode_libdir_separator=$lt_hardcode_libdir_separator 15568 15569# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15570# DIR into the resulting binary. 15571hardcode_direct=$hardcode_direct 15572 15573# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15574# DIR into the resulting binary and the resulting library dependency is 15575# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15576# library is relocated. 15577hardcode_direct_absolute=$hardcode_direct_absolute 15578 15579# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15580# into the resulting binary. 15581hardcode_minus_L=$hardcode_minus_L 15582 15583# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15584# into the resulting binary. 15585hardcode_shlibpath_var=$hardcode_shlibpath_var 15586 15587# Set to "yes" if building a shared library automatically hardcodes DIR 15588# into the library and all subsequent libraries and executables linked 15589# against it. 15590hardcode_automatic=$hardcode_automatic 15591 15592# Set to yes if linker adds runtime paths of dependent libraries 15593# to runtime path list. 15594inherit_rpath=$inherit_rpath 15595 15596# Whether libtool must link a program against all its dependency libraries. 15597link_all_deplibs=$link_all_deplibs 15598 15599# Fix the shell variable \$srcfile for the compiler. 15600fix_srcfile_path=$lt_fix_srcfile_path 15601 15602# Set to "yes" if exported symbols are required. 15603always_export_symbols=$always_export_symbols 15604 15605# The commands to list exported symbols. 15606export_symbols_cmds=$lt_export_symbols_cmds 15607 15608# Symbols that should not be listed in the preloaded symbols. 15609exclude_expsyms=$lt_exclude_expsyms 15610 15611# Symbols that must always be exported. 15612include_expsyms=$lt_include_expsyms 15613 15614# Commands necessary for linking programs (against libraries) with templates. 15615prelink_cmds=$lt_prelink_cmds 15616 15617# Specify filename containing input files. 15618file_list_spec=$lt_file_list_spec 15619 15620# How to hardcode a shared library path into an executable. 15621hardcode_action=$hardcode_action 15622 15623# ### END LIBTOOL CONFIG 15624 15625_LT_EOF 15626 15627 case $host_os in 15628 aix3*) 15629 cat <<\_LT_EOF >> "$cfgfile" 15630# AIX sometimes has problems with the GCC collect2 program. For some 15631# reason, if we set the COLLECT_NAMES environment variable, the problems 15632# vanish in a puff of smoke. 15633if test "X${COLLECT_NAMES+set}" != Xset; then 15634 COLLECT_NAMES= 15635 export COLLECT_NAMES 15636fi 15637_LT_EOF 15638 ;; 15639 esac 15640 15641 15642ltmain="$ac_aux_dir/ltmain.sh" 15643 15644 15645 # We use sed instead of cat because bash on DJGPP gets confused if 15646 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15647 # text mode, it properly converts lines to CR/LF. This bash problem 15648 # is reportedly fixed, but why not run on old versions too? 15649 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15650 || (rm -f "$cfgfile"; exit 1) 15651 15652 case $xsi_shell in 15653 yes) 15654 cat << \_LT_EOF >> "$cfgfile" 15655 15656# func_dirname file append nondir_replacement 15657# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15658# otherwise set result to NONDIR_REPLACEMENT. 15659func_dirname () 15660{ 15661 case ${1} in 15662 */*) func_dirname_result="${1%/*}${2}" ;; 15663 * ) func_dirname_result="${3}" ;; 15664 esac 15665} 15666 15667# func_basename file 15668func_basename () 15669{ 15670 func_basename_result="${1##*/}" 15671} 15672 15673# func_dirname_and_basename file append nondir_replacement 15674# perform func_basename and func_dirname in a single function 15675# call: 15676# dirname: Compute the dirname of FILE. If nonempty, 15677# add APPEND to the result, otherwise set result 15678# to NONDIR_REPLACEMENT. 15679# value returned in "$func_dirname_result" 15680# basename: Compute filename of FILE. 15681# value retuned in "$func_basename_result" 15682# Implementation must be kept synchronized with func_dirname 15683# and func_basename. For efficiency, we do not delegate to 15684# those functions but instead duplicate the functionality here. 15685func_dirname_and_basename () 15686{ 15687 case ${1} in 15688 */*) func_dirname_result="${1%/*}${2}" ;; 15689 * ) func_dirname_result="${3}" ;; 15690 esac 15691 func_basename_result="${1##*/}" 15692} 15693 15694# func_stripname prefix suffix name 15695# strip PREFIX and SUFFIX off of NAME. 15696# PREFIX and SUFFIX must not contain globbing or regex special 15697# characters, hashes, percent signs, but SUFFIX may contain a leading 15698# dot (in which case that matches only a dot). 15699func_stripname () 15700{ 15701 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15702 # positional parameters, so assign one to ordinary parameter first. 15703 func_stripname_result=${3} 15704 func_stripname_result=${func_stripname_result#"${1}"} 15705 func_stripname_result=${func_stripname_result%"${2}"} 15706} 15707 15708# func_opt_split 15709func_opt_split () 15710{ 15711 func_opt_split_opt=${1%%=*} 15712 func_opt_split_arg=${1#*=} 15713} 15714 15715# func_lo2o object 15716func_lo2o () 15717{ 15718 case ${1} in 15719 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15720 *) func_lo2o_result=${1} ;; 15721 esac 15722} 15723 15724# func_xform libobj-or-source 15725func_xform () 15726{ 15727 func_xform_result=${1%.*}.lo 15728} 15729 15730# func_arith arithmetic-term... 15731func_arith () 15732{ 15733 func_arith_result=$(( $* )) 15734} 15735 15736# func_len string 15737# STRING may not start with a hyphen. 15738func_len () 15739{ 15740 func_len_result=${#1} 15741} 15742 15743_LT_EOF 15744 ;; 15745 *) # Bourne compatible functions. 15746 cat << \_LT_EOF >> "$cfgfile" 15747 15748# func_dirname file append nondir_replacement 15749# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15750# otherwise set result to NONDIR_REPLACEMENT. 15751func_dirname () 15752{ 15753 # Extract subdirectory from the argument. 15754 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15755 if test "X$func_dirname_result" = "X${1}"; then 15756 func_dirname_result="${3}" 15757 else 15758 func_dirname_result="$func_dirname_result${2}" 15759 fi 15760} 15761 15762# func_basename file 15763func_basename () 15764{ 15765 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15766} 15767 15768 15769# func_stripname prefix suffix name 15770# strip PREFIX and SUFFIX off of NAME. 15771# PREFIX and SUFFIX must not contain globbing or regex special 15772# characters, hashes, percent signs, but SUFFIX may contain a leading 15773# dot (in which case that matches only a dot). 15774# func_strip_suffix prefix name 15775func_stripname () 15776{ 15777 case ${2} in 15778 .*) func_stripname_result=`$ECHO "X${3}" \ 15779 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15780 *) func_stripname_result=`$ECHO "X${3}" \ 15781 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15782 esac 15783} 15784 15785# sed scripts: 15786my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15787my_sed_long_arg='1s/^-[^=]*=//' 15788 15789# func_opt_split 15790func_opt_split () 15791{ 15792 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15793 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15794} 15795 15796# func_lo2o object 15797func_lo2o () 15798{ 15799 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15800} 15801 15802# func_xform libobj-or-source 15803func_xform () 15804{ 15805 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15806} 15807 15808# func_arith arithmetic-term... 15809func_arith () 15810{ 15811 func_arith_result=`expr "$@"` 15812} 15813 15814# func_len string 15815# STRING may not start with a hyphen. 15816func_len () 15817{ 15818 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15819} 15820 15821_LT_EOF 15822esac 15823 15824case $lt_shell_append in 15825 yes) 15826 cat << \_LT_EOF >> "$cfgfile" 15827 15828# func_append var value 15829# Append VALUE to the end of shell variable VAR. 15830func_append () 15831{ 15832 eval "$1+=\$2" 15833} 15834_LT_EOF 15835 ;; 15836 *) 15837 cat << \_LT_EOF >> "$cfgfile" 15838 15839# func_append var value 15840# Append VALUE to the end of shell variable VAR. 15841func_append () 15842{ 15843 eval "$1=\$$1\$2" 15844} 15845 15846_LT_EOF 15847 ;; 15848 esac 15849 15850 15851 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15852 || (rm -f "$cfgfile"; exit 1) 15853 15854 mv -f "$cfgfile" "$ofile" || 15855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15856 chmod +x "$ofile" 15857 15858 ;; 15859 15860 esac 15861done # for ac_tag 15862 15863 15864{ (exit 0); exit 0; } 15865_ACEOF 15866chmod +x $CONFIG_STATUS 15867ac_clean_files=$ac_clean_files_save 15868 15869test $ac_write_fail = 0 || 15870 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15871$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15872 { (exit 1); exit 1; }; } 15873 15874 15875# configure is writing to config.log, and then calls config.status. 15876# config.status does its own redirection, appending to config.log. 15877# Unfortunately, on DOS this fails, as config.log is still kept open 15878# by configure, so config.status won't be able to write to it; its 15879# output is simply discarded. So we exec the FD to /dev/null, 15880# effectively closing config.log, so it can be properly (re)opened and 15881# appended to by config.status. When coming back to configure, we 15882# need to make the FD available again. 15883if test "$no_create" != yes; then 15884 ac_cs_success=: 15885 ac_config_status_args= 15886 test "$silent" = yes && 15887 ac_config_status_args="$ac_config_status_args --quiet" 15888 exec 5>/dev/null 15889 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15890 exec 5>>config.log 15891 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15892 # would make configure fail if this is the last instruction. 15893 $ac_cs_success || { (exit 1); exit 1; } 15894fi 15895if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15896 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15897$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15898fi 15899 15900