1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for ccid 1.3.11. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$lt_ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585ECHO=${lt_ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $ECHO works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<_LT_EOF 604$* 605_LT_EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$lt_ECHO"; then 614 if test "X${echo_test_string+set}" != Xset; then 615 # find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 620 then 621 break 622 fi 623 done 624 fi 625 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 : 630 else 631 # The Solaris, AIX, and Digital Unix default echo programs unquote 632 # backslashes. This makes it impossible to quote backslashes using 633 # echo "$something" | sed 's/\\/\\\\/g' 634 # 635 # So, first we look for a working echo in the user's PATH. 636 637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 638 for dir in $PATH /usr/ucb; do 639 IFS="$lt_save_ifs" 640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$dir/echo" 645 break 646 fi 647 done 648 IFS="$lt_save_ifs" 649 650 if test "X$ECHO" = Xecho; then 651 # We didn't find a better echo, so look for alternatives. 652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 # This shell has a builtin print -r that does the trick. 656 ECHO='print -r' 657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 658 test "X$CONFIG_SHELL" != X/bin/ksh; then 659 # If we have ksh, try running configure again with it. 660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 661 export ORIGINAL_CONFIG_SHELL 662 CONFIG_SHELL=/bin/ksh 663 export CONFIG_SHELL 664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 665 else 666 # Try using printf. 667 ECHO='printf %s\n' 668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 # Cool, printf works 672 : 673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 674 test "X$echo_testing_string" = 'X\t' && 675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 676 test "X$echo_testing_string" = "X$echo_test_string"; then 677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 678 export CONFIG_SHELL 679 SHELL="$CONFIG_SHELL" 680 export SHELL 681 ECHO="$CONFIG_SHELL $0 --fallback-echo" 682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 683 test "X$echo_testing_string" = 'X\t' && 684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 685 test "X$echo_testing_string" = "X$echo_test_string"; then 686 ECHO="$CONFIG_SHELL $0 --fallback-echo" 687 else 688 # maybe with a smaller string... 689 prev=: 690 691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 693 then 694 break 695 fi 696 prev="$cmd" 697 done 698 699 if test "$prev" != 'sed 50q "$0"'; then 700 echo_test_string=`eval $prev` 701 export echo_test_string 702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 703 else 704 # Oops. We lost completely, so just stick with echo. 705 ECHO=echo 706 fi 707 fi 708 fi 709 fi 710 fi 711fi 712 713# Copy echo and quote the copy suitably for passing to libtool from 714# the Makefile, instead of quoting the original, which is used later. 715lt_ECHO=$ECHO 716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 718fi 719 720 721 722 723exec 7<&0 </dev/null 6>&1 724 725# Name of the host. 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 727# so uname gets run too. 728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 729 730# 731# Initializations. 732# 733ac_default_prefix=/usr/local 734ac_clean_files= 735ac_config_libobj_dir=. 736LIBOBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME='ccid' 745PACKAGE_TARNAME='ccid' 746PACKAGE_VERSION='1.3.11' 747PACKAGE_STRING='ccid 1.3.11' 748PACKAGE_BUGREPORT='' 749 750ac_unique_file="src/ifdhandler.c" 751ac_default_prefix=/usr/local 752# Factoring default headers for most tests. 753ac_includes_default="\ 754#include <stdio.h> 755#ifdef HAVE_SYS_TYPES_H 756# include <sys/types.h> 757#endif 758#ifdef HAVE_SYS_STAT_H 759# include <sys/stat.h> 760#endif 761#ifdef STDC_HEADERS 762# include <stdlib.h> 763# include <stddef.h> 764#else 765# ifdef HAVE_STDLIB_H 766# include <stdlib.h> 767# endif 768#endif 769#ifdef HAVE_STRING_H 770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 771# include <memory.h> 772# endif 773# include <string.h> 774#endif 775#ifdef HAVE_STRINGS_H 776# include <strings.h> 777#endif 778#ifdef HAVE_INTTYPES_H 779# include <inttypes.h> 780#endif 781#ifdef HAVE_STDINT_H 782# include <stdint.h> 783#endif 784#ifdef HAVE_UNISTD_H 785# include <unistd.h> 786#endif" 787 788ac_subst_vars='LTLIBOBJS 789LIBOBJS 790ccidtwindir 791usbdropdir 792bundle 793ac_aux_dir 794NOCLASS 795UDEV_FALSE 796UDEV_TRUE 797WITHOUT_PCSC_FALSE 798WITHOUT_PCSC_TRUE 799WITH_TWIN_SERIAL_FALSE 800WITH_TWIN_SERIAL_TRUE 801PTHREAD_CFLAGS 802PTHREAD_LIBS 803PTHREAD_CC 804acx_pthread_config 805SYMBOL_VISIBILITY 806WITH_LIBUSB_FALSE 807WITH_LIBUSB_TRUE 808LIBUSBCONFIG 809LIBUSB_LIBS 810LIBUSB_CFLAGS 811DYN_LIB_EXT 812BUNDLE_HOST 813LIBTOOL_DEPS 814OTOOL64 815OTOOL 816LIPO 817NMEDIT 818DSYMUTIL 819lt_ECHO 820RANLIB 821AR 822OBJDUMP 823NM 824ac_ct_DUMPBIN 825DUMPBIN 826LD 827FGREP 828SED 829LIBTOOL 830EGREP 831GREP 832PCSC_LIBS 833PCSC_CFLAGS 834PKG_CONFIG 835LEXLIB 836LEX_OUTPUT_ROOT 837LEX 838LN_S 839CPP 840am__fastdepCC_FALSE 841am__fastdepCC_TRUE 842CCDEPMODE 843AMDEPBACKSLASH 844AMDEP_FALSE 845AMDEP_TRUE 846am__quote 847am__include 848DEPDIR 849OBJEXT 850EXEEXT 851ac_ct_CC 852CPPFLAGS 853LDFLAGS 854CFLAGS 855CC 856MAINT 857MAINTAINER_MODE_FALSE 858MAINTAINER_MODE_TRUE 859host_os 860host_vendor 861host_cpu 862host 863build_os 864build_vendor 865build_cpu 866build 867am__untar 868am__tar 869AMTAR 870am__leading_dot 871SET_MAKE 872AWK 873mkdir_p 874MKDIR_P 875INSTALL_STRIP_PROGRAM 876STRIP 877install_sh 878MAKEINFO 879AUTOHEADER 880AUTOMAKE 881AUTOCONF 882ACLOCAL 883VERSION 884PACKAGE 885CYGPATH_W 886am__isrc 887INSTALL_DATA 888INSTALL_SCRIPT 889INSTALL_PROGRAM 890target_alias 891host_alias 892build_alias 893LIBS 894ECHO_T 895ECHO_N 896ECHO_C 897DEFS 898mandir 899localedir 900libdir 901psdir 902pdfdir 903dvidir 904htmldir 905infodir 906docdir 907oldincludedir 908includedir 909localstatedir 910sharedstatedir 911sysconfdir 912datadir 913datarootdir 914libexecdir 915sbindir 916bindir 917program_transform_name 918prefix 919exec_prefix 920PACKAGE_BUGREPORT 921PACKAGE_STRING 922PACKAGE_VERSION 923PACKAGE_TARNAME 924PACKAGE_NAME 925PATH_SEPARATOR 926SHELL' 927ac_subst_files='' 928ac_user_opts=' 929enable_option_checking 930enable_maintainer_mode 931enable_dependency_tracking 932enable_shared 933enable_static 934with_pic 935enable_fast_install 936with_gnu_ld 937enable_libtool_lock 938enable_libusb 939enable_usb_interrupt 940enable_composite_as_multislot 941enable_multi_thread 942enable_bundle 943enable_usbdropdir 944enable_twinserial 945enable_ccidtwindir 946enable_pcsclite 947enable_udev 948enable_class 949' 950 ac_precious_vars='build_alias 951host_alias 952target_alias 953CC 954CFLAGS 955LDFLAGS 956LIBS 957CPPFLAGS 958CPP 959PKG_CONFIG 960PCSC_CFLAGS 961PCSC_LIBS 962LIBUSB_CFLAGS 963LIBUSB_LIBS' 964 965 966# Initialize some variables set by options. 967ac_init_help= 968ac_init_version=false 969ac_unrecognized_opts= 970ac_unrecognized_sep= 971# The variables have the same names as the options, with 972# dashes changed to underlines. 973cache_file=/dev/null 974exec_prefix=NONE 975no_create= 976no_recursion= 977prefix=NONE 978program_prefix=NONE 979program_suffix=NONE 980program_transform_name=s,x,x, 981silent= 982site= 983srcdir= 984verbose= 985x_includes=NONE 986x_libraries=NONE 987 988# Installation directory options. 989# These are left unexpanded so users can "make install exec_prefix=/foo" 990# and all the variables that are supposed to be based on exec_prefix 991# by default will actually change. 992# Use braces instead of parens because sh, perl, etc. also accept them. 993# (The list follows the same order as the GNU Coding Standards.) 994bindir='${exec_prefix}/bin' 995sbindir='${exec_prefix}/sbin' 996libexecdir='${exec_prefix}/libexec' 997datarootdir='${prefix}/share' 998datadir='${datarootdir}' 999sysconfdir='${prefix}/etc' 1000sharedstatedir='${prefix}/com' 1001localstatedir='${prefix}/var' 1002includedir='${prefix}/include' 1003oldincludedir='/usr/include' 1004docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1005infodir='${datarootdir}/info' 1006htmldir='${docdir}' 1007dvidir='${docdir}' 1008pdfdir='${docdir}' 1009psdir='${docdir}' 1010libdir='${exec_prefix}/lib' 1011localedir='${datarootdir}/locale' 1012mandir='${datarootdir}/man' 1013 1014ac_prev= 1015ac_dashdash= 1016for ac_option 1017do 1018 # If the previous option needs an argument, assign it. 1019 if test -n "$ac_prev"; then 1020 eval $ac_prev=\$ac_option 1021 ac_prev= 1022 continue 1023 fi 1024 1025 case $ac_option in 1026 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1027 *) ac_optarg=yes ;; 1028 esac 1029 1030 # Accept the important Cygnus configure options, so we can diagnose typos. 1031 1032 case $ac_dashdash$ac_option in 1033 --) 1034 ac_dashdash=yes ;; 1035 1036 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1037 ac_prev=bindir ;; 1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1039 bindir=$ac_optarg ;; 1040 1041 -build | --build | --buil | --bui | --bu) 1042 ac_prev=build_alias ;; 1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1044 build_alias=$ac_optarg ;; 1045 1046 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1048 ac_prev=cache_file ;; 1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1051 cache_file=$ac_optarg ;; 1052 1053 --config-cache | -C) 1054 cache_file=config.cache ;; 1055 1056 -datadir | --datadir | --datadi | --datad) 1057 ac_prev=datadir ;; 1058 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1059 datadir=$ac_optarg ;; 1060 1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1062 | --dataroo | --dataro | --datar) 1063 ac_prev=datarootdir ;; 1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1066 datarootdir=$ac_optarg ;; 1067 1068 -disable-* | --disable-*) 1069 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1070 # Reject names that are not valid shell variable names. 1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1072 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1073 { (exit 1); exit 1; }; } 1074 ac_useropt_orig=$ac_useropt 1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1076 case $ac_user_opts in 1077 *" 1078"enable_$ac_useropt" 1079"*) ;; 1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1081 ac_unrecognized_sep=', ';; 1082 esac 1083 eval enable_$ac_useropt=no ;; 1084 1085 -docdir | --docdir | --docdi | --doc | --do) 1086 ac_prev=docdir ;; 1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1088 docdir=$ac_optarg ;; 1089 1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1091 ac_prev=dvidir ;; 1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1093 dvidir=$ac_optarg ;; 1094 1095 -enable-* | --enable-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1100 { (exit 1); exit 1; }; } 1101 ac_useropt_orig=$ac_useropt 1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1103 case $ac_user_opts in 1104 *" 1105"enable_$ac_useropt" 1106"*) ;; 1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1108 ac_unrecognized_sep=', ';; 1109 esac 1110 eval enable_$ac_useropt=\$ac_optarg ;; 1111 1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1114 | --exec | --exe | --ex) 1115 ac_prev=exec_prefix ;; 1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1118 | --exec=* | --exe=* | --ex=*) 1119 exec_prefix=$ac_optarg ;; 1120 1121 -gas | --gas | --ga | --g) 1122 # Obsolete; use --with-gas. 1123 with_gas=yes ;; 1124 1125 -help | --help | --hel | --he | -h) 1126 ac_init_help=long ;; 1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1128 ac_init_help=recursive ;; 1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1130 ac_init_help=short ;; 1131 1132 -host | --host | --hos | --ho) 1133 ac_prev=host_alias ;; 1134 -host=* | --host=* | --hos=* | --ho=*) 1135 host_alias=$ac_optarg ;; 1136 1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1138 ac_prev=htmldir ;; 1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1140 | --ht=*) 1141 htmldir=$ac_optarg ;; 1142 1143 -includedir | --includedir | --includedi | --included | --include \ 1144 | --includ | --inclu | --incl | --inc) 1145 ac_prev=includedir ;; 1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1147 | --includ=* | --inclu=* | --incl=* | --inc=*) 1148 includedir=$ac_optarg ;; 1149 1150 -infodir | --infodir | --infodi | --infod | --info | --inf) 1151 ac_prev=infodir ;; 1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1153 infodir=$ac_optarg ;; 1154 1155 -libdir | --libdir | --libdi | --libd) 1156 ac_prev=libdir ;; 1157 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1158 libdir=$ac_optarg ;; 1159 1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1161 | --libexe | --libex | --libe) 1162 ac_prev=libexecdir ;; 1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1164 | --libexe=* | --libex=* | --libe=*) 1165 libexecdir=$ac_optarg ;; 1166 1167 -localedir | --localedir | --localedi | --localed | --locale) 1168 ac_prev=localedir ;; 1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1170 localedir=$ac_optarg ;; 1171 1172 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1173 | --localstate | --localstat | --localsta | --localst | --locals) 1174 ac_prev=localstatedir ;; 1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1177 localstatedir=$ac_optarg ;; 1178 1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1180 ac_prev=mandir ;; 1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1182 mandir=$ac_optarg ;; 1183 1184 -nfp | --nfp | --nf) 1185 # Obsolete; use --without-fp. 1186 with_fp=no ;; 1187 1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1189 | --no-cr | --no-c | -n) 1190 no_create=yes ;; 1191 1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1194 no_recursion=yes ;; 1195 1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1198 | --oldin | --oldi | --old | --ol | --o) 1199 ac_prev=oldincludedir ;; 1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1203 oldincludedir=$ac_optarg ;; 1204 1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1206 ac_prev=prefix ;; 1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1208 prefix=$ac_optarg ;; 1209 1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1211 | --program-pre | --program-pr | --program-p) 1212 ac_prev=program_prefix ;; 1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1215 program_prefix=$ac_optarg ;; 1216 1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1218 | --program-suf | --program-su | --program-s) 1219 ac_prev=program_suffix ;; 1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1222 program_suffix=$ac_optarg ;; 1223 1224 -program-transform-name | --program-transform-name \ 1225 | --program-transform-nam | --program-transform-na \ 1226 | --program-transform-n | --program-transform- \ 1227 | --program-transform | --program-transfor \ 1228 | --program-transfo | --program-transf \ 1229 | --program-trans | --program-tran \ 1230 | --progr-tra | --program-tr | --program-t) 1231 ac_prev=program_transform_name ;; 1232 -program-transform-name=* | --program-transform-name=* \ 1233 | --program-transform-nam=* | --program-transform-na=* \ 1234 | --program-transform-n=* | --program-transform-=* \ 1235 | --program-transform=* | --program-transfor=* \ 1236 | --program-transfo=* | --program-transf=* \ 1237 | --program-trans=* | --program-tran=* \ 1238 | --progr-tra=* | --program-tr=* | --program-t=*) 1239 program_transform_name=$ac_optarg ;; 1240 1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1242 ac_prev=pdfdir ;; 1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1244 pdfdir=$ac_optarg ;; 1245 1246 -psdir | --psdir | --psdi | --psd | --ps) 1247 ac_prev=psdir ;; 1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1249 psdir=$ac_optarg ;; 1250 1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1252 | -silent | --silent | --silen | --sile | --sil) 1253 silent=yes ;; 1254 1255 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1256 ac_prev=sbindir ;; 1257 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1258 | --sbi=* | --sb=*) 1259 sbindir=$ac_optarg ;; 1260 1261 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1262 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1263 | --sharedst | --shareds | --shared | --share | --shar \ 1264 | --sha | --sh) 1265 ac_prev=sharedstatedir ;; 1266 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1267 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1268 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1269 | --sha=* | --sh=*) 1270 sharedstatedir=$ac_optarg ;; 1271 1272 -site | --site | --sit) 1273 ac_prev=site ;; 1274 -site=* | --site=* | --sit=*) 1275 site=$ac_optarg ;; 1276 1277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1278 ac_prev=srcdir ;; 1279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1280 srcdir=$ac_optarg ;; 1281 1282 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1283 | --syscon | --sysco | --sysc | --sys | --sy) 1284 ac_prev=sysconfdir ;; 1285 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1286 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1287 sysconfdir=$ac_optarg ;; 1288 1289 -target | --target | --targe | --targ | --tar | --ta | --t) 1290 ac_prev=target_alias ;; 1291 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1292 target_alias=$ac_optarg ;; 1293 1294 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1295 verbose=yes ;; 1296 1297 -version | --version | --versio | --versi | --vers | -V) 1298 ac_init_version=: ;; 1299 1300 -with-* | --with-*) 1301 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1302 # Reject names that are not valid shell variable names. 1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1304 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1305 { (exit 1); exit 1; }; } 1306 ac_useropt_orig=$ac_useropt 1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1308 case $ac_user_opts in 1309 *" 1310"with_$ac_useropt" 1311"*) ;; 1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1313 ac_unrecognized_sep=', ';; 1314 esac 1315 eval with_$ac_useropt=\$ac_optarg ;; 1316 1317 -without-* | --without-*) 1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1319 # Reject names that are not valid shell variable names. 1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1321 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1322 { (exit 1); exit 1; }; } 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=no ;; 1333 1334 --x) 1335 # Obsolete; use --with-x. 1336 with_x=yes ;; 1337 1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1339 | --x-incl | --x-inc | --x-in | --x-i) 1340 ac_prev=x_includes ;; 1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1343 x_includes=$ac_optarg ;; 1344 1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1347 ac_prev=x_libraries ;; 1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1350 x_libraries=$ac_optarg ;; 1351 1352 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1353Try \`$0 --help' for more information." >&2 1354 { (exit 1); exit 1; }; } 1355 ;; 1356 1357 *=*) 1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1359 # Reject names that are not valid shell variable names. 1360 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1361 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1362 { (exit 1); exit 1; }; } 1363 eval $ac_envvar=\$ac_optarg 1364 export $ac_envvar ;; 1365 1366 *) 1367 # FIXME: should be removed in autoconf 3.0. 1368 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1370 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1371 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1372 ;; 1373 1374 esac 1375done 1376 1377if test -n "$ac_prev"; then 1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1379 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1380 { (exit 1); exit 1; }; } 1381fi 1382 1383if test -n "$ac_unrecognized_opts"; then 1384 case $enable_option_checking in 1385 no) ;; 1386 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1387 { (exit 1); exit 1; }; } ;; 1388 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1389 esac 1390fi 1391 1392# Check all directory arguments for consistency. 1393for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1394 datadir sysconfdir sharedstatedir localstatedir includedir \ 1395 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1396 libdir localedir mandir 1397do 1398 eval ac_val=\$$ac_var 1399 # Remove trailing slashes. 1400 case $ac_val in 1401 */ ) 1402 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1403 eval $ac_var=\$ac_val;; 1404 esac 1405 # Be sure to have absolute directory names. 1406 case $ac_val in 1407 [\\/$]* | ?:[\\/]* ) continue;; 1408 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1409 esac 1410 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1411 { (exit 1); exit 1; }; } 1412done 1413 1414# There might be people who depend on the old broken behavior: `$host' 1415# used to hold the argument of --host etc. 1416# FIXME: To remove some day. 1417build=$build_alias 1418host=$host_alias 1419target=$target_alias 1420 1421# FIXME: To remove some day. 1422if test "x$host_alias" != x; then 1423 if test "x$build_alias" = x; then 1424 cross_compiling=maybe 1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1426 If a cross compiler is detected then cross compile mode will be used." >&2 1427 elif test "x$build_alias" != "x$host_alias"; then 1428 cross_compiling=yes 1429 fi 1430fi 1431 1432ac_tool_prefix= 1433test -n "$host_alias" && ac_tool_prefix=$host_alias- 1434 1435test "$silent" = yes && exec 6>/dev/null 1436 1437 1438ac_pwd=`pwd` && test -n "$ac_pwd" && 1439ac_ls_di=`ls -di .` && 1440ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1441 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1442 { (exit 1); exit 1; }; } 1443test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1444 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1445 { (exit 1); exit 1; }; } 1446 1447 1448# Find the source files, if location was not specified. 1449if test -z "$srcdir"; then 1450 ac_srcdir_defaulted=yes 1451 # Try the directory containing this script, then the parent directory. 1452 ac_confdir=`$as_dirname -- "$as_myself" || 1453$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1454 X"$as_myself" : 'X\(//\)[^/]' \| \ 1455 X"$as_myself" : 'X\(//\)$' \| \ 1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1457$as_echo X"$as_myself" | 1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\/\)[^/].*/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\/\)$/{ 1467 s//\1/ 1468 q 1469 } 1470 /^X\(\/\).*/{ 1471 s//\1/ 1472 q 1473 } 1474 s/.*/./; q'` 1475 srcdir=$ac_confdir 1476 if test ! -r "$srcdir/$ac_unique_file"; then 1477 srcdir=.. 1478 fi 1479else 1480 ac_srcdir_defaulted=no 1481fi 1482if test ! -r "$srcdir/$ac_unique_file"; then 1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1484 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1485 { (exit 1); exit 1; }; } 1486fi 1487ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1488ac_abs_confdir=`( 1489 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1490 { (exit 1); exit 1; }; } 1491 pwd)` 1492# When building in place, set srcdir=. 1493if test "$ac_abs_confdir" = "$ac_pwd"; then 1494 srcdir=. 1495fi 1496# Remove unnecessary trailing slashes from srcdir. 1497# Double slashes in file names in object file debugging info 1498# mess up M-x gdb in Emacs. 1499case $srcdir in 1500*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1501esac 1502for ac_var in $ac_precious_vars; do 1503 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1504 eval ac_env_${ac_var}_value=\$${ac_var} 1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1506 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1507done 1508 1509# 1510# Report the --help message. 1511# 1512if test "$ac_init_help" = "long"; then 1513 # Omit some internal or obsolete options to make the list less imposing. 1514 # This message is too long to be a string in the A/UX 3.1 sh. 1515 cat <<_ACEOF 1516\`configure' configures ccid 1.3.11 to adapt to many kinds of systems. 1517 1518Usage: $0 [OPTION]... [VAR=VALUE]... 1519 1520To assign environment variables (e.g., CC, CFLAGS...), specify them as 1521VAR=VALUE. See below for descriptions of some of the useful variables. 1522 1523Defaults for the options are specified in brackets. 1524 1525Configuration: 1526 -h, --help display this help and exit 1527 --help=short display options specific to this package 1528 --help=recursive display the short help of all the included packages 1529 -V, --version display version information and exit 1530 -q, --quiet, --silent do not print \`checking...' messages 1531 --cache-file=FILE cache test results in FILE [disabled] 1532 -C, --config-cache alias for \`--cache-file=config.cache' 1533 -n, --no-create do not create output files 1534 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1535 1536Installation directories: 1537 --prefix=PREFIX install architecture-independent files in PREFIX 1538 [$ac_default_prefix] 1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1540 [PREFIX] 1541 1542By default, \`make install' will install all the files in 1543\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1544an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1545for instance \`--prefix=\$HOME'. 1546 1547For better control, use the options below. 1548 1549Fine tuning of the installation directories: 1550 --bindir=DIR user executables [EPREFIX/bin] 1551 --sbindir=DIR system admin executables [EPREFIX/sbin] 1552 --libexecdir=DIR program executables [EPREFIX/libexec] 1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1556 --libdir=DIR object code libraries [EPREFIX/lib] 1557 --includedir=DIR C header files [PREFIX/include] 1558 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1561 --infodir=DIR info documentation [DATAROOTDIR/info] 1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1563 --mandir=DIR man documentation [DATAROOTDIR/man] 1564 --docdir=DIR documentation root [DATAROOTDIR/doc/ccid] 1565 --htmldir=DIR html documentation [DOCDIR] 1566 --dvidir=DIR dvi documentation [DOCDIR] 1567 --pdfdir=DIR pdf documentation [DOCDIR] 1568 --psdir=DIR ps documentation [DOCDIR] 1569_ACEOF 1570 1571 cat <<\_ACEOF 1572 1573Program names: 1574 --program-prefix=PREFIX prepend PREFIX to installed program names 1575 --program-suffix=SUFFIX append SUFFIX to installed program names 1576 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1577 1578System types: 1579 --build=BUILD configure for building on BUILD [guessed] 1580 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1581_ACEOF 1582fi 1583 1584if test -n "$ac_init_help"; then 1585 case $ac_init_help in 1586 short | recursive ) echo "Configuration of ccid 1.3.11:";; 1587 esac 1588 cat <<\_ACEOF 1589 1590Optional Features: 1591 --disable-option-checking ignore unrecognized --enable/--with options 1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1594 --enable-maintainer-mode enable make rules and dependencies not useful 1595 (and sometimes confusing) to the casual installer 1596 --disable-dependency-tracking speeds up one-time build 1597 --enable-dependency-tracking do not reject slow dependency extractors 1598 --enable-shared[=PKGS] build shared libraries [default=yes] 1599 --enable-static[=PKGS] build static libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-libtool-lock avoid locking (might break parallel builds) 1603 --disable-libusb do not use libusb 1604 --enable-usb-interrupt force the use of USB interrupt even with an old 1605 libusb 1606 --enable-composite-as-multislot 1607 composite device are seen as multi-slots 1608 --disable-multi-thread disable multi threading 1609 --enable-bundle=NAME bundle directory name (default ifd-ccid.bundle) 1610 --enable-usbdropdir=DIR directory containing USB drivers (default to pcscd 1611 config or $(prefix)/pcsc/drivers) 1612 --enable-twinserial also compile and install the serial Twin driver 1613 --enable-ccidtwindir=DIR 1614 directory to install the serial Twin driver (default 1615 to pcscd config or $(prefix)/pcsc/drivers/serial) 1616 --disable-pcsclite do not use pcsc-lite debug support 1617 --enable-udev udev support for pcscd hotplug 1618 --disable-class remove the CCIDCLASSDRIVER from Info.plist 1619 1620Optional Packages: 1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1623 --with-pic try to use only PIC/non-PIC objects [default=use 1624 both] 1625 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1626 1627Some influential environment variables: 1628 CC C compiler command 1629 CFLAGS C compiler flags 1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1631 nonstandard directory <lib dir> 1632 LIBS libraries to pass to the linker, e.g. -l<library> 1633 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1634 you have headers in a nonstandard directory <include dir> 1635 CPP C preprocessor 1636 PKG_CONFIG path to pkg-config utility 1637 PCSC_CFLAGS C compiler flags for PCSC, overriding pkg-config 1638 PCSC_LIBS linker flags for PCSC, overriding pkg-config 1639 LIBUSB_CFLAGS 1640 C compiler flags for LIBUSB, overriding pkg-config 1641 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config 1642 1643Use these variables to override the choices made by `configure' or to help 1644it to find libraries and programs with nonstandard names/locations. 1645 1646_ACEOF 1647ac_status=$? 1648fi 1649 1650if test "$ac_init_help" = "recursive"; then 1651 # If there are subdirs, report their specific --help. 1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1653 test -d "$ac_dir" || 1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1655 continue 1656 ac_builddir=. 1657 1658case "$ac_dir" in 1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1660*) 1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1662 # A ".." for each directory in $ac_dir_suffix. 1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1664 case $ac_top_builddir_sub in 1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1667 esac ;; 1668esac 1669ac_abs_top_builddir=$ac_pwd 1670ac_abs_builddir=$ac_pwd$ac_dir_suffix 1671# for backward compatibility: 1672ac_top_builddir=$ac_top_build_prefix 1673 1674case $srcdir in 1675 .) # We are building in place. 1676 ac_srcdir=. 1677 ac_top_srcdir=$ac_top_builddir_sub 1678 ac_abs_top_srcdir=$ac_pwd ;; 1679 [\\/]* | ?:[\\/]* ) # Absolute name. 1680 ac_srcdir=$srcdir$ac_dir_suffix; 1681 ac_top_srcdir=$srcdir 1682 ac_abs_top_srcdir=$srcdir ;; 1683 *) # Relative name. 1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1685 ac_top_srcdir=$ac_top_build_prefix$srcdir 1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1687esac 1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1689 1690 cd "$ac_dir" || { ac_status=$?; continue; } 1691 # Check for guested configure. 1692 if test -f "$ac_srcdir/configure.gnu"; then 1693 echo && 1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1695 elif test -f "$ac_srcdir/configure"; then 1696 echo && 1697 $SHELL "$ac_srcdir/configure" --help=recursive 1698 else 1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1700 fi || ac_status=$? 1701 cd "$ac_pwd" || { ac_status=$?; break; } 1702 done 1703fi 1704 1705test -n "$ac_init_help" && exit $ac_status 1706if $ac_init_version; then 1707 cat <<\_ACEOF 1708ccid configure 1.3.11 1709generated by GNU Autoconf 2.63 1710 1711Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17122002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1713This configure script is free software; the Free Software Foundation 1714gives unlimited permission to copy, distribute and modify it. 1715_ACEOF 1716 exit 1717fi 1718cat >config.log <<_ACEOF 1719This file contains any messages produced by compilers while 1720running configure, to aid debugging if configure makes a mistake. 1721 1722It was created by ccid $as_me 1.3.11, which was 1723generated by GNU Autoconf 2.63. Invocation command line was 1724 1725 $ $0 $@ 1726 1727_ACEOF 1728exec 5>>config.log 1729{ 1730cat <<_ASUNAME 1731## --------- ## 1732## Platform. ## 1733## --------- ## 1734 1735hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1736uname -m = `(uname -m) 2>/dev/null || echo unknown` 1737uname -r = `(uname -r) 2>/dev/null || echo unknown` 1738uname -s = `(uname -s) 2>/dev/null || echo unknown` 1739uname -v = `(uname -v) 2>/dev/null || echo unknown` 1740 1741/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1742/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1743 1744/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1745/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1746/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1747/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1748/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1749/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1750/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1751 1752_ASUNAME 1753 1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1755for as_dir in $PATH 1756do 1757 IFS=$as_save_IFS 1758 test -z "$as_dir" && as_dir=. 1759 $as_echo "PATH: $as_dir" 1760done 1761IFS=$as_save_IFS 1762 1763} >&5 1764 1765cat >&5 <<_ACEOF 1766 1767 1768## ----------- ## 1769## Core tests. ## 1770## ----------- ## 1771 1772_ACEOF 1773 1774 1775# Keep a trace of the command line. 1776# Strip out --no-create and --no-recursion so they do not pile up. 1777# Strip out --silent because we don't want to record it for future runs. 1778# Also quote any args containing shell meta-characters. 1779# Make two passes to allow for proper duplicate-argument suppression. 1780ac_configure_args= 1781ac_configure_args0= 1782ac_configure_args1= 1783ac_must_keep_next=false 1784for ac_pass in 1 2 1785do 1786 for ac_arg 1787 do 1788 case $ac_arg in 1789 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1791 | -silent | --silent | --silen | --sile | --sil) 1792 continue ;; 1793 *\'*) 1794 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1795 esac 1796 case $ac_pass in 1797 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1798 2) 1799 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1800 if test $ac_must_keep_next = true; then 1801 ac_must_keep_next=false # Got value, back to normal. 1802 else 1803 case $ac_arg in 1804 *=* | --config-cache | -C | -disable-* | --disable-* \ 1805 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1806 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1807 | -with-* | --with-* | -without-* | --without-* | --x) 1808 case "$ac_configure_args0 " in 1809 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1810 esac 1811 ;; 1812 -* ) ac_must_keep_next=true ;; 1813 esac 1814 fi 1815 ac_configure_args="$ac_configure_args '$ac_arg'" 1816 ;; 1817 esac 1818 done 1819done 1820$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1821$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1822 1823# When interrupted or exit'd, cleanup temporary files, and complete 1824# config.log. We remove comments because anyway the quotes in there 1825# would cause problems or look ugly. 1826# WARNING: Use '\'' to represent an apostrophe within the trap. 1827# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1828trap 'exit_status=$? 1829 # Save into config.log some information that might help in debugging. 1830 { 1831 echo 1832 1833 cat <<\_ASBOX 1834## ---------------- ## 1835## Cache variables. ## 1836## ---------------- ## 1837_ASBOX 1838 echo 1839 # The following way of writing the cache mishandles newlines in values, 1840( 1841 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1842 eval ac_val=\$$ac_var 1843 case $ac_val in #( 1844 *${as_nl}*) 1845 case $ac_var in #( 1846 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1848 esac 1849 case $ac_var in #( 1850 _ | IFS | as_nl) ;; #( 1851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1852 *) $as_unset $ac_var ;; 1853 esac ;; 1854 esac 1855 done 1856 (set) 2>&1 | 1857 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1858 *${as_nl}ac_space=\ *) 1859 sed -n \ 1860 "s/'\''/'\''\\\\'\'''\''/g; 1861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1862 ;; #( 1863 *) 1864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1865 ;; 1866 esac | 1867 sort 1868) 1869 echo 1870 1871 cat <<\_ASBOX 1872## ----------------- ## 1873## Output variables. ## 1874## ----------------- ## 1875_ASBOX 1876 echo 1877 for ac_var in $ac_subst_vars 1878 do 1879 eval ac_val=\$$ac_var 1880 case $ac_val in 1881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1882 esac 1883 $as_echo "$ac_var='\''$ac_val'\''" 1884 done | sort 1885 echo 1886 1887 if test -n "$ac_subst_files"; then 1888 cat <<\_ASBOX 1889## ------------------- ## 1890## File substitutions. ## 1891## ------------------- ## 1892_ASBOX 1893 echo 1894 for ac_var in $ac_subst_files 1895 do 1896 eval ac_val=\$$ac_var 1897 case $ac_val in 1898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1899 esac 1900 $as_echo "$ac_var='\''$ac_val'\''" 1901 done | sort 1902 echo 1903 fi 1904 1905 if test -s confdefs.h; then 1906 cat <<\_ASBOX 1907## ----------- ## 1908## confdefs.h. ## 1909## ----------- ## 1910_ASBOX 1911 echo 1912 cat confdefs.h 1913 echo 1914 fi 1915 test "$ac_signal" != 0 && 1916 $as_echo "$as_me: caught signal $ac_signal" 1917 $as_echo "$as_me: exit $exit_status" 1918 } >&5 1919 rm -f core *.core core.conftest.* && 1920 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1921 exit $exit_status 1922' 0 1923for ac_signal in 1 2 13 15; do 1924 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1925done 1926ac_signal=0 1927 1928# confdefs.h avoids OS command line length limits that DEFS can exceed. 1929rm -f -r conftest* confdefs.h 1930 1931# Predefined preprocessor variables. 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_NAME "$PACKAGE_NAME" 1935_ACEOF 1936 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1940_ACEOF 1941 1942 1943cat >>confdefs.h <<_ACEOF 1944#define PACKAGE_VERSION "$PACKAGE_VERSION" 1945_ACEOF 1946 1947 1948cat >>confdefs.h <<_ACEOF 1949#define PACKAGE_STRING "$PACKAGE_STRING" 1950_ACEOF 1951 1952 1953cat >>confdefs.h <<_ACEOF 1954#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1955_ACEOF 1956 1957 1958# Let the site file select an alternate cache file if it wants to. 1959# Prefer an explicitly selected file to automatically selected ones. 1960ac_site_file1=NONE 1961ac_site_file2=NONE 1962if test -n "$CONFIG_SITE"; then 1963 ac_site_file1=$CONFIG_SITE 1964elif test "x$prefix" != xNONE; then 1965 ac_site_file1=$prefix/share/config.site 1966 ac_site_file2=$prefix/etc/config.site 1967else 1968 ac_site_file1=$ac_default_prefix/share/config.site 1969 ac_site_file2=$ac_default_prefix/etc/config.site 1970fi 1971for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1972do 1973 test "x$ac_site_file" = xNONE && continue 1974 if test -r "$ac_site_file"; then 1975 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1976$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1977 sed 's/^/| /' "$ac_site_file" >&5 1978 . "$ac_site_file" 1979 fi 1980done 1981 1982if test -r "$cache_file"; then 1983 # Some versions of bash will fail to source /dev/null (special 1984 # files actually), so we avoid doing that. 1985 if test -f "$cache_file"; then 1986 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1987$as_echo "$as_me: loading cache $cache_file" >&6;} 1988 case $cache_file in 1989 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1990 *) . "./$cache_file";; 1991 esac 1992 fi 1993else 1994 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1995$as_echo "$as_me: creating cache $cache_file" >&6;} 1996 >$cache_file 1997fi 1998 1999# Check that the precious variables saved in the cache have kept the same 2000# value. 2001ac_cache_corrupted=false 2002for ac_var in $ac_precious_vars; do 2003 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2004 eval ac_new_set=\$ac_env_${ac_var}_set 2005 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2006 eval ac_new_val=\$ac_env_${ac_var}_value 2007 case $ac_old_set,$ac_new_set in 2008 set,) 2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2010$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2011 ac_cache_corrupted=: ;; 2012 ,set) 2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2014$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2015 ac_cache_corrupted=: ;; 2016 ,);; 2017 *) 2018 if test "x$ac_old_val" != "x$ac_new_val"; then 2019 # differences in whitespace do not lead to failure. 2020 ac_old_val_w=`echo x $ac_old_val` 2021 ac_new_val_w=`echo x $ac_new_val` 2022 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2023 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2024$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2025 ac_cache_corrupted=: 2026 else 2027 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2028$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2029 eval $ac_var=\$ac_old_val 2030 fi 2031 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2032$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2033 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2034$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2035 fi;; 2036 esac 2037 # Pass precious variables to config.status. 2038 if test "$ac_new_set" = set; then 2039 case $ac_new_val in 2040 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2041 *) ac_arg=$ac_var=$ac_new_val ;; 2042 esac 2043 case " $ac_configure_args " in 2044 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2045 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2046 esac 2047 fi 2048done 2049if $ac_cache_corrupted; then 2050 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2052 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2053$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2054 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2055$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2056 { (exit 1); exit 1; }; } 2057fi 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083ac_ext=c 2084ac_cpp='$CPP $CPPFLAGS' 2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2087ac_compiler_gnu=$ac_cv_c_compiler_gnu 2088 2089 2090 2091ac_aux_dir= 2092for ac_dir in . "$srcdir"/.; do 2093 if test -f "$ac_dir/install-sh"; then 2094 ac_aux_dir=$ac_dir 2095 ac_install_sh="$ac_aux_dir/install-sh -c" 2096 break 2097 elif test -f "$ac_dir/install.sh"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/install.sh -c" 2100 break 2101 elif test -f "$ac_dir/shtool"; then 2102 ac_aux_dir=$ac_dir 2103 ac_install_sh="$ac_aux_dir/shtool install -c" 2104 break 2105 fi 2106done 2107if test -z "$ac_aux_dir"; then 2108 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2109$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2110 { (exit 1); exit 1; }; } 2111fi 2112 2113# These three variables are undocumented and unsupported, 2114# and are intended to be withdrawn in a future Autoconf release. 2115# They can cause serious problems if a builder's source tree is in a directory 2116# whose full name contains unusual characters. 2117ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2118ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2119ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2120 2121 2122am__api_version='1.10' 2123 2124# Find a good install program. We prefer a C program (faster), 2125# so one script is as good as another. But avoid the broken or 2126# incompatible versions: 2127# SysV /etc/install, /usr/sbin/install 2128# SunOS /usr/etc/install 2129# IRIX /sbin/install 2130# AIX /bin/install 2131# AmigaOS /C/install, which installs bootblocks on floppy discs 2132# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2133# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2134# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2135# OS/2's system install, which has a completely different semantic 2136# ./install, which can be erroneously created by make from ./install.sh. 2137# Reject install programs that cannot install multiple files. 2138{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2139$as_echo_n "checking for a BSD-compatible install... " >&6; } 2140if test -z "$INSTALL"; then 2141if test "${ac_cv_path_install+set}" = set; then 2142 $as_echo_n "(cached) " >&6 2143else 2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2145for as_dir in $PATH 2146do 2147 IFS=$as_save_IFS 2148 test -z "$as_dir" && as_dir=. 2149 # Account for people who put trailing slashes in PATH elements. 2150case $as_dir/ in 2151 ./ | .// | /cC/* | \ 2152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2154 /usr/ucb/* ) ;; 2155 *) 2156 # OSF1 and SCO ODT 3.0 have their own names for install. 2157 # Don't use installbsd from OSF since it installs stuff as root 2158 # by default. 2159 for ac_prog in ginstall scoinst install; do 2160 for ac_exec_ext in '' $ac_executable_extensions; do 2161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2162 if test $ac_prog = install && 2163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2164 # AIX install. It has an incompatible calling convention. 2165 : 2166 elif test $ac_prog = install && 2167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2168 # program-specific install script used by HP pwplus--don't use. 2169 : 2170 else 2171 rm -rf conftest.one conftest.two conftest.dir 2172 echo one > conftest.one 2173 echo two > conftest.two 2174 mkdir conftest.dir 2175 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2176 test -s conftest.one && test -s conftest.two && 2177 test -s conftest.dir/conftest.one && 2178 test -s conftest.dir/conftest.two 2179 then 2180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2181 break 3 2182 fi 2183 fi 2184 fi 2185 done 2186 done 2187 ;; 2188esac 2189 2190done 2191IFS=$as_save_IFS 2192 2193rm -rf conftest.one conftest.two conftest.dir 2194 2195fi 2196 if test "${ac_cv_path_install+set}" = set; then 2197 INSTALL=$ac_cv_path_install 2198 else 2199 # As a last resort, use the slow shell script. Don't cache a 2200 # value for INSTALL within a source directory, because that will 2201 # break other packages using the cache if that directory is 2202 # removed, or if the value is a relative name. 2203 INSTALL=$ac_install_sh 2204 fi 2205fi 2206{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2207$as_echo "$INSTALL" >&6; } 2208 2209# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2210# It thinks the first close brace ends the variable substitution. 2211test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2212 2213test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2214 2215test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2216 2217{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2218$as_echo_n "checking whether build environment is sane... " >&6; } 2219# Just in case 2220sleep 1 2221echo timestamp > conftest.file 2222# Do `set' in a subshell so we don't clobber the current shell's 2223# arguments. Must try -L first in case configure is actually a 2224# symlink; some systems play weird games with the mod time of symlinks 2225# (eg FreeBSD returns the mod time of the symlink's containing 2226# directory). 2227if ( 2228 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2229 if test "$*" = "X"; then 2230 # -L didn't work. 2231 set X `ls -t $srcdir/configure conftest.file` 2232 fi 2233 rm -f conftest.file 2234 if test "$*" != "X $srcdir/configure conftest.file" \ 2235 && test "$*" != "X conftest.file $srcdir/configure"; then 2236 2237 # If neither matched, then we have a broken ls. This can happen 2238 # if, for instance, CONFIG_SHELL is bash and it inherits a 2239 # broken ls alias from the environment. This has actually 2240 # happened. Such a system could not be considered "sane". 2241 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2242alias in your environment" >&5 2243$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2244alias in your environment" >&2;} 2245 { (exit 1); exit 1; }; } 2246 fi 2247 2248 test "$2" = conftest.file 2249 ) 2250then 2251 # Ok. 2252 : 2253else 2254 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2255Check your system clock" >&5 2256$as_echo "$as_me: error: newly created file is older than distributed files! 2257Check your system clock" >&2;} 2258 { (exit 1); exit 1; }; } 2259fi 2260{ $as_echo "$as_me:$LINENO: result: yes" >&5 2261$as_echo "yes" >&6; } 2262test "$program_prefix" != NONE && 2263 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2264# Use a double $ so make ignores it. 2265test "$program_suffix" != NONE && 2266 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2267# Double any \ or $. 2268# By default was `s,x,x', remove it if useless. 2269ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2270program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2271 2272# expand $ac_aux_dir to an absolute path 2273am_aux_dir=`cd $ac_aux_dir && pwd` 2274 2275test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2276# Use eval to expand $SHELL 2277if eval "$MISSING --run true"; then 2278 am_missing_run="$MISSING --run " 2279else 2280 am_missing_run= 2281 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2282$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2283fi 2284 2285{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2286$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2287if test -z "$MKDIR_P"; then 2288 if test "${ac_cv_path_mkdir+set}" = set; then 2289 $as_echo_n "(cached) " >&6 2290else 2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2292for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2293do 2294 IFS=$as_save_IFS 2295 test -z "$as_dir" && as_dir=. 2296 for ac_prog in mkdir gmkdir; do 2297 for ac_exec_ext in '' $ac_executable_extensions; do 2298 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2299 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2300 'mkdir (GNU coreutils) '* | \ 2301 'mkdir (coreutils) '* | \ 2302 'mkdir (fileutils) '4.1*) 2303 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2304 break 3;; 2305 esac 2306 done 2307 done 2308done 2309IFS=$as_save_IFS 2310 2311fi 2312 2313 if test "${ac_cv_path_mkdir+set}" = set; then 2314 MKDIR_P="$ac_cv_path_mkdir -p" 2315 else 2316 # As a last resort, use the slow shell script. Don't cache a 2317 # value for MKDIR_P within a source directory, because that will 2318 # break other packages using the cache if that directory is 2319 # removed, or if the value is a relative name. 2320 test -d ./--version && rmdir ./--version 2321 MKDIR_P="$ac_install_sh -d" 2322 fi 2323fi 2324{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2325$as_echo "$MKDIR_P" >&6; } 2326 2327mkdir_p="$MKDIR_P" 2328case $mkdir_p in 2329 [\\/$]* | ?:[\\/]*) ;; 2330 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2331esac 2332 2333for ac_prog in gawk mawk nawk awk 2334do 2335 # Extract the first word of "$ac_prog", so it can be a program name with args. 2336set dummy $ac_prog; ac_word=$2 2337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2338$as_echo_n "checking for $ac_word... " >&6; } 2339if test "${ac_cv_prog_AWK+set}" = set; then 2340 $as_echo_n "(cached) " >&6 2341else 2342 if test -n "$AWK"; then 2343 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2344else 2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2346for as_dir in $PATH 2347do 2348 IFS=$as_save_IFS 2349 test -z "$as_dir" && as_dir=. 2350 for ac_exec_ext in '' $ac_executable_extensions; do 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2352 ac_cv_prog_AWK="$ac_prog" 2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2354 break 2 2355 fi 2356done 2357done 2358IFS=$as_save_IFS 2359 2360fi 2361fi 2362AWK=$ac_cv_prog_AWK 2363if test -n "$AWK"; then 2364 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2365$as_echo "$AWK" >&6; } 2366else 2367 { $as_echo "$as_me:$LINENO: result: no" >&5 2368$as_echo "no" >&6; } 2369fi 2370 2371 2372 test -n "$AWK" && break 2373done 2374 2375{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2376$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2377set x ${MAKE-make} 2378ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2379if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2380 $as_echo_n "(cached) " >&6 2381else 2382 cat >conftest.make <<\_ACEOF 2383SHELL = /bin/sh 2384all: 2385 @echo '@@@%%%=$(MAKE)=@@@%%%' 2386_ACEOF 2387# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2388case `${MAKE-make} -f conftest.make 2>/dev/null` in 2389 *@@@%%%=?*=@@@%%%*) 2390 eval ac_cv_prog_make_${ac_make}_set=yes;; 2391 *) 2392 eval ac_cv_prog_make_${ac_make}_set=no;; 2393esac 2394rm -f conftest.make 2395fi 2396if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2397 { $as_echo "$as_me:$LINENO: result: yes" >&5 2398$as_echo "yes" >&6; } 2399 SET_MAKE= 2400else 2401 { $as_echo "$as_me:$LINENO: result: no" >&5 2402$as_echo "no" >&6; } 2403 SET_MAKE="MAKE=${MAKE-make}" 2404fi 2405 2406rm -rf .tst 2>/dev/null 2407mkdir .tst 2>/dev/null 2408if test -d .tst; then 2409 am__leading_dot=. 2410else 2411 am__leading_dot=_ 2412fi 2413rmdir .tst 2>/dev/null 2414 2415if test "`cd $srcdir && pwd`" != "`pwd`"; then 2416 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2417 # is not polluted with repeated "-I." 2418 am__isrc=' -I$(srcdir)' 2419 # test to see if srcdir already configured 2420 if test -f $srcdir/config.status; then 2421 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2422$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2423 { (exit 1); exit 1; }; } 2424 fi 2425fi 2426 2427# test whether we have cygpath 2428if test -z "$CYGPATH_W"; then 2429 if (cygpath --version) >/dev/null 2>/dev/null; then 2430 CYGPATH_W='cygpath -w' 2431 else 2432 CYGPATH_W=echo 2433 fi 2434fi 2435 2436 2437# Define the identity of the package. 2438 PACKAGE='ccid' 2439 VERSION='1.3.11' 2440 2441 2442cat >>confdefs.h <<_ACEOF 2443#define PACKAGE "$PACKAGE" 2444_ACEOF 2445 2446 2447cat >>confdefs.h <<_ACEOF 2448#define VERSION "$VERSION" 2449_ACEOF 2450 2451# Some tools Automake needs. 2452 2453ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2454 2455 2456AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2457 2458 2459AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2460 2461 2462AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2463 2464 2465MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2466 2467install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2468 2469# Installed binaries are usually stripped using `strip' when the user 2470# run `make install-strip'. However `strip' might not be the right 2471# tool to use in cross-compilation environments, therefore Automake 2472# will honor the `STRIP' environment variable to overrule this program. 2473if test "$cross_compiling" != no; then 2474 if test -n "$ac_tool_prefix"; then 2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2476set dummy ${ac_tool_prefix}strip; ac_word=$2 2477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if test "${ac_cv_prog_STRIP+set}" = set; then 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$STRIP"; then 2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502STRIP=$ac_cv_prog_STRIP 2503if test -n "$STRIP"; then 2504 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2505$as_echo "$STRIP" >&6; } 2506else 2507 { $as_echo "$as_me:$LINENO: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 2512fi 2513if test -z "$ac_cv_prog_STRIP"; then 2514 ac_ct_STRIP=$STRIP 2515 # Extract the first word of "strip", so it can be a program name with args. 2516set dummy strip; ac_word=$2 2517{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2518$as_echo_n "checking for $ac_word... " >&6; } 2519if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2520 $as_echo_n "(cached) " >&6 2521else 2522 if test -n "$ac_ct_STRIP"; then 2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2524else 2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_exec_ext in '' $ac_executable_extensions; do 2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2532 ac_cv_prog_ac_ct_STRIP="strip" 2533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2534 break 2 2535 fi 2536done 2537done 2538IFS=$as_save_IFS 2539 2540fi 2541fi 2542ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2543if test -n "$ac_ct_STRIP"; then 2544 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2545$as_echo "$ac_ct_STRIP" >&6; } 2546else 2547 { $as_echo "$as_me:$LINENO: result: no" >&5 2548$as_echo "no" >&6; } 2549fi 2550 2551 if test "x$ac_ct_STRIP" = x; then 2552 STRIP=":" 2553 else 2554 case $cross_compiling:$ac_tool_warned in 2555yes:) 2556{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2558ac_tool_warned=yes ;; 2559esac 2560 STRIP=$ac_ct_STRIP 2561 fi 2562else 2563 STRIP="$ac_cv_prog_STRIP" 2564fi 2565 2566fi 2567INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2568 2569# We need awk for the "check" target. The system "awk" is bad on 2570# some platforms. 2571# Always define AMTAR for backward compatibility. 2572 2573AMTAR=${AMTAR-"${am_missing_run}tar"} 2574 2575am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2576 2577 2578 2579 2580 2581 2582# Default install dir 2583 2584 2585# Automake boilerplate. 2586# Make sure we can run config.sub. 2587$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2588 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2589$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2590 { (exit 1); exit 1; }; } 2591 2592{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2593$as_echo_n "checking build system type... " >&6; } 2594if test "${ac_cv_build+set}" = set; then 2595 $as_echo_n "(cached) " >&6 2596else 2597 ac_build_alias=$build_alias 2598test "x$ac_build_alias" = x && 2599 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2600test "x$ac_build_alias" = x && 2601 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2602$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2603 { (exit 1); exit 1; }; } 2604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2605 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2606$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2607 { (exit 1); exit 1; }; } 2608 2609fi 2610{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2611$as_echo "$ac_cv_build" >&6; } 2612case $ac_cv_build in 2613*-*-*) ;; 2614*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2615$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2616 { (exit 1); exit 1; }; };; 2617esac 2618build=$ac_cv_build 2619ac_save_IFS=$IFS; IFS='-' 2620set x $ac_cv_build 2621shift 2622build_cpu=$1 2623build_vendor=$2 2624shift; shift 2625# Remember, the first character of IFS is used to create $*, 2626# except with old shells: 2627build_os=$* 2628IFS=$ac_save_IFS 2629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2630 2631 2632{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2633$as_echo_n "checking host system type... " >&6; } 2634if test "${ac_cv_host+set}" = set; then 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test "x$host_alias" = x; then 2638 ac_cv_host=$ac_cv_build 2639else 2640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2641 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2642$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2643 { (exit 1); exit 1; }; } 2644fi 2645 2646fi 2647{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2648$as_echo "$ac_cv_host" >&6; } 2649case $ac_cv_host in 2650*-*-*) ;; 2651*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2652$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2653 { (exit 1); exit 1; }; };; 2654esac 2655host=$ac_cv_host 2656ac_save_IFS=$IFS; IFS='-' 2657set x $ac_cv_host 2658shift 2659host_cpu=$1 2660host_vendor=$2 2661shift; shift 2662# Remember, the first character of IFS is used to create $*, 2663# except with old shells: 2664host_os=$* 2665IFS=$ac_save_IFS 2666case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2667 2668 2669 2670# create a config.h file (Automake will add -DHAVE_CONFIG_H) 2671ac_config_headers="$ac_config_headers config.h" 2672 2673 2674# Options 2675{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2676$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2677 # Check whether --enable-maintainer-mode was given. 2678if test "${enable_maintainer_mode+set}" = set; then 2679 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2680else 2681 USE_MAINTAINER_MODE=no 2682fi 2683 2684 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2685$as_echo "$USE_MAINTAINER_MODE" >&6; } 2686 if test $USE_MAINTAINER_MODE = yes; then 2687 MAINTAINER_MODE_TRUE= 2688 MAINTAINER_MODE_FALSE='#' 2689else 2690 MAINTAINER_MODE_TRUE='#' 2691 MAINTAINER_MODE_FALSE= 2692fi 2693 2694 MAINT=$MAINTAINER_MODE_TRUE 2695 2696 2697 2698# Checks for programs. 2699ac_ext=c 2700ac_cpp='$CPP $CPPFLAGS' 2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2703ac_compiler_gnu=$ac_cv_c_compiler_gnu 2704if test -n "$ac_tool_prefix"; then 2705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2706set dummy ${ac_tool_prefix}gcc; ac_word=$2 2707{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2708$as_echo_n "checking for $ac_word... " >&6; } 2709if test "${ac_cv_prog_CC+set}" = set; then 2710 $as_echo_n "(cached) " >&6 2711else 2712 if test -n "$CC"; then 2713 ac_cv_prog_CC="$CC" # Let the user override the test. 2714else 2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2716for as_dir in $PATH 2717do 2718 IFS=$as_save_IFS 2719 test -z "$as_dir" && as_dir=. 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2722 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2724 break 2 2725 fi 2726done 2727done 2728IFS=$as_save_IFS 2729 2730fi 2731fi 2732CC=$ac_cv_prog_CC 2733if test -n "$CC"; then 2734 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2735$as_echo "$CC" >&6; } 2736else 2737 { $as_echo "$as_me:$LINENO: result: no" >&5 2738$as_echo "no" >&6; } 2739fi 2740 2741 2742fi 2743if test -z "$ac_cv_prog_CC"; then 2744 ac_ct_CC=$CC 2745 # Extract the first word of "gcc", so it can be a program name with args. 2746set dummy gcc; ac_word=$2 2747{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2748$as_echo_n "checking for $ac_word... " >&6; } 2749if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2750 $as_echo_n "(cached) " >&6 2751else 2752 if test -n "$ac_ct_CC"; then 2753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2754else 2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2756for as_dir in $PATH 2757do 2758 IFS=$as_save_IFS 2759 test -z "$as_dir" && as_dir=. 2760 for ac_exec_ext in '' $ac_executable_extensions; do 2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2762 ac_cv_prog_ac_ct_CC="gcc" 2763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2764 break 2 2765 fi 2766done 2767done 2768IFS=$as_save_IFS 2769 2770fi 2771fi 2772ac_ct_CC=$ac_cv_prog_ac_ct_CC 2773if test -n "$ac_ct_CC"; then 2774 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2775$as_echo "$ac_ct_CC" >&6; } 2776else 2777 { $as_echo "$as_me:$LINENO: result: no" >&5 2778$as_echo "no" >&6; } 2779fi 2780 2781 if test "x$ac_ct_CC" = x; then 2782 CC="" 2783 else 2784 case $cross_compiling:$ac_tool_warned in 2785yes:) 2786{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2788ac_tool_warned=yes ;; 2789esac 2790 CC=$ac_ct_CC 2791 fi 2792else 2793 CC="$ac_cv_prog_CC" 2794fi 2795 2796if test -z "$CC"; then 2797 if test -n "$ac_tool_prefix"; then 2798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2799set dummy ${ac_tool_prefix}cc; ac_word=$2 2800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2801$as_echo_n "checking for $ac_word... " >&6; } 2802if test "${ac_cv_prog_CC+set}" = set; then 2803 $as_echo_n "(cached) " >&6 2804else 2805 if test -n "$CC"; then 2806 ac_cv_prog_CC="$CC" # Let the user override the test. 2807else 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2809for as_dir in $PATH 2810do 2811 IFS=$as_save_IFS 2812 test -z "$as_dir" && as_dir=. 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2815 ac_cv_prog_CC="${ac_tool_prefix}cc" 2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819done 2820done 2821IFS=$as_save_IFS 2822 2823fi 2824fi 2825CC=$ac_cv_prog_CC 2826if test -n "$CC"; then 2827 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2828$as_echo "$CC" >&6; } 2829else 2830 { $as_echo "$as_me:$LINENO: result: no" >&5 2831$as_echo "no" >&6; } 2832fi 2833 2834 2835 fi 2836fi 2837if test -z "$CC"; then 2838 # Extract the first word of "cc", so it can be a program name with args. 2839set dummy cc; ac_word=$2 2840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2841$as_echo_n "checking for $ac_word... " >&6; } 2842if test "${ac_cv_prog_CC+set}" = set; then 2843 $as_echo_n "(cached) " >&6 2844else 2845 if test -n "$CC"; then 2846 ac_cv_prog_CC="$CC" # Let the user override the test. 2847else 2848 ac_prog_rejected=no 2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850for as_dir in $PATH 2851do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2857 ac_prog_rejected=yes 2858 continue 2859 fi 2860 ac_cv_prog_CC="cc" 2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864done 2865done 2866IFS=$as_save_IFS 2867 2868if test $ac_prog_rejected = yes; then 2869 # We found a bogon in the path, so make sure we never use it. 2870 set dummy $ac_cv_prog_CC 2871 shift 2872 if test $# != 0; then 2873 # We chose a different compiler from the bogus one. 2874 # However, it has the same basename, so the bogon will be chosen 2875 # first if we set CC to just the basename; use the full file name. 2876 shift 2877 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2878 fi 2879fi 2880fi 2881fi 2882CC=$ac_cv_prog_CC 2883if test -n "$CC"; then 2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2885$as_echo "$CC" >&6; } 2886else 2887 { $as_echo "$as_me:$LINENO: result: no" >&5 2888$as_echo "no" >&6; } 2889fi 2890 2891 2892fi 2893if test -z "$CC"; then 2894 if test -n "$ac_tool_prefix"; then 2895 for ac_prog in cl.exe 2896 do 2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2898set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2900$as_echo_n "checking for $ac_word... " >&6; } 2901if test "${ac_cv_prog_CC+set}" = set; then 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test -n "$CC"; then 2905 ac_cv_prog_CC="$CC" # Let the user override the test. 2906else 2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2908for as_dir in $PATH 2909do 2910 IFS=$as_save_IFS 2911 test -z "$as_dir" && as_dir=. 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918done 2919done 2920IFS=$as_save_IFS 2921 2922fi 2923fi 2924CC=$ac_cv_prog_CC 2925if test -n "$CC"; then 2926 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2927$as_echo "$CC" >&6; } 2928else 2929 { $as_echo "$as_me:$LINENO: result: no" >&5 2930$as_echo "no" >&6; } 2931fi 2932 2933 2934 test -n "$CC" && break 2935 done 2936fi 2937if test -z "$CC"; then 2938 ac_ct_CC=$CC 2939 for ac_prog in cl.exe 2940do 2941 # Extract the first word of "$ac_prog", so it can be a program name with args. 2942set dummy $ac_prog; ac_word=$2 2943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2944$as_echo_n "checking for $ac_word... " >&6; } 2945if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2946 $as_echo_n "(cached) " >&6 2947else 2948 if test -n "$ac_ct_CC"; then 2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2950else 2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952for as_dir in $PATH 2953do 2954 IFS=$as_save_IFS 2955 test -z "$as_dir" && as_dir=. 2956 for ac_exec_ext in '' $ac_executable_extensions; do 2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2958 ac_cv_prog_ac_ct_CC="$ac_prog" 2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 break 2 2961 fi 2962done 2963done 2964IFS=$as_save_IFS 2965 2966fi 2967fi 2968ac_ct_CC=$ac_cv_prog_ac_ct_CC 2969if test -n "$ac_ct_CC"; then 2970 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2971$as_echo "$ac_ct_CC" >&6; } 2972else 2973 { $as_echo "$as_me:$LINENO: result: no" >&5 2974$as_echo "no" >&6; } 2975fi 2976 2977 2978 test -n "$ac_ct_CC" && break 2979done 2980 2981 if test "x$ac_ct_CC" = x; then 2982 CC="" 2983 else 2984 case $cross_compiling:$ac_tool_warned in 2985yes:) 2986{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2988ac_tool_warned=yes ;; 2989esac 2990 CC=$ac_ct_CC 2991 fi 2992fi 2993 2994fi 2995 2996 2997test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2999{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3000See \`config.log' for more details." >&5 3001$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3002See \`config.log' for more details." >&2;} 3003 { (exit 1); exit 1; }; }; } 3004 3005# Provide some information about the compiler. 3006$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3007set X $ac_compile 3008ac_compiler=$2 3009{ (ac_try="$ac_compiler --version >&5" 3010case "(($ac_try" in 3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3012 *) ac_try_echo=$ac_try;; 3013esac 3014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3015$as_echo "$ac_try_echo") >&5 3016 (eval "$ac_compiler --version >&5") 2>&5 3017 ac_status=$? 3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3019 (exit $ac_status); } 3020{ (ac_try="$ac_compiler -v >&5" 3021case "(($ac_try" in 3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3023 *) ac_try_echo=$ac_try;; 3024esac 3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3026$as_echo "$ac_try_echo") >&5 3027 (eval "$ac_compiler -v >&5") 2>&5 3028 ac_status=$? 3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } 3031{ (ac_try="$ac_compiler -V >&5" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3037$as_echo "$ac_try_echo") >&5 3038 (eval "$ac_compiler -V >&5") 2>&5 3039 ac_status=$? 3040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); } 3042 3043cat >conftest.$ac_ext <<_ACEOF 3044/* confdefs.h. */ 3045_ACEOF 3046cat confdefs.h >>conftest.$ac_ext 3047cat >>conftest.$ac_ext <<_ACEOF 3048/* end confdefs.h. */ 3049 3050int 3051main () 3052{ 3053 3054 ; 3055 return 0; 3056} 3057_ACEOF 3058ac_clean_files_save=$ac_clean_files 3059ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3060# Try to create an executable without -o first, disregard a.out. 3061# It will help us diagnose broken compilers, and finding out an intuition 3062# of exeext. 3063{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3064$as_echo_n "checking for C compiler default output file name... " >&6; } 3065ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3066 3067# The possible output files: 3068ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3069 3070ac_rmfiles= 3071for ac_file in $ac_files 3072do 3073 case $ac_file in 3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3075 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3076 esac 3077done 3078rm -f $ac_rmfiles 3079 3080if { (ac_try="$ac_link_default" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3086$as_echo "$ac_try_echo") >&5 3087 (eval "$ac_link_default") 2>&5 3088 ac_status=$? 3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); }; then 3091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3092# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3093# in a Makefile. We should not override ac_cv_exeext if it was cached, 3094# so that the user can short-circuit this test for compilers unknown to 3095# Autoconf. 3096for ac_file in $ac_files '' 3097do 3098 test -f "$ac_file" || continue 3099 case $ac_file in 3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3101 ;; 3102 [ab].out ) 3103 # We found the default executable, but exeext='' is most 3104 # certainly right. 3105 break;; 3106 *.* ) 3107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3108 then :; else 3109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3110 fi 3111 # We set ac_cv_exeext here because the later test for it is not 3112 # safe: cross compilers may not add the suffix if given an `-o' 3113 # argument, so we may need to know it at that point already. 3114 # Even if this section looks crufty: it has the advantage of 3115 # actually working. 3116 break;; 3117 * ) 3118 break;; 3119 esac 3120done 3121test "$ac_cv_exeext" = no && ac_cv_exeext= 3122 3123else 3124 ac_file='' 3125fi 3126 3127{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3128$as_echo "$ac_file" >&6; } 3129if test -z "$ac_file"; then 3130 $as_echo "$as_me: failed program was:" >&5 3131sed 's/^/| /' conftest.$ac_ext >&5 3132 3133{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3135{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3136See \`config.log' for more details." >&5 3137$as_echo "$as_me: error: C compiler cannot create executables 3138See \`config.log' for more details." >&2;} 3139 { (exit 77); exit 77; }; }; } 3140fi 3141 3142ac_exeext=$ac_cv_exeext 3143 3144# Check that the compiler produces executables we can run. If not, either 3145# the compiler is broken, or we cross compile. 3146{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3147$as_echo_n "checking whether the C compiler works... " >&6; } 3148# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3149# If not cross compiling, check that we can run a simple program. 3150if test "$cross_compiling" != yes; then 3151 if { ac_try='./$ac_file' 3152 { (case "(($ac_try" in 3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3154 *) ac_try_echo=$ac_try;; 3155esac 3156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3157$as_echo "$ac_try_echo") >&5 3158 (eval "$ac_try") 2>&5 3159 ac_status=$? 3160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); }; }; then 3162 cross_compiling=no 3163 else 3164 if test "$cross_compiling" = maybe; then 3165 cross_compiling=yes 3166 else 3167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3169{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3170If you meant to cross compile, use \`--host'. 3171See \`config.log' for more details." >&5 3172$as_echo "$as_me: error: cannot run C compiled programs. 3173If you meant to cross compile, use \`--host'. 3174See \`config.log' for more details." >&2;} 3175 { (exit 1); exit 1; }; }; } 3176 fi 3177 fi 3178fi 3179{ $as_echo "$as_me:$LINENO: result: yes" >&5 3180$as_echo "yes" >&6; } 3181 3182rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3183ac_clean_files=$ac_clean_files_save 3184# Check that the compiler produces executables we can run. If not, either 3185# the compiler is broken, or we cross compile. 3186{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3187$as_echo_n "checking whether we are cross compiling... " >&6; } 3188{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3189$as_echo "$cross_compiling" >&6; } 3190 3191{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3192$as_echo_n "checking for suffix of executables... " >&6; } 3193if { (ac_try="$ac_link" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3199$as_echo "$ac_try_echo") >&5 3200 (eval "$ac_link") 2>&5 3201 ac_status=$? 3202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); }; then 3204 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3205# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3206# work properly (i.e., refer to `conftest.exe'), while it won't with 3207# `rm'. 3208for ac_file in conftest.exe conftest conftest.*; do 3209 test -f "$ac_file" || continue 3210 case $ac_file in 3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3213 break;; 3214 * ) break;; 3215 esac 3216done 3217else 3218 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3221See \`config.log' for more details." >&5 3222$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3223See \`config.log' for more details." >&2;} 3224 { (exit 1); exit 1; }; }; } 3225fi 3226 3227rm -f conftest$ac_cv_exeext 3228{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3229$as_echo "$ac_cv_exeext" >&6; } 3230 3231rm -f conftest.$ac_ext 3232EXEEXT=$ac_cv_exeext 3233ac_exeext=$EXEEXT 3234{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3235$as_echo_n "checking for suffix of object files... " >&6; } 3236if test "${ac_cv_objext+set}" = set; then 3237 $as_echo_n "(cached) " >&6 3238else 3239 cat >conftest.$ac_ext <<_ACEOF 3240/* confdefs.h. */ 3241_ACEOF 3242cat confdefs.h >>conftest.$ac_ext 3243cat >>conftest.$ac_ext <<_ACEOF 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254rm -f conftest.o conftest.obj 3255if { (ac_try="$ac_compile" 3256case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3261$as_echo "$ac_try_echo") >&5 3262 (eval "$ac_compile") 2>&5 3263 ac_status=$? 3264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); }; then 3266 for ac_file in conftest.o conftest.obj conftest.*; do 3267 test -f "$ac_file" || continue; 3268 case $ac_file in 3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3271 break;; 3272 esac 3273done 3274else 3275 $as_echo "$as_me: failed program was:" >&5 3276sed 's/^/| /' conftest.$ac_ext >&5 3277 3278{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3280{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3281See \`config.log' for more details." >&5 3282$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3283See \`config.log' for more details." >&2;} 3284 { (exit 1); exit 1; }; }; } 3285fi 3286 3287rm -f conftest.$ac_cv_objext conftest.$ac_ext 3288fi 3289{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3290$as_echo "$ac_cv_objext" >&6; } 3291OBJEXT=$ac_cv_objext 3292ac_objext=$OBJEXT 3293{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3295if test "${ac_cv_c_compiler_gnu+set}" = set; then 3296 $as_echo_n "(cached) " >&6 3297else 3298 cat >conftest.$ac_ext <<_ACEOF 3299/* confdefs.h. */ 3300_ACEOF 3301cat confdefs.h >>conftest.$ac_ext 3302cat >>conftest.$ac_ext <<_ACEOF 3303/* end confdefs.h. */ 3304 3305int 3306main () 3307{ 3308#ifndef __GNUC__ 3309 choke me 3310#endif 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316rm -f conftest.$ac_objext 3317if { (ac_try="$ac_compile" 3318case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3323$as_echo "$ac_try_echo") >&5 3324 (eval "$ac_compile") 2>conftest.er1 3325 ac_status=$? 3326 grep -v '^ *+' conftest.er1 >conftest.err 3327 rm -f conftest.er1 3328 cat conftest.err >&5 3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); } && { 3331 test -z "$ac_c_werror_flag" || 3332 test ! -s conftest.err 3333 } && test -s conftest.$ac_objext; then 3334 ac_compiler_gnu=yes 3335else 3336 $as_echo "$as_me: failed program was:" >&5 3337sed 's/^/| /' conftest.$ac_ext >&5 3338 3339 ac_compiler_gnu=no 3340fi 3341 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343ac_cv_c_compiler_gnu=$ac_compiler_gnu 3344 3345fi 3346{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3347$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3348if test $ac_compiler_gnu = yes; then 3349 GCC=yes 3350else 3351 GCC= 3352fi 3353ac_test_CFLAGS=${CFLAGS+set} 3354ac_save_CFLAGS=$CFLAGS 3355{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3356$as_echo_n "checking whether $CC accepts -g... " >&6; } 3357if test "${ac_cv_prog_cc_g+set}" = set; then 3358 $as_echo_n "(cached) " >&6 3359else 3360 ac_save_c_werror_flag=$ac_c_werror_flag 3361 ac_c_werror_flag=yes 3362 ac_cv_prog_cc_g=no 3363 CFLAGS="-g" 3364 cat >conftest.$ac_ext <<_ACEOF 3365/* confdefs.h. */ 3366_ACEOF 3367cat confdefs.h >>conftest.$ac_ext 3368cat >>conftest.$ac_ext <<_ACEOF 3369/* end confdefs.h. */ 3370 3371int 3372main () 3373{ 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379rm -f conftest.$ac_objext 3380if { (ac_try="$ac_compile" 3381case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3386$as_echo "$ac_try_echo") >&5 3387 (eval "$ac_compile") 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } && { 3394 test -z "$ac_c_werror_flag" || 3395 test ! -s conftest.err 3396 } && test -s conftest.$ac_objext; then 3397 ac_cv_prog_cc_g=yes 3398else 3399 $as_echo "$as_me: failed program was:" >&5 3400sed 's/^/| /' conftest.$ac_ext >&5 3401 3402 CFLAGS="" 3403 cat >conftest.$ac_ext <<_ACEOF 3404/* confdefs.h. */ 3405_ACEOF 3406cat confdefs.h >>conftest.$ac_ext 3407cat >>conftest.$ac_ext <<_ACEOF 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418rm -f conftest.$ac_objext 3419if { (ac_try="$ac_compile" 3420case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3425$as_echo "$ac_try_echo") >&5 3426 (eval "$ac_compile") 2>conftest.er1 3427 ac_status=$? 3428 grep -v '^ *+' conftest.er1 >conftest.err 3429 rm -f conftest.er1 3430 cat conftest.err >&5 3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3432 (exit $ac_status); } && { 3433 test -z "$ac_c_werror_flag" || 3434 test ! -s conftest.err 3435 } && test -s conftest.$ac_objext; then 3436 : 3437else 3438 $as_echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441 ac_c_werror_flag=$ac_save_c_werror_flag 3442 CFLAGS="-g" 3443 cat >conftest.$ac_ext <<_ACEOF 3444/* confdefs.h. */ 3445_ACEOF 3446cat confdefs.h >>conftest.$ac_ext 3447cat >>conftest.$ac_ext <<_ACEOF 3448/* end confdefs.h. */ 3449 3450int 3451main () 3452{ 3453 3454 ; 3455 return 0; 3456} 3457_ACEOF 3458rm -f conftest.$ac_objext 3459if { (ac_try="$ac_compile" 3460case "(($ac_try" in 3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3462 *) ac_try_echo=$ac_try;; 3463esac 3464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3465$as_echo "$ac_try_echo") >&5 3466 (eval "$ac_compile") 2>conftest.er1 3467 ac_status=$? 3468 grep -v '^ *+' conftest.er1 >conftest.err 3469 rm -f conftest.er1 3470 cat conftest.err >&5 3471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3472 (exit $ac_status); } && { 3473 test -z "$ac_c_werror_flag" || 3474 test ! -s conftest.err 3475 } && test -s conftest.$ac_objext; then 3476 ac_cv_prog_cc_g=yes 3477else 3478 $as_echo "$as_me: failed program was:" >&5 3479sed 's/^/| /' conftest.$ac_ext >&5 3480 3481 3482fi 3483 3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3485fi 3486 3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3488fi 3489 3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3491 ac_c_werror_flag=$ac_save_c_werror_flag 3492fi 3493{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3494$as_echo "$ac_cv_prog_cc_g" >&6; } 3495if test "$ac_test_CFLAGS" = set; then 3496 CFLAGS=$ac_save_CFLAGS 3497elif test $ac_cv_prog_cc_g = yes; then 3498 if test "$GCC" = yes; then 3499 CFLAGS="-g -O2" 3500 else 3501 CFLAGS="-g" 3502 fi 3503else 3504 if test "$GCC" = yes; then 3505 CFLAGS="-O2" 3506 else 3507 CFLAGS= 3508 fi 3509fi 3510{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3512if test "${ac_cv_prog_cc_c89+set}" = set; then 3513 $as_echo_n "(cached) " >&6 3514else 3515 ac_cv_prog_cc_c89=no 3516ac_save_CC=$CC 3517cat >conftest.$ac_ext <<_ACEOF 3518/* confdefs.h. */ 3519_ACEOF 3520cat confdefs.h >>conftest.$ac_ext 3521cat >>conftest.$ac_ext <<_ACEOF 3522/* end confdefs.h. */ 3523#include <stdarg.h> 3524#include <stdio.h> 3525#include <sys/types.h> 3526#include <sys/stat.h> 3527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3528struct buf { int x; }; 3529FILE * (*rcsopen) (struct buf *, struct stat *, int); 3530static char *e (p, i) 3531 char **p; 3532 int i; 3533{ 3534 return p[i]; 3535} 3536static char *f (char * (*g) (char **, int), char **p, ...) 3537{ 3538 char *s; 3539 va_list v; 3540 va_start (v,p); 3541 s = g (p, va_arg (v,int)); 3542 va_end (v); 3543 return s; 3544} 3545 3546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3547 function prototypes and stuff, but not '\xHH' hex character constants. 3548 These don't provoke an error unfortunately, instead are silently treated 3549 as 'x'. The following induces an error, until -std is added to get 3550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3551 array size at least. It's necessary to write '\x00'==0 to get something 3552 that's true only with -std. */ 3553int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3554 3555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3556 inside strings and character constants. */ 3557#define FOO(x) 'x' 3558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3559 3560int test (int i, double x); 3561struct s1 {int (*f) (int a);}; 3562struct s2 {int (*f) (double a);}; 3563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3564int argc; 3565char **argv; 3566int 3567main () 3568{ 3569return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3576do 3577 CC="$ac_save_CC $ac_arg" 3578 rm -f conftest.$ac_objext 3579if { (ac_try="$ac_compile" 3580case "(($ac_try" in 3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3582 *) ac_try_echo=$ac_try;; 3583esac 3584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3585$as_echo "$ac_try_echo") >&5 3586 (eval "$ac_compile") 2>conftest.er1 3587 ac_status=$? 3588 grep -v '^ *+' conftest.er1 >conftest.err 3589 rm -f conftest.er1 3590 cat conftest.err >&5 3591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3592 (exit $ac_status); } && { 3593 test -z "$ac_c_werror_flag" || 3594 test ! -s conftest.err 3595 } && test -s conftest.$ac_objext; then 3596 ac_cv_prog_cc_c89=$ac_arg 3597else 3598 $as_echo "$as_me: failed program was:" >&5 3599sed 's/^/| /' conftest.$ac_ext >&5 3600 3601 3602fi 3603 3604rm -f core conftest.err conftest.$ac_objext 3605 test "x$ac_cv_prog_cc_c89" != "xno" && break 3606done 3607rm -f conftest.$ac_ext 3608CC=$ac_save_CC 3609 3610fi 3611# AC_CACHE_VAL 3612case "x$ac_cv_prog_cc_c89" in 3613 x) 3614 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3615$as_echo "none needed" >&6; } ;; 3616 xno) 3617 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3618$as_echo "unsupported" >&6; } ;; 3619 *) 3620 CC="$CC $ac_cv_prog_cc_c89" 3621 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3623esac 3624 3625 3626ac_ext=c 3627ac_cpp='$CPP $CPPFLAGS' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu 3631DEPDIR="${am__leading_dot}deps" 3632 3633ac_config_commands="$ac_config_commands depfiles" 3634 3635 3636am_make=${MAKE-make} 3637cat > confinc << 'END' 3638am__doit: 3639 @echo done 3640.PHONY: am__doit 3641END 3642# If we don't find an include directive, just comment out the code. 3643{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3644$as_echo_n "checking for style of include used by $am_make... " >&6; } 3645am__include="#" 3646am__quote= 3647_am_result=none 3648# First try GNU make style include. 3649echo "include confinc" > confmf 3650# We grep out `Entering directory' and `Leaving directory' 3651# messages which can occur if `w' ends up in MAKEFLAGS. 3652# In particular we don't look at `^make:' because GNU make might 3653# be invoked under some other name (usually "gmake"), in which 3654# case it prints its new name instead of `make'. 3655if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3656 am__include=include 3657 am__quote= 3658 _am_result=GNU 3659fi 3660# Now try BSD make style include. 3661if test "$am__include" = "#"; then 3662 echo '.include "confinc"' > confmf 3663 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3664 am__include=.include 3665 am__quote="\"" 3666 _am_result=BSD 3667 fi 3668fi 3669 3670 3671{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3672$as_echo "$_am_result" >&6; } 3673rm -f confinc confmf 3674 3675# Check whether --enable-dependency-tracking was given. 3676if test "${enable_dependency_tracking+set}" = set; then 3677 enableval=$enable_dependency_tracking; 3678fi 3679 3680if test "x$enable_dependency_tracking" != xno; then 3681 am_depcomp="$ac_aux_dir/depcomp" 3682 AMDEPBACKSLASH='\' 3683fi 3684 if test "x$enable_dependency_tracking" != xno; then 3685 AMDEP_TRUE= 3686 AMDEP_FALSE='#' 3687else 3688 AMDEP_TRUE='#' 3689 AMDEP_FALSE= 3690fi 3691 3692 3693 3694depcc="$CC" am_compiler_list= 3695 3696{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3697$as_echo_n "checking dependency style of $depcc... " >&6; } 3698if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3699 $as_echo_n "(cached) " >&6 3700else 3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3702 # We make a subdir and do the tests there. Otherwise we can end up 3703 # making bogus files that we don't know about and never remove. For 3704 # instance it was reported that on HP-UX the gcc test will end up 3705 # making a dummy file named `D' -- because `-MD' means `put the output 3706 # in D'. 3707 mkdir conftest.dir 3708 # Copy depcomp to subdir because otherwise we won't find it if we're 3709 # using a relative directory. 3710 cp "$am_depcomp" conftest.dir 3711 cd conftest.dir 3712 # We will build objects and dependencies in a subdirectory because 3713 # it helps to detect inapplicable dependency modes. For instance 3714 # both Tru64's cc and ICC support -MD to output dependencies as a 3715 # side effect of compilation, but ICC will put the dependencies in 3716 # the current directory while Tru64 will put them in the object 3717 # directory. 3718 mkdir sub 3719 3720 am_cv_CC_dependencies_compiler_type=none 3721 if test "$am_compiler_list" = ""; then 3722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3723 fi 3724 for depmode in $am_compiler_list; do 3725 # Setup a source with many dependencies, because some compilers 3726 # like to wrap large dependency lists on column 80 (with \), and 3727 # we should not choose a depcomp mode which is confused by this. 3728 # 3729 # We need to recreate these files for each test, as the compiler may 3730 # overwrite some of them when testing with obscure command lines. 3731 # This happens at least with the AIX C compiler. 3732 : > sub/conftest.c 3733 for i in 1 2 3 4 5 6; do 3734 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3736 # Solaris 8's {/usr,}/bin/sh. 3737 touch sub/conftst$i.h 3738 done 3739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3740 3741 case $depmode in 3742 nosideeffect) 3743 # after this tag, mechanisms are not by side-effect, so they'll 3744 # only be used when explicitly requested 3745 if test "x$enable_dependency_tracking" = xyes; then 3746 continue 3747 else 3748 break 3749 fi 3750 ;; 3751 none) break ;; 3752 esac 3753 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3754 # mode. It turns out that the SunPro C++ compiler does not properly 3755 # handle `-M -o', and we need to detect this. 3756 if depmode=$depmode \ 3757 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3759 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3760 >/dev/null 2>conftest.err && 3761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3763 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3765 # icc doesn't choke on unknown options, it will just issue warnings 3766 # or remarks (even with -Werror). So we grep stderr for any message 3767 # that says an option was ignored or not supported. 3768 # When given -MP, icc 7.0 and 7.1 complain thusly: 3769 # icc: Command line warning: ignoring option '-M'; no argument required 3770 # The diagnosis changed in icc 8.0: 3771 # icc: Command line remark: option '-MP' not supported 3772 if (grep 'ignoring option' conftest.err || 3773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3774 am_cv_CC_dependencies_compiler_type=$depmode 3775 break 3776 fi 3777 fi 3778 done 3779 3780 cd .. 3781 rm -rf conftest.dir 3782else 3783 am_cv_CC_dependencies_compiler_type=none 3784fi 3785 3786fi 3787{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3788$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3789CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3790 3791 if 3792 test "x$enable_dependency_tracking" != xno \ 3793 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3794 am__fastdepCC_TRUE= 3795 am__fastdepCC_FALSE='#' 3796else 3797 am__fastdepCC_TRUE='#' 3798 am__fastdepCC_FALSE= 3799fi 3800 3801 3802if test "x$CC" != xcc; then 3803 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3804$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 3805else 3806 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3807$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 3808fi 3809set dummy $CC; ac_cc=`$as_echo "$2" | 3810 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3811if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3812 $as_echo_n "(cached) " >&6 3813else 3814 cat >conftest.$ac_ext <<_ACEOF 3815/* confdefs.h. */ 3816_ACEOF 3817cat confdefs.h >>conftest.$ac_ext 3818cat >>conftest.$ac_ext <<_ACEOF 3819/* end confdefs.h. */ 3820 3821int 3822main () 3823{ 3824 3825 ; 3826 return 0; 3827} 3828_ACEOF 3829# Make sure it works both with $CC and with simple cc. 3830# We do the test twice because some compilers refuse to overwrite an 3831# existing .o file with -o, though they will create one. 3832ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3833rm -f conftest2.* 3834if { (case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3839$as_echo "$ac_try_echo") >&5 3840 (eval "$ac_try") 2>&5 3841 ac_status=$? 3842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 (exit $ac_status); } && 3844 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847esac 3848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3849$as_echo "$ac_try_echo") >&5 3850 (eval "$ac_try") 2>&5 3851 ac_status=$? 3852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); }; 3854then 3855 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3856 if test "x$CC" != xcc; then 3857 # Test first that cc exists at all. 3858 if { ac_try='cc -c conftest.$ac_ext >&5' 3859 { (case "(($ac_try" in 3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3861 *) ac_try_echo=$ac_try;; 3862esac 3863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3864$as_echo "$ac_try_echo") >&5 3865 (eval "$ac_try") 2>&5 3866 ac_status=$? 3867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); }; }; then 3869 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3870 rm -f conftest2.* 3871 if { (case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874esac 3875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3876$as_echo "$ac_try_echo") >&5 3877 (eval "$ac_try") 2>&5 3878 ac_status=$? 3879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3880 (exit $ac_status); } && 3881 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3886$as_echo "$ac_try_echo") >&5 3887 (eval "$ac_try") 2>&5 3888 ac_status=$? 3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3890 (exit $ac_status); }; 3891 then 3892 # cc works too. 3893 : 3894 else 3895 # cc exists but doesn't like -o. 3896 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3897 fi 3898 fi 3899 fi 3900else 3901 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3902fi 3903rm -f core conftest* 3904 3905fi 3906if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3907 { $as_echo "$as_me:$LINENO: result: yes" >&5 3908$as_echo "yes" >&6; } 3909else 3910 { $as_echo "$as_me:$LINENO: result: no" >&5 3911$as_echo "no" >&6; } 3912 3913cat >>confdefs.h <<\_ACEOF 3914#define NO_MINUS_C_MINUS_O 1 3915_ACEOF 3916 3917fi 3918 3919# FIXME: we rely on the cache variable name because 3920# there is no other way. 3921set dummy $CC 3922am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3923eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 3924if test "$am_t" != yes; then 3925 # Losing compiler, so override with the script. 3926 # FIXME: It is wrong to rewrite CC. 3927 # But if we don't then we get into trouble of one sort or another. 3928 # A longer-term fix would be to have automake use am__CC in this case, 3929 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3930 CC="$am_aux_dir/compile $CC" 3931fi 3932 3933 3934ac_ext=c 3935ac_cpp='$CPP $CPPFLAGS' 3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3938ac_compiler_gnu=$ac_cv_c_compiler_gnu 3939{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3940$as_echo_n "checking how to run the C preprocessor... " >&6; } 3941# On Suns, sometimes $CPP names a directory. 3942if test -n "$CPP" && test -d "$CPP"; then 3943 CPP= 3944fi 3945if test -z "$CPP"; then 3946 if test "${ac_cv_prog_CPP+set}" = set; then 3947 $as_echo_n "(cached) " >&6 3948else 3949 # Double quotes because CPP needs to be expanded 3950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3951 do 3952 ac_preproc_ok=false 3953for ac_c_preproc_warn_flag in '' yes 3954do 3955 # Use a header file that comes with gcc, so configuring glibc 3956 # with a fresh cross-compiler works. 3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3958 # <limits.h> exists even on freestanding compilers. 3959 # On the NeXT, cc -E runs the code through the compiler's parser, 3960 # not just through cpp. "Syntax error" is here to catch this case. 3961 cat >conftest.$ac_ext <<_ACEOF 3962/* confdefs.h. */ 3963_ACEOF 3964cat confdefs.h >>conftest.$ac_ext 3965cat >>conftest.$ac_ext <<_ACEOF 3966/* end confdefs.h. */ 3967#ifdef __STDC__ 3968# include <limits.h> 3969#else 3970# include <assert.h> 3971#endif 3972 Syntax error 3973_ACEOF 3974if { (ac_try="$ac_cpp conftest.$ac_ext" 3975case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3980$as_echo "$ac_try_echo") >&5 3981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3982 ac_status=$? 3983 grep -v '^ *+' conftest.er1 >conftest.err 3984 rm -f conftest.er1 3985 cat conftest.err >&5 3986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3987 (exit $ac_status); } >/dev/null && { 3988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3989 test ! -s conftest.err 3990 }; then 3991 : 3992else 3993 $as_echo "$as_me: failed program was:" >&5 3994sed 's/^/| /' conftest.$ac_ext >&5 3995 3996 # Broken: fails on valid input. 3997continue 3998fi 3999 4000rm -f conftest.err conftest.$ac_ext 4001 4002 # OK, works on sane cases. Now check whether nonexistent headers 4003 # can be detected and how. 4004 cat >conftest.$ac_ext <<_ACEOF 4005/* confdefs.h. */ 4006_ACEOF 4007cat confdefs.h >>conftest.$ac_ext 4008cat >>conftest.$ac_ext <<_ACEOF 4009/* end confdefs.h. */ 4010#include <ac_nonexistent.h> 4011_ACEOF 4012if { (ac_try="$ac_cpp conftest.$ac_ext" 4013case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016esac 4017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4018$as_echo "$ac_try_echo") >&5 4019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4020 ac_status=$? 4021 grep -v '^ *+' conftest.er1 >conftest.err 4022 rm -f conftest.er1 4023 cat conftest.err >&5 4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); } >/dev/null && { 4026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4027 test ! -s conftest.err 4028 }; then 4029 # Broken: success on invalid input. 4030continue 4031else 4032 $as_echo "$as_me: failed program was:" >&5 4033sed 's/^/| /' conftest.$ac_ext >&5 4034 4035 # Passes both tests. 4036ac_preproc_ok=: 4037break 4038fi 4039 4040rm -f conftest.err conftest.$ac_ext 4041 4042done 4043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4044rm -f conftest.err conftest.$ac_ext 4045if $ac_preproc_ok; then 4046 break 4047fi 4048 4049 done 4050 ac_cv_prog_CPP=$CPP 4051 4052fi 4053 CPP=$ac_cv_prog_CPP 4054else 4055 ac_cv_prog_CPP=$CPP 4056fi 4057{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4058$as_echo "$CPP" >&6; } 4059ac_preproc_ok=false 4060for ac_c_preproc_warn_flag in '' yes 4061do 4062 # Use a header file that comes with gcc, so configuring glibc 4063 # with a fresh cross-compiler works. 4064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4065 # <limits.h> exists even on freestanding compilers. 4066 # On the NeXT, cc -E runs the code through the compiler's parser, 4067 # not just through cpp. "Syntax error" is here to catch this case. 4068 cat >conftest.$ac_ext <<_ACEOF 4069/* confdefs.h. */ 4070_ACEOF 4071cat confdefs.h >>conftest.$ac_ext 4072cat >>conftest.$ac_ext <<_ACEOF 4073/* end confdefs.h. */ 4074#ifdef __STDC__ 4075# include <limits.h> 4076#else 4077# include <assert.h> 4078#endif 4079 Syntax error 4080_ACEOF 4081if { (ac_try="$ac_cpp conftest.$ac_ext" 4082case "(($ac_try" in 4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4084 *) ac_try_echo=$ac_try;; 4085esac 4086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4087$as_echo "$ac_try_echo") >&5 4088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4089 ac_status=$? 4090 grep -v '^ *+' conftest.er1 >conftest.err 4091 rm -f conftest.er1 4092 cat conftest.err >&5 4093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094 (exit $ac_status); } >/dev/null && { 4095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4096 test ! -s conftest.err 4097 }; then 4098 : 4099else 4100 $as_echo "$as_me: failed program was:" >&5 4101sed 's/^/| /' conftest.$ac_ext >&5 4102 4103 # Broken: fails on valid input. 4104continue 4105fi 4106 4107rm -f conftest.err conftest.$ac_ext 4108 4109 # OK, works on sane cases. Now check whether nonexistent headers 4110 # can be detected and how. 4111 cat >conftest.$ac_ext <<_ACEOF 4112/* confdefs.h. */ 4113_ACEOF 4114cat confdefs.h >>conftest.$ac_ext 4115cat >>conftest.$ac_ext <<_ACEOF 4116/* end confdefs.h. */ 4117#include <ac_nonexistent.h> 4118_ACEOF 4119if { (ac_try="$ac_cpp conftest.$ac_ext" 4120case "(($ac_try" in 4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4122 *) ac_try_echo=$ac_try;; 4123esac 4124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4125$as_echo "$ac_try_echo") >&5 4126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4127 ac_status=$? 4128 grep -v '^ *+' conftest.er1 >conftest.err 4129 rm -f conftest.er1 4130 cat conftest.err >&5 4131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } >/dev/null && { 4133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4134 test ! -s conftest.err 4135 }; then 4136 # Broken: success on invalid input. 4137continue 4138else 4139 $as_echo "$as_me: failed program was:" >&5 4140sed 's/^/| /' conftest.$ac_ext >&5 4141 4142 # Passes both tests. 4143ac_preproc_ok=: 4144break 4145fi 4146 4147rm -f conftest.err conftest.$ac_ext 4148 4149done 4150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4151rm -f conftest.err conftest.$ac_ext 4152if $ac_preproc_ok; then 4153 : 4154else 4155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4157{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4158See \`config.log' for more details." >&5 4159$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4160See \`config.log' for more details." >&2;} 4161 { (exit 1); exit 1; }; }; } 4162fi 4163 4164ac_ext=c 4165ac_cpp='$CPP $CPPFLAGS' 4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4168ac_compiler_gnu=$ac_cv_c_compiler_gnu 4169 4170# Find a good install program. We prefer a C program (faster), 4171# so one script is as good as another. But avoid the broken or 4172# incompatible versions: 4173# SysV /etc/install, /usr/sbin/install 4174# SunOS /usr/etc/install 4175# IRIX /sbin/install 4176# AIX /bin/install 4177# AmigaOS /C/install, which installs bootblocks on floppy discs 4178# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4179# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4180# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4181# OS/2's system install, which has a completely different semantic 4182# ./install, which can be erroneously created by make from ./install.sh. 4183# Reject install programs that cannot install multiple files. 4184{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4185$as_echo_n "checking for a BSD-compatible install... " >&6; } 4186if test -z "$INSTALL"; then 4187if test "${ac_cv_path_install+set}" = set; then 4188 $as_echo_n "(cached) " >&6 4189else 4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4191for as_dir in $PATH 4192do 4193 IFS=$as_save_IFS 4194 test -z "$as_dir" && as_dir=. 4195 # Account for people who put trailing slashes in PATH elements. 4196case $as_dir/ in 4197 ./ | .// | /cC/* | \ 4198 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4199 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4200 /usr/ucb/* ) ;; 4201 *) 4202 # OSF1 and SCO ODT 3.0 have their own names for install. 4203 # Don't use installbsd from OSF since it installs stuff as root 4204 # by default. 4205 for ac_prog in ginstall scoinst install; do 4206 for ac_exec_ext in '' $ac_executable_extensions; do 4207 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4208 if test $ac_prog = install && 4209 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4210 # AIX install. It has an incompatible calling convention. 4211 : 4212 elif test $ac_prog = install && 4213 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4214 # program-specific install script used by HP pwplus--don't use. 4215 : 4216 else 4217 rm -rf conftest.one conftest.two conftest.dir 4218 echo one > conftest.one 4219 echo two > conftest.two 4220 mkdir conftest.dir 4221 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4222 test -s conftest.one && test -s conftest.two && 4223 test -s conftest.dir/conftest.one && 4224 test -s conftest.dir/conftest.two 4225 then 4226 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4227 break 3 4228 fi 4229 fi 4230 fi 4231 done 4232 done 4233 ;; 4234esac 4235 4236done 4237IFS=$as_save_IFS 4238 4239rm -rf conftest.one conftest.two conftest.dir 4240 4241fi 4242 if test "${ac_cv_path_install+set}" = set; then 4243 INSTALL=$ac_cv_path_install 4244 else 4245 # As a last resort, use the slow shell script. Don't cache a 4246 # value for INSTALL within a source directory, because that will 4247 # break other packages using the cache if that directory is 4248 # removed, or if the value is a relative name. 4249 INSTALL=$ac_install_sh 4250 fi 4251fi 4252{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4253$as_echo "$INSTALL" >&6; } 4254 4255# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4256# It thinks the first close brace ends the variable substitution. 4257test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4258 4259test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4260 4261test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4262 4263{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4264$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4265set x ${MAKE-make} 4266ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4267if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4268 $as_echo_n "(cached) " >&6 4269else 4270 cat >conftest.make <<\_ACEOF 4271SHELL = /bin/sh 4272all: 4273 @echo '@@@%%%=$(MAKE)=@@@%%%' 4274_ACEOF 4275# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4276case `${MAKE-make} -f conftest.make 2>/dev/null` in 4277 *@@@%%%=?*=@@@%%%*) 4278 eval ac_cv_prog_make_${ac_make}_set=yes;; 4279 *) 4280 eval ac_cv_prog_make_${ac_make}_set=no;; 4281esac 4282rm -f conftest.make 4283fi 4284if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4285 { $as_echo "$as_me:$LINENO: result: yes" >&5 4286$as_echo "yes" >&6; } 4287 SET_MAKE= 4288else 4289 { $as_echo "$as_me:$LINENO: result: no" >&5 4290$as_echo "no" >&6; } 4291 SET_MAKE="MAKE=${MAKE-make}" 4292fi 4293 4294{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4295$as_echo_n "checking whether ln -s works... " >&6; } 4296LN_S=$as_ln_s 4297if test "$LN_S" = "ln -s"; then 4298 { $as_echo "$as_me:$LINENO: result: yes" >&5 4299$as_echo "yes" >&6; } 4300else 4301 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4302$as_echo "no, using $LN_S" >&6; } 4303fi 4304 4305 4306for ac_prog in flex lex 4307do 4308 # Extract the first word of "$ac_prog", so it can be a program name with args. 4309set dummy $ac_prog; ac_word=$2 4310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4311$as_echo_n "checking for $ac_word... " >&6; } 4312if test "${ac_cv_prog_LEX+set}" = set; then 4313 $as_echo_n "(cached) " >&6 4314else 4315 if test -n "$LEX"; then 4316 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4317else 4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4325 ac_cv_prog_LEX="$ac_prog" 4326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330done 4331IFS=$as_save_IFS 4332 4333fi 4334fi 4335LEX=$ac_cv_prog_LEX 4336if test -n "$LEX"; then 4337 { $as_echo "$as_me:$LINENO: result: $LEX" >&5 4338$as_echo "$LEX" >&6; } 4339else 4340 { $as_echo "$as_me:$LINENO: result: no" >&5 4341$as_echo "no" >&6; } 4342fi 4343 4344 4345 test -n "$LEX" && break 4346done 4347test -n "$LEX" || LEX=":" 4348 4349if test "x$LEX" != "x:"; then 4350 cat >conftest.l <<_ACEOF 4351%% 4352a { ECHO; } 4353b { REJECT; } 4354c { yymore (); } 4355d { yyless (1); } 4356e { yyless (input () != 0); } 4357f { unput (yytext[0]); } 4358. { BEGIN INITIAL; } 4359%% 4360#ifdef YYTEXT_POINTER 4361extern char *yytext; 4362#endif 4363int 4364main (void) 4365{ 4366 return ! yylex () + ! yywrap (); 4367} 4368_ACEOF 4369{ (ac_try="$LEX conftest.l" 4370case "(($ac_try" in 4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4372 *) ac_try_echo=$ac_try;; 4373esac 4374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4375$as_echo "$ac_try_echo") >&5 4376 (eval "$LEX conftest.l") 2>&5 4377 ac_status=$? 4378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 (exit $ac_status); } 4380{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5 4381$as_echo_n "checking lex output file root... " >&6; } 4382if test "${ac_cv_prog_lex_root+set}" = set; then 4383 $as_echo_n "(cached) " >&6 4384else 4385 4386if test -f lex.yy.c; then 4387 ac_cv_prog_lex_root=lex.yy 4388elif test -f lexyy.c; then 4389 ac_cv_prog_lex_root=lexyy 4390else 4391 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 4392$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 4393 { (exit 1); exit 1; }; } 4394fi 4395fi 4396{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 4397$as_echo "$ac_cv_prog_lex_root" >&6; } 4398LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4399 4400if test -z "${LEXLIB+set}"; then 4401 { $as_echo "$as_me:$LINENO: checking lex library" >&5 4402$as_echo_n "checking lex library... " >&6; } 4403if test "${ac_cv_lib_lex+set}" = set; then 4404 $as_echo_n "(cached) " >&6 4405else 4406 4407 ac_save_LIBS=$LIBS 4408 ac_cv_lib_lex='none needed' 4409 for ac_lib in '' -lfl -ll; do 4410 LIBS="$ac_lib $ac_save_LIBS" 4411 cat >conftest.$ac_ext <<_ACEOF 4412`cat $LEX_OUTPUT_ROOT.c` 4413_ACEOF 4414rm -f conftest.$ac_objext conftest$ac_exeext 4415if { (ac_try="$ac_link" 4416case "(($ac_try" in 4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4418 *) ac_try_echo=$ac_try;; 4419esac 4420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4421$as_echo "$ac_try_echo") >&5 4422 (eval "$ac_link") 2>conftest.er1 4423 ac_status=$? 4424 grep -v '^ *+' conftest.er1 >conftest.err 4425 rm -f conftest.er1 4426 cat conftest.err >&5 4427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); } && { 4429 test -z "$ac_c_werror_flag" || 4430 test ! -s conftest.err 4431 } && test -s conftest$ac_exeext && { 4432 test "$cross_compiling" = yes || 4433 $as_test_x conftest$ac_exeext 4434 }; then 4435 ac_cv_lib_lex=$ac_lib 4436else 4437 $as_echo "$as_me: failed program was:" >&5 4438sed 's/^/| /' conftest.$ac_ext >&5 4439 4440 4441fi 4442 4443rm -rf conftest.dSYM 4444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4445 conftest$ac_exeext conftest.$ac_ext 4446 test "$ac_cv_lib_lex" != 'none needed' && break 4447 done 4448 LIBS=$ac_save_LIBS 4449 4450fi 4451{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 4452$as_echo "$ac_cv_lib_lex" >&6; } 4453 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4454fi 4455 4456 4457{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 4458$as_echo_n "checking whether yytext is a pointer... " >&6; } 4459if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 4460 $as_echo_n "(cached) " >&6 4461else 4462 # POSIX says lex can declare yytext either as a pointer or an array; the 4463# default is implementation-dependent. Figure out which it is, since 4464# not all implementations provide the %pointer and %array declarations. 4465ac_cv_prog_lex_yytext_pointer=no 4466ac_save_LIBS=$LIBS 4467LIBS="$LEXLIB $ac_save_LIBS" 4468cat >conftest.$ac_ext <<_ACEOF 4469#define YYTEXT_POINTER 1 4470`cat $LEX_OUTPUT_ROOT.c` 4471_ACEOF 4472rm -f conftest.$ac_objext conftest$ac_exeext 4473if { (ac_try="$ac_link" 4474case "(($ac_try" in 4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *) ac_try_echo=$ac_try;; 4477esac 4478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4479$as_echo "$ac_try_echo") >&5 4480 (eval "$ac_link") 2>conftest.er1 4481 ac_status=$? 4482 grep -v '^ *+' conftest.er1 >conftest.err 4483 rm -f conftest.er1 4484 cat conftest.err >&5 4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4486 (exit $ac_status); } && { 4487 test -z "$ac_c_werror_flag" || 4488 test ! -s conftest.err 4489 } && test -s conftest$ac_exeext && { 4490 test "$cross_compiling" = yes || 4491 $as_test_x conftest$ac_exeext 4492 }; then 4493 ac_cv_prog_lex_yytext_pointer=yes 4494else 4495 $as_echo "$as_me: failed program was:" >&5 4496sed 's/^/| /' conftest.$ac_ext >&5 4497 4498 4499fi 4500 4501rm -rf conftest.dSYM 4502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4503 conftest$ac_exeext conftest.$ac_ext 4504LIBS=$ac_save_LIBS 4505 4506fi 4507{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 4508$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4509if test $ac_cv_prog_lex_yytext_pointer = yes; then 4510 4511cat >>confdefs.h <<\_ACEOF 4512#define YYTEXT_POINTER 1 4513_ACEOF 4514 4515fi 4516rm -f conftest.l $LEX_OUTPUT_ROOT.c 4517 4518fi 4519if test "$LEX" = :; then 4520 LEX=${am_missing_run}flex 4521fi 4522 4523 4524if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4525 if test -n "$ac_tool_prefix"; then 4526 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4527set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4529$as_echo_n "checking for $ac_word... " >&6; } 4530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4531 $as_echo_n "(cached) " >&6 4532else 4533 case $PKG_CONFIG in 4534 [\\/]* | ?:[\\/]*) 4535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4536 ;; 4537 *) 4538 as_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_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4546 $as_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 4553 ;; 4554esac 4555fi 4556PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4557if test -n "$PKG_CONFIG"; then 4558 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4559$as_echo "$PKG_CONFIG" >&6; } 4560else 4561 { $as_echo "$as_me:$LINENO: result: no" >&5 4562$as_echo "no" >&6; } 4563fi 4564 4565 4566fi 4567if test -z "$ac_cv_path_PKG_CONFIG"; then 4568 ac_pt_PKG_CONFIG=$PKG_CONFIG 4569 # Extract the first word of "pkg-config", so it can be a program name with args. 4570set dummy pkg-config; ac_word=$2 4571{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4572$as_echo_n "checking for $ac_word... " >&6; } 4573if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4574 $as_echo_n "(cached) " >&6 4575else 4576 case $ac_pt_PKG_CONFIG in 4577 [\\/]* | ?:[\\/]*) 4578 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4579 ;; 4580 *) 4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582for as_dir in $PATH 4583do 4584 IFS=$as_save_IFS 4585 test -z "$as_dir" && as_dir=. 4586 for ac_exec_ext in '' $ac_executable_extensions; do 4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4588 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4590 break 2 4591 fi 4592done 4593done 4594IFS=$as_save_IFS 4595 4596 ;; 4597esac 4598fi 4599ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4600if test -n "$ac_pt_PKG_CONFIG"; then 4601 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4602$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4603else 4604 { $as_echo "$as_me:$LINENO: result: no" >&5 4605$as_echo "no" >&6; } 4606fi 4607 4608 if test "x$ac_pt_PKG_CONFIG" = x; then 4609 PKG_CONFIG="" 4610 else 4611 case $cross_compiling:$ac_tool_warned in 4612yes:) 4613{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4615ac_tool_warned=yes ;; 4616esac 4617 PKG_CONFIG=$ac_pt_PKG_CONFIG 4618 fi 4619else 4620 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4621fi 4622 4623fi 4624if test -n "$PKG_CONFIG"; then 4625 _pkg_min_version=0.9.0 4626 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4627$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4628 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4629 { $as_echo "$as_me:$LINENO: result: yes" >&5 4630$as_echo "yes" >&6; } 4631 else 4632 { $as_echo "$as_me:$LINENO: result: no" >&5 4633$as_echo "no" >&6; } 4634 PKG_CONFIG="" 4635 fi 4636 4637fi 4638 4639# check pcsc-lite version 4640PCSC_NEEDED_VERSION="1.3.3" 4641if test -n "$PKG_CONFIG" && \ 4642 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5 4643 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5 4644 ac_status=$? 4645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); }; then 4647 4648pkg_failed=no 4649{ $as_echo "$as_me:$LINENO: checking for PCSC" >&5 4650$as_echo_n "checking for PCSC... " >&6; } 4651 4652if test -n "$PKG_CONFIG"; then 4653 if test -n "$PCSC_CFLAGS"; then 4654 pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS" 4655 else 4656 if test -n "$PKG_CONFIG" && \ 4657 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\"") >&5 4658 ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5 4659 ac_status=$? 4660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661 (exit $ac_status); }; then 4662 pkg_cv_PCSC_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null` 4663else 4664 pkg_failed=yes 4665fi 4666 fi 4667else 4668 pkg_failed=untried 4669fi 4670if test -n "$PKG_CONFIG"; then 4671 if test -n "$PCSC_LIBS"; then 4672 pkg_cv_PCSC_LIBS="$PCSC_LIBS" 4673 else 4674 if test -n "$PKG_CONFIG" && \ 4675 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\"") >&5 4676 ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5 4677 ac_status=$? 4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); }; then 4680 pkg_cv_PCSC_LIBS=`$PKG_CONFIG --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null` 4681else 4682 pkg_failed=yes 4683fi 4684 fi 4685else 4686 pkg_failed=untried 4687fi 4688 4689 4690 4691if test $pkg_failed = yes; then 4692 4693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4694 _pkg_short_errors_supported=yes 4695else 4696 _pkg_short_errors_supported=no 4697fi 4698 if test $_pkg_short_errors_supported = yes; then 4699 PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION"` 4700 else 4701 PCSC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION"` 4702 fi 4703 # Put the nasty error message in config.log where it belongs 4704 echo "$PCSC_PKG_ERRORS" >&5 4705 4706 { $as_echo "$as_me:$LINENO: result: no" >&5 4707$as_echo "no" >&6; } 4708 4709 if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then 4710 { { $as_echo "$as_me:$LINENO: error: use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" >&5 4711$as_echo "$as_me: error: use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" >&2;} 4712 { (exit 1); exit 1; }; } 4713 else 4714 { $as_echo "$as_me:$LINENO: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5 4715$as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;} 4716 fi 4717 4718elif test $pkg_failed = untried; then 4719 4720 if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then 4721 { { $as_echo "$as_me:$LINENO: error: use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" >&5 4722$as_echo "$as_me: error: use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" >&2;} 4723 { (exit 1); exit 1; }; } 4724 else 4725 { $as_echo "$as_me:$LINENO: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5 4726$as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;} 4727 fi 4728 4729else 4730 PCSC_CFLAGS=$pkg_cv_PCSC_CFLAGS 4731 PCSC_LIBS=$pkg_cv_PCSC_LIBS 4732 { $as_echo "$as_me:$LINENO: result: yes" >&5 4733$as_echo "yes" >&6; } 4734 : 4735fi 4736else 4737 { $as_echo "$as_me:$LINENO: WARNING: libpcsclite not found by pkg-config" >&5 4738$as_echo "$as_me: WARNING: libpcsclite not found by pkg-config" >&2;} 4739 4740fi 4741 4742saved_CPPFLAGS="$CPPFLAGS" 4743CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS" 4744 4745{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4746$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4747if test "${ac_cv_path_GREP+set}" = set; then 4748 $as_echo_n "(cached) " >&6 4749else 4750 if test -z "$GREP"; then 4751 ac_path_GREP_found=false 4752 # Loop through the user's path and test for each of PROGNAME-LIST 4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4755do 4756 IFS=$as_save_IFS 4757 test -z "$as_dir" && as_dir=. 4758 for ac_prog in grep ggrep; do 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4761 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4762# Check for GNU ac_path_GREP and select it if it is found. 4763 # Check for GNU $ac_path_GREP 4764case `"$ac_path_GREP" --version 2>&1` in 4765*GNU*) 4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4767*) 4768 ac_count=0 4769 $as_echo_n 0123456789 >"conftest.in" 4770 while : 4771 do 4772 cat "conftest.in" "conftest.in" >"conftest.tmp" 4773 mv "conftest.tmp" "conftest.in" 4774 cp "conftest.in" "conftest.nl" 4775 $as_echo 'GREP' >> "conftest.nl" 4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4778 ac_count=`expr $ac_count + 1` 4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4780 # Best one so far, save it but keep looking for a better one 4781 ac_cv_path_GREP="$ac_path_GREP" 4782 ac_path_GREP_max=$ac_count 4783 fi 4784 # 10*(2^10) chars as input seems more than enough 4785 test $ac_count -gt 10 && break 4786 done 4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4788esac 4789 4790 $ac_path_GREP_found && break 3 4791 done 4792 done 4793done 4794IFS=$as_save_IFS 4795 if test -z "$ac_cv_path_GREP"; then 4796 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4797$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4798 { (exit 1); exit 1; }; } 4799 fi 4800else 4801 ac_cv_path_GREP=$GREP 4802fi 4803 4804fi 4805{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4806$as_echo "$ac_cv_path_GREP" >&6; } 4807 GREP="$ac_cv_path_GREP" 4808 4809 4810{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4811$as_echo_n "checking for egrep... " >&6; } 4812if test "${ac_cv_path_EGREP+set}" = set; then 4813 $as_echo_n "(cached) " >&6 4814else 4815 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4816 then ac_cv_path_EGREP="$GREP -E" 4817 else 4818 if test -z "$EGREP"; then 4819 ac_path_EGREP_found=false 4820 # Loop through the user's path and test for each of PROGNAME-LIST 4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4822for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4823do 4824 IFS=$as_save_IFS 4825 test -z "$as_dir" && as_dir=. 4826 for ac_prog in egrep; do 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4829 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4830# Check for GNU ac_path_EGREP and select it if it is found. 4831 # Check for GNU $ac_path_EGREP 4832case `"$ac_path_EGREP" --version 2>&1` in 4833*GNU*) 4834 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4835*) 4836 ac_count=0 4837 $as_echo_n 0123456789 >"conftest.in" 4838 while : 4839 do 4840 cat "conftest.in" "conftest.in" >"conftest.tmp" 4841 mv "conftest.tmp" "conftest.in" 4842 cp "conftest.in" "conftest.nl" 4843 $as_echo 'EGREP' >> "conftest.nl" 4844 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4846 ac_count=`expr $ac_count + 1` 4847 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4848 # Best one so far, save it but keep looking for a better one 4849 ac_cv_path_EGREP="$ac_path_EGREP" 4850 ac_path_EGREP_max=$ac_count 4851 fi 4852 # 10*(2^10) chars as input seems more than enough 4853 test $ac_count -gt 10 && break 4854 done 4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4856esac 4857 4858 $ac_path_EGREP_found && break 3 4859 done 4860 done 4861done 4862IFS=$as_save_IFS 4863 if test -z "$ac_cv_path_EGREP"; then 4864 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4865$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4866 { (exit 1); exit 1; }; } 4867 fi 4868else 4869 ac_cv_path_EGREP=$EGREP 4870fi 4871 4872 fi 4873fi 4874{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4875$as_echo "$ac_cv_path_EGREP" >&6; } 4876 EGREP="$ac_cv_path_EGREP" 4877 4878 4879{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4880$as_echo_n "checking for ANSI C header files... " >&6; } 4881if test "${ac_cv_header_stdc+set}" = set; then 4882 $as_echo_n "(cached) " >&6 4883else 4884 cat >conftest.$ac_ext <<_ACEOF 4885/* confdefs.h. */ 4886_ACEOF 4887cat confdefs.h >>conftest.$ac_ext 4888cat >>conftest.$ac_ext <<_ACEOF 4889/* end confdefs.h. */ 4890#include <stdlib.h> 4891#include <stdarg.h> 4892#include <string.h> 4893#include <float.h> 4894 4895int 4896main () 4897{ 4898 4899 ; 4900 return 0; 4901} 4902_ACEOF 4903rm -f conftest.$ac_objext 4904if { (ac_try="$ac_compile" 4905case "(($ac_try" in 4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4907 *) ac_try_echo=$ac_try;; 4908esac 4909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4910$as_echo "$ac_try_echo") >&5 4911 (eval "$ac_compile") 2>conftest.er1 4912 ac_status=$? 4913 grep -v '^ *+' conftest.er1 >conftest.err 4914 rm -f conftest.er1 4915 cat conftest.err >&5 4916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 (exit $ac_status); } && { 4918 test -z "$ac_c_werror_flag" || 4919 test ! -s conftest.err 4920 } && test -s conftest.$ac_objext; then 4921 ac_cv_header_stdc=yes 4922else 4923 $as_echo "$as_me: failed program was:" >&5 4924sed 's/^/| /' conftest.$ac_ext >&5 4925 4926 ac_cv_header_stdc=no 4927fi 4928 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4930 4931if test $ac_cv_header_stdc = yes; then 4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4933 cat >conftest.$ac_ext <<_ACEOF 4934/* confdefs.h. */ 4935_ACEOF 4936cat confdefs.h >>conftest.$ac_ext 4937cat >>conftest.$ac_ext <<_ACEOF 4938/* end confdefs.h. */ 4939#include <string.h> 4940 4941_ACEOF 4942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4943 $EGREP "memchr" >/dev/null 2>&1; then 4944 : 4945else 4946 ac_cv_header_stdc=no 4947fi 4948rm -f conftest* 4949 4950fi 4951 4952if test $ac_cv_header_stdc = yes; then 4953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4954 cat >conftest.$ac_ext <<_ACEOF 4955/* confdefs.h. */ 4956_ACEOF 4957cat confdefs.h >>conftest.$ac_ext 4958cat >>conftest.$ac_ext <<_ACEOF 4959/* end confdefs.h. */ 4960#include <stdlib.h> 4961 4962_ACEOF 4963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4964 $EGREP "free" >/dev/null 2>&1; then 4965 : 4966else 4967 ac_cv_header_stdc=no 4968fi 4969rm -f conftest* 4970 4971fi 4972 4973if test $ac_cv_header_stdc = yes; then 4974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4975 if test "$cross_compiling" = yes; then 4976 : 4977else 4978 cat >conftest.$ac_ext <<_ACEOF 4979/* confdefs.h. */ 4980_ACEOF 4981cat confdefs.h >>conftest.$ac_ext 4982cat >>conftest.$ac_ext <<_ACEOF 4983/* end confdefs.h. */ 4984#include <ctype.h> 4985#include <stdlib.h> 4986#if ((' ' & 0x0FF) == 0x020) 4987# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4988# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4989#else 4990# define ISLOWER(c) \ 4991 (('a' <= (c) && (c) <= 'i') \ 4992 || ('j' <= (c) && (c) <= 'r') \ 4993 || ('s' <= (c) && (c) <= 'z')) 4994# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4995#endif 4996 4997#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4998int 4999main () 5000{ 5001 int i; 5002 for (i = 0; i < 256; i++) 5003 if (XOR (islower (i), ISLOWER (i)) 5004 || toupper (i) != TOUPPER (i)) 5005 return 2; 5006 return 0; 5007} 5008_ACEOF 5009rm -f conftest$ac_exeext 5010if { (ac_try="$ac_link" 5011case "(($ac_try" in 5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5013 *) ac_try_echo=$ac_try;; 5014esac 5015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5016$as_echo "$ac_try_echo") >&5 5017 (eval "$ac_link") 2>&5 5018 ac_status=$? 5019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5021 { (case "(($ac_try" in 5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5023 *) ac_try_echo=$ac_try;; 5024esac 5025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5026$as_echo "$ac_try_echo") >&5 5027 (eval "$ac_try") 2>&5 5028 ac_status=$? 5029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5030 (exit $ac_status); }; }; then 5031 : 5032else 5033 $as_echo "$as_me: program exited with status $ac_status" >&5 5034$as_echo "$as_me: failed program was:" >&5 5035sed 's/^/| /' conftest.$ac_ext >&5 5036 5037( exit $ac_status ) 5038ac_cv_header_stdc=no 5039fi 5040rm -rf conftest.dSYM 5041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5042fi 5043 5044 5045fi 5046fi 5047{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5048$as_echo "$ac_cv_header_stdc" >&6; } 5049if test $ac_cv_header_stdc = yes; then 5050 5051cat >>confdefs.h <<\_ACEOF 5052#define STDC_HEADERS 1 5053_ACEOF 5054 5055fi 5056 5057# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5068 inttypes.h stdint.h unistd.h 5069do 5070as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5071{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5072$as_echo_n "checking for $ac_header... " >&6; } 5073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5074 $as_echo_n "(cached) " >&6 5075else 5076 cat >conftest.$ac_ext <<_ACEOF 5077/* confdefs.h. */ 5078_ACEOF 5079cat confdefs.h >>conftest.$ac_ext 5080cat >>conftest.$ac_ext <<_ACEOF 5081/* end confdefs.h. */ 5082$ac_includes_default 5083 5084#include <$ac_header> 5085_ACEOF 5086rm -f conftest.$ac_objext 5087if { (ac_try="$ac_compile" 5088case "(($ac_try" in 5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5090 *) ac_try_echo=$ac_try;; 5091esac 5092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5093$as_echo "$ac_try_echo") >&5 5094 (eval "$ac_compile") 2>conftest.er1 5095 ac_status=$? 5096 grep -v '^ *+' conftest.er1 >conftest.err 5097 rm -f conftest.er1 5098 cat conftest.err >&5 5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } && { 5101 test -z "$ac_c_werror_flag" || 5102 test ! -s conftest.err 5103 } && test -s conftest.$ac_objext; then 5104 eval "$as_ac_Header=yes" 5105else 5106 $as_echo "$as_me: failed program was:" >&5 5107sed 's/^/| /' conftest.$ac_ext >&5 5108 5109 eval "$as_ac_Header=no" 5110fi 5111 5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5113fi 5114ac_res=`eval 'as_val=${'$as_ac_Header'} 5115 $as_echo "$as_val"'` 5116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5117$as_echo "$ac_res" >&6; } 5118as_val=`eval 'as_val=${'$as_ac_Header'} 5119 $as_echo "$as_val"'` 5120 if test "x$as_val" = x""yes; then 5121 cat >>confdefs.h <<_ACEOF 5122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5123_ACEOF 5124 5125fi 5126 5127done 5128 5129 5130if test "${ac_cv_header_ifdhandler_h+set}" = set; then 5131 { $as_echo "$as_me:$LINENO: checking for ifdhandler.h" >&5 5132$as_echo_n "checking for ifdhandler.h... " >&6; } 5133if test "${ac_cv_header_ifdhandler_h+set}" = set; then 5134 $as_echo_n "(cached) " >&6 5135fi 5136{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ifdhandler_h" >&5 5137$as_echo "$ac_cv_header_ifdhandler_h" >&6; } 5138else 5139 # Is the header compilable? 5140{ $as_echo "$as_me:$LINENO: checking ifdhandler.h usability" >&5 5141$as_echo_n "checking ifdhandler.h usability... " >&6; } 5142cat >conftest.$ac_ext <<_ACEOF 5143/* confdefs.h. */ 5144_ACEOF 5145cat confdefs.h >>conftest.$ac_ext 5146cat >>conftest.$ac_ext <<_ACEOF 5147/* end confdefs.h. */ 5148$ac_includes_default 5149#include <ifdhandler.h> 5150_ACEOF 5151rm -f conftest.$ac_objext 5152if { (ac_try="$ac_compile" 5153case "(($ac_try" in 5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5155 *) ac_try_echo=$ac_try;; 5156esac 5157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5158$as_echo "$ac_try_echo") >&5 5159 (eval "$ac_compile") 2>conftest.er1 5160 ac_status=$? 5161 grep -v '^ *+' conftest.er1 >conftest.err 5162 rm -f conftest.er1 5163 cat conftest.err >&5 5164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5165 (exit $ac_status); } && { 5166 test -z "$ac_c_werror_flag" || 5167 test ! -s conftest.err 5168 } && test -s conftest.$ac_objext; then 5169 ac_header_compiler=yes 5170else 5171 $as_echo "$as_me: failed program was:" >&5 5172sed 's/^/| /' conftest.$ac_ext >&5 5173 5174 ac_header_compiler=no 5175fi 5176 5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5178{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5179$as_echo "$ac_header_compiler" >&6; } 5180 5181# Is the header present? 5182{ $as_echo "$as_me:$LINENO: checking ifdhandler.h presence" >&5 5183$as_echo_n "checking ifdhandler.h presence... " >&6; } 5184cat >conftest.$ac_ext <<_ACEOF 5185/* confdefs.h. */ 5186_ACEOF 5187cat confdefs.h >>conftest.$ac_ext 5188cat >>conftest.$ac_ext <<_ACEOF 5189/* end confdefs.h. */ 5190#include <ifdhandler.h> 5191_ACEOF 5192if { (ac_try="$ac_cpp conftest.$ac_ext" 5193case "(($ac_try" in 5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5195 *) ac_try_echo=$ac_try;; 5196esac 5197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5198$as_echo "$ac_try_echo") >&5 5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5200 ac_status=$? 5201 grep -v '^ *+' conftest.er1 >conftest.err 5202 rm -f conftest.er1 5203 cat conftest.err >&5 5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); } >/dev/null && { 5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5207 test ! -s conftest.err 5208 }; then 5209 ac_header_preproc=yes 5210else 5211 $as_echo "$as_me: failed program was:" >&5 5212sed 's/^/| /' conftest.$ac_ext >&5 5213 5214 ac_header_preproc=no 5215fi 5216 5217rm -f conftest.err conftest.$ac_ext 5218{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5219$as_echo "$ac_header_preproc" >&6; } 5220 5221# So? What about this header? 5222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5223 yes:no: ) 5224 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: accepted by the compiler, rejected by the preprocessor!" >&5 5225$as_echo "$as_me: WARNING: ifdhandler.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5226 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: proceeding with the compiler's result" >&5 5227$as_echo "$as_me: WARNING: ifdhandler.h: proceeding with the compiler's result" >&2;} 5228 ac_header_preproc=yes 5229 ;; 5230 no:yes:* ) 5231 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: present but cannot be compiled" >&5 5232$as_echo "$as_me: WARNING: ifdhandler.h: present but cannot be compiled" >&2;} 5233 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: check for missing prerequisite headers?" >&5 5234$as_echo "$as_me: WARNING: ifdhandler.h: check for missing prerequisite headers?" >&2;} 5235 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: see the Autoconf documentation" >&5 5236$as_echo "$as_me: WARNING: ifdhandler.h: see the Autoconf documentation" >&2;} 5237 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: section \"Present But Cannot Be Compiled\"" >&5 5238$as_echo "$as_me: WARNING: ifdhandler.h: section \"Present But Cannot Be Compiled\"" >&2;} 5239 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: proceeding with the preprocessor's result" >&5 5240$as_echo "$as_me: WARNING: ifdhandler.h: proceeding with the preprocessor's result" >&2;} 5241 { $as_echo "$as_me:$LINENO: WARNING: ifdhandler.h: in the future, the compiler will take precedence" >&5 5242$as_echo "$as_me: WARNING: ifdhandler.h: in the future, the compiler will take precedence" >&2;} 5243 5244 ;; 5245esac 5246{ $as_echo "$as_me:$LINENO: checking for ifdhandler.h" >&5 5247$as_echo_n "checking for ifdhandler.h... " >&6; } 5248if test "${ac_cv_header_ifdhandler_h+set}" = set; then 5249 $as_echo_n "(cached) " >&6 5250else 5251 ac_cv_header_ifdhandler_h=$ac_header_preproc 5252fi 5253{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ifdhandler_h" >&5 5254$as_echo "$ac_cv_header_ifdhandler_h" >&6; } 5255 5256fi 5257if test "x$ac_cv_header_ifdhandler_h" = x""yes; then 5258 : 5259else 5260 { { $as_echo "$as_me:$LINENO: error: ifdhandler.h not found, install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..." >&5 5261$as_echo "$as_me: error: ifdhandler.h not found, install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..." >&2;} 5262 { (exit 1); exit 1; }; } 5263fi 5264 5265 5266{ $as_echo "$as_me:$LINENO: checking whether IFD_NO_SUCH_DEVICE is declared" >&5 5267$as_echo_n "checking whether IFD_NO_SUCH_DEVICE is declared... " >&6; } 5268if test "${ac_cv_have_decl_IFD_NO_SUCH_DEVICE+set}" = set; then 5269 $as_echo_n "(cached) " >&6 5270else 5271 cat >conftest.$ac_ext <<_ACEOF 5272/* confdefs.h. */ 5273_ACEOF 5274cat confdefs.h >>conftest.$ac_ext 5275cat >>conftest.$ac_ext <<_ACEOF 5276/* end confdefs.h. */ 5277#include <ifdhandler.h> 5278 5279int 5280main () 5281{ 5282#ifndef IFD_NO_SUCH_DEVICE 5283 (void) IFD_NO_SUCH_DEVICE; 5284#endif 5285 5286 ; 5287 return 0; 5288} 5289_ACEOF 5290rm -f conftest.$ac_objext 5291if { (ac_try="$ac_compile" 5292case "(($ac_try" in 5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5294 *) ac_try_echo=$ac_try;; 5295esac 5296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5297$as_echo "$ac_try_echo") >&5 5298 (eval "$ac_compile") 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } && { 5305 test -z "$ac_c_werror_flag" || 5306 test ! -s conftest.err 5307 } && test -s conftest.$ac_objext; then 5308 ac_cv_have_decl_IFD_NO_SUCH_DEVICE=yes 5309else 5310 $as_echo "$as_me: failed program was:" >&5 5311sed 's/^/| /' conftest.$ac_ext >&5 5312 5313 ac_cv_have_decl_IFD_NO_SUCH_DEVICE=no 5314fi 5315 5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5317fi 5318{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_IFD_NO_SUCH_DEVICE" >&5 5319$as_echo "$ac_cv_have_decl_IFD_NO_SUCH_DEVICE" >&6; } 5320if test "x$ac_cv_have_decl_IFD_NO_SUCH_DEVICE" = x""yes; then 5321 : 5322else 5323 { { $as_echo "$as_me:$LINENO: error: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5 5324$as_echo "$as_me: error: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;} 5325 { (exit 1); exit 1; }; } 5326fi 5327 5328{ $as_echo "$as_me:$LINENO: checking whether TAG_IFD_POLLING_THREAD is declared" >&5 5329$as_echo_n "checking whether TAG_IFD_POLLING_THREAD is declared... " >&6; } 5330if test "${ac_cv_have_decl_TAG_IFD_POLLING_THREAD+set}" = set; then 5331 $as_echo_n "(cached) " >&6 5332else 5333 cat >conftest.$ac_ext <<_ACEOF 5334/* confdefs.h. */ 5335_ACEOF 5336cat confdefs.h >>conftest.$ac_ext 5337cat >>conftest.$ac_ext <<_ACEOF 5338/* end confdefs.h. */ 5339#include <ifdhandler.h> 5340 5341int 5342main () 5343{ 5344#ifndef TAG_IFD_POLLING_THREAD 5345 (void) TAG_IFD_POLLING_THREAD; 5346#endif 5347 5348 ; 5349 return 0; 5350} 5351_ACEOF 5352rm -f conftest.$ac_objext 5353if { (ac_try="$ac_compile" 5354case "(($ac_try" in 5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5356 *) ac_try_echo=$ac_try;; 5357esac 5358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5359$as_echo "$ac_try_echo") >&5 5360 (eval "$ac_compile") 2>conftest.er1 5361 ac_status=$? 5362 grep -v '^ *+' conftest.er1 >conftest.err 5363 rm -f conftest.er1 5364 cat conftest.err >&5 5365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); } && { 5367 test -z "$ac_c_werror_flag" || 5368 test ! -s conftest.err 5369 } && test -s conftest.$ac_objext; then 5370 ac_cv_have_decl_TAG_IFD_POLLING_THREAD=yes 5371else 5372 $as_echo "$as_me: failed program was:" >&5 5373sed 's/^/| /' conftest.$ac_ext >&5 5374 5375 ac_cv_have_decl_TAG_IFD_POLLING_THREAD=no 5376fi 5377 5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5379fi 5380{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_TAG_IFD_POLLING_THREAD" >&5 5381$as_echo "$ac_cv_have_decl_TAG_IFD_POLLING_THREAD" >&6; } 5382if test "x$ac_cv_have_decl_TAG_IFD_POLLING_THREAD" = x""yes; then 5383 5384cat >>confdefs.h <<_ACEOF 5385#define HAVE_DECL_TAG_IFD_POLLING_THREAD 1 5386_ACEOF 5387 5388 5389else 5390 cat >>confdefs.h <<_ACEOF 5391#define HAVE_DECL_TAG_IFD_POLLING_THREAD 0 5392_ACEOF 5393 5394 5395fi 5396 5397 5398if test "${ac_cv_header_reader_h+set}" = set; then 5399 { $as_echo "$as_me:$LINENO: checking for reader.h" >&5 5400$as_echo_n "checking for reader.h... " >&6; } 5401if test "${ac_cv_header_reader_h+set}" = set; then 5402 $as_echo_n "(cached) " >&6 5403fi 5404{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_reader_h" >&5 5405$as_echo "$ac_cv_header_reader_h" >&6; } 5406else 5407 # Is the header compilable? 5408{ $as_echo "$as_me:$LINENO: checking reader.h usability" >&5 5409$as_echo_n "checking reader.h usability... " >&6; } 5410cat >conftest.$ac_ext <<_ACEOF 5411/* confdefs.h. */ 5412_ACEOF 5413cat confdefs.h >>conftest.$ac_ext 5414cat >>conftest.$ac_ext <<_ACEOF 5415/* end confdefs.h. */ 5416$ac_includes_default 5417#include <reader.h> 5418_ACEOF 5419rm -f conftest.$ac_objext 5420if { (ac_try="$ac_compile" 5421case "(($ac_try" in 5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5423 *) ac_try_echo=$ac_try;; 5424esac 5425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5426$as_echo "$ac_try_echo") >&5 5427 (eval "$ac_compile") 2>conftest.er1 5428 ac_status=$? 5429 grep -v '^ *+' conftest.er1 >conftest.err 5430 rm -f conftest.er1 5431 cat conftest.err >&5 5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); } && { 5434 test -z "$ac_c_werror_flag" || 5435 test ! -s conftest.err 5436 } && test -s conftest.$ac_objext; then 5437 ac_header_compiler=yes 5438else 5439 $as_echo "$as_me: failed program was:" >&5 5440sed 's/^/| /' conftest.$ac_ext >&5 5441 5442 ac_header_compiler=no 5443fi 5444 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5447$as_echo "$ac_header_compiler" >&6; } 5448 5449# Is the header present? 5450{ $as_echo "$as_me:$LINENO: checking reader.h presence" >&5 5451$as_echo_n "checking reader.h presence... " >&6; } 5452cat >conftest.$ac_ext <<_ACEOF 5453/* confdefs.h. */ 5454_ACEOF 5455cat confdefs.h >>conftest.$ac_ext 5456cat >>conftest.$ac_ext <<_ACEOF 5457/* end confdefs.h. */ 5458#include <reader.h> 5459_ACEOF 5460if { (ac_try="$ac_cpp conftest.$ac_ext" 5461case "(($ac_try" in 5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5463 *) ac_try_echo=$ac_try;; 5464esac 5465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5466$as_echo "$ac_try_echo") >&5 5467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5468 ac_status=$? 5469 grep -v '^ *+' conftest.er1 >conftest.err 5470 rm -f conftest.er1 5471 cat conftest.err >&5 5472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5473 (exit $ac_status); } >/dev/null && { 5474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5475 test ! -s conftest.err 5476 }; then 5477 ac_header_preproc=yes 5478else 5479 $as_echo "$as_me: failed program was:" >&5 5480sed 's/^/| /' conftest.$ac_ext >&5 5481 5482 ac_header_preproc=no 5483fi 5484 5485rm -f conftest.err conftest.$ac_ext 5486{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5487$as_echo "$ac_header_preproc" >&6; } 5488 5489# So? What about this header? 5490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5491 yes:no: ) 5492 { $as_echo "$as_me:$LINENO: WARNING: reader.h: accepted by the compiler, rejected by the preprocessor!" >&5 5493$as_echo "$as_me: WARNING: reader.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5494 { $as_echo "$as_me:$LINENO: WARNING: reader.h: proceeding with the compiler's result" >&5 5495$as_echo "$as_me: WARNING: reader.h: proceeding with the compiler's result" >&2;} 5496 ac_header_preproc=yes 5497 ;; 5498 no:yes:* ) 5499 { $as_echo "$as_me:$LINENO: WARNING: reader.h: present but cannot be compiled" >&5 5500$as_echo "$as_me: WARNING: reader.h: present but cannot be compiled" >&2;} 5501 { $as_echo "$as_me:$LINENO: WARNING: reader.h: check for missing prerequisite headers?" >&5 5502$as_echo "$as_me: WARNING: reader.h: check for missing prerequisite headers?" >&2;} 5503 { $as_echo "$as_me:$LINENO: WARNING: reader.h: see the Autoconf documentation" >&5 5504$as_echo "$as_me: WARNING: reader.h: see the Autoconf documentation" >&2;} 5505 { $as_echo "$as_me:$LINENO: WARNING: reader.h: section \"Present But Cannot Be Compiled\"" >&5 5506$as_echo "$as_me: WARNING: reader.h: section \"Present But Cannot Be Compiled\"" >&2;} 5507 { $as_echo "$as_me:$LINENO: WARNING: reader.h: proceeding with the preprocessor's result" >&5 5508$as_echo "$as_me: WARNING: reader.h: proceeding with the preprocessor's result" >&2;} 5509 { $as_echo "$as_me:$LINENO: WARNING: reader.h: in the future, the compiler will take precedence" >&5 5510$as_echo "$as_me: WARNING: reader.h: in the future, the compiler will take precedence" >&2;} 5511 5512 ;; 5513esac 5514{ $as_echo "$as_me:$LINENO: checking for reader.h" >&5 5515$as_echo_n "checking for reader.h... " >&6; } 5516if test "${ac_cv_header_reader_h+set}" = set; then 5517 $as_echo_n "(cached) " >&6 5518else 5519 ac_cv_header_reader_h=$ac_header_preproc 5520fi 5521{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_reader_h" >&5 5522$as_echo "$ac_cv_header_reader_h" >&6; } 5523 5524fi 5525if test "x$ac_cv_header_reader_h" = x""yes; then 5526 : 5527else 5528 { { $as_echo "$as_me:$LINENO: error: reader.h not found, install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..." >&5 5529$as_echo "$as_me: error: reader.h not found, install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..." >&2;} 5530 { (exit 1); exit 1; }; } 5531fi 5532 5533 5534CPPFLAGS="$saved_CPPFLAGS" 5535 5536# Add libtool support. 5537case `pwd` in 5538 *\ * | *\ *) 5539 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5540$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5541esac 5542 5543 5544 5545macro_version='2.2.6' 5546macro_revision='1.3012' 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560ltmain="$ac_aux_dir/ltmain.sh" 5561 5562{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5563$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5564if test "${ac_cv_path_SED+set}" = set; then 5565 $as_echo_n "(cached) " >&6 5566else 5567 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5568 for ac_i in 1 2 3 4 5 6 7; do 5569 ac_script="$ac_script$as_nl$ac_script" 5570 done 5571 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5572 $as_unset ac_script || ac_script= 5573 if test -z "$SED"; then 5574 ac_path_SED_found=false 5575 # Loop through the user's path and test for each of PROGNAME-LIST 5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5577for as_dir in $PATH 5578do 5579 IFS=$as_save_IFS 5580 test -z "$as_dir" && as_dir=. 5581 for ac_prog in sed gsed; do 5582 for ac_exec_ext in '' $ac_executable_extensions; do 5583 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5584 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5585# Check for GNU ac_path_SED and select it if it is found. 5586 # Check for GNU $ac_path_SED 5587case `"$ac_path_SED" --version 2>&1` in 5588*GNU*) 5589 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5590*) 5591 ac_count=0 5592 $as_echo_n 0123456789 >"conftest.in" 5593 while : 5594 do 5595 cat "conftest.in" "conftest.in" >"conftest.tmp" 5596 mv "conftest.tmp" "conftest.in" 5597 cp "conftest.in" "conftest.nl" 5598 $as_echo '' >> "conftest.nl" 5599 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5601 ac_count=`expr $ac_count + 1` 5602 if test $ac_count -gt ${ac_path_SED_max-0}; then 5603 # Best one so far, save it but keep looking for a better one 5604 ac_cv_path_SED="$ac_path_SED" 5605 ac_path_SED_max=$ac_count 5606 fi 5607 # 10*(2^10) chars as input seems more than enough 5608 test $ac_count -gt 10 && break 5609 done 5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5611esac 5612 5613 $ac_path_SED_found && break 3 5614 done 5615 done 5616done 5617IFS=$as_save_IFS 5618 if test -z "$ac_cv_path_SED"; then 5619 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5620$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5621 { (exit 1); exit 1; }; } 5622 fi 5623else 5624 ac_cv_path_SED=$SED 5625fi 5626 5627fi 5628{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5629$as_echo "$ac_cv_path_SED" >&6; } 5630 SED="$ac_cv_path_SED" 5631 rm -f conftest.sed 5632 5633test -z "$SED" && SED=sed 5634Xsed="$SED -e 1s/^X//" 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5647$as_echo_n "checking for fgrep... " >&6; } 5648if test "${ac_cv_path_FGREP+set}" = set; then 5649 $as_echo_n "(cached) " >&6 5650else 5651 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5652 then ac_cv_path_FGREP="$GREP -F" 5653 else 5654 if test -z "$FGREP"; then 5655 ac_path_FGREP_found=false 5656 # Loop through the user's path and test for each of PROGNAME-LIST 5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5659do 5660 IFS=$as_save_IFS 5661 test -z "$as_dir" && as_dir=. 5662 for ac_prog in fgrep; do 5663 for ac_exec_ext in '' $ac_executable_extensions; do 5664 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5665 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5666# Check for GNU ac_path_FGREP and select it if it is found. 5667 # Check for GNU $ac_path_FGREP 5668case `"$ac_path_FGREP" --version 2>&1` in 5669*GNU*) 5670 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5671*) 5672 ac_count=0 5673 $as_echo_n 0123456789 >"conftest.in" 5674 while : 5675 do 5676 cat "conftest.in" "conftest.in" >"conftest.tmp" 5677 mv "conftest.tmp" "conftest.in" 5678 cp "conftest.in" "conftest.nl" 5679 $as_echo 'FGREP' >> "conftest.nl" 5680 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5682 ac_count=`expr $ac_count + 1` 5683 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5684 # Best one so far, save it but keep looking for a better one 5685 ac_cv_path_FGREP="$ac_path_FGREP" 5686 ac_path_FGREP_max=$ac_count 5687 fi 5688 # 10*(2^10) chars as input seems more than enough 5689 test $ac_count -gt 10 && break 5690 done 5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5692esac 5693 5694 $ac_path_FGREP_found && break 3 5695 done 5696 done 5697done 5698IFS=$as_save_IFS 5699 if test -z "$ac_cv_path_FGREP"; then 5700 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5701$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5702 { (exit 1); exit 1; }; } 5703 fi 5704else 5705 ac_cv_path_FGREP=$FGREP 5706fi 5707 5708 fi 5709fi 5710{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5711$as_echo "$ac_cv_path_FGREP" >&6; } 5712 FGREP="$ac_cv_path_FGREP" 5713 5714 5715test -z "$GREP" && GREP=grep 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735# Check whether --with-gnu-ld was given. 5736if test "${with_gnu_ld+set}" = set; then 5737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5738else 5739 with_gnu_ld=no 5740fi 5741 5742ac_prog=ld 5743if test "$GCC" = yes; then 5744 # Check if gcc -print-prog-name=ld gives a path. 5745 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5746$as_echo_n "checking for ld used by $CC... " >&6; } 5747 case $host in 5748 *-*-mingw*) 5749 # gcc leaves a trailing carriage return which upsets mingw 5750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5751 *) 5752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5753 esac 5754 case $ac_prog in 5755 # Accept absolute paths. 5756 [\\/]* | ?:[\\/]*) 5757 re_direlt='/[^/][^/]*/\.\./' 5758 # Canonicalize the pathname of ld 5759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5762 done 5763 test -z "$LD" && LD="$ac_prog" 5764 ;; 5765 "") 5766 # If it fails, then pretend we aren't using GCC. 5767 ac_prog=ld 5768 ;; 5769 *) 5770 # If it is relative, then search for the first ld in PATH. 5771 with_gnu_ld=unknown 5772 ;; 5773 esac 5774elif test "$with_gnu_ld" = yes; then 5775 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5776$as_echo_n "checking for GNU ld... " >&6; } 5777else 5778 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5779$as_echo_n "checking for non-GNU ld... " >&6; } 5780fi 5781if test "${lt_cv_path_LD+set}" = set; then 5782 $as_echo_n "(cached) " >&6 5783else 5784 if test -z "$LD"; then 5785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5786 for ac_dir in $PATH; do 5787 IFS="$lt_save_ifs" 5788 test -z "$ac_dir" && ac_dir=. 5789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5790 lt_cv_path_LD="$ac_dir/$ac_prog" 5791 # Check to see if the program is GNU ld. I'd rather use --version, 5792 # but apparently some variants of GNU ld only accept -v. 5793 # Break only if it was the GNU/non-GNU ld that we prefer. 5794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5795 *GNU* | *'with BFD'*) 5796 test "$with_gnu_ld" != no && break 5797 ;; 5798 *) 5799 test "$with_gnu_ld" != yes && break 5800 ;; 5801 esac 5802 fi 5803 done 5804 IFS="$lt_save_ifs" 5805else 5806 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5807fi 5808fi 5809 5810LD="$lt_cv_path_LD" 5811if test -n "$LD"; then 5812 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5813$as_echo "$LD" >&6; } 5814else 5815 { $as_echo "$as_me:$LINENO: result: no" >&5 5816$as_echo "no" >&6; } 5817fi 5818test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5819$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5820 { (exit 1); exit 1; }; } 5821{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5822$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5823if test "${lt_cv_prog_gnu_ld+set}" = set; then 5824 $as_echo_n "(cached) " >&6 5825else 5826 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5827case `$LD -v 2>&1 </dev/null` in 5828*GNU* | *'with BFD'*) 5829 lt_cv_prog_gnu_ld=yes 5830 ;; 5831*) 5832 lt_cv_prog_gnu_ld=no 5833 ;; 5834esac 5835fi 5836{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5837$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5838with_gnu_ld=$lt_cv_prog_gnu_ld 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5849$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5850if test "${lt_cv_path_NM+set}" = set; then 5851 $as_echo_n "(cached) " >&6 5852else 5853 if test -n "$NM"; then 5854 # Let the user override the test. 5855 lt_cv_path_NM="$NM" 5856else 5857 lt_nm_to_check="${ac_tool_prefix}nm" 5858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5859 lt_nm_to_check="$lt_nm_to_check nm" 5860 fi 5861 for lt_tmp_nm in $lt_nm_to_check; do 5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5863 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5864 IFS="$lt_save_ifs" 5865 test -z "$ac_dir" && ac_dir=. 5866 tmp_nm="$ac_dir/$lt_tmp_nm" 5867 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5868 # Check to see if the nm accepts a BSD-compat flag. 5869 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5870 # nm: unknown option "B" ignored 5871 # Tru64's nm complains that /dev/null is an invalid object file 5872 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5873 */dev/null* | *'Invalid file or object type'*) 5874 lt_cv_path_NM="$tmp_nm -B" 5875 break 5876 ;; 5877 *) 5878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5879 */dev/null*) 5880 lt_cv_path_NM="$tmp_nm -p" 5881 break 5882 ;; 5883 *) 5884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5885 continue # so that we can try to find one that supports BSD flags 5886 ;; 5887 esac 5888 ;; 5889 esac 5890 fi 5891 done 5892 IFS="$lt_save_ifs" 5893 done 5894 : ${lt_cv_path_NM=no} 5895fi 5896fi 5897{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5898$as_echo "$lt_cv_path_NM" >&6; } 5899if test "$lt_cv_path_NM" != "no"; then 5900 NM="$lt_cv_path_NM" 5901else 5902 # Didn't find any BSD compatible name lister, look for dumpbin. 5903 if test -n "$ac_tool_prefix"; then 5904 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5905 do 5906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5909$as_echo_n "checking for $ac_word... " >&6; } 5910if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5911 $as_echo_n "(cached) " >&6 5912else 5913 if test -n "$DUMPBIN"; then 5914 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5915else 5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5917for as_dir in $PATH 5918do 5919 IFS=$as_save_IFS 5920 test -z "$as_dir" && as_dir=. 5921 for ac_exec_ext in '' $ac_executable_extensions; do 5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5923 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5925 break 2 5926 fi 5927done 5928done 5929IFS=$as_save_IFS 5930 5931fi 5932fi 5933DUMPBIN=$ac_cv_prog_DUMPBIN 5934if test -n "$DUMPBIN"; then 5935 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5936$as_echo "$DUMPBIN" >&6; } 5937else 5938 { $as_echo "$as_me:$LINENO: result: no" >&5 5939$as_echo "no" >&6; } 5940fi 5941 5942 5943 test -n "$DUMPBIN" && break 5944 done 5945fi 5946if test -z "$DUMPBIN"; then 5947 ac_ct_DUMPBIN=$DUMPBIN 5948 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5949do 5950 # Extract the first word of "$ac_prog", so it can be a program name with args. 5951set dummy $ac_prog; ac_word=$2 5952{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5953$as_echo_n "checking for $ac_word... " >&6; } 5954if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5955 $as_echo_n "(cached) " >&6 5956else 5957 if test -n "$ac_ct_DUMPBIN"; then 5958 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5959else 5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5961for as_dir in $PATH 5962do 5963 IFS=$as_save_IFS 5964 test -z "$as_dir" && as_dir=. 5965 for ac_exec_ext in '' $ac_executable_extensions; do 5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5967 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5969 break 2 5970 fi 5971done 5972done 5973IFS=$as_save_IFS 5974 5975fi 5976fi 5977ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5978if test -n "$ac_ct_DUMPBIN"; then 5979 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5980$as_echo "$ac_ct_DUMPBIN" >&6; } 5981else 5982 { $as_echo "$as_me:$LINENO: result: no" >&5 5983$as_echo "no" >&6; } 5984fi 5985 5986 5987 test -n "$ac_ct_DUMPBIN" && break 5988done 5989 5990 if test "x$ac_ct_DUMPBIN" = x; then 5991 DUMPBIN=":" 5992 else 5993 case $cross_compiling:$ac_tool_warned in 5994yes:) 5995{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5997ac_tool_warned=yes ;; 5998esac 5999 DUMPBIN=$ac_ct_DUMPBIN 6000 fi 6001fi 6002 6003 6004 if test "$DUMPBIN" != ":"; then 6005 NM="$DUMPBIN" 6006 fi 6007fi 6008test -z "$NM" && NM=nm 6009 6010 6011 6012 6013 6014 6015{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 6016$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6017if test "${lt_cv_nm_interface+set}" = set; then 6018 $as_echo_n "(cached) " >&6 6019else 6020 lt_cv_nm_interface="BSD nm" 6021 echo "int some_variable = 0;" > conftest.$ac_ext 6022 (eval echo "\"\$as_me:6022: $ac_compile\"" >&5) 6023 (eval "$ac_compile" 2>conftest.err) 6024 cat conftest.err >&5 6025 (eval echo "\"\$as_me:6025: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6026 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6027 cat conftest.err >&5 6028 (eval echo "\"\$as_me:6028: output\"" >&5) 6029 cat conftest.out >&5 6030 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6031 lt_cv_nm_interface="MS dumpbin" 6032 fi 6033 rm -f conftest* 6034fi 6035{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 6036$as_echo "$lt_cv_nm_interface" >&6; } 6037 6038# find the maximum length of command line arguments 6039{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6040$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6041if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6042 $as_echo_n "(cached) " >&6 6043else 6044 i=0 6045 teststring="ABCD" 6046 6047 case $build_os in 6048 msdosdjgpp*) 6049 # On DJGPP, this test can blow up pretty badly due to problems in libc 6050 # (any single argument exceeding 2000 bytes causes a buffer overrun 6051 # during glob expansion). Even if it were fixed, the result of this 6052 # check would be larger than it should be. 6053 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6054 ;; 6055 6056 gnu*) 6057 # Under GNU Hurd, this test is not required because there is 6058 # no limit to the length of command line arguments. 6059 # Libtool will interpret -1 as no limit whatsoever 6060 lt_cv_sys_max_cmd_len=-1; 6061 ;; 6062 6063 cygwin* | mingw* | cegcc*) 6064 # On Win9x/ME, this test blows up -- it succeeds, but takes 6065 # about 5 minutes as the teststring grows exponentially. 6066 # Worse, since 9x/ME are not pre-emptively multitasking, 6067 # you end up with a "frozen" computer, even though with patience 6068 # the test eventually succeeds (with a max line length of 256k). 6069 # Instead, let's just punt: use the minimum linelength reported by 6070 # all of the supported platforms: 8192 (on NT/2K/XP). 6071 lt_cv_sys_max_cmd_len=8192; 6072 ;; 6073 6074 amigaos*) 6075 # On AmigaOS with pdksh, this test takes hours, literally. 6076 # So we just punt and use a minimum line length of 8192. 6077 lt_cv_sys_max_cmd_len=8192; 6078 ;; 6079 6080 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6081 # This has been around since 386BSD, at least. Likely further. 6082 if test -x /sbin/sysctl; then 6083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6084 elif test -x /usr/sbin/sysctl; then 6085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6086 else 6087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6088 fi 6089 # And add a safety zone 6090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6092 ;; 6093 6094 interix*) 6095 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6096 lt_cv_sys_max_cmd_len=196608 6097 ;; 6098 6099 osf*) 6100 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6101 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6102 # nice to cause kernel panics so lets avoid the loop below. 6103 # First set a reasonable default. 6104 lt_cv_sys_max_cmd_len=16384 6105 # 6106 if test -x /sbin/sysconfig; then 6107 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6108 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6109 esac 6110 fi 6111 ;; 6112 sco3.2v5*) 6113 lt_cv_sys_max_cmd_len=102400 6114 ;; 6115 sysv5* | sco5v6* | sysv4.2uw2*) 6116 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6117 if test -n "$kargmax"; then 6118 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6119 else 6120 lt_cv_sys_max_cmd_len=32768 6121 fi 6122 ;; 6123 *) 6124 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6125 if test -n "$lt_cv_sys_max_cmd_len"; then 6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6128 else 6129 # Make teststring a little bigger before we do anything with it. 6130 # a 1K string should be a reasonable start. 6131 for i in 1 2 3 4 5 6 7 8 ; do 6132 teststring=$teststring$teststring 6133 done 6134 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6135 # If test is not a shell built-in, we'll probably end up computing a 6136 # maximum length that is only half of the actual maximum length, but 6137 # we can't tell. 6138 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6139 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6140 test $i != 17 # 1/2 MB should be enough 6141 do 6142 i=`expr $i + 1` 6143 teststring=$teststring$teststring 6144 done 6145 # Only check the string length outside the loop. 6146 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6147 teststring= 6148 # Add a significant safety factor because C++ compilers can tack on 6149 # massive amounts of additional arguments before passing them to the 6150 # linker. It appears as though 1/2 is a usable value. 6151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6152 fi 6153 ;; 6154 esac 6155 6156fi 6157 6158if test -n $lt_cv_sys_max_cmd_len ; then 6159 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6160$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6161else 6162 { $as_echo "$as_me:$LINENO: result: none" >&5 6163$as_echo "none" >&6; } 6164fi 6165max_cmd_len=$lt_cv_sys_max_cmd_len 6166 6167 6168 6169 6170 6171 6172: ${CP="cp -f"} 6173: ${MV="mv -f"} 6174: ${RM="rm -f"} 6175 6176{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 6177$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6178# Try some XSI features 6179xsi_shell=no 6180( _lt_dummy="a/b/c" 6181 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6182 = c,a/b,, \ 6183 && eval 'test $(( 1 + 1 )) -eq 2 \ 6184 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6185 && xsi_shell=yes 6186{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 6187$as_echo "$xsi_shell" >&6; } 6188 6189 6190{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 6191$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6192lt_shell_append=no 6193( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6194 >/dev/null 2>&1 \ 6195 && lt_shell_append=yes 6196{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 6197$as_echo "$lt_shell_append" >&6; } 6198 6199 6200if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6201 lt_unset=unset 6202else 6203 lt_unset=false 6204fi 6205 6206 6207 6208 6209 6210# test EBCDIC or ASCII 6211case `echo X|tr X '\101'` in 6212 A) # ASCII based system 6213 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6214 lt_SP2NL='tr \040 \012' 6215 lt_NL2SP='tr \015\012 \040\040' 6216 ;; 6217 *) # EBCDIC based system 6218 lt_SP2NL='tr \100 \n' 6219 lt_NL2SP='tr \r\n \100\100' 6220 ;; 6221esac 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6232$as_echo_n "checking for $LD option to reload object files... " >&6; } 6233if test "${lt_cv_ld_reload_flag+set}" = set; then 6234 $as_echo_n "(cached) " >&6 6235else 6236 lt_cv_ld_reload_flag='-r' 6237fi 6238{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6239$as_echo "$lt_cv_ld_reload_flag" >&6; } 6240reload_flag=$lt_cv_ld_reload_flag 6241case $reload_flag in 6242"" | " "*) ;; 6243*) reload_flag=" $reload_flag" ;; 6244esac 6245reload_cmds='$LD$reload_flag -o $output$reload_objs' 6246case $host_os in 6247 darwin*) 6248 if test "$GCC" = yes; then 6249 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6250 else 6251 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6252 fi 6253 ;; 6254esac 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264if test -n "$ac_tool_prefix"; then 6265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6266set dummy ${ac_tool_prefix}objdump; ac_word=$2 6267{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6268$as_echo_n "checking for $ac_word... " >&6; } 6269if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6270 $as_echo_n "(cached) " >&6 6271else 6272 if test -n "$OBJDUMP"; then 6273 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6274else 6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276for as_dir in $PATH 6277do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6282 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286done 6287done 6288IFS=$as_save_IFS 6289 6290fi 6291fi 6292OBJDUMP=$ac_cv_prog_OBJDUMP 6293if test -n "$OBJDUMP"; then 6294 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6295$as_echo "$OBJDUMP" >&6; } 6296else 6297 { $as_echo "$as_me:$LINENO: result: no" >&5 6298$as_echo "no" >&6; } 6299fi 6300 6301 6302fi 6303if test -z "$ac_cv_prog_OBJDUMP"; then 6304 ac_ct_OBJDUMP=$OBJDUMP 6305 # Extract the first word of "objdump", so it can be a program name with args. 6306set dummy objdump; ac_word=$2 6307{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6308$as_echo_n "checking for $ac_word... " >&6; } 6309if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6310 $as_echo_n "(cached) " >&6 6311else 6312 if test -n "$ac_ct_OBJDUMP"; then 6313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 test -z "$as_dir" && as_dir=. 6320 for ac_exec_ext in '' $ac_executable_extensions; do 6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6322 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6324 break 2 6325 fi 6326done 6327done 6328IFS=$as_save_IFS 6329 6330fi 6331fi 6332ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6333if test -n "$ac_ct_OBJDUMP"; then 6334 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6335$as_echo "$ac_ct_OBJDUMP" >&6; } 6336else 6337 { $as_echo "$as_me:$LINENO: result: no" >&5 6338$as_echo "no" >&6; } 6339fi 6340 6341 if test "x$ac_ct_OBJDUMP" = x; then 6342 OBJDUMP="false" 6343 else 6344 case $cross_compiling:$ac_tool_warned in 6345yes:) 6346{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6348ac_tool_warned=yes ;; 6349esac 6350 OBJDUMP=$ac_ct_OBJDUMP 6351 fi 6352else 6353 OBJDUMP="$ac_cv_prog_OBJDUMP" 6354fi 6355 6356test -z "$OBJDUMP" && OBJDUMP=objdump 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6367$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6368if test "${lt_cv_deplibs_check_method+set}" = set; then 6369 $as_echo_n "(cached) " >&6 6370else 6371 lt_cv_file_magic_cmd='$MAGIC_CMD' 6372lt_cv_file_magic_test_file= 6373lt_cv_deplibs_check_method='unknown' 6374# Need to set the preceding variable on all platforms that support 6375# interlibrary dependencies. 6376# 'none' -- dependencies not supported. 6377# `unknown' -- same as none, but documents that we really don't know. 6378# 'pass_all' -- all dependencies passed with no checks. 6379# 'test_compile' -- check by making test program. 6380# 'file_magic [[regex]]' -- check by looking for files in library path 6381# which responds to the $file_magic_cmd with a given extended regex. 6382# If you have `file' or equivalent on your system and you're not sure 6383# whether `pass_all' will *always* work, you probably want this one. 6384 6385case $host_os in 6386aix[4-9]*) 6387 lt_cv_deplibs_check_method=pass_all 6388 ;; 6389 6390beos*) 6391 lt_cv_deplibs_check_method=pass_all 6392 ;; 6393 6394bsdi[45]*) 6395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6396 lt_cv_file_magic_cmd='/usr/bin/file -L' 6397 lt_cv_file_magic_test_file=/shlib/libc.so 6398 ;; 6399 6400cygwin*) 6401 # func_win32_libid is a shell function defined in ltmain.sh 6402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6403 lt_cv_file_magic_cmd='func_win32_libid' 6404 ;; 6405 6406mingw* | pw32*) 6407 # Base MSYS/MinGW do not provide the 'file' command needed by 6408 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6409 # unless we find 'file', for example because we are cross-compiling. 6410 if ( file / ) >/dev/null 2>&1; then 6411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6412 lt_cv_file_magic_cmd='func_win32_libid' 6413 else 6414 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6415 lt_cv_file_magic_cmd='$OBJDUMP -f' 6416 fi 6417 ;; 6418 6419cegcc) 6420 # use the weaker test based on 'objdump'. See mingw*. 6421 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6422 lt_cv_file_magic_cmd='$OBJDUMP -f' 6423 ;; 6424 6425darwin* | rhapsody*) 6426 lt_cv_deplibs_check_method=pass_all 6427 ;; 6428 6429freebsd* | dragonfly*) 6430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6431 case $host_cpu in 6432 i*86 ) 6433 # Not sure whether the presence of OpenBSD here was a mistake. 6434 # Let's accept both of them until this is cleared up. 6435 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6436 lt_cv_file_magic_cmd=/usr/bin/file 6437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6438 ;; 6439 esac 6440 else 6441 lt_cv_deplibs_check_method=pass_all 6442 fi 6443 ;; 6444 6445gnu*) 6446 lt_cv_deplibs_check_method=pass_all 6447 ;; 6448 6449hpux10.20* | hpux11*) 6450 lt_cv_file_magic_cmd=/usr/bin/file 6451 case $host_cpu in 6452 ia64*) 6453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6454 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6455 ;; 6456 hppa*64*) 6457 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]' 6458 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6459 ;; 6460 *) 6461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6462 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6463 ;; 6464 esac 6465 ;; 6466 6467interix[3-9]*) 6468 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6470 ;; 6471 6472irix5* | irix6* | nonstopux*) 6473 case $LD in 6474 *-32|*"-32 ") libmagic=32-bit;; 6475 *-n32|*"-n32 ") libmagic=N32;; 6476 *-64|*"-64 ") libmagic=64-bit;; 6477 *) libmagic=never-match;; 6478 esac 6479 lt_cv_deplibs_check_method=pass_all 6480 ;; 6481 6482# This must be Linux ELF. 6483linux* | k*bsd*-gnu) 6484 lt_cv_deplibs_check_method=pass_all 6485 ;; 6486 6487netbsd* | netbsdelf*-gnu) 6488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6490 else 6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6492 fi 6493 ;; 6494 6495newos6*) 6496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6497 lt_cv_file_magic_cmd=/usr/bin/file 6498 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6499 ;; 6500 6501*nto* | *qnx*) 6502 lt_cv_deplibs_check_method=pass_all 6503 ;; 6504 6505openbsd*) 6506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6508 else 6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6510 fi 6511 ;; 6512 6513osf3* | osf4* | osf5*) 6514 lt_cv_deplibs_check_method=pass_all 6515 ;; 6516 6517rdos*) 6518 lt_cv_deplibs_check_method=pass_all 6519 ;; 6520 6521solaris*) 6522 lt_cv_deplibs_check_method=pass_all 6523 ;; 6524 6525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6526 lt_cv_deplibs_check_method=pass_all 6527 ;; 6528 6529sysv4 | sysv4.3*) 6530 case $host_vendor in 6531 motorola) 6532 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]' 6533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6534 ;; 6535 ncr) 6536 lt_cv_deplibs_check_method=pass_all 6537 ;; 6538 sequent) 6539 lt_cv_file_magic_cmd='/bin/file' 6540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6541 ;; 6542 sni) 6543 lt_cv_file_magic_cmd='/bin/file' 6544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6545 lt_cv_file_magic_test_file=/lib/libc.so 6546 ;; 6547 siemens) 6548 lt_cv_deplibs_check_method=pass_all 6549 ;; 6550 pc) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553 esac 6554 ;; 6555 6556tpf*) 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559esac 6560 6561fi 6562{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6563$as_echo "$lt_cv_deplibs_check_method" >&6; } 6564file_magic_cmd=$lt_cv_file_magic_cmd 6565deplibs_check_method=$lt_cv_deplibs_check_method 6566test -z "$deplibs_check_method" && deplibs_check_method=unknown 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579if test -n "$ac_tool_prefix"; then 6580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6581set dummy ${ac_tool_prefix}ar; ac_word=$2 6582{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6583$as_echo_n "checking for $ac_word... " >&6; } 6584if test "${ac_cv_prog_AR+set}" = set; then 6585 $as_echo_n "(cached) " >&6 6586else 6587 if test -n "$AR"; then 6588 ac_cv_prog_AR="$AR" # Let the user override the test. 6589else 6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6591for as_dir in $PATH 6592do 6593 IFS=$as_save_IFS 6594 test -z "$as_dir" && as_dir=. 6595 for ac_exec_ext in '' $ac_executable_extensions; do 6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6597 ac_cv_prog_AR="${ac_tool_prefix}ar" 6598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6599 break 2 6600 fi 6601done 6602done 6603IFS=$as_save_IFS 6604 6605fi 6606fi 6607AR=$ac_cv_prog_AR 6608if test -n "$AR"; then 6609 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6610$as_echo "$AR" >&6; } 6611else 6612 { $as_echo "$as_me:$LINENO: result: no" >&5 6613$as_echo "no" >&6; } 6614fi 6615 6616 6617fi 6618if test -z "$ac_cv_prog_AR"; then 6619 ac_ct_AR=$AR 6620 # Extract the first word of "ar", so it can be a program name with args. 6621set dummy ar; ac_word=$2 6622{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6623$as_echo_n "checking for $ac_word... " >&6; } 6624if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6625 $as_echo_n "(cached) " >&6 6626else 6627 if test -n "$ac_ct_AR"; then 6628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6637 ac_cv_prog_ac_ct_AR="ar" 6638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647ac_ct_AR=$ac_cv_prog_ac_ct_AR 6648if test -n "$ac_ct_AR"; then 6649 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6650$as_echo "$ac_ct_AR" >&6; } 6651else 6652 { $as_echo "$as_me:$LINENO: result: no" >&5 6653$as_echo "no" >&6; } 6654fi 6655 6656 if test "x$ac_ct_AR" = x; then 6657 AR="false" 6658 else 6659 case $cross_compiling:$ac_tool_warned in 6660yes:) 6661{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6663ac_tool_warned=yes ;; 6664esac 6665 AR=$ac_ct_AR 6666 fi 6667else 6668 AR="$ac_cv_prog_AR" 6669fi 6670 6671test -z "$AR" && AR=ar 6672test -z "$AR_FLAGS" && AR_FLAGS=cru 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684if test -n "$ac_tool_prefix"; then 6685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6686set dummy ${ac_tool_prefix}strip; ac_word=$2 6687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if test "${ac_cv_prog_STRIP+set}" = set; then 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$STRIP"; then 6693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6702 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712STRIP=$ac_cv_prog_STRIP 6713if test -n "$STRIP"; then 6714 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6715$as_echo "$STRIP" >&6; } 6716else 6717 { $as_echo "$as_me:$LINENO: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 6722fi 6723if test -z "$ac_cv_prog_STRIP"; then 6724 ac_ct_STRIP=$STRIP 6725 # Extract the first word of "strip", so it can be a program name with args. 6726set dummy strip; ac_word=$2 6727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6728$as_echo_n "checking for $ac_word... " >&6; } 6729if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6730 $as_echo_n "(cached) " >&6 6731else 6732 if test -n "$ac_ct_STRIP"; then 6733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6742 ac_cv_prog_ac_ct_STRIP="strip" 6743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747done 6748IFS=$as_save_IFS 6749 6750fi 6751fi 6752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6753if test -n "$ac_ct_STRIP"; then 6754 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6755$as_echo "$ac_ct_STRIP" >&6; } 6756else 6757 { $as_echo "$as_me:$LINENO: result: no" >&5 6758$as_echo "no" >&6; } 6759fi 6760 6761 if test "x$ac_ct_STRIP" = x; then 6762 STRIP=":" 6763 else 6764 case $cross_compiling:$ac_tool_warned in 6765yes:) 6766{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6768ac_tool_warned=yes ;; 6769esac 6770 STRIP=$ac_ct_STRIP 6771 fi 6772else 6773 STRIP="$ac_cv_prog_STRIP" 6774fi 6775 6776test -z "$STRIP" && STRIP=: 6777 6778 6779 6780 6781 6782 6783if test -n "$ac_tool_prefix"; then 6784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6785set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6787$as_echo_n "checking for $ac_word... " >&6; } 6788if test "${ac_cv_prog_RANLIB+set}" = set; then 6789 $as_echo_n "(cached) " >&6 6790else 6791 if test -n "$RANLIB"; then 6792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6793else 6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806done 6807IFS=$as_save_IFS 6808 6809fi 6810fi 6811RANLIB=$ac_cv_prog_RANLIB 6812if test -n "$RANLIB"; then 6813 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6814$as_echo "$RANLIB" >&6; } 6815else 6816 { $as_echo "$as_me:$LINENO: result: no" >&5 6817$as_echo "no" >&6; } 6818fi 6819 6820 6821fi 6822if test -z "$ac_cv_prog_RANLIB"; then 6823 ac_ct_RANLIB=$RANLIB 6824 # Extract the first word of "ranlib", so it can be a program name with args. 6825set dummy ranlib; ac_word=$2 6826{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6827$as_echo_n "checking for $ac_word... " >&6; } 6828if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6829 $as_echo_n "(cached) " >&6 6830else 6831 if test -n "$ac_ct_RANLIB"; then 6832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6833else 6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6835for as_dir in $PATH 6836do 6837 IFS=$as_save_IFS 6838 test -z "$as_dir" && as_dir=. 6839 for ac_exec_ext in '' $ac_executable_extensions; do 6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6841 ac_cv_prog_ac_ct_RANLIB="ranlib" 6842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6843 break 2 6844 fi 6845done 6846done 6847IFS=$as_save_IFS 6848 6849fi 6850fi 6851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6852if test -n "$ac_ct_RANLIB"; then 6853 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6854$as_echo "$ac_ct_RANLIB" >&6; } 6855else 6856 { $as_echo "$as_me:$LINENO: result: no" >&5 6857$as_echo "no" >&6; } 6858fi 6859 6860 if test "x$ac_ct_RANLIB" = x; then 6861 RANLIB=":" 6862 else 6863 case $cross_compiling:$ac_tool_warned in 6864yes:) 6865{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6867ac_tool_warned=yes ;; 6868esac 6869 RANLIB=$ac_ct_RANLIB 6870 fi 6871else 6872 RANLIB="$ac_cv_prog_RANLIB" 6873fi 6874 6875test -z "$RANLIB" && RANLIB=: 6876 6877 6878 6879 6880 6881 6882# Determine commands to create old-style static archives. 6883old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6884old_postinstall_cmds='chmod 644 $oldlib' 6885old_postuninstall_cmds= 6886 6887if test -n "$RANLIB"; then 6888 case $host_os in 6889 openbsd*) 6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6891 ;; 6892 *) 6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6894 ;; 6895 esac 6896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6897fi 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932# If no C compiler was specified, use CC. 6933LTCC=${LTCC-"$CC"} 6934 6935# If no C compiler flags were specified, use CFLAGS. 6936LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6937 6938# Allow CC to be a program name with arguments. 6939compiler=$CC 6940 6941 6942# Check for command to grab the raw symbol name followed by C symbol from nm. 6943{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6944$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6945if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6946 $as_echo_n "(cached) " >&6 6947else 6948 6949# These are sane defaults that work on at least a few old systems. 6950# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6951 6952# Character class describing NM global symbol codes. 6953symcode='[BCDEGRST]' 6954 6955# Regexp to match symbols that can be accessed directly from C. 6956sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6957 6958# Define system-specific variables. 6959case $host_os in 6960aix*) 6961 symcode='[BCDT]' 6962 ;; 6963cygwin* | mingw* | pw32* | cegcc*) 6964 symcode='[ABCDGISTW]' 6965 ;; 6966hpux*) 6967 if test "$host_cpu" = ia64; then 6968 symcode='[ABCDEGRST]' 6969 fi 6970 ;; 6971irix* | nonstopux*) 6972 symcode='[BCDEGRST]' 6973 ;; 6974osf*) 6975 symcode='[BCDEGQRST]' 6976 ;; 6977solaris*) 6978 symcode='[BDRT]' 6979 ;; 6980sco3.2v5*) 6981 symcode='[DT]' 6982 ;; 6983sysv4.2uw2*) 6984 symcode='[DT]' 6985 ;; 6986sysv5* | sco5v6* | unixware* | OpenUNIX*) 6987 symcode='[ABDT]' 6988 ;; 6989sysv4) 6990 symcode='[DFNSTU]' 6991 ;; 6992esac 6993 6994# If we're using GNU nm, then use its standard symbol codes. 6995case `$NM -V 2>&1` in 6996*GNU* | *'with BFD'*) 6997 symcode='[ABCDGIRSTW]' ;; 6998esac 6999 7000# Transform an extracted symbol line into a proper C declaration. 7001# Some systems (esp. on ia64) link data and code symbols differently, 7002# so use this general approach. 7003lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7004 7005# Transform an extracted symbol line into symbol name and symbol address 7006lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7007lt_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'" 7008 7009# Handle CRLF in mingw tool chain 7010opt_cr= 7011case $build_os in 7012mingw*) 7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7014 ;; 7015esac 7016 7017# Try without a prefix underscore, then with it. 7018for ac_symprfx in "" "_"; do 7019 7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7021 symxfrm="\\1 $ac_symprfx\\2 \\2" 7022 7023 # Write the raw and C identifiers. 7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7025 # Fake it for dumpbin and say T for any non-static function 7026 # and D for any global variable. 7027 # Also find C++ and __fastcall symbols from MSVC++, 7028 # which start with @ or ?. 7029 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7030" {last_section=section; section=\$ 3};"\ 7031" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7032" \$ 0!~/External *\|/{next};"\ 7033" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7034" {if(hide[section]) next};"\ 7035" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7036" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7037" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7038" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7039" ' prfx=^$ac_symprfx" 7040 else 7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7042 fi 7043 7044 # Check to see that the pipe works correctly. 7045 pipe_works=no 7046 7047 rm -f conftest* 7048 cat > conftest.$ac_ext <<_LT_EOF 7049#ifdef __cplusplus 7050extern "C" { 7051#endif 7052char nm_test_var; 7053void nm_test_func(void); 7054void nm_test_func(void){} 7055#ifdef __cplusplus 7056} 7057#endif 7058int main(){nm_test_var='a';nm_test_func();return(0);} 7059_LT_EOF 7060 7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7062 (eval $ac_compile) 2>&5 7063 ac_status=$? 7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 (exit $ac_status); }; then 7066 # Now try to grab the symbols. 7067 nlist=conftest.nm 7068 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7069 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7070 ac_status=$? 7071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7072 (exit $ac_status); } && test -s "$nlist"; then 7073 # Try sorting and uniquifying the output. 7074 if sort "$nlist" | uniq > "$nlist"T; then 7075 mv -f "$nlist"T "$nlist" 7076 else 7077 rm -f "$nlist"T 7078 fi 7079 7080 # Make sure that we snagged all the symbols we need. 7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7083 cat <<_LT_EOF > conftest.$ac_ext 7084#ifdef __cplusplus 7085extern "C" { 7086#endif 7087 7088_LT_EOF 7089 # Now generate the symbol file. 7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7091 7092 cat <<_LT_EOF >> conftest.$ac_ext 7093 7094/* The mapping between symbol names and symbols. */ 7095const struct { 7096 const char *name; 7097 void *address; 7098} 7099lt__PROGRAM__LTX_preloaded_symbols[] = 7100{ 7101 { "@PROGRAM@", (void *) 0 }, 7102_LT_EOF 7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7104 cat <<\_LT_EOF >> conftest.$ac_ext 7105 {0, (void *) 0} 7106}; 7107 7108/* This works around a problem in FreeBSD linker */ 7109#ifdef FREEBSD_WORKAROUND 7110static const void *lt_preloaded_setup() { 7111 return lt__PROGRAM__LTX_preloaded_symbols; 7112} 7113#endif 7114 7115#ifdef __cplusplus 7116} 7117#endif 7118_LT_EOF 7119 # Now try linking the two files. 7120 mv conftest.$ac_objext conftstm.$ac_objext 7121 lt_save_LIBS="$LIBS" 7122 lt_save_CFLAGS="$CFLAGS" 7123 LIBS="conftstm.$ac_objext" 7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7126 (eval $ac_link) 2>&5 7127 ac_status=$? 7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7129 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7130 pipe_works=yes 7131 fi 7132 LIBS="$lt_save_LIBS" 7133 CFLAGS="$lt_save_CFLAGS" 7134 else 7135 echo "cannot find nm_test_func in $nlist" >&5 7136 fi 7137 else 7138 echo "cannot find nm_test_var in $nlist" >&5 7139 fi 7140 else 7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7142 fi 7143 else 7144 echo "$progname: failed program was:" >&5 7145 cat conftest.$ac_ext >&5 7146 fi 7147 rm -rf conftest* conftst* 7148 7149 # Do not use the global_symbol_pipe unless it works. 7150 if test "$pipe_works" = yes; then 7151 break 7152 else 7153 lt_cv_sys_global_symbol_pipe= 7154 fi 7155done 7156 7157fi 7158 7159if test -z "$lt_cv_sys_global_symbol_pipe"; then 7160 lt_cv_sys_global_symbol_to_cdecl= 7161fi 7162if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7163 { $as_echo "$as_me:$LINENO: result: failed" >&5 7164$as_echo "failed" >&6; } 7165else 7166 { $as_echo "$as_me:$LINENO: result: ok" >&5 7167$as_echo "ok" >&6; } 7168fi 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191# Check whether --enable-libtool-lock was given. 7192if test "${enable_libtool_lock+set}" = set; then 7193 enableval=$enable_libtool_lock; 7194fi 7195 7196test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7197 7198# Some flags need to be propagated to the compiler or linker for good 7199# libtool support. 7200case $host in 7201ia64-*-hpux*) 7202 # Find out which ABI we are using. 7203 echo 'int i;' > conftest.$ac_ext 7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7205 (eval $ac_compile) 2>&5 7206 ac_status=$? 7207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7208 (exit $ac_status); }; then 7209 case `/usr/bin/file conftest.$ac_objext` in 7210 *ELF-32*) 7211 HPUX_IA64_MODE="32" 7212 ;; 7213 *ELF-64*) 7214 HPUX_IA64_MODE="64" 7215 ;; 7216 esac 7217 fi 7218 rm -rf conftest* 7219 ;; 7220*-*-irix6*) 7221 # Find out which ABI we are using. 7222 echo '#line 7222 "configure"' > conftest.$ac_ext 7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7224 (eval $ac_compile) 2>&5 7225 ac_status=$? 7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7227 (exit $ac_status); }; then 7228 if test "$lt_cv_prog_gnu_ld" = yes; then 7229 case `/usr/bin/file conftest.$ac_objext` in 7230 *32-bit*) 7231 LD="${LD-ld} -melf32bsmip" 7232 ;; 7233 *N32*) 7234 LD="${LD-ld} -melf32bmipn32" 7235 ;; 7236 *64-bit*) 7237 LD="${LD-ld} -melf64bmip" 7238 ;; 7239 esac 7240 else 7241 case `/usr/bin/file conftest.$ac_objext` in 7242 *32-bit*) 7243 LD="${LD-ld} -32" 7244 ;; 7245 *N32*) 7246 LD="${LD-ld} -n32" 7247 ;; 7248 *64-bit*) 7249 LD="${LD-ld} -64" 7250 ;; 7251 esac 7252 fi 7253 fi 7254 rm -rf conftest* 7255 ;; 7256 7257x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7258s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7259 # Find out which ABI we are using. 7260 echo 'int i;' > conftest.$ac_ext 7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7262 (eval $ac_compile) 2>&5 7263 ac_status=$? 7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7265 (exit $ac_status); }; then 7266 case `/usr/bin/file conftest.o` in 7267 *32-bit*) 7268 case $host in 7269 x86_64-*kfreebsd*-gnu) 7270 LD="${LD-ld} -m elf_i386_fbsd" 7271 ;; 7272 x86_64-*linux*) 7273 LD="${LD-ld} -m elf_i386" 7274 ;; 7275 ppc64-*linux*|powerpc64-*linux*) 7276 LD="${LD-ld} -m elf32ppclinux" 7277 ;; 7278 s390x-*linux*) 7279 LD="${LD-ld} -m elf_s390" 7280 ;; 7281 sparc64-*linux*) 7282 LD="${LD-ld} -m elf32_sparc" 7283 ;; 7284 esac 7285 ;; 7286 *64-bit*) 7287 case $host in 7288 x86_64-*kfreebsd*-gnu) 7289 LD="${LD-ld} -m elf_x86_64_fbsd" 7290 ;; 7291 x86_64-*linux*) 7292 LD="${LD-ld} -m elf_x86_64" 7293 ;; 7294 ppc*-*linux*|powerpc*-*linux*) 7295 LD="${LD-ld} -m elf64ppc" 7296 ;; 7297 s390*-*linux*|s390*-*tpf*) 7298 LD="${LD-ld} -m elf64_s390" 7299 ;; 7300 sparc*-*linux*) 7301 LD="${LD-ld} -m elf64_sparc" 7302 ;; 7303 esac 7304 ;; 7305 esac 7306 fi 7307 rm -rf conftest* 7308 ;; 7309 7310*-*-sco3.2v5*) 7311 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7312 SAVE_CFLAGS="$CFLAGS" 7313 CFLAGS="$CFLAGS -belf" 7314 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7315$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7316if test "${lt_cv_cc_needs_belf+set}" = set; then 7317 $as_echo_n "(cached) " >&6 7318else 7319 ac_ext=c 7320ac_cpp='$CPP $CPPFLAGS' 7321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7323ac_compiler_gnu=$ac_cv_c_compiler_gnu 7324 7325 cat >conftest.$ac_ext <<_ACEOF 7326/* confdefs.h. */ 7327_ACEOF 7328cat confdefs.h >>conftest.$ac_ext 7329cat >>conftest.$ac_ext <<_ACEOF 7330/* end confdefs.h. */ 7331 7332int 7333main () 7334{ 7335 7336 ; 7337 return 0; 7338} 7339_ACEOF 7340rm -f conftest.$ac_objext conftest$ac_exeext 7341if { (ac_try="$ac_link" 7342case "(($ac_try" in 7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7344 *) ac_try_echo=$ac_try;; 7345esac 7346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7347$as_echo "$ac_try_echo") >&5 7348 (eval "$ac_link") 2>conftest.er1 7349 ac_status=$? 7350 grep -v '^ *+' conftest.er1 >conftest.err 7351 rm -f conftest.er1 7352 cat conftest.err >&5 7353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7354 (exit $ac_status); } && { 7355 test -z "$ac_c_werror_flag" || 7356 test ! -s conftest.err 7357 } && test -s conftest$ac_exeext && { 7358 test "$cross_compiling" = yes || 7359 $as_test_x conftest$ac_exeext 7360 }; then 7361 lt_cv_cc_needs_belf=yes 7362else 7363 $as_echo "$as_me: failed program was:" >&5 7364sed 's/^/| /' conftest.$ac_ext >&5 7365 7366 lt_cv_cc_needs_belf=no 7367fi 7368 7369rm -rf conftest.dSYM 7370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7371 conftest$ac_exeext conftest.$ac_ext 7372 ac_ext=c 7373ac_cpp='$CPP $CPPFLAGS' 7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7376ac_compiler_gnu=$ac_cv_c_compiler_gnu 7377 7378fi 7379{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7380$as_echo "$lt_cv_cc_needs_belf" >&6; } 7381 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7382 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7383 CFLAGS="$SAVE_CFLAGS" 7384 fi 7385 ;; 7386sparc*-*solaris*) 7387 # Find out which ABI we are using. 7388 echo 'int i;' > conftest.$ac_ext 7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7390 (eval $ac_compile) 2>&5 7391 ac_status=$? 7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7393 (exit $ac_status); }; then 7394 case `/usr/bin/file conftest.o` in 7395 *64-bit*) 7396 case $lt_cv_prog_gnu_ld in 7397 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7398 *) 7399 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7400 LD="${LD-ld} -64" 7401 fi 7402 ;; 7403 esac 7404 ;; 7405 esac 7406 fi 7407 rm -rf conftest* 7408 ;; 7409esac 7410 7411need_locks="$enable_libtool_lock" 7412 7413 7414 case $host_os in 7415 rhapsody* | darwin*) 7416 if test -n "$ac_tool_prefix"; then 7417 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7418set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7420$as_echo_n "checking for $ac_word... " >&6; } 7421if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7422 $as_echo_n "(cached) " >&6 7423else 7424 if test -n "$DSYMUTIL"; then 7425 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7426else 7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7428for as_dir in $PATH 7429do 7430 IFS=$as_save_IFS 7431 test -z "$as_dir" && as_dir=. 7432 for ac_exec_ext in '' $ac_executable_extensions; do 7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7434 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7436 break 2 7437 fi 7438done 7439done 7440IFS=$as_save_IFS 7441 7442fi 7443fi 7444DSYMUTIL=$ac_cv_prog_DSYMUTIL 7445if test -n "$DSYMUTIL"; then 7446 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7447$as_echo "$DSYMUTIL" >&6; } 7448else 7449 { $as_echo "$as_me:$LINENO: result: no" >&5 7450$as_echo "no" >&6; } 7451fi 7452 7453 7454fi 7455if test -z "$ac_cv_prog_DSYMUTIL"; then 7456 ac_ct_DSYMUTIL=$DSYMUTIL 7457 # Extract the first word of "dsymutil", so it can be a program name with args. 7458set dummy dsymutil; ac_word=$2 7459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7460$as_echo_n "checking for $ac_word... " >&6; } 7461if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7462 $as_echo_n "(cached) " >&6 7463else 7464 if test -n "$ac_ct_DSYMUTIL"; then 7465 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7466else 7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7468for as_dir in $PATH 7469do 7470 IFS=$as_save_IFS 7471 test -z "$as_dir" && as_dir=. 7472 for ac_exec_ext in '' $ac_executable_extensions; do 7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7474 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7476 break 2 7477 fi 7478done 7479done 7480IFS=$as_save_IFS 7481 7482fi 7483fi 7484ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7485if test -n "$ac_ct_DSYMUTIL"; then 7486 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7487$as_echo "$ac_ct_DSYMUTIL" >&6; } 7488else 7489 { $as_echo "$as_me:$LINENO: result: no" >&5 7490$as_echo "no" >&6; } 7491fi 7492 7493 if test "x$ac_ct_DSYMUTIL" = x; then 7494 DSYMUTIL=":" 7495 else 7496 case $cross_compiling:$ac_tool_warned in 7497yes:) 7498{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7500ac_tool_warned=yes ;; 7501esac 7502 DSYMUTIL=$ac_ct_DSYMUTIL 7503 fi 7504else 7505 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7506fi 7507 7508 if test -n "$ac_tool_prefix"; then 7509 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7510set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7512$as_echo_n "checking for $ac_word... " >&6; } 7513if test "${ac_cv_prog_NMEDIT+set}" = set; then 7514 $as_echo_n "(cached) " >&6 7515else 7516 if test -n "$NMEDIT"; then 7517 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7518else 7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520for as_dir in $PATH 7521do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7526 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530done 7531done 7532IFS=$as_save_IFS 7533 7534fi 7535fi 7536NMEDIT=$ac_cv_prog_NMEDIT 7537if test -n "$NMEDIT"; then 7538 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7539$as_echo "$NMEDIT" >&6; } 7540else 7541 { $as_echo "$as_me:$LINENO: result: no" >&5 7542$as_echo "no" >&6; } 7543fi 7544 7545 7546fi 7547if test -z "$ac_cv_prog_NMEDIT"; then 7548 ac_ct_NMEDIT=$NMEDIT 7549 # Extract the first word of "nmedit", so it can be a program name with args. 7550set dummy nmedit; ac_word=$2 7551{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7552$as_echo_n "checking for $ac_word... " >&6; } 7553if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7554 $as_echo_n "(cached) " >&6 7555else 7556 if test -n "$ac_ct_NMEDIT"; then 7557 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7558else 7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7560for as_dir in $PATH 7561do 7562 IFS=$as_save_IFS 7563 test -z "$as_dir" && as_dir=. 7564 for ac_exec_ext in '' $ac_executable_extensions; do 7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7566 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7568 break 2 7569 fi 7570done 7571done 7572IFS=$as_save_IFS 7573 7574fi 7575fi 7576ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7577if test -n "$ac_ct_NMEDIT"; then 7578 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7579$as_echo "$ac_ct_NMEDIT" >&6; } 7580else 7581 { $as_echo "$as_me:$LINENO: result: no" >&5 7582$as_echo "no" >&6; } 7583fi 7584 7585 if test "x$ac_ct_NMEDIT" = x; then 7586 NMEDIT=":" 7587 else 7588 case $cross_compiling:$ac_tool_warned in 7589yes:) 7590{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7592ac_tool_warned=yes ;; 7593esac 7594 NMEDIT=$ac_ct_NMEDIT 7595 fi 7596else 7597 NMEDIT="$ac_cv_prog_NMEDIT" 7598fi 7599 7600 if test -n "$ac_tool_prefix"; then 7601 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7602set dummy ${ac_tool_prefix}lipo; ac_word=$2 7603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if test "${ac_cv_prog_LIPO+set}" = set; then 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$LIPO"; then 7609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7618 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628LIPO=$ac_cv_prog_LIPO 7629if test -n "$LIPO"; then 7630 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7631$as_echo "$LIPO" >&6; } 7632else 7633 { $as_echo "$as_me:$LINENO: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 7638fi 7639if test -z "$ac_cv_prog_LIPO"; then 7640 ac_ct_LIPO=$LIPO 7641 # Extract the first word of "lipo", so it can be a program name with args. 7642set dummy lipo; ac_word=$2 7643{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7644$as_echo_n "checking for $ac_word... " >&6; } 7645if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7646 $as_echo_n "(cached) " >&6 7647else 7648 if test -n "$ac_ct_LIPO"; then 7649 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7650else 7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7652for as_dir in $PATH 7653do 7654 IFS=$as_save_IFS 7655 test -z "$as_dir" && as_dir=. 7656 for ac_exec_ext in '' $ac_executable_extensions; do 7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7658 ac_cv_prog_ac_ct_LIPO="lipo" 7659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7660 break 2 7661 fi 7662done 7663done 7664IFS=$as_save_IFS 7665 7666fi 7667fi 7668ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7669if test -n "$ac_ct_LIPO"; then 7670 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7671$as_echo "$ac_ct_LIPO" >&6; } 7672else 7673 { $as_echo "$as_me:$LINENO: result: no" >&5 7674$as_echo "no" >&6; } 7675fi 7676 7677 if test "x$ac_ct_LIPO" = x; then 7678 LIPO=":" 7679 else 7680 case $cross_compiling:$ac_tool_warned in 7681yes:) 7682{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7684ac_tool_warned=yes ;; 7685esac 7686 LIPO=$ac_ct_LIPO 7687 fi 7688else 7689 LIPO="$ac_cv_prog_LIPO" 7690fi 7691 7692 if test -n "$ac_tool_prefix"; then 7693 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7694set dummy ${ac_tool_prefix}otool; ac_word=$2 7695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7696$as_echo_n "checking for $ac_word... " >&6; } 7697if test "${ac_cv_prog_OTOOL+set}" = set; then 7698 $as_echo_n "(cached) " >&6 7699else 7700 if test -n "$OTOOL"; then 7701 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7702else 7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704for as_dir in $PATH 7705do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7710 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714done 7715done 7716IFS=$as_save_IFS 7717 7718fi 7719fi 7720OTOOL=$ac_cv_prog_OTOOL 7721if test -n "$OTOOL"; then 7722 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7723$as_echo "$OTOOL" >&6; } 7724else 7725 { $as_echo "$as_me:$LINENO: result: no" >&5 7726$as_echo "no" >&6; } 7727fi 7728 7729 7730fi 7731if test -z "$ac_cv_prog_OTOOL"; then 7732 ac_ct_OTOOL=$OTOOL 7733 # Extract the first word of "otool", so it can be a program name with args. 7734set dummy otool; ac_word=$2 7735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$ac_ct_OTOOL"; then 7741 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7750 ac_cv_prog_ac_ct_OTOOL="otool" 7751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7761if test -n "$ac_ct_OTOOL"; then 7762 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7763$as_echo "$ac_ct_OTOOL" >&6; } 7764else 7765 { $as_echo "$as_me:$LINENO: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 if test "x$ac_ct_OTOOL" = x; then 7770 OTOOL=":" 7771 else 7772 case $cross_compiling:$ac_tool_warned in 7773yes:) 7774{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7776ac_tool_warned=yes ;; 7777esac 7778 OTOOL=$ac_ct_OTOOL 7779 fi 7780else 7781 OTOOL="$ac_cv_prog_OTOOL" 7782fi 7783 7784 if test -n "$ac_tool_prefix"; then 7785 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7786set dummy ${ac_tool_prefix}otool64; ac_word=$2 7787{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7788$as_echo_n "checking for $ac_word... " >&6; } 7789if test "${ac_cv_prog_OTOOL64+set}" = set; then 7790 $as_echo_n "(cached) " >&6 7791else 7792 if test -n "$OTOOL64"; then 7793 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7794else 7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7796for as_dir in $PATH 7797do 7798 IFS=$as_save_IFS 7799 test -z "$as_dir" && as_dir=. 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7802 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7804 break 2 7805 fi 7806done 7807done 7808IFS=$as_save_IFS 7809 7810fi 7811fi 7812OTOOL64=$ac_cv_prog_OTOOL64 7813if test -n "$OTOOL64"; then 7814 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7815$as_echo "$OTOOL64" >&6; } 7816else 7817 { $as_echo "$as_me:$LINENO: result: no" >&5 7818$as_echo "no" >&6; } 7819fi 7820 7821 7822fi 7823if test -z "$ac_cv_prog_OTOOL64"; then 7824 ac_ct_OTOOL64=$OTOOL64 7825 # Extract the first word of "otool64", so it can be a program name with args. 7826set dummy otool64; ac_word=$2 7827{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$ac_ct_OTOOL64"; then 7833 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7842 ac_cv_prog_ac_ct_OTOOL64="otool64" 7843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7853if test -n "$ac_ct_OTOOL64"; then 7854 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7855$as_echo "$ac_ct_OTOOL64" >&6; } 7856else 7857 { $as_echo "$as_me:$LINENO: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 if test "x$ac_ct_OTOOL64" = x; then 7862 OTOOL64=":" 7863 else 7864 case $cross_compiling:$ac_tool_warned in 7865yes:) 7866{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7868ac_tool_warned=yes ;; 7869esac 7870 OTOOL64=$ac_ct_OTOOL64 7871 fi 7872else 7873 OTOOL64="$ac_cv_prog_OTOOL64" 7874fi 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7903$as_echo_n "checking for -single_module linker flag... " >&6; } 7904if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7905 $as_echo_n "(cached) " >&6 7906else 7907 lt_cv_apple_cc_single_mod=no 7908 if test -z "${LT_MULTI_MODULE}"; then 7909 # By default we will add the -single_module flag. You can override 7910 # by either setting the environment variable LT_MULTI_MODULE 7911 # non-empty at configure time, or by adding -multi_module to the 7912 # link flags. 7913 rm -rf libconftest.dylib* 7914 echo "int foo(void){return 1;}" > conftest.c 7915 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7916-dynamiclib -Wl,-single_module conftest.c" >&5 7917 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7918 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7919 _lt_result=$? 7920 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7921 lt_cv_apple_cc_single_mod=yes 7922 else 7923 cat conftest.err >&5 7924 fi 7925 rm -rf libconftest.dylib* 7926 rm -f conftest.* 7927 fi 7928fi 7929{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7930$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7931 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7932$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7933if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7934 $as_echo_n "(cached) " >&6 7935else 7936 lt_cv_ld_exported_symbols_list=no 7937 save_LDFLAGS=$LDFLAGS 7938 echo "_main" > conftest.sym 7939 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7940 cat >conftest.$ac_ext <<_ACEOF 7941/* confdefs.h. */ 7942_ACEOF 7943cat confdefs.h >>conftest.$ac_ext 7944cat >>conftest.$ac_ext <<_ACEOF 7945/* end confdefs.h. */ 7946 7947int 7948main () 7949{ 7950 7951 ; 7952 return 0; 7953} 7954_ACEOF 7955rm -f conftest.$ac_objext conftest$ac_exeext 7956if { (ac_try="$ac_link" 7957case "(($ac_try" in 7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7959 *) ac_try_echo=$ac_try;; 7960esac 7961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7962$as_echo "$ac_try_echo") >&5 7963 (eval "$ac_link") 2>conftest.er1 7964 ac_status=$? 7965 grep -v '^ *+' conftest.er1 >conftest.err 7966 rm -f conftest.er1 7967 cat conftest.err >&5 7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7969 (exit $ac_status); } && { 7970 test -z "$ac_c_werror_flag" || 7971 test ! -s conftest.err 7972 } && test -s conftest$ac_exeext && { 7973 test "$cross_compiling" = yes || 7974 $as_test_x conftest$ac_exeext 7975 }; then 7976 lt_cv_ld_exported_symbols_list=yes 7977else 7978 $as_echo "$as_me: failed program was:" >&5 7979sed 's/^/| /' conftest.$ac_ext >&5 7980 7981 lt_cv_ld_exported_symbols_list=no 7982fi 7983 7984rm -rf conftest.dSYM 7985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7986 conftest$ac_exeext conftest.$ac_ext 7987 LDFLAGS="$save_LDFLAGS" 7988 7989fi 7990{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7991$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7992 case $host_os in 7993 rhapsody* | darwin1.[012]) 7994 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7995 darwin1.*) 7996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7997 darwin*) # darwin 5.x on 7998 # if running on 10.5 or later, the deployment target defaults 7999 # to the OS version, if on x86, and 10.4, the deployment 8000 # target defaults to 10.4. Don't you love it? 8001 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8002 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8003 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8004 10.[012]*) 8005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8006 10.*) 8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8008 esac 8009 ;; 8010 esac 8011 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8012 _lt_dar_single_mod='$single_module' 8013 fi 8014 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8015 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8016 else 8017 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8018 fi 8019 if test "$DSYMUTIL" != ":"; then 8020 _lt_dsymutil='~$DSYMUTIL $lib || :' 8021 else 8022 _lt_dsymutil= 8023 fi 8024 ;; 8025 esac 8026 8027 8028for ac_header in dlfcn.h 8029do 8030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8031{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8032$as_echo_n "checking for $ac_header... " >&6; } 8033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8034 $as_echo_n "(cached) " >&6 8035else 8036 cat >conftest.$ac_ext <<_ACEOF 8037/* confdefs.h. */ 8038_ACEOF 8039cat confdefs.h >>conftest.$ac_ext 8040cat >>conftest.$ac_ext <<_ACEOF 8041/* end confdefs.h. */ 8042$ac_includes_default 8043 8044#include <$ac_header> 8045_ACEOF 8046rm -f conftest.$ac_objext 8047if { (ac_try="$ac_compile" 8048case "(($ac_try" in 8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8050 *) ac_try_echo=$ac_try;; 8051esac 8052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8053$as_echo "$ac_try_echo") >&5 8054 (eval "$ac_compile") 2>conftest.er1 8055 ac_status=$? 8056 grep -v '^ *+' conftest.er1 >conftest.err 8057 rm -f conftest.er1 8058 cat conftest.err >&5 8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8060 (exit $ac_status); } && { 8061 test -z "$ac_c_werror_flag" || 8062 test ! -s conftest.err 8063 } && test -s conftest.$ac_objext; then 8064 eval "$as_ac_Header=yes" 8065else 8066 $as_echo "$as_me: failed program was:" >&5 8067sed 's/^/| /' conftest.$ac_ext >&5 8068 8069 eval "$as_ac_Header=no" 8070fi 8071 8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8073fi 8074ac_res=`eval 'as_val=${'$as_ac_Header'} 8075 $as_echo "$as_val"'` 8076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8077$as_echo "$ac_res" >&6; } 8078as_val=`eval 'as_val=${'$as_ac_Header'} 8079 $as_echo "$as_val"'` 8080 if test "x$as_val" = x""yes; then 8081 cat >>confdefs.h <<_ACEOF 8082#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8083_ACEOF 8084 8085fi 8086 8087done 8088 8089 8090 8091# Set options 8092 8093 8094 8095 enable_dlopen=no 8096 8097 8098 enable_win32_dll=no 8099 8100 8101 # Check whether --enable-shared was given. 8102if test "${enable_shared+set}" = set; then 8103 enableval=$enable_shared; p=${PACKAGE-default} 8104 case $enableval in 8105 yes) enable_shared=yes ;; 8106 no) enable_shared=no ;; 8107 *) 8108 enable_shared=no 8109 # Look at the argument we got. We use all the common list separators. 8110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8111 for pkg in $enableval; do 8112 IFS="$lt_save_ifs" 8113 if test "X$pkg" = "X$p"; then 8114 enable_shared=yes 8115 fi 8116 done 8117 IFS="$lt_save_ifs" 8118 ;; 8119 esac 8120else 8121 enable_shared=yes 8122fi 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 # Check whether --enable-static was given. 8133if test "${enable_static+set}" = set; then 8134 enableval=$enable_static; p=${PACKAGE-default} 8135 case $enableval in 8136 yes) enable_static=yes ;; 8137 no) enable_static=no ;; 8138 *) 8139 enable_static=no 8140 # Look at the argument we got. We use all the common list separators. 8141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8142 for pkg in $enableval; do 8143 IFS="$lt_save_ifs" 8144 if test "X$pkg" = "X$p"; then 8145 enable_static=yes 8146 fi 8147 done 8148 IFS="$lt_save_ifs" 8149 ;; 8150 esac 8151else 8152 enable_static=yes 8153fi 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164# Check whether --with-pic was given. 8165if test "${with_pic+set}" = set; then 8166 withval=$with_pic; pic_mode="$withval" 8167else 8168 pic_mode=default 8169fi 8170 8171 8172test -z "$pic_mode" && pic_mode=default 8173 8174 8175 8176 8177 8178 8179 8180 # Check whether --enable-fast-install was given. 8181if test "${enable_fast_install+set}" = set; then 8182 enableval=$enable_fast_install; p=${PACKAGE-default} 8183 case $enableval in 8184 yes) enable_fast_install=yes ;; 8185 no) enable_fast_install=no ;; 8186 *) 8187 enable_fast_install=no 8188 # Look at the argument we got. We use all the common list separators. 8189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8190 for pkg in $enableval; do 8191 IFS="$lt_save_ifs" 8192 if test "X$pkg" = "X$p"; then 8193 enable_fast_install=yes 8194 fi 8195 done 8196 IFS="$lt_save_ifs" 8197 ;; 8198 esac 8199else 8200 enable_fast_install=yes 8201fi 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213# This can be used to rebuild libtool when needed 8214LIBTOOL_DEPS="$ltmain" 8215 8216# Always use our own libtool. 8217LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243test -z "$LN_S" && LN_S="ln -s" 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258if test -n "${ZSH_VERSION+set}" ; then 8259 setopt NO_GLOB_SUBST 8260fi 8261 8262{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8263$as_echo_n "checking for objdir... " >&6; } 8264if test "${lt_cv_objdir+set}" = set; then 8265 $as_echo_n "(cached) " >&6 8266else 8267 rm -f .libs 2>/dev/null 8268mkdir .libs 2>/dev/null 8269if test -d .libs; then 8270 lt_cv_objdir=.libs 8271else 8272 # MS-DOS does not allow filenames that begin with a dot. 8273 lt_cv_objdir=_libs 8274fi 8275rmdir .libs 2>/dev/null 8276fi 8277{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8278$as_echo "$lt_cv_objdir" >&6; } 8279objdir=$lt_cv_objdir 8280 8281 8282 8283 8284 8285cat >>confdefs.h <<_ACEOF 8286#define LT_OBJDIR "$lt_cv_objdir/" 8287_ACEOF 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305case $host_os in 8306aix3*) 8307 # AIX sometimes has problems with the GCC collect2 program. For some 8308 # reason, if we set the COLLECT_NAMES environment variable, the problems 8309 # vanish in a puff of smoke. 8310 if test "X${COLLECT_NAMES+set}" != Xset; then 8311 COLLECT_NAMES= 8312 export COLLECT_NAMES 8313 fi 8314 ;; 8315esac 8316 8317# Sed substitution that helps us do robust quoting. It backslashifies 8318# metacharacters that are still active within double-quoted strings. 8319sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8320 8321# Same as above, but do not quote variable references. 8322double_quote_subst='s/\(["`\\]\)/\\\1/g' 8323 8324# Sed substitution to delay expansion of an escaped shell variable in a 8325# double_quote_subst'ed string. 8326delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8327 8328# Sed substitution to delay expansion of an escaped single quote. 8329delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8330 8331# Sed substitution to avoid accidental globbing in evaled expressions 8332no_glob_subst='s/\*/\\\*/g' 8333 8334# Global variables: 8335ofile=libtool 8336can_build_shared=yes 8337 8338# All known linkers require a `.a' archive for static linking (except MSVC, 8339# which needs '.lib'). 8340libext=a 8341 8342with_gnu_ld="$lt_cv_prog_gnu_ld" 8343 8344old_CC="$CC" 8345old_CFLAGS="$CFLAGS" 8346 8347# Set sane defaults for various variables 8348test -z "$CC" && CC=cc 8349test -z "$LTCC" && LTCC=$CC 8350test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8351test -z "$LD" && LD=ld 8352test -z "$ac_objext" && ac_objext=o 8353 8354for cc_temp in $compiler""; do 8355 case $cc_temp in 8356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8358 \-*) ;; 8359 *) break;; 8360 esac 8361done 8362cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8363 8364 8365# Only perform the check for file, if the check method requires it 8366test -z "$MAGIC_CMD" && MAGIC_CMD=file 8367case $deplibs_check_method in 8368file_magic*) 8369 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8370 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8371$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8372if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8373 $as_echo_n "(cached) " >&6 8374else 8375 case $MAGIC_CMD in 8376[\\/*] | ?:[\\/]*) 8377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8378 ;; 8379*) 8380 lt_save_MAGIC_CMD="$MAGIC_CMD" 8381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8383 for ac_dir in $ac_dummy; do 8384 IFS="$lt_save_ifs" 8385 test -z "$ac_dir" && ac_dir=. 8386 if test -f $ac_dir/${ac_tool_prefix}file; then 8387 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8388 if test -n "$file_magic_test_file"; then 8389 case $deplibs_check_method in 8390 "file_magic "*) 8391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8394 $EGREP "$file_magic_regex" > /dev/null; then 8395 : 8396 else 8397 cat <<_LT_EOF 1>&2 8398 8399*** Warning: the command libtool uses to detect shared libraries, 8400*** $file_magic_cmd, produces output that libtool cannot recognize. 8401*** The result is that libtool may fail to recognize shared libraries 8402*** as such. This will affect the creation of libtool libraries that 8403*** depend on shared libraries, but programs linked with such libtool 8404*** libraries will work regardless of this problem. Nevertheless, you 8405*** may want to report the problem to your system manager and/or to 8406*** bug-libtool@gnu.org 8407 8408_LT_EOF 8409 fi ;; 8410 esac 8411 fi 8412 break 8413 fi 8414 done 8415 IFS="$lt_save_ifs" 8416 MAGIC_CMD="$lt_save_MAGIC_CMD" 8417 ;; 8418esac 8419fi 8420 8421MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8422if test -n "$MAGIC_CMD"; then 8423 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8424$as_echo "$MAGIC_CMD" >&6; } 8425else 8426 { $as_echo "$as_me:$LINENO: result: no" >&5 8427$as_echo "no" >&6; } 8428fi 8429 8430 8431 8432 8433 8434if test -z "$lt_cv_path_MAGIC_CMD"; then 8435 if test -n "$ac_tool_prefix"; then 8436 { $as_echo "$as_me:$LINENO: checking for file" >&5 8437$as_echo_n "checking for file... " >&6; } 8438if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8439 $as_echo_n "(cached) " >&6 8440else 8441 case $MAGIC_CMD in 8442[\\/*] | ?:[\\/]*) 8443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8444 ;; 8445*) 8446 lt_save_MAGIC_CMD="$MAGIC_CMD" 8447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8449 for ac_dir in $ac_dummy; do 8450 IFS="$lt_save_ifs" 8451 test -z "$ac_dir" && ac_dir=. 8452 if test -f $ac_dir/file; then 8453 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8454 if test -n "$file_magic_test_file"; then 8455 case $deplibs_check_method in 8456 "file_magic "*) 8457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8460 $EGREP "$file_magic_regex" > /dev/null; then 8461 : 8462 else 8463 cat <<_LT_EOF 1>&2 8464 8465*** Warning: the command libtool uses to detect shared libraries, 8466*** $file_magic_cmd, produces output that libtool cannot recognize. 8467*** The result is that libtool may fail to recognize shared libraries 8468*** as such. This will affect the creation of libtool libraries that 8469*** depend on shared libraries, but programs linked with such libtool 8470*** libraries will work regardless of this problem. Nevertheless, you 8471*** may want to report the problem to your system manager and/or to 8472*** bug-libtool@gnu.org 8473 8474_LT_EOF 8475 fi ;; 8476 esac 8477 fi 8478 break 8479 fi 8480 done 8481 IFS="$lt_save_ifs" 8482 MAGIC_CMD="$lt_save_MAGIC_CMD" 8483 ;; 8484esac 8485fi 8486 8487MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8488if test -n "$MAGIC_CMD"; then 8489 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8490$as_echo "$MAGIC_CMD" >&6; } 8491else 8492 { $as_echo "$as_me:$LINENO: result: no" >&5 8493$as_echo "no" >&6; } 8494fi 8495 8496 8497 else 8498 MAGIC_CMD=: 8499 fi 8500fi 8501 8502 fi 8503 ;; 8504esac 8505 8506# Use C for the default configuration in the libtool script 8507 8508lt_save_CC="$CC" 8509ac_ext=c 8510ac_cpp='$CPP $CPPFLAGS' 8511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8513ac_compiler_gnu=$ac_cv_c_compiler_gnu 8514 8515 8516# Source file extension for C test sources. 8517ac_ext=c 8518 8519# Object file extension for compiled C test sources. 8520objext=o 8521objext=$objext 8522 8523# Code to be used in simple compile tests 8524lt_simple_compile_test_code="int some_variable = 0;" 8525 8526# Code to be used in simple link tests 8527lt_simple_link_test_code='int main(){return(0);}' 8528 8529 8530 8531 8532 8533 8534 8535# If no C compiler was specified, use CC. 8536LTCC=${LTCC-"$CC"} 8537 8538# If no C compiler flags were specified, use CFLAGS. 8539LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8540 8541# Allow CC to be a program name with arguments. 8542compiler=$CC 8543 8544# Save the default compiler, since it gets overwritten when the other 8545# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8546compiler_DEFAULT=$CC 8547 8548# save warnings/boilerplate of simple test code 8549ac_outfile=conftest.$ac_objext 8550echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8551eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8552_lt_compiler_boilerplate=`cat conftest.err` 8553$RM conftest* 8554 8555ac_outfile=conftest.$ac_objext 8556echo "$lt_simple_link_test_code" >conftest.$ac_ext 8557eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8558_lt_linker_boilerplate=`cat conftest.err` 8559$RM -r conftest* 8560 8561 8562## CAVEAT EMPTOR: 8563## There is no encapsulation within the following macros, do not change 8564## the running order or otherwise move them around unless you know exactly 8565## what you are doing... 8566if test -n "$compiler"; then 8567 8568lt_prog_compiler_no_builtin_flag= 8569 8570if test "$GCC" = yes; then 8571 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8572 8573 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8574$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8575if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8576 $as_echo_n "(cached) " >&6 8577else 8578 lt_cv_prog_compiler_rtti_exceptions=no 8579 ac_outfile=conftest.$ac_objext 8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8581 lt_compiler_flag="-fno-rtti -fno-exceptions" 8582 # Insert the option either (1) after the last *FLAGS variable, or 8583 # (2) before a word containing "conftest.", or (3) at the end. 8584 # Note that $ac_compile itself does not contain backslashes and begins 8585 # with a dollar sign (not a hyphen), so the echo should work correctly. 8586 # The option is referenced via a variable to avoid confusing sed. 8587 lt_compile=`echo "$ac_compile" | $SED \ 8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8590 -e 's:$: $lt_compiler_flag:'` 8591 (eval echo "\"\$as_me:8591: $lt_compile\"" >&5) 8592 (eval "$lt_compile" 2>conftest.err) 8593 ac_status=$? 8594 cat conftest.err >&5 8595 echo "$as_me:8595: \$? = $ac_status" >&5 8596 if (exit $ac_status) && test -s "$ac_outfile"; then 8597 # The compiler can only warn and ignore the option if not recognized 8598 # So say no if there are warnings other than the usual output. 8599 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8602 lt_cv_prog_compiler_rtti_exceptions=yes 8603 fi 8604 fi 8605 $RM conftest* 8606 8607fi 8608{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8609$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8610 8611if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8612 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8613else 8614 : 8615fi 8616 8617fi 8618 8619 8620 8621 8622 8623 8624 lt_prog_compiler_wl= 8625lt_prog_compiler_pic= 8626lt_prog_compiler_static= 8627 8628{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8629$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8630 8631 if test "$GCC" = yes; then 8632 lt_prog_compiler_wl='-Wl,' 8633 lt_prog_compiler_static='-static' 8634 8635 case $host_os in 8636 aix*) 8637 # All AIX code is PIC. 8638 if test "$host_cpu" = ia64; then 8639 # AIX 5 now supports IA64 processor 8640 lt_prog_compiler_static='-Bstatic' 8641 fi 8642 ;; 8643 8644 amigaos*) 8645 case $host_cpu in 8646 powerpc) 8647 # see comment about AmigaOS4 .so support 8648 lt_prog_compiler_pic='-fPIC' 8649 ;; 8650 m68k) 8651 # FIXME: we need at least 68020 code to build shared libraries, but 8652 # adding the `-m68020' flag to GCC prevents building anything better, 8653 # like `-m68040'. 8654 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8655 ;; 8656 esac 8657 ;; 8658 8659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8660 # PIC is the default for these OSes. 8661 ;; 8662 8663 mingw* | cygwin* | pw32* | os2* | cegcc*) 8664 # This hack is so that the source file can tell whether it is being 8665 # built for inclusion in a dll (and should export symbols for example). 8666 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8667 # (--disable-auto-import) libraries 8668 lt_prog_compiler_pic='-DDLL_EXPORT' 8669 ;; 8670 8671 darwin* | rhapsody*) 8672 # PIC is the default on this platform 8673 # Common symbols not allowed in MH_DYLIB files 8674 lt_prog_compiler_pic='-fno-common' 8675 ;; 8676 8677 hpux*) 8678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8680 # sets the default TLS model and affects inlining. 8681 case $host_cpu in 8682 hppa*64*) 8683 # +Z the default 8684 ;; 8685 *) 8686 lt_prog_compiler_pic='-fPIC' 8687 ;; 8688 esac 8689 ;; 8690 8691 interix[3-9]*) 8692 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8693 # Instead, we relocate shared libraries at runtime. 8694 ;; 8695 8696 msdosdjgpp*) 8697 # Just because we use GCC doesn't mean we suddenly get shared libraries 8698 # on systems that don't support them. 8699 lt_prog_compiler_can_build_shared=no 8700 enable_shared=no 8701 ;; 8702 8703 *nto* | *qnx*) 8704 # QNX uses GNU C++, but need to define -shared option too, otherwise 8705 # it will coredump. 8706 lt_prog_compiler_pic='-fPIC -shared' 8707 ;; 8708 8709 sysv4*MP*) 8710 if test -d /usr/nec; then 8711 lt_prog_compiler_pic=-Kconform_pic 8712 fi 8713 ;; 8714 8715 *) 8716 lt_prog_compiler_pic='-fPIC' 8717 ;; 8718 esac 8719 else 8720 # PORTME Check for flag to pass linker flags through the system compiler. 8721 case $host_os in 8722 aix*) 8723 lt_prog_compiler_wl='-Wl,' 8724 if test "$host_cpu" = ia64; then 8725 # AIX 5 now supports IA64 processor 8726 lt_prog_compiler_static='-Bstatic' 8727 else 8728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8729 fi 8730 ;; 8731 8732 mingw* | cygwin* | pw32* | os2* | cegcc*) 8733 # This hack is so that the source file can tell whether it is being 8734 # built for inclusion in a dll (and should export symbols for example). 8735 lt_prog_compiler_pic='-DDLL_EXPORT' 8736 ;; 8737 8738 hpux9* | hpux10* | hpux11*) 8739 lt_prog_compiler_wl='-Wl,' 8740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8741 # not for PA HP-UX. 8742 case $host_cpu in 8743 hppa*64*|ia64*) 8744 # +Z the default 8745 ;; 8746 *) 8747 lt_prog_compiler_pic='+Z' 8748 ;; 8749 esac 8750 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8751 lt_prog_compiler_static='${wl}-a ${wl}archive' 8752 ;; 8753 8754 irix5* | irix6* | nonstopux*) 8755 lt_prog_compiler_wl='-Wl,' 8756 # PIC (with -KPIC) is the default. 8757 lt_prog_compiler_static='-non_shared' 8758 ;; 8759 8760 linux* | k*bsd*-gnu) 8761 case $cc_basename in 8762 # old Intel for x86_64 which still supported -KPIC. 8763 ecc*) 8764 lt_prog_compiler_wl='-Wl,' 8765 lt_prog_compiler_pic='-KPIC' 8766 lt_prog_compiler_static='-static' 8767 ;; 8768 # icc used to be incompatible with GCC. 8769 # ICC 10 doesn't accept -KPIC any more. 8770 icc* | ifort*) 8771 lt_prog_compiler_wl='-Wl,' 8772 lt_prog_compiler_pic='-fPIC' 8773 lt_prog_compiler_static='-static' 8774 ;; 8775 # Lahey Fortran 8.1. 8776 lf95*) 8777 lt_prog_compiler_wl='-Wl,' 8778 lt_prog_compiler_pic='--shared' 8779 lt_prog_compiler_static='--static' 8780 ;; 8781 pgcc* | pgf77* | pgf90* | pgf95*) 8782 # Portland Group compilers (*not* the Pentium gcc compiler, 8783 # which looks to be a dead project) 8784 lt_prog_compiler_wl='-Wl,' 8785 lt_prog_compiler_pic='-fpic' 8786 lt_prog_compiler_static='-Bstatic' 8787 ;; 8788 ccc*) 8789 lt_prog_compiler_wl='-Wl,' 8790 # All Alpha code is PIC. 8791 lt_prog_compiler_static='-non_shared' 8792 ;; 8793 xl*) 8794 # IBM XL C 8.0/Fortran 10.1 on PPC 8795 lt_prog_compiler_wl='-Wl,' 8796 lt_prog_compiler_pic='-qpic' 8797 lt_prog_compiler_static='-qstaticlink' 8798 ;; 8799 *) 8800 case `$CC -V 2>&1 | sed 5q` in 8801 *Sun\ C*) 8802 # Sun C 5.9 8803 lt_prog_compiler_pic='-KPIC' 8804 lt_prog_compiler_static='-Bstatic' 8805 lt_prog_compiler_wl='-Wl,' 8806 ;; 8807 *Sun\ F*) 8808 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8809 lt_prog_compiler_pic='-KPIC' 8810 lt_prog_compiler_static='-Bstatic' 8811 lt_prog_compiler_wl='' 8812 ;; 8813 esac 8814 ;; 8815 esac 8816 ;; 8817 8818 newsos6) 8819 lt_prog_compiler_pic='-KPIC' 8820 lt_prog_compiler_static='-Bstatic' 8821 ;; 8822 8823 *nto* | *qnx*) 8824 # QNX uses GNU C++, but need to define -shared option too, otherwise 8825 # it will coredump. 8826 lt_prog_compiler_pic='-fPIC -shared' 8827 ;; 8828 8829 osf3* | osf4* | osf5*) 8830 lt_prog_compiler_wl='-Wl,' 8831 # All OSF/1 code is PIC. 8832 lt_prog_compiler_static='-non_shared' 8833 ;; 8834 8835 rdos*) 8836 lt_prog_compiler_static='-non_shared' 8837 ;; 8838 8839 solaris*) 8840 lt_prog_compiler_pic='-KPIC' 8841 lt_prog_compiler_static='-Bstatic' 8842 case $cc_basename in 8843 f77* | f90* | f95*) 8844 lt_prog_compiler_wl='-Qoption ld ';; 8845 *) 8846 lt_prog_compiler_wl='-Wl,';; 8847 esac 8848 ;; 8849 8850 sunos4*) 8851 lt_prog_compiler_wl='-Qoption ld ' 8852 lt_prog_compiler_pic='-PIC' 8853 lt_prog_compiler_static='-Bstatic' 8854 ;; 8855 8856 sysv4 | sysv4.2uw2* | sysv4.3*) 8857 lt_prog_compiler_wl='-Wl,' 8858 lt_prog_compiler_pic='-KPIC' 8859 lt_prog_compiler_static='-Bstatic' 8860 ;; 8861 8862 sysv4*MP*) 8863 if test -d /usr/nec ;then 8864 lt_prog_compiler_pic='-Kconform_pic' 8865 lt_prog_compiler_static='-Bstatic' 8866 fi 8867 ;; 8868 8869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8870 lt_prog_compiler_wl='-Wl,' 8871 lt_prog_compiler_pic='-KPIC' 8872 lt_prog_compiler_static='-Bstatic' 8873 ;; 8874 8875 unicos*) 8876 lt_prog_compiler_wl='-Wl,' 8877 lt_prog_compiler_can_build_shared=no 8878 ;; 8879 8880 uts4*) 8881 lt_prog_compiler_pic='-pic' 8882 lt_prog_compiler_static='-Bstatic' 8883 ;; 8884 8885 *) 8886 lt_prog_compiler_can_build_shared=no 8887 ;; 8888 esac 8889 fi 8890 8891case $host_os in 8892 # For platforms which do not support PIC, -DPIC is meaningless: 8893 *djgpp*) 8894 lt_prog_compiler_pic= 8895 ;; 8896 *) 8897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8898 ;; 8899esac 8900{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8901$as_echo "$lt_prog_compiler_pic" >&6; } 8902 8903 8904 8905 8906 8907 8908# 8909# Check to make sure the PIC flag actually works. 8910# 8911if test -n "$lt_prog_compiler_pic"; then 8912 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8913$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8914if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8915 $as_echo_n "(cached) " >&6 8916else 8917 lt_cv_prog_compiler_pic_works=no 8918 ac_outfile=conftest.$ac_objext 8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8921 # Insert the option either (1) after the last *FLAGS variable, or 8922 # (2) before a word containing "conftest.", or (3) at the end. 8923 # Note that $ac_compile itself does not contain backslashes and begins 8924 # with a dollar sign (not a hyphen), so the echo should work correctly. 8925 # The option is referenced via a variable to avoid confusing sed. 8926 lt_compile=`echo "$ac_compile" | $SED \ 8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8929 -e 's:$: $lt_compiler_flag:'` 8930 (eval echo "\"\$as_me:8930: $lt_compile\"" >&5) 8931 (eval "$lt_compile" 2>conftest.err) 8932 ac_status=$? 8933 cat conftest.err >&5 8934 echo "$as_me:8934: \$? = $ac_status" >&5 8935 if (exit $ac_status) && test -s "$ac_outfile"; then 8936 # The compiler can only warn and ignore the option if not recognized 8937 # So say no if there are warnings other than the usual output. 8938 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8941 lt_cv_prog_compiler_pic_works=yes 8942 fi 8943 fi 8944 $RM conftest* 8945 8946fi 8947{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8948$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8949 8950if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8951 case $lt_prog_compiler_pic in 8952 "" | " "*) ;; 8953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8954 esac 8955else 8956 lt_prog_compiler_pic= 8957 lt_prog_compiler_can_build_shared=no 8958fi 8959 8960fi 8961 8962 8963 8964 8965 8966 8967# 8968# Check to make sure the static flag actually works. 8969# 8970wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8971{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8972$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8973if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8974 $as_echo_n "(cached) " >&6 8975else 8976 lt_cv_prog_compiler_static_works=no 8977 save_LDFLAGS="$LDFLAGS" 8978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8979 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8981 # The linker can only warn and ignore the option if not recognized 8982 # So say no if there are warnings 8983 if test -s conftest.err; then 8984 # Append any errors to the config.log. 8985 cat conftest.err 1>&5 8986 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8988 if diff conftest.exp conftest.er2 >/dev/null; then 8989 lt_cv_prog_compiler_static_works=yes 8990 fi 8991 else 8992 lt_cv_prog_compiler_static_works=yes 8993 fi 8994 fi 8995 $RM -r conftest* 8996 LDFLAGS="$save_LDFLAGS" 8997 8998fi 8999{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9000$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9001 9002if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9003 : 9004else 9005 lt_prog_compiler_static= 9006fi 9007 9008 9009 9010 9011 9012 9013 9014 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9015$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9016if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9017 $as_echo_n "(cached) " >&6 9018else 9019 lt_cv_prog_compiler_c_o=no 9020 $RM -r conftest 2>/dev/null 9021 mkdir conftest 9022 cd conftest 9023 mkdir out 9024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9025 9026 lt_compiler_flag="-o out/conftest2.$ac_objext" 9027 # Insert the option either (1) after the last *FLAGS variable, or 9028 # (2) before a word containing "conftest.", or (3) at the end. 9029 # Note that $ac_compile itself does not contain backslashes and begins 9030 # with a dollar sign (not a hyphen), so the echo should work correctly. 9031 lt_compile=`echo "$ac_compile" | $SED \ 9032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9034 -e 's:$: $lt_compiler_flag:'` 9035 (eval echo "\"\$as_me:9035: $lt_compile\"" >&5) 9036 (eval "$lt_compile" 2>out/conftest.err) 9037 ac_status=$? 9038 cat out/conftest.err >&5 9039 echo "$as_me:9039: \$? = $ac_status" >&5 9040 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9041 then 9042 # The compiler can only warn and ignore the option if not recognized 9043 # So say no if there are warnings 9044 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9047 lt_cv_prog_compiler_c_o=yes 9048 fi 9049 fi 9050 chmod u+w . 2>&5 9051 $RM conftest* 9052 # SGI C++ compiler will create directory out/ii_files/ for 9053 # template instantiation 9054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9055 $RM out/* && rmdir out 9056 cd .. 9057 $RM -r conftest 9058 $RM conftest* 9059 9060fi 9061{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9062$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9063 9064 9065 9066 9067 9068 9069 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9070$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9071if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9072 $as_echo_n "(cached) " >&6 9073else 9074 lt_cv_prog_compiler_c_o=no 9075 $RM -r conftest 2>/dev/null 9076 mkdir conftest 9077 cd conftest 9078 mkdir out 9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9080 9081 lt_compiler_flag="-o out/conftest2.$ac_objext" 9082 # Insert the option either (1) after the last *FLAGS variable, or 9083 # (2) before a word containing "conftest.", or (3) at the end. 9084 # Note that $ac_compile itself does not contain backslashes and begins 9085 # with a dollar sign (not a hyphen), so the echo should work correctly. 9086 lt_compile=`echo "$ac_compile" | $SED \ 9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9089 -e 's:$: $lt_compiler_flag:'` 9090 (eval echo "\"\$as_me:9090: $lt_compile\"" >&5) 9091 (eval "$lt_compile" 2>out/conftest.err) 9092 ac_status=$? 9093 cat out/conftest.err >&5 9094 echo "$as_me:9094: \$? = $ac_status" >&5 9095 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9096 then 9097 # The compiler can only warn and ignore the option if not recognized 9098 # So say no if there are warnings 9099 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9102 lt_cv_prog_compiler_c_o=yes 9103 fi 9104 fi 9105 chmod u+w . 2>&5 9106 $RM conftest* 9107 # SGI C++ compiler will create directory out/ii_files/ for 9108 # template instantiation 9109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9110 $RM out/* && rmdir out 9111 cd .. 9112 $RM -r conftest 9113 $RM conftest* 9114 9115fi 9116{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9117$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9118 9119 9120 9121 9122hard_links="nottested" 9123if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9124 # do not overwrite the value of need_locks provided by the user 9125 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9126$as_echo_n "checking if we can lock with hard links... " >&6; } 9127 hard_links=yes 9128 $RM conftest* 9129 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9130 touch conftest.a 9131 ln conftest.a conftest.b 2>&5 || hard_links=no 9132 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9133 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9134$as_echo "$hard_links" >&6; } 9135 if test "$hard_links" = no; then 9136 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9137$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9138 need_locks=warn 9139 fi 9140else 9141 need_locks=no 9142fi 9143 9144 9145 9146 9147 9148 9149 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9150$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9151 9152 runpath_var= 9153 allow_undefined_flag= 9154 always_export_symbols=no 9155 archive_cmds= 9156 archive_expsym_cmds= 9157 compiler_needs_object=no 9158 enable_shared_with_static_runtimes=no 9159 export_dynamic_flag_spec= 9160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9161 hardcode_automatic=no 9162 hardcode_direct=no 9163 hardcode_direct_absolute=no 9164 hardcode_libdir_flag_spec= 9165 hardcode_libdir_flag_spec_ld= 9166 hardcode_libdir_separator= 9167 hardcode_minus_L=no 9168 hardcode_shlibpath_var=unsupported 9169 inherit_rpath=no 9170 link_all_deplibs=unknown 9171 module_cmds= 9172 module_expsym_cmds= 9173 old_archive_from_new_cmds= 9174 old_archive_from_expsyms_cmds= 9175 thread_safe_flag_spec= 9176 whole_archive_flag_spec= 9177 # include_expsyms should be a list of space-separated symbols to be *always* 9178 # included in the symbol list 9179 include_expsyms= 9180 # exclude_expsyms can be an extended regexp of symbols to exclude 9181 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9182 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9183 # as well as any symbol that contains `d'. 9184 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9186 # platforms (ab)use it in PIC code, but their linkers get confused if 9187 # the symbol is explicitly referenced. Since portable code cannot 9188 # rely on this symbol name, it's probably fine to never include it in 9189 # preloaded symbol tables. 9190 # Exclude shared library initialization/finalization symbols. 9191 extract_expsyms_cmds= 9192 9193 case $host_os in 9194 cygwin* | mingw* | pw32* | cegcc*) 9195 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9196 # When not using gcc, we currently assume that we are using 9197 # Microsoft Visual C++. 9198 if test "$GCC" != yes; then 9199 with_gnu_ld=no 9200 fi 9201 ;; 9202 interix*) 9203 # we just hope/assume this is gcc and not c89 (= MSVC++) 9204 with_gnu_ld=yes 9205 ;; 9206 openbsd*) 9207 with_gnu_ld=no 9208 ;; 9209 linux* | k*bsd*-gnu) 9210 link_all_deplibs=no 9211 ;; 9212 esac 9213 9214 ld_shlibs=yes 9215 if test "$with_gnu_ld" = yes; then 9216 # If archive_cmds runs LD, not CC, wlarc should be empty 9217 wlarc='${wl}' 9218 9219 # Set some defaults for GNU ld with shared library support. These 9220 # are reset later if shared libraries are not supported. Putting them 9221 # here allows them to be overridden if necessary. 9222 runpath_var=LD_RUN_PATH 9223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9224 export_dynamic_flag_spec='${wl}--export-dynamic' 9225 # ancient GNU ld didn't support --whole-archive et. al. 9226 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9228 else 9229 whole_archive_flag_spec= 9230 fi 9231 supports_anon_versioning=no 9232 case `$LD -v 2>&1` in 9233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9236 *\ 2.11.*) ;; # other 2.11 versions 9237 *) supports_anon_versioning=yes ;; 9238 esac 9239 9240 # See if GNU ld supports shared libraries. 9241 case $host_os in 9242 aix[3-9]*) 9243 # On AIX/PPC, the GNU linker is very broken 9244 if test "$host_cpu" != ia64; then 9245 ld_shlibs=no 9246 cat <<_LT_EOF 1>&2 9247 9248*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9249*** to be unable to reliably create shared libraries on AIX. 9250*** Therefore, libtool is disabling shared libraries support. If you 9251*** really care for shared libraries, you may want to modify your PATH 9252*** so that a non-GNU linker is found, and then restart. 9253 9254_LT_EOF 9255 fi 9256 ;; 9257 9258 amigaos*) 9259 case $host_cpu in 9260 powerpc) 9261 # see comment about AmigaOS4 .so support 9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9263 archive_expsym_cmds='' 9264 ;; 9265 m68k) 9266 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)' 9267 hardcode_libdir_flag_spec='-L$libdir' 9268 hardcode_minus_L=yes 9269 ;; 9270 esac 9271 ;; 9272 9273 beos*) 9274 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9275 allow_undefined_flag=unsupported 9276 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9277 # support --undefined. This deserves some investigation. FIXME 9278 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9279 else 9280 ld_shlibs=no 9281 fi 9282 ;; 9283 9284 cygwin* | mingw* | pw32* | cegcc*) 9285 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9286 # as there is no search path for DLLs. 9287 hardcode_libdir_flag_spec='-L$libdir' 9288 allow_undefined_flag=unsupported 9289 always_export_symbols=no 9290 enable_shared_with_static_runtimes=yes 9291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9292 9293 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9295 # If the export-symbols file already is a .def file (1st line 9296 # is EXPORTS), use it as is; otherwise, prepend... 9297 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9298 cp $export_symbols $output_objdir/$soname.def; 9299 else 9300 echo EXPORTS > $output_objdir/$soname.def; 9301 cat $export_symbols >> $output_objdir/$soname.def; 9302 fi~ 9303 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9304 else 9305 ld_shlibs=no 9306 fi 9307 ;; 9308 9309 interix[3-9]*) 9310 hardcode_direct=no 9311 hardcode_shlibpath_var=no 9312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9313 export_dynamic_flag_spec='${wl}-E' 9314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9315 # Instead, shared libraries are loaded at an image base (0x10000000 by 9316 # default) and relocated if they conflict, which is a slow very memory 9317 # consuming and fragmenting process. To avoid this, we pick a random, 9318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9319 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9321 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' 9322 ;; 9323 9324 gnu* | linux* | tpf* | k*bsd*-gnu) 9325 tmp_diet=no 9326 if test "$host_os" = linux-dietlibc; then 9327 case $cc_basename in 9328 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9329 esac 9330 fi 9331 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9332 && test "$tmp_diet" = no 9333 then 9334 tmp_addflag= 9335 tmp_sharedflag='-shared' 9336 case $cc_basename,$host_cpu in 9337 pgcc*) # Portland Group C compiler 9338 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' 9339 tmp_addflag=' $pic_flag' 9340 ;; 9341 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9342 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' 9343 tmp_addflag=' $pic_flag -Mnomain' ;; 9344 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9345 tmp_addflag=' -i_dynamic' ;; 9346 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9347 tmp_addflag=' -i_dynamic -nofor_main' ;; 9348 ifc* | ifort*) # Intel Fortran compiler 9349 tmp_addflag=' -nofor_main' ;; 9350 lf95*) # Lahey Fortran 8.1 9351 whole_archive_flag_spec= 9352 tmp_sharedflag='--shared' ;; 9353 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9354 tmp_sharedflag='-qmkshrobj' 9355 tmp_addflag= ;; 9356 esac 9357 case `$CC -V 2>&1 | sed 5q` in 9358 *Sun\ C*) # Sun C 5.9 9359 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' 9360 compiler_needs_object=yes 9361 tmp_sharedflag='-G' ;; 9362 *Sun\ F*) # Sun Fortran 8.3 9363 tmp_sharedflag='-G' ;; 9364 esac 9365 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9366 9367 if test "x$supports_anon_versioning" = xyes; then 9368 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9370 echo "local: *; };" >> $output_objdir/$libname.ver~ 9371 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9372 fi 9373 9374 case $cc_basename in 9375 xlf*) 9376 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9377 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9378 hardcode_libdir_flag_spec= 9379 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9380 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9381 if test "x$supports_anon_versioning" = xyes; then 9382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9384 echo "local: *; };" >> $output_objdir/$libname.ver~ 9385 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9386 fi 9387 ;; 9388 esac 9389 else 9390 ld_shlibs=no 9391 fi 9392 ;; 9393 9394 netbsd* | netbsdelf*-gnu) 9395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9396 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9397 wlarc= 9398 else 9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9401 fi 9402 ;; 9403 9404 solaris*) 9405 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9406 ld_shlibs=no 9407 cat <<_LT_EOF 1>&2 9408 9409*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9410*** create shared libraries on Solaris systems. Therefore, libtool 9411*** is disabling shared libraries support. We urge you to upgrade GNU 9412*** binutils to release 2.9.1 or newer. Another option is to modify 9413*** your PATH or compiler configuration so that the native linker is 9414*** used, and then restart. 9415 9416_LT_EOF 9417 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9420 else 9421 ld_shlibs=no 9422 fi 9423 ;; 9424 9425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9426 case `$LD -v 2>&1` in 9427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9428 ld_shlibs=no 9429 cat <<_LT_EOF 1>&2 9430 9431*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9432*** reliably create shared libraries on SCO systems. Therefore, libtool 9433*** is disabling shared libraries support. We urge you to upgrade GNU 9434*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9435*** your PATH or compiler configuration so that the native linker is 9436*** used, and then restart. 9437 9438_LT_EOF 9439 ;; 9440 *) 9441 # For security reasons, it is highly recommended that you always 9442 # use absolute paths for naming shared libraries, and exclude the 9443 # DT_RUNPATH tag from executables and libraries. But doing so 9444 # requires that you compile everything twice, which is a pain. 9445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9449 else 9450 ld_shlibs=no 9451 fi 9452 ;; 9453 esac 9454 ;; 9455 9456 sunos4*) 9457 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9458 wlarc= 9459 hardcode_direct=yes 9460 hardcode_shlibpath_var=no 9461 ;; 9462 9463 *) 9464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9467 else 9468 ld_shlibs=no 9469 fi 9470 ;; 9471 esac 9472 9473 if test "$ld_shlibs" = no; then 9474 runpath_var= 9475 hardcode_libdir_flag_spec= 9476 export_dynamic_flag_spec= 9477 whole_archive_flag_spec= 9478 fi 9479 else 9480 # PORTME fill in a description of your system's linker (not GNU ld) 9481 case $host_os in 9482 aix3*) 9483 allow_undefined_flag=unsupported 9484 always_export_symbols=yes 9485 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' 9486 # Note: this linker hardcodes the directories in LIBPATH if there 9487 # are no directories specified by -L. 9488 hardcode_minus_L=yes 9489 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9490 # Neither direct hardcoding nor static linking is supported with a 9491 # broken collect2. 9492 hardcode_direct=unsupported 9493 fi 9494 ;; 9495 9496 aix[4-9]*) 9497 if test "$host_cpu" = ia64; then 9498 # On IA64, the linker does run time linking by default, so we don't 9499 # have to do anything special. 9500 aix_use_runtimelinking=no 9501 exp_sym_flag='-Bexport' 9502 no_entry_flag="" 9503 else 9504 # If we're using GNU nm, then we don't want the "-C" option. 9505 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9506 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9507 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' 9508 else 9509 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' 9510 fi 9511 aix_use_runtimelinking=no 9512 9513 # Test if we are trying to use run time linking or normal 9514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9515 # need to do runtime linking. 9516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9517 for ld_flag in $LDFLAGS; do 9518 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9519 aix_use_runtimelinking=yes 9520 break 9521 fi 9522 done 9523 ;; 9524 esac 9525 9526 exp_sym_flag='-bexport' 9527 no_entry_flag='-bnoentry' 9528 fi 9529 9530 # When large executables or shared objects are built, AIX ld can 9531 # have problems creating the table of contents. If linking a library 9532 # or program results in "error TOC overflow" add -mminimal-toc to 9533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9535 9536 archive_cmds='' 9537 hardcode_direct=yes 9538 hardcode_direct_absolute=yes 9539 hardcode_libdir_separator=':' 9540 link_all_deplibs=yes 9541 file_list_spec='${wl}-f,' 9542 9543 if test "$GCC" = yes; then 9544 case $host_os in aix4.[012]|aix4.[012].*) 9545 # We only want to do this on AIX 4.2 and lower, the check 9546 # below for broken collect2 doesn't work under 4.3+ 9547 collect2name=`${CC} -print-prog-name=collect2` 9548 if test -f "$collect2name" && 9549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9550 then 9551 # We have reworked collect2 9552 : 9553 else 9554 # We have old collect2 9555 hardcode_direct=unsupported 9556 # It fails to find uninstalled libraries when the uninstalled 9557 # path is not listed in the libpath. Setting hardcode_minus_L 9558 # to unsupported forces relinking 9559 hardcode_minus_L=yes 9560 hardcode_libdir_flag_spec='-L$libdir' 9561 hardcode_libdir_separator= 9562 fi 9563 ;; 9564 esac 9565 shared_flag='-shared' 9566 if test "$aix_use_runtimelinking" = yes; then 9567 shared_flag="$shared_flag "'${wl}-G' 9568 fi 9569 link_all_deplibs=no 9570 else 9571 # not using gcc 9572 if test "$host_cpu" = ia64; then 9573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9574 # chokes on -Wl,-G. The following line is correct: 9575 shared_flag='-G' 9576 else 9577 if test "$aix_use_runtimelinking" = yes; then 9578 shared_flag='${wl}-G' 9579 else 9580 shared_flag='${wl}-bM:SRE' 9581 fi 9582 fi 9583 fi 9584 9585 export_dynamic_flag_spec='${wl}-bexpall' 9586 # It seems that -bexpall does not export symbols beginning with 9587 # underscore (_), so it is better to generate a list of symbols to export. 9588 always_export_symbols=yes 9589 if test "$aix_use_runtimelinking" = yes; then 9590 # Warning - without using the other runtime loading flags (-brtl), 9591 # -berok will link without error, but may produce a broken library. 9592 allow_undefined_flag='-berok' 9593 # Determine the default libpath from the value encoded in an 9594 # empty executable. 9595 cat >conftest.$ac_ext <<_ACEOF 9596/* confdefs.h. */ 9597_ACEOF 9598cat confdefs.h >>conftest.$ac_ext 9599cat >>conftest.$ac_ext <<_ACEOF 9600/* end confdefs.h. */ 9601 9602int 9603main () 9604{ 9605 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610rm -f conftest.$ac_objext conftest$ac_exeext 9611if { (ac_try="$ac_link" 9612case "(($ac_try" in 9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9614 *) ac_try_echo=$ac_try;; 9615esac 9616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9617$as_echo "$ac_try_echo") >&5 9618 (eval "$ac_link") 2>conftest.er1 9619 ac_status=$? 9620 grep -v '^ *+' conftest.er1 >conftest.err 9621 rm -f conftest.er1 9622 cat conftest.err >&5 9623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 (exit $ac_status); } && { 9625 test -z "$ac_c_werror_flag" || 9626 test ! -s conftest.err 9627 } && test -s conftest$ac_exeext && { 9628 test "$cross_compiling" = yes || 9629 $as_test_x conftest$ac_exeext 9630 }; then 9631 9632lt_aix_libpath_sed=' 9633 /Import File Strings/,/^$/ { 9634 /^0/ { 9635 s/^0 *\(.*\)$/\1/ 9636 p 9637 } 9638 }' 9639aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9640# Check for a 64-bit object if we didn't find anything. 9641if test -z "$aix_libpath"; then 9642 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9643fi 9644else 9645 $as_echo "$as_me: failed program was:" >&5 9646sed 's/^/| /' conftest.$ac_ext >&5 9647 9648 9649fi 9650 9651rm -rf conftest.dSYM 9652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9653 conftest$ac_exeext conftest.$ac_ext 9654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9655 9656 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9657 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" 9658 else 9659 if test "$host_cpu" = ia64; then 9660 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9661 allow_undefined_flag="-z nodefs" 9662 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" 9663 else 9664 # Determine the default libpath from the value encoded in an 9665 # empty executable. 9666 cat >conftest.$ac_ext <<_ACEOF 9667/* confdefs.h. */ 9668_ACEOF 9669cat confdefs.h >>conftest.$ac_ext 9670cat >>conftest.$ac_ext <<_ACEOF 9671/* end confdefs.h. */ 9672 9673int 9674main () 9675{ 9676 9677 ; 9678 return 0; 9679} 9680_ACEOF 9681rm -f conftest.$ac_objext conftest$ac_exeext 9682if { (ac_try="$ac_link" 9683case "(($ac_try" in 9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9685 *) ac_try_echo=$ac_try;; 9686esac 9687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9688$as_echo "$ac_try_echo") >&5 9689 (eval "$ac_link") 2>conftest.er1 9690 ac_status=$? 9691 grep -v '^ *+' conftest.er1 >conftest.err 9692 rm -f conftest.er1 9693 cat conftest.err >&5 9694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); } && { 9696 test -z "$ac_c_werror_flag" || 9697 test ! -s conftest.err 9698 } && test -s conftest$ac_exeext && { 9699 test "$cross_compiling" = yes || 9700 $as_test_x conftest$ac_exeext 9701 }; then 9702 9703lt_aix_libpath_sed=' 9704 /Import File Strings/,/^$/ { 9705 /^0/ { 9706 s/^0 *\(.*\)$/\1/ 9707 p 9708 } 9709 }' 9710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9711# Check for a 64-bit object if we didn't find anything. 9712if test -z "$aix_libpath"; then 9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9714fi 9715else 9716 $as_echo "$as_me: failed program was:" >&5 9717sed 's/^/| /' conftest.$ac_ext >&5 9718 9719 9720fi 9721 9722rm -rf conftest.dSYM 9723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9724 conftest$ac_exeext conftest.$ac_ext 9725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9726 9727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9728 # Warning - without using the other run time loading flags, 9729 # -berok will link without error, but may produce a broken library. 9730 no_undefined_flag=' ${wl}-bernotok' 9731 allow_undefined_flag=' ${wl}-berok' 9732 # Exported symbols can be pulled into shared objects from archives 9733 whole_archive_flag_spec='$convenience' 9734 archive_cmds_need_lc=yes 9735 # This is similar to how AIX traditionally builds its shared libraries. 9736 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' 9737 fi 9738 fi 9739 ;; 9740 9741 amigaos*) 9742 case $host_cpu in 9743 powerpc) 9744 # see comment about AmigaOS4 .so support 9745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9746 archive_expsym_cmds='' 9747 ;; 9748 m68k) 9749 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)' 9750 hardcode_libdir_flag_spec='-L$libdir' 9751 hardcode_minus_L=yes 9752 ;; 9753 esac 9754 ;; 9755 9756 bsdi[45]*) 9757 export_dynamic_flag_spec=-rdynamic 9758 ;; 9759 9760 cygwin* | mingw* | pw32* | cegcc*) 9761 # When not using gcc, we currently assume that we are using 9762 # Microsoft Visual C++. 9763 # hardcode_libdir_flag_spec is actually meaningless, as there is 9764 # no search path for DLLs. 9765 hardcode_libdir_flag_spec=' ' 9766 allow_undefined_flag=unsupported 9767 # Tell ltmain to make .lib files, not .a files. 9768 libext=lib 9769 # Tell ltmain to make .dll files, not .so files. 9770 shrext_cmds=".dll" 9771 # FIXME: Setting linknames here is a bad hack. 9772 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9773 # The linker will automatically build a .lib file if we build a DLL. 9774 old_archive_from_new_cmds='true' 9775 # FIXME: Should let the user specify the lib program. 9776 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9777 fix_srcfile_path='`cygpath -w "$srcfile"`' 9778 enable_shared_with_static_runtimes=yes 9779 ;; 9780 9781 darwin* | rhapsody*) 9782 9783 9784 archive_cmds_need_lc=no 9785 hardcode_direct=no 9786 hardcode_automatic=yes 9787 hardcode_shlibpath_var=unsupported 9788 whole_archive_flag_spec='' 9789 link_all_deplibs=yes 9790 allow_undefined_flag="$_lt_dar_allow_undefined" 9791 case $cc_basename in 9792 ifort*) _lt_dar_can_shared=yes ;; 9793 *) _lt_dar_can_shared=$GCC ;; 9794 esac 9795 if test "$_lt_dar_can_shared" = "yes"; then 9796 output_verbose_link_cmd=echo 9797 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9798 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9799 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}" 9800 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}" 9801 9802 else 9803 ld_shlibs=no 9804 fi 9805 9806 ;; 9807 9808 dgux*) 9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9810 hardcode_libdir_flag_spec='-L$libdir' 9811 hardcode_shlibpath_var=no 9812 ;; 9813 9814 freebsd1*) 9815 ld_shlibs=no 9816 ;; 9817 9818 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9819 # support. Future versions do this automatically, but an explicit c++rt0.o 9820 # does not break anything, and helps significantly (at the cost of a little 9821 # extra space). 9822 freebsd2.2*) 9823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9824 hardcode_libdir_flag_spec='-R$libdir' 9825 hardcode_direct=yes 9826 hardcode_shlibpath_var=no 9827 ;; 9828 9829 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9830 freebsd2*) 9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9832 hardcode_direct=yes 9833 hardcode_minus_L=yes 9834 hardcode_shlibpath_var=no 9835 ;; 9836 9837 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9838 freebsd* | dragonfly*) 9839 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9840 hardcode_libdir_flag_spec='-R$libdir' 9841 hardcode_direct=yes 9842 hardcode_shlibpath_var=no 9843 ;; 9844 9845 hpux9*) 9846 if test "$GCC" = yes; then 9847 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' 9848 else 9849 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' 9850 fi 9851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9852 hardcode_libdir_separator=: 9853 hardcode_direct=yes 9854 9855 # hardcode_minus_L: Not really in the search PATH, 9856 # but as the default location of the library. 9857 hardcode_minus_L=yes 9858 export_dynamic_flag_spec='${wl}-E' 9859 ;; 9860 9861 hpux10*) 9862 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9863 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9864 else 9865 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9866 fi 9867 if test "$with_gnu_ld" = no; then 9868 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9869 hardcode_libdir_flag_spec_ld='+b $libdir' 9870 hardcode_libdir_separator=: 9871 hardcode_direct=yes 9872 hardcode_direct_absolute=yes 9873 export_dynamic_flag_spec='${wl}-E' 9874 # hardcode_minus_L: Not really in the search PATH, 9875 # but as the default location of the library. 9876 hardcode_minus_L=yes 9877 fi 9878 ;; 9879 9880 hpux11*) 9881 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9882 case $host_cpu in 9883 hppa*64*) 9884 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9885 ;; 9886 ia64*) 9887 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9888 ;; 9889 *) 9890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9891 ;; 9892 esac 9893 else 9894 case $host_cpu in 9895 hppa*64*) 9896 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9897 ;; 9898 ia64*) 9899 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9900 ;; 9901 *) 9902 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9903 ;; 9904 esac 9905 fi 9906 if test "$with_gnu_ld" = no; then 9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9908 hardcode_libdir_separator=: 9909 9910 case $host_cpu in 9911 hppa*64*|ia64*) 9912 hardcode_direct=no 9913 hardcode_shlibpath_var=no 9914 ;; 9915 *) 9916 hardcode_direct=yes 9917 hardcode_direct_absolute=yes 9918 export_dynamic_flag_spec='${wl}-E' 9919 9920 # hardcode_minus_L: Not really in the search PATH, 9921 # but as the default location of the library. 9922 hardcode_minus_L=yes 9923 ;; 9924 esac 9925 fi 9926 ;; 9927 9928 irix5* | irix6* | nonstopux*) 9929 if test "$GCC" = yes; then 9930 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' 9931 # Try to use the -exported_symbol ld option, if it does not 9932 # work, assume that -exports_file does not work either and 9933 # implicitly export all symbols. 9934 save_LDFLAGS="$LDFLAGS" 9935 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9936 cat >conftest.$ac_ext <<_ACEOF 9937int foo(void) {} 9938_ACEOF 9939rm -f conftest.$ac_objext conftest$ac_exeext 9940if { (ac_try="$ac_link" 9941case "(($ac_try" in 9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9943 *) ac_try_echo=$ac_try;; 9944esac 9945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9946$as_echo "$ac_try_echo") >&5 9947 (eval "$ac_link") 2>conftest.er1 9948 ac_status=$? 9949 grep -v '^ *+' conftest.er1 >conftest.err 9950 rm -f conftest.er1 9951 cat conftest.err >&5 9952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9953 (exit $ac_status); } && { 9954 test -z "$ac_c_werror_flag" || 9955 test ! -s conftest.err 9956 } && test -s conftest$ac_exeext && { 9957 test "$cross_compiling" = yes || 9958 $as_test_x conftest$ac_exeext 9959 }; then 9960 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' 9961 9962else 9963 $as_echo "$as_me: failed program was:" >&5 9964sed 's/^/| /' conftest.$ac_ext >&5 9965 9966 9967fi 9968 9969rm -rf conftest.dSYM 9970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9971 conftest$ac_exeext conftest.$ac_ext 9972 LDFLAGS="$save_LDFLAGS" 9973 else 9974 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' 9975 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' 9976 fi 9977 archive_cmds_need_lc='no' 9978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9979 hardcode_libdir_separator=: 9980 inherit_rpath=yes 9981 link_all_deplibs=yes 9982 ;; 9983 9984 netbsd* | netbsdelf*-gnu) 9985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9987 else 9988 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9989 fi 9990 hardcode_libdir_flag_spec='-R$libdir' 9991 hardcode_direct=yes 9992 hardcode_shlibpath_var=no 9993 ;; 9994 9995 newsos6) 9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9997 hardcode_direct=yes 9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9999 hardcode_libdir_separator=: 10000 hardcode_shlibpath_var=no 10001 ;; 10002 10003 *nto* | *qnx*) 10004 ;; 10005 10006 openbsd*) 10007 if test -f /usr/libexec/ld.so; then 10008 hardcode_direct=yes 10009 hardcode_shlibpath_var=no 10010 hardcode_direct_absolute=yes 10011 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10013 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10015 export_dynamic_flag_spec='${wl}-E' 10016 else 10017 case $host_os in 10018 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10020 hardcode_libdir_flag_spec='-R$libdir' 10021 ;; 10022 *) 10023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10024 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10025 ;; 10026 esac 10027 fi 10028 else 10029 ld_shlibs=no 10030 fi 10031 ;; 10032 10033 os2*) 10034 hardcode_libdir_flag_spec='-L$libdir' 10035 hardcode_minus_L=yes 10036 allow_undefined_flag=unsupported 10037 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' 10038 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10039 ;; 10040 10041 osf3*) 10042 if test "$GCC" = yes; then 10043 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10044 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' 10045 else 10046 allow_undefined_flag=' -expect_unresolved \*' 10047 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' 10048 fi 10049 archive_cmds_need_lc='no' 10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10051 hardcode_libdir_separator=: 10052 ;; 10053 10054 osf4* | osf5*) # as osf3* with the addition of -msym flag 10055 if test "$GCC" = yes; then 10056 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10057 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' 10058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10059 else 10060 allow_undefined_flag=' -expect_unresolved \*' 10061 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' 10062 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~ 10063 $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' 10064 10065 # Both c and cxx compiler support -rpath directly 10066 hardcode_libdir_flag_spec='-rpath $libdir' 10067 fi 10068 archive_cmds_need_lc='no' 10069 hardcode_libdir_separator=: 10070 ;; 10071 10072 solaris*) 10073 no_undefined_flag=' -z defs' 10074 if test "$GCC" = yes; then 10075 wlarc='${wl}' 10076 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10078 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10079 else 10080 case `$CC -V 2>&1` in 10081 *"Compilers 5.0"*) 10082 wlarc='' 10083 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10086 ;; 10087 *) 10088 wlarc='${wl}' 10089 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10091 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10092 ;; 10093 esac 10094 fi 10095 hardcode_libdir_flag_spec='-R$libdir' 10096 hardcode_shlibpath_var=no 10097 case $host_os in 10098 solaris2.[0-5] | solaris2.[0-5].*) ;; 10099 *) 10100 # The compiler driver will combine and reorder linker options, 10101 # but understands `-z linker_flag'. GCC discards it without `$wl', 10102 # but is careful enough not to reorder. 10103 # Supported since Solaris 2.6 (maybe 2.5.1?) 10104 if test "$GCC" = yes; then 10105 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10106 else 10107 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10108 fi 10109 ;; 10110 esac 10111 link_all_deplibs=yes 10112 ;; 10113 10114 sunos4*) 10115 if test "x$host_vendor" = xsequent; then 10116 # Use $CC to link under sequent, because it throws in some extra .o 10117 # files that make .init and .fini sections work. 10118 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10119 else 10120 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10121 fi 10122 hardcode_libdir_flag_spec='-L$libdir' 10123 hardcode_direct=yes 10124 hardcode_minus_L=yes 10125 hardcode_shlibpath_var=no 10126 ;; 10127 10128 sysv4) 10129 case $host_vendor in 10130 sni) 10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10132 hardcode_direct=yes # is this really true??? 10133 ;; 10134 siemens) 10135 ## LD is ld it makes a PLAMLIB 10136 ## CC just makes a GrossModule. 10137 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10138 reload_cmds='$CC -r -o $output$reload_objs' 10139 hardcode_direct=no 10140 ;; 10141 motorola) 10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10143 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10144 ;; 10145 esac 10146 runpath_var='LD_RUN_PATH' 10147 hardcode_shlibpath_var=no 10148 ;; 10149 10150 sysv4.3*) 10151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10152 hardcode_shlibpath_var=no 10153 export_dynamic_flag_spec='-Bexport' 10154 ;; 10155 10156 sysv4*MP*) 10157 if test -d /usr/nec; then 10158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10159 hardcode_shlibpath_var=no 10160 runpath_var=LD_RUN_PATH 10161 hardcode_runpath_var=yes 10162 ld_shlibs=yes 10163 fi 10164 ;; 10165 10166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10167 no_undefined_flag='${wl}-z,text' 10168 archive_cmds_need_lc=no 10169 hardcode_shlibpath_var=no 10170 runpath_var='LD_RUN_PATH' 10171 10172 if test "$GCC" = yes; then 10173 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10174 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10175 else 10176 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10177 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10178 fi 10179 ;; 10180 10181 sysv5* | sco3.2v5* | sco5v6*) 10182 # Note: We can NOT use -z defs as we might desire, because we do not 10183 # link with -lc, and that would cause any symbols used from libc to 10184 # always be unresolved, which means just about no library would 10185 # ever link correctly. If we're not using GNU ld we use -z text 10186 # though, which does catch some bad symbols but isn't as heavy-handed 10187 # as -z defs. 10188 no_undefined_flag='${wl}-z,text' 10189 allow_undefined_flag='${wl}-z,nodefs' 10190 archive_cmds_need_lc=no 10191 hardcode_shlibpath_var=no 10192 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10193 hardcode_libdir_separator=':' 10194 link_all_deplibs=yes 10195 export_dynamic_flag_spec='${wl}-Bexport' 10196 runpath_var='LD_RUN_PATH' 10197 10198 if test "$GCC" = yes; then 10199 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10200 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10201 else 10202 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10203 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10204 fi 10205 ;; 10206 10207 uts4*) 10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10209 hardcode_libdir_flag_spec='-L$libdir' 10210 hardcode_shlibpath_var=no 10211 ;; 10212 10213 *) 10214 ld_shlibs=no 10215 ;; 10216 esac 10217 10218 if test x$host_vendor = xsni; then 10219 case $host in 10220 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10221 export_dynamic_flag_spec='${wl}-Blargedynsym' 10222 ;; 10223 esac 10224 fi 10225 fi 10226 10227{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10228$as_echo "$ld_shlibs" >&6; } 10229test "$ld_shlibs" = no && can_build_shared=no 10230 10231with_gnu_ld=$with_gnu_ld 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247# 10248# Do we need to explicitly link libc? 10249# 10250case "x$archive_cmds_need_lc" in 10251x|xyes) 10252 # Assume -lc should be added 10253 archive_cmds_need_lc=yes 10254 10255 if test "$enable_shared" = yes && test "$GCC" = yes; then 10256 case $archive_cmds in 10257 *'~'*) 10258 # FIXME: we may have to deal with multi-command sequences. 10259 ;; 10260 '$CC '*) 10261 # Test whether the compiler implicitly links with -lc since on some 10262 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10263 # to ld, don't add -lc before -lgcc. 10264 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10265$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10266 $RM conftest* 10267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10268 10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10270 (eval $ac_compile) 2>&5 10271 ac_status=$? 10272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10273 (exit $ac_status); } 2>conftest.err; then 10274 soname=conftest 10275 lib=conftest 10276 libobjs=conftest.$ac_objext 10277 deplibs= 10278 wl=$lt_prog_compiler_wl 10279 pic_flag=$lt_prog_compiler_pic 10280 compiler_flags=-v 10281 linker_flags=-v 10282 verstring= 10283 output_objdir=. 10284 libname=conftest 10285 lt_save_allow_undefined_flag=$allow_undefined_flag 10286 allow_undefined_flag= 10287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10288 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10289 ac_status=$? 10290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10291 (exit $ac_status); } 10292 then 10293 archive_cmds_need_lc=no 10294 else 10295 archive_cmds_need_lc=yes 10296 fi 10297 allow_undefined_flag=$lt_save_allow_undefined_flag 10298 else 10299 cat conftest.err 1>&5 10300 fi 10301 $RM conftest* 10302 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10303$as_echo "$archive_cmds_need_lc" >&6; } 10304 ;; 10305 esac 10306 fi 10307 ;; 10308esac 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10467$as_echo_n "checking dynamic linker characteristics... " >&6; } 10468 10469if test "$GCC" = yes; then 10470 case $host_os in 10471 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10472 *) lt_awk_arg="/^libraries:/" ;; 10473 esac 10474 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10475 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10476 # if the path contains ";" then we assume it to be the separator 10477 # otherwise default to the standard path separator (i.e. ":") - it is 10478 # assumed that no part of a normal pathname contains ";" but that should 10479 # okay in the real world where ";" in dirpaths is itself problematic. 10480 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10481 else 10482 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10483 fi 10484 # Ok, now we have the path, separated by spaces, we can step through it 10485 # and add multilib dir if necessary. 10486 lt_tmp_lt_search_path_spec= 10487 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10488 for lt_sys_path in $lt_search_path_spec; do 10489 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10491 else 10492 test -d "$lt_sys_path" && \ 10493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10494 fi 10495 done 10496 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10497BEGIN {RS=" "; FS="/|\n";} { 10498 lt_foo=""; 10499 lt_count=0; 10500 for (lt_i = NF; lt_i > 0; lt_i--) { 10501 if ($lt_i != "" && $lt_i != ".") { 10502 if ($lt_i == "..") { 10503 lt_count++; 10504 } else { 10505 if (lt_count == 0) { 10506 lt_foo="/" $lt_i lt_foo; 10507 } else { 10508 lt_count--; 10509 } 10510 } 10511 } 10512 } 10513 if (lt_foo != "") { lt_freq[lt_foo]++; } 10514 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10515}'` 10516 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10517else 10518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10519fi 10520library_names_spec= 10521libname_spec='lib$name' 10522soname_spec= 10523shrext_cmds=".so" 10524postinstall_cmds= 10525postuninstall_cmds= 10526finish_cmds= 10527finish_eval= 10528shlibpath_var= 10529shlibpath_overrides_runpath=unknown 10530version_type=none 10531dynamic_linker="$host_os ld.so" 10532sys_lib_dlsearch_path_spec="/lib /usr/lib" 10533need_lib_prefix=unknown 10534hardcode_into_libs=no 10535 10536# when you set need_version to no, make sure it does not cause -set_version 10537# flags to be left without arguments 10538need_version=unknown 10539 10540case $host_os in 10541aix3*) 10542 version_type=linux 10543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10544 shlibpath_var=LIBPATH 10545 10546 # AIX 3 has no versioning support, so we append a major version to the name. 10547 soname_spec='${libname}${release}${shared_ext}$major' 10548 ;; 10549 10550aix[4-9]*) 10551 version_type=linux 10552 need_lib_prefix=no 10553 need_version=no 10554 hardcode_into_libs=yes 10555 if test "$host_cpu" = ia64; then 10556 # AIX 5 supports IA64 10557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10558 shlibpath_var=LD_LIBRARY_PATH 10559 else 10560 # With GCC up to 2.95.x, collect2 would create an import file 10561 # for dependence libraries. The import file would start with 10562 # the line `#! .'. This would cause the generated library to 10563 # depend on `.', always an invalid library. This was fixed in 10564 # development snapshots of GCC prior to 3.0. 10565 case $host_os in 10566 aix4 | aix4.[01] | aix4.[01].*) 10567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10568 echo ' yes ' 10569 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10570 : 10571 else 10572 can_build_shared=no 10573 fi 10574 ;; 10575 esac 10576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10577 # soname into executable. Probably we can add versioning support to 10578 # collect2, so additional links can be useful in future. 10579 if test "$aix_use_runtimelinking" = yes; then 10580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10581 # instead of lib<name>.a to let people know that these are not 10582 # typical AIX shared libraries. 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10584 else 10585 # We preserve .a as extension for shared libraries through AIX4.2 10586 # and later when we are not doing run time linking. 10587 library_names_spec='${libname}${release}.a $libname.a' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 fi 10590 shlibpath_var=LIBPATH 10591 fi 10592 ;; 10593 10594amigaos*) 10595 case $host_cpu in 10596 powerpc) 10597 # Since July 2007 AmigaOS4 officially supports .so libraries. 10598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10600 ;; 10601 m68k) 10602 library_names_spec='$libname.ixlibrary $libname.a' 10603 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10604 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' 10605 ;; 10606 esac 10607 ;; 10608 10609beos*) 10610 library_names_spec='${libname}${shared_ext}' 10611 dynamic_linker="$host_os ld.so" 10612 shlibpath_var=LIBRARY_PATH 10613 ;; 10614 10615bsdi[45]*) 10616 version_type=linux 10617 need_version=no 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10621 shlibpath_var=LD_LIBRARY_PATH 10622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10624 # the default ld.so.conf also contains /usr/contrib/lib and 10625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10626 # libtool to hard-code these into programs 10627 ;; 10628 10629cygwin* | mingw* | pw32* | cegcc*) 10630 version_type=windows 10631 shrext_cmds=".dll" 10632 need_version=no 10633 need_lib_prefix=no 10634 10635 case $GCC,$host_os in 10636 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10637 library_names_spec='$libname.dll.a' 10638 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10639 postinstall_cmds='base_file=`basename \${file}`~ 10640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10641 dldir=$destdir/`dirname \$dlpath`~ 10642 test -d \$dldir || mkdir -p \$dldir~ 10643 $install_prog $dir/$dlname \$dldir/$dlname~ 10644 chmod a+x \$dldir/$dlname~ 10645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10647 fi' 10648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10649 dlpath=$dir/\$dldll~ 10650 $RM \$dlpath' 10651 shlibpath_overrides_runpath=yes 10652 10653 case $host_os in 10654 cygwin*) 10655 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10658 ;; 10659 mingw* | cegcc*) 10660 # MinGW DLLs use traditional 'lib' prefix 10661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10662 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10663 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10664 # It is most probably a Windows format PATH printed by 10665 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10666 # path with ; separators, and with drive letters. We can handle the 10667 # drive letters (cygwin fileutils understands them), so leave them, 10668 # especially as we might pass files found there to a mingw objdump, 10669 # which wouldn't understand a cygwinified path. Ahh. 10670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10671 else 10672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10673 fi 10674 ;; 10675 pw32*) 10676 # pw32 DLLs use 'pw' prefix rather than 'lib' 10677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10678 ;; 10679 esac 10680 ;; 10681 10682 *) 10683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10684 ;; 10685 esac 10686 dynamic_linker='Win32 ld.exe' 10687 # FIXME: first we should search . and the directory the executable is in 10688 shlibpath_var=PATH 10689 ;; 10690 10691darwin* | rhapsody*) 10692 dynamic_linker="$host_os dyld" 10693 version_type=darwin 10694 need_lib_prefix=no 10695 need_version=no 10696 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10697 soname_spec='${libname}${release}${major}$shared_ext' 10698 shlibpath_overrides_runpath=yes 10699 shlibpath_var=DYLD_LIBRARY_PATH 10700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10701 10702 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10704 ;; 10705 10706dgux*) 10707 version_type=linux 10708 need_lib_prefix=no 10709 need_version=no 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10711 soname_spec='${libname}${release}${shared_ext}$major' 10712 shlibpath_var=LD_LIBRARY_PATH 10713 ;; 10714 10715freebsd1*) 10716 dynamic_linker=no 10717 ;; 10718 10719freebsd* | dragonfly*) 10720 # DragonFly does not have aout. When/if they implement a new 10721 # versioning mechanism, adjust this. 10722 if test -x /usr/bin/objformat; then 10723 objformat=`/usr/bin/objformat` 10724 else 10725 case $host_os in 10726 freebsd[123]*) objformat=aout ;; 10727 *) objformat=elf ;; 10728 esac 10729 fi 10730 version_type=freebsd-$objformat 10731 case $version_type in 10732 freebsd-elf*) 10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10734 need_version=no 10735 need_lib_prefix=no 10736 ;; 10737 freebsd-*) 10738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10739 need_version=yes 10740 ;; 10741 esac 10742 shlibpath_var=LD_LIBRARY_PATH 10743 case $host_os in 10744 freebsd2*) 10745 shlibpath_overrides_runpath=yes 10746 ;; 10747 freebsd3.[01]* | freebsdelf3.[01]*) 10748 shlibpath_overrides_runpath=yes 10749 hardcode_into_libs=yes 10750 ;; 10751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10753 shlibpath_overrides_runpath=no 10754 hardcode_into_libs=yes 10755 ;; 10756 *) # from 4.6 on, and DragonFly 10757 shlibpath_overrides_runpath=yes 10758 hardcode_into_libs=yes 10759 ;; 10760 esac 10761 ;; 10762 10763gnu*) 10764 version_type=linux 10765 need_lib_prefix=no 10766 need_version=no 10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10768 soname_spec='${libname}${release}${shared_ext}$major' 10769 shlibpath_var=LD_LIBRARY_PATH 10770 hardcode_into_libs=yes 10771 ;; 10772 10773hpux9* | hpux10* | hpux11*) 10774 # Give a soname corresponding to the major version so that dld.sl refuses to 10775 # link against other versions. 10776 version_type=sunos 10777 need_lib_prefix=no 10778 need_version=no 10779 case $host_cpu in 10780 ia64*) 10781 shrext_cmds='.so' 10782 hardcode_into_libs=yes 10783 dynamic_linker="$host_os dld.so" 10784 shlibpath_var=LD_LIBRARY_PATH 10785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10787 soname_spec='${libname}${release}${shared_ext}$major' 10788 if test "X$HPUX_IA64_MODE" = X32; then 10789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10790 else 10791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10792 fi 10793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10794 ;; 10795 hppa*64*) 10796 shrext_cmds='.sl' 10797 hardcode_into_libs=yes 10798 dynamic_linker="$host_os dld.sl" 10799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10802 soname_spec='${libname}${release}${shared_ext}$major' 10803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10805 ;; 10806 *) 10807 shrext_cmds='.sl' 10808 dynamic_linker="$host_os dld.sl" 10809 shlibpath_var=SHLIB_PATH 10810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 ;; 10814 esac 10815 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10816 postinstall_cmds='chmod 555 $lib' 10817 ;; 10818 10819interix[3-9]*) 10820 version_type=linux 10821 need_lib_prefix=no 10822 need_version=no 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10824 soname_spec='${libname}${release}${shared_ext}$major' 10825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10826 shlibpath_var=LD_LIBRARY_PATH 10827 shlibpath_overrides_runpath=no 10828 hardcode_into_libs=yes 10829 ;; 10830 10831irix5* | irix6* | nonstopux*) 10832 case $host_os in 10833 nonstopux*) version_type=nonstopux ;; 10834 *) 10835 if test "$lt_cv_prog_gnu_ld" = yes; then 10836 version_type=linux 10837 else 10838 version_type=irix 10839 fi ;; 10840 esac 10841 need_lib_prefix=no 10842 need_version=no 10843 soname_spec='${libname}${release}${shared_ext}$major' 10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10845 case $host_os in 10846 irix5* | nonstopux*) 10847 libsuff= shlibsuff= 10848 ;; 10849 *) 10850 case $LD in # libtool.m4 will add one of these switches to LD 10851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10852 libsuff= shlibsuff= libmagic=32-bit;; 10853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10854 libsuff=32 shlibsuff=N32 libmagic=N32;; 10855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10856 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10857 *) libsuff= shlibsuff= libmagic=never-match;; 10858 esac 10859 ;; 10860 esac 10861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10862 shlibpath_overrides_runpath=no 10863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10865 hardcode_into_libs=yes 10866 ;; 10867 10868# No shared lib support for Linux oldld, aout, or coff. 10869linux*oldld* | linux*aout* | linux*coff*) 10870 dynamic_linker=no 10871 ;; 10872 10873# This must be Linux ELF. 10874linux* | k*bsd*-gnu) 10875 version_type=linux 10876 need_lib_prefix=no 10877 need_version=no 10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10879 soname_spec='${libname}${release}${shared_ext}$major' 10880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10881 shlibpath_var=LD_LIBRARY_PATH 10882 shlibpath_overrides_runpath=no 10883 # Some binutils ld are patched to set DT_RUNPATH 10884 save_LDFLAGS=$LDFLAGS 10885 save_libdir=$libdir 10886 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10887 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10888 cat >conftest.$ac_ext <<_ACEOF 10889/* confdefs.h. */ 10890_ACEOF 10891cat confdefs.h >>conftest.$ac_ext 10892cat >>conftest.$ac_ext <<_ACEOF 10893/* end confdefs.h. */ 10894 10895int 10896main () 10897{ 10898 10899 ; 10900 return 0; 10901} 10902_ACEOF 10903rm -f conftest.$ac_objext conftest$ac_exeext 10904if { (ac_try="$ac_link" 10905case "(($ac_try" in 10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10907 *) ac_try_echo=$ac_try;; 10908esac 10909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10910$as_echo "$ac_try_echo") >&5 10911 (eval "$ac_link") 2>conftest.er1 10912 ac_status=$? 10913 grep -v '^ *+' conftest.er1 >conftest.err 10914 rm -f conftest.er1 10915 cat conftest.err >&5 10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10917 (exit $ac_status); } && { 10918 test -z "$ac_c_werror_flag" || 10919 test ! -s conftest.err 10920 } && test -s conftest$ac_exeext && { 10921 test "$cross_compiling" = yes || 10922 $as_test_x conftest$ac_exeext 10923 }; then 10924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10925 shlibpath_overrides_runpath=yes 10926fi 10927 10928else 10929 $as_echo "$as_me: failed program was:" >&5 10930sed 's/^/| /' conftest.$ac_ext >&5 10931 10932 10933fi 10934 10935rm -rf conftest.dSYM 10936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10937 conftest$ac_exeext conftest.$ac_ext 10938 LDFLAGS=$save_LDFLAGS 10939 libdir=$save_libdir 10940 10941 # This implies no fast_install, which is unacceptable. 10942 # Some rework will be needed to allow for fast_install 10943 # before this can be enabled. 10944 hardcode_into_libs=yes 10945 10946 # Append ld.so.conf contents to the search path 10947 if test -f /etc/ld.so.conf; then 10948 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' ' '` 10949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10950 fi 10951 10952 # We used to test for /lib/ld.so.1 and disable shared libraries on 10953 # powerpc, because MkLinux only supported shared libraries with the 10954 # GNU dynamic linker. Since this was broken with cross compilers, 10955 # most powerpc-linux boxes support dynamic linking these days and 10956 # people can always --disable-shared, the test was removed, and we 10957 # assume the GNU/Linux dynamic linker is in use. 10958 dynamic_linker='GNU/Linux ld.so' 10959 ;; 10960 10961netbsdelf*-gnu) 10962 version_type=linux 10963 need_lib_prefix=no 10964 need_version=no 10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10966 soname_spec='${libname}${release}${shared_ext}$major' 10967 shlibpath_var=LD_LIBRARY_PATH 10968 shlibpath_overrides_runpath=no 10969 hardcode_into_libs=yes 10970 dynamic_linker='NetBSD ld.elf_so' 10971 ;; 10972 10973netbsd*) 10974 version_type=sunos 10975 need_lib_prefix=no 10976 need_version=no 10977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10980 dynamic_linker='NetBSD (a.out) ld.so' 10981 else 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10983 soname_spec='${libname}${release}${shared_ext}$major' 10984 dynamic_linker='NetBSD ld.elf_so' 10985 fi 10986 shlibpath_var=LD_LIBRARY_PATH 10987 shlibpath_overrides_runpath=yes 10988 hardcode_into_libs=yes 10989 ;; 10990 10991newsos6) 10992 version_type=linux 10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10994 shlibpath_var=LD_LIBRARY_PATH 10995 shlibpath_overrides_runpath=yes 10996 ;; 10997 10998*nto* | *qnx*) 10999 version_type=qnx 11000 need_lib_prefix=no 11001 need_version=no 11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11003 soname_spec='${libname}${release}${shared_ext}$major' 11004 shlibpath_var=LD_LIBRARY_PATH 11005 shlibpath_overrides_runpath=no 11006 hardcode_into_libs=yes 11007 dynamic_linker='ldqnx.so' 11008 ;; 11009 11010openbsd*) 11011 version_type=sunos 11012 sys_lib_dlsearch_path_spec="/usr/lib" 11013 need_lib_prefix=no 11014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11015 case $host_os in 11016 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11017 *) need_version=no ;; 11018 esac 11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11021 shlibpath_var=LD_LIBRARY_PATH 11022 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11023 case $host_os in 11024 openbsd2.[89] | openbsd2.[89].*) 11025 shlibpath_overrides_runpath=no 11026 ;; 11027 *) 11028 shlibpath_overrides_runpath=yes 11029 ;; 11030 esac 11031 else 11032 shlibpath_overrides_runpath=yes 11033 fi 11034 ;; 11035 11036os2*) 11037 libname_spec='$name' 11038 shrext_cmds=".dll" 11039 need_lib_prefix=no 11040 library_names_spec='$libname${shared_ext} $libname.a' 11041 dynamic_linker='OS/2 ld.exe' 11042 shlibpath_var=LIBPATH 11043 ;; 11044 11045osf3* | osf4* | osf5*) 11046 version_type=osf 11047 need_lib_prefix=no 11048 need_version=no 11049 soname_spec='${libname}${release}${shared_ext}$major' 11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11051 shlibpath_var=LD_LIBRARY_PATH 11052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11054 ;; 11055 11056rdos*) 11057 dynamic_linker=no 11058 ;; 11059 11060solaris*) 11061 version_type=linux 11062 need_lib_prefix=no 11063 need_version=no 11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11065 soname_spec='${libname}${release}${shared_ext}$major' 11066 shlibpath_var=LD_LIBRARY_PATH 11067 shlibpath_overrides_runpath=yes 11068 hardcode_into_libs=yes 11069 # ldd complains unless libraries are executable 11070 postinstall_cmds='chmod +x $lib' 11071 ;; 11072 11073sunos4*) 11074 version_type=sunos 11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11077 shlibpath_var=LD_LIBRARY_PATH 11078 shlibpath_overrides_runpath=yes 11079 if test "$with_gnu_ld" = yes; then 11080 need_lib_prefix=no 11081 fi 11082 need_version=yes 11083 ;; 11084 11085sysv4 | sysv4.3*) 11086 version_type=linux 11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11088 soname_spec='${libname}${release}${shared_ext}$major' 11089 shlibpath_var=LD_LIBRARY_PATH 11090 case $host_vendor in 11091 sni) 11092 shlibpath_overrides_runpath=no 11093 need_lib_prefix=no 11094 runpath_var=LD_RUN_PATH 11095 ;; 11096 siemens) 11097 need_lib_prefix=no 11098 ;; 11099 motorola) 11100 need_lib_prefix=no 11101 need_version=no 11102 shlibpath_overrides_runpath=no 11103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11104 ;; 11105 esac 11106 ;; 11107 11108sysv4*MP*) 11109 if test -d /usr/nec ;then 11110 version_type=linux 11111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11112 soname_spec='$libname${shared_ext}.$major' 11113 shlibpath_var=LD_LIBRARY_PATH 11114 fi 11115 ;; 11116 11117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11118 version_type=freebsd-elf 11119 need_lib_prefix=no 11120 need_version=no 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 shlibpath_overrides_runpath=yes 11125 hardcode_into_libs=yes 11126 if test "$with_gnu_ld" = yes; then 11127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11128 else 11129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11130 case $host_os in 11131 sco3.2v5*) 11132 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11133 ;; 11134 esac 11135 fi 11136 sys_lib_dlsearch_path_spec='/usr/lib' 11137 ;; 11138 11139tpf*) 11140 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11141 version_type=linux 11142 need_lib_prefix=no 11143 need_version=no 11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11145 shlibpath_var=LD_LIBRARY_PATH 11146 shlibpath_overrides_runpath=no 11147 hardcode_into_libs=yes 11148 ;; 11149 11150uts4*) 11151 version_type=linux 11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11153 soname_spec='${libname}${release}${shared_ext}$major' 11154 shlibpath_var=LD_LIBRARY_PATH 11155 ;; 11156 11157*) 11158 dynamic_linker=no 11159 ;; 11160esac 11161{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11162$as_echo "$dynamic_linker" >&6; } 11163test "$dynamic_linker" = no && can_build_shared=no 11164 11165variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11166if test "$GCC" = yes; then 11167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11168fi 11169 11170if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11171 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11172fi 11173if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11174 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11175fi 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11264$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11265hardcode_action= 11266if test -n "$hardcode_libdir_flag_spec" || 11267 test -n "$runpath_var" || 11268 test "X$hardcode_automatic" = "Xyes" ; then 11269 11270 # We can hardcode non-existent directories. 11271 if test "$hardcode_direct" != no && 11272 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11273 # have to relink, otherwise we might link with an installed library 11274 # when we should be linking with a yet-to-be-installed one 11275 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11276 test "$hardcode_minus_L" != no; then 11277 # Linking always hardcodes the temporary library directory. 11278 hardcode_action=relink 11279 else 11280 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11281 hardcode_action=immediate 11282 fi 11283else 11284 # We cannot hardcode anything, or else we can only hardcode existing 11285 # directories. 11286 hardcode_action=unsupported 11287fi 11288{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11289$as_echo "$hardcode_action" >&6; } 11290 11291if test "$hardcode_action" = relink || 11292 test "$inherit_rpath" = yes; then 11293 # Fast installation is not supported 11294 enable_fast_install=no 11295elif test "$shlibpath_overrides_runpath" = yes || 11296 test "$enable_shared" = no; then 11297 # Fast installation is not necessary 11298 enable_fast_install=needless 11299fi 11300 11301 11302 11303 11304 11305 11306 if test "x$enable_dlopen" != xyes; then 11307 enable_dlopen=unknown 11308 enable_dlopen_self=unknown 11309 enable_dlopen_self_static=unknown 11310else 11311 lt_cv_dlopen=no 11312 lt_cv_dlopen_libs= 11313 11314 case $host_os in 11315 beos*) 11316 lt_cv_dlopen="load_add_on" 11317 lt_cv_dlopen_libs= 11318 lt_cv_dlopen_self=yes 11319 ;; 11320 11321 mingw* | pw32* | cegcc*) 11322 lt_cv_dlopen="LoadLibrary" 11323 lt_cv_dlopen_libs= 11324 ;; 11325 11326 cygwin*) 11327 lt_cv_dlopen="dlopen" 11328 lt_cv_dlopen_libs= 11329 ;; 11330 11331 darwin*) 11332 # if libdl is installed we need to link against it 11333 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11334$as_echo_n "checking for dlopen in -ldl... " >&6; } 11335if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11336 $as_echo_n "(cached) " >&6 11337else 11338 ac_check_lib_save_LIBS=$LIBS 11339LIBS="-ldl $LIBS" 11340cat >conftest.$ac_ext <<_ACEOF 11341/* confdefs.h. */ 11342_ACEOF 11343cat confdefs.h >>conftest.$ac_ext 11344cat >>conftest.$ac_ext <<_ACEOF 11345/* end confdefs.h. */ 11346 11347/* Override any GCC internal prototype to avoid an error. 11348 Use char because int might match the return type of a GCC 11349 builtin and then its argument prototype would still apply. */ 11350#ifdef __cplusplus 11351extern "C" 11352#endif 11353char dlopen (); 11354int 11355main () 11356{ 11357return dlopen (); 11358 ; 11359 return 0; 11360} 11361_ACEOF 11362rm -f conftest.$ac_objext conftest$ac_exeext 11363if { (ac_try="$ac_link" 11364case "(($ac_try" in 11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11366 *) ac_try_echo=$ac_try;; 11367esac 11368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11369$as_echo "$ac_try_echo") >&5 11370 (eval "$ac_link") 2>conftest.er1 11371 ac_status=$? 11372 grep -v '^ *+' conftest.er1 >conftest.err 11373 rm -f conftest.er1 11374 cat conftest.err >&5 11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11376 (exit $ac_status); } && { 11377 test -z "$ac_c_werror_flag" || 11378 test ! -s conftest.err 11379 } && test -s conftest$ac_exeext && { 11380 test "$cross_compiling" = yes || 11381 $as_test_x conftest$ac_exeext 11382 }; then 11383 ac_cv_lib_dl_dlopen=yes 11384else 11385 $as_echo "$as_me: failed program was:" >&5 11386sed 's/^/| /' conftest.$ac_ext >&5 11387 11388 ac_cv_lib_dl_dlopen=no 11389fi 11390 11391rm -rf conftest.dSYM 11392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11393 conftest$ac_exeext conftest.$ac_ext 11394LIBS=$ac_check_lib_save_LIBS 11395fi 11396{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11397$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11398if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11400else 11401 11402 lt_cv_dlopen="dyld" 11403 lt_cv_dlopen_libs= 11404 lt_cv_dlopen_self=yes 11405 11406fi 11407 11408 ;; 11409 11410 *) 11411 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11412$as_echo_n "checking for shl_load... " >&6; } 11413if test "${ac_cv_func_shl_load+set}" = set; then 11414 $as_echo_n "(cached) " >&6 11415else 11416 cat >conftest.$ac_ext <<_ACEOF 11417/* confdefs.h. */ 11418_ACEOF 11419cat confdefs.h >>conftest.$ac_ext 11420cat >>conftest.$ac_ext <<_ACEOF 11421/* end confdefs.h. */ 11422/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11424#define shl_load innocuous_shl_load 11425 11426/* System header to define __stub macros and hopefully few prototypes, 11427 which can conflict with char shl_load (); below. 11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11429 <limits.h> exists even on freestanding compilers. */ 11430 11431#ifdef __STDC__ 11432# include <limits.h> 11433#else 11434# include <assert.h> 11435#endif 11436 11437#undef shl_load 11438 11439/* Override any GCC internal prototype to avoid an error. 11440 Use char because int might match the return type of a GCC 11441 builtin and then its argument prototype would still apply. */ 11442#ifdef __cplusplus 11443extern "C" 11444#endif 11445char shl_load (); 11446/* The GNU C library defines this for functions which it implements 11447 to always fail with ENOSYS. Some functions are actually named 11448 something starting with __ and the normal name is an alias. */ 11449#if defined __stub_shl_load || defined __stub___shl_load 11450choke me 11451#endif 11452 11453int 11454main () 11455{ 11456return shl_load (); 11457 ; 11458 return 0; 11459} 11460_ACEOF 11461rm -f conftest.$ac_objext conftest$ac_exeext 11462if { (ac_try="$ac_link" 11463case "(($ac_try" in 11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11465 *) ac_try_echo=$ac_try;; 11466esac 11467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11468$as_echo "$ac_try_echo") >&5 11469 (eval "$ac_link") 2>conftest.er1 11470 ac_status=$? 11471 grep -v '^ *+' conftest.er1 >conftest.err 11472 rm -f conftest.er1 11473 cat conftest.err >&5 11474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11475 (exit $ac_status); } && { 11476 test -z "$ac_c_werror_flag" || 11477 test ! -s conftest.err 11478 } && test -s conftest$ac_exeext && { 11479 test "$cross_compiling" = yes || 11480 $as_test_x conftest$ac_exeext 11481 }; then 11482 ac_cv_func_shl_load=yes 11483else 11484 $as_echo "$as_me: failed program was:" >&5 11485sed 's/^/| /' conftest.$ac_ext >&5 11486 11487 ac_cv_func_shl_load=no 11488fi 11489 11490rm -rf conftest.dSYM 11491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11492 conftest$ac_exeext conftest.$ac_ext 11493fi 11494{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11495$as_echo "$ac_cv_func_shl_load" >&6; } 11496if test "x$ac_cv_func_shl_load" = x""yes; then 11497 lt_cv_dlopen="shl_load" 11498else 11499 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11500$as_echo_n "checking for shl_load in -ldld... " >&6; } 11501if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11502 $as_echo_n "(cached) " >&6 11503else 11504 ac_check_lib_save_LIBS=$LIBS 11505LIBS="-ldld $LIBS" 11506cat >conftest.$ac_ext <<_ACEOF 11507/* confdefs.h. */ 11508_ACEOF 11509cat confdefs.h >>conftest.$ac_ext 11510cat >>conftest.$ac_ext <<_ACEOF 11511/* end confdefs.h. */ 11512 11513/* Override any GCC internal prototype to avoid an error. 11514 Use char because int might match the return type of a GCC 11515 builtin and then its argument prototype would still apply. */ 11516#ifdef __cplusplus 11517extern "C" 11518#endif 11519char shl_load (); 11520int 11521main () 11522{ 11523return shl_load (); 11524 ; 11525 return 0; 11526} 11527_ACEOF 11528rm -f conftest.$ac_objext conftest$ac_exeext 11529if { (ac_try="$ac_link" 11530case "(($ac_try" in 11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11532 *) ac_try_echo=$ac_try;; 11533esac 11534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11535$as_echo "$ac_try_echo") >&5 11536 (eval "$ac_link") 2>conftest.er1 11537 ac_status=$? 11538 grep -v '^ *+' conftest.er1 >conftest.err 11539 rm -f conftest.er1 11540 cat conftest.err >&5 11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11542 (exit $ac_status); } && { 11543 test -z "$ac_c_werror_flag" || 11544 test ! -s conftest.err 11545 } && test -s conftest$ac_exeext && { 11546 test "$cross_compiling" = yes || 11547 $as_test_x conftest$ac_exeext 11548 }; then 11549 ac_cv_lib_dld_shl_load=yes 11550else 11551 $as_echo "$as_me: failed program was:" >&5 11552sed 's/^/| /' conftest.$ac_ext >&5 11553 11554 ac_cv_lib_dld_shl_load=no 11555fi 11556 11557rm -rf conftest.dSYM 11558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11559 conftest$ac_exeext conftest.$ac_ext 11560LIBS=$ac_check_lib_save_LIBS 11561fi 11562{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11563$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11564if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11565 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11566else 11567 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11568$as_echo_n "checking for dlopen... " >&6; } 11569if test "${ac_cv_func_dlopen+set}" = set; then 11570 $as_echo_n "(cached) " >&6 11571else 11572 cat >conftest.$ac_ext <<_ACEOF 11573/* confdefs.h. */ 11574_ACEOF 11575cat confdefs.h >>conftest.$ac_ext 11576cat >>conftest.$ac_ext <<_ACEOF 11577/* end confdefs.h. */ 11578/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11580#define dlopen innocuous_dlopen 11581 11582/* System header to define __stub macros and hopefully few prototypes, 11583 which can conflict with char dlopen (); below. 11584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11585 <limits.h> exists even on freestanding compilers. */ 11586 11587#ifdef __STDC__ 11588# include <limits.h> 11589#else 11590# include <assert.h> 11591#endif 11592 11593#undef dlopen 11594 11595/* Override any GCC internal prototype to avoid an error. 11596 Use char because int might match the return type of a GCC 11597 builtin and then its argument prototype would still apply. */ 11598#ifdef __cplusplus 11599extern "C" 11600#endif 11601char dlopen (); 11602/* The GNU C library defines this for functions which it implements 11603 to always fail with ENOSYS. Some functions are actually named 11604 something starting with __ and the normal name is an alias. */ 11605#if defined __stub_dlopen || defined __stub___dlopen 11606choke me 11607#endif 11608 11609int 11610main () 11611{ 11612return dlopen (); 11613 ; 11614 return 0; 11615} 11616_ACEOF 11617rm -f conftest.$ac_objext conftest$ac_exeext 11618if { (ac_try="$ac_link" 11619case "(($ac_try" in 11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11621 *) ac_try_echo=$ac_try;; 11622esac 11623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11624$as_echo "$ac_try_echo") >&5 11625 (eval "$ac_link") 2>conftest.er1 11626 ac_status=$? 11627 grep -v '^ *+' conftest.er1 >conftest.err 11628 rm -f conftest.er1 11629 cat conftest.err >&5 11630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11631 (exit $ac_status); } && { 11632 test -z "$ac_c_werror_flag" || 11633 test ! -s conftest.err 11634 } && test -s conftest$ac_exeext && { 11635 test "$cross_compiling" = yes || 11636 $as_test_x conftest$ac_exeext 11637 }; then 11638 ac_cv_func_dlopen=yes 11639else 11640 $as_echo "$as_me: failed program was:" >&5 11641sed 's/^/| /' conftest.$ac_ext >&5 11642 11643 ac_cv_func_dlopen=no 11644fi 11645 11646rm -rf conftest.dSYM 11647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11648 conftest$ac_exeext conftest.$ac_ext 11649fi 11650{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11651$as_echo "$ac_cv_func_dlopen" >&6; } 11652if test "x$ac_cv_func_dlopen" = x""yes; then 11653 lt_cv_dlopen="dlopen" 11654else 11655 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11656$as_echo_n "checking for dlopen in -ldl... " >&6; } 11657if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11658 $as_echo_n "(cached) " >&6 11659else 11660 ac_check_lib_save_LIBS=$LIBS 11661LIBS="-ldl $LIBS" 11662cat >conftest.$ac_ext <<_ACEOF 11663/* confdefs.h. */ 11664_ACEOF 11665cat confdefs.h >>conftest.$ac_ext 11666cat >>conftest.$ac_ext <<_ACEOF 11667/* end confdefs.h. */ 11668 11669/* Override any GCC internal prototype to avoid an error. 11670 Use char because int might match the return type of a GCC 11671 builtin and then its argument prototype would still apply. */ 11672#ifdef __cplusplus 11673extern "C" 11674#endif 11675char dlopen (); 11676int 11677main () 11678{ 11679return dlopen (); 11680 ; 11681 return 0; 11682} 11683_ACEOF 11684rm -f conftest.$ac_objext conftest$ac_exeext 11685if { (ac_try="$ac_link" 11686case "(($ac_try" in 11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11688 *) ac_try_echo=$ac_try;; 11689esac 11690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11691$as_echo "$ac_try_echo") >&5 11692 (eval "$ac_link") 2>conftest.er1 11693 ac_status=$? 11694 grep -v '^ *+' conftest.er1 >conftest.err 11695 rm -f conftest.er1 11696 cat conftest.err >&5 11697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11698 (exit $ac_status); } && { 11699 test -z "$ac_c_werror_flag" || 11700 test ! -s conftest.err 11701 } && test -s conftest$ac_exeext && { 11702 test "$cross_compiling" = yes || 11703 $as_test_x conftest$ac_exeext 11704 }; then 11705 ac_cv_lib_dl_dlopen=yes 11706else 11707 $as_echo "$as_me: failed program was:" >&5 11708sed 's/^/| /' conftest.$ac_ext >&5 11709 11710 ac_cv_lib_dl_dlopen=no 11711fi 11712 11713rm -rf conftest.dSYM 11714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11715 conftest$ac_exeext conftest.$ac_ext 11716LIBS=$ac_check_lib_save_LIBS 11717fi 11718{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11719$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11720if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11722else 11723 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11724$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11725if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11726 $as_echo_n "(cached) " >&6 11727else 11728 ac_check_lib_save_LIBS=$LIBS 11729LIBS="-lsvld $LIBS" 11730cat >conftest.$ac_ext <<_ACEOF 11731/* confdefs.h. */ 11732_ACEOF 11733cat confdefs.h >>conftest.$ac_ext 11734cat >>conftest.$ac_ext <<_ACEOF 11735/* end confdefs.h. */ 11736 11737/* Override any GCC internal prototype to avoid an error. 11738 Use char because int might match the return type of a GCC 11739 builtin and then its argument prototype would still apply. */ 11740#ifdef __cplusplus 11741extern "C" 11742#endif 11743char dlopen (); 11744int 11745main () 11746{ 11747return dlopen (); 11748 ; 11749 return 0; 11750} 11751_ACEOF 11752rm -f conftest.$ac_objext conftest$ac_exeext 11753if { (ac_try="$ac_link" 11754case "(($ac_try" in 11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11756 *) ac_try_echo=$ac_try;; 11757esac 11758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11759$as_echo "$ac_try_echo") >&5 11760 (eval "$ac_link") 2>conftest.er1 11761 ac_status=$? 11762 grep -v '^ *+' conftest.er1 >conftest.err 11763 rm -f conftest.er1 11764 cat conftest.err >&5 11765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11766 (exit $ac_status); } && { 11767 test -z "$ac_c_werror_flag" || 11768 test ! -s conftest.err 11769 } && test -s conftest$ac_exeext && { 11770 test "$cross_compiling" = yes || 11771 $as_test_x conftest$ac_exeext 11772 }; then 11773 ac_cv_lib_svld_dlopen=yes 11774else 11775 $as_echo "$as_me: failed program was:" >&5 11776sed 's/^/| /' conftest.$ac_ext >&5 11777 11778 ac_cv_lib_svld_dlopen=no 11779fi 11780 11781rm -rf conftest.dSYM 11782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11783 conftest$ac_exeext conftest.$ac_ext 11784LIBS=$ac_check_lib_save_LIBS 11785fi 11786{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11787$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11788if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11790else 11791 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11792$as_echo_n "checking for dld_link in -ldld... " >&6; } 11793if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11794 $as_echo_n "(cached) " >&6 11795else 11796 ac_check_lib_save_LIBS=$LIBS 11797LIBS="-ldld $LIBS" 11798cat >conftest.$ac_ext <<_ACEOF 11799/* confdefs.h. */ 11800_ACEOF 11801cat confdefs.h >>conftest.$ac_ext 11802cat >>conftest.$ac_ext <<_ACEOF 11803/* end confdefs.h. */ 11804 11805/* Override any GCC internal prototype to avoid an error. 11806 Use char because int might match the return type of a GCC 11807 builtin and then its argument prototype would still apply. */ 11808#ifdef __cplusplus 11809extern "C" 11810#endif 11811char dld_link (); 11812int 11813main () 11814{ 11815return dld_link (); 11816 ; 11817 return 0; 11818} 11819_ACEOF 11820rm -f conftest.$ac_objext conftest$ac_exeext 11821if { (ac_try="$ac_link" 11822case "(($ac_try" in 11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11824 *) ac_try_echo=$ac_try;; 11825esac 11826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11827$as_echo "$ac_try_echo") >&5 11828 (eval "$ac_link") 2>conftest.er1 11829 ac_status=$? 11830 grep -v '^ *+' conftest.er1 >conftest.err 11831 rm -f conftest.er1 11832 cat conftest.err >&5 11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11834 (exit $ac_status); } && { 11835 test -z "$ac_c_werror_flag" || 11836 test ! -s conftest.err 11837 } && test -s conftest$ac_exeext && { 11838 test "$cross_compiling" = yes || 11839 $as_test_x conftest$ac_exeext 11840 }; then 11841 ac_cv_lib_dld_dld_link=yes 11842else 11843 $as_echo "$as_me: failed program was:" >&5 11844sed 's/^/| /' conftest.$ac_ext >&5 11845 11846 ac_cv_lib_dld_dld_link=no 11847fi 11848 11849rm -rf conftest.dSYM 11850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11851 conftest$ac_exeext conftest.$ac_ext 11852LIBS=$ac_check_lib_save_LIBS 11853fi 11854{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11855$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11856if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11857 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11858fi 11859 11860 11861fi 11862 11863 11864fi 11865 11866 11867fi 11868 11869 11870fi 11871 11872 11873fi 11874 11875 ;; 11876 esac 11877 11878 if test "x$lt_cv_dlopen" != xno; then 11879 enable_dlopen=yes 11880 else 11881 enable_dlopen=no 11882 fi 11883 11884 case $lt_cv_dlopen in 11885 dlopen) 11886 save_CPPFLAGS="$CPPFLAGS" 11887 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11888 11889 save_LDFLAGS="$LDFLAGS" 11890 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11891 11892 save_LIBS="$LIBS" 11893 LIBS="$lt_cv_dlopen_libs $LIBS" 11894 11895 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11896$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11897if test "${lt_cv_dlopen_self+set}" = set; then 11898 $as_echo_n "(cached) " >&6 11899else 11900 if test "$cross_compiling" = yes; then : 11901 lt_cv_dlopen_self=cross 11902else 11903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11904 lt_status=$lt_dlunknown 11905 cat > conftest.$ac_ext <<_LT_EOF 11906#line 11906 "configure" 11907#include "confdefs.h" 11908 11909#if HAVE_DLFCN_H 11910#include <dlfcn.h> 11911#endif 11912 11913#include <stdio.h> 11914 11915#ifdef RTLD_GLOBAL 11916# define LT_DLGLOBAL RTLD_GLOBAL 11917#else 11918# ifdef DL_GLOBAL 11919# define LT_DLGLOBAL DL_GLOBAL 11920# else 11921# define LT_DLGLOBAL 0 11922# endif 11923#endif 11924 11925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11926 find out it does not work in some platform. */ 11927#ifndef LT_DLLAZY_OR_NOW 11928# ifdef RTLD_LAZY 11929# define LT_DLLAZY_OR_NOW RTLD_LAZY 11930# else 11931# ifdef DL_LAZY 11932# define LT_DLLAZY_OR_NOW DL_LAZY 11933# else 11934# ifdef RTLD_NOW 11935# define LT_DLLAZY_OR_NOW RTLD_NOW 11936# else 11937# ifdef DL_NOW 11938# define LT_DLLAZY_OR_NOW DL_NOW 11939# else 11940# define LT_DLLAZY_OR_NOW 0 11941# endif 11942# endif 11943# endif 11944# endif 11945#endif 11946 11947void fnord() { int i=42;} 11948int main () 11949{ 11950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11951 int status = $lt_dlunknown; 11952 11953 if (self) 11954 { 11955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11957 /* dlclose (self); */ 11958 } 11959 else 11960 puts (dlerror ()); 11961 11962 return status; 11963} 11964_LT_EOF 11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11966 (eval $ac_link) 2>&5 11967 ac_status=$? 11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11970 (./conftest; exit; ) >&5 2>/dev/null 11971 lt_status=$? 11972 case x$lt_status in 11973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11976 esac 11977 else : 11978 # compilation failed 11979 lt_cv_dlopen_self=no 11980 fi 11981fi 11982rm -fr conftest* 11983 11984 11985fi 11986{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11987$as_echo "$lt_cv_dlopen_self" >&6; } 11988 11989 if test "x$lt_cv_dlopen_self" = xyes; then 11990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11991 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11992$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11993if test "${lt_cv_dlopen_self_static+set}" = set; then 11994 $as_echo_n "(cached) " >&6 11995else 11996 if test "$cross_compiling" = yes; then : 11997 lt_cv_dlopen_self_static=cross 11998else 11999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12000 lt_status=$lt_dlunknown 12001 cat > conftest.$ac_ext <<_LT_EOF 12002#line 12002 "configure" 12003#include "confdefs.h" 12004 12005#if HAVE_DLFCN_H 12006#include <dlfcn.h> 12007#endif 12008 12009#include <stdio.h> 12010 12011#ifdef RTLD_GLOBAL 12012# define LT_DLGLOBAL RTLD_GLOBAL 12013#else 12014# ifdef DL_GLOBAL 12015# define LT_DLGLOBAL DL_GLOBAL 12016# else 12017# define LT_DLGLOBAL 0 12018# endif 12019#endif 12020 12021/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12022 find out it does not work in some platform. */ 12023#ifndef LT_DLLAZY_OR_NOW 12024# ifdef RTLD_LAZY 12025# define LT_DLLAZY_OR_NOW RTLD_LAZY 12026# else 12027# ifdef DL_LAZY 12028# define LT_DLLAZY_OR_NOW DL_LAZY 12029# else 12030# ifdef RTLD_NOW 12031# define LT_DLLAZY_OR_NOW RTLD_NOW 12032# else 12033# ifdef DL_NOW 12034# define LT_DLLAZY_OR_NOW DL_NOW 12035# else 12036# define LT_DLLAZY_OR_NOW 0 12037# endif 12038# endif 12039# endif 12040# endif 12041#endif 12042 12043void fnord() { int i=42;} 12044int main () 12045{ 12046 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12047 int status = $lt_dlunknown; 12048 12049 if (self) 12050 { 12051 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12052 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12053 /* dlclose (self); */ 12054 } 12055 else 12056 puts (dlerror ()); 12057 12058 return status; 12059} 12060_LT_EOF 12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12062 (eval $ac_link) 2>&5 12063 ac_status=$? 12064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12065 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12066 (./conftest; exit; ) >&5 2>/dev/null 12067 lt_status=$? 12068 case x$lt_status in 12069 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12070 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12071 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12072 esac 12073 else : 12074 # compilation failed 12075 lt_cv_dlopen_self_static=no 12076 fi 12077fi 12078rm -fr conftest* 12079 12080 12081fi 12082{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12083$as_echo "$lt_cv_dlopen_self_static" >&6; } 12084 fi 12085 12086 CPPFLAGS="$save_CPPFLAGS" 12087 LDFLAGS="$save_LDFLAGS" 12088 LIBS="$save_LIBS" 12089 ;; 12090 esac 12091 12092 case $lt_cv_dlopen_self in 12093 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12094 *) enable_dlopen_self=unknown ;; 12095 esac 12096 12097 case $lt_cv_dlopen_self_static in 12098 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12099 *) enable_dlopen_self_static=unknown ;; 12100 esac 12101fi 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119striplib= 12120old_striplib= 12121{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12122$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12123if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12124 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12125 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12126 { $as_echo "$as_me:$LINENO: result: yes" >&5 12127$as_echo "yes" >&6; } 12128else 12129# FIXME - insert some real tests, host_os isn't really good enough 12130 case $host_os in 12131 darwin*) 12132 if test -n "$STRIP" ; then 12133 striplib="$STRIP -x" 12134 old_striplib="$STRIP -S" 12135 { $as_echo "$as_me:$LINENO: result: yes" >&5 12136$as_echo "yes" >&6; } 12137 else 12138 { $as_echo "$as_me:$LINENO: result: no" >&5 12139$as_echo "no" >&6; } 12140 fi 12141 ;; 12142 *) 12143 { $as_echo "$as_me:$LINENO: result: no" >&5 12144$as_echo "no" >&6; } 12145 ;; 12146 esac 12147fi 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 # Report which library types will actually be built 12161 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12162$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12163 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12164$as_echo "$can_build_shared" >&6; } 12165 12166 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12167$as_echo_n "checking whether to build shared libraries... " >&6; } 12168 test "$can_build_shared" = "no" && enable_shared=no 12169 12170 # On AIX, shared libraries and static libraries use the same namespace, and 12171 # are all built from PIC. 12172 case $host_os in 12173 aix3*) 12174 test "$enable_shared" = yes && enable_static=no 12175 if test -n "$RANLIB"; then 12176 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12177 postinstall_cmds='$RANLIB $lib' 12178 fi 12179 ;; 12180 12181 aix[4-9]*) 12182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12183 test "$enable_shared" = yes && enable_static=no 12184 fi 12185 ;; 12186 esac 12187 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12188$as_echo "$enable_shared" >&6; } 12189 12190 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12191$as_echo_n "checking whether to build static libraries... " >&6; } 12192 # Make sure either enable_shared or enable_static is yes. 12193 test "$enable_shared" = yes || enable_static=yes 12194 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12195$as_echo "$enable_static" >&6; } 12196 12197 12198 12199 12200fi 12201ac_ext=c 12202ac_cpp='$CPP $CPPFLAGS' 12203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12205ac_compiler_gnu=$ac_cv_c_compiler_gnu 12206 12207CC="$lt_save_CC" 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 ac_config_commands="$ac_config_commands libtool" 12222 12223 12224 12225 12226# Only expand once: 12227 12228 12229 12230# Automatically update the libtool script if it becomes out-of-date. 12231 12232 12233# Checks for header files. 12234{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12235$as_echo_n "checking for ANSI C header files... " >&6; } 12236if test "${ac_cv_header_stdc+set}" = set; then 12237 $as_echo_n "(cached) " >&6 12238else 12239 cat >conftest.$ac_ext <<_ACEOF 12240/* confdefs.h. */ 12241_ACEOF 12242cat confdefs.h >>conftest.$ac_ext 12243cat >>conftest.$ac_ext <<_ACEOF 12244/* end confdefs.h. */ 12245#include <stdlib.h> 12246#include <stdarg.h> 12247#include <string.h> 12248#include <float.h> 12249 12250int 12251main () 12252{ 12253 12254 ; 12255 return 0; 12256} 12257_ACEOF 12258rm -f conftest.$ac_objext 12259if { (ac_try="$ac_compile" 12260case "(($ac_try" in 12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12262 *) ac_try_echo=$ac_try;; 12263esac 12264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12265$as_echo "$ac_try_echo") >&5 12266 (eval "$ac_compile") 2>conftest.er1 12267 ac_status=$? 12268 grep -v '^ *+' conftest.er1 >conftest.err 12269 rm -f conftest.er1 12270 cat conftest.err >&5 12271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12272 (exit $ac_status); } && { 12273 test -z "$ac_c_werror_flag" || 12274 test ! -s conftest.err 12275 } && test -s conftest.$ac_objext; then 12276 ac_cv_header_stdc=yes 12277else 12278 $as_echo "$as_me: failed program was:" >&5 12279sed 's/^/| /' conftest.$ac_ext >&5 12280 12281 ac_cv_header_stdc=no 12282fi 12283 12284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12285 12286if test $ac_cv_header_stdc = yes; then 12287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12288 cat >conftest.$ac_ext <<_ACEOF 12289/* confdefs.h. */ 12290_ACEOF 12291cat confdefs.h >>conftest.$ac_ext 12292cat >>conftest.$ac_ext <<_ACEOF 12293/* end confdefs.h. */ 12294#include <string.h> 12295 12296_ACEOF 12297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12298 $EGREP "memchr" >/dev/null 2>&1; then 12299 : 12300else 12301 ac_cv_header_stdc=no 12302fi 12303rm -f conftest* 12304 12305fi 12306 12307if test $ac_cv_header_stdc = yes; then 12308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12309 cat >conftest.$ac_ext <<_ACEOF 12310/* confdefs.h. */ 12311_ACEOF 12312cat confdefs.h >>conftest.$ac_ext 12313cat >>conftest.$ac_ext <<_ACEOF 12314/* end confdefs.h. */ 12315#include <stdlib.h> 12316 12317_ACEOF 12318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12319 $EGREP "free" >/dev/null 2>&1; then 12320 : 12321else 12322 ac_cv_header_stdc=no 12323fi 12324rm -f conftest* 12325 12326fi 12327 12328if test $ac_cv_header_stdc = yes; then 12329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12330 if test "$cross_compiling" = yes; then 12331 : 12332else 12333 cat >conftest.$ac_ext <<_ACEOF 12334/* confdefs.h. */ 12335_ACEOF 12336cat confdefs.h >>conftest.$ac_ext 12337cat >>conftest.$ac_ext <<_ACEOF 12338/* end confdefs.h. */ 12339#include <ctype.h> 12340#include <stdlib.h> 12341#if ((' ' & 0x0FF) == 0x020) 12342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12344#else 12345# define ISLOWER(c) \ 12346 (('a' <= (c) && (c) <= 'i') \ 12347 || ('j' <= (c) && (c) <= 'r') \ 12348 || ('s' <= (c) && (c) <= 'z')) 12349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12350#endif 12351 12352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12353int 12354main () 12355{ 12356 int i; 12357 for (i = 0; i < 256; i++) 12358 if (XOR (islower (i), ISLOWER (i)) 12359 || toupper (i) != TOUPPER (i)) 12360 return 2; 12361 return 0; 12362} 12363_ACEOF 12364rm -f conftest$ac_exeext 12365if { (ac_try="$ac_link" 12366case "(($ac_try" in 12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12368 *) ac_try_echo=$ac_try;; 12369esac 12370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12371$as_echo "$ac_try_echo") >&5 12372 (eval "$ac_link") 2>&5 12373 ac_status=$? 12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12376 { (case "(($ac_try" in 12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12378 *) ac_try_echo=$ac_try;; 12379esac 12380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12381$as_echo "$ac_try_echo") >&5 12382 (eval "$ac_try") 2>&5 12383 ac_status=$? 12384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12385 (exit $ac_status); }; }; then 12386 : 12387else 12388 $as_echo "$as_me: program exited with status $ac_status" >&5 12389$as_echo "$as_me: failed program was:" >&5 12390sed 's/^/| /' conftest.$ac_ext >&5 12391 12392( exit $ac_status ) 12393ac_cv_header_stdc=no 12394fi 12395rm -rf conftest.dSYM 12396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12397fi 12398 12399 12400fi 12401fi 12402{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12403$as_echo "$ac_cv_header_stdc" >&6; } 12404if test $ac_cv_header_stdc = yes; then 12405 12406cat >>confdefs.h <<\_ACEOF 12407#define STDC_HEADERS 1 12408_ACEOF 12409 12410fi 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423for ac_header in errno.h fcntl.h stdlib.h unistd.h termios.h string.h errno.h sys/time.h sys/types.h stdarg.h arpa/inet.h 12424do 12425as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12427 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12428$as_echo_n "checking for $ac_header... " >&6; } 12429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12430 $as_echo_n "(cached) " >&6 12431fi 12432ac_res=`eval 'as_val=${'$as_ac_Header'} 12433 $as_echo "$as_val"'` 12434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12435$as_echo "$ac_res" >&6; } 12436else 12437 # Is the header compilable? 12438{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12439$as_echo_n "checking $ac_header usability... " >&6; } 12440cat >conftest.$ac_ext <<_ACEOF 12441/* confdefs.h. */ 12442_ACEOF 12443cat confdefs.h >>conftest.$ac_ext 12444cat >>conftest.$ac_ext <<_ACEOF 12445/* end confdefs.h. */ 12446$ac_includes_default 12447#include <$ac_header> 12448_ACEOF 12449rm -f conftest.$ac_objext 12450if { (ac_try="$ac_compile" 12451case "(($ac_try" in 12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12453 *) ac_try_echo=$ac_try;; 12454esac 12455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12456$as_echo "$ac_try_echo") >&5 12457 (eval "$ac_compile") 2>conftest.er1 12458 ac_status=$? 12459 grep -v '^ *+' conftest.er1 >conftest.err 12460 rm -f conftest.er1 12461 cat conftest.err >&5 12462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12463 (exit $ac_status); } && { 12464 test -z "$ac_c_werror_flag" || 12465 test ! -s conftest.err 12466 } && test -s conftest.$ac_objext; then 12467 ac_header_compiler=yes 12468else 12469 $as_echo "$as_me: failed program was:" >&5 12470sed 's/^/| /' conftest.$ac_ext >&5 12471 12472 ac_header_compiler=no 12473fi 12474 12475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12476{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12477$as_echo "$ac_header_compiler" >&6; } 12478 12479# Is the header present? 12480{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12481$as_echo_n "checking $ac_header presence... " >&6; } 12482cat >conftest.$ac_ext <<_ACEOF 12483/* confdefs.h. */ 12484_ACEOF 12485cat confdefs.h >>conftest.$ac_ext 12486cat >>conftest.$ac_ext <<_ACEOF 12487/* end confdefs.h. */ 12488#include <$ac_header> 12489_ACEOF 12490if { (ac_try="$ac_cpp conftest.$ac_ext" 12491case "(($ac_try" in 12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12493 *) ac_try_echo=$ac_try;; 12494esac 12495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12496$as_echo "$ac_try_echo") >&5 12497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12498 ac_status=$? 12499 grep -v '^ *+' conftest.er1 >conftest.err 12500 rm -f conftest.er1 12501 cat conftest.err >&5 12502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12503 (exit $ac_status); } >/dev/null && { 12504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12505 test ! -s conftest.err 12506 }; then 12507 ac_header_preproc=yes 12508else 12509 $as_echo "$as_me: failed program was:" >&5 12510sed 's/^/| /' conftest.$ac_ext >&5 12511 12512 ac_header_preproc=no 12513fi 12514 12515rm -f conftest.err conftest.$ac_ext 12516{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12517$as_echo "$ac_header_preproc" >&6; } 12518 12519# So? What about this header? 12520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12521 yes:no: ) 12522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12523$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12525$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12526 ac_header_preproc=yes 12527 ;; 12528 no:yes:* ) 12529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12530$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12532$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12534$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12536$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12538$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12540$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12541 12542 ;; 12543esac 12544{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12545$as_echo_n "checking for $ac_header... " >&6; } 12546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12547 $as_echo_n "(cached) " >&6 12548else 12549 eval "$as_ac_Header=\$ac_header_preproc" 12550fi 12551ac_res=`eval 'as_val=${'$as_ac_Header'} 12552 $as_echo "$as_val"'` 12553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12554$as_echo "$ac_res" >&6; } 12555 12556fi 12557as_val=`eval 'as_val=${'$as_ac_Header'} 12558 $as_echo "$as_val"'` 12559 if test "x$as_val" = x""yes; then 12560 cat >>confdefs.h <<_ACEOF 12561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12562_ACEOF 12563 12564else 12565 { { $as_echo "$as_me:$LINENO: error: some header files not found" >&5 12566$as_echo "$as_me: error: some header files not found" >&2;} 12567 { (exit 1); exit 1; }; } 12568fi 12569 12570done 12571 12572 12573# Checks for typedefs, structures, and compiler characteristics. 12574{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12575$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12576if test "${ac_cv_c_const+set}" = set; then 12577 $as_echo_n "(cached) " >&6 12578else 12579 cat >conftest.$ac_ext <<_ACEOF 12580/* confdefs.h. */ 12581_ACEOF 12582cat confdefs.h >>conftest.$ac_ext 12583cat >>conftest.$ac_ext <<_ACEOF 12584/* end confdefs.h. */ 12585 12586int 12587main () 12588{ 12589/* FIXME: Include the comments suggested by Paul. */ 12590#ifndef __cplusplus 12591 /* Ultrix mips cc rejects this. */ 12592 typedef int charset[2]; 12593 const charset cs; 12594 /* SunOS 4.1.1 cc rejects this. */ 12595 char const *const *pcpcc; 12596 char **ppc; 12597 /* NEC SVR4.0.2 mips cc rejects this. */ 12598 struct point {int x, y;}; 12599 static struct point const zero = {0,0}; 12600 /* AIX XL C 1.02.0.0 rejects this. 12601 It does not let you subtract one const X* pointer from another in 12602 an arm of an if-expression whose if-part is not a constant 12603 expression */ 12604 const char *g = "string"; 12605 pcpcc = &g + (g ? g-g : 0); 12606 /* HPUX 7.0 cc rejects these. */ 12607 ++pcpcc; 12608 ppc = (char**) pcpcc; 12609 pcpcc = (char const *const *) ppc; 12610 { /* SCO 3.2v4 cc rejects this. */ 12611 char *t; 12612 char const *s = 0 ? (char *) 0 : (char const *) 0; 12613 12614 *t++ = 0; 12615 if (s) return 0; 12616 } 12617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12618 int x[] = {25, 17}; 12619 const int *foo = &x[0]; 12620 ++foo; 12621 } 12622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12623 typedef const int *iptr; 12624 iptr p = 0; 12625 ++p; 12626 } 12627 { /* AIX XL C 1.02.0.0 rejects this saying 12628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12629 struct s { int j; const int *ap[3]; }; 12630 struct s *b; b->j = 5; 12631 } 12632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12633 const int foo = 10; 12634 if (!foo) return 0; 12635 } 12636 return !cs[0] && !zero.x; 12637#endif 12638 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643rm -f conftest.$ac_objext 12644if { (ac_try="$ac_compile" 12645case "(($ac_try" in 12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12647 *) ac_try_echo=$ac_try;; 12648esac 12649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12650$as_echo "$ac_try_echo") >&5 12651 (eval "$ac_compile") 2>conftest.er1 12652 ac_status=$? 12653 grep -v '^ *+' conftest.er1 >conftest.err 12654 rm -f conftest.er1 12655 cat conftest.err >&5 12656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12657 (exit $ac_status); } && { 12658 test -z "$ac_c_werror_flag" || 12659 test ! -s conftest.err 12660 } && test -s conftest.$ac_objext; then 12661 ac_cv_c_const=yes 12662else 12663 $as_echo "$as_me: failed program was:" >&5 12664sed 's/^/| /' conftest.$ac_ext >&5 12665 12666 ac_cv_c_const=no 12667fi 12668 12669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12670fi 12671{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12672$as_echo "$ac_cv_c_const" >&6; } 12673if test $ac_cv_c_const = no; then 12674 12675cat >>confdefs.h <<\_ACEOF 12676#define const /**/ 12677_ACEOF 12678 12679fi 12680 12681{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 12682$as_echo_n "checking for size_t... " >&6; } 12683if test "${ac_cv_type_size_t+set}" = set; then 12684 $as_echo_n "(cached) " >&6 12685else 12686 ac_cv_type_size_t=no 12687cat >conftest.$ac_ext <<_ACEOF 12688/* confdefs.h. */ 12689_ACEOF 12690cat confdefs.h >>conftest.$ac_ext 12691cat >>conftest.$ac_ext <<_ACEOF 12692/* end confdefs.h. */ 12693$ac_includes_default 12694int 12695main () 12696{ 12697if (sizeof (size_t)) 12698 return 0; 12699 ; 12700 return 0; 12701} 12702_ACEOF 12703rm -f conftest.$ac_objext 12704if { (ac_try="$ac_compile" 12705case "(($ac_try" in 12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12707 *) ac_try_echo=$ac_try;; 12708esac 12709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12710$as_echo "$ac_try_echo") >&5 12711 (eval "$ac_compile") 2>conftest.er1 12712 ac_status=$? 12713 grep -v '^ *+' conftest.er1 >conftest.err 12714 rm -f conftest.er1 12715 cat conftest.err >&5 12716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12717 (exit $ac_status); } && { 12718 test -z "$ac_c_werror_flag" || 12719 test ! -s conftest.err 12720 } && test -s conftest.$ac_objext; then 12721 cat >conftest.$ac_ext <<_ACEOF 12722/* confdefs.h. */ 12723_ACEOF 12724cat confdefs.h >>conftest.$ac_ext 12725cat >>conftest.$ac_ext <<_ACEOF 12726/* end confdefs.h. */ 12727$ac_includes_default 12728int 12729main () 12730{ 12731if (sizeof ((size_t))) 12732 return 0; 12733 ; 12734 return 0; 12735} 12736_ACEOF 12737rm -f conftest.$ac_objext 12738if { (ac_try="$ac_compile" 12739case "(($ac_try" in 12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12741 *) ac_try_echo=$ac_try;; 12742esac 12743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12744$as_echo "$ac_try_echo") >&5 12745 (eval "$ac_compile") 2>conftest.er1 12746 ac_status=$? 12747 grep -v '^ *+' conftest.er1 >conftest.err 12748 rm -f conftest.er1 12749 cat conftest.err >&5 12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12751 (exit $ac_status); } && { 12752 test -z "$ac_c_werror_flag" || 12753 test ! -s conftest.err 12754 } && test -s conftest.$ac_objext; then 12755 : 12756else 12757 $as_echo "$as_me: failed program was:" >&5 12758sed 's/^/| /' conftest.$ac_ext >&5 12759 12760 ac_cv_type_size_t=yes 12761fi 12762 12763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12764else 12765 $as_echo "$as_me: failed program was:" >&5 12766sed 's/^/| /' conftest.$ac_ext >&5 12767 12768 12769fi 12770 12771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12772fi 12773{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 12774$as_echo "$ac_cv_type_size_t" >&6; } 12775if test "x$ac_cv_type_size_t" = x""yes; then 12776 : 12777else 12778 12779cat >>confdefs.h <<_ACEOF 12780#define size_t unsigned int 12781_ACEOF 12782 12783fi 12784 12785{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12786$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12787if test "${ac_cv_header_time+set}" = set; then 12788 $as_echo_n "(cached) " >&6 12789else 12790 cat >conftest.$ac_ext <<_ACEOF 12791/* confdefs.h. */ 12792_ACEOF 12793cat confdefs.h >>conftest.$ac_ext 12794cat >>conftest.$ac_ext <<_ACEOF 12795/* end confdefs.h. */ 12796#include <sys/types.h> 12797#include <sys/time.h> 12798#include <time.h> 12799 12800int 12801main () 12802{ 12803if ((struct tm *) 0) 12804return 0; 12805 ; 12806 return 0; 12807} 12808_ACEOF 12809rm -f conftest.$ac_objext 12810if { (ac_try="$ac_compile" 12811case "(($ac_try" in 12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12813 *) ac_try_echo=$ac_try;; 12814esac 12815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12816$as_echo "$ac_try_echo") >&5 12817 (eval "$ac_compile") 2>conftest.er1 12818 ac_status=$? 12819 grep -v '^ *+' conftest.er1 >conftest.err 12820 rm -f conftest.er1 12821 cat conftest.err >&5 12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12823 (exit $ac_status); } && { 12824 test -z "$ac_c_werror_flag" || 12825 test ! -s conftest.err 12826 } && test -s conftest.$ac_objext; then 12827 ac_cv_header_time=yes 12828else 12829 $as_echo "$as_me: failed program was:" >&5 12830sed 's/^/| /' conftest.$ac_ext >&5 12831 12832 ac_cv_header_time=no 12833fi 12834 12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12836fi 12837{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12838$as_echo "$ac_cv_header_time" >&6; } 12839if test $ac_cv_header_time = yes; then 12840 12841cat >>confdefs.h <<\_ACEOF 12842#define TIME_WITH_SYS_TIME 1 12843_ACEOF 12844 12845fi 12846 12847 12848# Checks for library functions. 12849 12850 12851 12852 12853 12854 12855for ac_func in select strerror strncpy memcpy strlcpy strlcat 12856do 12857as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12858{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12859$as_echo_n "checking for $ac_func... " >&6; } 12860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12861 $as_echo_n "(cached) " >&6 12862else 12863 cat >conftest.$ac_ext <<_ACEOF 12864/* confdefs.h. */ 12865_ACEOF 12866cat confdefs.h >>conftest.$ac_ext 12867cat >>conftest.$ac_ext <<_ACEOF 12868/* end confdefs.h. */ 12869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12870 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12871#define $ac_func innocuous_$ac_func 12872 12873/* System header to define __stub macros and hopefully few prototypes, 12874 which can conflict with char $ac_func (); below. 12875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12876 <limits.h> exists even on freestanding compilers. */ 12877 12878#ifdef __STDC__ 12879# include <limits.h> 12880#else 12881# include <assert.h> 12882#endif 12883 12884#undef $ac_func 12885 12886/* Override any GCC internal prototype to avoid an error. 12887 Use char because int might match the return type of a GCC 12888 builtin and then its argument prototype would still apply. */ 12889#ifdef __cplusplus 12890extern "C" 12891#endif 12892char $ac_func (); 12893/* The GNU C library defines this for functions which it implements 12894 to always fail with ENOSYS. Some functions are actually named 12895 something starting with __ and the normal name is an alias. */ 12896#if defined __stub_$ac_func || defined __stub___$ac_func 12897choke me 12898#endif 12899 12900int 12901main () 12902{ 12903return $ac_func (); 12904 ; 12905 return 0; 12906} 12907_ACEOF 12908rm -f conftest.$ac_objext conftest$ac_exeext 12909if { (ac_try="$ac_link" 12910case "(($ac_try" in 12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12912 *) ac_try_echo=$ac_try;; 12913esac 12914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12915$as_echo "$ac_try_echo") >&5 12916 (eval "$ac_link") 2>conftest.er1 12917 ac_status=$? 12918 grep -v '^ *+' conftest.er1 >conftest.err 12919 rm -f conftest.er1 12920 cat conftest.err >&5 12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 (exit $ac_status); } && { 12923 test -z "$ac_c_werror_flag" || 12924 test ! -s conftest.err 12925 } && test -s conftest$ac_exeext && { 12926 test "$cross_compiling" = yes || 12927 $as_test_x conftest$ac_exeext 12928 }; then 12929 eval "$as_ac_var=yes" 12930else 12931 $as_echo "$as_me: failed program was:" >&5 12932sed 's/^/| /' conftest.$ac_ext >&5 12933 12934 eval "$as_ac_var=no" 12935fi 12936 12937rm -rf conftest.dSYM 12938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12939 conftest$ac_exeext conftest.$ac_ext 12940fi 12941ac_res=`eval 'as_val=${'$as_ac_var'} 12942 $as_echo "$as_val"'` 12943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12944$as_echo "$ac_res" >&6; } 12945as_val=`eval 'as_val=${'$as_ac_var'} 12946 $as_echo "$as_val"'` 12947 if test "x$as_val" = x""yes; then 12948 cat >>confdefs.h <<_ACEOF 12949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12950_ACEOF 12951 12952fi 12953done 12954 12955 12956# Select OS specific versions of source files. 12957 12958 12959case "$host" in 12960*-*-darwin*) 12961 BUNDLE_HOST="MacOS" 12962 DYN_LIB_EXT="dylib" 12963 ;; 12964*-*-freebsd*) 12965 BUNDLE_HOST="FreeBSD" 12966 DYN_LIB_EXT="so" 12967 ;; 12968*-*-openbsd*) 12969 BUNDLE_HOST="OpenBSD" 12970 DYN_LIB_EXT="so.0.0" 12971 ;; 12972*-*-solaris*) 12973 BUNDLE_HOST="Solaris" 12974 DYN_LIB_EXT="so" 12975 ;; 12976*-*-dragonfly*) 12977 BUNDLE_HOST="DragonFly" 12978 DYN_LIB_EXT="so" 12979 ;; 12980*) 12981 BUNDLE_HOST="Linux" 12982 DYN_LIB_EXT="so" 12983esac 12984 12985# --disable-libusb 12986# Check whether --enable-libusb was given. 12987if test "${enable_libusb+set}" = set; then 12988 enableval=$enable_libusb; use_libusb="${enableval}" 12989else 12990 use_libusb=yes 12991fi 12992 12993 12994use_usb_interrupt=no 12995 12996# check if libusb is used 12997if test "x$use_libusb" != xno ; then 12998 if test -n "$PKG_CONFIG" && \ 12999 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5 13000 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5 13001 ac_status=$? 13002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13003 (exit $ac_status); }; then 13004 13005 13006pkg_failed=no 13007{ $as_echo "$as_me:$LINENO: checking for LIBUSB" >&5 13008$as_echo_n "checking for LIBUSB... " >&6; } 13009 13010if test -n "$PKG_CONFIG"; then 13011 if test -n "$LIBUSB_CFLAGS"; then 13012 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 13013 else 13014 if test -n "$PKG_CONFIG" && \ 13015 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5 13016 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5 13017 ac_status=$? 13018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13019 (exit $ac_status); }; then 13020 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null` 13021else 13022 pkg_failed=yes 13023fi 13024 fi 13025else 13026 pkg_failed=untried 13027fi 13028if test -n "$PKG_CONFIG"; then 13029 if test -n "$LIBUSB_LIBS"; then 13030 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 13031 else 13032 if test -n "$PKG_CONFIG" && \ 13033 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5 13034 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5 13035 ac_status=$? 13036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13037 (exit $ac_status); }; then 13038 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null` 13039else 13040 pkg_failed=yes 13041fi 13042 fi 13043else 13044 pkg_failed=untried 13045fi 13046 13047 13048 13049if test $pkg_failed = yes; then 13050 13051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13052 _pkg_short_errors_supported=yes 13053else 13054 _pkg_short_errors_supported=no 13055fi 13056 if test $_pkg_short_errors_supported = yes; then 13057 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"` 13058 else 13059 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"` 13060 fi 13061 # Put the nasty error message in config.log where it belongs 13062 echo "$LIBUSB_PKG_ERRORS" >&5 13063 13064 { $as_echo "$as_me:$LINENO: result: no" >&5 13065$as_echo "no" >&6; } 13066 13067 # Extract the first word of "libusb-config", so it can be a program name with args. 13068set dummy libusb-config; ac_word=$2 13069{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13070$as_echo_n "checking for $ac_word... " >&6; } 13071if test "${ac_cv_prog_LIBUSBCONFIG+set}" = set; then 13072 $as_echo_n "(cached) " >&6 13073else 13074 if test -n "$LIBUSBCONFIG"; then 13075 ac_cv_prog_LIBUSBCONFIG="$LIBUSBCONFIG" # Let the user override the test. 13076else 13077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13078for as_dir in $PATH 13079do 13080 IFS=$as_save_IFS 13081 test -z "$as_dir" && as_dir=. 13082 for ac_exec_ext in '' $ac_executable_extensions; do 13083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13084 ac_cv_prog_LIBUSBCONFIG="yes" 13085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13086 break 2 13087 fi 13088done 13089done 13090IFS=$as_save_IFS 13091 13092fi 13093fi 13094LIBUSBCONFIG=$ac_cv_prog_LIBUSBCONFIG 13095if test -n "$LIBUSBCONFIG"; then 13096 { $as_echo "$as_me:$LINENO: result: $LIBUSBCONFIG" >&5 13097$as_echo "$LIBUSBCONFIG" >&6; } 13098else 13099 { $as_echo "$as_me:$LINENO: result: no" >&5 13100$as_echo "no" >&6; } 13101fi 13102 13103 13104 13105 if test "$LIBUSBCONFIG" = "yes" ; then 13106 LIBUSB_CFLAGS="$LIBUSB_CFLAGS `libusb-config --cflags`" 13107 LIBUSB_LIBS="$LIBUSB_LIBS `libusb-config --libs`" 13108 else 13109 { $as_echo "$as_me:$LINENO: WARNING: libusb-config not found." >&5 13110$as_echo "$as_me: WARNING: libusb-config not found." >&2;} 13111 fi 13112 13113elif test $pkg_failed = untried; then 13114 13115 # Extract the first word of "libusb-config", so it can be a program name with args. 13116set dummy libusb-config; ac_word=$2 13117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13118$as_echo_n "checking for $ac_word... " >&6; } 13119if test "${ac_cv_prog_LIBUSBCONFIG+set}" = set; then 13120 $as_echo_n "(cached) " >&6 13121else 13122 if test -n "$LIBUSBCONFIG"; then 13123 ac_cv_prog_LIBUSBCONFIG="$LIBUSBCONFIG" # Let the user override the test. 13124else 13125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13126for as_dir in $PATH 13127do 13128 IFS=$as_save_IFS 13129 test -z "$as_dir" && as_dir=. 13130 for ac_exec_ext in '' $ac_executable_extensions; do 13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13132 ac_cv_prog_LIBUSBCONFIG="yes" 13133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13134 break 2 13135 fi 13136done 13137done 13138IFS=$as_save_IFS 13139 13140fi 13141fi 13142LIBUSBCONFIG=$ac_cv_prog_LIBUSBCONFIG 13143if test -n "$LIBUSBCONFIG"; then 13144 { $as_echo "$as_me:$LINENO: result: $LIBUSBCONFIG" >&5 13145$as_echo "$LIBUSBCONFIG" >&6; } 13146else 13147 { $as_echo "$as_me:$LINENO: result: no" >&5 13148$as_echo "no" >&6; } 13149fi 13150 13151 13152 13153 if test "$LIBUSBCONFIG" = "yes" ; then 13154 LIBUSB_CFLAGS="$LIBUSB_CFLAGS `libusb-config --cflags`" 13155 LIBUSB_LIBS="$LIBUSB_LIBS `libusb-config --libs`" 13156 else 13157 { $as_echo "$as_me:$LINENO: WARNING: libusb-config not found." >&5 13158$as_echo "$as_me: WARNING: libusb-config not found." >&2;} 13159 fi 13160 13161else 13162 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 13163 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 13164 { $as_echo "$as_me:$LINENO: result: yes" >&5 13165$as_echo "yes" >&6; } 13166 : 13167fi 13168 13169fi 13170 13171 saved_CPPFLAGS="$CPPFLAGS" 13172 saved_LIBS="$LIBS" 13173 13174 CPPFLAGS="$CPPFLAGS $LIBUSB_CFLAGS" 13175 LIBS="$LDFLAGS $LIBUSB_LIBS" 13176 13177 13178for ac_header in usb.h 13179do 13180as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13183$as_echo_n "checking for $ac_header... " >&6; } 13184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13185 $as_echo_n "(cached) " >&6 13186fi 13187ac_res=`eval 'as_val=${'$as_ac_Header'} 13188 $as_echo "$as_val"'` 13189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13190$as_echo "$ac_res" >&6; } 13191else 13192 # Is the header compilable? 13193{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13194$as_echo_n "checking $ac_header usability... " >&6; } 13195cat >conftest.$ac_ext <<_ACEOF 13196/* confdefs.h. */ 13197_ACEOF 13198cat confdefs.h >>conftest.$ac_ext 13199cat >>conftest.$ac_ext <<_ACEOF 13200/* end confdefs.h. */ 13201$ac_includes_default 13202#include <$ac_header> 13203_ACEOF 13204rm -f conftest.$ac_objext 13205if { (ac_try="$ac_compile" 13206case "(($ac_try" in 13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13208 *) ac_try_echo=$ac_try;; 13209esac 13210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13211$as_echo "$ac_try_echo") >&5 13212 (eval "$ac_compile") 2>conftest.er1 13213 ac_status=$? 13214 grep -v '^ *+' conftest.er1 >conftest.err 13215 rm -f conftest.er1 13216 cat conftest.err >&5 13217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 (exit $ac_status); } && { 13219 test -z "$ac_c_werror_flag" || 13220 test ! -s conftest.err 13221 } && test -s conftest.$ac_objext; then 13222 ac_header_compiler=yes 13223else 13224 $as_echo "$as_me: failed program was:" >&5 13225sed 's/^/| /' conftest.$ac_ext >&5 13226 13227 ac_header_compiler=no 13228fi 13229 13230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13231{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13232$as_echo "$ac_header_compiler" >&6; } 13233 13234# Is the header present? 13235{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13236$as_echo_n "checking $ac_header presence... " >&6; } 13237cat >conftest.$ac_ext <<_ACEOF 13238/* confdefs.h. */ 13239_ACEOF 13240cat confdefs.h >>conftest.$ac_ext 13241cat >>conftest.$ac_ext <<_ACEOF 13242/* end confdefs.h. */ 13243#include <$ac_header> 13244_ACEOF 13245if { (ac_try="$ac_cpp conftest.$ac_ext" 13246case "(($ac_try" in 13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13248 *) ac_try_echo=$ac_try;; 13249esac 13250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13251$as_echo "$ac_try_echo") >&5 13252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13253 ac_status=$? 13254 grep -v '^ *+' conftest.er1 >conftest.err 13255 rm -f conftest.er1 13256 cat conftest.err >&5 13257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13258 (exit $ac_status); } >/dev/null && { 13259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13260 test ! -s conftest.err 13261 }; then 13262 ac_header_preproc=yes 13263else 13264 $as_echo "$as_me: failed program was:" >&5 13265sed 's/^/| /' conftest.$ac_ext >&5 13266 13267 ac_header_preproc=no 13268fi 13269 13270rm -f conftest.err conftest.$ac_ext 13271{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13272$as_echo "$ac_header_preproc" >&6; } 13273 13274# So? What about this header? 13275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13276 yes:no: ) 13277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13278$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13280$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13281 ac_header_preproc=yes 13282 ;; 13283 no:yes:* ) 13284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13285$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13287$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13289$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13291$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13293$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13295$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13296 13297 ;; 13298esac 13299{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13300$as_echo_n "checking for $ac_header... " >&6; } 13301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13302 $as_echo_n "(cached) " >&6 13303else 13304 eval "$as_ac_Header=\$ac_header_preproc" 13305fi 13306ac_res=`eval 'as_val=${'$as_ac_Header'} 13307 $as_echo "$as_val"'` 13308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13309$as_echo "$ac_res" >&6; } 13310 13311fi 13312as_val=`eval 'as_val=${'$as_ac_Header'} 13313 $as_echo "$as_val"'` 13314 if test "x$as_val" = x""yes; then 13315 cat >>confdefs.h <<_ACEOF 13316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13317_ACEOF 13318 13319else 13320 { { $as_echo "$as_me:$LINENO: error: usb.h not found, install libusb or use ./configure LIBUSB_CFLAGS=..." >&5 13321$as_echo "$as_me: error: usb.h not found, install libusb or use ./configure LIBUSB_CFLAGS=..." >&2;} 13322 { (exit 1); exit 1; }; } 13323fi 13324 13325done 13326 13327 13328 { $as_echo "$as_me:$LINENO: checking for usb_init" >&5 13329$as_echo_n "checking for usb_init... " >&6; } 13330 cat >conftest.$ac_ext <<_ACEOF 13331/* confdefs.h. */ 13332_ACEOF 13333cat confdefs.h >>conftest.$ac_ext 13334cat >>conftest.$ac_ext <<_ACEOF 13335/* end confdefs.h. */ 13336 13337/* Override any GCC internal prototype to avoid an error. 13338 Use char because int might match the return type of a GCC 13339 builtin and then its argument prototype would still apply. */ 13340#ifdef __cplusplus 13341extern "C" 13342#endif 13343char usb_init (); 13344int 13345main () 13346{ 13347return usb_init (); 13348 ; 13349 return 0; 13350} 13351_ACEOF 13352rm -f conftest.$ac_objext conftest$ac_exeext 13353if { (ac_try="$ac_link" 13354case "(($ac_try" in 13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13356 *) ac_try_echo=$ac_try;; 13357esac 13358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13359$as_echo "$ac_try_echo") >&5 13360 (eval "$ac_link") 2>conftest.er1 13361 ac_status=$? 13362 grep -v '^ *+' conftest.er1 >conftest.err 13363 rm -f conftest.er1 13364 cat conftest.err >&5 13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13366 (exit $ac_status); } && { 13367 test -z "$ac_c_werror_flag" || 13368 test ! -s conftest.err 13369 } && test -s conftest$ac_exeext && { 13370 test "$cross_compiling" = yes || 13371 $as_test_x conftest$ac_exeext 13372 }; then 13373 { $as_echo "$as_me:$LINENO: result: yes" >&5 13374$as_echo "yes" >&6; } 13375else 13376 $as_echo "$as_me: failed program was:" >&5 13377sed 's/^/| /' conftest.$ac_ext >&5 13378 13379 { { $as_echo "$as_me:$LINENO: error: libusb not found, use ./configure LIBUSB_LIBS=..." >&5 13380$as_echo "$as_me: error: libusb not found, use ./configure LIBUSB_LIBS=..." >&2;} 13381 { (exit 1); exit 1; }; } 13382fi 13383 13384rm -rf conftest.dSYM 13385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13386 conftest$ac_exeext conftest.$ac_ext 13387 13388 { $as_echo "$as_me:$LINENO: checking for usb_interrupt_read" >&5 13389$as_echo_n "checking for usb_interrupt_read... " >&6; } 13390 cat >conftest.$ac_ext <<_ACEOF 13391/* confdefs.h. */ 13392_ACEOF 13393cat confdefs.h >>conftest.$ac_ext 13394cat >>conftest.$ac_ext <<_ACEOF 13395/* end confdefs.h. */ 13396 13397/* Override any GCC internal prototype to avoid an error. 13398 Use char because int might match the return type of a GCC 13399 builtin and then its argument prototype would still apply. */ 13400#ifdef __cplusplus 13401extern "C" 13402#endif 13403char usb_interrupt_read (); 13404int 13405main () 13406{ 13407return usb_interrupt_read (); 13408 ; 13409 return 0; 13410} 13411_ACEOF 13412rm -f conftest.$ac_objext conftest$ac_exeext 13413if { (ac_try="$ac_link" 13414case "(($ac_try" in 13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13416 *) ac_try_echo=$ac_try;; 13417esac 13418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13419$as_echo "$ac_try_echo") >&5 13420 (eval "$ac_link") 2>conftest.er1 13421 ac_status=$? 13422 grep -v '^ *+' conftest.er1 >conftest.err 13423 rm -f conftest.er1 13424 cat conftest.err >&5 13425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13426 (exit $ac_status); } && { 13427 test -z "$ac_c_werror_flag" || 13428 test ! -s conftest.err 13429 } && test -s conftest$ac_exeext && { 13430 test "$cross_compiling" = yes || 13431 $as_test_x conftest$ac_exeext 13432 }; then 13433 { $as_echo "$as_me:$LINENO: result: yes" >&5 13434$as_echo "yes" >&6; } 13435else 13436 $as_echo "$as_me: failed program was:" >&5 13437sed 's/^/| /' conftest.$ac_ext >&5 13438 13439 { { $as_echo "$as_me:$LINENO: error: your libusb is too old. install version 0.1.12 or above" >&5 13440$as_echo "$as_me: error: your libusb is too old. install version 0.1.12 or above" >&2;} 13441 { (exit 1); exit 1; }; } 13442fi 13443 13444rm -rf conftest.dSYM 13445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13446 conftest$ac_exeext conftest.$ac_ext 13447 13448 { $as_echo "$as_me:$LINENO: checking for usb_detach_kernel_driver_np" >&5 13449$as_echo_n "checking for usb_detach_kernel_driver_np... " >&6; } 13450if test "${ac_cv_func_usb_detach_kernel_driver_np+set}" = set; then 13451 $as_echo_n "(cached) " >&6 13452else 13453 cat >conftest.$ac_ext <<_ACEOF 13454/* confdefs.h. */ 13455_ACEOF 13456cat confdefs.h >>conftest.$ac_ext 13457cat >>conftest.$ac_ext <<_ACEOF 13458/* end confdefs.h. */ 13459/* Define usb_detach_kernel_driver_np to an innocuous variant, in case <limits.h> declares usb_detach_kernel_driver_np. 13460 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13461#define usb_detach_kernel_driver_np innocuous_usb_detach_kernel_driver_np 13462 13463/* System header to define __stub macros and hopefully few prototypes, 13464 which can conflict with char usb_detach_kernel_driver_np (); below. 13465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13466 <limits.h> exists even on freestanding compilers. */ 13467 13468#ifdef __STDC__ 13469# include <limits.h> 13470#else 13471# include <assert.h> 13472#endif 13473 13474#undef usb_detach_kernel_driver_np 13475 13476/* Override any GCC internal prototype to avoid an error. 13477 Use char because int might match the return type of a GCC 13478 builtin and then its argument prototype would still apply. */ 13479#ifdef __cplusplus 13480extern "C" 13481#endif 13482char usb_detach_kernel_driver_np (); 13483/* The GNU C library defines this for functions which it implements 13484 to always fail with ENOSYS. Some functions are actually named 13485 something starting with __ and the normal name is an alias. */ 13486#if defined __stub_usb_detach_kernel_driver_np || defined __stub___usb_detach_kernel_driver_np 13487choke me 13488#endif 13489 13490int 13491main () 13492{ 13493return usb_detach_kernel_driver_np (); 13494 ; 13495 return 0; 13496} 13497_ACEOF 13498rm -f conftest.$ac_objext conftest$ac_exeext 13499if { (ac_try="$ac_link" 13500case "(($ac_try" in 13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13502 *) ac_try_echo=$ac_try;; 13503esac 13504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13505$as_echo "$ac_try_echo") >&5 13506 (eval "$ac_link") 2>conftest.er1 13507 ac_status=$? 13508 grep -v '^ *+' conftest.er1 >conftest.err 13509 rm -f conftest.er1 13510 cat conftest.err >&5 13511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13512 (exit $ac_status); } && { 13513 test -z "$ac_c_werror_flag" || 13514 test ! -s conftest.err 13515 } && test -s conftest$ac_exeext && { 13516 test "$cross_compiling" = yes || 13517 $as_test_x conftest$ac_exeext 13518 }; then 13519 ac_cv_func_usb_detach_kernel_driver_np=yes 13520else 13521 $as_echo "$as_me: failed program was:" >&5 13522sed 's/^/| /' conftest.$ac_ext >&5 13523 13524 ac_cv_func_usb_detach_kernel_driver_np=no 13525fi 13526 13527rm -rf conftest.dSYM 13528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13529 conftest$ac_exeext conftest.$ac_ext 13530fi 13531{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_usb_detach_kernel_driver_np" >&5 13532$as_echo "$ac_cv_func_usb_detach_kernel_driver_np" >&6; } 13533if test "x$ac_cv_func_usb_detach_kernel_driver_np" = x""yes; then 13534 13535cat >>confdefs.h <<\_ACEOF 13536#define HAVE_USB_DETACH_KERNEL_DRIVER_NP 1 13537_ACEOF 13538 13539fi 13540 13541 13542 CPPFLAGS="$saved_CPPFLAGS" 13543 LIBS="$saved_LIBS" 13544 13545 use_libusb=yes 13546 13547 { $as_echo "$as_me:$LINENO: checking if libusb is emulated by libusb-compat" >&5 13548$as_echo_n "checking if libusb is emulated by libusb-compat... " >&6; } 13549 a=`$PKG_CONFIG --variable=emulated libusb` 13550 if test "x$a" = "x1"; 13551 then 13552 { $as_echo "$as_me:$LINENO: result: yes" >&5 13553$as_echo "yes" >&6; } 13554 use_usb_interrupt=yes 13555 else 13556 { $as_echo "$as_me:$LINENO: result: no" >&5 13557$as_echo "no" >&6; } 13558 fi 13559 13560fi 13561 13562 13563 if test "${use_libusb}" != "no"; then 13564 WITH_LIBUSB_TRUE= 13565 WITH_LIBUSB_FALSE='#' 13566else 13567 WITH_LIBUSB_TRUE='#' 13568 WITH_LIBUSB_FALSE= 13569fi 13570 13571 13572# --enable-usb-interrupt 13573# Check whether --enable-usb-interrupt was given. 13574if test "${enable_usb_interrupt+set}" = set; then 13575 enableval=$enable_usb_interrupt; use_usb_interrupt="${enableval}" 13576fi 13577 13578 13579if test "x$use_usb_interrupt" = xyes; then 13580 13581cat >>confdefs.h <<\_ACEOF 13582#define USE_USB_INTERRUPT 1 13583_ACEOF 13584 13585fi 13586 13587# --enable-composite-as-multislot 13588use_composite_as_multislot=no 13589# Check whether --enable-composite-as-multislot was given. 13590if test "${enable_composite_as_multislot+set}" = set; then 13591 enableval=$enable_composite_as_multislot; use_composite_as_multislot="${enableval}" 13592fi 13593 13594 13595if test "x$use_composite_as_multislot" = xyes; then 13596 13597cat >>confdefs.h <<\_ACEOF 13598#define USE_COMPOSITE_AS_MULTISLOT 1 13599_ACEOF 13600 13601fi 13602 13603# check if the compiler support -fvisibility=hidden (GCC >= 4) 13604saved_CFLAGS="$CFLAGS" 13605CFLAGS="$CFLAGS -fvisibility=hidden" 13606{ $as_echo "$as_me:$LINENO: checking for -fvisibility=hidden" >&5 13607$as_echo_n "checking for -fvisibility=hidden... " >&6; } 13608cat >conftest.$ac_ext <<_ACEOF 13609char foo; 13610_ACEOF 13611rm -f conftest.$ac_objext 13612if { (ac_try="$ac_compile" 13613case "(($ac_try" in 13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13615 *) ac_try_echo=$ac_try;; 13616esac 13617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13618$as_echo "$ac_try_echo") >&5 13619 (eval "$ac_compile") 2>conftest.er1 13620 ac_status=$? 13621 grep -v '^ *+' conftest.er1 >conftest.err 13622 rm -f conftest.er1 13623 cat conftest.err >&5 13624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13625 (exit $ac_status); } && { 13626 test -z "$ac_c_werror_flag" || 13627 test ! -s conftest.err 13628 } && test -s conftest.$ac_objext; then 13629 { $as_echo "$as_me:$LINENO: result: yes" >&5 13630$as_echo "yes" >&6; } 13631 SYMBOL_VISIBILITY="-fvisibility=hidden" 13632else 13633 $as_echo "$as_me: failed program was:" >&5 13634sed 's/^/| /' conftest.$ac_ext >&5 13635 13636 { $as_echo "$as_me:$LINENO: result: no" >&5 13637$as_echo "no" >&6; } 13638fi 13639 13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13641CFLAGS="$saved_CFLAGS" 13642 13643 13644# --disable-multi-thread 13645# Check whether --enable-multi-thread was given. 13646if test "${enable_multi_thread+set}" = set; then 13647 enableval=$enable_multi_thread; multithread="${enableval}" 13648else 13649 multithread=yes 13650fi 13651 13652 13653if test "${multithread}" != no ; then 13654 13655 13656 13657ac_ext=c 13658ac_cpp='$CPP $CPPFLAGS' 13659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13661ac_compiler_gnu=$ac_cv_c_compiler_gnu 13662 13663acx_pthread_ok=no 13664 13665# We used to check for pthread.h first, but this fails if pthread.h 13666# requires special compiler flags (e.g. on True64 or Sequent). 13667# It gets checked for in the link test anyway. 13668 13669# First of all, check if the user has set any of the PTHREAD_LIBS, 13670# etcetera environment variables, and if threads linking works using 13671# them: 13672if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 13673 save_CFLAGS="$CFLAGS" 13674 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13675 save_LIBS="$LIBS" 13676 LIBS="$PTHREAD_LIBS $LIBS" 13677 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 13678$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 13679 cat >conftest.$ac_ext <<_ACEOF 13680/* confdefs.h. */ 13681_ACEOF 13682cat confdefs.h >>conftest.$ac_ext 13683cat >>conftest.$ac_ext <<_ACEOF 13684/* end confdefs.h. */ 13685 13686/* Override any GCC internal prototype to avoid an error. 13687 Use char because int might match the return type of a GCC 13688 builtin and then its argument prototype would still apply. */ 13689#ifdef __cplusplus 13690extern "C" 13691#endif 13692char pthread_join (); 13693int 13694main () 13695{ 13696return pthread_join (); 13697 ; 13698 return 0; 13699} 13700_ACEOF 13701rm -f conftest.$ac_objext conftest$ac_exeext 13702if { (ac_try="$ac_link" 13703case "(($ac_try" in 13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13705 *) ac_try_echo=$ac_try;; 13706esac 13707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13708$as_echo "$ac_try_echo") >&5 13709 (eval "$ac_link") 2>conftest.er1 13710 ac_status=$? 13711 grep -v '^ *+' conftest.er1 >conftest.err 13712 rm -f conftest.er1 13713 cat conftest.err >&5 13714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13715 (exit $ac_status); } && { 13716 test -z "$ac_c_werror_flag" || 13717 test ! -s conftest.err 13718 } && test -s conftest$ac_exeext && { 13719 test "$cross_compiling" = yes || 13720 $as_test_x conftest$ac_exeext 13721 }; then 13722 acx_pthread_ok=yes 13723else 13724 $as_echo "$as_me: failed program was:" >&5 13725sed 's/^/| /' conftest.$ac_ext >&5 13726 13727 13728fi 13729 13730rm -rf conftest.dSYM 13731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13732 conftest$ac_exeext conftest.$ac_ext 13733 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 13734$as_echo "$acx_pthread_ok" >&6; } 13735 if test x"$acx_pthread_ok" = xno; then 13736 PTHREAD_LIBS="" 13737 PTHREAD_CFLAGS="" 13738 fi 13739 LIBS="$save_LIBS" 13740 CFLAGS="$save_CFLAGS" 13741fi 13742 13743# We must check for the threads library under a number of different 13744# names; the ordering is very important because some systems 13745# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13746# libraries is broken (non-POSIX). 13747 13748# Create a list of thread flags to try. Items starting with a "-" are 13749# C compiler flags, and other items are library names, except for "none" 13750# which indicates that we try without any flags at all, and "pthread-config" 13751# which is a program returning the flags for the Pth emulation library. 13752 13753acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 13754 13755# The ordering *is* (sometimes) important. Some notes on the 13756# individual items follow: 13757 13758# pthreads: AIX (must check this before -lpthread) 13759# none: in case threads are in libc; should be tried before -Kthread and 13760# other compiler flags to prevent continual compiler warnings 13761# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13762# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13763# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13764# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 13765# -pthreads: Solaris/gcc 13766# -mthreads: Mingw32/gcc, Lynx/gcc 13767# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13768# doesn't hurt to check since this sometimes defines pthreads too; 13769# also defines -D_REENTRANT) 13770# ... -mt is also the pthreads flag for HP/aCC 13771# pthread: Linux, etcetera 13772# --thread-safe: KAI C++ 13773# pthread-config: use pthread-config program (for GNU Pth library) 13774 13775case "${host_cpu}-${host_os}" in 13776 *solaris*) 13777 13778 # On Solaris (at least, for some versions), libc contains stubbed 13779 # (non-functional) versions of the pthreads routines, so link-based 13780 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 13781 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 13782 # a function called by this macro, so we could check for that, but 13783 # who knows whether they'll stub that too in a future libc.) So, 13784 # we'll just look for -pthreads and -lpthread first: 13785 13786 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 13787 ;; 13788esac 13789 13790if test x"$acx_pthread_ok" = xno; then 13791for flag in $acx_pthread_flags; do 13792 13793 case $flag in 13794 none) 13795 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 13796$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13797 ;; 13798 13799 -*) 13800 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 13801$as_echo_n "checking whether pthreads work with $flag... " >&6; } 13802 PTHREAD_CFLAGS="$flag" 13803 ;; 13804 13805 pthread-config) 13806 # Extract the first word of "pthread-config", so it can be a program name with args. 13807set dummy pthread-config; ac_word=$2 13808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 13809$as_echo_n "checking for $ac_word... " >&6; } 13810if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 13811 $as_echo_n "(cached) " >&6 13812else 13813 if test -n "$acx_pthread_config"; then 13814 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 13815else 13816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13817for as_dir in $PATH 13818do 13819 IFS=$as_save_IFS 13820 test -z "$as_dir" && as_dir=. 13821 for ac_exec_ext in '' $ac_executable_extensions; do 13822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13823 ac_cv_prog_acx_pthread_config="yes" 13824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13825 break 2 13826 fi 13827done 13828done 13829IFS=$as_save_IFS 13830 13831 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 13832fi 13833fi 13834acx_pthread_config=$ac_cv_prog_acx_pthread_config 13835if test -n "$acx_pthread_config"; then 13836 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 13837$as_echo "$acx_pthread_config" >&6; } 13838else 13839 { $as_echo "$as_me:$LINENO: result: no" >&5 13840$as_echo "no" >&6; } 13841fi 13842 13843 13844 if test x"$acx_pthread_config" = xno; then continue; fi 13845 PTHREAD_CFLAGS="`pthread-config --cflags`" 13846 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 13847 ;; 13848 13849 *) 13850 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 13851$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 13852 PTHREAD_LIBS="-l$flag" 13853 ;; 13854 esac 13855 13856 save_LIBS="$LIBS" 13857 save_CFLAGS="$CFLAGS" 13858 LIBS="$PTHREAD_LIBS $LIBS" 13859 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13860 13861 # Check for various functions. We must include pthread.h, 13862 # since some functions may be macros. (On the Sequent, we 13863 # need a special flag -Kthread to make this header compile.) 13864 # We check for pthread_join because it is in -lpthread on IRIX 13865 # while pthread_create is in libc. We check for pthread_attr_init 13866 # due to DEC craziness with -lpthreads. We check for 13867 # pthread_cleanup_push because it is one of the few pthread 13868 # functions on Solaris that doesn't have a non-functional libc stub. 13869 # We try pthread_create on general principles. 13870 cat >conftest.$ac_ext <<_ACEOF 13871/* confdefs.h. */ 13872_ACEOF 13873cat confdefs.h >>conftest.$ac_ext 13874cat >>conftest.$ac_ext <<_ACEOF 13875/* end confdefs.h. */ 13876#include <pthread.h> 13877int 13878main () 13879{ 13880pthread_t th; pthread_join(th, 0); 13881 pthread_attr_init(0); pthread_cleanup_push(0, 0); 13882 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 13883 ; 13884 return 0; 13885} 13886_ACEOF 13887rm -f conftest.$ac_objext conftest$ac_exeext 13888if { (ac_try="$ac_link" 13889case "(($ac_try" in 13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13891 *) ac_try_echo=$ac_try;; 13892esac 13893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13894$as_echo "$ac_try_echo") >&5 13895 (eval "$ac_link") 2>conftest.er1 13896 ac_status=$? 13897 grep -v '^ *+' conftest.er1 >conftest.err 13898 rm -f conftest.er1 13899 cat conftest.err >&5 13900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13901 (exit $ac_status); } && { 13902 test -z "$ac_c_werror_flag" || 13903 test ! -s conftest.err 13904 } && test -s conftest$ac_exeext && { 13905 test "$cross_compiling" = yes || 13906 $as_test_x conftest$ac_exeext 13907 }; then 13908 acx_pthread_ok=yes 13909else 13910 $as_echo "$as_me: failed program was:" >&5 13911sed 's/^/| /' conftest.$ac_ext >&5 13912 13913 13914fi 13915 13916rm -rf conftest.dSYM 13917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13918 conftest$ac_exeext conftest.$ac_ext 13919 13920 LIBS="$save_LIBS" 13921 CFLAGS="$save_CFLAGS" 13922 13923 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 13924$as_echo "$acx_pthread_ok" >&6; } 13925 if test "x$acx_pthread_ok" = xyes; then 13926 break; 13927 fi 13928 13929 PTHREAD_LIBS="" 13930 PTHREAD_CFLAGS="" 13931done 13932fi 13933 13934# Various other checks: 13935if test "x$acx_pthread_ok" = xyes; then 13936 save_LIBS="$LIBS" 13937 LIBS="$PTHREAD_LIBS $LIBS" 13938 save_CFLAGS="$CFLAGS" 13939 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13940 13941 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 13942 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 13943$as_echo_n "checking for joinable pthread attribute... " >&6; } 13944 attr_name=unknown 13945 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 13946 cat >conftest.$ac_ext <<_ACEOF 13947/* confdefs.h. */ 13948_ACEOF 13949cat confdefs.h >>conftest.$ac_ext 13950cat >>conftest.$ac_ext <<_ACEOF 13951/* end confdefs.h. */ 13952#include <pthread.h> 13953int 13954main () 13955{ 13956int attr=$attr; return attr; 13957 ; 13958 return 0; 13959} 13960_ACEOF 13961rm -f conftest.$ac_objext conftest$ac_exeext 13962if { (ac_try="$ac_link" 13963case "(($ac_try" in 13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13965 *) ac_try_echo=$ac_try;; 13966esac 13967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13968$as_echo "$ac_try_echo") >&5 13969 (eval "$ac_link") 2>conftest.er1 13970 ac_status=$? 13971 grep -v '^ *+' conftest.er1 >conftest.err 13972 rm -f conftest.er1 13973 cat conftest.err >&5 13974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); } && { 13976 test -z "$ac_c_werror_flag" || 13977 test ! -s conftest.err 13978 } && test -s conftest$ac_exeext && { 13979 test "$cross_compiling" = yes || 13980 $as_test_x conftest$ac_exeext 13981 }; then 13982 attr_name=$attr; break 13983else 13984 $as_echo "$as_me: failed program was:" >&5 13985sed 's/^/| /' conftest.$ac_ext >&5 13986 13987 13988fi 13989 13990rm -rf conftest.dSYM 13991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13992 conftest$ac_exeext conftest.$ac_ext 13993 done 13994 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5 13995$as_echo "$attr_name" >&6; } 13996 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 13997 13998cat >>confdefs.h <<_ACEOF 13999#define PTHREAD_CREATE_JOINABLE $attr_name 14000_ACEOF 14001 14002 fi 14003 14004 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 14005$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 14006 flag=no 14007 case "${host_cpu}-${host_os}" in 14008 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 14009 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 14010 esac 14011 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5 14012$as_echo "${flag}" >&6; } 14013 if test "x$flag" != xno; then 14014 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 14015 fi 14016 14017 LIBS="$save_LIBS" 14018 CFLAGS="$save_CFLAGS" 14019 14020 # More AIX lossage: must compile with xlc_r or cc_r 14021 if test x"$GCC" != xyes; then 14022 for ac_prog in xlc_r cc_r 14023do 14024 # Extract the first word of "$ac_prog", so it can be a program name with args. 14025set dummy $ac_prog; ac_word=$2 14026{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 14027$as_echo_n "checking for $ac_word... " >&6; } 14028if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 14029 $as_echo_n "(cached) " >&6 14030else 14031 if test -n "$PTHREAD_CC"; then 14032 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 14033else 14034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14035for as_dir in $PATH 14036do 14037 IFS=$as_save_IFS 14038 test -z "$as_dir" && as_dir=. 14039 for ac_exec_ext in '' $ac_executable_extensions; do 14040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14041 ac_cv_prog_PTHREAD_CC="$ac_prog" 14042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14043 break 2 14044 fi 14045done 14046done 14047IFS=$as_save_IFS 14048 14049fi 14050fi 14051PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 14052if test -n "$PTHREAD_CC"; then 14053 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 14054$as_echo "$PTHREAD_CC" >&6; } 14055else 14056 { $as_echo "$as_me:$LINENO: result: no" >&5 14057$as_echo "no" >&6; } 14058fi 14059 14060 14061 test -n "$PTHREAD_CC" && break 14062done 14063test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 14064 14065 else 14066 PTHREAD_CC=$CC 14067 fi 14068else 14069 PTHREAD_CC="$CC" 14070fi 14071 14072 14073 14074 14075 14076# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14077if test x"$acx_pthread_ok" = xyes; then 14078 14079cat >>confdefs.h <<\_ACEOF 14080#define HAVE_PTHREAD 1 14081_ACEOF 14082 14083 14084 : 14085else 14086 acx_pthread_ok=no 14087 { { $as_echo "$as_me:$LINENO: error: POSIX thread support required" >&5 14088$as_echo "$as_me: error: POSIX thread support required" >&2;} 14089 { (exit 1); exit 1; }; } 14090fi 14091ac_ext=c 14092ac_cpp='$CPP $CPPFLAGS' 14093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14095ac_compiler_gnu=$ac_cv_c_compiler_gnu 14096 14097 14098 14099 multithread=yes 14100fi 14101 14102# --enable-bundle=NAME 14103# Check whether --enable-bundle was given. 14104if test "${enable_bundle+set}" = set; then 14105 enableval=$enable_bundle; bundle="${enableval}" 14106else 14107 bundle=false 14108fi 14109 14110if test "${bundle}" = false ; then 14111 bundle="ifd-ccid.bundle" 14112fi 14113 14114cat >>confdefs.h <<_ACEOF 14115#define BUNDLE "$bundle" 14116_ACEOF 14117 14118 14119# --enable-usbdropdir=DIR 14120# Check whether --enable-usbdropdir was given. 14121if test "${enable_usbdropdir+set}" = set; then 14122 enableval=$enable_usbdropdir; usbdropdir="${enableval}" 14123else 14124 usbdropdir=false 14125fi 14126 14127if test "${usbdropdir}" = false ; then 14128 usbdropdir=`$PKG_CONFIG libpcsclite --variable=usbdropdir` 14129fi 14130 14131cat >>confdefs.h <<_ACEOF 14132#define PCSCLITE_HP_DROPDIR "$usbdropdir" 14133_ACEOF 14134 14135if test "${usbdropdir}" = "" ; then 14136 { { $as_echo "$as_me:$LINENO: error: use --enable-usbdropdir=DIR" >&5 14137$as_echo "$as_me: error: use --enable-usbdropdir=DIR" >&2;} 14138 { (exit 1); exit 1; }; } 14139fi 14140 14141# --enable-twinserial 14142# Check whether --enable-twinserial was given. 14143if test "${enable_twinserial+set}" = set; then 14144 enableval=$enable_twinserial; twinserial="${enableval}" 14145else 14146 twinserial=no 14147fi 14148 14149 if test "${twinserial}" != "no"; then 14150 WITH_TWIN_SERIAL_TRUE= 14151 WITH_TWIN_SERIAL_FALSE='#' 14152else 14153 WITH_TWIN_SERIAL_TRUE='#' 14154 WITH_TWIN_SERIAL_FALSE= 14155fi 14156 14157 14158# --enable-ccidtwindir=DIR 14159# Check whether --enable-ccidtwindir was given. 14160if test "${enable_ccidtwindir+set}" = set; then 14161 enableval=$enable_ccidtwindir; ccidtwindir="${enableval}" 14162else 14163 ccidtwindir=false 14164fi 14165 14166if test "${ccidtwindir}" = false ; then 14167 ccidtwindir=`$PKG_CONFIG libpcsclite --variable=usbdropdir`/serial 14168fi 14169 14170# --disable-pcsclite 14171# Check whether --enable-pcsclite was given. 14172if test "${enable_pcsclite+set}" = set; then 14173 enableval=$enable_pcsclite; pcsclite="${enableval}" 14174else 14175 pcsclite=yes 14176fi 14177 14178 14179if test "${pcsclite}" != no ; then 14180 # check that pcsc-lite is installed 14181 OLD_LIBS="$LIBS" 14182 OLD_CFLAGS="$CFLAGS" 14183 LIBS="$LIBS $PCSC_LIBS" 14184 CFLAGS="$CFLAGS $PCSC_CFLAGS" 14185 { $as_echo "$as_me:$LINENO: checking for SCardEstablishContext" >&5 14186$as_echo_n "checking for SCardEstablishContext... " >&6; } 14187 cat >conftest.$ac_ext <<_ACEOF 14188/* confdefs.h. */ 14189_ACEOF 14190cat confdefs.h >>conftest.$ac_ext 14191cat >>conftest.$ac_ext <<_ACEOF 14192/* end confdefs.h. */ 14193 14194/* Override any GCC internal prototype to avoid an error. 14195 Use char because int might match the return type of a GCC 14196 builtin and then its argument prototype would still apply. */ 14197#ifdef __cplusplus 14198extern "C" 14199#endif 14200char SCardEstablishContext (); 14201int 14202main () 14203{ 14204return SCardEstablishContext (); 14205 ; 14206 return 0; 14207} 14208_ACEOF 14209rm -f conftest.$ac_objext conftest$ac_exeext 14210if { (ac_try="$ac_link" 14211case "(($ac_try" in 14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14213 *) ac_try_echo=$ac_try;; 14214esac 14215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14216$as_echo "$ac_try_echo") >&5 14217 (eval "$ac_link") 2>conftest.er1 14218 ac_status=$? 14219 grep -v '^ *+' conftest.er1 >conftest.err 14220 rm -f conftest.er1 14221 cat conftest.err >&5 14222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14223 (exit $ac_status); } && { 14224 test -z "$ac_c_werror_flag" || 14225 test ! -s conftest.err 14226 } && test -s conftest$ac_exeext && { 14227 test "$cross_compiling" = yes || 14228 $as_test_x conftest$ac_exeext 14229 }; then 14230 { $as_echo "$as_me:$LINENO: result: yes" >&5 14231$as_echo "yes" >&6; } 14232else 14233 $as_echo "$as_me: failed program was:" >&5 14234sed 's/^/| /' conftest.$ac_ext >&5 14235 14236 { { $as_echo "$as_me:$LINENO: error: SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later,or use PCSC_LIBS=... ./configure" >&5 14237$as_echo "$as_me: error: SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later,or use PCSC_LIBS=... ./configure" >&2;} 14238 { (exit 1); exit 1; }; } 14239fi 14240 14241rm -rf conftest.dSYM 14242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14243 conftest$ac_exeext conftest.$ac_ext 14244 LIBS="$OLD_LIBS" 14245 CFLAGS="$OLD_CFLAGS" 14246 14247 pcsclite=yes 14248fi 14249 if test "${pcsclite}" != "yes"; then 14250 WITHOUT_PCSC_TRUE= 14251 WITHOUT_PCSC_FALSE='#' 14252else 14253 WITHOUT_PCSC_TRUE='#' 14254 WITHOUT_PCSC_FALSE= 14255fi 14256 14257 14258# --enable-udev 14259# Check whether --enable-udev was given. 14260if test "${enable_udev+set}" = set; then 14261 enableval=$enable_udev; udev="${enableval}" 14262else 14263 udev=no 14264fi 14265 14266 if test "${udev}" != "no"; then 14267 UDEV_TRUE= 14268 UDEV_FALSE='#' 14269else 14270 UDEV_TRUE='#' 14271 UDEV_FALSE= 14272fi 14273 14274 14275# --disable-class 14276# Check whether --enable-class was given. 14277if test "${enable_class+set}" = set; then 14278 enableval=$enable_class; class="${enableval}" 14279else 14280 class=yes 14281fi 14282 14283if test "${class}" != yes ; then 14284 NOCLASS="--no-class" 14285fi 14286 14287 14288 14289# Setup dist stuff 14290 14291 14292 14293 14294 14295cat << EOF 14296 14297libccid has been configured with following options: 14298 14299Version: ${PACKAGE_VERSION} 14300User binaries: $(eval eval eval echo "${bindir}") 14301Configuration files: $(eval eval eval echo "${sysconfdir}") 14302 14303 14304Host: ${host} 14305Compiler: ${CC} 14306Preprocessor flags: ${CPPFLAGS} 14307Compiler flags: ${CFLAGS} 14308Preprocessor flags: ${CPPFLAGS} 14309Linker flags: ${LDFLAGS} 14310Libraries: ${LIBS} 14311 14312PCSC_CFLAGS: ${PCSC_CFLAGS} 14313PCSC_LIBS: ${PCSC_LIBS} 14314PTHREAD_CFLAGS: ${PTHREAD_CFLAGS} 14315PTHREAD_LIBS: ${PTHREAD_LIBS} 14316BUNDLE_HOST: ${BUNDLE_HOST} 14317DYN_LIB_EXT: ${DYN_LIB_EXT} 14318LIBUSB_CFLAGS: ${LIBUSB_CFLAGS} 14319LIBUSB_LIBS: ${LIBUSB_LIBS} 14320SYMBOL_VISIBILITY: ${SYMBOL_VISIBILITY} 14321NOCLASS: ${NOCLASS} 14322 14323libusb support: ${use_libusb} 14324use USB interrupt: ${use_usb_interrupt} 14325composite as multislot: ${use_composite_as_multislot} 14326multi threading: ${multithread} 14327bundle directory name: ${bundle} 14328USB drop directory: ${usbdropdir} 14329serial Twin support: ${twinserial} 14330serial twin install dir: ${ccidtwindir} 14331compiled for pcsc-lite: ${pcsclite} 14332udev support: ${udev} 14333class driver: ${class} 14334 14335EOF 14336 14337# Write Makefiles. 14338ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile readers/Makefile contrib/Makefile contrib/Kobil_mIDentity_switch/Makefile contrib/RSA_SecurID/Makefile examples/Makefile" 14339 14340 14341cat >confcache <<\_ACEOF 14342# This file is a shell script that caches the results of configure 14343# tests run on this system so they can be shared between configure 14344# scripts and configure runs, see configure's option --config-cache. 14345# It is not useful on other systems. If it contains results you don't 14346# want to keep, you may remove or edit it. 14347# 14348# config.status only pays attention to the cache file if you give it 14349# the --recheck option to rerun configure. 14350# 14351# `ac_cv_env_foo' variables (set or unset) will be overridden when 14352# loading this file, other *unset* `ac_cv_foo' will be assigned the 14353# following values. 14354 14355_ACEOF 14356 14357# The following way of writing the cache mishandles newlines in values, 14358# but we know of no workaround that is simple, portable, and efficient. 14359# So, we kill variables containing newlines. 14360# Ultrix sh set writes to stderr and can't be redirected directly, 14361# and sets the high bit in the cache file unless we assign to the vars. 14362( 14363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14364 eval ac_val=\$$ac_var 14365 case $ac_val in #( 14366 *${as_nl}*) 14367 case $ac_var in #( 14368 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 14369$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14370 esac 14371 case $ac_var in #( 14372 _ | IFS | as_nl) ;; #( 14373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14374 *) $as_unset $ac_var ;; 14375 esac ;; 14376 esac 14377 done 14378 14379 (set) 2>&1 | 14380 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14381 *${as_nl}ac_space=\ *) 14382 # `set' does not quote correctly, so add quotes (double-quote 14383 # substitution turns \\\\ into \\, and sed turns \\ into \). 14384 sed -n \ 14385 "s/'/'\\\\''/g; 14386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14387 ;; #( 14388 *) 14389 # `set' quotes correctly as required by POSIX, so do not add quotes. 14390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14391 ;; 14392 esac | 14393 sort 14394) | 14395 sed ' 14396 /^ac_cv_env_/b end 14397 t clear 14398 :clear 14399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14400 t end 14401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14402 :end' >>confcache 14403if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14404 if test -w "$cache_file"; then 14405 test "x$cache_file" != "x/dev/null" && 14406 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14407$as_echo "$as_me: updating cache $cache_file" >&6;} 14408 cat confcache >$cache_file 14409 else 14410 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14411$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14412 fi 14413fi 14414rm -f confcache 14415 14416test "x$prefix" = xNONE && prefix=$ac_default_prefix 14417# Let make expand exec_prefix. 14418test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14419 14420DEFS=-DHAVE_CONFIG_H 14421 14422ac_libobjs= 14423ac_ltlibobjs= 14424for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14425 # 1. Remove the extension, and $U if already installed. 14426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14429 # will be set to the directory where LIBOBJS objects are built. 14430 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14431 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14432done 14433LIBOBJS=$ac_libobjs 14434 14435LTLIBOBJS=$ac_ltlibobjs 14436 14437 14438if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14439 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 14440Usually this means the macro was only invoked conditionally." >&5 14441$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 14442Usually this means the macro was only invoked conditionally." >&2;} 14443 { (exit 1); exit 1; }; } 14444fi 14445if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14446 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14447Usually this means the macro was only invoked conditionally." >&5 14448$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14449Usually this means the macro was only invoked conditionally." >&2;} 14450 { (exit 1); exit 1; }; } 14451fi 14452if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14453 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14454Usually this means the macro was only invoked conditionally." >&5 14455$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14456Usually this means the macro was only invoked conditionally." >&2;} 14457 { (exit 1); exit 1; }; } 14458fi 14459if test -z "${WITH_LIBUSB_TRUE}" && test -z "${WITH_LIBUSB_FALSE}"; then 14460 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LIBUSB\" was never defined. 14461Usually this means the macro was only invoked conditionally." >&5 14462$as_echo "$as_me: error: conditional \"WITH_LIBUSB\" was never defined. 14463Usually this means the macro was only invoked conditionally." >&2;} 14464 { (exit 1); exit 1; }; } 14465fi 14466if test -z "${WITH_TWIN_SERIAL_TRUE}" && test -z "${WITH_TWIN_SERIAL_FALSE}"; then 14467 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_TWIN_SERIAL\" was never defined. 14468Usually this means the macro was only invoked conditionally." >&5 14469$as_echo "$as_me: error: conditional \"WITH_TWIN_SERIAL\" was never defined. 14470Usually this means the macro was only invoked conditionally." >&2;} 14471 { (exit 1); exit 1; }; } 14472fi 14473if test -z "${WITHOUT_PCSC_TRUE}" && test -z "${WITHOUT_PCSC_FALSE}"; then 14474 { { $as_echo "$as_me:$LINENO: error: conditional \"WITHOUT_PCSC\" was never defined. 14475Usually this means the macro was only invoked conditionally." >&5 14476$as_echo "$as_me: error: conditional \"WITHOUT_PCSC\" was never defined. 14477Usually this means the macro was only invoked conditionally." >&2;} 14478 { (exit 1); exit 1; }; } 14479fi 14480if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then 14481 { { $as_echo "$as_me:$LINENO: error: conditional \"UDEV\" was never defined. 14482Usually this means the macro was only invoked conditionally." >&5 14483$as_echo "$as_me: error: conditional \"UDEV\" was never defined. 14484Usually this means the macro was only invoked conditionally." >&2;} 14485 { (exit 1); exit 1; }; } 14486fi 14487 14488: ${CONFIG_STATUS=./config.status} 14489ac_write_fail=0 14490ac_clean_files_save=$ac_clean_files 14491ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14492{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14493$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14494cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14495#! $SHELL 14496# Generated by $as_me. 14497# Run this file to recreate the current configuration. 14498# Compiler output produced by configure, useful for debugging 14499# configure, is in config.log if it exists. 14500 14501debug=false 14502ac_cs_recheck=false 14503ac_cs_silent=false 14504SHELL=\${CONFIG_SHELL-$SHELL} 14505_ACEOF 14506 14507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14508## --------------------- ## 14509## M4sh Initialization. ## 14510## --------------------- ## 14511 14512# Be more Bourne compatible 14513DUALCASE=1; export DUALCASE # for MKS sh 14514if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14515 emulate sh 14516 NULLCMD=: 14517 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14518 # is contrary to our usage. Disable this feature. 14519 alias -g '${1+"$@"}'='"$@"' 14520 setopt NO_GLOB_SUBST 14521else 14522 case `(set -o) 2>/dev/null` in 14523 *posix*) set -o posix ;; 14524esac 14525 14526fi 14527 14528 14529 14530 14531# PATH needs CR 14532# Avoid depending upon Character Ranges. 14533as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14534as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14535as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14536as_cr_digits='0123456789' 14537as_cr_alnum=$as_cr_Letters$as_cr_digits 14538 14539as_nl=' 14540' 14541export as_nl 14542# Printing a long string crashes Solaris 7 /usr/bin/printf. 14543as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14544as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14545as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14546if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14547 as_echo='printf %s\n' 14548 as_echo_n='printf %s' 14549else 14550 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14551 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14552 as_echo_n='/usr/ucb/echo -n' 14553 else 14554 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14555 as_echo_n_body='eval 14556 arg=$1; 14557 case $arg in 14558 *"$as_nl"*) 14559 expr "X$arg" : "X\\(.*\\)$as_nl"; 14560 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14561 esac; 14562 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14563 ' 14564 export as_echo_n_body 14565 as_echo_n='sh -c $as_echo_n_body as_echo' 14566 fi 14567 export as_echo_body 14568 as_echo='sh -c $as_echo_body as_echo' 14569fi 14570 14571# The user is always right. 14572if test "${PATH_SEPARATOR+set}" != set; then 14573 PATH_SEPARATOR=: 14574 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14575 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14576 PATH_SEPARATOR=';' 14577 } 14578fi 14579 14580# Support unset when possible. 14581if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14582 as_unset=unset 14583else 14584 as_unset=false 14585fi 14586 14587 14588# IFS 14589# We need space, tab and new line, in precisely that order. Quoting is 14590# there to prevent editors from complaining about space-tab. 14591# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14592# splitting by setting IFS to empty value.) 14593IFS=" "" $as_nl" 14594 14595# Find who we are. Look in the path if we contain no directory separator. 14596case $0 in 14597 *[\\/]* ) as_myself=$0 ;; 14598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14599for as_dir in $PATH 14600do 14601 IFS=$as_save_IFS 14602 test -z "$as_dir" && as_dir=. 14603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14604done 14605IFS=$as_save_IFS 14606 14607 ;; 14608esac 14609# We did not find ourselves, most probably we were run as `sh COMMAND' 14610# in which case we are not to be found in the path. 14611if test "x$as_myself" = x; then 14612 as_myself=$0 14613fi 14614if test ! -f "$as_myself"; then 14615 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14616 { (exit 1); exit 1; } 14617fi 14618 14619# Work around bugs in pre-3.0 UWIN ksh. 14620for as_var in ENV MAIL MAILPATH 14621do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14622done 14623PS1='$ ' 14624PS2='> ' 14625PS4='+ ' 14626 14627# NLS nuisances. 14628LC_ALL=C 14629export LC_ALL 14630LANGUAGE=C 14631export LANGUAGE 14632 14633# Required to use basename. 14634if expr a : '\(a\)' >/dev/null 2>&1 && 14635 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14636 as_expr=expr 14637else 14638 as_expr=false 14639fi 14640 14641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14642 as_basename=basename 14643else 14644 as_basename=false 14645fi 14646 14647 14648# Name of the executable. 14649as_me=`$as_basename -- "$0" || 14650$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14651 X"$0" : 'X\(//\)$' \| \ 14652 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14653$as_echo X/"$0" | 14654 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14655 s//\1/ 14656 q 14657 } 14658 /^X\/\(\/\/\)$/{ 14659 s//\1/ 14660 q 14661 } 14662 /^X\/\(\/\).*/{ 14663 s//\1/ 14664 q 14665 } 14666 s/.*/./; q'` 14667 14668# CDPATH. 14669$as_unset CDPATH 14670 14671 14672 14673 as_lineno_1=$LINENO 14674 as_lineno_2=$LINENO 14675 test "x$as_lineno_1" != "x$as_lineno_2" && 14676 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14677 14678 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14679 # uniformly replaced by the line number. The first 'sed' inserts a 14680 # line-number line after each line using $LINENO; the second 'sed' 14681 # does the real work. The second script uses 'N' to pair each 14682 # line-number line with the line containing $LINENO, and appends 14683 # trailing '-' during substitution so that $LINENO is not a special 14684 # case at line end. 14685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14686 # scripts with optimization help from Paolo Bonzini. Blame Lee 14687 # E. McMahon (1931-1989) for sed's syntax. :-) 14688 sed -n ' 14689 p 14690 /[$]LINENO/= 14691 ' <$as_myself | 14692 sed ' 14693 s/[$]LINENO.*/&-/ 14694 t lineno 14695 b 14696 :lineno 14697 N 14698 :loop 14699 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14700 t loop 14701 s/-\n.*// 14702 ' >$as_me.lineno && 14703 chmod +x "$as_me.lineno" || 14704 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14705 { (exit 1); exit 1; }; } 14706 14707 # Don't try to exec as it changes $[0], causing all sort of problems 14708 # (the dirname of $[0] is not the place where we might find the 14709 # original and so on. Autoconf is especially sensitive to this). 14710 . "./$as_me.lineno" 14711 # Exit status is that of the last command. 14712 exit 14713} 14714 14715 14716if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14717 as_dirname=dirname 14718else 14719 as_dirname=false 14720fi 14721 14722ECHO_C= ECHO_N= ECHO_T= 14723case `echo -n x` in 14724-n*) 14725 case `echo 'x\c'` in 14726 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14727 *) ECHO_C='\c';; 14728 esac;; 14729*) 14730 ECHO_N='-n';; 14731esac 14732if expr a : '\(a\)' >/dev/null 2>&1 && 14733 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14734 as_expr=expr 14735else 14736 as_expr=false 14737fi 14738 14739rm -f conf$$ conf$$.exe conf$$.file 14740if test -d conf$$.dir; then 14741 rm -f conf$$.dir/conf$$.file 14742else 14743 rm -f conf$$.dir 14744 mkdir conf$$.dir 2>/dev/null 14745fi 14746if (echo >conf$$.file) 2>/dev/null; then 14747 if ln -s conf$$.file conf$$ 2>/dev/null; then 14748 as_ln_s='ln -s' 14749 # ... but there are two gotchas: 14750 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14751 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14752 # In both cases, we have to default to `cp -p'. 14753 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14754 as_ln_s='cp -p' 14755 elif ln conf$$.file conf$$ 2>/dev/null; then 14756 as_ln_s=ln 14757 else 14758 as_ln_s='cp -p' 14759 fi 14760else 14761 as_ln_s='cp -p' 14762fi 14763rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14764rmdir conf$$.dir 2>/dev/null 14765 14766if mkdir -p . 2>/dev/null; then 14767 as_mkdir_p=: 14768else 14769 test -d ./-p && rmdir ./-p 14770 as_mkdir_p=false 14771fi 14772 14773if test -x / >/dev/null 2>&1; then 14774 as_test_x='test -x' 14775else 14776 if ls -dL / >/dev/null 2>&1; then 14777 as_ls_L_option=L 14778 else 14779 as_ls_L_option= 14780 fi 14781 as_test_x=' 14782 eval sh -c '\'' 14783 if test -d "$1"; then 14784 test -d "$1/."; 14785 else 14786 case $1 in 14787 -*)set "./$1";; 14788 esac; 14789 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14790 ???[sx]*):;;*)false;;esac;fi 14791 '\'' sh 14792 ' 14793fi 14794as_executable_p=$as_test_x 14795 14796# Sed expression to map a string onto a valid CPP name. 14797as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14798 14799# Sed expression to map a string onto a valid variable name. 14800as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14801 14802 14803exec 6>&1 14804 14805# Save the log message, to keep $[0] and so on meaningful, and to 14806# report actual input values of CONFIG_FILES etc. instead of their 14807# values after options handling. 14808ac_log=" 14809This file was extended by ccid $as_me 1.3.11, which was 14810generated by GNU Autoconf 2.63. Invocation command line was 14811 14812 CONFIG_FILES = $CONFIG_FILES 14813 CONFIG_HEADERS = $CONFIG_HEADERS 14814 CONFIG_LINKS = $CONFIG_LINKS 14815 CONFIG_COMMANDS = $CONFIG_COMMANDS 14816 $ $0 $@ 14817 14818on `(hostname || uname -n) 2>/dev/null | sed 1q` 14819" 14820 14821_ACEOF 14822 14823case $ac_config_files in *" 14824"*) set x $ac_config_files; shift; ac_config_files=$*;; 14825esac 14826 14827case $ac_config_headers in *" 14828"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14829esac 14830 14831 14832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14833# Files that config.status was made for. 14834config_files="$ac_config_files" 14835config_headers="$ac_config_headers" 14836config_commands="$ac_config_commands" 14837 14838_ACEOF 14839 14840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14841ac_cs_usage="\ 14842\`$as_me' instantiates files from templates according to the 14843current configuration. 14844 14845Usage: $0 [OPTION]... [FILE]... 14846 14847 -h, --help print this help, then exit 14848 -V, --version print version number and configuration settings, then exit 14849 -q, --quiet, --silent 14850 do not print progress messages 14851 -d, --debug don't remove temporary files 14852 --recheck update $as_me by reconfiguring in the same conditions 14853 --file=FILE[:TEMPLATE] 14854 instantiate the configuration file FILE 14855 --header=FILE[:TEMPLATE] 14856 instantiate the configuration header FILE 14857 14858Configuration files: 14859$config_files 14860 14861Configuration headers: 14862$config_headers 14863 14864Configuration commands: 14865$config_commands 14866 14867Report bugs to <bug-autoconf@gnu.org>." 14868 14869_ACEOF 14870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14871ac_cs_version="\\ 14872ccid config.status 1.3.11 14873configured by $0, generated by GNU Autoconf 2.63, 14874 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14875 14876Copyright (C) 2008 Free Software Foundation, Inc. 14877This config.status script is free software; the Free Software Foundation 14878gives unlimited permission to copy, distribute and modify it." 14879 14880ac_pwd='$ac_pwd' 14881srcdir='$srcdir' 14882INSTALL='$INSTALL' 14883MKDIR_P='$MKDIR_P' 14884AWK='$AWK' 14885test -n "\$AWK" || AWK=awk 14886_ACEOF 14887 14888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14889# The default lists apply if the user does not specify any file. 14890ac_need_defaults=: 14891while test $# != 0 14892do 14893 case $1 in 14894 --*=*) 14895 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14897 ac_shift=: 14898 ;; 14899 *) 14900 ac_option=$1 14901 ac_optarg=$2 14902 ac_shift=shift 14903 ;; 14904 esac 14905 14906 case $ac_option in 14907 # Handling of the options. 14908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14909 ac_cs_recheck=: ;; 14910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14911 $as_echo "$ac_cs_version"; exit ;; 14912 --debug | --debu | --deb | --de | --d | -d ) 14913 debug=: ;; 14914 --file | --fil | --fi | --f ) 14915 $ac_shift 14916 case $ac_optarg in 14917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14918 esac 14919 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14920 ac_need_defaults=false;; 14921 --header | --heade | --head | --hea ) 14922 $ac_shift 14923 case $ac_optarg in 14924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14925 esac 14926 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14927 ac_need_defaults=false;; 14928 --he | --h) 14929 # Conflict between --help and --header 14930 { $as_echo "$as_me: error: ambiguous option: $1 14931Try \`$0 --help' for more information." >&2 14932 { (exit 1); exit 1; }; };; 14933 --help | --hel | -h ) 14934 $as_echo "$ac_cs_usage"; exit ;; 14935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14936 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14937 ac_cs_silent=: ;; 14938 14939 # This is an error. 14940 -*) { $as_echo "$as_me: error: unrecognized option: $1 14941Try \`$0 --help' for more information." >&2 14942 { (exit 1); exit 1; }; } ;; 14943 14944 *) ac_config_targets="$ac_config_targets $1" 14945 ac_need_defaults=false ;; 14946 14947 esac 14948 shift 14949done 14950 14951ac_configure_extra_args= 14952 14953if $ac_cs_silent; then 14954 exec 6>/dev/null 14955 ac_configure_extra_args="$ac_configure_extra_args --silent" 14956fi 14957 14958_ACEOF 14959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14960if \$ac_cs_recheck; then 14961 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14962 shift 14963 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14964 CONFIG_SHELL='$SHELL' 14965 export CONFIG_SHELL 14966 exec "\$@" 14967fi 14968 14969_ACEOF 14970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14971exec 5>>config.log 14972{ 14973 echo 14974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14975## Running $as_me. ## 14976_ASBOX 14977 $as_echo "$ac_log" 14978} >&5 14979 14980_ACEOF 14981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14982# 14983# INIT-COMMANDS 14984# 14985AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14986 14987 14988# The HP-UX ksh and POSIX shell print the target directory to stdout 14989# if CDPATH is set. 14990(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14991 14992sed_quote_subst='$sed_quote_subst' 14993double_quote_subst='$double_quote_subst' 14994delay_variable_subst='$delay_variable_subst' 14995macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14996macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14997enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14998enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14999pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15000enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15001host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15002host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15003host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15004build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15005build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15006build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15007SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15008Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15009GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15010EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15011FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15012LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15013NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15014LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15015max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15016ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15017exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15018lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15019lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15020lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15021reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15022reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15023OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 15024deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15025file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15026AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15027AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15028STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15029RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15030old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15031old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15032old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15033CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15034CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15035compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15036GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15037lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15038lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15039lt_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"`' 15040lt_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"`' 15041objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15042SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15043ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15044MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15045lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15046lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15047lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15048lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15049lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15050need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15051DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15052NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15053LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15054OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15055OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15056libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15057shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15058extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15059archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15060enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15061export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15062whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15063compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15064old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15065old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15066archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15067archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15068module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15069module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15070with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15071allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15072no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15073hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15074hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15075hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15076hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15077hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15078hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15079hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15080hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15081inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15082link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15083fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15084always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15085export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15086exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15087include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15088prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15089file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15090variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15091need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15092need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15093version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15094runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15095shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15096shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15097libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15098library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15099soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15100postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15101postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15102finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15103finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15104hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15105sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15106sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15107hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15108enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15109enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15110enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15111old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15112striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15113 15114LTCC='$LTCC' 15115LTCFLAGS='$LTCFLAGS' 15116compiler='$compiler_DEFAULT' 15117 15118# Quote evaled strings. 15119for var in SED \ 15120GREP \ 15121EGREP \ 15122FGREP \ 15123LD \ 15124NM \ 15125LN_S \ 15126lt_SP2NL \ 15127lt_NL2SP \ 15128reload_flag \ 15129OBJDUMP \ 15130deplibs_check_method \ 15131file_magic_cmd \ 15132AR \ 15133AR_FLAGS \ 15134STRIP \ 15135RANLIB \ 15136CC \ 15137CFLAGS \ 15138compiler \ 15139lt_cv_sys_global_symbol_pipe \ 15140lt_cv_sys_global_symbol_to_cdecl \ 15141lt_cv_sys_global_symbol_to_c_name_address \ 15142lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15143SHELL \ 15144ECHO \ 15145lt_prog_compiler_no_builtin_flag \ 15146lt_prog_compiler_wl \ 15147lt_prog_compiler_pic \ 15148lt_prog_compiler_static \ 15149lt_cv_prog_compiler_c_o \ 15150need_locks \ 15151DSYMUTIL \ 15152NMEDIT \ 15153LIPO \ 15154OTOOL \ 15155OTOOL64 \ 15156shrext_cmds \ 15157export_dynamic_flag_spec \ 15158whole_archive_flag_spec \ 15159compiler_needs_object \ 15160with_gnu_ld \ 15161allow_undefined_flag \ 15162no_undefined_flag \ 15163hardcode_libdir_flag_spec \ 15164hardcode_libdir_flag_spec_ld \ 15165hardcode_libdir_separator \ 15166fix_srcfile_path \ 15167exclude_expsyms \ 15168include_expsyms \ 15169file_list_spec \ 15170variables_saved_for_relink \ 15171libname_spec \ 15172library_names_spec \ 15173soname_spec \ 15174finish_eval \ 15175old_striplib \ 15176striplib; do 15177 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15178 *[\\\\\\\`\\"\\\$]*) 15179 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15180 ;; 15181 *) 15182 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15183 ;; 15184 esac 15185done 15186 15187# Double-quote double-evaled strings. 15188for var in reload_cmds \ 15189old_postinstall_cmds \ 15190old_postuninstall_cmds \ 15191old_archive_cmds \ 15192extract_expsyms_cmds \ 15193old_archive_from_new_cmds \ 15194old_archive_from_expsyms_cmds \ 15195archive_cmds \ 15196archive_expsym_cmds \ 15197module_cmds \ 15198module_expsym_cmds \ 15199export_symbols_cmds \ 15200prelink_cmds \ 15201postinstall_cmds \ 15202postuninstall_cmds \ 15203finish_cmds \ 15204sys_lib_search_path_spec \ 15205sys_lib_dlsearch_path_spec; do 15206 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15207 *[\\\\\\\`\\"\\\$]*) 15208 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15209 ;; 15210 *) 15211 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15212 ;; 15213 esac 15214done 15215 15216# Fix-up fallback echo if it was mangled by the above quoting rules. 15217case \$lt_ECHO in 15218*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 15219 ;; 15220esac 15221 15222ac_aux_dir='$ac_aux_dir' 15223xsi_shell='$xsi_shell' 15224lt_shell_append='$lt_shell_append' 15225 15226# See if we are running on zsh, and set the options which allow our 15227# commands through without removal of \ escapes INIT. 15228if test -n "\${ZSH_VERSION+set}" ; then 15229 setopt NO_GLOB_SUBST 15230fi 15231 15232 15233 PACKAGE='$PACKAGE' 15234 VERSION='$VERSION' 15235 TIMESTAMP='$TIMESTAMP' 15236 RM='$RM' 15237 ofile='$ofile' 15238 15239 15240 15241 15242_ACEOF 15243 15244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15245 15246# Handling of arguments. 15247for ac_config_target in $ac_config_targets 15248do 15249 case $ac_config_target in 15250 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15251 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15252 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15253 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15254 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 15255 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15256 "readers/Makefile") CONFIG_FILES="$CONFIG_FILES readers/Makefile" ;; 15257 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 15258 "contrib/Kobil_mIDentity_switch/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Kobil_mIDentity_switch/Makefile" ;; 15259 "contrib/RSA_SecurID/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/RSA_SecurID/Makefile" ;; 15260 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 15261 15262 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15263$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15264 { (exit 1); exit 1; }; };; 15265 esac 15266done 15267 15268 15269# If the user did not use the arguments to specify the items to instantiate, 15270# then the envvar interface is used. Set only those that are not. 15271# We use the long form for the default assignment because of an extremely 15272# bizarre bug on SunOS 4.1.3. 15273if $ac_need_defaults; then 15274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15276 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15277fi 15278 15279# Have a temporary directory for convenience. Make it in the build tree 15280# simply because there is no reason against having it here, and in addition, 15281# creating and moving files from /tmp can sometimes cause problems. 15282# Hook for its removal unless debugging. 15283# Note that there is a small window in which the directory will not be cleaned: 15284# after its creation but before its name has been assigned to `$tmp'. 15285$debug || 15286{ 15287 tmp= 15288 trap 'exit_status=$? 15289 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15290' 0 15291 trap '{ (exit 1); exit 1; }' 1 2 13 15 15292} 15293# Create a (secure) tmp directory for tmp files. 15294 15295{ 15296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15297 test -n "$tmp" && test -d "$tmp" 15298} || 15299{ 15300 tmp=./conf$$-$RANDOM 15301 (umask 077 && mkdir "$tmp") 15302} || 15303{ 15304 $as_echo "$as_me: cannot create a temporary directory in ." >&2 15305 { (exit 1); exit 1; } 15306} 15307 15308# Set up the scripts for CONFIG_FILES section. 15309# No need to generate them if there are no CONFIG_FILES. 15310# This happens for instance with `./config.status config.h'. 15311if test -n "$CONFIG_FILES"; then 15312 15313 15314ac_cr=' 15315' 15316ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15317if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15318 ac_cs_awk_cr='\\r' 15319else 15320 ac_cs_awk_cr=$ac_cr 15321fi 15322 15323echo 'BEGIN {' >"$tmp/subs1.awk" && 15324_ACEOF 15325 15326 15327{ 15328 echo "cat >conf$$subs.awk <<_ACEOF" && 15329 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15330 echo "_ACEOF" 15331} >conf$$subs.sh || 15332 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15333$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15334 { (exit 1); exit 1; }; } 15335ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15336ac_delim='%!_!# ' 15337for ac_last_try in false false false false false :; do 15338 . ./conf$$subs.sh || 15339 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15340$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15341 { (exit 1); exit 1; }; } 15342 15343 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15344 if test $ac_delim_n = $ac_delim_num; then 15345 break 15346 elif $ac_last_try; then 15347 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15348$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15349 { (exit 1); exit 1; }; } 15350 else 15351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15352 fi 15353done 15354rm -f conf$$subs.sh 15355 15356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15357cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15358_ACEOF 15359sed -n ' 15360h 15361s/^/S["/; s/!.*/"]=/ 15362p 15363g 15364s/^[^!]*!// 15365:repl 15366t repl 15367s/'"$ac_delim"'$// 15368t delim 15369:nl 15370h 15371s/\(.\{148\}\).*/\1/ 15372t more1 15373s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15374p 15375n 15376b repl 15377:more1 15378s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15379p 15380g 15381s/.\{148\}// 15382t nl 15383:delim 15384h 15385s/\(.\{148\}\).*/\1/ 15386t more2 15387s/["\\]/\\&/g; s/^/"/; s/$/"/ 15388p 15389b 15390:more2 15391s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15392p 15393g 15394s/.\{148\}// 15395t delim 15396' <conf$$subs.awk | sed ' 15397/^[^""]/{ 15398 N 15399 s/\n// 15400} 15401' >>$CONFIG_STATUS || ac_write_fail=1 15402rm -f conf$$subs.awk 15403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15404_ACAWK 15405cat >>"\$tmp/subs1.awk" <<_ACAWK && 15406 for (key in S) S_is_set[key] = 1 15407 FS = "" 15408 15409} 15410{ 15411 line = $ 0 15412 nfields = split(line, field, "@") 15413 substed = 0 15414 len = length(field[1]) 15415 for (i = 2; i < nfields; i++) { 15416 key = field[i] 15417 keylen = length(key) 15418 if (S_is_set[key]) { 15419 value = S[key] 15420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15421 len += length(value) + length(field[++i]) 15422 substed = 1 15423 } else 15424 len += 1 + keylen 15425 } 15426 15427 print line 15428} 15429 15430_ACAWK 15431_ACEOF 15432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15433if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15434 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15435else 15436 cat 15437fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15438 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15439$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15440 { (exit 1); exit 1; }; } 15441_ACEOF 15442 15443# VPATH may cause trouble with some makes, so we remove $(srcdir), 15444# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15445# trailing colons and then remove the whole line if VPATH becomes empty 15446# (actually we leave an empty line to preserve line numbers). 15447if test "x$srcdir" = x.; then 15448 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15449s/:*\$(srcdir):*/:/ 15450s/:*\${srcdir}:*/:/ 15451s/:*@srcdir@:*/:/ 15452s/^\([^=]*=[ ]*\):*/\1/ 15453s/:*$// 15454s/^[^=]*=[ ]*$// 15455}' 15456fi 15457 15458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15459fi # test -n "$CONFIG_FILES" 15460 15461# Set up the scripts for CONFIG_HEADERS section. 15462# No need to generate them if there are no CONFIG_HEADERS. 15463# This happens for instance with `./config.status Makefile'. 15464if test -n "$CONFIG_HEADERS"; then 15465cat >"$tmp/defines.awk" <<\_ACAWK || 15466BEGIN { 15467_ACEOF 15468 15469# Transform confdefs.h into an awk script `defines.awk', embedded as 15470# here-document in config.status, that substitutes the proper values into 15471# config.h.in to produce config.h. 15472 15473# Create a delimiter string that does not exist in confdefs.h, to ease 15474# handling of long lines. 15475ac_delim='%!_!# ' 15476for ac_last_try in false false :; do 15477 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15478 if test -z "$ac_t"; then 15479 break 15480 elif $ac_last_try; then 15481 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 15482$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 15483 { (exit 1); exit 1; }; } 15484 else 15485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15486 fi 15487done 15488 15489# For the awk script, D is an array of macro values keyed by name, 15490# likewise P contains macro parameters if any. Preserve backslash 15491# newline sequences. 15492 15493ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15494sed -n ' 15495s/.\{148\}/&'"$ac_delim"'/g 15496t rset 15497:rset 15498s/^[ ]*#[ ]*define[ ][ ]*/ / 15499t def 15500d 15501:def 15502s/\\$// 15503t bsnl 15504s/["\\]/\\&/g 15505s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15506D["\1"]=" \3"/p 15507s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15508d 15509:bsnl 15510s/["\\]/\\&/g 15511s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15512D["\1"]=" \3\\\\\\n"\\/p 15513t cont 15514s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15515t cont 15516d 15517:cont 15518n 15519s/.\{148\}/&'"$ac_delim"'/g 15520t clear 15521:clear 15522s/\\$// 15523t bsnlc 15524s/["\\]/\\&/g; s/^/"/; s/$/"/p 15525d 15526:bsnlc 15527s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15528b cont 15529' <confdefs.h | sed ' 15530s/'"$ac_delim"'/"\\\ 15531"/g' >>$CONFIG_STATUS || ac_write_fail=1 15532 15533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15534 for (key in D) D_is_set[key] = 1 15535 FS = "" 15536} 15537/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15538 line = \$ 0 15539 split(line, arg, " ") 15540 if (arg[1] == "#") { 15541 defundef = arg[2] 15542 mac1 = arg[3] 15543 } else { 15544 defundef = substr(arg[1], 2) 15545 mac1 = arg[2] 15546 } 15547 split(mac1, mac2, "(") #) 15548 macro = mac2[1] 15549 prefix = substr(line, 1, index(line, defundef) - 1) 15550 if (D_is_set[macro]) { 15551 # Preserve the white space surrounding the "#". 15552 print prefix "define", macro P[macro] D[macro] 15553 next 15554 } else { 15555 # Replace #undef with comments. This is necessary, for example, 15556 # in the case of _POSIX_SOURCE, which is predefined and required 15557 # on some systems where configure will not decide to define it. 15558 if (defundef == "undef") { 15559 print "/*", prefix defundef, macro, "*/" 15560 next 15561 } 15562 } 15563} 15564{ print } 15565_ACAWK 15566_ACEOF 15567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15568 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 15569$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 15570 { (exit 1); exit 1; }; } 15571fi # test -n "$CONFIG_HEADERS" 15572 15573 15574eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15575shift 15576for ac_tag 15577do 15578 case $ac_tag in 15579 :[FHLC]) ac_mode=$ac_tag; continue;; 15580 esac 15581 case $ac_mode$ac_tag in 15582 :[FHL]*:*);; 15583 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 15584$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 15585 { (exit 1); exit 1; }; };; 15586 :[FH]-) ac_tag=-:-;; 15587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15588 esac 15589 ac_save_IFS=$IFS 15590 IFS=: 15591 set x $ac_tag 15592 IFS=$ac_save_IFS 15593 shift 15594 ac_file=$1 15595 shift 15596 15597 case $ac_mode in 15598 :L) ac_source=$1;; 15599 :[FH]) 15600 ac_file_inputs= 15601 for ac_f 15602 do 15603 case $ac_f in 15604 -) ac_f="$tmp/stdin";; 15605 *) # Look for the file first in the build tree, then in the source tree 15606 # (if the path is not absolute). The absolute path cannot be DOS-style, 15607 # because $ac_f cannot contain `:'. 15608 test -f "$ac_f" || 15609 case $ac_f in 15610 [\\/$]*) false;; 15611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15612 esac || 15613 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15614$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15615 { (exit 1); exit 1; }; };; 15616 esac 15617 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15618 ac_file_inputs="$ac_file_inputs '$ac_f'" 15619 done 15620 15621 # Let's still pretend it is `configure' which instantiates (i.e., don't 15622 # use $as_me), people would be surprised to read: 15623 # /* config.h. Generated by config.status. */ 15624 configure_input='Generated from '` 15625 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15626 `' by configure.' 15627 if test x"$ac_file" != x-; then 15628 configure_input="$ac_file. $configure_input" 15629 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 15630$as_echo "$as_me: creating $ac_file" >&6;} 15631 fi 15632 # Neutralize special characters interpreted by sed in replacement strings. 15633 case $configure_input in #( 15634 *\&* | *\|* | *\\* ) 15635 ac_sed_conf_input=`$as_echo "$configure_input" | 15636 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15637 *) ac_sed_conf_input=$configure_input;; 15638 esac 15639 15640 case $ac_tag in 15641 *:-:* | *:-) cat >"$tmp/stdin" \ 15642 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15643$as_echo "$as_me: error: could not create $ac_file" >&2;} 15644 { (exit 1); exit 1; }; } ;; 15645 esac 15646 ;; 15647 esac 15648 15649 ac_dir=`$as_dirname -- "$ac_file" || 15650$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15651 X"$ac_file" : 'X\(//\)[^/]' \| \ 15652 X"$ac_file" : 'X\(//\)$' \| \ 15653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15654$as_echo X"$ac_file" | 15655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15656 s//\1/ 15657 q 15658 } 15659 /^X\(\/\/\)[^/].*/{ 15660 s//\1/ 15661 q 15662 } 15663 /^X\(\/\/\)$/{ 15664 s//\1/ 15665 q 15666 } 15667 /^X\(\/\).*/{ 15668 s//\1/ 15669 q 15670 } 15671 s/.*/./; q'` 15672 { as_dir="$ac_dir" 15673 case $as_dir in #( 15674 -*) as_dir=./$as_dir;; 15675 esac 15676 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15677 as_dirs= 15678 while :; do 15679 case $as_dir in #( 15680 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15681 *) as_qdir=$as_dir;; 15682 esac 15683 as_dirs="'$as_qdir' $as_dirs" 15684 as_dir=`$as_dirname -- "$as_dir" || 15685$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15686 X"$as_dir" : 'X\(//\)[^/]' \| \ 15687 X"$as_dir" : 'X\(//\)$' \| \ 15688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15689$as_echo X"$as_dir" | 15690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15691 s//\1/ 15692 q 15693 } 15694 /^X\(\/\/\)[^/].*/{ 15695 s//\1/ 15696 q 15697 } 15698 /^X\(\/\/\)$/{ 15699 s//\1/ 15700 q 15701 } 15702 /^X\(\/\).*/{ 15703 s//\1/ 15704 q 15705 } 15706 s/.*/./; q'` 15707 test -d "$as_dir" && break 15708 done 15709 test -z "$as_dirs" || eval "mkdir $as_dirs" 15710 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15711$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15712 { (exit 1); exit 1; }; }; } 15713 ac_builddir=. 15714 15715case "$ac_dir" in 15716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15717*) 15718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15719 # A ".." for each directory in $ac_dir_suffix. 15720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15721 case $ac_top_builddir_sub in 15722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15724 esac ;; 15725esac 15726ac_abs_top_builddir=$ac_pwd 15727ac_abs_builddir=$ac_pwd$ac_dir_suffix 15728# for backward compatibility: 15729ac_top_builddir=$ac_top_build_prefix 15730 15731case $srcdir in 15732 .) # We are building in place. 15733 ac_srcdir=. 15734 ac_top_srcdir=$ac_top_builddir_sub 15735 ac_abs_top_srcdir=$ac_pwd ;; 15736 [\\/]* | ?:[\\/]* ) # Absolute name. 15737 ac_srcdir=$srcdir$ac_dir_suffix; 15738 ac_top_srcdir=$srcdir 15739 ac_abs_top_srcdir=$srcdir ;; 15740 *) # Relative name. 15741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15742 ac_top_srcdir=$ac_top_build_prefix$srcdir 15743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15744esac 15745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15746 15747 15748 case $ac_mode in 15749 :F) 15750 # 15751 # CONFIG_FILE 15752 # 15753 15754 case $INSTALL in 15755 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15756 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15757 esac 15758 ac_MKDIR_P=$MKDIR_P 15759 case $MKDIR_P in 15760 [\\/$]* | ?:[\\/]* ) ;; 15761 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15762 esac 15763_ACEOF 15764 15765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15766# If the template does not know about datarootdir, expand it. 15767# FIXME: This hack should be removed a few years after 2.60. 15768ac_datarootdir_hack=; ac_datarootdir_seen= 15769 15770ac_sed_dataroot=' 15771/datarootdir/ { 15772 p 15773 q 15774} 15775/@datadir@/p 15776/@docdir@/p 15777/@infodir@/p 15778/@localedir@/p 15779/@mandir@/p 15780' 15781case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15782*datarootdir*) ac_datarootdir_seen=yes;; 15783*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15784 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15785$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15786_ACEOF 15787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15788 ac_datarootdir_hack=' 15789 s&@datadir@&$datadir&g 15790 s&@docdir@&$docdir&g 15791 s&@infodir@&$infodir&g 15792 s&@localedir@&$localedir&g 15793 s&@mandir@&$mandir&g 15794 s&\\\${datarootdir}&$datarootdir&g' ;; 15795esac 15796_ACEOF 15797 15798# Neutralize VPATH when `$srcdir' = `.'. 15799# Shell code in configure.ac might set extrasub. 15800# FIXME: do we really want to maintain this feature? 15801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15802ac_sed_extra="$ac_vpsub 15803$extrasub 15804_ACEOF 15805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15806:t 15807/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15808s|@configure_input@|$ac_sed_conf_input|;t t 15809s&@top_builddir@&$ac_top_builddir_sub&;t t 15810s&@top_build_prefix@&$ac_top_build_prefix&;t t 15811s&@srcdir@&$ac_srcdir&;t t 15812s&@abs_srcdir@&$ac_abs_srcdir&;t t 15813s&@top_srcdir@&$ac_top_srcdir&;t t 15814s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15815s&@builddir@&$ac_builddir&;t t 15816s&@abs_builddir@&$ac_abs_builddir&;t t 15817s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15818s&@INSTALL@&$ac_INSTALL&;t t 15819s&@MKDIR_P@&$ac_MKDIR_P&;t t 15820$ac_datarootdir_hack 15821" 15822eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15823 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15824$as_echo "$as_me: error: could not create $ac_file" >&2;} 15825 { (exit 1); exit 1; }; } 15826 15827test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15828 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15829 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15830 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15831which seems to be undefined. Please make sure it is defined." >&5 15832$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15833which seems to be undefined. Please make sure it is defined." >&2;} 15834 15835 rm -f "$tmp/stdin" 15836 case $ac_file in 15837 -) cat "$tmp/out" && rm -f "$tmp/out";; 15838 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15839 esac \ 15840 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15841$as_echo "$as_me: error: could not create $ac_file" >&2;} 15842 { (exit 1); exit 1; }; } 15843 ;; 15844 :H) 15845 # 15846 # CONFIG_HEADER 15847 # 15848 if test x"$ac_file" != x-; then 15849 { 15850 $as_echo "/* $configure_input */" \ 15851 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15852 } >"$tmp/config.h" \ 15853 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15854$as_echo "$as_me: error: could not create $ac_file" >&2;} 15855 { (exit 1); exit 1; }; } 15856 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15857 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15858$as_echo "$as_me: $ac_file is unchanged" >&6;} 15859 else 15860 rm -f "$ac_file" 15861 mv "$tmp/config.h" "$ac_file" \ 15862 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15863$as_echo "$as_me: error: could not create $ac_file" >&2;} 15864 { (exit 1); exit 1; }; } 15865 fi 15866 else 15867 $as_echo "/* $configure_input */" \ 15868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15869 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15870$as_echo "$as_me: error: could not create -" >&2;} 15871 { (exit 1); exit 1; }; } 15872 fi 15873# Compute "$ac_file"'s index in $config_headers. 15874_am_arg="$ac_file" 15875_am_stamp_count=1 15876for _am_header in $config_headers :; do 15877 case $_am_header in 15878 $_am_arg | $_am_arg:* ) 15879 break ;; 15880 * ) 15881 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15882 esac 15883done 15884echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15885$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15886 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15887 X"$_am_arg" : 'X\(//\)$' \| \ 15888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15889$as_echo X"$_am_arg" | 15890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15891 s//\1/ 15892 q 15893 } 15894 /^X\(\/\/\)[^/].*/{ 15895 s//\1/ 15896 q 15897 } 15898 /^X\(\/\/\)$/{ 15899 s//\1/ 15900 q 15901 } 15902 /^X\(\/\).*/{ 15903 s//\1/ 15904 q 15905 } 15906 s/.*/./; q'`/stamp-h$_am_stamp_count 15907 ;; 15908 15909 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15910$as_echo "$as_me: executing $ac_file commands" >&6;} 15911 ;; 15912 esac 15913 15914 15915 case $ac_file$ac_mode in 15916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 15917# are listed without --file. Let's play safe and only enable the eval 15918# if we detect the quoting. 15919case $CONFIG_FILES in 15920*\'*) eval set x "$CONFIG_FILES" ;; 15921*) set x $CONFIG_FILES ;; 15922esac 15923shift 15924for mf 15925do 15926 # Strip MF so we end up with the name of the file. 15927 mf=`echo "$mf" | sed -e 's/:.*$//'` 15928 # Check whether this is an Automake generated Makefile or not. 15929 # We used to match only the files named `Makefile.in', but 15930 # some people rename them; so instead we look at the file content. 15931 # Grep'ing the first line is not enough: some people post-process 15932 # each Makefile.in and add a new line on top of each file to say so. 15933 # Grep'ing the whole file is not good either: AIX grep has a line 15934 # limit of 2048, but all sed's we know have understand at least 4000. 15935 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15936 dirpart=`$as_dirname -- "$mf" || 15937$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15938 X"$mf" : 'X\(//\)[^/]' \| \ 15939 X"$mf" : 'X\(//\)$' \| \ 15940 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15941$as_echo X"$mf" | 15942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15943 s//\1/ 15944 q 15945 } 15946 /^X\(\/\/\)[^/].*/{ 15947 s//\1/ 15948 q 15949 } 15950 /^X\(\/\/\)$/{ 15951 s//\1/ 15952 q 15953 } 15954 /^X\(\/\).*/{ 15955 s//\1/ 15956 q 15957 } 15958 s/.*/./; q'` 15959 else 15960 continue 15961 fi 15962 # Extract the definition of DEPDIR, am__include, and am__quote 15963 # from the Makefile without running `make'. 15964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15965 test -z "$DEPDIR" && continue 15966 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15967 test -z "am__include" && continue 15968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15969 # When using ansi2knr, U may be empty or an underscore; expand it 15970 U=`sed -n 's/^U = //p' < "$mf"` 15971 # Find all dependency output files, they are included files with 15972 # $(DEPDIR) in their names. We invoke sed twice because it is the 15973 # simplest approach to changing $(DEPDIR) to its actual value in the 15974 # expansion. 15975 for file in `sed -n " 15976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15978 # Make sure the directory exists. 15979 test -f "$dirpart/$file" && continue 15980 fdir=`$as_dirname -- "$file" || 15981$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15982 X"$file" : 'X\(//\)[^/]' \| \ 15983 X"$file" : 'X\(//\)$' \| \ 15984 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15985$as_echo X"$file" | 15986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15987 s//\1/ 15988 q 15989 } 15990 /^X\(\/\/\)[^/].*/{ 15991 s//\1/ 15992 q 15993 } 15994 /^X\(\/\/\)$/{ 15995 s//\1/ 15996 q 15997 } 15998 /^X\(\/\).*/{ 15999 s//\1/ 16000 q 16001 } 16002 s/.*/./; q'` 16003 { as_dir=$dirpart/$fdir 16004 case $as_dir in #( 16005 -*) as_dir=./$as_dir;; 16006 esac 16007 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16008 as_dirs= 16009 while :; do 16010 case $as_dir in #( 16011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16012 *) as_qdir=$as_dir;; 16013 esac 16014 as_dirs="'$as_qdir' $as_dirs" 16015 as_dir=`$as_dirname -- "$as_dir" || 16016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16017 X"$as_dir" : 'X\(//\)[^/]' \| \ 16018 X"$as_dir" : 'X\(//\)$' \| \ 16019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16020$as_echo X"$as_dir" | 16021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16022 s//\1/ 16023 q 16024 } 16025 /^X\(\/\/\)[^/].*/{ 16026 s//\1/ 16027 q 16028 } 16029 /^X\(\/\/\)$/{ 16030 s//\1/ 16031 q 16032 } 16033 /^X\(\/\).*/{ 16034 s//\1/ 16035 q 16036 } 16037 s/.*/./; q'` 16038 test -d "$as_dir" && break 16039 done 16040 test -z "$as_dirs" || eval "mkdir $as_dirs" 16041 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16042$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16043 { (exit 1); exit 1; }; }; } 16044 # echo "creating $dirpart/$file" 16045 echo '# dummy' > "$dirpart/$file" 16046 done 16047done 16048 ;; 16049 "libtool":C) 16050 16051 # See if we are running on zsh, and set the options which allow our 16052 # commands through without removal of \ escapes. 16053 if test -n "${ZSH_VERSION+set}" ; then 16054 setopt NO_GLOB_SUBST 16055 fi 16056 16057 cfgfile="${ofile}T" 16058 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16059 $RM "$cfgfile" 16060 16061 cat <<_LT_EOF >> "$cfgfile" 16062#! $SHELL 16063 16064# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16065# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16066# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16067# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16068# 16069# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16070# 2006, 2007, 2008 Free Software Foundation, Inc. 16071# Written by Gordon Matzigkeit, 1996 16072# 16073# This file is part of GNU Libtool. 16074# 16075# GNU Libtool is free software; you can redistribute it and/or 16076# modify it under the terms of the GNU General Public License as 16077# published by the Free Software Foundation; either version 2 of 16078# the License, or (at your option) any later version. 16079# 16080# As a special exception to the GNU General Public License, 16081# if you distribute this file as part of a program or library that 16082# is built using GNU Libtool, you may include this file under the 16083# same distribution terms that you use for the rest of that program. 16084# 16085# GNU Libtool is distributed in the hope that it will be useful, 16086# but WITHOUT ANY WARRANTY; without even the implied warranty of 16087# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16088# GNU General Public License for more details. 16089# 16090# You should have received a copy of the GNU General Public License 16091# along with GNU Libtool; see the file COPYING. If not, a copy 16092# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16093# obtained by writing to the Free Software Foundation, Inc., 16094# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16095 16096 16097# The names of the tagged configurations supported by this script. 16098available_tags="" 16099 16100# ### BEGIN LIBTOOL CONFIG 16101 16102# Which release of libtool.m4 was used? 16103macro_version=$macro_version 16104macro_revision=$macro_revision 16105 16106# Whether or not to build shared libraries. 16107build_libtool_libs=$enable_shared 16108 16109# Whether or not to build static libraries. 16110build_old_libs=$enable_static 16111 16112# What type of objects to build. 16113pic_mode=$pic_mode 16114 16115# Whether or not to optimize for fast installation. 16116fast_install=$enable_fast_install 16117 16118# The host system. 16119host_alias=$host_alias 16120host=$host 16121host_os=$host_os 16122 16123# The build system. 16124build_alias=$build_alias 16125build=$build 16126build_os=$build_os 16127 16128# A sed program that does not truncate output. 16129SED=$lt_SED 16130 16131# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16132Xsed="\$SED -e 1s/^X//" 16133 16134# A grep program that handles long lines. 16135GREP=$lt_GREP 16136 16137# An ERE matcher. 16138EGREP=$lt_EGREP 16139 16140# A literal string matcher. 16141FGREP=$lt_FGREP 16142 16143# A BSD- or MS-compatible name lister. 16144NM=$lt_NM 16145 16146# Whether we need soft or hard links. 16147LN_S=$lt_LN_S 16148 16149# What is the maximum length of a command? 16150max_cmd_len=$max_cmd_len 16151 16152# Object file suffix (normally "o"). 16153objext=$ac_objext 16154 16155# Executable file suffix (normally ""). 16156exeext=$exeext 16157 16158# whether the shell understands "unset". 16159lt_unset=$lt_unset 16160 16161# turn spaces into newlines. 16162SP2NL=$lt_lt_SP2NL 16163 16164# turn newlines into spaces. 16165NL2SP=$lt_lt_NL2SP 16166 16167# How to create reloadable object files. 16168reload_flag=$lt_reload_flag 16169reload_cmds=$lt_reload_cmds 16170 16171# An object symbol dumper. 16172OBJDUMP=$lt_OBJDUMP 16173 16174# Method to check whether dependent libraries are shared objects. 16175deplibs_check_method=$lt_deplibs_check_method 16176 16177# Command to use when deplibs_check_method == "file_magic". 16178file_magic_cmd=$lt_file_magic_cmd 16179 16180# The archiver. 16181AR=$lt_AR 16182AR_FLAGS=$lt_AR_FLAGS 16183 16184# A symbol stripping program. 16185STRIP=$lt_STRIP 16186 16187# Commands used to install an old-style archive. 16188RANLIB=$lt_RANLIB 16189old_postinstall_cmds=$lt_old_postinstall_cmds 16190old_postuninstall_cmds=$lt_old_postuninstall_cmds 16191 16192# A C compiler. 16193LTCC=$lt_CC 16194 16195# LTCC compiler flags. 16196LTCFLAGS=$lt_CFLAGS 16197 16198# Take the output of nm and produce a listing of raw symbols and C names. 16199global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16200 16201# Transform the output of nm in a proper C declaration. 16202global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16203 16204# Transform the output of nm in a C name address pair. 16205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16206 16207# Transform the output of nm in a C name address pair when lib prefix is needed. 16208global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16209 16210# The name of the directory that contains temporary libtool files. 16211objdir=$objdir 16212 16213# Shell to use when invoking shell scripts. 16214SHELL=$lt_SHELL 16215 16216# An echo program that does not interpret backslashes. 16217ECHO=$lt_ECHO 16218 16219# Used to examine libraries when file_magic_cmd begins with "file". 16220MAGIC_CMD=$MAGIC_CMD 16221 16222# Must we lock files when doing compilation? 16223need_locks=$lt_need_locks 16224 16225# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16226DSYMUTIL=$lt_DSYMUTIL 16227 16228# Tool to change global to local symbols on Mac OS X. 16229NMEDIT=$lt_NMEDIT 16230 16231# Tool to manipulate fat objects and archives on Mac OS X. 16232LIPO=$lt_LIPO 16233 16234# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16235OTOOL=$lt_OTOOL 16236 16237# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16238OTOOL64=$lt_OTOOL64 16239 16240# Old archive suffix (normally "a"). 16241libext=$libext 16242 16243# Shared library suffix (normally ".so"). 16244shrext_cmds=$lt_shrext_cmds 16245 16246# The commands to extract the exported symbol list from a shared archive. 16247extract_expsyms_cmds=$lt_extract_expsyms_cmds 16248 16249# Variables whose values should be saved in libtool wrapper scripts and 16250# restored at link time. 16251variables_saved_for_relink=$lt_variables_saved_for_relink 16252 16253# Do we need the "lib" prefix for modules? 16254need_lib_prefix=$need_lib_prefix 16255 16256# Do we need a version for libraries? 16257need_version=$need_version 16258 16259# Library versioning type. 16260version_type=$version_type 16261 16262# Shared library runtime path variable. 16263runpath_var=$runpath_var 16264 16265# Shared library path variable. 16266shlibpath_var=$shlibpath_var 16267 16268# Is shlibpath searched before the hard-coded library search path? 16269shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16270 16271# Format of library name prefix. 16272libname_spec=$lt_libname_spec 16273 16274# List of archive names. First name is the real one, the rest are links. 16275# The last name is the one that the linker finds with -lNAME 16276library_names_spec=$lt_library_names_spec 16277 16278# The coded name of the library, if different from the real name. 16279soname_spec=$lt_soname_spec 16280 16281# Command to use after installation of a shared archive. 16282postinstall_cmds=$lt_postinstall_cmds 16283 16284# Command to use after uninstallation of a shared archive. 16285postuninstall_cmds=$lt_postuninstall_cmds 16286 16287# Commands used to finish a libtool library installation in a directory. 16288finish_cmds=$lt_finish_cmds 16289 16290# As "finish_cmds", except a single script fragment to be evaled but 16291# not shown. 16292finish_eval=$lt_finish_eval 16293 16294# Whether we should hardcode library paths into libraries. 16295hardcode_into_libs=$hardcode_into_libs 16296 16297# Compile-time system search path for libraries. 16298sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16299 16300# Run-time system search path for libraries. 16301sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16302 16303# Whether dlopen is supported. 16304dlopen_support=$enable_dlopen 16305 16306# Whether dlopen of programs is supported. 16307dlopen_self=$enable_dlopen_self 16308 16309# Whether dlopen of statically linked programs is supported. 16310dlopen_self_static=$enable_dlopen_self_static 16311 16312# Commands to strip libraries. 16313old_striplib=$lt_old_striplib 16314striplib=$lt_striplib 16315 16316 16317# The linker used to build libraries. 16318LD=$lt_LD 16319 16320# Commands used to build an old-style archive. 16321old_archive_cmds=$lt_old_archive_cmds 16322 16323# A language specific compiler. 16324CC=$lt_compiler 16325 16326# Is the compiler the GNU compiler? 16327with_gcc=$GCC 16328 16329# Compiler flag to turn off builtin functions. 16330no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16331 16332# How to pass a linker flag through the compiler. 16333wl=$lt_lt_prog_compiler_wl 16334 16335# Additional compiler flags for building library objects. 16336pic_flag=$lt_lt_prog_compiler_pic 16337 16338# Compiler flag to prevent dynamic linking. 16339link_static_flag=$lt_lt_prog_compiler_static 16340 16341# Does compiler simultaneously support -c and -o options? 16342compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16343 16344# Whether or not to add -lc for building shared libraries. 16345build_libtool_need_lc=$archive_cmds_need_lc 16346 16347# Whether or not to disallow shared libs when runtime libs are static. 16348allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16349 16350# Compiler flag to allow reflexive dlopens. 16351export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16352 16353# Compiler flag to generate shared objects directly from archives. 16354whole_archive_flag_spec=$lt_whole_archive_flag_spec 16355 16356# Whether the compiler copes with passing no objects directly. 16357compiler_needs_object=$lt_compiler_needs_object 16358 16359# Create an old-style archive from a shared archive. 16360old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16361 16362# Create a temporary old-style archive to link instead of a shared archive. 16363old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16364 16365# Commands used to build a shared archive. 16366archive_cmds=$lt_archive_cmds 16367archive_expsym_cmds=$lt_archive_expsym_cmds 16368 16369# Commands used to build a loadable module if different from building 16370# a shared archive. 16371module_cmds=$lt_module_cmds 16372module_expsym_cmds=$lt_module_expsym_cmds 16373 16374# Whether we are building with GNU ld or not. 16375with_gnu_ld=$lt_with_gnu_ld 16376 16377# Flag that allows shared libraries with undefined symbols to be built. 16378allow_undefined_flag=$lt_allow_undefined_flag 16379 16380# Flag that enforces no undefined symbols. 16381no_undefined_flag=$lt_no_undefined_flag 16382 16383# Flag to hardcode \$libdir into a binary during linking. 16384# This must work even if \$libdir does not exist 16385hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16386 16387# If ld is used when linking, flag to hardcode \$libdir into a binary 16388# during linking. This must work even if \$libdir does not exist. 16389hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16390 16391# Whether we need a single "-rpath" flag with a separated argument. 16392hardcode_libdir_separator=$lt_hardcode_libdir_separator 16393 16394# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16395# DIR into the resulting binary. 16396hardcode_direct=$hardcode_direct 16397 16398# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16399# DIR into the resulting binary and the resulting library dependency is 16400# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16401# library is relocated. 16402hardcode_direct_absolute=$hardcode_direct_absolute 16403 16404# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16405# into the resulting binary. 16406hardcode_minus_L=$hardcode_minus_L 16407 16408# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16409# into the resulting binary. 16410hardcode_shlibpath_var=$hardcode_shlibpath_var 16411 16412# Set to "yes" if building a shared library automatically hardcodes DIR 16413# into the library and all subsequent libraries and executables linked 16414# against it. 16415hardcode_automatic=$hardcode_automatic 16416 16417# Set to yes if linker adds runtime paths of dependent libraries 16418# to runtime path list. 16419inherit_rpath=$inherit_rpath 16420 16421# Whether libtool must link a program against all its dependency libraries. 16422link_all_deplibs=$link_all_deplibs 16423 16424# Fix the shell variable \$srcfile for the compiler. 16425fix_srcfile_path=$lt_fix_srcfile_path 16426 16427# Set to "yes" if exported symbols are required. 16428always_export_symbols=$always_export_symbols 16429 16430# The commands to list exported symbols. 16431export_symbols_cmds=$lt_export_symbols_cmds 16432 16433# Symbols that should not be listed in the preloaded symbols. 16434exclude_expsyms=$lt_exclude_expsyms 16435 16436# Symbols that must always be exported. 16437include_expsyms=$lt_include_expsyms 16438 16439# Commands necessary for linking programs (against libraries) with templates. 16440prelink_cmds=$lt_prelink_cmds 16441 16442# Specify filename containing input files. 16443file_list_spec=$lt_file_list_spec 16444 16445# How to hardcode a shared library path into an executable. 16446hardcode_action=$hardcode_action 16447 16448# ### END LIBTOOL CONFIG 16449 16450_LT_EOF 16451 16452 case $host_os in 16453 aix3*) 16454 cat <<\_LT_EOF >> "$cfgfile" 16455# AIX sometimes has problems with the GCC collect2 program. For some 16456# reason, if we set the COLLECT_NAMES environment variable, the problems 16457# vanish in a puff of smoke. 16458if test "X${COLLECT_NAMES+set}" != Xset; then 16459 COLLECT_NAMES= 16460 export COLLECT_NAMES 16461fi 16462_LT_EOF 16463 ;; 16464 esac 16465 16466 16467ltmain="$ac_aux_dir/ltmain.sh" 16468 16469 16470 # We use sed instead of cat because bash on DJGPP gets confused if 16471 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16472 # text mode, it properly converts lines to CR/LF. This bash problem 16473 # is reportedly fixed, but why not run on old versions too? 16474 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16475 || (rm -f "$cfgfile"; exit 1) 16476 16477 case $xsi_shell in 16478 yes) 16479 cat << \_LT_EOF >> "$cfgfile" 16480 16481# func_dirname file append nondir_replacement 16482# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16483# otherwise set result to NONDIR_REPLACEMENT. 16484func_dirname () 16485{ 16486 case ${1} in 16487 */*) func_dirname_result="${1%/*}${2}" ;; 16488 * ) func_dirname_result="${3}" ;; 16489 esac 16490} 16491 16492# func_basename file 16493func_basename () 16494{ 16495 func_basename_result="${1##*/}" 16496} 16497 16498# func_dirname_and_basename file append nondir_replacement 16499# perform func_basename and func_dirname in a single function 16500# call: 16501# dirname: Compute the dirname of FILE. If nonempty, 16502# add APPEND to the result, otherwise set result 16503# to NONDIR_REPLACEMENT. 16504# value returned in "$func_dirname_result" 16505# basename: Compute filename of FILE. 16506# value retuned in "$func_basename_result" 16507# Implementation must be kept synchronized with func_dirname 16508# and func_basename. For efficiency, we do not delegate to 16509# those functions but instead duplicate the functionality here. 16510func_dirname_and_basename () 16511{ 16512 case ${1} in 16513 */*) func_dirname_result="${1%/*}${2}" ;; 16514 * ) func_dirname_result="${3}" ;; 16515 esac 16516 func_basename_result="${1##*/}" 16517} 16518 16519# func_stripname prefix suffix name 16520# strip PREFIX and SUFFIX off of NAME. 16521# PREFIX and SUFFIX must not contain globbing or regex special 16522# characters, hashes, percent signs, but SUFFIX may contain a leading 16523# dot (in which case that matches only a dot). 16524func_stripname () 16525{ 16526 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16527 # positional parameters, so assign one to ordinary parameter first. 16528 func_stripname_result=${3} 16529 func_stripname_result=${func_stripname_result#"${1}"} 16530 func_stripname_result=${func_stripname_result%"${2}"} 16531} 16532 16533# func_opt_split 16534func_opt_split () 16535{ 16536 func_opt_split_opt=${1%%=*} 16537 func_opt_split_arg=${1#*=} 16538} 16539 16540# func_lo2o object 16541func_lo2o () 16542{ 16543 case ${1} in 16544 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16545 *) func_lo2o_result=${1} ;; 16546 esac 16547} 16548 16549# func_xform libobj-or-source 16550func_xform () 16551{ 16552 func_xform_result=${1%.*}.lo 16553} 16554 16555# func_arith arithmetic-term... 16556func_arith () 16557{ 16558 func_arith_result=$(( $* )) 16559} 16560 16561# func_len string 16562# STRING may not start with a hyphen. 16563func_len () 16564{ 16565 func_len_result=${#1} 16566} 16567 16568_LT_EOF 16569 ;; 16570 *) # Bourne compatible functions. 16571 cat << \_LT_EOF >> "$cfgfile" 16572 16573# func_dirname file append nondir_replacement 16574# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16575# otherwise set result to NONDIR_REPLACEMENT. 16576func_dirname () 16577{ 16578 # Extract subdirectory from the argument. 16579 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 16580 if test "X$func_dirname_result" = "X${1}"; then 16581 func_dirname_result="${3}" 16582 else 16583 func_dirname_result="$func_dirname_result${2}" 16584 fi 16585} 16586 16587# func_basename file 16588func_basename () 16589{ 16590 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 16591} 16592 16593 16594# func_stripname prefix suffix name 16595# strip PREFIX and SUFFIX off of NAME. 16596# PREFIX and SUFFIX must not contain globbing or regex special 16597# characters, hashes, percent signs, but SUFFIX may contain a leading 16598# dot (in which case that matches only a dot). 16599# func_strip_suffix prefix name 16600func_stripname () 16601{ 16602 case ${2} in 16603 .*) func_stripname_result=`$ECHO "X${3}" \ 16604 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 16605 *) func_stripname_result=`$ECHO "X${3}" \ 16606 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 16607 esac 16608} 16609 16610# sed scripts: 16611my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16612my_sed_long_arg='1s/^-[^=]*=//' 16613 16614# func_opt_split 16615func_opt_split () 16616{ 16617 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 16618 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 16619} 16620 16621# func_lo2o object 16622func_lo2o () 16623{ 16624 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 16625} 16626 16627# func_xform libobj-or-source 16628func_xform () 16629{ 16630 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 16631} 16632 16633# func_arith arithmetic-term... 16634func_arith () 16635{ 16636 func_arith_result=`expr "$@"` 16637} 16638 16639# func_len string 16640# STRING may not start with a hyphen. 16641func_len () 16642{ 16643 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16644} 16645 16646_LT_EOF 16647esac 16648 16649case $lt_shell_append in 16650 yes) 16651 cat << \_LT_EOF >> "$cfgfile" 16652 16653# func_append var value 16654# Append VALUE to the end of shell variable VAR. 16655func_append () 16656{ 16657 eval "$1+=\$2" 16658} 16659_LT_EOF 16660 ;; 16661 *) 16662 cat << \_LT_EOF >> "$cfgfile" 16663 16664# func_append var value 16665# Append VALUE to the end of shell variable VAR. 16666func_append () 16667{ 16668 eval "$1=\$$1\$2" 16669} 16670 16671_LT_EOF 16672 ;; 16673 esac 16674 16675 16676 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16677 || (rm -f "$cfgfile"; exit 1) 16678 16679 mv -f "$cfgfile" "$ofile" || 16680 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16681 chmod +x "$ofile" 16682 16683 ;; 16684 16685 esac 16686done # for ac_tag 16687 16688 16689{ (exit 0); exit 0; } 16690_ACEOF 16691chmod +x $CONFIG_STATUS 16692ac_clean_files=$ac_clean_files_save 16693 16694test $ac_write_fail = 0 || 16695 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 16696$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 16697 { (exit 1); exit 1; }; } 16698 16699 16700# configure is writing to config.log, and then calls config.status. 16701# config.status does its own redirection, appending to config.log. 16702# Unfortunately, on DOS this fails, as config.log is still kept open 16703# by configure, so config.status won't be able to write to it; its 16704# output is simply discarded. So we exec the FD to /dev/null, 16705# effectively closing config.log, so it can be properly (re)opened and 16706# appended to by config.status. When coming back to configure, we 16707# need to make the FD available again. 16708if test "$no_create" != yes; then 16709 ac_cs_success=: 16710 ac_config_status_args= 16711 test "$silent" = yes && 16712 ac_config_status_args="$ac_config_status_args --quiet" 16713 exec 5>/dev/null 16714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16715 exec 5>>config.log 16716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16717 # would make configure fail if this is the last instruction. 16718 $ac_cs_success || { (exit 1); exit 1; } 16719fi 16720if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16721 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16722$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16723fi 16724 16725 16726