1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libusb-compat 0.1.3. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$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 # Zsh 3.x and 4.x performs 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(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$lt_ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563ECHO=${lt_ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $ECHO works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<_LT_EOF 582$* 583_LT_EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$lt_ECHO"; then 592 if test "X${echo_test_string+set}" != Xset; then 593 # find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 598 then 599 break 600 fi 601 done 602 fi 603 604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 606 test "X$echo_testing_string" = "X$echo_test_string"; then 607 : 608 else 609 # The Solaris, AIX, and Digital Unix default echo programs unquote 610 # backslashes. This makes it impossible to quote backslashes using 611 # echo "$something" | sed 's/\\/\\\\/g' 612 # 613 # So, first we look for a working echo in the user's PATH. 614 615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 616 for dir in $PATH /usr/ucb; do 617 IFS="$lt_save_ifs" 618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 621 test "X$echo_testing_string" = "X$echo_test_string"; then 622 ECHO="$dir/echo" 623 break 624 fi 625 done 626 IFS="$lt_save_ifs" 627 628 if test "X$ECHO" = Xecho; then 629 # We didn't find a better echo, so look for alternatives. 630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 # This shell has a builtin print -r that does the trick. 634 ECHO='print -r' 635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 636 test "X$CONFIG_SHELL" != X/bin/ksh; then 637 # If we have ksh, try running configure again with it. 638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 639 export ORIGINAL_CONFIG_SHELL 640 CONFIG_SHELL=/bin/ksh 641 export CONFIG_SHELL 642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 643 else 644 # Try using printf. 645 ECHO='printf %s\n' 646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 648 test "X$echo_testing_string" = "X$echo_test_string"; then 649 # Cool, printf works 650 : 651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 652 test "X$echo_testing_string" = 'X\t' && 653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 656 export CONFIG_SHELL 657 SHELL="$CONFIG_SHELL" 658 export SHELL 659 ECHO="$CONFIG_SHELL $0 --fallback-echo" 660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 661 test "X$echo_testing_string" = 'X\t' && 662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 663 test "X$echo_testing_string" = "X$echo_test_string"; then 664 ECHO="$CONFIG_SHELL $0 --fallback-echo" 665 else 666 # maybe with a smaller string... 667 prev=: 668 669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 671 then 672 break 673 fi 674 prev="$cmd" 675 done 676 677 if test "$prev" != 'sed 50q "$0"'; then 678 echo_test_string=`eval $prev` 679 export echo_test_string 680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 681 else 682 # Oops. We lost completely, so just stick with echo. 683 ECHO=echo 684 fi 685 fi 686 fi 687 fi 688 fi 689fi 690 691# Copy echo and quote the copy suitably for passing to libtool from 692# the Makefile, instead of quoting the original, which is used later. 693lt_ECHO=$ECHO 694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 696fi 697 698 699 700 701exec 7<&0 </dev/null 6>&1 702 703# Name of the host. 704# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 705# so uname gets run too. 706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 707 708# 709# Initializations. 710# 711ac_default_prefix=/usr/local 712ac_clean_files= 713ac_config_libobj_dir=. 714LIBOBJS= 715cross_compiling=no 716subdirs= 717MFLAGS= 718MAKEFLAGS= 719SHELL=${CONFIG_SHELL-/bin/sh} 720 721# Identity of this package. 722PACKAGE_NAME='libusb-compat' 723PACKAGE_TARNAME='libusb-compat' 724PACKAGE_VERSION='0.1.3' 725PACKAGE_STRING='libusb-compat 0.1.3' 726PACKAGE_BUGREPORT='' 727 728ac_unique_file="libusb/core.c" 729# Factoring default headers for most tests. 730ac_includes_default="\ 731#include <stdio.h> 732#ifdef HAVE_SYS_TYPES_H 733# include <sys/types.h> 734#endif 735#ifdef HAVE_SYS_STAT_H 736# include <sys/stat.h> 737#endif 738#ifdef STDC_HEADERS 739# include <stdlib.h> 740# include <stddef.h> 741#else 742# ifdef HAVE_STDLIB_H 743# include <stdlib.h> 744# endif 745#endif 746#ifdef HAVE_STRING_H 747# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 748# include <memory.h> 749# endif 750# include <string.h> 751#endif 752#ifdef HAVE_STRINGS_H 753# include <strings.h> 754#endif 755#ifdef HAVE_INTTYPES_H 756# include <inttypes.h> 757#endif 758#ifdef HAVE_STDINT_H 759# include <stdint.h> 760#endif 761#ifdef HAVE_UNISTD_H 762# include <unistd.h> 763#endif" 764 765ac_subst_vars='SHELL 766PATH_SEPARATOR 767PACKAGE_NAME 768PACKAGE_TARNAME 769PACKAGE_VERSION 770PACKAGE_STRING 771PACKAGE_BUGREPORT 772exec_prefix 773prefix 774program_transform_name 775bindir 776sbindir 777libexecdir 778datarootdir 779datadir 780sysconfdir 781sharedstatedir 782localstatedir 783includedir 784oldincludedir 785docdir 786infodir 787htmldir 788dvidir 789pdfdir 790psdir 791libdir 792localedir 793mandir 794DEFS 795ECHO_C 796ECHO_N 797ECHO_T 798LIBS 799build_alias 800host_alias 801target_alias 802INSTALL_PROGRAM 803INSTALL_SCRIPT 804INSTALL_DATA 805am__isrc 806CYGPATH_W 807PACKAGE 808VERSION 809ACLOCAL 810AUTOCONF 811AUTOMAKE 812AUTOHEADER 813MAKEINFO 814install_sh 815STRIP 816INSTALL_STRIP_PROGRAM 817mkdir_p 818AWK 819SET_MAKE 820am__leading_dot 821AMTAR 822am__tar 823am__untar 824CC 825CFLAGS 826LDFLAGS 827CPPFLAGS 828ac_ct_CC 829EXEEXT 830OBJEXT 831DEPDIR 832am__include 833am__quote 834AMDEP_TRUE 835AMDEP_FALSE 836AMDEPBACKSLASH 837CCDEPMODE 838am__fastdepCC_TRUE 839am__fastdepCC_FALSE 840LIBTOOL 841build 842build_cpu 843build_vendor 844build_os 845host 846host_cpu 847host_vendor 848host_os 849SED 850GREP 851EGREP 852FGREP 853LD 854DUMPBIN 855ac_ct_DUMPBIN 856NM 857LN_S 858OBJDUMP 859AR 860RANLIB 861lt_ECHO 862DSYMUTIL 863NMEDIT 864LIPO 865OTOOL 866OTOOL64 867CPP 868LT_MAJOR 869LT_REVISION 870LT_AGE 871LIBUSB01_VERSION 872PKG_CONFIG 873LIBUSB_1_0_CFLAGS 874LIBUSB_1_0_LIBS 875BUILD_EXAMPLES_TRUE 876BUILD_EXAMPLES_FALSE 877AM_CFLAGS 878LIBOBJS 879LTLIBOBJS' 880ac_subst_files='' 881 ac_precious_vars='build_alias 882host_alias 883target_alias 884CC 885CFLAGS 886LDFLAGS 887LIBS 888CPPFLAGS 889CPP 890PKG_CONFIG 891LIBUSB_1_0_CFLAGS 892LIBUSB_1_0_LIBS' 893 894 895# Initialize some variables set by options. 896ac_init_help= 897ac_init_version=false 898# The variables have the same names as the options, with 899# dashes changed to underlines. 900cache_file=/dev/null 901exec_prefix=NONE 902no_create= 903no_recursion= 904prefix=NONE 905program_prefix=NONE 906program_suffix=NONE 907program_transform_name=s,x,x, 908silent= 909site= 910srcdir= 911verbose= 912x_includes=NONE 913x_libraries=NONE 914 915# Installation directory options. 916# These are left unexpanded so users can "make install exec_prefix=/foo" 917# and all the variables that are supposed to be based on exec_prefix 918# by default will actually change. 919# Use braces instead of parens because sh, perl, etc. also accept them. 920# (The list follows the same order as the GNU Coding Standards.) 921bindir='${exec_prefix}/bin' 922sbindir='${exec_prefix}/sbin' 923libexecdir='${exec_prefix}/libexec' 924datarootdir='${prefix}/share' 925datadir='${datarootdir}' 926sysconfdir='${prefix}/etc' 927sharedstatedir='${prefix}/com' 928localstatedir='${prefix}/var' 929includedir='${prefix}/include' 930oldincludedir='/usr/include' 931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 932infodir='${datarootdir}/info' 933htmldir='${docdir}' 934dvidir='${docdir}' 935pdfdir='${docdir}' 936psdir='${docdir}' 937libdir='${exec_prefix}/lib' 938localedir='${datarootdir}/locale' 939mandir='${datarootdir}/man' 940 941ac_prev= 942ac_dashdash= 943for ac_option 944do 945 # If the previous option needs an argument, assign it. 946 if test -n "$ac_prev"; then 947 eval $ac_prev=\$ac_option 948 ac_prev= 949 continue 950 fi 951 952 case $ac_option in 953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 954 *) ac_optarg=yes ;; 955 esac 956 957 # Accept the important Cygnus configure options, so we can diagnose typos. 958 959 case $ac_dashdash$ac_option in 960 --) 961 ac_dashdash=yes ;; 962 963 -bindir | --bindir | --bindi | --bind | --bin | --bi) 964 ac_prev=bindir ;; 965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 966 bindir=$ac_optarg ;; 967 968 -build | --build | --buil | --bui | --bu) 969 ac_prev=build_alias ;; 970 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 971 build_alias=$ac_optarg ;; 972 973 -cache-file | --cache-file | --cache-fil | --cache-fi \ 974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 975 ac_prev=cache_file ;; 976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 978 cache_file=$ac_optarg ;; 979 980 --config-cache | -C) 981 cache_file=config.cache ;; 982 983 -datadir | --datadir | --datadi | --datad) 984 ac_prev=datadir ;; 985 -datadir=* | --datadir=* | --datadi=* | --datad=*) 986 datadir=$ac_optarg ;; 987 988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 989 | --dataroo | --dataro | --datar) 990 ac_prev=datarootdir ;; 991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 993 datarootdir=$ac_optarg ;; 994 995 -disable-* | --disable-*) 996 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1000 { (exit 1); exit 1; }; } 1001 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1002 eval enable_$ac_feature=no ;; 1003 1004 -docdir | --docdir | --docdi | --doc | --do) 1005 ac_prev=docdir ;; 1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1007 docdir=$ac_optarg ;; 1008 1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1010 ac_prev=dvidir ;; 1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1012 dvidir=$ac_optarg ;; 1013 1014 -enable-* | --enable-*) 1015 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1016 # Reject names that are not valid shell variable names. 1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1019 { (exit 1); exit 1; }; } 1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1021 eval enable_$ac_feature=\$ac_optarg ;; 1022 1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1025 | --exec | --exe | --ex) 1026 ac_prev=exec_prefix ;; 1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1029 | --exec=* | --exe=* | --ex=*) 1030 exec_prefix=$ac_optarg ;; 1031 1032 -gas | --gas | --ga | --g) 1033 # Obsolete; use --with-gas. 1034 with_gas=yes ;; 1035 1036 -help | --help | --hel | --he | -h) 1037 ac_init_help=long ;; 1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1039 ac_init_help=recursive ;; 1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1041 ac_init_help=short ;; 1042 1043 -host | --host | --hos | --ho) 1044 ac_prev=host_alias ;; 1045 -host=* | --host=* | --hos=* | --ho=*) 1046 host_alias=$ac_optarg ;; 1047 1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1049 ac_prev=htmldir ;; 1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1051 | --ht=*) 1052 htmldir=$ac_optarg ;; 1053 1054 -includedir | --includedir | --includedi | --included | --include \ 1055 | --includ | --inclu | --incl | --inc) 1056 ac_prev=includedir ;; 1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1058 | --includ=* | --inclu=* | --incl=* | --inc=*) 1059 includedir=$ac_optarg ;; 1060 1061 -infodir | --infodir | --infodi | --infod | --info | --inf) 1062 ac_prev=infodir ;; 1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1064 infodir=$ac_optarg ;; 1065 1066 -libdir | --libdir | --libdi | --libd) 1067 ac_prev=libdir ;; 1068 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1069 libdir=$ac_optarg ;; 1070 1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1072 | --libexe | --libex | --libe) 1073 ac_prev=libexecdir ;; 1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1075 | --libexe=* | --libex=* | --libe=*) 1076 libexecdir=$ac_optarg ;; 1077 1078 -localedir | --localedir | --localedi | --localed | --locale) 1079 ac_prev=localedir ;; 1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1081 localedir=$ac_optarg ;; 1082 1083 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1084 | --localstate | --localstat | --localsta | --localst | --locals) 1085 ac_prev=localstatedir ;; 1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1088 localstatedir=$ac_optarg ;; 1089 1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1091 ac_prev=mandir ;; 1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1093 mandir=$ac_optarg ;; 1094 1095 -nfp | --nfp | --nf) 1096 # Obsolete; use --without-fp. 1097 with_fp=no ;; 1098 1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1100 | --no-cr | --no-c | -n) 1101 no_create=yes ;; 1102 1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1105 no_recursion=yes ;; 1106 1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1109 | --oldin | --oldi | --old | --ol | --o) 1110 ac_prev=oldincludedir ;; 1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1114 oldincludedir=$ac_optarg ;; 1115 1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1117 ac_prev=prefix ;; 1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1119 prefix=$ac_optarg ;; 1120 1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1122 | --program-pre | --program-pr | --program-p) 1123 ac_prev=program_prefix ;; 1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1126 program_prefix=$ac_optarg ;; 1127 1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1129 | --program-suf | --program-su | --program-s) 1130 ac_prev=program_suffix ;; 1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1133 program_suffix=$ac_optarg ;; 1134 1135 -program-transform-name | --program-transform-name \ 1136 | --program-transform-nam | --program-transform-na \ 1137 | --program-transform-n | --program-transform- \ 1138 | --program-transform | --program-transfor \ 1139 | --program-transfo | --program-transf \ 1140 | --program-trans | --program-tran \ 1141 | --progr-tra | --program-tr | --program-t) 1142 ac_prev=program_transform_name ;; 1143 -program-transform-name=* | --program-transform-name=* \ 1144 | --program-transform-nam=* | --program-transform-na=* \ 1145 | --program-transform-n=* | --program-transform-=* \ 1146 | --program-transform=* | --program-transfor=* \ 1147 | --program-transfo=* | --program-transf=* \ 1148 | --program-trans=* | --program-tran=* \ 1149 | --progr-tra=* | --program-tr=* | --program-t=*) 1150 program_transform_name=$ac_optarg ;; 1151 1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1153 ac_prev=pdfdir ;; 1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1155 pdfdir=$ac_optarg ;; 1156 1157 -psdir | --psdir | --psdi | --psd | --ps) 1158 ac_prev=psdir ;; 1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1160 psdir=$ac_optarg ;; 1161 1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1163 | -silent | --silent | --silen | --sile | --sil) 1164 silent=yes ;; 1165 1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1167 ac_prev=sbindir ;; 1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1169 | --sbi=* | --sb=*) 1170 sbindir=$ac_optarg ;; 1171 1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1174 | --sharedst | --shareds | --shared | --share | --shar \ 1175 | --sha | --sh) 1176 ac_prev=sharedstatedir ;; 1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1180 | --sha=* | --sh=*) 1181 sharedstatedir=$ac_optarg ;; 1182 1183 -site | --site | --sit) 1184 ac_prev=site ;; 1185 -site=* | --site=* | --sit=*) 1186 site=$ac_optarg ;; 1187 1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1189 ac_prev=srcdir ;; 1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1191 srcdir=$ac_optarg ;; 1192 1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1194 | --syscon | --sysco | --sysc | --sys | --sy) 1195 ac_prev=sysconfdir ;; 1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1198 sysconfdir=$ac_optarg ;; 1199 1200 -target | --target | --targe | --targ | --tar | --ta | --t) 1201 ac_prev=target_alias ;; 1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1203 target_alias=$ac_optarg ;; 1204 1205 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1206 verbose=yes ;; 1207 1208 -version | --version | --versio | --versi | --vers | -V) 1209 ac_init_version=: ;; 1210 1211 -with-* | --with-*) 1212 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 { echo "$as_me: error: invalid package name: $ac_package" >&2 1216 { (exit 1); exit 1; }; } 1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1218 eval with_$ac_package=\$ac_optarg ;; 1219 1220 -without-* | --without-*) 1221 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 { echo "$as_me: error: invalid package name: $ac_package" >&2 1225 { (exit 1); exit 1; }; } 1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1227 eval with_$ac_package=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) { echo "$as_me: error: unrecognized option: $ac_option 1248Try \`$0 --help' for more information." >&2 1249 { (exit 1); exit 1; }; } 1250 ;; 1251 1252 *=*) 1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1257 { (exit 1); exit 1; }; } 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 { echo "$as_me: error: missing argument to $ac_option" >&2 1275 { (exit 1); exit 1; }; } 1276fi 1277 1278# Be sure to have absolute directory names. 1279for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1280 datadir sysconfdir sharedstatedir localstatedir includedir \ 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1282 libdir localedir mandir 1283do 1284 eval ac_val=\$$ac_var 1285 case $ac_val in 1286 [\\/$]* | ?:[\\/]* ) continue;; 1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1288 esac 1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1290 { (exit 1); exit 1; }; } 1291done 1292 1293# There might be people who depend on the old broken behavior: `$host' 1294# used to hold the argument of --host etc. 1295# FIXME: To remove some day. 1296build=$build_alias 1297host=$host_alias 1298target=$target_alias 1299 1300# FIXME: To remove some day. 1301if test "x$host_alias" != x; then 1302 if test "x$build_alias" = x; then 1303 cross_compiling=maybe 1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1305 If a cross compiler is detected then cross compile mode will be used." >&2 1306 elif test "x$build_alias" != "x$host_alias"; then 1307 cross_compiling=yes 1308 fi 1309fi 1310 1311ac_tool_prefix= 1312test -n "$host_alias" && ac_tool_prefix=$host_alias- 1313 1314test "$silent" = yes && exec 6>/dev/null 1315 1316 1317ac_pwd=`pwd` && test -n "$ac_pwd" && 1318ac_ls_di=`ls -di .` && 1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1320 { echo "$as_me: error: Working directory cannot be determined" >&2 1321 { (exit 1); exit 1; }; } 1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1323 { echo "$as_me: error: pwd does not report name of working directory" >&2 1324 { (exit 1); exit 1; }; } 1325 1326 1327# Find the source files, if location was not specified. 1328if test -z "$srcdir"; then 1329 ac_srcdir_defaulted=yes 1330 # Try the directory containing this script, then the parent directory. 1331 ac_confdir=`$as_dirname -- "$0" || 1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1333 X"$0" : 'X\(//\)[^/]' \| \ 1334 X"$0" : 'X\(//\)$' \| \ 1335 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1336echo X"$0" | 1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)[^/].*/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\).*/{ 1350 s//\1/ 1351 q 1352 } 1353 s/.*/./; q'` 1354 srcdir=$ac_confdir 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 srcdir=.. 1357 fi 1358else 1359 ac_srcdir_defaulted=no 1360fi 1361if test ! -r "$srcdir/$ac_unique_file"; then 1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1364 { (exit 1); exit 1; }; } 1365fi 1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1367ac_abs_confdir=`( 1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1369 { (exit 1); exit 1; }; } 1370 pwd)` 1371# When building in place, set srcdir=. 1372if test "$ac_abs_confdir" = "$ac_pwd"; then 1373 srcdir=. 1374fi 1375# Remove unnecessary trailing slashes from srcdir. 1376# Double slashes in file names in object file debugging info 1377# mess up M-x gdb in Emacs. 1378case $srcdir in 1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1380esac 1381for ac_var in $ac_precious_vars; do 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_env_${ac_var}_value=\$${ac_var} 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1386done 1387 1388# 1389# Report the --help message. 1390# 1391if test "$ac_init_help" = "long"; then 1392 # Omit some internal or obsolete options to make the list less imposing. 1393 # This message is too long to be a string in the A/UX 3.1 sh. 1394 cat <<_ACEOF 1395\`configure' configures libusb-compat 0.1.3 to adapt to many kinds of systems. 1396 1397Usage: $0 [OPTION]... [VAR=VALUE]... 1398 1399To assign environment variables (e.g., CC, CFLAGS...), specify them as 1400VAR=VALUE. See below for descriptions of some of the useful variables. 1401 1402Defaults for the options are specified in brackets. 1403 1404Configuration: 1405 -h, --help display this help and exit 1406 --help=short display options specific to this package 1407 --help=recursive display the short help of all the included packages 1408 -V, --version display version information and exit 1409 -q, --quiet, --silent do not print \`checking...' messages 1410 --cache-file=FILE cache test results in FILE [disabled] 1411 -C, --config-cache alias for \`--cache-file=config.cache' 1412 -n, --no-create do not create output files 1413 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1414 1415Installation directories: 1416 --prefix=PREFIX install architecture-independent files in PREFIX 1417 [$ac_default_prefix] 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1419 [PREFIX] 1420 1421By default, \`make install' will install all the files in 1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1423an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1424for instance \`--prefix=\$HOME'. 1425 1426For better control, use the options below. 1427 1428Fine tuning of the installation directories: 1429 --bindir=DIR user executables [EPREFIX/bin] 1430 --sbindir=DIR system admin executables [EPREFIX/sbin] 1431 --libexecdir=DIR program executables [EPREFIX/libexec] 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1435 --libdir=DIR object code libraries [EPREFIX/lib] 1436 --includedir=DIR C header files [PREFIX/include] 1437 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1440 --infodir=DIR info documentation [DATAROOTDIR/info] 1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1442 --mandir=DIR man documentation [DATAROOTDIR/man] 1443 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat] 1444 --htmldir=DIR html documentation [DOCDIR] 1445 --dvidir=DIR dvi documentation [DOCDIR] 1446 --pdfdir=DIR pdf documentation [DOCDIR] 1447 --psdir=DIR ps documentation [DOCDIR] 1448_ACEOF 1449 1450 cat <<\_ACEOF 1451 1452Program names: 1453 --program-prefix=PREFIX prepend PREFIX to installed program names 1454 --program-suffix=SUFFIX append SUFFIX to installed program names 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1456 1457System types: 1458 --build=BUILD configure for building on BUILD [guessed] 1459 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1460_ACEOF 1461fi 1462 1463if test -n "$ac_init_help"; then 1464 case $ac_init_help in 1465 short | recursive ) echo "Configuration of libusb-compat 0.1.3:";; 1466 esac 1467 cat <<\_ACEOF 1468 1469Optional Features: 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --disable-dependency-tracking speeds up one-time build 1473 --enable-dependency-tracking do not reject slow dependency extractors 1474 --enable-shared[=PKGS] build shared libraries [default=yes] 1475 --enable-static[=PKGS] build static libraries [default=yes] 1476 --enable-fast-install[=PKGS] 1477 optimize for fast installation [default=yes] 1478 --disable-libtool-lock avoid locking (might break parallel builds) 1479 --disable-log disable all logging 1480 --enable-debug-log enable debug logging (default n) 1481 --enable-examples-build build example applications (default n) 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-pic try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 PKG_CONFIG path to pkg-config utility 1500 LIBUSB_1_0_CFLAGS 1501 C compiler flags for LIBUSB_1_0, overriding pkg-config 1502 LIBUSB_1_0_LIBS 1503 linker flags for LIBUSB_1_0, overriding pkg-config 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508_ACEOF 1509ac_status=$? 1510fi 1511 1512if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || continue 1516 ac_builddir=. 1517 1518case "$ac_dir" in 1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520*) 1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1522 # A ".." for each directory in $ac_dir_suffix. 1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1524 case $ac_top_builddir_sub in 1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1527 esac ;; 1528esac 1529ac_abs_top_builddir=$ac_pwd 1530ac_abs_builddir=$ac_pwd$ac_dir_suffix 1531# for backward compatibility: 1532ac_top_builddir=$ac_top_build_prefix 1533 1534case $srcdir in 1535 .) # We are building in place. 1536 ac_srcdir=. 1537 ac_top_srcdir=$ac_top_builddir_sub 1538 ac_abs_top_srcdir=$ac_pwd ;; 1539 [\\/]* | ?:[\\/]* ) # Absolute name. 1540 ac_srcdir=$srcdir$ac_dir_suffix; 1541 ac_top_srcdir=$srcdir 1542 ac_abs_top_srcdir=$srcdir ;; 1543 *) # Relative name. 1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1545 ac_top_srcdir=$ac_top_build_prefix$srcdir 1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1547esac 1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1549 1550 cd "$ac_dir" || { ac_status=$?; continue; } 1551 # Check for guested configure. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563fi 1564 1565test -n "$ac_init_help" && exit $ac_status 1566if $ac_init_version; then 1567 cat <<\_ACEOF 1568libusb-compat configure 0.1.3 1569generated by GNU Autoconf 2.61 1570 1571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1573This configure script is free software; the Free Software Foundation 1574gives unlimited permission to copy, distribute and modify it. 1575_ACEOF 1576 exit 1577fi 1578cat >config.log <<_ACEOF 1579This file contains any messages produced by compilers while 1580running configure, to aid debugging if configure makes a mistake. 1581 1582It was created by libusb-compat $as_me 0.1.3, which was 1583generated by GNU Autoconf 2.61. Invocation command line was 1584 1585 $ $0 $@ 1586 1587_ACEOF 1588exec 5>>config.log 1589{ 1590cat <<_ASUNAME 1591## --------- ## 1592## Platform. ## 1593## --------- ## 1594 1595hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1596uname -m = `(uname -m) 2>/dev/null || echo unknown` 1597uname -r = `(uname -r) 2>/dev/null || echo unknown` 1598uname -s = `(uname -s) 2>/dev/null || echo unknown` 1599uname -v = `(uname -v) 2>/dev/null || echo unknown` 1600 1601/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1602/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1603 1604/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1605/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1606/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1607/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1608/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1609/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1610/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1611 1612_ASUNAME 1613 1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1615for as_dir in $PATH 1616do 1617 IFS=$as_save_IFS 1618 test -z "$as_dir" && as_dir=. 1619 echo "PATH: $as_dir" 1620done 1621IFS=$as_save_IFS 1622 1623} >&5 1624 1625cat >&5 <<_ACEOF 1626 1627 1628## ----------- ## 1629## Core tests. ## 1630## ----------- ## 1631 1632_ACEOF 1633 1634 1635# Keep a trace of the command line. 1636# Strip out --no-create and --no-recursion so they do not pile up. 1637# Strip out --silent because we don't want to record it for future runs. 1638# Also quote any args containing shell meta-characters. 1639# Make two passes to allow for proper duplicate-argument suppression. 1640ac_configure_args= 1641ac_configure_args0= 1642ac_configure_args1= 1643ac_must_keep_next=false 1644for ac_pass in 1 2 1645do 1646 for ac_arg 1647 do 1648 case $ac_arg in 1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1651 | -silent | --silent | --silen | --sile | --sil) 1652 continue ;; 1653 *\'*) 1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1655 esac 1656 case $ac_pass in 1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1658 2) 1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1660 if test $ac_must_keep_next = true; then 1661 ac_must_keep_next=false # Got value, back to normal. 1662 else 1663 case $ac_arg in 1664 *=* | --config-cache | -C | -disable-* | --disable-* \ 1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1667 | -with-* | --with-* | -without-* | --without-* | --x) 1668 case "$ac_configure_args0 " in 1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1670 esac 1671 ;; 1672 -* ) ac_must_keep_next=true ;; 1673 esac 1674 fi 1675 ac_configure_args="$ac_configure_args '$ac_arg'" 1676 ;; 1677 esac 1678 done 1679done 1680$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1681$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1682 1683# When interrupted or exit'd, cleanup temporary files, and complete 1684# config.log. We remove comments because anyway the quotes in there 1685# would cause problems or look ugly. 1686# WARNING: Use '\'' to represent an apostrophe within the trap. 1687# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1688trap 'exit_status=$? 1689 # Save into config.log some information that might help in debugging. 1690 { 1691 echo 1692 1693 cat <<\_ASBOX 1694## ---------------- ## 1695## Cache variables. ## 1696## ---------------- ## 1697_ASBOX 1698 echo 1699 # The following way of writing the cache mishandles newlines in values, 1700( 1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1702 eval ac_val=\$$ac_var 1703 case $ac_val in #( 1704 *${as_nl}*) 1705 case $ac_var in #( 1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1708 esac 1709 case $ac_var in #( 1710 _ | IFS | as_nl) ;; #( 1711 *) $as_unset $ac_var ;; 1712 esac ;; 1713 esac 1714 done 1715 (set) 2>&1 | 1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1717 *${as_nl}ac_space=\ *) 1718 sed -n \ 1719 "s/'\''/'\''\\\\'\'''\''/g; 1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1721 ;; #( 1722 *) 1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1724 ;; 1725 esac | 1726 sort 1727) 1728 echo 1729 1730 cat <<\_ASBOX 1731## ----------------- ## 1732## Output variables. ## 1733## ----------------- ## 1734_ASBOX 1735 echo 1736 for ac_var in $ac_subst_vars 1737 do 1738 eval ac_val=\$$ac_var 1739 case $ac_val in 1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1741 esac 1742 echo "$ac_var='\''$ac_val'\''" 1743 done | sort 1744 echo 1745 1746 if test -n "$ac_subst_files"; then 1747 cat <<\_ASBOX 1748## ------------------- ## 1749## File substitutions. ## 1750## ------------------- ## 1751_ASBOX 1752 echo 1753 for ac_var in $ac_subst_files 1754 do 1755 eval ac_val=\$$ac_var 1756 case $ac_val in 1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1758 esac 1759 echo "$ac_var='\''$ac_val'\''" 1760 done | sort 1761 echo 1762 fi 1763 1764 if test -s confdefs.h; then 1765 cat <<\_ASBOX 1766## ----------- ## 1767## confdefs.h. ## 1768## ----------- ## 1769_ASBOX 1770 echo 1771 cat confdefs.h 1772 echo 1773 fi 1774 test "$ac_signal" != 0 && 1775 echo "$as_me: caught signal $ac_signal" 1776 echo "$as_me: exit $exit_status" 1777 } >&5 1778 rm -f core *.core core.conftest.* && 1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1780 exit $exit_status 1781' 0 1782for ac_signal in 1 2 13 15; do 1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1784done 1785ac_signal=0 1786 1787# confdefs.h avoids OS command line length limits that DEFS can exceed. 1788rm -f -r conftest* confdefs.h 1789 1790# Predefined preprocessor variables. 1791 1792cat >>confdefs.h <<_ACEOF 1793#define PACKAGE_NAME "$PACKAGE_NAME" 1794_ACEOF 1795 1796 1797cat >>confdefs.h <<_ACEOF 1798#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1799_ACEOF 1800 1801 1802cat >>confdefs.h <<_ACEOF 1803#define PACKAGE_VERSION "$PACKAGE_VERSION" 1804_ACEOF 1805 1806 1807cat >>confdefs.h <<_ACEOF 1808#define PACKAGE_STRING "$PACKAGE_STRING" 1809_ACEOF 1810 1811 1812cat >>confdefs.h <<_ACEOF 1813#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1814_ACEOF 1815 1816 1817# Let the site file select an alternate cache file if it wants to. 1818# Prefer explicitly selected file to automatically selected ones. 1819if test -n "$CONFIG_SITE"; then 1820 set x "$CONFIG_SITE" 1821elif test "x$prefix" != xNONE; then 1822 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1823else 1824 set x "$ac_default_prefix/share/config.site" \ 1825 "$ac_default_prefix/etc/config.site" 1826fi 1827shift 1828for ac_site_file 1829do 1830 if test -r "$ac_site_file"; then 1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1832echo "$as_me: loading site script $ac_site_file" >&6;} 1833 sed 's/^/| /' "$ac_site_file" >&5 1834 . "$ac_site_file" 1835 fi 1836done 1837 1838if test -r "$cache_file"; then 1839 # Some versions of bash will fail to source /dev/null (special 1840 # files actually), so we avoid doing that. 1841 if test -f "$cache_file"; then 1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1843echo "$as_me: loading cache $cache_file" >&6;} 1844 case $cache_file in 1845 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1846 *) . "./$cache_file";; 1847 esac 1848 fi 1849else 1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1851echo "$as_me: creating cache $cache_file" >&6;} 1852 >$cache_file 1853fi 1854 1855# Check that the precious variables saved in the cache have kept the same 1856# value. 1857ac_cache_corrupted=false 1858for ac_var in $ac_precious_vars; do 1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1860 eval ac_new_set=\$ac_env_${ac_var}_set 1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1862 eval ac_new_val=\$ac_env_${ac_var}_value 1863 case $ac_old_set,$ac_new_set in 1864 set,) 1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1866echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1867 ac_cache_corrupted=: ;; 1868 ,set) 1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1870echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1871 ac_cache_corrupted=: ;; 1872 ,);; 1873 *) 1874 if test "x$ac_old_val" != "x$ac_new_val"; then 1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1876echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1878echo "$as_me: former value: $ac_old_val" >&2;} 1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1880echo "$as_me: current value: $ac_new_val" >&2;} 1881 ac_cache_corrupted=: 1882 fi;; 1883 esac 1884 # Pass precious variables to config.status. 1885 if test "$ac_new_set" = set; then 1886 case $ac_new_val in 1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1888 *) ac_arg=$ac_var=$ac_new_val ;; 1889 esac 1890 case " $ac_configure_args " in 1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1893 esac 1894 fi 1895done 1896if $ac_cache_corrupted; then 1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1898echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1900echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1901 { (exit 1); exit 1; }; } 1902fi 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928ac_ext=c 1929ac_cpp='$CPP $CPPFLAGS' 1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1932ac_compiler_gnu=$ac_cv_c_compiler_gnu 1933 1934 1935am__api_version='1.10' 1936 1937ac_aux_dir= 1938for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1939 if test -f "$ac_dir/install-sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install-sh -c" 1942 break 1943 elif test -f "$ac_dir/install.sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install.sh -c" 1946 break 1947 elif test -f "$ac_dir/shtool"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/shtool install -c" 1950 break 1951 fi 1952done 1953if test -z "$ac_aux_dir"; then 1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1955echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1956 { (exit 1); exit 1; }; } 1957fi 1958 1959# These three variables are undocumented and unsupported, 1960# and are intended to be withdrawn in a future Autoconf release. 1961# They can cause serious problems if a builder's source tree is in a directory 1962# whose full name contains unusual characters. 1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1966 1967 1968# Find a good install program. We prefer a C program (faster), 1969# so one script is as good as another. But avoid the broken or 1970# incompatible versions: 1971# SysV /etc/install, /usr/sbin/install 1972# SunOS /usr/etc/install 1973# IRIX /sbin/install 1974# AIX /bin/install 1975# AmigaOS /C/install, which installs bootblocks on floppy discs 1976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1977# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1979# OS/2's system install, which has a completely different semantic 1980# ./install, which can be erroneously created by make from ./install.sh. 1981{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1982echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1983if test -z "$INSTALL"; then 1984if test "${ac_cv_path_install+set}" = set; then 1985 echo $ECHO_N "(cached) $ECHO_C" >&6 1986else 1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1988for as_dir in $PATH 1989do 1990 IFS=$as_save_IFS 1991 test -z "$as_dir" && as_dir=. 1992 # Account for people who put trailing slashes in PATH elements. 1993case $as_dir/ in 1994 ./ | .// | /cC/* | \ 1995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1997 /usr/ucb/* ) ;; 1998 *) 1999 # OSF1 and SCO ODT 3.0 have their own names for install. 2000 # Don't use installbsd from OSF since it installs stuff as root 2001 # by default. 2002 for ac_prog in ginstall scoinst install; do 2003 for ac_exec_ext in '' $ac_executable_extensions; do 2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2005 if test $ac_prog = install && 2006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2007 # AIX install. It has an incompatible calling convention. 2008 : 2009 elif test $ac_prog = install && 2010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2011 # program-specific install script used by HP pwplus--don't use. 2012 : 2013 else 2014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2015 break 3 2016 fi 2017 fi 2018 done 2019 done 2020 ;; 2021esac 2022done 2023IFS=$as_save_IFS 2024 2025 2026fi 2027 if test "${ac_cv_path_install+set}" = set; then 2028 INSTALL=$ac_cv_path_install 2029 else 2030 # As a last resort, use the slow shell script. Don't cache a 2031 # value for INSTALL within a source directory, because that will 2032 # break other packages using the cache if that directory is 2033 # removed, or if the value is a relative name. 2034 INSTALL=$ac_install_sh 2035 fi 2036fi 2037{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2038echo "${ECHO_T}$INSTALL" >&6; } 2039 2040# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2041# It thinks the first close brace ends the variable substitution. 2042test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2043 2044test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2045 2046test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2047 2048{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2049echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2050# Just in case 2051sleep 1 2052echo timestamp > conftest.file 2053# Do `set' in a subshell so we don't clobber the current shell's 2054# arguments. Must try -L first in case configure is actually a 2055# symlink; some systems play weird games with the mod time of symlinks 2056# (eg FreeBSD returns the mod time of the symlink's containing 2057# directory). 2058if ( 2059 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2060 if test "$*" = "X"; then 2061 # -L didn't work. 2062 set X `ls -t $srcdir/configure conftest.file` 2063 fi 2064 rm -f conftest.file 2065 if test "$*" != "X $srcdir/configure conftest.file" \ 2066 && test "$*" != "X conftest.file $srcdir/configure"; then 2067 2068 # If neither matched, then we have a broken ls. This can happen 2069 # if, for instance, CONFIG_SHELL is bash and it inherits a 2070 # broken ls alias from the environment. This has actually 2071 # happened. Such a system could not be considered "sane". 2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2073alias in your environment" >&5 2074echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2075alias in your environment" >&2;} 2076 { (exit 1); exit 1; }; } 2077 fi 2078 2079 test "$2" = conftest.file 2080 ) 2081then 2082 # Ok. 2083 : 2084else 2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2086Check your system clock" >&5 2087echo "$as_me: error: newly created file is older than distributed files! 2088Check your system clock" >&2;} 2089 { (exit 1); exit 1; }; } 2090fi 2091{ echo "$as_me:$LINENO: result: yes" >&5 2092echo "${ECHO_T}yes" >&6; } 2093test "$program_prefix" != NONE && 2094 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2095# Use a double $ so make ignores it. 2096test "$program_suffix" != NONE && 2097 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2098# Double any \ or $. echo might interpret backslashes. 2099# By default was `s,x,x', remove it if useless. 2100cat <<\_ACEOF >conftest.sed 2101s/[\\$]/&&/g;s/;s,x,x,$// 2102_ACEOF 2103program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2104rm -f conftest.sed 2105 2106# expand $ac_aux_dir to an absolute path 2107am_aux_dir=`cd $ac_aux_dir && pwd` 2108 2109test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2110# Use eval to expand $SHELL 2111if eval "$MISSING --run true"; then 2112 am_missing_run="$MISSING --run " 2113else 2114 am_missing_run= 2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2116echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2117fi 2118 2119{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2120echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2121if test -z "$MKDIR_P"; then 2122 if test "${ac_cv_path_mkdir+set}" = set; then 2123 echo $ECHO_N "(cached) $ECHO_C" >&6 2124else 2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2126for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2127do 2128 IFS=$as_save_IFS 2129 test -z "$as_dir" && as_dir=. 2130 for ac_prog in mkdir gmkdir; do 2131 for ac_exec_ext in '' $ac_executable_extensions; do 2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2134 'mkdir (GNU coreutils) '* | \ 2135 'mkdir (coreutils) '* | \ 2136 'mkdir (fileutils) '4.1*) 2137 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2138 break 3;; 2139 esac 2140 done 2141 done 2142done 2143IFS=$as_save_IFS 2144 2145fi 2146 2147 if test "${ac_cv_path_mkdir+set}" = set; then 2148 MKDIR_P="$ac_cv_path_mkdir -p" 2149 else 2150 # As a last resort, use the slow shell script. Don't cache a 2151 # value for MKDIR_P within a source directory, because that will 2152 # break other packages using the cache if that directory is 2153 # removed, or if the value is a relative name. 2154 test -d ./--version && rmdir ./--version 2155 MKDIR_P="$ac_install_sh -d" 2156 fi 2157fi 2158{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2159echo "${ECHO_T}$MKDIR_P" >&6; } 2160 2161mkdir_p="$MKDIR_P" 2162case $mkdir_p in 2163 [\\/$]* | ?:[\\/]*) ;; 2164 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2165esac 2166 2167for ac_prog in gawk mawk nawk awk 2168do 2169 # Extract the first word of "$ac_prog", so it can be a program name with args. 2170set dummy $ac_prog; ac_word=$2 2171{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2173if test "${ac_cv_prog_AWK+set}" = set; then 2174 echo $ECHO_N "(cached) $ECHO_C" >&6 2175else 2176 if test -n "$AWK"; then 2177 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2178else 2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2180for as_dir in $PATH 2181do 2182 IFS=$as_save_IFS 2183 test -z "$as_dir" && as_dir=. 2184 for ac_exec_ext in '' $ac_executable_extensions; do 2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2186 ac_cv_prog_AWK="$ac_prog" 2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2188 break 2 2189 fi 2190done 2191done 2192IFS=$as_save_IFS 2193 2194fi 2195fi 2196AWK=$ac_cv_prog_AWK 2197if test -n "$AWK"; then 2198 { echo "$as_me:$LINENO: result: $AWK" >&5 2199echo "${ECHO_T}$AWK" >&6; } 2200else 2201 { echo "$as_me:$LINENO: result: no" >&5 2202echo "${ECHO_T}no" >&6; } 2203fi 2204 2205 2206 test -n "$AWK" && break 2207done 2208 2209{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2210echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2211set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2212if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2213 echo $ECHO_N "(cached) $ECHO_C" >&6 2214else 2215 cat >conftest.make <<\_ACEOF 2216SHELL = /bin/sh 2217all: 2218 @echo '@@@%%%=$(MAKE)=@@@%%%' 2219_ACEOF 2220# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2221case `${MAKE-make} -f conftest.make 2>/dev/null` in 2222 *@@@%%%=?*=@@@%%%*) 2223 eval ac_cv_prog_make_${ac_make}_set=yes;; 2224 *) 2225 eval ac_cv_prog_make_${ac_make}_set=no;; 2226esac 2227rm -f conftest.make 2228fi 2229if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2230 { echo "$as_me:$LINENO: result: yes" >&5 2231echo "${ECHO_T}yes" >&6; } 2232 SET_MAKE= 2233else 2234 { echo "$as_me:$LINENO: result: no" >&5 2235echo "${ECHO_T}no" >&6; } 2236 SET_MAKE="MAKE=${MAKE-make}" 2237fi 2238 2239rm -rf .tst 2>/dev/null 2240mkdir .tst 2>/dev/null 2241if test -d .tst; then 2242 am__leading_dot=. 2243else 2244 am__leading_dot=_ 2245fi 2246rmdir .tst 2>/dev/null 2247 2248if test "`cd $srcdir && pwd`" != "`pwd`"; then 2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2250 # is not polluted with repeated "-I." 2251 am__isrc=' -I$(srcdir)' 2252 # test to see if srcdir already configured 2253 if test -f $srcdir/config.status; then 2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2255echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2256 { (exit 1); exit 1; }; } 2257 fi 2258fi 2259 2260# test whether we have cygpath 2261if test -z "$CYGPATH_W"; then 2262 if (cygpath --version) >/dev/null 2>/dev/null; then 2263 CYGPATH_W='cygpath -w' 2264 else 2265 CYGPATH_W=echo 2266 fi 2267fi 2268 2269 2270# Define the identity of the package. 2271 PACKAGE='libusb-compat' 2272 VERSION='0.1.3' 2273 2274 2275cat >>confdefs.h <<_ACEOF 2276#define PACKAGE "$PACKAGE" 2277_ACEOF 2278 2279 2280cat >>confdefs.h <<_ACEOF 2281#define VERSION "$VERSION" 2282_ACEOF 2283 2284# Some tools Automake needs. 2285 2286ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2287 2288 2289AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2290 2291 2292AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2293 2294 2295AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2296 2297 2298MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2299 2300install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2301 2302# Installed binaries are usually stripped using `strip' when the user 2303# run `make install-strip'. However `strip' might not be the right 2304# tool to use in cross-compilation environments, therefore Automake 2305# will honor the `STRIP' environment variable to overrule this program. 2306if test "$cross_compiling" != no; then 2307 if test -n "$ac_tool_prefix"; then 2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2309set dummy ${ac_tool_prefix}strip; ac_word=$2 2310{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2312if test "${ac_cv_prog_STRIP+set}" = set; then 2313 echo $ECHO_N "(cached) $ECHO_C" >&6 2314else 2315 if test -n "$STRIP"; then 2316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2317else 2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2319for as_dir in $PATH 2320do 2321 IFS=$as_save_IFS 2322 test -z "$as_dir" && as_dir=. 2323 for ac_exec_ext in '' $ac_executable_extensions; do 2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2327 break 2 2328 fi 2329done 2330done 2331IFS=$as_save_IFS 2332 2333fi 2334fi 2335STRIP=$ac_cv_prog_STRIP 2336if test -n "$STRIP"; then 2337 { echo "$as_me:$LINENO: result: $STRIP" >&5 2338echo "${ECHO_T}$STRIP" >&6; } 2339else 2340 { echo "$as_me:$LINENO: result: no" >&5 2341echo "${ECHO_T}no" >&6; } 2342fi 2343 2344 2345fi 2346if test -z "$ac_cv_prog_STRIP"; then 2347 ac_ct_STRIP=$STRIP 2348 # Extract the first word of "strip", so it can be a program name with args. 2349set dummy strip; ac_word=$2 2350{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2353 echo $ECHO_N "(cached) $ECHO_C" >&6 2354else 2355 if test -n "$ac_ct_STRIP"; then 2356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2357else 2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359for as_dir in $PATH 2360do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 for ac_exec_ext in '' $ac_executable_extensions; do 2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2365 ac_cv_prog_ac_ct_STRIP="strip" 2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2367 break 2 2368 fi 2369done 2370done 2371IFS=$as_save_IFS 2372 2373fi 2374fi 2375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2376if test -n "$ac_ct_STRIP"; then 2377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2378echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2379else 2380 { echo "$as_me:$LINENO: result: no" >&5 2381echo "${ECHO_T}no" >&6; } 2382fi 2383 2384 if test "x$ac_ct_STRIP" = x; then 2385 STRIP=":" 2386 else 2387 case $cross_compiling:$ac_tool_warned in 2388yes:) 2389{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2390whose name does not start with the host triplet. If you think this 2391configuration is useful to you, please write to autoconf@gnu.org." >&5 2392echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2393whose name does not start with the host triplet. If you think this 2394configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2395ac_tool_warned=yes ;; 2396esac 2397 STRIP=$ac_ct_STRIP 2398 fi 2399else 2400 STRIP="$ac_cv_prog_STRIP" 2401fi 2402 2403fi 2404INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2405 2406# We need awk for the "check" target. The system "awk" is bad on 2407# some platforms. 2408# Always define AMTAR for backward compatibility. 2409 2410AMTAR=${AMTAR-"${am_missing_run}tar"} 2411 2412am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2413 2414 2415 2416 2417 2418 2419ac_config_headers="$ac_config_headers config.h" 2420 2421 2422 2423 2424ac_ext=c 2425ac_cpp='$CPP $CPPFLAGS' 2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2428ac_compiler_gnu=$ac_cv_c_compiler_gnu 2429if test -n "$ac_tool_prefix"; then 2430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2431set dummy ${ac_tool_prefix}gcc; ac_word=$2 2432{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2434if test "${ac_cv_prog_CC+set}" = set; then 2435 echo $ECHO_N "(cached) $ECHO_C" >&6 2436else 2437 if test -n "$CC"; then 2438 ac_cv_prog_CC="$CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2447 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457CC=$ac_cv_prog_CC 2458if test -n "$CC"; then 2459 { echo "$as_me:$LINENO: result: $CC" >&5 2460echo "${ECHO_T}$CC" >&6; } 2461else 2462 { echo "$as_me:$LINENO: result: no" >&5 2463echo "${ECHO_T}no" >&6; } 2464fi 2465 2466 2467fi 2468if test -z "$ac_cv_prog_CC"; then 2469 ac_ct_CC=$CC 2470 # Extract the first word of "gcc", so it can be a program name with args. 2471set dummy gcc; ac_word=$2 2472{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2475 echo $ECHO_N "(cached) $ECHO_C" >&6 2476else 2477 if test -n "$ac_ct_CC"; then 2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2479else 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 for ac_exec_ext in '' $ac_executable_extensions; do 2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2487 ac_cv_prog_ac_ct_CC="gcc" 2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2489 break 2 2490 fi 2491done 2492done 2493IFS=$as_save_IFS 2494 2495fi 2496fi 2497ac_ct_CC=$ac_cv_prog_ac_ct_CC 2498if test -n "$ac_ct_CC"; then 2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2500echo "${ECHO_T}$ac_ct_CC" >&6; } 2501else 2502 { echo "$as_me:$LINENO: result: no" >&5 2503echo "${ECHO_T}no" >&6; } 2504fi 2505 2506 if test "x$ac_ct_CC" = x; then 2507 CC="" 2508 else 2509 case $cross_compiling:$ac_tool_warned in 2510yes:) 2511{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2512whose name does not start with the host triplet. If you think this 2513configuration is useful to you, please write to autoconf@gnu.org." >&5 2514echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2515whose name does not start with the host triplet. If you think this 2516configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2517ac_tool_warned=yes ;; 2518esac 2519 CC=$ac_ct_CC 2520 fi 2521else 2522 CC="$ac_cv_prog_CC" 2523fi 2524 2525if test -z "$CC"; then 2526 if test -n "$ac_tool_prefix"; then 2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2528set dummy ${ac_tool_prefix}cc; ac_word=$2 2529{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2531if test "${ac_cv_prog_CC+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 if test -n "$CC"; then 2535 ac_cv_prog_CC="$CC" # Let the user override the test. 2536else 2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH 2539do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 for ac_exec_ext in '' $ac_executable_extensions; do 2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2544 ac_cv_prog_CC="${ac_tool_prefix}cc" 2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2546 break 2 2547 fi 2548done 2549done 2550IFS=$as_save_IFS 2551 2552fi 2553fi 2554CC=$ac_cv_prog_CC 2555if test -n "$CC"; then 2556 { echo "$as_me:$LINENO: result: $CC" >&5 2557echo "${ECHO_T}$CC" >&6; } 2558else 2559 { echo "$as_me:$LINENO: result: no" >&5 2560echo "${ECHO_T}no" >&6; } 2561fi 2562 2563 2564 fi 2565fi 2566if test -z "$CC"; then 2567 # Extract the first word of "cc", so it can be a program name with args. 2568set dummy cc; ac_word=$2 2569{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2571if test "${ac_cv_prog_CC+set}" = set; then 2572 echo $ECHO_N "(cached) $ECHO_C" >&6 2573else 2574 if test -n "$CC"; then 2575 ac_cv_prog_CC="$CC" # Let the user override the test. 2576else 2577 ac_prog_rejected=no 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2586 ac_prog_rejected=yes 2587 continue 2588 fi 2589 ac_cv_prog_CC="cc" 2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2591 break 2 2592 fi 2593done 2594done 2595IFS=$as_save_IFS 2596 2597if test $ac_prog_rejected = yes; then 2598 # We found a bogon in the path, so make sure we never use it. 2599 set dummy $ac_cv_prog_CC 2600 shift 2601 if test $# != 0; then 2602 # We chose a different compiler from the bogus one. 2603 # However, it has the same basename, so the bogon will be chosen 2604 # first if we set CC to just the basename; use the full file name. 2605 shift 2606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2607 fi 2608fi 2609fi 2610fi 2611CC=$ac_cv_prog_CC 2612if test -n "$CC"; then 2613 { echo "$as_me:$LINENO: result: $CC" >&5 2614echo "${ECHO_T}$CC" >&6; } 2615else 2616 { echo "$as_me:$LINENO: result: no" >&5 2617echo "${ECHO_T}no" >&6; } 2618fi 2619 2620 2621fi 2622if test -z "$CC"; then 2623 if test -n "$ac_tool_prefix"; then 2624 for ac_prog in cl.exe 2625 do 2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2627set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2628{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2630if test "${ac_cv_prog_CC+set}" = set; then 2631 echo $ECHO_N "(cached) $ECHO_C" >&6 2632else 2633 if test -n "$CC"; then 2634 ac_cv_prog_CC="$CC" # Let the user override the test. 2635else 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647done 2648done 2649IFS=$as_save_IFS 2650 2651fi 2652fi 2653CC=$ac_cv_prog_CC 2654if test -n "$CC"; then 2655 { echo "$as_me:$LINENO: result: $CC" >&5 2656echo "${ECHO_T}$CC" >&6; } 2657else 2658 { echo "$as_me:$LINENO: result: no" >&5 2659echo "${ECHO_T}no" >&6; } 2660fi 2661 2662 2663 test -n "$CC" && break 2664 done 2665fi 2666if test -z "$CC"; then 2667 ac_ct_CC=$CC 2668 for ac_prog in cl.exe 2669do 2670 # Extract the first word of "$ac_prog", so it can be a program name with args. 2671set dummy $ac_prog; ac_word=$2 2672{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2675 echo $ECHO_N "(cached) $ECHO_C" >&6 2676else 2677 if test -n "$ac_ct_CC"; then 2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2679else 2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2681for as_dir in $PATH 2682do 2683 IFS=$as_save_IFS 2684 test -z "$as_dir" && as_dir=. 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2687 ac_cv_prog_ac_ct_CC="$ac_prog" 2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2689 break 2 2690 fi 2691done 2692done 2693IFS=$as_save_IFS 2694 2695fi 2696fi 2697ac_ct_CC=$ac_cv_prog_ac_ct_CC 2698if test -n "$ac_ct_CC"; then 2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2700echo "${ECHO_T}$ac_ct_CC" >&6; } 2701else 2702 { echo "$as_me:$LINENO: result: no" >&5 2703echo "${ECHO_T}no" >&6; } 2704fi 2705 2706 2707 test -n "$ac_ct_CC" && break 2708done 2709 2710 if test "x$ac_ct_CC" = x; then 2711 CC="" 2712 else 2713 case $cross_compiling:$ac_tool_warned in 2714yes:) 2715{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2716whose name does not start with the host triplet. If you think this 2717configuration is useful to you, please write to autoconf@gnu.org." >&5 2718echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2719whose name does not start with the host triplet. If you think this 2720configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2721ac_tool_warned=yes ;; 2722esac 2723 CC=$ac_ct_CC 2724 fi 2725fi 2726 2727fi 2728 2729 2730test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2731See \`config.log' for more details." >&5 2732echo "$as_me: error: no acceptable C compiler found in \$PATH 2733See \`config.log' for more details." >&2;} 2734 { (exit 1); exit 1; }; } 2735 2736# Provide some information about the compiler. 2737echo "$as_me:$LINENO: checking for C compiler version" >&5 2738ac_compiler=`set X $ac_compile; echo $2` 2739{ (ac_try="$ac_compiler --version >&5" 2740case "(($ac_try" in 2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2742 *) ac_try_echo=$ac_try;; 2743esac 2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2745 (eval "$ac_compiler --version >&5") 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); } 2749{ (ac_try="$ac_compiler -v >&5" 2750case "(($ac_try" in 2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2752 *) ac_try_echo=$ac_try;; 2753esac 2754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2755 (eval "$ac_compiler -v >&5") 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } 2759{ (ac_try="$ac_compiler -V >&5" 2760case "(($ac_try" in 2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2762 *) ac_try_echo=$ac_try;; 2763esac 2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2765 (eval "$ac_compiler -V >&5") 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); } 2769 2770cat >conftest.$ac_ext <<_ACEOF 2771/* confdefs.h. */ 2772_ACEOF 2773cat confdefs.h >>conftest.$ac_ext 2774cat >>conftest.$ac_ext <<_ACEOF 2775/* end confdefs.h. */ 2776 2777int 2778main () 2779{ 2780 2781 ; 2782 return 0; 2783} 2784_ACEOF 2785ac_clean_files_save=$ac_clean_files 2786ac_clean_files="$ac_clean_files a.out a.exe b.out" 2787# Try to create an executable without -o first, disregard a.out. 2788# It will help us diagnose broken compilers, and finding out an intuition 2789# of exeext. 2790{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2791echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2792ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2793# 2794# List of possible output files, starting from the most likely. 2795# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2796# only as a last resort. b.out is created by i960 compilers. 2797ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2798# 2799# The IRIX 6 linker writes into existing files which may not be 2800# executable, retaining their permissions. Remove them first so a 2801# subsequent execution test works. 2802ac_rmfiles= 2803for ac_file in $ac_files 2804do 2805 case $ac_file in 2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2808 esac 2809done 2810rm -f $ac_rmfiles 2811 2812if { (ac_try="$ac_link_default" 2813case "(($ac_try" in 2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2815 *) ac_try_echo=$ac_try;; 2816esac 2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2818 (eval "$ac_link_default") 2>&5 2819 ac_status=$? 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); }; then 2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2823# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2824# in a Makefile. We should not override ac_cv_exeext if it was cached, 2825# so that the user can short-circuit this test for compilers unknown to 2826# Autoconf. 2827for ac_file in $ac_files '' 2828do 2829 test -f "$ac_file" || continue 2830 case $ac_file in 2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2832 ;; 2833 [ab].out ) 2834 # We found the default executable, but exeext='' is most 2835 # certainly right. 2836 break;; 2837 *.* ) 2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2839 then :; else 2840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2841 fi 2842 # We set ac_cv_exeext here because the later test for it is not 2843 # safe: cross compilers may not add the suffix if given an `-o' 2844 # argument, so we may need to know it at that point already. 2845 # Even if this section looks crufty: it has the advantage of 2846 # actually working. 2847 break;; 2848 * ) 2849 break;; 2850 esac 2851done 2852test "$ac_cv_exeext" = no && ac_cv_exeext= 2853 2854else 2855 ac_file='' 2856fi 2857 2858{ echo "$as_me:$LINENO: result: $ac_file" >&5 2859echo "${ECHO_T}$ac_file" >&6; } 2860if test -z "$ac_file"; then 2861 echo "$as_me: failed program was:" >&5 2862sed 's/^/| /' conftest.$ac_ext >&5 2863 2864{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2865See \`config.log' for more details." >&5 2866echo "$as_me: error: C compiler cannot create executables 2867See \`config.log' for more details." >&2;} 2868 { (exit 77); exit 77; }; } 2869fi 2870 2871ac_exeext=$ac_cv_exeext 2872 2873# Check that the compiler produces executables we can run. If not, either 2874# the compiler is broken, or we cross compile. 2875{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2876echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2877# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2878# If not cross compiling, check that we can run a simple program. 2879if test "$cross_compiling" != yes; then 2880 if { ac_try='./$ac_file' 2881 { (case "(($ac_try" in 2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2883 *) ac_try_echo=$ac_try;; 2884esac 2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2886 (eval "$ac_try") 2>&5 2887 ac_status=$? 2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); }; }; then 2890 cross_compiling=no 2891 else 2892 if test "$cross_compiling" = maybe; then 2893 cross_compiling=yes 2894 else 2895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2896If you meant to cross compile, use \`--host'. 2897See \`config.log' for more details." >&5 2898echo "$as_me: error: cannot run C compiled programs. 2899If you meant to cross compile, use \`--host'. 2900See \`config.log' for more details." >&2;} 2901 { (exit 1); exit 1; }; } 2902 fi 2903 fi 2904fi 2905{ echo "$as_me:$LINENO: result: yes" >&5 2906echo "${ECHO_T}yes" >&6; } 2907 2908rm -f a.out a.exe conftest$ac_cv_exeext b.out 2909ac_clean_files=$ac_clean_files_save 2910# Check that the compiler produces executables we can run. If not, either 2911# the compiler is broken, or we cross compile. 2912{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2913echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2914{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2915echo "${ECHO_T}$cross_compiling" >&6; } 2916 2917{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2918echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2919if { (ac_try="$ac_link" 2920case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_link") 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); }; then 2929 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2930# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2931# work properly (i.e., refer to `conftest.exe'), while it won't with 2932# `rm'. 2933for ac_file in conftest.exe conftest conftest.*; do 2934 test -f "$ac_file" || continue 2935 case $ac_file in 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2938 break;; 2939 * ) break;; 2940 esac 2941done 2942else 2943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2944See \`config.log' for more details." >&5 2945echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2946See \`config.log' for more details." >&2;} 2947 { (exit 1); exit 1; }; } 2948fi 2949 2950rm -f conftest$ac_cv_exeext 2951{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2952echo "${ECHO_T}$ac_cv_exeext" >&6; } 2953 2954rm -f conftest.$ac_ext 2955EXEEXT=$ac_cv_exeext 2956ac_exeext=$EXEEXT 2957{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2958echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2959if test "${ac_cv_objext+set}" = set; then 2960 echo $ECHO_N "(cached) $ECHO_C" >&6 2961else 2962 cat >conftest.$ac_ext <<_ACEOF 2963/* confdefs.h. */ 2964_ACEOF 2965cat confdefs.h >>conftest.$ac_ext 2966cat >>conftest.$ac_ext <<_ACEOF 2967/* end confdefs.h. */ 2968 2969int 2970main () 2971{ 2972 2973 ; 2974 return 0; 2975} 2976_ACEOF 2977rm -f conftest.o conftest.obj 2978if { (ac_try="$ac_compile" 2979case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2984 (eval "$ac_compile") 2>&5 2985 ac_status=$? 2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2987 (exit $ac_status); }; then 2988 for ac_file in conftest.o conftest.obj conftest.*; do 2989 test -f "$ac_file" || continue; 2990 case $ac_file in 2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2993 break;; 2994 esac 2995done 2996else 2997 echo "$as_me: failed program was:" >&5 2998sed 's/^/| /' conftest.$ac_ext >&5 2999 3000{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3001See \`config.log' for more details." >&5 3002echo "$as_me: error: cannot compute suffix of object files: cannot compile 3003See \`config.log' for more details." >&2;} 3004 { (exit 1); exit 1; }; } 3005fi 3006 3007rm -f conftest.$ac_cv_objext conftest.$ac_ext 3008fi 3009{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3010echo "${ECHO_T}$ac_cv_objext" >&6; } 3011OBJEXT=$ac_cv_objext 3012ac_objext=$OBJEXT 3013{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3014echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3015if test "${ac_cv_c_compiler_gnu+set}" = set; then 3016 echo $ECHO_N "(cached) $ECHO_C" >&6 3017else 3018 cat >conftest.$ac_ext <<_ACEOF 3019/* confdefs.h. */ 3020_ACEOF 3021cat confdefs.h >>conftest.$ac_ext 3022cat >>conftest.$ac_ext <<_ACEOF 3023/* end confdefs.h. */ 3024 3025int 3026main () 3027{ 3028#ifndef __GNUC__ 3029 choke me 3030#endif 3031 3032 ; 3033 return 0; 3034} 3035_ACEOF 3036rm -f conftest.$ac_objext 3037if { (ac_try="$ac_compile" 3038case "(($ac_try" in 3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3040 *) ac_try_echo=$ac_try;; 3041esac 3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3043 (eval "$ac_compile") 2>conftest.er1 3044 ac_status=$? 3045 grep -v '^ *+' conftest.er1 >conftest.err 3046 rm -f conftest.er1 3047 cat conftest.err >&5 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); } && { 3050 test -z "$ac_c_werror_flag" || 3051 test ! -s conftest.err 3052 } && test -s conftest.$ac_objext; then 3053 ac_compiler_gnu=yes 3054else 3055 echo "$as_me: failed program was:" >&5 3056sed 's/^/| /' conftest.$ac_ext >&5 3057 3058 ac_compiler_gnu=no 3059fi 3060 3061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3062ac_cv_c_compiler_gnu=$ac_compiler_gnu 3063 3064fi 3065{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3066echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3067GCC=`test $ac_compiler_gnu = yes && echo yes` 3068ac_test_CFLAGS=${CFLAGS+set} 3069ac_save_CFLAGS=$CFLAGS 3070{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3072if test "${ac_cv_prog_cc_g+set}" = set; then 3073 echo $ECHO_N "(cached) $ECHO_C" >&6 3074else 3075 ac_save_c_werror_flag=$ac_c_werror_flag 3076 ac_c_werror_flag=yes 3077 ac_cv_prog_cc_g=no 3078 CFLAGS="-g" 3079 cat >conftest.$ac_ext <<_ACEOF 3080/* confdefs.h. */ 3081_ACEOF 3082cat confdefs.h >>conftest.$ac_ext 3083cat >>conftest.$ac_ext <<_ACEOF 3084/* end confdefs.h. */ 3085 3086int 3087main () 3088{ 3089 3090 ; 3091 return 0; 3092} 3093_ACEOF 3094rm -f conftest.$ac_objext 3095if { (ac_try="$ac_compile" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3101 (eval "$ac_compile") 2>conftest.er1 3102 ac_status=$? 3103 grep -v '^ *+' conftest.er1 >conftest.err 3104 rm -f conftest.er1 3105 cat conftest.err >&5 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); } && { 3108 test -z "$ac_c_werror_flag" || 3109 test ! -s conftest.err 3110 } && test -s conftest.$ac_objext; then 3111 ac_cv_prog_cc_g=yes 3112else 3113 echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116 CFLAGS="" 3117 cat >conftest.$ac_ext <<_ACEOF 3118/* confdefs.h. */ 3119_ACEOF 3120cat confdefs.h >>conftest.$ac_ext 3121cat >>conftest.$ac_ext <<_ACEOF 3122/* end confdefs.h. */ 3123 3124int 3125main () 3126{ 3127 3128 ; 3129 return 0; 3130} 3131_ACEOF 3132rm -f conftest.$ac_objext 3133if { (ac_try="$ac_compile" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3139 (eval "$ac_compile") 2>conftest.er1 3140 ac_status=$? 3141 grep -v '^ *+' conftest.er1 >conftest.err 3142 rm -f conftest.er1 3143 cat conftest.err >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); } && { 3146 test -z "$ac_c_werror_flag" || 3147 test ! -s conftest.err 3148 } && test -s conftest.$ac_objext; then 3149 : 3150else 3151 echo "$as_me: failed program was:" >&5 3152sed 's/^/| /' conftest.$ac_ext >&5 3153 3154 ac_c_werror_flag=$ac_save_c_werror_flag 3155 CFLAGS="-g" 3156 cat >conftest.$ac_ext <<_ACEOF 3157/* confdefs.h. */ 3158_ACEOF 3159cat confdefs.h >>conftest.$ac_ext 3160cat >>conftest.$ac_ext <<_ACEOF 3161/* end confdefs.h. */ 3162 3163int 3164main () 3165{ 3166 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171rm -f conftest.$ac_objext 3172if { (ac_try="$ac_compile" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_compile") 2>conftest.er1 3179 ac_status=$? 3180 grep -v '^ *+' conftest.er1 >conftest.err 3181 rm -f conftest.er1 3182 cat conftest.err >&5 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } && { 3185 test -z "$ac_c_werror_flag" || 3186 test ! -s conftest.err 3187 } && test -s conftest.$ac_objext; then 3188 ac_cv_prog_cc_g=yes 3189else 3190 echo "$as_me: failed program was:" >&5 3191sed 's/^/| /' conftest.$ac_ext >&5 3192 3193 3194fi 3195 3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3197fi 3198 3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3200fi 3201 3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3203 ac_c_werror_flag=$ac_save_c_werror_flag 3204fi 3205{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3206echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3207if test "$ac_test_CFLAGS" = set; then 3208 CFLAGS=$ac_save_CFLAGS 3209elif test $ac_cv_prog_cc_g = yes; then 3210 if test "$GCC" = yes; then 3211 CFLAGS="-g -O2" 3212 else 3213 CFLAGS="-g" 3214 fi 3215else 3216 if test "$GCC" = yes; then 3217 CFLAGS="-O2" 3218 else 3219 CFLAGS= 3220 fi 3221fi 3222{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3223echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3224if test "${ac_cv_prog_cc_c89+set}" = set; then 3225 echo $ECHO_N "(cached) $ECHO_C" >&6 3226else 3227 ac_cv_prog_cc_c89=no 3228ac_save_CC=$CC 3229cat >conftest.$ac_ext <<_ACEOF 3230/* confdefs.h. */ 3231_ACEOF 3232cat confdefs.h >>conftest.$ac_ext 3233cat >>conftest.$ac_ext <<_ACEOF 3234/* end confdefs.h. */ 3235#include <stdarg.h> 3236#include <stdio.h> 3237#include <sys/types.h> 3238#include <sys/stat.h> 3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3240struct buf { int x; }; 3241FILE * (*rcsopen) (struct buf *, struct stat *, int); 3242static char *e (p, i) 3243 char **p; 3244 int i; 3245{ 3246 return p[i]; 3247} 3248static char *f (char * (*g) (char **, int), char **p, ...) 3249{ 3250 char *s; 3251 va_list v; 3252 va_start (v,p); 3253 s = g (p, va_arg (v,int)); 3254 va_end (v); 3255 return s; 3256} 3257 3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3259 function prototypes and stuff, but not '\xHH' hex character constants. 3260 These don't provoke an error unfortunately, instead are silently treated 3261 as 'x'. The following induces an error, until -std is added to get 3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3263 array size at least. It's necessary to write '\x00'==0 to get something 3264 that's true only with -std. */ 3265int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3266 3267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3268 inside strings and character constants. */ 3269#define FOO(x) 'x' 3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3271 3272int test (int i, double x); 3273struct s1 {int (*f) (int a);}; 3274struct s2 {int (*f) (double a);}; 3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3276int argc; 3277char **argv; 3278int 3279main () 3280{ 3281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3282 ; 3283 return 0; 3284} 3285_ACEOF 3286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3288do 3289 CC="$ac_save_CC $ac_arg" 3290 rm -f conftest.$ac_objext 3291if { (ac_try="$ac_compile" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_compile") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } && { 3304 test -z "$ac_c_werror_flag" || 3305 test ! -s conftest.err 3306 } && test -s conftest.$ac_objext; then 3307 ac_cv_prog_cc_c89=$ac_arg 3308else 3309 echo "$as_me: failed program was:" >&5 3310sed 's/^/| /' conftest.$ac_ext >&5 3311 3312 3313fi 3314 3315rm -f core conftest.err conftest.$ac_objext 3316 test "x$ac_cv_prog_cc_c89" != "xno" && break 3317done 3318rm -f conftest.$ac_ext 3319CC=$ac_save_CC 3320 3321fi 3322# AC_CACHE_VAL 3323case "x$ac_cv_prog_cc_c89" in 3324 x) 3325 { echo "$as_me:$LINENO: result: none needed" >&5 3326echo "${ECHO_T}none needed" >&6; } ;; 3327 xno) 3328 { echo "$as_me:$LINENO: result: unsupported" >&5 3329echo "${ECHO_T}unsupported" >&6; } ;; 3330 *) 3331 CC="$CC $ac_cv_prog_cc_c89" 3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3333echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3334esac 3335 3336 3337ac_ext=c 3338ac_cpp='$CPP $CPPFLAGS' 3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3341ac_compiler_gnu=$ac_cv_c_compiler_gnu 3342DEPDIR="${am__leading_dot}deps" 3343 3344ac_config_commands="$ac_config_commands depfiles" 3345 3346 3347am_make=${MAKE-make} 3348cat > confinc << 'END' 3349am__doit: 3350 @echo done 3351.PHONY: am__doit 3352END 3353# If we don't find an include directive, just comment out the code. 3354{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3355echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3356am__include="#" 3357am__quote= 3358_am_result=none 3359# First try GNU make style include. 3360echo "include confinc" > confmf 3361# We grep out `Entering directory' and `Leaving directory' 3362# messages which can occur if `w' ends up in MAKEFLAGS. 3363# In particular we don't look at `^make:' because GNU make might 3364# be invoked under some other name (usually "gmake"), in which 3365# case it prints its new name instead of `make'. 3366if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3367 am__include=include 3368 am__quote= 3369 _am_result=GNU 3370fi 3371# Now try BSD make style include. 3372if test "$am__include" = "#"; then 3373 echo '.include "confinc"' > confmf 3374 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3375 am__include=.include 3376 am__quote="\"" 3377 _am_result=BSD 3378 fi 3379fi 3380 3381 3382{ echo "$as_me:$LINENO: result: $_am_result" >&5 3383echo "${ECHO_T}$_am_result" >&6; } 3384rm -f confinc confmf 3385 3386# Check whether --enable-dependency-tracking was given. 3387if test "${enable_dependency_tracking+set}" = set; then 3388 enableval=$enable_dependency_tracking; 3389fi 3390 3391if test "x$enable_dependency_tracking" != xno; then 3392 am_depcomp="$ac_aux_dir/depcomp" 3393 AMDEPBACKSLASH='\' 3394fi 3395 if test "x$enable_dependency_tracking" != xno; then 3396 AMDEP_TRUE= 3397 AMDEP_FALSE='#' 3398else 3399 AMDEP_TRUE='#' 3400 AMDEP_FALSE= 3401fi 3402 3403 3404 3405depcc="$CC" am_compiler_list= 3406 3407{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3408echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3409if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3410 echo $ECHO_N "(cached) $ECHO_C" >&6 3411else 3412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3413 # We make a subdir and do the tests there. Otherwise we can end up 3414 # making bogus files that we don't know about and never remove. For 3415 # instance it was reported that on HP-UX the gcc test will end up 3416 # making a dummy file named `D' -- because `-MD' means `put the output 3417 # in D'. 3418 mkdir conftest.dir 3419 # Copy depcomp to subdir because otherwise we won't find it if we're 3420 # using a relative directory. 3421 cp "$am_depcomp" conftest.dir 3422 cd conftest.dir 3423 # We will build objects and dependencies in a subdirectory because 3424 # it helps to detect inapplicable dependency modes. For instance 3425 # both Tru64's cc and ICC support -MD to output dependencies as a 3426 # side effect of compilation, but ICC will put the dependencies in 3427 # the current directory while Tru64 will put them in the object 3428 # directory. 3429 mkdir sub 3430 3431 am_cv_CC_dependencies_compiler_type=none 3432 if test "$am_compiler_list" = ""; then 3433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3434 fi 3435 for depmode in $am_compiler_list; do 3436 # Setup a source with many dependencies, because some compilers 3437 # like to wrap large dependency lists on column 80 (with \), and 3438 # we should not choose a depcomp mode which is confused by this. 3439 # 3440 # We need to recreate these files for each test, as the compiler may 3441 # overwrite some of them when testing with obscure command lines. 3442 # This happens at least with the AIX C compiler. 3443 : > sub/conftest.c 3444 for i in 1 2 3 4 5 6; do 3445 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3446 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3447 # Solaris 8's {/usr,}/bin/sh. 3448 touch sub/conftst$i.h 3449 done 3450 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3451 3452 case $depmode in 3453 nosideeffect) 3454 # after this tag, mechanisms are not by side-effect, so they'll 3455 # only be used when explicitly requested 3456 if test "x$enable_dependency_tracking" = xyes; then 3457 continue 3458 else 3459 break 3460 fi 3461 ;; 3462 none) break ;; 3463 esac 3464 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3465 # mode. It turns out that the SunPro C++ compiler does not properly 3466 # handle `-M -o', and we need to detect this. 3467 if depmode=$depmode \ 3468 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3470 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3471 >/dev/null 2>conftest.err && 3472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3476 # icc doesn't choke on unknown options, it will just issue warnings 3477 # or remarks (even with -Werror). So we grep stderr for any message 3478 # that says an option was ignored or not supported. 3479 # When given -MP, icc 7.0 and 7.1 complain thusly: 3480 # icc: Command line warning: ignoring option '-M'; no argument required 3481 # The diagnosis changed in icc 8.0: 3482 # icc: Command line remark: option '-MP' not supported 3483 if (grep 'ignoring option' conftest.err || 3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3485 am_cv_CC_dependencies_compiler_type=$depmode 3486 break 3487 fi 3488 fi 3489 done 3490 3491 cd .. 3492 rm -rf conftest.dir 3493else 3494 am_cv_CC_dependencies_compiler_type=none 3495fi 3496 3497fi 3498{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3499echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3500CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3501 3502 if 3503 test "x$enable_dependency_tracking" != xno \ 3504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3505 am__fastdepCC_TRUE= 3506 am__fastdepCC_FALSE='#' 3507else 3508 am__fastdepCC_TRUE='#' 3509 am__fastdepCC_FALSE= 3510fi 3511 3512 3513case `pwd` in 3514 *\ * | *\ *) 3515 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3516echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3517esac 3518 3519 3520 3521macro_version='2.2.6' 3522macro_revision='1.3012' 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536ltmain="$ac_aux_dir/ltmain.sh" 3537 3538# Make sure we can run config.sub. 3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3541echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3542 { (exit 1); exit 1; }; } 3543 3544{ echo "$as_me:$LINENO: checking build system type" >&5 3545echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3546if test "${ac_cv_build+set}" = set; then 3547 echo $ECHO_N "(cached) $ECHO_C" >&6 3548else 3549 ac_build_alias=$build_alias 3550test "x$ac_build_alias" = x && 3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3552test "x$ac_build_alias" = x && 3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3554echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3555 { (exit 1); exit 1; }; } 3556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3558echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3559 { (exit 1); exit 1; }; } 3560 3561fi 3562{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3563echo "${ECHO_T}$ac_cv_build" >&6; } 3564case $ac_cv_build in 3565*-*-*) ;; 3566*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3567echo "$as_me: error: invalid value of canonical build" >&2;} 3568 { (exit 1); exit 1; }; };; 3569esac 3570build=$ac_cv_build 3571ac_save_IFS=$IFS; IFS='-' 3572set x $ac_cv_build 3573shift 3574build_cpu=$1 3575build_vendor=$2 3576shift; shift 3577# Remember, the first character of IFS is used to create $*, 3578# except with old shells: 3579build_os=$* 3580IFS=$ac_save_IFS 3581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3582 3583 3584{ echo "$as_me:$LINENO: checking host system type" >&5 3585echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3586if test "${ac_cv_host+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 if test "x$host_alias" = x; then 3590 ac_cv_host=$ac_cv_build 3591else 3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3595 { (exit 1); exit 1; }; } 3596fi 3597 3598fi 3599{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3600echo "${ECHO_T}$ac_cv_host" >&6; } 3601case $ac_cv_host in 3602*-*-*) ;; 3603*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3604echo "$as_me: error: invalid value of canonical host" >&2;} 3605 { (exit 1); exit 1; }; };; 3606esac 3607host=$ac_cv_host 3608ac_save_IFS=$IFS; IFS='-' 3609set x $ac_cv_host 3610shift 3611host_cpu=$1 3612host_vendor=$2 3613shift; shift 3614# Remember, the first character of IFS is used to create $*, 3615# except with old shells: 3616host_os=$* 3617IFS=$ac_save_IFS 3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3619 3620 3621{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3622echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3623if test "${ac_cv_path_SED+set}" = set; then 3624 echo $ECHO_N "(cached) $ECHO_C" >&6 3625else 3626 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3627 for ac_i in 1 2 3 4 5 6 7; do 3628 ac_script="$ac_script$as_nl$ac_script" 3629 done 3630 echo "$ac_script" | sed 99q >conftest.sed 3631 $as_unset ac_script || ac_script= 3632 # Extract the first word of "sed gsed" to use in msg output 3633if test -z "$SED"; then 3634set dummy sed gsed; ac_prog_name=$2 3635if test "${ac_cv_path_SED+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637else 3638 ac_path_SED_found=false 3639# Loop through the user's path and test for each of PROGNAME-LIST 3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 for ac_prog in sed gsed; do 3646 for ac_exec_ext in '' $ac_executable_extensions; do 3647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3648 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3649 # Check for GNU ac_path_SED and select it if it is found. 3650 # Check for GNU $ac_path_SED 3651case `"$ac_path_SED" --version 2>&1` in 3652*GNU*) 3653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3654*) 3655 ac_count=0 3656 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3657 while : 3658 do 3659 cat "conftest.in" "conftest.in" >"conftest.tmp" 3660 mv "conftest.tmp" "conftest.in" 3661 cp "conftest.in" "conftest.nl" 3662 echo '' >> "conftest.nl" 3663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3665 ac_count=`expr $ac_count + 1` 3666 if test $ac_count -gt ${ac_path_SED_max-0}; then 3667 # Best one so far, save it but keep looking for a better one 3668 ac_cv_path_SED="$ac_path_SED" 3669 ac_path_SED_max=$ac_count 3670 fi 3671 # 10*(2^10) chars as input seems more than enough 3672 test $ac_count -gt 10 && break 3673 done 3674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3675esac 3676 3677 3678 $ac_path_SED_found && break 3 3679 done 3680done 3681 3682done 3683IFS=$as_save_IFS 3684 3685 3686fi 3687 3688SED="$ac_cv_path_SED" 3689if test -z "$SED"; then 3690 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 3691echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 3692 { (exit 1); exit 1; }; } 3693fi 3694 3695else 3696 ac_cv_path_SED=$SED 3697fi 3698 3699fi 3700{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3701echo "${ECHO_T}$ac_cv_path_SED" >&6; } 3702 SED="$ac_cv_path_SED" 3703 rm -f conftest.sed 3704 3705test -z "$SED" && SED=sed 3706Xsed="$SED -e 1s/^X//" 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3719echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3720if test "${ac_cv_path_GREP+set}" = set; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722else 3723 # Extract the first word of "grep ggrep" to use in msg output 3724if test -z "$GREP"; then 3725set dummy grep ggrep; ac_prog_name=$2 3726if test "${ac_cv_path_GREP+set}" = set; then 3727 echo $ECHO_N "(cached) $ECHO_C" >&6 3728else 3729 ac_path_GREP_found=false 3730# Loop through the user's path and test for each of PROGNAME-LIST 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3733do 3734 IFS=$as_save_IFS 3735 test -z "$as_dir" && as_dir=. 3736 for ac_prog in grep ggrep; do 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3739 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3740 # Check for GNU ac_path_GREP and select it if it is found. 3741 # Check for GNU $ac_path_GREP 3742case `"$ac_path_GREP" --version 2>&1` in 3743*GNU*) 3744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3745*) 3746 ac_count=0 3747 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3748 while : 3749 do 3750 cat "conftest.in" "conftest.in" >"conftest.tmp" 3751 mv "conftest.tmp" "conftest.in" 3752 cp "conftest.in" "conftest.nl" 3753 echo 'GREP' >> "conftest.nl" 3754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3756 ac_count=`expr $ac_count + 1` 3757 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3758 # Best one so far, save it but keep looking for a better one 3759 ac_cv_path_GREP="$ac_path_GREP" 3760 ac_path_GREP_max=$ac_count 3761 fi 3762 # 10*(2^10) chars as input seems more than enough 3763 test $ac_count -gt 10 && break 3764 done 3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3766esac 3767 3768 3769 $ac_path_GREP_found && break 3 3770 done 3771done 3772 3773done 3774IFS=$as_save_IFS 3775 3776 3777fi 3778 3779GREP="$ac_cv_path_GREP" 3780if test -z "$GREP"; then 3781 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3782echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3783 { (exit 1); exit 1; }; } 3784fi 3785 3786else 3787 ac_cv_path_GREP=$GREP 3788fi 3789 3790 3791fi 3792{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3793echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3794 GREP="$ac_cv_path_GREP" 3795 3796 3797{ echo "$as_me:$LINENO: checking for egrep" >&5 3798echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3799if test "${ac_cv_path_EGREP+set}" = set; then 3800 echo $ECHO_N "(cached) $ECHO_C" >&6 3801else 3802 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3803 then ac_cv_path_EGREP="$GREP -E" 3804 else 3805 # Extract the first word of "egrep" to use in msg output 3806if test -z "$EGREP"; then 3807set dummy egrep; ac_prog_name=$2 3808if test "${ac_cv_path_EGREP+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 ac_path_EGREP_found=false 3812# Loop through the user's path and test for each of PROGNAME-LIST 3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3815do 3816 IFS=$as_save_IFS 3817 test -z "$as_dir" && as_dir=. 3818 for ac_prog in egrep; do 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3821 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3822 # Check for GNU ac_path_EGREP and select it if it is found. 3823 # Check for GNU $ac_path_EGREP 3824case `"$ac_path_EGREP" --version 2>&1` in 3825*GNU*) 3826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3827*) 3828 ac_count=0 3829 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3830 while : 3831 do 3832 cat "conftest.in" "conftest.in" >"conftest.tmp" 3833 mv "conftest.tmp" "conftest.in" 3834 cp "conftest.in" "conftest.nl" 3835 echo 'EGREP' >> "conftest.nl" 3836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3838 ac_count=`expr $ac_count + 1` 3839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3840 # Best one so far, save it but keep looking for a better one 3841 ac_cv_path_EGREP="$ac_path_EGREP" 3842 ac_path_EGREP_max=$ac_count 3843 fi 3844 # 10*(2^10) chars as input seems more than enough 3845 test $ac_count -gt 10 && break 3846 done 3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3848esac 3849 3850 3851 $ac_path_EGREP_found && break 3 3852 done 3853done 3854 3855done 3856IFS=$as_save_IFS 3857 3858 3859fi 3860 3861EGREP="$ac_cv_path_EGREP" 3862if test -z "$EGREP"; then 3863 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3864echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3865 { (exit 1); exit 1; }; } 3866fi 3867 3868else 3869 ac_cv_path_EGREP=$EGREP 3870fi 3871 3872 3873 fi 3874fi 3875{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3876echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3877 EGREP="$ac_cv_path_EGREP" 3878 3879 3880{ echo "$as_me:$LINENO: checking for fgrep" >&5 3881echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 3882if test "${ac_cv_path_FGREP+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3886 then ac_cv_path_FGREP="$GREP -F" 3887 else 3888 # Extract the first word of "fgrep" to use in msg output 3889if test -z "$FGREP"; then 3890set dummy fgrep; ac_prog_name=$2 3891if test "${ac_cv_path_FGREP+set}" = set; then 3892 echo $ECHO_N "(cached) $ECHO_C" >&6 3893else 3894 ac_path_FGREP_found=false 3895# Loop through the user's path and test for each of PROGNAME-LIST 3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3897for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3898do 3899 IFS=$as_save_IFS 3900 test -z "$as_dir" && as_dir=. 3901 for ac_prog in fgrep; do 3902 for ac_exec_ext in '' $ac_executable_extensions; do 3903 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3904 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3905 # Check for GNU ac_path_FGREP and select it if it is found. 3906 # Check for GNU $ac_path_FGREP 3907case `"$ac_path_FGREP" --version 2>&1` in 3908*GNU*) 3909 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3910*) 3911 ac_count=0 3912 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3913 while : 3914 do 3915 cat "conftest.in" "conftest.in" >"conftest.tmp" 3916 mv "conftest.tmp" "conftest.in" 3917 cp "conftest.in" "conftest.nl" 3918 echo 'FGREP' >> "conftest.nl" 3919 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3921 ac_count=`expr $ac_count + 1` 3922 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3923 # Best one so far, save it but keep looking for a better one 3924 ac_cv_path_FGREP="$ac_path_FGREP" 3925 ac_path_FGREP_max=$ac_count 3926 fi 3927 # 10*(2^10) chars as input seems more than enough 3928 test $ac_count -gt 10 && break 3929 done 3930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3931esac 3932 3933 3934 $ac_path_FGREP_found && break 3 3935 done 3936done 3937 3938done 3939IFS=$as_save_IFS 3940 3941 3942fi 3943 3944FGREP="$ac_cv_path_FGREP" 3945if test -z "$FGREP"; then 3946 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3947echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3948 { (exit 1); exit 1; }; } 3949fi 3950 3951else 3952 ac_cv_path_FGREP=$FGREP 3953fi 3954 3955 3956 fi 3957fi 3958{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 3959echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 3960 FGREP="$ac_cv_path_FGREP" 3961 3962 3963test -z "$GREP" && GREP=grep 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983# Check whether --with-gnu-ld was given. 3984if test "${with_gnu_ld+set}" = set; then 3985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3986else 3987 with_gnu_ld=no 3988fi 3989 3990ac_prog=ld 3991if test "$GCC" = yes; then 3992 # Check if gcc -print-prog-name=ld gives a path. 3993 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3994echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3995 case $host in 3996 *-*-mingw*) 3997 # gcc leaves a trailing carriage return which upsets mingw 3998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3999 *) 4000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4001 esac 4002 case $ac_prog in 4003 # Accept absolute paths. 4004 [\\/]* | ?:[\\/]*) 4005 re_direlt='/[^/][^/]*/\.\./' 4006 # Canonicalize the pathname of ld 4007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4010 done 4011 test -z "$LD" && LD="$ac_prog" 4012 ;; 4013 "") 4014 # If it fails, then pretend we aren't using GCC. 4015 ac_prog=ld 4016 ;; 4017 *) 4018 # If it is relative, then search for the first ld in PATH. 4019 with_gnu_ld=unknown 4020 ;; 4021 esac 4022elif test "$with_gnu_ld" = yes; then 4023 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4024echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4025else 4026 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4027echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4028fi 4029if test "${lt_cv_path_LD+set}" = set; then 4030 echo $ECHO_N "(cached) $ECHO_C" >&6 4031else 4032 if test -z "$LD"; then 4033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4034 for ac_dir in $PATH; do 4035 IFS="$lt_save_ifs" 4036 test -z "$ac_dir" && ac_dir=. 4037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4038 lt_cv_path_LD="$ac_dir/$ac_prog" 4039 # Check to see if the program is GNU ld. I'd rather use --version, 4040 # but apparently some variants of GNU ld only accept -v. 4041 # Break only if it was the GNU/non-GNU ld that we prefer. 4042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4043 *GNU* | *'with BFD'*) 4044 test "$with_gnu_ld" != no && break 4045 ;; 4046 *) 4047 test "$with_gnu_ld" != yes && break 4048 ;; 4049 esac 4050 fi 4051 done 4052 IFS="$lt_save_ifs" 4053else 4054 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4055fi 4056fi 4057 4058LD="$lt_cv_path_LD" 4059if test -n "$LD"; then 4060 { echo "$as_me:$LINENO: result: $LD" >&5 4061echo "${ECHO_T}$LD" >&6; } 4062else 4063 { echo "$as_me:$LINENO: result: no" >&5 4064echo "${ECHO_T}no" >&6; } 4065fi 4066test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4067echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4068 { (exit 1); exit 1; }; } 4069{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4070echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4071if test "${lt_cv_prog_gnu_ld+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4075case `$LD -v 2>&1 </dev/null` in 4076*GNU* | *'with BFD'*) 4077 lt_cv_prog_gnu_ld=yes 4078 ;; 4079*) 4080 lt_cv_prog_gnu_ld=no 4081 ;; 4082esac 4083fi 4084{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4085echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4086with_gnu_ld=$lt_cv_prog_gnu_ld 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4097echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 4098if test "${lt_cv_path_NM+set}" = set; then 4099 echo $ECHO_N "(cached) $ECHO_C" >&6 4100else 4101 if test -n "$NM"; then 4102 # Let the user override the test. 4103 lt_cv_path_NM="$NM" 4104else 4105 lt_nm_to_check="${ac_tool_prefix}nm" 4106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4107 lt_nm_to_check="$lt_nm_to_check nm" 4108 fi 4109 for lt_tmp_nm in $lt_nm_to_check; do 4110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4111 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4112 IFS="$lt_save_ifs" 4113 test -z "$ac_dir" && ac_dir=. 4114 tmp_nm="$ac_dir/$lt_tmp_nm" 4115 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4116 # Check to see if the nm accepts a BSD-compat flag. 4117 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4118 # nm: unknown option "B" ignored 4119 # Tru64's nm complains that /dev/null is an invalid object file 4120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4121 */dev/null* | *'Invalid file or object type'*) 4122 lt_cv_path_NM="$tmp_nm -B" 4123 break 4124 ;; 4125 *) 4126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4127 */dev/null*) 4128 lt_cv_path_NM="$tmp_nm -p" 4129 break 4130 ;; 4131 *) 4132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4133 continue # so that we can try to find one that supports BSD flags 4134 ;; 4135 esac 4136 ;; 4137 esac 4138 fi 4139 done 4140 IFS="$lt_save_ifs" 4141 done 4142 : ${lt_cv_path_NM=no} 4143fi 4144fi 4145{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4146echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4147if test "$lt_cv_path_NM" != "no"; then 4148 NM="$lt_cv_path_NM" 4149else 4150 # Didn't find any BSD compatible name lister, look for dumpbin. 4151 if test -n "$ac_tool_prefix"; then 4152 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4153 do 4154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4155set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4158if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4159 echo $ECHO_N "(cached) $ECHO_C" >&6 4160else 4161 if test -n "$DUMPBIN"; then 4162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4163else 4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH 4166do 4167 IFS=$as_save_IFS 4168 test -z "$as_dir" && as_dir=. 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4173 break 2 4174 fi 4175done 4176done 4177IFS=$as_save_IFS 4178 4179fi 4180fi 4181DUMPBIN=$ac_cv_prog_DUMPBIN 4182if test -n "$DUMPBIN"; then 4183 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4184echo "${ECHO_T}$DUMPBIN" >&6; } 4185else 4186 { echo "$as_me:$LINENO: result: no" >&5 4187echo "${ECHO_T}no" >&6; } 4188fi 4189 4190 4191 test -n "$DUMPBIN" && break 4192 done 4193fi 4194if test -z "$DUMPBIN"; then 4195 ac_ct_DUMPBIN=$DUMPBIN 4196 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4197do 4198 # Extract the first word of "$ac_prog", so it can be a program name with args. 4199set dummy $ac_prog; ac_word=$2 4200{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4202if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4203 echo $ECHO_N "(cached) $ECHO_C" >&6 4204else 4205 if test -n "$ac_ct_DUMPBIN"; then 4206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4207else 4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4209for as_dir in $PATH 4210do 4211 IFS=$as_save_IFS 4212 test -z "$as_dir" && as_dir=. 4213 for ac_exec_ext in '' $ac_executable_extensions; do 4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4217 break 2 4218 fi 4219done 4220done 4221IFS=$as_save_IFS 4222 4223fi 4224fi 4225ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4226if test -n "$ac_ct_DUMPBIN"; then 4227 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4228echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 4229else 4230 { echo "$as_me:$LINENO: result: no" >&5 4231echo "${ECHO_T}no" >&6; } 4232fi 4233 4234 4235 test -n "$ac_ct_DUMPBIN" && break 4236done 4237 4238 if test "x$ac_ct_DUMPBIN" = x; then 4239 DUMPBIN=":" 4240 else 4241 case $cross_compiling:$ac_tool_warned in 4242yes:) 4243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4244whose name does not start with the host triplet. If you think this 4245configuration is useful to you, please write to autoconf@gnu.org." >&5 4246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4247whose name does not start with the host triplet. If you think this 4248configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4249ac_tool_warned=yes ;; 4250esac 4251 DUMPBIN=$ac_ct_DUMPBIN 4252 fi 4253fi 4254 4255 4256 if test "$DUMPBIN" != ":"; then 4257 NM="$DUMPBIN" 4258 fi 4259fi 4260test -z "$NM" && NM=nm 4261 4262 4263 4264 4265 4266 4267{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4268echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 4269if test "${lt_cv_nm_interface+set}" = set; then 4270 echo $ECHO_N "(cached) $ECHO_C" >&6 4271else 4272 lt_cv_nm_interface="BSD nm" 4273 echo "int some_variable = 0;" > conftest.$ac_ext 4274 (eval echo "\"\$as_me:4274: $ac_compile\"" >&5) 4275 (eval "$ac_compile" 2>conftest.err) 4276 cat conftest.err >&5 4277 (eval echo "\"\$as_me:4277: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4278 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4279 cat conftest.err >&5 4280 (eval echo "\"\$as_me:4280: output\"" >&5) 4281 cat conftest.out >&5 4282 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4283 lt_cv_nm_interface="MS dumpbin" 4284 fi 4285 rm -f conftest* 4286fi 4287{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4288echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 4289 4290{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4291echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4292LN_S=$as_ln_s 4293if test "$LN_S" = "ln -s"; then 4294 { echo "$as_me:$LINENO: result: yes" >&5 4295echo "${ECHO_T}yes" >&6; } 4296else 4297 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4298echo "${ECHO_T}no, using $LN_S" >&6; } 4299fi 4300 4301# find the maximum length of command line arguments 4302{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4303echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 4304if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4305 echo $ECHO_N "(cached) $ECHO_C" >&6 4306else 4307 i=0 4308 teststring="ABCD" 4309 4310 case $build_os in 4311 msdosdjgpp*) 4312 # On DJGPP, this test can blow up pretty badly due to problems in libc 4313 # (any single argument exceeding 2000 bytes causes a buffer overrun 4314 # during glob expansion). Even if it were fixed, the result of this 4315 # check would be larger than it should be. 4316 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4317 ;; 4318 4319 gnu*) 4320 # Under GNU Hurd, this test is not required because there is 4321 # no limit to the length of command line arguments. 4322 # Libtool will interpret -1 as no limit whatsoever 4323 lt_cv_sys_max_cmd_len=-1; 4324 ;; 4325 4326 cygwin* | mingw* | cegcc*) 4327 # On Win9x/ME, this test blows up -- it succeeds, but takes 4328 # about 5 minutes as the teststring grows exponentially. 4329 # Worse, since 9x/ME are not pre-emptively multitasking, 4330 # you end up with a "frozen" computer, even though with patience 4331 # the test eventually succeeds (with a max line length of 256k). 4332 # Instead, let's just punt: use the minimum linelength reported by 4333 # all of the supported platforms: 8192 (on NT/2K/XP). 4334 lt_cv_sys_max_cmd_len=8192; 4335 ;; 4336 4337 amigaos*) 4338 # On AmigaOS with pdksh, this test takes hours, literally. 4339 # So we just punt and use a minimum line length of 8192. 4340 lt_cv_sys_max_cmd_len=8192; 4341 ;; 4342 4343 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4344 # This has been around since 386BSD, at least. Likely further. 4345 if test -x /sbin/sysctl; then 4346 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4347 elif test -x /usr/sbin/sysctl; then 4348 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4349 else 4350 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4351 fi 4352 # And add a safety zone 4353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4355 ;; 4356 4357 interix*) 4358 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4359 lt_cv_sys_max_cmd_len=196608 4360 ;; 4361 4362 osf*) 4363 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4364 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4365 # nice to cause kernel panics so lets avoid the loop below. 4366 # First set a reasonable default. 4367 lt_cv_sys_max_cmd_len=16384 4368 # 4369 if test -x /sbin/sysconfig; then 4370 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4371 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4372 esac 4373 fi 4374 ;; 4375 sco3.2v5*) 4376 lt_cv_sys_max_cmd_len=102400 4377 ;; 4378 sysv5* | sco5v6* | sysv4.2uw2*) 4379 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4380 if test -n "$kargmax"; then 4381 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4382 else 4383 lt_cv_sys_max_cmd_len=32768 4384 fi 4385 ;; 4386 *) 4387 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4388 if test -n "$lt_cv_sys_max_cmd_len"; then 4389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4391 else 4392 # Make teststring a little bigger before we do anything with it. 4393 # a 1K string should be a reasonable start. 4394 for i in 1 2 3 4 5 6 7 8 ; do 4395 teststring=$teststring$teststring 4396 done 4397 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4398 # If test is not a shell built-in, we'll probably end up computing a 4399 # maximum length that is only half of the actual maximum length, but 4400 # we can't tell. 4401 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4402 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4403 test $i != 17 # 1/2 MB should be enough 4404 do 4405 i=`expr $i + 1` 4406 teststring=$teststring$teststring 4407 done 4408 # Only check the string length outside the loop. 4409 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4410 teststring= 4411 # Add a significant safety factor because C++ compilers can tack on 4412 # massive amounts of additional arguments before passing them to the 4413 # linker. It appears as though 1/2 is a usable value. 4414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4415 fi 4416 ;; 4417 esac 4418 4419fi 4420 4421if test -n $lt_cv_sys_max_cmd_len ; then 4422 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4423echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 4424else 4425 { echo "$as_me:$LINENO: result: none" >&5 4426echo "${ECHO_T}none" >&6; } 4427fi 4428max_cmd_len=$lt_cv_sys_max_cmd_len 4429 4430 4431 4432 4433 4434 4435: ${CP="cp -f"} 4436: ${MV="mv -f"} 4437: ${RM="rm -f"} 4438 4439{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4440echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 4441# Try some XSI features 4442xsi_shell=no 4443( _lt_dummy="a/b/c" 4444 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4445 = c,a/b,, \ 4446 && eval 'test $(( 1 + 1 )) -eq 2 \ 4447 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4448 && xsi_shell=yes 4449{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 4450echo "${ECHO_T}$xsi_shell" >&6; } 4451 4452 4453{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4454echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 4455lt_shell_append=no 4456( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4457 >/dev/null 2>&1 \ 4458 && lt_shell_append=yes 4459{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4460echo "${ECHO_T}$lt_shell_append" >&6; } 4461 4462 4463if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4464 lt_unset=unset 4465else 4466 lt_unset=false 4467fi 4468 4469 4470 4471 4472 4473# test EBCDIC or ASCII 4474case `echo X|tr X '\101'` in 4475 A) # ASCII based system 4476 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4477 lt_SP2NL='tr \040 \012' 4478 lt_NL2SP='tr \015\012 \040\040' 4479 ;; 4480 *) # EBCDIC based system 4481 lt_SP2NL='tr \100 \n' 4482 lt_NL2SP='tr \r\n \100\100' 4483 ;; 4484esac 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4495echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4496if test "${lt_cv_ld_reload_flag+set}" = set; then 4497 echo $ECHO_N "(cached) $ECHO_C" >&6 4498else 4499 lt_cv_ld_reload_flag='-r' 4500fi 4501{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4502echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4503reload_flag=$lt_cv_ld_reload_flag 4504case $reload_flag in 4505"" | " "*) ;; 4506*) reload_flag=" $reload_flag" ;; 4507esac 4508reload_cmds='$LD$reload_flag -o $output$reload_objs' 4509case $host_os in 4510 darwin*) 4511 if test "$GCC" = yes; then 4512 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4513 else 4514 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4515 fi 4516 ;; 4517esac 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527if test -n "$ac_tool_prefix"; then 4528 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4529set dummy ${ac_tool_prefix}objdump; ac_word=$2 4530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4532if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 if test -n "$OBJDUMP"; then 4536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4537else 4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4539for as_dir in $PATH 4540do 4541 IFS=$as_save_IFS 4542 test -z "$as_dir" && as_dir=. 4543 for ac_exec_ext in '' $ac_executable_extensions; do 4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4547 break 2 4548 fi 4549done 4550done 4551IFS=$as_save_IFS 4552 4553fi 4554fi 4555OBJDUMP=$ac_cv_prog_OBJDUMP 4556if test -n "$OBJDUMP"; then 4557 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4558echo "${ECHO_T}$OBJDUMP" >&6; } 4559else 4560 { echo "$as_me:$LINENO: result: no" >&5 4561echo "${ECHO_T}no" >&6; } 4562fi 4563 4564 4565fi 4566if test -z "$ac_cv_prog_OBJDUMP"; then 4567 ac_ct_OBJDUMP=$OBJDUMP 4568 # Extract the first word of "objdump", so it can be a program name with args. 4569set dummy objdump; ac_word=$2 4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4572if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4573 echo $ECHO_N "(cached) $ECHO_C" >&6 4574else 4575 if test -n "$ac_ct_OBJDUMP"; then 4576 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4577else 4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4579for as_dir in $PATH 4580do 4581 IFS=$as_save_IFS 4582 test -z "$as_dir" && as_dir=. 4583 for ac_exec_ext in '' $ac_executable_extensions; do 4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4585 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4587 break 2 4588 fi 4589done 4590done 4591IFS=$as_save_IFS 4592 4593fi 4594fi 4595ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4596if test -n "$ac_ct_OBJDUMP"; then 4597 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4598echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 4599else 4600 { echo "$as_me:$LINENO: result: no" >&5 4601echo "${ECHO_T}no" >&6; } 4602fi 4603 4604 if test "x$ac_ct_OBJDUMP" = x; then 4605 OBJDUMP="false" 4606 else 4607 case $cross_compiling:$ac_tool_warned in 4608yes:) 4609{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4610whose name does not start with the host triplet. If you think this 4611configuration is useful to you, please write to autoconf@gnu.org." >&5 4612echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4613whose name does not start with the host triplet. If you think this 4614configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4615ac_tool_warned=yes ;; 4616esac 4617 OBJDUMP=$ac_ct_OBJDUMP 4618 fi 4619else 4620 OBJDUMP="$ac_cv_prog_OBJDUMP" 4621fi 4622 4623test -z "$OBJDUMP" && OBJDUMP=objdump 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4634echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4635if test "${lt_cv_deplibs_check_method+set}" = set; then 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4637else 4638 lt_cv_file_magic_cmd='$MAGIC_CMD' 4639lt_cv_file_magic_test_file= 4640lt_cv_deplibs_check_method='unknown' 4641# Need to set the preceding variable on all platforms that support 4642# interlibrary dependencies. 4643# 'none' -- dependencies not supported. 4644# `unknown' -- same as none, but documents that we really don't know. 4645# 'pass_all' -- all dependencies passed with no checks. 4646# 'test_compile' -- check by making test program. 4647# 'file_magic [[regex]]' -- check by looking for files in library path 4648# which responds to the $file_magic_cmd with a given extended regex. 4649# If you have `file' or equivalent on your system and you're not sure 4650# whether `pass_all' will *always* work, you probably want this one. 4651 4652case $host_os in 4653aix[4-9]*) 4654 lt_cv_deplibs_check_method=pass_all 4655 ;; 4656 4657beos*) 4658 lt_cv_deplibs_check_method=pass_all 4659 ;; 4660 4661bsdi[45]*) 4662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4663 lt_cv_file_magic_cmd='/usr/bin/file -L' 4664 lt_cv_file_magic_test_file=/shlib/libc.so 4665 ;; 4666 4667cygwin*) 4668 # func_win32_libid is a shell function defined in ltmain.sh 4669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4670 lt_cv_file_magic_cmd='func_win32_libid' 4671 ;; 4672 4673mingw* | pw32*) 4674 # Base MSYS/MinGW do not provide the 'file' command needed by 4675 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4676 # unless we find 'file', for example because we are cross-compiling. 4677 if ( file / ) >/dev/null 2>&1; then 4678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4679 lt_cv_file_magic_cmd='func_win32_libid' 4680 else 4681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4682 lt_cv_file_magic_cmd='$OBJDUMP -f' 4683 fi 4684 ;; 4685 4686cegcc) 4687 # use the weaker test based on 'objdump'. See mingw*. 4688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4689 lt_cv_file_magic_cmd='$OBJDUMP -f' 4690 ;; 4691 4692darwin* | rhapsody*) 4693 lt_cv_deplibs_check_method=pass_all 4694 ;; 4695 4696freebsd* | dragonfly*) 4697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4698 case $host_cpu in 4699 i*86 ) 4700 # Not sure whether the presence of OpenBSD here was a mistake. 4701 # Let's accept both of them until this is cleared up. 4702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4703 lt_cv_file_magic_cmd=/usr/bin/file 4704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4705 ;; 4706 esac 4707 else 4708 lt_cv_deplibs_check_method=pass_all 4709 fi 4710 ;; 4711 4712gnu*) 4713 lt_cv_deplibs_check_method=pass_all 4714 ;; 4715 4716hpux10.20* | hpux11*) 4717 lt_cv_file_magic_cmd=/usr/bin/file 4718 case $host_cpu in 4719 ia64*) 4720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4722 ;; 4723 hppa*64*) 4724 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]' 4725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4726 ;; 4727 *) 4728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4729 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4730 ;; 4731 esac 4732 ;; 4733 4734interix[3-9]*) 4735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4737 ;; 4738 4739irix5* | irix6* | nonstopux*) 4740 case $LD in 4741 *-32|*"-32 ") libmagic=32-bit;; 4742 *-n32|*"-n32 ") libmagic=N32;; 4743 *-64|*"-64 ") libmagic=64-bit;; 4744 *) libmagic=never-match;; 4745 esac 4746 lt_cv_deplibs_check_method=pass_all 4747 ;; 4748 4749# This must be Linux ELF. 4750linux* | k*bsd*-gnu) 4751 lt_cv_deplibs_check_method=pass_all 4752 ;; 4753 4754netbsd*) 4755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4757 else 4758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4759 fi 4760 ;; 4761 4762newos6*) 4763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4764 lt_cv_file_magic_cmd=/usr/bin/file 4765 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4766 ;; 4767 4768*nto* | *qnx*) 4769 lt_cv_deplibs_check_method=pass_all 4770 ;; 4771 4772openbsd*) 4773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4775 else 4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4777 fi 4778 ;; 4779 4780osf3* | osf4* | osf5*) 4781 lt_cv_deplibs_check_method=pass_all 4782 ;; 4783 4784rdos*) 4785 lt_cv_deplibs_check_method=pass_all 4786 ;; 4787 4788solaris*) 4789 lt_cv_deplibs_check_method=pass_all 4790 ;; 4791 4792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4793 lt_cv_deplibs_check_method=pass_all 4794 ;; 4795 4796sysv4 | sysv4.3*) 4797 case $host_vendor in 4798 motorola) 4799 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]' 4800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4801 ;; 4802 ncr) 4803 lt_cv_deplibs_check_method=pass_all 4804 ;; 4805 sequent) 4806 lt_cv_file_magic_cmd='/bin/file' 4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4808 ;; 4809 sni) 4810 lt_cv_file_magic_cmd='/bin/file' 4811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4812 lt_cv_file_magic_test_file=/lib/libc.so 4813 ;; 4814 siemens) 4815 lt_cv_deplibs_check_method=pass_all 4816 ;; 4817 pc) 4818 lt_cv_deplibs_check_method=pass_all 4819 ;; 4820 esac 4821 ;; 4822 4823tpf*) 4824 lt_cv_deplibs_check_method=pass_all 4825 ;; 4826esac 4827 4828fi 4829{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4830echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4831file_magic_cmd=$lt_cv_file_magic_cmd 4832deplibs_check_method=$lt_cv_deplibs_check_method 4833test -z "$deplibs_check_method" && deplibs_check_method=unknown 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846if test -n "$ac_tool_prefix"; then 4847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4848set dummy ${ac_tool_prefix}ar; ac_word=$2 4849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4851if test "${ac_cv_prog_AR+set}" = set; then 4852 echo $ECHO_N "(cached) $ECHO_C" >&6 4853else 4854 if test -n "$AR"; then 4855 ac_cv_prog_AR="$AR" # Let the user override the test. 4856else 4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858for as_dir in $PATH 4859do 4860 IFS=$as_save_IFS 4861 test -z "$as_dir" && as_dir=. 4862 for ac_exec_ext in '' $ac_executable_extensions; do 4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4864 ac_cv_prog_AR="${ac_tool_prefix}ar" 4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4866 break 2 4867 fi 4868done 4869done 4870IFS=$as_save_IFS 4871 4872fi 4873fi 4874AR=$ac_cv_prog_AR 4875if test -n "$AR"; then 4876 { echo "$as_me:$LINENO: result: $AR" >&5 4877echo "${ECHO_T}$AR" >&6; } 4878else 4879 { echo "$as_me:$LINENO: result: no" >&5 4880echo "${ECHO_T}no" >&6; } 4881fi 4882 4883 4884fi 4885if test -z "$ac_cv_prog_AR"; then 4886 ac_ct_AR=$AR 4887 # Extract the first word of "ar", so it can be a program name with args. 4888set dummy ar; ac_word=$2 4889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4891if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4892 echo $ECHO_N "(cached) $ECHO_C" >&6 4893else 4894 if test -n "$ac_ct_AR"; then 4895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4896else 4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898for as_dir in $PATH 4899do 4900 IFS=$as_save_IFS 4901 test -z "$as_dir" && as_dir=. 4902 for ac_exec_ext in '' $ac_executable_extensions; do 4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4904 ac_cv_prog_ac_ct_AR="ar" 4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4906 break 2 4907 fi 4908done 4909done 4910IFS=$as_save_IFS 4911 4912fi 4913fi 4914ac_ct_AR=$ac_cv_prog_ac_ct_AR 4915if test -n "$ac_ct_AR"; then 4916 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4917echo "${ECHO_T}$ac_ct_AR" >&6; } 4918else 4919 { echo "$as_me:$LINENO: result: no" >&5 4920echo "${ECHO_T}no" >&6; } 4921fi 4922 4923 if test "x$ac_ct_AR" = x; then 4924 AR="false" 4925 else 4926 case $cross_compiling:$ac_tool_warned in 4927yes:) 4928{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4929whose name does not start with the host triplet. If you think this 4930configuration is useful to you, please write to autoconf@gnu.org." >&5 4931echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4932whose name does not start with the host triplet. If you think this 4933configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4934ac_tool_warned=yes ;; 4935esac 4936 AR=$ac_ct_AR 4937 fi 4938else 4939 AR="$ac_cv_prog_AR" 4940fi 4941 4942test -z "$AR" && AR=ar 4943test -z "$AR_FLAGS" && AR_FLAGS=cru 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955if test -n "$ac_tool_prefix"; then 4956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4957set dummy ${ac_tool_prefix}strip; ac_word=$2 4958{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4960if test "${ac_cv_prog_STRIP+set}" = set; then 4961 echo $ECHO_N "(cached) $ECHO_C" >&6 4962else 4963 if test -n "$STRIP"; then 4964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4965else 4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967for as_dir in $PATH 4968do 4969 IFS=$as_save_IFS 4970 test -z "$as_dir" && as_dir=. 4971 for ac_exec_ext in '' $ac_executable_extensions; do 4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4973 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4975 break 2 4976 fi 4977done 4978done 4979IFS=$as_save_IFS 4980 4981fi 4982fi 4983STRIP=$ac_cv_prog_STRIP 4984if test -n "$STRIP"; then 4985 { echo "$as_me:$LINENO: result: $STRIP" >&5 4986echo "${ECHO_T}$STRIP" >&6; } 4987else 4988 { echo "$as_me:$LINENO: result: no" >&5 4989echo "${ECHO_T}no" >&6; } 4990fi 4991 4992 4993fi 4994if test -z "$ac_cv_prog_STRIP"; then 4995 ac_ct_STRIP=$STRIP 4996 # Extract the first word of "strip", so it can be a program name with args. 4997set dummy strip; ac_word=$2 4998{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5000if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5001 echo $ECHO_N "(cached) $ECHO_C" >&6 5002else 5003 if test -n "$ac_ct_STRIP"; then 5004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5005else 5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007for as_dir in $PATH 5008do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5013 ac_cv_prog_ac_ct_STRIP="strip" 5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5015 break 2 5016 fi 5017done 5018done 5019IFS=$as_save_IFS 5020 5021fi 5022fi 5023ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5024if test -n "$ac_ct_STRIP"; then 5025 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5026echo "${ECHO_T}$ac_ct_STRIP" >&6; } 5027else 5028 { echo "$as_me:$LINENO: result: no" >&5 5029echo "${ECHO_T}no" >&6; } 5030fi 5031 5032 if test "x$ac_ct_STRIP" = x; then 5033 STRIP=":" 5034 else 5035 case $cross_compiling:$ac_tool_warned in 5036yes:) 5037{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5038whose name does not start with the host triplet. If you think this 5039configuration is useful to you, please write to autoconf@gnu.org." >&5 5040echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5041whose name does not start with the host triplet. If you think this 5042configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5043ac_tool_warned=yes ;; 5044esac 5045 STRIP=$ac_ct_STRIP 5046 fi 5047else 5048 STRIP="$ac_cv_prog_STRIP" 5049fi 5050 5051test -z "$STRIP" && STRIP=: 5052 5053 5054 5055 5056 5057 5058if test -n "$ac_tool_prefix"; then 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5060set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5061{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5063if test "${ac_cv_prog_RANLIB+set}" = set; then 5064 echo $ECHO_N "(cached) $ECHO_C" >&6 5065else 5066 if test -n "$RANLIB"; then 5067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5068else 5069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5070for as_dir in $PATH 5071do 5072 IFS=$as_save_IFS 5073 test -z "$as_dir" && as_dir=. 5074 for ac_exec_ext in '' $ac_executable_extensions; do 5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5078 break 2 5079 fi 5080done 5081done 5082IFS=$as_save_IFS 5083 5084fi 5085fi 5086RANLIB=$ac_cv_prog_RANLIB 5087if test -n "$RANLIB"; then 5088 { echo "$as_me:$LINENO: result: $RANLIB" >&5 5089echo "${ECHO_T}$RANLIB" >&6; } 5090else 5091 { echo "$as_me:$LINENO: result: no" >&5 5092echo "${ECHO_T}no" >&6; } 5093fi 5094 5095 5096fi 5097if test -z "$ac_cv_prog_RANLIB"; then 5098 ac_ct_RANLIB=$RANLIB 5099 # Extract the first word of "ranlib", so it can be a program name with args. 5100set dummy ranlib; ac_word=$2 5101{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5103if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5104 echo $ECHO_N "(cached) $ECHO_C" >&6 5105else 5106 if test -n "$ac_ct_RANLIB"; then 5107 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5108else 5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5110for as_dir in $PATH 5111do 5112 IFS=$as_save_IFS 5113 test -z "$as_dir" && as_dir=. 5114 for ac_exec_ext in '' $ac_executable_extensions; do 5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5116 ac_cv_prog_ac_ct_RANLIB="ranlib" 5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5118 break 2 5119 fi 5120done 5121done 5122IFS=$as_save_IFS 5123 5124fi 5125fi 5126ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5127if test -n "$ac_ct_RANLIB"; then 5128 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5129echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5130else 5131 { echo "$as_me:$LINENO: result: no" >&5 5132echo "${ECHO_T}no" >&6; } 5133fi 5134 5135 if test "x$ac_ct_RANLIB" = x; then 5136 RANLIB=":" 5137 else 5138 case $cross_compiling:$ac_tool_warned in 5139yes:) 5140{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5141whose name does not start with the host triplet. If you think this 5142configuration is useful to you, please write to autoconf@gnu.org." >&5 5143echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5144whose name does not start with the host triplet. If you think this 5145configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5146ac_tool_warned=yes ;; 5147esac 5148 RANLIB=$ac_ct_RANLIB 5149 fi 5150else 5151 RANLIB="$ac_cv_prog_RANLIB" 5152fi 5153 5154test -z "$RANLIB" && RANLIB=: 5155 5156 5157 5158 5159 5160 5161# Determine commands to create old-style static archives. 5162old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5163old_postinstall_cmds='chmod 644 $oldlib' 5164old_postuninstall_cmds= 5165 5166if test -n "$RANLIB"; then 5167 case $host_os in 5168 openbsd*) 5169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5170 ;; 5171 *) 5172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5173 ;; 5174 esac 5175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5176fi 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211# If no C compiler was specified, use CC. 5212LTCC=${LTCC-"$CC"} 5213 5214# If no C compiler flags were specified, use CFLAGS. 5215LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5216 5217# Allow CC to be a program name with arguments. 5218compiler=$CC 5219 5220 5221# Check for command to grab the raw symbol name followed by C symbol from nm. 5222{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5223echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5224if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5225 echo $ECHO_N "(cached) $ECHO_C" >&6 5226else 5227 5228# These are sane defaults that work on at least a few old systems. 5229# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5230 5231# Character class describing NM global symbol codes. 5232symcode='[BCDEGRST]' 5233 5234# Regexp to match symbols that can be accessed directly from C. 5235sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5236 5237# Define system-specific variables. 5238case $host_os in 5239aix*) 5240 symcode='[BCDT]' 5241 ;; 5242cygwin* | mingw* | pw32* | cegcc*) 5243 symcode='[ABCDGISTW]' 5244 ;; 5245hpux*) 5246 if test "$host_cpu" = ia64; then 5247 symcode='[ABCDEGRST]' 5248 fi 5249 ;; 5250irix* | nonstopux*) 5251 symcode='[BCDEGRST]' 5252 ;; 5253osf*) 5254 symcode='[BCDEGQRST]' 5255 ;; 5256solaris*) 5257 symcode='[BDRT]' 5258 ;; 5259sco3.2v5*) 5260 symcode='[DT]' 5261 ;; 5262sysv4.2uw2*) 5263 symcode='[DT]' 5264 ;; 5265sysv5* | sco5v6* | unixware* | OpenUNIX*) 5266 symcode='[ABDT]' 5267 ;; 5268sysv4) 5269 symcode='[DFNSTU]' 5270 ;; 5271esac 5272 5273# If we're using GNU nm, then use its standard symbol codes. 5274case `$NM -V 2>&1` in 5275*GNU* | *'with BFD'*) 5276 symcode='[ABCDGIRSTW]' ;; 5277esac 5278 5279# Transform an extracted symbol line into a proper C declaration. 5280# Some systems (esp. on ia64) link data and code symbols differently, 5281# so use this general approach. 5282lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5283 5284# Transform an extracted symbol line into symbol name and symbol address 5285lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5286lt_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'" 5287 5288# Handle CRLF in mingw tool chain 5289opt_cr= 5290case $build_os in 5291mingw*) 5292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5293 ;; 5294esac 5295 5296# Try without a prefix underscore, then with it. 5297for ac_symprfx in "" "_"; do 5298 5299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5300 symxfrm="\\1 $ac_symprfx\\2 \\2" 5301 5302 # Write the raw and C identifiers. 5303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5304 # Fake it for dumpbin and say T for any non-static function 5305 # and D for any global variable. 5306 # Also find C++ and __fastcall symbols from MSVC++, 5307 # which start with @ or ?. 5308 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5309" {last_section=section; section=\$ 3};"\ 5310" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5311" \$ 0!~/External *\|/{next};"\ 5312" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5313" {if(hide[section]) next};"\ 5314" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5315" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5316" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5317" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5318" ' prfx=^$ac_symprfx" 5319 else 5320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5321 fi 5322 5323 # Check to see that the pipe works correctly. 5324 pipe_works=no 5325 5326 rm -f conftest* 5327 cat > conftest.$ac_ext <<_LT_EOF 5328#ifdef __cplusplus 5329extern "C" { 5330#endif 5331char nm_test_var; 5332void nm_test_func(void); 5333void nm_test_func(void){} 5334#ifdef __cplusplus 5335} 5336#endif 5337int main(){nm_test_var='a';nm_test_func();return(0);} 5338_LT_EOF 5339 5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5341 (eval $ac_compile) 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); }; then 5345 # Now try to grab the symbols. 5346 nlist=conftest.nm 5347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5349 ac_status=$? 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); } && test -s "$nlist"; then 5352 # Try sorting and uniquifying the output. 5353 if sort "$nlist" | uniq > "$nlist"T; then 5354 mv -f "$nlist"T "$nlist" 5355 else 5356 rm -f "$nlist"T 5357 fi 5358 5359 # Make sure that we snagged all the symbols we need. 5360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5362 cat <<_LT_EOF > conftest.$ac_ext 5363#ifdef __cplusplus 5364extern "C" { 5365#endif 5366 5367_LT_EOF 5368 # Now generate the symbol file. 5369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5370 5371 cat <<_LT_EOF >> conftest.$ac_ext 5372 5373/* The mapping between symbol names and symbols. */ 5374const struct { 5375 const char *name; 5376 void *address; 5377} 5378lt__PROGRAM__LTX_preloaded_symbols[] = 5379{ 5380 { "@PROGRAM@", (void *) 0 }, 5381_LT_EOF 5382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5383 cat <<\_LT_EOF >> conftest.$ac_ext 5384 {0, (void *) 0} 5385}; 5386 5387/* This works around a problem in FreeBSD linker */ 5388#ifdef FREEBSD_WORKAROUND 5389static const void *lt_preloaded_setup() { 5390 return lt__PROGRAM__LTX_preloaded_symbols; 5391} 5392#endif 5393 5394#ifdef __cplusplus 5395} 5396#endif 5397_LT_EOF 5398 # Now try linking the two files. 5399 mv conftest.$ac_objext conftstm.$ac_objext 5400 lt_save_LIBS="$LIBS" 5401 lt_save_CFLAGS="$CFLAGS" 5402 LIBS="conftstm.$ac_objext" 5403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5405 (eval $ac_link) 2>&5 5406 ac_status=$? 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5409 pipe_works=yes 5410 fi 5411 LIBS="$lt_save_LIBS" 5412 CFLAGS="$lt_save_CFLAGS" 5413 else 5414 echo "cannot find nm_test_func in $nlist" >&5 5415 fi 5416 else 5417 echo "cannot find nm_test_var in $nlist" >&5 5418 fi 5419 else 5420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5421 fi 5422 else 5423 echo "$progname: failed program was:" >&5 5424 cat conftest.$ac_ext >&5 5425 fi 5426 rm -rf conftest* conftst* 5427 5428 # Do not use the global_symbol_pipe unless it works. 5429 if test "$pipe_works" = yes; then 5430 break 5431 else 5432 lt_cv_sys_global_symbol_pipe= 5433 fi 5434done 5435 5436fi 5437 5438if test -z "$lt_cv_sys_global_symbol_pipe"; then 5439 lt_cv_sys_global_symbol_to_cdecl= 5440fi 5441if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5442 { echo "$as_me:$LINENO: result: failed" >&5 5443echo "${ECHO_T}failed" >&6; } 5444else 5445 { echo "$as_me:$LINENO: result: ok" >&5 5446echo "${ECHO_T}ok" >&6; } 5447fi 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471# Check whether --enable-libtool-lock was given. 5472if test "${enable_libtool_lock+set}" = set; then 5473 enableval=$enable_libtool_lock; 5474fi 5475 5476test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5477 5478# Some flags need to be propagated to the compiler or linker for good 5479# libtool support. 5480case $host in 5481ia64-*-hpux*) 5482 # Find out which ABI we are using. 5483 echo 'int i;' > conftest.$ac_ext 5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5485 (eval $ac_compile) 2>&5 5486 ac_status=$? 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); }; then 5489 case `/usr/bin/file conftest.$ac_objext` in 5490 *ELF-32*) 5491 HPUX_IA64_MODE="32" 5492 ;; 5493 *ELF-64*) 5494 HPUX_IA64_MODE="64" 5495 ;; 5496 esac 5497 fi 5498 rm -rf conftest* 5499 ;; 5500*-*-irix6*) 5501 # Find out which ABI we are using. 5502 echo '#line 5502 "configure"' > conftest.$ac_ext 5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5504 (eval $ac_compile) 2>&5 5505 ac_status=$? 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); }; then 5508 if test "$lt_cv_prog_gnu_ld" = yes; then 5509 case `/usr/bin/file conftest.$ac_objext` in 5510 *32-bit*) 5511 LD="${LD-ld} -melf32bsmip" 5512 ;; 5513 *N32*) 5514 LD="${LD-ld} -melf32bmipn32" 5515 ;; 5516 *64-bit*) 5517 LD="${LD-ld} -melf64bmip" 5518 ;; 5519 esac 5520 else 5521 case `/usr/bin/file conftest.$ac_objext` in 5522 *32-bit*) 5523 LD="${LD-ld} -32" 5524 ;; 5525 *N32*) 5526 LD="${LD-ld} -n32" 5527 ;; 5528 *64-bit*) 5529 LD="${LD-ld} -64" 5530 ;; 5531 esac 5532 fi 5533 fi 5534 rm -rf conftest* 5535 ;; 5536 5537x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5538s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5539 # Find out which ABI we are using. 5540 echo 'int i;' > conftest.$ac_ext 5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5542 (eval $ac_compile) 2>&5 5543 ac_status=$? 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545 (exit $ac_status); }; then 5546 case `/usr/bin/file conftest.o` in 5547 *32-bit*) 5548 case $host in 5549 x86_64-*kfreebsd*-gnu) 5550 LD="${LD-ld} -m elf_i386_fbsd" 5551 ;; 5552 x86_64-*linux*) 5553 LD="${LD-ld} -m elf_i386" 5554 ;; 5555 ppc64-*linux*|powerpc64-*linux*) 5556 LD="${LD-ld} -m elf32ppclinux" 5557 ;; 5558 s390x-*linux*) 5559 LD="${LD-ld} -m elf_s390" 5560 ;; 5561 sparc64-*linux*) 5562 LD="${LD-ld} -m elf32_sparc" 5563 ;; 5564 esac 5565 ;; 5566 *64-bit*) 5567 case $host in 5568 x86_64-*kfreebsd*-gnu) 5569 LD="${LD-ld} -m elf_x86_64_fbsd" 5570 ;; 5571 x86_64-*linux*) 5572 LD="${LD-ld} -m elf_x86_64" 5573 ;; 5574 ppc*-*linux*|powerpc*-*linux*) 5575 LD="${LD-ld} -m elf64ppc" 5576 ;; 5577 s390*-*linux*|s390*-*tpf*) 5578 LD="${LD-ld} -m elf64_s390" 5579 ;; 5580 sparc*-*linux*) 5581 LD="${LD-ld} -m elf64_sparc" 5582 ;; 5583 esac 5584 ;; 5585 esac 5586 fi 5587 rm -rf conftest* 5588 ;; 5589 5590*-*-sco3.2v5*) 5591 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5592 SAVE_CFLAGS="$CFLAGS" 5593 CFLAGS="$CFLAGS -belf" 5594 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5595echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5596if test "${lt_cv_cc_needs_belf+set}" = set; then 5597 echo $ECHO_N "(cached) $ECHO_C" >&6 5598else 5599 ac_ext=c 5600ac_cpp='$CPP $CPPFLAGS' 5601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5603ac_compiler_gnu=$ac_cv_c_compiler_gnu 5604 5605 cat >conftest.$ac_ext <<_ACEOF 5606/* confdefs.h. */ 5607_ACEOF 5608cat confdefs.h >>conftest.$ac_ext 5609cat >>conftest.$ac_ext <<_ACEOF 5610/* end confdefs.h. */ 5611 5612int 5613main () 5614{ 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620rm -f conftest.$ac_objext conftest$ac_exeext 5621if { (ac_try="$ac_link" 5622case "(($ac_try" in 5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5624 *) ac_try_echo=$ac_try;; 5625esac 5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5627 (eval "$ac_link") 2>conftest.er1 5628 ac_status=$? 5629 grep -v '^ *+' conftest.er1 >conftest.err 5630 rm -f conftest.er1 5631 cat conftest.err >&5 5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); } && { 5634 test -z "$ac_c_werror_flag" || 5635 test ! -s conftest.err 5636 } && test -s conftest$ac_exeext && 5637 $as_test_x conftest$ac_exeext; then 5638 lt_cv_cc_needs_belf=yes 5639else 5640 echo "$as_me: failed program was:" >&5 5641sed 's/^/| /' conftest.$ac_ext >&5 5642 5643 lt_cv_cc_needs_belf=no 5644fi 5645 5646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5647 conftest$ac_exeext conftest.$ac_ext 5648 ac_ext=c 5649ac_cpp='$CPP $CPPFLAGS' 5650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5652ac_compiler_gnu=$ac_cv_c_compiler_gnu 5653 5654fi 5655{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5656echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5657 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5659 CFLAGS="$SAVE_CFLAGS" 5660 fi 5661 ;; 5662sparc*-*solaris*) 5663 # Find out which ABI we are using. 5664 echo 'int i;' > conftest.$ac_ext 5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5666 (eval $ac_compile) 2>&5 5667 ac_status=$? 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669 (exit $ac_status); }; then 5670 case `/usr/bin/file conftest.o` in 5671 *64-bit*) 5672 case $lt_cv_prog_gnu_ld in 5673 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5674 *) 5675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5676 LD="${LD-ld} -64" 5677 fi 5678 ;; 5679 esac 5680 ;; 5681 esac 5682 fi 5683 rm -rf conftest* 5684 ;; 5685esac 5686 5687need_locks="$enable_libtool_lock" 5688 5689 5690 case $host_os in 5691 rhapsody* | darwin*) 5692 if test -n "$ac_tool_prefix"; then 5693 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5694set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5695{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5697if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5698 echo $ECHO_N "(cached) $ECHO_C" >&6 5699else 5700 if test -n "$DSYMUTIL"; then 5701 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5702else 5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5704for as_dir in $PATH 5705do 5706 IFS=$as_save_IFS 5707 test -z "$as_dir" && as_dir=. 5708 for ac_exec_ext in '' $ac_executable_extensions; do 5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5710 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5712 break 2 5713 fi 5714done 5715done 5716IFS=$as_save_IFS 5717 5718fi 5719fi 5720DSYMUTIL=$ac_cv_prog_DSYMUTIL 5721if test -n "$DSYMUTIL"; then 5722 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5723echo "${ECHO_T}$DSYMUTIL" >&6; } 5724else 5725 { echo "$as_me:$LINENO: result: no" >&5 5726echo "${ECHO_T}no" >&6; } 5727fi 5728 5729 5730fi 5731if test -z "$ac_cv_prog_DSYMUTIL"; then 5732 ac_ct_DSYMUTIL=$DSYMUTIL 5733 # Extract the first word of "dsymutil", so it can be a program name with args. 5734set dummy dsymutil; ac_word=$2 5735{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5737if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5738 echo $ECHO_N "(cached) $ECHO_C" >&6 5739else 5740 if test -n "$ac_ct_DSYMUTIL"; then 5741 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5742else 5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744for as_dir in $PATH 5745do 5746 IFS=$as_save_IFS 5747 test -z "$as_dir" && as_dir=. 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5750 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5761if test -n "$ac_ct_DSYMUTIL"; then 5762 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5763echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 5764else 5765 { echo "$as_me:$LINENO: result: no" >&5 5766echo "${ECHO_T}no" >&6; } 5767fi 5768 5769 if test "x$ac_ct_DSYMUTIL" = x; then 5770 DSYMUTIL=":" 5771 else 5772 case $cross_compiling:$ac_tool_warned in 5773yes:) 5774{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5775whose name does not start with the host triplet. If you think this 5776configuration is useful to you, please write to autoconf@gnu.org." >&5 5777echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5778whose name does not start with the host triplet. If you think this 5779configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5780ac_tool_warned=yes ;; 5781esac 5782 DSYMUTIL=$ac_ct_DSYMUTIL 5783 fi 5784else 5785 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5786fi 5787 5788 if test -n "$ac_tool_prefix"; then 5789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5790set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5791{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5793if test "${ac_cv_prog_NMEDIT+set}" = set; then 5794 echo $ECHO_N "(cached) $ECHO_C" >&6 5795else 5796 if test -n "$NMEDIT"; then 5797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5798else 5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5800for as_dir in $PATH 5801do 5802 IFS=$as_save_IFS 5803 test -z "$as_dir" && as_dir=. 5804 for ac_exec_ext in '' $ac_executable_extensions; do 5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5808 break 2 5809 fi 5810done 5811done 5812IFS=$as_save_IFS 5813 5814fi 5815fi 5816NMEDIT=$ac_cv_prog_NMEDIT 5817if test -n "$NMEDIT"; then 5818 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 5819echo "${ECHO_T}$NMEDIT" >&6; } 5820else 5821 { echo "$as_me:$LINENO: result: no" >&5 5822echo "${ECHO_T}no" >&6; } 5823fi 5824 5825 5826fi 5827if test -z "$ac_cv_prog_NMEDIT"; then 5828 ac_ct_NMEDIT=$NMEDIT 5829 # Extract the first word of "nmedit", so it can be a program name with args. 5830set dummy nmedit; ac_word=$2 5831{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5833if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5834 echo $ECHO_N "(cached) $ECHO_C" >&6 5835else 5836 if test -n "$ac_ct_NMEDIT"; then 5837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5838else 5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5840for as_dir in $PATH 5841do 5842 IFS=$as_save_IFS 5843 test -z "$as_dir" && as_dir=. 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5846 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5848 break 2 5849 fi 5850done 5851done 5852IFS=$as_save_IFS 5853 5854fi 5855fi 5856ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5857if test -n "$ac_ct_NMEDIT"; then 5858 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5859echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 5860else 5861 { echo "$as_me:$LINENO: result: no" >&5 5862echo "${ECHO_T}no" >&6; } 5863fi 5864 5865 if test "x$ac_ct_NMEDIT" = x; then 5866 NMEDIT=":" 5867 else 5868 case $cross_compiling:$ac_tool_warned in 5869yes:) 5870{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5871whose name does not start with the host triplet. If you think this 5872configuration is useful to you, please write to autoconf@gnu.org." >&5 5873echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5874whose name does not start with the host triplet. If you think this 5875configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5876ac_tool_warned=yes ;; 5877esac 5878 NMEDIT=$ac_ct_NMEDIT 5879 fi 5880else 5881 NMEDIT="$ac_cv_prog_NMEDIT" 5882fi 5883 5884 if test -n "$ac_tool_prefix"; then 5885 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5886set dummy ${ac_tool_prefix}lipo; ac_word=$2 5887{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5889if test "${ac_cv_prog_LIPO+set}" = set; then 5890 echo $ECHO_N "(cached) $ECHO_C" >&6 5891else 5892 if test -n "$LIPO"; then 5893 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5894else 5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5896for as_dir in $PATH 5897do 5898 IFS=$as_save_IFS 5899 test -z "$as_dir" && as_dir=. 5900 for ac_exec_ext in '' $ac_executable_extensions; do 5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5904 break 2 5905 fi 5906done 5907done 5908IFS=$as_save_IFS 5909 5910fi 5911fi 5912LIPO=$ac_cv_prog_LIPO 5913if test -n "$LIPO"; then 5914 { echo "$as_me:$LINENO: result: $LIPO" >&5 5915echo "${ECHO_T}$LIPO" >&6; } 5916else 5917 { echo "$as_me:$LINENO: result: no" >&5 5918echo "${ECHO_T}no" >&6; } 5919fi 5920 5921 5922fi 5923if test -z "$ac_cv_prog_LIPO"; then 5924 ac_ct_LIPO=$LIPO 5925 # Extract the first word of "lipo", so it can be a program name with args. 5926set dummy lipo; ac_word=$2 5927{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5929if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 5931else 5932 if test -n "$ac_ct_LIPO"; then 5933 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5942 ac_cv_prog_ac_ct_LIPO="lipo" 5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5953if test -n "$ac_ct_LIPO"; then 5954 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5955echo "${ECHO_T}$ac_ct_LIPO" >&6; } 5956else 5957 { echo "$as_me:$LINENO: result: no" >&5 5958echo "${ECHO_T}no" >&6; } 5959fi 5960 5961 if test "x$ac_ct_LIPO" = x; then 5962 LIPO=":" 5963 else 5964 case $cross_compiling:$ac_tool_warned in 5965yes:) 5966{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5967whose name does not start with the host triplet. If you think this 5968configuration is useful to you, please write to autoconf@gnu.org." >&5 5969echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5970whose name does not start with the host triplet. If you think this 5971configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 LIPO=$ac_ct_LIPO 5975 fi 5976else 5977 LIPO="$ac_cv_prog_LIPO" 5978fi 5979 5980 if test -n "$ac_tool_prefix"; then 5981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5982set dummy ${ac_tool_prefix}otool; ac_word=$2 5983{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5985if test "${ac_cv_prog_OTOOL+set}" = set; then 5986 echo $ECHO_N "(cached) $ECHO_C" >&6 5987else 5988 if test -n "$OTOOL"; then 5989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003done 6004IFS=$as_save_IFS 6005 6006fi 6007fi 6008OTOOL=$ac_cv_prog_OTOOL 6009if test -n "$OTOOL"; then 6010 { echo "$as_me:$LINENO: result: $OTOOL" >&5 6011echo "${ECHO_T}$OTOOL" >&6; } 6012else 6013 { echo "$as_me:$LINENO: result: no" >&5 6014echo "${ECHO_T}no" >&6; } 6015fi 6016 6017 6018fi 6019if test -z "$ac_cv_prog_OTOOL"; then 6020 ac_ct_OTOOL=$OTOOL 6021 # Extract the first word of "otool", so it can be a program name with args. 6022set dummy otool; ac_word=$2 6023{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6025if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6026 echo $ECHO_N "(cached) $ECHO_C" >&6 6027else 6028 if test -n "$ac_ct_OTOOL"; then 6029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6038 ac_cv_prog_ac_ct_OTOOL="otool" 6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6049if test -n "$ac_ct_OTOOL"; then 6050 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6051echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 6052else 6053 { echo "$as_me:$LINENO: result: no" >&5 6054echo "${ECHO_T}no" >&6; } 6055fi 6056 6057 if test "x$ac_ct_OTOOL" = x; then 6058 OTOOL=":" 6059 else 6060 case $cross_compiling:$ac_tool_warned in 6061yes:) 6062{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6063whose name does not start with the host triplet. If you think this 6064configuration is useful to you, please write to autoconf@gnu.org." >&5 6065echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6066whose name does not start with the host triplet. If you think this 6067configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6068ac_tool_warned=yes ;; 6069esac 6070 OTOOL=$ac_ct_OTOOL 6071 fi 6072else 6073 OTOOL="$ac_cv_prog_OTOOL" 6074fi 6075 6076 if test -n "$ac_tool_prefix"; then 6077 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6078set dummy ${ac_tool_prefix}otool64; ac_word=$2 6079{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6081if test "${ac_cv_prog_OTOOL64+set}" = set; then 6082 echo $ECHO_N "(cached) $ECHO_C" >&6 6083else 6084 if test -n "$OTOOL64"; then 6085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6086else 6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088for as_dir in $PATH 6089do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098done 6099done 6100IFS=$as_save_IFS 6101 6102fi 6103fi 6104OTOOL64=$ac_cv_prog_OTOOL64 6105if test -n "$OTOOL64"; then 6106 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 6107echo "${ECHO_T}$OTOOL64" >&6; } 6108else 6109 { echo "$as_me:$LINENO: result: no" >&5 6110echo "${ECHO_T}no" >&6; } 6111fi 6112 6113 6114fi 6115if test -z "$ac_cv_prog_OTOOL64"; then 6116 ac_ct_OTOOL64=$OTOOL64 6117 # Extract the first word of "otool64", so it can be a program name with args. 6118set dummy otool64; ac_word=$2 6119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6121if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6122 echo $ECHO_N "(cached) $ECHO_C" >&6 6123else 6124 if test -n "$ac_ct_OTOOL64"; then 6125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6126else 6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6128for as_dir in $PATH 6129do 6130 IFS=$as_save_IFS 6131 test -z "$as_dir" && as_dir=. 6132 for ac_exec_ext in '' $ac_executable_extensions; do 6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6134 ac_cv_prog_ac_ct_OTOOL64="otool64" 6135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6136 break 2 6137 fi 6138done 6139done 6140IFS=$as_save_IFS 6141 6142fi 6143fi 6144ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6145if test -n "$ac_ct_OTOOL64"; then 6146 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6147echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 6148else 6149 { echo "$as_me:$LINENO: result: no" >&5 6150echo "${ECHO_T}no" >&6; } 6151fi 6152 6153 if test "x$ac_ct_OTOOL64" = x; then 6154 OTOOL64=":" 6155 else 6156 case $cross_compiling:$ac_tool_warned in 6157yes:) 6158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6159whose name does not start with the host triplet. If you think this 6160configuration is useful to you, please write to autoconf@gnu.org." >&5 6161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6162whose name does not start with the host triplet. If you think this 6163configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6164ac_tool_warned=yes ;; 6165esac 6166 OTOOL64=$ac_ct_OTOOL64 6167 fi 6168else 6169 OTOOL64="$ac_cv_prog_OTOOL64" 6170fi 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6199echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6200if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6201 echo $ECHO_N "(cached) $ECHO_C" >&6 6202else 6203 lt_cv_apple_cc_single_mod=no 6204 if test -z "${LT_MULTI_MODULE}"; then 6205 # By default we will add the -single_module flag. You can override 6206 # by either setting the environment variable LT_MULTI_MODULE 6207 # non-empty at configure time, or by adding -multi_module to the 6208 # link flags. 6209 rm -rf libconftest.dylib* 6210 echo "int foo(void){return 1;}" > conftest.c 6211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6212-dynamiclib -Wl,-single_module conftest.c" >&5 6213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6215 _lt_result=$? 6216 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6217 lt_cv_apple_cc_single_mod=yes 6218 else 6219 cat conftest.err >&5 6220 fi 6221 rm -rf libconftest.dylib* 6222 rm -f conftest.* 6223 fi 6224fi 6225{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6226echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6227 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6228echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6229if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6230 echo $ECHO_N "(cached) $ECHO_C" >&6 6231else 6232 lt_cv_ld_exported_symbols_list=no 6233 save_LDFLAGS=$LDFLAGS 6234 echo "_main" > conftest.sym 6235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6236 cat >conftest.$ac_ext <<_ACEOF 6237/* confdefs.h. */ 6238_ACEOF 6239cat confdefs.h >>conftest.$ac_ext 6240cat >>conftest.$ac_ext <<_ACEOF 6241/* end confdefs.h. */ 6242 6243int 6244main () 6245{ 6246 6247 ; 6248 return 0; 6249} 6250_ACEOF 6251rm -f conftest.$ac_objext conftest$ac_exeext 6252if { (ac_try="$ac_link" 6253case "(($ac_try" in 6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6255 *) ac_try_echo=$ac_try;; 6256esac 6257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6258 (eval "$ac_link") 2>conftest.er1 6259 ac_status=$? 6260 grep -v '^ *+' conftest.er1 >conftest.err 6261 rm -f conftest.er1 6262 cat conftest.err >&5 6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); } && { 6265 test -z "$ac_c_werror_flag" || 6266 test ! -s conftest.err 6267 } && test -s conftest$ac_exeext && 6268 $as_test_x conftest$ac_exeext; then 6269 lt_cv_ld_exported_symbols_list=yes 6270else 6271 echo "$as_me: failed program was:" >&5 6272sed 's/^/| /' conftest.$ac_ext >&5 6273 6274 lt_cv_ld_exported_symbols_list=no 6275fi 6276 6277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6278 conftest$ac_exeext conftest.$ac_ext 6279 LDFLAGS="$save_LDFLAGS" 6280 6281fi 6282{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6283echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6284 case $host_os in 6285 rhapsody* | darwin1.[012]) 6286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6287 darwin1.*) 6288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6289 darwin*) # darwin 5.x on 6290 # if running on 10.5 or later, the deployment target defaults 6291 # to the OS version, if on x86, and 10.4, the deployment 6292 # target defaults to 10.4. Don't you love it? 6293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6294 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6296 10.[012]*) 6297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6298 10.*) 6299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6300 esac 6301 ;; 6302 esac 6303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6304 _lt_dar_single_mod='$single_module' 6305 fi 6306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6308 else 6309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6310 fi 6311 if test "$DSYMUTIL" != ":"; then 6312 _lt_dsymutil='~$DSYMUTIL $lib || :' 6313 else 6314 _lt_dsymutil= 6315 fi 6316 ;; 6317 esac 6318 6319ac_ext=c 6320ac_cpp='$CPP $CPPFLAGS' 6321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6323ac_compiler_gnu=$ac_cv_c_compiler_gnu 6324{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6325echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 6326# On Suns, sometimes $CPP names a directory. 6327if test -n "$CPP" && test -d "$CPP"; then 6328 CPP= 6329fi 6330if test -z "$CPP"; then 6331 if test "${ac_cv_prog_CPP+set}" = set; then 6332 echo $ECHO_N "(cached) $ECHO_C" >&6 6333else 6334 # Double quotes because CPP needs to be expanded 6335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6336 do 6337 ac_preproc_ok=false 6338for ac_c_preproc_warn_flag in '' yes 6339do 6340 # Use a header file that comes with gcc, so configuring glibc 6341 # with a fresh cross-compiler works. 6342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6343 # <limits.h> exists even on freestanding compilers. 6344 # On the NeXT, cc -E runs the code through the compiler's parser, 6345 # not just through cpp. "Syntax error" is here to catch this case. 6346 cat >conftest.$ac_ext <<_ACEOF 6347/* confdefs.h. */ 6348_ACEOF 6349cat confdefs.h >>conftest.$ac_ext 6350cat >>conftest.$ac_ext <<_ACEOF 6351/* end confdefs.h. */ 6352#ifdef __STDC__ 6353# include <limits.h> 6354#else 6355# include <assert.h> 6356#endif 6357 Syntax error 6358_ACEOF 6359if { (ac_try="$ac_cpp conftest.$ac_ext" 6360case "(($ac_try" in 6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6362 *) ac_try_echo=$ac_try;; 6363esac 6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6366 ac_status=$? 6367 grep -v '^ *+' conftest.er1 >conftest.err 6368 rm -f conftest.er1 6369 cat conftest.err >&5 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); } >/dev/null && { 6372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6373 test ! -s conftest.err 6374 }; then 6375 : 6376else 6377 echo "$as_me: failed program was:" >&5 6378sed 's/^/| /' conftest.$ac_ext >&5 6379 6380 # Broken: fails on valid input. 6381continue 6382fi 6383 6384rm -f conftest.err conftest.$ac_ext 6385 6386 # OK, works on sane cases. Now check whether nonexistent headers 6387 # can be detected and how. 6388 cat >conftest.$ac_ext <<_ACEOF 6389/* confdefs.h. */ 6390_ACEOF 6391cat confdefs.h >>conftest.$ac_ext 6392cat >>conftest.$ac_ext <<_ACEOF 6393/* end confdefs.h. */ 6394#include <ac_nonexistent.h> 6395_ACEOF 6396if { (ac_try="$ac_cpp conftest.$ac_ext" 6397case "(($ac_try" in 6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6399 *) ac_try_echo=$ac_try;; 6400esac 6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6403 ac_status=$? 6404 grep -v '^ *+' conftest.er1 >conftest.err 6405 rm -f conftest.er1 6406 cat conftest.err >&5 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); } >/dev/null && { 6409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6410 test ! -s conftest.err 6411 }; then 6412 # Broken: success on invalid input. 6413continue 6414else 6415 echo "$as_me: failed program was:" >&5 6416sed 's/^/| /' conftest.$ac_ext >&5 6417 6418 # Passes both tests. 6419ac_preproc_ok=: 6420break 6421fi 6422 6423rm -f conftest.err conftest.$ac_ext 6424 6425done 6426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6427rm -f conftest.err conftest.$ac_ext 6428if $ac_preproc_ok; then 6429 break 6430fi 6431 6432 done 6433 ac_cv_prog_CPP=$CPP 6434 6435fi 6436 CPP=$ac_cv_prog_CPP 6437else 6438 ac_cv_prog_CPP=$CPP 6439fi 6440{ echo "$as_me:$LINENO: result: $CPP" >&5 6441echo "${ECHO_T}$CPP" >&6; } 6442ac_preproc_ok=false 6443for ac_c_preproc_warn_flag in '' yes 6444do 6445 # Use a header file that comes with gcc, so configuring glibc 6446 # with a fresh cross-compiler works. 6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6448 # <limits.h> exists even on freestanding compilers. 6449 # On the NeXT, cc -E runs the code through the compiler's parser, 6450 # not just through cpp. "Syntax error" is here to catch this case. 6451 cat >conftest.$ac_ext <<_ACEOF 6452/* confdefs.h. */ 6453_ACEOF 6454cat confdefs.h >>conftest.$ac_ext 6455cat >>conftest.$ac_ext <<_ACEOF 6456/* end confdefs.h. */ 6457#ifdef __STDC__ 6458# include <limits.h> 6459#else 6460# include <assert.h> 6461#endif 6462 Syntax error 6463_ACEOF 6464if { (ac_try="$ac_cpp conftest.$ac_ext" 6465case "(($ac_try" in 6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6467 *) ac_try_echo=$ac_try;; 6468esac 6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6471 ac_status=$? 6472 grep -v '^ *+' conftest.er1 >conftest.err 6473 rm -f conftest.er1 6474 cat conftest.err >&5 6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6476 (exit $ac_status); } >/dev/null && { 6477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6478 test ! -s conftest.err 6479 }; then 6480 : 6481else 6482 echo "$as_me: failed program was:" >&5 6483sed 's/^/| /' conftest.$ac_ext >&5 6484 6485 # Broken: fails on valid input. 6486continue 6487fi 6488 6489rm -f conftest.err conftest.$ac_ext 6490 6491 # OK, works on sane cases. Now check whether nonexistent headers 6492 # can be detected and how. 6493 cat >conftest.$ac_ext <<_ACEOF 6494/* confdefs.h. */ 6495_ACEOF 6496cat confdefs.h >>conftest.$ac_ext 6497cat >>conftest.$ac_ext <<_ACEOF 6498/* end confdefs.h. */ 6499#include <ac_nonexistent.h> 6500_ACEOF 6501if { (ac_try="$ac_cpp conftest.$ac_ext" 6502case "(($ac_try" in 6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6504 *) ac_try_echo=$ac_try;; 6505esac 6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6508 ac_status=$? 6509 grep -v '^ *+' conftest.er1 >conftest.err 6510 rm -f conftest.er1 6511 cat conftest.err >&5 6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6513 (exit $ac_status); } >/dev/null && { 6514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6515 test ! -s conftest.err 6516 }; then 6517 # Broken: success on invalid input. 6518continue 6519else 6520 echo "$as_me: failed program was:" >&5 6521sed 's/^/| /' conftest.$ac_ext >&5 6522 6523 # Passes both tests. 6524ac_preproc_ok=: 6525break 6526fi 6527 6528rm -f conftest.err conftest.$ac_ext 6529 6530done 6531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6532rm -f conftest.err conftest.$ac_ext 6533if $ac_preproc_ok; then 6534 : 6535else 6536 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6537See \`config.log' for more details." >&5 6538echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6539See \`config.log' for more details." >&2;} 6540 { (exit 1); exit 1; }; } 6541fi 6542 6543ac_ext=c 6544ac_cpp='$CPP $CPPFLAGS' 6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6547ac_compiler_gnu=$ac_cv_c_compiler_gnu 6548 6549 6550{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6551echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6552if test "${ac_cv_header_stdc+set}" = set; then 6553 echo $ECHO_N "(cached) $ECHO_C" >&6 6554else 6555 cat >conftest.$ac_ext <<_ACEOF 6556/* confdefs.h. */ 6557_ACEOF 6558cat confdefs.h >>conftest.$ac_ext 6559cat >>conftest.$ac_ext <<_ACEOF 6560/* end confdefs.h. */ 6561#include <stdlib.h> 6562#include <stdarg.h> 6563#include <string.h> 6564#include <float.h> 6565 6566int 6567main () 6568{ 6569 6570 ; 6571 return 0; 6572} 6573_ACEOF 6574rm -f conftest.$ac_objext 6575if { (ac_try="$ac_compile" 6576case "(($ac_try" in 6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6578 *) ac_try_echo=$ac_try;; 6579esac 6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6581 (eval "$ac_compile") 2>conftest.er1 6582 ac_status=$? 6583 grep -v '^ *+' conftest.er1 >conftest.err 6584 rm -f conftest.er1 6585 cat conftest.err >&5 6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6587 (exit $ac_status); } && { 6588 test -z "$ac_c_werror_flag" || 6589 test ! -s conftest.err 6590 } && test -s conftest.$ac_objext; then 6591 ac_cv_header_stdc=yes 6592else 6593 echo "$as_me: failed program was:" >&5 6594sed 's/^/| /' conftest.$ac_ext >&5 6595 6596 ac_cv_header_stdc=no 6597fi 6598 6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6600 6601if test $ac_cv_header_stdc = yes; then 6602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6603 cat >conftest.$ac_ext <<_ACEOF 6604/* confdefs.h. */ 6605_ACEOF 6606cat confdefs.h >>conftest.$ac_ext 6607cat >>conftest.$ac_ext <<_ACEOF 6608/* end confdefs.h. */ 6609#include <string.h> 6610 6611_ACEOF 6612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6613 $EGREP "memchr" >/dev/null 2>&1; then 6614 : 6615else 6616 ac_cv_header_stdc=no 6617fi 6618rm -f conftest* 6619 6620fi 6621 6622if test $ac_cv_header_stdc = yes; then 6623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6624 cat >conftest.$ac_ext <<_ACEOF 6625/* confdefs.h. */ 6626_ACEOF 6627cat confdefs.h >>conftest.$ac_ext 6628cat >>conftest.$ac_ext <<_ACEOF 6629/* end confdefs.h. */ 6630#include <stdlib.h> 6631 6632_ACEOF 6633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6634 $EGREP "free" >/dev/null 2>&1; then 6635 : 6636else 6637 ac_cv_header_stdc=no 6638fi 6639rm -f conftest* 6640 6641fi 6642 6643if test $ac_cv_header_stdc = yes; then 6644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6645 if test "$cross_compiling" = yes; then 6646 : 6647else 6648 cat >conftest.$ac_ext <<_ACEOF 6649/* confdefs.h. */ 6650_ACEOF 6651cat confdefs.h >>conftest.$ac_ext 6652cat >>conftest.$ac_ext <<_ACEOF 6653/* end confdefs.h. */ 6654#include <ctype.h> 6655#include <stdlib.h> 6656#if ((' ' & 0x0FF) == 0x020) 6657# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6658# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6659#else 6660# define ISLOWER(c) \ 6661 (('a' <= (c) && (c) <= 'i') \ 6662 || ('j' <= (c) && (c) <= 'r') \ 6663 || ('s' <= (c) && (c) <= 'z')) 6664# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6665#endif 6666 6667#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6668int 6669main () 6670{ 6671 int i; 6672 for (i = 0; i < 256; i++) 6673 if (XOR (islower (i), ISLOWER (i)) 6674 || toupper (i) != TOUPPER (i)) 6675 return 2; 6676 return 0; 6677} 6678_ACEOF 6679rm -f conftest$ac_exeext 6680if { (ac_try="$ac_link" 6681case "(($ac_try" in 6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6683 *) ac_try_echo=$ac_try;; 6684esac 6685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6686 (eval "$ac_link") 2>&5 6687 ac_status=$? 6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6690 { (case "(($ac_try" in 6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6692 *) ac_try_echo=$ac_try;; 6693esac 6694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6695 (eval "$ac_try") 2>&5 6696 ac_status=$? 6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6698 (exit $ac_status); }; }; then 6699 : 6700else 6701 echo "$as_me: program exited with status $ac_status" >&5 6702echo "$as_me: failed program was:" >&5 6703sed 's/^/| /' conftest.$ac_ext >&5 6704 6705( exit $ac_status ) 6706ac_cv_header_stdc=no 6707fi 6708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6709fi 6710 6711 6712fi 6713fi 6714{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6715echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6716if test $ac_cv_header_stdc = yes; then 6717 6718cat >>confdefs.h <<\_ACEOF 6719#define STDC_HEADERS 1 6720_ACEOF 6721 6722fi 6723 6724# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6735 inttypes.h stdint.h unistd.h 6736do 6737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6738{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6741 echo $ECHO_N "(cached) $ECHO_C" >&6 6742else 6743 cat >conftest.$ac_ext <<_ACEOF 6744/* confdefs.h. */ 6745_ACEOF 6746cat confdefs.h >>conftest.$ac_ext 6747cat >>conftest.$ac_ext <<_ACEOF 6748/* end confdefs.h. */ 6749$ac_includes_default 6750 6751#include <$ac_header> 6752_ACEOF 6753rm -f conftest.$ac_objext 6754if { (ac_try="$ac_compile" 6755case "(($ac_try" in 6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6757 *) ac_try_echo=$ac_try;; 6758esac 6759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6760 (eval "$ac_compile") 2>conftest.er1 6761 ac_status=$? 6762 grep -v '^ *+' conftest.er1 >conftest.err 6763 rm -f conftest.er1 6764 cat conftest.err >&5 6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6766 (exit $ac_status); } && { 6767 test -z "$ac_c_werror_flag" || 6768 test ! -s conftest.err 6769 } && test -s conftest.$ac_objext; then 6770 eval "$as_ac_Header=yes" 6771else 6772 echo "$as_me: failed program was:" >&5 6773sed 's/^/| /' conftest.$ac_ext >&5 6774 6775 eval "$as_ac_Header=no" 6776fi 6777 6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6779fi 6780ac_res=`eval echo '${'$as_ac_Header'}'` 6781 { echo "$as_me:$LINENO: result: $ac_res" >&5 6782echo "${ECHO_T}$ac_res" >&6; } 6783if test `eval echo '${'$as_ac_Header'}'` = yes; then 6784 cat >>confdefs.h <<_ACEOF 6785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6786_ACEOF 6787 6788fi 6789 6790done 6791 6792 6793 6794for ac_header in dlfcn.h 6795do 6796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6797{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6800 echo $ECHO_N "(cached) $ECHO_C" >&6 6801else 6802 cat >conftest.$ac_ext <<_ACEOF 6803/* confdefs.h. */ 6804_ACEOF 6805cat confdefs.h >>conftest.$ac_ext 6806cat >>conftest.$ac_ext <<_ACEOF 6807/* end confdefs.h. */ 6808$ac_includes_default 6809 6810#include <$ac_header> 6811_ACEOF 6812rm -f conftest.$ac_objext 6813if { (ac_try="$ac_compile" 6814case "(($ac_try" in 6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6816 *) ac_try_echo=$ac_try;; 6817esac 6818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6819 (eval "$ac_compile") 2>conftest.er1 6820 ac_status=$? 6821 grep -v '^ *+' conftest.er1 >conftest.err 6822 rm -f conftest.er1 6823 cat conftest.err >&5 6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6825 (exit $ac_status); } && { 6826 test -z "$ac_c_werror_flag" || 6827 test ! -s conftest.err 6828 } && test -s conftest.$ac_objext; then 6829 eval "$as_ac_Header=yes" 6830else 6831 echo "$as_me: failed program was:" >&5 6832sed 's/^/| /' conftest.$ac_ext >&5 6833 6834 eval "$as_ac_Header=no" 6835fi 6836 6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6838fi 6839ac_res=`eval echo '${'$as_ac_Header'}'` 6840 { echo "$as_me:$LINENO: result: $ac_res" >&5 6841echo "${ECHO_T}$ac_res" >&6; } 6842if test `eval echo '${'$as_ac_Header'}'` = yes; then 6843 cat >>confdefs.h <<_ACEOF 6844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6845_ACEOF 6846 6847fi 6848 6849done 6850 6851 6852 6853# Set options 6854 6855 6856 6857 enable_dlopen=no 6858 6859 6860 enable_win32_dll=no 6861 6862 6863 # Check whether --enable-shared was given. 6864if test "${enable_shared+set}" = set; then 6865 enableval=$enable_shared; p=${PACKAGE-default} 6866 case $enableval in 6867 yes) enable_shared=yes ;; 6868 no) enable_shared=no ;; 6869 *) 6870 enable_shared=no 6871 # Look at the argument we got. We use all the common list separators. 6872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6873 for pkg in $enableval; do 6874 IFS="$lt_save_ifs" 6875 if test "X$pkg" = "X$p"; then 6876 enable_shared=yes 6877 fi 6878 done 6879 IFS="$lt_save_ifs" 6880 ;; 6881 esac 6882else 6883 enable_shared=yes 6884fi 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 # Check whether --enable-static was given. 6895if test "${enable_static+set}" = set; then 6896 enableval=$enable_static; p=${PACKAGE-default} 6897 case $enableval in 6898 yes) enable_static=yes ;; 6899 no) enable_static=no ;; 6900 *) 6901 enable_static=no 6902 # Look at the argument we got. We use all the common list separators. 6903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6904 for pkg in $enableval; do 6905 IFS="$lt_save_ifs" 6906 if test "X$pkg" = "X$p"; then 6907 enable_static=yes 6908 fi 6909 done 6910 IFS="$lt_save_ifs" 6911 ;; 6912 esac 6913else 6914 enable_static=yes 6915fi 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926# Check whether --with-pic was given. 6927if test "${with_pic+set}" = set; then 6928 withval=$with_pic; pic_mode="$withval" 6929else 6930 pic_mode=default 6931fi 6932 6933 6934test -z "$pic_mode" && pic_mode=default 6935 6936 6937 6938 6939 6940 6941 6942 # Check whether --enable-fast-install was given. 6943if test "${enable_fast_install+set}" = set; then 6944 enableval=$enable_fast_install; p=${PACKAGE-default} 6945 case $enableval in 6946 yes) enable_fast_install=yes ;; 6947 no) enable_fast_install=no ;; 6948 *) 6949 enable_fast_install=no 6950 # Look at the argument we got. We use all the common list separators. 6951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6952 for pkg in $enableval; do 6953 IFS="$lt_save_ifs" 6954 if test "X$pkg" = "X$p"; then 6955 enable_fast_install=yes 6956 fi 6957 done 6958 IFS="$lt_save_ifs" 6959 ;; 6960 esac 6961else 6962 enable_fast_install=yes 6963fi 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975# This can be used to rebuild libtool when needed 6976LIBTOOL_DEPS="$ltmain" 6977 6978# Always use our own libtool. 6979LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005test -z "$LN_S" && LN_S="ln -s" 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020if test -n "${ZSH_VERSION+set}" ; then 7021 setopt NO_GLOB_SUBST 7022fi 7023 7024{ echo "$as_me:$LINENO: checking for objdir" >&5 7025echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7026if test "${lt_cv_objdir+set}" = set; then 7027 echo $ECHO_N "(cached) $ECHO_C" >&6 7028else 7029 rm -f .libs 2>/dev/null 7030mkdir .libs 2>/dev/null 7031if test -d .libs; then 7032 lt_cv_objdir=.libs 7033else 7034 # MS-DOS does not allow filenames that begin with a dot. 7035 lt_cv_objdir=_libs 7036fi 7037rmdir .libs 2>/dev/null 7038fi 7039{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7040echo "${ECHO_T}$lt_cv_objdir" >&6; } 7041objdir=$lt_cv_objdir 7042 7043 7044 7045 7046 7047cat >>confdefs.h <<_ACEOF 7048#define LT_OBJDIR "$lt_cv_objdir/" 7049_ACEOF 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067case $host_os in 7068aix3*) 7069 # AIX sometimes has problems with the GCC collect2 program. For some 7070 # reason, if we set the COLLECT_NAMES environment variable, the problems 7071 # vanish in a puff of smoke. 7072 if test "X${COLLECT_NAMES+set}" != Xset; then 7073 COLLECT_NAMES= 7074 export COLLECT_NAMES 7075 fi 7076 ;; 7077esac 7078 7079# Sed substitution that helps us do robust quoting. It backslashifies 7080# metacharacters that are still active within double-quoted strings. 7081sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7082 7083# Same as above, but do not quote variable references. 7084double_quote_subst='s/\(["`\\]\)/\\\1/g' 7085 7086# Sed substitution to delay expansion of an escaped shell variable in a 7087# double_quote_subst'ed string. 7088delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7089 7090# Sed substitution to delay expansion of an escaped single quote. 7091delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7092 7093# Sed substitution to avoid accidental globbing in evaled expressions 7094no_glob_subst='s/\*/\\\*/g' 7095 7096# Global variables: 7097ofile=libtool 7098can_build_shared=yes 7099 7100# All known linkers require a `.a' archive for static linking (except MSVC, 7101# which needs '.lib'). 7102libext=a 7103 7104with_gnu_ld="$lt_cv_prog_gnu_ld" 7105 7106old_CC="$CC" 7107old_CFLAGS="$CFLAGS" 7108 7109# Set sane defaults for various variables 7110test -z "$CC" && CC=cc 7111test -z "$LTCC" && LTCC=$CC 7112test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7113test -z "$LD" && LD=ld 7114test -z "$ac_objext" && ac_objext=o 7115 7116for cc_temp in $compiler""; do 7117 case $cc_temp in 7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7120 \-*) ;; 7121 *) break;; 7122 esac 7123done 7124cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7125 7126 7127# Only perform the check for file, if the check method requires it 7128test -z "$MAGIC_CMD" && MAGIC_CMD=file 7129case $deplibs_check_method in 7130file_magic*) 7131 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7132 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7133echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7134if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7135 echo $ECHO_N "(cached) $ECHO_C" >&6 7136else 7137 case $MAGIC_CMD in 7138[\\/*] | ?:[\\/]*) 7139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7140 ;; 7141*) 7142 lt_save_MAGIC_CMD="$MAGIC_CMD" 7143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7145 for ac_dir in $ac_dummy; do 7146 IFS="$lt_save_ifs" 7147 test -z "$ac_dir" && ac_dir=. 7148 if test -f $ac_dir/${ac_tool_prefix}file; then 7149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7150 if test -n "$file_magic_test_file"; then 7151 case $deplibs_check_method in 7152 "file_magic "*) 7153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7156 $EGREP "$file_magic_regex" > /dev/null; then 7157 : 7158 else 7159 cat <<_LT_EOF 1>&2 7160 7161*** Warning: the command libtool uses to detect shared libraries, 7162*** $file_magic_cmd, produces output that libtool cannot recognize. 7163*** The result is that libtool may fail to recognize shared libraries 7164*** as such. This will affect the creation of libtool libraries that 7165*** depend on shared libraries, but programs linked with such libtool 7166*** libraries will work regardless of this problem. Nevertheless, you 7167*** may want to report the problem to your system manager and/or to 7168*** bug-libtool@gnu.org 7169 7170_LT_EOF 7171 fi ;; 7172 esac 7173 fi 7174 break 7175 fi 7176 done 7177 IFS="$lt_save_ifs" 7178 MAGIC_CMD="$lt_save_MAGIC_CMD" 7179 ;; 7180esac 7181fi 7182 7183MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7184if test -n "$MAGIC_CMD"; then 7185 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7186echo "${ECHO_T}$MAGIC_CMD" >&6; } 7187else 7188 { echo "$as_me:$LINENO: result: no" >&5 7189echo "${ECHO_T}no" >&6; } 7190fi 7191 7192 7193 7194 7195 7196if test -z "$lt_cv_path_MAGIC_CMD"; then 7197 if test -n "$ac_tool_prefix"; then 7198 { echo "$as_me:$LINENO: checking for file" >&5 7199echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7200if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7201 echo $ECHO_N "(cached) $ECHO_C" >&6 7202else 7203 case $MAGIC_CMD in 7204[\\/*] | ?:[\\/]*) 7205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7206 ;; 7207*) 7208 lt_save_MAGIC_CMD="$MAGIC_CMD" 7209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7211 for ac_dir in $ac_dummy; do 7212 IFS="$lt_save_ifs" 7213 test -z "$ac_dir" && ac_dir=. 7214 if test -f $ac_dir/file; then 7215 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7216 if test -n "$file_magic_test_file"; then 7217 case $deplibs_check_method in 7218 "file_magic "*) 7219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7222 $EGREP "$file_magic_regex" > /dev/null; then 7223 : 7224 else 7225 cat <<_LT_EOF 1>&2 7226 7227*** Warning: the command libtool uses to detect shared libraries, 7228*** $file_magic_cmd, produces output that libtool cannot recognize. 7229*** The result is that libtool may fail to recognize shared libraries 7230*** as such. This will affect the creation of libtool libraries that 7231*** depend on shared libraries, but programs linked with such libtool 7232*** libraries will work regardless of this problem. Nevertheless, you 7233*** may want to report the problem to your system manager and/or to 7234*** bug-libtool@gnu.org 7235 7236_LT_EOF 7237 fi ;; 7238 esac 7239 fi 7240 break 7241 fi 7242 done 7243 IFS="$lt_save_ifs" 7244 MAGIC_CMD="$lt_save_MAGIC_CMD" 7245 ;; 7246esac 7247fi 7248 7249MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7250if test -n "$MAGIC_CMD"; then 7251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7252echo "${ECHO_T}$MAGIC_CMD" >&6; } 7253else 7254 { echo "$as_me:$LINENO: result: no" >&5 7255echo "${ECHO_T}no" >&6; } 7256fi 7257 7258 7259 else 7260 MAGIC_CMD=: 7261 fi 7262fi 7263 7264 fi 7265 ;; 7266esac 7267 7268# Use C for the default configuration in the libtool script 7269 7270lt_save_CC="$CC" 7271ac_ext=c 7272ac_cpp='$CPP $CPPFLAGS' 7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7275ac_compiler_gnu=$ac_cv_c_compiler_gnu 7276 7277 7278# Source file extension for C test sources. 7279ac_ext=c 7280 7281# Object file extension for compiled C test sources. 7282objext=o 7283objext=$objext 7284 7285# Code to be used in simple compile tests 7286lt_simple_compile_test_code="int some_variable = 0;" 7287 7288# Code to be used in simple link tests 7289lt_simple_link_test_code='int main(){return(0);}' 7290 7291 7292 7293 7294 7295 7296 7297# If no C compiler was specified, use CC. 7298LTCC=${LTCC-"$CC"} 7299 7300# If no C compiler flags were specified, use CFLAGS. 7301LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7302 7303# Allow CC to be a program name with arguments. 7304compiler=$CC 7305 7306# Save the default compiler, since it gets overwritten when the other 7307# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7308compiler_DEFAULT=$CC 7309 7310# save warnings/boilerplate of simple test code 7311ac_outfile=conftest.$ac_objext 7312echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7313eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7314_lt_compiler_boilerplate=`cat conftest.err` 7315$RM conftest* 7316 7317ac_outfile=conftest.$ac_objext 7318echo "$lt_simple_link_test_code" >conftest.$ac_ext 7319eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7320_lt_linker_boilerplate=`cat conftest.err` 7321$RM -r conftest* 7322 7323 7324## CAVEAT EMPTOR: 7325## There is no encapsulation within the following macros, do not change 7326## the running order or otherwise move them around unless you know exactly 7327## what you are doing... 7328if test -n "$compiler"; then 7329 7330lt_prog_compiler_no_builtin_flag= 7331 7332if test "$GCC" = yes; then 7333 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7334 7335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7336echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7337if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7338 echo $ECHO_N "(cached) $ECHO_C" >&6 7339else 7340 lt_cv_prog_compiler_rtti_exceptions=no 7341 ac_outfile=conftest.$ac_objext 7342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7343 lt_compiler_flag="-fno-rtti -fno-exceptions" 7344 # Insert the option either (1) after the last *FLAGS variable, or 7345 # (2) before a word containing "conftest.", or (3) at the end. 7346 # Note that $ac_compile itself does not contain backslashes and begins 7347 # with a dollar sign (not a hyphen), so the echo should work correctly. 7348 # The option is referenced via a variable to avoid confusing sed. 7349 lt_compile=`echo "$ac_compile" | $SED \ 7350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7352 -e 's:$: $lt_compiler_flag:'` 7353 (eval echo "\"\$as_me:7353: $lt_compile\"" >&5) 7354 (eval "$lt_compile" 2>conftest.err) 7355 ac_status=$? 7356 cat conftest.err >&5 7357 echo "$as_me:7357: \$? = $ac_status" >&5 7358 if (exit $ac_status) && test -s "$ac_outfile"; then 7359 # The compiler can only warn and ignore the option if not recognized 7360 # So say no if there are warnings other than the usual output. 7361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7364 lt_cv_prog_compiler_rtti_exceptions=yes 7365 fi 7366 fi 7367 $RM conftest* 7368 7369fi 7370{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7371echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7372 7373if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7374 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7375else 7376 : 7377fi 7378 7379fi 7380 7381 7382 7383 7384 7385 7386 lt_prog_compiler_wl= 7387lt_prog_compiler_pic= 7388lt_prog_compiler_static= 7389 7390{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7391echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7392 7393 if test "$GCC" = yes; then 7394 lt_prog_compiler_wl='-Wl,' 7395 lt_prog_compiler_static='-static' 7396 7397 case $host_os in 7398 aix*) 7399 # All AIX code is PIC. 7400 if test "$host_cpu" = ia64; then 7401 # AIX 5 now supports IA64 processor 7402 lt_prog_compiler_static='-Bstatic' 7403 fi 7404 ;; 7405 7406 amigaos*) 7407 case $host_cpu in 7408 powerpc) 7409 # see comment about AmigaOS4 .so support 7410 lt_prog_compiler_pic='-fPIC' 7411 ;; 7412 m68k) 7413 # FIXME: we need at least 68020 code to build shared libraries, but 7414 # adding the `-m68020' flag to GCC prevents building anything better, 7415 # like `-m68040'. 7416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7417 ;; 7418 esac 7419 ;; 7420 7421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7422 # PIC is the default for these OSes. 7423 ;; 7424 7425 mingw* | cygwin* | pw32* | os2* | cegcc*) 7426 # This hack is so that the source file can tell whether it is being 7427 # built for inclusion in a dll (and should export symbols for example). 7428 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7429 # (--disable-auto-import) libraries 7430 lt_prog_compiler_pic='-DDLL_EXPORT' 7431 ;; 7432 7433 darwin* | rhapsody*) 7434 # PIC is the default on this platform 7435 # Common symbols not allowed in MH_DYLIB files 7436 lt_prog_compiler_pic='-fno-common' 7437 ;; 7438 7439 hpux*) 7440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7442 # sets the default TLS model and affects inlining. 7443 case $host_cpu in 7444 hppa*64*) 7445 # +Z the default 7446 ;; 7447 *) 7448 lt_prog_compiler_pic='-fPIC' 7449 ;; 7450 esac 7451 ;; 7452 7453 interix[3-9]*) 7454 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7455 # Instead, we relocate shared libraries at runtime. 7456 ;; 7457 7458 msdosdjgpp*) 7459 # Just because we use GCC doesn't mean we suddenly get shared libraries 7460 # on systems that don't support them. 7461 lt_prog_compiler_can_build_shared=no 7462 enable_shared=no 7463 ;; 7464 7465 *nto* | *qnx*) 7466 # QNX uses GNU C++, but need to define -shared option too, otherwise 7467 # it will coredump. 7468 lt_prog_compiler_pic='-fPIC -shared' 7469 ;; 7470 7471 sysv4*MP*) 7472 if test -d /usr/nec; then 7473 lt_prog_compiler_pic=-Kconform_pic 7474 fi 7475 ;; 7476 7477 *) 7478 lt_prog_compiler_pic='-fPIC' 7479 ;; 7480 esac 7481 else 7482 # PORTME Check for flag to pass linker flags through the system compiler. 7483 case $host_os in 7484 aix*) 7485 lt_prog_compiler_wl='-Wl,' 7486 if test "$host_cpu" = ia64; then 7487 # AIX 5 now supports IA64 processor 7488 lt_prog_compiler_static='-Bstatic' 7489 else 7490 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7491 fi 7492 ;; 7493 7494 mingw* | cygwin* | pw32* | os2* | cegcc*) 7495 # This hack is so that the source file can tell whether it is being 7496 # built for inclusion in a dll (and should export symbols for example). 7497 lt_prog_compiler_pic='-DDLL_EXPORT' 7498 ;; 7499 7500 hpux9* | hpux10* | hpux11*) 7501 lt_prog_compiler_wl='-Wl,' 7502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7503 # not for PA HP-UX. 7504 case $host_cpu in 7505 hppa*64*|ia64*) 7506 # +Z the default 7507 ;; 7508 *) 7509 lt_prog_compiler_pic='+Z' 7510 ;; 7511 esac 7512 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7513 lt_prog_compiler_static='${wl}-a ${wl}archive' 7514 ;; 7515 7516 irix5* | irix6* | nonstopux*) 7517 lt_prog_compiler_wl='-Wl,' 7518 # PIC (with -KPIC) is the default. 7519 lt_prog_compiler_static='-non_shared' 7520 ;; 7521 7522 linux* | k*bsd*-gnu) 7523 case $cc_basename in 7524 # old Intel for x86_64 which still supported -KPIC. 7525 ecc*) 7526 lt_prog_compiler_wl='-Wl,' 7527 lt_prog_compiler_pic='-KPIC' 7528 lt_prog_compiler_static='-static' 7529 ;; 7530 # icc used to be incompatible with GCC. 7531 # ICC 10 doesn't accept -KPIC any more. 7532 icc* | ifort*) 7533 lt_prog_compiler_wl='-Wl,' 7534 lt_prog_compiler_pic='-fPIC' 7535 lt_prog_compiler_static='-static' 7536 ;; 7537 # Lahey Fortran 8.1. 7538 lf95*) 7539 lt_prog_compiler_wl='-Wl,' 7540 lt_prog_compiler_pic='--shared' 7541 lt_prog_compiler_static='--static' 7542 ;; 7543 pgcc* | pgf77* | pgf90* | pgf95*) 7544 # Portland Group compilers (*not* the Pentium gcc compiler, 7545 # which looks to be a dead project) 7546 lt_prog_compiler_wl='-Wl,' 7547 lt_prog_compiler_pic='-fpic' 7548 lt_prog_compiler_static='-Bstatic' 7549 ;; 7550 ccc*) 7551 lt_prog_compiler_wl='-Wl,' 7552 # All Alpha code is PIC. 7553 lt_prog_compiler_static='-non_shared' 7554 ;; 7555 xl*) 7556 # IBM XL C 8.0/Fortran 10.1 on PPC 7557 lt_prog_compiler_wl='-Wl,' 7558 lt_prog_compiler_pic='-qpic' 7559 lt_prog_compiler_static='-qstaticlink' 7560 ;; 7561 *) 7562 case `$CC -V 2>&1 | sed 5q` in 7563 *Sun\ C*) 7564 # Sun C 5.9 7565 lt_prog_compiler_pic='-KPIC' 7566 lt_prog_compiler_static='-Bstatic' 7567 lt_prog_compiler_wl='-Wl,' 7568 ;; 7569 *Sun\ F*) 7570 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7571 lt_prog_compiler_pic='-KPIC' 7572 lt_prog_compiler_static='-Bstatic' 7573 lt_prog_compiler_wl='' 7574 ;; 7575 esac 7576 ;; 7577 esac 7578 ;; 7579 7580 newsos6) 7581 lt_prog_compiler_pic='-KPIC' 7582 lt_prog_compiler_static='-Bstatic' 7583 ;; 7584 7585 *nto* | *qnx*) 7586 # QNX uses GNU C++, but need to define -shared option too, otherwise 7587 # it will coredump. 7588 lt_prog_compiler_pic='-fPIC -shared' 7589 ;; 7590 7591 osf3* | osf4* | osf5*) 7592 lt_prog_compiler_wl='-Wl,' 7593 # All OSF/1 code is PIC. 7594 lt_prog_compiler_static='-non_shared' 7595 ;; 7596 7597 rdos*) 7598 lt_prog_compiler_static='-non_shared' 7599 ;; 7600 7601 solaris*) 7602 lt_prog_compiler_pic='-KPIC' 7603 lt_prog_compiler_static='-Bstatic' 7604 case $cc_basename in 7605 f77* | f90* | f95*) 7606 lt_prog_compiler_wl='-Qoption ld ';; 7607 *) 7608 lt_prog_compiler_wl='-Wl,';; 7609 esac 7610 ;; 7611 7612 sunos4*) 7613 lt_prog_compiler_wl='-Qoption ld ' 7614 lt_prog_compiler_pic='-PIC' 7615 lt_prog_compiler_static='-Bstatic' 7616 ;; 7617 7618 sysv4 | sysv4.2uw2* | sysv4.3*) 7619 lt_prog_compiler_wl='-Wl,' 7620 lt_prog_compiler_pic='-KPIC' 7621 lt_prog_compiler_static='-Bstatic' 7622 ;; 7623 7624 sysv4*MP*) 7625 if test -d /usr/nec ;then 7626 lt_prog_compiler_pic='-Kconform_pic' 7627 lt_prog_compiler_static='-Bstatic' 7628 fi 7629 ;; 7630 7631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7632 lt_prog_compiler_wl='-Wl,' 7633 lt_prog_compiler_pic='-KPIC' 7634 lt_prog_compiler_static='-Bstatic' 7635 ;; 7636 7637 unicos*) 7638 lt_prog_compiler_wl='-Wl,' 7639 lt_prog_compiler_can_build_shared=no 7640 ;; 7641 7642 uts4*) 7643 lt_prog_compiler_pic='-pic' 7644 lt_prog_compiler_static='-Bstatic' 7645 ;; 7646 7647 *) 7648 lt_prog_compiler_can_build_shared=no 7649 ;; 7650 esac 7651 fi 7652 7653case $host_os in 7654 # For platforms which do not support PIC, -DPIC is meaningless: 7655 *djgpp*) 7656 lt_prog_compiler_pic= 7657 ;; 7658 *) 7659 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7660 ;; 7661esac 7662{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7663echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7664 7665 7666 7667 7668 7669 7670# 7671# Check to make sure the PIC flag actually works. 7672# 7673if test -n "$lt_prog_compiler_pic"; then 7674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7676if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7677 echo $ECHO_N "(cached) $ECHO_C" >&6 7678else 7679 lt_cv_prog_compiler_pic_works=no 7680 ac_outfile=conftest.$ac_objext 7681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7683 # Insert the option either (1) after the last *FLAGS variable, or 7684 # (2) before a word containing "conftest.", or (3) at the end. 7685 # Note that $ac_compile itself does not contain backslashes and begins 7686 # with a dollar sign (not a hyphen), so the echo should work correctly. 7687 # The option is referenced via a variable to avoid confusing sed. 7688 lt_compile=`echo "$ac_compile" | $SED \ 7689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7691 -e 's:$: $lt_compiler_flag:'` 7692 (eval echo "\"\$as_me:7692: $lt_compile\"" >&5) 7693 (eval "$lt_compile" 2>conftest.err) 7694 ac_status=$? 7695 cat conftest.err >&5 7696 echo "$as_me:7696: \$? = $ac_status" >&5 7697 if (exit $ac_status) && test -s "$ac_outfile"; then 7698 # The compiler can only warn and ignore the option if not recognized 7699 # So say no if there are warnings other than the usual output. 7700 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7703 lt_cv_prog_compiler_pic_works=yes 7704 fi 7705 fi 7706 $RM conftest* 7707 7708fi 7709{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7710echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7711 7712if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7713 case $lt_prog_compiler_pic in 7714 "" | " "*) ;; 7715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7716 esac 7717else 7718 lt_prog_compiler_pic= 7719 lt_prog_compiler_can_build_shared=no 7720fi 7721 7722fi 7723 7724 7725 7726 7727 7728 7729# 7730# Check to make sure the static flag actually works. 7731# 7732wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7733{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7734echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7735if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7736 echo $ECHO_N "(cached) $ECHO_C" >&6 7737else 7738 lt_cv_prog_compiler_static_works=no 7739 save_LDFLAGS="$LDFLAGS" 7740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7741 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7743 # The linker can only warn and ignore the option if not recognized 7744 # So say no if there are warnings 7745 if test -s conftest.err; then 7746 # Append any errors to the config.log. 7747 cat conftest.err 1>&5 7748 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7750 if diff conftest.exp conftest.er2 >/dev/null; then 7751 lt_cv_prog_compiler_static_works=yes 7752 fi 7753 else 7754 lt_cv_prog_compiler_static_works=yes 7755 fi 7756 fi 7757 $RM -r conftest* 7758 LDFLAGS="$save_LDFLAGS" 7759 7760fi 7761{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7762echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7763 7764if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7765 : 7766else 7767 lt_prog_compiler_static= 7768fi 7769 7770 7771 7772 7773 7774 7775 7776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7778if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7779 echo $ECHO_N "(cached) $ECHO_C" >&6 7780else 7781 lt_cv_prog_compiler_c_o=no 7782 $RM -r conftest 2>/dev/null 7783 mkdir conftest 7784 cd conftest 7785 mkdir out 7786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7787 7788 lt_compiler_flag="-o out/conftest2.$ac_objext" 7789 # Insert the option either (1) after the last *FLAGS variable, or 7790 # (2) before a word containing "conftest.", or (3) at the end. 7791 # Note that $ac_compile itself does not contain backslashes and begins 7792 # with a dollar sign (not a hyphen), so the echo should work correctly. 7793 lt_compile=`echo "$ac_compile" | $SED \ 7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7796 -e 's:$: $lt_compiler_flag:'` 7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5) 7798 (eval "$lt_compile" 2>out/conftest.err) 7799 ac_status=$? 7800 cat out/conftest.err >&5 7801 echo "$as_me:7801: \$? = $ac_status" >&5 7802 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7803 then 7804 # The compiler can only warn and ignore the option if not recognized 7805 # So say no if there are warnings 7806 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7809 lt_cv_prog_compiler_c_o=yes 7810 fi 7811 fi 7812 chmod u+w . 2>&5 7813 $RM conftest* 7814 # SGI C++ compiler will create directory out/ii_files/ for 7815 # template instantiation 7816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7817 $RM out/* && rmdir out 7818 cd .. 7819 $RM -r conftest 7820 $RM conftest* 7821 7822fi 7823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7824echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7825 7826 7827 7828 7829 7830 7831 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7832echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7833if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7834 echo $ECHO_N "(cached) $ECHO_C" >&6 7835else 7836 lt_cv_prog_compiler_c_o=no 7837 $RM -r conftest 2>/dev/null 7838 mkdir conftest 7839 cd conftest 7840 mkdir out 7841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7842 7843 lt_compiler_flag="-o out/conftest2.$ac_objext" 7844 # Insert the option either (1) after the last *FLAGS variable, or 7845 # (2) before a word containing "conftest.", or (3) at the end. 7846 # Note that $ac_compile itself does not contain backslashes and begins 7847 # with a dollar sign (not a hyphen), so the echo should work correctly. 7848 lt_compile=`echo "$ac_compile" | $SED \ 7849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7851 -e 's:$: $lt_compiler_flag:'` 7852 (eval echo "\"\$as_me:7852: $lt_compile\"" >&5) 7853 (eval "$lt_compile" 2>out/conftest.err) 7854 ac_status=$? 7855 cat out/conftest.err >&5 7856 echo "$as_me:7856: \$? = $ac_status" >&5 7857 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7858 then 7859 # The compiler can only warn and ignore the option if not recognized 7860 # So say no if there are warnings 7861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7864 lt_cv_prog_compiler_c_o=yes 7865 fi 7866 fi 7867 chmod u+w . 2>&5 7868 $RM conftest* 7869 # SGI C++ compiler will create directory out/ii_files/ for 7870 # template instantiation 7871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7872 $RM out/* && rmdir out 7873 cd .. 7874 $RM -r conftest 7875 $RM conftest* 7876 7877fi 7878{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7879echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7880 7881 7882 7883 7884hard_links="nottested" 7885if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7886 # do not overwrite the value of need_locks provided by the user 7887 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7889 hard_links=yes 7890 $RM conftest* 7891 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7892 touch conftest.a 7893 ln conftest.a conftest.b 2>&5 || hard_links=no 7894 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7895 { echo "$as_me:$LINENO: result: $hard_links" >&5 7896echo "${ECHO_T}$hard_links" >&6; } 7897 if test "$hard_links" = no; then 7898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7900 need_locks=warn 7901 fi 7902else 7903 need_locks=no 7904fi 7905 7906 7907 7908 7909 7910 7911 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7912echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7913 7914 runpath_var= 7915 allow_undefined_flag= 7916 always_export_symbols=no 7917 archive_cmds= 7918 archive_expsym_cmds= 7919 compiler_needs_object=no 7920 enable_shared_with_static_runtimes=no 7921 export_dynamic_flag_spec= 7922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7923 hardcode_automatic=no 7924 hardcode_direct=no 7925 hardcode_direct_absolute=no 7926 hardcode_libdir_flag_spec= 7927 hardcode_libdir_flag_spec_ld= 7928 hardcode_libdir_separator= 7929 hardcode_minus_L=no 7930 hardcode_shlibpath_var=unsupported 7931 inherit_rpath=no 7932 link_all_deplibs=unknown 7933 module_cmds= 7934 module_expsym_cmds= 7935 old_archive_from_new_cmds= 7936 old_archive_from_expsyms_cmds= 7937 thread_safe_flag_spec= 7938 whole_archive_flag_spec= 7939 # include_expsyms should be a list of space-separated symbols to be *always* 7940 # included in the symbol list 7941 include_expsyms= 7942 # exclude_expsyms can be an extended regexp of symbols to exclude 7943 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7945 # as well as any symbol that contains `d'. 7946 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7948 # platforms (ab)use it in PIC code, but their linkers get confused if 7949 # the symbol is explicitly referenced. Since portable code cannot 7950 # rely on this symbol name, it's probably fine to never include it in 7951 # preloaded symbol tables. 7952 # Exclude shared library initialization/finalization symbols. 7953 extract_expsyms_cmds= 7954 7955 case $host_os in 7956 cygwin* | mingw* | pw32* | cegcc*) 7957 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7958 # When not using gcc, we currently assume that we are using 7959 # Microsoft Visual C++. 7960 if test "$GCC" != yes; then 7961 with_gnu_ld=no 7962 fi 7963 ;; 7964 interix*) 7965 # we just hope/assume this is gcc and not c89 (= MSVC++) 7966 with_gnu_ld=yes 7967 ;; 7968 openbsd*) 7969 with_gnu_ld=no 7970 ;; 7971 esac 7972 7973 ld_shlibs=yes 7974 if test "$with_gnu_ld" = yes; then 7975 # If archive_cmds runs LD, not CC, wlarc should be empty 7976 wlarc='${wl}' 7977 7978 # Set some defaults for GNU ld with shared library support. These 7979 # are reset later if shared libraries are not supported. Putting them 7980 # here allows them to be overridden if necessary. 7981 runpath_var=LD_RUN_PATH 7982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7983 export_dynamic_flag_spec='${wl}--export-dynamic' 7984 # ancient GNU ld didn't support --whole-archive et. al. 7985 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7986 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7987 else 7988 whole_archive_flag_spec= 7989 fi 7990 supports_anon_versioning=no 7991 case `$LD -v 2>&1` in 7992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7995 *\ 2.11.*) ;; # other 2.11 versions 7996 *) supports_anon_versioning=yes ;; 7997 esac 7998 7999 # See if GNU ld supports shared libraries. 8000 case $host_os in 8001 aix[3-9]*) 8002 # On AIX/PPC, the GNU linker is very broken 8003 if test "$host_cpu" != ia64; then 8004 ld_shlibs=no 8005 cat <<_LT_EOF 1>&2 8006 8007*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8008*** to be unable to reliably create shared libraries on AIX. 8009*** Therefore, libtool is disabling shared libraries support. If you 8010*** really care for shared libraries, you may want to modify your PATH 8011*** so that a non-GNU linker is found, and then restart. 8012 8013_LT_EOF 8014 fi 8015 ;; 8016 8017 amigaos*) 8018 case $host_cpu in 8019 powerpc) 8020 # see comment about AmigaOS4 .so support 8021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8022 archive_expsym_cmds='' 8023 ;; 8024 m68k) 8025 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)' 8026 hardcode_libdir_flag_spec='-L$libdir' 8027 hardcode_minus_L=yes 8028 ;; 8029 esac 8030 ;; 8031 8032 beos*) 8033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8034 allow_undefined_flag=unsupported 8035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8036 # support --undefined. This deserves some investigation. FIXME 8037 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8038 else 8039 ld_shlibs=no 8040 fi 8041 ;; 8042 8043 cygwin* | mingw* | pw32* | cegcc*) 8044 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8045 # as there is no search path for DLLs. 8046 hardcode_libdir_flag_spec='-L$libdir' 8047 allow_undefined_flag=unsupported 8048 always_export_symbols=no 8049 enable_shared_with_static_runtimes=yes 8050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8051 8052 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8054 # If the export-symbols file already is a .def file (1st line 8055 # is EXPORTS), use it as is; otherwise, prepend... 8056 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8057 cp $export_symbols $output_objdir/$soname.def; 8058 else 8059 echo EXPORTS > $output_objdir/$soname.def; 8060 cat $export_symbols >> $output_objdir/$soname.def; 8061 fi~ 8062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8063 else 8064 ld_shlibs=no 8065 fi 8066 ;; 8067 8068 interix[3-9]*) 8069 hardcode_direct=no 8070 hardcode_shlibpath_var=no 8071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8072 export_dynamic_flag_spec='${wl}-E' 8073 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8074 # Instead, shared libraries are loaded at an image base (0x10000000 by 8075 # default) and relocated if they conflict, which is a slow very memory 8076 # consuming and fragmenting process. To avoid this, we pick a random, 8077 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8078 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8079 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8080 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' 8081 ;; 8082 8083 gnu* | linux* | tpf* | k*bsd*-gnu) 8084 tmp_diet=no 8085 if test "$host_os" = linux-dietlibc; then 8086 case $cc_basename in 8087 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8088 esac 8089 fi 8090 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8091 && test "$tmp_diet" = no 8092 then 8093 tmp_addflag= 8094 tmp_sharedflag='-shared' 8095 case $cc_basename,$host_cpu in 8096 pgcc*) # Portland Group C compiler 8097 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' 8098 tmp_addflag=' $pic_flag' 8099 ;; 8100 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8101 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' 8102 tmp_addflag=' $pic_flag -Mnomain' ;; 8103 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8104 tmp_addflag=' -i_dynamic' ;; 8105 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8106 tmp_addflag=' -i_dynamic -nofor_main' ;; 8107 ifc* | ifort*) # Intel Fortran compiler 8108 tmp_addflag=' -nofor_main' ;; 8109 lf95*) # Lahey Fortran 8.1 8110 whole_archive_flag_spec= 8111 tmp_sharedflag='--shared' ;; 8112 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8113 tmp_sharedflag='-qmkshrobj' 8114 tmp_addflag= ;; 8115 esac 8116 case `$CC -V 2>&1 | sed 5q` in 8117 *Sun\ C*) # Sun C 5.9 8118 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' 8119 compiler_needs_object=yes 8120 tmp_sharedflag='-G' ;; 8121 *Sun\ F*) # Sun Fortran 8.3 8122 tmp_sharedflag='-G' ;; 8123 esac 8124 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8125 8126 if test "x$supports_anon_versioning" = xyes; then 8127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8129 echo "local: *; };" >> $output_objdir/$libname.ver~ 8130 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8131 fi 8132 8133 case $cc_basename in 8134 xlf*) 8135 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8136 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8137 hardcode_libdir_flag_spec= 8138 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8139 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8140 if test "x$supports_anon_versioning" = xyes; then 8141 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8143 echo "local: *; };" >> $output_objdir/$libname.ver~ 8144 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8145 fi 8146 ;; 8147 esac 8148 else 8149 ld_shlibs=no 8150 fi 8151 ;; 8152 8153 netbsd*) 8154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8155 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8156 wlarc= 8157 else 8158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8160 fi 8161 ;; 8162 8163 solaris*) 8164 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8165 ld_shlibs=no 8166 cat <<_LT_EOF 1>&2 8167 8168*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8169*** create shared libraries on Solaris systems. Therefore, libtool 8170*** is disabling shared libraries support. We urge you to upgrade GNU 8171*** binutils to release 2.9.1 or newer. Another option is to modify 8172*** your PATH or compiler configuration so that the native linker is 8173*** used, and then restart. 8174 8175_LT_EOF 8176 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8179 else 8180 ld_shlibs=no 8181 fi 8182 ;; 8183 8184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8185 case `$LD -v 2>&1` in 8186 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8187 ld_shlibs=no 8188 cat <<_LT_EOF 1>&2 8189 8190*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8191*** reliably create shared libraries on SCO systems. Therefore, libtool 8192*** is disabling shared libraries support. We urge you to upgrade GNU 8193*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8194*** your PATH or compiler configuration so that the native linker is 8195*** used, and then restart. 8196 8197_LT_EOF 8198 ;; 8199 *) 8200 # For security reasons, it is highly recommended that you always 8201 # use absolute paths for naming shared libraries, and exclude the 8202 # DT_RUNPATH tag from executables and libraries. But doing so 8203 # requires that you compile everything twice, which is a pain. 8204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8208 else 8209 ld_shlibs=no 8210 fi 8211 ;; 8212 esac 8213 ;; 8214 8215 sunos4*) 8216 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8217 wlarc= 8218 hardcode_direct=yes 8219 hardcode_shlibpath_var=no 8220 ;; 8221 8222 *) 8223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8226 else 8227 ld_shlibs=no 8228 fi 8229 ;; 8230 esac 8231 8232 if test "$ld_shlibs" = no; then 8233 runpath_var= 8234 hardcode_libdir_flag_spec= 8235 export_dynamic_flag_spec= 8236 whole_archive_flag_spec= 8237 fi 8238 else 8239 # PORTME fill in a description of your system's linker (not GNU ld) 8240 case $host_os in 8241 aix3*) 8242 allow_undefined_flag=unsupported 8243 always_export_symbols=yes 8244 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' 8245 # Note: this linker hardcodes the directories in LIBPATH if there 8246 # are no directories specified by -L. 8247 hardcode_minus_L=yes 8248 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8249 # Neither direct hardcoding nor static linking is supported with a 8250 # broken collect2. 8251 hardcode_direct=unsupported 8252 fi 8253 ;; 8254 8255 aix[4-9]*) 8256 if test "$host_cpu" = ia64; then 8257 # On IA64, the linker does run time linking by default, so we don't 8258 # have to do anything special. 8259 aix_use_runtimelinking=no 8260 exp_sym_flag='-Bexport' 8261 no_entry_flag="" 8262 else 8263 # If we're using GNU nm, then we don't want the "-C" option. 8264 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8266 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' 8267 else 8268 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' 8269 fi 8270 aix_use_runtimelinking=no 8271 8272 # Test if we are trying to use run time linking or normal 8273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8274 # need to do runtime linking. 8275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8276 for ld_flag in $LDFLAGS; do 8277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8278 aix_use_runtimelinking=yes 8279 break 8280 fi 8281 done 8282 ;; 8283 esac 8284 8285 exp_sym_flag='-bexport' 8286 no_entry_flag='-bnoentry' 8287 fi 8288 8289 # When large executables or shared objects are built, AIX ld can 8290 # have problems creating the table of contents. If linking a library 8291 # or program results in "error TOC overflow" add -mminimal-toc to 8292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8294 8295 archive_cmds='' 8296 hardcode_direct=yes 8297 hardcode_direct_absolute=yes 8298 hardcode_libdir_separator=':' 8299 link_all_deplibs=yes 8300 file_list_spec='${wl}-f,' 8301 8302 if test "$GCC" = yes; then 8303 case $host_os in aix4.[012]|aix4.[012].*) 8304 # We only want to do this on AIX 4.2 and lower, the check 8305 # below for broken collect2 doesn't work under 4.3+ 8306 collect2name=`${CC} -print-prog-name=collect2` 8307 if test -f "$collect2name" && 8308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8309 then 8310 # We have reworked collect2 8311 : 8312 else 8313 # We have old collect2 8314 hardcode_direct=unsupported 8315 # It fails to find uninstalled libraries when the uninstalled 8316 # path is not listed in the libpath. Setting hardcode_minus_L 8317 # to unsupported forces relinking 8318 hardcode_minus_L=yes 8319 hardcode_libdir_flag_spec='-L$libdir' 8320 hardcode_libdir_separator= 8321 fi 8322 ;; 8323 esac 8324 shared_flag='-shared' 8325 if test "$aix_use_runtimelinking" = yes; then 8326 shared_flag="$shared_flag "'${wl}-G' 8327 fi 8328 else 8329 # not using gcc 8330 if test "$host_cpu" = ia64; then 8331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8332 # chokes on -Wl,-G. The following line is correct: 8333 shared_flag='-G' 8334 else 8335 if test "$aix_use_runtimelinking" = yes; then 8336 shared_flag='${wl}-G' 8337 else 8338 shared_flag='${wl}-bM:SRE' 8339 fi 8340 fi 8341 fi 8342 8343 export_dynamic_flag_spec='${wl}-bexpall' 8344 # It seems that -bexpall does not export symbols beginning with 8345 # underscore (_), so it is better to generate a list of symbols to export. 8346 always_export_symbols=yes 8347 if test "$aix_use_runtimelinking" = yes; then 8348 # Warning - without using the other runtime loading flags (-brtl), 8349 # -berok will link without error, but may produce a broken library. 8350 allow_undefined_flag='-berok' 8351 # Determine the default libpath from the value encoded in an 8352 # empty executable. 8353 cat >conftest.$ac_ext <<_ACEOF 8354/* confdefs.h. */ 8355_ACEOF 8356cat confdefs.h >>conftest.$ac_ext 8357cat >>conftest.$ac_ext <<_ACEOF 8358/* end confdefs.h. */ 8359 8360int 8361main () 8362{ 8363 8364 ; 8365 return 0; 8366} 8367_ACEOF 8368rm -f conftest.$ac_objext conftest$ac_exeext 8369if { (ac_try="$ac_link" 8370case "(($ac_try" in 8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8372 *) ac_try_echo=$ac_try;; 8373esac 8374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8375 (eval "$ac_link") 2>conftest.er1 8376 ac_status=$? 8377 grep -v '^ *+' conftest.er1 >conftest.err 8378 rm -f conftest.er1 8379 cat conftest.err >&5 8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8381 (exit $ac_status); } && { 8382 test -z "$ac_c_werror_flag" || 8383 test ! -s conftest.err 8384 } && test -s conftest$ac_exeext && 8385 $as_test_x conftest$ac_exeext; then 8386 8387lt_aix_libpath_sed=' 8388 /Import File Strings/,/^$/ { 8389 /^0/ { 8390 s/^0 *\(.*\)$/\1/ 8391 p 8392 } 8393 }' 8394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8395# Check for a 64-bit object if we didn't find anything. 8396if test -z "$aix_libpath"; then 8397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8398fi 8399else 8400 echo "$as_me: failed program was:" >&5 8401sed 's/^/| /' conftest.$ac_ext >&5 8402 8403 8404fi 8405 8406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8407 conftest$ac_exeext conftest.$ac_ext 8408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8409 8410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8411 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" 8412 else 8413 if test "$host_cpu" = ia64; then 8414 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8415 allow_undefined_flag="-z nodefs" 8416 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" 8417 else 8418 # Determine the default libpath from the value encoded in an 8419 # empty executable. 8420 cat >conftest.$ac_ext <<_ACEOF 8421/* confdefs.h. */ 8422_ACEOF 8423cat confdefs.h >>conftest.$ac_ext 8424cat >>conftest.$ac_ext <<_ACEOF 8425/* end confdefs.h. */ 8426 8427int 8428main () 8429{ 8430 8431 ; 8432 return 0; 8433} 8434_ACEOF 8435rm -f conftest.$ac_objext conftest$ac_exeext 8436if { (ac_try="$ac_link" 8437case "(($ac_try" in 8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8439 *) ac_try_echo=$ac_try;; 8440esac 8441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8442 (eval "$ac_link") 2>conftest.er1 8443 ac_status=$? 8444 grep -v '^ *+' conftest.er1 >conftest.err 8445 rm -f conftest.er1 8446 cat conftest.err >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8448 (exit $ac_status); } && { 8449 test -z "$ac_c_werror_flag" || 8450 test ! -s conftest.err 8451 } && test -s conftest$ac_exeext && 8452 $as_test_x conftest$ac_exeext; then 8453 8454lt_aix_libpath_sed=' 8455 /Import File Strings/,/^$/ { 8456 /^0/ { 8457 s/^0 *\(.*\)$/\1/ 8458 p 8459 } 8460 }' 8461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8462# Check for a 64-bit object if we didn't find anything. 8463if test -z "$aix_libpath"; then 8464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8465fi 8466else 8467 echo "$as_me: failed program was:" >&5 8468sed 's/^/| /' conftest.$ac_ext >&5 8469 8470 8471fi 8472 8473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8474 conftest$ac_exeext conftest.$ac_ext 8475if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8476 8477 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8478 # Warning - without using the other run time loading flags, 8479 # -berok will link without error, but may produce a broken library. 8480 no_undefined_flag=' ${wl}-bernotok' 8481 allow_undefined_flag=' ${wl}-berok' 8482 # Exported symbols can be pulled into shared objects from archives 8483 whole_archive_flag_spec='$convenience' 8484 archive_cmds_need_lc=yes 8485 # This is similar to how AIX traditionally builds its shared libraries. 8486 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' 8487 fi 8488 fi 8489 ;; 8490 8491 amigaos*) 8492 case $host_cpu in 8493 powerpc) 8494 # see comment about AmigaOS4 .so support 8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8496 archive_expsym_cmds='' 8497 ;; 8498 m68k) 8499 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)' 8500 hardcode_libdir_flag_spec='-L$libdir' 8501 hardcode_minus_L=yes 8502 ;; 8503 esac 8504 ;; 8505 8506 bsdi[45]*) 8507 export_dynamic_flag_spec=-rdynamic 8508 ;; 8509 8510 cygwin* | mingw* | pw32* | cegcc*) 8511 # When not using gcc, we currently assume that we are using 8512 # Microsoft Visual C++. 8513 # hardcode_libdir_flag_spec is actually meaningless, as there is 8514 # no search path for DLLs. 8515 hardcode_libdir_flag_spec=' ' 8516 allow_undefined_flag=unsupported 8517 # Tell ltmain to make .lib files, not .a files. 8518 libext=lib 8519 # Tell ltmain to make .dll files, not .so files. 8520 shrext_cmds=".dll" 8521 # FIXME: Setting linknames here is a bad hack. 8522 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8523 # The linker will automatically build a .lib file if we build a DLL. 8524 old_archive_from_new_cmds='true' 8525 # FIXME: Should let the user specify the lib program. 8526 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8527 fix_srcfile_path='`cygpath -w "$srcfile"`' 8528 enable_shared_with_static_runtimes=yes 8529 ;; 8530 8531 darwin* | rhapsody*) 8532 8533 8534 archive_cmds_need_lc=no 8535 hardcode_direct=no 8536 hardcode_automatic=yes 8537 hardcode_shlibpath_var=unsupported 8538 whole_archive_flag_spec='' 8539 link_all_deplibs=yes 8540 allow_undefined_flag="$_lt_dar_allow_undefined" 8541 case $cc_basename in 8542 ifort*) _lt_dar_can_shared=yes ;; 8543 *) _lt_dar_can_shared=$GCC ;; 8544 esac 8545 if test "$_lt_dar_can_shared" = "yes"; then 8546 output_verbose_link_cmd=echo 8547 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8548 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8549 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}" 8550 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}" 8551 8552 else 8553 ld_shlibs=no 8554 fi 8555 8556 ;; 8557 8558 dgux*) 8559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8560 hardcode_libdir_flag_spec='-L$libdir' 8561 hardcode_shlibpath_var=no 8562 ;; 8563 8564 freebsd1*) 8565 ld_shlibs=no 8566 ;; 8567 8568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8569 # support. Future versions do this automatically, but an explicit c++rt0.o 8570 # does not break anything, and helps significantly (at the cost of a little 8571 # extra space). 8572 freebsd2.2*) 8573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8574 hardcode_libdir_flag_spec='-R$libdir' 8575 hardcode_direct=yes 8576 hardcode_shlibpath_var=no 8577 ;; 8578 8579 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8580 freebsd2*) 8581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8582 hardcode_direct=yes 8583 hardcode_minus_L=yes 8584 hardcode_shlibpath_var=no 8585 ;; 8586 8587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8588 freebsd* | dragonfly*) 8589 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8590 hardcode_libdir_flag_spec='-R$libdir' 8591 hardcode_direct=yes 8592 hardcode_shlibpath_var=no 8593 ;; 8594 8595 hpux9*) 8596 if test "$GCC" = yes; then 8597 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' 8598 else 8599 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' 8600 fi 8601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8602 hardcode_libdir_separator=: 8603 hardcode_direct=yes 8604 8605 # hardcode_minus_L: Not really in the search PATH, 8606 # but as the default location of the library. 8607 hardcode_minus_L=yes 8608 export_dynamic_flag_spec='${wl}-E' 8609 ;; 8610 8611 hpux10*) 8612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8613 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8614 else 8615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8616 fi 8617 if test "$with_gnu_ld" = no; then 8618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8619 hardcode_libdir_flag_spec_ld='+b $libdir' 8620 hardcode_libdir_separator=: 8621 hardcode_direct=yes 8622 hardcode_direct_absolute=yes 8623 export_dynamic_flag_spec='${wl}-E' 8624 # hardcode_minus_L: Not really in the search PATH, 8625 # but as the default location of the library. 8626 hardcode_minus_L=yes 8627 fi 8628 ;; 8629 8630 hpux11*) 8631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8632 case $host_cpu in 8633 hppa*64*) 8634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8635 ;; 8636 ia64*) 8637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8638 ;; 8639 *) 8640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8641 ;; 8642 esac 8643 else 8644 case $host_cpu in 8645 hppa*64*) 8646 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8647 ;; 8648 ia64*) 8649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8650 ;; 8651 *) 8652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8653 ;; 8654 esac 8655 fi 8656 if test "$with_gnu_ld" = no; then 8657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8658 hardcode_libdir_separator=: 8659 8660 case $host_cpu in 8661 hppa*64*|ia64*) 8662 hardcode_direct=no 8663 hardcode_shlibpath_var=no 8664 ;; 8665 *) 8666 hardcode_direct=yes 8667 hardcode_direct_absolute=yes 8668 export_dynamic_flag_spec='${wl}-E' 8669 8670 # hardcode_minus_L: Not really in the search PATH, 8671 # but as the default location of the library. 8672 hardcode_minus_L=yes 8673 ;; 8674 esac 8675 fi 8676 ;; 8677 8678 irix5* | irix6* | nonstopux*) 8679 if test "$GCC" = yes; then 8680 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' 8681 # Try to use the -exported_symbol ld option, if it does not 8682 # work, assume that -exports_file does not work either and 8683 # implicitly export all symbols. 8684 save_LDFLAGS="$LDFLAGS" 8685 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8686 cat >conftest.$ac_ext <<_ACEOF 8687int foo(void) {} 8688_ACEOF 8689rm -f conftest.$ac_objext conftest$ac_exeext 8690if { (ac_try="$ac_link" 8691case "(($ac_try" in 8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8693 *) ac_try_echo=$ac_try;; 8694esac 8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8696 (eval "$ac_link") 2>conftest.er1 8697 ac_status=$? 8698 grep -v '^ *+' conftest.er1 >conftest.err 8699 rm -f conftest.er1 8700 cat conftest.err >&5 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 (exit $ac_status); } && { 8703 test -z "$ac_c_werror_flag" || 8704 test ! -s conftest.err 8705 } && test -s conftest$ac_exeext && 8706 $as_test_x conftest$ac_exeext; then 8707 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' 8708 8709else 8710 echo "$as_me: failed program was:" >&5 8711sed 's/^/| /' conftest.$ac_ext >&5 8712 8713 8714fi 8715 8716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8717 conftest$ac_exeext conftest.$ac_ext 8718 LDFLAGS="$save_LDFLAGS" 8719 else 8720 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' 8721 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' 8722 fi 8723 archive_cmds_need_lc='no' 8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8725 hardcode_libdir_separator=: 8726 inherit_rpath=yes 8727 link_all_deplibs=yes 8728 ;; 8729 8730 netbsd*) 8731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8733 else 8734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8735 fi 8736 hardcode_libdir_flag_spec='-R$libdir' 8737 hardcode_direct=yes 8738 hardcode_shlibpath_var=no 8739 ;; 8740 8741 newsos6) 8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8743 hardcode_direct=yes 8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8745 hardcode_libdir_separator=: 8746 hardcode_shlibpath_var=no 8747 ;; 8748 8749 *nto* | *qnx*) 8750 ;; 8751 8752 openbsd*) 8753 if test -f /usr/libexec/ld.so; then 8754 hardcode_direct=yes 8755 hardcode_shlibpath_var=no 8756 hardcode_direct_absolute=yes 8757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8761 export_dynamic_flag_spec='${wl}-E' 8762 else 8763 case $host_os in 8764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8766 hardcode_libdir_flag_spec='-R$libdir' 8767 ;; 8768 *) 8769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8771 ;; 8772 esac 8773 fi 8774 else 8775 ld_shlibs=no 8776 fi 8777 ;; 8778 8779 os2*) 8780 hardcode_libdir_flag_spec='-L$libdir' 8781 hardcode_minus_L=yes 8782 allow_undefined_flag=unsupported 8783 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' 8784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8785 ;; 8786 8787 osf3*) 8788 if test "$GCC" = yes; then 8789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8790 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' 8791 else 8792 allow_undefined_flag=' -expect_unresolved \*' 8793 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' 8794 fi 8795 archive_cmds_need_lc='no' 8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8797 hardcode_libdir_separator=: 8798 ;; 8799 8800 osf4* | osf5*) # as osf3* with the addition of -msym flag 8801 if test "$GCC" = yes; then 8802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8803 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' 8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8805 else 8806 allow_undefined_flag=' -expect_unresolved \*' 8807 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' 8808 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~ 8809 $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' 8810 8811 # Both c and cxx compiler support -rpath directly 8812 hardcode_libdir_flag_spec='-rpath $libdir' 8813 fi 8814 archive_cmds_need_lc='no' 8815 hardcode_libdir_separator=: 8816 ;; 8817 8818 solaris*) 8819 no_undefined_flag=' -z defs' 8820 if test "$GCC" = yes; then 8821 wlarc='${wl}' 8822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8825 else 8826 case `$CC -V 2>&1` in 8827 *"Compilers 5.0"*) 8828 wlarc='' 8829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8832 ;; 8833 *) 8834 wlarc='${wl}' 8835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8838 ;; 8839 esac 8840 fi 8841 hardcode_libdir_flag_spec='-R$libdir' 8842 hardcode_shlibpath_var=no 8843 case $host_os in 8844 solaris2.[0-5] | solaris2.[0-5].*) ;; 8845 *) 8846 # The compiler driver will combine and reorder linker options, 8847 # but understands `-z linker_flag'. GCC discards it without `$wl', 8848 # but is careful enough not to reorder. 8849 # Supported since Solaris 2.6 (maybe 2.5.1?) 8850 if test "$GCC" = yes; then 8851 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8852 else 8853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8854 fi 8855 ;; 8856 esac 8857 link_all_deplibs=yes 8858 ;; 8859 8860 sunos4*) 8861 if test "x$host_vendor" = xsequent; then 8862 # Use $CC to link under sequent, because it throws in some extra .o 8863 # files that make .init and .fini sections work. 8864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8865 else 8866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8867 fi 8868 hardcode_libdir_flag_spec='-L$libdir' 8869 hardcode_direct=yes 8870 hardcode_minus_L=yes 8871 hardcode_shlibpath_var=no 8872 ;; 8873 8874 sysv4) 8875 case $host_vendor in 8876 sni) 8877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8878 hardcode_direct=yes # is this really true??? 8879 ;; 8880 siemens) 8881 ## LD is ld it makes a PLAMLIB 8882 ## CC just makes a GrossModule. 8883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8884 reload_cmds='$CC -r -o $output$reload_objs' 8885 hardcode_direct=no 8886 ;; 8887 motorola) 8888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8890 ;; 8891 esac 8892 runpath_var='LD_RUN_PATH' 8893 hardcode_shlibpath_var=no 8894 ;; 8895 8896 sysv4.3*) 8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8898 hardcode_shlibpath_var=no 8899 export_dynamic_flag_spec='-Bexport' 8900 ;; 8901 8902 sysv4*MP*) 8903 if test -d /usr/nec; then 8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8905 hardcode_shlibpath_var=no 8906 runpath_var=LD_RUN_PATH 8907 hardcode_runpath_var=yes 8908 ld_shlibs=yes 8909 fi 8910 ;; 8911 8912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8913 no_undefined_flag='${wl}-z,text' 8914 archive_cmds_need_lc=no 8915 hardcode_shlibpath_var=no 8916 runpath_var='LD_RUN_PATH' 8917 8918 if test "$GCC" = yes; then 8919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8921 else 8922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8924 fi 8925 ;; 8926 8927 sysv5* | sco3.2v5* | sco5v6*) 8928 # Note: We can NOT use -z defs as we might desire, because we do not 8929 # link with -lc, and that would cause any symbols used from libc to 8930 # always be unresolved, which means just about no library would 8931 # ever link correctly. If we're not using GNU ld we use -z text 8932 # though, which does catch some bad symbols but isn't as heavy-handed 8933 # as -z defs. 8934 no_undefined_flag='${wl}-z,text' 8935 allow_undefined_flag='${wl}-z,nodefs' 8936 archive_cmds_need_lc=no 8937 hardcode_shlibpath_var=no 8938 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8939 hardcode_libdir_separator=':' 8940 link_all_deplibs=yes 8941 export_dynamic_flag_spec='${wl}-Bexport' 8942 runpath_var='LD_RUN_PATH' 8943 8944 if test "$GCC" = yes; then 8945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8947 else 8948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8950 fi 8951 ;; 8952 8953 uts4*) 8954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8955 hardcode_libdir_flag_spec='-L$libdir' 8956 hardcode_shlibpath_var=no 8957 ;; 8958 8959 *) 8960 ld_shlibs=no 8961 ;; 8962 esac 8963 8964 if test x$host_vendor = xsni; then 8965 case $host in 8966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8967 export_dynamic_flag_spec='${wl}-Blargedynsym' 8968 ;; 8969 esac 8970 fi 8971 fi 8972 8973{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8974echo "${ECHO_T}$ld_shlibs" >&6; } 8975test "$ld_shlibs" = no && can_build_shared=no 8976 8977with_gnu_ld=$with_gnu_ld 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993# 8994# Do we need to explicitly link libc? 8995# 8996case "x$archive_cmds_need_lc" in 8997x|xyes) 8998 # Assume -lc should be added 8999 archive_cmds_need_lc=yes 9000 9001 if test "$enable_shared" = yes && test "$GCC" = yes; then 9002 case $archive_cmds in 9003 *'~'*) 9004 # FIXME: we may have to deal with multi-command sequences. 9005 ;; 9006 '$CC '*) 9007 # Test whether the compiler implicitly links with -lc since on some 9008 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9009 # to ld, don't add -lc before -lgcc. 9010 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9011echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9012 $RM conftest* 9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9014 9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9016 (eval $ac_compile) 2>&5 9017 ac_status=$? 9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9019 (exit $ac_status); } 2>conftest.err; then 9020 soname=conftest 9021 lib=conftest 9022 libobjs=conftest.$ac_objext 9023 deplibs= 9024 wl=$lt_prog_compiler_wl 9025 pic_flag=$lt_prog_compiler_pic 9026 compiler_flags=-v 9027 linker_flags=-v 9028 verstring= 9029 output_objdir=. 9030 libname=conftest 9031 lt_save_allow_undefined_flag=$allow_undefined_flag 9032 allow_undefined_flag= 9033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9034 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9035 ac_status=$? 9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 (exit $ac_status); } 9038 then 9039 archive_cmds_need_lc=no 9040 else 9041 archive_cmds_need_lc=yes 9042 fi 9043 allow_undefined_flag=$lt_save_allow_undefined_flag 9044 else 9045 cat conftest.err 1>&5 9046 fi 9047 $RM conftest* 9048 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9049echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9050 ;; 9051 esac 9052 fi 9053 ;; 9054esac 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9213echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9214 9215if test "$GCC" = yes; then 9216 case $host_os in 9217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9218 *) lt_awk_arg="/^libraries:/" ;; 9219 esac 9220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9221 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9222 # if the path contains ";" then we assume it to be the separator 9223 # otherwise default to the standard path separator (i.e. ":") - it is 9224 # assumed that no part of a normal pathname contains ";" but that should 9225 # okay in the real world where ";" in dirpaths is itself problematic. 9226 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9227 else 9228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9229 fi 9230 # Ok, now we have the path, separated by spaces, we can step through it 9231 # and add multilib dir if necessary. 9232 lt_tmp_lt_search_path_spec= 9233 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9234 for lt_sys_path in $lt_search_path_spec; do 9235 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9237 else 9238 test -d "$lt_sys_path" && \ 9239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9240 fi 9241 done 9242 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9243BEGIN {RS=" "; FS="/|\n";} { 9244 lt_foo=""; 9245 lt_count=0; 9246 for (lt_i = NF; lt_i > 0; lt_i--) { 9247 if ($lt_i != "" && $lt_i != ".") { 9248 if ($lt_i == "..") { 9249 lt_count++; 9250 } else { 9251 if (lt_count == 0) { 9252 lt_foo="/" $lt_i lt_foo; 9253 } else { 9254 lt_count--; 9255 } 9256 } 9257 } 9258 } 9259 if (lt_foo != "") { lt_freq[lt_foo]++; } 9260 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9261}'` 9262 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9263else 9264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9265fi 9266library_names_spec= 9267libname_spec='lib$name' 9268soname_spec= 9269shrext_cmds=".so" 9270postinstall_cmds= 9271postuninstall_cmds= 9272finish_cmds= 9273finish_eval= 9274shlibpath_var= 9275shlibpath_overrides_runpath=unknown 9276version_type=none 9277dynamic_linker="$host_os ld.so" 9278sys_lib_dlsearch_path_spec="/lib /usr/lib" 9279need_lib_prefix=unknown 9280hardcode_into_libs=no 9281 9282# when you set need_version to no, make sure it does not cause -set_version 9283# flags to be left without arguments 9284need_version=unknown 9285 9286case $host_os in 9287aix3*) 9288 version_type=linux 9289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9290 shlibpath_var=LIBPATH 9291 9292 # AIX 3 has no versioning support, so we append a major version to the name. 9293 soname_spec='${libname}${release}${shared_ext}$major' 9294 ;; 9295 9296aix[4-9]*) 9297 version_type=linux 9298 need_lib_prefix=no 9299 need_version=no 9300 hardcode_into_libs=yes 9301 if test "$host_cpu" = ia64; then 9302 # AIX 5 supports IA64 9303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9304 shlibpath_var=LD_LIBRARY_PATH 9305 else 9306 # With GCC up to 2.95.x, collect2 would create an import file 9307 # for dependence libraries. The import file would start with 9308 # the line `#! .'. This would cause the generated library to 9309 # depend on `.', always an invalid library. This was fixed in 9310 # development snapshots of GCC prior to 3.0. 9311 case $host_os in 9312 aix4 | aix4.[01] | aix4.[01].*) 9313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9314 echo ' yes ' 9315 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9316 : 9317 else 9318 can_build_shared=no 9319 fi 9320 ;; 9321 esac 9322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9323 # soname into executable. Probably we can add versioning support to 9324 # collect2, so additional links can be useful in future. 9325 if test "$aix_use_runtimelinking" = yes; then 9326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9327 # instead of lib<name>.a to let people know that these are not 9328 # typical AIX shared libraries. 9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9330 else 9331 # We preserve .a as extension for shared libraries through AIX4.2 9332 # and later when we are not doing run time linking. 9333 library_names_spec='${libname}${release}.a $libname.a' 9334 soname_spec='${libname}${release}${shared_ext}$major' 9335 fi 9336 shlibpath_var=LIBPATH 9337 fi 9338 ;; 9339 9340amigaos*) 9341 case $host_cpu in 9342 powerpc) 9343 # Since July 2007 AmigaOS4 officially supports .so libraries. 9344 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9346 ;; 9347 m68k) 9348 library_names_spec='$libname.ixlibrary $libname.a' 9349 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9350 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' 9351 ;; 9352 esac 9353 ;; 9354 9355beos*) 9356 library_names_spec='${libname}${shared_ext}' 9357 dynamic_linker="$host_os ld.so" 9358 shlibpath_var=LIBRARY_PATH 9359 ;; 9360 9361bsdi[45]*) 9362 version_type=linux 9363 need_version=no 9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9365 soname_spec='${libname}${release}${shared_ext}$major' 9366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9367 shlibpath_var=LD_LIBRARY_PATH 9368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9370 # the default ld.so.conf also contains /usr/contrib/lib and 9371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9372 # libtool to hard-code these into programs 9373 ;; 9374 9375cygwin* | mingw* | pw32* | cegcc*) 9376 version_type=windows 9377 shrext_cmds=".dll" 9378 need_version=no 9379 need_lib_prefix=no 9380 9381 case $GCC,$host_os in 9382 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9383 library_names_spec='$libname.dll.a' 9384 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9385 postinstall_cmds='base_file=`basename \${file}`~ 9386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9387 dldir=$destdir/`dirname \$dlpath`~ 9388 test -d \$dldir || mkdir -p \$dldir~ 9389 $install_prog $dir/$dlname \$dldir/$dlname~ 9390 chmod a+x \$dldir/$dlname~ 9391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9393 fi' 9394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9395 dlpath=$dir/\$dldll~ 9396 $RM \$dlpath' 9397 shlibpath_overrides_runpath=yes 9398 9399 case $host_os in 9400 cygwin*) 9401 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9404 ;; 9405 mingw* | cegcc*) 9406 # MinGW DLLs use traditional 'lib' prefix 9407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9408 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9409 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9410 # It is most probably a Windows format PATH printed by 9411 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9412 # path with ; separators, and with drive letters. We can handle the 9413 # drive letters (cygwin fileutils understands them), so leave them, 9414 # especially as we might pass files found there to a mingw objdump, 9415 # which wouldn't understand a cygwinified path. Ahh. 9416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9417 else 9418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9419 fi 9420 ;; 9421 pw32*) 9422 # pw32 DLLs use 'pw' prefix rather than 'lib' 9423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9424 ;; 9425 esac 9426 ;; 9427 9428 *) 9429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9430 ;; 9431 esac 9432 dynamic_linker='Win32 ld.exe' 9433 # FIXME: first we should search . and the directory the executable is in 9434 shlibpath_var=PATH 9435 ;; 9436 9437darwin* | rhapsody*) 9438 dynamic_linker="$host_os dyld" 9439 version_type=darwin 9440 need_lib_prefix=no 9441 need_version=no 9442 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9443 soname_spec='${libname}${release}${major}$shared_ext' 9444 shlibpath_overrides_runpath=yes 9445 shlibpath_var=DYLD_LIBRARY_PATH 9446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9447 9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9450 ;; 9451 9452dgux*) 9453 version_type=linux 9454 need_lib_prefix=no 9455 need_version=no 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9457 soname_spec='${libname}${release}${shared_ext}$major' 9458 shlibpath_var=LD_LIBRARY_PATH 9459 ;; 9460 9461freebsd1*) 9462 dynamic_linker=no 9463 ;; 9464 9465freebsd* | dragonfly*) 9466 # DragonFly does not have aout. When/if they implement a new 9467 # versioning mechanism, adjust this. 9468 if test -x /usr/bin/objformat; then 9469 objformat=`/usr/bin/objformat` 9470 else 9471 case $host_os in 9472 freebsd[123]*) objformat=aout ;; 9473 *) objformat=elf ;; 9474 esac 9475 fi 9476 # Handle Gentoo/FreeBSD as it was Linux 9477 case $host_vendor in 9478 gentoo) 9479 version_type=linux ;; 9480 *) 9481 version_type=freebsd-$objformat ;; 9482 esac 9483 9484 case $version_type in 9485 freebsd-elf*) 9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9487 need_version=no 9488 need_lib_prefix=no 9489 ;; 9490 freebsd-*) 9491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9492 need_version=yes 9493 ;; 9494 linux) 9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9496 soname_spec='${libname}${release}${shared_ext}$major' 9497 need_lib_prefix=no 9498 need_version=no 9499 ;; 9500 esac 9501 shlibpath_var=LD_LIBRARY_PATH 9502 case $host_os in 9503 freebsd2*) 9504 shlibpath_overrides_runpath=yes 9505 ;; 9506 freebsd3.[01]* | freebsdelf3.[01]*) 9507 shlibpath_overrides_runpath=yes 9508 hardcode_into_libs=yes 9509 ;; 9510 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9511 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9512 shlibpath_overrides_runpath=no 9513 hardcode_into_libs=yes 9514 ;; 9515 *) # from 4.6 on, and DragonFly 9516 shlibpath_overrides_runpath=yes 9517 hardcode_into_libs=yes 9518 ;; 9519 esac 9520 ;; 9521 9522gnu*) 9523 version_type=linux 9524 need_lib_prefix=no 9525 need_version=no 9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9527 soname_spec='${libname}${release}${shared_ext}$major' 9528 shlibpath_var=LD_LIBRARY_PATH 9529 hardcode_into_libs=yes 9530 ;; 9531 9532hpux9* | hpux10* | hpux11*) 9533 # Give a soname corresponding to the major version so that dld.sl refuses to 9534 # link against other versions. 9535 version_type=sunos 9536 need_lib_prefix=no 9537 need_version=no 9538 case $host_cpu in 9539 ia64*) 9540 shrext_cmds='.so' 9541 hardcode_into_libs=yes 9542 dynamic_linker="$host_os dld.so" 9543 shlibpath_var=LD_LIBRARY_PATH 9544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test "X$HPUX_IA64_MODE" = X32; then 9548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9549 else 9550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9551 fi 9552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9553 ;; 9554 hppa*64*) 9555 shrext_cmds='.sl' 9556 hardcode_into_libs=yes 9557 dynamic_linker="$host_os dld.sl" 9558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9561 soname_spec='${libname}${release}${shared_ext}$major' 9562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9564 ;; 9565 *) 9566 shrext_cmds='.sl' 9567 dynamic_linker="$host_os dld.sl" 9568 shlibpath_var=SHLIB_PATH 9569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9571 soname_spec='${libname}${release}${shared_ext}$major' 9572 ;; 9573 esac 9574 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9575 postinstall_cmds='chmod 555 $lib' 9576 ;; 9577 9578interix[3-9]*) 9579 version_type=linux 9580 need_lib_prefix=no 9581 need_version=no 9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9583 soname_spec='${libname}${release}${shared_ext}$major' 9584 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9585 shlibpath_var=LD_LIBRARY_PATH 9586 shlibpath_overrides_runpath=no 9587 hardcode_into_libs=yes 9588 ;; 9589 9590irix5* | irix6* | nonstopux*) 9591 case $host_os in 9592 nonstopux*) version_type=nonstopux ;; 9593 *) 9594 if test "$lt_cv_prog_gnu_ld" = yes; then 9595 version_type=linux 9596 else 9597 version_type=irix 9598 fi ;; 9599 esac 9600 need_lib_prefix=no 9601 need_version=no 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9604 case $host_os in 9605 irix5* | nonstopux*) 9606 libsuff= shlibsuff= 9607 ;; 9608 *) 9609 case $LD in # libtool.m4 will add one of these switches to LD 9610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9611 libsuff= shlibsuff= libmagic=32-bit;; 9612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9613 libsuff=32 shlibsuff=N32 libmagic=N32;; 9614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9615 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9616 *) libsuff= shlibsuff= libmagic=never-match;; 9617 esac 9618 ;; 9619 esac 9620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9621 shlibpath_overrides_runpath=no 9622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9624 hardcode_into_libs=yes 9625 ;; 9626 9627# No shared lib support for Linux oldld, aout, or coff. 9628linux*oldld* | linux*aout* | linux*coff*) 9629 dynamic_linker=no 9630 ;; 9631 9632# This must be Linux ELF. 9633linux* | k*bsd*-gnu) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9640 shlibpath_var=LD_LIBRARY_PATH 9641 shlibpath_overrides_runpath=no 9642 # Some binutils ld are patched to set DT_RUNPATH 9643 save_LDFLAGS=$LDFLAGS 9644 save_libdir=$libdir 9645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9647 cat >conftest.$ac_ext <<_ACEOF 9648/* confdefs.h. */ 9649_ACEOF 9650cat confdefs.h >>conftest.$ac_ext 9651cat >>conftest.$ac_ext <<_ACEOF 9652/* end confdefs.h. */ 9653 9654int 9655main () 9656{ 9657 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662rm -f conftest.$ac_objext conftest$ac_exeext 9663if { (ac_try="$ac_link" 9664case "(($ac_try" in 9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9666 *) ac_try_echo=$ac_try;; 9667esac 9668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9669 (eval "$ac_link") 2>conftest.er1 9670 ac_status=$? 9671 grep -v '^ *+' conftest.er1 >conftest.err 9672 rm -f conftest.er1 9673 cat conftest.err >&5 9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9675 (exit $ac_status); } && { 9676 test -z "$ac_c_werror_flag" || 9677 test ! -s conftest.err 9678 } && test -s conftest$ac_exeext && 9679 $as_test_x conftest$ac_exeext; then 9680 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9681 shlibpath_overrides_runpath=yes 9682fi 9683 9684else 9685 echo "$as_me: failed program was:" >&5 9686sed 's/^/| /' conftest.$ac_ext >&5 9687 9688 9689fi 9690 9691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9692 conftest$ac_exeext conftest.$ac_ext 9693 LDFLAGS=$save_LDFLAGS 9694 libdir=$save_libdir 9695 9696 # This implies no fast_install, which is unacceptable. 9697 # Some rework will be needed to allow for fast_install 9698 # before this can be enabled. 9699 hardcode_into_libs=yes 9700 9701 # Append ld.so.conf contents to the search path 9702 if test -f /etc/ld.so.conf; then 9703 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' ' '` 9704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9705 fi 9706 9707 # We used to test for /lib/ld.so.1 and disable shared libraries on 9708 # powerpc, because MkLinux only supported shared libraries with the 9709 # GNU dynamic linker. Since this was broken with cross compilers, 9710 # most powerpc-linux boxes support dynamic linking these days and 9711 # people can always --disable-shared, the test was removed, and we 9712 # assume the GNU/Linux dynamic linker is in use. 9713 dynamic_linker='GNU/Linux ld.so' 9714 ;; 9715 9716netbsd*) 9717 version_type=sunos 9718 need_lib_prefix=no 9719 need_version=no 9720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9723 dynamic_linker='NetBSD (a.out) ld.so' 9724 else 9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9726 soname_spec='${libname}${release}${shared_ext}$major' 9727 dynamic_linker='NetBSD ld.elf_so' 9728 fi 9729 shlibpath_var=LD_LIBRARY_PATH 9730 shlibpath_overrides_runpath=yes 9731 hardcode_into_libs=yes 9732 ;; 9733 9734newsos6) 9735 version_type=linux 9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9737 shlibpath_var=LD_LIBRARY_PATH 9738 shlibpath_overrides_runpath=yes 9739 ;; 9740 9741*nto* | *qnx*) 9742 version_type=qnx 9743 need_lib_prefix=no 9744 need_version=no 9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9746 soname_spec='${libname}${release}${shared_ext}$major' 9747 shlibpath_var=LD_LIBRARY_PATH 9748 shlibpath_overrides_runpath=no 9749 hardcode_into_libs=yes 9750 dynamic_linker='ldqnx.so' 9751 ;; 9752 9753openbsd*) 9754 version_type=sunos 9755 sys_lib_dlsearch_path_spec="/usr/lib" 9756 need_lib_prefix=no 9757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9758 case $host_os in 9759 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9760 *) need_version=no ;; 9761 esac 9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9764 shlibpath_var=LD_LIBRARY_PATH 9765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9766 case $host_os in 9767 openbsd2.[89] | openbsd2.[89].*) 9768 shlibpath_overrides_runpath=no 9769 ;; 9770 *) 9771 shlibpath_overrides_runpath=yes 9772 ;; 9773 esac 9774 else 9775 shlibpath_overrides_runpath=yes 9776 fi 9777 ;; 9778 9779os2*) 9780 libname_spec='$name' 9781 shrext_cmds=".dll" 9782 need_lib_prefix=no 9783 library_names_spec='$libname${shared_ext} $libname.a' 9784 dynamic_linker='OS/2 ld.exe' 9785 shlibpath_var=LIBPATH 9786 ;; 9787 9788osf3* | osf4* | osf5*) 9789 version_type=osf 9790 need_lib_prefix=no 9791 need_version=no 9792 soname_spec='${libname}${release}${shared_ext}$major' 9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9794 shlibpath_var=LD_LIBRARY_PATH 9795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9797 ;; 9798 9799rdos*) 9800 dynamic_linker=no 9801 ;; 9802 9803solaris*) 9804 version_type=linux 9805 need_lib_prefix=no 9806 need_version=no 9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9808 soname_spec='${libname}${release}${shared_ext}$major' 9809 shlibpath_var=LD_LIBRARY_PATH 9810 shlibpath_overrides_runpath=yes 9811 hardcode_into_libs=yes 9812 # ldd complains unless libraries are executable 9813 postinstall_cmds='chmod +x $lib' 9814 ;; 9815 9816sunos4*) 9817 version_type=sunos 9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9820 shlibpath_var=LD_LIBRARY_PATH 9821 shlibpath_overrides_runpath=yes 9822 if test "$with_gnu_ld" = yes; then 9823 need_lib_prefix=no 9824 fi 9825 need_version=yes 9826 ;; 9827 9828sysv4 | sysv4.3*) 9829 version_type=linux 9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9831 soname_spec='${libname}${release}${shared_ext}$major' 9832 shlibpath_var=LD_LIBRARY_PATH 9833 case $host_vendor in 9834 sni) 9835 shlibpath_overrides_runpath=no 9836 need_lib_prefix=no 9837 runpath_var=LD_RUN_PATH 9838 ;; 9839 siemens) 9840 need_lib_prefix=no 9841 ;; 9842 motorola) 9843 need_lib_prefix=no 9844 need_version=no 9845 shlibpath_overrides_runpath=no 9846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9847 ;; 9848 esac 9849 ;; 9850 9851sysv4*MP*) 9852 if test -d /usr/nec ;then 9853 version_type=linux 9854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9855 soname_spec='$libname${shared_ext}.$major' 9856 shlibpath_var=LD_LIBRARY_PATH 9857 fi 9858 ;; 9859 9860sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9861 version_type=freebsd-elf 9862 need_lib_prefix=no 9863 need_version=no 9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9865 soname_spec='${libname}${release}${shared_ext}$major' 9866 shlibpath_var=LD_LIBRARY_PATH 9867 shlibpath_overrides_runpath=yes 9868 hardcode_into_libs=yes 9869 if test "$with_gnu_ld" = yes; then 9870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9871 else 9872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9873 case $host_os in 9874 sco3.2v5*) 9875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9876 ;; 9877 esac 9878 fi 9879 sys_lib_dlsearch_path_spec='/usr/lib' 9880 ;; 9881 9882tpf*) 9883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9884 version_type=linux 9885 need_lib_prefix=no 9886 need_version=no 9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9888 shlibpath_var=LD_LIBRARY_PATH 9889 shlibpath_overrides_runpath=no 9890 hardcode_into_libs=yes 9891 ;; 9892 9893uts4*) 9894 version_type=linux 9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9896 soname_spec='${libname}${release}${shared_ext}$major' 9897 shlibpath_var=LD_LIBRARY_PATH 9898 ;; 9899 9900*) 9901 dynamic_linker=no 9902 ;; 9903esac 9904{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9905echo "${ECHO_T}$dynamic_linker" >&6; } 9906test "$dynamic_linker" = no && can_build_shared=no 9907 9908variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9909if test "$GCC" = yes; then 9910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9911fi 9912 9913if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9914 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9915fi 9916if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9918fi 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10007echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10008hardcode_action= 10009if test -n "$hardcode_libdir_flag_spec" || 10010 test -n "$runpath_var" || 10011 test "X$hardcode_automatic" = "Xyes" ; then 10012 10013 # We can hardcode non-existent directories. 10014 if test "$hardcode_direct" != no && 10015 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10016 # have to relink, otherwise we might link with an installed library 10017 # when we should be linking with a yet-to-be-installed one 10018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10019 test "$hardcode_minus_L" != no; then 10020 # Linking always hardcodes the temporary library directory. 10021 hardcode_action=relink 10022 else 10023 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10024 hardcode_action=immediate 10025 fi 10026else 10027 # We cannot hardcode anything, or else we can only hardcode existing 10028 # directories. 10029 hardcode_action=unsupported 10030fi 10031{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10032echo "${ECHO_T}$hardcode_action" >&6; } 10033 10034if test "$hardcode_action" = relink || 10035 test "$inherit_rpath" = yes; then 10036 # Fast installation is not supported 10037 enable_fast_install=no 10038elif test "$shlibpath_overrides_runpath" = yes || 10039 test "$enable_shared" = no; then 10040 # Fast installation is not necessary 10041 enable_fast_install=needless 10042fi 10043 10044 10045 10046 10047 10048 10049 if test "x$enable_dlopen" != xyes; then 10050 enable_dlopen=unknown 10051 enable_dlopen_self=unknown 10052 enable_dlopen_self_static=unknown 10053else 10054 lt_cv_dlopen=no 10055 lt_cv_dlopen_libs= 10056 10057 case $host_os in 10058 beos*) 10059 lt_cv_dlopen="load_add_on" 10060 lt_cv_dlopen_libs= 10061 lt_cv_dlopen_self=yes 10062 ;; 10063 10064 mingw* | pw32* | cegcc*) 10065 lt_cv_dlopen="LoadLibrary" 10066 lt_cv_dlopen_libs= 10067 ;; 10068 10069 cygwin*) 10070 lt_cv_dlopen="dlopen" 10071 lt_cv_dlopen_libs= 10072 ;; 10073 10074 darwin*) 10075 # if libdl is installed we need to link against it 10076 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10077echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10078if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10079 echo $ECHO_N "(cached) $ECHO_C" >&6 10080else 10081 ac_check_lib_save_LIBS=$LIBS 10082LIBS="-ldl $LIBS" 10083cat >conftest.$ac_ext <<_ACEOF 10084/* confdefs.h. */ 10085_ACEOF 10086cat confdefs.h >>conftest.$ac_ext 10087cat >>conftest.$ac_ext <<_ACEOF 10088/* end confdefs.h. */ 10089 10090/* Override any GCC internal prototype to avoid an error. 10091 Use char because int might match the return type of a GCC 10092 builtin and then its argument prototype would still apply. */ 10093#ifdef __cplusplus 10094extern "C" 10095#endif 10096char dlopen (); 10097int 10098main () 10099{ 10100return dlopen (); 10101 ; 10102 return 0; 10103} 10104_ACEOF 10105rm -f conftest.$ac_objext conftest$ac_exeext 10106if { (ac_try="$ac_link" 10107case "(($ac_try" in 10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10109 *) ac_try_echo=$ac_try;; 10110esac 10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10112 (eval "$ac_link") 2>conftest.er1 10113 ac_status=$? 10114 grep -v '^ *+' conftest.er1 >conftest.err 10115 rm -f conftest.er1 10116 cat conftest.err >&5 10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10118 (exit $ac_status); } && { 10119 test -z "$ac_c_werror_flag" || 10120 test ! -s conftest.err 10121 } && test -s conftest$ac_exeext && 10122 $as_test_x conftest$ac_exeext; then 10123 ac_cv_lib_dl_dlopen=yes 10124else 10125 echo "$as_me: failed program was:" >&5 10126sed 's/^/| /' conftest.$ac_ext >&5 10127 10128 ac_cv_lib_dl_dlopen=no 10129fi 10130 10131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10132 conftest$ac_exeext conftest.$ac_ext 10133LIBS=$ac_check_lib_save_LIBS 10134fi 10135{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10136echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10137if test $ac_cv_lib_dl_dlopen = yes; then 10138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10139else 10140 10141 lt_cv_dlopen="dyld" 10142 lt_cv_dlopen_libs= 10143 lt_cv_dlopen_self=yes 10144 10145fi 10146 10147 ;; 10148 10149 *) 10150 { echo "$as_me:$LINENO: checking for shl_load" >&5 10151echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10152if test "${ac_cv_func_shl_load+set}" = set; then 10153 echo $ECHO_N "(cached) $ECHO_C" >&6 10154else 10155 cat >conftest.$ac_ext <<_ACEOF 10156/* confdefs.h. */ 10157_ACEOF 10158cat confdefs.h >>conftest.$ac_ext 10159cat >>conftest.$ac_ext <<_ACEOF 10160/* end confdefs.h. */ 10161/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10163#define shl_load innocuous_shl_load 10164 10165/* System header to define __stub macros and hopefully few prototypes, 10166 which can conflict with char shl_load (); below. 10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10168 <limits.h> exists even on freestanding compilers. */ 10169 10170#ifdef __STDC__ 10171# include <limits.h> 10172#else 10173# include <assert.h> 10174#endif 10175 10176#undef shl_load 10177 10178/* Override any GCC internal prototype to avoid an error. 10179 Use char because int might match the return type of a GCC 10180 builtin and then its argument prototype would still apply. */ 10181#ifdef __cplusplus 10182extern "C" 10183#endif 10184char shl_load (); 10185/* The GNU C library defines this for functions which it implements 10186 to always fail with ENOSYS. Some functions are actually named 10187 something starting with __ and the normal name is an alias. */ 10188#if defined __stub_shl_load || defined __stub___shl_load 10189choke me 10190#endif 10191 10192int 10193main () 10194{ 10195return shl_load (); 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200rm -f conftest.$ac_objext conftest$ac_exeext 10201if { (ac_try="$ac_link" 10202case "(($ac_try" in 10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10204 *) ac_try_echo=$ac_try;; 10205esac 10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10207 (eval "$ac_link") 2>conftest.er1 10208 ac_status=$? 10209 grep -v '^ *+' conftest.er1 >conftest.err 10210 rm -f conftest.er1 10211 cat conftest.err >&5 10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10213 (exit $ac_status); } && { 10214 test -z "$ac_c_werror_flag" || 10215 test ! -s conftest.err 10216 } && test -s conftest$ac_exeext && 10217 $as_test_x conftest$ac_exeext; then 10218 ac_cv_func_shl_load=yes 10219else 10220 echo "$as_me: failed program was:" >&5 10221sed 's/^/| /' conftest.$ac_ext >&5 10222 10223 ac_cv_func_shl_load=no 10224fi 10225 10226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10227 conftest$ac_exeext conftest.$ac_ext 10228fi 10229{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10230echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10231if test $ac_cv_func_shl_load = yes; then 10232 lt_cv_dlopen="shl_load" 10233else 10234 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10235echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10236if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10237 echo $ECHO_N "(cached) $ECHO_C" >&6 10238else 10239 ac_check_lib_save_LIBS=$LIBS 10240LIBS="-ldld $LIBS" 10241cat >conftest.$ac_ext <<_ACEOF 10242/* confdefs.h. */ 10243_ACEOF 10244cat confdefs.h >>conftest.$ac_ext 10245cat >>conftest.$ac_ext <<_ACEOF 10246/* end confdefs.h. */ 10247 10248/* Override any GCC internal prototype to avoid an error. 10249 Use char because int might match the return type of a GCC 10250 builtin and then its argument prototype would still apply. */ 10251#ifdef __cplusplus 10252extern "C" 10253#endif 10254char shl_load (); 10255int 10256main () 10257{ 10258return shl_load (); 10259 ; 10260 return 0; 10261} 10262_ACEOF 10263rm -f conftest.$ac_objext conftest$ac_exeext 10264if { (ac_try="$ac_link" 10265case "(($ac_try" in 10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10267 *) ac_try_echo=$ac_try;; 10268esac 10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10270 (eval "$ac_link") 2>conftest.er1 10271 ac_status=$? 10272 grep -v '^ *+' conftest.er1 >conftest.err 10273 rm -f conftest.er1 10274 cat conftest.err >&5 10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276 (exit $ac_status); } && { 10277 test -z "$ac_c_werror_flag" || 10278 test ! -s conftest.err 10279 } && test -s conftest$ac_exeext && 10280 $as_test_x conftest$ac_exeext; then 10281 ac_cv_lib_dld_shl_load=yes 10282else 10283 echo "$as_me: failed program was:" >&5 10284sed 's/^/| /' conftest.$ac_ext >&5 10285 10286 ac_cv_lib_dld_shl_load=no 10287fi 10288 10289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10290 conftest$ac_exeext conftest.$ac_ext 10291LIBS=$ac_check_lib_save_LIBS 10292fi 10293{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10294echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10295if test $ac_cv_lib_dld_shl_load = yes; then 10296 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10297else 10298 { echo "$as_me:$LINENO: checking for dlopen" >&5 10299echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10300if test "${ac_cv_func_dlopen+set}" = set; then 10301 echo $ECHO_N "(cached) $ECHO_C" >&6 10302else 10303 cat >conftest.$ac_ext <<_ACEOF 10304/* confdefs.h. */ 10305_ACEOF 10306cat confdefs.h >>conftest.$ac_ext 10307cat >>conftest.$ac_ext <<_ACEOF 10308/* end confdefs.h. */ 10309/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10310 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10311#define dlopen innocuous_dlopen 10312 10313/* System header to define __stub macros and hopefully few prototypes, 10314 which can conflict with char dlopen (); below. 10315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10316 <limits.h> exists even on freestanding compilers. */ 10317 10318#ifdef __STDC__ 10319# include <limits.h> 10320#else 10321# include <assert.h> 10322#endif 10323 10324#undef dlopen 10325 10326/* Override any GCC internal prototype to avoid an error. 10327 Use char because int might match the return type of a GCC 10328 builtin and then its argument prototype would still apply. */ 10329#ifdef __cplusplus 10330extern "C" 10331#endif 10332char dlopen (); 10333/* The GNU C library defines this for functions which it implements 10334 to always fail with ENOSYS. Some functions are actually named 10335 something starting with __ and the normal name is an alias. */ 10336#if defined __stub_dlopen || defined __stub___dlopen 10337choke me 10338#endif 10339 10340int 10341main () 10342{ 10343return dlopen (); 10344 ; 10345 return 0; 10346} 10347_ACEOF 10348rm -f conftest.$ac_objext conftest$ac_exeext 10349if { (ac_try="$ac_link" 10350case "(($ac_try" in 10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10352 *) ac_try_echo=$ac_try;; 10353esac 10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10355 (eval "$ac_link") 2>conftest.er1 10356 ac_status=$? 10357 grep -v '^ *+' conftest.er1 >conftest.err 10358 rm -f conftest.er1 10359 cat conftest.err >&5 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10361 (exit $ac_status); } && { 10362 test -z "$ac_c_werror_flag" || 10363 test ! -s conftest.err 10364 } && test -s conftest$ac_exeext && 10365 $as_test_x conftest$ac_exeext; then 10366 ac_cv_func_dlopen=yes 10367else 10368 echo "$as_me: failed program was:" >&5 10369sed 's/^/| /' conftest.$ac_ext >&5 10370 10371 ac_cv_func_dlopen=no 10372fi 10373 10374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10375 conftest$ac_exeext conftest.$ac_ext 10376fi 10377{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10378echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10379if test $ac_cv_func_dlopen = yes; then 10380 lt_cv_dlopen="dlopen" 10381else 10382 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10383echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10384if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10385 echo $ECHO_N "(cached) $ECHO_C" >&6 10386else 10387 ac_check_lib_save_LIBS=$LIBS 10388LIBS="-ldl $LIBS" 10389cat >conftest.$ac_ext <<_ACEOF 10390/* confdefs.h. */ 10391_ACEOF 10392cat confdefs.h >>conftest.$ac_ext 10393cat >>conftest.$ac_ext <<_ACEOF 10394/* end confdefs.h. */ 10395 10396/* Override any GCC internal prototype to avoid an error. 10397 Use char because int might match the return type of a GCC 10398 builtin and then its argument prototype would still apply. */ 10399#ifdef __cplusplus 10400extern "C" 10401#endif 10402char dlopen (); 10403int 10404main () 10405{ 10406return dlopen (); 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411rm -f conftest.$ac_objext conftest$ac_exeext 10412if { (ac_try="$ac_link" 10413case "(($ac_try" in 10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10415 *) ac_try_echo=$ac_try;; 10416esac 10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10418 (eval "$ac_link") 2>conftest.er1 10419 ac_status=$? 10420 grep -v '^ *+' conftest.er1 >conftest.err 10421 rm -f conftest.er1 10422 cat conftest.err >&5 10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); } && { 10425 test -z "$ac_c_werror_flag" || 10426 test ! -s conftest.err 10427 } && test -s conftest$ac_exeext && 10428 $as_test_x conftest$ac_exeext; then 10429 ac_cv_lib_dl_dlopen=yes 10430else 10431 echo "$as_me: failed program was:" >&5 10432sed 's/^/| /' conftest.$ac_ext >&5 10433 10434 ac_cv_lib_dl_dlopen=no 10435fi 10436 10437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10438 conftest$ac_exeext conftest.$ac_ext 10439LIBS=$ac_check_lib_save_LIBS 10440fi 10441{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10442echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10443if test $ac_cv_lib_dl_dlopen = yes; then 10444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10445else 10446 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10447echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10448if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10449 echo $ECHO_N "(cached) $ECHO_C" >&6 10450else 10451 ac_check_lib_save_LIBS=$LIBS 10452LIBS="-lsvld $LIBS" 10453cat >conftest.$ac_ext <<_ACEOF 10454/* confdefs.h. */ 10455_ACEOF 10456cat confdefs.h >>conftest.$ac_ext 10457cat >>conftest.$ac_ext <<_ACEOF 10458/* end confdefs.h. */ 10459 10460/* Override any GCC internal prototype to avoid an error. 10461 Use char because int might match the return type of a GCC 10462 builtin and then its argument prototype would still apply. */ 10463#ifdef __cplusplus 10464extern "C" 10465#endif 10466char dlopen (); 10467int 10468main () 10469{ 10470return dlopen (); 10471 ; 10472 return 0; 10473} 10474_ACEOF 10475rm -f conftest.$ac_objext conftest$ac_exeext 10476if { (ac_try="$ac_link" 10477case "(($ac_try" in 10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10479 *) ac_try_echo=$ac_try;; 10480esac 10481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10482 (eval "$ac_link") 2>conftest.er1 10483 ac_status=$? 10484 grep -v '^ *+' conftest.er1 >conftest.err 10485 rm -f conftest.er1 10486 cat conftest.err >&5 10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10488 (exit $ac_status); } && { 10489 test -z "$ac_c_werror_flag" || 10490 test ! -s conftest.err 10491 } && test -s conftest$ac_exeext && 10492 $as_test_x conftest$ac_exeext; then 10493 ac_cv_lib_svld_dlopen=yes 10494else 10495 echo "$as_me: failed program was:" >&5 10496sed 's/^/| /' conftest.$ac_ext >&5 10497 10498 ac_cv_lib_svld_dlopen=no 10499fi 10500 10501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10502 conftest$ac_exeext conftest.$ac_ext 10503LIBS=$ac_check_lib_save_LIBS 10504fi 10505{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10506echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10507if test $ac_cv_lib_svld_dlopen = yes; then 10508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10509else 10510 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10511echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10512if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10513 echo $ECHO_N "(cached) $ECHO_C" >&6 10514else 10515 ac_check_lib_save_LIBS=$LIBS 10516LIBS="-ldld $LIBS" 10517cat >conftest.$ac_ext <<_ACEOF 10518/* confdefs.h. */ 10519_ACEOF 10520cat confdefs.h >>conftest.$ac_ext 10521cat >>conftest.$ac_ext <<_ACEOF 10522/* end confdefs.h. */ 10523 10524/* Override any GCC internal prototype to avoid an error. 10525 Use char because int might match the return type of a GCC 10526 builtin and then its argument prototype would still apply. */ 10527#ifdef __cplusplus 10528extern "C" 10529#endif 10530char dld_link (); 10531int 10532main () 10533{ 10534return dld_link (); 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539rm -f conftest.$ac_objext conftest$ac_exeext 10540if { (ac_try="$ac_link" 10541case "(($ac_try" in 10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10543 *) ac_try_echo=$ac_try;; 10544esac 10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10546 (eval "$ac_link") 2>conftest.er1 10547 ac_status=$? 10548 grep -v '^ *+' conftest.er1 >conftest.err 10549 rm -f conftest.er1 10550 cat conftest.err >&5 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); } && { 10553 test -z "$ac_c_werror_flag" || 10554 test ! -s conftest.err 10555 } && test -s conftest$ac_exeext && 10556 $as_test_x conftest$ac_exeext; then 10557 ac_cv_lib_dld_dld_link=yes 10558else 10559 echo "$as_me: failed program was:" >&5 10560sed 's/^/| /' conftest.$ac_ext >&5 10561 10562 ac_cv_lib_dld_dld_link=no 10563fi 10564 10565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10566 conftest$ac_exeext conftest.$ac_ext 10567LIBS=$ac_check_lib_save_LIBS 10568fi 10569{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10570echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10571if test $ac_cv_lib_dld_dld_link = yes; then 10572 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10573fi 10574 10575 10576fi 10577 10578 10579fi 10580 10581 10582fi 10583 10584 10585fi 10586 10587 10588fi 10589 10590 ;; 10591 esac 10592 10593 if test "x$lt_cv_dlopen" != xno; then 10594 enable_dlopen=yes 10595 else 10596 enable_dlopen=no 10597 fi 10598 10599 case $lt_cv_dlopen in 10600 dlopen) 10601 save_CPPFLAGS="$CPPFLAGS" 10602 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10603 10604 save_LDFLAGS="$LDFLAGS" 10605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10606 10607 save_LIBS="$LIBS" 10608 LIBS="$lt_cv_dlopen_libs $LIBS" 10609 10610 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10611echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10612if test "${lt_cv_dlopen_self+set}" = set; then 10613 echo $ECHO_N "(cached) $ECHO_C" >&6 10614else 10615 if test "$cross_compiling" = yes; then : 10616 lt_cv_dlopen_self=cross 10617else 10618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10619 lt_status=$lt_dlunknown 10620 cat > conftest.$ac_ext <<_LT_EOF 10621#line 10621 "configure" 10622#include "confdefs.h" 10623 10624#if HAVE_DLFCN_H 10625#include <dlfcn.h> 10626#endif 10627 10628#include <stdio.h> 10629 10630#ifdef RTLD_GLOBAL 10631# define LT_DLGLOBAL RTLD_GLOBAL 10632#else 10633# ifdef DL_GLOBAL 10634# define LT_DLGLOBAL DL_GLOBAL 10635# else 10636# define LT_DLGLOBAL 0 10637# endif 10638#endif 10639 10640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10641 find out it does not work in some platform. */ 10642#ifndef LT_DLLAZY_OR_NOW 10643# ifdef RTLD_LAZY 10644# define LT_DLLAZY_OR_NOW RTLD_LAZY 10645# else 10646# ifdef DL_LAZY 10647# define LT_DLLAZY_OR_NOW DL_LAZY 10648# else 10649# ifdef RTLD_NOW 10650# define LT_DLLAZY_OR_NOW RTLD_NOW 10651# else 10652# ifdef DL_NOW 10653# define LT_DLLAZY_OR_NOW DL_NOW 10654# else 10655# define LT_DLLAZY_OR_NOW 0 10656# endif 10657# endif 10658# endif 10659# endif 10660#endif 10661 10662void fnord() { int i=42;} 10663int main () 10664{ 10665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10666 int status = $lt_dlunknown; 10667 10668 if (self) 10669 { 10670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10672 /* dlclose (self); */ 10673 } 10674 else 10675 puts (dlerror ()); 10676 10677 return status; 10678} 10679_LT_EOF 10680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10681 (eval $ac_link) 2>&5 10682 ac_status=$? 10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10685 (./conftest; exit; ) >&5 2>/dev/null 10686 lt_status=$? 10687 case x$lt_status in 10688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10690 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10691 esac 10692 else : 10693 # compilation failed 10694 lt_cv_dlopen_self=no 10695 fi 10696fi 10697rm -fr conftest* 10698 10699 10700fi 10701{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10702echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10703 10704 if test "x$lt_cv_dlopen_self" = xyes; then 10705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10706 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10707echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10708if test "${lt_cv_dlopen_self_static+set}" = set; then 10709 echo $ECHO_N "(cached) $ECHO_C" >&6 10710else 10711 if test "$cross_compiling" = yes; then : 10712 lt_cv_dlopen_self_static=cross 10713else 10714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10715 lt_status=$lt_dlunknown 10716 cat > conftest.$ac_ext <<_LT_EOF 10717#line 10717 "configure" 10718#include "confdefs.h" 10719 10720#if HAVE_DLFCN_H 10721#include <dlfcn.h> 10722#endif 10723 10724#include <stdio.h> 10725 10726#ifdef RTLD_GLOBAL 10727# define LT_DLGLOBAL RTLD_GLOBAL 10728#else 10729# ifdef DL_GLOBAL 10730# define LT_DLGLOBAL DL_GLOBAL 10731# else 10732# define LT_DLGLOBAL 0 10733# endif 10734#endif 10735 10736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10737 find out it does not work in some platform. */ 10738#ifndef LT_DLLAZY_OR_NOW 10739# ifdef RTLD_LAZY 10740# define LT_DLLAZY_OR_NOW RTLD_LAZY 10741# else 10742# ifdef DL_LAZY 10743# define LT_DLLAZY_OR_NOW DL_LAZY 10744# else 10745# ifdef RTLD_NOW 10746# define LT_DLLAZY_OR_NOW RTLD_NOW 10747# else 10748# ifdef DL_NOW 10749# define LT_DLLAZY_OR_NOW DL_NOW 10750# else 10751# define LT_DLLAZY_OR_NOW 0 10752# endif 10753# endif 10754# endif 10755# endif 10756#endif 10757 10758void fnord() { int i=42;} 10759int main () 10760{ 10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10762 int status = $lt_dlunknown; 10763 10764 if (self) 10765 { 10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10768 /* dlclose (self); */ 10769 } 10770 else 10771 puts (dlerror ()); 10772 10773 return status; 10774} 10775_LT_EOF 10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10777 (eval $ac_link) 2>&5 10778 ac_status=$? 10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10781 (./conftest; exit; ) >&5 2>/dev/null 10782 lt_status=$? 10783 case x$lt_status in 10784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10787 esac 10788 else : 10789 # compilation failed 10790 lt_cv_dlopen_self_static=no 10791 fi 10792fi 10793rm -fr conftest* 10794 10795 10796fi 10797{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10798echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10799 fi 10800 10801 CPPFLAGS="$save_CPPFLAGS" 10802 LDFLAGS="$save_LDFLAGS" 10803 LIBS="$save_LIBS" 10804 ;; 10805 esac 10806 10807 case $lt_cv_dlopen_self in 10808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10809 *) enable_dlopen_self=unknown ;; 10810 esac 10811 10812 case $lt_cv_dlopen_self_static in 10813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10814 *) enable_dlopen_self_static=unknown ;; 10815 esac 10816fi 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834striplib= 10835old_striplib= 10836{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10837echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10838if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10840 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10841 { echo "$as_me:$LINENO: result: yes" >&5 10842echo "${ECHO_T}yes" >&6; } 10843else 10844# FIXME - insert some real tests, host_os isn't really good enough 10845 case $host_os in 10846 darwin*) 10847 if test -n "$STRIP" ; then 10848 striplib="$STRIP -x" 10849 old_striplib="$STRIP -S" 10850 { echo "$as_me:$LINENO: result: yes" >&5 10851echo "${ECHO_T}yes" >&6; } 10852 else 10853 { echo "$as_me:$LINENO: result: no" >&5 10854echo "${ECHO_T}no" >&6; } 10855 fi 10856 ;; 10857 *) 10858 { echo "$as_me:$LINENO: result: no" >&5 10859echo "${ECHO_T}no" >&6; } 10860 ;; 10861 esac 10862fi 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 # Report which library types will actually be built 10876 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10877echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10878 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 10879echo "${ECHO_T}$can_build_shared" >&6; } 10880 10881 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10882echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10883 test "$can_build_shared" = "no" && enable_shared=no 10884 10885 # On AIX, shared libraries and static libraries use the same namespace, and 10886 # are all built from PIC. 10887 case $host_os in 10888 aix3*) 10889 test "$enable_shared" = yes && enable_static=no 10890 if test -n "$RANLIB"; then 10891 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10892 postinstall_cmds='$RANLIB $lib' 10893 fi 10894 ;; 10895 10896 aix[4-9]*) 10897 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10898 test "$enable_shared" = yes && enable_static=no 10899 fi 10900 ;; 10901 esac 10902 { echo "$as_me:$LINENO: result: $enable_shared" >&5 10903echo "${ECHO_T}$enable_shared" >&6; } 10904 10905 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10906echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10907 # Make sure either enable_shared or enable_static is yes. 10908 test "$enable_shared" = yes || enable_static=yes 10909 { echo "$as_me:$LINENO: result: $enable_static" >&5 10910echo "${ECHO_T}$enable_static" >&6; } 10911 10912 10913 10914 10915fi 10916ac_ext=c 10917ac_cpp='$CPP $CPPFLAGS' 10918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10920ac_compiler_gnu=$ac_cv_c_compiler_gnu 10921 10922CC="$lt_save_CC" 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 ac_config_commands="$ac_config_commands libtool" 10937 10938 10939 10940 10941# Only expand once: 10942 10943 10944{ echo "$as_me:$LINENO: checking for inline" >&5 10945echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 10946if test "${ac_cv_c_inline+set}" = set; then 10947 echo $ECHO_N "(cached) $ECHO_C" >&6 10948else 10949 ac_cv_c_inline=no 10950for ac_kw in inline __inline__ __inline; do 10951 cat >conftest.$ac_ext <<_ACEOF 10952/* confdefs.h. */ 10953_ACEOF 10954cat confdefs.h >>conftest.$ac_ext 10955cat >>conftest.$ac_ext <<_ACEOF 10956/* end confdefs.h. */ 10957#ifndef __cplusplus 10958typedef int foo_t; 10959static $ac_kw foo_t static_foo () {return 0; } 10960$ac_kw foo_t foo () {return 0; } 10961#endif 10962 10963_ACEOF 10964rm -f conftest.$ac_objext 10965if { (ac_try="$ac_compile" 10966case "(($ac_try" in 10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10968 *) ac_try_echo=$ac_try;; 10969esac 10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10971 (eval "$ac_compile") 2>conftest.er1 10972 ac_status=$? 10973 grep -v '^ *+' conftest.er1 >conftest.err 10974 rm -f conftest.er1 10975 cat conftest.err >&5 10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10977 (exit $ac_status); } && { 10978 test -z "$ac_c_werror_flag" || 10979 test ! -s conftest.err 10980 } && test -s conftest.$ac_objext; then 10981 ac_cv_c_inline=$ac_kw 10982else 10983 echo "$as_me: failed program was:" >&5 10984sed 's/^/| /' conftest.$ac_ext >&5 10985 10986 10987fi 10988 10989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10990 test "$ac_cv_c_inline" != no && break 10991done 10992 10993fi 10994{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 10995echo "${ECHO_T}$ac_cv_c_inline" >&6; } 10996 10997 10998case $ac_cv_c_inline in 10999 inline | yes) ;; 11000 *) 11001 case $ac_cv_c_inline in 11002 no) ac_val=;; 11003 *) ac_val=$ac_cv_c_inline;; 11004 esac 11005 cat >>confdefs.h <<_ACEOF 11006#ifndef __cplusplus 11007#define inline $ac_val 11008#endif 11009_ACEOF 11010 ;; 11011esac 11012 11013if test "x$CC" != xcc; then 11014 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 11015echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } 11016else 11017 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 11018echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } 11019fi 11020set dummy $CC; ac_cc=`echo $2 | 11021 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11022if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 11023 echo $ECHO_N "(cached) $ECHO_C" >&6 11024else 11025 cat >conftest.$ac_ext <<_ACEOF 11026/* confdefs.h. */ 11027_ACEOF 11028cat confdefs.h >>conftest.$ac_ext 11029cat >>conftest.$ac_ext <<_ACEOF 11030/* end confdefs.h. */ 11031 11032int 11033main () 11034{ 11035 11036 ; 11037 return 0; 11038} 11039_ACEOF 11040# Make sure it works both with $CC and with simple cc. 11041# We do the test twice because some compilers refuse to overwrite an 11042# existing .o file with -o, though they will create one. 11043ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11044rm -f conftest2.* 11045if { (case "(($ac_try" in 11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11047 *) ac_try_echo=$ac_try;; 11048esac 11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11050 (eval "$ac_try") 2>&5 11051 ac_status=$? 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11053 (exit $ac_status); } && 11054 test -f conftest2.$ac_objext && { (case "(($ac_try" in 11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11056 *) ac_try_echo=$ac_try;; 11057esac 11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11059 (eval "$ac_try") 2>&5 11060 ac_status=$? 11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11062 (exit $ac_status); }; 11063then 11064 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11065 if test "x$CC" != xcc; then 11066 # Test first that cc exists at all. 11067 if { ac_try='cc -c conftest.$ac_ext >&5' 11068 { (case "(($ac_try" in 11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11070 *) ac_try_echo=$ac_try;; 11071esac 11072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11073 (eval "$ac_try") 2>&5 11074 ac_status=$? 11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11076 (exit $ac_status); }; }; then 11077 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11078 rm -f conftest2.* 11079 if { (case "(($ac_try" in 11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11081 *) ac_try_echo=$ac_try;; 11082esac 11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11084 (eval "$ac_try") 2>&5 11085 ac_status=$? 11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11087 (exit $ac_status); } && 11088 test -f conftest2.$ac_objext && { (case "(($ac_try" in 11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11090 *) ac_try_echo=$ac_try;; 11091esac 11092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11093 (eval "$ac_try") 2>&5 11094 ac_status=$? 11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11096 (exit $ac_status); }; 11097 then 11098 # cc works too. 11099 : 11100 else 11101 # cc exists but doesn't like -o. 11102 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11103 fi 11104 fi 11105 fi 11106else 11107 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11108fi 11109rm -f core conftest* 11110 11111fi 11112if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11113 { echo "$as_me:$LINENO: result: yes" >&5 11114echo "${ECHO_T}yes" >&6; } 11115else 11116 { echo "$as_me:$LINENO: result: no" >&5 11117echo "${ECHO_T}no" >&6; } 11118 11119cat >>confdefs.h <<\_ACEOF 11120#define NO_MINUS_C_MINUS_O 1 11121_ACEOF 11122 11123fi 11124 11125# FIXME: we rely on the cache variable name because 11126# there is no other way. 11127set dummy $CC 11128ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11129if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 11130 # Losing compiler, so override with the script. 11131 # FIXME: It is wrong to rewrite CC. 11132 # But if we don't then we get into trouble of one sort or another. 11133 # A longer-term fix would be to have automake use am__CC in this case, 11134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11135 CC="$am_aux_dir/compile $CC" 11136fi 11137 11138 11139 11140# Library versioning 11141LT_MAJOR="8" 11142LT_REVISION="4" 11143LT_AGE="4" 11144 11145 11146 11147 11148# The libusb-0.1 version we pretend to be 11149LIBUSB01_VERSION="0.1.12" 11150 11151 11152 11153 11154if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11155 if test -n "$ac_tool_prefix"; then 11156 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11157set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11158{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11160if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11161 echo $ECHO_N "(cached) $ECHO_C" >&6 11162else 11163 case $PKG_CONFIG in 11164 [\\/]* | ?:[\\/]*) 11165 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11166 ;; 11167 *) 11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11169for as_dir in $PATH 11170do 11171 IFS=$as_save_IFS 11172 test -z "$as_dir" && as_dir=. 11173 for ac_exec_ext in '' $ac_executable_extensions; do 11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11175 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11177 break 2 11178 fi 11179done 11180done 11181IFS=$as_save_IFS 11182 11183 ;; 11184esac 11185fi 11186PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11187if test -n "$PKG_CONFIG"; then 11188 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 11189echo "${ECHO_T}$PKG_CONFIG" >&6; } 11190else 11191 { echo "$as_me:$LINENO: result: no" >&5 11192echo "${ECHO_T}no" >&6; } 11193fi 11194 11195 11196fi 11197if test -z "$ac_cv_path_PKG_CONFIG"; then 11198 ac_pt_PKG_CONFIG=$PKG_CONFIG 11199 # Extract the first word of "pkg-config", so it can be a program name with args. 11200set dummy pkg-config; ac_word=$2 11201{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11203if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11204 echo $ECHO_N "(cached) $ECHO_C" >&6 11205else 11206 case $ac_pt_PKG_CONFIG in 11207 [\\/]* | ?:[\\/]*) 11208 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11209 ;; 11210 *) 11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11212for as_dir in $PATH 11213do 11214 IFS=$as_save_IFS 11215 test -z "$as_dir" && as_dir=. 11216 for ac_exec_ext in '' $ac_executable_extensions; do 11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11218 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11220 break 2 11221 fi 11222done 11223done 11224IFS=$as_save_IFS 11225 11226 ;; 11227esac 11228fi 11229ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11230if test -n "$ac_pt_PKG_CONFIG"; then 11231 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 11232echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 11233else 11234 { echo "$as_me:$LINENO: result: no" >&5 11235echo "${ECHO_T}no" >&6; } 11236fi 11237 11238 if test "x$ac_pt_PKG_CONFIG" = x; then 11239 PKG_CONFIG="" 11240 else 11241 case $cross_compiling:$ac_tool_warned in 11242yes:) 11243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11244whose name does not start with the host triplet. If you think this 11245configuration is useful to you, please write to autoconf@gnu.org." >&5 11246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11247whose name does not start with the host triplet. If you think this 11248configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11249ac_tool_warned=yes ;; 11250esac 11251 PKG_CONFIG=$ac_pt_PKG_CONFIG 11252 fi 11253else 11254 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11255fi 11256 11257fi 11258if test -n "$PKG_CONFIG"; then 11259 _pkg_min_version=0.9.0 11260 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 11261echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 11262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11263 { echo "$as_me:$LINENO: result: yes" >&5 11264echo "${ECHO_T}yes" >&6; } 11265 else 11266 { echo "$as_me:$LINENO: result: no" >&5 11267echo "${ECHO_T}no" >&6; } 11268 PKG_CONFIG="" 11269 fi 11270 11271fi 11272 11273pkg_failed=no 11274{ echo "$as_me:$LINENO: checking for LIBUSB_1_0" >&5 11275echo $ECHO_N "checking for LIBUSB_1_0... $ECHO_C" >&6; } 11276 11277if test -n "$PKG_CONFIG"; then 11278 if test -n "$LIBUSB_1_0_CFLAGS"; then 11279 pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS" 11280 else 11281 if test -n "$PKG_CONFIG" && \ 11282 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5 11283 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5 11284 ac_status=$? 11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11286 (exit $ac_status); }; then 11287 pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null` 11288else 11289 pkg_failed=yes 11290fi 11291 fi 11292else 11293 pkg_failed=untried 11294fi 11295if test -n "$PKG_CONFIG"; then 11296 if test -n "$LIBUSB_1_0_LIBS"; then 11297 pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS" 11298 else 11299 if test -n "$PKG_CONFIG" && \ 11300 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5 11301 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5 11302 ac_status=$? 11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11304 (exit $ac_status); }; then 11305 pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null` 11306else 11307 pkg_failed=yes 11308fi 11309 fi 11310else 11311 pkg_failed=untried 11312fi 11313 11314 11315 11316if test $pkg_failed = yes; then 11317 11318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11319 _pkg_short_errors_supported=yes 11320else 11321 _pkg_short_errors_supported=no 11322fi 11323 if test $_pkg_short_errors_supported = yes; then 11324 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb-1.0 >= 0.9.1"` 11325 else 11326 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb-1.0 >= 0.9.1"` 11327 fi 11328 # Put the nasty error message in config.log where it belongs 11329 echo "$LIBUSB_1_0_PKG_ERRORS" >&5 11330 11331 { { echo "$as_me:$LINENO: error: Package requirements (libusb-1.0 >= 0.9.1) were not met: 11332 11333$LIBUSB_1_0_PKG_ERRORS 11334 11335Consider adjusting the PKG_CONFIG_PATH environment variable if you 11336installed software in a non-standard prefix. 11337 11338Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11339and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11340See the pkg-config man page for more details. 11341" >&5 11342echo "$as_me: error: Package requirements (libusb-1.0 >= 0.9.1) were not met: 11343 11344$LIBUSB_1_0_PKG_ERRORS 11345 11346Consider adjusting the PKG_CONFIG_PATH environment variable if you 11347installed software in a non-standard prefix. 11348 11349Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11350and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11351See the pkg-config man page for more details. 11352" >&2;} 11353 { (exit 1); exit 1; }; } 11354elif test $pkg_failed = untried; then 11355 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 11356is in your PATH or set the PKG_CONFIG environment variable to the full 11357path to pkg-config. 11358 11359Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11360and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11361See the pkg-config man page for more details. 11362 11363To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11364See \`config.log' for more details." >&5 11365echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 11366is in your PATH or set the PKG_CONFIG environment variable to the full 11367path to pkg-config. 11368 11369Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS 11370and LIBUSB_1_0_LIBS to avoid the need to call pkg-config. 11371See the pkg-config man page for more details. 11372 11373To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11374See \`config.log' for more details." >&2;} 11375 { (exit 1); exit 1; }; } 11376else 11377 LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS 11378 LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS 11379 { echo "$as_me:$LINENO: result: yes" >&5 11380echo "${ECHO_T}yes" >&6; } 11381 : 11382fi 11383 11384 11385 11386# Message logging 11387# Check whether --enable-log was given. 11388if test "${enable_log+set}" = set; then 11389 enableval=$enable_log; log_enabled=$enableval 11390else 11391 log_enabled='yes' 11392fi 11393 11394if test "x$log_enabled" != "xno"; then 11395 11396cat >>confdefs.h <<\_ACEOF 11397#define ENABLE_LOGGING 1 11398_ACEOF 11399 11400fi 11401 11402# Check whether --enable-debug-log was given. 11403if test "${enable_debug_log+set}" = set; then 11404 enableval=$enable_debug_log; debug_log_enabled=$enableval 11405else 11406 debug_log_enabled='no' 11407fi 11408 11409if test "x$debug_log_enabled" != "xno"; then 11410 11411cat >>confdefs.h <<\_ACEOF 11412#define ENABLE_DEBUG_LOGGING 1 11413_ACEOF 11414 11415fi 11416 11417# Examples build 11418# Check whether --enable-examples-build was given. 11419if test "${enable_examples_build+set}" = set; then 11420 enableval=$enable_examples_build; build_examples=$enableval 11421else 11422 build_examples='no' 11423fi 11424 11425 if test "x$build_examples" != "xno"; then 11426 BUILD_EXAMPLES_TRUE= 11427 BUILD_EXAMPLES_FALSE='#' 11428else 11429 BUILD_EXAMPLES_TRUE='#' 11430 BUILD_EXAMPLES_FALSE= 11431fi 11432 11433 11434# Restore gnu89 inline semantics on gcc 4.3 and newer 11435saved_cflags="$CFLAGS" 11436CFLAGS="$CFLAGS -fgnu89-inline" 11437cat >conftest.$ac_ext <<_ACEOF 11438/* confdefs.h. */ 11439_ACEOF 11440cat confdefs.h >>conftest.$ac_ext 11441cat >>conftest.$ac_ext <<_ACEOF 11442/* end confdefs.h. */ 11443 11444int 11445main () 11446{ 11447 11448 ; 11449 return 0; 11450} 11451_ACEOF 11452rm -f conftest.$ac_objext 11453if { (ac_try="$ac_compile" 11454case "(($ac_try" in 11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11456 *) ac_try_echo=$ac_try;; 11457esac 11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11459 (eval "$ac_compile") 2>conftest.er1 11460 ac_status=$? 11461 grep -v '^ *+' conftest.er1 >conftest.err 11462 rm -f conftest.er1 11463 cat conftest.err >&5 11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11465 (exit $ac_status); } && { 11466 test -z "$ac_c_werror_flag" || 11467 test ! -s conftest.err 11468 } && test -s conftest.$ac_objext; then 11469 inline_cflags="-fgnu89-inline" 11470else 11471 echo "$as_me: failed program was:" >&5 11472sed 's/^/| /' conftest.$ac_ext >&5 11473 11474 inline_cflags="" 11475fi 11476 11477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11478CFLAGS="$saved_cflags" 11479 11480 11481cat >>confdefs.h <<\_ACEOF 11482#define API_EXPORTED __attribute__((visibility("default"))) 11483_ACEOF 11484 11485AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow" 11486 11487 11488ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile" 11489 11490ac_config_commands="$ac_config_commands default" 11491 11492 11493cat >confcache <<\_ACEOF 11494# This file is a shell script that caches the results of configure 11495# tests run on this system so they can be shared between configure 11496# scripts and configure runs, see configure's option --config-cache. 11497# It is not useful on other systems. If it contains results you don't 11498# want to keep, you may remove or edit it. 11499# 11500# config.status only pays attention to the cache file if you give it 11501# the --recheck option to rerun configure. 11502# 11503# `ac_cv_env_foo' variables (set or unset) will be overridden when 11504# loading this file, other *unset* `ac_cv_foo' will be assigned the 11505# following values. 11506 11507_ACEOF 11508 11509# The following way of writing the cache mishandles newlines in values, 11510# but we know of no workaround that is simple, portable, and efficient. 11511# So, we kill variables containing newlines. 11512# Ultrix sh set writes to stderr and can't be redirected directly, 11513# and sets the high bit in the cache file unless we assign to the vars. 11514( 11515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11516 eval ac_val=\$$ac_var 11517 case $ac_val in #( 11518 *${as_nl}*) 11519 case $ac_var in #( 11520 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11521echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11522 esac 11523 case $ac_var in #( 11524 _ | IFS | as_nl) ;; #( 11525 *) $as_unset $ac_var ;; 11526 esac ;; 11527 esac 11528 done 11529 11530 (set) 2>&1 | 11531 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11532 *${as_nl}ac_space=\ *) 11533 # `set' does not quote correctly, so add quotes (double-quote 11534 # substitution turns \\\\ into \\, and sed turns \\ into \). 11535 sed -n \ 11536 "s/'/'\\\\''/g; 11537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11538 ;; #( 11539 *) 11540 # `set' quotes correctly as required by POSIX, so do not add quotes. 11541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11542 ;; 11543 esac | 11544 sort 11545) | 11546 sed ' 11547 /^ac_cv_env_/b end 11548 t clear 11549 :clear 11550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11551 t end 11552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11553 :end' >>confcache 11554if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11555 if test -w "$cache_file"; then 11556 test "x$cache_file" != "x/dev/null" && 11557 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11558echo "$as_me: updating cache $cache_file" >&6;} 11559 cat confcache >$cache_file 11560 else 11561 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11562echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11563 fi 11564fi 11565rm -f confcache 11566 11567test "x$prefix" = xNONE && prefix=$ac_default_prefix 11568# Let make expand exec_prefix. 11569test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11570 11571DEFS=-DHAVE_CONFIG_H 11572 11573ac_libobjs= 11574ac_ltlibobjs= 11575for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11576 # 1. Remove the extension, and $U if already installed. 11577 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11578 ac_i=`echo "$ac_i" | sed "$ac_script"` 11579 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11580 # will be set to the directory where LIBOBJS objects are built. 11581 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11582 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11583done 11584LIBOBJS=$ac_libobjs 11585 11586LTLIBOBJS=$ac_ltlibobjs 11587 11588 11589if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11590 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 11591Usually this means the macro was only invoked conditionally." >&5 11592echo "$as_me: error: conditional \"AMDEP\" was never defined. 11593Usually this means the macro was only invoked conditionally." >&2;} 11594 { (exit 1); exit 1; }; } 11595fi 11596if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11597 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 11598Usually this means the macro was only invoked conditionally." >&5 11599echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 11600Usually this means the macro was only invoked conditionally." >&2;} 11601 { (exit 1); exit 1; }; } 11602fi 11603if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then 11604 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined. 11605Usually this means the macro was only invoked conditionally." >&5 11606echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined. 11607Usually this means the macro was only invoked conditionally." >&2;} 11608 { (exit 1); exit 1; }; } 11609fi 11610 11611: ${CONFIG_STATUS=./config.status} 11612ac_clean_files_save=$ac_clean_files 11613ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11614{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11615echo "$as_me: creating $CONFIG_STATUS" >&6;} 11616cat >$CONFIG_STATUS <<_ACEOF 11617#! $SHELL 11618# Generated by $as_me. 11619# Run this file to recreate the current configuration. 11620# Compiler output produced by configure, useful for debugging 11621# configure, is in config.log if it exists. 11622 11623debug=false 11624ac_cs_recheck=false 11625ac_cs_silent=false 11626SHELL=\${CONFIG_SHELL-$SHELL} 11627_ACEOF 11628 11629cat >>$CONFIG_STATUS <<\_ACEOF 11630## --------------------- ## 11631## M4sh Initialization. ## 11632## --------------------- ## 11633 11634# Be more Bourne compatible 11635DUALCASE=1; export DUALCASE # for MKS sh 11636if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11637 emulate sh 11638 NULLCMD=: 11639 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11640 # is contrary to our usage. Disable this feature. 11641 alias -g '${1+"$@"}'='"$@"' 11642 setopt NO_GLOB_SUBST 11643else 11644 case `(set -o) 2>/dev/null` in 11645 *posix*) set -o posix ;; 11646esac 11647 11648fi 11649 11650 11651 11652 11653# PATH needs CR 11654# Avoid depending upon Character Ranges. 11655as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11656as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11657as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11658as_cr_digits='0123456789' 11659as_cr_alnum=$as_cr_Letters$as_cr_digits 11660 11661# The user is always right. 11662if test "${PATH_SEPARATOR+set}" != set; then 11663 echo "#! /bin/sh" >conf$$.sh 11664 echo "exit 0" >>conf$$.sh 11665 chmod +x conf$$.sh 11666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11667 PATH_SEPARATOR=';' 11668 else 11669 PATH_SEPARATOR=: 11670 fi 11671 rm -f conf$$.sh 11672fi 11673 11674# Support unset when possible. 11675if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11676 as_unset=unset 11677else 11678 as_unset=false 11679fi 11680 11681 11682# IFS 11683# We need space, tab and new line, in precisely that order. Quoting is 11684# there to prevent editors from complaining about space-tab. 11685# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11686# splitting by setting IFS to empty value.) 11687as_nl=' 11688' 11689IFS=" "" $as_nl" 11690 11691# Find who we are. Look in the path if we contain no directory separator. 11692case $0 in 11693 *[\\/]* ) as_myself=$0 ;; 11694 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11695for as_dir in $PATH 11696do 11697 IFS=$as_save_IFS 11698 test -z "$as_dir" && as_dir=. 11699 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11700done 11701IFS=$as_save_IFS 11702 11703 ;; 11704esac 11705# We did not find ourselves, most probably we were run as `sh COMMAND' 11706# in which case we are not to be found in the path. 11707if test "x$as_myself" = x; then 11708 as_myself=$0 11709fi 11710if test ! -f "$as_myself"; then 11711 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11712 { (exit 1); exit 1; } 11713fi 11714 11715# Work around bugs in pre-3.0 UWIN ksh. 11716for as_var in ENV MAIL MAILPATH 11717do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11718done 11719PS1='$ ' 11720PS2='> ' 11721PS4='+ ' 11722 11723# NLS nuisances. 11724for as_var in \ 11725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11727 LC_TELEPHONE LC_TIME 11728do 11729 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11730 eval $as_var=C; export $as_var 11731 else 11732 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11733 fi 11734done 11735 11736# Required to use basename. 11737if expr a : '\(a\)' >/dev/null 2>&1 && 11738 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11739 as_expr=expr 11740else 11741 as_expr=false 11742fi 11743 11744if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11745 as_basename=basename 11746else 11747 as_basename=false 11748fi 11749 11750 11751# Name of the executable. 11752as_me=`$as_basename -- "$0" || 11753$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11754 X"$0" : 'X\(//\)$' \| \ 11755 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11756echo X/"$0" | 11757 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11758 s//\1/ 11759 q 11760 } 11761 /^X\/\(\/\/\)$/{ 11762 s//\1/ 11763 q 11764 } 11765 /^X\/\(\/\).*/{ 11766 s//\1/ 11767 q 11768 } 11769 s/.*/./; q'` 11770 11771# CDPATH. 11772$as_unset CDPATH 11773 11774 11775 11776 as_lineno_1=$LINENO 11777 as_lineno_2=$LINENO 11778 test "x$as_lineno_1" != "x$as_lineno_2" && 11779 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11780 11781 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11782 # uniformly replaced by the line number. The first 'sed' inserts a 11783 # line-number line after each line using $LINENO; the second 'sed' 11784 # does the real work. The second script uses 'N' to pair each 11785 # line-number line with the line containing $LINENO, and appends 11786 # trailing '-' during substitution so that $LINENO is not a special 11787 # case at line end. 11788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11789 # scripts with optimization help from Paolo Bonzini. Blame Lee 11790 # E. McMahon (1931-1989) for sed's syntax. :-) 11791 sed -n ' 11792 p 11793 /[$]LINENO/= 11794 ' <$as_myself | 11795 sed ' 11796 s/[$]LINENO.*/&-/ 11797 t lineno 11798 b 11799 :lineno 11800 N 11801 :loop 11802 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11803 t loop 11804 s/-\n.*// 11805 ' >$as_me.lineno && 11806 chmod +x "$as_me.lineno" || 11807 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11808 { (exit 1); exit 1; }; } 11809 11810 # Don't try to exec as it changes $[0], causing all sort of problems 11811 # (the dirname of $[0] is not the place where we might find the 11812 # original and so on. Autoconf is especially sensitive to this). 11813 . "./$as_me.lineno" 11814 # Exit status is that of the last command. 11815 exit 11816} 11817 11818 11819if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11820 as_dirname=dirname 11821else 11822 as_dirname=false 11823fi 11824 11825ECHO_C= ECHO_N= ECHO_T= 11826case `echo -n x` in 11827-n*) 11828 case `echo 'x\c'` in 11829 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11830 *) ECHO_C='\c';; 11831 esac;; 11832*) 11833 ECHO_N='-n';; 11834esac 11835 11836if expr a : '\(a\)' >/dev/null 2>&1 && 11837 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11838 as_expr=expr 11839else 11840 as_expr=false 11841fi 11842 11843rm -f conf$$ conf$$.exe conf$$.file 11844if test -d conf$$.dir; then 11845 rm -f conf$$.dir/conf$$.file 11846else 11847 rm -f conf$$.dir 11848 mkdir conf$$.dir 11849fi 11850echo >conf$$.file 11851if ln -s conf$$.file conf$$ 2>/dev/null; then 11852 as_ln_s='ln -s' 11853 # ... but there are two gotchas: 11854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11856 # In both cases, we have to default to `cp -p'. 11857 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11858 as_ln_s='cp -p' 11859elif ln conf$$.file conf$$ 2>/dev/null; then 11860 as_ln_s=ln 11861else 11862 as_ln_s='cp -p' 11863fi 11864rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11865rmdir conf$$.dir 2>/dev/null 11866 11867if mkdir -p . 2>/dev/null; then 11868 as_mkdir_p=: 11869else 11870 test -d ./-p && rmdir ./-p 11871 as_mkdir_p=false 11872fi 11873 11874if test -x / >/dev/null 2>&1; then 11875 as_test_x='test -x' 11876else 11877 if ls -dL / >/dev/null 2>&1; then 11878 as_ls_L_option=L 11879 else 11880 as_ls_L_option= 11881 fi 11882 as_test_x=' 11883 eval sh -c '\'' 11884 if test -d "$1"; then 11885 test -d "$1/."; 11886 else 11887 case $1 in 11888 -*)set "./$1";; 11889 esac; 11890 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11891 ???[sx]*):;;*)false;;esac;fi 11892 '\'' sh 11893 ' 11894fi 11895as_executable_p=$as_test_x 11896 11897# Sed expression to map a string onto a valid CPP name. 11898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11899 11900# Sed expression to map a string onto a valid variable name. 11901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11902 11903 11904exec 6>&1 11905 11906# Save the log message, to keep $[0] and so on meaningful, and to 11907# report actual input values of CONFIG_FILES etc. instead of their 11908# values after options handling. 11909ac_log=" 11910This file was extended by libusb-compat $as_me 0.1.3, which was 11911generated by GNU Autoconf 2.61. Invocation command line was 11912 11913 CONFIG_FILES = $CONFIG_FILES 11914 CONFIG_HEADERS = $CONFIG_HEADERS 11915 CONFIG_LINKS = $CONFIG_LINKS 11916 CONFIG_COMMANDS = $CONFIG_COMMANDS 11917 $ $0 $@ 11918 11919on `(hostname || uname -n) 2>/dev/null | sed 1q` 11920" 11921 11922_ACEOF 11923 11924cat >>$CONFIG_STATUS <<_ACEOF 11925# Files that config.status was made for. 11926config_files="$ac_config_files" 11927config_headers="$ac_config_headers" 11928config_commands="$ac_config_commands" 11929 11930_ACEOF 11931 11932cat >>$CONFIG_STATUS <<\_ACEOF 11933ac_cs_usage="\ 11934\`$as_me' instantiates files from templates according to the 11935current configuration. 11936 11937Usage: $0 [OPTIONS] [FILE]... 11938 11939 -h, --help print this help, then exit 11940 -V, --version print version number and configuration settings, then exit 11941 -q, --quiet do not print progress messages 11942 -d, --debug don't remove temporary files 11943 --recheck update $as_me by reconfiguring in the same conditions 11944 --file=FILE[:TEMPLATE] 11945 instantiate the configuration file FILE 11946 --header=FILE[:TEMPLATE] 11947 instantiate the configuration header FILE 11948 11949Configuration files: 11950$config_files 11951 11952Configuration headers: 11953$config_headers 11954 11955Configuration commands: 11956$config_commands 11957 11958Report bugs to <bug-autoconf@gnu.org>." 11959 11960_ACEOF 11961cat >>$CONFIG_STATUS <<_ACEOF 11962ac_cs_version="\\ 11963libusb-compat config.status 0.1.3 11964configured by $0, generated by GNU Autoconf 2.61, 11965 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11966 11967Copyright (C) 2006 Free Software Foundation, Inc. 11968This config.status script is free software; the Free Software Foundation 11969gives unlimited permission to copy, distribute and modify it." 11970 11971ac_pwd='$ac_pwd' 11972srcdir='$srcdir' 11973INSTALL='$INSTALL' 11974MKDIR_P='$MKDIR_P' 11975_ACEOF 11976 11977cat >>$CONFIG_STATUS <<\_ACEOF 11978# If no file are specified by the user, then we need to provide default 11979# value. By we need to know if files were specified by the user. 11980ac_need_defaults=: 11981while test $# != 0 11982do 11983 case $1 in 11984 --*=*) 11985 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11987 ac_shift=: 11988 ;; 11989 *) 11990 ac_option=$1 11991 ac_optarg=$2 11992 ac_shift=shift 11993 ;; 11994 esac 11995 11996 case $ac_option in 11997 # Handling of the options. 11998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11999 ac_cs_recheck=: ;; 12000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12001 echo "$ac_cs_version"; exit ;; 12002 --debug | --debu | --deb | --de | --d | -d ) 12003 debug=: ;; 12004 --file | --fil | --fi | --f ) 12005 $ac_shift 12006 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12007 ac_need_defaults=false;; 12008 --header | --heade | --head | --hea ) 12009 $ac_shift 12010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12011 ac_need_defaults=false;; 12012 --he | --h) 12013 # Conflict between --help and --header 12014 { echo "$as_me: error: ambiguous option: $1 12015Try \`$0 --help' for more information." >&2 12016 { (exit 1); exit 1; }; };; 12017 --help | --hel | -h ) 12018 echo "$ac_cs_usage"; exit ;; 12019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12020 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12021 ac_cs_silent=: ;; 12022 12023 # This is an error. 12024 -*) { echo "$as_me: error: unrecognized option: $1 12025Try \`$0 --help' for more information." >&2 12026 { (exit 1); exit 1; }; } ;; 12027 12028 *) ac_config_targets="$ac_config_targets $1" 12029 ac_need_defaults=false ;; 12030 12031 esac 12032 shift 12033done 12034 12035ac_configure_extra_args= 12036 12037if $ac_cs_silent; then 12038 exec 6>/dev/null 12039 ac_configure_extra_args="$ac_configure_extra_args --silent" 12040fi 12041 12042_ACEOF 12043cat >>$CONFIG_STATUS <<_ACEOF 12044if \$ac_cs_recheck; then 12045 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12046 CONFIG_SHELL=$SHELL 12047 export CONFIG_SHELL 12048 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12049fi 12050 12051_ACEOF 12052cat >>$CONFIG_STATUS <<\_ACEOF 12053exec 5>>config.log 12054{ 12055 echo 12056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12057## Running $as_me. ## 12058_ASBOX 12059 echo "$ac_log" 12060} >&5 12061 12062_ACEOF 12063cat >>$CONFIG_STATUS <<_ACEOF 12064# 12065# INIT-COMMANDS 12066# 12067AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12068 12069 12070# The HP-UX ksh and POSIX shell print the target directory to stdout 12071# if CDPATH is set. 12072(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12073 12074sed_quote_subst='$sed_quote_subst' 12075double_quote_subst='$double_quote_subst' 12076delay_variable_subst='$delay_variable_subst' 12077macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12078macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12079enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12080enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12081pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12082enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12083host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12084host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12085host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12086build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12087build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12088build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12089SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12090Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12091GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12092EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12093FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12094LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12095NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12096LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12097max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12098ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12099exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12100lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12101lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12102lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12103reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12104reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12105OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12106deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12107file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12108AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12109AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12110STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12111RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12112old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12113old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12114old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12115CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12116CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12117compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12118GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12119lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12120lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12121lt_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"`' 12122lt_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"`' 12123objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12124SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12125ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12126MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12127lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12128lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12129lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12130lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12131lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12132need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12133DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12134NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12135LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12136OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12137OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12138libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12139shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12140extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12141archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12142enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12143export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12144whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12145compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12146old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12147old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12148archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12149archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12150module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12151module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12152with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12153allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12154no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12155hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12156hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12157hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12158hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12159hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12160hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12161hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12162hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12163inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12164link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12165fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12166always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12167export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12168exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12169include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12170prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12171file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12172variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12173need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12174need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12175version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12176runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12177shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12178shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12179libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12180library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12181soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12182postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12183postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12184finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12185finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12186hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12187sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12188sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12189hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12190enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12191enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12192enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12193old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12194striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12195 12196LTCC='$LTCC' 12197LTCFLAGS='$LTCFLAGS' 12198compiler='$compiler_DEFAULT' 12199 12200# Quote evaled strings. 12201for var in SED \ 12202GREP \ 12203EGREP \ 12204FGREP \ 12205LD \ 12206NM \ 12207LN_S \ 12208lt_SP2NL \ 12209lt_NL2SP \ 12210reload_flag \ 12211OBJDUMP \ 12212deplibs_check_method \ 12213file_magic_cmd \ 12214AR \ 12215AR_FLAGS \ 12216STRIP \ 12217RANLIB \ 12218CC \ 12219CFLAGS \ 12220compiler \ 12221lt_cv_sys_global_symbol_pipe \ 12222lt_cv_sys_global_symbol_to_cdecl \ 12223lt_cv_sys_global_symbol_to_c_name_address \ 12224lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12225SHELL \ 12226ECHO \ 12227lt_prog_compiler_no_builtin_flag \ 12228lt_prog_compiler_wl \ 12229lt_prog_compiler_pic \ 12230lt_prog_compiler_static \ 12231lt_cv_prog_compiler_c_o \ 12232need_locks \ 12233DSYMUTIL \ 12234NMEDIT \ 12235LIPO \ 12236OTOOL \ 12237OTOOL64 \ 12238shrext_cmds \ 12239export_dynamic_flag_spec \ 12240whole_archive_flag_spec \ 12241compiler_needs_object \ 12242with_gnu_ld \ 12243allow_undefined_flag \ 12244no_undefined_flag \ 12245hardcode_libdir_flag_spec \ 12246hardcode_libdir_flag_spec_ld \ 12247hardcode_libdir_separator \ 12248fix_srcfile_path \ 12249exclude_expsyms \ 12250include_expsyms \ 12251file_list_spec \ 12252variables_saved_for_relink \ 12253libname_spec \ 12254library_names_spec \ 12255soname_spec \ 12256finish_eval \ 12257old_striplib \ 12258striplib; do 12259 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12260 *[\\\\\\\`\\"\\\$]*) 12261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12262 ;; 12263 *) 12264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12265 ;; 12266 esac 12267done 12268 12269# Double-quote double-evaled strings. 12270for var in reload_cmds \ 12271old_postinstall_cmds \ 12272old_postuninstall_cmds \ 12273old_archive_cmds \ 12274extract_expsyms_cmds \ 12275old_archive_from_new_cmds \ 12276old_archive_from_expsyms_cmds \ 12277archive_cmds \ 12278archive_expsym_cmds \ 12279module_cmds \ 12280module_expsym_cmds \ 12281export_symbols_cmds \ 12282prelink_cmds \ 12283postinstall_cmds \ 12284postuninstall_cmds \ 12285finish_cmds \ 12286sys_lib_search_path_spec \ 12287sys_lib_dlsearch_path_spec; do 12288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12289 *[\\\\\\\`\\"\\\$]*) 12290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12291 ;; 12292 *) 12293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12294 ;; 12295 esac 12296done 12297 12298# Fix-up fallback echo if it was mangled by the above quoting rules. 12299case \$lt_ECHO in 12300*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12301 ;; 12302esac 12303 12304ac_aux_dir='$ac_aux_dir' 12305xsi_shell='$xsi_shell' 12306lt_shell_append='$lt_shell_append' 12307 12308# See if we are running on zsh, and set the options which allow our 12309# commands through without removal of \ escapes INIT. 12310if test -n "\${ZSH_VERSION+set}" ; then 12311 setopt NO_GLOB_SUBST 12312fi 12313 12314 12315 PACKAGE='$PACKAGE' 12316 VERSION='$VERSION' 12317 TIMESTAMP='$TIMESTAMP' 12318 RM='$RM' 12319 ofile='$ofile' 12320 12321 12322 12323 12324 12325_ACEOF 12326 12327cat >>$CONFIG_STATUS <<\_ACEOF 12328 12329# Handling of arguments. 12330for ac_config_target in $ac_config_targets 12331do 12332 case $ac_config_target in 12333 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12334 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12335 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12336 "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;; 12337 "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;; 12338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12339 "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;; 12340 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 12341 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 12342 12343 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12344echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12345 { (exit 1); exit 1; }; };; 12346 esac 12347done 12348 12349 12350# If the user did not use the arguments to specify the items to instantiate, 12351# then the envvar interface is used. Set only those that are not. 12352# We use the long form for the default assignment because of an extremely 12353# bizarre bug on SunOS 4.1.3. 12354if $ac_need_defaults; then 12355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12358fi 12359 12360# Have a temporary directory for convenience. Make it in the build tree 12361# simply because there is no reason against having it here, and in addition, 12362# creating and moving files from /tmp can sometimes cause problems. 12363# Hook for its removal unless debugging. 12364# Note that there is a small window in which the directory will not be cleaned: 12365# after its creation but before its name has been assigned to `$tmp'. 12366$debug || 12367{ 12368 tmp= 12369 trap 'exit_status=$? 12370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12371' 0 12372 trap '{ (exit 1); exit 1; }' 1 2 13 15 12373} 12374# Create a (secure) tmp directory for tmp files. 12375 12376{ 12377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12378 test -n "$tmp" && test -d "$tmp" 12379} || 12380{ 12381 tmp=./conf$$-$RANDOM 12382 (umask 077 && mkdir "$tmp") 12383} || 12384{ 12385 echo "$me: cannot create a temporary directory in ." >&2 12386 { (exit 1); exit 1; } 12387} 12388 12389# 12390# Set up the sed scripts for CONFIG_FILES section. 12391# 12392 12393# No need to generate the scripts if there are no CONFIG_FILES. 12394# This happens for instance when ./config.status config.h 12395if test -n "$CONFIG_FILES"; then 12396 12397_ACEOF 12398 12399 12400 12401ac_delim='%!_!# ' 12402for ac_last_try in false false false false false :; do 12403 cat >conf$$subs.sed <<_ACEOF 12404SHELL!$SHELL$ac_delim 12405PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12406PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12407PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12408PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12409PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12410PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12411exec_prefix!$exec_prefix$ac_delim 12412prefix!$prefix$ac_delim 12413program_transform_name!$program_transform_name$ac_delim 12414bindir!$bindir$ac_delim 12415sbindir!$sbindir$ac_delim 12416libexecdir!$libexecdir$ac_delim 12417datarootdir!$datarootdir$ac_delim 12418datadir!$datadir$ac_delim 12419sysconfdir!$sysconfdir$ac_delim 12420sharedstatedir!$sharedstatedir$ac_delim 12421localstatedir!$localstatedir$ac_delim 12422includedir!$includedir$ac_delim 12423oldincludedir!$oldincludedir$ac_delim 12424docdir!$docdir$ac_delim 12425infodir!$infodir$ac_delim 12426htmldir!$htmldir$ac_delim 12427dvidir!$dvidir$ac_delim 12428pdfdir!$pdfdir$ac_delim 12429psdir!$psdir$ac_delim 12430libdir!$libdir$ac_delim 12431localedir!$localedir$ac_delim 12432mandir!$mandir$ac_delim 12433DEFS!$DEFS$ac_delim 12434ECHO_C!$ECHO_C$ac_delim 12435ECHO_N!$ECHO_N$ac_delim 12436ECHO_T!$ECHO_T$ac_delim 12437LIBS!$LIBS$ac_delim 12438build_alias!$build_alias$ac_delim 12439host_alias!$host_alias$ac_delim 12440target_alias!$target_alias$ac_delim 12441INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12442INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12443INSTALL_DATA!$INSTALL_DATA$ac_delim 12444am__isrc!$am__isrc$ac_delim 12445CYGPATH_W!$CYGPATH_W$ac_delim 12446PACKAGE!$PACKAGE$ac_delim 12447VERSION!$VERSION$ac_delim 12448ACLOCAL!$ACLOCAL$ac_delim 12449AUTOCONF!$AUTOCONF$ac_delim 12450AUTOMAKE!$AUTOMAKE$ac_delim 12451AUTOHEADER!$AUTOHEADER$ac_delim 12452MAKEINFO!$MAKEINFO$ac_delim 12453install_sh!$install_sh$ac_delim 12454STRIP!$STRIP$ac_delim 12455INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 12456mkdir_p!$mkdir_p$ac_delim 12457AWK!$AWK$ac_delim 12458SET_MAKE!$SET_MAKE$ac_delim 12459am__leading_dot!$am__leading_dot$ac_delim 12460AMTAR!$AMTAR$ac_delim 12461am__tar!$am__tar$ac_delim 12462am__untar!$am__untar$ac_delim 12463CC!$CC$ac_delim 12464CFLAGS!$CFLAGS$ac_delim 12465LDFLAGS!$LDFLAGS$ac_delim 12466CPPFLAGS!$CPPFLAGS$ac_delim 12467ac_ct_CC!$ac_ct_CC$ac_delim 12468EXEEXT!$EXEEXT$ac_delim 12469OBJEXT!$OBJEXT$ac_delim 12470DEPDIR!$DEPDIR$ac_delim 12471am__include!$am__include$ac_delim 12472am__quote!$am__quote$ac_delim 12473AMDEP_TRUE!$AMDEP_TRUE$ac_delim 12474AMDEP_FALSE!$AMDEP_FALSE$ac_delim 12475AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 12476CCDEPMODE!$CCDEPMODE$ac_delim 12477am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 12478am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 12479LIBTOOL!$LIBTOOL$ac_delim 12480build!$build$ac_delim 12481build_cpu!$build_cpu$ac_delim 12482build_vendor!$build_vendor$ac_delim 12483build_os!$build_os$ac_delim 12484host!$host$ac_delim 12485host_cpu!$host_cpu$ac_delim 12486host_vendor!$host_vendor$ac_delim 12487host_os!$host_os$ac_delim 12488SED!$SED$ac_delim 12489GREP!$GREP$ac_delim 12490EGREP!$EGREP$ac_delim 12491FGREP!$FGREP$ac_delim 12492LD!$LD$ac_delim 12493DUMPBIN!$DUMPBIN$ac_delim 12494ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 12495NM!$NM$ac_delim 12496LN_S!$LN_S$ac_delim 12497OBJDUMP!$OBJDUMP$ac_delim 12498AR!$AR$ac_delim 12499RANLIB!$RANLIB$ac_delim 12500lt_ECHO!$lt_ECHO$ac_delim 12501_ACEOF 12502 12503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12504 break 12505 elif $ac_last_try; then 12506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12507echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12508 { (exit 1); exit 1; }; } 12509 else 12510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12511 fi 12512done 12513 12514ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12515if test -n "$ac_eof"; then 12516 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12517 ac_eof=`expr $ac_eof + 1` 12518fi 12519 12520cat >>$CONFIG_STATUS <<_ACEOF 12521cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12522/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12523_ACEOF 12524sed ' 12525s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12526s/^/s,@/; s/!/@,|#_!!_#|/ 12527:n 12528t n 12529s/'"$ac_delim"'$/,g/; t 12530s/$/\\/; p 12531N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12532' >>$CONFIG_STATUS <conf$$subs.sed 12533rm -f conf$$subs.sed 12534cat >>$CONFIG_STATUS <<_ACEOF 12535CEOF$ac_eof 12536_ACEOF 12537 12538 12539ac_delim='%!_!# ' 12540for ac_last_try in false false false false false :; do 12541 cat >conf$$subs.sed <<_ACEOF 12542DSYMUTIL!$DSYMUTIL$ac_delim 12543NMEDIT!$NMEDIT$ac_delim 12544LIPO!$LIPO$ac_delim 12545OTOOL!$OTOOL$ac_delim 12546OTOOL64!$OTOOL64$ac_delim 12547CPP!$CPP$ac_delim 12548LT_MAJOR!$LT_MAJOR$ac_delim 12549LT_REVISION!$LT_REVISION$ac_delim 12550LT_AGE!$LT_AGE$ac_delim 12551LIBUSB01_VERSION!$LIBUSB01_VERSION$ac_delim 12552PKG_CONFIG!$PKG_CONFIG$ac_delim 12553LIBUSB_1_0_CFLAGS!$LIBUSB_1_0_CFLAGS$ac_delim 12554LIBUSB_1_0_LIBS!$LIBUSB_1_0_LIBS$ac_delim 12555BUILD_EXAMPLES_TRUE!$BUILD_EXAMPLES_TRUE$ac_delim 12556BUILD_EXAMPLES_FALSE!$BUILD_EXAMPLES_FALSE$ac_delim 12557AM_CFLAGS!$AM_CFLAGS$ac_delim 12558LIBOBJS!$LIBOBJS$ac_delim 12559LTLIBOBJS!$LTLIBOBJS$ac_delim 12560_ACEOF 12561 12562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then 12563 break 12564 elif $ac_last_try; then 12565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12566echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12567 { (exit 1); exit 1; }; } 12568 else 12569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12570 fi 12571done 12572 12573ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12574if test -n "$ac_eof"; then 12575 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12576 ac_eof=`expr $ac_eof + 1` 12577fi 12578 12579cat >>$CONFIG_STATUS <<_ACEOF 12580cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12582_ACEOF 12583sed ' 12584s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12585s/^/s,@/; s/!/@,|#_!!_#|/ 12586:n 12587t n 12588s/'"$ac_delim"'$/,g/; t 12589s/$/\\/; p 12590N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12591' >>$CONFIG_STATUS <conf$$subs.sed 12592rm -f conf$$subs.sed 12593cat >>$CONFIG_STATUS <<_ACEOF 12594:end 12595s/|#_!!_#|//g 12596CEOF$ac_eof 12597_ACEOF 12598 12599 12600# VPATH may cause trouble with some makes, so we remove $(srcdir), 12601# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12602# trailing colons and then remove the whole line if VPATH becomes empty 12603# (actually we leave an empty line to preserve line numbers). 12604if test "x$srcdir" = x.; then 12605 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12606s/:*\$(srcdir):*/:/ 12607s/:*\${srcdir}:*/:/ 12608s/:*@srcdir@:*/:/ 12609s/^\([^=]*=[ ]*\):*/\1/ 12610s/:*$// 12611s/^[^=]*=[ ]*$// 12612}' 12613fi 12614 12615cat >>$CONFIG_STATUS <<\_ACEOF 12616fi # test -n "$CONFIG_FILES" 12617 12618 12619for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 12620do 12621 case $ac_tag in 12622 :[FHLC]) ac_mode=$ac_tag; continue;; 12623 esac 12624 case $ac_mode$ac_tag in 12625 :[FHL]*:*);; 12626 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12627echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12628 { (exit 1); exit 1; }; };; 12629 :[FH]-) ac_tag=-:-;; 12630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12631 esac 12632 ac_save_IFS=$IFS 12633 IFS=: 12634 set x $ac_tag 12635 IFS=$ac_save_IFS 12636 shift 12637 ac_file=$1 12638 shift 12639 12640 case $ac_mode in 12641 :L) ac_source=$1;; 12642 :[FH]) 12643 ac_file_inputs= 12644 for ac_f 12645 do 12646 case $ac_f in 12647 -) ac_f="$tmp/stdin";; 12648 *) # Look for the file first in the build tree, then in the source tree 12649 # (if the path is not absolute). The absolute path cannot be DOS-style, 12650 # because $ac_f cannot contain `:'. 12651 test -f "$ac_f" || 12652 case $ac_f in 12653 [\\/$]*) false;; 12654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12655 esac || 12656 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12657echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12658 { (exit 1); exit 1; }; };; 12659 esac 12660 ac_file_inputs="$ac_file_inputs $ac_f" 12661 done 12662 12663 # Let's still pretend it is `configure' which instantiates (i.e., don't 12664 # use $as_me), people would be surprised to read: 12665 # /* config.h. Generated by config.status. */ 12666 configure_input="Generated from "`IFS=: 12667 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12668 if test x"$ac_file" != x-; then 12669 configure_input="$ac_file. $configure_input" 12670 { echo "$as_me:$LINENO: creating $ac_file" >&5 12671echo "$as_me: creating $ac_file" >&6;} 12672 fi 12673 12674 case $ac_tag in 12675 *:-:* | *:-) cat >"$tmp/stdin";; 12676 esac 12677 ;; 12678 esac 12679 12680 ac_dir=`$as_dirname -- "$ac_file" || 12681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12682 X"$ac_file" : 'X\(//\)[^/]' \| \ 12683 X"$ac_file" : 'X\(//\)$' \| \ 12684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12685echo X"$ac_file" | 12686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12687 s//\1/ 12688 q 12689 } 12690 /^X\(\/\/\)[^/].*/{ 12691 s//\1/ 12692 q 12693 } 12694 /^X\(\/\/\)$/{ 12695 s//\1/ 12696 q 12697 } 12698 /^X\(\/\).*/{ 12699 s//\1/ 12700 q 12701 } 12702 s/.*/./; q'` 12703 { as_dir="$ac_dir" 12704 case $as_dir in #( 12705 -*) as_dir=./$as_dir;; 12706 esac 12707 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12708 as_dirs= 12709 while :; do 12710 case $as_dir in #( 12711 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12712 *) as_qdir=$as_dir;; 12713 esac 12714 as_dirs="'$as_qdir' $as_dirs" 12715 as_dir=`$as_dirname -- "$as_dir" || 12716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12717 X"$as_dir" : 'X\(//\)[^/]' \| \ 12718 X"$as_dir" : 'X\(//\)$' \| \ 12719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12720echo X"$as_dir" | 12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12722 s//\1/ 12723 q 12724 } 12725 /^X\(\/\/\)[^/].*/{ 12726 s//\1/ 12727 q 12728 } 12729 /^X\(\/\/\)$/{ 12730 s//\1/ 12731 q 12732 } 12733 /^X\(\/\).*/{ 12734 s//\1/ 12735 q 12736 } 12737 s/.*/./; q'` 12738 test -d "$as_dir" && break 12739 done 12740 test -z "$as_dirs" || eval "mkdir $as_dirs" 12741 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12742echo "$as_me: error: cannot create directory $as_dir" >&2;} 12743 { (exit 1); exit 1; }; }; } 12744 ac_builddir=. 12745 12746case "$ac_dir" in 12747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12748*) 12749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12750 # A ".." for each directory in $ac_dir_suffix. 12751 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12752 case $ac_top_builddir_sub in 12753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12755 esac ;; 12756esac 12757ac_abs_top_builddir=$ac_pwd 12758ac_abs_builddir=$ac_pwd$ac_dir_suffix 12759# for backward compatibility: 12760ac_top_builddir=$ac_top_build_prefix 12761 12762case $srcdir in 12763 .) # We are building in place. 12764 ac_srcdir=. 12765 ac_top_srcdir=$ac_top_builddir_sub 12766 ac_abs_top_srcdir=$ac_pwd ;; 12767 [\\/]* | ?:[\\/]* ) # Absolute name. 12768 ac_srcdir=$srcdir$ac_dir_suffix; 12769 ac_top_srcdir=$srcdir 12770 ac_abs_top_srcdir=$srcdir ;; 12771 *) # Relative name. 12772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12773 ac_top_srcdir=$ac_top_build_prefix$srcdir 12774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12775esac 12776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12777 12778 12779 case $ac_mode in 12780 :F) 12781 # 12782 # CONFIG_FILE 12783 # 12784 12785 case $INSTALL in 12786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12788 esac 12789 ac_MKDIR_P=$MKDIR_P 12790 case $MKDIR_P in 12791 [\\/$]* | ?:[\\/]* ) ;; 12792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12793 esac 12794_ACEOF 12795 12796cat >>$CONFIG_STATUS <<\_ACEOF 12797# If the template does not know about datarootdir, expand it. 12798# FIXME: This hack should be removed a few years after 2.60. 12799ac_datarootdir_hack=; ac_datarootdir_seen= 12800 12801case `sed -n '/datarootdir/ { 12802 p 12803 q 12804} 12805/@datadir@/p 12806/@docdir@/p 12807/@infodir@/p 12808/@localedir@/p 12809/@mandir@/p 12810' $ac_file_inputs` in 12811*datarootdir*) ac_datarootdir_seen=yes;; 12812*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12813 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12814echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12815_ACEOF 12816cat >>$CONFIG_STATUS <<_ACEOF 12817 ac_datarootdir_hack=' 12818 s&@datadir@&$datadir&g 12819 s&@docdir@&$docdir&g 12820 s&@infodir@&$infodir&g 12821 s&@localedir@&$localedir&g 12822 s&@mandir@&$mandir&g 12823 s&\\\${datarootdir}&$datarootdir&g' ;; 12824esac 12825_ACEOF 12826 12827# Neutralize VPATH when `$srcdir' = `.'. 12828# Shell code in configure.ac might set extrasub. 12829# FIXME: do we really want to maintain this feature? 12830cat >>$CONFIG_STATUS <<_ACEOF 12831 sed "$ac_vpsub 12832$extrasub 12833_ACEOF 12834cat >>$CONFIG_STATUS <<\_ACEOF 12835:t 12836/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12837s&@configure_input@&$configure_input&;t t 12838s&@top_builddir@&$ac_top_builddir_sub&;t t 12839s&@srcdir@&$ac_srcdir&;t t 12840s&@abs_srcdir@&$ac_abs_srcdir&;t t 12841s&@top_srcdir@&$ac_top_srcdir&;t t 12842s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12843s&@builddir@&$ac_builddir&;t t 12844s&@abs_builddir@&$ac_abs_builddir&;t t 12845s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12846s&@INSTALL@&$ac_INSTALL&;t t 12847s&@MKDIR_P@&$ac_MKDIR_P&;t t 12848$ac_datarootdir_hack 12849" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12850 12851test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12852 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12854 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12855which seems to be undefined. Please make sure it is defined." >&5 12856echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12857which seems to be undefined. Please make sure it is defined." >&2;} 12858 12859 rm -f "$tmp/stdin" 12860 case $ac_file in 12861 -) cat "$tmp/out"; rm -f "$tmp/out";; 12862 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12863 esac 12864 ;; 12865 :H) 12866 # 12867 # CONFIG_HEADER 12868 # 12869_ACEOF 12870 12871# Transform confdefs.h into a sed script `conftest.defines', that 12872# substitutes the proper values into config.h.in to produce config.h. 12873rm -f conftest.defines conftest.tail 12874# First, append a space to every undef/define line, to ease matching. 12875echo 's/$/ /' >conftest.defines 12876# Then, protect against being on the right side of a sed subst, or in 12877# an unquoted here document, in config.status. If some macros were 12878# called several times there might be several #defines for the same 12879# symbol, which is useless. But do not sort them, since the last 12880# AC_DEFINE must be honored. 12881ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12882# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 12883# NAME is the cpp macro being defined, VALUE is the value it is being given. 12884# PARAMS is the parameter list in the macro definition--in most cases, it's 12885# just an empty string. 12886ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 12887ac_dB='\\)[ (].*,\\1define\\2' 12888ac_dC=' ' 12889ac_dD=' ,' 12890 12891uniq confdefs.h | 12892 sed -n ' 12893 t rset 12894 :rset 12895 s/^[ ]*#[ ]*define[ ][ ]*// 12896 t ok 12897 d 12898 :ok 12899 s/[\\&,]/\\&/g 12900 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 12901 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 12902 ' >>conftest.defines 12903 12904# Remove the space that was appended to ease matching. 12905# Then replace #undef with comments. This is necessary, for 12906# example, in the case of _POSIX_SOURCE, which is predefined and required 12907# on some systems where configure will not decide to define it. 12908# (The regexp can be short, since the line contains either #define or #undef.) 12909echo 's/ $// 12910s,^[ #]*u.*,/* & */,' >>conftest.defines 12911 12912# Break up conftest.defines: 12913ac_max_sed_lines=50 12914 12915# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 12916# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 12917# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 12918# et cetera. 12919ac_in='$ac_file_inputs' 12920ac_out='"$tmp/out1"' 12921ac_nxt='"$tmp/out2"' 12922 12923while : 12924do 12925 # Write a here document: 12926 cat >>$CONFIG_STATUS <<_ACEOF 12927 # First, check the format of the line: 12928 cat >"\$tmp/defines.sed" <<\\CEOF 12929/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 12930/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 12931b 12932:def 12933_ACEOF 12934 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 12935 echo 'CEOF 12936 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 12937 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 12938 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 12939 grep . conftest.tail >/dev/null || break 12940 rm -f conftest.defines 12941 mv conftest.tail conftest.defines 12942done 12943rm -f conftest.defines conftest.tail 12944 12945echo "ac_result=$ac_in" >>$CONFIG_STATUS 12946cat >>$CONFIG_STATUS <<\_ACEOF 12947 if test x"$ac_file" != x-; then 12948 echo "/* $configure_input */" >"$tmp/config.h" 12949 cat "$ac_result" >>"$tmp/config.h" 12950 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 12951 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12952echo "$as_me: $ac_file is unchanged" >&6;} 12953 else 12954 rm -f $ac_file 12955 mv "$tmp/config.h" $ac_file 12956 fi 12957 else 12958 echo "/* $configure_input */" 12959 cat "$ac_result" 12960 fi 12961 rm -f "$tmp/out12" 12962# Compute $ac_file's index in $config_headers. 12963_am_arg=$ac_file 12964_am_stamp_count=1 12965for _am_header in $config_headers :; do 12966 case $_am_header in 12967 $_am_arg | $_am_arg:* ) 12968 break ;; 12969 * ) 12970 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12971 esac 12972done 12973echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12974$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12975 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12976 X"$_am_arg" : 'X\(//\)$' \| \ 12977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12978echo X"$_am_arg" | 12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12980 s//\1/ 12981 q 12982 } 12983 /^X\(\/\/\)[^/].*/{ 12984 s//\1/ 12985 q 12986 } 12987 /^X\(\/\/\)$/{ 12988 s//\1/ 12989 q 12990 } 12991 /^X\(\/\).*/{ 12992 s//\1/ 12993 q 12994 } 12995 s/.*/./; q'`/stamp-h$_am_stamp_count 12996 ;; 12997 12998 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 12999echo "$as_me: executing $ac_file commands" >&6;} 13000 ;; 13001 esac 13002 13003 13004 case $ac_file$ac_mode in 13005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 13006 # Strip MF so we end up with the name of the file. 13007 mf=`echo "$mf" | sed -e 's/:.*$//'` 13008 # Check whether this is an Automake generated Makefile or not. 13009 # We used to match only the files named `Makefile.in', but 13010 # some people rename them; so instead we look at the file content. 13011 # Grep'ing the first line is not enough: some people post-process 13012 # each Makefile.in and add a new line on top of each file to say so. 13013 # Grep'ing the whole file is not good either: AIX grep has a line 13014 # limit of 2048, but all sed's we know have understand at least 4000. 13015 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13016 dirpart=`$as_dirname -- "$mf" || 13017$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13018 X"$mf" : 'X\(//\)[^/]' \| \ 13019 X"$mf" : 'X\(//\)$' \| \ 13020 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13021echo X"$mf" | 13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13023 s//\1/ 13024 q 13025 } 13026 /^X\(\/\/\)[^/].*/{ 13027 s//\1/ 13028 q 13029 } 13030 /^X\(\/\/\)$/{ 13031 s//\1/ 13032 q 13033 } 13034 /^X\(\/\).*/{ 13035 s//\1/ 13036 q 13037 } 13038 s/.*/./; q'` 13039 else 13040 continue 13041 fi 13042 # Extract the definition of DEPDIR, am__include, and am__quote 13043 # from the Makefile without running `make'. 13044 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13045 test -z "$DEPDIR" && continue 13046 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13047 test -z "am__include" && continue 13048 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13049 # When using ansi2knr, U may be empty or an underscore; expand it 13050 U=`sed -n 's/^U = //p' < "$mf"` 13051 # Find all dependency output files, they are included files with 13052 # $(DEPDIR) in their names. We invoke sed twice because it is the 13053 # simplest approach to changing $(DEPDIR) to its actual value in the 13054 # expansion. 13055 for file in `sed -n " 13056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13058 # Make sure the directory exists. 13059 test -f "$dirpart/$file" && continue 13060 fdir=`$as_dirname -- "$file" || 13061$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13062 X"$file" : 'X\(//\)[^/]' \| \ 13063 X"$file" : 'X\(//\)$' \| \ 13064 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13065echo X"$file" | 13066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13067 s//\1/ 13068 q 13069 } 13070 /^X\(\/\/\)[^/].*/{ 13071 s//\1/ 13072 q 13073 } 13074 /^X\(\/\/\)$/{ 13075 s//\1/ 13076 q 13077 } 13078 /^X\(\/\).*/{ 13079 s//\1/ 13080 q 13081 } 13082 s/.*/./; q'` 13083 { as_dir=$dirpart/$fdir 13084 case $as_dir in #( 13085 -*) as_dir=./$as_dir;; 13086 esac 13087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13088 as_dirs= 13089 while :; do 13090 case $as_dir in #( 13091 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 13092 *) as_qdir=$as_dir;; 13093 esac 13094 as_dirs="'$as_qdir' $as_dirs" 13095 as_dir=`$as_dirname -- "$as_dir" || 13096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13097 X"$as_dir" : 'X\(//\)[^/]' \| \ 13098 X"$as_dir" : 'X\(//\)$' \| \ 13099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13100echo X"$as_dir" | 13101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13102 s//\1/ 13103 q 13104 } 13105 /^X\(\/\/\)[^/].*/{ 13106 s//\1/ 13107 q 13108 } 13109 /^X\(\/\/\)$/{ 13110 s//\1/ 13111 q 13112 } 13113 /^X\(\/\).*/{ 13114 s//\1/ 13115 q 13116 } 13117 s/.*/./; q'` 13118 test -d "$as_dir" && break 13119 done 13120 test -z "$as_dirs" || eval "mkdir $as_dirs" 13121 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13122echo "$as_me: error: cannot create directory $as_dir" >&2;} 13123 { (exit 1); exit 1; }; }; } 13124 # echo "creating $dirpart/$file" 13125 echo '# dummy' > "$dirpart/$file" 13126 done 13127done 13128 ;; 13129 "libtool":C) 13130 13131 # See if we are running on zsh, and set the options which allow our 13132 # commands through without removal of \ escapes. 13133 if test -n "${ZSH_VERSION+set}" ; then 13134 setopt NO_GLOB_SUBST 13135 fi 13136 13137 cfgfile="${ofile}T" 13138 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13139 $RM "$cfgfile" 13140 13141 cat <<_LT_EOF >> "$cfgfile" 13142#! $SHELL 13143 13144# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13145# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13146# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13147# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13148# 13149# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13150# 2006, 2007, 2008 Free Software Foundation, Inc. 13151# Written by Gordon Matzigkeit, 1996 13152# 13153# This file is part of GNU Libtool. 13154# 13155# GNU Libtool is free software; you can redistribute it and/or 13156# modify it under the terms of the GNU General Public License as 13157# published by the Free Software Foundation; either version 2 of 13158# the License, or (at your option) any later version. 13159# 13160# As a special exception to the GNU General Public License, 13161# if you distribute this file as part of a program or library that 13162# is built using GNU Libtool, you may include this file under the 13163# same distribution terms that you use for the rest of that program. 13164# 13165# GNU Libtool is distributed in the hope that it will be useful, 13166# but WITHOUT ANY WARRANTY; without even the implied warranty of 13167# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13168# GNU General Public License for more details. 13169# 13170# You should have received a copy of the GNU General Public License 13171# along with GNU Libtool; see the file COPYING. If not, a copy 13172# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13173# obtained by writing to the Free Software Foundation, Inc., 13174# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13175 13176 13177# The names of the tagged configurations supported by this script. 13178available_tags="" 13179 13180# ### BEGIN LIBTOOL CONFIG 13181 13182# Which release of libtool.m4 was used? 13183macro_version=$macro_version 13184macro_revision=$macro_revision 13185 13186# Whether or not to build shared libraries. 13187build_libtool_libs=$enable_shared 13188 13189# Whether or not to build static libraries. 13190build_old_libs=$enable_static 13191 13192# What type of objects to build. 13193pic_mode=$pic_mode 13194 13195# Whether or not to optimize for fast installation. 13196fast_install=$enable_fast_install 13197 13198# The host system. 13199host_alias=$host_alias 13200host=$host 13201host_os=$host_os 13202 13203# The build system. 13204build_alias=$build_alias 13205build=$build 13206build_os=$build_os 13207 13208# A sed program that does not truncate output. 13209SED=$lt_SED 13210 13211# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13212Xsed="\$SED -e 1s/^X//" 13213 13214# A grep program that handles long lines. 13215GREP=$lt_GREP 13216 13217# An ERE matcher. 13218EGREP=$lt_EGREP 13219 13220# A literal string matcher. 13221FGREP=$lt_FGREP 13222 13223# A BSD- or MS-compatible name lister. 13224NM=$lt_NM 13225 13226# Whether we need soft or hard links. 13227LN_S=$lt_LN_S 13228 13229# What is the maximum length of a command? 13230max_cmd_len=$max_cmd_len 13231 13232# Object file suffix (normally "o"). 13233objext=$ac_objext 13234 13235# Executable file suffix (normally ""). 13236exeext=$exeext 13237 13238# whether the shell understands "unset". 13239lt_unset=$lt_unset 13240 13241# turn spaces into newlines. 13242SP2NL=$lt_lt_SP2NL 13243 13244# turn newlines into spaces. 13245NL2SP=$lt_lt_NL2SP 13246 13247# How to create reloadable object files. 13248reload_flag=$lt_reload_flag 13249reload_cmds=$lt_reload_cmds 13250 13251# An object symbol dumper. 13252OBJDUMP=$lt_OBJDUMP 13253 13254# Method to check whether dependent libraries are shared objects. 13255deplibs_check_method=$lt_deplibs_check_method 13256 13257# Command to use when deplibs_check_method == "file_magic". 13258file_magic_cmd=$lt_file_magic_cmd 13259 13260# The archiver. 13261AR=$lt_AR 13262AR_FLAGS=$lt_AR_FLAGS 13263 13264# A symbol stripping program. 13265STRIP=$lt_STRIP 13266 13267# Commands used to install an old-style archive. 13268RANLIB=$lt_RANLIB 13269old_postinstall_cmds=$lt_old_postinstall_cmds 13270old_postuninstall_cmds=$lt_old_postuninstall_cmds 13271 13272# A C compiler. 13273LTCC=$lt_CC 13274 13275# LTCC compiler flags. 13276LTCFLAGS=$lt_CFLAGS 13277 13278# Take the output of nm and produce a listing of raw symbols and C names. 13279global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13280 13281# Transform the output of nm in a proper C declaration. 13282global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13283 13284# Transform the output of nm in a C name address pair. 13285global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13286 13287# Transform the output of nm in a C name address pair when lib prefix is needed. 13288global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13289 13290# The name of the directory that contains temporary libtool files. 13291objdir=$objdir 13292 13293# Shell to use when invoking shell scripts. 13294SHELL=$lt_SHELL 13295 13296# An echo program that does not interpret backslashes. 13297ECHO=$lt_ECHO 13298 13299# Used to examine libraries when file_magic_cmd begins with "file". 13300MAGIC_CMD=$MAGIC_CMD 13301 13302# Must we lock files when doing compilation? 13303need_locks=$lt_need_locks 13304 13305# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13306DSYMUTIL=$lt_DSYMUTIL 13307 13308# Tool to change global to local symbols on Mac OS X. 13309NMEDIT=$lt_NMEDIT 13310 13311# Tool to manipulate fat objects and archives on Mac OS X. 13312LIPO=$lt_LIPO 13313 13314# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13315OTOOL=$lt_OTOOL 13316 13317# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13318OTOOL64=$lt_OTOOL64 13319 13320# Old archive suffix (normally "a"). 13321libext=$libext 13322 13323# Shared library suffix (normally ".so"). 13324shrext_cmds=$lt_shrext_cmds 13325 13326# The commands to extract the exported symbol list from a shared archive. 13327extract_expsyms_cmds=$lt_extract_expsyms_cmds 13328 13329# Variables whose values should be saved in libtool wrapper scripts and 13330# restored at link time. 13331variables_saved_for_relink=$lt_variables_saved_for_relink 13332 13333# Do we need the "lib" prefix for modules? 13334need_lib_prefix=$need_lib_prefix 13335 13336# Do we need a version for libraries? 13337need_version=$need_version 13338 13339# Library versioning type. 13340version_type=$version_type 13341 13342# Shared library runtime path variable. 13343runpath_var=$runpath_var 13344 13345# Shared library path variable. 13346shlibpath_var=$shlibpath_var 13347 13348# Is shlibpath searched before the hard-coded library search path? 13349shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13350 13351# Format of library name prefix. 13352libname_spec=$lt_libname_spec 13353 13354# List of archive names. First name is the real one, the rest are links. 13355# The last name is the one that the linker finds with -lNAME 13356library_names_spec=$lt_library_names_spec 13357 13358# The coded name of the library, if different from the real name. 13359soname_spec=$lt_soname_spec 13360 13361# Command to use after installation of a shared archive. 13362postinstall_cmds=$lt_postinstall_cmds 13363 13364# Command to use after uninstallation of a shared archive. 13365postuninstall_cmds=$lt_postuninstall_cmds 13366 13367# Commands used to finish a libtool library installation in a directory. 13368finish_cmds=$lt_finish_cmds 13369 13370# As "finish_cmds", except a single script fragment to be evaled but 13371# not shown. 13372finish_eval=$lt_finish_eval 13373 13374# Whether we should hardcode library paths into libraries. 13375hardcode_into_libs=$hardcode_into_libs 13376 13377# Compile-time system search path for libraries. 13378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13379 13380# Run-time system search path for libraries. 13381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13382 13383# Whether dlopen is supported. 13384dlopen_support=$enable_dlopen 13385 13386# Whether dlopen of programs is supported. 13387dlopen_self=$enable_dlopen_self 13388 13389# Whether dlopen of statically linked programs is supported. 13390dlopen_self_static=$enable_dlopen_self_static 13391 13392# Commands to strip libraries. 13393old_striplib=$lt_old_striplib 13394striplib=$lt_striplib 13395 13396 13397# The linker used to build libraries. 13398LD=$lt_LD 13399 13400# Commands used to build an old-style archive. 13401old_archive_cmds=$lt_old_archive_cmds 13402 13403# A language specific compiler. 13404CC=$lt_compiler 13405 13406# Is the compiler the GNU compiler? 13407with_gcc=$GCC 13408 13409# Compiler flag to turn off builtin functions. 13410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13411 13412# How to pass a linker flag through the compiler. 13413wl=$lt_lt_prog_compiler_wl 13414 13415# Additional compiler flags for building library objects. 13416pic_flag=$lt_lt_prog_compiler_pic 13417 13418# Compiler flag to prevent dynamic linking. 13419link_static_flag=$lt_lt_prog_compiler_static 13420 13421# Does compiler simultaneously support -c and -o options? 13422compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13423 13424# Whether or not to add -lc for building shared libraries. 13425build_libtool_need_lc=$archive_cmds_need_lc 13426 13427# Whether or not to disallow shared libs when runtime libs are static. 13428allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13429 13430# Compiler flag to allow reflexive dlopens. 13431export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13432 13433# Compiler flag to generate shared objects directly from archives. 13434whole_archive_flag_spec=$lt_whole_archive_flag_spec 13435 13436# Whether the compiler copes with passing no objects directly. 13437compiler_needs_object=$lt_compiler_needs_object 13438 13439# Create an old-style archive from a shared archive. 13440old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13441 13442# Create a temporary old-style archive to link instead of a shared archive. 13443old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13444 13445# Commands used to build a shared archive. 13446archive_cmds=$lt_archive_cmds 13447archive_expsym_cmds=$lt_archive_expsym_cmds 13448 13449# Commands used to build a loadable module if different from building 13450# a shared archive. 13451module_cmds=$lt_module_cmds 13452module_expsym_cmds=$lt_module_expsym_cmds 13453 13454# Whether we are building with GNU ld or not. 13455with_gnu_ld=$lt_with_gnu_ld 13456 13457# Flag that allows shared libraries with undefined symbols to be built. 13458allow_undefined_flag=$lt_allow_undefined_flag 13459 13460# Flag that enforces no undefined symbols. 13461no_undefined_flag=$lt_no_undefined_flag 13462 13463# Flag to hardcode \$libdir into a binary during linking. 13464# This must work even if \$libdir does not exist 13465hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13466 13467# If ld is used when linking, flag to hardcode \$libdir into a binary 13468# during linking. This must work even if \$libdir does not exist. 13469hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13470 13471# Whether we need a single "-rpath" flag with a separated argument. 13472hardcode_libdir_separator=$lt_hardcode_libdir_separator 13473 13474# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13475# DIR into the resulting binary. 13476hardcode_direct=$hardcode_direct 13477 13478# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13479# DIR into the resulting binary and the resulting library dependency is 13480# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13481# library is relocated. 13482hardcode_direct_absolute=$hardcode_direct_absolute 13483 13484# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13485# into the resulting binary. 13486hardcode_minus_L=$hardcode_minus_L 13487 13488# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13489# into the resulting binary. 13490hardcode_shlibpath_var=$hardcode_shlibpath_var 13491 13492# Set to "yes" if building a shared library automatically hardcodes DIR 13493# into the library and all subsequent libraries and executables linked 13494# against it. 13495hardcode_automatic=$hardcode_automatic 13496 13497# Set to yes if linker adds runtime paths of dependent libraries 13498# to runtime path list. 13499inherit_rpath=$inherit_rpath 13500 13501# Whether libtool must link a program against all its dependency libraries. 13502link_all_deplibs=$link_all_deplibs 13503 13504# Fix the shell variable \$srcfile for the compiler. 13505fix_srcfile_path=$lt_fix_srcfile_path 13506 13507# Set to "yes" if exported symbols are required. 13508always_export_symbols=$always_export_symbols 13509 13510# The commands to list exported symbols. 13511export_symbols_cmds=$lt_export_symbols_cmds 13512 13513# Symbols that should not be listed in the preloaded symbols. 13514exclude_expsyms=$lt_exclude_expsyms 13515 13516# Symbols that must always be exported. 13517include_expsyms=$lt_include_expsyms 13518 13519# Commands necessary for linking programs (against libraries) with templates. 13520prelink_cmds=$lt_prelink_cmds 13521 13522# Specify filename containing input files. 13523file_list_spec=$lt_file_list_spec 13524 13525# How to hardcode a shared library path into an executable. 13526hardcode_action=$hardcode_action 13527 13528# ### END LIBTOOL CONFIG 13529 13530_LT_EOF 13531 13532 case $host_os in 13533 aix3*) 13534 cat <<\_LT_EOF >> "$cfgfile" 13535# AIX sometimes has problems with the GCC collect2 program. For some 13536# reason, if we set the COLLECT_NAMES environment variable, the problems 13537# vanish in a puff of smoke. 13538if test "X${COLLECT_NAMES+set}" != Xset; then 13539 COLLECT_NAMES= 13540 export COLLECT_NAMES 13541fi 13542_LT_EOF 13543 ;; 13544 esac 13545 13546 13547ltmain="$ac_aux_dir/ltmain.sh" 13548 13549 13550 # We use sed instead of cat because bash on DJGPP gets confused if 13551 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13552 # text mode, it properly converts lines to CR/LF. This bash problem 13553 # is reportedly fixed, but why not run on old versions too? 13554 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13555 || (rm -f "$cfgfile"; exit 1) 13556 13557 case $xsi_shell in 13558 yes) 13559 cat << \_LT_EOF >> "$cfgfile" 13560 13561# func_dirname file append nondir_replacement 13562# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13563# otherwise set result to NONDIR_REPLACEMENT. 13564func_dirname () 13565{ 13566 case ${1} in 13567 */*) func_dirname_result="${1%/*}${2}" ;; 13568 * ) func_dirname_result="${3}" ;; 13569 esac 13570} 13571 13572# func_basename file 13573func_basename () 13574{ 13575 func_basename_result="${1##*/}" 13576} 13577 13578# func_dirname_and_basename file append nondir_replacement 13579# perform func_basename and func_dirname in a single function 13580# call: 13581# dirname: Compute the dirname of FILE. If nonempty, 13582# add APPEND to the result, otherwise set result 13583# to NONDIR_REPLACEMENT. 13584# value returned in "$func_dirname_result" 13585# basename: Compute filename of FILE. 13586# value retuned in "$func_basename_result" 13587# Implementation must be kept synchronized with func_dirname 13588# and func_basename. For efficiency, we do not delegate to 13589# those functions but instead duplicate the functionality here. 13590func_dirname_and_basename () 13591{ 13592 case ${1} in 13593 */*) func_dirname_result="${1%/*}${2}" ;; 13594 * ) func_dirname_result="${3}" ;; 13595 esac 13596 func_basename_result="${1##*/}" 13597} 13598 13599# func_stripname prefix suffix name 13600# strip PREFIX and SUFFIX off of NAME. 13601# PREFIX and SUFFIX must not contain globbing or regex special 13602# characters, hashes, percent signs, but SUFFIX may contain a leading 13603# dot (in which case that matches only a dot). 13604func_stripname () 13605{ 13606 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13607 # positional parameters, so assign one to ordinary parameter first. 13608 func_stripname_result=${3} 13609 func_stripname_result=${func_stripname_result#"${1}"} 13610 func_stripname_result=${func_stripname_result%"${2}"} 13611} 13612 13613# func_opt_split 13614func_opt_split () 13615{ 13616 func_opt_split_opt=${1%%=*} 13617 func_opt_split_arg=${1#*=} 13618} 13619 13620# func_lo2o object 13621func_lo2o () 13622{ 13623 case ${1} in 13624 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13625 *) func_lo2o_result=${1} ;; 13626 esac 13627} 13628 13629# func_xform libobj-or-source 13630func_xform () 13631{ 13632 func_xform_result=${1%.*}.lo 13633} 13634 13635# func_arith arithmetic-term... 13636func_arith () 13637{ 13638 func_arith_result=$(( $* )) 13639} 13640 13641# func_len string 13642# STRING may not start with a hyphen. 13643func_len () 13644{ 13645 func_len_result=${#1} 13646} 13647 13648_LT_EOF 13649 ;; 13650 *) # Bourne compatible functions. 13651 cat << \_LT_EOF >> "$cfgfile" 13652 13653# func_dirname file append nondir_replacement 13654# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13655# otherwise set result to NONDIR_REPLACEMENT. 13656func_dirname () 13657{ 13658 # Extract subdirectory from the argument. 13659 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13660 if test "X$func_dirname_result" = "X${1}"; then 13661 func_dirname_result="${3}" 13662 else 13663 func_dirname_result="$func_dirname_result${2}" 13664 fi 13665} 13666 13667# func_basename file 13668func_basename () 13669{ 13670 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13671} 13672 13673 13674# func_stripname prefix suffix name 13675# strip PREFIX and SUFFIX off of NAME. 13676# PREFIX and SUFFIX must not contain globbing or regex special 13677# characters, hashes, percent signs, but SUFFIX may contain a leading 13678# dot (in which case that matches only a dot). 13679# func_strip_suffix prefix name 13680func_stripname () 13681{ 13682 case ${2} in 13683 .*) func_stripname_result=`$ECHO "X${3}" \ 13684 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13685 *) func_stripname_result=`$ECHO "X${3}" \ 13686 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13687 esac 13688} 13689 13690# sed scripts: 13691my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13692my_sed_long_arg='1s/^-[^=]*=//' 13693 13694# func_opt_split 13695func_opt_split () 13696{ 13697 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13698 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13699} 13700 13701# func_lo2o object 13702func_lo2o () 13703{ 13704 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13705} 13706 13707# func_xform libobj-or-source 13708func_xform () 13709{ 13710 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13711} 13712 13713# func_arith arithmetic-term... 13714func_arith () 13715{ 13716 func_arith_result=`expr "$@"` 13717} 13718 13719# func_len string 13720# STRING may not start with a hyphen. 13721func_len () 13722{ 13723 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13724} 13725 13726_LT_EOF 13727esac 13728 13729case $lt_shell_append in 13730 yes) 13731 cat << \_LT_EOF >> "$cfgfile" 13732 13733# func_append var value 13734# Append VALUE to the end of shell variable VAR. 13735func_append () 13736{ 13737 eval "$1+=\$2" 13738} 13739_LT_EOF 13740 ;; 13741 *) 13742 cat << \_LT_EOF >> "$cfgfile" 13743 13744# func_append var value 13745# Append VALUE to the end of shell variable VAR. 13746func_append () 13747{ 13748 eval "$1=\$$1\$2" 13749} 13750 13751_LT_EOF 13752 ;; 13753 esac 13754 13755 13756 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13757 || (rm -f "$cfgfile"; exit 1) 13758 13759 mv -f "$cfgfile" "$ofile" || 13760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13761 chmod +x "$ofile" 13762 13763 ;; 13764 "default":C) chmod +x libusb-config ;; 13765 13766 esac 13767done # for ac_tag 13768 13769 13770{ (exit 0); exit 0; } 13771_ACEOF 13772chmod +x $CONFIG_STATUS 13773ac_clean_files=$ac_clean_files_save 13774 13775 13776# configure is writing to config.log, and then calls config.status. 13777# config.status does its own redirection, appending to config.log. 13778# Unfortunately, on DOS this fails, as config.log is still kept open 13779# by configure, so config.status won't be able to write to it; its 13780# output is simply discarded. So we exec the FD to /dev/null, 13781# effectively closing config.log, so it can be properly (re)opened and 13782# appended to by config.status. When coming back to configure, we 13783# need to make the FD available again. 13784if test "$no_create" != yes; then 13785 ac_cs_success=: 13786 ac_config_status_args= 13787 test "$silent" = yes && 13788 ac_config_status_args="$ac_config_status_args --quiet" 13789 exec 5>/dev/null 13790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13791 exec 5>>config.log 13792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13793 # would make configure fail if this is the last instruction. 13794 $ac_cs_success || { (exit 1); exit 1; } 13795fi 13796 13797 13798