1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for file 5.11. 4# 5# Report bugs to <christos@astron.com>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org and 232$0: christos@astron.com about your system, including any 233$0: error possibly output before this message. Then install 234$0: a modern shell, or manually run the script under such a 235$0: shell if you do have one." 236 fi 237 exit 1 238fi 239fi 240fi 241SHELL=${CONFIG_SHELL-/bin/sh} 242export SHELL 243# Unset more variables known to interfere with behavior of common tools. 244CLICOLOR_FORCE= GREP_OPTIONS= 245unset CLICOLOR_FORCE GREP_OPTIONS 246 247## --------------------- ## 248## M4sh Shell Functions. ## 249## --------------------- ## 250# as_fn_unset VAR 251# --------------- 252# Portably unset VAR. 253as_fn_unset () 254{ 255 { eval $1=; unset $1;} 256} 257as_unset=as_fn_unset 258 259# as_fn_set_status STATUS 260# ----------------------- 261# Set $? to STATUS, without forking. 262as_fn_set_status () 263{ 264 return $1 265} # as_fn_set_status 266 267# as_fn_exit STATUS 268# ----------------- 269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270as_fn_exit () 271{ 272 set +e 273 as_fn_set_status $1 274 exit $1 275} # as_fn_exit 276 277# as_fn_mkdir_p 278# ------------- 279# Create "$as_dir" as a directory, including parents if necessary. 280as_fn_mkdir_p () 281{ 282 283 case $as_dir in #( 284 -*) as_dir=./$as_dir;; 285 esac 286 test -d "$as_dir" || eval $as_mkdir_p || { 287 as_dirs= 288 while :; do 289 case $as_dir in #( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291 *) as_qdir=$as_dir;; 292 esac 293 as_dirs="'$as_qdir' $as_dirs" 294 as_dir=`$as_dirname -- "$as_dir" || 295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \ 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299$as_echo X"$as_dir" | 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301 s//\1/ 302 q 303 } 304 /^X\(\/\/\)[^/].*/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\).*/{ 313 s//\1/ 314 q 315 } 316 s/.*/./; q'` 317 test -d "$as_dir" && break 318 done 319 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 321 322 323} # as_fn_mkdir_p 324# as_fn_append VAR VALUE 325# ---------------------- 326# Append the text in VALUE to the end of the definition contained in VAR. Take 327# advantage of any shell optimizations that allow amortized linear growth over 328# repeated appends, instead of the typical quadratic growth present in naive 329# implementations. 330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331 eval 'as_fn_append () 332 { 333 eval $1+=\$2 334 }' 335else 336 as_fn_append () 337 { 338 eval $1=\$$1\$2 339 } 340fi # as_fn_append 341 342# as_fn_arith ARG... 343# ------------------ 344# Perform arithmetic evaluation on the ARGs, and store the result in the 345# global $as_val. Take advantage of shells that can avoid forks. The arguments 346# must be portable across $(()) and expr. 347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348 eval 'as_fn_arith () 349 { 350 as_val=$(( $* )) 351 }' 352else 353 as_fn_arith () 354 { 355 as_val=`expr "$@" || test $? -eq 1` 356 } 357fi # as_fn_arith 358 359 360# as_fn_error ERROR [LINENO LOG_FD] 361# --------------------------------- 362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364# script with status $?, using 1 if that was 0. 365as_fn_error () 366{ 367 as_status=$?; test $as_status -eq 0 && as_status=1 368 if test "$3"; then 369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 371 fi 372 $as_echo "$as_me: error: $1" >&2 373 as_fn_exit $as_status 374} # as_fn_error 375 376if expr a : '\(a\)' >/dev/null 2>&1 && 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 378 as_expr=expr 379else 380 as_expr=false 381fi 382 383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 384 as_basename=basename 385else 386 as_basename=false 387fi 388 389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390 as_dirname=dirname 391else 392 as_dirname=false 393fi 394 395as_me=`$as_basename -- "$0" || 396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 397 X"$0" : 'X\(//\)$' \| \ 398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 399$as_echo X/"$0" | 400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 401 s//\1/ 402 q 403 } 404 /^X\/\(\/\/\)$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\).*/{ 409 s//\1/ 410 q 411 } 412 s/.*/./; q'` 413 414# Avoid depending upon Character Ranges. 415as_cr_letters='abcdefghijklmnopqrstuvwxyz' 416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 417as_cr_Letters=$as_cr_letters$as_cr_LETTERS 418as_cr_digits='0123456789' 419as_cr_alnum=$as_cr_Letters$as_cr_digits 420 421 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 427 sed -n ' 428 p 429 /[$]LINENO/= 430 ' <$as_myself | 431 sed ' 432 s/[$]LINENO.*/&-/ 433 t lineno 434 b 435 :lineno 436 N 437 :loop 438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 439 t loop 440 s/-\n.*// 441 ' >$as_me.lineno && 442 chmod +x "$as_me.lineno" || 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 444 445 # Don't try to exec as it changes $[0], causing all sort of problems 446 # (the dirname of $[0] is not the place where we might find the 447 # original and so on. Autoconf is especially sensitive to this). 448 . "./$as_me.lineno" 449 # Exit status is that of the last command. 450 exit 451} 452 453ECHO_C= ECHO_N= ECHO_T= 454case `echo -n x` in #((((( 455-n*) 456 case `echo 'xy\c'` in 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 458 xy) ECHO_C='\c';; 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460 ECHO_T=' ';; 461 esac;; 462*) 463 ECHO_N='-n';; 464esac 465 466rm -f conf$$ conf$$.exe conf$$.file 467if test -d conf$$.dir; then 468 rm -f conf$$.dir/conf$$.file 469else 470 rm -f conf$$.dir 471 mkdir conf$$.dir 2>/dev/null 472fi 473if (echo >conf$$.file) 2>/dev/null; then 474 if ln -s conf$$.file conf$$ 2>/dev/null; then 475 as_ln_s='ln -s' 476 # ... but there are two gotchas: 477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479 # In both cases, we have to default to `cp -p'. 480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481 as_ln_s='cp -p' 482 elif ln conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s=ln 484 else 485 as_ln_s='cp -p' 486 fi 487else 488 as_ln_s='cp -p' 489fi 490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 491rmdir conf$$.dir 2>/dev/null 492 493if mkdir -p . 2>/dev/null; then 494 as_mkdir_p='mkdir -p "$as_dir"' 495else 496 test -d ./-p && rmdir ./-p 497 as_mkdir_p=false 498fi 499 500if test -x / >/dev/null 2>&1; then 501 as_test_x='test -x' 502else 503 if ls -dL / >/dev/null 2>&1; then 504 as_ls_L_option=L 505 else 506 as_ls_L_option= 507 fi 508 as_test_x=' 509 eval sh -c '\'' 510 if test -d "$1"; then 511 test -d "$1/."; 512 else 513 case $1 in #( 514 -*)set "./$1";; 515 esac; 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517 ???[sx]*):;;*)false;;esac;fi 518 '\'' sh 519 ' 520fi 521as_executable_p=$as_test_x 522 523# Sed expression to map a string onto a valid CPP name. 524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 525 526# Sed expression to map a string onto a valid variable name. 527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 528 529 530 531# Check that we are running under the correct shell. 532SHELL=${CONFIG_SHELL-/bin/sh} 533 534case X$lt_ECHO in 535X*--fallback-echo) 536 # Remove one level of quotation (which was required for Make). 537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 538 ;; 539esac 540 541ECHO=${lt_ECHO-echo} 542if test "X$1" = X--no-reexec; then 543 # Discard the --no-reexec flag, and continue. 544 shift 545elif test "X$1" = X--fallback-echo; then 546 # Avoid inline document here, it may be left over 547 : 548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 549 # Yippee, $ECHO works! 550 : 551else 552 # Restart under the correct shell. 553 exec $SHELL "$0" --no-reexec ${1+"$@"} 554fi 555 556if test "X$1" = X--fallback-echo; then 557 # used as fallback echo 558 shift 559 cat <<_LT_EOF 560$* 561_LT_EOF 562 exit 0 563fi 564 565# The HP-UX ksh and POSIX shell print the target directory to stdout 566# if CDPATH is set. 567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 568 569if test -z "$lt_ECHO"; then 570 if test "X${echo_test_string+set}" != Xset; then 571 # find a string as large as possible, as long as the shell can cope with it 572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 574 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 576 then 577 break 578 fi 579 done 580 fi 581 582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 584 test "X$echo_testing_string" = "X$echo_test_string"; then 585 : 586 else 587 # The Solaris, AIX, and Digital Unix default echo programs unquote 588 # backslashes. This makes it impossible to quote backslashes using 589 # echo "$something" | sed 's/\\/\\\\/g' 590 # 591 # So, first we look for a working echo in the user's PATH. 592 593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 594 for dir in $PATH /usr/ucb; do 595 IFS="$lt_save_ifs" 596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 599 test "X$echo_testing_string" = "X$echo_test_string"; then 600 ECHO="$dir/echo" 601 break 602 fi 603 done 604 IFS="$lt_save_ifs" 605 606 if test "X$ECHO" = Xecho; then 607 # We didn't find a better echo, so look for alternatives. 608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 # This shell has a builtin print -r that does the trick. 612 ECHO='print -r' 613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 614 test "X$CONFIG_SHELL" != X/bin/ksh; then 615 # If we have ksh, try running configure again with it. 616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 617 export ORIGINAL_CONFIG_SHELL 618 CONFIG_SHELL=/bin/ksh 619 export CONFIG_SHELL 620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 621 else 622 # Try using printf. 623 ECHO='printf %s\n' 624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 # Cool, printf works 628 : 629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 630 test "X$echo_testing_string" = 'X\t' && 631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 634 export CONFIG_SHELL 635 SHELL="$CONFIG_SHELL" 636 export SHELL 637 ECHO="$CONFIG_SHELL $0 --fallback-echo" 638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 639 test "X$echo_testing_string" = 'X\t' && 640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 641 test "X$echo_testing_string" = "X$echo_test_string"; then 642 ECHO="$CONFIG_SHELL $0 --fallback-echo" 643 else 644 # maybe with a smaller string... 645 prev=: 646 647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 649 then 650 break 651 fi 652 prev="$cmd" 653 done 654 655 if test "$prev" != 'sed 50q "$0"'; then 656 echo_test_string=`eval $prev` 657 export echo_test_string 658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 659 else 660 # Oops. We lost completely, so just stick with echo. 661 ECHO=echo 662 fi 663 fi 664 fi 665 fi 666 fi 667fi 668 669# Copy echo and quote the copy suitably for passing to libtool from 670# the Makefile, instead of quoting the original, which is used later. 671lt_ECHO=$ECHO 672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 674fi 675 676 677 678 679exec 7<&0 </dev/null 6>&1 680 681# Name of the host. 682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 683# so uname gets run too. 684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 685 686# 687# Initializations. 688# 689ac_default_prefix=/usr/local 690ac_clean_files= 691ac_config_libobj_dir=. 692LIBOBJS= 693cross_compiling=no 694subdirs= 695MFLAGS= 696MAKEFLAGS= 697 698# Identity of this package. 699PACKAGE_NAME='file' 700PACKAGE_TARNAME='file' 701PACKAGE_VERSION='5.11' 702PACKAGE_STRING='file 5.11' 703PACKAGE_BUGREPORT='christos@astron.com' 704PACKAGE_URL='' 705 706# Factoring default headers for most tests. 707ac_includes_default="\ 708#include <stdio.h> 709#ifdef HAVE_SYS_TYPES_H 710# include <sys/types.h> 711#endif 712#ifdef HAVE_SYS_STAT_H 713# include <sys/stat.h> 714#endif 715#ifdef STDC_HEADERS 716# include <stdlib.h> 717# include <stddef.h> 718#else 719# ifdef HAVE_STDLIB_H 720# include <stdlib.h> 721# endif 722#endif 723#ifdef HAVE_STRING_H 724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 725# include <memory.h> 726# endif 727# include <string.h> 728#endif 729#ifdef HAVE_STRINGS_H 730# include <strings.h> 731#endif 732#ifdef HAVE_INTTYPES_H 733# include <inttypes.h> 734#endif 735#ifdef HAVE_STDINT_H 736# include <stdint.h> 737#endif 738#ifdef HAVE_UNISTD_H 739# include <unistd.h> 740#endif" 741 742ac_subst_vars='am__EXEEXT_FALSE 743am__EXEEXT_TRUE 744LTLIBOBJS 745IS_CROSS_COMPILE_FALSE 746IS_CROSS_COMPILE_TRUE 747LIBOBJS 748OTOOL64 749OTOOL 750LIPO 751NMEDIT 752DSYMUTIL 753lt_ECHO 754RANLIB 755AR 756OBJDUMP 757NM 758ac_ct_DUMPBIN 759DUMPBIN 760LD 761FGREP 762SED 763LIBTOOL 764LN_S 765EGREP 766GREP 767CPP 768am__fastdepCC_FALSE 769am__fastdepCC_TRUE 770CCDEPMODE 771AMDEPBACKSLASH 772AMDEP_FALSE 773AMDEP_TRUE 774am__quote 775am__include 776DEPDIR 777OBJEXT 778EXEEXT 779ac_ct_CC 780CPPFLAGS 781LDFLAGS 782CFLAGS 783CC 784WARNINGS 785FSECT5_FALSE 786FSECT5_TRUE 787fsect 788pkgdatadir 789MINGW_FALSE 790MINGW_TRUE 791MINGW 792host_os 793host_vendor 794host_cpu 795host 796build_os 797build_vendor 798build_cpu 799build 800AM_BACKSLASH 801AM_DEFAULT_VERBOSITY 802MAINT 803MAINTAINER_MODE_FALSE 804MAINTAINER_MODE_TRUE 805am__untar 806am__tar 807AMTAR 808am__leading_dot 809SET_MAKE 810AWK 811mkdir_p 812MKDIR_P 813INSTALL_STRIP_PROGRAM 814STRIP 815install_sh 816MAKEINFO 817AUTOHEADER 818AUTOMAKE 819AUTOCONF 820ACLOCAL 821VERSION 822PACKAGE 823CYGPATH_W 824am__isrc 825INSTALL_DATA 826INSTALL_SCRIPT 827INSTALL_PROGRAM 828target_alias 829host_alias 830build_alias 831LIBS 832ECHO_T 833ECHO_N 834ECHO_C 835DEFS 836mandir 837localedir 838libdir 839psdir 840pdfdir 841dvidir 842htmldir 843infodir 844docdir 845oldincludedir 846includedir 847localstatedir 848sharedstatedir 849sysconfdir 850datadir 851datarootdir 852libexecdir 853sbindir 854bindir 855program_transform_name 856prefix 857exec_prefix 858PACKAGE_URL 859PACKAGE_BUGREPORT 860PACKAGE_STRING 861PACKAGE_VERSION 862PACKAGE_TARNAME 863PACKAGE_NAME 864PATH_SEPARATOR 865SHELL' 866ac_subst_files='' 867ac_user_opts=' 868enable_option_checking 869enable_maintainer_mode 870enable_silent_rules 871enable_elf 872enable_elf_core 873enable_fsect_man5 874enable_dependency_tracking 875enable_shared 876enable_static 877with_pic 878enable_fast_install 879with_gnu_ld 880enable_libtool_lock 881enable_largefile 882enable_warnings 883' 884 ac_precious_vars='build_alias 885host_alias 886target_alias 887CC 888CFLAGS 889LDFLAGS 890LIBS 891CPPFLAGS 892CPP' 893 894 895# Initialize some variables set by options. 896ac_init_help= 897ac_init_version=false 898ac_unrecognized_opts= 899ac_unrecognized_sep= 900# The variables have the same names as the options, with 901# dashes changed to underlines. 902cache_file=/dev/null 903exec_prefix=NONE 904no_create= 905no_recursion= 906prefix=NONE 907program_prefix=NONE 908program_suffix=NONE 909program_transform_name=s,x,x, 910silent= 911site= 912srcdir= 913verbose= 914x_includes=NONE 915x_libraries=NONE 916 917# Installation directory options. 918# These are left unexpanded so users can "make install exec_prefix=/foo" 919# and all the variables that are supposed to be based on exec_prefix 920# by default will actually change. 921# Use braces instead of parens because sh, perl, etc. also accept them. 922# (The list follows the same order as the GNU Coding Standards.) 923bindir='${exec_prefix}/bin' 924sbindir='${exec_prefix}/sbin' 925libexecdir='${exec_prefix}/libexec' 926datarootdir='${prefix}/share' 927datadir='${datarootdir}' 928sysconfdir='${prefix}/etc' 929sharedstatedir='${prefix}/com' 930localstatedir='${prefix}/var' 931includedir='${prefix}/include' 932oldincludedir='/usr/include' 933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 934infodir='${datarootdir}/info' 935htmldir='${docdir}' 936dvidir='${docdir}' 937pdfdir='${docdir}' 938psdir='${docdir}' 939libdir='${exec_prefix}/lib' 940localedir='${datarootdir}/locale' 941mandir='${datarootdir}/man' 942 943ac_prev= 944ac_dashdash= 945for ac_option 946do 947 # If the previous option needs an argument, assign it. 948 if test -n "$ac_prev"; then 949 eval $ac_prev=\$ac_option 950 ac_prev= 951 continue 952 fi 953 954 case $ac_option in 955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1001 as_fn_error "invalid feature name: $ac_useropt" 1002 ac_useropt_orig=$ac_useropt 1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1004 case $ac_user_opts in 1005 *" 1006"enable_$ac_useropt" 1007"*) ;; 1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1009 ac_unrecognized_sep=', ';; 1010 esac 1011 eval enable_$ac_useropt=no ;; 1012 1013 -docdir | --docdir | --docdi | --doc | --do) 1014 ac_prev=docdir ;; 1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1016 docdir=$ac_optarg ;; 1017 1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1019 ac_prev=dvidir ;; 1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1021 dvidir=$ac_optarg ;; 1022 1023 -enable-* | --enable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 as_fn_error "invalid feature name: $ac_useropt" 1028 ac_useropt_orig=$ac_useropt 1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1030 case $ac_user_opts in 1031 *" 1032"enable_$ac_useropt" 1033"*) ;; 1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error "invalid package name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=\$ac_optarg ;; 1242 1243 -without-* | --without-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=no ;; 1258 1259 --x) 1260 # Obsolete; use --with-x. 1261 with_x=yes ;; 1262 1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1264 | --x-incl | --x-inc | --x-in | --x-i) 1265 ac_prev=x_includes ;; 1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1268 x_includes=$ac_optarg ;; 1269 1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1272 ac_prev=x_libraries ;; 1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1275 x_libraries=$ac_optarg ;; 1276 1277 -*) as_fn_error "unrecognized option: \`$ac_option' 1278Try \`$0 --help' for more information." 1279 ;; 1280 1281 *=*) 1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1283 # Reject names that are not valid shell variable names. 1284 case $ac_envvar in #( 1285 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1286 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1287 esac 1288 eval $ac_envvar=\$ac_optarg 1289 export $ac_envvar ;; 1290 1291 *) 1292 # FIXME: should be removed in autoconf 3.0. 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1297 ;; 1298 1299 esac 1300done 1301 1302if test -n "$ac_prev"; then 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1304 as_fn_error "missing argument to $ac_option" 1305fi 1306 1307if test -n "$ac_unrecognized_opts"; then 1308 case $enable_option_checking in 1309 no) ;; 1310 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1312 esac 1313fi 1314 1315# Check all directory arguments for consistency. 1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1317 datadir sysconfdir sharedstatedir localstatedir includedir \ 1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1319 libdir localedir mandir 1320do 1321 eval ac_val=\$$ac_var 1322 # Remove trailing slashes. 1323 case $ac_val in 1324 */ ) 1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1326 eval $ac_var=\$ac_val;; 1327 esac 1328 # Be sure to have absolute directory names. 1329 case $ac_val in 1330 [\\/$]* | ?:[\\/]* ) continue;; 1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1332 esac 1333 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1334done 1335 1336# There might be people who depend on the old broken behavior: `$host' 1337# used to hold the argument of --host etc. 1338# FIXME: To remove some day. 1339build=$build_alias 1340host=$host_alias 1341target=$target_alias 1342 1343# FIXME: To remove some day. 1344if test "x$host_alias" != x; then 1345 if test "x$build_alias" = x; then 1346 cross_compiling=maybe 1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1348 If a cross compiler is detected then cross compile mode will be used." >&2 1349 elif test "x$build_alias" != "x$host_alias"; then 1350 cross_compiling=yes 1351 fi 1352fi 1353 1354ac_tool_prefix= 1355test -n "$host_alias" && ac_tool_prefix=$host_alias- 1356 1357test "$silent" = yes && exec 6>/dev/null 1358 1359 1360ac_pwd=`pwd` && test -n "$ac_pwd" && 1361ac_ls_di=`ls -di .` && 1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1363 as_fn_error "working directory cannot be determined" 1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1365 as_fn_error "pwd does not report name of working directory" 1366 1367 1368# Find the source files, if location was not specified. 1369if test -z "$srcdir"; then 1370 ac_srcdir_defaulted=yes 1371 # Try the directory containing this script, then the parent directory. 1372 ac_confdir=`$as_dirname -- "$as_myself" || 1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1374 X"$as_myself" : 'X\(//\)[^/]' \| \ 1375 X"$as_myself" : 'X\(//\)$' \| \ 1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1377$as_echo X"$as_myself" | 1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)[^/].*/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\).*/{ 1391 s//\1/ 1392 q 1393 } 1394 s/.*/./; q'` 1395 srcdir=$ac_confdir 1396 if test ! -r "$srcdir/$ac_unique_file"; then 1397 srcdir=.. 1398 fi 1399else 1400 ac_srcdir_defaulted=no 1401fi 1402if test ! -r "$srcdir/$ac_unique_file"; then 1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1404 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1405fi 1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1407ac_abs_confdir=`( 1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1409 pwd)` 1410# When building in place, set srcdir=. 1411if test "$ac_abs_confdir" = "$ac_pwd"; then 1412 srcdir=. 1413fi 1414# Remove unnecessary trailing slashes from srcdir. 1415# Double slashes in file names in object file debugging info 1416# mess up M-x gdb in Emacs. 1417case $srcdir in 1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1419esac 1420for ac_var in $ac_precious_vars; do 1421 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_env_${ac_var}_value=\$${ac_var} 1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1424 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1425done 1426 1427# 1428# Report the --help message. 1429# 1430if test "$ac_init_help" = "long"; then 1431 # Omit some internal or obsolete options to make the list less imposing. 1432 # This message is too long to be a string in the A/UX 3.1 sh. 1433 cat <<_ACEOF 1434\`configure' configures file 5.11 to adapt to many kinds of systems. 1435 1436Usage: $0 [OPTION]... [VAR=VALUE]... 1437 1438To assign environment variables (e.g., CC, CFLAGS...), specify them as 1439VAR=VALUE. See below for descriptions of some of the useful variables. 1440 1441Defaults for the options are specified in brackets. 1442 1443Configuration: 1444 -h, --help display this help and exit 1445 --help=short display options specific to this package 1446 --help=recursive display the short help of all the included packages 1447 -V, --version display version information and exit 1448 -q, --quiet, --silent do not print \`checking...' messages 1449 --cache-file=FILE cache test results in FILE [disabled] 1450 -C, --config-cache alias for \`--cache-file=config.cache' 1451 -n, --no-create do not create output files 1452 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1453 1454Installation directories: 1455 --prefix=PREFIX install architecture-independent files in PREFIX 1456 [$ac_default_prefix] 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1458 [PREFIX] 1459 1460By default, \`make install' will install all the files in 1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1462an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1463for instance \`--prefix=\$HOME'. 1464 1465For better control, use the options below. 1466 1467Fine tuning of the installation directories: 1468 --bindir=DIR user executables [EPREFIX/bin] 1469 --sbindir=DIR system admin executables [EPREFIX/sbin] 1470 --libexecdir=DIR program executables [EPREFIX/libexec] 1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of file 5.11:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-maintainer-mode enable make rules and dependencies not useful 1513 (and sometimes confusing) to the casual installer 1514 --enable-silent-rules less verbose build output (undo: `make V=1') 1515 --disable-silent-rules verbose build output (undo: `make V=0') 1516 --disable-elf disable builtin ELF support 1517 --disable-elf-core disable ELF core file support 1518 --enable-fsect-man5 enable file formats in man section 5 1519 --disable-dependency-tracking speeds up one-time build 1520 --enable-dependency-tracking do not reject slow dependency extractors 1521 --enable-shared[=PKGS] build shared libraries [default=yes] 1522 --enable-static[=PKGS] build static libraries [default=yes] 1523 --enable-fast-install[=PKGS] 1524 optimize for fast installation [default=yes] 1525 --disable-libtool-lock avoid locking (might break parallel builds) 1526 --disable-largefile omit support for large files 1527 --disable-warnings disable compiler warnings 1528 1529Optional Packages: 1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1532 --with-pic try to use only PIC/non-PIC objects [default=use 1533 both] 1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 1546Use these variables to override the choices made by `configure' or to help 1547it to find libraries and programs with nonstandard names/locations. 1548 1549Report bugs to <christos@astron.com>. 1550_ACEOF 1551ac_status=$? 1552fi 1553 1554if test "$ac_init_help" = "recursive"; then 1555 # If there are subdirs, report their specific --help. 1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1557 test -d "$ac_dir" || 1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1559 continue 1560 ac_builddir=. 1561 1562case "$ac_dir" in 1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564*) 1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1566 # A ".." for each directory in $ac_dir_suffix. 1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1568 case $ac_top_builddir_sub in 1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1571 esac ;; 1572esac 1573ac_abs_top_builddir=$ac_pwd 1574ac_abs_builddir=$ac_pwd$ac_dir_suffix 1575# for backward compatibility: 1576ac_top_builddir=$ac_top_build_prefix 1577 1578case $srcdir in 1579 .) # We are building in place. 1580 ac_srcdir=. 1581 ac_top_srcdir=$ac_top_builddir_sub 1582 ac_abs_top_srcdir=$ac_pwd ;; 1583 [\\/]* | ?:[\\/]* ) # Absolute name. 1584 ac_srcdir=$srcdir$ac_dir_suffix; 1585 ac_top_srcdir=$srcdir 1586 ac_abs_top_srcdir=$srcdir ;; 1587 *) # Relative name. 1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1589 ac_top_srcdir=$ac_top_build_prefix$srcdir 1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1591esac 1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1593 1594 cd "$ac_dir" || { ac_status=$?; continue; } 1595 # Check for guested configure. 1596 if test -f "$ac_srcdir/configure.gnu"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1599 elif test -f "$ac_srcdir/configure"; then 1600 echo && 1601 $SHELL "$ac_srcdir/configure" --help=recursive 1602 else 1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1604 fi || ac_status=$? 1605 cd "$ac_pwd" || { ac_status=$?; break; } 1606 done 1607fi 1608 1609test -n "$ac_init_help" && exit $ac_status 1610if $ac_init_version; then 1611 cat <<\_ACEOF 1612file configure 5.11 1613generated by GNU Autoconf 2.68 1614 1615Copyright (C) 2009 Free Software Foundation, Inc. 1616This configure script is free software; the Free Software Foundation 1617gives unlimited permission to copy, distribute and modify it. 1618_ACEOF 1619 exit 1620fi 1621 1622## ------------------------ ## 1623## Autoconf initialization. ## 1624## ------------------------ ## 1625 1626# ac_fn_c_try_compile LINENO 1627# -------------------------- 1628# Try to compile conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext 1633 if { { ac_try="$ac_compile" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_compile") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest.$ac_objext; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1660 return $ac_retval 1661 1662} # ac_fn_c_try_compile 1663 1664# ac_fn_c_try_cpp LINENO 1665# ---------------------- 1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_cpp () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if { { ac_try="$ac_cpp conftest.$ac_ext" 1671case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1678 ac_status=$? 1679 if test -s conftest.err; then 1680 grep -v '^ *+' conftest.err >conftest.er1 1681 cat conftest.er1 >&5 1682 mv -f conftest.er1 conftest.err 1683 fi 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } >/dev/null && { 1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1687 test ! -s conftest.err 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1697 return $ac_retval 1698 1699} # ac_fn_c_try_cpp 1700 1701# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1702# ------------------------------------------------------- 1703# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1704# the include files in INCLUDES and setting the cache variable VAR 1705# accordingly. 1706ac_fn_c_check_header_mongrel () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711$as_echo_n "checking for $2... " >&6; } 1712if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1713 $as_echo_n "(cached) " >&6 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718else 1719 # Is the header compilable? 1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1721$as_echo_n "checking $2 usability... " >&6; } 1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723/* end confdefs.h. */ 1724$4 1725#include <$2> 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 ac_header_compiler=yes 1729else 1730 ac_header_compiler=no 1731fi 1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1734$as_echo "$ac_header_compiler" >&6; } 1735 1736# Is the header present? 1737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1738$as_echo_n "checking $2 presence... " >&6; } 1739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741#include <$2> 1742_ACEOF 1743if ac_fn_c_try_cpp "$LINENO"; then : 1744 ac_header_preproc=yes 1745else 1746 ac_header_preproc=no 1747fi 1748rm -f conftest.err conftest.$ac_ext 1749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1750$as_echo "$ac_header_preproc" >&6; } 1751 1752# So? What about this header? 1753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1754 yes:no: ) 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1756$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1759 ;; 1760 no:yes:* ) 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1762$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1764$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1766$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1768$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1771( cat <<\_ASBOX 1772## ---------------------------------- ## 1773## Report this to christos@astron.com ## 1774## ---------------------------------- ## 1775_ASBOX 1776 ) | sed "s/^/$as_me: WARNING: /" >&2 1777 ;; 1778esac 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1782 $as_echo_n "(cached) " >&6 1783else 1784 eval "$3=\$ac_header_compiler" 1785fi 1786eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788$as_echo "$ac_res" >&6; } 1789fi 1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1791 1792} # ac_fn_c_check_header_mongrel 1793 1794# ac_fn_c_try_run LINENO 1795# ---------------------- 1796# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1797# that executables *can* be run. 1798ac_fn_c_try_run () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 if { { ac_try="$ac_link" 1802case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_link") 2>&5 1809 ac_status=$? 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1812 { { case "(($ac_try" in 1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1814 *) ac_try_echo=$ac_try;; 1815esac 1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1817$as_echo "$ac_try_echo"; } >&5 1818 (eval "$ac_try") 2>&5 1819 ac_status=$? 1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1821 test $ac_status = 0; }; }; then : 1822 ac_retval=0 1823else 1824 $as_echo "$as_me: program exited with status $ac_status" >&5 1825 $as_echo "$as_me: failed program was:" >&5 1826sed 's/^/| /' conftest.$ac_ext >&5 1827 1828 ac_retval=$ac_status 1829fi 1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1832 return $ac_retval 1833 1834} # ac_fn_c_try_run 1835 1836# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1837# ------------------------------------------------------- 1838# Tests whether HEADER exists and can be compiled using the include files in 1839# INCLUDES, setting the cache variable VAR accordingly. 1840ac_fn_c_check_header_compile () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1844$as_echo_n "checking for $2... " >&6; } 1845if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1846 $as_echo_n "(cached) " >&6 1847else 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850$4 1851#include <$2> 1852_ACEOF 1853if ac_fn_c_try_compile "$LINENO"; then : 1854 eval "$3=yes" 1855else 1856 eval "$3=no" 1857fi 1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1859fi 1860eval ac_res=\$$3 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1862$as_echo "$ac_res" >&6; } 1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1864 1865} # ac_fn_c_check_header_compile 1866 1867# ac_fn_c_try_link LINENO 1868# ----------------------- 1869# Try to link conftest.$ac_ext, and return whether this succeeded. 1870ac_fn_c_try_link () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 rm -f conftest.$ac_objext conftest$ac_exeext 1874 if { { ac_try="$ac_link" 1875case "(($ac_try" in 1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1877 *) ac_try_echo=$ac_try;; 1878esac 1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1880$as_echo "$ac_try_echo"; } >&5 1881 (eval "$ac_link") 2>conftest.err 1882 ac_status=$? 1883 if test -s conftest.err; then 1884 grep -v '^ *+' conftest.err >conftest.er1 1885 cat conftest.er1 >&5 1886 mv -f conftest.er1 conftest.err 1887 fi 1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1889 test $ac_status = 0; } && { 1890 test -z "$ac_c_werror_flag" || 1891 test ! -s conftest.err 1892 } && test -s conftest$ac_exeext && { 1893 test "$cross_compiling" = yes || 1894 $as_test_x conftest$ac_exeext 1895 }; then : 1896 ac_retval=0 1897else 1898 $as_echo "$as_me: failed program was:" >&5 1899sed 's/^/| /' conftest.$ac_ext >&5 1900 1901 ac_retval=1 1902fi 1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1905 # interfere with the next link command; also delete a directory that is 1906 # left behind by Apple's compiler. We do this before executing the actions. 1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1909 return $ac_retval 1910 1911} # ac_fn_c_try_link 1912 1913# ac_fn_c_check_func LINENO FUNC VAR 1914# ---------------------------------- 1915# Tests whether FUNC exists, setting the cache variable VAR accordingly 1916ac_fn_c_check_func () 1917{ 1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1920$as_echo_n "checking for $2... " >&6; } 1921if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1922 $as_echo_n "(cached) " >&6 1923else 1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1927 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1928#define $2 innocuous_$2 1929 1930/* System header to define __stub macros and hopefully few prototypes, 1931 which can conflict with char $2 (); below. 1932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1933 <limits.h> exists even on freestanding compilers. */ 1934 1935#ifdef __STDC__ 1936# include <limits.h> 1937#else 1938# include <assert.h> 1939#endif 1940 1941#undef $2 1942 1943/* Override any GCC internal prototype to avoid an error. 1944 Use char because int might match the return type of a GCC 1945 builtin and then its argument prototype would still apply. */ 1946#ifdef __cplusplus 1947extern "C" 1948#endif 1949char $2 (); 1950/* The GNU C library defines this for functions which it implements 1951 to always fail with ENOSYS. Some functions are actually named 1952 something starting with __ and the normal name is an alias. */ 1953#if defined __stub_$2 || defined __stub___$2 1954choke me 1955#endif 1956 1957int 1958main () 1959{ 1960return $2 (); 1961 ; 1962 return 0; 1963} 1964_ACEOF 1965if ac_fn_c_try_link "$LINENO"; then : 1966 eval "$3=yes" 1967else 1968 eval "$3=no" 1969fi 1970rm -f core conftest.err conftest.$ac_objext \ 1971 conftest$ac_exeext conftest.$ac_ext 1972fi 1973eval ac_res=\$$3 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975$as_echo "$ac_res" >&6; } 1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1977 1978} # ac_fn_c_check_func 1979 1980# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1981# ------------------------------------------- 1982# Tests whether TYPE exists after having included INCLUDES, setting cache 1983# variable VAR accordingly. 1984ac_fn_c_check_type () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1988$as_echo_n "checking for $2... " >&6; } 1989if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1990 $as_echo_n "(cached) " >&6 1991else 1992 eval "$3=no" 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994/* end confdefs.h. */ 1995$4 1996int 1997main () 1998{ 1999if (sizeof ($2)) 2000 return 0; 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_compile "$LINENO"; then : 2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007/* end confdefs.h. */ 2008$4 2009int 2010main () 2011{ 2012if (sizeof (($2))) 2013 return 0; 2014 ; 2015 return 0; 2016} 2017_ACEOF 2018if ac_fn_c_try_compile "$LINENO"; then : 2019 2020else 2021 eval "$3=yes" 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026fi 2027eval ac_res=\$$3 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2029$as_echo "$ac_res" >&6; } 2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2031 2032} # ac_fn_c_check_type 2033 2034# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2035# ---------------------------------------------------- 2036# Tries to find if the field MEMBER exists in type AGGR, after including 2037# INCLUDES, setting cache variable VAR accordingly. 2038ac_fn_c_check_member () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2042$as_echo_n "checking for $2.$3... " >&6; } 2043if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$5 2049int 2050main () 2051{ 2052static $2 ac_aggr; 2053if (ac_aggr.$3) 2054return 0; 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO"; then : 2060 eval "$4=yes" 2061else 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$5 2065int 2066main () 2067{ 2068static $2 ac_aggr; 2069if (sizeof ac_aggr.$3) 2070return 0; 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 eval "$4=yes" 2077else 2078 eval "$4=no" 2079fi 2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083fi 2084eval ac_res=\$$4 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2086$as_echo "$ac_res" >&6; } 2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2088 2089} # ac_fn_c_check_member 2090 2091# ac_fn_c_check_decl LINENO SYMBOL VAR 2092# ------------------------------------ 2093# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2094ac_fn_c_check_decl () 2095{ 2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2098$as_echo_n "checking whether $2 is declared... " >&6; } 2099if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2100 $as_echo_n "(cached) " >&6 2101else 2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2103/* end confdefs.h. */ 2104$4 2105int 2106main () 2107{ 2108#ifndef $2 2109 (void) $2; 2110#endif 2111 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116if ac_fn_c_try_compile "$LINENO"; then : 2117 eval "$3=yes" 2118else 2119 eval "$3=no" 2120fi 2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2122fi 2123eval ac_res=\$$3 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2125$as_echo "$ac_res" >&6; } 2126 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2127 2128} # ac_fn_c_check_decl 2129 2130# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2131# -------------------------------------------- 2132# Tries to find the compile-time value of EXPR in a program that includes 2133# INCLUDES, setting VAR accordingly. Returns whether the value could be 2134# computed 2135ac_fn_c_compute_int () 2136{ 2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2138 if test "$cross_compiling" = yes; then 2139 # Depending upon the size, compute the lo and hi bounds. 2140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2141/* end confdefs.h. */ 2142$4 2143int 2144main () 2145{ 2146static int test_array [1 - 2 * !(($2) >= 0)]; 2147test_array [0] = 0 2148 2149 ; 2150 return 0; 2151} 2152_ACEOF 2153if ac_fn_c_try_compile "$LINENO"; then : 2154 ac_lo=0 ac_mid=0 2155 while :; do 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159int 2160main () 2161{ 2162static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2163test_array [0] = 0 2164 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 ac_hi=$ac_mid; break 2171else 2172 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2173 if test $ac_lo -le $ac_mid; then 2174 ac_lo= ac_hi= 2175 break 2176 fi 2177 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2178fi 2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2180 done 2181else 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2183/* end confdefs.h. */ 2184$4 2185int 2186main () 2187{ 2188static int test_array [1 - 2 * !(($2) < 0)]; 2189test_array [0] = 0 2190 2191 ; 2192 return 0; 2193} 2194_ACEOF 2195if ac_fn_c_try_compile "$LINENO"; then : 2196 ac_hi=-1 ac_mid=-1 2197 while :; do 2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2199/* end confdefs.h. */ 2200$4 2201int 2202main () 2203{ 2204static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2205test_array [0] = 0 2206 2207 ; 2208 return 0; 2209} 2210_ACEOF 2211if ac_fn_c_try_compile "$LINENO"; then : 2212 ac_lo=$ac_mid; break 2213else 2214 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2215 if test $ac_mid -le $ac_hi; then 2216 ac_lo= ac_hi= 2217 break 2218 fi 2219 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2220fi 2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2222 done 2223else 2224 ac_lo= ac_hi= 2225fi 2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2227fi 2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2229# Binary search between lo and hi bounds. 2230while test "x$ac_lo" != "x$ac_hi"; do 2231 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2233/* end confdefs.h. */ 2234$4 2235int 2236main () 2237{ 2238static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2239test_array [0] = 0 2240 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_c_try_compile "$LINENO"; then : 2246 ac_hi=$ac_mid 2247else 2248 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2249fi 2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2251done 2252case $ac_lo in #(( 2253?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2254'') ac_retval=1 ;; 2255esac 2256 else 2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2258/* end confdefs.h. */ 2259$4 2260static long int longval () { return $2; } 2261static unsigned long int ulongval () { return $2; } 2262#include <stdio.h> 2263#include <stdlib.h> 2264int 2265main () 2266{ 2267 2268 FILE *f = fopen ("conftest.val", "w"); 2269 if (! f) 2270 return 1; 2271 if (($2) < 0) 2272 { 2273 long int i = longval (); 2274 if (i != ($2)) 2275 return 1; 2276 fprintf (f, "%ld", i); 2277 } 2278 else 2279 { 2280 unsigned long int i = ulongval (); 2281 if (i != ($2)) 2282 return 1; 2283 fprintf (f, "%lu", i); 2284 } 2285 /* Do not output a trailing newline, as this causes \r\n confusion 2286 on some platforms. */ 2287 return ferror (f) || fclose (f) != 0; 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_run "$LINENO"; then : 2294 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2295else 2296 ac_retval=1 2297fi 2298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2299 conftest.$ac_objext conftest.beam conftest.$ac_ext 2300rm -f conftest.val 2301 2302 fi 2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2304 return $ac_retval 2305 2306} # ac_fn_c_compute_int 2307cat >config.log <<_ACEOF 2308This file contains any messages produced by compilers while 2309running configure, to aid debugging if configure makes a mistake. 2310 2311It was created by file $as_me 5.11, which was 2312generated by GNU Autoconf 2.68. Invocation command line was 2313 2314 $ $0 $@ 2315 2316_ACEOF 2317exec 5>>config.log 2318{ 2319cat <<_ASUNAME 2320## --------- ## 2321## Platform. ## 2322## --------- ## 2323 2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2325uname -m = `(uname -m) 2>/dev/null || echo unknown` 2326uname -r = `(uname -r) 2>/dev/null || echo unknown` 2327uname -s = `(uname -s) 2>/dev/null || echo unknown` 2328uname -v = `(uname -v) 2>/dev/null || echo unknown` 2329 2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2331/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2332 2333/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2334/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2336/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2337/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2338/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2339/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2340 2341_ASUNAME 2342 2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2344for as_dir in $PATH 2345do 2346 IFS=$as_save_IFS 2347 test -z "$as_dir" && as_dir=. 2348 $as_echo "PATH: $as_dir" 2349 done 2350IFS=$as_save_IFS 2351 2352} >&5 2353 2354cat >&5 <<_ACEOF 2355 2356 2357## ----------- ## 2358## Core tests. ## 2359## ----------- ## 2360 2361_ACEOF 2362 2363 2364# Keep a trace of the command line. 2365# Strip out --no-create and --no-recursion so they do not pile up. 2366# Strip out --silent because we don't want to record it for future runs. 2367# Also quote any args containing shell meta-characters. 2368# Make two passes to allow for proper duplicate-argument suppression. 2369ac_configure_args= 2370ac_configure_args0= 2371ac_configure_args1= 2372ac_must_keep_next=false 2373for ac_pass in 1 2 2374do 2375 for ac_arg 2376 do 2377 case $ac_arg in 2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2380 | -silent | --silent | --silen | --sile | --sil) 2381 continue ;; 2382 *\'*) 2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2384 esac 2385 case $ac_pass in 2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2387 2) 2388 as_fn_append ac_configure_args1 " '$ac_arg'" 2389 if test $ac_must_keep_next = true; then 2390 ac_must_keep_next=false # Got value, back to normal. 2391 else 2392 case $ac_arg in 2393 *=* | --config-cache | -C | -disable-* | --disable-* \ 2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2396 | -with-* | --with-* | -without-* | --without-* | --x) 2397 case "$ac_configure_args0 " in 2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2399 esac 2400 ;; 2401 -* ) ac_must_keep_next=true ;; 2402 esac 2403 fi 2404 as_fn_append ac_configure_args " '$ac_arg'" 2405 ;; 2406 esac 2407 done 2408done 2409{ ac_configure_args0=; unset ac_configure_args0;} 2410{ ac_configure_args1=; unset ac_configure_args1;} 2411 2412# When interrupted or exit'd, cleanup temporary files, and complete 2413# config.log. We remove comments because anyway the quotes in there 2414# would cause problems or look ugly. 2415# WARNING: Use '\'' to represent an apostrophe within the trap. 2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2417trap 'exit_status=$? 2418 # Save into config.log some information that might help in debugging. 2419 { 2420 echo 2421 2422 cat <<\_ASBOX 2423## ---------------- ## 2424## Cache variables. ## 2425## ---------------- ## 2426_ASBOX 2427 echo 2428 # The following way of writing the cache mishandles newlines in values, 2429( 2430 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2431 eval ac_val=\$$ac_var 2432 case $ac_val in #( 2433 *${as_nl}*) 2434 case $ac_var in #( 2435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2437 esac 2438 case $ac_var in #( 2439 _ | IFS | as_nl) ;; #( 2440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2441 *) { eval $ac_var=; unset $ac_var;} ;; 2442 esac ;; 2443 esac 2444 done 2445 (set) 2>&1 | 2446 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2447 *${as_nl}ac_space=\ *) 2448 sed -n \ 2449 "s/'\''/'\''\\\\'\'''\''/g; 2450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2451 ;; #( 2452 *) 2453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2454 ;; 2455 esac | 2456 sort 2457) 2458 echo 2459 2460 cat <<\_ASBOX 2461## ----------------- ## 2462## Output variables. ## 2463## ----------------- ## 2464_ASBOX 2465 echo 2466 for ac_var in $ac_subst_vars 2467 do 2468 eval ac_val=\$$ac_var 2469 case $ac_val in 2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2471 esac 2472 $as_echo "$ac_var='\''$ac_val'\''" 2473 done | sort 2474 echo 2475 2476 if test -n "$ac_subst_files"; then 2477 cat <<\_ASBOX 2478## ------------------- ## 2479## File substitutions. ## 2480## ------------------- ## 2481_ASBOX 2482 echo 2483 for ac_var in $ac_subst_files 2484 do 2485 eval ac_val=\$$ac_var 2486 case $ac_val in 2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2488 esac 2489 $as_echo "$ac_var='\''$ac_val'\''" 2490 done | sort 2491 echo 2492 fi 2493 2494 if test -s confdefs.h; then 2495 cat <<\_ASBOX 2496## ----------- ## 2497## confdefs.h. ## 2498## ----------- ## 2499_ASBOX 2500 echo 2501 cat confdefs.h 2502 echo 2503 fi 2504 test "$ac_signal" != 0 && 2505 $as_echo "$as_me: caught signal $ac_signal" 2506 $as_echo "$as_me: exit $exit_status" 2507 } >&5 2508 rm -f core *.core core.conftest.* && 2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2510 exit $exit_status 2511' 0 2512for ac_signal in 1 2 13 15; do 2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2514done 2515ac_signal=0 2516 2517# confdefs.h avoids OS command line length limits that DEFS can exceed. 2518rm -f -r conftest* confdefs.h 2519 2520$as_echo "/* confdefs.h */" > confdefs.h 2521 2522# Predefined preprocessor variables. 2523 2524cat >>confdefs.h <<_ACEOF 2525#define PACKAGE_NAME "$PACKAGE_NAME" 2526_ACEOF 2527 2528cat >>confdefs.h <<_ACEOF 2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2530_ACEOF 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_VERSION "$PACKAGE_VERSION" 2534_ACEOF 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE_STRING "$PACKAGE_STRING" 2538_ACEOF 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2542_ACEOF 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_URL "$PACKAGE_URL" 2546_ACEOF 2547 2548 2549# Let the site file select an alternate cache file if it wants to. 2550# Prefer an explicitly selected file to automatically selected ones. 2551ac_site_file1=NONE 2552ac_site_file2=NONE 2553if test -n "$CONFIG_SITE"; then 2554 ac_site_file1=$CONFIG_SITE 2555elif test "x$prefix" != xNONE; then 2556 ac_site_file1=$prefix/share/config.site 2557 ac_site_file2=$prefix/etc/config.site 2558else 2559 ac_site_file1=$ac_default_prefix/share/config.site 2560 ac_site_file2=$ac_default_prefix/etc/config.site 2561fi 2562for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2563do 2564 test "x$ac_site_file" = xNONE && continue 2565 if test -r "$ac_site_file"; then 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2567$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2568 sed 's/^/| /' "$ac_site_file" >&5 2569 . "$ac_site_file" 2570 fi 2571done 2572 2573if test -r "$cache_file"; then 2574 # Some versions of bash will fail to source /dev/null (special 2575 # files actually), so we avoid doing that. 2576 if test -f "$cache_file"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2578$as_echo "$as_me: loading cache $cache_file" >&6;} 2579 case $cache_file in 2580 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2581 *) . "./$cache_file";; 2582 esac 2583 fi 2584else 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2586$as_echo "$as_me: creating cache $cache_file" >&6;} 2587 >$cache_file 2588fi 2589 2590# Check that the precious variables saved in the cache have kept the same 2591# value. 2592ac_cache_corrupted=false 2593for ac_var in $ac_precious_vars; do 2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2595 eval ac_new_set=\$ac_env_${ac_var}_set 2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2597 eval ac_new_val=\$ac_env_${ac_var}_value 2598 case $ac_old_set,$ac_new_set in 2599 set,) 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2601$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2602 ac_cache_corrupted=: ;; 2603 ,set) 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2605$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2606 ac_cache_corrupted=: ;; 2607 ,);; 2608 *) 2609 if test "x$ac_old_val" != "x$ac_new_val"; then 2610 # differences in whitespace do not lead to failure. 2611 ac_old_val_w=`echo x $ac_old_val` 2612 ac_new_val_w=`echo x $ac_new_val` 2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2615$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2616 ac_cache_corrupted=: 2617 else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2619$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2620 eval $ac_var=\$ac_old_val 2621 fi 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2623$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2625$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2626 fi;; 2627 esac 2628 # Pass precious variables to config.status. 2629 if test "$ac_new_set" = set; then 2630 case $ac_new_val in 2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2632 *) ac_arg=$ac_var=$ac_new_val ;; 2633 esac 2634 case " $ac_configure_args " in 2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2637 esac 2638 fi 2639done 2640if $ac_cache_corrupted; then 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2644$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2645 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2646fi 2647## -------------------- ## 2648## Main body of script. ## 2649## -------------------- ## 2650 2651ac_ext=c 2652ac_cpp='$CPP $CPPFLAGS' 2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2655ac_compiler_gnu=$ac_cv_c_compiler_gnu 2656 2657 2658am__api_version='1.11' 2659 2660ac_aux_dir= 2661for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2662 for ac_t in install-sh install.sh shtool; do 2663 if test -f "$ac_dir/$ac_t"; then 2664 ac_aux_dir=$ac_dir 2665 ac_install_sh="$ac_aux_dir/$ac_t -c" 2666 break 2 2667 fi 2668 done 2669done 2670if test -z "$ac_aux_dir"; then 2671 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2672fi 2673 2674# These three variables are undocumented and unsupported, 2675# and are intended to be withdrawn in a future Autoconf release. 2676# They can cause serious problems if a builder's source tree is in a directory 2677# whose full name contains unusual characters. 2678ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2679ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2680ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2681 2682 2683# Find a good install program. We prefer a C program (faster), 2684# so one script is as good as another. But avoid the broken or 2685# incompatible versions: 2686# SysV /etc/install, /usr/sbin/install 2687# SunOS /usr/etc/install 2688# IRIX /sbin/install 2689# AIX /bin/install 2690# AmigaOS /C/install, which installs bootblocks on floppy discs 2691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2692# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2694# OS/2's system install, which has a completely different semantic 2695# ./install, which can be erroneously created by make from ./install.sh. 2696# Reject install programs that cannot install multiple files. 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2698$as_echo_n "checking for a BSD-compatible install... " >&6; } 2699if test -z "$INSTALL"; then 2700if test "${ac_cv_path_install+set}" = set; then : 2701 $as_echo_n "(cached) " >&6 2702else 2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2704for as_dir in $PATH 2705do 2706 IFS=$as_save_IFS 2707 test -z "$as_dir" && as_dir=. 2708 # Account for people who put trailing slashes in PATH elements. 2709case $as_dir/ in #(( 2710 ./ | .// | /[cC]/* | \ 2711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2712 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2713 /usr/ucb/* ) ;; 2714 *) 2715 # OSF1 and SCO ODT 3.0 have their own names for install. 2716 # Don't use installbsd from OSF since it installs stuff as root 2717 # by default. 2718 for ac_prog in ginstall scoinst install; do 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2721 if test $ac_prog = install && 2722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2723 # AIX install. It has an incompatible calling convention. 2724 : 2725 elif test $ac_prog = install && 2726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2727 # program-specific install script used by HP pwplus--don't use. 2728 : 2729 else 2730 rm -rf conftest.one conftest.two conftest.dir 2731 echo one > conftest.one 2732 echo two > conftest.two 2733 mkdir conftest.dir 2734 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2735 test -s conftest.one && test -s conftest.two && 2736 test -s conftest.dir/conftest.one && 2737 test -s conftest.dir/conftest.two 2738 then 2739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2740 break 3 2741 fi 2742 fi 2743 fi 2744 done 2745 done 2746 ;; 2747esac 2748 2749 done 2750IFS=$as_save_IFS 2751 2752rm -rf conftest.one conftest.two conftest.dir 2753 2754fi 2755 if test "${ac_cv_path_install+set}" = set; then 2756 INSTALL=$ac_cv_path_install 2757 else 2758 # As a last resort, use the slow shell script. Don't cache a 2759 # value for INSTALL within a source directory, because that will 2760 # break other packages using the cache if that directory is 2761 # removed, or if the value is a relative name. 2762 INSTALL=$ac_install_sh 2763 fi 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2766$as_echo "$INSTALL" >&6; } 2767 2768# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2769# It thinks the first close brace ends the variable substitution. 2770test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2771 2772test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2773 2774test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2775 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2777$as_echo_n "checking whether build environment is sane... " >&6; } 2778# Just in case 2779sleep 1 2780echo timestamp > conftest.file 2781# Reject unsafe characters in $srcdir or the absolute working directory 2782# name. Accept space and tab only in the latter. 2783am_lf=' 2784' 2785case `pwd` in 2786 *[\\\"\#\$\&\'\`$am_lf]*) 2787 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2788esac 2789case $srcdir in 2790 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2791 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2792esac 2793 2794# Do `set' in a subshell so we don't clobber the current shell's 2795# arguments. Must try -L first in case configure is actually a 2796# symlink; some systems play weird games with the mod time of symlinks 2797# (eg FreeBSD returns the mod time of the symlink's containing 2798# directory). 2799if ( 2800 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2801 if test "$*" = "X"; then 2802 # -L didn't work. 2803 set X `ls -t "$srcdir/configure" conftest.file` 2804 fi 2805 rm -f conftest.file 2806 if test "$*" != "X $srcdir/configure conftest.file" \ 2807 && test "$*" != "X conftest.file $srcdir/configure"; then 2808 2809 # If neither matched, then we have a broken ls. This can happen 2810 # if, for instance, CONFIG_SHELL is bash and it inherits a 2811 # broken ls alias from the environment. This has actually 2812 # happened. Such a system could not be considered "sane". 2813 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2814alias in your environment" "$LINENO" 5 2815 fi 2816 2817 test "$2" = conftest.file 2818 ) 2819then 2820 # Ok. 2821 : 2822else 2823 as_fn_error "newly created file is older than distributed files! 2824Check your system clock" "$LINENO" 5 2825fi 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2827$as_echo "yes" >&6; } 2828test "$program_prefix" != NONE && 2829 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2830# Use a double $ so make ignores it. 2831test "$program_suffix" != NONE && 2832 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2833# Double any \ or $. 2834# By default was `s,x,x', remove it if useless. 2835ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2836program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2837 2838# expand $ac_aux_dir to an absolute path 2839am_aux_dir=`cd $ac_aux_dir && pwd` 2840 2841if test x"${MISSING+set}" != xset; then 2842 case $am_aux_dir in 2843 *\ * | *\ *) 2844 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2845 *) 2846 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2847 esac 2848fi 2849# Use eval to expand $SHELL 2850if eval "$MISSING --run true"; then 2851 am_missing_run="$MISSING --run " 2852else 2853 am_missing_run= 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2855$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2856fi 2857 2858if test x"${install_sh}" != xset; then 2859 case $am_aux_dir in 2860 *\ * | *\ *) 2861 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2862 *) 2863 install_sh="\${SHELL} $am_aux_dir/install-sh" 2864 esac 2865fi 2866 2867# Installed binaries are usually stripped using `strip' when the user 2868# run `make install-strip'. However `strip' might not be the right 2869# tool to use in cross-compilation environments, therefore Automake 2870# will honor the `STRIP' environment variable to overrule this program. 2871if test "$cross_compiling" != no; then 2872 if test -n "$ac_tool_prefix"; then 2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2874set dummy ${ac_tool_prefix}strip; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if test "${ac_cv_prog_STRIP+set}" = set; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$STRIP"; then 2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900STRIP=$ac_cv_prog_STRIP 2901if test -n "$STRIP"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2903$as_echo "$STRIP" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910fi 2911if test -z "$ac_cv_prog_STRIP"; then 2912 ac_ct_STRIP=$STRIP 2913 # Extract the first word of "strip", so it can be a program name with args. 2914set dummy strip; ac_word=$2 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916$as_echo_n "checking for $ac_word... " >&6; } 2917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test -n "$ac_ct_STRIP"; then 2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2930 ac_cv_prog_ac_ct_STRIP="strip" 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935 done 2936IFS=$as_save_IFS 2937 2938fi 2939fi 2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2941if test -n "$ac_ct_STRIP"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2943$as_echo "$ac_ct_STRIP" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 if test "x$ac_ct_STRIP" = x; then 2950 STRIP=":" 2951 else 2952 case $cross_compiling:$ac_tool_warned in 2953yes:) 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 STRIP=$ac_ct_STRIP 2959 fi 2960else 2961 STRIP="$ac_cv_prog_STRIP" 2962fi 2963 2964fi 2965INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2966 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2968$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2969if test -z "$MKDIR_P"; then 2970 if test "${ac_cv_path_mkdir+set}" = set; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_prog in mkdir gmkdir; do 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2980 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2981 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2982 'mkdir (GNU coreutils) '* | \ 2983 'mkdir (coreutils) '* | \ 2984 'mkdir (fileutils) '4.1*) 2985 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2986 break 3;; 2987 esac 2988 done 2989 done 2990 done 2991IFS=$as_save_IFS 2992 2993fi 2994 2995 if test "${ac_cv_path_mkdir+set}" = set; then 2996 MKDIR_P="$ac_cv_path_mkdir -p" 2997 else 2998 # As a last resort, use the slow shell script. Don't cache a 2999 # value for MKDIR_P within a source directory, because that will 3000 # break other packages using the cache if that directory is 3001 # removed, or if the value is a relative name. 3002 test -d ./--version && rmdir ./--version 3003 MKDIR_P="$ac_install_sh -d" 3004 fi 3005fi 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3007$as_echo "$MKDIR_P" >&6; } 3008 3009mkdir_p="$MKDIR_P" 3010case $mkdir_p in 3011 [\\/$]* | ?:[\\/]*) ;; 3012 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3013esac 3014 3015for ac_prog in gawk mawk nawk awk 3016do 3017 # Extract the first word of "$ac_prog", so it can be a program name with args. 3018set dummy $ac_prog; ac_word=$2 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020$as_echo_n "checking for $ac_word... " >&6; } 3021if test "${ac_cv_prog_AWK+set}" = set; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if test -n "$AWK"; then 3025 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3026else 3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3034 ac_cv_prog_AWK="$ac_prog" 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3036 break 2 3037 fi 3038done 3039 done 3040IFS=$as_save_IFS 3041 3042fi 3043fi 3044AWK=$ac_cv_prog_AWK 3045if test -n "$AWK"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3047$as_echo "$AWK" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054 test -n "$AWK" && break 3055done 3056 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3058$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3059set x ${MAKE-make} 3060ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3061if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 cat >conftest.make <<\_ACEOF 3065SHELL = /bin/sh 3066all: 3067 @echo '@@@%%%=$(MAKE)=@@@%%%' 3068_ACEOF 3069# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3070case `${MAKE-make} -f conftest.make 2>/dev/null` in 3071 *@@@%%%=?*=@@@%%%*) 3072 eval ac_cv_prog_make_${ac_make}_set=yes;; 3073 *) 3074 eval ac_cv_prog_make_${ac_make}_set=no;; 3075esac 3076rm -f conftest.make 3077fi 3078if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3080$as_echo "yes" >&6; } 3081 SET_MAKE= 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085 SET_MAKE="MAKE=${MAKE-make}" 3086fi 3087 3088rm -rf .tst 2>/dev/null 3089mkdir .tst 2>/dev/null 3090if test -d .tst; then 3091 am__leading_dot=. 3092else 3093 am__leading_dot=_ 3094fi 3095rmdir .tst 2>/dev/null 3096 3097if test "`cd $srcdir && pwd`" != "`pwd`"; then 3098 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3099 # is not polluted with repeated "-I." 3100 am__isrc=' -I$(srcdir)' 3101 # test to see if srcdir already configured 3102 if test -f $srcdir/config.status; then 3103 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3104 fi 3105fi 3106 3107# test whether we have cygpath 3108if test -z "$CYGPATH_W"; then 3109 if (cygpath --version) >/dev/null 2>/dev/null; then 3110 CYGPATH_W='cygpath -w' 3111 else 3112 CYGPATH_W=echo 3113 fi 3114fi 3115 3116 3117# Define the identity of the package. 3118 PACKAGE='file' 3119 VERSION='5.11' 3120 3121 3122cat >>confdefs.h <<_ACEOF 3123#define PACKAGE "$PACKAGE" 3124_ACEOF 3125 3126 3127cat >>confdefs.h <<_ACEOF 3128#define VERSION "$VERSION" 3129_ACEOF 3130 3131# Some tools Automake needs. 3132 3133ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3134 3135 3136AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3137 3138 3139AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3140 3141 3142AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3143 3144 3145MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3146 3147# We need awk for the "check" target. The system "awk" is bad on 3148# some platforms. 3149# Always define AMTAR for backward compatibility. 3150 3151AMTAR=${AMTAR-"${am_missing_run}tar"} 3152 3153am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3154 3155 3156 3157 3158 3159 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3161$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3162 # Check whether --enable-maintainer-mode was given. 3163if test "${enable_maintainer_mode+set}" = set; then : 3164 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3165else 3166 USE_MAINTAINER_MODE=no 3167fi 3168 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3170$as_echo "$USE_MAINTAINER_MODE" >&6; } 3171 if test $USE_MAINTAINER_MODE = yes; then 3172 MAINTAINER_MODE_TRUE= 3173 MAINTAINER_MODE_FALSE='#' 3174else 3175 MAINTAINER_MODE_TRUE='#' 3176 MAINTAINER_MODE_FALSE= 3177fi 3178 3179 MAINT=$MAINTAINER_MODE_TRUE 3180 3181 3182# Check whether --enable-silent-rules was given. 3183if test "${enable_silent_rules+set}" = set; then : 3184 enableval=$enable_silent_rules; 3185fi 3186 3187case $enable_silent_rules in 3188yes) AM_DEFAULT_VERBOSITY=0;; 3189no) AM_DEFAULT_VERBOSITY=1;; 3190*) AM_DEFAULT_VERBOSITY=0;; 3191esac 3192AM_BACKSLASH='\' 3193 3194 3195ac_config_headers="$ac_config_headers config.h" 3196 3197 3198 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3200$as_echo_n "checking for builtin ELF support... " >&6; } 3201# Check whether --enable-elf was given. 3202if test "${enable_elf+set}" = set; then : 3203 enableval=$enable_elf; if test "${enableval}" = yes; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3205$as_echo "yes" >&6; } 3206 3207$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3208 3209else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211$as_echo "no" >&6; } 3212fi 3213else 3214 3215 # enable by default 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3217$as_echo "yes" >&6; } 3218 3219$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3220 3221 3222fi 3223 3224 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3226$as_echo_n "checking for ELF core file support... " >&6; } 3227# Check whether --enable-elf-core was given. 3228if test "${enable_elf_core+set}" = set; then : 3229 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3231$as_echo "yes" >&6; } 3232 3233$as_echo "#define ELFCORE 1" >>confdefs.h 3234 3235else 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237$as_echo "no" >&6; } 3238fi 3239else 3240 3241 # enable by default 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3243$as_echo "yes" >&6; } 3244 3245$as_echo "#define ELFCORE 1" >>confdefs.h 3246 3247 3248fi 3249 3250 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3252$as_echo_n "checking for file formats in man section 5... " >&6; } 3253# Check whether --enable-fsect-man5 was given. 3254if test "${enable_fsect_man5+set}" = set; then : 3255 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3257$as_echo "yes" >&6; } 3258 fsect=5 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262 fsect=4 3263fi 3264else 3265 3266 # disable by default 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269 fsect=4 3270 3271fi 3272 3273 3274# Make sure we can run config.sub. 3275$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3276 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3277 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3279$as_echo_n "checking build system type... " >&6; } 3280if test "${ac_cv_build+set}" = set; then : 3281 $as_echo_n "(cached) " >&6 3282else 3283 ac_build_alias=$build_alias 3284test "x$ac_build_alias" = x && 3285 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3286test "x$ac_build_alias" = x && 3287 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3288ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3289 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3290 3291fi 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3293$as_echo "$ac_cv_build" >&6; } 3294case $ac_cv_build in 3295*-*-*) ;; 3296*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3297esac 3298build=$ac_cv_build 3299ac_save_IFS=$IFS; IFS='-' 3300set x $ac_cv_build 3301shift 3302build_cpu=$1 3303build_vendor=$2 3304shift; shift 3305# Remember, the first character of IFS is used to create $*, 3306# except with old shells: 3307build_os=$* 3308IFS=$ac_save_IFS 3309case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3310 3311 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3313$as_echo_n "checking host system type... " >&6; } 3314if test "${ac_cv_host+set}" = set; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 if test "x$host_alias" = x; then 3318 ac_cv_host=$ac_cv_build 3319else 3320 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3321 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3322fi 3323 3324fi 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3326$as_echo "$ac_cv_host" >&6; } 3327case $ac_cv_host in 3328*-*-*) ;; 3329*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3330esac 3331host=$ac_cv_host 3332ac_save_IFS=$IFS; IFS='-' 3333set x $ac_cv_host 3334shift 3335host_cpu=$1 3336host_vendor=$2 3337shift; shift 3338# Remember, the first character of IFS is used to create $*, 3339# except with old shells: 3340host_os=$* 3341IFS=$ac_save_IFS 3342case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3343 3344 3345case "$host_os" in 3346 mingw32*) 3347 MINGW=1 3348 ;; 3349 *) 3350 MINGW=0 3351 ;; 3352esac 3353 3354 if test "$MINGW" = 1; then 3355 MINGW_TRUE= 3356 MINGW_FALSE='#' 3357else 3358 MINGW_TRUE='#' 3359 MINGW_FALSE= 3360fi 3361 3362 3363pkgdatadir='$(datadir)/misc' 3364 3365 3366 if test x$fsect = x5; then 3367 FSECT5_TRUE= 3368 FSECT5_FALSE='#' 3369else 3370 FSECT5_TRUE='#' 3371 FSECT5_FALSE= 3372fi 3373 3374 3375 3376DEPDIR="${am__leading_dot}deps" 3377 3378ac_config_commands="$ac_config_commands depfiles" 3379 3380 3381am_make=${MAKE-make} 3382cat > confinc << 'END' 3383am__doit: 3384 @echo this is the am__doit target 3385.PHONY: am__doit 3386END 3387# If we don't find an include directive, just comment out the code. 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3389$as_echo_n "checking for style of include used by $am_make... " >&6; } 3390am__include="#" 3391am__quote= 3392_am_result=none 3393# First try GNU make style include. 3394echo "include confinc" > confmf 3395# Ignore all kinds of additional output from `make'. 3396case `$am_make -s -f confmf 2> /dev/null` in #( 3397*the\ am__doit\ target*) 3398 am__include=include 3399 am__quote= 3400 _am_result=GNU 3401 ;; 3402esac 3403# Now try BSD make style include. 3404if test "$am__include" = "#"; then 3405 echo '.include "confinc"' > confmf 3406 case `$am_make -s -f confmf 2> /dev/null` in #( 3407 *the\ am__doit\ target*) 3408 am__include=.include 3409 am__quote="\"" 3410 _am_result=BSD 3411 ;; 3412 esac 3413fi 3414 3415 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3417$as_echo "$_am_result" >&6; } 3418rm -f confinc confmf 3419 3420# Check whether --enable-dependency-tracking was given. 3421if test "${enable_dependency_tracking+set}" = set; then : 3422 enableval=$enable_dependency_tracking; 3423fi 3424 3425if test "x$enable_dependency_tracking" != xno; then 3426 am_depcomp="$ac_aux_dir/depcomp" 3427 AMDEPBACKSLASH='\' 3428fi 3429 if test "x$enable_dependency_tracking" != xno; then 3430 AMDEP_TRUE= 3431 AMDEP_FALSE='#' 3432else 3433 AMDEP_TRUE='#' 3434 AMDEP_FALSE= 3435fi 3436 3437 3438ac_ext=c 3439ac_cpp='$CPP $CPPFLAGS' 3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3442ac_compiler_gnu=$ac_cv_c_compiler_gnu 3443if test -n "$ac_tool_prefix"; then 3444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3445set dummy ${ac_tool_prefix}gcc; ac_word=$2 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3447$as_echo_n "checking for $ac_word... " >&6; } 3448if test "${ac_cv_prog_CC+set}" = set; then : 3449 $as_echo_n "(cached) " >&6 3450else 3451 if test -n "$CC"; then 3452 ac_cv_prog_CC="$CC" # Let the user override the test. 3453else 3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3455for as_dir in $PATH 3456do 3457 IFS=$as_save_IFS 3458 test -z "$as_dir" && as_dir=. 3459 for ac_exec_ext in '' $ac_executable_extensions; do 3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3461 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3463 break 2 3464 fi 3465done 3466 done 3467IFS=$as_save_IFS 3468 3469fi 3470fi 3471CC=$ac_cv_prog_CC 3472if test -n "$CC"; then 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3474$as_echo "$CC" >&6; } 3475else 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3477$as_echo "no" >&6; } 3478fi 3479 3480 3481fi 3482if test -z "$ac_cv_prog_CC"; then 3483 ac_ct_CC=$CC 3484 # Extract the first word of "gcc", so it can be a program name with args. 3485set dummy gcc; ac_word=$2 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3487$as_echo_n "checking for $ac_word... " >&6; } 3488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 if test -n "$ac_ct_CC"; then 3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 test -z "$as_dir" && as_dir=. 3499 for ac_exec_ext in '' $ac_executable_extensions; do 3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3501 ac_cv_prog_ac_ct_CC="gcc" 3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3503 break 2 3504 fi 3505done 3506 done 3507IFS=$as_save_IFS 3508 3509fi 3510fi 3511ac_ct_CC=$ac_cv_prog_ac_ct_CC 3512if test -n "$ac_ct_CC"; then 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3514$as_echo "$ac_ct_CC" >&6; } 3515else 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3517$as_echo "no" >&6; } 3518fi 3519 3520 if test "x$ac_ct_CC" = x; then 3521 CC="" 3522 else 3523 case $cross_compiling:$ac_tool_warned in 3524yes:) 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3527ac_tool_warned=yes ;; 3528esac 3529 CC=$ac_ct_CC 3530 fi 3531else 3532 CC="$ac_cv_prog_CC" 3533fi 3534 3535if test -z "$CC"; then 3536 if test -n "$ac_tool_prefix"; then 3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3538set dummy ${ac_tool_prefix}cc; ac_word=$2 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540$as_echo_n "checking for $ac_word... " >&6; } 3541if test "${ac_cv_prog_CC+set}" = set; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 if test -n "$CC"; then 3545 ac_cv_prog_CC="$CC" # Let the user override the test. 3546else 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 test -z "$as_dir" && as_dir=. 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3554 ac_cv_prog_CC="${ac_tool_prefix}cc" 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562fi 3563fi 3564CC=$ac_cv_prog_CC 3565if test -n "$CC"; then 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3567$as_echo "$CC" >&6; } 3568else 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570$as_echo "no" >&6; } 3571fi 3572 3573 3574 fi 3575fi 3576if test -z "$CC"; then 3577 # Extract the first word of "cc", so it can be a program name with args. 3578set dummy cc; ac_word=$2 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3580$as_echo_n "checking for $ac_word... " >&6; } 3581if test "${ac_cv_prog_CC+set}" = set; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 if test -n "$CC"; then 3585 ac_cv_prog_CC="$CC" # Let the user override the test. 3586else 3587 ac_prog_rejected=no 3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589for as_dir in $PATH 3590do 3591 IFS=$as_save_IFS 3592 test -z "$as_dir" && as_dir=. 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3596 ac_prog_rejected=yes 3597 continue 3598 fi 3599 ac_cv_prog_CC="cc" 3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3601 break 2 3602 fi 3603done 3604 done 3605IFS=$as_save_IFS 3606 3607if test $ac_prog_rejected = yes; then 3608 # We found a bogon in the path, so make sure we never use it. 3609 set dummy $ac_cv_prog_CC 3610 shift 3611 if test $# != 0; then 3612 # We chose a different compiler from the bogus one. 3613 # However, it has the same basename, so the bogon will be chosen 3614 # first if we set CC to just the basename; use the full file name. 3615 shift 3616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3617 fi 3618fi 3619fi 3620fi 3621CC=$ac_cv_prog_CC 3622if test -n "$CC"; then 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3624$as_echo "$CC" >&6; } 3625else 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3627$as_echo "no" >&6; } 3628fi 3629 3630 3631fi 3632if test -z "$CC"; then 3633 if test -n "$ac_tool_prefix"; then 3634 for ac_prog in cl.exe 3635 do 3636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3637set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3639$as_echo_n "checking for $ac_word... " >&6; } 3640if test "${ac_cv_prog_CC+set}" = set; then : 3641 $as_echo_n "(cached) " >&6 3642else 3643 if test -n "$CC"; then 3644 ac_cv_prog_CC="$CC" # Let the user override the test. 3645else 3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH 3648do 3649 IFS=$as_save_IFS 3650 test -z "$as_dir" && as_dir=. 3651 for ac_exec_ext in '' $ac_executable_extensions; do 3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3655 break 2 3656 fi 3657done 3658 done 3659IFS=$as_save_IFS 3660 3661fi 3662fi 3663CC=$ac_cv_prog_CC 3664if test -n "$CC"; then 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3666$as_echo "$CC" >&6; } 3667else 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3669$as_echo "no" >&6; } 3670fi 3671 3672 3673 test -n "$CC" && break 3674 done 3675fi 3676if test -z "$CC"; then 3677 ac_ct_CC=$CC 3678 for ac_prog in cl.exe 3679do 3680 # Extract the first word of "$ac_prog", so it can be a program name with args. 3681set dummy $ac_prog; ac_word=$2 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3683$as_echo_n "checking for $ac_word... " >&6; } 3684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3685 $as_echo_n "(cached) " >&6 3686else 3687 if test -n "$ac_ct_CC"; then 3688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3689else 3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691for as_dir in $PATH 3692do 3693 IFS=$as_save_IFS 3694 test -z "$as_dir" && as_dir=. 3695 for ac_exec_ext in '' $ac_executable_extensions; do 3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3697 ac_cv_prog_ac_ct_CC="$ac_prog" 3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3699 break 2 3700 fi 3701done 3702 done 3703IFS=$as_save_IFS 3704 3705fi 3706fi 3707ac_ct_CC=$ac_cv_prog_ac_ct_CC 3708if test -n "$ac_ct_CC"; then 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3710$as_echo "$ac_ct_CC" >&6; } 3711else 3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3713$as_echo "no" >&6; } 3714fi 3715 3716 3717 test -n "$ac_ct_CC" && break 3718done 3719 3720 if test "x$ac_ct_CC" = x; then 3721 CC="" 3722 else 3723 case $cross_compiling:$ac_tool_warned in 3724yes:) 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3727ac_tool_warned=yes ;; 3728esac 3729 CC=$ac_ct_CC 3730 fi 3731fi 3732 3733fi 3734 3735 3736test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3738as_fn_error "no acceptable C compiler found in \$PATH 3739See \`config.log' for more details." "$LINENO" 5; } 3740 3741# Provide some information about the compiler. 3742$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3743set X $ac_compile 3744ac_compiler=$2 3745for ac_option in --version -v -V -qversion; do 3746 { { ac_try="$ac_compiler $ac_option >&5" 3747case "(($ac_try" in 3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3749 *) ac_try_echo=$ac_try;; 3750esac 3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3752$as_echo "$ac_try_echo"; } >&5 3753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3754 ac_status=$? 3755 if test -s conftest.err; then 3756 sed '10a\ 3757... rest of stderr output deleted ... 3758 10q' conftest.err >conftest.er1 3759 cat conftest.er1 >&5 3760 rm -f conftest.er1 conftest.err 3761 fi 3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3763 test $ac_status = 0; } 3764done 3765 3766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767/* end confdefs.h. */ 3768#include <stdio.h> 3769int 3770main () 3771{ 3772FILE *f = fopen ("conftest.out", "w"); 3773 return ferror (f) || fclose (f) != 0; 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779ac_clean_files_save=$ac_clean_files 3780ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3781# Try to create an executable without -o first, disregard a.out. 3782# It will help us diagnose broken compilers, and finding out an intuition 3783# of exeext. 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3785$as_echo_n "checking for C compiler default output file name... " >&6; } 3786ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3787 3788# The possible output files: 3789ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3790 3791ac_rmfiles= 3792for ac_file in $ac_files 3793do 3794 case $ac_file in 3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3796 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3797 esac 3798done 3799rm -f $ac_rmfiles 3800 3801if { { ac_try="$ac_link_default" 3802case "(($ac_try" in 3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3804 *) ac_try_echo=$ac_try;; 3805esac 3806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3807$as_echo "$ac_try_echo"; } >&5 3808 (eval "$ac_link_default") 2>&5 3809 ac_status=$? 3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3811 test $ac_status = 0; }; then : 3812 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3813# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3814# in a Makefile. We should not override ac_cv_exeext if it was cached, 3815# so that the user can short-circuit this test for compilers unknown to 3816# Autoconf. 3817for ac_file in $ac_files '' 3818do 3819 test -f "$ac_file" || continue 3820 case $ac_file in 3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3822 ;; 3823 [ab].out ) 3824 # We found the default executable, but exeext='' is most 3825 # certainly right. 3826 break;; 3827 *.* ) 3828 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3829 then :; else 3830 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3831 fi 3832 # We set ac_cv_exeext here because the later test for it is not 3833 # safe: cross compilers may not add the suffix if given an `-o' 3834 # argument, so we may need to know it at that point already. 3835 # Even if this section looks crufty: it has the advantage of 3836 # actually working. 3837 break;; 3838 * ) 3839 break;; 3840 esac 3841done 3842test "$ac_cv_exeext" = no && ac_cv_exeext= 3843 3844else 3845 ac_file='' 3846fi 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3848$as_echo "$ac_file" >&6; } 3849if test -z "$ac_file"; then : 3850 $as_echo "$as_me: failed program was:" >&5 3851sed 's/^/| /' conftest.$ac_ext >&5 3852 3853{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3855{ as_fn_set_status 77 3856as_fn_error "C compiler cannot create executables 3857See \`config.log' for more details." "$LINENO" 5; }; } 3858fi 3859ac_exeext=$ac_cv_exeext 3860 3861# Check that the compiler produces executables we can run. If not, either 3862# the compiler is broken, or we cross compile. 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3864$as_echo_n "checking whether the C compiler works... " >&6; } 3865# If not cross compiling, check that we can run a simple program. 3866if test "$cross_compiling" != yes; then 3867 if { ac_try='./$ac_file' 3868 { { case "(($ac_try" in 3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3870 *) ac_try_echo=$ac_try;; 3871esac 3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3873$as_echo "$ac_try_echo"; } >&5 3874 (eval "$ac_try") 2>&5 3875 ac_status=$? 3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3877 test $ac_status = 0; }; }; then 3878 cross_compiling=no 3879 else 3880 if test "$cross_compiling" = maybe; then 3881 cross_compiling=yes 3882 else 3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3885as_fn_error "cannot run C compiled programs. 3886If you meant to cross compile, use \`--host'. 3887See \`config.log' for more details." "$LINENO" 5; } 3888 fi 3889 fi 3890fi 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3892$as_echo "yes" >&6; } 3893 3894rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3895ac_clean_files=$ac_clean_files_save 3896# Check that the compiler produces executables we can run. If not, either 3897# the compiler is broken, or we cross compile. 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3899$as_echo_n "checking whether we are cross compiling... " >&6; } 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3901$as_echo "$cross_compiling" >&6; } 3902 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3904$as_echo_n "checking for suffix of executables... " >&6; } 3905if { { ac_try="$ac_link" 3906case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3911$as_echo "$ac_try_echo"; } >&5 3912 (eval "$ac_link") 2>&5 3913 ac_status=$? 3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3915 test $ac_status = 0; }; then : 3916 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3917# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3918# work properly (i.e., refer to `conftest.exe'), while it won't with 3919# `rm'. 3920for ac_file in conftest.exe conftest conftest.*; do 3921 test -f "$ac_file" || continue 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3925 break;; 3926 * ) break;; 3927 esac 3928done 3929else 3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3932as_fn_error "cannot compute suffix of executables: cannot compile and link 3933See \`config.log' for more details." "$LINENO" 5; } 3934fi 3935rm -f conftest$ac_cv_exeext 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3937$as_echo "$ac_cv_exeext" >&6; } 3938 3939rm -f conftest.$ac_ext 3940EXEEXT=$ac_cv_exeext 3941ac_exeext=$EXEEXT 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3943$as_echo_n "checking for suffix of object files... " >&6; } 3944if test "${ac_cv_objext+set}" = set; then : 3945 $as_echo_n "(cached) " >&6 3946else 3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3948/* end confdefs.h. */ 3949 3950int 3951main () 3952{ 3953 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958rm -f conftest.o conftest.obj 3959if { { ac_try="$ac_compile" 3960case "(($ac_try" in 3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3962 *) ac_try_echo=$ac_try;; 3963esac 3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3965$as_echo "$ac_try_echo"; } >&5 3966 (eval "$ac_compile") 2>&5 3967 ac_status=$? 3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3969 test $ac_status = 0; }; then : 3970 for ac_file in conftest.o conftest.obj conftest.*; do 3971 test -f "$ac_file" || continue; 3972 case $ac_file in 3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3975 break;; 3976 esac 3977done 3978else 3979 $as_echo "$as_me: failed program was:" >&5 3980sed 's/^/| /' conftest.$ac_ext >&5 3981 3982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3984as_fn_error "cannot compute suffix of object files: cannot compile 3985See \`config.log' for more details." "$LINENO" 5; } 3986fi 3987rm -f conftest.$ac_cv_objext conftest.$ac_ext 3988fi 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3990$as_echo "$ac_cv_objext" >&6; } 3991OBJEXT=$ac_cv_objext 3992ac_objext=$OBJEXT 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3994$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3995if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3996 $as_echo_n "(cached) " >&6 3997else 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001int 4002main () 4003{ 4004#ifndef __GNUC__ 4005 choke me 4006#endif 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012if ac_fn_c_try_compile "$LINENO"; then : 4013 ac_compiler_gnu=yes 4014else 4015 ac_compiler_gnu=no 4016fi 4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4018ac_cv_c_compiler_gnu=$ac_compiler_gnu 4019 4020fi 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4022$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4023if test $ac_compiler_gnu = yes; then 4024 GCC=yes 4025else 4026 GCC= 4027fi 4028ac_test_CFLAGS=${CFLAGS+set} 4029ac_save_CFLAGS=$CFLAGS 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4031$as_echo_n "checking whether $CC accepts -g... " >&6; } 4032if test "${ac_cv_prog_cc_g+set}" = set; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 ac_save_c_werror_flag=$ac_c_werror_flag 4036 ac_c_werror_flag=yes 4037 ac_cv_prog_cc_g=no 4038 CFLAGS="-g" 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041 4042int 4043main () 4044{ 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050if ac_fn_c_try_compile "$LINENO"; then : 4051 ac_cv_prog_cc_g=yes 4052else 4053 CFLAGS="" 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main () 4059{ 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065if ac_fn_c_try_compile "$LINENO"; then : 4066 4067else 4068 ac_c_werror_flag=$ac_save_c_werror_flag 4069 CFLAGS="-g" 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072 4073int 4074main () 4075{ 4076 4077 ; 4078 return 0; 4079} 4080_ACEOF 4081if ac_fn_c_try_compile "$LINENO"; then : 4082 ac_cv_prog_cc_g=yes 4083fi 4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4085fi 4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4087fi 4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4089 ac_c_werror_flag=$ac_save_c_werror_flag 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4092$as_echo "$ac_cv_prog_cc_g" >&6; } 4093if test "$ac_test_CFLAGS" = set; then 4094 CFLAGS=$ac_save_CFLAGS 4095elif test $ac_cv_prog_cc_g = yes; then 4096 if test "$GCC" = yes; then 4097 CFLAGS="-g -O2" 4098 else 4099 CFLAGS="-g" 4100 fi 4101else 4102 if test "$GCC" = yes; then 4103 CFLAGS="-O2" 4104 else 4105 CFLAGS= 4106 fi 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4109$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4110if test "${ac_cv_prog_cc_c89+set}" = set; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 ac_cv_prog_cc_c89=no 4114ac_save_CC=$CC 4115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4116/* end confdefs.h. */ 4117#include <stdarg.h> 4118#include <stdio.h> 4119#include <sys/types.h> 4120#include <sys/stat.h> 4121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4122struct buf { int x; }; 4123FILE * (*rcsopen) (struct buf *, struct stat *, int); 4124static char *e (p, i) 4125 char **p; 4126 int i; 4127{ 4128 return p[i]; 4129} 4130static char *f (char * (*g) (char **, int), char **p, ...) 4131{ 4132 char *s; 4133 va_list v; 4134 va_start (v,p); 4135 s = g (p, va_arg (v,int)); 4136 va_end (v); 4137 return s; 4138} 4139 4140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4141 function prototypes and stuff, but not '\xHH' hex character constants. 4142 These don't provoke an error unfortunately, instead are silently treated 4143 as 'x'. The following induces an error, until -std is added to get 4144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4145 array size at least. It's necessary to write '\x00'==0 to get something 4146 that's true only with -std. */ 4147int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4148 4149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4150 inside strings and character constants. */ 4151#define FOO(x) 'x' 4152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4153 4154int test (int i, double x); 4155struct s1 {int (*f) (int a);}; 4156struct s2 {int (*f) (double a);}; 4157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4158int argc; 4159char **argv; 4160int 4161main () 4162{ 4163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4164 ; 4165 return 0; 4166} 4167_ACEOF 4168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4170do 4171 CC="$ac_save_CC $ac_arg" 4172 if ac_fn_c_try_compile "$LINENO"; then : 4173 ac_cv_prog_cc_c89=$ac_arg 4174fi 4175rm -f core conftest.err conftest.$ac_objext 4176 test "x$ac_cv_prog_cc_c89" != "xno" && break 4177done 4178rm -f conftest.$ac_ext 4179CC=$ac_save_CC 4180 4181fi 4182# AC_CACHE_VAL 4183case "x$ac_cv_prog_cc_c89" in 4184 x) 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4186$as_echo "none needed" >&6; } ;; 4187 xno) 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4189$as_echo "unsupported" >&6; } ;; 4190 *) 4191 CC="$CC $ac_cv_prog_cc_c89" 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4194esac 4195if test "x$ac_cv_prog_cc_c89" != xno; then : 4196 4197fi 4198 4199ac_ext=c 4200ac_cpp='$CPP $CPPFLAGS' 4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4203ac_compiler_gnu=$ac_cv_c_compiler_gnu 4204 4205depcc="$CC" am_compiler_list= 4206 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4208$as_echo_n "checking dependency style of $depcc... " >&6; } 4209if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4210 $as_echo_n "(cached) " >&6 4211else 4212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4213 # We make a subdir and do the tests there. Otherwise we can end up 4214 # making bogus files that we don't know about and never remove. For 4215 # instance it was reported that on HP-UX the gcc test will end up 4216 # making a dummy file named `D' -- because `-MD' means `put the output 4217 # in D'. 4218 mkdir conftest.dir 4219 # Copy depcomp to subdir because otherwise we won't find it if we're 4220 # using a relative directory. 4221 cp "$am_depcomp" conftest.dir 4222 cd conftest.dir 4223 # We will build objects and dependencies in a subdirectory because 4224 # it helps to detect inapplicable dependency modes. For instance 4225 # both Tru64's cc and ICC support -MD to output dependencies as a 4226 # side effect of compilation, but ICC will put the dependencies in 4227 # the current directory while Tru64 will put them in the object 4228 # directory. 4229 mkdir sub 4230 4231 am_cv_CC_dependencies_compiler_type=none 4232 if test "$am_compiler_list" = ""; then 4233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4234 fi 4235 am__universal=false 4236 case " $depcc " in #( 4237 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4238 esac 4239 4240 for depmode in $am_compiler_list; do 4241 # Setup a source with many dependencies, because some compilers 4242 # like to wrap large dependency lists on column 80 (with \), and 4243 # we should not choose a depcomp mode which is confused by this. 4244 # 4245 # We need to recreate these files for each test, as the compiler may 4246 # overwrite some of them when testing with obscure command lines. 4247 # This happens at least with the AIX C compiler. 4248 : > sub/conftest.c 4249 for i in 1 2 3 4 5 6; do 4250 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4251 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4252 # Solaris 8's {/usr,}/bin/sh. 4253 touch sub/conftst$i.h 4254 done 4255 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4256 4257 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4258 # mode. It turns out that the SunPro C++ compiler does not properly 4259 # handle `-M -o', and we need to detect this. Also, some Intel 4260 # versions had trouble with output in subdirs 4261 am__obj=sub/conftest.${OBJEXT-o} 4262 am__minus_obj="-o $am__obj" 4263 case $depmode in 4264 gcc) 4265 # This depmode causes a compiler race in universal mode. 4266 test "$am__universal" = false || continue 4267 ;; 4268 nosideeffect) 4269 # after this tag, mechanisms are not by side-effect, so they'll 4270 # only be used when explicitly requested 4271 if test "x$enable_dependency_tracking" = xyes; then 4272 continue 4273 else 4274 break 4275 fi 4276 ;; 4277 msvisualcpp | msvcmsys) 4278 # This compiler won't grok `-c -o', but also, the minuso test has 4279 # not run yet. These depmodes are late enough in the game, and 4280 # so weak that their functioning should not be impacted. 4281 am__obj=conftest.${OBJEXT-o} 4282 am__minus_obj= 4283 ;; 4284 none) break ;; 4285 esac 4286 if depmode=$depmode \ 4287 source=sub/conftest.c object=$am__obj \ 4288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4289 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4290 >/dev/null 2>conftest.err && 4291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4293 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4295 # icc doesn't choke on unknown options, it will just issue warnings 4296 # or remarks (even with -Werror). So we grep stderr for any message 4297 # that says an option was ignored or not supported. 4298 # When given -MP, icc 7.0 and 7.1 complain thusly: 4299 # icc: Command line warning: ignoring option '-M'; no argument required 4300 # The diagnosis changed in icc 8.0: 4301 # icc: Command line remark: option '-MP' not supported 4302 if (grep 'ignoring option' conftest.err || 4303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4304 am_cv_CC_dependencies_compiler_type=$depmode 4305 break 4306 fi 4307 fi 4308 done 4309 4310 cd .. 4311 rm -rf conftest.dir 4312else 4313 am_cv_CC_dependencies_compiler_type=none 4314fi 4315 4316fi 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4318$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4320 4321 if 4322 test "x$enable_dependency_tracking" != xno \ 4323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4324 am__fastdepCC_TRUE= 4325 am__fastdepCC_FALSE='#' 4326else 4327 am__fastdepCC_TRUE='#' 4328 am__fastdepCC_FALSE= 4329fi 4330 4331 4332 4333ac_ext=c 4334ac_cpp='$CPP $CPPFLAGS' 4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4337ac_compiler_gnu=$ac_cv_c_compiler_gnu 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4339$as_echo_n "checking how to run the C preprocessor... " >&6; } 4340# On Suns, sometimes $CPP names a directory. 4341if test -n "$CPP" && test -d "$CPP"; then 4342 CPP= 4343fi 4344if test -z "$CPP"; then 4345 if test "${ac_cv_prog_CPP+set}" = set; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 # Double quotes because CPP needs to be expanded 4349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4350 do 4351 ac_preproc_ok=false 4352for ac_c_preproc_warn_flag in '' yes 4353do 4354 # Use a header file that comes with gcc, so configuring glibc 4355 # with a fresh cross-compiler works. 4356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4357 # <limits.h> exists even on freestanding compilers. 4358 # On the NeXT, cc -E runs the code through the compiler's parser, 4359 # not just through cpp. "Syntax error" is here to catch this case. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#ifdef __STDC__ 4363# include <limits.h> 4364#else 4365# include <assert.h> 4366#endif 4367 Syntax error 4368_ACEOF 4369if ac_fn_c_try_cpp "$LINENO"; then : 4370 4371else 4372 # Broken: fails on valid input. 4373continue 4374fi 4375rm -f conftest.err conftest.$ac_ext 4376 4377 # OK, works on sane cases. Now check whether nonexistent headers 4378 # can be detected and how. 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381#include <ac_nonexistent.h> 4382_ACEOF 4383if ac_fn_c_try_cpp "$LINENO"; then : 4384 # Broken: success on invalid input. 4385continue 4386else 4387 # Passes both tests. 4388ac_preproc_ok=: 4389break 4390fi 4391rm -f conftest.err conftest.$ac_ext 4392 4393done 4394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4395rm -f conftest.err conftest.$ac_ext 4396if $ac_preproc_ok; then : 4397 break 4398fi 4399 4400 done 4401 ac_cv_prog_CPP=$CPP 4402 4403fi 4404 CPP=$ac_cv_prog_CPP 4405else 4406 ac_cv_prog_CPP=$CPP 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4409$as_echo "$CPP" >&6; } 4410ac_preproc_ok=false 4411for ac_c_preproc_warn_flag in '' yes 4412do 4413 # Use a header file that comes with gcc, so configuring glibc 4414 # with a fresh cross-compiler works. 4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4416 # <limits.h> exists even on freestanding compilers. 4417 # On the NeXT, cc -E runs the code through the compiler's parser, 4418 # not just through cpp. "Syntax error" is here to catch this case. 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420/* end confdefs.h. */ 4421#ifdef __STDC__ 4422# include <limits.h> 4423#else 4424# include <assert.h> 4425#endif 4426 Syntax error 4427_ACEOF 4428if ac_fn_c_try_cpp "$LINENO"; then : 4429 4430else 4431 # Broken: fails on valid input. 4432continue 4433fi 4434rm -f conftest.err conftest.$ac_ext 4435 4436 # OK, works on sane cases. Now check whether nonexistent headers 4437 # can be detected and how. 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440#include <ac_nonexistent.h> 4441_ACEOF 4442if ac_fn_c_try_cpp "$LINENO"; then : 4443 # Broken: success on invalid input. 4444continue 4445else 4446 # Passes both tests. 4447ac_preproc_ok=: 4448break 4449fi 4450rm -f conftest.err conftest.$ac_ext 4451 4452done 4453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4454rm -f conftest.err conftest.$ac_ext 4455if $ac_preproc_ok; then : 4456 4457else 4458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4460as_fn_error "C preprocessor \"$CPP\" fails sanity check 4461See \`config.log' for more details." "$LINENO" 5; } 4462fi 4463 4464ac_ext=c 4465ac_cpp='$CPP $CPPFLAGS' 4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4468ac_compiler_gnu=$ac_cv_c_compiler_gnu 4469 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4472$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4473if test "${ac_cv_path_GREP+set}" = set; then : 4474 $as_echo_n "(cached) " >&6 4475else 4476 if test -z "$GREP"; then 4477 ac_path_GREP_found=false 4478 # Loop through the user's path and test for each of PROGNAME-LIST 4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4481do 4482 IFS=$as_save_IFS 4483 test -z "$as_dir" && as_dir=. 4484 for ac_prog in grep ggrep; do 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4487 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4488# Check for GNU ac_path_GREP and select it if it is found. 4489 # Check for GNU $ac_path_GREP 4490case `"$ac_path_GREP" --version 2>&1` in 4491*GNU*) 4492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4493*) 4494 ac_count=0 4495 $as_echo_n 0123456789 >"conftest.in" 4496 while : 4497 do 4498 cat "conftest.in" "conftest.in" >"conftest.tmp" 4499 mv "conftest.tmp" "conftest.in" 4500 cp "conftest.in" "conftest.nl" 4501 $as_echo 'GREP' >> "conftest.nl" 4502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4504 as_fn_arith $ac_count + 1 && ac_count=$as_val 4505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4506 # Best one so far, save it but keep looking for a better one 4507 ac_cv_path_GREP="$ac_path_GREP" 4508 ac_path_GREP_max=$ac_count 4509 fi 4510 # 10*(2^10) chars as input seems more than enough 4511 test $ac_count -gt 10 && break 4512 done 4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4514esac 4515 4516 $ac_path_GREP_found && break 3 4517 done 4518 done 4519 done 4520IFS=$as_save_IFS 4521 if test -z "$ac_cv_path_GREP"; then 4522 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4523 fi 4524else 4525 ac_cv_path_GREP=$GREP 4526fi 4527 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4530$as_echo "$ac_cv_path_GREP" >&6; } 4531 GREP="$ac_cv_path_GREP" 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4535$as_echo_n "checking for egrep... " >&6; } 4536if test "${ac_cv_path_EGREP+set}" = set; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4540 then ac_cv_path_EGREP="$GREP -E" 4541 else 4542 if test -z "$EGREP"; then 4543 ac_path_EGREP_found=false 4544 # Loop through the user's path and test for each of PROGNAME-LIST 4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_prog in egrep; do 4551 for ac_exec_ext in '' $ac_executable_extensions; do 4552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4553 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4554# Check for GNU ac_path_EGREP and select it if it is found. 4555 # Check for GNU $ac_path_EGREP 4556case `"$ac_path_EGREP" --version 2>&1` in 4557*GNU*) 4558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4559*) 4560 ac_count=0 4561 $as_echo_n 0123456789 >"conftest.in" 4562 while : 4563 do 4564 cat "conftest.in" "conftest.in" >"conftest.tmp" 4565 mv "conftest.tmp" "conftest.in" 4566 cp "conftest.in" "conftest.nl" 4567 $as_echo 'EGREP' >> "conftest.nl" 4568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4570 as_fn_arith $ac_count + 1 && ac_count=$as_val 4571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4572 # Best one so far, save it but keep looking for a better one 4573 ac_cv_path_EGREP="$ac_path_EGREP" 4574 ac_path_EGREP_max=$ac_count 4575 fi 4576 # 10*(2^10) chars as input seems more than enough 4577 test $ac_count -gt 10 && break 4578 done 4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4580esac 4581 4582 $ac_path_EGREP_found && break 3 4583 done 4584 done 4585 done 4586IFS=$as_save_IFS 4587 if test -z "$ac_cv_path_EGREP"; then 4588 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4589 fi 4590else 4591 ac_cv_path_EGREP=$EGREP 4592fi 4593 4594 fi 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4597$as_echo "$ac_cv_path_EGREP" >&6; } 4598 EGREP="$ac_cv_path_EGREP" 4599 4600 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4602$as_echo_n "checking for ANSI C header files... " >&6; } 4603if test "${ac_cv_header_stdc+set}" = set; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4607/* end confdefs.h. */ 4608#include <stdlib.h> 4609#include <stdarg.h> 4610#include <string.h> 4611#include <float.h> 4612 4613int 4614main () 4615{ 4616 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 ac_cv_header_stdc=yes 4623else 4624 ac_cv_header_stdc=no 4625fi 4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4627 4628if test $ac_cv_header_stdc = yes; then 4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632#include <string.h> 4633 4634_ACEOF 4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4636 $EGREP "memchr" >/dev/null 2>&1; then : 4637 4638else 4639 ac_cv_header_stdc=no 4640fi 4641rm -f conftest* 4642 4643fi 4644 4645if test $ac_cv_header_stdc = yes; then 4646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4648/* end confdefs.h. */ 4649#include <stdlib.h> 4650 4651_ACEOF 4652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4653 $EGREP "free" >/dev/null 2>&1; then : 4654 4655else 4656 ac_cv_header_stdc=no 4657fi 4658rm -f conftest* 4659 4660fi 4661 4662if test $ac_cv_header_stdc = yes; then 4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4664 if test "$cross_compiling" = yes; then : 4665 : 4666else 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669#include <ctype.h> 4670#include <stdlib.h> 4671#if ((' ' & 0x0FF) == 0x020) 4672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4674#else 4675# define ISLOWER(c) \ 4676 (('a' <= (c) && (c) <= 'i') \ 4677 || ('j' <= (c) && (c) <= 'r') \ 4678 || ('s' <= (c) && (c) <= 'z')) 4679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4680#endif 4681 4682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4683int 4684main () 4685{ 4686 int i; 4687 for (i = 0; i < 256; i++) 4688 if (XOR (islower (i), ISLOWER (i)) 4689 || toupper (i) != TOUPPER (i)) 4690 return 2; 4691 return 0; 4692} 4693_ACEOF 4694if ac_fn_c_try_run "$LINENO"; then : 4695 4696else 4697 ac_cv_header_stdc=no 4698fi 4699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4700 conftest.$ac_objext conftest.beam conftest.$ac_ext 4701fi 4702 4703fi 4704fi 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4706$as_echo "$ac_cv_header_stdc" >&6; } 4707if test $ac_cv_header_stdc = yes; then 4708 4709$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4710 4711fi 4712 4713# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4715 inttypes.h stdint.h unistd.h 4716do : 4717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4718ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4719" 4720eval as_val=\$$as_ac_Header 4721 if test "x$as_val" = x""yes; then : 4722 cat >>confdefs.h <<_ACEOF 4723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4724_ACEOF 4725 4726fi 4727 4728done 4729 4730 4731 4732 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4733if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4734 MINIX=yes 4735else 4736 MINIX= 4737fi 4738 4739 4740 if test "$MINIX" = yes; then 4741 4742$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4743 4744 4745$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4746 4747 4748$as_echo "#define _MINIX 1" >>confdefs.h 4749 4750 fi 4751 4752 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4754$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4755if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4756 $as_echo_n "(cached) " >&6 4757else 4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759/* end confdefs.h. */ 4760 4761# define __EXTENSIONS__ 1 4762 $ac_includes_default 4763int 4764main () 4765{ 4766 4767 ; 4768 return 0; 4769} 4770_ACEOF 4771if ac_fn_c_try_compile "$LINENO"; then : 4772 ac_cv_safe_to_define___extensions__=yes 4773else 4774 ac_cv_safe_to_define___extensions__=no 4775fi 4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4777fi 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4779$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4780 test $ac_cv_safe_to_define___extensions__ = yes && 4781 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4782 4783 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4784 4785 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4786 4787 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4788 4789 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4790 4791 4792 4793 4794ac_ext=c 4795ac_cpp='$CPP $CPPFLAGS' 4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4798ac_compiler_gnu=$ac_cv_c_compiler_gnu 4799if test -n "$ac_tool_prefix"; then 4800 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4801set dummy ${ac_tool_prefix}gcc; ac_word=$2 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4803$as_echo_n "checking for $ac_word... " >&6; } 4804if test "${ac_cv_prog_CC+set}" = set; then : 4805 $as_echo_n "(cached) " >&6 4806else 4807 if test -n "$CC"; then 4808 ac_cv_prog_CC="$CC" # Let the user override the test. 4809else 4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811for as_dir in $PATH 4812do 4813 IFS=$as_save_IFS 4814 test -z "$as_dir" && as_dir=. 4815 for ac_exec_ext in '' $ac_executable_extensions; do 4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4817 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4819 break 2 4820 fi 4821done 4822 done 4823IFS=$as_save_IFS 4824 4825fi 4826fi 4827CC=$ac_cv_prog_CC 4828if test -n "$CC"; then 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4830$as_echo "$CC" >&6; } 4831else 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833$as_echo "no" >&6; } 4834fi 4835 4836 4837fi 4838if test -z "$ac_cv_prog_CC"; then 4839 ac_ct_CC=$CC 4840 # Extract the first word of "gcc", so it can be a program name with args. 4841set dummy gcc; ac_word=$2 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4843$as_echo_n "checking for $ac_word... " >&6; } 4844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 if test -n "$ac_ct_CC"; then 4848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4849else 4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4851for as_dir in $PATH 4852do 4853 IFS=$as_save_IFS 4854 test -z "$as_dir" && as_dir=. 4855 for ac_exec_ext in '' $ac_executable_extensions; do 4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4857 ac_cv_prog_ac_ct_CC="gcc" 4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4859 break 2 4860 fi 4861done 4862 done 4863IFS=$as_save_IFS 4864 4865fi 4866fi 4867ac_ct_CC=$ac_cv_prog_ac_ct_CC 4868if test -n "$ac_ct_CC"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4870$as_echo "$ac_ct_CC" >&6; } 4871else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875 4876 if test "x$ac_ct_CC" = x; then 4877 CC="" 4878 else 4879 case $cross_compiling:$ac_tool_warned in 4880yes:) 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4883ac_tool_warned=yes ;; 4884esac 4885 CC=$ac_ct_CC 4886 fi 4887else 4888 CC="$ac_cv_prog_CC" 4889fi 4890 4891if test -z "$CC"; then 4892 if test -n "$ac_tool_prefix"; then 4893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4894set dummy ${ac_tool_prefix}cc; ac_word=$2 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4896$as_echo_n "checking for $ac_word... " >&6; } 4897if test "${ac_cv_prog_CC+set}" = set; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 if test -n "$CC"; then 4901 ac_cv_prog_CC="$CC" # Let the user override the test. 4902else 4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904for as_dir in $PATH 4905do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_exec_ext in '' $ac_executable_extensions; do 4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4910 ac_cv_prog_CC="${ac_tool_prefix}cc" 4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4912 break 2 4913 fi 4914done 4915 done 4916IFS=$as_save_IFS 4917 4918fi 4919fi 4920CC=$ac_cv_prog_CC 4921if test -n "$CC"; then 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4923$as_echo "$CC" >&6; } 4924else 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4926$as_echo "no" >&6; } 4927fi 4928 4929 4930 fi 4931fi 4932if test -z "$CC"; then 4933 # Extract the first word of "cc", so it can be a program name with args. 4934set dummy cc; ac_word=$2 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4936$as_echo_n "checking for $ac_word... " >&6; } 4937if test "${ac_cv_prog_CC+set}" = set; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 if test -n "$CC"; then 4941 ac_cv_prog_CC="$CC" # Let the user override the test. 4942else 4943 ac_prog_rejected=no 4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4945for as_dir in $PATH 4946do 4947 IFS=$as_save_IFS 4948 test -z "$as_dir" && as_dir=. 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4952 ac_prog_rejected=yes 4953 continue 4954 fi 4955 ac_cv_prog_CC="cc" 4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4957 break 2 4958 fi 4959done 4960 done 4961IFS=$as_save_IFS 4962 4963if test $ac_prog_rejected = yes; then 4964 # We found a bogon in the path, so make sure we never use it. 4965 set dummy $ac_cv_prog_CC 4966 shift 4967 if test $# != 0; then 4968 # We chose a different compiler from the bogus one. 4969 # However, it has the same basename, so the bogon will be chosen 4970 # first if we set CC to just the basename; use the full file name. 4971 shift 4972 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4973 fi 4974fi 4975fi 4976fi 4977CC=$ac_cv_prog_CC 4978if test -n "$CC"; then 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4980$as_echo "$CC" >&6; } 4981else 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4983$as_echo "no" >&6; } 4984fi 4985 4986 4987fi 4988if test -z "$CC"; then 4989 if test -n "$ac_tool_prefix"; then 4990 for ac_prog in cl.exe 4991 do 4992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4993set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4995$as_echo_n "checking for $ac_word... " >&6; } 4996if test "${ac_cv_prog_CC+set}" = set; then : 4997 $as_echo_n "(cached) " >&6 4998else 4999 if test -n "$CC"; then 5000 ac_cv_prog_CC="$CC" # Let the user override the test. 5001else 5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5003for as_dir in $PATH 5004do 5005 IFS=$as_save_IFS 5006 test -z "$as_dir" && as_dir=. 5007 for ac_exec_ext in '' $ac_executable_extensions; do 5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5009 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5011 break 2 5012 fi 5013done 5014 done 5015IFS=$as_save_IFS 5016 5017fi 5018fi 5019CC=$ac_cv_prog_CC 5020if test -n "$CC"; then 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5022$as_echo "$CC" >&6; } 5023else 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5025$as_echo "no" >&6; } 5026fi 5027 5028 5029 test -n "$CC" && break 5030 done 5031fi 5032if test -z "$CC"; then 5033 ac_ct_CC=$CC 5034 for ac_prog in cl.exe 5035do 5036 # Extract the first word of "$ac_prog", so it can be a program name with args. 5037set dummy $ac_prog; ac_word=$2 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5039$as_echo_n "checking for $ac_word... " >&6; } 5040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 if test -n "$ac_ct_CC"; then 5044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5045else 5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5047for as_dir in $PATH 5048do 5049 IFS=$as_save_IFS 5050 test -z "$as_dir" && as_dir=. 5051 for ac_exec_ext in '' $ac_executable_extensions; do 5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5053 ac_cv_prog_ac_ct_CC="$ac_prog" 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5055 break 2 5056 fi 5057done 5058 done 5059IFS=$as_save_IFS 5060 5061fi 5062fi 5063ac_ct_CC=$ac_cv_prog_ac_ct_CC 5064if test -n "$ac_ct_CC"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5066$as_echo "$ac_ct_CC" >&6; } 5067else 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069$as_echo "no" >&6; } 5070fi 5071 5072 5073 test -n "$ac_ct_CC" && break 5074done 5075 5076 if test "x$ac_ct_CC" = x; then 5077 CC="" 5078 else 5079 case $cross_compiling:$ac_tool_warned in 5080yes:) 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5083ac_tool_warned=yes ;; 5084esac 5085 CC=$ac_ct_CC 5086 fi 5087fi 5088 5089fi 5090 5091 5092test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5094as_fn_error "no acceptable C compiler found in \$PATH 5095See \`config.log' for more details." "$LINENO" 5; } 5096 5097# Provide some information about the compiler. 5098$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5099set X $ac_compile 5100ac_compiler=$2 5101for ac_option in --version -v -V -qversion; do 5102 { { ac_try="$ac_compiler $ac_option >&5" 5103case "(($ac_try" in 5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5105 *) ac_try_echo=$ac_try;; 5106esac 5107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5108$as_echo "$ac_try_echo"; } >&5 5109 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5110 ac_status=$? 5111 if test -s conftest.err; then 5112 sed '10a\ 5113... rest of stderr output deleted ... 5114 10q' conftest.err >conftest.er1 5115 cat conftest.er1 >&5 5116 rm -f conftest.er1 conftest.err 5117 fi 5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5119 test $ac_status = 0; } 5120done 5121 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5123$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5124if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129 5130int 5131main () 5132{ 5133#ifndef __GNUC__ 5134 choke me 5135#endif 5136 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141if ac_fn_c_try_compile "$LINENO"; then : 5142 ac_compiler_gnu=yes 5143else 5144 ac_compiler_gnu=no 5145fi 5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5147ac_cv_c_compiler_gnu=$ac_compiler_gnu 5148 5149fi 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5151$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5152if test $ac_compiler_gnu = yes; then 5153 GCC=yes 5154else 5155 GCC= 5156fi 5157ac_test_CFLAGS=${CFLAGS+set} 5158ac_save_CFLAGS=$CFLAGS 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5160$as_echo_n "checking whether $CC accepts -g... " >&6; } 5161if test "${ac_cv_prog_cc_g+set}" = set; then : 5162 $as_echo_n "(cached) " >&6 5163else 5164 ac_save_c_werror_flag=$ac_c_werror_flag 5165 ac_c_werror_flag=yes 5166 ac_cv_prog_cc_g=no 5167 CFLAGS="-g" 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170 5171int 5172main () 5173{ 5174 5175 ; 5176 return 0; 5177} 5178_ACEOF 5179if ac_fn_c_try_compile "$LINENO"; then : 5180 ac_cv_prog_cc_g=yes 5181else 5182 CFLAGS="" 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5184/* end confdefs.h. */ 5185 5186int 5187main () 5188{ 5189 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO"; then : 5195 5196else 5197 ac_c_werror_flag=$ac_save_c_werror_flag 5198 CFLAGS="-g" 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 ac_cv_prog_cc_g=yes 5212fi 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216fi 5217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5218 ac_c_werror_flag=$ac_save_c_werror_flag 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5221$as_echo "$ac_cv_prog_cc_g" >&6; } 5222if test "$ac_test_CFLAGS" = set; then 5223 CFLAGS=$ac_save_CFLAGS 5224elif test $ac_cv_prog_cc_g = yes; then 5225 if test "$GCC" = yes; then 5226 CFLAGS="-g -O2" 5227 else 5228 CFLAGS="-g" 5229 fi 5230else 5231 if test "$GCC" = yes; then 5232 CFLAGS="-O2" 5233 else 5234 CFLAGS= 5235 fi 5236fi 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5238$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5239if test "${ac_cv_prog_cc_c89+set}" = set; then : 5240 $as_echo_n "(cached) " >&6 5241else 5242 ac_cv_prog_cc_c89=no 5243ac_save_CC=$CC 5244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245/* end confdefs.h. */ 5246#include <stdarg.h> 5247#include <stdio.h> 5248#include <sys/types.h> 5249#include <sys/stat.h> 5250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5251struct buf { int x; }; 5252FILE * (*rcsopen) (struct buf *, struct stat *, int); 5253static char *e (p, i) 5254 char **p; 5255 int i; 5256{ 5257 return p[i]; 5258} 5259static char *f (char * (*g) (char **, int), char **p, ...) 5260{ 5261 char *s; 5262 va_list v; 5263 va_start (v,p); 5264 s = g (p, va_arg (v,int)); 5265 va_end (v); 5266 return s; 5267} 5268 5269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5270 function prototypes and stuff, but not '\xHH' hex character constants. 5271 These don't provoke an error unfortunately, instead are silently treated 5272 as 'x'. The following induces an error, until -std is added to get 5273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5274 array size at least. It's necessary to write '\x00'==0 to get something 5275 that's true only with -std. */ 5276int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5277 5278/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5279 inside strings and character constants. */ 5280#define FOO(x) 'x' 5281int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5282 5283int test (int i, double x); 5284struct s1 {int (*f) (int a);}; 5285struct s2 {int (*f) (double a);}; 5286int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5287int argc; 5288char **argv; 5289int 5290main () 5291{ 5292return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5293 ; 5294 return 0; 5295} 5296_ACEOF 5297for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5299do 5300 CC="$ac_save_CC $ac_arg" 5301 if ac_fn_c_try_compile "$LINENO"; then : 5302 ac_cv_prog_cc_c89=$ac_arg 5303fi 5304rm -f core conftest.err conftest.$ac_objext 5305 test "x$ac_cv_prog_cc_c89" != "xno" && break 5306done 5307rm -f conftest.$ac_ext 5308CC=$ac_save_CC 5309 5310fi 5311# AC_CACHE_VAL 5312case "x$ac_cv_prog_cc_c89" in 5313 x) 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5315$as_echo "none needed" >&6; } ;; 5316 xno) 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5318$as_echo "unsupported" >&6; } ;; 5319 *) 5320 CC="$CC $ac_cv_prog_cc_c89" 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5322$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5323esac 5324if test "x$ac_cv_prog_cc_c89" != xno; then : 5325 5326fi 5327 5328ac_ext=c 5329ac_cpp='$CPP $CPPFLAGS' 5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5332ac_compiler_gnu=$ac_cv_c_compiler_gnu 5333 5334depcc="$CC" am_compiler_list= 5335 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5337$as_echo_n "checking dependency style of $depcc... " >&6; } 5338if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5342 # We make a subdir and do the tests there. Otherwise we can end up 5343 # making bogus files that we don't know about and never remove. For 5344 # instance it was reported that on HP-UX the gcc test will end up 5345 # making a dummy file named `D' -- because `-MD' means `put the output 5346 # in D'. 5347 mkdir conftest.dir 5348 # Copy depcomp to subdir because otherwise we won't find it if we're 5349 # using a relative directory. 5350 cp "$am_depcomp" conftest.dir 5351 cd conftest.dir 5352 # We will build objects and dependencies in a subdirectory because 5353 # it helps to detect inapplicable dependency modes. For instance 5354 # both Tru64's cc and ICC support -MD to output dependencies as a 5355 # side effect of compilation, but ICC will put the dependencies in 5356 # the current directory while Tru64 will put them in the object 5357 # directory. 5358 mkdir sub 5359 5360 am_cv_CC_dependencies_compiler_type=none 5361 if test "$am_compiler_list" = ""; then 5362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5363 fi 5364 am__universal=false 5365 case " $depcc " in #( 5366 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5367 esac 5368 5369 for depmode in $am_compiler_list; do 5370 # Setup a source with many dependencies, because some compilers 5371 # like to wrap large dependency lists on column 80 (with \), and 5372 # we should not choose a depcomp mode which is confused by this. 5373 # 5374 # We need to recreate these files for each test, as the compiler may 5375 # overwrite some of them when testing with obscure command lines. 5376 # This happens at least with the AIX C compiler. 5377 : > sub/conftest.c 5378 for i in 1 2 3 4 5 6; do 5379 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5380 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5381 # Solaris 8's {/usr,}/bin/sh. 5382 touch sub/conftst$i.h 5383 done 5384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5385 5386 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5387 # mode. It turns out that the SunPro C++ compiler does not properly 5388 # handle `-M -o', and we need to detect this. Also, some Intel 5389 # versions had trouble with output in subdirs 5390 am__obj=sub/conftest.${OBJEXT-o} 5391 am__minus_obj="-o $am__obj" 5392 case $depmode in 5393 gcc) 5394 # This depmode causes a compiler race in universal mode. 5395 test "$am__universal" = false || continue 5396 ;; 5397 nosideeffect) 5398 # after this tag, mechanisms are not by side-effect, so they'll 5399 # only be used when explicitly requested 5400 if test "x$enable_dependency_tracking" = xyes; then 5401 continue 5402 else 5403 break 5404 fi 5405 ;; 5406 msvisualcpp | msvcmsys) 5407 # This compiler won't grok `-c -o', but also, the minuso test has 5408 # not run yet. These depmodes are late enough in the game, and 5409 # so weak that their functioning should not be impacted. 5410 am__obj=conftest.${OBJEXT-o} 5411 am__minus_obj= 5412 ;; 5413 none) break ;; 5414 esac 5415 if depmode=$depmode \ 5416 source=sub/conftest.c object=$am__obj \ 5417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5419 >/dev/null 2>conftest.err && 5420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5424 # icc doesn't choke on unknown options, it will just issue warnings 5425 # or remarks (even with -Werror). So we grep stderr for any message 5426 # that says an option was ignored or not supported. 5427 # When given -MP, icc 7.0 and 7.1 complain thusly: 5428 # icc: Command line warning: ignoring option '-M'; no argument required 5429 # The diagnosis changed in icc 8.0: 5430 # icc: Command line remark: option '-MP' not supported 5431 if (grep 'ignoring option' conftest.err || 5432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5433 am_cv_CC_dependencies_compiler_type=$depmode 5434 break 5435 fi 5436 fi 5437 done 5438 5439 cd .. 5440 rm -rf conftest.dir 5441else 5442 am_cv_CC_dependencies_compiler_type=none 5443fi 5444 5445fi 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5447$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5448CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5449 5450 if 5451 test "x$enable_dependency_tracking" != xno \ 5452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5453 am__fastdepCC_TRUE= 5454 am__fastdepCC_FALSE='#' 5455else 5456 am__fastdepCC_TRUE='#' 5457 am__fastdepCC_FALSE= 5458fi 5459 5460 5461if test "x$CC" != xcc; then 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5463$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5464else 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5466$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5467fi 5468set dummy $CC; ac_cc=`$as_echo "$2" | 5469 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5470if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474/* end confdefs.h. */ 5475 5476int 5477main () 5478{ 5479 5480 ; 5481 return 0; 5482} 5483_ACEOF 5484# Make sure it works both with $CC and with simple cc. 5485# We do the test twice because some compilers refuse to overwrite an 5486# existing .o file with -o, though they will create one. 5487ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5488rm -f conftest2.* 5489if { { case "(($ac_try" in 5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5491 *) ac_try_echo=$ac_try;; 5492esac 5493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5494$as_echo "$ac_try_echo"; } >&5 5495 (eval "$ac_try") 2>&5 5496 ac_status=$? 5497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5498 test $ac_status = 0; } && 5499 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5501 *) ac_try_echo=$ac_try;; 5502esac 5503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5504$as_echo "$ac_try_echo"; } >&5 5505 (eval "$ac_try") 2>&5 5506 ac_status=$? 5507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5508 test $ac_status = 0; }; 5509then 5510 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5511 if test "x$CC" != xcc; then 5512 # Test first that cc exists at all. 5513 if { ac_try='cc -c conftest.$ac_ext >&5' 5514 { { case "(($ac_try" in 5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5516 *) ac_try_echo=$ac_try;; 5517esac 5518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5519$as_echo "$ac_try_echo"; } >&5 5520 (eval "$ac_try") 2>&5 5521 ac_status=$? 5522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5523 test $ac_status = 0; }; }; then 5524 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5525 rm -f conftest2.* 5526 if { { case "(($ac_try" in 5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5528 *) ac_try_echo=$ac_try;; 5529esac 5530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5531$as_echo "$ac_try_echo"; } >&5 5532 (eval "$ac_try") 2>&5 5533 ac_status=$? 5534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5535 test $ac_status = 0; } && 5536 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5538 *) ac_try_echo=$ac_try;; 5539esac 5540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5541$as_echo "$ac_try_echo"; } >&5 5542 (eval "$ac_try") 2>&5 5543 ac_status=$? 5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5545 test $ac_status = 0; }; 5546 then 5547 # cc works too. 5548 : 5549 else 5550 # cc exists but doesn't like -o. 5551 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5552 fi 5553 fi 5554 fi 5555else 5556 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5557fi 5558rm -f core conftest* 5559 5560fi 5561if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5563$as_echo "yes" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566$as_echo "no" >&6; } 5567 5568$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5569 5570fi 5571 5572# FIXME: we rely on the cache variable name because 5573# there is no other way. 5574set dummy $CC 5575am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5576eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5577if test "$am_t" != yes; then 5578 # Losing compiler, so override with the script. 5579 # FIXME: It is wrong to rewrite CC. 5580 # But if we don't then we get into trouble of one sort or another. 5581 # A longer-term fix would be to have automake use am__CC in this case, 5582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5583 CC="$am_aux_dir/compile $CC" 5584fi 5585 5586 5587 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5589$as_echo_n "checking whether ln -s works... " >&6; } 5590LN_S=$as_ln_s 5591if test "$LN_S" = "ln -s"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5593$as_echo "yes" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5596$as_echo "no, using $LN_S" >&6; } 5597fi 5598 5599case `pwd` in 5600 *\ * | *\ *) 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5602$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5603esac 5604 5605 5606 5607macro_version='2.2.6b' 5608macro_revision='1.3017' 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622ltmain="$ac_aux_dir/ltmain.sh" 5623 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5625$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5626if test "${ac_cv_path_SED+set}" = set; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5630 for ac_i in 1 2 3 4 5 6 7; do 5631 ac_script="$ac_script$as_nl$ac_script" 5632 done 5633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5634 { ac_script=; unset ac_script;} 5635 if test -z "$SED"; then 5636 ac_path_SED_found=false 5637 # Loop through the user's path and test for each of PROGNAME-LIST 5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 test -z "$as_dir" && as_dir=. 5643 for ac_prog in sed gsed; do 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5647# Check for GNU ac_path_SED and select it if it is found. 5648 # Check for GNU $ac_path_SED 5649case `"$ac_path_SED" --version 2>&1` in 5650*GNU*) 5651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5652*) 5653 ac_count=0 5654 $as_echo_n 0123456789 >"conftest.in" 5655 while : 5656 do 5657 cat "conftest.in" "conftest.in" >"conftest.tmp" 5658 mv "conftest.tmp" "conftest.in" 5659 cp "conftest.in" "conftest.nl" 5660 $as_echo '' >> "conftest.nl" 5661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5663 as_fn_arith $ac_count + 1 && ac_count=$as_val 5664 if test $ac_count -gt ${ac_path_SED_max-0}; then 5665 # Best one so far, save it but keep looking for a better one 5666 ac_cv_path_SED="$ac_path_SED" 5667 ac_path_SED_max=$ac_count 5668 fi 5669 # 10*(2^10) chars as input seems more than enough 5670 test $ac_count -gt 10 && break 5671 done 5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5673esac 5674 5675 $ac_path_SED_found && break 3 5676 done 5677 done 5678 done 5679IFS=$as_save_IFS 5680 if test -z "$ac_cv_path_SED"; then 5681 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5682 fi 5683else 5684 ac_cv_path_SED=$SED 5685fi 5686 5687fi 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5689$as_echo "$ac_cv_path_SED" >&6; } 5690 SED="$ac_cv_path_SED" 5691 rm -f conftest.sed 5692 5693test -z "$SED" && SED=sed 5694Xsed="$SED -e 1s/^X//" 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5707$as_echo_n "checking for fgrep... " >&6; } 5708if test "${ac_cv_path_FGREP+set}" = set; then : 5709 $as_echo_n "(cached) " >&6 5710else 5711 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5712 then ac_cv_path_FGREP="$GREP -F" 5713 else 5714 if test -z "$FGREP"; then 5715 ac_path_FGREP_found=false 5716 # Loop through the user's path and test for each of PROGNAME-LIST 5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5719do 5720 IFS=$as_save_IFS 5721 test -z "$as_dir" && as_dir=. 5722 for ac_prog in fgrep; do 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5725 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5726# Check for GNU ac_path_FGREP and select it if it is found. 5727 # Check for GNU $ac_path_FGREP 5728case `"$ac_path_FGREP" --version 2>&1` in 5729*GNU*) 5730 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5731*) 5732 ac_count=0 5733 $as_echo_n 0123456789 >"conftest.in" 5734 while : 5735 do 5736 cat "conftest.in" "conftest.in" >"conftest.tmp" 5737 mv "conftest.tmp" "conftest.in" 5738 cp "conftest.in" "conftest.nl" 5739 $as_echo 'FGREP' >> "conftest.nl" 5740 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5742 as_fn_arith $ac_count + 1 && ac_count=$as_val 5743 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5744 # Best one so far, save it but keep looking for a better one 5745 ac_cv_path_FGREP="$ac_path_FGREP" 5746 ac_path_FGREP_max=$ac_count 5747 fi 5748 # 10*(2^10) chars as input seems more than enough 5749 test $ac_count -gt 10 && break 5750 done 5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5752esac 5753 5754 $ac_path_FGREP_found && break 3 5755 done 5756 done 5757 done 5758IFS=$as_save_IFS 5759 if test -z "$ac_cv_path_FGREP"; then 5760 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5761 fi 5762else 5763 ac_cv_path_FGREP=$FGREP 5764fi 5765 5766 fi 5767fi 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5769$as_echo "$ac_cv_path_FGREP" >&6; } 5770 FGREP="$ac_cv_path_FGREP" 5771 5772 5773test -z "$GREP" && GREP=grep 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793# Check whether --with-gnu-ld was given. 5794if test "${with_gnu_ld+set}" = set; then : 5795 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5796else 5797 with_gnu_ld=no 5798fi 5799 5800ac_prog=ld 5801if test "$GCC" = yes; then 5802 # Check if gcc -print-prog-name=ld gives a path. 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5804$as_echo_n "checking for ld used by $CC... " >&6; } 5805 case $host in 5806 *-*-mingw*) 5807 # gcc leaves a trailing carriage return which upsets mingw 5808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5809 *) 5810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5811 esac 5812 case $ac_prog in 5813 # Accept absolute paths. 5814 [\\/]* | ?:[\\/]*) 5815 re_direlt='/[^/][^/]*/\.\./' 5816 # Canonicalize the pathname of ld 5817 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5818 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5819 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5820 done 5821 test -z "$LD" && LD="$ac_prog" 5822 ;; 5823 "") 5824 # If it fails, then pretend we aren't using GCC. 5825 ac_prog=ld 5826 ;; 5827 *) 5828 # If it is relative, then search for the first ld in PATH. 5829 with_gnu_ld=unknown 5830 ;; 5831 esac 5832elif test "$with_gnu_ld" = yes; then 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5834$as_echo_n "checking for GNU ld... " >&6; } 5835else 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5837$as_echo_n "checking for non-GNU ld... " >&6; } 5838fi 5839if test "${lt_cv_path_LD+set}" = set; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 if test -z "$LD"; then 5843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5844 for ac_dir in $PATH; do 5845 IFS="$lt_save_ifs" 5846 test -z "$ac_dir" && ac_dir=. 5847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5848 lt_cv_path_LD="$ac_dir/$ac_prog" 5849 # Check to see if the program is GNU ld. I'd rather use --version, 5850 # but apparently some variants of GNU ld only accept -v. 5851 # Break only if it was the GNU/non-GNU ld that we prefer. 5852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5853 *GNU* | *'with BFD'*) 5854 test "$with_gnu_ld" != no && break 5855 ;; 5856 *) 5857 test "$with_gnu_ld" != yes && break 5858 ;; 5859 esac 5860 fi 5861 done 5862 IFS="$lt_save_ifs" 5863else 5864 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5865fi 5866fi 5867 5868LD="$lt_cv_path_LD" 5869if test -n "$LD"; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5871$as_echo "$LD" >&6; } 5872else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874$as_echo "no" >&6; } 5875fi 5876test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5878$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5879if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5880 $as_echo_n "(cached) " >&6 5881else 5882 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5883case `$LD -v 2>&1 </dev/null` in 5884*GNU* | *'with BFD'*) 5885 lt_cv_prog_gnu_ld=yes 5886 ;; 5887*) 5888 lt_cv_prog_gnu_ld=no 5889 ;; 5890esac 5891fi 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5893$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5894with_gnu_ld=$lt_cv_prog_gnu_ld 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5905$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5906if test "${lt_cv_path_NM+set}" = set; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 if test -n "$NM"; then 5910 # Let the user override the test. 5911 lt_cv_path_NM="$NM" 5912else 5913 lt_nm_to_check="${ac_tool_prefix}nm" 5914 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5915 lt_nm_to_check="$lt_nm_to_check nm" 5916 fi 5917 for lt_tmp_nm in $lt_nm_to_check; do 5918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5919 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5920 IFS="$lt_save_ifs" 5921 test -z "$ac_dir" && ac_dir=. 5922 tmp_nm="$ac_dir/$lt_tmp_nm" 5923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5924 # Check to see if the nm accepts a BSD-compat flag. 5925 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5926 # nm: unknown option "B" ignored 5927 # Tru64's nm complains that /dev/null is an invalid object file 5928 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5929 */dev/null* | *'Invalid file or object type'*) 5930 lt_cv_path_NM="$tmp_nm -B" 5931 break 5932 ;; 5933 *) 5934 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5935 */dev/null*) 5936 lt_cv_path_NM="$tmp_nm -p" 5937 break 5938 ;; 5939 *) 5940 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5941 continue # so that we can try to find one that supports BSD flags 5942 ;; 5943 esac 5944 ;; 5945 esac 5946 fi 5947 done 5948 IFS="$lt_save_ifs" 5949 done 5950 : ${lt_cv_path_NM=no} 5951fi 5952fi 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5954$as_echo "$lt_cv_path_NM" >&6; } 5955if test "$lt_cv_path_NM" != "no"; then 5956 NM="$lt_cv_path_NM" 5957else 5958 # Didn't find any BSD compatible name lister, look for dumpbin. 5959 if test -n "$ac_tool_prefix"; then 5960 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5961 do 5962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5963set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 if test -n "$DUMPBIN"; then 5970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5971else 5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984 done 5985IFS=$as_save_IFS 5986 5987fi 5988fi 5989DUMPBIN=$ac_cv_prog_DUMPBIN 5990if test -n "$DUMPBIN"; then 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5992$as_echo "$DUMPBIN" >&6; } 5993else 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995$as_echo "no" >&6; } 5996fi 5997 5998 5999 test -n "$DUMPBIN" && break 6000 done 6001fi 6002if test -z "$DUMPBIN"; then 6003 ac_ct_DUMPBIN=$DUMPBIN 6004 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6005do 6006 # Extract the first word of "$ac_prog", so it can be a program name with args. 6007set dummy $ac_prog; ac_word=$2 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6009$as_echo_n "checking for $ac_word... " >&6; } 6010if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 if test -n "$ac_ct_DUMPBIN"; then 6014 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6015else 6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017for as_dir in $PATH 6018do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6023 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027done 6028 done 6029IFS=$as_save_IFS 6030 6031fi 6032fi 6033ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6034if test -n "$ac_ct_DUMPBIN"; then 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6036$as_echo "$ac_ct_DUMPBIN" >&6; } 6037else 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6039$as_echo "no" >&6; } 6040fi 6041 6042 6043 test -n "$ac_ct_DUMPBIN" && break 6044done 6045 6046 if test "x$ac_ct_DUMPBIN" = x; then 6047 DUMPBIN=":" 6048 else 6049 case $cross_compiling:$ac_tool_warned in 6050yes:) 6051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6053ac_tool_warned=yes ;; 6054esac 6055 DUMPBIN=$ac_ct_DUMPBIN 6056 fi 6057fi 6058 6059 6060 if test "$DUMPBIN" != ":"; then 6061 NM="$DUMPBIN" 6062 fi 6063fi 6064test -z "$NM" && NM=nm 6065 6066 6067 6068 6069 6070 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6072$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6073if test "${lt_cv_nm_interface+set}" = set; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 lt_cv_nm_interface="BSD nm" 6077 echo "int some_variable = 0;" > conftest.$ac_ext 6078 (eval echo "\"\$as_me:6078: $ac_compile\"" >&5) 6079 (eval "$ac_compile" 2>conftest.err) 6080 cat conftest.err >&5 6081 (eval echo "\"\$as_me:6081: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6082 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6083 cat conftest.err >&5 6084 (eval echo "\"\$as_me:6084: output\"" >&5) 6085 cat conftest.out >&5 6086 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6087 lt_cv_nm_interface="MS dumpbin" 6088 fi 6089 rm -f conftest* 6090fi 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6092$as_echo "$lt_cv_nm_interface" >&6; } 6093 6094# find the maximum length of command line arguments 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6096$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6097if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 i=0 6101 teststring="ABCD" 6102 6103 case $build_os in 6104 msdosdjgpp*) 6105 # On DJGPP, this test can blow up pretty badly due to problems in libc 6106 # (any single argument exceeding 2000 bytes causes a buffer overrun 6107 # during glob expansion). Even if it were fixed, the result of this 6108 # check would be larger than it should be. 6109 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6110 ;; 6111 6112 gnu*) 6113 # Under GNU Hurd, this test is not required because there is 6114 # no limit to the length of command line arguments. 6115 # Libtool will interpret -1 as no limit whatsoever 6116 lt_cv_sys_max_cmd_len=-1; 6117 ;; 6118 6119 cygwin* | mingw* | cegcc*) 6120 # On Win9x/ME, this test blows up -- it succeeds, but takes 6121 # about 5 minutes as the teststring grows exponentially. 6122 # Worse, since 9x/ME are not pre-emptively multitasking, 6123 # you end up with a "frozen" computer, even though with patience 6124 # the test eventually succeeds (with a max line length of 256k). 6125 # Instead, let's just punt: use the minimum linelength reported by 6126 # all of the supported platforms: 8192 (on NT/2K/XP). 6127 lt_cv_sys_max_cmd_len=8192; 6128 ;; 6129 6130 amigaos*) 6131 # On AmigaOS with pdksh, this test takes hours, literally. 6132 # So we just punt and use a minimum line length of 8192. 6133 lt_cv_sys_max_cmd_len=8192; 6134 ;; 6135 6136 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6137 # This has been around since 386BSD, at least. Likely further. 6138 if test -x /sbin/sysctl; then 6139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6140 elif test -x /usr/sbin/sysctl; then 6141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6142 else 6143 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6144 fi 6145 # And add a safety zone 6146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6148 ;; 6149 6150 interix*) 6151 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6152 lt_cv_sys_max_cmd_len=196608 6153 ;; 6154 6155 osf*) 6156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6158 # nice to cause kernel panics so lets avoid the loop below. 6159 # First set a reasonable default. 6160 lt_cv_sys_max_cmd_len=16384 6161 # 6162 if test -x /sbin/sysconfig; then 6163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6164 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6165 esac 6166 fi 6167 ;; 6168 sco3.2v5*) 6169 lt_cv_sys_max_cmd_len=102400 6170 ;; 6171 sysv5* | sco5v6* | sysv4.2uw2*) 6172 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6173 if test -n "$kargmax"; then 6174 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6175 else 6176 lt_cv_sys_max_cmd_len=32768 6177 fi 6178 ;; 6179 *) 6180 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6181 if test -n "$lt_cv_sys_max_cmd_len"; then 6182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6184 else 6185 # Make teststring a little bigger before we do anything with it. 6186 # a 1K string should be a reasonable start. 6187 for i in 1 2 3 4 5 6 7 8 ; do 6188 teststring=$teststring$teststring 6189 done 6190 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6191 # If test is not a shell built-in, we'll probably end up computing a 6192 # maximum length that is only half of the actual maximum length, but 6193 # we can't tell. 6194 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6195 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6196 test $i != 17 # 1/2 MB should be enough 6197 do 6198 i=`expr $i + 1` 6199 teststring=$teststring$teststring 6200 done 6201 # Only check the string length outside the loop. 6202 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6203 teststring= 6204 # Add a significant safety factor because C++ compilers can tack on 6205 # massive amounts of additional arguments before passing them to the 6206 # linker. It appears as though 1/2 is a usable value. 6207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6208 fi 6209 ;; 6210 esac 6211 6212fi 6213 6214if test -n $lt_cv_sys_max_cmd_len ; then 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6216$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6217else 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6219$as_echo "none" >&6; } 6220fi 6221max_cmd_len=$lt_cv_sys_max_cmd_len 6222 6223 6224 6225 6226 6227 6228: ${CP="cp -f"} 6229: ${MV="mv -f"} 6230: ${RM="rm -f"} 6231 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6233$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6234# Try some XSI features 6235xsi_shell=no 6236( _lt_dummy="a/b/c" 6237 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6238 = c,a/b,, \ 6239 && eval 'test $(( 1 + 1 )) -eq 2 \ 6240 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6241 && xsi_shell=yes 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6243$as_echo "$xsi_shell" >&6; } 6244 6245 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6247$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6248lt_shell_append=no 6249( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6250 >/dev/null 2>&1 \ 6251 && lt_shell_append=yes 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6253$as_echo "$lt_shell_append" >&6; } 6254 6255 6256if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6257 lt_unset=unset 6258else 6259 lt_unset=false 6260fi 6261 6262 6263 6264 6265 6266# test EBCDIC or ASCII 6267case `echo X|tr X '\101'` in 6268 A) # ASCII based system 6269 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6270 lt_SP2NL='tr \040 \012' 6271 lt_NL2SP='tr \015\012 \040\040' 6272 ;; 6273 *) # EBCDIC based system 6274 lt_SP2NL='tr \100 \n' 6275 lt_NL2SP='tr \r\n \100\100' 6276 ;; 6277esac 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6288$as_echo_n "checking for $LD option to reload object files... " >&6; } 6289if test "${lt_cv_ld_reload_flag+set}" = set; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 lt_cv_ld_reload_flag='-r' 6293fi 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6295$as_echo "$lt_cv_ld_reload_flag" >&6; } 6296reload_flag=$lt_cv_ld_reload_flag 6297case $reload_flag in 6298"" | " "*) ;; 6299*) reload_flag=" $reload_flag" ;; 6300esac 6301reload_cmds='$LD$reload_flag -o $output$reload_objs' 6302case $host_os in 6303 darwin*) 6304 if test "$GCC" = yes; then 6305 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6306 else 6307 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6308 fi 6309 ;; 6310esac 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320if test -n "$ac_tool_prefix"; then 6321 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6322set dummy ${ac_tool_prefix}objdump; ac_word=$2 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6324$as_echo_n "checking for $ac_word... " >&6; } 6325if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6326 $as_echo_n "(cached) " >&6 6327else 6328 if test -n "$OBJDUMP"; then 6329 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6330else 6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332for as_dir in $PATH 6333do 6334 IFS=$as_save_IFS 6335 test -z "$as_dir" && as_dir=. 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6338 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6340 break 2 6341 fi 6342done 6343 done 6344IFS=$as_save_IFS 6345 6346fi 6347fi 6348OBJDUMP=$ac_cv_prog_OBJDUMP 6349if test -n "$OBJDUMP"; then 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6351$as_echo "$OBJDUMP" >&6; } 6352else 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6354$as_echo "no" >&6; } 6355fi 6356 6357 6358fi 6359if test -z "$ac_cv_prog_OBJDUMP"; then 6360 ac_ct_OBJDUMP=$OBJDUMP 6361 # Extract the first word of "objdump", so it can be a program name with args. 6362set dummy objdump; ac_word=$2 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6364$as_echo_n "checking for $ac_word... " >&6; } 6365if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 if test -n "$ac_ct_OBJDUMP"; then 6369 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6370else 6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6372for as_dir in $PATH 6373do 6374 IFS=$as_save_IFS 6375 test -z "$as_dir" && as_dir=. 6376 for ac_exec_ext in '' $ac_executable_extensions; do 6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6378 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6380 break 2 6381 fi 6382done 6383 done 6384IFS=$as_save_IFS 6385 6386fi 6387fi 6388ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6389if test -n "$ac_ct_OBJDUMP"; then 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6391$as_echo "$ac_ct_OBJDUMP" >&6; } 6392else 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6394$as_echo "no" >&6; } 6395fi 6396 6397 if test "x$ac_ct_OBJDUMP" = x; then 6398 OBJDUMP="false" 6399 else 6400 case $cross_compiling:$ac_tool_warned in 6401yes:) 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6404ac_tool_warned=yes ;; 6405esac 6406 OBJDUMP=$ac_ct_OBJDUMP 6407 fi 6408else 6409 OBJDUMP="$ac_cv_prog_OBJDUMP" 6410fi 6411 6412test -z "$OBJDUMP" && OBJDUMP=objdump 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6423$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6424if test "${lt_cv_deplibs_check_method+set}" = set; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 lt_cv_file_magic_cmd='$MAGIC_CMD' 6428lt_cv_file_magic_test_file= 6429lt_cv_deplibs_check_method='unknown' 6430# Need to set the preceding variable on all platforms that support 6431# interlibrary dependencies. 6432# 'none' -- dependencies not supported. 6433# `unknown' -- same as none, but documents that we really don't know. 6434# 'pass_all' -- all dependencies passed with no checks. 6435# 'test_compile' -- check by making test program. 6436# 'file_magic [[regex]]' -- check by looking for files in library path 6437# which responds to the $file_magic_cmd with a given extended regex. 6438# If you have `file' or equivalent on your system and you're not sure 6439# whether `pass_all' will *always* work, you probably want this one. 6440 6441case $host_os in 6442aix[4-9]*) 6443 lt_cv_deplibs_check_method=pass_all 6444 ;; 6445 6446beos*) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 6450bsdi[45]*) 6451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6452 lt_cv_file_magic_cmd='/usr/bin/file -L' 6453 lt_cv_file_magic_test_file=/shlib/libc.so 6454 ;; 6455 6456cygwin*) 6457 # func_win32_libid is a shell function defined in ltmain.sh 6458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6459 lt_cv_file_magic_cmd='func_win32_libid' 6460 ;; 6461 6462mingw* | pw32*) 6463 # Base MSYS/MinGW do not provide the 'file' command needed by 6464 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6465 # unless we find 'file', for example because we are cross-compiling. 6466 if ( file / ) >/dev/null 2>&1; then 6467 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6468 lt_cv_file_magic_cmd='func_win32_libid' 6469 else 6470 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6471 lt_cv_file_magic_cmd='$OBJDUMP -f' 6472 fi 6473 ;; 6474 6475cegcc) 6476 # use the weaker test based on 'objdump'. See mingw*. 6477 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6478 lt_cv_file_magic_cmd='$OBJDUMP -f' 6479 ;; 6480 6481darwin* | rhapsody*) 6482 lt_cv_deplibs_check_method=pass_all 6483 ;; 6484 6485freebsd* | dragonfly*) 6486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6487 case $host_cpu in 6488 i*86 ) 6489 # Not sure whether the presence of OpenBSD here was a mistake. 6490 # Let's accept both of them until this is cleared up. 6491 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6492 lt_cv_file_magic_cmd=/usr/bin/file 6493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6494 ;; 6495 esac 6496 else 6497 lt_cv_deplibs_check_method=pass_all 6498 fi 6499 ;; 6500 6501gnu*) 6502 lt_cv_deplibs_check_method=pass_all 6503 ;; 6504 6505hpux10.20* | hpux11*) 6506 lt_cv_file_magic_cmd=/usr/bin/file 6507 case $host_cpu in 6508 ia64*) 6509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6510 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6511 ;; 6512 hppa*64*) 6513 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]' 6514 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6515 ;; 6516 *) 6517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6518 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6519 ;; 6520 esac 6521 ;; 6522 6523interix[3-9]*) 6524 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6526 ;; 6527 6528irix5* | irix6* | nonstopux*) 6529 case $LD in 6530 *-32|*"-32 ") libmagic=32-bit;; 6531 *-n32|*"-n32 ") libmagic=N32;; 6532 *-64|*"-64 ") libmagic=64-bit;; 6533 *) libmagic=never-match;; 6534 esac 6535 lt_cv_deplibs_check_method=pass_all 6536 ;; 6537 6538# This must be Linux ELF. 6539linux* | k*bsd*-gnu) 6540 lt_cv_deplibs_check_method=pass_all 6541 ;; 6542 6543netbsd*) 6544 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6546 else 6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6548 fi 6549 ;; 6550 6551newos6*) 6552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6553 lt_cv_file_magic_cmd=/usr/bin/file 6554 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6555 ;; 6556 6557*nto* | *qnx*) 6558 lt_cv_deplibs_check_method=pass_all 6559 ;; 6560 6561openbsd*) 6562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6564 else 6565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6566 fi 6567 ;; 6568 6569osf3* | osf4* | osf5*) 6570 lt_cv_deplibs_check_method=pass_all 6571 ;; 6572 6573rdos*) 6574 lt_cv_deplibs_check_method=pass_all 6575 ;; 6576 6577solaris*) 6578 lt_cv_deplibs_check_method=pass_all 6579 ;; 6580 6581sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6582 lt_cv_deplibs_check_method=pass_all 6583 ;; 6584 6585sysv4 | sysv4.3*) 6586 case $host_vendor in 6587 motorola) 6588 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]' 6589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6590 ;; 6591 ncr) 6592 lt_cv_deplibs_check_method=pass_all 6593 ;; 6594 sequent) 6595 lt_cv_file_magic_cmd='/bin/file' 6596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6597 ;; 6598 sni) 6599 lt_cv_file_magic_cmd='/bin/file' 6600 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6601 lt_cv_file_magic_test_file=/lib/libc.so 6602 ;; 6603 siemens) 6604 lt_cv_deplibs_check_method=pass_all 6605 ;; 6606 pc) 6607 lt_cv_deplibs_check_method=pass_all 6608 ;; 6609 esac 6610 ;; 6611 6612tpf*) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615esac 6616 6617fi 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6619$as_echo "$lt_cv_deplibs_check_method" >&6; } 6620file_magic_cmd=$lt_cv_file_magic_cmd 6621deplibs_check_method=$lt_cv_deplibs_check_method 6622test -z "$deplibs_check_method" && deplibs_check_method=unknown 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635if test -n "$ac_tool_prefix"; then 6636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6637set dummy ${ac_tool_prefix}ar; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if test "${ac_cv_prog_AR+set}" = set; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$AR"; then 6644 ac_cv_prog_AR="$AR" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 test -z "$as_dir" && as_dir=. 6651 for ac_exec_ext in '' $ac_executable_extensions; do 6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6653 ac_cv_prog_AR="${ac_tool_prefix}ar" 6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6655 break 2 6656 fi 6657done 6658 done 6659IFS=$as_save_IFS 6660 6661fi 6662fi 6663AR=$ac_cv_prog_AR 6664if test -n "$AR"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6666$as_echo "$AR" >&6; } 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; } 6670fi 6671 6672 6673fi 6674if test -z "$ac_cv_prog_AR"; then 6675 ac_ct_AR=$AR 6676 # Extract the first word of "ar", so it can be a program name with args. 6677set dummy ar; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$ac_ct_AR"; then 6684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6693 ac_cv_prog_ac_ct_AR="ar" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703ac_ct_AR=$ac_cv_prog_ac_ct_AR 6704if test -n "$ac_ct_AR"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6706$as_echo "$ac_ct_AR" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 if test "x$ac_ct_AR" = x; then 6713 AR="false" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 AR=$ac_ct_AR 6722 fi 6723else 6724 AR="$ac_cv_prog_AR" 6725fi 6726 6727test -z "$AR" && AR=ar 6728test -z "$AR_FLAGS" && AR_FLAGS=cru 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740if test -n "$ac_tool_prefix"; then 6741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6742set dummy ${ac_tool_prefix}strip; ac_word=$2 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744$as_echo_n "checking for $ac_word... " >&6; } 6745if test "${ac_cv_prog_STRIP+set}" = set; then : 6746 $as_echo_n "(cached) " >&6 6747else 6748 if test -n "$STRIP"; then 6749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6750else 6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6752for as_dir in $PATH 6753do 6754 IFS=$as_save_IFS 6755 test -z "$as_dir" && as_dir=. 6756 for ac_exec_ext in '' $ac_executable_extensions; do 6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6758 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6760 break 2 6761 fi 6762done 6763 done 6764IFS=$as_save_IFS 6765 6766fi 6767fi 6768STRIP=$ac_cv_prog_STRIP 6769if test -n "$STRIP"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6771$as_echo "$STRIP" >&6; } 6772else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774$as_echo "no" >&6; } 6775fi 6776 6777 6778fi 6779if test -z "$ac_cv_prog_STRIP"; then 6780 ac_ct_STRIP=$STRIP 6781 # Extract the first word of "strip", so it can be a program name with args. 6782set dummy strip; ac_word=$2 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6784$as_echo_n "checking for $ac_word... " >&6; } 6785if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 if test -n "$ac_ct_STRIP"; then 6789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 test -z "$as_dir" && as_dir=. 6796 for ac_exec_ext in '' $ac_executable_extensions; do 6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6798 ac_cv_prog_ac_ct_STRIP="strip" 6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6800 break 2 6801 fi 6802done 6803 done 6804IFS=$as_save_IFS 6805 6806fi 6807fi 6808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6809if test -n "$ac_ct_STRIP"; then 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6811$as_echo "$ac_ct_STRIP" >&6; } 6812else 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6814$as_echo "no" >&6; } 6815fi 6816 6817 if test "x$ac_ct_STRIP" = x; then 6818 STRIP=":" 6819 else 6820 case $cross_compiling:$ac_tool_warned in 6821yes:) 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6824ac_tool_warned=yes ;; 6825esac 6826 STRIP=$ac_ct_STRIP 6827 fi 6828else 6829 STRIP="$ac_cv_prog_STRIP" 6830fi 6831 6832test -z "$STRIP" && STRIP=: 6833 6834 6835 6836 6837 6838 6839if test -n "$ac_tool_prefix"; then 6840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6841set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if test "${ac_cv_prog_RANLIB+set}" = set; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$RANLIB"; then 6848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867RANLIB=$ac_cv_prog_RANLIB 6868if test -n "$RANLIB"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6870$as_echo "$RANLIB" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 6877fi 6878if test -z "$ac_cv_prog_RANLIB"; then 6879 ac_ct_RANLIB=$RANLIB 6880 # Extract the first word of "ranlib", so it can be a program name with args. 6881set dummy ranlib; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_RANLIB"; then 6888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6897 ac_cv_prog_ac_ct_RANLIB="ranlib" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6908if test -n "$ac_ct_RANLIB"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6910$as_echo "$ac_ct_RANLIB" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 if test "x$ac_ct_RANLIB" = x; then 6917 RANLIB=":" 6918 else 6919 case $cross_compiling:$ac_tool_warned in 6920yes:) 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6923ac_tool_warned=yes ;; 6924esac 6925 RANLIB=$ac_ct_RANLIB 6926 fi 6927else 6928 RANLIB="$ac_cv_prog_RANLIB" 6929fi 6930 6931test -z "$RANLIB" && RANLIB=: 6932 6933 6934 6935 6936 6937 6938# Determine commands to create old-style static archives. 6939old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6940old_postinstall_cmds='chmod 644 $oldlib' 6941old_postuninstall_cmds= 6942 6943if test -n "$RANLIB"; then 6944 case $host_os in 6945 openbsd*) 6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6947 ;; 6948 *) 6949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6950 ;; 6951 esac 6952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6953fi 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988# If no C compiler was specified, use CC. 6989LTCC=${LTCC-"$CC"} 6990 6991# If no C compiler flags were specified, use CFLAGS. 6992LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6993 6994# Allow CC to be a program name with arguments. 6995compiler=$CC 6996 6997 6998# Check for command to grab the raw symbol name followed by C symbol from nm. 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7000$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7001if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 7005# These are sane defaults that work on at least a few old systems. 7006# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7007 7008# Character class describing NM global symbol codes. 7009symcode='[BCDEGRST]' 7010 7011# Regexp to match symbols that can be accessed directly from C. 7012sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7013 7014# Define system-specific variables. 7015case $host_os in 7016aix*) 7017 symcode='[BCDT]' 7018 ;; 7019cygwin* | mingw* | pw32* | cegcc*) 7020 symcode='[ABCDGISTW]' 7021 ;; 7022hpux*) 7023 if test "$host_cpu" = ia64; then 7024 symcode='[ABCDEGRST]' 7025 fi 7026 ;; 7027irix* | nonstopux*) 7028 symcode='[BCDEGRST]' 7029 ;; 7030osf*) 7031 symcode='[BCDEGQRST]' 7032 ;; 7033solaris*) 7034 symcode='[BDRT]' 7035 ;; 7036sco3.2v5*) 7037 symcode='[DT]' 7038 ;; 7039sysv4.2uw2*) 7040 symcode='[DT]' 7041 ;; 7042sysv5* | sco5v6* | unixware* | OpenUNIX*) 7043 symcode='[ABDT]' 7044 ;; 7045sysv4) 7046 symcode='[DFNSTU]' 7047 ;; 7048esac 7049 7050# If we're using GNU nm, then use its standard symbol codes. 7051case `$NM -V 2>&1` in 7052*GNU* | *'with BFD'*) 7053 symcode='[ABCDGIRSTW]' ;; 7054esac 7055 7056# Transform an extracted symbol line into a proper C declaration. 7057# Some systems (esp. on ia64) link data and code symbols differently, 7058# so use this general approach. 7059lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7060 7061# Transform an extracted symbol line into symbol name and symbol address 7062lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7063lt_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'" 7064 7065# Handle CRLF in mingw tool chain 7066opt_cr= 7067case $build_os in 7068mingw*) 7069 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7070 ;; 7071esac 7072 7073# Try without a prefix underscore, then with it. 7074for ac_symprfx in "" "_"; do 7075 7076 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7077 symxfrm="\\1 $ac_symprfx\\2 \\2" 7078 7079 # Write the raw and C identifiers. 7080 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7081 # Fake it for dumpbin and say T for any non-static function 7082 # and D for any global variable. 7083 # Also find C++ and __fastcall symbols from MSVC++, 7084 # which start with @ or ?. 7085 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7086" {last_section=section; section=\$ 3};"\ 7087" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7088" \$ 0!~/External *\|/{next};"\ 7089" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7090" {if(hide[section]) next};"\ 7091" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7092" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7093" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7094" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7095" ' prfx=^$ac_symprfx" 7096 else 7097 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7098 fi 7099 7100 # Check to see that the pipe works correctly. 7101 pipe_works=no 7102 7103 rm -f conftest* 7104 cat > conftest.$ac_ext <<_LT_EOF 7105#ifdef __cplusplus 7106extern "C" { 7107#endif 7108char nm_test_var; 7109void nm_test_func(void); 7110void nm_test_func(void){} 7111#ifdef __cplusplus 7112} 7113#endif 7114int main(){nm_test_var='a';nm_test_func();return(0);} 7115_LT_EOF 7116 7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7118 (eval $ac_compile) 2>&5 7119 ac_status=$? 7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7121 test $ac_status = 0; }; then 7122 # Now try to grab the symbols. 7123 nlist=conftest.nm 7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7125 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7126 ac_status=$? 7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7128 test $ac_status = 0; } && test -s "$nlist"; then 7129 # Try sorting and uniquifying the output. 7130 if sort "$nlist" | uniq > "$nlist"T; then 7131 mv -f "$nlist"T "$nlist" 7132 else 7133 rm -f "$nlist"T 7134 fi 7135 7136 # Make sure that we snagged all the symbols we need. 7137 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7138 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7139 cat <<_LT_EOF > conftest.$ac_ext 7140#ifdef __cplusplus 7141extern "C" { 7142#endif 7143 7144_LT_EOF 7145 # Now generate the symbol file. 7146 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7147 7148 cat <<_LT_EOF >> conftest.$ac_ext 7149 7150/* The mapping between symbol names and symbols. */ 7151const struct { 7152 const char *name; 7153 void *address; 7154} 7155lt__PROGRAM__LTX_preloaded_symbols[] = 7156{ 7157 { "@PROGRAM@", (void *) 0 }, 7158_LT_EOF 7159 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7160 cat <<\_LT_EOF >> conftest.$ac_ext 7161 {0, (void *) 0} 7162}; 7163 7164/* This works around a problem in FreeBSD linker */ 7165#ifdef FREEBSD_WORKAROUND 7166static const void *lt_preloaded_setup() { 7167 return lt__PROGRAM__LTX_preloaded_symbols; 7168} 7169#endif 7170 7171#ifdef __cplusplus 7172} 7173#endif 7174_LT_EOF 7175 # Now try linking the two files. 7176 mv conftest.$ac_objext conftstm.$ac_objext 7177 lt_save_LIBS="$LIBS" 7178 lt_save_CFLAGS="$CFLAGS" 7179 LIBS="conftstm.$ac_objext" 7180 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7182 (eval $ac_link) 2>&5 7183 ac_status=$? 7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7185 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7186 pipe_works=yes 7187 fi 7188 LIBS="$lt_save_LIBS" 7189 CFLAGS="$lt_save_CFLAGS" 7190 else 7191 echo "cannot find nm_test_func in $nlist" >&5 7192 fi 7193 else 7194 echo "cannot find nm_test_var in $nlist" >&5 7195 fi 7196 else 7197 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7198 fi 7199 else 7200 echo "$progname: failed program was:" >&5 7201 cat conftest.$ac_ext >&5 7202 fi 7203 rm -rf conftest* conftst* 7204 7205 # Do not use the global_symbol_pipe unless it works. 7206 if test "$pipe_works" = yes; then 7207 break 7208 else 7209 lt_cv_sys_global_symbol_pipe= 7210 fi 7211done 7212 7213fi 7214 7215if test -z "$lt_cv_sys_global_symbol_pipe"; then 7216 lt_cv_sys_global_symbol_to_cdecl= 7217fi 7218if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7220$as_echo "failed" >&6; } 7221else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7223$as_echo "ok" >&6; } 7224fi 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247# Check whether --enable-libtool-lock was given. 7248if test "${enable_libtool_lock+set}" = set; then : 7249 enableval=$enable_libtool_lock; 7250fi 7251 7252test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7253 7254# Some flags need to be propagated to the compiler or linker for good 7255# libtool support. 7256case $host in 7257ia64-*-hpux*) 7258 # Find out which ABI we are using. 7259 echo 'int i;' > conftest.$ac_ext 7260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7261 (eval $ac_compile) 2>&5 7262 ac_status=$? 7263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7264 test $ac_status = 0; }; then 7265 case `/usr/bin/file conftest.$ac_objext` in 7266 *ELF-32*) 7267 HPUX_IA64_MODE="32" 7268 ;; 7269 *ELF-64*) 7270 HPUX_IA64_MODE="64" 7271 ;; 7272 esac 7273 fi 7274 rm -rf conftest* 7275 ;; 7276*-*-irix6*) 7277 # Find out which ABI we are using. 7278 echo '#line 7278 "configure"' > conftest.$ac_ext 7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7280 (eval $ac_compile) 2>&5 7281 ac_status=$? 7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7283 test $ac_status = 0; }; then 7284 if test "$lt_cv_prog_gnu_ld" = yes; then 7285 case `/usr/bin/file conftest.$ac_objext` in 7286 *32-bit*) 7287 LD="${LD-ld} -melf32bsmip" 7288 ;; 7289 *N32*) 7290 LD="${LD-ld} -melf32bmipn32" 7291 ;; 7292 *64-bit*) 7293 LD="${LD-ld} -melf64bmip" 7294 ;; 7295 esac 7296 else 7297 case `/usr/bin/file conftest.$ac_objext` in 7298 *32-bit*) 7299 LD="${LD-ld} -32" 7300 ;; 7301 *N32*) 7302 LD="${LD-ld} -n32" 7303 ;; 7304 *64-bit*) 7305 LD="${LD-ld} -64" 7306 ;; 7307 esac 7308 fi 7309 fi 7310 rm -rf conftest* 7311 ;; 7312 7313x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7314s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7315 # Find out which ABI we are using. 7316 echo 'int i;' > conftest.$ac_ext 7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7318 (eval $ac_compile) 2>&5 7319 ac_status=$? 7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7321 test $ac_status = 0; }; then 7322 case `/usr/bin/file conftest.o` in 7323 *32-bit*) 7324 case $host in 7325 x86_64-*kfreebsd*-gnu) 7326 LD="${LD-ld} -m elf_i386_fbsd" 7327 ;; 7328 x86_64-*linux*) 7329 LD="${LD-ld} -m elf_i386" 7330 ;; 7331 ppc64-*linux*|powerpc64-*linux*) 7332 LD="${LD-ld} -m elf32ppclinux" 7333 ;; 7334 s390x-*linux*) 7335 LD="${LD-ld} -m elf_s390" 7336 ;; 7337 sparc64-*linux*) 7338 LD="${LD-ld} -m elf32_sparc" 7339 ;; 7340 esac 7341 ;; 7342 *64-bit*) 7343 case $host in 7344 x86_64-*kfreebsd*-gnu) 7345 LD="${LD-ld} -m elf_x86_64_fbsd" 7346 ;; 7347 x86_64-*linux*) 7348 LD="${LD-ld} -m elf_x86_64" 7349 ;; 7350 ppc*-*linux*|powerpc*-*linux*) 7351 LD="${LD-ld} -m elf64ppc" 7352 ;; 7353 s390*-*linux*|s390*-*tpf*) 7354 LD="${LD-ld} -m elf64_s390" 7355 ;; 7356 sparc*-*linux*) 7357 LD="${LD-ld} -m elf64_sparc" 7358 ;; 7359 esac 7360 ;; 7361 esac 7362 fi 7363 rm -rf conftest* 7364 ;; 7365 7366*-*-sco3.2v5*) 7367 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7368 SAVE_CFLAGS="$CFLAGS" 7369 CFLAGS="$CFLAGS -belf" 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7371$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7372if test "${lt_cv_cc_needs_belf+set}" = set; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 ac_ext=c 7376ac_cpp='$CPP $CPPFLAGS' 7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7379ac_compiler_gnu=$ac_cv_c_compiler_gnu 7380 7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7382/* end confdefs.h. */ 7383 7384int 7385main () 7386{ 7387 7388 ; 7389 return 0; 7390} 7391_ACEOF 7392if ac_fn_c_try_link "$LINENO"; then : 7393 lt_cv_cc_needs_belf=yes 7394else 7395 lt_cv_cc_needs_belf=no 7396fi 7397rm -f core conftest.err conftest.$ac_objext \ 7398 conftest$ac_exeext conftest.$ac_ext 7399 ac_ext=c 7400ac_cpp='$CPP $CPPFLAGS' 7401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7403ac_compiler_gnu=$ac_cv_c_compiler_gnu 7404 7405fi 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7407$as_echo "$lt_cv_cc_needs_belf" >&6; } 7408 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7410 CFLAGS="$SAVE_CFLAGS" 7411 fi 7412 ;; 7413sparc*-*solaris*) 7414 # Find out which ABI we are using. 7415 echo 'int i;' > conftest.$ac_ext 7416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7417 (eval $ac_compile) 2>&5 7418 ac_status=$? 7419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7420 test $ac_status = 0; }; then 7421 case `/usr/bin/file conftest.o` in 7422 *64-bit*) 7423 case $lt_cv_prog_gnu_ld in 7424 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7425 *) 7426 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7427 LD="${LD-ld} -64" 7428 fi 7429 ;; 7430 esac 7431 ;; 7432 esac 7433 fi 7434 rm -rf conftest* 7435 ;; 7436esac 7437 7438need_locks="$enable_libtool_lock" 7439 7440 7441 case $host_os in 7442 rhapsody* | darwin*) 7443 if test -n "$ac_tool_prefix"; then 7444 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7445set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447$as_echo_n "checking for $ac_word... " >&6; } 7448if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 if test -n "$DSYMUTIL"; then 7452 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7453else 7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7455for as_dir in $PATH 7456do 7457 IFS=$as_save_IFS 7458 test -z "$as_dir" && as_dir=. 7459 for ac_exec_ext in '' $ac_executable_extensions; do 7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7461 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7463 break 2 7464 fi 7465done 7466 done 7467IFS=$as_save_IFS 7468 7469fi 7470fi 7471DSYMUTIL=$ac_cv_prog_DSYMUTIL 7472if test -n "$DSYMUTIL"; then 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7474$as_echo "$DSYMUTIL" >&6; } 7475else 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7477$as_echo "no" >&6; } 7478fi 7479 7480 7481fi 7482if test -z "$ac_cv_prog_DSYMUTIL"; then 7483 ac_ct_DSYMUTIL=$DSYMUTIL 7484 # Extract the first word of "dsymutil", so it can be a program name with args. 7485set dummy dsymutil; ac_word=$2 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7487$as_echo_n "checking for $ac_word... " >&6; } 7488if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 if test -n "$ac_ct_DSYMUTIL"; then 7492 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7493else 7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7495for as_dir in $PATH 7496do 7497 IFS=$as_save_IFS 7498 test -z "$as_dir" && as_dir=. 7499 for ac_exec_ext in '' $ac_executable_extensions; do 7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7501 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7503 break 2 7504 fi 7505done 7506 done 7507IFS=$as_save_IFS 7508 7509fi 7510fi 7511ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7512if test -n "$ac_ct_DSYMUTIL"; then 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7514$as_echo "$ac_ct_DSYMUTIL" >&6; } 7515else 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7517$as_echo "no" >&6; } 7518fi 7519 7520 if test "x$ac_ct_DSYMUTIL" = x; then 7521 DSYMUTIL=":" 7522 else 7523 case $cross_compiling:$ac_tool_warned in 7524yes:) 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7527ac_tool_warned=yes ;; 7528esac 7529 DSYMUTIL=$ac_ct_DSYMUTIL 7530 fi 7531else 7532 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7533fi 7534 7535 if test -n "$ac_tool_prefix"; then 7536 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7537set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7539$as_echo_n "checking for $ac_word... " >&6; } 7540if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 if test -n "$NMEDIT"; then 7544 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7545else 7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7547for as_dir in $PATH 7548do 7549 IFS=$as_save_IFS 7550 test -z "$as_dir" && as_dir=. 7551 for ac_exec_ext in '' $ac_executable_extensions; do 7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7553 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7555 break 2 7556 fi 7557done 7558 done 7559IFS=$as_save_IFS 7560 7561fi 7562fi 7563NMEDIT=$ac_cv_prog_NMEDIT 7564if test -n "$NMEDIT"; then 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7566$as_echo "$NMEDIT" >&6; } 7567else 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7569$as_echo "no" >&6; } 7570fi 7571 7572 7573fi 7574if test -z "$ac_cv_prog_NMEDIT"; then 7575 ac_ct_NMEDIT=$NMEDIT 7576 # Extract the first word of "nmedit", so it can be a program name with args. 7577set dummy nmedit; ac_word=$2 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579$as_echo_n "checking for $ac_word... " >&6; } 7580if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 if test -n "$ac_ct_NMEDIT"; then 7584 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7585else 7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587for as_dir in $PATH 7588do 7589 IFS=$as_save_IFS 7590 test -z "$as_dir" && as_dir=. 7591 for ac_exec_ext in '' $ac_executable_extensions; do 7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7593 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7595 break 2 7596 fi 7597done 7598 done 7599IFS=$as_save_IFS 7600 7601fi 7602fi 7603ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7604if test -n "$ac_ct_NMEDIT"; then 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7606$as_echo "$ac_ct_NMEDIT" >&6; } 7607else 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609$as_echo "no" >&6; } 7610fi 7611 7612 if test "x$ac_ct_NMEDIT" = x; then 7613 NMEDIT=":" 7614 else 7615 case $cross_compiling:$ac_tool_warned in 7616yes:) 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7619ac_tool_warned=yes ;; 7620esac 7621 NMEDIT=$ac_ct_NMEDIT 7622 fi 7623else 7624 NMEDIT="$ac_cv_prog_NMEDIT" 7625fi 7626 7627 if test -n "$ac_tool_prefix"; then 7628 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7629set dummy ${ac_tool_prefix}lipo; ac_word=$2 7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7631$as_echo_n "checking for $ac_word... " >&6; } 7632if test "${ac_cv_prog_LIPO+set}" = set; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 if test -n "$LIPO"; then 7636 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7637else 7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7639for as_dir in $PATH 7640do 7641 IFS=$as_save_IFS 7642 test -z "$as_dir" && as_dir=. 7643 for ac_exec_ext in '' $ac_executable_extensions; do 7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7645 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7647 break 2 7648 fi 7649done 7650 done 7651IFS=$as_save_IFS 7652 7653fi 7654fi 7655LIPO=$ac_cv_prog_LIPO 7656if test -n "$LIPO"; then 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7658$as_echo "$LIPO" >&6; } 7659else 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7661$as_echo "no" >&6; } 7662fi 7663 7664 7665fi 7666if test -z "$ac_cv_prog_LIPO"; then 7667 ac_ct_LIPO=$LIPO 7668 # Extract the first word of "lipo", so it can be a program name with args. 7669set dummy lipo; ac_word=$2 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7671$as_echo_n "checking for $ac_word... " >&6; } 7672if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7673 $as_echo_n "(cached) " >&6 7674else 7675 if test -n "$ac_ct_LIPO"; then 7676 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7677else 7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7679for as_dir in $PATH 7680do 7681 IFS=$as_save_IFS 7682 test -z "$as_dir" && as_dir=. 7683 for ac_exec_ext in '' $ac_executable_extensions; do 7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7685 ac_cv_prog_ac_ct_LIPO="lipo" 7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7687 break 2 7688 fi 7689done 7690 done 7691IFS=$as_save_IFS 7692 7693fi 7694fi 7695ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7696if test -n "$ac_ct_LIPO"; then 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7698$as_echo "$ac_ct_LIPO" >&6; } 7699else 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7701$as_echo "no" >&6; } 7702fi 7703 7704 if test "x$ac_ct_LIPO" = x; then 7705 LIPO=":" 7706 else 7707 case $cross_compiling:$ac_tool_warned in 7708yes:) 7709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7711ac_tool_warned=yes ;; 7712esac 7713 LIPO=$ac_ct_LIPO 7714 fi 7715else 7716 LIPO="$ac_cv_prog_LIPO" 7717fi 7718 7719 if test -n "$ac_tool_prefix"; then 7720 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7721set dummy ${ac_tool_prefix}otool; ac_word=$2 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7723$as_echo_n "checking for $ac_word... " >&6; } 7724if test "${ac_cv_prog_OTOOL+set}" = set; then : 7725 $as_echo_n "(cached) " >&6 7726else 7727 if test -n "$OTOOL"; then 7728 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7729else 7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7731for as_dir in $PATH 7732do 7733 IFS=$as_save_IFS 7734 test -z "$as_dir" && as_dir=. 7735 for ac_exec_ext in '' $ac_executable_extensions; do 7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7737 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7739 break 2 7740 fi 7741done 7742 done 7743IFS=$as_save_IFS 7744 7745fi 7746fi 7747OTOOL=$ac_cv_prog_OTOOL 7748if test -n "$OTOOL"; then 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7750$as_echo "$OTOOL" >&6; } 7751else 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7753$as_echo "no" >&6; } 7754fi 7755 7756 7757fi 7758if test -z "$ac_cv_prog_OTOOL"; then 7759 ac_ct_OTOOL=$OTOOL 7760 # Extract the first word of "otool", so it can be a program name with args. 7761set dummy otool; ac_word=$2 7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7763$as_echo_n "checking for $ac_word... " >&6; } 7764if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7765 $as_echo_n "(cached) " >&6 7766else 7767 if test -n "$ac_ct_OTOOL"; then 7768 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7769else 7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7771for as_dir in $PATH 7772do 7773 IFS=$as_save_IFS 7774 test -z "$as_dir" && as_dir=. 7775 for ac_exec_ext in '' $ac_executable_extensions; do 7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7777 ac_cv_prog_ac_ct_OTOOL="otool" 7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7779 break 2 7780 fi 7781done 7782 done 7783IFS=$as_save_IFS 7784 7785fi 7786fi 7787ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7788if test -n "$ac_ct_OTOOL"; then 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7790$as_echo "$ac_ct_OTOOL" >&6; } 7791else 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7793$as_echo "no" >&6; } 7794fi 7795 7796 if test "x$ac_ct_OTOOL" = x; then 7797 OTOOL=":" 7798 else 7799 case $cross_compiling:$ac_tool_warned in 7800yes:) 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7803ac_tool_warned=yes ;; 7804esac 7805 OTOOL=$ac_ct_OTOOL 7806 fi 7807else 7808 OTOOL="$ac_cv_prog_OTOOL" 7809fi 7810 7811 if test -n "$ac_tool_prefix"; then 7812 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7813set dummy ${ac_tool_prefix}otool64; ac_word=$2 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7815$as_echo_n "checking for $ac_word... " >&6; } 7816if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7817 $as_echo_n "(cached) " >&6 7818else 7819 if test -n "$OTOOL64"; then 7820 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7821else 7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7823for as_dir in $PATH 7824do 7825 IFS=$as_save_IFS 7826 test -z "$as_dir" && as_dir=. 7827 for ac_exec_ext in '' $ac_executable_extensions; do 7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7829 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7831 break 2 7832 fi 7833done 7834 done 7835IFS=$as_save_IFS 7836 7837fi 7838fi 7839OTOOL64=$ac_cv_prog_OTOOL64 7840if test -n "$OTOOL64"; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7842$as_echo "$OTOOL64" >&6; } 7843else 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7845$as_echo "no" >&6; } 7846fi 7847 7848 7849fi 7850if test -z "$ac_cv_prog_OTOOL64"; then 7851 ac_ct_OTOOL64=$OTOOL64 7852 # Extract the first word of "otool64", so it can be a program name with args. 7853set dummy otool64; ac_word=$2 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7855$as_echo_n "checking for $ac_word... " >&6; } 7856if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 if test -n "$ac_ct_OTOOL64"; then 7860 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7861else 7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7863for as_dir in $PATH 7864do 7865 IFS=$as_save_IFS 7866 test -z "$as_dir" && as_dir=. 7867 for ac_exec_ext in '' $ac_executable_extensions; do 7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7869 ac_cv_prog_ac_ct_OTOOL64="otool64" 7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7871 break 2 7872 fi 7873done 7874 done 7875IFS=$as_save_IFS 7876 7877fi 7878fi 7879ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7880if test -n "$ac_ct_OTOOL64"; then 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7882$as_echo "$ac_ct_OTOOL64" >&6; } 7883else 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7885$as_echo "no" >&6; } 7886fi 7887 7888 if test "x$ac_ct_OTOOL64" = x; then 7889 OTOOL64=":" 7890 else 7891 case $cross_compiling:$ac_tool_warned in 7892yes:) 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7895ac_tool_warned=yes ;; 7896esac 7897 OTOOL64=$ac_ct_OTOOL64 7898 fi 7899else 7900 OTOOL64="$ac_cv_prog_OTOOL64" 7901fi 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7930$as_echo_n "checking for -single_module linker flag... " >&6; } 7931if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 lt_cv_apple_cc_single_mod=no 7935 if test -z "${LT_MULTI_MODULE}"; then 7936 # By default we will add the -single_module flag. You can override 7937 # by either setting the environment variable LT_MULTI_MODULE 7938 # non-empty at configure time, or by adding -multi_module to the 7939 # link flags. 7940 rm -rf libconftest.dylib* 7941 echo "int foo(void){return 1;}" > conftest.c 7942 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7943-dynamiclib -Wl,-single_module conftest.c" >&5 7944 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7945 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7946 _lt_result=$? 7947 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7948 lt_cv_apple_cc_single_mod=yes 7949 else 7950 cat conftest.err >&5 7951 fi 7952 rm -rf libconftest.dylib* 7953 rm -f conftest.* 7954 fi 7955fi 7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7957$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7959$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7960if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 lt_cv_ld_exported_symbols_list=no 7964 save_LDFLAGS=$LDFLAGS 7965 echo "_main" > conftest.sym 7966 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969 7970int 7971main () 7972{ 7973 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978if ac_fn_c_try_link "$LINENO"; then : 7979 lt_cv_ld_exported_symbols_list=yes 7980else 7981 lt_cv_ld_exported_symbols_list=no 7982fi 7983rm -f core conftest.err conftest.$ac_objext \ 7984 conftest$ac_exeext conftest.$ac_ext 7985 LDFLAGS="$save_LDFLAGS" 7986 7987fi 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7989$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7990 case $host_os in 7991 rhapsody* | darwin1.[012]) 7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7993 darwin1.*) 7994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7995 darwin*) # darwin 5.x on 7996 # if running on 10.5 or later, the deployment target defaults 7997 # to the OS version, if on x86, and 10.4, the deployment 7998 # target defaults to 10.4. Don't you love it? 7999 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8000 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8001 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8002 10.[012]*) 8003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8004 10.*) 8005 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8006 esac 8007 ;; 8008 esac 8009 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8010 _lt_dar_single_mod='$single_module' 8011 fi 8012 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8013 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8014 else 8015 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8016 fi 8017 if test "$DSYMUTIL" != ":"; then 8018 _lt_dsymutil='~$DSYMUTIL $lib || :' 8019 else 8020 _lt_dsymutil= 8021 fi 8022 ;; 8023 esac 8024 8025for ac_header in dlfcn.h 8026do : 8027 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8028" 8029if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8030 cat >>confdefs.h <<_ACEOF 8031#define HAVE_DLFCN_H 1 8032_ACEOF 8033 8034fi 8035 8036done 8037 8038 8039 8040# Set options 8041 8042 8043 8044 enable_dlopen=no 8045 8046 8047 enable_win32_dll=no 8048 8049 8050 # Check whether --enable-shared was given. 8051if test "${enable_shared+set}" = set; then : 8052 enableval=$enable_shared; p=${PACKAGE-default} 8053 case $enableval in 8054 yes) enable_shared=yes ;; 8055 no) enable_shared=no ;; 8056 *) 8057 enable_shared=no 8058 # Look at the argument we got. We use all the common list separators. 8059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8060 for pkg in $enableval; do 8061 IFS="$lt_save_ifs" 8062 if test "X$pkg" = "X$p"; then 8063 enable_shared=yes 8064 fi 8065 done 8066 IFS="$lt_save_ifs" 8067 ;; 8068 esac 8069else 8070 enable_shared=yes 8071fi 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 # Check whether --enable-static was given. 8082if test "${enable_static+set}" = set; then : 8083 enableval=$enable_static; p=${PACKAGE-default} 8084 case $enableval in 8085 yes) enable_static=yes ;; 8086 no) enable_static=no ;; 8087 *) 8088 enable_static=no 8089 # Look at the argument we got. We use all the common list separators. 8090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8091 for pkg in $enableval; do 8092 IFS="$lt_save_ifs" 8093 if test "X$pkg" = "X$p"; then 8094 enable_static=yes 8095 fi 8096 done 8097 IFS="$lt_save_ifs" 8098 ;; 8099 esac 8100else 8101 enable_static=yes 8102fi 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113# Check whether --with-pic was given. 8114if test "${with_pic+set}" = set; then : 8115 withval=$with_pic; pic_mode="$withval" 8116else 8117 pic_mode=default 8118fi 8119 8120 8121test -z "$pic_mode" && pic_mode=default 8122 8123 8124 8125 8126 8127 8128 8129 # Check whether --enable-fast-install was given. 8130if test "${enable_fast_install+set}" = set; then : 8131 enableval=$enable_fast_install; p=${PACKAGE-default} 8132 case $enableval in 8133 yes) enable_fast_install=yes ;; 8134 no) enable_fast_install=no ;; 8135 *) 8136 enable_fast_install=no 8137 # Look at the argument we got. We use all the common list separators. 8138 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8139 for pkg in $enableval; do 8140 IFS="$lt_save_ifs" 8141 if test "X$pkg" = "X$p"; then 8142 enable_fast_install=yes 8143 fi 8144 done 8145 IFS="$lt_save_ifs" 8146 ;; 8147 esac 8148else 8149 enable_fast_install=yes 8150fi 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162# This can be used to rebuild libtool when needed 8163LIBTOOL_DEPS="$ltmain" 8164 8165# Always use our own libtool. 8166LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192test -z "$LN_S" && LN_S="ln -s" 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207if test -n "${ZSH_VERSION+set}" ; then 8208 setopt NO_GLOB_SUBST 8209fi 8210 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8212$as_echo_n "checking for objdir... " >&6; } 8213if test "${lt_cv_objdir+set}" = set; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 rm -f .libs 2>/dev/null 8217mkdir .libs 2>/dev/null 8218if test -d .libs; then 8219 lt_cv_objdir=.libs 8220else 8221 # MS-DOS does not allow filenames that begin with a dot. 8222 lt_cv_objdir=_libs 8223fi 8224rmdir .libs 2>/dev/null 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8227$as_echo "$lt_cv_objdir" >&6; } 8228objdir=$lt_cv_objdir 8229 8230 8231 8232 8233 8234cat >>confdefs.h <<_ACEOF 8235#define LT_OBJDIR "$lt_cv_objdir/" 8236_ACEOF 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254case $host_os in 8255aix3*) 8256 # AIX sometimes has problems with the GCC collect2 program. For some 8257 # reason, if we set the COLLECT_NAMES environment variable, the problems 8258 # vanish in a puff of smoke. 8259 if test "X${COLLECT_NAMES+set}" != Xset; then 8260 COLLECT_NAMES= 8261 export COLLECT_NAMES 8262 fi 8263 ;; 8264esac 8265 8266# Sed substitution that helps us do robust quoting. It backslashifies 8267# metacharacters that are still active within double-quoted strings. 8268sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8269 8270# Same as above, but do not quote variable references. 8271double_quote_subst='s/\(["`\\]\)/\\\1/g' 8272 8273# Sed substitution to delay expansion of an escaped shell variable in a 8274# double_quote_subst'ed string. 8275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8276 8277# Sed substitution to delay expansion of an escaped single quote. 8278delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8279 8280# Sed substitution to avoid accidental globbing in evaled expressions 8281no_glob_subst='s/\*/\\\*/g' 8282 8283# Global variables: 8284ofile=libtool 8285can_build_shared=yes 8286 8287# All known linkers require a `.a' archive for static linking (except MSVC, 8288# which needs '.lib'). 8289libext=a 8290 8291with_gnu_ld="$lt_cv_prog_gnu_ld" 8292 8293old_CC="$CC" 8294old_CFLAGS="$CFLAGS" 8295 8296# Set sane defaults for various variables 8297test -z "$CC" && CC=cc 8298test -z "$LTCC" && LTCC=$CC 8299test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8300test -z "$LD" && LD=ld 8301test -z "$ac_objext" && ac_objext=o 8302 8303for cc_temp in $compiler""; do 8304 case $cc_temp in 8305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8307 \-*) ;; 8308 *) break;; 8309 esac 8310done 8311cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8312 8313 8314# Only perform the check for file, if the check method requires it 8315test -z "$MAGIC_CMD" && MAGIC_CMD=file 8316case $deplibs_check_method in 8317file_magic*) 8318 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8320$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8321if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 case $MAGIC_CMD in 8325[\\/*] | ?:[\\/]*) 8326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8327 ;; 8328*) 8329 lt_save_MAGIC_CMD="$MAGIC_CMD" 8330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8332 for ac_dir in $ac_dummy; do 8333 IFS="$lt_save_ifs" 8334 test -z "$ac_dir" && ac_dir=. 8335 if test -f $ac_dir/${ac_tool_prefix}file; then 8336 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8337 if test -n "$file_magic_test_file"; then 8338 case $deplibs_check_method in 8339 "file_magic "*) 8340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8343 $EGREP "$file_magic_regex" > /dev/null; then 8344 : 8345 else 8346 cat <<_LT_EOF 1>&2 8347 8348*** Warning: the command libtool uses to detect shared libraries, 8349*** $file_magic_cmd, produces output that libtool cannot recognize. 8350*** The result is that libtool may fail to recognize shared libraries 8351*** as such. This will affect the creation of libtool libraries that 8352*** depend on shared libraries, but programs linked with such libtool 8353*** libraries will work regardless of this problem. Nevertheless, you 8354*** may want to report the problem to your system manager and/or to 8355*** bug-libtool@gnu.org 8356 8357_LT_EOF 8358 fi ;; 8359 esac 8360 fi 8361 break 8362 fi 8363 done 8364 IFS="$lt_save_ifs" 8365 MAGIC_CMD="$lt_save_MAGIC_CMD" 8366 ;; 8367esac 8368fi 8369 8370MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8371if test -n "$MAGIC_CMD"; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8373$as_echo "$MAGIC_CMD" >&6; } 8374else 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376$as_echo "no" >&6; } 8377fi 8378 8379 8380 8381 8382 8383if test -z "$lt_cv_path_MAGIC_CMD"; then 8384 if test -n "$ac_tool_prefix"; then 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8386$as_echo_n "checking for file... " >&6; } 8387if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 case $MAGIC_CMD in 8391[\\/*] | ?:[\\/]*) 8392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8393 ;; 8394*) 8395 lt_save_MAGIC_CMD="$MAGIC_CMD" 8396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8398 for ac_dir in $ac_dummy; do 8399 IFS="$lt_save_ifs" 8400 test -z "$ac_dir" && ac_dir=. 8401 if test -f $ac_dir/file; then 8402 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8403 if test -n "$file_magic_test_file"; then 8404 case $deplibs_check_method in 8405 "file_magic "*) 8406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8409 $EGREP "$file_magic_regex" > /dev/null; then 8410 : 8411 else 8412 cat <<_LT_EOF 1>&2 8413 8414*** Warning: the command libtool uses to detect shared libraries, 8415*** $file_magic_cmd, produces output that libtool cannot recognize. 8416*** The result is that libtool may fail to recognize shared libraries 8417*** as such. This will affect the creation of libtool libraries that 8418*** depend on shared libraries, but programs linked with such libtool 8419*** libraries will work regardless of this problem. Nevertheless, you 8420*** may want to report the problem to your system manager and/or to 8421*** bug-libtool@gnu.org 8422 8423_LT_EOF 8424 fi ;; 8425 esac 8426 fi 8427 break 8428 fi 8429 done 8430 IFS="$lt_save_ifs" 8431 MAGIC_CMD="$lt_save_MAGIC_CMD" 8432 ;; 8433esac 8434fi 8435 8436MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8437if test -n "$MAGIC_CMD"; then 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8439$as_echo "$MAGIC_CMD" >&6; } 8440else 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8442$as_echo "no" >&6; } 8443fi 8444 8445 8446 else 8447 MAGIC_CMD=: 8448 fi 8449fi 8450 8451 fi 8452 ;; 8453esac 8454 8455# Use C for the default configuration in the libtool script 8456 8457lt_save_CC="$CC" 8458ac_ext=c 8459ac_cpp='$CPP $CPPFLAGS' 8460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8462ac_compiler_gnu=$ac_cv_c_compiler_gnu 8463 8464 8465# Source file extension for C test sources. 8466ac_ext=c 8467 8468# Object file extension for compiled C test sources. 8469objext=o 8470objext=$objext 8471 8472# Code to be used in simple compile tests 8473lt_simple_compile_test_code="int some_variable = 0;" 8474 8475# Code to be used in simple link tests 8476lt_simple_link_test_code='int main(){return(0);}' 8477 8478 8479 8480 8481 8482 8483 8484# If no C compiler was specified, use CC. 8485LTCC=${LTCC-"$CC"} 8486 8487# If no C compiler flags were specified, use CFLAGS. 8488LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8489 8490# Allow CC to be a program name with arguments. 8491compiler=$CC 8492 8493# Save the default compiler, since it gets overwritten when the other 8494# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8495compiler_DEFAULT=$CC 8496 8497# save warnings/boilerplate of simple test code 8498ac_outfile=conftest.$ac_objext 8499echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8500eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8501_lt_compiler_boilerplate=`cat conftest.err` 8502$RM conftest* 8503 8504ac_outfile=conftest.$ac_objext 8505echo "$lt_simple_link_test_code" >conftest.$ac_ext 8506eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8507_lt_linker_boilerplate=`cat conftest.err` 8508$RM -r conftest* 8509 8510 8511## CAVEAT EMPTOR: 8512## There is no encapsulation within the following macros, do not change 8513## the running order or otherwise move them around unless you know exactly 8514## what you are doing... 8515if test -n "$compiler"; then 8516 8517lt_prog_compiler_no_builtin_flag= 8518 8519if test "$GCC" = yes; then 8520 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8521 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8523$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8524if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 lt_cv_prog_compiler_rtti_exceptions=no 8528 ac_outfile=conftest.$ac_objext 8529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8530 lt_compiler_flag="-fno-rtti -fno-exceptions" 8531 # Insert the option either (1) after the last *FLAGS variable, or 8532 # (2) before a word containing "conftest.", or (3) at the end. 8533 # Note that $ac_compile itself does not contain backslashes and begins 8534 # with a dollar sign (not a hyphen), so the echo should work correctly. 8535 # The option is referenced via a variable to avoid confusing sed. 8536 lt_compile=`echo "$ac_compile" | $SED \ 8537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8539 -e 's:$: $lt_compiler_flag:'` 8540 (eval echo "\"\$as_me:8540: $lt_compile\"" >&5) 8541 (eval "$lt_compile" 2>conftest.err) 8542 ac_status=$? 8543 cat conftest.err >&5 8544 echo "$as_me:8544: \$? = $ac_status" >&5 8545 if (exit $ac_status) && test -s "$ac_outfile"; then 8546 # The compiler can only warn and ignore the option if not recognized 8547 # So say no if there are warnings other than the usual output. 8548 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8551 lt_cv_prog_compiler_rtti_exceptions=yes 8552 fi 8553 fi 8554 $RM conftest* 8555 8556fi 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8558$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8559 8560if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8561 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8562else 8563 : 8564fi 8565 8566fi 8567 8568 8569 8570 8571 8572 8573 lt_prog_compiler_wl= 8574lt_prog_compiler_pic= 8575lt_prog_compiler_static= 8576 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8578$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8579 8580 if test "$GCC" = yes; then 8581 lt_prog_compiler_wl='-Wl,' 8582 lt_prog_compiler_static='-static' 8583 8584 case $host_os in 8585 aix*) 8586 # All AIX code is PIC. 8587 if test "$host_cpu" = ia64; then 8588 # AIX 5 now supports IA64 processor 8589 lt_prog_compiler_static='-Bstatic' 8590 fi 8591 ;; 8592 8593 amigaos*) 8594 case $host_cpu in 8595 powerpc) 8596 # see comment about AmigaOS4 .so support 8597 lt_prog_compiler_pic='-fPIC' 8598 ;; 8599 m68k) 8600 # FIXME: we need at least 68020 code to build shared libraries, but 8601 # adding the `-m68020' flag to GCC prevents building anything better, 8602 # like `-m68040'. 8603 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8604 ;; 8605 esac 8606 ;; 8607 8608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8609 # PIC is the default for these OSes. 8610 ;; 8611 8612 mingw* | cygwin* | pw32* | os2* | cegcc*) 8613 # This hack is so that the source file can tell whether it is being 8614 # built for inclusion in a dll (and should export symbols for example). 8615 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8616 # (--disable-auto-import) libraries 8617 lt_prog_compiler_pic='-DDLL_EXPORT' 8618 ;; 8619 8620 darwin* | rhapsody*) 8621 # PIC is the default on this platform 8622 # Common symbols not allowed in MH_DYLIB files 8623 lt_prog_compiler_pic='-fno-common' 8624 ;; 8625 8626 hpux*) 8627 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8628 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8629 # sets the default TLS model and affects inlining. 8630 case $host_cpu in 8631 hppa*64*) 8632 # +Z the default 8633 ;; 8634 *) 8635 lt_prog_compiler_pic='-fPIC' 8636 ;; 8637 esac 8638 ;; 8639 8640 interix[3-9]*) 8641 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8642 # Instead, we relocate shared libraries at runtime. 8643 ;; 8644 8645 msdosdjgpp*) 8646 # Just because we use GCC doesn't mean we suddenly get shared libraries 8647 # on systems that don't support them. 8648 lt_prog_compiler_can_build_shared=no 8649 enable_shared=no 8650 ;; 8651 8652 *nto* | *qnx*) 8653 # QNX uses GNU C++, but need to define -shared option too, otherwise 8654 # it will coredump. 8655 lt_prog_compiler_pic='-fPIC -shared' 8656 ;; 8657 8658 sysv4*MP*) 8659 if test -d /usr/nec; then 8660 lt_prog_compiler_pic=-Kconform_pic 8661 fi 8662 ;; 8663 8664 *) 8665 lt_prog_compiler_pic='-fPIC' 8666 ;; 8667 esac 8668 else 8669 # PORTME Check for flag to pass linker flags through the system compiler. 8670 case $host_os in 8671 aix*) 8672 lt_prog_compiler_wl='-Wl,' 8673 if test "$host_cpu" = ia64; then 8674 # AIX 5 now supports IA64 processor 8675 lt_prog_compiler_static='-Bstatic' 8676 else 8677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8678 fi 8679 ;; 8680 8681 mingw* | cygwin* | pw32* | os2* | cegcc*) 8682 # This hack is so that the source file can tell whether it is being 8683 # built for inclusion in a dll (and should export symbols for example). 8684 lt_prog_compiler_pic='-DDLL_EXPORT' 8685 ;; 8686 8687 hpux9* | hpux10* | hpux11*) 8688 lt_prog_compiler_wl='-Wl,' 8689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8690 # not for PA HP-UX. 8691 case $host_cpu in 8692 hppa*64*|ia64*) 8693 # +Z the default 8694 ;; 8695 *) 8696 lt_prog_compiler_pic='+Z' 8697 ;; 8698 esac 8699 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8700 lt_prog_compiler_static='${wl}-a ${wl}archive' 8701 ;; 8702 8703 irix5* | irix6* | nonstopux*) 8704 lt_prog_compiler_wl='-Wl,' 8705 # PIC (with -KPIC) is the default. 8706 lt_prog_compiler_static='-non_shared' 8707 ;; 8708 8709 linux* | k*bsd*-gnu) 8710 case $cc_basename in 8711 # old Intel for x86_64 which still supported -KPIC. 8712 ecc*) 8713 lt_prog_compiler_wl='-Wl,' 8714 lt_prog_compiler_pic='-KPIC' 8715 lt_prog_compiler_static='-static' 8716 ;; 8717 # icc used to be incompatible with GCC. 8718 # ICC 10 doesn't accept -KPIC any more. 8719 icc* | ifort*) 8720 lt_prog_compiler_wl='-Wl,' 8721 lt_prog_compiler_pic='-fPIC' 8722 lt_prog_compiler_static='-static' 8723 ;; 8724 # Lahey Fortran 8.1. 8725 lf95*) 8726 lt_prog_compiler_wl='-Wl,' 8727 lt_prog_compiler_pic='--shared' 8728 lt_prog_compiler_static='--static' 8729 ;; 8730 pgcc* | pgf77* | pgf90* | pgf95*) 8731 # Portland Group compilers (*not* the Pentium gcc compiler, 8732 # which looks to be a dead project) 8733 lt_prog_compiler_wl='-Wl,' 8734 lt_prog_compiler_pic='-fpic' 8735 lt_prog_compiler_static='-Bstatic' 8736 ;; 8737 ccc*) 8738 lt_prog_compiler_wl='-Wl,' 8739 # All Alpha code is PIC. 8740 lt_prog_compiler_static='-non_shared' 8741 ;; 8742 xl*) 8743 # IBM XL C 8.0/Fortran 10.1 on PPC 8744 lt_prog_compiler_wl='-Wl,' 8745 lt_prog_compiler_pic='-qpic' 8746 lt_prog_compiler_static='-qstaticlink' 8747 ;; 8748 *) 8749 case `$CC -V 2>&1 | sed 5q` in 8750 *Sun\ C*) 8751 # Sun C 5.9 8752 lt_prog_compiler_pic='-KPIC' 8753 lt_prog_compiler_static='-Bstatic' 8754 lt_prog_compiler_wl='-Wl,' 8755 ;; 8756 *Sun\ F*) 8757 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8758 lt_prog_compiler_pic='-KPIC' 8759 lt_prog_compiler_static='-Bstatic' 8760 lt_prog_compiler_wl='' 8761 ;; 8762 esac 8763 ;; 8764 esac 8765 ;; 8766 8767 newsos6) 8768 lt_prog_compiler_pic='-KPIC' 8769 lt_prog_compiler_static='-Bstatic' 8770 ;; 8771 8772 *nto* | *qnx*) 8773 # QNX uses GNU C++, but need to define -shared option too, otherwise 8774 # it will coredump. 8775 lt_prog_compiler_pic='-fPIC -shared' 8776 ;; 8777 8778 osf3* | osf4* | osf5*) 8779 lt_prog_compiler_wl='-Wl,' 8780 # All OSF/1 code is PIC. 8781 lt_prog_compiler_static='-non_shared' 8782 ;; 8783 8784 rdos*) 8785 lt_prog_compiler_static='-non_shared' 8786 ;; 8787 8788 solaris*) 8789 lt_prog_compiler_pic='-KPIC' 8790 lt_prog_compiler_static='-Bstatic' 8791 case $cc_basename in 8792 f77* | f90* | f95*) 8793 lt_prog_compiler_wl='-Qoption ld ';; 8794 *) 8795 lt_prog_compiler_wl='-Wl,';; 8796 esac 8797 ;; 8798 8799 sunos4*) 8800 lt_prog_compiler_wl='-Qoption ld ' 8801 lt_prog_compiler_pic='-PIC' 8802 lt_prog_compiler_static='-Bstatic' 8803 ;; 8804 8805 sysv4 | sysv4.2uw2* | sysv4.3*) 8806 lt_prog_compiler_wl='-Wl,' 8807 lt_prog_compiler_pic='-KPIC' 8808 lt_prog_compiler_static='-Bstatic' 8809 ;; 8810 8811 sysv4*MP*) 8812 if test -d /usr/nec ;then 8813 lt_prog_compiler_pic='-Kconform_pic' 8814 lt_prog_compiler_static='-Bstatic' 8815 fi 8816 ;; 8817 8818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8819 lt_prog_compiler_wl='-Wl,' 8820 lt_prog_compiler_pic='-KPIC' 8821 lt_prog_compiler_static='-Bstatic' 8822 ;; 8823 8824 unicos*) 8825 lt_prog_compiler_wl='-Wl,' 8826 lt_prog_compiler_can_build_shared=no 8827 ;; 8828 8829 uts4*) 8830 lt_prog_compiler_pic='-pic' 8831 lt_prog_compiler_static='-Bstatic' 8832 ;; 8833 8834 *) 8835 lt_prog_compiler_can_build_shared=no 8836 ;; 8837 esac 8838 fi 8839 8840case $host_os in 8841 # For platforms which do not support PIC, -DPIC is meaningless: 8842 *djgpp*) 8843 lt_prog_compiler_pic= 8844 ;; 8845 *) 8846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8847 ;; 8848esac 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8850$as_echo "$lt_prog_compiler_pic" >&6; } 8851 8852 8853 8854 8855 8856 8857# 8858# Check to make sure the PIC flag actually works. 8859# 8860if test -n "$lt_prog_compiler_pic"; then 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8862$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8863if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 lt_cv_prog_compiler_pic_works=no 8867 ac_outfile=conftest.$ac_objext 8868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8870 # Insert the option either (1) after the last *FLAGS variable, or 8871 # (2) before a word containing "conftest.", or (3) at the end. 8872 # Note that $ac_compile itself does not contain backslashes and begins 8873 # with a dollar sign (not a hyphen), so the echo should work correctly. 8874 # The option is referenced via a variable to avoid confusing sed. 8875 lt_compile=`echo "$ac_compile" | $SED \ 8876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8878 -e 's:$: $lt_compiler_flag:'` 8879 (eval echo "\"\$as_me:8879: $lt_compile\"" >&5) 8880 (eval "$lt_compile" 2>conftest.err) 8881 ac_status=$? 8882 cat conftest.err >&5 8883 echo "$as_me:8883: \$? = $ac_status" >&5 8884 if (exit $ac_status) && test -s "$ac_outfile"; then 8885 # The compiler can only warn and ignore the option if not recognized 8886 # So say no if there are warnings other than the usual output. 8887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8890 lt_cv_prog_compiler_pic_works=yes 8891 fi 8892 fi 8893 $RM conftest* 8894 8895fi 8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8897$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8898 8899if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8900 case $lt_prog_compiler_pic in 8901 "" | " "*) ;; 8902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8903 esac 8904else 8905 lt_prog_compiler_pic= 8906 lt_prog_compiler_can_build_shared=no 8907fi 8908 8909fi 8910 8911 8912 8913 8914 8915 8916# 8917# Check to make sure the static flag actually works. 8918# 8919wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8921$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8922if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8923 $as_echo_n "(cached) " >&6 8924else 8925 lt_cv_prog_compiler_static_works=no 8926 save_LDFLAGS="$LDFLAGS" 8927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8928 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8930 # The linker can only warn and ignore the option if not recognized 8931 # So say no if there are warnings 8932 if test -s conftest.err; then 8933 # Append any errors to the config.log. 8934 cat conftest.err 1>&5 8935 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8937 if diff conftest.exp conftest.er2 >/dev/null; then 8938 lt_cv_prog_compiler_static_works=yes 8939 fi 8940 else 8941 lt_cv_prog_compiler_static_works=yes 8942 fi 8943 fi 8944 $RM -r conftest* 8945 LDFLAGS="$save_LDFLAGS" 8946 8947fi 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8949$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8950 8951if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8952 : 8953else 8954 lt_prog_compiler_static= 8955fi 8956 8957 8958 8959 8960 8961 8962 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8964$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8965if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8966 $as_echo_n "(cached) " >&6 8967else 8968 lt_cv_prog_compiler_c_o=no 8969 $RM -r conftest 2>/dev/null 8970 mkdir conftest 8971 cd conftest 8972 mkdir out 8973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8974 8975 lt_compiler_flag="-o out/conftest2.$ac_objext" 8976 # Insert the option either (1) after the last *FLAGS variable, or 8977 # (2) before a word containing "conftest.", or (3) at the end. 8978 # Note that $ac_compile itself does not contain backslashes and begins 8979 # with a dollar sign (not a hyphen), so the echo should work correctly. 8980 lt_compile=`echo "$ac_compile" | $SED \ 8981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8983 -e 's:$: $lt_compiler_flag:'` 8984 (eval echo "\"\$as_me:8984: $lt_compile\"" >&5) 8985 (eval "$lt_compile" 2>out/conftest.err) 8986 ac_status=$? 8987 cat out/conftest.err >&5 8988 echo "$as_me:8988: \$? = $ac_status" >&5 8989 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8990 then 8991 # The compiler can only warn and ignore the option if not recognized 8992 # So say no if there are warnings 8993 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8996 lt_cv_prog_compiler_c_o=yes 8997 fi 8998 fi 8999 chmod u+w . 2>&5 9000 $RM conftest* 9001 # SGI C++ compiler will create directory out/ii_files/ for 9002 # template instantiation 9003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9004 $RM out/* && rmdir out 9005 cd .. 9006 $RM -r conftest 9007 $RM conftest* 9008 9009fi 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9011$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9012 9013 9014 9015 9016 9017 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9020if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 lt_cv_prog_compiler_c_o=no 9024 $RM -r conftest 2>/dev/null 9025 mkdir conftest 9026 cd conftest 9027 mkdir out 9028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9029 9030 lt_compiler_flag="-o out/conftest2.$ac_objext" 9031 # Insert the option either (1) after the last *FLAGS variable, or 9032 # (2) before a word containing "conftest.", or (3) at the end. 9033 # Note that $ac_compile itself does not contain backslashes and begins 9034 # with a dollar sign (not a hyphen), so the echo should work correctly. 9035 lt_compile=`echo "$ac_compile" | $SED \ 9036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9038 -e 's:$: $lt_compiler_flag:'` 9039 (eval echo "\"\$as_me:9039: $lt_compile\"" >&5) 9040 (eval "$lt_compile" 2>out/conftest.err) 9041 ac_status=$? 9042 cat out/conftest.err >&5 9043 echo "$as_me:9043: \$? = $ac_status" >&5 9044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9045 then 9046 # The compiler can only warn and ignore the option if not recognized 9047 # So say no if there are warnings 9048 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9051 lt_cv_prog_compiler_c_o=yes 9052 fi 9053 fi 9054 chmod u+w . 2>&5 9055 $RM conftest* 9056 # SGI C++ compiler will create directory out/ii_files/ for 9057 # template instantiation 9058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9059 $RM out/* && rmdir out 9060 cd .. 9061 $RM -r conftest 9062 $RM conftest* 9063 9064fi 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9066$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9067 9068 9069 9070 9071hard_links="nottested" 9072if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9073 # do not overwrite the value of need_locks provided by the user 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9075$as_echo_n "checking if we can lock with hard links... " >&6; } 9076 hard_links=yes 9077 $RM conftest* 9078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9079 touch conftest.a 9080 ln conftest.a conftest.b 2>&5 || hard_links=no 9081 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9083$as_echo "$hard_links" >&6; } 9084 if test "$hard_links" = no; then 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9086$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9087 need_locks=warn 9088 fi 9089else 9090 need_locks=no 9091fi 9092 9093 9094 9095 9096 9097 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9099$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9100 9101 runpath_var= 9102 allow_undefined_flag= 9103 always_export_symbols=no 9104 archive_cmds= 9105 archive_expsym_cmds= 9106 compiler_needs_object=no 9107 enable_shared_with_static_runtimes=no 9108 export_dynamic_flag_spec= 9109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9110 hardcode_automatic=no 9111 hardcode_direct=no 9112 hardcode_direct_absolute=no 9113 hardcode_libdir_flag_spec= 9114 hardcode_libdir_flag_spec_ld= 9115 hardcode_libdir_separator= 9116 hardcode_minus_L=no 9117 hardcode_shlibpath_var=unsupported 9118 inherit_rpath=no 9119 link_all_deplibs=unknown 9120 module_cmds= 9121 module_expsym_cmds= 9122 old_archive_from_new_cmds= 9123 old_archive_from_expsyms_cmds= 9124 thread_safe_flag_spec= 9125 whole_archive_flag_spec= 9126 # include_expsyms should be a list of space-separated symbols to be *always* 9127 # included in the symbol list 9128 include_expsyms= 9129 # exclude_expsyms can be an extended regexp of symbols to exclude 9130 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9132 # as well as any symbol that contains `d'. 9133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9135 # platforms (ab)use it in PIC code, but their linkers get confused if 9136 # the symbol is explicitly referenced. Since portable code cannot 9137 # rely on this symbol name, it's probably fine to never include it in 9138 # preloaded symbol tables. 9139 # Exclude shared library initialization/finalization symbols. 9140 extract_expsyms_cmds= 9141 9142 case $host_os in 9143 cygwin* | mingw* | pw32* | cegcc*) 9144 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9145 # When not using gcc, we currently assume that we are using 9146 # Microsoft Visual C++. 9147 if test "$GCC" != yes; then 9148 with_gnu_ld=no 9149 fi 9150 ;; 9151 interix*) 9152 # we just hope/assume this is gcc and not c89 (= MSVC++) 9153 with_gnu_ld=yes 9154 ;; 9155 openbsd*) 9156 with_gnu_ld=no 9157 ;; 9158 esac 9159 9160 ld_shlibs=yes 9161 if test "$with_gnu_ld" = yes; then 9162 # If archive_cmds runs LD, not CC, wlarc should be empty 9163 wlarc='${wl}' 9164 9165 # Set some defaults for GNU ld with shared library support. These 9166 # are reset later if shared libraries are not supported. Putting them 9167 # here allows them to be overridden if necessary. 9168 runpath_var=LD_RUN_PATH 9169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9170 export_dynamic_flag_spec='${wl}--export-dynamic' 9171 # ancient GNU ld didn't support --whole-archive et. al. 9172 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9174 else 9175 whole_archive_flag_spec= 9176 fi 9177 supports_anon_versioning=no 9178 case `$LD -v 2>&1` in 9179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9182 *\ 2.11.*) ;; # other 2.11 versions 9183 *) supports_anon_versioning=yes ;; 9184 esac 9185 9186 # See if GNU ld supports shared libraries. 9187 case $host_os in 9188 aix[3-9]*) 9189 # On AIX/PPC, the GNU linker is very broken 9190 if test "$host_cpu" != ia64; then 9191 ld_shlibs=no 9192 cat <<_LT_EOF 1>&2 9193 9194*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9195*** to be unable to reliably create shared libraries on AIX. 9196*** Therefore, libtool is disabling shared libraries support. If you 9197*** really care for shared libraries, you may want to modify your PATH 9198*** so that a non-GNU linker is found, and then restart. 9199 9200_LT_EOF 9201 fi 9202 ;; 9203 9204 amigaos*) 9205 case $host_cpu in 9206 powerpc) 9207 # see comment about AmigaOS4 .so support 9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9209 archive_expsym_cmds='' 9210 ;; 9211 m68k) 9212 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)' 9213 hardcode_libdir_flag_spec='-L$libdir' 9214 hardcode_minus_L=yes 9215 ;; 9216 esac 9217 ;; 9218 9219 beos*) 9220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9221 allow_undefined_flag=unsupported 9222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9223 # support --undefined. This deserves some investigation. FIXME 9224 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9225 else 9226 ld_shlibs=no 9227 fi 9228 ;; 9229 9230 cygwin* | mingw* | pw32* | cegcc*) 9231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9232 # as there is no search path for DLLs. 9233 hardcode_libdir_flag_spec='-L$libdir' 9234 allow_undefined_flag=unsupported 9235 always_export_symbols=no 9236 enable_shared_with_static_runtimes=yes 9237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9238 9239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9241 # If the export-symbols file already is a .def file (1st line 9242 # is EXPORTS), use it as is; otherwise, prepend... 9243 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9244 cp $export_symbols $output_objdir/$soname.def; 9245 else 9246 echo EXPORTS > $output_objdir/$soname.def; 9247 cat $export_symbols >> $output_objdir/$soname.def; 9248 fi~ 9249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9250 else 9251 ld_shlibs=no 9252 fi 9253 ;; 9254 9255 interix[3-9]*) 9256 hardcode_direct=no 9257 hardcode_shlibpath_var=no 9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9259 export_dynamic_flag_spec='${wl}-E' 9260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9261 # Instead, shared libraries are loaded at an image base (0x10000000 by 9262 # default) and relocated if they conflict, which is a slow very memory 9263 # consuming and fragmenting process. To avoid this, we pick a random, 9264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9265 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9267 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' 9268 ;; 9269 9270 gnu* | linux* | tpf* | k*bsd*-gnu) 9271 tmp_diet=no 9272 if test "$host_os" = linux-dietlibc; then 9273 case $cc_basename in 9274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9275 esac 9276 fi 9277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9278 && test "$tmp_diet" = no 9279 then 9280 tmp_addflag= 9281 tmp_sharedflag='-shared' 9282 case $cc_basename,$host_cpu in 9283 pgcc*) # Portland Group C compiler 9284 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' 9285 tmp_addflag=' $pic_flag' 9286 ;; 9287 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9288 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' 9289 tmp_addflag=' $pic_flag -Mnomain' ;; 9290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9291 tmp_addflag=' -i_dynamic' ;; 9292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9293 tmp_addflag=' -i_dynamic -nofor_main' ;; 9294 ifc* | ifort*) # Intel Fortran compiler 9295 tmp_addflag=' -nofor_main' ;; 9296 lf95*) # Lahey Fortran 8.1 9297 whole_archive_flag_spec= 9298 tmp_sharedflag='--shared' ;; 9299 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9300 tmp_sharedflag='-qmkshrobj' 9301 tmp_addflag= ;; 9302 esac 9303 case `$CC -V 2>&1 | sed 5q` in 9304 *Sun\ C*) # Sun C 5.9 9305 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' 9306 compiler_needs_object=yes 9307 tmp_sharedflag='-G' ;; 9308 *Sun\ F*) # Sun Fortran 8.3 9309 tmp_sharedflag='-G' ;; 9310 esac 9311 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9312 9313 if test "x$supports_anon_versioning" = xyes; then 9314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9316 echo "local: *; };" >> $output_objdir/$libname.ver~ 9317 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9318 fi 9319 9320 case $cc_basename in 9321 xlf*) 9322 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9323 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9324 hardcode_libdir_flag_spec= 9325 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9326 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9327 if test "x$supports_anon_versioning" = xyes; then 9328 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9329 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9330 echo "local: *; };" >> $output_objdir/$libname.ver~ 9331 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9332 fi 9333 ;; 9334 esac 9335 else 9336 ld_shlibs=no 9337 fi 9338 ;; 9339 9340 netbsd*) 9341 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9342 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9343 wlarc= 9344 else 9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9347 fi 9348 ;; 9349 9350 solaris*) 9351 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9352 ld_shlibs=no 9353 cat <<_LT_EOF 1>&2 9354 9355*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9356*** create shared libraries on Solaris systems. Therefore, libtool 9357*** is disabling shared libraries support. We urge you to upgrade GNU 9358*** binutils to release 2.9.1 or newer. Another option is to modify 9359*** your PATH or compiler configuration so that the native linker is 9360*** used, and then restart. 9361 9362_LT_EOF 9363 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9366 else 9367 ld_shlibs=no 9368 fi 9369 ;; 9370 9371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9372 case `$LD -v 2>&1` in 9373 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9374 ld_shlibs=no 9375 cat <<_LT_EOF 1>&2 9376 9377*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9378*** reliably create shared libraries on SCO systems. Therefore, libtool 9379*** is disabling shared libraries support. We urge you to upgrade GNU 9380*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9381*** your PATH or compiler configuration so that the native linker is 9382*** used, and then restart. 9383 9384_LT_EOF 9385 ;; 9386 *) 9387 # For security reasons, it is highly recommended that you always 9388 # use absolute paths for naming shared libraries, and exclude the 9389 # DT_RUNPATH tag from executables and libraries. But doing so 9390 # requires that you compile everything twice, which is a pain. 9391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9395 else 9396 ld_shlibs=no 9397 fi 9398 ;; 9399 esac 9400 ;; 9401 9402 sunos4*) 9403 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9404 wlarc= 9405 hardcode_direct=yes 9406 hardcode_shlibpath_var=no 9407 ;; 9408 9409 *) 9410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9413 else 9414 ld_shlibs=no 9415 fi 9416 ;; 9417 esac 9418 9419 if test "$ld_shlibs" = no; then 9420 runpath_var= 9421 hardcode_libdir_flag_spec= 9422 export_dynamic_flag_spec= 9423 whole_archive_flag_spec= 9424 fi 9425 else 9426 # PORTME fill in a description of your system's linker (not GNU ld) 9427 case $host_os in 9428 aix3*) 9429 allow_undefined_flag=unsupported 9430 always_export_symbols=yes 9431 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' 9432 # Note: this linker hardcodes the directories in LIBPATH if there 9433 # are no directories specified by -L. 9434 hardcode_minus_L=yes 9435 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9436 # Neither direct hardcoding nor static linking is supported with a 9437 # broken collect2. 9438 hardcode_direct=unsupported 9439 fi 9440 ;; 9441 9442 aix[4-9]*) 9443 if test "$host_cpu" = ia64; then 9444 # On IA64, the linker does run time linking by default, so we don't 9445 # have to do anything special. 9446 aix_use_runtimelinking=no 9447 exp_sym_flag='-Bexport' 9448 no_entry_flag="" 9449 else 9450 # If we're using GNU nm, then we don't want the "-C" option. 9451 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9452 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9453 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' 9454 else 9455 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' 9456 fi 9457 aix_use_runtimelinking=no 9458 9459 # Test if we are trying to use run time linking or normal 9460 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9461 # need to do runtime linking. 9462 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9463 for ld_flag in $LDFLAGS; do 9464 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9465 aix_use_runtimelinking=yes 9466 break 9467 fi 9468 done 9469 ;; 9470 esac 9471 9472 exp_sym_flag='-bexport' 9473 no_entry_flag='-bnoentry' 9474 fi 9475 9476 # When large executables or shared objects are built, AIX ld can 9477 # have problems creating the table of contents. If linking a library 9478 # or program results in "error TOC overflow" add -mminimal-toc to 9479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9481 9482 archive_cmds='' 9483 hardcode_direct=yes 9484 hardcode_direct_absolute=yes 9485 hardcode_libdir_separator=':' 9486 link_all_deplibs=yes 9487 file_list_spec='${wl}-f,' 9488 9489 if test "$GCC" = yes; then 9490 case $host_os in aix4.[012]|aix4.[012].*) 9491 # We only want to do this on AIX 4.2 and lower, the check 9492 # below for broken collect2 doesn't work under 4.3+ 9493 collect2name=`${CC} -print-prog-name=collect2` 9494 if test -f "$collect2name" && 9495 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9496 then 9497 # We have reworked collect2 9498 : 9499 else 9500 # We have old collect2 9501 hardcode_direct=unsupported 9502 # It fails to find uninstalled libraries when the uninstalled 9503 # path is not listed in the libpath. Setting hardcode_minus_L 9504 # to unsupported forces relinking 9505 hardcode_minus_L=yes 9506 hardcode_libdir_flag_spec='-L$libdir' 9507 hardcode_libdir_separator= 9508 fi 9509 ;; 9510 esac 9511 shared_flag='-shared' 9512 if test "$aix_use_runtimelinking" = yes; then 9513 shared_flag="$shared_flag "'${wl}-G' 9514 fi 9515 else 9516 # not using gcc 9517 if test "$host_cpu" = ia64; then 9518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9519 # chokes on -Wl,-G. The following line is correct: 9520 shared_flag='-G' 9521 else 9522 if test "$aix_use_runtimelinking" = yes; then 9523 shared_flag='${wl}-G' 9524 else 9525 shared_flag='${wl}-bM:SRE' 9526 fi 9527 fi 9528 fi 9529 9530 export_dynamic_flag_spec='${wl}-bexpall' 9531 # It seems that -bexpall does not export symbols beginning with 9532 # underscore (_), so it is better to generate a list of symbols to export. 9533 always_export_symbols=yes 9534 if test "$aix_use_runtimelinking" = yes; then 9535 # Warning - without using the other runtime loading flags (-brtl), 9536 # -berok will link without error, but may produce a broken library. 9537 allow_undefined_flag='-berok' 9538 # Determine the default libpath from the value encoded in an 9539 # empty executable. 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542 9543int 9544main () 9545{ 9546 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551if ac_fn_c_try_link "$LINENO"; then : 9552 9553lt_aix_libpath_sed=' 9554 /Import File Strings/,/^$/ { 9555 /^0/ { 9556 s/^0 *\(.*\)$/\1/ 9557 p 9558 } 9559 }' 9560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9561# Check for a 64-bit object if we didn't find anything. 9562if test -z "$aix_libpath"; then 9563 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9564fi 9565fi 9566rm -f core conftest.err conftest.$ac_objext \ 9567 conftest$ac_exeext conftest.$ac_ext 9568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9569 9570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9571 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" 9572 else 9573 if test "$host_cpu" = ia64; then 9574 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9575 allow_undefined_flag="-z nodefs" 9576 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" 9577 else 9578 # Determine the default libpath from the value encoded in an 9579 # empty executable. 9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582 9583int 9584main () 9585{ 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_link "$LINENO"; then : 9592 9593lt_aix_libpath_sed=' 9594 /Import File Strings/,/^$/ { 9595 /^0/ { 9596 s/^0 *\(.*\)$/\1/ 9597 p 9598 } 9599 }' 9600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9601# Check for a 64-bit object if we didn't find anything. 9602if test -z "$aix_libpath"; then 9603 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9604fi 9605fi 9606rm -f core conftest.err conftest.$ac_objext \ 9607 conftest$ac_exeext conftest.$ac_ext 9608if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9609 9610 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9611 # Warning - without using the other run time loading flags, 9612 # -berok will link without error, but may produce a broken library. 9613 no_undefined_flag=' ${wl}-bernotok' 9614 allow_undefined_flag=' ${wl}-berok' 9615 # Exported symbols can be pulled into shared objects from archives 9616 whole_archive_flag_spec='$convenience' 9617 archive_cmds_need_lc=yes 9618 # This is similar to how AIX traditionally builds its shared libraries. 9619 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' 9620 fi 9621 fi 9622 ;; 9623 9624 amigaos*) 9625 case $host_cpu in 9626 powerpc) 9627 # see comment about AmigaOS4 .so support 9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9629 archive_expsym_cmds='' 9630 ;; 9631 m68k) 9632 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)' 9633 hardcode_libdir_flag_spec='-L$libdir' 9634 hardcode_minus_L=yes 9635 ;; 9636 esac 9637 ;; 9638 9639 bsdi[45]*) 9640 export_dynamic_flag_spec=-rdynamic 9641 ;; 9642 9643 cygwin* | mingw* | pw32* | cegcc*) 9644 # When not using gcc, we currently assume that we are using 9645 # Microsoft Visual C++. 9646 # hardcode_libdir_flag_spec is actually meaningless, as there is 9647 # no search path for DLLs. 9648 hardcode_libdir_flag_spec=' ' 9649 allow_undefined_flag=unsupported 9650 # Tell ltmain to make .lib files, not .a files. 9651 libext=lib 9652 # Tell ltmain to make .dll files, not .so files. 9653 shrext_cmds=".dll" 9654 # FIXME: Setting linknames here is a bad hack. 9655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9656 # The linker will automatically build a .lib file if we build a DLL. 9657 old_archive_from_new_cmds='true' 9658 # FIXME: Should let the user specify the lib program. 9659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9660 fix_srcfile_path='`cygpath -w "$srcfile"`' 9661 enable_shared_with_static_runtimes=yes 9662 ;; 9663 9664 darwin* | rhapsody*) 9665 9666 9667 archive_cmds_need_lc=no 9668 hardcode_direct=no 9669 hardcode_automatic=yes 9670 hardcode_shlibpath_var=unsupported 9671 whole_archive_flag_spec='' 9672 link_all_deplibs=yes 9673 allow_undefined_flag="$_lt_dar_allow_undefined" 9674 case $cc_basename in 9675 ifort*) _lt_dar_can_shared=yes ;; 9676 *) _lt_dar_can_shared=$GCC ;; 9677 esac 9678 if test "$_lt_dar_can_shared" = "yes"; then 9679 output_verbose_link_cmd=echo 9680 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9681 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9682 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}" 9683 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}" 9684 9685 else 9686 ld_shlibs=no 9687 fi 9688 9689 ;; 9690 9691 dgux*) 9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9693 hardcode_libdir_flag_spec='-L$libdir' 9694 hardcode_shlibpath_var=no 9695 ;; 9696 9697 freebsd1*) 9698 ld_shlibs=no 9699 ;; 9700 9701 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9702 # support. Future versions do this automatically, but an explicit c++rt0.o 9703 # does not break anything, and helps significantly (at the cost of a little 9704 # extra space). 9705 freebsd2.2*) 9706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9707 hardcode_libdir_flag_spec='-R$libdir' 9708 hardcode_direct=yes 9709 hardcode_shlibpath_var=no 9710 ;; 9711 9712 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9713 freebsd2*) 9714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9715 hardcode_direct=yes 9716 hardcode_minus_L=yes 9717 hardcode_shlibpath_var=no 9718 ;; 9719 9720 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9721 freebsd* | dragonfly*) 9722 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9723 hardcode_libdir_flag_spec='-R$libdir' 9724 hardcode_direct=yes 9725 hardcode_shlibpath_var=no 9726 ;; 9727 9728 hpux9*) 9729 if test "$GCC" = yes; then 9730 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' 9731 else 9732 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' 9733 fi 9734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9735 hardcode_libdir_separator=: 9736 hardcode_direct=yes 9737 9738 # hardcode_minus_L: Not really in the search PATH, 9739 # but as the default location of the library. 9740 hardcode_minus_L=yes 9741 export_dynamic_flag_spec='${wl}-E' 9742 ;; 9743 9744 hpux10*) 9745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9746 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9747 else 9748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9749 fi 9750 if test "$with_gnu_ld" = no; then 9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9752 hardcode_libdir_flag_spec_ld='+b $libdir' 9753 hardcode_libdir_separator=: 9754 hardcode_direct=yes 9755 hardcode_direct_absolute=yes 9756 export_dynamic_flag_spec='${wl}-E' 9757 # hardcode_minus_L: Not really in the search PATH, 9758 # but as the default location of the library. 9759 hardcode_minus_L=yes 9760 fi 9761 ;; 9762 9763 hpux11*) 9764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9765 case $host_cpu in 9766 hppa*64*) 9767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9768 ;; 9769 ia64*) 9770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9771 ;; 9772 *) 9773 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9774 ;; 9775 esac 9776 else 9777 case $host_cpu in 9778 hppa*64*) 9779 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9780 ;; 9781 ia64*) 9782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9783 ;; 9784 *) 9785 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9786 ;; 9787 esac 9788 fi 9789 if test "$with_gnu_ld" = no; then 9790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9791 hardcode_libdir_separator=: 9792 9793 case $host_cpu in 9794 hppa*64*|ia64*) 9795 hardcode_direct=no 9796 hardcode_shlibpath_var=no 9797 ;; 9798 *) 9799 hardcode_direct=yes 9800 hardcode_direct_absolute=yes 9801 export_dynamic_flag_spec='${wl}-E' 9802 9803 # hardcode_minus_L: Not really in the search PATH, 9804 # but as the default location of the library. 9805 hardcode_minus_L=yes 9806 ;; 9807 esac 9808 fi 9809 ;; 9810 9811 irix5* | irix6* | nonstopux*) 9812 if test "$GCC" = yes; then 9813 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' 9814 # Try to use the -exported_symbol ld option, if it does not 9815 # work, assume that -exports_file does not work either and 9816 # implicitly export all symbols. 9817 save_LDFLAGS="$LDFLAGS" 9818 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int foo(void) {} 9822_ACEOF 9823if ac_fn_c_try_link "$LINENO"; then : 9824 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' 9825 9826fi 9827rm -f core conftest.err conftest.$ac_objext \ 9828 conftest$ac_exeext conftest.$ac_ext 9829 LDFLAGS="$save_LDFLAGS" 9830 else 9831 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' 9832 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' 9833 fi 9834 archive_cmds_need_lc='no' 9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9836 hardcode_libdir_separator=: 9837 inherit_rpath=yes 9838 link_all_deplibs=yes 9839 ;; 9840 9841 netbsd*) 9842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9844 else 9845 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9846 fi 9847 hardcode_libdir_flag_spec='-R$libdir' 9848 hardcode_direct=yes 9849 hardcode_shlibpath_var=no 9850 ;; 9851 9852 newsos6) 9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9854 hardcode_direct=yes 9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9856 hardcode_libdir_separator=: 9857 hardcode_shlibpath_var=no 9858 ;; 9859 9860 *nto* | *qnx*) 9861 ;; 9862 9863 openbsd*) 9864 if test -f /usr/libexec/ld.so; then 9865 hardcode_direct=yes 9866 hardcode_shlibpath_var=no 9867 hardcode_direct_absolute=yes 9868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9870 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9872 export_dynamic_flag_spec='${wl}-E' 9873 else 9874 case $host_os in 9875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9877 hardcode_libdir_flag_spec='-R$libdir' 9878 ;; 9879 *) 9880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9882 ;; 9883 esac 9884 fi 9885 else 9886 ld_shlibs=no 9887 fi 9888 ;; 9889 9890 os2*) 9891 hardcode_libdir_flag_spec='-L$libdir' 9892 hardcode_minus_L=yes 9893 allow_undefined_flag=unsupported 9894 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' 9895 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9896 ;; 9897 9898 osf3*) 9899 if test "$GCC" = yes; then 9900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9901 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' 9902 else 9903 allow_undefined_flag=' -expect_unresolved \*' 9904 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' 9905 fi 9906 archive_cmds_need_lc='no' 9907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9908 hardcode_libdir_separator=: 9909 ;; 9910 9911 osf4* | osf5*) # as osf3* with the addition of -msym flag 9912 if test "$GCC" = yes; then 9913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9914 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' 9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9916 else 9917 allow_undefined_flag=' -expect_unresolved \*' 9918 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' 9919 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~ 9920 $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' 9921 9922 # Both c and cxx compiler support -rpath directly 9923 hardcode_libdir_flag_spec='-rpath $libdir' 9924 fi 9925 archive_cmds_need_lc='no' 9926 hardcode_libdir_separator=: 9927 ;; 9928 9929 solaris*) 9930 no_undefined_flag=' -z defs' 9931 if test "$GCC" = yes; then 9932 wlarc='${wl}' 9933 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9935 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9936 else 9937 case `$CC -V 2>&1` in 9938 *"Compilers 5.0"*) 9939 wlarc='' 9940 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9942 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9943 ;; 9944 *) 9945 wlarc='${wl}' 9946 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9948 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9949 ;; 9950 esac 9951 fi 9952 hardcode_libdir_flag_spec='-R$libdir' 9953 hardcode_shlibpath_var=no 9954 case $host_os in 9955 solaris2.[0-5] | solaris2.[0-5].*) ;; 9956 *) 9957 # The compiler driver will combine and reorder linker options, 9958 # but understands `-z linker_flag'. GCC discards it without `$wl', 9959 # but is careful enough not to reorder. 9960 # Supported since Solaris 2.6 (maybe 2.5.1?) 9961 if test "$GCC" = yes; then 9962 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9963 else 9964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9965 fi 9966 ;; 9967 esac 9968 link_all_deplibs=yes 9969 ;; 9970 9971 sunos4*) 9972 if test "x$host_vendor" = xsequent; then 9973 # Use $CC to link under sequent, because it throws in some extra .o 9974 # files that make .init and .fini sections work. 9975 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9976 else 9977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9978 fi 9979 hardcode_libdir_flag_spec='-L$libdir' 9980 hardcode_direct=yes 9981 hardcode_minus_L=yes 9982 hardcode_shlibpath_var=no 9983 ;; 9984 9985 sysv4) 9986 case $host_vendor in 9987 sni) 9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9989 hardcode_direct=yes # is this really true??? 9990 ;; 9991 siemens) 9992 ## LD is ld it makes a PLAMLIB 9993 ## CC just makes a GrossModule. 9994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9995 reload_cmds='$CC -r -o $output$reload_objs' 9996 hardcode_direct=no 9997 ;; 9998 motorola) 9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10001 ;; 10002 esac 10003 runpath_var='LD_RUN_PATH' 10004 hardcode_shlibpath_var=no 10005 ;; 10006 10007 sysv4.3*) 10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10009 hardcode_shlibpath_var=no 10010 export_dynamic_flag_spec='-Bexport' 10011 ;; 10012 10013 sysv4*MP*) 10014 if test -d /usr/nec; then 10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10016 hardcode_shlibpath_var=no 10017 runpath_var=LD_RUN_PATH 10018 hardcode_runpath_var=yes 10019 ld_shlibs=yes 10020 fi 10021 ;; 10022 10023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10024 no_undefined_flag='${wl}-z,text' 10025 archive_cmds_need_lc=no 10026 hardcode_shlibpath_var=no 10027 runpath_var='LD_RUN_PATH' 10028 10029 if test "$GCC" = yes; then 10030 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10031 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10032 else 10033 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10034 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10035 fi 10036 ;; 10037 10038 sysv5* | sco3.2v5* | sco5v6*) 10039 # Note: We can NOT use -z defs as we might desire, because we do not 10040 # link with -lc, and that would cause any symbols used from libc to 10041 # always be unresolved, which means just about no library would 10042 # ever link correctly. If we're not using GNU ld we use -z text 10043 # though, which does catch some bad symbols but isn't as heavy-handed 10044 # as -z defs. 10045 no_undefined_flag='${wl}-z,text' 10046 allow_undefined_flag='${wl}-z,nodefs' 10047 archive_cmds_need_lc=no 10048 hardcode_shlibpath_var=no 10049 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10050 hardcode_libdir_separator=':' 10051 link_all_deplibs=yes 10052 export_dynamic_flag_spec='${wl}-Bexport' 10053 runpath_var='LD_RUN_PATH' 10054 10055 if test "$GCC" = yes; then 10056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10058 else 10059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10061 fi 10062 ;; 10063 10064 uts4*) 10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10066 hardcode_libdir_flag_spec='-L$libdir' 10067 hardcode_shlibpath_var=no 10068 ;; 10069 10070 *) 10071 ld_shlibs=no 10072 ;; 10073 esac 10074 10075 if test x$host_vendor = xsni; then 10076 case $host in 10077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10078 export_dynamic_flag_spec='${wl}-Blargedynsym' 10079 ;; 10080 esac 10081 fi 10082 fi 10083 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10085$as_echo "$ld_shlibs" >&6; } 10086test "$ld_shlibs" = no && can_build_shared=no 10087 10088with_gnu_ld=$with_gnu_ld 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104# 10105# Do we need to explicitly link libc? 10106# 10107case "x$archive_cmds_need_lc" in 10108x|xyes) 10109 # Assume -lc should be added 10110 archive_cmds_need_lc=yes 10111 10112 if test "$enable_shared" = yes && test "$GCC" = yes; then 10113 case $archive_cmds in 10114 *'~'*) 10115 # FIXME: we may have to deal with multi-command sequences. 10116 ;; 10117 '$CC '*) 10118 # Test whether the compiler implicitly links with -lc since on some 10119 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10120 # to ld, don't add -lc before -lgcc. 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10122$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10123 $RM conftest* 10124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10125 10126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10127 (eval $ac_compile) 2>&5 10128 ac_status=$? 10129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10130 test $ac_status = 0; } 2>conftest.err; then 10131 soname=conftest 10132 lib=conftest 10133 libobjs=conftest.$ac_objext 10134 deplibs= 10135 wl=$lt_prog_compiler_wl 10136 pic_flag=$lt_prog_compiler_pic 10137 compiler_flags=-v 10138 linker_flags=-v 10139 verstring= 10140 output_objdir=. 10141 libname=conftest 10142 lt_save_allow_undefined_flag=$allow_undefined_flag 10143 allow_undefined_flag= 10144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10146 ac_status=$? 10147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10148 test $ac_status = 0; } 10149 then 10150 archive_cmds_need_lc=no 10151 else 10152 archive_cmds_need_lc=yes 10153 fi 10154 allow_undefined_flag=$lt_save_allow_undefined_flag 10155 else 10156 cat conftest.err 1>&5 10157 fi 10158 $RM conftest* 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10160$as_echo "$archive_cmds_need_lc" >&6; } 10161 ;; 10162 esac 10163 fi 10164 ;; 10165esac 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10324$as_echo_n "checking dynamic linker characteristics... " >&6; } 10325 10326if test "$GCC" = yes; then 10327 case $host_os in 10328 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10329 *) lt_awk_arg="/^libraries:/" ;; 10330 esac 10331 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10332 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10333 # if the path contains ";" then we assume it to be the separator 10334 # otherwise default to the standard path separator (i.e. ":") - it is 10335 # assumed that no part of a normal pathname contains ";" but that should 10336 # okay in the real world where ";" in dirpaths is itself problematic. 10337 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10338 else 10339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10340 fi 10341 # Ok, now we have the path, separated by spaces, we can step through it 10342 # and add multilib dir if necessary. 10343 lt_tmp_lt_search_path_spec= 10344 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10345 for lt_sys_path in $lt_search_path_spec; do 10346 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10348 else 10349 test -d "$lt_sys_path" && \ 10350 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10351 fi 10352 done 10353 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10354BEGIN {RS=" "; FS="/|\n";} { 10355 lt_foo=""; 10356 lt_count=0; 10357 for (lt_i = NF; lt_i > 0; lt_i--) { 10358 if ($lt_i != "" && $lt_i != ".") { 10359 if ($lt_i == "..") { 10360 lt_count++; 10361 } else { 10362 if (lt_count == 0) { 10363 lt_foo="/" $lt_i lt_foo; 10364 } else { 10365 lt_count--; 10366 } 10367 } 10368 } 10369 } 10370 if (lt_foo != "") { lt_freq[lt_foo]++; } 10371 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10372}'` 10373 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10374else 10375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10376fi 10377library_names_spec= 10378libname_spec='lib$name' 10379soname_spec= 10380shrext_cmds=".so" 10381postinstall_cmds= 10382postuninstall_cmds= 10383finish_cmds= 10384finish_eval= 10385shlibpath_var= 10386shlibpath_overrides_runpath=unknown 10387version_type=none 10388dynamic_linker="$host_os ld.so" 10389sys_lib_dlsearch_path_spec="/lib /usr/lib" 10390need_lib_prefix=unknown 10391hardcode_into_libs=no 10392 10393# when you set need_version to no, make sure it does not cause -set_version 10394# flags to be left without arguments 10395need_version=unknown 10396 10397case $host_os in 10398aix3*) 10399 version_type=linux 10400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10401 shlibpath_var=LIBPATH 10402 10403 # AIX 3 has no versioning support, so we append a major version to the name. 10404 soname_spec='${libname}${release}${shared_ext}$major' 10405 ;; 10406 10407aix[4-9]*) 10408 version_type=linux 10409 need_lib_prefix=no 10410 need_version=no 10411 hardcode_into_libs=yes 10412 if test "$host_cpu" = ia64; then 10413 # AIX 5 supports IA64 10414 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10415 shlibpath_var=LD_LIBRARY_PATH 10416 else 10417 # With GCC up to 2.95.x, collect2 would create an import file 10418 # for dependence libraries. The import file would start with 10419 # the line `#! .'. This would cause the generated library to 10420 # depend on `.', always an invalid library. This was fixed in 10421 # development snapshots of GCC prior to 3.0. 10422 case $host_os in 10423 aix4 | aix4.[01] | aix4.[01].*) 10424 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10425 echo ' yes ' 10426 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10427 : 10428 else 10429 can_build_shared=no 10430 fi 10431 ;; 10432 esac 10433 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10434 # soname into executable. Probably we can add versioning support to 10435 # collect2, so additional links can be useful in future. 10436 if test "$aix_use_runtimelinking" = yes; then 10437 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10438 # instead of lib<name>.a to let people know that these are not 10439 # typical AIX shared libraries. 10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10441 else 10442 # We preserve .a as extension for shared libraries through AIX4.2 10443 # and later when we are not doing run time linking. 10444 library_names_spec='${libname}${release}.a $libname.a' 10445 soname_spec='${libname}${release}${shared_ext}$major' 10446 fi 10447 shlibpath_var=LIBPATH 10448 fi 10449 ;; 10450 10451amigaos*) 10452 case $host_cpu in 10453 powerpc) 10454 # Since July 2007 AmigaOS4 officially supports .so libraries. 10455 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10457 ;; 10458 m68k) 10459 library_names_spec='$libname.ixlibrary $libname.a' 10460 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10461 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' 10462 ;; 10463 esac 10464 ;; 10465 10466beos*) 10467 library_names_spec='${libname}${shared_ext}' 10468 dynamic_linker="$host_os ld.so" 10469 shlibpath_var=LIBRARY_PATH 10470 ;; 10471 10472bsdi[45]*) 10473 version_type=linux 10474 need_version=no 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10476 soname_spec='${libname}${release}${shared_ext}$major' 10477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10478 shlibpath_var=LD_LIBRARY_PATH 10479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10481 # the default ld.so.conf also contains /usr/contrib/lib and 10482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10483 # libtool to hard-code these into programs 10484 ;; 10485 10486cygwin* | mingw* | pw32* | cegcc*) 10487 version_type=windows 10488 shrext_cmds=".dll" 10489 need_version=no 10490 need_lib_prefix=no 10491 10492 case $GCC,$host_os in 10493 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10494 library_names_spec='$libname.dll.a' 10495 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10496 postinstall_cmds='base_file=`basename \${file}`~ 10497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10498 dldir=$destdir/`dirname \$dlpath`~ 10499 test -d \$dldir || mkdir -p \$dldir~ 10500 $install_prog $dir/$dlname \$dldir/$dlname~ 10501 chmod a+x \$dldir/$dlname~ 10502 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10503 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10504 fi' 10505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10506 dlpath=$dir/\$dldll~ 10507 $RM \$dlpath' 10508 shlibpath_overrides_runpath=yes 10509 10510 case $host_os in 10511 cygwin*) 10512 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10513 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10514 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10515 ;; 10516 mingw* | cegcc*) 10517 # MinGW DLLs use traditional 'lib' prefix 10518 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10519 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10520 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10521 # It is most probably a Windows format PATH printed by 10522 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10523 # path with ; separators, and with drive letters. We can handle the 10524 # drive letters (cygwin fileutils understands them), so leave them, 10525 # especially as we might pass files found there to a mingw objdump, 10526 # which wouldn't understand a cygwinified path. Ahh. 10527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10528 else 10529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10530 fi 10531 ;; 10532 pw32*) 10533 # pw32 DLLs use 'pw' prefix rather than 'lib' 10534 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10535 ;; 10536 esac 10537 ;; 10538 10539 *) 10540 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10541 ;; 10542 esac 10543 dynamic_linker='Win32 ld.exe' 10544 # FIXME: first we should search . and the directory the executable is in 10545 shlibpath_var=PATH 10546 ;; 10547 10548darwin* | rhapsody*) 10549 dynamic_linker="$host_os dyld" 10550 version_type=darwin 10551 need_lib_prefix=no 10552 need_version=no 10553 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10554 soname_spec='${libname}${release}${major}$shared_ext' 10555 shlibpath_overrides_runpath=yes 10556 shlibpath_var=DYLD_LIBRARY_PATH 10557 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10558 10559 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10561 ;; 10562 10563dgux*) 10564 version_type=linux 10565 need_lib_prefix=no 10566 need_version=no 10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10568 soname_spec='${libname}${release}${shared_ext}$major' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 ;; 10571 10572freebsd1*) 10573 dynamic_linker=no 10574 ;; 10575 10576freebsd* | dragonfly*) 10577 # DragonFly does not have aout. When/if they implement a new 10578 # versioning mechanism, adjust this. 10579 if test -x /usr/bin/objformat; then 10580 objformat=`/usr/bin/objformat` 10581 else 10582 case $host_os in 10583 freebsd[123]*) objformat=aout ;; 10584 *) objformat=elf ;; 10585 esac 10586 fi 10587 version_type=freebsd-$objformat 10588 case $version_type in 10589 freebsd-elf*) 10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10591 need_version=no 10592 need_lib_prefix=no 10593 ;; 10594 freebsd-*) 10595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10596 need_version=yes 10597 ;; 10598 esac 10599 shlibpath_var=LD_LIBRARY_PATH 10600 case $host_os in 10601 freebsd2*) 10602 shlibpath_overrides_runpath=yes 10603 ;; 10604 freebsd3.[01]* | freebsdelf3.[01]*) 10605 shlibpath_overrides_runpath=yes 10606 hardcode_into_libs=yes 10607 ;; 10608 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10609 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10610 shlibpath_overrides_runpath=no 10611 hardcode_into_libs=yes 10612 ;; 10613 *) # from 4.6 on, and DragonFly 10614 shlibpath_overrides_runpath=yes 10615 hardcode_into_libs=yes 10616 ;; 10617 esac 10618 ;; 10619 10620gnu*) 10621 version_type=linux 10622 need_lib_prefix=no 10623 need_version=no 10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10625 soname_spec='${libname}${release}${shared_ext}$major' 10626 shlibpath_var=LD_LIBRARY_PATH 10627 hardcode_into_libs=yes 10628 ;; 10629 10630hpux9* | hpux10* | hpux11*) 10631 # Give a soname corresponding to the major version so that dld.sl refuses to 10632 # link against other versions. 10633 version_type=sunos 10634 need_lib_prefix=no 10635 need_version=no 10636 case $host_cpu in 10637 ia64*) 10638 shrext_cmds='.so' 10639 hardcode_into_libs=yes 10640 dynamic_linker="$host_os dld.so" 10641 shlibpath_var=LD_LIBRARY_PATH 10642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10644 soname_spec='${libname}${release}${shared_ext}$major' 10645 if test "X$HPUX_IA64_MODE" = X32; then 10646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10647 else 10648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10649 fi 10650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10651 ;; 10652 hppa*64*) 10653 shrext_cmds='.sl' 10654 hardcode_into_libs=yes 10655 dynamic_linker="$host_os dld.sl" 10656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10659 soname_spec='${libname}${release}${shared_ext}$major' 10660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10662 ;; 10663 *) 10664 shrext_cmds='.sl' 10665 dynamic_linker="$host_os dld.sl" 10666 shlibpath_var=SHLIB_PATH 10667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10669 soname_spec='${libname}${release}${shared_ext}$major' 10670 ;; 10671 esac 10672 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10673 postinstall_cmds='chmod 555 $lib' 10674 ;; 10675 10676interix[3-9]*) 10677 version_type=linux 10678 need_lib_prefix=no 10679 need_version=no 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10681 soname_spec='${libname}${release}${shared_ext}$major' 10682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10683 shlibpath_var=LD_LIBRARY_PATH 10684 shlibpath_overrides_runpath=no 10685 hardcode_into_libs=yes 10686 ;; 10687 10688irix5* | irix6* | nonstopux*) 10689 case $host_os in 10690 nonstopux*) version_type=nonstopux ;; 10691 *) 10692 if test "$lt_cv_prog_gnu_ld" = yes; then 10693 version_type=linux 10694 else 10695 version_type=irix 10696 fi ;; 10697 esac 10698 need_lib_prefix=no 10699 need_version=no 10700 soname_spec='${libname}${release}${shared_ext}$major' 10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10702 case $host_os in 10703 irix5* | nonstopux*) 10704 libsuff= shlibsuff= 10705 ;; 10706 *) 10707 case $LD in # libtool.m4 will add one of these switches to LD 10708 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10709 libsuff= shlibsuff= libmagic=32-bit;; 10710 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10711 libsuff=32 shlibsuff=N32 libmagic=N32;; 10712 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10713 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10714 *) libsuff= shlibsuff= libmagic=never-match;; 10715 esac 10716 ;; 10717 esac 10718 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10719 shlibpath_overrides_runpath=no 10720 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10721 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10722 hardcode_into_libs=yes 10723 ;; 10724 10725# No shared lib support for Linux oldld, aout, or coff. 10726linux*oldld* | linux*aout* | linux*coff*) 10727 dynamic_linker=no 10728 ;; 10729 10730# This must be Linux ELF. 10731linux* | k*bsd*-gnu) 10732 version_type=linux 10733 need_lib_prefix=no 10734 need_version=no 10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10736 soname_spec='${libname}${release}${shared_ext}$major' 10737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 shlibpath_overrides_runpath=no 10740 # Some binutils ld are patched to set DT_RUNPATH 10741 save_LDFLAGS=$LDFLAGS 10742 save_libdir=$libdir 10743 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10744 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10746/* end confdefs.h. */ 10747 10748int 10749main () 10750{ 10751 10752 ; 10753 return 0; 10754} 10755_ACEOF 10756if ac_fn_c_try_link "$LINENO"; then : 10757 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10758 shlibpath_overrides_runpath=yes 10759fi 10760fi 10761rm -f core conftest.err conftest.$ac_objext \ 10762 conftest$ac_exeext conftest.$ac_ext 10763 LDFLAGS=$save_LDFLAGS 10764 libdir=$save_libdir 10765 10766 # This implies no fast_install, which is unacceptable. 10767 # Some rework will be needed to allow for fast_install 10768 # before this can be enabled. 10769 hardcode_into_libs=yes 10770 10771 # Append ld.so.conf contents to the search path 10772 if test -f /etc/ld.so.conf; then 10773 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' ' '` 10774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10775 fi 10776 10777 # We used to test for /lib/ld.so.1 and disable shared libraries on 10778 # powerpc, because MkLinux only supported shared libraries with the 10779 # GNU dynamic linker. Since this was broken with cross compilers, 10780 # most powerpc-linux boxes support dynamic linking these days and 10781 # people can always --disable-shared, the test was removed, and we 10782 # assume the GNU/Linux dynamic linker is in use. 10783 dynamic_linker='GNU/Linux ld.so' 10784 ;; 10785 10786netbsd*) 10787 version_type=sunos 10788 need_lib_prefix=no 10789 need_version=no 10790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10793 dynamic_linker='NetBSD (a.out) ld.so' 10794 else 10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10796 soname_spec='${libname}${release}${shared_ext}$major' 10797 dynamic_linker='NetBSD ld.elf_so' 10798 fi 10799 shlibpath_var=LD_LIBRARY_PATH 10800 shlibpath_overrides_runpath=yes 10801 hardcode_into_libs=yes 10802 ;; 10803 10804newsos6) 10805 version_type=linux 10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10807 shlibpath_var=LD_LIBRARY_PATH 10808 shlibpath_overrides_runpath=yes 10809 ;; 10810 10811*nto* | *qnx*) 10812 version_type=qnx 10813 need_lib_prefix=no 10814 need_version=no 10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10816 soname_spec='${libname}${release}${shared_ext}$major' 10817 shlibpath_var=LD_LIBRARY_PATH 10818 shlibpath_overrides_runpath=no 10819 hardcode_into_libs=yes 10820 dynamic_linker='ldqnx.so' 10821 ;; 10822 10823openbsd*) 10824 version_type=sunos 10825 sys_lib_dlsearch_path_spec="/usr/lib" 10826 need_lib_prefix=no 10827 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10828 case $host_os in 10829 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10830 *) need_version=no ;; 10831 esac 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10834 shlibpath_var=LD_LIBRARY_PATH 10835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10836 case $host_os in 10837 openbsd2.[89] | openbsd2.[89].*) 10838 shlibpath_overrides_runpath=no 10839 ;; 10840 *) 10841 shlibpath_overrides_runpath=yes 10842 ;; 10843 esac 10844 else 10845 shlibpath_overrides_runpath=yes 10846 fi 10847 ;; 10848 10849os2*) 10850 libname_spec='$name' 10851 shrext_cmds=".dll" 10852 need_lib_prefix=no 10853 library_names_spec='$libname${shared_ext} $libname.a' 10854 dynamic_linker='OS/2 ld.exe' 10855 shlibpath_var=LIBPATH 10856 ;; 10857 10858osf3* | osf4* | osf5*) 10859 version_type=osf 10860 need_lib_prefix=no 10861 need_version=no 10862 soname_spec='${libname}${release}${shared_ext}$major' 10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10864 shlibpath_var=LD_LIBRARY_PATH 10865 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10866 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10867 ;; 10868 10869rdos*) 10870 dynamic_linker=no 10871 ;; 10872 10873solaris*) 10874 version_type=linux 10875 need_lib_prefix=no 10876 need_version=no 10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10878 soname_spec='${libname}${release}${shared_ext}$major' 10879 shlibpath_var=LD_LIBRARY_PATH 10880 shlibpath_overrides_runpath=yes 10881 hardcode_into_libs=yes 10882 # ldd complains unless libraries are executable 10883 postinstall_cmds='chmod +x $lib' 10884 ;; 10885 10886sunos4*) 10887 version_type=sunos 10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10890 shlibpath_var=LD_LIBRARY_PATH 10891 shlibpath_overrides_runpath=yes 10892 if test "$with_gnu_ld" = yes; then 10893 need_lib_prefix=no 10894 fi 10895 need_version=yes 10896 ;; 10897 10898sysv4 | sysv4.3*) 10899 version_type=linux 10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10901 soname_spec='${libname}${release}${shared_ext}$major' 10902 shlibpath_var=LD_LIBRARY_PATH 10903 case $host_vendor in 10904 sni) 10905 shlibpath_overrides_runpath=no 10906 need_lib_prefix=no 10907 runpath_var=LD_RUN_PATH 10908 ;; 10909 siemens) 10910 need_lib_prefix=no 10911 ;; 10912 motorola) 10913 need_lib_prefix=no 10914 need_version=no 10915 shlibpath_overrides_runpath=no 10916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10917 ;; 10918 esac 10919 ;; 10920 10921sysv4*MP*) 10922 if test -d /usr/nec ;then 10923 version_type=linux 10924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10925 soname_spec='$libname${shared_ext}.$major' 10926 shlibpath_var=LD_LIBRARY_PATH 10927 fi 10928 ;; 10929 10930sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10931 version_type=freebsd-elf 10932 need_lib_prefix=no 10933 need_version=no 10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10935 soname_spec='${libname}${release}${shared_ext}$major' 10936 shlibpath_var=LD_LIBRARY_PATH 10937 shlibpath_overrides_runpath=yes 10938 hardcode_into_libs=yes 10939 if test "$with_gnu_ld" = yes; then 10940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10941 else 10942 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10943 case $host_os in 10944 sco3.2v5*) 10945 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10946 ;; 10947 esac 10948 fi 10949 sys_lib_dlsearch_path_spec='/usr/lib' 10950 ;; 10951 10952tpf*) 10953 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10954 version_type=linux 10955 need_lib_prefix=no 10956 need_version=no 10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10958 shlibpath_var=LD_LIBRARY_PATH 10959 shlibpath_overrides_runpath=no 10960 hardcode_into_libs=yes 10961 ;; 10962 10963uts4*) 10964 version_type=linux 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 ;; 10969 10970*) 10971 dynamic_linker=no 10972 ;; 10973esac 10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10975$as_echo "$dynamic_linker" >&6; } 10976test "$dynamic_linker" = no && can_build_shared=no 10977 10978variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10979if test "$GCC" = yes; then 10980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10981fi 10982 10983if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10985fi 10986if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10987 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10988fi 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11077$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11078hardcode_action= 11079if test -n "$hardcode_libdir_flag_spec" || 11080 test -n "$runpath_var" || 11081 test "X$hardcode_automatic" = "Xyes" ; then 11082 11083 # We can hardcode non-existent directories. 11084 if test "$hardcode_direct" != no && 11085 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11086 # have to relink, otherwise we might link with an installed library 11087 # when we should be linking with a yet-to-be-installed one 11088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11089 test "$hardcode_minus_L" != no; then 11090 # Linking always hardcodes the temporary library directory. 11091 hardcode_action=relink 11092 else 11093 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11094 hardcode_action=immediate 11095 fi 11096else 11097 # We cannot hardcode anything, or else we can only hardcode existing 11098 # directories. 11099 hardcode_action=unsupported 11100fi 11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11102$as_echo "$hardcode_action" >&6; } 11103 11104if test "$hardcode_action" = relink || 11105 test "$inherit_rpath" = yes; then 11106 # Fast installation is not supported 11107 enable_fast_install=no 11108elif test "$shlibpath_overrides_runpath" = yes || 11109 test "$enable_shared" = no; then 11110 # Fast installation is not necessary 11111 enable_fast_install=needless 11112fi 11113 11114 11115 11116 11117 11118 11119 if test "x$enable_dlopen" != xyes; then 11120 enable_dlopen=unknown 11121 enable_dlopen_self=unknown 11122 enable_dlopen_self_static=unknown 11123else 11124 lt_cv_dlopen=no 11125 lt_cv_dlopen_libs= 11126 11127 case $host_os in 11128 beos*) 11129 lt_cv_dlopen="load_add_on" 11130 lt_cv_dlopen_libs= 11131 lt_cv_dlopen_self=yes 11132 ;; 11133 11134 mingw* | pw32* | cegcc*) 11135 lt_cv_dlopen="LoadLibrary" 11136 lt_cv_dlopen_libs= 11137 ;; 11138 11139 cygwin*) 11140 lt_cv_dlopen="dlopen" 11141 lt_cv_dlopen_libs= 11142 ;; 11143 11144 darwin*) 11145 # if libdl is installed we need to link against it 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11147$as_echo_n "checking for dlopen in -ldl... " >&6; } 11148if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11149 $as_echo_n "(cached) " >&6 11150else 11151 ac_check_lib_save_LIBS=$LIBS 11152LIBS="-ldl $LIBS" 11153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11154/* end confdefs.h. */ 11155 11156/* Override any GCC internal prototype to avoid an error. 11157 Use char because int might match the return type of a GCC 11158 builtin and then its argument prototype would still apply. */ 11159#ifdef __cplusplus 11160extern "C" 11161#endif 11162char dlopen (); 11163int 11164main () 11165{ 11166return dlopen (); 11167 ; 11168 return 0; 11169} 11170_ACEOF 11171if ac_fn_c_try_link "$LINENO"; then : 11172 ac_cv_lib_dl_dlopen=yes 11173else 11174 ac_cv_lib_dl_dlopen=no 11175fi 11176rm -f core conftest.err conftest.$ac_objext \ 11177 conftest$ac_exeext conftest.$ac_ext 11178LIBS=$ac_check_lib_save_LIBS 11179fi 11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11181$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11182if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11184else 11185 11186 lt_cv_dlopen="dyld" 11187 lt_cv_dlopen_libs= 11188 lt_cv_dlopen_self=yes 11189 11190fi 11191 11192 ;; 11193 11194 *) 11195 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11196if test "x$ac_cv_func_shl_load" = x""yes; then : 11197 lt_cv_dlopen="shl_load" 11198else 11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11200$as_echo_n "checking for shl_load in -ldld... " >&6; } 11201if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11202 $as_echo_n "(cached) " >&6 11203else 11204 ac_check_lib_save_LIBS=$LIBS 11205LIBS="-ldld $LIBS" 11206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11207/* end confdefs.h. */ 11208 11209/* Override any GCC internal prototype to avoid an error. 11210 Use char because int might match the return type of a GCC 11211 builtin and then its argument prototype would still apply. */ 11212#ifdef __cplusplus 11213extern "C" 11214#endif 11215char shl_load (); 11216int 11217main () 11218{ 11219return shl_load (); 11220 ; 11221 return 0; 11222} 11223_ACEOF 11224if ac_fn_c_try_link "$LINENO"; then : 11225 ac_cv_lib_dld_shl_load=yes 11226else 11227 ac_cv_lib_dld_shl_load=no 11228fi 11229rm -f core conftest.err conftest.$ac_objext \ 11230 conftest$ac_exeext conftest.$ac_ext 11231LIBS=$ac_check_lib_save_LIBS 11232fi 11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11234$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11235if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11236 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11237else 11238 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11239if test "x$ac_cv_func_dlopen" = x""yes; then : 11240 lt_cv_dlopen="dlopen" 11241else 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11243$as_echo_n "checking for dlopen in -ldl... " >&6; } 11244if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11245 $as_echo_n "(cached) " >&6 11246else 11247 ac_check_lib_save_LIBS=$LIBS 11248LIBS="-ldl $LIBS" 11249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11250/* end confdefs.h. */ 11251 11252/* Override any GCC internal prototype to avoid an error. 11253 Use char because int might match the return type of a GCC 11254 builtin and then its argument prototype would still apply. */ 11255#ifdef __cplusplus 11256extern "C" 11257#endif 11258char dlopen (); 11259int 11260main () 11261{ 11262return dlopen (); 11263 ; 11264 return 0; 11265} 11266_ACEOF 11267if ac_fn_c_try_link "$LINENO"; then : 11268 ac_cv_lib_dl_dlopen=yes 11269else 11270 ac_cv_lib_dl_dlopen=no 11271fi 11272rm -f core conftest.err conftest.$ac_objext \ 11273 conftest$ac_exeext conftest.$ac_ext 11274LIBS=$ac_check_lib_save_LIBS 11275fi 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11277$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11278if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11280else 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11282$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11283if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11284 $as_echo_n "(cached) " >&6 11285else 11286 ac_check_lib_save_LIBS=$LIBS 11287LIBS="-lsvld $LIBS" 11288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289/* end confdefs.h. */ 11290 11291/* Override any GCC internal prototype to avoid an error. 11292 Use char because int might match the return type of a GCC 11293 builtin and then its argument prototype would still apply. */ 11294#ifdef __cplusplus 11295extern "C" 11296#endif 11297char dlopen (); 11298int 11299main () 11300{ 11301return dlopen (); 11302 ; 11303 return 0; 11304} 11305_ACEOF 11306if ac_fn_c_try_link "$LINENO"; then : 11307 ac_cv_lib_svld_dlopen=yes 11308else 11309 ac_cv_lib_svld_dlopen=no 11310fi 11311rm -f core conftest.err conftest.$ac_objext \ 11312 conftest$ac_exeext conftest.$ac_ext 11313LIBS=$ac_check_lib_save_LIBS 11314fi 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11316$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11317if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11319else 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11321$as_echo_n "checking for dld_link in -ldld... " >&6; } 11322if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11323 $as_echo_n "(cached) " >&6 11324else 11325 ac_check_lib_save_LIBS=$LIBS 11326LIBS="-ldld $LIBS" 11327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11328/* end confdefs.h. */ 11329 11330/* Override any GCC internal prototype to avoid an error. 11331 Use char because int might match the return type of a GCC 11332 builtin and then its argument prototype would still apply. */ 11333#ifdef __cplusplus 11334extern "C" 11335#endif 11336char dld_link (); 11337int 11338main () 11339{ 11340return dld_link (); 11341 ; 11342 return 0; 11343} 11344_ACEOF 11345if ac_fn_c_try_link "$LINENO"; then : 11346 ac_cv_lib_dld_dld_link=yes 11347else 11348 ac_cv_lib_dld_dld_link=no 11349fi 11350rm -f core conftest.err conftest.$ac_objext \ 11351 conftest$ac_exeext conftest.$ac_ext 11352LIBS=$ac_check_lib_save_LIBS 11353fi 11354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11355$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11356if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11357 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11358fi 11359 11360 11361fi 11362 11363 11364fi 11365 11366 11367fi 11368 11369 11370fi 11371 11372 11373fi 11374 11375 ;; 11376 esac 11377 11378 if test "x$lt_cv_dlopen" != xno; then 11379 enable_dlopen=yes 11380 else 11381 enable_dlopen=no 11382 fi 11383 11384 case $lt_cv_dlopen in 11385 dlopen) 11386 save_CPPFLAGS="$CPPFLAGS" 11387 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11388 11389 save_LDFLAGS="$LDFLAGS" 11390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11391 11392 save_LIBS="$LIBS" 11393 LIBS="$lt_cv_dlopen_libs $LIBS" 11394 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11396$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11397if test "${lt_cv_dlopen_self+set}" = set; then : 11398 $as_echo_n "(cached) " >&6 11399else 11400 if test "$cross_compiling" = yes; then : 11401 lt_cv_dlopen_self=cross 11402else 11403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11404 lt_status=$lt_dlunknown 11405 cat > conftest.$ac_ext <<_LT_EOF 11406#line 11406 "configure" 11407#include "confdefs.h" 11408 11409#if HAVE_DLFCN_H 11410#include <dlfcn.h> 11411#endif 11412 11413#include <stdio.h> 11414 11415#ifdef RTLD_GLOBAL 11416# define LT_DLGLOBAL RTLD_GLOBAL 11417#else 11418# ifdef DL_GLOBAL 11419# define LT_DLGLOBAL DL_GLOBAL 11420# else 11421# define LT_DLGLOBAL 0 11422# endif 11423#endif 11424 11425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11426 find out it does not work in some platform. */ 11427#ifndef LT_DLLAZY_OR_NOW 11428# ifdef RTLD_LAZY 11429# define LT_DLLAZY_OR_NOW RTLD_LAZY 11430# else 11431# ifdef DL_LAZY 11432# define LT_DLLAZY_OR_NOW DL_LAZY 11433# else 11434# ifdef RTLD_NOW 11435# define LT_DLLAZY_OR_NOW RTLD_NOW 11436# else 11437# ifdef DL_NOW 11438# define LT_DLLAZY_OR_NOW DL_NOW 11439# else 11440# define LT_DLLAZY_OR_NOW 0 11441# endif 11442# endif 11443# endif 11444# endif 11445#endif 11446 11447void fnord() { int i=42;} 11448int main () 11449{ 11450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11451 int status = $lt_dlunknown; 11452 11453 if (self) 11454 { 11455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11456 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11457 /* dlclose (self); */ 11458 } 11459 else 11460 puts (dlerror ()); 11461 11462 return status; 11463} 11464_LT_EOF 11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11466 (eval $ac_link) 2>&5 11467 ac_status=$? 11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11469 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11470 (./conftest; exit; ) >&5 2>/dev/null 11471 lt_status=$? 11472 case x$lt_status in 11473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11475 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11476 esac 11477 else : 11478 # compilation failed 11479 lt_cv_dlopen_self=no 11480 fi 11481fi 11482rm -fr conftest* 11483 11484 11485fi 11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11487$as_echo "$lt_cv_dlopen_self" >&6; } 11488 11489 if test "x$lt_cv_dlopen_self" = xyes; then 11490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11492$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11493if test "${lt_cv_dlopen_self_static+set}" = set; then : 11494 $as_echo_n "(cached) " >&6 11495else 11496 if test "$cross_compiling" = yes; then : 11497 lt_cv_dlopen_self_static=cross 11498else 11499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11500 lt_status=$lt_dlunknown 11501 cat > conftest.$ac_ext <<_LT_EOF 11502#line 11502 "configure" 11503#include "confdefs.h" 11504 11505#if HAVE_DLFCN_H 11506#include <dlfcn.h> 11507#endif 11508 11509#include <stdio.h> 11510 11511#ifdef RTLD_GLOBAL 11512# define LT_DLGLOBAL RTLD_GLOBAL 11513#else 11514# ifdef DL_GLOBAL 11515# define LT_DLGLOBAL DL_GLOBAL 11516# else 11517# define LT_DLGLOBAL 0 11518# endif 11519#endif 11520 11521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11522 find out it does not work in some platform. */ 11523#ifndef LT_DLLAZY_OR_NOW 11524# ifdef RTLD_LAZY 11525# define LT_DLLAZY_OR_NOW RTLD_LAZY 11526# else 11527# ifdef DL_LAZY 11528# define LT_DLLAZY_OR_NOW DL_LAZY 11529# else 11530# ifdef RTLD_NOW 11531# define LT_DLLAZY_OR_NOW RTLD_NOW 11532# else 11533# ifdef DL_NOW 11534# define LT_DLLAZY_OR_NOW DL_NOW 11535# else 11536# define LT_DLLAZY_OR_NOW 0 11537# endif 11538# endif 11539# endif 11540# endif 11541#endif 11542 11543void fnord() { int i=42;} 11544int main () 11545{ 11546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11547 int status = $lt_dlunknown; 11548 11549 if (self) 11550 { 11551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11552 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11553 /* dlclose (self); */ 11554 } 11555 else 11556 puts (dlerror ()); 11557 11558 return status; 11559} 11560_LT_EOF 11561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11562 (eval $ac_link) 2>&5 11563 ac_status=$? 11564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11565 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11566 (./conftest; exit; ) >&5 2>/dev/null 11567 lt_status=$? 11568 case x$lt_status in 11569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11571 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11572 esac 11573 else : 11574 # compilation failed 11575 lt_cv_dlopen_self_static=no 11576 fi 11577fi 11578rm -fr conftest* 11579 11580 11581fi 11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11583$as_echo "$lt_cv_dlopen_self_static" >&6; } 11584 fi 11585 11586 CPPFLAGS="$save_CPPFLAGS" 11587 LDFLAGS="$save_LDFLAGS" 11588 LIBS="$save_LIBS" 11589 ;; 11590 esac 11591 11592 case $lt_cv_dlopen_self in 11593 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11594 *) enable_dlopen_self=unknown ;; 11595 esac 11596 11597 case $lt_cv_dlopen_self_static in 11598 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11599 *) enable_dlopen_self_static=unknown ;; 11600 esac 11601fi 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619striplib= 11620old_striplib= 11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11622$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11623if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11625 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11627$as_echo "yes" >&6; } 11628else 11629# FIXME - insert some real tests, host_os isn't really good enough 11630 case $host_os in 11631 darwin*) 11632 if test -n "$STRIP" ; then 11633 striplib="$STRIP -x" 11634 old_striplib="$STRIP -S" 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11636$as_echo "yes" >&6; } 11637 else 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11639$as_echo "no" >&6; } 11640 fi 11641 ;; 11642 *) 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11644$as_echo "no" >&6; } 11645 ;; 11646 esac 11647fi 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 # Report which library types will actually be built 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11662$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11664$as_echo "$can_build_shared" >&6; } 11665 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11667$as_echo_n "checking whether to build shared libraries... " >&6; } 11668 test "$can_build_shared" = "no" && enable_shared=no 11669 11670 # On AIX, shared libraries and static libraries use the same namespace, and 11671 # are all built from PIC. 11672 case $host_os in 11673 aix3*) 11674 test "$enable_shared" = yes && enable_static=no 11675 if test -n "$RANLIB"; then 11676 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11677 postinstall_cmds='$RANLIB $lib' 11678 fi 11679 ;; 11680 11681 aix[4-9]*) 11682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11683 test "$enable_shared" = yes && enable_static=no 11684 fi 11685 ;; 11686 esac 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11688$as_echo "$enable_shared" >&6; } 11689 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11691$as_echo_n "checking whether to build static libraries... " >&6; } 11692 # Make sure either enable_shared or enable_static is yes. 11693 test "$enable_shared" = yes || enable_static=yes 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11695$as_echo "$enable_static" >&6; } 11696 11697 11698 11699 11700fi 11701ac_ext=c 11702ac_cpp='$CPP $CPPFLAGS' 11703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11705ac_compiler_gnu=$ac_cv_c_compiler_gnu 11706 11707CC="$lt_save_CC" 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 ac_config_commands="$ac_config_commands libtool" 11722 11723 11724 11725 11726# Only expand once: 11727 11728 11729 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11731$as_echo_n "checking for ANSI C header files... " >&6; } 11732if test "${ac_cv_header_stdc+set}" = set; then : 11733 $as_echo_n "(cached) " >&6 11734else 11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11736/* end confdefs.h. */ 11737#include <stdlib.h> 11738#include <stdarg.h> 11739#include <string.h> 11740#include <float.h> 11741 11742int 11743main () 11744{ 11745 11746 ; 11747 return 0; 11748} 11749_ACEOF 11750if ac_fn_c_try_compile "$LINENO"; then : 11751 ac_cv_header_stdc=yes 11752else 11753 ac_cv_header_stdc=no 11754fi 11755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11756 11757if test $ac_cv_header_stdc = yes; then 11758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11760/* end confdefs.h. */ 11761#include <string.h> 11762 11763_ACEOF 11764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11765 $EGREP "memchr" >/dev/null 2>&1; then : 11766 11767else 11768 ac_cv_header_stdc=no 11769fi 11770rm -f conftest* 11771 11772fi 11773 11774if test $ac_cv_header_stdc = yes; then 11775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11777/* end confdefs.h. */ 11778#include <stdlib.h> 11779 11780_ACEOF 11781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11782 $EGREP "free" >/dev/null 2>&1; then : 11783 11784else 11785 ac_cv_header_stdc=no 11786fi 11787rm -f conftest* 11788 11789fi 11790 11791if test $ac_cv_header_stdc = yes; then 11792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11793 if test "$cross_compiling" = yes; then : 11794 : 11795else 11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11797/* end confdefs.h. */ 11798#include <ctype.h> 11799#include <stdlib.h> 11800#if ((' ' & 0x0FF) == 0x020) 11801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11803#else 11804# define ISLOWER(c) \ 11805 (('a' <= (c) && (c) <= 'i') \ 11806 || ('j' <= (c) && (c) <= 'r') \ 11807 || ('s' <= (c) && (c) <= 'z')) 11808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11809#endif 11810 11811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11812int 11813main () 11814{ 11815 int i; 11816 for (i = 0; i < 256; i++) 11817 if (XOR (islower (i), ISLOWER (i)) 11818 || toupper (i) != TOUPPER (i)) 11819 return 2; 11820 return 0; 11821} 11822_ACEOF 11823if ac_fn_c_try_run "$LINENO"; then : 11824 11825else 11826 ac_cv_header_stdc=no 11827fi 11828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11829 conftest.$ac_objext conftest.beam conftest.$ac_ext 11830fi 11831 11832fi 11833fi 11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11835$as_echo "$ac_cv_header_stdc" >&6; } 11836if test $ac_cv_header_stdc = yes; then 11837 11838$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11839 11840fi 11841 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 11843$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 11844if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : 11845 $as_echo_n "(cached) " >&6 11846else 11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11848/* end confdefs.h. */ 11849#include <sys/types.h> 11850int 11851main () 11852{ 11853return makedev(0, 0); 11854 ; 11855 return 0; 11856} 11857_ACEOF 11858if ac_fn_c_try_link "$LINENO"; then : 11859 ac_cv_header_sys_types_h_makedev=yes 11860else 11861 ac_cv_header_sys_types_h_makedev=no 11862fi 11863rm -f core conftest.err conftest.$ac_objext \ 11864 conftest$ac_exeext conftest.$ac_ext 11865 11866fi 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 11868$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 11869 11870if test $ac_cv_header_sys_types_h_makedev = no; then 11871ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 11872if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : 11873 11874$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 11875 11876fi 11877 11878 11879 11880 if test $ac_cv_header_sys_mkdev_h = no; then 11881 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 11882if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : 11883 11884$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 11885 11886fi 11887 11888 11889 fi 11890fi 11891 11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 11893$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 11894if test "${ac_cv_header_sys_wait_h+set}" = set; then : 11895 $as_echo_n "(cached) " >&6 11896else 11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899#include <sys/types.h> 11900#include <sys/wait.h> 11901#ifndef WEXITSTATUS 11902# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11903#endif 11904#ifndef WIFEXITED 11905# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11906#endif 11907 11908int 11909main () 11910{ 11911 int s; 11912 wait (&s); 11913 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918if ac_fn_c_try_compile "$LINENO"; then : 11919 ac_cv_header_sys_wait_h=yes 11920else 11921 ac_cv_header_sys_wait_h=no 11922fi 11923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11924fi 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 11926$as_echo "$ac_cv_header_sys_wait_h" >&6; } 11927if test $ac_cv_header_sys_wait_h = yes; then 11928 11929$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11930 11931fi 11932 11933for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h 11934do : 11935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11937eval as_val=\$$as_ac_Header 11938 if test "x$as_val" = x""yes; then : 11939 cat >>confdefs.h <<_ACEOF 11940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11941_ACEOF 11942 11943fi 11944 11945done 11946 11947for ac_header in utime.h wchar.h wctype.h limits.h 11948do : 11949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11950ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11951eval as_val=\$$as_ac_Header 11952 if test "x$as_val" = x""yes; then : 11953 cat >>confdefs.h <<_ACEOF 11954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11955_ACEOF 11956 11957fi 11958 11959done 11960 11961for ac_header in getopt.h err.h 11962do : 11963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11965eval as_val=\$$as_ac_Header 11966 if test "x$as_val" = x""yes; then : 11967 cat >>confdefs.h <<_ACEOF 11968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11969_ACEOF 11970 11971fi 11972 11973done 11974 11975for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h 11976do : 11977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11978ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11979eval as_val=\$$as_ac_Header 11980 if test "x$as_val" = x""yes; then : 11981 cat >>confdefs.h <<_ACEOF 11982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11983_ACEOF 11984 11985fi 11986 11987done 11988 11989for ac_header in zlib.h 11990do : 11991 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 11992if test "x$ac_cv_header_zlib_h" = x""yes; then : 11993 cat >>confdefs.h <<_ACEOF 11994#define HAVE_ZLIB_H 1 11995_ACEOF 11996 11997fi 11998 11999done 12000 12001 12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12003$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12004if test "${ac_cv_c_const+set}" = set; then : 12005 $as_echo_n "(cached) " >&6 12006else 12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12008/* end confdefs.h. */ 12009 12010int 12011main () 12012{ 12013/* FIXME: Include the comments suggested by Paul. */ 12014#ifndef __cplusplus 12015 /* Ultrix mips cc rejects this. */ 12016 typedef int charset[2]; 12017 const charset cs; 12018 /* SunOS 4.1.1 cc rejects this. */ 12019 char const *const *pcpcc; 12020 char **ppc; 12021 /* NEC SVR4.0.2 mips cc rejects this. */ 12022 struct point {int x, y;}; 12023 static struct point const zero = {0,0}; 12024 /* AIX XL C 1.02.0.0 rejects this. 12025 It does not let you subtract one const X* pointer from another in 12026 an arm of an if-expression whose if-part is not a constant 12027 expression */ 12028 const char *g = "string"; 12029 pcpcc = &g + (g ? g-g : 0); 12030 /* HPUX 7.0 cc rejects these. */ 12031 ++pcpcc; 12032 ppc = (char**) pcpcc; 12033 pcpcc = (char const *const *) ppc; 12034 { /* SCO 3.2v4 cc rejects this. */ 12035 char *t; 12036 char const *s = 0 ? (char *) 0 : (char const *) 0; 12037 12038 *t++ = 0; 12039 if (s) return 0; 12040 } 12041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12042 int x[] = {25, 17}; 12043 const int *foo = &x[0]; 12044 ++foo; 12045 } 12046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12047 typedef const int *iptr; 12048 iptr p = 0; 12049 ++p; 12050 } 12051 { /* AIX XL C 1.02.0.0 rejects this saying 12052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12053 struct s { int j; const int *ap[3]; }; 12054 struct s *b; b->j = 5; 12055 } 12056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12057 const int foo = 10; 12058 if (!foo) return 0; 12059 } 12060 return !cs[0] && !zero.x; 12061#endif 12062 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067if ac_fn_c_try_compile "$LINENO"; then : 12068 ac_cv_c_const=yes 12069else 12070 ac_cv_c_const=no 12071fi 12072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12073fi 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12075$as_echo "$ac_cv_c_const" >&6; } 12076if test $ac_cv_c_const = no; then 12077 12078$as_echo "#define const /**/" >>confdefs.h 12079 12080fi 12081 12082ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12083if test "x$ac_cv_type_off_t" = x""yes; then : 12084 12085else 12086 12087cat >>confdefs.h <<_ACEOF 12088#define off_t long int 12089_ACEOF 12090 12091fi 12092 12093ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12094if test "x$ac_cv_type_size_t" = x""yes; then : 12095 12096else 12097 12098cat >>confdefs.h <<_ACEOF 12099#define size_t unsigned int 12100_ACEOF 12101 12102fi 12103 12104ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12105if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : 12106 12107cat >>confdefs.h <<_ACEOF 12108#define HAVE_STRUCT_STAT_ST_RDEV 1 12109_ACEOF 12110 12111 12112fi 12113 12114 12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12116$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12117if test "${ac_cv_struct_tm+set}" = set; then : 12118 $as_echo_n "(cached) " >&6 12119else 12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12121/* end confdefs.h. */ 12122#include <sys/types.h> 12123#include <time.h> 12124 12125int 12126main () 12127{ 12128struct tm tm; 12129 int *p = &tm.tm_sec; 12130 return !p; 12131 ; 12132 return 0; 12133} 12134_ACEOF 12135if ac_fn_c_try_compile "$LINENO"; then : 12136 ac_cv_struct_tm=time.h 12137else 12138 ac_cv_struct_tm=sys/time.h 12139fi 12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12141fi 12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12143$as_echo "$ac_cv_struct_tm" >&6; } 12144if test $ac_cv_struct_tm = sys/time.h; then 12145 12146$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12147 12148fi 12149 12150ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default" 12151if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 12152 12153cat >>confdefs.h <<_ACEOF 12154#define HAVE_STRUCT_TM_TM_GMTOFF 1 12155_ACEOF 12156 12157 12158fi 12159ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "$ac_includes_default" 12160if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 12161 12162cat >>confdefs.h <<_ACEOF 12163#define HAVE_STRUCT_TM_TM_ZONE 1 12164_ACEOF 12165 12166 12167fi 12168 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 12170$as_echo_n "checking for tm_zone in struct tm... " >&6; } 12171if test "${ac_cv_struct_tm_zone+set}" = set; then : 12172 $as_echo_n "(cached) " >&6 12173else 12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12175/* end confdefs.h. */ 12176#include <sys/types.h> 12177#include <$ac_cv_struct_tm> 12178int 12179main () 12180{ 12181struct tm tm; tm.tm_zone; 12182 ; 12183 return 0; 12184} 12185_ACEOF 12186if ac_fn_c_try_compile "$LINENO"; then : 12187 ac_cv_struct_tm_zone=yes 12188else 12189 ac_cv_struct_tm_zone=no 12190fi 12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12192fi 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 12194$as_echo "$ac_cv_struct_tm_zone" >&6; } 12195if test "$ac_cv_struct_tm_zone" = yes; then 12196 12197$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 12198 12199fi 12200 12201# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 12202# consider it declared and we won't give our own extern. 12203ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 12204" 12205if test "x$ac_cv_have_decl_tzname" = x""yes; then : 12206 ac_have_decl=1 12207else 12208 ac_have_decl=0 12209fi 12210 12211cat >>confdefs.h <<_ACEOF 12212#define HAVE_DECL_TZNAME $ac_have_decl 12213_ACEOF 12214 12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 12216$as_echo_n "checking for tzname... " >&6; } 12217if test "${ac_cv_var_tzname+set}" = set; then : 12218 $as_echo_n "(cached) " >&6 12219else 12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12221/* end confdefs.h. */ 12222#include <time.h> 12223#if !HAVE_DECL_TZNAME 12224extern char *tzname[]; 12225#endif 12226int 12227main () 12228{ 12229return tzname[0][0]; 12230 ; 12231 return 0; 12232} 12233_ACEOF 12234if ac_fn_c_try_link "$LINENO"; then : 12235 ac_cv_var_tzname=yes 12236else 12237 ac_cv_var_tzname=no 12238fi 12239rm -f core conftest.err conftest.$ac_objext \ 12240 conftest$ac_exeext conftest.$ac_ext 12241fi 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 12243$as_echo "$ac_cv_var_tzname" >&6; } 12244 if test $ac_cv_var_tzname = yes; then 12245 12246$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 12247 12248 fi 12249 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 12251$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 12252if test "${ac_cv_struct_tm_isdst+set}" = set; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12256/* end confdefs.h. */ 12257#include <sys/types.h> 12258#include <$ac_cv_struct_tm> 12259int 12260main () 12261{ 12262struct tm tm; tm.tm_isdst; 12263 ; 12264 return 0; 12265} 12266_ACEOF 12267if ac_fn_c_try_compile "$LINENO"; then : 12268 ac_cv_struct_tm_isdst=yes 12269else 12270 ac_cv_struct_tm_isdst=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12273fi 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 12275$as_echo "$ac_cv_struct_tm_isdst" >&6; } 12276if test "$ac_cv_struct_tm_isdst" = yes; then 12277 12278$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 12279 12280fi 12281 12282 12283ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 12284" 12285if test "x$ac_cv_have_decl_daylight" = x""yes; then : 12286 ac_have_decl=1 12287else 12288 ac_have_decl=0 12289fi 12290 12291cat >>confdefs.h <<_ACEOF 12292#define HAVE_DECL_DAYLIGHT $ac_have_decl 12293_ACEOF 12294 12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 12296$as_echo_n "checking for daylight... " >&6; } 12297if test "${ac_cv_var_daylight+set}" = set; then : 12298 $as_echo_n "(cached) " >&6 12299else 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302#include <time.h> 12303#if !HAVE_DECL_DAYLIGHT 12304extern int daylight; 12305#endif 12306int 12307main () 12308{ 12309atoi(daylight); 12310 ; 12311 return 0; 12312} 12313_ACEOF 12314if ac_fn_c_try_link "$LINENO"; then : 12315 ac_cv_var_daylight=yes 12316else 12317 ac_cv_var_daylight=no 12318fi 12319rm -f core conftest.err conftest.$ac_objext \ 12320 conftest$ac_exeext conftest.$ac_ext 12321fi 12322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 12323$as_echo "$ac_cv_var_daylight" >&6; } 12324 if test $ac_cv_var_daylight = yes; then 12325 12326$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 12327 12328 fi 12329 12330# Check whether --enable-largefile was given. 12331if test "${enable_largefile+set}" = set; then : 12332 enableval=$enable_largefile; 12333fi 12334 12335if test "$enable_largefile" != no; then 12336 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12338$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12339if test "${ac_cv_sys_largefile_CC+set}" = set; then : 12340 $as_echo_n "(cached) " >&6 12341else 12342 ac_cv_sys_largefile_CC=no 12343 if test "$GCC" != yes; then 12344 ac_save_CC=$CC 12345 while :; do 12346 # IRIX 6.2 and later do not support large files by default, 12347 # so use the C compiler's -n32 option if that helps. 12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350#include <sys/types.h> 12351 /* Check that off_t can represent 2**63 - 1 correctly. 12352 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12353 since some C++ compilers masquerading as C compilers 12354 incorrectly reject 9223372036854775807. */ 12355#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12357 && LARGE_OFF_T % 2147483647 == 1) 12358 ? 1 : -1]; 12359int 12360main () 12361{ 12362 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367 if ac_fn_c_try_compile "$LINENO"; then : 12368 break 12369fi 12370rm -f core conftest.err conftest.$ac_objext 12371 CC="$CC -n32" 12372 if ac_fn_c_try_compile "$LINENO"; then : 12373 ac_cv_sys_largefile_CC=' -n32'; break 12374fi 12375rm -f core conftest.err conftest.$ac_objext 12376 break 12377 done 12378 CC=$ac_save_CC 12379 rm -f conftest.$ac_ext 12380 fi 12381fi 12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12383$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12384 if test "$ac_cv_sys_largefile_CC" != no; then 12385 CC=$CC$ac_cv_sys_largefile_CC 12386 fi 12387 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12389$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12390if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 12391 $as_echo_n "(cached) " >&6 12392else 12393 while :; do 12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12395/* end confdefs.h. */ 12396#include <sys/types.h> 12397 /* Check that off_t can represent 2**63 - 1 correctly. 12398 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12399 since some C++ compilers masquerading as C compilers 12400 incorrectly reject 9223372036854775807. */ 12401#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12403 && LARGE_OFF_T % 2147483647 == 1) 12404 ? 1 : -1]; 12405int 12406main () 12407{ 12408 12409 ; 12410 return 0; 12411} 12412_ACEOF 12413if ac_fn_c_try_compile "$LINENO"; then : 12414 ac_cv_sys_file_offset_bits=no; break 12415fi 12416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12418/* end confdefs.h. */ 12419#define _FILE_OFFSET_BITS 64 12420#include <sys/types.h> 12421 /* Check that off_t can represent 2**63 - 1 correctly. 12422 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12423 since some C++ compilers masquerading as C compilers 12424 incorrectly reject 9223372036854775807. */ 12425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12427 && LARGE_OFF_T % 2147483647 == 1) 12428 ? 1 : -1]; 12429int 12430main () 12431{ 12432 12433 ; 12434 return 0; 12435} 12436_ACEOF 12437if ac_fn_c_try_compile "$LINENO"; then : 12438 ac_cv_sys_file_offset_bits=64; break 12439fi 12440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12441 ac_cv_sys_file_offset_bits=unknown 12442 break 12443done 12444fi 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12446$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12447case $ac_cv_sys_file_offset_bits in #( 12448 no | unknown) ;; 12449 *) 12450cat >>confdefs.h <<_ACEOF 12451#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12452_ACEOF 12453;; 12454esac 12455rm -rf conftest* 12456 if test $ac_cv_sys_file_offset_bits = unknown; then 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12458$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12459if test "${ac_cv_sys_large_files+set}" = set; then : 12460 $as_echo_n "(cached) " >&6 12461else 12462 while :; do 12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12464/* end confdefs.h. */ 12465#include <sys/types.h> 12466 /* Check that off_t can represent 2**63 - 1 correctly. 12467 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12468 since some C++ compilers masquerading as C compilers 12469 incorrectly reject 9223372036854775807. */ 12470#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12472 && LARGE_OFF_T % 2147483647 == 1) 12473 ? 1 : -1]; 12474int 12475main () 12476{ 12477 12478 ; 12479 return 0; 12480} 12481_ACEOF 12482if ac_fn_c_try_compile "$LINENO"; then : 12483 ac_cv_sys_large_files=no; break 12484fi 12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487/* end confdefs.h. */ 12488#define _LARGE_FILES 1 12489#include <sys/types.h> 12490 /* Check that off_t can represent 2**63 - 1 correctly. 12491 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12492 since some C++ compilers masquerading as C compilers 12493 incorrectly reject 9223372036854775807. */ 12494#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12496 && LARGE_OFF_T % 2147483647 == 1) 12497 ? 1 : -1]; 12498int 12499main () 12500{ 12501 12502 ; 12503 return 0; 12504} 12505_ACEOF 12506if ac_fn_c_try_compile "$LINENO"; then : 12507 ac_cv_sys_large_files=1; break 12508fi 12509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12510 ac_cv_sys_large_files=unknown 12511 break 12512done 12513fi 12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12515$as_echo "$ac_cv_sys_large_files" >&6; } 12516case $ac_cv_sys_large_files in #( 12517 no | unknown) ;; 12518 *) 12519cat >>confdefs.h <<_ACEOF 12520#define _LARGE_FILES $ac_cv_sys_large_files 12521_ACEOF 12522;; 12523esac 12524rm -rf conftest* 12525 fi 12526fi 12527 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12529$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12530if test "${ac_cv_sys_largefile_source+set}" = set; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 while :; do 12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12535/* end confdefs.h. */ 12536#include <sys/types.h> /* for off_t */ 12537 #include <stdio.h> 12538int 12539main () 12540{ 12541int (*fp) (FILE *, off_t, int) = fseeko; 12542 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12543 ; 12544 return 0; 12545} 12546_ACEOF 12547if ac_fn_c_try_link "$LINENO"; then : 12548 ac_cv_sys_largefile_source=no; break 12549fi 12550rm -f core conftest.err conftest.$ac_objext \ 12551 conftest$ac_exeext conftest.$ac_ext 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554#define _LARGEFILE_SOURCE 1 12555#include <sys/types.h> /* for off_t */ 12556 #include <stdio.h> 12557int 12558main () 12559{ 12560int (*fp) (FILE *, off_t, int) = fseeko; 12561 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566if ac_fn_c_try_link "$LINENO"; then : 12567 ac_cv_sys_largefile_source=1; break 12568fi 12569rm -f core conftest.err conftest.$ac_objext \ 12570 conftest$ac_exeext conftest.$ac_ext 12571 ac_cv_sys_largefile_source=unknown 12572 break 12573done 12574fi 12575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12576$as_echo "$ac_cv_sys_largefile_source" >&6; } 12577case $ac_cv_sys_largefile_source in #( 12578 no | unknown) ;; 12579 *) 12580cat >>confdefs.h <<_ACEOF 12581#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12582_ACEOF 12583;; 12584esac 12585rm -rf conftest* 12586 12587# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12588# in glibc 2.1.3, but that breaks too many other things. 12589# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12590if test $ac_cv_sys_largefile_source != unknown; then 12591 12592$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12593 12594fi 12595 12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 12597$as_echo_n "checking for mbstate_t... " >&6; } 12598if test "${ac_cv_type_mbstate_t+set}" = set; then : 12599 $as_echo_n "(cached) " >&6 12600else 12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603$ac_includes_default 12604# include <wchar.h> 12605int 12606main () 12607{ 12608mbstate_t x; return sizeof x; 12609 ; 12610 return 0; 12611} 12612_ACEOF 12613if ac_fn_c_try_compile "$LINENO"; then : 12614 ac_cv_type_mbstate_t=yes 12615else 12616 ac_cv_type_mbstate_t=no 12617fi 12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12619fi 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 12621$as_echo "$ac_cv_type_mbstate_t" >&6; } 12622 if test $ac_cv_type_mbstate_t = yes; then 12623 12624$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 12625 12626 else 12627 12628$as_echo "#define mbstate_t int" >>confdefs.h 12629 12630 fi 12631 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 12633$as_echo_n "checking for struct option in getopt... " >&6; } 12634if test "${ac_cv_struct_option_getopt_h+set}" = set; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638/* end confdefs.h. */ 12639#include <getopt.h> 12640int 12641main () 12642{ 12643struct option op; op.name; 12644 ; 12645 return 0; 12646} 12647_ACEOF 12648if ac_fn_c_try_compile "$LINENO"; then : 12649 ac_cv_struct_option_getopt_h=yes 12650else 12651 ac_cv_struct_option_getopt_h=no 12652fi 12653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12654fi 12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 12656$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 12657if test "$ac_cv_struct_option_getopt_h" = yes; then 12658 12659$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 12660 12661fi 12662 12663 12664ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12665if test "x$ac_cv_type_pid_t" = x""yes; then : 12666 12667cat >>confdefs.h <<_ACEOF 12668#define HAVE_PID_T 1 12669_ACEOF 12670 12671 12672fi 12673ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 12674if test "x$ac_cv_type_uint8_t" = x""yes; then : 12675 12676cat >>confdefs.h <<_ACEOF 12677#define HAVE_UINT8_T 1 12678_ACEOF 12679 12680 12681fi 12682ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 12683if test "x$ac_cv_type_uint16_t" = x""yes; then : 12684 12685cat >>confdefs.h <<_ACEOF 12686#define HAVE_UINT16_T 1 12687_ACEOF 12688 12689 12690fi 12691ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 12692if test "x$ac_cv_type_uint32_t" = x""yes; then : 12693 12694cat >>confdefs.h <<_ACEOF 12695#define HAVE_UINT32_T 1 12696_ACEOF 12697 12698 12699fi 12700ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 12701if test "x$ac_cv_type_int32_t" = x""yes; then : 12702 12703cat >>confdefs.h <<_ACEOF 12704#define HAVE_INT32_T 1 12705_ACEOF 12706 12707 12708fi 12709ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 12710if test "x$ac_cv_type_uint64_t" = x""yes; then : 12711 12712cat >>confdefs.h <<_ACEOF 12713#define HAVE_UINT64_T 1 12714_ACEOF 12715 12716 12717fi 12718ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 12719if test "x$ac_cv_type_int64_t" = x""yes; then : 12720 12721cat >>confdefs.h <<_ACEOF 12722#define HAVE_INT64_T 1 12723_ACEOF 12724 12725 12726fi 12727 12728# The cast to long int works around a bug in the HP C Compiler 12729# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12730# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12731# This bug is HP SR number 8606223364. 12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12733$as_echo_n "checking size of long long... " >&6; } 12734if test "${ac_cv_sizeof_long_long+set}" = set; then : 12735 $as_echo_n "(cached) " >&6 12736else 12737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12738 12739else 12740 if test "$ac_cv_type_long_long" = yes; then 12741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12743{ as_fn_set_status 77 12744as_fn_error "cannot compute sizeof (long long) 12745See \`config.log' for more details." "$LINENO" 5; }; } 12746 else 12747 ac_cv_sizeof_long_long=0 12748 fi 12749fi 12750 12751fi 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12753$as_echo "$ac_cv_sizeof_long_long" >&6; } 12754 12755 12756 12757cat >>confdefs.h <<_ACEOF 12758#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12759_ACEOF 12760 12761 12762 12763 12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 12765$as_echo_n "checking for gcc compiler warnings... " >&6; } 12766# Check whether --enable-warnings was given. 12767if test "${enable_warnings+set}" = set; then : 12768 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12770$as_echo "no" >&6; } 12771 WARNINGS= 12772else 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12774$as_echo "yes" >&6; } 12775 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 12776 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 12777 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 12778 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 12779fi 12780else 12781 12782if test "$GCC" = yes; then 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12784$as_echo "yes" >&6; } 12785 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 12786 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 12787 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 12788 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 12789else 12790 WARNINGS= 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12792$as_echo "no" >&6; } 12793fi 12794fi 12795 12796 12797for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof fork 12798do : 12799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12800ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12801eval as_val=\$$as_ac_var 12802 if test "x$as_val" = x""yes; then : 12803 cat >>confdefs.h <<_ACEOF 12804#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12805_ACEOF 12806 12807fi 12808done 12809 12810 12811for ac_func in getopt_long asprintf vasprintf strlcpy strlcat getline 12812do : 12813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12814ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12815eval as_val=\$$as_ac_var 12816 if test "x$as_val" = x""yes; then : 12817 cat >>confdefs.h <<_ACEOF 12818#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12819_ACEOF 12820 12821else 12822 case " $LIBOBJS " in 12823 *" $ac_func.$ac_objext "* ) ;; 12824 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12825 ;; 12826esac 12827 12828fi 12829done 12830 12831 12832 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 12834$as_echo_n "checking for gzopen in -lz... " >&6; } 12835if test "${ac_cv_lib_z_gzopen+set}" = set; then : 12836 $as_echo_n "(cached) " >&6 12837else 12838 ac_check_lib_save_LIBS=$LIBS 12839LIBS="-lz $LIBS" 12840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12841/* end confdefs.h. */ 12842 12843/* Override any GCC internal prototype to avoid an error. 12844 Use char because int might match the return type of a GCC 12845 builtin and then its argument prototype would still apply. */ 12846#ifdef __cplusplus 12847extern "C" 12848#endif 12849char gzopen (); 12850int 12851main () 12852{ 12853return gzopen (); 12854 ; 12855 return 0; 12856} 12857_ACEOF 12858if ac_fn_c_try_link "$LINENO"; then : 12859 ac_cv_lib_z_gzopen=yes 12860else 12861 ac_cv_lib_z_gzopen=no 12862fi 12863rm -f core conftest.err conftest.$ac_objext \ 12864 conftest$ac_exeext conftest.$ac_ext 12865LIBS=$ac_check_lib_save_LIBS 12866fi 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 12868$as_echo "$ac_cv_lib_z_gzopen" >&6; } 12869if test "x$ac_cv_lib_z_gzopen" = x""yes; then : 12870 cat >>confdefs.h <<_ACEOF 12871#define HAVE_LIBZ 1 12872_ACEOF 12873 12874 LIBS="-lz $LIBS" 12875 12876fi 12877 12878if test "$MINGW" = 1; then 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 12880$as_echo_n "checking for regexec in -lgnurx... " >&6; } 12881if test "${ac_cv_lib_gnurx_regexec+set}" = set; then : 12882 $as_echo_n "(cached) " >&6 12883else 12884 ac_check_lib_save_LIBS=$LIBS 12885LIBS="-lgnurx $LIBS" 12886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12887/* end confdefs.h. */ 12888 12889/* Override any GCC internal prototype to avoid an error. 12890 Use char because int might match the return type of a GCC 12891 builtin and then its argument prototype would still apply. */ 12892#ifdef __cplusplus 12893extern "C" 12894#endif 12895char regexec (); 12896int 12897main () 12898{ 12899return regexec (); 12900 ; 12901 return 0; 12902} 12903_ACEOF 12904if ac_fn_c_try_link "$LINENO"; then : 12905 ac_cv_lib_gnurx_regexec=yes 12906else 12907 ac_cv_lib_gnurx_regexec=no 12908fi 12909rm -f core conftest.err conftest.$ac_objext \ 12910 conftest$ac_exeext conftest.$ac_ext 12911LIBS=$ac_check_lib_save_LIBS 12912fi 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 12914$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 12915if test "x$ac_cv_lib_gnurx_regexec" = x""yes; then : 12916 cat >>confdefs.h <<_ACEOF 12917#define HAVE_LIBGNURX 1 12918_ACEOF 12919 12920 LIBS="-lgnurx $LIBS" 12921 12922else 12923 as_fn_error "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 12924fi 12925 12926fi 12927 12928 if test "$cross_compiling" = yes; then 12929 IS_CROSS_COMPILE_TRUE= 12930 IS_CROSS_COMPILE_FALSE='#' 12931else 12932 IS_CROSS_COMPILE_TRUE='#' 12933 IS_CROSS_COMPILE_FALSE= 12934fi 12935 12936 12937ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 12938 12939cat >confcache <<\_ACEOF 12940# This file is a shell script that caches the results of configure 12941# tests run on this system so they can be shared between configure 12942# scripts and configure runs, see configure's option --config-cache. 12943# It is not useful on other systems. If it contains results you don't 12944# want to keep, you may remove or edit it. 12945# 12946# config.status only pays attention to the cache file if you give it 12947# the --recheck option to rerun configure. 12948# 12949# `ac_cv_env_foo' variables (set or unset) will be overridden when 12950# loading this file, other *unset* `ac_cv_foo' will be assigned the 12951# following values. 12952 12953_ACEOF 12954 12955# The following way of writing the cache mishandles newlines in values, 12956# but we know of no workaround that is simple, portable, and efficient. 12957# So, we kill variables containing newlines. 12958# Ultrix sh set writes to stderr and can't be redirected directly, 12959# and sets the high bit in the cache file unless we assign to the vars. 12960( 12961 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12962 eval ac_val=\$$ac_var 12963 case $ac_val in #( 12964 *${as_nl}*) 12965 case $ac_var in #( 12966 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12967$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12968 esac 12969 case $ac_var in #( 12970 _ | IFS | as_nl) ;; #( 12971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12972 *) { eval $ac_var=; unset $ac_var;} ;; 12973 esac ;; 12974 esac 12975 done 12976 12977 (set) 2>&1 | 12978 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12979 *${as_nl}ac_space=\ *) 12980 # `set' does not quote correctly, so add quotes: double-quote 12981 # substitution turns \\\\ into \\, and sed turns \\ into \. 12982 sed -n \ 12983 "s/'/'\\\\''/g; 12984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12985 ;; #( 12986 *) 12987 # `set' quotes correctly as required by POSIX, so do not add quotes. 12988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12989 ;; 12990 esac | 12991 sort 12992) | 12993 sed ' 12994 /^ac_cv_env_/b end 12995 t clear 12996 :clear 12997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12998 t end 12999 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13000 :end' >>confcache 13001if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13002 if test -w "$cache_file"; then 13003 test "x$cache_file" != "x/dev/null" && 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13005$as_echo "$as_me: updating cache $cache_file" >&6;} 13006 cat confcache >$cache_file 13007 else 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13009$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13010 fi 13011fi 13012rm -f confcache 13013 13014test "x$prefix" = xNONE && prefix=$ac_default_prefix 13015# Let make expand exec_prefix. 13016test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13017 13018DEFS=-DHAVE_CONFIG_H 13019 13020ac_libobjs= 13021ac_ltlibobjs= 13022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13023 # 1. Remove the extension, and $U if already installed. 13024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13025 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13027 # will be set to the directory where LIBOBJS objects are built. 13028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13030done 13031LIBOBJS=$ac_libobjs 13032 13033LTLIBOBJS=$ac_ltlibobjs 13034 13035 13036 if test -n "$EXEEXT"; then 13037 am__EXEEXT_TRUE= 13038 am__EXEEXT_FALSE='#' 13039else 13040 am__EXEEXT_TRUE='#' 13041 am__EXEEXT_FALSE= 13042fi 13043 13044if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13045 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 13046Usually this means the macro was only invoked conditionally." "$LINENO" 5 13047fi 13048if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 13049 as_fn_error "conditional \"MINGW\" was never defined. 13050Usually this means the macro was only invoked conditionally." "$LINENO" 5 13051fi 13052if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 13053 as_fn_error "conditional \"FSECT5\" was never defined. 13054Usually this means the macro was only invoked conditionally." "$LINENO" 5 13055fi 13056if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13057 as_fn_error "conditional \"AMDEP\" was never defined. 13058Usually this means the macro was only invoked conditionally." "$LINENO" 5 13059fi 13060if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13061 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13062Usually this means the macro was only invoked conditionally." "$LINENO" 5 13063fi 13064if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13065 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13066Usually this means the macro was only invoked conditionally." "$LINENO" 5 13067fi 13068if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 13069 as_fn_error "conditional \"IS_CROSS_COMPILE\" was never defined. 13070Usually this means the macro was only invoked conditionally." "$LINENO" 5 13071fi 13072 13073: ${CONFIG_STATUS=./config.status} 13074ac_write_fail=0 13075ac_clean_files_save=$ac_clean_files 13076ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13078$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13079as_write_fail=0 13080cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13081#! $SHELL 13082# Generated by $as_me. 13083# Run this file to recreate the current configuration. 13084# Compiler output produced by configure, useful for debugging 13085# configure, is in config.log if it exists. 13086 13087debug=false 13088ac_cs_recheck=false 13089ac_cs_silent=false 13090 13091SHELL=\${CONFIG_SHELL-$SHELL} 13092export SHELL 13093_ASEOF 13094cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13095## -------------------- ## 13096## M4sh Initialization. ## 13097## -------------------- ## 13098 13099# Be more Bourne compatible 13100DUALCASE=1; export DUALCASE # for MKS sh 13101if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13102 emulate sh 13103 NULLCMD=: 13104 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13105 # is contrary to our usage. Disable this feature. 13106 alias -g '${1+"$@"}'='"$@"' 13107 setopt NO_GLOB_SUBST 13108else 13109 case `(set -o) 2>/dev/null` in #( 13110 *posix*) : 13111 set -o posix ;; #( 13112 *) : 13113 ;; 13114esac 13115fi 13116 13117 13118as_nl=' 13119' 13120export as_nl 13121# Printing a long string crashes Solaris 7 /usr/bin/printf. 13122as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13123as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13124as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13125# Prefer a ksh shell builtin over an external printf program on Solaris, 13126# but without wasting forks for bash or zsh. 13127if test -z "$BASH_VERSION$ZSH_VERSION" \ 13128 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13129 as_echo='print -r --' 13130 as_echo_n='print -rn --' 13131elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13132 as_echo='printf %s\n' 13133 as_echo_n='printf %s' 13134else 13135 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13136 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13137 as_echo_n='/usr/ucb/echo -n' 13138 else 13139 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13140 as_echo_n_body='eval 13141 arg=$1; 13142 case $arg in #( 13143 *"$as_nl"*) 13144 expr "X$arg" : "X\\(.*\\)$as_nl"; 13145 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13146 esac; 13147 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13148 ' 13149 export as_echo_n_body 13150 as_echo_n='sh -c $as_echo_n_body as_echo' 13151 fi 13152 export as_echo_body 13153 as_echo='sh -c $as_echo_body as_echo' 13154fi 13155 13156# The user is always right. 13157if test "${PATH_SEPARATOR+set}" != set; then 13158 PATH_SEPARATOR=: 13159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13161 PATH_SEPARATOR=';' 13162 } 13163fi 13164 13165 13166# IFS 13167# We need space, tab and new line, in precisely that order. Quoting is 13168# there to prevent editors from complaining about space-tab. 13169# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13170# splitting by setting IFS to empty value.) 13171IFS=" "" $as_nl" 13172 13173# Find who we are. Look in the path if we contain no directory separator. 13174case $0 in #(( 13175 *[\\/]* ) as_myself=$0 ;; 13176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13177for as_dir in $PATH 13178do 13179 IFS=$as_save_IFS 13180 test -z "$as_dir" && as_dir=. 13181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13182 done 13183IFS=$as_save_IFS 13184 13185 ;; 13186esac 13187# We did not find ourselves, most probably we were run as `sh COMMAND' 13188# in which case we are not to be found in the path. 13189if test "x$as_myself" = x; then 13190 as_myself=$0 13191fi 13192if test ! -f "$as_myself"; then 13193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13194 exit 1 13195fi 13196 13197# Unset variables that we do not need and which cause bugs (e.g. in 13198# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13199# suppresses any "Segmentation fault" message there. '((' could 13200# trigger a bug in pdksh 5.2.14. 13201for as_var in BASH_ENV ENV MAIL MAILPATH 13202do eval test x\${$as_var+set} = xset \ 13203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13204done 13205PS1='$ ' 13206PS2='> ' 13207PS4='+ ' 13208 13209# NLS nuisances. 13210LC_ALL=C 13211export LC_ALL 13212LANGUAGE=C 13213export LANGUAGE 13214 13215# CDPATH. 13216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13217 13218 13219# as_fn_error ERROR [LINENO LOG_FD] 13220# --------------------------------- 13221# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13222# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13223# script with status $?, using 1 if that was 0. 13224as_fn_error () 13225{ 13226 as_status=$?; test $as_status -eq 0 && as_status=1 13227 if test "$3"; then 13228 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 13230 fi 13231 $as_echo "$as_me: error: $1" >&2 13232 as_fn_exit $as_status 13233} # as_fn_error 13234 13235 13236# as_fn_set_status STATUS 13237# ----------------------- 13238# Set $? to STATUS, without forking. 13239as_fn_set_status () 13240{ 13241 return $1 13242} # as_fn_set_status 13243 13244# as_fn_exit STATUS 13245# ----------------- 13246# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13247as_fn_exit () 13248{ 13249 set +e 13250 as_fn_set_status $1 13251 exit $1 13252} # as_fn_exit 13253 13254# as_fn_unset VAR 13255# --------------- 13256# Portably unset VAR. 13257as_fn_unset () 13258{ 13259 { eval $1=; unset $1;} 13260} 13261as_unset=as_fn_unset 13262# as_fn_append VAR VALUE 13263# ---------------------- 13264# Append the text in VALUE to the end of the definition contained in VAR. Take 13265# advantage of any shell optimizations that allow amortized linear growth over 13266# repeated appends, instead of the typical quadratic growth present in naive 13267# implementations. 13268if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13269 eval 'as_fn_append () 13270 { 13271 eval $1+=\$2 13272 }' 13273else 13274 as_fn_append () 13275 { 13276 eval $1=\$$1\$2 13277 } 13278fi # as_fn_append 13279 13280# as_fn_arith ARG... 13281# ------------------ 13282# Perform arithmetic evaluation on the ARGs, and store the result in the 13283# global $as_val. Take advantage of shells that can avoid forks. The arguments 13284# must be portable across $(()) and expr. 13285if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13286 eval 'as_fn_arith () 13287 { 13288 as_val=$(( $* )) 13289 }' 13290else 13291 as_fn_arith () 13292 { 13293 as_val=`expr "$@" || test $? -eq 1` 13294 } 13295fi # as_fn_arith 13296 13297 13298if expr a : '\(a\)' >/dev/null 2>&1 && 13299 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13300 as_expr=expr 13301else 13302 as_expr=false 13303fi 13304 13305if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13306 as_basename=basename 13307else 13308 as_basename=false 13309fi 13310 13311if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13312 as_dirname=dirname 13313else 13314 as_dirname=false 13315fi 13316 13317as_me=`$as_basename -- "$0" || 13318$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13319 X"$0" : 'X\(//\)$' \| \ 13320 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13321$as_echo X/"$0" | 13322 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13323 s//\1/ 13324 q 13325 } 13326 /^X\/\(\/\/\)$/{ 13327 s//\1/ 13328 q 13329 } 13330 /^X\/\(\/\).*/{ 13331 s//\1/ 13332 q 13333 } 13334 s/.*/./; q'` 13335 13336# Avoid depending upon Character Ranges. 13337as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13338as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13339as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13340as_cr_digits='0123456789' 13341as_cr_alnum=$as_cr_Letters$as_cr_digits 13342 13343ECHO_C= ECHO_N= ECHO_T= 13344case `echo -n x` in #((((( 13345-n*) 13346 case `echo 'xy\c'` in 13347 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13348 xy) ECHO_C='\c';; 13349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13350 ECHO_T=' ';; 13351 esac;; 13352*) 13353 ECHO_N='-n';; 13354esac 13355 13356rm -f conf$$ conf$$.exe conf$$.file 13357if test -d conf$$.dir; then 13358 rm -f conf$$.dir/conf$$.file 13359else 13360 rm -f conf$$.dir 13361 mkdir conf$$.dir 2>/dev/null 13362fi 13363if (echo >conf$$.file) 2>/dev/null; then 13364 if ln -s conf$$.file conf$$ 2>/dev/null; then 13365 as_ln_s='ln -s' 13366 # ... but there are two gotchas: 13367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13369 # In both cases, we have to default to `cp -p'. 13370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13371 as_ln_s='cp -p' 13372 elif ln conf$$.file conf$$ 2>/dev/null; then 13373 as_ln_s=ln 13374 else 13375 as_ln_s='cp -p' 13376 fi 13377else 13378 as_ln_s='cp -p' 13379fi 13380rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13381rmdir conf$$.dir 2>/dev/null 13382 13383 13384# as_fn_mkdir_p 13385# ------------- 13386# Create "$as_dir" as a directory, including parents if necessary. 13387as_fn_mkdir_p () 13388{ 13389 13390 case $as_dir in #( 13391 -*) as_dir=./$as_dir;; 13392 esac 13393 test -d "$as_dir" || eval $as_mkdir_p || { 13394 as_dirs= 13395 while :; do 13396 case $as_dir in #( 13397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13398 *) as_qdir=$as_dir;; 13399 esac 13400 as_dirs="'$as_qdir' $as_dirs" 13401 as_dir=`$as_dirname -- "$as_dir" || 13402$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13403 X"$as_dir" : 'X\(//\)[^/]' \| \ 13404 X"$as_dir" : 'X\(//\)$' \| \ 13405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13406$as_echo X"$as_dir" | 13407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13408 s//\1/ 13409 q 13410 } 13411 /^X\(\/\/\)[^/].*/{ 13412 s//\1/ 13413 q 13414 } 13415 /^X\(\/\/\)$/{ 13416 s//\1/ 13417 q 13418 } 13419 /^X\(\/\).*/{ 13420 s//\1/ 13421 q 13422 } 13423 s/.*/./; q'` 13424 test -d "$as_dir" && break 13425 done 13426 test -z "$as_dirs" || eval "mkdir $as_dirs" 13427 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 13428 13429 13430} # as_fn_mkdir_p 13431if mkdir -p . 2>/dev/null; then 13432 as_mkdir_p='mkdir -p "$as_dir"' 13433else 13434 test -d ./-p && rmdir ./-p 13435 as_mkdir_p=false 13436fi 13437 13438if test -x / >/dev/null 2>&1; then 13439 as_test_x='test -x' 13440else 13441 if ls -dL / >/dev/null 2>&1; then 13442 as_ls_L_option=L 13443 else 13444 as_ls_L_option= 13445 fi 13446 as_test_x=' 13447 eval sh -c '\'' 13448 if test -d "$1"; then 13449 test -d "$1/."; 13450 else 13451 case $1 in #( 13452 -*)set "./$1";; 13453 esac; 13454 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13455 ???[sx]*):;;*)false;;esac;fi 13456 '\'' sh 13457 ' 13458fi 13459as_executable_p=$as_test_x 13460 13461# Sed expression to map a string onto a valid CPP name. 13462as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13463 13464# Sed expression to map a string onto a valid variable name. 13465as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13466 13467 13468exec 6>&1 13469## ----------------------------------- ## 13470## Main body of $CONFIG_STATUS script. ## 13471## ----------------------------------- ## 13472_ASEOF 13473test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13474 13475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13476# Save the log message, to keep $0 and so on meaningful, and to 13477# report actual input values of CONFIG_FILES etc. instead of their 13478# values after options handling. 13479ac_log=" 13480This file was extended by file $as_me 5.11, which was 13481generated by GNU Autoconf 2.68. Invocation command line was 13482 13483 CONFIG_FILES = $CONFIG_FILES 13484 CONFIG_HEADERS = $CONFIG_HEADERS 13485 CONFIG_LINKS = $CONFIG_LINKS 13486 CONFIG_COMMANDS = $CONFIG_COMMANDS 13487 $ $0 $@ 13488 13489on `(hostname || uname -n) 2>/dev/null | sed 1q` 13490" 13491 13492_ACEOF 13493 13494case $ac_config_files in *" 13495"*) set x $ac_config_files; shift; ac_config_files=$*;; 13496esac 13497 13498case $ac_config_headers in *" 13499"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13500esac 13501 13502 13503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13504# Files that config.status was made for. 13505config_files="$ac_config_files" 13506config_headers="$ac_config_headers" 13507config_commands="$ac_config_commands" 13508 13509_ACEOF 13510 13511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13512ac_cs_usage="\ 13513\`$as_me' instantiates files and other configuration actions 13514from templates according to the current configuration. Unless the files 13515and actions are specified as TAGs, all are instantiated by default. 13516 13517Usage: $0 [OPTION]... [TAG]... 13518 13519 -h, --help print this help, then exit 13520 -V, --version print version number and configuration settings, then exit 13521 -q, --quiet, --silent 13522 do not print progress messages 13523 -d, --debug don't remove temporary files 13524 --recheck update $as_me by reconfiguring in the same conditions 13525 --file=FILE[:TEMPLATE] 13526 instantiate the configuration file FILE 13527 --header=FILE[:TEMPLATE] 13528 instantiate the configuration header FILE 13529 13530Configuration files: 13531$config_files 13532 13533Configuration headers: 13534$config_headers 13535 13536Configuration commands: 13537$config_commands 13538 13539Report bugs to <christos@astron.com>." 13540 13541_ACEOF 13542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13543ac_cs_version="\\ 13544file config.status 5.11 13545configured by $0, generated by GNU Autoconf 2.68, 13546 with options \\"\$ac_cs_config\\" 13547 13548Copyright (C) 2009 Free Software Foundation, Inc. 13549This config.status script is free software; the Free Software Foundation 13550gives unlimited permission to copy, distribute and modify it." 13551 13552ac_pwd='$ac_pwd' 13553srcdir='$srcdir' 13554INSTALL='$INSTALL' 13555MKDIR_P='$MKDIR_P' 13556AWK='$AWK' 13557test -n "\$AWK" || AWK=awk 13558_ACEOF 13559 13560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13561# The default lists apply if the user does not specify any file. 13562ac_need_defaults=: 13563while test $# != 0 13564do 13565 case $1 in 13566 --*=*) 13567 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13569 ac_shift=: 13570 ;; 13571 *) 13572 ac_option=$1 13573 ac_optarg=$2 13574 ac_shift=shift 13575 ;; 13576 esac 13577 13578 case $ac_option in 13579 # Handling of the options. 13580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13581 ac_cs_recheck=: ;; 13582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13583 $as_echo "$ac_cs_version"; exit ;; 13584 --debug | --debu | --deb | --de | --d | -d ) 13585 debug=: ;; 13586 --file | --fil | --fi | --f ) 13587 $ac_shift 13588 case $ac_optarg in 13589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13590 esac 13591 as_fn_append CONFIG_FILES " '$ac_optarg'" 13592 ac_need_defaults=false;; 13593 --header | --heade | --head | --hea ) 13594 $ac_shift 13595 case $ac_optarg in 13596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13597 esac 13598 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13599 ac_need_defaults=false;; 13600 --he | --h) 13601 # Conflict between --help and --header 13602 as_fn_error "ambiguous option: \`$1' 13603Try \`$0 --help' for more information.";; 13604 --help | --hel | -h ) 13605 $as_echo "$ac_cs_usage"; exit ;; 13606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13607 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13608 ac_cs_silent=: ;; 13609 13610 # This is an error. 13611 -*) as_fn_error "unrecognized option: \`$1' 13612Try \`$0 --help' for more information." ;; 13613 13614 *) as_fn_append ac_config_targets " $1" 13615 ac_need_defaults=false ;; 13616 13617 esac 13618 shift 13619done 13620 13621ac_configure_extra_args= 13622 13623if $ac_cs_silent; then 13624 exec 6>/dev/null 13625 ac_configure_extra_args="$ac_configure_extra_args --silent" 13626fi 13627 13628_ACEOF 13629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13630if \$ac_cs_recheck; then 13631 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13632 shift 13633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13634 CONFIG_SHELL='$SHELL' 13635 export CONFIG_SHELL 13636 exec "\$@" 13637fi 13638 13639_ACEOF 13640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13641exec 5>>config.log 13642{ 13643 echo 13644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13645## Running $as_me. ## 13646_ASBOX 13647 $as_echo "$ac_log" 13648} >&5 13649 13650_ACEOF 13651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13652# 13653# INIT-COMMANDS 13654# 13655AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13656 13657 13658# The HP-UX ksh and POSIX shell print the target directory to stdout 13659# if CDPATH is set. 13660(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13661 13662sed_quote_subst='$sed_quote_subst' 13663double_quote_subst='$double_quote_subst' 13664delay_variable_subst='$delay_variable_subst' 13665macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13666macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13667enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13668enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13669pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13670enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13671host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13672host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13673host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13674build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13675build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13676build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13677SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13678Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13679GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13680EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13681FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13682LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13683NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13684LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13685max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13686ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13687exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13688lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13689lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13690lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13691reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13692reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13693OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13694deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13695file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13696AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13697AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13698STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13699RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13700old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13701old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13702old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13703CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13704CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13705compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13706GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13707lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13708lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13709lt_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"`' 13710lt_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"`' 13711objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13712SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13713ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13714MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13715lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13716lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13717lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13718lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13719lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13720need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13721DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13722NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13723LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13724OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13725OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13726libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13727shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13728extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13729archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13730enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13731export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13732whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13733compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13734old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13735old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13736archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13737archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13738module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13739module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13740with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13741allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13742no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13743hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13744hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13745hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13746hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13747hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13748hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13749hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13750hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13751inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13752link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13753fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13754always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13755export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13756exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13757include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13758prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13759file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13760variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13761need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13762need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13763version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13764runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13765shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13766shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13767libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13768library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13769soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13770postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13771postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13772finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13773finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13774hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13775sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13776sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13777hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13778enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13779enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13780enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13781old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13782striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13783 13784LTCC='$LTCC' 13785LTCFLAGS='$LTCFLAGS' 13786compiler='$compiler_DEFAULT' 13787 13788# Quote evaled strings. 13789for var in SED \ 13790GREP \ 13791EGREP \ 13792FGREP \ 13793LD \ 13794NM \ 13795LN_S \ 13796lt_SP2NL \ 13797lt_NL2SP \ 13798reload_flag \ 13799OBJDUMP \ 13800deplibs_check_method \ 13801file_magic_cmd \ 13802AR \ 13803AR_FLAGS \ 13804STRIP \ 13805RANLIB \ 13806CC \ 13807CFLAGS \ 13808compiler \ 13809lt_cv_sys_global_symbol_pipe \ 13810lt_cv_sys_global_symbol_to_cdecl \ 13811lt_cv_sys_global_symbol_to_c_name_address \ 13812lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13813SHELL \ 13814ECHO \ 13815lt_prog_compiler_no_builtin_flag \ 13816lt_prog_compiler_wl \ 13817lt_prog_compiler_pic \ 13818lt_prog_compiler_static \ 13819lt_cv_prog_compiler_c_o \ 13820need_locks \ 13821DSYMUTIL \ 13822NMEDIT \ 13823LIPO \ 13824OTOOL \ 13825OTOOL64 \ 13826shrext_cmds \ 13827export_dynamic_flag_spec \ 13828whole_archive_flag_spec \ 13829compiler_needs_object \ 13830with_gnu_ld \ 13831allow_undefined_flag \ 13832no_undefined_flag \ 13833hardcode_libdir_flag_spec \ 13834hardcode_libdir_flag_spec_ld \ 13835hardcode_libdir_separator \ 13836fix_srcfile_path \ 13837exclude_expsyms \ 13838include_expsyms \ 13839file_list_spec \ 13840variables_saved_for_relink \ 13841libname_spec \ 13842library_names_spec \ 13843soname_spec \ 13844finish_eval \ 13845old_striplib \ 13846striplib; do 13847 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13848 *[\\\\\\\`\\"\\\$]*) 13849 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13850 ;; 13851 *) 13852 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13853 ;; 13854 esac 13855done 13856 13857# Double-quote double-evaled strings. 13858for var in reload_cmds \ 13859old_postinstall_cmds \ 13860old_postuninstall_cmds \ 13861old_archive_cmds \ 13862extract_expsyms_cmds \ 13863old_archive_from_new_cmds \ 13864old_archive_from_expsyms_cmds \ 13865archive_cmds \ 13866archive_expsym_cmds \ 13867module_cmds \ 13868module_expsym_cmds \ 13869export_symbols_cmds \ 13870prelink_cmds \ 13871postinstall_cmds \ 13872postuninstall_cmds \ 13873finish_cmds \ 13874sys_lib_search_path_spec \ 13875sys_lib_dlsearch_path_spec; do 13876 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13877 *[\\\\\\\`\\"\\\$]*) 13878 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13879 ;; 13880 *) 13881 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13882 ;; 13883 esac 13884done 13885 13886# Fix-up fallback echo if it was mangled by the above quoting rules. 13887case \$lt_ECHO in 13888*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13889 ;; 13890esac 13891 13892ac_aux_dir='$ac_aux_dir' 13893xsi_shell='$xsi_shell' 13894lt_shell_append='$lt_shell_append' 13895 13896# See if we are running on zsh, and set the options which allow our 13897# commands through without removal of \ escapes INIT. 13898if test -n "\${ZSH_VERSION+set}" ; then 13899 setopt NO_GLOB_SUBST 13900fi 13901 13902 13903 PACKAGE='$PACKAGE' 13904 VERSION='$VERSION' 13905 TIMESTAMP='$TIMESTAMP' 13906 RM='$RM' 13907 ofile='$ofile' 13908 13909 13910 13911 13912_ACEOF 13913 13914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13915 13916# Handling of arguments. 13917for ac_config_target in $ac_config_targets 13918do 13919 case $ac_config_target in 13920 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13921 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13922 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13923 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13924 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13925 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 13926 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13927 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13928 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 13929 13930 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13931 esac 13932done 13933 13934 13935# If the user did not use the arguments to specify the items to instantiate, 13936# then the envvar interface is used. Set only those that are not. 13937# We use the long form for the default assignment because of an extremely 13938# bizarre bug on SunOS 4.1.3. 13939if $ac_need_defaults; then 13940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13943fi 13944 13945# Have a temporary directory for convenience. Make it in the build tree 13946# simply because there is no reason against having it here, and in addition, 13947# creating and moving files from /tmp can sometimes cause problems. 13948# Hook for its removal unless debugging. 13949# Note that there is a small window in which the directory will not be cleaned: 13950# after its creation but before its name has been assigned to `$tmp'. 13951$debug || 13952{ 13953 tmp= 13954 trap 'exit_status=$? 13955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13956' 0 13957 trap 'as_fn_exit 1' 1 2 13 15 13958} 13959# Create a (secure) tmp directory for tmp files. 13960 13961{ 13962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13963 test -n "$tmp" && test -d "$tmp" 13964} || 13965{ 13966 tmp=./conf$$-$RANDOM 13967 (umask 077 && mkdir "$tmp") 13968} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13969 13970# Set up the scripts for CONFIG_FILES section. 13971# No need to generate them if there are no CONFIG_FILES. 13972# This happens for instance with `./config.status config.h'. 13973if test -n "$CONFIG_FILES"; then 13974 13975 13976ac_cr=`echo X | tr X '\015'` 13977# On cygwin, bash can eat \r inside `` if the user requested igncr. 13978# But we know of no other shell where ac_cr would be empty at this 13979# point, so we can use a bashism as a fallback. 13980if test "x$ac_cr" = x; then 13981 eval ac_cr=\$\'\\r\' 13982fi 13983ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13984if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13985 ac_cs_awk_cr='\r' 13986else 13987 ac_cs_awk_cr=$ac_cr 13988fi 13989 13990echo 'BEGIN {' >"$tmp/subs1.awk" && 13991_ACEOF 13992 13993 13994{ 13995 echo "cat >conf$$subs.awk <<_ACEOF" && 13996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13997 echo "_ACEOF" 13998} >conf$$subs.sh || 13999 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14000ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14001ac_delim='%!_!# ' 14002for ac_last_try in false false false false false :; do 14003 . ./conf$$subs.sh || 14004 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14005 14006 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14007 if test $ac_delim_n = $ac_delim_num; then 14008 break 14009 elif $ac_last_try; then 14010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14011 else 14012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14013 fi 14014done 14015rm -f conf$$subs.sh 14016 14017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14018cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14019_ACEOF 14020sed -n ' 14021h 14022s/^/S["/; s/!.*/"]=/ 14023p 14024g 14025s/^[^!]*!// 14026:repl 14027t repl 14028s/'"$ac_delim"'$// 14029t delim 14030:nl 14031h 14032s/\(.\{148\}\).*/\1/ 14033t more1 14034s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14035p 14036n 14037b repl 14038:more1 14039s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14040p 14041g 14042s/.\{148\}// 14043t nl 14044:delim 14045h 14046s/\(.\{148\}\).*/\1/ 14047t more2 14048s/["\\]/\\&/g; s/^/"/; s/$/"/ 14049p 14050b 14051:more2 14052s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14053p 14054g 14055s/.\{148\}// 14056t delim 14057' <conf$$subs.awk | sed ' 14058/^[^""]/{ 14059 N 14060 s/\n// 14061} 14062' >>$CONFIG_STATUS || ac_write_fail=1 14063rm -f conf$$subs.awk 14064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14065_ACAWK 14066cat >>"\$tmp/subs1.awk" <<_ACAWK && 14067 for (key in S) S_is_set[key] = 1 14068 FS = "" 14069 14070} 14071{ 14072 line = $ 0 14073 nfields = split(line, field, "@") 14074 substed = 0 14075 len = length(field[1]) 14076 for (i = 2; i < nfields; i++) { 14077 key = field[i] 14078 keylen = length(key) 14079 if (S_is_set[key]) { 14080 value = S[key] 14081 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14082 len += length(value) + length(field[++i]) 14083 substed = 1 14084 } else 14085 len += 1 + keylen 14086 } 14087 14088 print line 14089} 14090 14091_ACAWK 14092_ACEOF 14093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14094if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14095 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14096else 14097 cat 14098fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14099 || as_fn_error "could not setup config files machinery" "$LINENO" 5 14100_ACEOF 14101 14102# VPATH may cause trouble with some makes, so we remove $(srcdir), 14103# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14104# trailing colons and then remove the whole line if VPATH becomes empty 14105# (actually we leave an empty line to preserve line numbers). 14106if test "x$srcdir" = x.; then 14107 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14108s/:*\$(srcdir):*/:/ 14109s/:*\${srcdir}:*/:/ 14110s/:*@srcdir@:*/:/ 14111s/^\([^=]*=[ ]*\):*/\1/ 14112s/:*$// 14113s/^[^=]*=[ ]*$// 14114}' 14115fi 14116 14117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14118fi # test -n "$CONFIG_FILES" 14119 14120# Set up the scripts for CONFIG_HEADERS section. 14121# No need to generate them if there are no CONFIG_HEADERS. 14122# This happens for instance with `./config.status Makefile'. 14123if test -n "$CONFIG_HEADERS"; then 14124cat >"$tmp/defines.awk" <<\_ACAWK || 14125BEGIN { 14126_ACEOF 14127 14128# Transform confdefs.h into an awk script `defines.awk', embedded as 14129# here-document in config.status, that substitutes the proper values into 14130# config.h.in to produce config.h. 14131 14132# Create a delimiter string that does not exist in confdefs.h, to ease 14133# handling of long lines. 14134ac_delim='%!_!# ' 14135for ac_last_try in false false :; do 14136 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14137 if test -z "$ac_t"; then 14138 break 14139 elif $ac_last_try; then 14140 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 14141 else 14142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14143 fi 14144done 14145 14146# For the awk script, D is an array of macro values keyed by name, 14147# likewise P contains macro parameters if any. Preserve backslash 14148# newline sequences. 14149 14150ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14151sed -n ' 14152s/.\{148\}/&'"$ac_delim"'/g 14153t rset 14154:rset 14155s/^[ ]*#[ ]*define[ ][ ]*/ / 14156t def 14157d 14158:def 14159s/\\$// 14160t bsnl 14161s/["\\]/\\&/g 14162s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14163D["\1"]=" \3"/p 14164s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14165d 14166:bsnl 14167s/["\\]/\\&/g 14168s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14169D["\1"]=" \3\\\\\\n"\\/p 14170t cont 14171s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14172t cont 14173d 14174:cont 14175n 14176s/.\{148\}/&'"$ac_delim"'/g 14177t clear 14178:clear 14179s/\\$// 14180t bsnlc 14181s/["\\]/\\&/g; s/^/"/; s/$/"/p 14182d 14183:bsnlc 14184s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14185b cont 14186' <confdefs.h | sed ' 14187s/'"$ac_delim"'/"\\\ 14188"/g' >>$CONFIG_STATUS || ac_write_fail=1 14189 14190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14191 for (key in D) D_is_set[key] = 1 14192 FS = "" 14193} 14194/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14195 line = \$ 0 14196 split(line, arg, " ") 14197 if (arg[1] == "#") { 14198 defundef = arg[2] 14199 mac1 = arg[3] 14200 } else { 14201 defundef = substr(arg[1], 2) 14202 mac1 = arg[2] 14203 } 14204 split(mac1, mac2, "(") #) 14205 macro = mac2[1] 14206 prefix = substr(line, 1, index(line, defundef) - 1) 14207 if (D_is_set[macro]) { 14208 # Preserve the white space surrounding the "#". 14209 print prefix "define", macro P[macro] D[macro] 14210 next 14211 } else { 14212 # Replace #undef with comments. This is necessary, for example, 14213 # in the case of _POSIX_SOURCE, which is predefined and required 14214 # on some systems where configure will not decide to define it. 14215 if (defundef == "undef") { 14216 print "/*", prefix defundef, macro, "*/" 14217 next 14218 } 14219 } 14220} 14221{ print } 14222_ACAWK 14223_ACEOF 14224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14225 as_fn_error "could not setup config headers machinery" "$LINENO" 5 14226fi # test -n "$CONFIG_HEADERS" 14227 14228 14229eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14230shift 14231for ac_tag 14232do 14233 case $ac_tag in 14234 :[FHLC]) ac_mode=$ac_tag; continue;; 14235 esac 14236 case $ac_mode$ac_tag in 14237 :[FHL]*:*);; 14238 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 14239 :[FH]-) ac_tag=-:-;; 14240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14241 esac 14242 ac_save_IFS=$IFS 14243 IFS=: 14244 set x $ac_tag 14245 IFS=$ac_save_IFS 14246 shift 14247 ac_file=$1 14248 shift 14249 14250 case $ac_mode in 14251 :L) ac_source=$1;; 14252 :[FH]) 14253 ac_file_inputs= 14254 for ac_f 14255 do 14256 case $ac_f in 14257 -) ac_f="$tmp/stdin";; 14258 *) # Look for the file first in the build tree, then in the source tree 14259 # (if the path is not absolute). The absolute path cannot be DOS-style, 14260 # because $ac_f cannot contain `:'. 14261 test -f "$ac_f" || 14262 case $ac_f in 14263 [\\/$]*) false;; 14264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14265 esac || 14266 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14267 esac 14268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14269 as_fn_append ac_file_inputs " '$ac_f'" 14270 done 14271 14272 # Let's still pretend it is `configure' which instantiates (i.e., don't 14273 # use $as_me), people would be surprised to read: 14274 # /* config.h. Generated by config.status. */ 14275 configure_input='Generated from '` 14276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14277 `' by configure.' 14278 if test x"$ac_file" != x-; then 14279 configure_input="$ac_file. $configure_input" 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14281$as_echo "$as_me: creating $ac_file" >&6;} 14282 fi 14283 # Neutralize special characters interpreted by sed in replacement strings. 14284 case $configure_input in #( 14285 *\&* | *\|* | *\\* ) 14286 ac_sed_conf_input=`$as_echo "$configure_input" | 14287 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14288 *) ac_sed_conf_input=$configure_input;; 14289 esac 14290 14291 case $ac_tag in 14292 *:-:* | *:-) cat >"$tmp/stdin" \ 14293 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 14294 esac 14295 ;; 14296 esac 14297 14298 ac_dir=`$as_dirname -- "$ac_file" || 14299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14300 X"$ac_file" : 'X\(//\)[^/]' \| \ 14301 X"$ac_file" : 'X\(//\)$' \| \ 14302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14303$as_echo X"$ac_file" | 14304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14305 s//\1/ 14306 q 14307 } 14308 /^X\(\/\/\)[^/].*/{ 14309 s//\1/ 14310 q 14311 } 14312 /^X\(\/\/\)$/{ 14313 s//\1/ 14314 q 14315 } 14316 /^X\(\/\).*/{ 14317 s//\1/ 14318 q 14319 } 14320 s/.*/./; q'` 14321 as_dir="$ac_dir"; as_fn_mkdir_p 14322 ac_builddir=. 14323 14324case "$ac_dir" in 14325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14326*) 14327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14328 # A ".." for each directory in $ac_dir_suffix. 14329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14330 case $ac_top_builddir_sub in 14331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14333 esac ;; 14334esac 14335ac_abs_top_builddir=$ac_pwd 14336ac_abs_builddir=$ac_pwd$ac_dir_suffix 14337# for backward compatibility: 14338ac_top_builddir=$ac_top_build_prefix 14339 14340case $srcdir in 14341 .) # We are building in place. 14342 ac_srcdir=. 14343 ac_top_srcdir=$ac_top_builddir_sub 14344 ac_abs_top_srcdir=$ac_pwd ;; 14345 [\\/]* | ?:[\\/]* ) # Absolute name. 14346 ac_srcdir=$srcdir$ac_dir_suffix; 14347 ac_top_srcdir=$srcdir 14348 ac_abs_top_srcdir=$srcdir ;; 14349 *) # Relative name. 14350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14351 ac_top_srcdir=$ac_top_build_prefix$srcdir 14352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14353esac 14354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14355 14356 14357 case $ac_mode in 14358 :F) 14359 # 14360 # CONFIG_FILE 14361 # 14362 14363 case $INSTALL in 14364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14366 esac 14367 ac_MKDIR_P=$MKDIR_P 14368 case $MKDIR_P in 14369 [\\/$]* | ?:[\\/]* ) ;; 14370 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14371 esac 14372_ACEOF 14373 14374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14375# If the template does not know about datarootdir, expand it. 14376# FIXME: This hack should be removed a few years after 2.60. 14377ac_datarootdir_hack=; ac_datarootdir_seen= 14378ac_sed_dataroot=' 14379/datarootdir/ { 14380 p 14381 q 14382} 14383/@datadir@/p 14384/@docdir@/p 14385/@infodir@/p 14386/@localedir@/p 14387/@mandir@/p' 14388case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14389*datarootdir*) ac_datarootdir_seen=yes;; 14390*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14392$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14393_ACEOF 14394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14395 ac_datarootdir_hack=' 14396 s&@datadir@&$datadir&g 14397 s&@docdir@&$docdir&g 14398 s&@infodir@&$infodir&g 14399 s&@localedir@&$localedir&g 14400 s&@mandir@&$mandir&g 14401 s&\\\${datarootdir}&$datarootdir&g' ;; 14402esac 14403_ACEOF 14404 14405# Neutralize VPATH when `$srcdir' = `.'. 14406# Shell code in configure.ac might set extrasub. 14407# FIXME: do we really want to maintain this feature? 14408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14409ac_sed_extra="$ac_vpsub 14410$extrasub 14411_ACEOF 14412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14413:t 14414/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14415s|@configure_input@|$ac_sed_conf_input|;t t 14416s&@top_builddir@&$ac_top_builddir_sub&;t t 14417s&@top_build_prefix@&$ac_top_build_prefix&;t t 14418s&@srcdir@&$ac_srcdir&;t t 14419s&@abs_srcdir@&$ac_abs_srcdir&;t t 14420s&@top_srcdir@&$ac_top_srcdir&;t t 14421s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14422s&@builddir@&$ac_builddir&;t t 14423s&@abs_builddir@&$ac_abs_builddir&;t t 14424s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14425s&@INSTALL@&$ac_INSTALL&;t t 14426s&@MKDIR_P@&$ac_MKDIR_P&;t t 14427$ac_datarootdir_hack 14428" 14429eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14430 || as_fn_error "could not create $ac_file" "$LINENO" 5 14431 14432test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14436which seems to be undefined. Please make sure it is defined." >&5 14437$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14438which seems to be undefined. Please make sure it is defined." >&2;} 14439 14440 rm -f "$tmp/stdin" 14441 case $ac_file in 14442 -) cat "$tmp/out" && rm -f "$tmp/out";; 14443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14444 esac \ 14445 || as_fn_error "could not create $ac_file" "$LINENO" 5 14446 ;; 14447 :H) 14448 # 14449 # CONFIG_HEADER 14450 # 14451 if test x"$ac_file" != x-; then 14452 { 14453 $as_echo "/* $configure_input */" \ 14454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14455 } >"$tmp/config.h" \ 14456 || as_fn_error "could not create $ac_file" "$LINENO" 5 14457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14459$as_echo "$as_me: $ac_file is unchanged" >&6;} 14460 else 14461 rm -f "$ac_file" 14462 mv "$tmp/config.h" "$ac_file" \ 14463 || as_fn_error "could not create $ac_file" "$LINENO" 5 14464 fi 14465 else 14466 $as_echo "/* $configure_input */" \ 14467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14468 || as_fn_error "could not create -" "$LINENO" 5 14469 fi 14470# Compute "$ac_file"'s index in $config_headers. 14471_am_arg="$ac_file" 14472_am_stamp_count=1 14473for _am_header in $config_headers :; do 14474 case $_am_header in 14475 $_am_arg | $_am_arg:* ) 14476 break ;; 14477 * ) 14478 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14479 esac 14480done 14481echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14482$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14483 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14484 X"$_am_arg" : 'X\(//\)$' \| \ 14485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14486$as_echo X"$_am_arg" | 14487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14488 s//\1/ 14489 q 14490 } 14491 /^X\(\/\/\)[^/].*/{ 14492 s//\1/ 14493 q 14494 } 14495 /^X\(\/\/\)$/{ 14496 s//\1/ 14497 q 14498 } 14499 /^X\(\/\).*/{ 14500 s//\1/ 14501 q 14502 } 14503 s/.*/./; q'`/stamp-h$_am_stamp_count 14504 ;; 14505 14506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14507$as_echo "$as_me: executing $ac_file commands" >&6;} 14508 ;; 14509 esac 14510 14511 14512 case $ac_file$ac_mode in 14513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14514 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14515 # are listed without --file. Let's play safe and only enable the eval 14516 # if we detect the quoting. 14517 case $CONFIG_FILES in 14518 *\'*) eval set x "$CONFIG_FILES" ;; 14519 *) set x $CONFIG_FILES ;; 14520 esac 14521 shift 14522 for mf 14523 do 14524 # Strip MF so we end up with the name of the file. 14525 mf=`echo "$mf" | sed -e 's/:.*$//'` 14526 # Check whether this is an Automake generated Makefile or not. 14527 # We used to match only the files named `Makefile.in', but 14528 # some people rename them; so instead we look at the file content. 14529 # Grep'ing the first line is not enough: some people post-process 14530 # each Makefile.in and add a new line on top of each file to say so. 14531 # Grep'ing the whole file is not good either: AIX grep has a line 14532 # limit of 2048, but all sed's we know have understand at least 4000. 14533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14534 dirpart=`$as_dirname -- "$mf" || 14535$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14536 X"$mf" : 'X\(//\)[^/]' \| \ 14537 X"$mf" : 'X\(//\)$' \| \ 14538 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14539$as_echo X"$mf" | 14540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14541 s//\1/ 14542 q 14543 } 14544 /^X\(\/\/\)[^/].*/{ 14545 s//\1/ 14546 q 14547 } 14548 /^X\(\/\/\)$/{ 14549 s//\1/ 14550 q 14551 } 14552 /^X\(\/\).*/{ 14553 s//\1/ 14554 q 14555 } 14556 s/.*/./; q'` 14557 else 14558 continue 14559 fi 14560 # Extract the definition of DEPDIR, am__include, and am__quote 14561 # from the Makefile without running `make'. 14562 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14563 test -z "$DEPDIR" && continue 14564 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14565 test -z "am__include" && continue 14566 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14567 # When using ansi2knr, U may be empty or an underscore; expand it 14568 U=`sed -n 's/^U = //p' < "$mf"` 14569 # Find all dependency output files, they are included files with 14570 # $(DEPDIR) in their names. We invoke sed twice because it is the 14571 # simplest approach to changing $(DEPDIR) to its actual value in the 14572 # expansion. 14573 for file in `sed -n " 14574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14576 # Make sure the directory exists. 14577 test -f "$dirpart/$file" && continue 14578 fdir=`$as_dirname -- "$file" || 14579$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14580 X"$file" : 'X\(//\)[^/]' \| \ 14581 X"$file" : 'X\(//\)$' \| \ 14582 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14583$as_echo X"$file" | 14584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14585 s//\1/ 14586 q 14587 } 14588 /^X\(\/\/\)[^/].*/{ 14589 s//\1/ 14590 q 14591 } 14592 /^X\(\/\/\)$/{ 14593 s//\1/ 14594 q 14595 } 14596 /^X\(\/\).*/{ 14597 s//\1/ 14598 q 14599 } 14600 s/.*/./; q'` 14601 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14602 # echo "creating $dirpart/$file" 14603 echo '# dummy' > "$dirpart/$file" 14604 done 14605 done 14606} 14607 ;; 14608 "libtool":C) 14609 14610 # See if we are running on zsh, and set the options which allow our 14611 # commands through without removal of \ escapes. 14612 if test -n "${ZSH_VERSION+set}" ; then 14613 setopt NO_GLOB_SUBST 14614 fi 14615 14616 cfgfile="${ofile}T" 14617 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14618 $RM "$cfgfile" 14619 14620 cat <<_LT_EOF >> "$cfgfile" 14621#! $SHELL 14622 14623# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14624# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14625# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14626# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14627# 14628# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14629# 2006, 2007, 2008 Free Software Foundation, Inc. 14630# Written by Gordon Matzigkeit, 1996 14631# 14632# This file is part of GNU Libtool. 14633# 14634# GNU Libtool is free software; you can redistribute it and/or 14635# modify it under the terms of the GNU General Public License as 14636# published by the Free Software Foundation; either version 2 of 14637# the License, or (at your option) any later version. 14638# 14639# As a special exception to the GNU General Public License, 14640# if you distribute this file as part of a program or library that 14641# is built using GNU Libtool, you may include this file under the 14642# same distribution terms that you use for the rest of that program. 14643# 14644# GNU Libtool is distributed in the hope that it will be useful, 14645# but WITHOUT ANY WARRANTY; without even the implied warranty of 14646# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14647# GNU General Public License for more details. 14648# 14649# You should have received a copy of the GNU General Public License 14650# along with GNU Libtool; see the file COPYING. If not, a copy 14651# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14652# obtained by writing to the Free Software Foundation, Inc., 14653# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14654 14655 14656# The names of the tagged configurations supported by this script. 14657available_tags="" 14658 14659# ### BEGIN LIBTOOL CONFIG 14660 14661# Which release of libtool.m4 was used? 14662macro_version=$macro_version 14663macro_revision=$macro_revision 14664 14665# Whether or not to build shared libraries. 14666build_libtool_libs=$enable_shared 14667 14668# Whether or not to build static libraries. 14669build_old_libs=$enable_static 14670 14671# What type of objects to build. 14672pic_mode=$pic_mode 14673 14674# Whether or not to optimize for fast installation. 14675fast_install=$enable_fast_install 14676 14677# The host system. 14678host_alias=$host_alias 14679host=$host 14680host_os=$host_os 14681 14682# The build system. 14683build_alias=$build_alias 14684build=$build 14685build_os=$build_os 14686 14687# A sed program that does not truncate output. 14688SED=$lt_SED 14689 14690# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14691Xsed="\$SED -e 1s/^X//" 14692 14693# A grep program that handles long lines. 14694GREP=$lt_GREP 14695 14696# An ERE matcher. 14697EGREP=$lt_EGREP 14698 14699# A literal string matcher. 14700FGREP=$lt_FGREP 14701 14702# A BSD- or MS-compatible name lister. 14703NM=$lt_NM 14704 14705# Whether we need soft or hard links. 14706LN_S=$lt_LN_S 14707 14708# What is the maximum length of a command? 14709max_cmd_len=$max_cmd_len 14710 14711# Object file suffix (normally "o"). 14712objext=$ac_objext 14713 14714# Executable file suffix (normally ""). 14715exeext=$exeext 14716 14717# whether the shell understands "unset". 14718lt_unset=$lt_unset 14719 14720# turn spaces into newlines. 14721SP2NL=$lt_lt_SP2NL 14722 14723# turn newlines into spaces. 14724NL2SP=$lt_lt_NL2SP 14725 14726# How to create reloadable object files. 14727reload_flag=$lt_reload_flag 14728reload_cmds=$lt_reload_cmds 14729 14730# An object symbol dumper. 14731OBJDUMP=$lt_OBJDUMP 14732 14733# Method to check whether dependent libraries are shared objects. 14734deplibs_check_method=$lt_deplibs_check_method 14735 14736# Command to use when deplibs_check_method == "file_magic". 14737file_magic_cmd=$lt_file_magic_cmd 14738 14739# The archiver. 14740AR=$lt_AR 14741AR_FLAGS=$lt_AR_FLAGS 14742 14743# A symbol stripping program. 14744STRIP=$lt_STRIP 14745 14746# Commands used to install an old-style archive. 14747RANLIB=$lt_RANLIB 14748old_postinstall_cmds=$lt_old_postinstall_cmds 14749old_postuninstall_cmds=$lt_old_postuninstall_cmds 14750 14751# A C compiler. 14752LTCC=$lt_CC 14753 14754# LTCC compiler flags. 14755LTCFLAGS=$lt_CFLAGS 14756 14757# Take the output of nm and produce a listing of raw symbols and C names. 14758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14759 14760# Transform the output of nm in a proper C declaration. 14761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14762 14763# Transform the output of nm in a C name address pair. 14764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14765 14766# Transform the output of nm in a C name address pair when lib prefix is needed. 14767global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14768 14769# The name of the directory that contains temporary libtool files. 14770objdir=$objdir 14771 14772# Shell to use when invoking shell scripts. 14773SHELL=$lt_SHELL 14774 14775# An echo program that does not interpret backslashes. 14776ECHO=$lt_ECHO 14777 14778# Used to examine libraries when file_magic_cmd begins with "file". 14779MAGIC_CMD=$MAGIC_CMD 14780 14781# Must we lock files when doing compilation? 14782need_locks=$lt_need_locks 14783 14784# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14785DSYMUTIL=$lt_DSYMUTIL 14786 14787# Tool to change global to local symbols on Mac OS X. 14788NMEDIT=$lt_NMEDIT 14789 14790# Tool to manipulate fat objects and archives on Mac OS X. 14791LIPO=$lt_LIPO 14792 14793# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14794OTOOL=$lt_OTOOL 14795 14796# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14797OTOOL64=$lt_OTOOL64 14798 14799# Old archive suffix (normally "a"). 14800libext=$libext 14801 14802# Shared library suffix (normally ".so"). 14803shrext_cmds=$lt_shrext_cmds 14804 14805# The commands to extract the exported symbol list from a shared archive. 14806extract_expsyms_cmds=$lt_extract_expsyms_cmds 14807 14808# Variables whose values should be saved in libtool wrapper scripts and 14809# restored at link time. 14810variables_saved_for_relink=$lt_variables_saved_for_relink 14811 14812# Do we need the "lib" prefix for modules? 14813need_lib_prefix=$need_lib_prefix 14814 14815# Do we need a version for libraries? 14816need_version=$need_version 14817 14818# Library versioning type. 14819version_type=$version_type 14820 14821# Shared library runtime path variable. 14822runpath_var=$runpath_var 14823 14824# Shared library path variable. 14825shlibpath_var=$shlibpath_var 14826 14827# Is shlibpath searched before the hard-coded library search path? 14828shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14829 14830# Format of library name prefix. 14831libname_spec=$lt_libname_spec 14832 14833# List of archive names. First name is the real one, the rest are links. 14834# The last name is the one that the linker finds with -lNAME 14835library_names_spec=$lt_library_names_spec 14836 14837# The coded name of the library, if different from the real name. 14838soname_spec=$lt_soname_spec 14839 14840# Command to use after installation of a shared archive. 14841postinstall_cmds=$lt_postinstall_cmds 14842 14843# Command to use after uninstallation of a shared archive. 14844postuninstall_cmds=$lt_postuninstall_cmds 14845 14846# Commands used to finish a libtool library installation in a directory. 14847finish_cmds=$lt_finish_cmds 14848 14849# As "finish_cmds", except a single script fragment to be evaled but 14850# not shown. 14851finish_eval=$lt_finish_eval 14852 14853# Whether we should hardcode library paths into libraries. 14854hardcode_into_libs=$hardcode_into_libs 14855 14856# Compile-time system search path for libraries. 14857sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14858 14859# Run-time system search path for libraries. 14860sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14861 14862# Whether dlopen is supported. 14863dlopen_support=$enable_dlopen 14864 14865# Whether dlopen of programs is supported. 14866dlopen_self=$enable_dlopen_self 14867 14868# Whether dlopen of statically linked programs is supported. 14869dlopen_self_static=$enable_dlopen_self_static 14870 14871# Commands to strip libraries. 14872old_striplib=$lt_old_striplib 14873striplib=$lt_striplib 14874 14875 14876# The linker used to build libraries. 14877LD=$lt_LD 14878 14879# Commands used to build an old-style archive. 14880old_archive_cmds=$lt_old_archive_cmds 14881 14882# A language specific compiler. 14883CC=$lt_compiler 14884 14885# Is the compiler the GNU compiler? 14886with_gcc=$GCC 14887 14888# Compiler flag to turn off builtin functions. 14889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14890 14891# How to pass a linker flag through the compiler. 14892wl=$lt_lt_prog_compiler_wl 14893 14894# Additional compiler flags for building library objects. 14895pic_flag=$lt_lt_prog_compiler_pic 14896 14897# Compiler flag to prevent dynamic linking. 14898link_static_flag=$lt_lt_prog_compiler_static 14899 14900# Does compiler simultaneously support -c and -o options? 14901compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14902 14903# Whether or not to add -lc for building shared libraries. 14904build_libtool_need_lc=$archive_cmds_need_lc 14905 14906# Whether or not to disallow shared libs when runtime libs are static. 14907allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14908 14909# Compiler flag to allow reflexive dlopens. 14910export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14911 14912# Compiler flag to generate shared objects directly from archives. 14913whole_archive_flag_spec=$lt_whole_archive_flag_spec 14914 14915# Whether the compiler copes with passing no objects directly. 14916compiler_needs_object=$lt_compiler_needs_object 14917 14918# Create an old-style archive from a shared archive. 14919old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14920 14921# Create a temporary old-style archive to link instead of a shared archive. 14922old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14923 14924# Commands used to build a shared archive. 14925archive_cmds=$lt_archive_cmds 14926archive_expsym_cmds=$lt_archive_expsym_cmds 14927 14928# Commands used to build a loadable module if different from building 14929# a shared archive. 14930module_cmds=$lt_module_cmds 14931module_expsym_cmds=$lt_module_expsym_cmds 14932 14933# Whether we are building with GNU ld or not. 14934with_gnu_ld=$lt_with_gnu_ld 14935 14936# Flag that allows shared libraries with undefined symbols to be built. 14937allow_undefined_flag=$lt_allow_undefined_flag 14938 14939# Flag that enforces no undefined symbols. 14940no_undefined_flag=$lt_no_undefined_flag 14941 14942# Flag to hardcode \$libdir into a binary during linking. 14943# This must work even if \$libdir does not exist 14944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14945 14946# If ld is used when linking, flag to hardcode \$libdir into a binary 14947# during linking. This must work even if \$libdir does not exist. 14948hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14949 14950# Whether we need a single "-rpath" flag with a separated argument. 14951hardcode_libdir_separator=$lt_hardcode_libdir_separator 14952 14953# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14954# DIR into the resulting binary. 14955hardcode_direct=$hardcode_direct 14956 14957# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14958# DIR into the resulting binary and the resulting library dependency is 14959# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14960# library is relocated. 14961hardcode_direct_absolute=$hardcode_direct_absolute 14962 14963# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14964# into the resulting binary. 14965hardcode_minus_L=$hardcode_minus_L 14966 14967# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14968# into the resulting binary. 14969hardcode_shlibpath_var=$hardcode_shlibpath_var 14970 14971# Set to "yes" if building a shared library automatically hardcodes DIR 14972# into the library and all subsequent libraries and executables linked 14973# against it. 14974hardcode_automatic=$hardcode_automatic 14975 14976# Set to yes if linker adds runtime paths of dependent libraries 14977# to runtime path list. 14978inherit_rpath=$inherit_rpath 14979 14980# Whether libtool must link a program against all its dependency libraries. 14981link_all_deplibs=$link_all_deplibs 14982 14983# Fix the shell variable \$srcfile for the compiler. 14984fix_srcfile_path=$lt_fix_srcfile_path 14985 14986# Set to "yes" if exported symbols are required. 14987always_export_symbols=$always_export_symbols 14988 14989# The commands to list exported symbols. 14990export_symbols_cmds=$lt_export_symbols_cmds 14991 14992# Symbols that should not be listed in the preloaded symbols. 14993exclude_expsyms=$lt_exclude_expsyms 14994 14995# Symbols that must always be exported. 14996include_expsyms=$lt_include_expsyms 14997 14998# Commands necessary for linking programs (against libraries) with templates. 14999prelink_cmds=$lt_prelink_cmds 15000 15001# Specify filename containing input files. 15002file_list_spec=$lt_file_list_spec 15003 15004# How to hardcode a shared library path into an executable. 15005hardcode_action=$hardcode_action 15006 15007# ### END LIBTOOL CONFIG 15008 15009_LT_EOF 15010 15011 case $host_os in 15012 aix3*) 15013 cat <<\_LT_EOF >> "$cfgfile" 15014# AIX sometimes has problems with the GCC collect2 program. For some 15015# reason, if we set the COLLECT_NAMES environment variable, the problems 15016# vanish in a puff of smoke. 15017if test "X${COLLECT_NAMES+set}" != Xset; then 15018 COLLECT_NAMES= 15019 export COLLECT_NAMES 15020fi 15021_LT_EOF 15022 ;; 15023 esac 15024 15025 15026ltmain="$ac_aux_dir/ltmain.sh" 15027 15028 15029 # We use sed instead of cat because bash on DJGPP gets confused if 15030 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15031 # text mode, it properly converts lines to CR/LF. This bash problem 15032 # is reportedly fixed, but why not run on old versions too? 15033 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15034 || (rm -f "$cfgfile"; exit 1) 15035 15036 case $xsi_shell in 15037 yes) 15038 cat << \_LT_EOF >> "$cfgfile" 15039 15040# func_dirname file append nondir_replacement 15041# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15042# otherwise set result to NONDIR_REPLACEMENT. 15043func_dirname () 15044{ 15045 case ${1} in 15046 */*) func_dirname_result="${1%/*}${2}" ;; 15047 * ) func_dirname_result="${3}" ;; 15048 esac 15049} 15050 15051# func_basename file 15052func_basename () 15053{ 15054 func_basename_result="${1##*/}" 15055} 15056 15057# func_dirname_and_basename file append nondir_replacement 15058# perform func_basename and func_dirname in a single function 15059# call: 15060# dirname: Compute the dirname of FILE. If nonempty, 15061# add APPEND to the result, otherwise set result 15062# to NONDIR_REPLACEMENT. 15063# value returned in "$func_dirname_result" 15064# basename: Compute filename of FILE. 15065# value retuned in "$func_basename_result" 15066# Implementation must be kept synchronized with func_dirname 15067# and func_basename. For efficiency, we do not delegate to 15068# those functions but instead duplicate the functionality here. 15069func_dirname_and_basename () 15070{ 15071 case ${1} in 15072 */*) func_dirname_result="${1%/*}${2}" ;; 15073 * ) func_dirname_result="${3}" ;; 15074 esac 15075 func_basename_result="${1##*/}" 15076} 15077 15078# func_stripname prefix suffix name 15079# strip PREFIX and SUFFIX off of NAME. 15080# PREFIX and SUFFIX must not contain globbing or regex special 15081# characters, hashes, percent signs, but SUFFIX may contain a leading 15082# dot (in which case that matches only a dot). 15083func_stripname () 15084{ 15085 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15086 # positional parameters, so assign one to ordinary parameter first. 15087 func_stripname_result=${3} 15088 func_stripname_result=${func_stripname_result#"${1}"} 15089 func_stripname_result=${func_stripname_result%"${2}"} 15090} 15091 15092# func_opt_split 15093func_opt_split () 15094{ 15095 func_opt_split_opt=${1%%=*} 15096 func_opt_split_arg=${1#*=} 15097} 15098 15099# func_lo2o object 15100func_lo2o () 15101{ 15102 case ${1} in 15103 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15104 *) func_lo2o_result=${1} ;; 15105 esac 15106} 15107 15108# func_xform libobj-or-source 15109func_xform () 15110{ 15111 func_xform_result=${1%.*}.lo 15112} 15113 15114# func_arith arithmetic-term... 15115func_arith () 15116{ 15117 func_arith_result=$(( $* )) 15118} 15119 15120# func_len string 15121# STRING may not start with a hyphen. 15122func_len () 15123{ 15124 func_len_result=${#1} 15125} 15126 15127_LT_EOF 15128 ;; 15129 *) # Bourne compatible functions. 15130 cat << \_LT_EOF >> "$cfgfile" 15131 15132# func_dirname file append nondir_replacement 15133# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15134# otherwise set result to NONDIR_REPLACEMENT. 15135func_dirname () 15136{ 15137 # Extract subdirectory from the argument. 15138 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15139 if test "X$func_dirname_result" = "X${1}"; then 15140 func_dirname_result="${3}" 15141 else 15142 func_dirname_result="$func_dirname_result${2}" 15143 fi 15144} 15145 15146# func_basename file 15147func_basename () 15148{ 15149 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15150} 15151 15152 15153# func_stripname prefix suffix name 15154# strip PREFIX and SUFFIX off of NAME. 15155# PREFIX and SUFFIX must not contain globbing or regex special 15156# characters, hashes, percent signs, but SUFFIX may contain a leading 15157# dot (in which case that matches only a dot). 15158# func_strip_suffix prefix name 15159func_stripname () 15160{ 15161 case ${2} in 15162 .*) func_stripname_result=`$ECHO "X${3}" \ 15163 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15164 *) func_stripname_result=`$ECHO "X${3}" \ 15165 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15166 esac 15167} 15168 15169# sed scripts: 15170my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15171my_sed_long_arg='1s/^-[^=]*=//' 15172 15173# func_opt_split 15174func_opt_split () 15175{ 15176 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15177 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15178} 15179 15180# func_lo2o object 15181func_lo2o () 15182{ 15183 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15184} 15185 15186# func_xform libobj-or-source 15187func_xform () 15188{ 15189 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15190} 15191 15192# func_arith arithmetic-term... 15193func_arith () 15194{ 15195 func_arith_result=`expr "$@"` 15196} 15197 15198# func_len string 15199# STRING may not start with a hyphen. 15200func_len () 15201{ 15202 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15203} 15204 15205_LT_EOF 15206esac 15207 15208case $lt_shell_append in 15209 yes) 15210 cat << \_LT_EOF >> "$cfgfile" 15211 15212# func_append var value 15213# Append VALUE to the end of shell variable VAR. 15214func_append () 15215{ 15216 eval "$1+=\$2" 15217} 15218_LT_EOF 15219 ;; 15220 *) 15221 cat << \_LT_EOF >> "$cfgfile" 15222 15223# func_append var value 15224# Append VALUE to the end of shell variable VAR. 15225func_append () 15226{ 15227 eval "$1=\$$1\$2" 15228} 15229 15230_LT_EOF 15231 ;; 15232 esac 15233 15234 15235 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15236 || (rm -f "$cfgfile"; exit 1) 15237 15238 mv -f "$cfgfile" "$ofile" || 15239 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15240 chmod +x "$ofile" 15241 15242 ;; 15243 15244 esac 15245done # for ac_tag 15246 15247 15248as_fn_exit 0 15249_ACEOF 15250ac_clean_files=$ac_clean_files_save 15251 15252test $ac_write_fail = 0 || 15253 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15254 15255 15256# configure is writing to config.log, and then calls config.status. 15257# config.status does its own redirection, appending to config.log. 15258# Unfortunately, on DOS this fails, as config.log is still kept open 15259# by configure, so config.status won't be able to write to it; its 15260# output is simply discarded. So we exec the FD to /dev/null, 15261# effectively closing config.log, so it can be properly (re)opened and 15262# appended to by config.status. When coming back to configure, we 15263# need to make the FD available again. 15264if test "$no_create" != yes; then 15265 ac_cs_success=: 15266 ac_config_status_args= 15267 test "$silent" = yes && 15268 ac_config_status_args="$ac_config_status_args --quiet" 15269 exec 5>/dev/null 15270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15271 exec 5>>config.log 15272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15273 # would make configure fail if this is the last instruction. 15274 $ac_cs_success || as_fn_exit $? 15275fi 15276if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15278$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15279fi 15280 15281